@openmrs/esm-patient-allergies-app 11.3.0 → 11.3.1-patch.9064

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.turbo/turbo-build.log +24 -25
  2. package/dist/1119.js +1 -1
  3. package/dist/1197.js +1 -1
  4. package/dist/1533.js +2 -0
  5. package/dist/1533.js.map +1 -0
  6. package/dist/2146.js +1 -1
  7. package/dist/2690.js +1 -1
  8. package/dist/3099.js +1 -1
  9. package/dist/3357.js +1 -0
  10. package/dist/3357.js.map +1 -0
  11. package/dist/3584.js +1 -1
  12. package/dist/4055.js +1 -1
  13. package/dist/4132.js +1 -1
  14. package/dist/4300.js +1 -1
  15. package/dist/4335.js +1 -1
  16. package/dist/4618.js +1 -1
  17. package/dist/4652.js +1 -1
  18. package/dist/4944.js +1 -1
  19. package/dist/5173.js +1 -1
  20. package/dist/5241.js +1 -1
  21. package/dist/5442.js +1 -1
  22. package/dist/5563.js +1 -1
  23. package/dist/5661.js +1 -1
  24. package/dist/5670.js +1 -0
  25. package/dist/5670.js.map +1 -0
  26. package/dist/5836.js +2 -0
  27. package/dist/5836.js.map +1 -0
  28. package/dist/6022.js +1 -1
  29. package/dist/6468.js +1 -1
  30. package/dist/6679.js +1 -1
  31. package/dist/6840.js +1 -1
  32. package/dist/6859.js +1 -1
  33. package/dist/6884.js +1 -1
  34. package/dist/6884.js.map +1 -1
  35. package/dist/7097.js +1 -1
  36. package/dist/7159.js +1 -1
  37. package/dist/723.js +1 -1
  38. package/dist/7617.js +1 -1
  39. package/dist/795.js +1 -1
  40. package/dist/8163.js +1 -1
  41. package/dist/8349.js +1 -1
  42. package/dist/8618.js +1 -1
  43. package/dist/8803.js +1 -0
  44. package/dist/8803.js.map +1 -0
  45. package/dist/890.js +1 -1
  46. package/dist/9214.js +1 -1
  47. package/dist/9538.js +1 -1
  48. package/dist/9569.js +1 -1
  49. package/dist/986.js +1 -1
  50. package/dist/9879.js +1 -1
  51. package/dist/9895.js +1 -1
  52. package/dist/9900.js +1 -1
  53. package/dist/9913.js +1 -1
  54. package/dist/main.js +1 -1
  55. package/dist/main.js.map +1 -1
  56. package/dist/openmrs-esm-patient-allergies-app.js +1 -1
  57. package/dist/openmrs-esm-patient-allergies-app.js.buildmanifest.json +229 -280
  58. package/dist/openmrs-esm-patient-allergies-app.js.map +1 -1
  59. package/dist/routes.json +1 -1
  60. package/package.json +4 -3
  61. package/src/allergies/allergies-action-menu.component.tsx +2 -2
  62. package/src/allergies/allergies-list.extension.tsx +55 -0
  63. package/src/allergies/allergies-list.scss +35 -0
  64. package/src/allergies/allergies-list.test.tsx +131 -0
  65. package/src/allergies/{allergies-tile.component.tsx → allergies-tile.extension.tsx} +7 -5
  66. package/src/allergies/allergies-tile.scss +5 -0
  67. package/src/allergies/allergies-tile.test.tsx +16 -7
  68. package/src/allergies/allergy-intolerance.resource.ts +3 -3
  69. package/src/allergies/delete-allergy.modal.tsx +2 -2
  70. package/src/dashboard.meta.ts +3 -1
  71. package/src/index.ts +6 -7
  72. package/src/routes.json +11 -4
  73. package/src/utils.ts +5 -0
  74. package/translations/am.json +2 -1
  75. package/translations/ar.json +2 -1
  76. package/translations/ar_SY.json +2 -1
  77. package/translations/bn.json +2 -1
  78. package/translations/de.json +2 -1
  79. package/translations/en.json +2 -1
  80. package/translations/en_US.json +2 -1
  81. package/translations/es.json +2 -1
  82. package/translations/es_MX.json +2 -1
  83. package/translations/fr.json +2 -1
  84. package/translations/he.json +2 -1
  85. package/translations/hi.json +2 -1
  86. package/translations/hi_IN.json +2 -1
  87. package/translations/id.json +2 -1
  88. package/translations/it.json +2 -1
  89. package/translations/ka.json +2 -1
  90. package/translations/km.json +2 -1
  91. package/translations/ku.json +2 -1
  92. package/translations/ky.json +2 -1
  93. package/translations/lg.json +2 -1
  94. package/translations/ne.json +2 -1
  95. package/translations/pl.json +2 -1
  96. package/translations/pt.json +2 -1
  97. package/translations/pt_BR.json +2 -1
  98. package/translations/qu.json +2 -1
  99. package/translations/ro_RO.json +2 -1
  100. package/translations/ru_RU.json +2 -1
  101. package/translations/si.json +2 -1
  102. package/translations/sw.json +2 -1
  103. package/translations/sw_KE.json +2 -1
  104. package/translations/tr.json +2 -1
  105. package/translations/tr_TR.json +2 -1
  106. package/translations/uk.json +2 -1
  107. package/translations/uz.json +2 -1
  108. package/translations/uz@Latn.json +2 -1
  109. package/translations/uz_UZ.json +2 -1
  110. package/translations/vi.json +2 -1
  111. package/translations/zh.json +2 -1
  112. package/translations/zh_CN.json +2 -1
  113. package/dist/4051.js +0 -1
  114. package/dist/4051.js.map +0 -1
  115. package/dist/4130.js +0 -2
  116. package/dist/4130.js.map +0 -1
  117. package/dist/5048.js +0 -1
  118. package/dist/5048.js.map +0 -1
  119. package/dist/5421.js +0 -2
  120. package/dist/5421.js.map +0 -1
  121. package/dist/6432.js +0 -1
  122. package/dist/6432.js.map +0 -1
  123. package/dist/717.js +0 -1
  124. package/dist/717.js.map +0 -1
  125. package/dist/8170.js +0 -1
  126. package/dist/8170.js.map +0 -1
  127. /package/dist/{4130.js.LICENSE.txt → 1533.js.LICENSE.txt} +0 -0
  128. /package/dist/{5421.js.LICENSE.txt → 5836.js.LICENSE.txt} +0 -0
package/dist/5241.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5241],{55241:e=>{e.exports=JSON.parse('{"add":"Add","allergen":"Allergen","allergenRequired":"Allergen is required","allergies":"Allergies","Allergies":"Allergies","allergyDeleted":"Allergy deleted","allergyIntolerances":"allergy intolerances","allergyNowVisible":"It is now visible on the Allergies page","allergySaved":"Allergy saved","allergySaveError":"Error saving allergy","allergyUpdated":"Allergy updated","atLeastOneReactionRequired":"At least one reaction is required","cancel":"Cancel","comments":"Comments","delete":"Delete","deleteModalConfirmationText":"Are you sure you want to delete this allergy?","deletePatientAllergy":"Delete allergy","deleting":"Deleting","discard":"Discard","edit":"Edit","editAllergy":"Edit an Allergy","editOrDeleteAllergy":"Edit or delete allergy","errorDeletingAllergy":"Error deleting allergy","loading":"Loading","mild":"Mild","moderate":"Moderate","name":"Name","nonCodedAllergenRequired":"Please specify the non-coded allergen","nonCodedAllergenWarningDescription":"Adding a custom allergen may impact system-wide allergy notifications. It\'s recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts.","nonCodedAllergenWarningTitle":"Warning: Custom Allergen Entry","nonCodedAllergicReactionRequired":"Please specify the non-coded allergic reaction","other":"Other","otherNonCodedAllergen":"Other non-coded allergen","otherNonCodedAllergicReaction":"Other non-coded allergic reaction","reaction":"Reaction","reactions":"Reactions","recordNewAllergy":"Record a new allergy","saveAndClose":"Save and close","saving":"Saving","seeAll":"See all","selectAllergen":"Select the allergen","selectReactions":"Select the reactions","severe":"Severe","severityandReaction":"Severity","severityOfWorstReaction":"Severity of worst reaction","severityRequired":"Severity is required","typeAdditionalComments":"Type any additional comments here","typeAllergenName":"Please type in the name of the allergen","typeAllergicReactionName":"Please type in the name of the allergic reaction"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5241],{55241:e=>{e.exports=JSON.parse('{"add":"Add","allergen":"Allergen","allergenRequired":"Allergen is required","allergies":"Allergies","Allergies":"Allergies","allergyDeleted":"Allergy deleted","allergyIntolerances":"allergy intolerances","allergyNowVisible":"It is now visible on the Allergies page","allergySaved":"Allergy saved","allergySaveError":"Error saving allergy","allergyUpdated":"Allergy updated","atLeastOneReactionRequired":"At least one reaction is required","cancel":"Cancel","comments":"Comments","delete":"Delete","deleteModalConfirmationText":"Are you sure you want to delete this allergy?","deletePatientAllergy":"Delete allergy","deleting":"Deleting","discard":"Discard","edit":"Edit","editAllergy":"Edit an Allergy","editOrDeleteAllergy":"Edit or delete allergy","errorDeletingAllergy":"Error deleting allergy","loading":"Loading","mild":"Mild","moderate":"Moderate","name":"Name","nonCodedAllergenRequired":"Please specify the non-coded allergen","nonCodedAllergenWarningDescription":"Adding a custom allergen may impact system-wide allergy notifications. It\'s recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts.","nonCodedAllergenWarningTitle":"Warning: Custom Allergen Entry","nonCodedAllergicReactionRequired":"Please specify the non-coded allergic reaction","other":"Other","otherNonCodedAllergen":"Other non-coded allergen","otherNonCodedAllergicReaction":"Other non-coded allergic reaction","reaction":"Reaction","reactions":"Reactions","recordNewAllergy":"Record a new allergy","saveAndClose":"Save and close","saving":"Saving","seeAll":"See all","selectAllergen":"Select the allergen","selectReactions":"Select the reactions","severe":"Severe","severityandReaction":"Severity","severityOfWorstReaction":"Severity of worst reaction","severityRequired":"Severity is required","typeAdditionalComments":"Type any additional comments here","typeAllergenName":"Please type in the name of the allergen","typeAllergicReactionName":"Please type in the name of the allergic reaction","unknown":"Unknown"}')}}]);
package/dist/5442.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5442],{55442:e=>{e.exports=JSON.parse('{"add":"Add","allergen":"Allergen","allergenRequired":"Allergen is required","allergies":"Allergies","Allergies":"Allergies","allergyDeleted":"Allergy deleted","allergyIntolerances":"allergy intolerances","allergyNowVisible":"It is now visible on the Allergies page","allergySaved":"Allergy saved","allergySaveError":"Error saving allergy","allergyUpdated":"Allergy updated","atLeastOneReactionRequired":"At least one reaction is required","cancel":"Cancel","comments":"Comments","delete":"Delete","deleteModalConfirmationText":"Are you sure you want to delete this allergy?","deletePatientAllergy":"Delete allergy","deleting":"Deleting","discard":"Discard","edit":"Edit","editAllergy":"Edit an Allergy","editOrDeleteAllergy":"Edit or delete allergy","errorDeletingAllergy":"Error deleting allergy","loading":"Loading","mild":"Mild","moderate":"Moderate","name":"Name","nonCodedAllergenRequired":"Please specify the non-coded allergen","nonCodedAllergenWarningDescription":"Adding a custom allergen may impact system-wide allergy notifications. It\'s recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts.","nonCodedAllergenWarningTitle":"Warning: Custom Allergen Entry","nonCodedAllergicReactionRequired":"Please specify the non-coded allergic reaction","other":"Other","otherNonCodedAllergen":"Other non-coded allergen","otherNonCodedAllergicReaction":"Other non-coded allergic reaction","reaction":"Reaction","reactions":"Reactions","recordNewAllergy":"Record a new allergy","saveAndClose":"Save and close","saving":"Saving","seeAll":"See all","selectAllergen":"Select the allergen","selectReactions":"Select the reactions","severe":"Severe","severityandReaction":"Severity","severityOfWorstReaction":"Severity of worst reaction","severityRequired":"Severity is required","typeAdditionalComments":"Type any additional comments here","typeAllergenName":"Please type in the name of the allergen","typeAllergicReactionName":"Please type in the name of the allergic reaction"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5442],{55442:e=>{e.exports=JSON.parse('{"add":"Add","allergen":"Allergen","allergenRequired":"Allergen is required","allergies":"Allergies","Allergies":"Allergies","allergyDeleted":"Allergy deleted","allergyIntolerances":"allergy intolerances","allergyNowVisible":"It is now visible on the Allergies page","allergySaved":"Allergy saved","allergySaveError":"Error saving allergy","allergyUpdated":"Allergy updated","atLeastOneReactionRequired":"At least one reaction is required","cancel":"Cancel","comments":"Comments","delete":"Delete","deleteModalConfirmationText":"Are you sure you want to delete this allergy?","deletePatientAllergy":"Delete allergy","deleting":"Deleting","discard":"Discard","edit":"Edit","editAllergy":"Edit an Allergy","editOrDeleteAllergy":"Edit or delete allergy","errorDeletingAllergy":"Error deleting allergy","loading":"Loading","mild":"Mild","moderate":"Moderate","name":"Name","nonCodedAllergenRequired":"Please specify the non-coded allergen","nonCodedAllergenWarningDescription":"Adding a custom allergen may impact system-wide allergy notifications. It\'s recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts.","nonCodedAllergenWarningTitle":"Warning: Custom Allergen Entry","nonCodedAllergicReactionRequired":"Please specify the non-coded allergic reaction","other":"Other","otherNonCodedAllergen":"Other non-coded allergen","otherNonCodedAllergicReaction":"Other non-coded allergic reaction","reaction":"Reaction","reactions":"Reactions","recordNewAllergy":"Record a new allergy","saveAndClose":"Save and close","saving":"Saving","seeAll":"See all","selectAllergen":"Select the allergen","selectReactions":"Select the reactions","severe":"Severe","severityandReaction":"Severity","severityOfWorstReaction":"Severity of worst reaction","severityRequired":"Severity is required","typeAdditionalComments":"Type any additional comments here","typeAllergenName":"Please type in the name of the allergen","typeAllergicReactionName":"Please type in the name of the allergic reaction","unknown":"Unknown"}')}}]);
package/dist/5563.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5563],{35563:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var a=t(75641),i=t.n(a),l=t(53373),o=t.n(l),r=t(93150),s=t(98064),c=t(46195),p=t(81160),d=t(80824),u=t(54440),g=(t(71123),t(88010)),f=t.n(g),y="OTHER",h=t(14358),m=t(72591),b=t.n(m),$=t(1740),v=t.n($),A=t(88128),_=t.n(A),C=t(30855),k=t.n(C),x=t(93051),w=t.n(x),z=t(73656),E=t.n(z),M=t(54358),B={};B.styleTagTransform=E(),B.setAttributes=k(),B.insert=_().bind(null,"head"),B.domAPI=v(),B.insertStyleElement=w(),b()(M.A,B);const R=M.A&&M.A.locals?M.A.locals:void 0;function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){O(e,n,t[n])}))}return e}function S(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function D(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}var W=function(e,n){return c.z.object({allergen:c.z.object({display:c.z.string(),type:c.z.string(),uuid:c.z.string()}).nullable().refine((function(e){return null!==e}),{message:e("allergenRequired","Allergen is required")}),nonCodedAllergen:c.z.string().optional(),allergicReactions:c.z.array(c.z.string().optional()).refine((function(e){return e.some((function(e){return""!==e}))}),{message:e("atLeastOneReactionRequired","At least one reaction is required")}),nonCodedAllergicReaction:c.z.string().optional(),severityOfWorstReaction:c.z.string().nullable().refine((function(e){return null!==e&&""!==e}),{message:e("severityRequired","Severity is required")}),comment:c.z.string().optional()}).superRefine((function(t,a){var i,l;(null===(i=t.allergen)||void 0===i?void 0:i.uuid)!==n||t.nonCodedAllergen||a.addIssue({code:c.z.ZodIssueCode.custom,message:e("nonCodedAllergenRequired","Please specify the non-coded allergen"),path:["nonCodedAllergen"]}),(null===(l=t.allergicReactions)||void 0===l?void 0:l.includes(n))&&!t.nonCodedAllergicReaction&&a.addIssue({code:c.z.ZodIssueCode.custom,message:e("nonCodedAllergicReactionRequired","Please specify the non-coded allergic reaction"),path:["nonCodedAllergicReaction"]})}))};const j=function(e){var n,t,l,c=e.closeWorkspace,g=e.patient,m=e.patientUuid,b=e.allergy,$=e.formContext,v=e.promptBeforeClosing,A=function(){var e=(0,u.useConfig)().concepts,n=e.drugAllergenUuid,t=e.environmentalAllergenUuid,i=e.foodAllergenUuid,l=e.otherConceptUuid,o=f()("".concat(u.restBaseUrl,"/concept/").concat(n,"?v=full"),u.openmrsFetch).data,r=f()("".concat(u.restBaseUrl,"/concept/").concat(t,"?v=full"),u.openmrsFetch).data,s=f()("".concat(u.restBaseUrl,"/concept/").concat(i,"?v=full"),u.openmrsFetch).data;return(0,a.useMemo)((function(){var e=[],n=function(n,t){var a,i;null==n||null===(i=n.data)||void 0===i||null===(a=i.setMembers)||void 0===a||a.forEach((function(n){e.push({uuid:n.uuid,display:n.display,type:t})}))};return n(o,"DRUG"),n(r,"ENVIRONMENT"),n(s,"FOOD"),e.forEach((function(n,t){n.uuid===l&&e.splice(t,1)})),e.sort((function(e,n){return e.display.localeCompare(n.display)})),{allergens:e,isLoading:!o||!r||!s}}),[o,r,s,l])}().allergens,_=(n=(0,u.useConfig)().concepts.allergyReactionUuid,l=(t=f()("".concat(u.restBaseUrl,"/concept/").concat(n,"?v=full"),u.openmrsFetch)).data,{isLoading:t.isLoading,allergicReactions:null==l?void 0:l.data.setMembers.map((function(e){return{uuid:e.uuid,display:e.display}}))}),C=_.allergicReactions,k=_.isLoading,x=(0,u.useConfig)().concepts,w=(0,h.i2)(g.id),z=w.allergies,E=w.mutate,M=(0,r.useTranslation)().t,B="tablet"===(0,u.useLayoutType)(),T=(0,a.useRef)(!1),j=(0,a.useMemo)((function(){return x}),[x]),q=j.mildReactionUuid,F=j.moderateReactionUuid,U=j.otherConceptUuid,P=j.severeReactionUuid,X=Boolean(b)&&"editing"===$,G=(0,a.useMemo)((function(){return[{display:M("mild","Mild"),key:"mild",uuid:q},{display:M("moderate","Moderate"),key:"moderate",uuid:F},{display:M("severe","Severe"),key:"severe",uuid:P}]}),[q,F,P,M]),H=(0,a.useCallback)((function(e){switch(e){case"mild":return q;case"moderate":return F;case"severe":return P;default:return null}}),[q,F,P]),L=(0,a.useCallback)((function(){var e;return(null==C?void 0:C.length)&&(null==b||null===(e=b.reactionManifestations)||void 0===e?void 0:e.length)?C.filter((function(e){return b.reactionManifestations.includes(e.display)})).map((function(e){return e.uuid})):[]}),[b,C]),V=(0,a.useCallback)((function(e,n){var t=null==A?void 0:A.map((function(e){return e.display}));return n&&!(null==t?void 0:t.includes(n.display))?S(N({},e),{allergen:{uuid:U,display:M("other","Other"),type:y},nonCodedAllergen:n.display}):e}),[A,U,M]),J=(0,a.useCallback)((function(e,n){var t;if(!(null==n||null===(t=n.reactionManifestations)||void 0===t?void 0:t.length))return e;var a=null==C?void 0:C.map((function(e){return e.display})),i=n.reactionManifestations.find((function(e){return!(null==a?void 0:a.includes(e))}));return i?S(N({},e),{allergicReactions:D(e.allergicReactions).concat([U]),nonCodedAllergicReaction:i}):e}),[C,U]),Q=(0,a.useCallback)((function(e,n){var t,a={allergen:null,nonCodedAllergen:"",allergicReactions:[],nonCodedAllergicReaction:"",severityOfWorstReaction:null,comment:""};if(!e||"editing"!==n)return a;var i=S(N({},a),{allergen:null!==(t=null==A?void 0:A.find((function(n){return e.display===n.display})))&&void 0!==t?t:null,allergicReactions:L(),severityOfWorstReaction:H(e.reactionSeverity),comment:"--"!==e.note?e.note:""}),l=V(i,e);return J(l,e)}),[A,L,H,V,J]),K=(0,d.mN)({mode:"all",resolver:(0,p.u)(W(M,U)),defaultValues:Q(b,$)}),Y=K.control,Z=K.formState,ee=Z.isDirty,ne=Z.isSubmitting,te=Z.errors,ae=K.handleSubmit,ie=K.setValue;(0,a.useEffect)((function(){if(!T.current&&!k&&X){var e=Q(b,$);Object.entries(e).forEach((function(e){var n,t,a=(t=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l=[],o=!0,r=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(l.push(a.value),!n||l.length!==n);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(r)throw i}}return l}}(n,t)||I(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],l=a[1];ie(i,l)})),T.current=!0}}),[b,$,Q,X,k,ie]),(0,a.useEffect)((function(){v((function(){return ee}))}),[v,ee]);var le=(0,d.FH)({control:Y,name:"allergen"}),oe=(0,d.FH)({control:Y,name:"allergicReactions"}),re=(0,a.useCallback)((function(e){var n=e.allergen,t=e.allergicReactions,a=e.comment,i=e.nonCodedAllergen,l=e.nonCodedAllergicReaction,o=e.severityOfWorstReaction,r=t.filter(Boolean);return{allergen:n.uuid===U?{allergenType:n.type,codedAllergen:{uuid:n.uuid},nonCodedAllergen:i}:{allergenType:n.type,codedAllergen:{uuid:n.uuid}},severity:{uuid:o},comment:a,reactions:r.map((function(e){return e===U?{reaction:{uuid:e},reactionNonCoded:l}:{reaction:{uuid:e}}}))}}),[U]),se=(0,a.useCallback)((function(e){var n=new AbortController,t=re(e),a=function(){E(),c({ignoreChanges:!0}),(0,u.showSnackbar)({isLowContrast:!0,kind:"success",title:X?M("allergyUpdated","Allergy updated"):M("allergySaved","Allergy saved"),subtitle:M("allergyNowVisible","It is now visible on the Allergies page")})},i=function(e){var n=e.message;(0,u.showSnackbar)({isLowContrast:!1,kind:"error",title:M("allergySaveError","Error saving allergy"),subtitle:n})};return X?function(e,n,t,a){return(0,u.openmrsFetch)("".concat(u.restBaseUrl,"/patient/").concat(n,"/allergy/").concat(t),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:a.signal})}(t,m,null==b?void 0:b.id,n).then(a,i):function(e,n,t){return(0,u.openmrsFetch)("".concat(u.restBaseUrl,"/patient/").concat(n,"/allergy"),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:t.signal})}(t,m,n).then(a,i)}),[null==b?void 0:b.id,c,re,X,E,m,M]),ce=(0,a.useMemo)((function(){return{patient:g,patientUuid:m}}),[g,m]),pe=(0,a.useMemo)((function(){return D(A.map((function(e){return S(N({},e),{disabled:null==z?void 0:z.some((function(n){return n.display===e.display}))})}))).concat([{uuid:U,display:M("other","Other"),type:y,disabled:!1}])}),[A,U,M,z]),de=(0,a.useMemo)((function(){return null==C?void 0:C.sort((function(e,n){return e.display.localeCompare(n.display)})).map((function(e){return{id:e.uuid,labelText:e.display}}))}),[C]);return i().createElement(s.lVW,{className:R.formContainer,onSubmit:ae(se)},B?i().createElement(s.fI1,{className:R.header},i().createElement(u.ExtensionSlot,{className:R.content,name:"patient-details-header-slot",state:ce})):null,i().createElement("div",{className:R.form},k?i().createElement("div",{className:R.loaderContainer},i().createElement(s.OuH,{className:R.loading,description:"".concat(M("loading","Loading")," ...")})):i().createElement(s.BJc,{gap:5,className:R.formContent},(null==le?void 0:le.uuid)===U&&i().createElement(s.jeF,{hideCloseButton:!0,kind:"warning",lowContrast:!0,style:{minWidth:"100%"},subtitle:M("nonCodedAllergenWarningDescription","Adding a custom allergen may impact system-wide allergy notifications. It's recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts."),title:M("nonCodedAllergenWarningTitle","Warning: Custom Allergen Entry")}),i().createElement(u.ResponsiveWrapper,null,i().createElement(s.gE_,{legendText:""},i().createElement(d.xI,{name:"allergen",control:Y,render:function(e){var n,t=e.field,a=t.onChange,l=t.value;return i().createElement(s.a32,{id:"allergen",invalid:!!te.allergen,invalidText:null===(n=te.allergen)||void 0===n?void 0:n.message,itemToString:function(e){return null==e?void 0:e.display},items:pe,onChange:function(e){void 0!==(null==e?void 0:e.selectedItem)&&a(e.selectedItem)},readOnly:X,placeholder:M("selectAllergen","Select the allergen"),selectedItem:l,titleText:M("allergen","Allergen")})}}))),(null==le?void 0:le.uuid)===U&&i().createElement(u.ResponsiveWrapper,null,i().createElement(d.xI,{name:"nonCodedAllergen",control:Y,render:function(e){var n,t=e.field,a=t.onBlur,l=t.onChange,o=t.value;return i().createElement(s.ksK,{id:"nonCodedAllergen",invalid:!!te.nonCodedAllergen,invalidText:null===(n=te.nonCodedAllergen)||void 0===n?void 0:n.message,labelText:M("otherNonCodedAllergen","Other non-coded allergen"),onBlur:a,onChange:l,placeholder:M("typeAllergenName","Please type in the name of the allergen"),readOnly:X,value:o})}})),i().createElement(i().Fragment,null,i().createElement("div",{className:o()(O({},R.checkboxContainer,B))},i().createElement(s.gE_,{legendText:"","data-testid":"allergic-reactions-container"},k?i().createElement(i().Fragment,null,Array.from({length:10}).map((function(e,n){return i().createElement(s.d$P,{key:"checkbox-skeleton-".concat(n)})}))):i().createElement(d.xI,{name:"allergicReactions",control:Y,render:function(e){var n,t=e.field,a=t.onChange,l=t.value;return i().createElement(s.$QX,{invalid:!!te.allergicReactions,invalidText:null===(n=te.allergicReactions)||void 0===n?void 0:n.message,legendText:M("selectReactions","Select the reactions")},de.map((function(e){var n=e.id,t=e.labelText;return i().createElement(s.Sc0,{checked:Array.isArray(l)&&l.includes(n),className:R.checkbox,id:n,key:n,labelText:t,onChange:function(e,n){var t=n.checked,i=n.id,o=Array.isArray(l)?l:[];a(t?D(o).concat([i]):o.filter((function(e){return e!==i})))}})})))}}))),(null==oe?void 0:oe.includes(U))?i().createElement(u.ResponsiveWrapper,null,i().createElement(d.xI,{name:"nonCodedAllergicReaction",control:Y,render:function(e){var n,t=e.field,a=t.onBlur,l=t.onChange,o=t.value;return i().createElement(s.ksK,{id:"nonCodedAllergicReaction",invalid:!!te.nonCodedAllergicReaction,invalidText:null===(n=te.nonCodedAllergicReaction)||void 0===n?void 0:n.message,labelText:M("otherNonCodedAllergicReaction","Other non-coded allergic reaction"),onBlur:a,onChange:l,placeholder:M("typeAllergicReactionName","Please type in the name of the allergic reaction"),value:o})}})):null),i().createElement(s.gE_,{legendText:M("severityOfWorstReaction","Severity of worst reaction")},i().createElement(d.xI,{name:"severityOfWorstReaction",control:Y,render:function(e){var n,t=e.field,a=t.onBlur,l=t.onChange,o=t.value;return i().createElement(s.zWQ,{name:"severity-of-worst-reaction",invalid:!!te.severityOfWorstReaction,invalidText:null===(n=te.severityOfWorstReaction)||void 0===n?void 0:n.message,onBlur:a,onChange:function(e){return l(e.toString())},valueSelected:o},G.map((function(e){var n=e.key,t=e.display,a=e.uuid;return i().createElement(s.aaP,{id:n,key:n,labelText:t,value:a})})))}})),i().createElement(u.ResponsiveWrapper,null,i().createElement(d.xI,{name:"comment",control:Y,render:function(e){var n=e.field,t=n.onBlur,a=n.onChange,l=n.value;return i().createElement(s.fs1,{id:"comments",labelText:M("comments","Comments"),onChange:a,placeholder:M("typeAdditionalComments","Type any additional comments here"),onBlur:t,value:l,rows:4})}}))),i().createElement(s.Te$,{className:o()(R.actionButtons,B?R.tabletButtons:R.desktopButtons)},i().createElement(s.$nd,{className:R.button,onClick:function(){return c()},kind:"secondary"},M("discard","Discard")),i().createElement(s.$nd,{className:R.button,disabled:ne||X&&k,kind:"primary",type:"submit"},ne?i().createElement(s.OuH,{description:M("saving","Saving")+"..."}):i().createElement("span",null,M("saveAndClose","Save and close"))))))}},54358:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(30977),i=t.n(a),l=t(95924),o=t.n(l)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-allergies__allergy-form__header___P7zvd{border-bottom:.0625rem solid #e0e0e0;margin:0}.-esm-patient-allergies__allergy-form__content___iEv8G{display:grid;grid-template-columns:50% 10% 1fr;margin:.5rem 1rem}.-esm-patient-allergies__allergy-form__wrapperContainer___vsMlt fieldset{display:grid;grid-template-columns:1fr 1fr;width:100%}.-esm-patient-allergies__allergy-form__wrapperContainer___vsMlt .cds--radio-button__label{justify-content:flex-start}.-esm-patient-allergies__allergy-form__radio___XTKxu{margin:1rem 0}.-esm-patient-allergies__allergy-form__radio___XTKxu label{justify-content:flex-start}.-esm-patient-allergies__allergy-form__checkbox___0Cnkb:not(:first-child){margin:.3rem 0}.-esm-patient-allergies__allergy-form__checkboxContainer___XnRHC{display:grid;grid-template-columns:1fr 1fr}.-esm-patient-allergies__allergy-form__button___NWHJX{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-allergies__allergy-form__button___NWHJX .cds--inline-loading{min-height:1rem !important}.-esm-patient-allergies__allergy-form__button___NWHJX .cds--inline-loading__text{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-patient-allergies__allergy-form__desktopButtons___OHQg0{margin-top:2rem}.-esm-patient-allergies__allergy-form__tabletButtons___jiQUo{margin-top:2rem;padding:1.5rem 1rem;background-color:#fff}.-esm-patient-allergies__allergy-form__actionButtons___Dg6RD{position:sticky;bottom:0}.-esm-patient-allergies__allergy-form__formContainer___Av8l2{height:100%}.-esm-patient-allergies__allergy-form__formContent___IqWxT{margin:1rem}.-esm-patient-allergies__allergy-form__form___qXnav{display:flex;flex-direction:column;justify-content:space-between}.omrs-breakpoint-gt-tablet .-esm-patient-allergies__allergy-form__form___qXnav{height:100%}.omrs-breakpoint-lt-desktop .-esm-patient-allergies__allergy-form__form___qXnav{height:calc(100vh - 9rem)}.-esm-patient-allergies__allergy-form__loaderContainer___p5X8M{height:100vh}.-esm-patient-allergies__allergy-form__loading___9VLsU{display:flex;justify-content:center;align-items:center;min-height:50%}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/allergies/allergies-form/allergy-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,sDACE,oCAAA,CACA,QAAA,CAGF,uDACE,YAAA,CACA,iCAAA,CACA,iBAAA,CAGF,yEACE,YAAA,CACA,6BAAA,CACA,UAAA,CAGF,0FACE,0BAAA,CAGF,qDACE,aAAA,CAEA,2DACE,0BAAA,CAKF,0EACE,cAAA,CAIJ,iEACE,YAAA,CACA,6BAAA,CAGF,sDACE,WCWW,CDVX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAEA,2EACE,0BAAA,CAGF,iFE2yBE,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CFtyBJ,8DACE,eCpBW,CDuBb,6DACE,eCxBW,CDyBX,mBAAA,CACA,qBDhEM,CCmER,6DACE,eAAA,CACA,QAAA,CAGF,6DACE,WAAA,CAGF,2DACE,WCjDW,CDoDb,oDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CAKA,+EACE,WAAA,CAMF,gFACE,yBAAA,CAIJ,+DACE,YAAA,CAGF,uDACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,cAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.header {\n border-bottom: 0.0625rem solid $grey-2;\n margin: 0;\n}\n\n.content {\n display: grid;\n grid-template-columns: 50% 10% 1fr;\n margin: layout.$spacing-03 layout.$spacing-05;\n}\n\n.wrapperContainer fieldset {\n display: grid;\n grid-template-columns: 1fr 1fr;\n width: 100%;\n}\n\n.wrapperContainer :global(.cds--radio-button__label) {\n justify-content: flex-start;\n}\n\n.radio {\n margin: layout.$spacing-05 0;\n\n label {\n justify-content: flex-start;\n }\n}\n\n.checkbox {\n &:not(:first-child) {\n margin: 0.3rem 0;\n }\n}\n\n.checkboxContainer {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n\n :global(.cds--inline-loading__text) {\n @include type.type-style('body-01');\n }\n}\n\n.desktopButtons {\n margin-top: layout.$spacing-07;\n}\n\n.tabletButtons {\n margin-top: layout.$spacing-07;\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.actionButtons {\n position: sticky;\n bottom: 0;\n}\n\n.formContainer {\n height: 100%;\n}\n\n.formContent {\n margin: layout.$spacing-05;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n/* Desktop */\n:global(.omrs-breakpoint-gt-tablet) {\n .form {\n height: 100%;\n }\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .form {\n height: calc(100vh - 9rem);\n }\n}\n\n.loaderContainer {\n height: 100vh;\n}\n\n.loading {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 50%;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={header:"-esm-patient-allergies__allergy-form__header___P7zvd",content:"-esm-patient-allergies__allergy-form__content___iEv8G",wrapperContainer:"-esm-patient-allergies__allergy-form__wrapperContainer___vsMlt",radio:"-esm-patient-allergies__allergy-form__radio___XTKxu",checkbox:"-esm-patient-allergies__allergy-form__checkbox___0Cnkb",checkboxContainer:"-esm-patient-allergies__allergy-form__checkboxContainer___XnRHC",button:"-esm-patient-allergies__allergy-form__button___NWHJX",desktopButtons:"-esm-patient-allergies__allergy-form__desktopButtons___OHQg0",tabletButtons:"-esm-patient-allergies__allergy-form__tabletButtons___jiQUo",actionButtons:"-esm-patient-allergies__allergy-form__actionButtons___Dg6RD",formContainer:"-esm-patient-allergies__allergy-form__formContainer___Av8l2",formContent:"-esm-patient-allergies__allergy-form__formContent___IqWxT",form:"-esm-patient-allergies__allergy-form__form___qXnav",loaderContainer:"-esm-patient-allergies__allergy-form__loaderContainer___p5X8M",loading:"-esm-patient-allergies__allergy-form__loading___9VLsU"};const r=o}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5563],{35563:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var a=t(75641),i=t.n(a),l=t(53373),o=t.n(l),r=t(93150),s=t(82033),c=t(46195),p=t(81160),d=t(80824),u=t(54440),g=(t(71123),t(88010)),f=t.n(g),y="OTHER",h=t(14358),m=t(72591),b=t.n(m),$=t(1740),v=t.n($),A=t(88128),_=t.n(A),C=t(30855),k=t.n(C),x=t(93051),w=t.n(x),z=t(73656),E=t.n(z),M=t(54358),B={};B.styleTagTransform=E(),B.setAttributes=k(),B.insert=_().bind(null,"head"),B.domAPI=v(),B.insertStyleElement=w(),b()(M.A,B);const R=M.A&&M.A.locals?M.A.locals:void 0;function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){O(e,n,t[n])}))}return e}function S(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function D(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}var W=function(e,n){return c.z.object({allergen:c.z.object({display:c.z.string(),type:c.z.string(),uuid:c.z.string()}).nullable().refine((function(e){return null!==e}),{message:e("allergenRequired","Allergen is required")}),nonCodedAllergen:c.z.string().optional(),allergicReactions:c.z.array(c.z.string().optional()).refine((function(e){return e.some((function(e){return""!==e}))}),{message:e("atLeastOneReactionRequired","At least one reaction is required")}),nonCodedAllergicReaction:c.z.string().optional(),severityOfWorstReaction:c.z.string().nullable().refine((function(e){return null!==e&&""!==e}),{message:e("severityRequired","Severity is required")}),comment:c.z.string().optional()}).superRefine((function(t,a){var i,l;(null===(i=t.allergen)||void 0===i?void 0:i.uuid)!==n||t.nonCodedAllergen||a.addIssue({code:c.z.ZodIssueCode.custom,message:e("nonCodedAllergenRequired","Please specify the non-coded allergen"),path:["nonCodedAllergen"]}),(null===(l=t.allergicReactions)||void 0===l?void 0:l.includes(n))&&!t.nonCodedAllergicReaction&&a.addIssue({code:c.z.ZodIssueCode.custom,message:e("nonCodedAllergicReactionRequired","Please specify the non-coded allergic reaction"),path:["nonCodedAllergicReaction"]})}))};const j=function(e){var n,t,l,c=e.closeWorkspace,g=e.patient,m=e.patientUuid,b=e.allergy,$=e.formContext,v=e.promptBeforeClosing,A=function(){var e=(0,u.useConfig)().concepts,n=e.drugAllergenUuid,t=e.environmentalAllergenUuid,i=e.foodAllergenUuid,l=e.otherConceptUuid,o=f()("".concat(u.restBaseUrl,"/concept/").concat(n,"?v=full"),u.openmrsFetch).data,r=f()("".concat(u.restBaseUrl,"/concept/").concat(t,"?v=full"),u.openmrsFetch).data,s=f()("".concat(u.restBaseUrl,"/concept/").concat(i,"?v=full"),u.openmrsFetch).data;return(0,a.useMemo)((function(){var e=[],n=function(n,t){var a,i;null==n||null===(i=n.data)||void 0===i||null===(a=i.setMembers)||void 0===a||a.forEach((function(n){e.push({uuid:n.uuid,display:n.display,type:t})}))};return n(o,"DRUG"),n(r,"ENVIRONMENT"),n(s,"FOOD"),e.forEach((function(n,t){n.uuid===l&&e.splice(t,1)})),e.sort((function(e,n){return e.display.localeCompare(n.display)})),{allergens:e,isLoading:!o||!r||!s}}),[o,r,s,l])}().allergens,_=(n=(0,u.useConfig)().concepts.allergyReactionUuid,l=(t=f()("".concat(u.restBaseUrl,"/concept/").concat(n,"?v=full"),u.openmrsFetch)).data,{isLoading:t.isLoading,allergicReactions:null==l?void 0:l.data.setMembers.map((function(e){return{uuid:e.uuid,display:e.display}}))}),C=_.allergicReactions,k=_.isLoading,x=(0,u.useConfig)().concepts,w=(0,h.i2)(g.id),z=w.allergies,E=w.mutate,M=(0,r.useTranslation)().t,B="tablet"===(0,u.useLayoutType)(),T=(0,a.useRef)(!1),j=(0,a.useMemo)((function(){return x}),[x]),q=j.mildReactionUuid,F=j.moderateReactionUuid,U=j.otherConceptUuid,P=j.severeReactionUuid,X=Boolean(b)&&"editing"===$,G=(0,a.useMemo)((function(){return[{display:M("mild","Mild"),key:"mild",uuid:q},{display:M("moderate","Moderate"),key:"moderate",uuid:F},{display:M("severe","Severe"),key:"severe",uuid:P}]}),[q,F,P,M]),H=(0,a.useCallback)((function(e){switch(e){case"mild":return q;case"moderate":return F;case"severe":return P;default:return null}}),[q,F,P]),L=(0,a.useCallback)((function(){var e;return(null==C?void 0:C.length)&&(null==b||null===(e=b.reactionManifestations)||void 0===e?void 0:e.length)?C.filter((function(e){return b.reactionManifestations.includes(e.display)})).map((function(e){return e.uuid})):[]}),[b,C]),V=(0,a.useCallback)((function(e,n){var t=null==A?void 0:A.map((function(e){return e.display}));return n&&!(null==t?void 0:t.includes(n.display))?S(N({},e),{allergen:{uuid:U,display:M("other","Other"),type:y},nonCodedAllergen:n.display}):e}),[A,U,M]),J=(0,a.useCallback)((function(e,n){var t;if(!(null==n||null===(t=n.reactionManifestations)||void 0===t?void 0:t.length))return e;var a=null==C?void 0:C.map((function(e){return e.display})),i=n.reactionManifestations.find((function(e){return!(null==a?void 0:a.includes(e))}));return i?S(N({},e),{allergicReactions:D(e.allergicReactions).concat([U]),nonCodedAllergicReaction:i}):e}),[C,U]),Q=(0,a.useCallback)((function(e,n){var t,a={allergen:null,nonCodedAllergen:"",allergicReactions:[],nonCodedAllergicReaction:"",severityOfWorstReaction:null,comment:""};if(!e||"editing"!==n)return a;var i=S(N({},a),{allergen:null!==(t=null==A?void 0:A.find((function(n){return e.display===n.display})))&&void 0!==t?t:null,allergicReactions:L(),severityOfWorstReaction:H(e.reactionSeverity),comment:"--"!==e.note?e.note:""}),l=V(i,e);return J(l,e)}),[A,L,H,V,J]),K=(0,d.mN)({mode:"all",resolver:(0,p.u)(W(M,U)),defaultValues:Q(b,$)}),Y=K.control,Z=K.formState,ee=Z.isDirty,ne=Z.isSubmitting,te=Z.errors,ae=K.handleSubmit,ie=K.setValue;(0,a.useEffect)((function(){if(!T.current&&!k&&X){var e=Q(b,$);Object.entries(e).forEach((function(e){var n,t,a=(t=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l=[],o=!0,r=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(l.push(a.value),!n||l.length!==n);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(r)throw i}}return l}}(n,t)||I(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],l=a[1];ie(i,l)})),T.current=!0}}),[b,$,Q,X,k,ie]),(0,a.useEffect)((function(){v((function(){return ee}))}),[v,ee]);var le=(0,d.FH)({control:Y,name:"allergen"}),oe=(0,d.FH)({control:Y,name:"allergicReactions"}),re=(0,a.useCallback)((function(e){var n=e.allergen,t=e.allergicReactions,a=e.comment,i=e.nonCodedAllergen,l=e.nonCodedAllergicReaction,o=e.severityOfWorstReaction,r=t.filter(Boolean);return{allergen:n.uuid===U?{allergenType:n.type,codedAllergen:{uuid:n.uuid},nonCodedAllergen:i}:{allergenType:n.type,codedAllergen:{uuid:n.uuid}},severity:{uuid:o},comment:a,reactions:r.map((function(e){return e===U?{reaction:{uuid:e},reactionNonCoded:l}:{reaction:{uuid:e}}}))}}),[U]),se=(0,a.useCallback)((function(e){var n=new AbortController,t=re(e),a=function(){E(),c({ignoreChanges:!0}),(0,u.showSnackbar)({isLowContrast:!0,kind:"success",title:X?M("allergyUpdated","Allergy updated"):M("allergySaved","Allergy saved"),subtitle:M("allergyNowVisible","It is now visible on the Allergies page")})},i=function(e){var n=e.message;(0,u.showSnackbar)({isLowContrast:!1,kind:"error",title:M("allergySaveError","Error saving allergy"),subtitle:n})};return X?function(e,n,t,a){return(0,u.openmrsFetch)("".concat(u.restBaseUrl,"/patient/").concat(n,"/allergy/").concat(t),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:a.signal})}(t,m,null==b?void 0:b.id,n).then(a,i):function(e,n,t){return(0,u.openmrsFetch)("".concat(u.restBaseUrl,"/patient/").concat(n,"/allergy"),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:t.signal})}(t,m,n).then(a,i)}),[null==b?void 0:b.id,c,re,X,E,m,M]),ce=(0,a.useMemo)((function(){return{patient:g,patientUuid:m}}),[g,m]),pe=(0,a.useMemo)((function(){return D(A.map((function(e){return S(N({},e),{disabled:null==z?void 0:z.some((function(n){return n.display===e.display}))})}))).concat([{uuid:U,display:M("other","Other"),type:y,disabled:!1}])}),[A,U,M,z]),de=(0,a.useMemo)((function(){return null==C?void 0:C.sort((function(e,n){return e.display.localeCompare(n.display)})).map((function(e){return{id:e.uuid,labelText:e.display}}))}),[C]);return i().createElement(s.lVW,{className:R.formContainer,onSubmit:ae(se)},B?i().createElement(s.fI1,{className:R.header},i().createElement(u.ExtensionSlot,{className:R.content,name:"patient-details-header-slot",state:ce})):null,i().createElement("div",{className:R.form},k?i().createElement("div",{className:R.loaderContainer},i().createElement(s.OuH,{className:R.loading,description:"".concat(M("loading","Loading")," ...")})):i().createElement(s.BJc,{gap:5,className:R.formContent},(null==le?void 0:le.uuid)===U&&i().createElement(s.jeF,{hideCloseButton:!0,kind:"warning",lowContrast:!0,style:{minWidth:"100%"},subtitle:M("nonCodedAllergenWarningDescription","Adding a custom allergen may impact system-wide allergy notifications. It's recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts."),title:M("nonCodedAllergenWarningTitle","Warning: Custom Allergen Entry")}),i().createElement(u.ResponsiveWrapper,null,i().createElement(s.gE_,{legendText:""},i().createElement(d.xI,{name:"allergen",control:Y,render:function(e){var n,t=e.field,a=t.onChange,l=t.value;return i().createElement(s.a32,{id:"allergen",invalid:!!te.allergen,invalidText:null===(n=te.allergen)||void 0===n?void 0:n.message,itemToString:function(e){return null==e?void 0:e.display},items:pe,onChange:function(e){void 0!==(null==e?void 0:e.selectedItem)&&a(e.selectedItem)},readOnly:X,placeholder:M("selectAllergen","Select the allergen"),selectedItem:l,titleText:M("allergen","Allergen")})}}))),(null==le?void 0:le.uuid)===U&&i().createElement(u.ResponsiveWrapper,null,i().createElement(d.xI,{name:"nonCodedAllergen",control:Y,render:function(e){var n,t=e.field,a=t.onBlur,l=t.onChange,o=t.value;return i().createElement(s.ksK,{id:"nonCodedAllergen",invalid:!!te.nonCodedAllergen,invalidText:null===(n=te.nonCodedAllergen)||void 0===n?void 0:n.message,labelText:M("otherNonCodedAllergen","Other non-coded allergen"),onBlur:a,onChange:l,placeholder:M("typeAllergenName","Please type in the name of the allergen"),readOnly:X,value:o})}})),i().createElement(i().Fragment,null,i().createElement("div",{className:o()(O({},R.checkboxContainer,B))},i().createElement(s.gE_,{legendText:"","data-testid":"allergic-reactions-container"},k?i().createElement(i().Fragment,null,Array.from({length:10}).map((function(e,n){return i().createElement(s.d$P,{key:"checkbox-skeleton-".concat(n)})}))):i().createElement(d.xI,{name:"allergicReactions",control:Y,render:function(e){var n,t=e.field,a=t.onChange,l=t.value;return i().createElement(s.$QX,{invalid:!!te.allergicReactions,invalidText:null===(n=te.allergicReactions)||void 0===n?void 0:n.message,legendText:M("selectReactions","Select the reactions")},de.map((function(e){var n=e.id,t=e.labelText;return i().createElement(s.Sc0,{checked:Array.isArray(l)&&l.includes(n),className:R.checkbox,id:n,key:n,labelText:t,onChange:function(e,n){var t=n.checked,i=n.id,o=Array.isArray(l)?l:[];a(t?D(o).concat([i]):o.filter((function(e){return e!==i})))}})})))}}))),(null==oe?void 0:oe.includes(U))?i().createElement(u.ResponsiveWrapper,null,i().createElement(d.xI,{name:"nonCodedAllergicReaction",control:Y,render:function(e){var n,t=e.field,a=t.onBlur,l=t.onChange,o=t.value;return i().createElement(s.ksK,{id:"nonCodedAllergicReaction",invalid:!!te.nonCodedAllergicReaction,invalidText:null===(n=te.nonCodedAllergicReaction)||void 0===n?void 0:n.message,labelText:M("otherNonCodedAllergicReaction","Other non-coded allergic reaction"),onBlur:a,onChange:l,placeholder:M("typeAllergicReactionName","Please type in the name of the allergic reaction"),value:o})}})):null),i().createElement(s.gE_,{legendText:M("severityOfWorstReaction","Severity of worst reaction")},i().createElement(d.xI,{name:"severityOfWorstReaction",control:Y,render:function(e){var n,t=e.field,a=t.onBlur,l=t.onChange,o=t.value;return i().createElement(s.zWQ,{name:"severity-of-worst-reaction",invalid:!!te.severityOfWorstReaction,invalidText:null===(n=te.severityOfWorstReaction)||void 0===n?void 0:n.message,onBlur:a,onChange:function(e){return l(e.toString())},valueSelected:o},G.map((function(e){var n=e.key,t=e.display,a=e.uuid;return i().createElement(s.aaP,{id:n,key:n,labelText:t,value:a})})))}})),i().createElement(u.ResponsiveWrapper,null,i().createElement(d.xI,{name:"comment",control:Y,render:function(e){var n=e.field,t=n.onBlur,a=n.onChange,l=n.value;return i().createElement(s.fs1,{id:"comments",labelText:M("comments","Comments"),onChange:a,placeholder:M("typeAdditionalComments","Type any additional comments here"),onBlur:t,value:l,rows:4})}}))),i().createElement(s.Te$,{className:o()(R.actionButtons,B?R.tabletButtons:R.desktopButtons)},i().createElement(s.$nd,{className:R.button,onClick:function(){return c()},kind:"secondary"},M("discard","Discard")),i().createElement(s.$nd,{className:R.button,disabled:ne||X&&k,kind:"primary",type:"submit"},ne?i().createElement(s.OuH,{description:M("saving","Saving")+"..."}):i().createElement("span",null,M("saveAndClose","Save and close"))))))}},54358:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(30977),i=t.n(a),l=t(95924),o=t.n(l)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-allergies__allergy-form__header___P7zvd{border-bottom:.0625rem solid #e0e0e0;margin:0}.-esm-patient-allergies__allergy-form__content___iEv8G{display:grid;grid-template-columns:50% 10% 1fr;margin:.5rem 1rem}.-esm-patient-allergies__allergy-form__wrapperContainer___vsMlt fieldset{display:grid;grid-template-columns:1fr 1fr;width:100%}.-esm-patient-allergies__allergy-form__wrapperContainer___vsMlt .cds--radio-button__label{justify-content:flex-start}.-esm-patient-allergies__allergy-form__radio___XTKxu{margin:1rem 0}.-esm-patient-allergies__allergy-form__radio___XTKxu label{justify-content:flex-start}.-esm-patient-allergies__allergy-form__checkbox___0Cnkb:not(:first-child){margin:.3rem 0}.-esm-patient-allergies__allergy-form__checkboxContainer___XnRHC{display:grid;grid-template-columns:1fr 1fr}.-esm-patient-allergies__allergy-form__button___NWHJX{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-allergies__allergy-form__button___NWHJX .cds--inline-loading{min-height:1rem !important}.-esm-patient-allergies__allergy-form__button___NWHJX .cds--inline-loading__text{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-patient-allergies__allergy-form__desktopButtons___OHQg0{margin-top:2rem}.-esm-patient-allergies__allergy-form__tabletButtons___jiQUo{margin-top:2rem;padding:1.5rem 1rem;background-color:#fff}.-esm-patient-allergies__allergy-form__actionButtons___Dg6RD{position:sticky;bottom:0}.-esm-patient-allergies__allergy-form__formContainer___Av8l2{height:100%}.-esm-patient-allergies__allergy-form__formContent___IqWxT{margin:1rem}.-esm-patient-allergies__allergy-form__form___qXnav{display:flex;flex-direction:column;justify-content:space-between}.omrs-breakpoint-gt-tablet .-esm-patient-allergies__allergy-form__form___qXnav{height:100%}.omrs-breakpoint-lt-desktop .-esm-patient-allergies__allergy-form__form___qXnav{height:calc(100vh - 9rem)}.-esm-patient-allergies__allergy-form__loaderContainer___p5X8M{height:100vh}.-esm-patient-allergies__allergy-form__loading___9VLsU{display:flex;justify-content:center;align-items:center;min-height:50%}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/allergies/allergies-form/allergy-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,sDACE,oCAAA,CACA,QAAA,CAGF,uDACE,YAAA,CACA,iCAAA,CACA,iBAAA,CAGF,yEACE,YAAA,CACA,6BAAA,CACA,UAAA,CAGF,0FACE,0BAAA,CAGF,qDACE,aAAA,CAEA,2DACE,0BAAA,CAKF,0EACE,cAAA,CAIJ,iEACE,YAAA,CACA,6BAAA,CAGF,sDACE,WCWW,CDVX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAEA,2EACE,0BAAA,CAGF,iFE2yBE,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CFtyBJ,8DACE,eCpBW,CDuBb,6DACE,eCxBW,CDyBX,mBAAA,CACA,qBDhEM,CCmER,6DACE,eAAA,CACA,QAAA,CAGF,6DACE,WAAA,CAGF,2DACE,WCjDW,CDoDb,oDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CAKA,+EACE,WAAA,CAMF,gFACE,yBAAA,CAIJ,+DACE,YAAA,CAGF,uDACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,cAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.header {\n border-bottom: 0.0625rem solid $grey-2;\n margin: 0;\n}\n\n.content {\n display: grid;\n grid-template-columns: 50% 10% 1fr;\n margin: layout.$spacing-03 layout.$spacing-05;\n}\n\n.wrapperContainer fieldset {\n display: grid;\n grid-template-columns: 1fr 1fr;\n width: 100%;\n}\n\n.wrapperContainer :global(.cds--radio-button__label) {\n justify-content: flex-start;\n}\n\n.radio {\n margin: layout.$spacing-05 0;\n\n label {\n justify-content: flex-start;\n }\n}\n\n.checkbox {\n &:not(:first-child) {\n margin: 0.3rem 0;\n }\n}\n\n.checkboxContainer {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n\n :global(.cds--inline-loading__text) {\n @include type.type-style('body-01');\n }\n}\n\n.desktopButtons {\n margin-top: layout.$spacing-07;\n}\n\n.tabletButtons {\n margin-top: layout.$spacing-07;\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.actionButtons {\n position: sticky;\n bottom: 0;\n}\n\n.formContainer {\n height: 100%;\n}\n\n.formContent {\n margin: layout.$spacing-05;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n/* Desktop */\n:global(.omrs-breakpoint-gt-tablet) {\n .form {\n height: 100%;\n }\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .form {\n height: calc(100vh - 9rem);\n }\n}\n\n.loaderContainer {\n height: 100vh;\n}\n\n.loading {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 50%;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={header:"-esm-patient-allergies__allergy-form__header___P7zvd",content:"-esm-patient-allergies__allergy-form__content___iEv8G",wrapperContainer:"-esm-patient-allergies__allergy-form__wrapperContainer___vsMlt",radio:"-esm-patient-allergies__allergy-form__radio___XTKxu",checkbox:"-esm-patient-allergies__allergy-form__checkbox___0Cnkb",checkboxContainer:"-esm-patient-allergies__allergy-form__checkboxContainer___XnRHC",button:"-esm-patient-allergies__allergy-form__button___NWHJX",desktopButtons:"-esm-patient-allergies__allergy-form__desktopButtons___OHQg0",tabletButtons:"-esm-patient-allergies__allergy-form__tabletButtons___jiQUo",actionButtons:"-esm-patient-allergies__allergy-form__actionButtons___Dg6RD",formContainer:"-esm-patient-allergies__allergy-form__formContainer___Av8l2",formContent:"-esm-patient-allergies__allergy-form__formContent___IqWxT",form:"-esm-patient-allergies__allergy-form__form___qXnav",loaderContainer:"-esm-patient-allergies__allergy-form__loaderContainer___p5X8M",loading:"-esm-patient-allergies__allergy-form__loading___9VLsU"};const r=o}}]);
package/dist/5661.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5661],{35661:e=>{e.exports=JSON.parse('{"add":"添加","allergen":"过敏原","allergenRequired":"Allergen is required","allergies":"过敏","Allergies":"过敏","allergyDeleted":"过敏已删除","allergyIntolerances":"过敏不耐受","allergyNowVisible":"现在在过敏信息页面上可见","allergySaved":"过敏信息已保存","allergySaveError":"保存过敏信息时出现错误","allergyUpdated":"过敏已更新","atLeastOneReactionRequired":"At least one reaction is required","cancel":"取消","comments":"Comments","delete":"删除","deleteModalConfirmationText":"你确定要删除这个过敏吗?","deletePatientAllergy":"删除过敏","deleting":"删除中","discard":"放弃","edit":"编辑","editAllergy":"编辑过敏","editOrDeleteAllergy":"编辑或删除过敏","errorDeletingAllergy":"删除过敏信息时出现错误","loading":"加载中","mild":"温和","moderate":"中等","name":"姓名","nonCodedAllergenRequired":"Please specify the non-coded allergen","nonCodedAllergenWarningDescription":"添加自定义过敏原可能会影响系统范围的过敏通知。建议从提供的列表中选择以获得准确的警报。自定义条目可能无法在所有相关环境中触发通知。","nonCodedAllergenWarningTitle":"警告:自定义过敏原条目","nonCodedAllergicReactionRequired":"Please specify the non-coded allergic reaction","other":"其他","otherNonCodedAllergen":"其他非编码过敏原","otherNonCodedAllergicReaction":"其他非编码过敏反应","reaction":"反应","reactions":"反应","recordNewAllergy":"记录一个新的过敏信息","saveAndClose":"保存并关闭","saving":"Saving","seeAll":"查看全部","selectAllergen":"选择过敏原","selectReactions":"选择过敏反应","severe":"严重","severityandReaction":"严重程度","severityOfWorstReaction":"最严重反应的程度","severityRequired":"Severity is required","typeAdditionalComments":"在此处录入其他附加备注","typeAllergenName":"请键入过敏原的名称","typeAllergicReactionName":"请键入过敏反应的名称"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5661],{35661:e=>{e.exports=JSON.parse('{"add":"添加","allergen":"过敏原","allergenRequired":"Allergen is required","allergies":"过敏","Allergies":"过敏","allergyDeleted":"过敏已删除","allergyIntolerances":"过敏不耐受","allergyNowVisible":"现在在过敏信息页面上可见","allergySaved":"过敏信息已保存","allergySaveError":"保存过敏信息时出现错误","allergyUpdated":"过敏已更新","atLeastOneReactionRequired":"At least one reaction is required","cancel":"取消","comments":"Comments","delete":"删除","deleteModalConfirmationText":"你确定要删除这个过敏吗?","deletePatientAllergy":"删除过敏","deleting":"删除中","discard":"放弃","edit":"编辑","editAllergy":"编辑过敏","editOrDeleteAllergy":"编辑或删除过敏","errorDeletingAllergy":"删除过敏信息时出现错误","loading":"加载中","mild":"温和","moderate":"中等","name":"姓名","nonCodedAllergenRequired":"Please specify the non-coded allergen","nonCodedAllergenWarningDescription":"添加自定义过敏原可能会影响系统范围的过敏通知。建议从提供的列表中选择以获得准确的警报。自定义条目可能无法在所有相关环境中触发通知。","nonCodedAllergenWarningTitle":"警告:自定义过敏原条目","nonCodedAllergicReactionRequired":"Please specify the non-coded allergic reaction","other":"其他","otherNonCodedAllergen":"其他非编码过敏原","otherNonCodedAllergicReaction":"其他非编码过敏反应","reaction":"反应","reactions":"反应","recordNewAllergy":"记录一个新的过敏信息","saveAndClose":"保存并关闭","saving":"Saving","seeAll":"查看全部","selectAllergen":"选择过敏原","selectReactions":"选择过敏反应","severe":"严重","severityandReaction":"严重程度","severityOfWorstReaction":"最严重反应的程度","severityRequired":"Severity is required","typeAdditionalComments":"在此处录入其他附加备注","typeAllergenName":"请键入过敏原的名称","typeAllergicReactionName":"请键入过敏反应的名称","unknown":"Unknown"}')}}]);
package/dist/5670.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[5670],{3026:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)<0},4782:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},5717:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)>0},5950:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},6995:(e,t,r)=>{const n=r(57705),o=r(16632);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},7416:(e,t,r)=>{const n=r(59980),o=r(94568),s=r(5717),i=r(36102),a=r(3026),c=r(95419);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return o(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7566:(e,t,r)=>{const n=r(5950);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},15934:(e,t,r)=>{const n=r(79413);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(86891).SEMVER_SPEC_VERSION,SemVer:r(57705),compareIdentifiers:r(83610).compareIdentifiers,rcompareIdentifiers:r(83610).rcompareIdentifiers,parse:r(40663),valid:r(4782),clean:r(26669),inc:r(29384),diff:r(36609),major:r(41529),minor:r(75581),patch:r(29558),prerelease:r(69168),compare:r(82463),rcompare:r(82367),compareLoose:r(75488),compareBuild:r(5950),sort:r(52142),rsort:r(7566),gt:r(5717),lt:r(3026),eq:r(59980),neq:r(94568),gte:r(36102),lte:r(95419),cmp:r(7416),coerce:r(22059),Comparator:r(43473),Range:r(16632),satisfies:r(94753),toComparators:r(31752),maxSatisfying:r(6995),minSatisfying:r(99481),minVersion:r(65796),validRange:r(54623),outside:r(20650),gtr:r(89414),ltr:r(86859),intersects:r(25995),simplifyRange:r(46290),subset:r(80483)}},16632:(e,t,r)=>{class n{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(r,A(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],l),s("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],p)).replace(a[c.CARETTRIM],u)).split(/\s+/).join(" ");const n=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR];return e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>S(e,this.options))).filter(this.options.loose?e=>!!e.match(n):()=>!0).map((e=>new o(e,this.options)))}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>f(r,t)&&e.set.some((e=>f(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=r(43473),s=r(29306),i=r(57705),{re:a,t:c,comparatorTrimReplace:l,tildeTrimReplace:p,caretTrimReplace:u}=r(79413),f=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},h=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=d(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=y(e,t),s("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,d=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),m(r)?a="":m(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:m(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{s("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,a)=>{let c;return s("caret",e,t,r,o,i,a),m(r)?c="":m(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",c),c}))},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,((r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=m(o),p=l||m(i),u=p||m(a),f=u;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(p&&(i=0),a=0,">"===n?(n=">=",p?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",p?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):p?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:u&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},y=(e,t)=>(s("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=e=>(t,r,n,o,s,i,a,c,l,p,u,f,h)=>`${r=m(n)?"":m(o)?`>=${n}.0.0${e?"-0":""}`:m(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=m(l)?"":m(p)?`<${+l+1}.0.0-0`:m(u)?`<${l}.${+p+1}.0-0`:f?`<=${l}.${p}.${u}-${f}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),R=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},20650:(e,t,r)=>{const n=r(57705),o=r(43473),{ANY:s}=o,i=r(16632),a=r(94753),c=r(5717),l=r(3026),p=r(95419),u=r(36102);e.exports=(e,t,r,f)=>{let h,m,d,g,E;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,m=p,d=l,g=">",E=">=";break;case"<":h=l,m=u,d=c,g="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:d(e.semver,a.semver,f)&&(a=e)})),i.operator===g||i.operator===E)return!1;if((!a.operator||a.operator===g)&&m(e,a.semver))return!1;if(a.operator===E&&d(e,a.semver))return!1}return!0}},22059:(e,t,r)=>{const n=r(57705),o=r(40663),{re:s,t:i}=r(79413);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},25995:(e,t,r)=>{const n=r(16632);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},26669:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},29306:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},29384:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},29558:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).patch},31752:(e,t,r)=>{const n=r(16632);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},36102:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)>=0},36609:(e,t,r)=>{const n=r(40663),o=r(59980);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),s=r.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return i+e;return a}}},40663:(e,t,r)=>{const{MAX_LENGTH:n}=r(86891),{re:o,t:s}=r(79413),i=r(57705);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},41529:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).major},43473:(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||c||l}}e.exports=o;const{re:s,t:i}=r(79413),a=r(7416),c=r(29306),l=r(57705),p=r(16632)},46290:(e,t,r)=>{const n=r(94753),o=r(82463);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,r)));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},52142:(e,t,r)=>{const n=r(5950);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},54623:(e,t,r)=>{const n=r(16632);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},55670:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ActionMenu:()=>G.WyE,ActionMenuButton:()=>G.EDM,ActionMenuButton2:()=>G.Wjo,ActionableNotificationComponent:()=>G.drd,ActivityIcon:()=>G.npY,AddIcon:()=>G.REV,AllergiesIcon:()=>G.UgN,AppointmentsAltPictogram:()=>G.MnZ,AppointmentsPictogram:()=>G.B1u,ArrowDownIcon:()=>G.ZLN,ArrowLeftIcon:()=>G.A60,ArrowRightIcon:()=>G.flY,ArrowUpIcon:()=>G.Kpk,Assessment1Pictogram:()=>G.IHy,Assessment2Pictogram:()=>G.$iy,AttachmentIcon:()=>G.PtA,BabyIcon:()=>G.qYP,BloodBankPictogram:()=>G.nvs,Breakpoint:()=>G.EA,CalendarHeatMapIcon:()=>G.mmM,CalendarIcon:()=>G.CTc,CardiologyPictogram:()=>G.uU$,CaretDownIcon:()=>G.bDP,CaretLeftIcon:()=>G.eCO,CaretRightIcon:()=>G.JJd,CaretUpIcon:()=>G.SwV,ChartAverageIcon:()=>G.ZHE,CheckmarkFilledIcon:()=>G.FtQ,CheckmarkOutlineIcon:()=>G.pm$,ChemistryIcon:()=>G.W4t,ChevronDownIcon:()=>G.D3D,ChevronLeftIcon:()=>G.YJP,ChevronRightIcon:()=>G.vKP,ChevronUpIcon:()=>G.Mtm,CloseFilledIcon:()=>G.oCk,CloseIcon:()=>G.USm,CloseOutlineIcon:()=>G.Wdn,ComponentContext:()=>$.zq,ConditionsIcon:()=>G.ci3,ConfigurableLink:()=>$.i_,CtScanPictogram:()=>G.DeE,CustomOverflowMenu:()=>G.TQT,DashboardExtension:()=>G.cJN,DentistryPictogram:()=>G.TNY,DiagnosisTags:()=>G.Fzf,DocumentAttachmentIcon:()=>G.Ce6,DocumentIcon:()=>G.pyG,DownloadIcon:()=>G.s3U,DrugOrderIcon:()=>G.uqj,EditIcon:()=>G.qUP,EmergencyDepartmentPictogram:()=>G.sgv,ErrorState:()=>G.W5n,EventScheduleIcon:()=>G.XaH,EventsIcon:()=>G.Jc,Extension:()=>$.YY,ExtensionSlot:()=>$.W3,FacilityPictogram:()=>G.ECF,GenderFemaleIcon:()=>G.XB2,GenderMaleIcon:()=>G.szA,GenderOtherIcon:()=>G.hXZ,GenderUnknownIcon:()=>G.x1U,GenericOrderTypeIcon:()=>G.naI,GeriatricsPictogram:()=>G.SQq,GroupAccessIcon:()=>G.Pyy,GroupIcon:()=>G.nFg,GynaecologyPictogram:()=>G.owH,HomePictogram:()=>G.KKH,HospitalBedIcon:()=>G.jMM,Icon:()=>G.Int,ImageMedicalIcon:()=>G.Ix5,InPatientPictogram:()=>G.thS,InformationFilledIcon:()=>G._e_,InformationIcon:()=>G.uQc,InformationSquareIcon:()=>G.ZrL,InventoryManagementIcon:()=>G.vFG,LabOrderIcon:()=>G.hi6,LaboratoryPictogram:()=>G.ehn,Labs2Pictogram:()=>G.rpF,LeftNavMenu:()=>G.Ojh,ListCheckedIcon:()=>G.Rt$,LocationIcon:()=>G.BT6,LocationPicker:()=>G.MTs,MaterialOrderIcon:()=>G.zZ0,MaximizeIcon:()=>G._Xm,MaybeIcon:()=>G.oy0,MaybePictogram:()=>G.bmf,MedicationIcon:()=>G.Fnj,MessageQueueIcon:()=>G.uFu,MicroscopeIcon:()=>G.u4h,MoneyIcon:()=>G.yBj,MotherIcon:()=>G.XEq,MovementIcon:()=>G.lyJ,Notification:()=>G.Eg0,ObstetricsPictogram:()=>G.Bk2,OpenmrsAppContext:()=>$.p6,OpenmrsDatePicker:()=>G.rnR,OpenmrsDateRangePicker:()=>G.Yem,OpenmrsFetchError:()=>n.$f,OverflowMenuHorizontalIcon:()=>G.rv3,OverflowMenuVerticalIcon:()=>G.Rnm,PageHeader:()=>G.zYs,PageHeaderContent:()=>G.gpz,PasswordIcon:()=>G.BGy,PatientBannerActionsMenu:()=>G.k1U,PatientBannerContactDetails:()=>G.m5G,PatientBannerPatientIdentifiers:()=>G.XIV,PatientBannerPatientInfo:()=>G.zvf,PatientBannerToggleContactDetailsButton:()=>G.Qgu,PatientListsPictogram:()=>G.$2H,PatientPhoto:()=>G.yV,PatientSearchPictogram:()=>G.cxq,PatientsPictogram:()=>G.X25,PaymentsDeskPictogram:()=>G.dNG,PedestrianFamilyIcon:()=>G.PPo,PenIcon:()=>G.rZj,Pharmacy2Pictogram:()=>G.Q92,PharmacyPictogram:()=>G.w21,Pictogram:()=>G.bF1,PrinterIcon:()=>G.wwY,ProcedureOrderIcon:()=>G.H0x,ProgramsIcon:()=>G.lq$,RadiologyIcon:()=>G.SA3,ReferralOrderIcon:()=>G.tCH,RegistrationPictogram:()=>G.et7,RenderIfValueIsTruthy:()=>$.fS,RenewIcon:()=>G.JTN,ReportIcon:()=>G.cQD,ResetIcon:()=>G.NAP,ResponsiveWrapper:()=>G.KFv,SaveIcon:()=>G.LPu,SearchIcon:()=>G.WIv,ServiceQueuesPictogram:()=>G.Y21,SettingsIcon:()=>G.Zes,ShoppingCartAddItemIcon:()=>G.Uve,ShoppingCartArrowDownIcon:()=>G.Lfm,ShoppingCartIcon:()=>G.aJF,Snackbar:()=>G.qb_,StickyNoteAddIcon:()=>G.OC$,StockManagementPictogram:()=>G.q__,SwitcherIcon:()=>G.RFy,SyringeIcon:()=>G.hZg,TableIcon:()=>G.KbA,TableOfContentsIcon:()=>G.pYV,TimeIcon:()=>G.b1c,Toast:()=>G.y8,ToolsIcon:()=>G.dwU,TransferPictogram:()=>G.SKX,TranslateIcon:()=>G.SwB,TrashCanIcon:()=>G.EJV,TreeViewAltIcon:()=>G.MO4,TriagePictogram:()=>G.XHu,Type:()=>o.ZU,UserAvatarIcon:()=>G.yDT,UserFollowIcon:()=>G.osL,UserHasAccess:()=>$.qw,UserIcon:()=>G.nys,UserXrayIcon:()=>G.feL,ViewIcon:()=>G.tCQ,ViewOffIcon:()=>G.Oi_,VisitMode:()=>i.dx,VisitStatus:()=>i.Cj,WarningIcon:()=>G.id,Workspace2:()=>G.ozP,WorkspaceContainer:()=>G.XvC,WorkspaceNotification:()=>G.tMf,XrayPictogram:()=>G.B2u,activateOfflineCapability:()=>I.nr,addRoutesOverride:()=>P,age:()=>U.K,attach:()=>m.K0,attachmentUrl:()=>i.Zu,backendDependencies:()=>n.QE,beginEditSynchronizationItem:()=>I.FO,canAccessStorage:()=>L,canBeginEditSynchronizationItemsOfType:()=>I.xN,canCloseWorkspaceWithoutPrompting:()=>G.SvQ,cancelPrompt:()=>G.zlb,changeWorkspaceContext:()=>G.JKc,checkStatus:()=>m.dO,checkStatusFor:()=>m.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearConfigErrors:()=>o.Nh,clearCurrentUser:()=>n.g$,clearHistory:()=>E.g4,closeAllWorkspaces:()=>G.G_3,closeWorkspace:()=>G.MJ8,closeWorkspaceGroup2:()=>G.biy,compile:()=>c.wE,configExtensionStore:()=>o.hs,configInternalStore:()=>o.Rt,convertToLocaleCalendar:()=>W.d4,createAttachment:()=>i.cD,createErrorHandler:()=>a.J,createGlobalStore:()=>M.Zd,createUseStore:()=>$.rr,defaultVisitCustomRepresentation:()=>i.Rb,defineConfigSchema:()=>o.T0,defineExtensionConfigSchema:()=>o.ks,deleteAttachmentPermanently:()=>i.SY,deleteSynchronizationItem:()=>I.lY,detach:()=>m.Yo,detachAll:()=>m.No,dispatchActionableNotificationShown:()=>g.LQ,dispatchConnectivityChanged:()=>g.Yt,dispatchNotificationShown:()=>g.FI,dispatchPrecacheStaticDependencies:()=>g.pc,dispatchSnackbarShown:()=>g.$3,dispatchToastShown:()=>g.Vt,displayName:()=>V.QC,esmStyleGuideSchema:()=>G.uQD,evaluate:()=>c._3,evaluateAsBoolean:()=>c.eb,evaluateAsBooleanAsync:()=>c.Gz,evaluateAsNumber:()=>c.dX,evaluateAsNumberAsync:()=>c.$F,evaluateAsType:()=>c.Sj,evaluateAsTypeAsync:()=>c.uN,evaluateAsync:()=>c.mv,extractVariableNames:()=>u,featureFlagsStore:()=>d.jX,fetchCurrentPatient:()=>i.hG,fhirBaseUrl:()=>n.IU,filterBreadcrumbs:()=>E.D_,finishRegisteringAllApps:()=>N,formatDate:()=>W.Yq,formatDatetime:()=>W.Rt,formatDuration:()=>W.a3,formatPartialDate:()=>W.LW,formatPatientName:()=>V.Qr,formatTime:()=>W.fU,formattedName:()=>V.qK,generateOfflineUuid:()=>I.sA,getAssignedExtensions:()=>m.zx,getAsyncExtensionLifecycle:()=>$.sc,getAsyncLifecycle:()=>$.ns,getAttachmentByUuid:()=>i.KU,getAttachments:()=>i.Bv,getBreadcrumbs:()=>E.lz,getBreadcrumbsFor:()=>E.qh,getConfig:()=>o.zj,getConfigStore:()=>o.IS,getCoreTranslation:()=>j.V,getCurrentImportMap:()=>s.Ln,getCurrentOfflineMode:()=>I.wJ,getCurrentUser:()=>n.HW,getDefaultCalendar:()=>W.a7,getDefaultsFromConfigSchema:()=>_,getDynamicOfflineDataEntries:()=>I.FE,getDynamicOfflineDataEntriesFor:()=>I.WA,getDynamicOfflineDataHandlers:()=>I.qb,getExtensionConfig:()=>o.UY,getExtensionConfigFromExtensionSlotStore:()=>o.g$,getExtensionConfigFromStore:()=>o.P0,getExtensionInternalStore:()=>m.a9,getExtensionNameFromId:()=>m.ES,getExtensionRegistration:()=>m.Tj,getExtensionRegistrationFrom:()=>m.xg,getExtensionSlotConfig:()=>o.G9,getExtensionSlotConfigFromStore:()=>o.vu,getExtensionSlotsConfigStore:()=>o.YP,getExtensionStore:()=>m.zF,getExtensionsConfigStore:()=>o.GI,getFeatureFlag:()=>d.jj,getFhirServerPaginationHandlers:()=>$.mw,getFullSynchronizationItems:()=>I.C$,getFullSynchronizationItemsFor:()=>I.xc,getGlobalStore:()=>M.jf,getGroupByWindowName:()=>m.o1,getHistory:()=>E.JK,getLifecycle:()=>$.JK,getLocale:()=>B.J,getLocations:()=>i.Vs,getLoggedInUser:()=>n.xC,getModalRegistration:()=>m.Fg,getOfflineDb:()=>I.e,getOfflinePatientDataStore:()=>I.WK,getOfflineSynchronizationStore:()=>I.LM,getOmrsServiceWorker:()=>I.Rs,getOpenedWindowIndexByWorkspace:()=>m.YX,getPatientName:()=>V.Vp,getPromptBeforeClosingFcn:()=>G.OeE,getSessionLocation:()=>n.Kx,getSessionStore:()=>n.EW,getStartedVisit:()=>i.DK,getSyncLifecycle:()=>$.g9,getSynchronizationItem:()=>I.Gp,getSynchronizationItems:()=>I.pb,getSynchronizationItemsFor:()=>I.Io,getTranslationOverrides:()=>o.td,getVisitStore:()=>i.BX,getVisitTypes:()=>i.Pu,getVisitsForPatient:()=>i.BR,getWindowByWorkspaceName:()=>m.Ml,getWorkspaceGroupRegistration:()=>m.Q_,getWorkspaceGroupStore:()=>G.e_T,getWorkspaceRegistration:()=>m.Xb,getWorkspaceStore:()=>G.XzH,goBackInHistory:()=>E.tA,iconIds:()=>G.kE8,implementerToolsConfigStore:()=>o.tN,importDynamic:()=>s.rL,inRange:()=>o.r4,integrateBreakpoints:()=>G.WMK,interpolateString:()=>E.zl,interpolateUrl:()=>E.JG,isDesktop:()=>$.xl,isDevEnabled:()=>n.L7,isOfflineUuid:()=>I.bO,isOmrsDateStrict:()=>W.hl,isOmrsDateToday:()=>W.vU,isOnline:()=>H.s,isOpenmrsAppRoutes:()=>F,isOpenmrsRoutes:()=>k,isUrl:()=>o.gU,isUrlWithTemplateParameters:()=>o.qG,isVersionSatisfied:()=>J,jsep:()=>c.PQ,launchWorkspace:()=>G.TC2,launchWorkspace2:()=>G.pTx,launchWorkspaceGroup:()=>G.aN0,launchWorkspaceGroup2:()=>G.GYk,leftNavStore:()=>m.Gp,loadLifeCycles:()=>S.o,localStorageRoutesPrefix:()=>O,makeUrl:()=>n.Gm,messageOmrsServiceWorker:()=>I.ms,navigate:()=>E.oo,navigateAndLaunchWorkspace:()=>G.Fmw,offlineUuidPrefix:()=>I.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>I.JC,omrsOfflineResponseBodyHttpHeaderName:()=>I.UH,omrsOfflineResponseStatusHttpHeaderName:()=>I.Gj,oneOf:()=>o.yL,openmrsComponentDecorator:()=>$.F7,openmrsFetch:()=>n.lo,openmrsObservableFetch:()=>n.ut,parseDate:()=>W._U,pictogramIds:()=>G.vJW,preloadImport:()=>s.zC,processConfig:()=>o.mq,promptBeforeClosing:()=>G.F3N,promptForClosingWorkspaces:()=>G.hLN,provide:()=>o.Gt,putDynamicOfflineData:()=>I.yD,putDynamicOfflineDataFor:()=>I.ff,queueSynchronizationItem:()=>I.Zr,queueSynchronizationItemFor:()=>I.Iq,refetchCurrentUser:()=>n.yH,registerApp:()=>w,registerBreadcrumb:()=>E.vf,registerBreadcrumbs:()=>E.MY,registerDefaultCalendar:()=>W.XE,registerExtension:()=>m.VK,registerExtensionSlot:()=>m.FY,registerFeatureFlag:()=>d.uA,registerGlobalStore:()=>M.CE,registerModal:()=>m.Ju,registerModuleLoad:()=>o.kl,registerModuleWithConfigSystem:()=>o.FL,registerOfflinePatientHandler:()=>I.KG,registerOmrsServiceWorker:()=>I.sZ,registerTranslationNamespace:()=>o.GV,registerWorkspace:()=>m.pm,registerWorkspaceGroup:()=>m.io,registerWorkspaceGroups2:()=>m.rD,registerWorkspaceWindows2:()=>m.Qb,registerWorkspaces2:()=>m.Uh,removeDynamicOfflineData:()=>I.NU,removeDynamicOfflineDataFor:()=>I.wn,removeRoutesOverride:()=>C,renderActionableNotifications:()=>G.zfR,renderExtension:()=>m.wG,renderInlineNotifications:()=>G.CU$,renderLoadingSpinner:()=>G.uWG,renderSnackbars:()=>G.ZLm,renderToasts:()=>G.f1b,renderWorkspaceWindowsAndMenu:()=>G.jCr,reportError:()=>a.N,reset:()=>m.cL,resetAllRoutesOverrides:()=>x,resetWorkspaceStore:()=>G._1W,restBaseUrl:()=>n.Jj,retry:()=>Q,runSynchronization:()=>I.AO,saveVisit:()=>i.Ds,selectPreferredName:()=>V.VO,sessionEndpoint:()=>n.Ct,sessionStore:()=>n.eA,setCurrentOfflineMode:()=>I.Og,setCurrentVisit:()=>i.NH,setFeatureFlag:()=>d.B4,setLeftNav:()=>m.Vx,setSessionLocation:()=>n.Gp,setUserLanguage:()=>n.E4,setUserProperties:()=>n.Fi,setupApiModule:()=>n.Y0,setupDynamicOfflineDataHandler:()=>I.iD,setupHistory:()=>E.Wh,setupModals:()=>G.EPe,setupOfflineSync:()=>I.cy,shallowEqual:()=>X.b,showActionableNotification:()=>G.ZyP,showModal:()=>G.toY,showNotification:()=>G.Dsh,showSnackbar:()=>G.tdF,showToast:()=>G.P0c,showWorkspacePrompts:()=>G.ctS,slugify:()=>s.Yv,subscribeActionableNotificationShown:()=>g.bK,subscribeConnectivity:()=>g.sT,subscribeConnectivityChanged:()=>g.gj,subscribeNotificationShown:()=>g.bJ,subscribePrecacheStaticDependencies:()=>g.ff,subscribeSnackbarShown:()=>g.ls,subscribeTo:()=>M.i7,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>g.dX,syncAllDynamicOfflineData:()=>I.Td,syncDynamicOfflineData:()=>I.u1,syncOfflinePatientData:()=>I.sK,temporaryConfigStore:()=>o.H,toDateObjectStrict:()=>W.kQ,toLocationObject:()=>i.E$,toOmrsIsoString:()=>W.l0,toVisitTypeObject:()=>i.Qx,translateFrom:()=>j.t,tryRegisterExtension:()=>A,unsetLeftNav:()=>m.sr,updateInternalExtensionStore:()=>m.DQ,updateVisit:()=>i.xL,updateWorkspaceWindowState:()=>G._RD,useAbortController:()=>$.Ie,useAppContext:()=>$.Us,useAssignedExtensionIds:()=>$.Tt,useAssignedExtensions:()=>$.CX,useAttachments:()=>$._9,useBodyScrollLock:()=>$.yJ,useConfig:()=>$.UK,useConnectedExtensions:()=>$.zD,useConnectivity:()=>$.Fx,useDebounce:()=>$.d7,useDefineAppContext:()=>$.jn,useEmrConfiguration:()=>$.E4,useExtensionInternalStore:()=>$.$B,useExtensionSlot:()=>$.br,useExtensionSlotMeta:()=>$.Wq,useExtensionSlotStore:()=>$.uL,useExtensionStore:()=>$.Gz,useFeatureFlag:()=>$.u,useFhirFetchAll:()=>$.oq,useFhirInfinite:()=>$.vL,useFhirPagination:()=>$.to,useForceUpdate:()=>$.CH,useLayoutType:()=>$.qv,useLeftNav:()=>$.if,useLeftNavStore:()=>$.TA,useLocations:()=>$.kH,useOnClickOutside:()=>$.Wr,useOnVisible:()=>$.Jm,useOpenmrsFetchAll:()=>$.Bf,useOpenmrsInfinite:()=>$.iy,useOpenmrsPagination:()=>$.Ed,useOpenmrsSWR:()=>$.M3,usePagination:()=>$.WQ,usePatient:()=>$.tQ,usePatientPhoto:()=>G.R9n,usePrimaryIdentifierCode:()=>$.wJ,useRenderableExtensions:()=>$.oU,useSession:()=>$.wV,useStore:()=>$.Pj,useStoreWithActions:()=>$.mQ,useVisit:()=>$.fq,useVisitContextStore:()=>$.xH,useVisitTypes:()=>$.wr,useWorkspace2Store:()=>G.AkA,useWorkspaces:()=>G.CH0,userHasAccess:()=>n.st,validator:()=>o.Nc,validators:()=>o.y$,workspace2Store:()=>m.J_,workspaceStore:()=>G.x9q});var n=r(20367),o=r(95819),s=r(47709),i=r(34945),a=r(60937),c=r(87440),l=r(19758),p=r(89987);function u(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=p.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return f("string"==typeof e?(0,l.A)(e):e,t),[...t.variables]}function f(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return f(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[f(e.left,t),f(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[f(e.consequent,t),f(e.test,t),f(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=f(e.callee,t);return e.arguments?.map(h(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const n=e.params?.map(h(r))??[],o=f(e.body,r)??[];if(o&&Array.isArray(o))for(const e of o)n.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){f(e.object,t);const r={...t};r.isLocalExpression=!0,f(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map(h(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map(h(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map(h(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map(h(t)),e.quasis?.map(h(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function h(e){return function(t){return null===t?null:f(t,e)}}var m=r(27354),d=r(76110),g=r(23184),E=r(11305),I=r(39644),$=r(58379);const O="openmrs-routes:";var y=r(22244),S=r(55226);function A(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const n=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,m.VK)({name:r,load:()=>(0,S.o)(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag});for(const e of n)(0,m.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const R=[];function v(e){if(Array.isArray(e)){const t=e.map(v);return e=>t.some((t=>t(e)))}return"string"==typeof e?(0,y.fz)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function w(e,t){if(e&&t&&"object"==typeof t){(0,o.FL)(e);const n=t.extensions??[],s=t.modals??[],i=t.workspaces??[],a=t.workspaceGroups??[],c=t.featureFlags??[],l=t.workspaceGroups2??[],p=t.workspaceWindows2??[],u=t.workspaces2??[];t.pages?.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?R.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)})),n.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?A(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)})),s.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,m.Ju)({name:r,moduleName:e,load:()=>(0,S.o)(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)})),i.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const n=t.title;if(n)if(t.component){(0,m.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>(0,S.o)(e,t.component)});for(const e of t.groups||[])(0,m.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)})),a.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,m.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)})),r=l,(0,m.rD)(r),function(e,t){(0,m.Qb)(e,t)}(e,p),function(e,t){(0,m.Uh)(e,t)}(e,u),c.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,d.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)}))}var r}function N(){R.sort(((e,t)=>e.appName.localeCompare(t.appName,"en")));let e=new Map;for(let t of R){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),n=`${t.appName}-page-${r}`,o=t.containerDomId??"omrs-apps-container",s=document.getElementById(o),i=`single-spa-application:${n}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${o}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}T(n,t)}}function T(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const n=function(e,{online:t,offline:r,featureFlag:n}){return window.offlineEnabled?o=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(n&&!(0,d.jj)(n))&&e(o):e}(v(r),t);(0,y.AG)(e,(()=>(0,S.o)(t.appName,t.component)),n)}function L(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}const b=L();function P(e,t){if(b){if("string"==typeof t){if(t.startsWith("http"))return D(e,t);try{const r=JSON.parse(t);if(F(r))return D(e,r);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}}else{if(t instanceof URL)return D(e,t.toString());if(F(t))return D(e,t)}console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t)}}function C(e){if(!b)return;const t=O+e;localStorage.removeItem(t)}function x(){if(!b)return;const e=window.localStorage;for(let t=0;t<e.length;t++){const r=e.key(t);r?.startsWith(O)&&e.removeItem(r)}}function D(e,t){const r=O+e;localStorage.setItem(r,JSON.stringify(t))}function F(e){if(e&&"object"==typeof e){const t=Object.prototype.hasOwnProperty,r=e;return!!((!t.call(e,"pages")||Boolean(r.pages)&&Array.isArray(r.pages))&&(!t.call(e,"extensions")||Boolean(r.extensions)&&Array.isArray(r.extensions))&&(!t.call(e,"workspaces")||Boolean(r.workspaces)&&Array.isArray(r.workspaces))&&(!t.call(e,"modals")||Boolean(r.modals)&&Array.isArray(r.modals)))}return!1}function k(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every((([e,t])=>"string"==typeof e&&F(t)))}return!1}var M=r(22337),G=r(75836),j=r(7661),U=r(2545),W=r(57699),B=r(4617),H=r(52834),V=r(59591),X=r(27388);function _(e){let t={};for(let r of Object.keys(e))if(z(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;z(e[r])?t[r]=_(e[r]):t[r]=e[r]}return t}function z(e){return!!e&&e.constructor===Object}var q=r(15934);function Y(e){const[t,r,n]=e.split(".");return`${t}.${r}.${n}`}function J(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${Y(e.slice(0,t))}-${e.slice(t+1)}`:Y(e)}(t);return q.satisfies(r,e,{includePrerelease:!0})}async function Q(e,t={}){let{shouldRetry:r,getDelay:n,onError:o}=t;r=r??(e=>function(e){return e<=5}(e)),n=n??(e=>function(e,t,r=!1){const n=r?e+1:e;return 1e3*Math.pow(2,n)}(e));let s,i=0;do{try{return await K(n(i)),await e()}catch(e){o?.(e,i),s=e}}while(r(i++));throw s}async function K(e){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}},57705:(e,t,r)=>{const n=r(29306),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(86891),{re:i,t:a}=r(79413),{compareIdentifiers:c}=r(83610);class l{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},59980:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>0===n(e,t,r)},65796:(e,t,r)=>{const n=r(57705),o=r(16632),s=r(5717);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!s(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));return r&&e.test(r)?r:null}},69168:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},75488:(e,t,r)=>{const n=r(82463);e.exports=(e,t)=>n(e,t,!0)},75581:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).minor},79413:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(86891),o=r(29306),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,i[n]=t,s[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},80483:(e,t,r)=>{const n=r(16632),{ANY:o}=r(43473),s=r(94753),i=r(82463),a=(e,t,r)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const n=new Set;let a,p,u,f,h,m,d;for(const t of e)">"===t.operator||">="===t.operator?a=c(a,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&p){if(u=i(a.semver,p.semver,r),u>0)return null;if(0===u&&(">="!==a.operator||"<="!==p.operator))return null}for(const e of n){if(a&&!s(e,String(a),r))return null;if(p&&!s(e,String(p),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}for(const e of t){if(d=d||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(f=c(a,e,r),f===e)return!1}else if(">="===a.operator&&!s(a.semver,String(e),r))return!1;if(p)if("<"===e.operator||"<="===e.operator){if(h=l(p,e,r),h===e)return!1}else if("<="===p.operator&&!s(p.semver,String(e),r))return!1;if(!e.operator&&(p||a)&&0!==u)return!1}return!(a&&m&&!p&&0!==u||p&&d&&!a&&0!==u)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=a(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},82367:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(t,e,r)},82463:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},83610:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},86859:(e,t,r)=>{const n=r(20650);e.exports=(e,t,r)=>n(e,t,"<",r)},86891:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},89414:(e,t,r)=>{const n=r(20650);e.exports=(e,t,r)=>n(e,t,">",r)},94568:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>0!==n(e,t,r)},94753:(e,t,r)=>{const n=r(16632);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},95419:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)<=0},99481:(e,t,r)=>{const n=r(57705),o=r(16632);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"5670.js","mappings":"uJAAA,MAAMA,EAAU,EAAQ,OAExBC,EAAOC,QADI,CAACC,EAAGC,EAAGC,IAAUL,EAAQG,EAAGC,EAAGC,GAAS,C,iBCDnD,MAAMC,EAAQ,EAAQ,OAKtBL,EAAOC,QAJO,CAACK,EAASC,KACtB,MAAMC,EAAIH,EAAMC,EAASC,GACzB,OAAOC,EAAIA,EAAEF,QAAU,K,iBCHzB,MAAMP,EAAU,EAAQ,OAExBC,EAAOC,QADI,CAACC,EAAGC,EAAGC,IAAUL,EAAQG,EAAGC,EAAGC,GAAS,C,iBCDnD,MAAMK,EAAS,EAAQ,OAMvBT,EAAOC,QALc,CAACC,EAAGC,EAAGC,KAC1B,MAAMM,EAAW,IAAID,EAAOP,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ExB5D,EAAOC,QADK,CAACK,EAASS,EAAOR,IAAYqD,EAAQtD,EAASS,EAAO,IAAKR,E,kBCFtE,MAAMR,EAAU,EAAQ,OAExBC,EAAOC,QADK,CAACC,EAAGC,EAAGC,IAAmC,IAAzBL,EAAQG,EAAGC,EAAGC,E,kBCD3C,MAAMS,EAAQ,EAAQ,OAStBb,EAAOC,QARW,CAACK,EAASS,EAAOR,KACjC,IACEQ,EAAQ,IAAIF,EAAME,EAAOR,EAC3B,CAAE,MAAOY,GACP,OAAO,CACT,CACA,OAAOJ,EAAMM,KAAKf,G,kBCPpB,MAAMP,EAAU,EAAQ,OAExBC,EAAOC,QADK,CAACC,EAAGC,EAAGC,IAAUL,EAAQG,EAAGC,EAAGC,IAAU,C,kBCDrD,MAAMK,EAAS,EAAQ,OACjBI,EAAQ,EAAQ,OAsBtBb,EAAOC,QArBe,CAACa,EAAUC,EAAOR,KACtC,IAAI+M,EAAM,KACNkR,EAAQ,KACRtd,EAAW,KACf,IACEA,EAAW,IAAIL,EAAME,EAAOR,EAC9B,CAAE,MAAOY,GACP,OAAO,IACT,CAWA,OAVAL,EAASM,SAASZ,IACZU,EAASG,KAAKb,KAEX8M,GAA4B,IAArBkR,EAAMze,QAAQS,KAExB8M,EAAM9M,EACNge,EAAQ,IAAI/d,EAAO6M,EAAK/M,QAIvB+M,E","sources":["webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lt.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/valid.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-build.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/max-satisfying.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/cmp.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rsort.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/index.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/outside.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/coerce.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/intersects.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/clean.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/inc.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/patch.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/to-comparators.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gte.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/diff.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/major.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/simplify.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/sort.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/valid.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-expression-evaluator/dist/extractor.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-routes/dist/constants.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-routes/dist/loaders/components.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-routes/dist/loaders/pages.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-routes/dist/loaders/helpers.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/dist/storage.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-routes/dist/routes.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/dist/test-helpers.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/dist/version.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/dist/retry.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/eq.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-version.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/prerelease.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-loose.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/minor.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/subset.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rcompare.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/identifiers.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/ltr.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/gtr.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/neq.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lte.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-satisfying.js"],"names":["compare","module","exports","a","b","loose","parse","version","options","v","SemVer","versionA","versionB","compareBuild","Range","versions","range","max","maxSV","rangeObj","er","forEach","test","eq","neq","gt","gte","lt","lte","op","TypeError","list","sort","internalRe","re","src","tokens","t","SEMVER_SPEC_VERSION","compareIdentifiers","rcompareIdentifiers","valid","clean","inc","diff","major","minor","patch","prerelease","rcompare","compareLoose","rsort","cmp","coerce","Comparator","satisfies","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","constructor","includePrerelease","raw","this","value","set","format","split","map","parseRange","trim","filter","c","length","comps","join","toString","hr","HYPHENRANGELOOSE","HYPHENRANGE","replace","hyphenReplace","debug","COMPARATORTRIM","comparatorTrimReplace","TILDETRIM","tildeTrimReplace","CARETTRIM","caretTrimReplace","compRe","COMPARATORLOOSE","COMPARATOR","comp","parseComparator","replaceGTE0","match","some","thisComparators","isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","i","testSet","comparators","result","remainingComparators","slice","testComparator","pop","otherComparator","replaceCarets","replaceTildes","replaceXRanges","replaceStars","isX","id","toLowerCase","replaceTilde","r","TILDELOOSE","TILDE","_","M","m","p","pr","ret","replaceCaret","CARETLOOSE","CARET","z","replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","anyX","STAR","GTE0PRE","GTE0","incPr","$0","from","fM","fm","fp","fpr","fb","to","tM","tm","tp","tpr","tb","semver","ANY","allowed","hilo","gtfn","ltefn","ltfn","ecomp","high","low","comparator","operator","String","rtl","next","COERCERTL","exec","index","lastIndex","COERCE","r1","r2","s","process","env","NODE_DEBUG","args","console","error","release","identifier","undefined","version1","version2","v1","v2","hasPre","prefix","defaultResult","key","MAX_LENGTH","LOOSE","FULL","Symbol","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","min","prev","push","ranges","simplified","original","extractVariableNames","expression","context","globals_","globalsAsync","globals","isLocalExpression","variables","Set","visitExpression","jsep","type","argument","visitUnaryExpression","left","right","Boolean","visitBinaryExpression","consequent","alternate","visitConditionalExpression","fn","callee","arguments","handleNullableExpression","visitCallExpression","newContext","params","bodyVariables","body","Array","isArray","includes","add","visitArrowFunctionExpression","object","property","visitMemberExpression","elements","visitArrayExpression","expressions","visitSequenceExpression","visitNewExpression","name","visitIdentifier","quasis","visitTemplateLiteral","localStorageRoutesPrefix","tryRegisterExtension","appName","extension","slots","slot","warn","component","registerExtension","load","loadLifeCycles","meta","order","moduleName","privileges","online","offline","featureFlag","attach","pages","getActivityFn","route","activators","location","activator","pathToActiveWhen","window","getOpenmrsSpaBase","RegExp","regex","pathname","routeRegex","registerApp","routes","registerModuleWithConfigSystem","availableExtensions","extensions","availableModals","modals","availableWorkspaces","workspaces","availableWorkspaceGroups","workspaceGroups","availableFeatureFlags","featureFlags","availableWorkspaceGroups2","workspaceGroups2","availableWorkspaceWindows2","workspaceWindows2","availableWorkspaces2","workspaces2","Object","hasOwn","ext","modal","registerModal","tryRegisterModal","workspace","title","registerWorkspace","canHide","canMaximize","width","preferredWindowSize","groups","group","registerWorkspaceGroup","members","tryRegisterWorkspace","workspaceGroup","tryRegisterWorkspaceGroup","workspaceGroupDefs","registerWorkspaceGroups2","workspaceWindowDefs","registerWorkspaceWindows2","tryRegisterWorkspaceWindows2","workspaceDefs","registerWorkspaces2","tryRegisterWorkspace2","flagName","label","description","registerFeatureFlag","tryRegisterFeatureFlag","finishRegisteringAllApps","localeCompare","appIndices","Map","page","has","get","containerDomId","containerDiv","document","getElementById","appDomRootId","Error","div","createElement","appendChild","tryRegisterPage","activityFn","offlineEnabled","navigator","onLine","getFeatureFlag","wrapPageActivityFn","registerApplication","canAccessStorage","storage","localStorage","getItem","isEnabled","addRoutesOverride","startsWith","addRouteOverrideInternal","maybeRoutes","JSON","isOpenmrsAppRoutes","e","URL","removeRoutesOverride","removeItem","resetAllRoutesOverrides","localStorage1","setItem","stringify","hasOwnProperty","prototype","call","isOpenmrsRoutes","entries","getDefaultsFromConfigSchema","schema","tmp","k","keys","isOrdinaryObject","_default","x","normalizeOnlyVersion","isVersionSatisfied","requiredVersion","installedVersion","idx","indexOf","normalizeFullVersion","async","retry","shouldRetry","getDelay","onError","attempt","limitAttempts","startingDelay","initialDelay","exponent","Math","pow","getExponentialDelay","lastError","delay","ms","Promise","res","setTimeout","MAX_SAFE_INTEGER","num","build","other","compareMain","comparePre","isNaN","minver","compver","parsed","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","LONETILDE","LONECARET","simpleSubset","sub","dom","eqSet","gtltComp","higher","lower","hasDomLT","hasDomGT","higherGT","lowerLT","size","sawNonNull","OUTER","simpleSub","simpleDom","isSub","numeric","anum","bnum","Number","minSV"],"sourceRoot":""}