@openmrs/esm-dispensing-app 1.6.2 → 1.6.3-pre.3

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 (190) hide show
  1. package/.turbo/cache/3973258467ef7c66-meta.json +1 -0
  2. package/.turbo/cache/3973258467ef7c66.tar.zst +0 -0
  3. package/.turbo/turbo-build.log +44 -0
  4. package/dist/1616.js +2 -0
  5. package/dist/{524.js.LICENSE.txt → 1616.js.LICENSE.txt} +9 -14
  6. package/dist/1616.js.map +1 -0
  7. package/dist/1637.js +1 -0
  8. package/dist/1637.js.map +1 -0
  9. package/dist/1644.js +1 -0
  10. package/dist/1901.js +1 -0
  11. package/dist/1905.js +1 -0
  12. package/dist/1905.js.map +1 -0
  13. package/dist/2016.js +1 -0
  14. package/dist/2511.js +1 -0
  15. package/dist/2511.js.map +1 -0
  16. package/dist/2757.js +1 -0
  17. package/dist/3574.js +1 -0
  18. package/dist/3652.js +1 -0
  19. package/dist/3935.js +2 -0
  20. package/dist/3935.js.map +1 -0
  21. package/dist/4272.js +1 -0
  22. package/dist/4378.js +1 -0
  23. package/dist/4460.js +1 -0
  24. package/dist/4705.js +1 -0
  25. package/dist/5240.js +1 -0
  26. package/dist/5336.js +1 -0
  27. package/dist/5673.js +1 -0
  28. package/dist/5711.js +1 -0
  29. package/dist/5737.js +1 -0
  30. package/dist/5833.js +1 -0
  31. package/dist/5962.js +1 -0
  32. package/dist/6497.js +1 -0
  33. package/dist/6566.js +1 -0
  34. package/dist/6582.js +1 -0
  35. package/dist/6582.js.map +1 -0
  36. package/dist/6727.js +1 -0
  37. package/dist/6868.js +2 -0
  38. package/dist/6868.js.LICENSE.txt +14 -0
  39. package/dist/6868.js.map +1 -0
  40. package/dist/6936.js +1 -0
  41. package/dist/6936.js.map +1 -0
  42. package/dist/6973.js +1 -0
  43. package/dist/6973.js.map +1 -0
  44. package/dist/7294.js +2 -0
  45. package/dist/7294.js.map +1 -0
  46. package/dist/7484.js +1 -0
  47. package/dist/7484.js.map +1 -0
  48. package/dist/7626.js +1 -0
  49. package/dist/7626.js.map +1 -0
  50. package/dist/7687.js +1 -0
  51. package/dist/7687.js.map +1 -0
  52. package/dist/7807.js +1 -0
  53. package/dist/7998.js +1 -0
  54. package/dist/8077.js +1 -0
  55. package/dist/8077.js.map +1 -0
  56. package/dist/8271.js +1 -0
  57. package/dist/8319.js +1 -0
  58. package/dist/8323.js +1 -0
  59. package/dist/8788.js +1 -0
  60. package/dist/8949.js +1 -0
  61. package/dist/8949.js.map +1 -0
  62. package/dist/9204.js +2 -0
  63. package/dist/{204.js.LICENSE.txt → 9204.js.LICENSE.txt} +2 -0
  64. package/dist/9204.js.map +1 -0
  65. package/dist/9261.js +1 -0
  66. package/dist/9579.js +1 -0
  67. package/dist/9870.js +2 -0
  68. package/dist/9870.js.LICENSE.txt +9 -0
  69. package/dist/9870.js.map +1 -0
  70. package/dist/main.js +1 -1
  71. package/dist/main.js.LICENSE.txt +21 -11
  72. package/dist/main.js.map +1 -1
  73. package/dist/openmrs-esm-dispensing-app.js +1 -1
  74. package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +455 -244
  75. package/dist/openmrs-esm-dispensing-app.js.map +1 -1
  76. package/dist/routes.json +1 -1
  77. package/jest.config.js +3 -1
  78. package/package.json +7 -4
  79. package/src/components/{action-buttons.component.test.tsx → action-buttons.test.tsx} +7 -7
  80. package/src/components/medication-card.component.tsx +3 -3
  81. package/src/components/medication-card.scss +8 -8
  82. package/src/components/medication-dispense-review.scss +10 -10
  83. package/src/components/medication-event.component.tsx +4 -4
  84. package/src/components/medication-event.scss +10 -5
  85. package/src/components/patient-details.component.tsx +4 -4
  86. package/src/components/patient-details.scss +12 -12
  87. package/src/components/prescription-actions/close-action-button.component.tsx +1 -1
  88. package/src/components/prescription-actions/dispense-action-button.component.tsx +1 -1
  89. package/src/components/prescription-actions/pause-action-button.component.tsx +1 -1
  90. package/src/conditions/conditions.component.tsx +93 -0
  91. package/src/conditions/conditions.resource.ts +100 -0
  92. package/src/conditions/conditions.scss +9 -0
  93. package/src/config-schema.ts +8 -0
  94. package/src/dashboard/dispensing-dashboard-link.component.tsx +1 -1
  95. package/src/dashboard/dispensing-dashboard.component.tsx +10 -4
  96. package/src/declarations.d.ts +0 -1
  97. package/src/diagnoses/diagnoses.component.tsx +92 -0
  98. package/src/diagnoses/diagnoses.resource.ts +30 -0
  99. package/src/diagnoses/diagnoses.scss +9 -0
  100. package/src/dispensing-tiles/dispensing-tile.component.tsx +20 -17
  101. package/src/dispensing-tiles/dispensing-tile.scss +8 -8
  102. package/src/dispensing-tiles/dispensing-tiles.scss +4 -5
  103. package/src/forms/close-dispense-form.workspace.tsx +25 -23
  104. package/src/forms/forms.scss +5 -9
  105. package/src/forms/medication-dispense-review.component.tsx +211 -196
  106. package/src/forms/pause-dispense-form.workspace.tsx +25 -23
  107. package/src/forms/stock-dispense/stock-dispense.component.tsx +10 -10
  108. package/src/history/history-and-comments.scss +15 -15
  109. package/src/index.ts +3 -0
  110. package/src/location/location.resource.test.tsx +1 -0
  111. package/src/medication/medication.resource.tsx +1 -1
  112. package/src/patient/patient-info-cell.component.tsx +1 -1
  113. package/src/pharmacy-header/pharmacy-header.scss +11 -11
  114. package/src/prescriptions/prescription-actions.scss +0 -1
  115. package/src/prescriptions/prescription-details.component.tsx +6 -6
  116. package/src/prescriptions/prescription-details.scss +10 -10
  117. package/src/prescriptions/prescription-expanded.component.tsx +5 -9
  118. package/src/prescriptions/prescription-expanded.scss +6 -7
  119. package/src/prescriptions/prescription-tab-lists.component.tsx +5 -5
  120. package/src/prescriptions/prescriptions.scss +15 -29
  121. package/src/print-prescription/prescription-printout.component.tsx +1 -1
  122. package/src/routes.json +14 -0
  123. package/src/utils.ts +1 -1
  124. package/tools/setup-tests.ts +1 -0
  125. package/tools/update-openmrs-deps.mjs +42 -0
  126. package/translations/en.json +9 -1
  127. package/translations/es.json +23 -23
  128. package/translations/it.json +87 -87
  129. package/translations/ky.json +92 -0
  130. package/tsconfig.json +3 -2
  131. package/dist/16.js +0 -1
  132. package/dist/204.js +0 -2
  133. package/dist/204.js.map +0 -1
  134. package/dist/240.js +0 -1
  135. package/dist/261.js +0 -1
  136. package/dist/271.js +0 -1
  137. package/dist/272.js +0 -1
  138. package/dist/294.js +0 -2
  139. package/dist/294.js.map +0 -1
  140. package/dist/319.js +0 -1
  141. package/dist/323.js +0 -1
  142. package/dist/336.js +0 -1
  143. package/dist/378.js +0 -1
  144. package/dist/460.js +0 -1
  145. package/dist/484.js +0 -1
  146. package/dist/484.js.map +0 -1
  147. package/dist/497.js +0 -1
  148. package/dist/524.js +0 -2
  149. package/dist/524.js.map +0 -1
  150. package/dist/566.js +0 -1
  151. package/dist/574.js +0 -1
  152. package/dist/579.js +0 -1
  153. package/dist/626.js +0 -1
  154. package/dist/626.js.map +0 -1
  155. package/dist/637.js +0 -1
  156. package/dist/637.js.map +0 -1
  157. package/dist/644.js +0 -1
  158. package/dist/652.js +0 -1
  159. package/dist/673.js +0 -1
  160. package/dist/705.js +0 -1
  161. package/dist/711.js +0 -1
  162. package/dist/727.js +0 -1
  163. package/dist/737.js +0 -1
  164. package/dist/749.js +0 -1
  165. package/dist/749.js.map +0 -1
  166. package/dist/757.js +0 -1
  167. package/dist/77.js +0 -1
  168. package/dist/77.js.map +0 -1
  169. package/dist/788.js +0 -1
  170. package/dist/803.js +0 -1
  171. package/dist/803.js.map +0 -1
  172. package/dist/807.js +0 -1
  173. package/dist/833.js +0 -1
  174. package/dist/888.js +0 -1
  175. package/dist/888.js.map +0 -1
  176. package/dist/890.js +0 -1
  177. package/dist/890.js.map +0 -1
  178. package/dist/901.js +0 -1
  179. package/dist/905.js +0 -1
  180. package/dist/905.js.map +0 -1
  181. package/dist/935.js +0 -2
  182. package/dist/935.js.map +0 -1
  183. package/dist/962.js +0 -1
  184. package/src/root.scss +0 -50
  185. package/src/setup-tests.ts +0 -1
  186. package/dist/{935.js.LICENSE.txt → 3935.js.LICENSE.txt} +0 -0
  187. package/dist/{294.js.LICENSE.txt → 7294.js.LICENSE.txt} +0 -0
  188. package/src/components/{medication-card.component.test.tsx → medication-card.test.tsx} +0 -0
  189. package/src/forms/{medication-dispense-review.component.test.tsx → medication-dispense-review.test.tsx} +1 -1
  190. /package/{i18next-parser.config.js → tools/i18next-parser.config.js} +0 -0
package/dist/566.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[566],{6566:e=>{e.exports=JSON.parse('{"active":"Ativo","activePrescriptions":"Prescrições ativas","age":"Idade","allergiesCount_one":"{{count}} alergia","allergiesCount_other":"{{count}} alergias","allPrescriptions":"Todas as prescrições","appName":"Farmácia","cancelled":"Cancelado","checkFilters":"Verifique os filtros acima","clearSearchInput":"Limpar entrada de pesquisa","close":"Fechar","closed":"Fechado","closedDispense":"Dispensa fechada","closePrescription":"Fechar prescrição","completed":"Concluído","created":"Criado","datePrescribed":"Data prescrita","delete":"Excluir","dispense":"Dispensar","dispensed":"Dispensado","dispenseDate":"Data da dispensa","dispensedBy":"Dispensado por","dispensedMedication":"medicação dispensada","dispensePrescription":"Dispensar prescrição","dispensing":"Dispensa","dispensingAppError":"Erro do aplicativo Dispensing","dispensingAppMisconfigurationMessage":"Entre em contato com a administração do sistema: Configuração incorreta - \'restrictTotalQuantityDispensed\' não pode ser ativado se \'allowModifyingPrescription\' estiver ativado.","dose":"Dose","doseUnit":"Unidade de dose","drugDispensingUnit":"Unidade de distribuição","drugs":"Medicamentos","editCloseeRecord":"Editar registro de fechamento","editDispenseRecord":"Editar registro de dispensa","editPauseRecord":"Editar registro de pausa","editRecord":"Editar registro","error":"Erro","errorLoadingInventoryItems":"Erro ao buscar itens de inventário","expired":"Expirado","filterByLocation":"Filtrar por local","for":"para","frequency":"Frequência","historyComments":"Histórico e comentários","home":"Início","last14Days":"Últimos 14 dias","lastDispenser":"Último dispensador","loadingInventoryItems":"Carregando itens de inventário...","location":"Localização","maxQuantityRemaining":"Quantidade máxima restante:","medicationDispenseActionMenu":"Menu de ações de dispensação de medicamentos","medicationListUpdated":"A lista de dispensação de medicamentos foi atualizada.","missedCollections":"Coleções perdidas","noAllergyDetailsFound":"Nenhum detalhe de alergia encontrado","noPrescriptionsToDisplay":"Não há prescrições para exibir","noRefills":"Sem recargas","numberIsNotValid":"O número não é válido","ordered":"Pedido","orderedMedication ":"medicação solicitada","orders":"Pedidos","ordersForHomeDelivery":"Pedidos para entrega em domicílio","patientInstructions":"Instruções para o paciente","patientName":"Nome do paciente","pause":"Pausa","paused":"Pausado","pausedDispense":"dispensa pausada","pausePrescription":"Pausa na prescrição","prescribed":"Prescrito","prescriber":"Prescritor","prescriptionDetails":"Detalhes da prescrição","prescriptionInstructions":"Instruções de prescrição","prescriptionsToFillToday":"Prescrições a serem preenchidas hoje","print":"Imprimir","printPrescriptions":"Imprimir prescrições","quantity":"Quantidade","reasonForClose":"Motivo do fechamento","reasonForPause":"Motivo da pausa","refills":"Recargas","route":"Rota","searchByPatientIdOrName":"Pesquisar por ID ou nome do paciente","selectPrescriptions":"Verificar prescrições para impressão","selectStockDispense":"Selecionar estoque para dispensar","status":"Status","stockDispense":"Dispensa de estoque","stockDispensed":"Estoque dispensado","stockDispenseDetails":"Lote: {{batchNumber}} - Quantidade: {{quantity}} ({{quantityUoM}}) - Expiração: {{expiration}}","stockDispensedSuccessfully":"Estoque dispensado com sucesso e nível de lote atualizado.","substitutionReason":"Motivo da substituição","substitutionType":"Tipo de substituição","tabList":"Lista de guias","today":"Hoje","view":"Exibir"}')}}]);
package/dist/574.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/579.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[579],{9579:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/626.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[626],{7626:(e,n,t)=>{t.r(n),t.d(n,{default:()=>K});var i=t(1672),a=t.n(i),o=t(3397),r=t(1352),s=t(1132),l=t(3957),c=t(6139),p=t(9820);function d(e,n,t,i,a,o,r){try{var s=e[o](r),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(i,a)}function u(){var e;return e=function(e,n){return function(e,n){var t,i,a,o,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((a=(a=r.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(t){switch(t.label){case 0:return[4,(0,s.openmrsFetch)("/ws/rest/v1/stockmanagement/dispenserequest",{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify({dispenseItems:[e]})})];case 1:return[2,t.sent()]}}))},u=function(){var n=this,t=arguments;return new Promise((function(i,a){var o=e.apply(n,t);function r(e){d(o,i,a,r,s,"next",e)}function s(e){d(o,i,a,r,s,"throw",e)}r(void 0)}))},u.apply(this,arguments)}var f=t(3439),g=t(2796),m=t(2653),y=t.n(m),h=t(3252),b=t(4672),v=t(3379),$=t.n(v),A=t(7795),w=t.n(A),k=t(569),x=t.n(k),_=t(3565),C=t.n(_),z=t(9216),E=t.n(z),I=t(4589),S=t.n(I),D=t(7591),M={};M.styleTagTransform=S(),M.setAttributes=C(),M.insert=x().bind(null,"head"),M.domAPI=w(),M.insertStyleElement=E(),$()(D.Z,M);const T=D.Z&&D.Z.locals?D.Z.locals:void 0,B=function(e){var n=e.medication,t=e.editAction;return a().createElement(r.n9L,{className:T.medicationTile},a().createElement("p",{className:T.medicationName},a().createElement("strong",null,(0,c.SV)(n))),t&&a().createElement(b.I8,{onClick:t}))};var q=t(4295),N={};N.styleTagTransform=S(),N.setAttributes=C(),N.insert=x().bind(null,"head"),N.domAPI=w(),N.insertStyleElement=E(),$()(q.Z,N);const R=q.Z&&q.Z.locals?q.Z.locals:void 0;function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),i.forEach((function(n){j(e,n,t[n])}))}return e}function F(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function U(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(e,n)||L(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(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 L(e,n){if(e){if("string"==typeof e)return O(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)?O(e,n):void 0}}const Z=function(e){var n,t,l,d,u,m,b,v,$,A,w,k,x,_,C,z,E,I,S,D,M,T=e.medicationDispense,q=e.updateMedicationDispense,N=e.quantityRemaining,O=(0,o.useTranslation)().t,j=(0,s.useConfig)(),L=(0,s.useSession)(),Z=U((0,i.useState)(!1),2),W=Z[0],Y=Z[1],Q=U((0,i.useState)(!1),2),H=Q[0],K=Q[1],V=U((0,i.useState)([]),2),J=V[0],X=V[1],ee=U((0,i.useState)([]),2),ne=ee[0],te=ee[1],ie=U((0,i.useState)([]),2),ae=ie[0],oe=ie[1],re=U((0,i.useState)([]),2),se=re[0],le=re[1],ce=U((0,i.useState)([]),2),pe=ce[0],de=ce[1],ue=U((0,i.useState)([]),2),fe=ue[0],ge=ue[1],me=U((0,i.useState)(!1),2),ye=me[0],he=me[1],be="tablet"===(0,s.useLayoutType)(),ve=j.dispenseBehavior.allowModifyingPrescription,$e=(0,f.Ng)().orderConfigObject,Ae=(0,f.dW)(j.valueSets.substitutionType.uuid).substitutionTypeValueSet,we=(0,f.hg)(j.valueSets.substitutionReason.uuid).substitutionReasonValueSet,ke=(0,f.ko)(j.dispenserProviderRoles),xe=(0,g.QW)(T.authorizingPrescription?T.authorizingPrescription[0].reference:null,j.refreshInterval).medicationRequest,_e=(0,g.ud)(xe?xe.encounter.reference:null).prescriptionDate;(0,i.useEffect)((function(){if($e){var e=ae.map((function(e){return e.id})),n=[];$e.drugRoutes.forEach((function(t){return e.includes(t.uuid)||n.push({id:t.uuid,text:t.display})})),oe(P(ae).concat(P(n)));var t=J.map((function(e){return e.id})),i=[];$e.drugDosingUnits.forEach((function(e){return t.includes(e.uuid)||i.push({id:e.uuid,text:e.display})})),X(P(J).concat(P(i)));var a=ne.map((function(e){return e.id})),o=[];$e.drugDispensingUnits.forEach((function(e){return a.includes(e.uuid)||o.push({id:e.uuid,text:e.display})})),te(P(ne).concat(P(o)));var r=se.map((function(e){return e.id})),s=[];$e.orderFrequencies.forEach((function(e){return r.includes(e.uuid)||s.push({id:e.uuid,text:e.display})})),le(P(se).concat(P(s)))}}),[ne,J,ae,$e,se]),(0,i.useEffect)((function(){var e,n,t=[];if(null===(n=Ae)||void 0===n||null===(e=n.compose)||void 0===e?void 0:e.include){var i,a=Ae.compose.include.find((function(e){return!e.system}));a&&(null===(i=a.concept)||void 0===i||i.forEach((function(e){return t.push({id:e.code,text:e.display})}))),t.sort((function(e,n){return e.text.localeCompare(n.text)}))}de(t)}),[Ae]),(0,i.useEffect)((function(){var e,n,t=[];if(null===(n=we)||void 0===n||null===(e=n.compose)||void 0===e?void 0:e.include){var i,a=we.compose.include.find((function(e){return!e.system}));a&&(null===(i=a.concept)||void 0===i||i.forEach((function(e){return t.push({id:e.code,text:e.display})}))),t.sort((function(e,n){return e.text.localeCompare(n.text)}))}ge(t)}),[we]);var Ce,ze,Ee=(0,c.Rc)(null===(t=(0,c.mL)(T))||void 0===t||null===(n=t.medicationCodeableConcept)||void 0===n?void 0:n.coding),Ie=function(e,n){var t=(0,p.ZP)(e||!n?null:"".concat(s.fhirBaseUrl,"/").concat(n),s.openmrsFetch).data;return{medicationCodeableConceptUuid:t?(0,c.Rc)(t.data.code.coding):null}}(Ee,null===(l=(0,c.mL)(T).medicationReference)||void 0===l?void 0:l.reference).medicationCodeableConceptUuid,Se=(Ce=Ee||Ie||null,ze=(0,p.ZP)(Ce?(0,c.uj)(Ce):null,s.openmrsFetch).data,ze?{medicationFormulations:ze.data.entry.map((function(e){return e.resource}))}:{}).medicationFormulations;return(0,i.useEffect)((function(){var e,n,t,i;(null===(n=xe)||void 0===n||null===(e=n.medicationReference)||void 0===e?void 0:e.reference)&&(null===(i=T)||void 0===i||null===(t=i.medicationReference)||void 0===t?void 0:t.reference)&&xe.medicationReference.reference!=T.medicationReference.reference?(K(!0),q(F(G({},T),{substitution:F(G({},T.substitution),{wasSubstituted:!0})}))):(K(!1),q(F(G({},T),{substitution:{wasSubstituted:!1,reason:[{coding:[{code:null}]}],type:{coding:[{code:null}]}}})))}),[T,xe,q]),(0,i.useEffect)((function(){var e;he((null===(e=L)||void 0===e?void 0:e.user)&&(0,s.userHasAccess)(h.FI,L.user))}),[L]),a().createElement("div",{className:R.medicationDispenseReviewContainer},a().createElement(r.Kqy,{gap:5},W?a().createElement(r.Ltx,{id:"medicationFormulation",light:be,items:Se,itemToString:function(e){return(0,c.vF)(e)},initialSelectedItem:G({},null===(d=Se)||void 0===d?void 0:d.find((function(e){var n;return e.id===(null===(n=T.medicationReference)||void 0===n?void 0:n.reference.split("/")[1])}))),onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{medicationCodeableConcept:void 0,medicationReference:{reference:"Medication/"+(null===(n=t)||void 0===n?void 0:n.id),display:(0,c.vF)(t)}})),Y(!1)},required:!0}):a().createElement(B,{medication:(0,c.mL)(T),editAction:ye&&ve?function(){return Y(!0)}:null}),H&&a().createElement("div",{className:R.dispenseDetailsContainer},a().createElement(r.CtY,{className:R.substitutionType,id:"substitutionType",light:be,items:pe,titleText:O("substitutionType","Type of substitution"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(m=T.substitution.type)||void 0===m||null===(u=m.coding[0])||void 0===u?void 0:u.code,text:null===(b=T.substitution.type)||void 0===b?void 0:b.text},onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{substitution:F(G({},T.substitution),{type:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})}))}})),H&&a().createElement("div",{className:R.dispenseDetailsContainer},a().createElement(r.CtY,{className:R.substitutionReason,id:"substitutionReason",light:be,items:fe,titleText:O("substitutionReason","Reason for substitution"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===($=T.substitution.reason[0])||void 0===$||null===(v=$.coding[0])||void 0===v?void 0:v.code,text:null===(A=T.substitution.reason[0])||void 0===A?void 0:A.text},onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{substitution:F(G({},T.substitution),{reason:[{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}]})}))}})),a().createElement("div",{className:R.dispenseDetailsContainer},a().createElement(r.Y2U,{allowEmpty:!1,disabled:!ye,hideSteppers:!0,id:"quantity",invalidText:O("numberIsNotValid","Number is not valid"),label:O("quantity","Quantity")+(j.dispenseBehavior.restrictTotalQuantityDispensed?" ("+O("maxQuantityRemaining","Maximum quantity remaining:")+" "+N+")":""),min:0,max:j.dispenseBehavior.restrictTotalQuantityDispensed?N:void 0,value:T.quantity.value,onChange:function(e){var n;q(F(G({},T),{quantity:F(G({},T.quantity),{value:(null===(n=e.target)||void 0===n?void 0:n.value)?parseFloat(e.target.value):""})}))}}),a().createElement(r.CtY,{id:"quantityUnits",disabled:!ye||!ve,light:be,items:ne,titleText:O("drugDispensingUnit","Dispensing unit"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:T.quantity.code,text:T.quantity.unit},onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{quantity:{value:T.quantity.value,code:null===(n=t)||void 0===n?void 0:n.id}}))},required:!0})),a().createElement("div",{className:R.dispenseDetailsContainer},a().createElement(r.Y2U,{allowEmpty:!1,disabled:!ye||!ve,hideSteppers:!0,id:"dosingQuanity",invalidText:O("numberIsNotValid","Number is not valid"),min:0,label:O("dose","Dose"),value:T.dosageInstruction[0].doseAndRate[0].doseQuantity.value,onChange:function(e){var n;q(F(G({},T),{dosageInstruction:[F(G({},T.dosageInstruction[0]),{doseAndRate:[F(G({},T.dosageInstruction[0].doseAndRate[0]),{doseQuantity:F(G({},T.dosageInstruction[0].doseAndRate[0].doseQuantity),{value:(null===(n=e.target)||void 0===n?void 0:n.value)?parseFloat(e.target.value):""})})]})]}))}}),a().createElement(r.CtY,{id:"dosingUnits",disabled:!ye||!ve,light:be,items:J,titleText:O("doseUnit","Dose unit"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(w=T.dosageInstruction[0].doseAndRate[0].doseQuantity)||void 0===w?void 0:w.code,text:null===(k=T.dosageInstruction[0].doseAndRate[0].doseQuantity)||void 0===k?void 0:k.unit},onChange:function(e){var n,t,i=e.selectedItem;q(F(G({},T),{dosageInstruction:[F(G({},T.dosageInstruction[0]),{doseAndRate:[{doseQuantity:{value:null===(n=T.dosageInstruction[0].doseAndRate[0].doseQuantity)||void 0===n?void 0:n.value,code:null===(t=i)||void 0===t?void 0:t.id}}]})]}))},required:!0}),a().createElement(r.CtY,{id:"editRoute",disabled:!ye||!ve,light:be,items:ae,initialSelectedItem:{id:null===(_=T.dosageInstruction[0].route)||void 0===_||null===(x=_.coding[0])||void 0===x?void 0:x.code,text:null===(C=T.dosageInstruction[0].route)||void 0===C?void 0:C.text},titleText:O("route","Route"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{dosageInstruction:[F(G({},T.dosageInstruction[0]),{route:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})]}))},required:!0})),a().createElement(r.CtY,{id:"frequency",disabled:!ye||!ve,light:be,items:se,initialSelectedItem:{id:null===(I=T.dosageInstruction[0].timing)||void 0===I||null===(E=I.code)||void 0===E||null===(z=E.coding[0])||void 0===z?void 0:z.code,text:null===(D=T.dosageInstruction[0].timing)||void 0===D||null===(S=D.code)||void 0===S?void 0:S.text},titleText:O("frequency","Frequency"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{dosageInstruction:[F(G({},T.dosageInstruction[0]),{timing:F(G({},T.dosageInstruction[0].timing),{code:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})})]}))},required:!0}),a().createElement(r.Kx8,{labelText:O("patientInstructions","Patient instructions"),value:T.dosageInstruction[0].text,maxLength:65535,onChange:function(e){q(F(G({},T),{dosageInstruction:[F(G({},T.dosageInstruction[0]),{text:e.target.value})]}))}}),a().createElement(s.OpenmrsDatePicker,{id:"dispenseDate",labelText:O("dispenseDate","Date of Dispense"),minDate:_e?y()(_e).startOf("day").toDate():null,maxDate:y()().toDate(),onChange:function(e){var n,t=T.whenHandedOver?y()(T.whenHandedOver):null,i=y()(e);q(F(G({},T),{whenHandedOver:(null===(n=t)||void 0===n?void 0:n.isSame(i,"day"))?t.toISOString():i.toISOString()}))},value:y()(T.whenHandedOver).toDate()}),ke&&a().createElement(r.CtY,{id:"dispenser",light:be,initialSelectedItem:(null===(M=T)||void 0===M?void 0:M.performer[0].actor.reference)?ke.find((function(e){var n;return e.uuid===(null===(n=T)||void 0===n?void 0:n.performer[0].actor.reference.split("/")[1])})):null,onChange:function(e){var n,t=e.selectedItem;q(F(G({},T),{performer:[{actor:{reference:"Practitioner/".concat(null===(n=t)||void 0===n?void 0:n.uuid)}}]}))},items:ke,itemToString:function(e){var n,t;return null===(t=e)||void 0===t||null===(n=t.person)||void 0===n?void 0:n.display},required:!0,titleText:O("dispensedBy","Dispensed by")})))},W=function(e){var n,t,i,l=e.medicationDispense,c=e.updateInventoryItem,d=function(e,n){var t,i;return!!((null===(t=e)||void 0===t?void 0:t.dosageInstruction)&&(null===(i=e)||void 0===i?void 0:i.dosageInstruction.length)>0)&&e.dosageInstruction.some((function(e){var t,i,a,o,r;if((null===(i=e.timing)||void 0===i||null===(t=i.repeat)||void 0===t?void 0:t.duration)&&(null===(o=e.timing)||void 0===o||null===(a=o.repeat)||void 0===a?void 0:a.durationUnit)&&n.quantity>0){var s=e.timing.repeat.durationUnit,l=e.timing.repeat.duration,c=new Date;switch(s){case"s":c.setSeconds(c.getSeconds()+l);break;case"min":c.setMinutes(c.getMinutes()+l);break;case"h":c.setHours(c.getHours()+l);break;case"d":c.setDate(c.getDate()+l);break;case"wk":c.setDate(c.getDate()+7*l);break;case"mo":c.setMonth(c.getMonth()+l);break;case"y":c.setFullYear(c.getFullYear()+l);break;default:return!1}return r=n.expiration,new Date(r)>c}return!1}))},u=(0,o.useTranslation)().t,f=function(e){var n,t,i,a,o,r,l,c=(0,s.useSession)(),d="/ws/rest/v1/stockmanagement/stockiteminventory?v=default&totalCount=true&drugUuid=".concat(e,"&includeBatchNo=true&groupBy=LocationStockItemBatchNo&dispenseLocationUuid=").concat(null===(t=c)||void 0===t||null===(n=t.sessionLocation)||void 0===n?void 0:n.uuid,"&includeStrength=1&includeConceptRefIds=1&emptyBatch=1&emptyBatchLocationUuid=").concat(null===(a=c)||void 0===a||null===(i=a.sessionLocation)||void 0===i?void 0:i.uuid,"&dispenseAtLocation=1"),u=(0,p.ZP)(d,s.openmrsFetch),f=u.data,g=u.error,m=u.isLoading;return{inventoryItems:null!==(l=null===(r=f)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.results)&&void 0!==l?l:[],error:g,isLoading:m}}(null===(i=l)||void 0===i||null===(t=i.medicationReference)||void 0===t||null===(n=t.reference)||void 0===n?void 0:n.split("/")[1]),g=f.inventoryItems,m=f.error,y=f.isLoading,h=g.filter((function(e){return d(l,e)}));return g.filter((function(e){return d(l,e)})).sort((function(e,n){var t=new Date(e.expiration),i=new Date(n.expiration);return t.getDate()-i.getDate()})),m?a().createElement(r.K0D,{"aria-label":"closes notification",kind:"error",lowContrast:!0,statusIconDescription:"notification",subtitle:u("errorLoadingInventoryItems","Error fetching inventory items"),title:u("error","Error")}):y?a().createElement(r.lSo,{description:u("loadingInventoryItems","Loading inventory items...")}):a().createElement(r.mh4,null,a().createElement(r.CtY,{id:"stockDispense",items:h,onChange:function(e){var n=e.selectedItem;c(n)},itemToString:function(e){return e?function(e){return u("stockDispenseDetails","Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}",{batchNumber:e.batchNumber,quantity:Math.floor(e.quantity),quantityUoM:e.quantityUoM,expiration:(0,s.formatDate)(new Date(e.expiration))})}(e):""},titleText:u("stockDispense","Stock Dispense"),placeholder:u("selectStockDispense","Select stock to dispense from")}))};var Y=t(1905);function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function H(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(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)?Q(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const K=function(e){var n=e.medicationDispense,t=e.medicationRequestBundle,p=e.mode,d=e.patientUuid,m=e.encounterUuid,y=e.quantityRemaining,h=e.closeWorkspace,b=e.closeWorkspaceWithSavedChanges,v=(0,o.useTranslation)().t,$=(0,s.usePatient)(d),A=$.patient,w=$.isLoading,k=(0,s.useConfig)(),x=H((0,i.useState)(),2),_=x[0],C=x[1],z=H((0,i.useState)(),2),E=z[0],I=z[1],S=H((0,i.useState)(!1),2),D=S[0],M=S[1],T=H((0,i.useState)(!1),2),B=T[0],q=T[1];(0,i.useEffect)((function(){return I(n)}),[n]),(0,i.useEffect)((function(){var e,n,t,i,a,o,r,s,l,c,p,d,u,f,g,m,h;E&&E.performer&&(null===(e=E.performer[0])||void 0===e?void 0:e.actor.reference)&&(null===(n=E.quantity)||void 0===n?void 0:n.value)&&(!y||(null===(i=E)||void 0===i||null===(t=i.quantity)||void 0===t?void 0:t.value)<=y)&&(null===(a=E.quantity)||void 0===a?void 0:a.code)&&(null===(s=E.dosageInstruction[0])||void 0===s||null===(r=s.doseAndRate[0])||void 0===r||null===(o=r.doseQuantity)||void 0===o?void 0:o.value)&&(null===(p=E.dosageInstruction[0])||void 0===p||null===(c=p.doseAndRate[0])||void 0===c||null===(l=c.doseQuantity)||void 0===l?void 0:l.code)&&(null===(u=E.dosageInstruction[0])||void 0===u||null===(d=u.route)||void 0===d?void 0:d.coding[0].code)&&(null===(g=E.dosageInstruction[0])||void 0===g||null===(f=g.timing)||void 0===f?void 0:f.code.coding[0].code)&&(!E.substitution.wasSubstituted||(null===(m=E.substitution.reason[0])||void 0===m?void 0:m.coding[0].code)&&(null===(h=E.substitution.type)||void 0===h?void 0:h.coding[0].code))?M(!0):M(!1)}),[E,y,_]);var N=!!k.enableStockDispense&&!_||!D||B,R=(0,i.useMemo)((function(){if(A)return{patient:A,patientUuid:d,hideActionsOverflow:!0}}),[A,d]);return a().createElement(r.l09,{className:Y.Z.formWrapper},a().createElement("div",null,w&&a().createElement(r.lSo,{className:Y.Z.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),A&&a().createElement(s.ExtensionSlot,{name:"patient-header-slot",state:R}),a().createElement("section",{className:Y.Z.formGroup},a().createElement(r.lXp,null,v(k.dispenseBehavior.allowModifyingPrescription?"drugHelpText":"drugHelpTextNoEdit",k.dispenseBehavior.allowModifyingPrescription?"You may edit the formulation and quantity dispensed here":"You may edit quantity dispensed here")),E?a().createElement("div",null,a().createElement(Z,{medicationDispense:E,updateMedicationDispense:I,quantityRemaining:y}),k.enableStockDispense&&a().createElement(W,{inventoryItem:_,medicationDispense:n,updateInventoryItem:C})):null)),a().createElement("section",{className:Y.Z.buttonGroup},a().createElement(r.zxk,{disabled:B,onClick:function(){return h()},kind:"secondary"},(0,s.getCoreTranslation)("cancel","Cancel")),a().createElement(r.zxk,{disabled:N,onClick:function(){if(!B){q(!0);var e=new AbortController;(0,f.VF)(E,l.jm.completed,e).then((function(e){if(e.ok){var n=(0,c.RZ)(E,t,k.dispenseBehavior.restrictTotalQuantityDispensed);if((0,c.vo)(t.request)!==n)return(0,g.XN)((0,c.i7)(E.authorizingPrescription[0].reference),n)}return e})).then((function(n){var t=n.status;if(k.enableStockDispense&&(201===t||200===t)){var i=function(e,n,t,i){var a;return{dispenseLocation:e.locationUuid,patient:n,order:(0,c.i7)(i.authorizingPrescription[0].reference),encounter:t,stockItem:null===(a=e)||void 0===a?void 0:a.stockItemUuid,stockBatch:e.stockBatchUuid,stockItemPackagingUOM:e.quantityUoMUuid,quantity:i.quantity.value}}(_,d,m,E);(function(e,n){return u.apply(this,arguments)})(i,e).then((function(){(0,s.showSnackbar)({title:v("stockDispensed","Stock dispensed"),kind:"success",subtitle:v("stockDispensedSuccessfully","Stock dispensed successfully and batch level updated.")})}),(function(e){var n;(0,s.showSnackbar)({title:"Stock dispense error",kind:"error",subtitle:null===(n=e)||void 0===n?void 0:n.message})}))}return n})).then((function(e){var n=e.status;201!==n&&200!==n||((0,c.A8)(m),(0,s.showSnackbar)({kind:"success",subtitle:v("medicationListUpdated","Medication dispense list has been updated."),title:v("enter"===p?"medicationDispensed":"medicationDispenseUpdated","enter"===p?"Medication successfully dispensed.":"Dispense record successfully updated.")}),b())}),(function(e){var n;(0,s.showSnackbar)({kind:"error",title:v("enter"===p?"medicationDispenseError":"medicationDispenseUpdatedError","enter"===p?"Error dispensing medication.":"Error updating dispense record"),subtitle:null===(n=e)||void 0===n?void 0:n.message}),q(!1)}))}}},v("enter"===p?"dispensePrescription":"saveChanges","enter"===p?"Dispense prescription":"Save changes"))))}},7591:(e,n,t)=>{t.d(n,{Z:()=>s});var i=t(4015),a=t.n(i),o=t(3645),r=t.n(o)()(a());r.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-dispensing__medication-card__medicationTile___\\+t2rW{display:flex;flex-direction:row;justify-content:space-between;width:100%;margin:2px 0 8px;padding:0 8px 0 8px;background-color:#fff;border-left:4px solid var(--brand-03);color:#525252;margin-bottom:1rem !important}.-esm-dispensing__medication-card__medicationName___-EM\\+N{font-size:15px !important}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/medication-card.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,2DACE,YAAA,CACA,kBAAA,CACA,6BAAA,CACA,UAAA,CACA,gBAAA,CACA,mBAAA,CACA,qBAAA,CACA,qCAAA,CACA,aDRQ,CCSR,6BAAA,CAGF,2DACE,yBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@import '~@openmrs/esm-styleguide/src/vars';\n\n.medicationTile {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n margin: 2px 0 8px;\n padding: 0 8px 0 8px;\n background-color: #fff;\n border-left: 4px solid var(--brand-03);\n color: $text-02;\n margin-bottom: 1rem !important;\n}\n\n.medicationName {\n font-size: 15px !important;\n}\n"],sourceRoot:""}]),r.locals={medicationTile:"-esm-dispensing__medication-card__medicationTile___+t2rW",medicationName:"-esm-dispensing__medication-card__medicationName___-EM+N"};const s=r},4295:(e,n,t)=>{t.d(n,{Z:()=>s});var i=t(4015),a=t.n(i),o=t(3645),r=t.n(o)()(a());r.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-dispensing__medication-dispense-review__medicationDispenseReviewContainer___b9ZuZ{display:flex;flex-direction:column;padding-bottom:10px}.-esm-dispensing__medication-dispense-review__medicationDispenseReviewContainer___b9ZuZ .cds--css-grid{padding-left:0 !important;padding-right:0 !important}.-esm-dispensing__medication-dispense-review__dispenseDetailsContainer___DjhAn{display:flex;flex-direction:row;flex:1;gap:1rem}.-esm-dispensing__medication-dispense-review__substitutionReason___efxL5{width:100%}.-esm-dispensing__medication-dispense-review__substitutionType___dK\\+H9{width:100%}.-esm-dispensing__medication-dispense-review__productiveHeading02___\\+\\+vqK,.-esm-dispensing__medication-dispense-review__formGroup___KjyuB span{color:#525252;font-size:var(--cds-productive-heading-02-font-size, 1rem);font-weight:var(--cds-productive-heading-02-font-weight, 600);line-height:var(--cds-productive-heading-02-line-height, 1.375);letter-spacing:var(--cds-productive-heading-02-letter-spacing, 0)}.omrs-breakpoint-lt-desktop .-esm-dispensing__medication-dispense-review__formWrapper___NIVKI{background-color:#f4f4f4}.omrs-breakpoint-gt-tablet .-esm-dispensing__medication-dispense-review__formWrapper___NIVKI{background-color:#fff}.-esm-dispensing__medication-dispense-review__formGroup___KjyuB{display:flex;margin-bottom:.25rem;padding:1rem}.omrs-breakpoint-lt-desktop .-esm-dispensing__medication-dispense-review__formGroup___KjyuB>span{flex:1}.omrs-breakpoint-lt-desktop .-esm-dispensing__medication-dispense-review__formGroup___KjyuB>div{flex:3}.-esm-dispensing__medication-dispense-review__patientInfo___BsSmN{position:sticky;z-index:1000;background-color:#fff;top:3rem;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-dispensing__medication-dispense-review__formGroup___KjyuB{flex-direction:row}.omrs-breakpoint-gt-tablet .-esm-dispensing__medication-dispense-review__formGroup___KjyuB{flex-direction:column}.-esm-dispensing__medication-dispense-review__buttonGroup___3zwj4{display:flex;position:sticky;bottom:0;width:100%}.omrs-breakpoint-lt-desktop .-esm-dispensing__medication-dispense-review__buttonGroup___3zwj4{padding:1rem 1.5rem;background-color:#fff}.-esm-dispensing__medication-dispense-review__buttonGroup___3zwj4 button{max-width:none;width:50%;height:4rem;align-items:flex-start}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/medication-dispense-review.scss","webpack://./node_modules/@carbon/styles/node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,wFACE,YAAA,CACA,qBAAA,CACA,mBAAA,CAEA,uGACE,yBAAA,CACA,0BAAA,CAIJ,+EACE,YAAA,CACA,kBAAA,CACA,MAAA,CACA,QCYW,CDTb,yEACE,UAAA,CAGF,wEACE,UAAA,CAGF,iJACE,aDtBc,CGy1BZ,0DAAA,CAAA,6DAAA,CAAA,+DAAA,CAAA,iEAAA,CF/zBJ,8FACE,wBDjBwB,CCoB1B,6FACE,qBDvCM,CC0CR,gEACE,YAAA,CACA,oBC7BW,CD8BX,YCfW,CDkBb,iGACE,MAAA,CAGF,gGACE,MAAA,CAOF,kEACE,eAAA,CACA,YAAA,CACA,qBD/DM,CCgEN,QAAA,CACA,eAAA,CAGF,4FACE,kBAAA,CAGF,2FACE,qBAAA,CAGF,kEACE,YAAA,CACA,eAAA,CACA,QAAA,CACA,UAAA,CAGF,8FACE,mBAAA,CACA,qBDrFM,CCwFR,yEACE,cAAA,CACA,SAAA,CACA,WCpCW,CDqCX,sBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@import '~@openmrs/esm-styleguide/src/vars';\n\n.medicationDispenseReviewContainer {\n display: flex;\n flex-direction: column;\n padding-bottom: 10px;\n\n :global(.cds--css-grid) {\n padding-left: 0 !important;\n padding-right: 0 !important;\n }\n}\n\n.dispenseDetailsContainer {\n display: flex;\n flex-direction: row;\n flex: 1;\n gap: spacing.$spacing-05;\n}\n\n.substitutionReason {\n width: 100%;\n}\n\n.substitutionType {\n width: 100%;\n}\n\n.productiveHeading02 {\n color: $color-gray-70;\n @include type.type-style('productive-heading-02');\n}\n\n:global(.omrs-breakpoint-lt-desktop) .formWrapper {\n background-color: $openmrs-background-grey;\n}\n\n:global(.omrs-breakpoint-gt-tablet) .formWrapper {\n background-color: $ui-02;\n}\n\n.formGroup {\n display: flex;\n margin-bottom: spacing.$spacing-02;\n padding: spacing.$spacing-05;\n}\n\n:global(.omrs-breakpoint-lt-desktop) .formGroup > span {\n flex: 1;\n}\n\n:global(.omrs-breakpoint-lt-desktop) .formGroup > div {\n flex: 3;\n}\n\n.formGroup span {\n @extend .productiveHeading02;\n}\n\n.patientInfo {\n position: sticky;\n z-index: 1000;\n background-color: $ui-02;\n top: 3rem;\n overflow-y: auto;\n}\n\n:global(.omrs-breakpoint-lt-desktop) .formGroup {\n flex-direction: row;\n}\n\n:global(.omrs-breakpoint-gt-tablet) .formGroup {\n flex-direction: column;\n}\n\n.buttonGroup {\n display: flex;\n position: sticky;\n bottom: 0;\n width: 100%;\n}\n\n:global(.omrs-breakpoint-lt-desktop) .buttonGroup {\n padding: spacing.$spacing-05 spacing.$spacing-06;\n background-color: $ui-02;\n}\n\n.buttonGroup button {\n max-width: none;\n width: 50%;\n height: spacing.$spacing-10;\n align-items: flex-start;\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:""}]),r.locals={medicationDispenseReviewContainer:"-esm-dispensing__medication-dispense-review__medicationDispenseReviewContainer___b9ZuZ",dispenseDetailsContainer:"-esm-dispensing__medication-dispense-review__dispenseDetailsContainer___DjhAn",substitutionReason:"-esm-dispensing__medication-dispense-review__substitutionReason___efxL5",substitutionType:"-esm-dispensing__medication-dispense-review__substitutionType___dK+H9",productiveHeading02:"-esm-dispensing__medication-dispense-review__productiveHeading02___++vqK",formGroup:"-esm-dispensing__medication-dispense-review__formGroup___KjyuB",formWrapper:"-esm-dispensing__medication-dispense-review__formWrapper___NIVKI",patientInfo:"-esm-dispensing__medication-dispense-review__patientInfo___BsSmN",buttonGroup:"-esm-dispensing__medication-dispense-review__buttonGroup___3zwj4"};const s=r}}]);
package/dist/626.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"626.js","mappings":"wYA0BsBA,I,eAAf,SACLC,EACAC,G,qlCAGO,O,GAAMC,EAAAA,EAAAA,cADD,8CACmB,CAC7BC,OAAQ,OACRC,OAAQH,EAAgBG,OACxBC,QAAS,CACP,eAAgB,oBAElBC,KAAMC,KAAKC,UAAU,CAAEC,cAAe,CAACT,Q,OANzC,MAAO,C,EAAA,U,GAQT,EAbsBD,E,8KAAAA,EAAAA,MAAAA,KAAAA,U,CAwBf,I,sLCvCHW,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH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hB,S","sources":["webpack://@openmrs/esm-dispensing-app/./src/forms/stock-dispense/stock.resource.tsx","webpack://@openmrs/esm-dispensing-app/./src/components/medication-card.scss?82c7","webpack://@openmrs/esm-dispensing-app/./src/components/medication-card.component.tsx","webpack://@openmrs/esm-dispensing-app/./src/components/medication-dispense-review.scss?d386","webpack://@openmrs/esm-dispensing-app/./src/forms/medication-dispense-review.component.tsx","webpack://@openmrs/esm-dispensing-app/./src/medication/medication.resource.tsx","webpack://@openmrs/esm-dispensing-app/./src/forms/stock-dispense/stock-dispense.component.tsx","webpack://@openmrs/esm-dispensing-app/./src/forms/dispense-form.workspace.tsx","webpack://@openmrs/esm-dispensing-app/./src/components/medication-card.scss","webpack://@openmrs/esm-dispensing-app/./src/components/medication-dispense-review.scss"],"names":["sendStockDispenseRequest","stockDispenseRequest","abortController","openmrsFetch","method","signal","headers","body","JSON","stringify","dispenseItems","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","medication","editAction","Tile","className","styles","medicationTile","p","medicationName","strong","getMedicationDisplay","Edit","onClick","getMedicationReferenceOrCodeableConcept","medicationFormulations","medicationDispense","updateMedicationDispense","quantityRemaining","useTranslation","t","config","useConfig","session","useSession","useState","isEditingFormulation","setIsEditingFormulation","isSubstitution","setIsSubstitution","drugDosingUnits","setDrugDosingUnits","drugDispensingUnits","setDrugDispensingUnits","drugRoutes","setDrugRoutes","orderFrequencies","setOrderFrequencies","substitutionTypes","setSubstitutionTypes","substitutionReasons","setSubstitutionReasons","userCanModify","setUserCanModify","isTablet","useLayoutType","allowEditing","dispenseBehavior","allowModifyingPrescription","useOrderConfig","orderConfigObject","useSubstitutionTypeValueSet","valueSets","substitutionType","uuid","substitutionTypeValueSet","useSubstitutionReasonValueSet","substitutionReason","substitutionReasonValueSet","providers","useProviders","dispenserProviderRoles","useMedicationRequest","authorizingPrescription","reference","refreshInterval","medicationRequest","usePrescriptionDetails","encounter","prescriptionDate","useEffect","availableRoutes","map","x","id","otherRouteOptions","forEach","includes","push","text","display","availableDosingUnits","otherDosingUnits","availableDispensingUnits","otherDispensingUnits","availableFrequencies","otherFrequencyOptions","substitutionTypeOptions","compose","include","uuidValueSet","find","system","concept","code","sort","a","b","localeCompare","substitutionReasonOptions","medicationCodeableConcept","existingMedicationCodeableConceptUuid","getConceptCodingUuid","coding","medicationReference","useSWR","fhirBaseUrl","data","medicationCodeableConceptUuid","useMedicationCodeableConcept","getMedicationsByConceptEndpoint","entry","e","resource","substitution","wasSubstituted","reason","type","user","userHasAccess","PRIVILEGE_CREATE_DISPENSE_MODIFY_DETAILS","div","medicationDispenseReviewContainer","Stack","gap","Dropdown","light","items","itemToString","item","getOpenMRSMedicineDrugName","initialSelectedItem","formulation","split","onChange","selectedItem","required","MedicationCard","dispenseDetailsContainer","ComboBox","titleText","NumberInput","allowEmpty","disabled","hideSteppers","invalidText","label","restrictTotalQuantityDispensed","min","max","value","quantity","target","parseFloat","unit","dosageInstruction","doseAndRate","doseQuantity","route","timing","TextArea","labelText","maxLength","OpenmrsDatePicker","minDate","dayjs","startOf","toDate","maxDate","input","currentDate","whenHandedOver","selectedDate","isSame","toISOString","performer","actor","provider","person","updateInventoryItem","isValidBatch","medicationToDispense","inventoryItem","length","some","instruction","dateString","repeat","duration","durationUnit","durationValue","lastMedicationDate","Date","setSeconds","getSeconds","setMinutes","getMinutes","setHours","getHours","setDate","getDate","setMonth","getMonth","setFullYear","getFullYear","expiration","useDispenseStock","drugUuid","url","sessionLocation","error","isLoading","inventoryItems","results","validInventoryItems","filter","dateA","dateB","InlineNotification","aria-label","kind","lowContrast","statusIconDescription","subtitle","title","InlineLoading","description","Layer","batchNumber","Math","floor","quantityUoM","formatDate","toStockDispense","placeholder","medicationRequestBundle","mode","patientUuid","encounterUuid","closeWorkspace","closeWorkspaceWithSavedChanges","usePatient","patient","setInventoryItem","medicationDispensePayload","setMedicationDispensePayload","isValid","setIsValid","isSubmitting","setIsSubmitting","isButtonDisabled","enableStockDispense","bannerState","useMemo","hideActionsOverflow","Form","formWrapper","bannerLoading","iconDescription","status","ExtensionSlot","name","state","section","formGroup","FormLabel","MedicationDispenseReview","StockDispense","buttonGroup","Button","getCoreTranslation","AbortController","saveMedicationDispense","MedicationDispenseStatus","completed","then","response","ok","newFulfillerStatus","computeNewFulfillerStatusAfterDispenseEvent","getFulfillerStatus","request","updateMedicationRequestFulfillerStatus","getUuidFromReference","stockDispenseRequestPayload","dispenseLocation","locationUuid","order","stockItem","stockItemUuid","stockBatch","stockBatchUuid","stockItemPackagingUOM","quantityUoMUuid","createStockDispenseRequestPayload","showSnackbar","message","revalidate","___CSS_LOADER_EXPORT___","module"],"sourceRoot":""}
package/dist/637.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[637],{1637:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var r=n(1672),o=n.n(r),i=n(3397),a=n(1352),s=n(1132),c=n(3439),l=n(2796),u=n(3957),d=n(6139),p=n(1905);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,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.")}()}const v=function(e){var t,n,f,v=e.medicationDispense,y=e.mode,g=e.patientUuid,h=e.encounterUuid,C=e.closeWorkspace,O=e.closeWorkspaceWithSavedChanges,S=(0,i.useTranslation)().t,E=(0,s.useConfig)(),k="tablet"===(0,s.useLayoutType)(),w=(0,s.usePatient)(g),j=w.patient,D=w.isLoading,P=b((0,r.useState)(),2),x=P[0],A=P[1],T=b((0,r.useState)(!1),2),_=T[0],L=T[1],U=b((0,r.useState)(!1),2),F=U[0],I=U[1],N=b((0,r.useState)([]),2),R=N[0],M=N[1],W=(0,c.LL)(E.valueSets.reasonForClose.uuid).reasonForCloseValueSet;(0,r.useEffect)((function(){var e,t,n=[];if(null===(t=W)||void 0===t||null===(e=t.compose)||void 0===e?void 0:e.include){var r,o=W.compose.include.find((function(e){return!e.system}));o&&(null===(r=o.concept)||void 0===r||r.forEach((function(e){return n.push({id:e.code,text:e.display})})),n.sort((function(e,t){return e.text.localeCompare(t.text)})))}M(n)}),[W]),(0,r.useEffect)((function(){return A(v)}),[v]),(0,r.useEffect)((function(){var e;x&&(null===(e=x.statusReasonCodeableConcept)||void 0===e?void 0:e.coding[0].code)?L(!0):L(!1)}),[x]);var Z=(0,r.useMemo)((function(){if(j)return{patient:j,patientUuid:g,hideActionsOverflow:!0}}),[j,g]);return o().createElement(a.l09,{className:p.Z.formWrapper},o().createElement("div",null,D&&o().createElement(a.lSo,{className:p.Z.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),j&&o().createElement(s.ExtensionSlot,{name:"patient-header-slot",state:Z}),o().createElement("section",{className:p.Z.formGroup},o().createElement(a.CtY,{id:"reasonForPause",light:k,items:R,titleText:S("reasonForClose","Reason for close"),itemToString:function(e){var t;return null===(t=e)||void 0===t?void 0:t.text},initialSelectedItem:{id:null===(n=v.statusReasonCodeableConcept)||void 0===n||null===(t=n.coding[0])||void 0===t?void 0:t.code,text:null===(f=v.statusReasonCodeableConcept)||void 0===f?void 0:f.text},onChange:function(e){var t,n,r,o=e.selectedItem;A((n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){m(e,t,n[t])}))}return e}({},x),r=null!=(r={statusReasonCodeableConcept:{coding:[{code:null===(t=o)||void 0===t?void 0:t.id}]}})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})),n))}}))),o().createElement("section",{className:p.Z.buttonGroup},o().createElement(a.zxk,{disabled:F,onClick:C,kind:"secondary"},(0,s.getCoreTranslation)("cancel","Cancel")),o().createElement(a.zxk,{disabled:!_||F,onClick:function(){if(!F){I(!0);var e=new AbortController;(0,c.VF)(x,u.jm.declined,e).then((function(e){return e.ok&&!v.id?(0,l.XN)((0,d.i7)(x.authorizingPrescription[0].reference),u.nn.declined):e})).then((function(e){e.ok&&((0,d.A8)(h),(0,s.showSnackbar)({kind:"success",subtitle:S("enter"===y?"medicationDispenseClosed":"medicationDispenseUpdated","enter"===y?"Medication dispense closed.":"Dispense record successfully updated."),title:S("enter"===y?"medicationDispenseClosed":"medicationDispenseUpdated","enter"===y?"Medication dispense closed.":"Dispense record successfully updated.")}),O())})).catch((function(e){var t;(0,s.showSnackbar)({title:S("enter"===y?"medicationDispenseCloseError":"medicationDispenseUpdatedError","enter"===y?"Error closing medication dispense.":"Error updating dispense record"),kind:"error",subtitle:null===(t=e)||void 0===t?void 0:t.message}),I(!1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AE5D+E,KAAM,QACNiB,SAAUG,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAOC,UAEnBhF,GAAgB,EAClB,GACJ,CACF,GAqESd,EAAW,UAATN,EAAmB,QAAU,cAAwB,UAATA,EAAmB,QAAU,kBAKtF,C","sources":["webpack://@openmrs/esm-dispensing-app/./src/forms/close-dispense-form.workspace.tsx"],"names":["medicationDispense","mode","patientUuid","encounterUuid","closeWorkspace","closeWorkspaceWithSavedChanges","useTranslation","t","config","useConfig","isTablet","useLayoutType","usePatient","patient","isLoading","useState","medicationDispensePayload","setMedicationDispensePayload","isValid","setIsValid","isSubmitting","setIsSubmitting","reasonsForClose","setReasonsForClose","useReasonForCloseValueSet","valueSets","reasonForClose","uuid","reasonForCloseValueSet","useEffect","reasonForCloseOptions","compose","include","uuidValueSet","find","system","concept","forEach","push","id","code","text","display","sort","a","b","localeCompare","statusReasonCodeableConcept","coding","bannerState","useMemo","hideActionsOverflow","Form","className","styles","formWrapper","div","InlineLoading","bannerLoading","iconDescription","description","status","ExtensionSlot","name","state","section","formGroup","ComboBox","light","items","titleText","itemToString","item","initialSelectedItem","onChange","selectedItem","buttonGroup","Button","disabled","onClick","kind","getCoreTranslation","abortController","AbortController","saveMedicationDispense","MedicationDispenseStatus","declined","then","response","ok","updateMedicationRequestFulfillerStatus","getUuidFromReference","authorizingPrescription","reference","MedicationRequestFulfillerStatus","revalidate","showSnackbar","subtitle","title","catch","error","message"],"sourceRoot":""}
package/dist/644.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[644],{1644:e=>{e.exports=JSON.parse('{"active":"激活","activePrescriptions":"当前处方","age":"年龄","allergiesCount_one":"{{count}} 过敏","allergiesCount_other":"{{count}} 过敏","allPrescriptions":"所有处方","appName":"药房","cancelled":"已取消","checkFilters":"检查上方的筛选条件","clearSearchInput":"清除搜索输入","close":"关闭","closed":"已关闭","closedDispense":"配药已关闭","closePrescription":"关闭处方","completed":"已完成","created":"已创建","datePrescribed":"处方日期","delete":"删除","dispense":"配药","dispensed":"已配药","dispenseDate":"配药日期","dispensedBy":"配药人","dispensedMedication":"配方用药","dispensePrescription":"配药处方","dispensing":"配药","dispensingAppError":"配药 App 错误","dispensingAppMisconfigurationMessage":"请联系您的系统管理员:配置错误-如果启用了“allowModifyingPrescription”,则无法启用“restrictTotalQuantityDisposed”。","dose":"剂量","doseUnit":"剂量单位","drugDispensingUnit":"配药单位","drugs":"药物","editCloseeRecord":"编辑关闭记录","editDispenseRecord":"编辑配药记录","editPauseRecord":"编辑暂停记录","editRecord":"编辑记录","error":"错误","errorLoadingInventoryItems":"提取库存时出错","expired":"已过期","filterByLocation":"根据地点过滤","for":"为","frequency":"频率","historyComments":"历史和备注","home":"首页","last14Days":"最近14天","lastDispenser":"最近配药人","loadingInventoryItems":"加载库存条目...","location":"地点","maxQuantityRemaining":"剩余最大数量:","medicationDispenseActionMenu":"药物分配操作菜单","medicationListUpdated":"配药列表已更新","missedCollections":"集合缺失","noAllergyDetailsFound":"未找到过敏详细信息","noPrescriptionsToDisplay":"没有可显示的处方","noRefills":"没有补充项","numberIsNotValid":"数值无效","ordered":"已下医嘱","orderedMedication ":"处方用药","orders":"医嘱","ordersForHomeDelivery":"携家药物医嘱","patientInstructions":"患者指导","patientName":"患者姓名","pause":"暂停","paused":"已暂停","pausedDispense":"配药已暂停","pausePrescription":"暂停处方","prescribed":"已处方","prescriber":"处方人","prescriptionDetails":"处方细节","prescriptionInstructions":"处方指导","prescriptionsToFillToday":"今天要配药","print":"打印","printPrescriptions":"打印处方","quantity":"数量","reasonForClose":"关闭原因","reasonForPause":"暂停原因","refills":"补充","route":"途径","searchByPatientIdOrName":"搜索患者姓名或ID标识","selectPrescriptions":"检查待打印的处方","selectStockDispense":"选择配药的库存","status":"状态","stockDispense":"库存分配","stockDispensed":"库存已分配","stockDispenseDetails":"批次 {{batchNumber}} - 数量: {{quantity}} ({{quantityUoM}}) - 保质期: {{expiration}}","stockDispensedSuccessfully":"库存已成功分配,批次级别已更新。","substitutionReason":"替换原因","substitutionType":"替换类型","tabList":"表列表","today":"今日","view":"查看"}')}}]);
package/dist/652.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[652],{3652:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/673.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[673],{5673:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/705.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[705],{4705:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/711.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[711],{5711:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/727.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[727],{6727:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/737.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[737],{5737:e=>{e.exports=JSON.parse('{"active":"Active","activePrescriptions":"Active prescriptions","age":"Age","allergiesCount_one":"{{count}} allergy","allergiesCount_other":"{{count}} allergies","allPrescriptions":"All prescriptions","appName":"Pharmacy","cancelled":"Cancelled","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","close":"Close","closed":"Closed","closedDispense":"closed dispense","closePrescription":"Close prescription","completed":"Completed","created":"Created","datePrescribed":"Date prescribed","delete":"Delete","dispense":"Dispense","dispensed":"Dispensed","dispenseDate":"Date of Dispense","dispensedBy":"Dispensed by","dispensedMedication":"dispensed medication","dispensePrescription":"Dispense prescription","dispensing":"Dispensing","dispensingAppError":"Dispensing App Error","dispensingAppMisconfigurationMessage":"Please contact your system administration: Misconfiguration - \'restrictTotalQuantityDispensed\' cannot be enabled if \'allowModifyingPrescription\' is enabled.","dose":"Dose","doseUnit":"Dose unit","drugDispensingUnit":"Dispensing unit","drugs":"Drugs","editCloseeRecord":"Edit Close Record","editDispenseRecord":"Edit Dispense Record","editPauseRecord":"Edit Pause Record","editRecord":"Edit Record","error":"Error","errorLoadingInventoryItems":"Error fetching inventory items","expired":"Expired","filterByLocation":"Filter by location","for":"for","frequency":"Frequency","historyComments":"History and comments","home":"Home","last14Days":"Last 14 days","lastDispenser":"Last dispenser","loadingInventoryItems":"Loading inventory items...","location":"Location","maxQuantityRemaining":"Maximum quantity remaining:","medicationDispenseActionMenu":"Medication Dispense Action Menu","medicationListUpdated":"Medication dispense list has been updated.","missedCollections":"Missed collections","noAllergyDetailsFound":"No allergy details found","noPrescriptionsToDisplay":"No prescriptions to display","noRefills":"No refills","numberIsNotValid":"Number is not valid","ordered":"Ordered","orderedMedication ":"ordered medication","orders":"Orders","ordersForHomeDelivery":"Orders for home delivery","patientInstructions":"Patient instructions","patientName":"Patient name","pause":"Pause","paused":"Paused","pausedDispense":"paused dispense","pausePrescription":"Pause prescription","prescribed":"Prescribed","prescriber":"Prescriber","prescriptionDetails":"Prescription details","prescriptionInstructions":"Prescription instructions","prescriptionsToFillToday":"Prescriptions to fill today","print":"Print","printPrescriptions":"Print prescriptions","quantity":"Quantity","reasonForClose":"Reason for close","reasonForPause":"Reason for pause","refills":"Refills","route":"Route","searchByPatientIdOrName":"Search by patient ID or name","selectPrescriptions":"Check prescriptions to print","selectStockDispense":"Select stock to dispense from","status":"Status","stockDispense":"Stock Dispense","stockDispensed":"Stock dispensed","stockDispenseDetails":"Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}","stockDispensedSuccessfully":"Stock dispensed successfully and batch level updated.","substitutionReason":"Reason for substitution","substitutionType":"Type of substitution","tabList":"Tab List","today":"Today","view":"View"}')}}]);
package/dist/749.js DELETED
@@ -1 +0,0 @@
1
- (globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[749,888],{5749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{I18nContext:()=>k,I18nextProvider:()=>le,Trans:()=>Y,Translation:()=>ue,composeInitialProps:()=>T,date:()=>ye,getDefaults:()=>I,getI18n:()=>D,getInitialProps:()=>A,initReactI18next:()=>R,number:()=>ve,plural:()=>he,select:()=>be,selectOrdinal:()=>Oe,setDefaults:()=>N,setI18n:()=>C,time:()=>me,useSSR:()=>pe,useTranslation:()=>re,withSSR:()=>ge,withTranslation:()=>ce});var r=n(3366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var o=n(1002),a=n(4942),c=n(1672),s=n(1739),u=n.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(u()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(l),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),t.attrs[c[0]]=c[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,g=Object.create(null);function y(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(y,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var m={parse:function(e,t){t||(t={}),t.components||(t.components=g);var n,r=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(f,(function(c,s){if(a){if(c!=="</"+n.name+">")return;a=!1}var u,l="/"!==c.charAt(1),f=c.startsWith("\x3c!--"),g=s+c.length,y=e.charAt(g);if(f){var m=p(c);return o<0?(r.push(m),r):((u=i[o]).children.push(m),r)}if(l&&(o++,"tag"===(n=p(c)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!y||"<"===y||n.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===o&&r.push(n),(u=i[o-1])&&u.children.push(n),i[o]=n),(!l||n.voidElement)&&(o>-1&&(n.voidElement||n.name===c.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!a&&"<"!==y&&y)){u=-1===o?r:i[o].children;var v=e.indexOf("<",g),b=e.slice(g,-1===v?void 0:v);d.test(b)&&(b=" "),(v>-1&&o+u.length>=0||" "!==b)&&u.push({type:"text",content:b})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+y("",t)}),"")}};const v=m;var b=n(5671),h=n(3144),O=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,j={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},w=function(e){return j[e]};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E,S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(O,w)}},k=(0,c.createContext)();function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=x(x({},S),e)}function I(){return S}var Z=function(){function e(){(0,b.Z)(this,e),this.usedNamespaces={}}return(0,h.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function C(e){E=e}function D(){return E}var R={type:"3rdParty",init:function(e){N(e.options.react),C(e)}};function T(e){return function(t){return new Promise((function(n){var r=A();e.getInitialProps?e.getInitialProps(t).then((function(e){n(x(x({},e),r))})):n(r)}))}}function A(){var e=D(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}function L(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var z={};function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&z[t[0]]||("string"==typeof t[0]&&(z[t[0]]=new Date),L.apply(void 0,t))}function U(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function F(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var _=["format"],H=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function M(e){return e?e.props?e.props.children:e.children:[]}function $(e){return Array.isArray(e)?e:[e]}function q(e,t){if(!e)return"";var n="",r=$(e),a=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((function(e,r){if("string"==typeof e)n+="".concat(e);else if((0,c.isValidElement)(e)){var s=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===s)n+="<".concat(e.type,"/>");else if(l||u&&0===s)if(e.props.i18nIsDynamicList)n+="<".concat(r,"></").concat(r,">");else if(u&&1===s&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=q(l,t);n+="<".concat(r,">").concat(p,"</").concat(r,">")}else n+="<".concat(r,"></").concat(r,">")}else if(null===e)L("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.Z)(e)){var f=e.format,d=i(e,_),g=Object.keys(d);if(1===g.length){var y=f?"".concat(g[0],", ").concat(f):g[0];n+="{{".concat(y,"}}")}else L("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else L("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function Y(e){var t=e.children,n=e.count,r=e.parent,a=e.i18nKey,s=e.context,u=e.tOptions,l=void 0===u?{}:u,p=e.values,f=e.defaults,d=e.components,g=e.ns,y=e.i18n,m=e.t,b=e.shouldUnescape,h=i(e,H),O=(0,c.useContext)(k)||{},j=O.i18n,w=O.defaultNS,P=y||j||D();if(!P)return B("You will need to pass in an i18next instance by using i18nextReactModule"),t;var x=m||P.t.bind(P)||function(e){return e};s&&(l.context=s);var E=V(V({},I()),P.options&&P.options.react),S=g||x.ns||w||P.options&&P.options.defaultNS;S="string"==typeof S?[S]:S||["translation"];var N=f||q(t,E)||E.transEmptyNodeValue||a,Z=E.hashTransKey,C=a||(Z?Z(N):N),R=p?l.interpolation:{interpolation:V(V({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},T=V(V(V(V({},l),{},{count:n},p),R),{},{defaultValue:N,ns:S}),A=function(e,t,n,r,i,a){if(""===t)return[];var s=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(s.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){$(t).forEach((function(t){"string"!=typeof t&&(W(t)?e(M(t)):"object"!==(0,o.Z)(t)||(0,c.isValidElement)(t)||Object.assign(l,t))}))}(e);var p=v.parse("<0>".concat(t,"</0>")),f=V(V({},l),i);function d(e,t,n){var r=M(e),i=y(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return(0,c.isValidElement)(e)}))}(r)&&0===i.length?r:i}function g(e,t,n,r,i){e.dummy&&(e.children=t),n.push((0,c.cloneElement)(e,V(V({},e.props),{},{key:r}),i?void 0:t))}function y(t,i,l){var p=$(t);return $(i).reduce((function(t,i,m){var v,b,h,O=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,f,n.language);if("tag"===i.type){var j=p[parseInt(i.name,10)];!j&&1===l.length&&l[0][i.name]&&(j=l[0][i.name]),j||(j={});var w=0!==Object.keys(i.attrs).length?(v={props:i.attrs},(h=V({},b=j)).props=Object.assign(v.props,b.props),h):j,P=(0,c.isValidElement)(w),x=P&&W(i,!0)&&!i.voidElement,E=u&&"object"===(0,o.Z)(w)&&w.dummy&&!P,S="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof w){var k=n.services.interpolator.interpolate(w,f,n.language);t.push(k)}else if(W(w)||x)g(w,d(w,i,l),t,m);else if(E){var N=y(p,i.children,l);t.push((0,c.cloneElement)(w,V(V({},w.props),{},{key:m}),N))}else if(Number.isNaN(parseFloat(i.name)))if(S)g(w,d(w,i,l),t,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)t.push((0,c.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var I=y(p,i.children,l);t.push((0,c.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)},I))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var Z=y(p,i.children,l);t.push("<".concat(i.name,">").concat(Z,"</").concat(i.name,">"))}else if("object"!==(0,o.Z)(w)||P)1===i.children.length&&O?t.push((0,c.cloneElement)(w,V(V({},w.props),{},{key:m}),O)):t.push((0,c.cloneElement)(w,V(V({},w.props),{},{key:m})));else{var C=i.children[0]?O:null;C&&t.push(C)}}else if("text"===i.type){var D=r.transWrapTextNodes,R=a?r.unescape(n.services.interpolator.interpolate(i.content,f,n.language)):n.services.interpolator.interpolate(i.content,f,n.language);D?t.push((0,c.createElement)(D,{key:"".concat(i.name,"-").concat(m)},R)):t.push(R)}return t}),[])}return M(y([{dummy:!0,children:e||[]}],p,$(e||[]))[0])}(d||t,C?x(C,T):N,P,E,T,b),L=void 0!==r?r:E.defaultTransParent;return L?(0,c.createElement)(L,h,A):A}var J=n(3878),G=n(1563),Q=n(5267);function X(e,t){return(0,J.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(e,t)||(0,G.Z)(e,t)||(0,Q.Z)()}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=function(e,t){var n=(0,c.useRef)();return(0,c.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,c.useContext)(k)||{},i=r.i18n,o=r.defaultNS,a=n||i||D();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Z),!a){B("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&void 0!==a.options.react.wait&&B("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=te(te(te({},I()),a.options.react),t),p=l.useSuspense,f=l.keyPrefix,d=e||o||a.options&&a.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var g=(a.isInitialized||a.initializedStoreOnce)&&d.every((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||i&&!a(o,e)))}(e,t,n):(B("i18n.languages were undefined or empty",t.languages),!0)}(e,a,l)}));function y(){return a.getFixedT(null,"fallback"===l.nsMode?d:d[0],f)}var m=X((0,c.useState)(y),2),v=m[0],b=m[1],h=d.join(),O=ne(h),j=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){j.current&&b(y)}return j.current=!0,g||p||U(a,d,(function(){j.current&&b(y)})),g&&O&&O!==h&&j.current&&b(y),e&&a&&a.on(e,n),t&&a&&a.store.on(t,n),function(){j.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,n)})),t&&a&&t.split(" ").forEach((function(e){return a.store.off(e,n)}))}}),[a,h]);var w=(0,c.useRef)(!0);(0,c.useEffect)((function(){j.current&&!w.current&&b(y),w.current=!1}),[a,f]);var P=[v,a,g];if(P.t=v,P.i18n=a,P.ready=g,g)return P;if(!g&&!p)return P;throw new Promise((function(e){U(a,d,(function(){e()}))}))}var ie=["forwardedRef"];function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var o=r.forwardedRef,a=i(r,ie),s=X(re(e,ae(ae({},a),{},{keyPrefix:t.keyPrefix})),3),u=s[0],l=s[1],p=s[2],f=ae(ae({},a),{},{t:u,i18n:l,tReady:p});return t.withRef&&o?f.ref=o:!t.withRef&&o&&(f.forwardedRef=o),(0,c.createElement)(n,f)}return r.displayName="withI18nextTranslation(".concat(F(n),")"),r.WrappedComponent=n,t.withRef?(0,c.forwardRef)((function(e,t){return(0,c.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}var se=["ns","children"];function ue(e){var t=e.ns,n=e.children,r=X(re(t,i(e,se)),3),o=r[0],a=r[1],c=r[2];return n(o,{i18n:a,lng:a.language},c)}function le(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(k.Provider,{value:i},r)}function pe(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).i18n,r=((0,c.useContext)(k)||{}).i18n,i=n||r||D();i.options&&i.options.isClone||(e&&!i.initializedStoreOnce&&(i.services.resourceStore.data=e,i.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),i.options.ns),i.initializedStoreOnce=!0,i.isInitialized=!0),t&&!i.initializedLanguageOnce&&(i.changeLanguage(t),i.initializedLanguageOnce=!0))}var fe=["initialI18nStore","initialLanguage"];function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(){return function(e){function t(t){var n=t.initialI18nStore,r=t.initialLanguage,o=i(t,fe);return pe(n,r),(0,c.createElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o))}return t.getInitialProps=T(e),t.displayName="withI18nextSSR(".concat(F(e),")"),t.WrappedComponent=e,t}}var ye=function(){return""},me=function(){return""},ve=function(){return""},be=function(){return""},he=function(){return""},Oe=function(){return""}},1739:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},3878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},5671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},3144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3997);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3997);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},3997:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1002);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},1563:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}n.d(t,{Z:()=>i})}}]);
package/dist/749.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"749.js","mappings":"uiBACe,SAASA,EAAyBC,EAAQC,GACvD,GAAc,MAAVD,EAAgB,MAAO,CAAC,EAC5B,IACIE,EAAKC,EADLC,GAAS,EAAAC,EAAA,GAA6BL,EAAQC,GAElD,GAAIK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AMuO,KAAKxU,GACxC,cAANlB,GAAqB,2CAA2CyC,KAAKzC,GAAW,EAAiBkB,EAAGuU,QAAxG,CALc,CAMhB,C","sources":["webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://@openmrs/esm-dispensing-app/./node_modules/html-parse-stringify/dist/html-parse-stringify.module.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/unescape.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/context.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/utils.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/Trans.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/useTranslation.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/withTranslation.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/Translation.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/I18nextProvider.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/useSSR.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/withSSR.js","webpack://@openmrs/esm-dispensing-app/./node_modules/react-i18next/dist/es/index.js","webpack://@openmrs/esm-dispensing-app/./node_modules/void-elements/index.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://@openmrs/esm-dispensing-app/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"names":["_objectWithoutProperties","source","excluded","key","i","target","objectWithoutPropertiesLoose","Object","getOwnPropertySymbols","sourceSymbolKeys","length","indexOf","prototype","propertyIsEnumerable","call","t","n","r","type","name","voidElement","attrs","children","match","charAt","startsWith","s","comment","slice","a","RegExp","c","exec","trim","o","l","split","lastIndex","substring","create","e","content","push","join","reduce","parse","components","m","u","replace","f","h","p","d","v","x","g","test","stringify","matchHtmlEntity","htmlEntities","unescapeHtmlEntity","ownKeys","object","enumerableOnly","keys","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","arguments","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","i18nInstance","defaultOptions","bindI18n","bindI18nStore","transEmptyNodeValue","transSupportBasicHtmlNodes","transWrapTextNodes","transKeepBasicHtmlNodesFor","useSuspense","unescape","text","I18nContext","createContext","setDefaults","options","undefined","getDefaults","ReportNamespaces","this","usedNamespaces","value","namespaces","_this","ns","setI18n","instance","getI18n","initReactI18next","init","react","composeInitialProps","ForComponent","ctx","Promise","resolve","i18nInitialProps","getInitialProps","then","componentsInitialProps","i18n","reportNamespaces","getUsedNamespaces","ret","initialI18nStore","languages","getResourceBundle","initialLanguage","language","warn","console","_console","_len","args","Array","_key","concat","alreadyWarned","warnOnce","_len2","_key2","Date","loadNamespaces","cb","isInitialized","on","initialized","setTimeout","off","getDisplayName","Component","displayName","_excluded","_excluded2","hasChildren","node","checkLength","base","props","getChildren","getAsArray","data","isArray","nodesToString","i18nOptions","stringNode","childrenArray","keepArray","child","childIndex","isValidElement","childPropsCount","shouldKeepChild","childChildren","i18nIsDynamicList","format","clone","Trans","_ref","count","parent","i18nKey","context","_ref$tOptions","tOptions","values","defaults","i18nFromProps","tFromProps","shouldUnescape","additionalProps","_ref2","useContext","i18nFromContext","defaultNSFromContext","defaultNS","bind","k","reactI18nextOptions","defaultValue","hashTransKey","interpolationOverride","interpolation","prefix","suffix","combinedTOpts","targetString","emptyChildrenButNeedsHandling","getData","childs","assign","ast","opts","renderInner","rootReactNode","mappedChildren","mapAST","toString","every","hasValidReactChildren","pushTranslatedJSX","inner","mem","isVoid","dummy","cloneElement","reactNode","astNode","reactNodes","newTarget","translationContent","services","interpolator","interpolate","tmp","parseInt","isElement","isValidTranslationWithChildren","isEmptyTransWithHTML","isKnownComponent","hasOwnProperty","_inner","Number","isNaN","parseFloat","createElement","_inner3","_inner4","wrapTextNodes","_content","renderNodes","useAsParent","defaultTransParent","_slicedToArray","arr","arrayWithHoles","Symbol","iterator","next","done","unsupportedIterableToArray","nonIterableRest","usePrevious","ignore","ref","useRef","useEffect","current","useTranslation","notReadyT","retNotReady","ready","wait","keyPrefix","addUsedNamespaces","initializedStoreOnce","ignoreJSONStructure","hasLoadedNamespace","precheck","loadNotPending","backendConnector","backend","isLanguageChangingTo","lng","fallbackLng","lastLng","toLowerCase","loadState","state","hasResourceBundle","resources","partialBundledLanguages","oldI18nextHasLoadedNamespace","getT","getFixedT","nsMode","_useState2","useState","setT","joinedNS","previousJoinedNS","isMounted","boundReset","store","isInitial","withTranslation","WrappedComponent","I18nextWithTranslation","forwardedRef","rest","_useTranslation2","passDownProps","tReady","withRef","forwardRef","Translation","I18nextProvider","useMemo","Provider","useSSR","isClone","resourceStore","lngResources","initializedLanguageOnce","changeLanguage","withSSR","I18nextWithSSR","date","time","number","plural","selectOrdinal","module","exports","_arrayWithHoles","_classCallCheck","Constructor","TypeError","_defineProperties","descriptor","configurable","writable","_createClass","protoProps","staticProps","_defineProperty","obj","_nonIterableRest","_objectWithoutPropertiesLoose","sourceKeys","_toPropertyKey","arg","input","hint","prim","toPrimitive","res","String","_typeof","constructor","_arrayLikeToArray","len","arr2","_unsupportedIterableToArray","minLen","from"],"sourceRoot":""}
package/dist/757.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[757],{2757:e=>{e.exports=JSON.parse('{"active":"Actif","activePrescriptions":"Ordonnances actives","age":"Âge","allergiesCount_one":"{{count}} allergie","allergiesCount_other":"{{count}} allergies","allPrescriptions":"Toutes les ordonnances","appName":"Pharmacie","cancelled":"Annulé","checkFilters":"Vérifiez les filtres ci-dessus","clearSearchInput":"Effacer le champ de recherche","close":"Terminer","closed":"Terminé","closedDispense":"distribution terminée","closePrescription":"Fermer l’ordonnance","completed":"Complété","created":"Date de création","datePrescribed":"Date de prescription","delete":"Supprimer","dispense":"Délivrer","dispensed":"Délivré","dispenseDate":"Date de distribution","dispensedBy":"Délivré par","dispensedMedication":"médicament délivré","dispensePrescription":"Délivrer une prescription","dispensing":"Distribution","dispensingAppError":"Erreur de l\'application de distribution","dispensingAppMisconfigurationMessage":"Veuillez contacter votre administrateur du système: Mauvaise configuration - \'restrictTotalQuantityDispensed\' ne peut pas être activé si \'allowModifyingPrescription\' est activé.","dose":"Dose","doseUnit":"Unité","drugDispensingUnit":"Unité","drugs":"Médicaments","editCloseeRecord":"Modifier","editDispenseRecord":"Modifier","editPauseRecord":"Modifier","editRecord":"Modifier","error":"Erreur","errorLoadingInventoryItems":"Erreur d\'obtention des articles en stock","expired":"Périmé","filterByLocation":"Filtrer par localisation","for":"pour","frequency":"Fréquence","historyComments":"Historique et commentaires","home":"Accueil","last14Days":"14 derniers jours","lastDispenser":"Dernière distribution","loadingInventoryItems":"Chargement des articles de l\'inventaire...","location":"Localisation","maxQuantityRemaining":"Quantité maximale disponible :","medicationDispenseActionMenu":"Menu d’actions pour la distribution de médicaments","medicationListUpdated":"La liste de distribution de médicaments a été actualisée.","missedCollections":"Collectes incomplètes","noAllergyDetailsFound":"Aucune information sur les allergies","noPrescriptionsToDisplay":"Aucune ordonnance à afficher","noRefills":"Pas de renouvellement","numberIsNotValid":"Le numéro n’est pas valide","ordered":"Commandé","orderedMedication ":"médicament prescrit","orders":"Prescriptions","ordersForHomeDelivery":"Prescriptions pour livraison à domicile","patientInstructions":"Consignes au patient","patientName":"Nom du patient","pause":"Interruption","paused":"Interrompu","pausedDispense":"distribution interrompue","pausePrescription":"Interrompre la prescription","prescribed":"Prescrit","prescriber":"Prescripteur","prescriptionDetails":"Détails sur la prescription","prescriptionInstructions":"Instructions de prescription","prescriptionsToFillToday":"Prescriptions à exécuter aujourd’hui","print":"Imprimer","printPrescriptions":"Imprimer les ordonnances","quantity":"Quantité","reasonForClose":"Raison de l\'arrêt","reasonForPause":"Raison de l’interruption","refills":"Renouvellements","route":"Route","searchByPatientIdOrName":"Rechercher par identifiant ou nom","selectPrescriptions":"Vérifier les ordonnances à imprimer","selectStockDispense":"Sélectionnez le stock à partir duquel distribuer","status":"Statut","stockDispense":"Distribution de stock","stockDispensed":"Stock distribué","stockDispenseDetails":"Lot : {{batchNumber}} - Quantité : {{quantity}} ({{quantityUoM}}) - Expiration : {{expiration}}","stockDispensedSuccessfully":"Stock distribué et niveau de lot mis à jour.","substitutionReason":"Raison du remplacement","substitutionType":"Type de remplacement","tabList":"Liste des onglets","today":"Aujourd’hui","view":"Aperçu"}')}}]);