@openmrs/esm-dispensing-app 1.5.1-pre.359 → 1.5.1-pre.367
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/829.js +1 -0
- package/dist/829.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-dispensing-app.js +1 -1
- package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +18 -18
- package/dist/routes.json +1 -1
- package/package.json +2 -1
- package/src/components/action-buttons.component.test.tsx +156 -187
- package/src/components/action-buttons.component.tsx +19 -75
- package/src/components/action-buttons.scss +4 -0
- package/src/components/prescription-actions/close-action-button.component.tsx +55 -0
- package/src/components/prescription-actions/dispense-action-button.component.tsx +59 -0
- package/src/components/prescription-actions/pause-action-button.component.tsx +55 -0
- package/src/index.ts +8 -0
- package/src/patient/patient-info-cell.component.tsx +26 -0
- package/src/patient/patient.resources.ts +14 -0
- package/src/prescriptions/prescription-tab-panel.component.tsx +14 -11
- package/src/routes.json +16 -1
- package/dist/788.js +0 -1
- package/dist/788.js.map +0 -1
package/dist/829.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[829],{9273:(e,n,t)=>{"use strict";t.r(n),t.d(n,{closeActionButton:()=>st,dispenseActionButton:()=>ot,dispensing:()=>et,dispensingDashboard:()=>tt,dispensingDashboardLink:()=>at,dispensingLink:()=>nt,importTranslation:()=>Jn,pauseActionButton:()=>rt,startupApp:()=>it});var i=t(1132),a={appName:{_type:i.Type.String,_default:"Pharmacy"},actionButtons:{pauseButton:{enabled:{_type:i.Type.Boolean,_description:"Enabled/Disable including a Pause button in the button action bar",_default:!0}},closeButton:{enabled:{_type:i.Type.Boolean,_description:"Enabled/Disable including a Close button in the button action bar",_default:!0}}},dispenseBehavior:{allowModifyingPrescription:{_type:i.Type.Boolean,_description:"Enable/Disable editing the prescription. If Disabled, Quantity will be he only editable field on prescription form. Note that thins means that quantity units will need to be mandatory and set correctly on the prescription.",_default:!0},restrictTotalQuantityDispensed:{_type:i.Type.Boolean,_description:"Enable/Disable restricting dispensing quantity greater than total quantity ordered. Marks prescription as complete when total quantity dispensed. If true, allowModifyingPrescription *must* be false, as this functionality relies solely on numeric quantity and assumes no change in formulation, dosage, unit, etc",_default:!1}},dispenserProviderRoles:{_type:i.Type.Array,_description:'Array of provider roles uuids. If specified, only providers with these roles will be listed in the "Dispensed By" dropdown. Note that this simply restricts the providers that can be recorded as Dispensers, it does not limit who can create dispense events.',_default:[]},medicationRequestExpirationPeriodInDays:{_type:i.Type.Number,_description:"Medication Requests older that this will be considered expired",_default:90},locationBehavior:{locationColumn:{enabled:{_type:i.Type.Boolean,_description:"Enabled/Disable including a Location column in the main prescriptions table showing ordering location",_default:!1}},locationFilter:{enabled:{_type:i.Type.Boolean,_description:"Enable/Disable Location filter on main prescriptions page",_default:!1},tag:{_type:i.Type.String,_description:"Name of the location tag to use when fetching locations to populate filter",_default:"Login Location"}}},refreshInterval:{_type:i.Type.Number,_description:"The interval, in milliseconds, to query the backend for new/changed data",_default:6e4},valueSets:{reasonForPause:{uuid:{_type:i.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Pause' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2dd3e5c0-3d3f-4f3d-9860-19b3f9ab26ff"}},reasonForClose:{uuid:{_type:i.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Close' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"bd6c1fc2-7cfc-4562-94a0-e4765e5e977e"}},substitutionReason:{uuid:{_type:i.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167862/",_default:"de8671b8-ed2e-4f7e-a9f8-dcd00878f2eb"}},substitutionType:{uuid:{_type:i.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Type of Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167859/",_default:"b9c5bca0-d026-4245-a4d2-e4c0a8999082"}}},enableStockDispense:{_type:i.Type.Boolean,_description:"Enable or disable stock deduction during the dispensing process. Requires the stock management module to be installed and configured.",_default:!1}},o=t(1672),r=t.n(o),s=t(3397),l=(window.getOpenmrsSpaBase,"".concat(window.spaBase).concat("/dispensing")),p="http://fhir.openmrs.org/ext",c=p+"/medicine",d=p+"/medicationrequest/fullfillerstatus",u="Encounter?_query=encountersWithMedicationRequests",g="MedicationRequest",f=t(6350),h=t(3967),m=t.n(h),y=t(5977),b=t(7141);function A(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}var v={isOverlayOpen:!1,component:Function,header:""},$=function(){return(0,i.getGlobalStore)("dispensing-store",v)},_=function(e,n){$().setState({isOverlayOpen:!0,component:n,header:e})},C=function(){$().setState({component:null,isOverlayOpen:!1})},w=t(3379),x=t.n(w),k=t(7795),z=t.n(k),E=t(569),M=t.n(E),D=t(3565),B=t.n(D),S=t(9216),T=t.n(S),I=t(4589),q=t.n(I),N=t(8776),O={};O.styleTagTransform=q(),O.setAttributes=B(),O.insert=M().bind(null,"head"),O.domAPI=z(),O.insertStyleElement=T(),x()(N.Z,O);const F=N.Z&&N.Z.locals?N.Z.locals:void 0;function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const G=function(){var e,n=function(){var e,n,t,i,a,r=(i=(0,o.useState)(),a=2,function(e){if(Array.isArray(e))return e}(i)||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}}(i,a)||function(e,n){if(e){if("string"==typeof e)return A(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)?A(e,n):void 0}}(i,a)||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.")}()),s=r[0],l=r[1];return(0,o.useEffect)((function(){var e=function(e){l(e)};e($().getState()),$().subscribe(e)}),[]),{isOverlayOpen:null===(e=s)||void 0===e?void 0:e.isOverlayOpen,component:null===(n=s)||void 0===n?void 0:n.component,header:null===(t=s)||void 0===t?void 0:t.header}}(),t=n.header,a=n.component,l=n.isOverlayOpen,p=(0,i.useLayoutType)(),c=(0,s.useTranslation)().t;return r().createElement(r().Fragment,null,l&&r().createElement("div",{className:m()((e={},P(e,F.desktopOverlay,"tablet"!==p),P(e,F.tabletOverlay,"tablet"===p),e))},"tablet"!==p?r().createElement("div",{className:F.desktopHeader},r().createElement("div",{className:F.headerContent},t),r().createElement(f.zxk,{className:F.closePanelButton,onClick:function(){return C()},kind:"ghost",hasIconOnly:!0},r().createElement(y.x8,{size:16}))):r().createElement(f.h4i,{onClick:function(){return C()},"aria-label":c("tabletOverlay","Tablet overlay"),className:F.tabletOverlayHeader},r().createElement(f.zxk,{hasIconOnly:!0},r().createElement(b.Xd,{size:16})),r().createElement("div",{className:F.headerContent},t)),r().createElement("div",null,a)))};var U=t(7913),j=t(9658);const R=function(){return r().createElement("svg",{width:"72",height:"72",viewBox:"0 0 62 58",xmlns:"http://www.w3.org/2000/svg"},r().createElement("defs",null,r().createElement("path",{id:"whv9q6f4ta",d:"M0 0h62v30.508H0z"}),r().createElement("path",{id:"hp71ojgcnc",d:"M0 0h24.603v26.571H0z"})),r().createElement("g",{fill:"none"},r().createElement("g",{opacity:".193",transform:"matrix(-1 0 0 1 62 26.571)"},r().createElement("path",{d:"M62 0c0 16.85-13.916 30.508-31.037 30.508S0 16.849 0 0h62z",fill:"var(--brand-03)",mask:"url(#rt0c8mo6eb)"})),r().createElement("g",{opacity:".396",transform:"matrix(-1 0 0 1 60.032 0)"},r().createElement("path",{d:"m24.603 26.571-13.35-23.51C9.592.141 5.884-.869 3.011.817.138 2.503-.855 6.272.804 9.193l9.874 17.378",fill:"var(--brand-03)",mask:"url(#hgianthqwd)"}))))};var L=t(8488),H={};H.styleTagTransform=q(),H.setAttributes=B(),H.insert=M().bind(null,"head"),H.domAPI=z(),H.insertStyleElement=T(),x()(L.Z,H);const W=L.Z&&L.Z.locals?L.Z.locals:void 0;var Z,Y,Q,K,J=function(){var e,n,t=(0,s.useTranslation)().t,a=(0,i.useSession)(),o=(0,i.useConfig)(),l=null===(n=a)||void 0===n||null===(e=n.sessionLocation)||void 0===e?void 0:e.display;return r().createElement("div",{className:W.header},r().createElement("div",{className:W["left-justified-items"]},r().createElement(R,null),r().createElement("div",{className:W["page-labels"]},r().createElement("p",null,t("appName",o.appName)),r().createElement("p",{className:W["page-name"]},t("home","Home")))),r().createElement("div",{className:W["right-justified-items"]},r().createElement("div",{className:W["date-and-location"]},r().createElement(U.Ye,{size:16}),r().createElement("span",{className:W.value},l),r().createElement("span",{className:W.middot},"·"),r().createElement(j.f,{size:16}),r().createElement("span",{className:W.value},(0,i.formatDate)(new Date,{mode:"standard"})))))},V=t(9820);!function(e){e.on_hold="on-hold",e.completed="completed",e.declined="declined"}(Z||(Z={})),function(e){e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired"}(Y||(Y={})),function(e){e.on_hold="ON_HOLD",e.declined="DECLINED",e.completed="COMPLETED"}(Q||(Q={})),function(e){e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired",e.on_hold="on-hold",e.declined="declined",e.unknown="unknown"}(K||(K={}));var X=t(2653),ee=t.n(X);function ne(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 te(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return ne(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)?ne(e,n):void 0}}(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.")}()}var ie="Misconfiguration, please contact your System Administrator: Can't calculate quantity dispensed if units don't match. Likely issue: allowModifyingPrescription and restrictTotalQuantityDispensed configuration parameters both set to true. Either set restrictTotalQuantityDispensed to false or set allowModifyingPrescription to false. If you have previously entered dispense events that modified prescriptions, you will likely need to clean up or remove that data before setting restrictTotalQuantityDispensed to true.";function ae(e,n){if(n&&le(e)<=0)return Q.completed;var t=me(e.dispenses);return t===Z.declined?Q.declined:t===Z.on_hold?Q.on_hold:null}function oe(e,n){var t=re(e,n),i=ge(e);if(t!==Y.active){if(t===Y.expired)return K.expired;if(t===Y.completed)return K.completed;if(t===Y.cancelled)return K.cancelled}return i===Q.declined?K.declined:i===Q.on_hold?K.on_hold:K.active}function re(e,n){var t,i;return e.status===Y.cancelled||e.status===Y.completed?e.status:(null===(i=e.dispenseRequest)||void 0===i||null===(t=i.validityPeriod)||void 0===t?void 0:t.start)&&ee()(e.dispenseRequest.validityPeriod.start).isBefore(ee()().startOf("day").subtract(n,"day"))?Y.expired:Y.active}function se(e,n){var t=function(e,n){if(!e||0===e.length)return null;var t=e.map((function(e){return oe(e,n)}));return t.includes(K.active)?K.active:t.includes(K.on_hold)?K.on_hold:t.includes(K.completed)?K.completed:t.includes(K.declined)?K.declined:t.includes(K.cancelled)?K.cancelled:t.includes(K.expired)?K.expired:null}(e,n);return null===t?null:t===K.active?"active":t===K.on_hold?"paused":t===K.completed?"completed":t===K.declined?"closed":t===K.expired?"expired":t===K.cancelled?"cancelled":null}function le(e){if(e){if(!ve([e.request].concat(te(e.dispenses))))throw new Error(ie);return a=$e(n=e.request),((null===(i=n.dispenseRequest)||void 0===i||null===(t=i.quantity)||void 0===t?void 0:t.value)?n.dispenseRequest.quantity.value*(1+(a||0)):null)-function(e){if(e){if(!ve(e))throw new Error(ie);return e.map((function(e){var n,t;return(null===(n=e.quantity)||void 0===n?void 0:n.value)?null===(t=e.quantity)||void 0===t?void 0:t.value:0})).reduce((function(e,n){return e+n}),0)}return 0}(e.dispenses)}var n,t,i,a;return 0}function pe(e,n){var t;return null===(t=n)||void 0===t?void 0:t.filter((function(n){var t,i;return null===(i=n)||void 0===i||null===(t=i.authorizingPrescription)||void 0===t?void 0:t.some((function(n){return n.reference.endsWith(e.id)}))}))}function ce(e){return e?e.find((function(e){return!("system"in e)||void 0===e.system})):null}function de(e){var n;return null===(n=ce(e))||void 0===n?void 0:n.display}function ue(e){var n;return null===(n=ce(e))||void 0===n?void 0:n.code}function ge(e){var n,t,i;return null===(i=e)||void 0===i||null===(t=i.extension)||void 0===t||null===(n=t.find((function(e){return e.url===d})))||void 0===n?void 0:n.valueCode}function fe(e){var n,t;return e.medicationReference?e.medicationReference.display:de(null===(n=e)||void 0===n?void 0:n.medicationCodeableConcept.coding)+": "+(null===(t=e)||void 0===t?void 0:t.medicationCodeableConcept.text)}function he(e){return{medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept}}function me(e){var n,t=null===(n=e)||void 0===n?void 0:n.sort(we);return t&&t.length>0?t[0].status:null}function ye(e){if(!e||!e.extension)return null;var n=e.extension.find((function(e){return e.url===c}));if(!n||!n.extension)return null;var t=n.extension.find((function(e){return e.url===c+"#drugName"}));return t?t.valueString:null}function be(e,n,t){return n&&(e="".concat(e,"&patientSearchTerm=").concat(n)),t&&(e="".concat(e,"&location=").concat(t)),e}function Ae(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.quantity:"MedicationDispense"==e.resourceType?e.quantity:void 0}function ve(e){if(e){var n=e.map((function(e){var n;return null===(n=Ae(e))||void 0===n?void 0:n.code})).filter((function(e){return e}));return!(n.length>0)||n.every((function(e){return e===n[0]}))}return!0}function $e(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.numberOfRepeatsAllowed:null}function _e(e){var n;return(null===(n=e)||void 0===n?void 0:n.includes("/"))?e.split("/")[1]:e}function Ce(e){(0,V.JG)((function(n){return"string"==typeof n&&(n.startsWith("".concat(i.fhirBaseUrl,"/").concat(u))||n.startsWith("".concat(i.fhirBaseUrl,"/").concat(g,"?encounter=").concat(e)))}))}function we(e,n){if(null===n.whenHandedOver)return 1;if(null===e.whenHandedOver)return-1;var t=(0,i.parseDate)(n.whenHandedOver).getTime()-(0,i.parseDate)(e.whenHandedOver).getTime();return 0!==t?t:e.id.localeCompare(n.id)}function xe(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 ke(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return xe(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)?xe(e,n):void 0}}(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 ze(e){var n,t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[],r=(0,V.ZP)(function(e){return"".concat(i.fhirBaseUrl,"/").concat(g,"?encounter=").concat(e,"&_revinclude=MedicationDispense:prescription&_include=MedicationRequest:encounter")}(e),i.openmrsFetch,{refreshInterval:a}),s=r.data,l=r.error;if(s){var p,c,d=null===(p=s)||void 0===p?void 0:p.data.entry,u=null===(c=d)||void 0===c?void 0:c.filter((function(e){var n,t;return"Encounter"==(null===(t=e)||void 0===t||null===(n=t.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource}));if(u){var f,h,m;n=(0,i.parseDate)(null===(f=u[0])||void 0===f?void 0:f.period.start);var y=null===(h=d)||void 0===h?void 0:h.filter((function(e){var n,t;return"MedicationRequest"==(null===(t=e)||void 0===t||null===(n=t.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),b=null===(m=d)||void 0===m?void 0:m.filter((function(e){var n,t;return"MedicationDispense"==(null===(t=e)||void 0===t||null===(n=t.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})).sort(we);y.every((function(e){return o.push({request:e,dispenses:pe(e,b).sort(we)})}))}}return t=!(o&&0!=o.length||l),{medicationRequestBundles:o,prescriptionDate:n,isError:l,isLoading:t}}function Ee(e,n){var t="".concat(i.fhirBaseUrl,"/MedicationRequest/").concat(e);return(0,i.openmrsFetch)(t,{method:"PATCH",headers:{"Content-Type":"application/merge-patch+json"},body:{extension:[{url:d,valueCode:n}]}})}const Me=function(e){var n=e.patient,t=n.name,a=function(e){var n,t,a="".concat(i.restBaseUrl,"/person/").concat(e,"?v=").concat("custom:(age)"),o=(0,V.ZP)(a,i.openmrsFetch),r=o.data,s=o.error,l=o.isLoading,p=o.mutate;return{age:null===(t=r)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.age,error:s,isLoading:l,mutate:p}}(n.uuid),o=a.error,l=a.isLoading,p=a.age,c=(0,(0,s.useTranslation)().t)("age","Age");if(l||o)return r().createElement(r().Fragment,null,t);var d=function(e,n){var t=e.lastIndexOf(")");return-1!==t?e.slice(0,t)+", ".concat(c,": ").concat(n)+e.slice(t):"".concat(e," ").concat(c,": ").concat(n)}(t,p);return r().createElement(r().Fragment,null,d)};var De=t(9736),Be={};Be.styleTagTransform=q(),Be.setAttributes=B(),Be.insert=M().bind(null,"head"),Be.domAPI=z(),Be.insertStyleElement=T(),x()(De.Z,Be);const Se=De.Z&&De.Z.locals?De.Z.locals:void 0;function Te(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ie(e,n,t){var a=e.id?"".concat(i.fhirBaseUrl,"/MedicationDispense/").concat(e.id):"".concat(i.fhirBaseUrl,"/MedicationDispense"),o=e.id?"PUT":"POST";return e.status=n,e.whenPrepared=e.whenHandedOver,(0,i.openmrsFetch)(a,{method:o,signal:t.signal,headers:{"Content-Type":"application/json"},body:e})}function qe(e){var n,t,a="custom:(uuid,person:(display)";return null===(t=(0,V.ZP)(e&&e.length>0?"".concat(i.restBaseUrl,"/provider?providerRoles=").concat(e.join(","),"&v=").concat(a,")"):"".concat(i.restBaseUrl,"/provider?v=").concat(a,")"),i.openmrsFetch).data)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.results.sort((function(e,n){var t,i;return null===(i=e.person)||void 0===i?void 0:i.display.localeCompare(null===(t=n.person)||void 0===t?void 0:t.display)}))}function Ne(e){var n=(0,V.ZP)("".concat(i.fhirBaseUrl,"/ValueSet/").concat(e),i.openmrsFetch).data;return n?n.data:null}function Oe(e,n,t,i){var a,o,r,s,l,p,c,d,u,g,f,h,m,y={resourceType:"MedicationDispense",status:null,authorizingPrescription:[{reference:"MedicationRequest/"+e.id,type:"MedicationRequest"}],medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept,subject:e.subject,performer:[{actor:{reference:(null===(a=n)||void 0===a?void 0:a.currentProvider)&&t&&t.some((function(e){return e.uuid==n.currentProvider.uuid}))?"Practitioner/".concat(n.currentProvider.uuid):""}}],location:{reference:(null===(o=n)||void 0===o?void 0:o.sessionLocation)?"Location/".concat(n.sessionLocation.uuid):""},whenHandedOver:ee()().format()};return i&&(h=function(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){Te(e,n,t[n])}))}return e}({},y),m=null!=(m={quantity:{value:null===(s=e.dispenseRequest)||void 0===s||null===(r=s.quantity)||void 0===r?void 0:r.value,code:null===(p=e.dispenseRequest)||void 0===p||null===(l=p.quantity)||void 0===l?void 0:l.code,unit:null===(d=e.dispenseRequest)||void 0===d||null===(c=d.quantity)||void 0===c?void 0:c.unit,system:null===(g=e.dispenseRequest)||void 0===g||null===(u=g.quantity)||void 0===u?void 0:u.system},dosageInstruction:[{text:[e.dosageInstruction[0].text,(null===(f=e.dosageInstruction[0].additionalInstruction)||void 0===f?void 0:f.length)>0?e.dosageInstruction[0].additionalInstruction[0].text:null].filter((function(e){return null!=e})).join(" "),timing:e.dosageInstruction[0].timing,asNeededBoolean:!1,route:e.dosageInstruction[0].route,doseAndRate:e.dosageInstruction[0].doseAndRate?e.dosageInstruction[0].doseAndRate:[{doseQuantity:{value:null,code:null,unit:null}}]}],substitution:{wasSubstituted:!1,reason:[{coding:[{code:null}]}],type:{coding:[{code:null}]}}})?m:{},Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}(Object(m)).forEach((function(e){Object.defineProperty(h,e,Object.getOwnPropertyDescriptor(m,e))})),y=h),y}var Fe=t(8404),Pe={};Pe.styleTagTransform=q(),Pe.setAttributes=B(),Pe.insert=M().bind(null,"head"),Pe.domAPI=z(),Pe.insertStyleElement=T(),x()(Fe.Z,Pe);const Ge=Fe.Z&&Fe.Z.locals?Fe.Z.locals:void 0,Ue=function(e){var n,t,i,a,o,l,p,c,d,u,g,f,h,m,y,b,A,v,$,_,C,w=e.medicationEvent,x=e.status,k=void 0===x?null:x,z=(0,s.useTranslation)().t,E=(null===(C=_=w.dosageInstruction)||void 0===C?void 0:C.length)>0?_[0]:null,M=Ae(w),D=$e(w);return r().createElement("div",null,r().createElement("p",{className:Ge.medicationName},k,r().createElement("strong",null,fe(he(w)))),E&&r().createElement("p",{className:Ge.bodyLong01},r().createElement("span",{className:Ge.label01},z("dose","Dose").toUpperCase())," ",r().createElement("span",{className:Ge.dosage},E.doseAndRate&&(null===(n=E)||void 0===n?void 0:n.doseAndRate.map((function(e,n){var t,i,a,o;return r().createElement("span",{key:n},null===(i=e)||void 0===i||null===(t=i.doseQuantity)||void 0===t?void 0:t.value," ",null===(o=e)||void 0===o||null===(a=o.doseQuantity)||void 0===a?void 0:a.unit)}))))," ","— ",null===(i=E)||void 0===i||null===(t=i.route)||void 0===t?void 0:t.text," — ",null===(l=E)||void 0===l||null===(o=l.timing)||void 0===o||null===(a=o.code)||void 0===a?void 0:a.text," ",(null===(d=E)||void 0===d||null===(c=d.timing)||void 0===c||null===(p=c.repeat)||void 0===p?void 0:p.duration)?"for "+(null===(f=E)||void 0===f||null===(g=f.timing)||void 0===g||null===(u=g.repeat)||void 0===u?void 0:u.duration)+" "+(null===(y=E)||void 0===y||null===(m=y.timing)||void 0===m||null===(h=m.repeat)||void 0===h?void 0:h.durationUnit):" "),M&&r().createElement("p",{className:Ge.bodyLong01},r().createElement("span",{className:Ge.label01},z("quantity","Quantity").toUpperCase())," ",r().createElement("span",{className:Ge.quantity},M.value," ",M.unit)),(D||0===D)&&r().createElement("p",{className:Ge.bodyLong01},r().createElement("span",{className:Ge.label01},z("refills","Refills").toUpperCase())," ",r().createElement("span",{className:Ge.refills},D)),(null===(b=E)||void 0===b?void 0:b.text)&&r().createElement("p",{className:Ge.bodyLong01},E.text),(null===(v=E)||void 0===v||null===(A=v.additionalInstruction)||void 0===A?void 0:A.length)>0&&r().createElement("p",{className:Ge.bodyLong01},null===($=E)||void 0===$?void 0:$.additionalInstruction[0].text))};function je(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 Re(){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,i.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()]}}))},Re=function(){var n=this,t=arguments;return new Promise((function(i,a){var o=e.apply(n,t);function r(e){je(o,i,a,r,s,"next",e)}function s(e){je(o,i,a,r,s,"throw",e)}r(void 0)}))},Re.apply(this,arguments)}var Le=t(4672),He=t(7591),We={};We.styleTagTransform=q(),We.setAttributes=B(),We.insert=M().bind(null,"head"),We.domAPI=z(),We.insertStyleElement=T(),x()(He.Z,We);const Ze=He.Z&&He.Z.locals?He.Z.locals:void 0,Ye=function(e){var n=e.medication,t=e.editAction;return r().createElement(f.n9L,{className:Ze.medicationTile},r().createElement("p",{className:Ze.medicationName},r().createElement("strong",null,fe(n))),t&&r().createElement(Le.I8,{onClick:t}))};var Qe=t(4295),Ke={};Ke.styleTagTransform=q(),Ke.setAttributes=B(),Ke.insert=M().bind(null,"head"),Ke.domAPI=z(),Ke.insertStyleElement=T(),x()(Qe.Z,Ke);const Je=Qe.Z&&Qe.Z.locals?Qe.Z.locals:void 0;function Ve(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 Xe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function en(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){Xe(e,n,t[n])}))}return e}function nn(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 tn(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)||on(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 an(e){return function(e){if(Array.isArray(e))return Ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||on(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 on(e,n){if(e){if("string"==typeof e)return Ve(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)?Ve(e,n):void 0}}const rn=function(e){var n,t,a,l,p,c,d,u,g,h,m,y,b,A,v,$,_,C,w,x,k,z,E,M,D,B,S=e.medicationDispense,T=e.updateMedicationDispense,I=e.quantityRemaining,q=(0,s.useTranslation)().t,N=(0,i.useConfig)(),O=(0,i.useSession)(),F=tn((0,o.useState)(!1),2),P=F[0],G=F[1],U=tn((0,o.useState)(!1),2),j=U[0],R=U[1],L=tn((0,o.useState)([]),2),H=L[0],W=L[1],Z=tn((0,o.useState)([]),2),Y=Z[0],Q=Z[1],K=tn((0,o.useState)([]),2),J=K[0],X=K[1],ne=tn((0,o.useState)([]),2),te=ne[0],ie=ne[1],ae=tn((0,o.useState)([]),2),oe=ae[0],re=ae[1],se=tn((0,o.useState)([]),2),le=se[0],pe=se[1],ce=tn((0,o.useState)(!1),2),de=ce[0],ge=ce[1],fe="tablet"===(0,i.useLayoutType)(),me=N.dispenseBehavior.allowModifyingPrescription,be=(z=(0,V.ZP)("".concat(i.restBaseUrl,"/orderentryconfig"),i.openmrsFetch),E=z.data,M=z.error,D=z.isValidating,{orderConfigObject:E?E.data:null,isLoading:!E&&!M,isError:M,isValidating:D}).orderConfigObject,Ae=(B=N.valueSets.substitutionType.uuid,{substitutionTypeValueSet:Ne(B)}).substitutionTypeValueSet,ve=function(e){return{substitutionReasonValueSet:Ne(e)}}(N.valueSets.substitutionReason.uuid).substitutionReasonValueSet,$e=qe(N.dispenserProviderRoles),_e=function(e,n){e=e?e.startsWith("MedicationRequest")?e:"MedicationRequest/".concat(e):null;var t=(0,V.ZP)(e?"".concat(i.fhirBaseUrl,"/").concat(e):null,i.openmrsFetch,{refreshInterval:n}).data;return{medicationRequest:t?t.data:null}}(S.authorizingPrescription?S.authorizingPrescription[0].reference:null,N.refreshInterval).medicationRequest,Ce=ze(_e?_e.encounter.reference:null).prescriptionDate;(0,o.useEffect)((function(){if(be){var e=J.map((function(e){return e.id})),n=[];be.drugRoutes.forEach((function(t){return e.includes(t.uuid)||n.push({id:t.uuid,text:t.display})})),X(an(J).concat(an(n)));var t=H.map((function(e){return e.id})),i=[];be.drugDosingUnits.forEach((function(e){return t.includes(e.uuid)||i.push({id:e.uuid,text:e.display})})),W(an(H).concat(an(i)));var a=Y.map((function(e){return e.id})),o=[];be.drugDispensingUnits.forEach((function(e){return a.includes(e.uuid)||o.push({id:e.uuid,text:e.display})})),Q(an(Y).concat(an(o)));var r=te.map((function(e){return e.id})),s=[];be.orderFrequencies.forEach((function(e){return r.includes(e.uuid)||s.push({id:e.uuid,text:e.display})})),ie(an(te).concat(an(s)))}}),[Y,H,J,be,te]),(0,o.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)}))}re(t)}),[Ae]),(0,o.useEffect)((function(){var e,n,t=[];if(null===(n=ve)||void 0===n||null===(e=n.compose)||void 0===e?void 0:e.include){var i,a=ve.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)}))}pe(t)}),[ve]);var we=ue(null===(t=he(S))||void 0===t||null===(n=t.medicationCodeableConcept)||void 0===n?void 0:n.coding),xe=function(e,n){var t=(0,V.ZP)(e||!n?null:"".concat(i.fhirBaseUrl,"/").concat(n),i.openmrsFetch).data;return{medicationCodeableConceptUuid:t?ue(t.data.code.coding):null}}(we,null===(a=he(S).medicationReference)||void 0===a?void 0:a.reference).medicationCodeableConceptUuid,ke=function(e){var n,t=(0,V.ZP)(e?(n=e,"".concat(i.fhirBaseUrl,"/Medication?code=").concat(n)):null,i.openmrsFetch).data;return t?{medicationFormulations:t.data.entry.map((function(e){return e.resource}))}:{}}(we||xe||null).medicationFormulations;return(0,o.useEffect)((function(){var e,n,t,i;(null===(n=_e)||void 0===n||null===(e=n.medicationReference)||void 0===e?void 0:e.reference)&&(null===(i=S)||void 0===i||null===(t=i.medicationReference)||void 0===t?void 0:t.reference)&&_e.medicationReference.reference!=S.medicationReference.reference?(R(!0),T(nn(en({},S),{substitution:nn(en({},S.substitution),{wasSubstituted:!0})}))):(R(!1),T(nn(en({},S),{substitution:{wasSubstituted:!1,reason:[{coding:[{code:null}]}],type:{coding:[{code:null}]}}})))}),[S,_e,T]),(0,o.useEffect)((function(){var e;ge((null===(e=O)||void 0===e?void 0:e.user)&&(0,i.userHasAccess)("Task: dispensing.create.dispense.allowSubstitutions",O.user))}),[O]),r().createElement("div",{className:Je.medicationDispenseReviewContainer},r().createElement(f.Kqy,{gap:5},P?r().createElement(f.Ltx,{id:"medicationFormulation",light:fe,items:ke,itemToString:function(e){return ye(e)},initialSelectedItem:en({},null===(l=ke)||void 0===l?void 0:l.find((function(e){var n;return e.id===(null===(n=S.medicationReference)||void 0===n?void 0:n.reference.split("/")[1])}))),onChange:function(e){var n,t=e.selectedItem;T(nn(en({},S),{medicationCodeableConcept:void 0,medicationReference:{reference:"Medication/"+(null===(n=t)||void 0===n?void 0:n.id),display:ye(t)}})),G(!1)},required:!0}):r().createElement(Ye,{medication:he(S),editAction:de&&me?function(){return G(!0)}:null}),j&&r().createElement("div",{className:Je.dispenseDetailsContainer},r().createElement(f.CtY,{className:Je.substitutionType,id:"substitutionType",light:fe,items:oe,titleText:q("substitutionType","Type of substitution"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(c=S.substitution.type)||void 0===c||null===(p=c.coding[0])||void 0===p?void 0:p.code,text:null===(d=S.substitution.type)||void 0===d?void 0:d.text},onChange:function(e){var n,t=e.selectedItem;T(nn(en({},S),{substitution:nn(en({},S.substitution),{type:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})}))}})),j&&r().createElement("div",{className:Je.dispenseDetailsContainer},r().createElement(f.CtY,{className:Je.substitutionReason,id:"substitutionReason",light:fe,items:le,titleText:q("substitutionReason","Reason for substitution"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(g=S.substitution.reason[0])||void 0===g||null===(u=g.coding[0])||void 0===u?void 0:u.code,text:null===(h=S.substitution.reason[0])||void 0===h?void 0:h.text},onChange:function(e){var n,t=e.selectedItem;T(nn(en({},S),{substitution:nn(en({},S.substitution),{reason:[{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}]})}))}})),r().createElement("div",{className:Je.dispenseDetailsContainer},r().createElement(f.Y2U,{allowEmpty:!1,disabled:!de,hideSteppers:!0,id:"quantity",invalidText:q("numberIsNotValid","Number is not valid"),label:q("quantity","Quantity")+(N.dispenseBehavior.restrictTotalQuantityDispensed?" ("+q("maxQuantityRemaining","Maximum quantity remaining:")+" "+I+")":""),min:0,max:N.dispenseBehavior.restrictTotalQuantityDispensed?I:void 0,value:S.quantity.value,onChange:function(e){var n;T(nn(en({},S),{quantity:nn(en({},S.quantity),{value:(null===(n=e.target)||void 0===n?void 0:n.value)?parseFloat(e.target.value):""})}))}}),r().createElement(f.CtY,{id:"quantityUnits",disabled:!de||!me,light:fe,items:Y,titleText:q("drugDispensingUnit","Dispensing unit"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:S.quantity.code,text:S.quantity.unit},onChange:function(e){var n,t=e.selectedItem;T(nn(en({},S),{quantity:{value:S.quantity.value,code:null===(n=t)||void 0===n?void 0:n.id}}))},required:!0})),r().createElement("div",{className:Je.dispenseDetailsContainer},r().createElement(f.Y2U,{allowEmpty:!1,disabled:!de||!me,hideSteppers:!0,id:"dosingQuanity",invalidText:q("numberIsNotValid","Number is not valid"),min:0,label:q("dose","Dose"),value:S.dosageInstruction[0].doseAndRate[0].doseQuantity.value,onChange:function(e){var n;T(nn(en({},S),{dosageInstruction:[nn(en({},S.dosageInstruction[0]),{doseAndRate:[nn(en({},S.dosageInstruction[0].doseAndRate[0]),{doseQuantity:nn(en({},S.dosageInstruction[0].doseAndRate[0].doseQuantity),{value:(null===(n=e.target)||void 0===n?void 0:n.value)?parseFloat(e.target.value):""})})]})]}))}}),r().createElement(f.CtY,{id:"dosingUnits",disabled:!de||!me,light:fe,items:H,titleText:q("doseUnit","Dose unit"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(m=S.dosageInstruction[0].doseAndRate[0].doseQuantity)||void 0===m?void 0:m.code,text:null===(y=S.dosageInstruction[0].doseAndRate[0].doseQuantity)||void 0===y?void 0:y.unit},onChange:function(e){var n,t,i=e.selectedItem;T(nn(en({},S),{dosageInstruction:[nn(en({},S.dosageInstruction[0]),{doseAndRate:[{doseQuantity:{value:null===(n=S.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}),r().createElement(f.CtY,{id:"editRoute",disabled:!de||!me,light:fe,items:J,initialSelectedItem:{id:null===(A=S.dosageInstruction[0].route)||void 0===A||null===(b=A.coding[0])||void 0===b?void 0:b.code,text:null===(v=S.dosageInstruction[0].route)||void 0===v?void 0:v.text},titleText:q("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;T(nn(en({},S),{dosageInstruction:[nn(en({},S.dosageInstruction[0]),{route:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})]}))},required:!0})),r().createElement(f.CtY,{id:"frequency",disabled:!de||!me,light:fe,items:te,initialSelectedItem:{id:null===(C=S.dosageInstruction[0].timing)||void 0===C||null===(_=C.code)||void 0===_||null===($=_.coding[0])||void 0===$?void 0:$.code,text:null===(x=S.dosageInstruction[0].timing)||void 0===x||null===(w=x.code)||void 0===w?void 0:w.text},titleText:q("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;T(nn(en({},S),{dosageInstruction:[nn(en({},S.dosageInstruction[0]),{timing:nn(en({},S.dosageInstruction[0].timing),{code:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})})]}))},required:!0}),r().createElement(f.Kx8,{labelText:q("patientInstructions","Patient instructions"),value:S.dosageInstruction[0].text,maxLength:65535,onChange:function(e){T(nn(en({},S),{dosageInstruction:[nn(en({},S.dosageInstruction[0]),{text:e.target.value})]}))}}),r().createElement(i.OpenmrsDatePicker,{id:"dispenseDate",labelText:q("dispenseDate","Date of Dispense"),minDate:Ce?ee()(Ce).startOf("day").toDate():null,maxDate:ee()().toDate(),onChange:function(e){var n,t=S.whenHandedOver?ee()(S.whenHandedOver):null,i=ee()(e);T(nn(en({},S),{whenHandedOver:(null===(n=t)||void 0===n?void 0:n.isSame(i,"day"))?t.toISOString():i.toISOString()}))},value:ee()(S.whenHandedOver).toDate()}),$e&&r().createElement(f.CtY,{id:"dispenser",light:fe,initialSelectedItem:(null===(k=S)||void 0===k?void 0:k.performer[0].actor.reference)?$e.find((function(e){var n;return e.uuid===(null===(n=S)||void 0===n?void 0:n.performer[0].actor.reference.split("/")[1])})):null,onChange:function(e){var n,t=e.selectedItem;T(nn(en({},S),{performer:[{actor:{reference:"Practitioner/".concat(null===(n=t)||void 0===n?void 0:n.uuid)}}]}))},items:$e,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:q("dispensedBy","Dispensed by")})))},sn=function(e){var n,t,a,o=e.medicationDispense,l=e.updateInventoryItem,p=(0,s.useTranslation)().t,c=function(e){var n,t,a,o,r,s,l,p=(0,i.useSession)(),c="/ws/rest/v1/stockmanagement/stockiteminventory?v=default&totalCount=true&drugUuid=".concat(e,"&includeBatchNo=true&groupBy=LocationStockItemBatchNo&dispenseLocationUuid=").concat(null===(t=p)||void 0===t||null===(n=t.sessionLocation)||void 0===n?void 0:n.uuid,"&includeStrength=1&includeConceptRefIds=1&emptyBatch=1&emptyBatchLocationUuid=").concat(null===(o=p)||void 0===o||null===(a=o.sessionLocation)||void 0===a?void 0:a.uuid,"&dispenseAtLocation=1"),d=(0,V.ZP)(c,i.openmrsFetch),u=d.data,g=d.error,f=d.isLoading;return{inventoryItems:null!==(l=null===(s=u)||void 0===s||null===(r=s.data)||void 0===r?void 0:r.results)&&void 0!==l?l:[],error:g,isLoading:f}}(null===(a=o)||void 0===a||null===(t=a.medicationReference)||void 0===t||null===(n=t.reference)||void 0===n?void 0:n.split("/")[1]),d=c.inventoryItems,u=c.error,g=c.isLoading,h=d.filter((function(e){return t=e,!!((null===(i=n=o)||void 0===i?void 0:i.dosageInstruction)&&(null===(a=n)||void 0===a?void 0:a.dosageInstruction.length)>0)&&n.dosageInstruction.some((function(e){var n,i,a,o,r;if((null===(i=e.timing)||void 0===i||null===(n=i.repeat)||void 0===n?void 0:n.duration)&&(null===(o=e.timing)||void 0===o||null===(a=o.repeat)||void 0===a?void 0:a.durationUnit)&&t.quantity>0){var s=e.timing.repeat.durationUnit,l=e.timing.repeat.duration,p=new Date;switch(s){case"s":p.setSeconds(p.getSeconds()+l);break;case"min":p.setMinutes(p.getMinutes()+l);break;case"h":p.setHours(p.getHours()+l);break;case"d":p.setDate(p.getDate()+l);break;case"wk":p.setDate(p.getDate()+7*l);break;case"mo":p.setMonth(p.getMonth()+l);break;case"y":p.setFullYear(p.getFullYear()+l);break;default:return!1}return r=t.expiration,new Date(r)>p}return!1}));var n,t,i,a}));return u?r().createElement(f.K0D,{"aria-label":"closes notification",kind:"error",lowContrast:!0,statusIconDescription:"notification",subtitle:p("errorLoadingInventoryItems","Error fetching inventory items"),title:p("error","Error")}):g?r().createElement(f.lSo,{description:p("loadingInventoryItems","Loading inventory items...")}):r().createElement(f.mh4,null,r().createElement(f.CtY,{id:"stockDispense",items:h,onChange:function(e){var n=e.selectedItem;l(n)},itemToString:function(e){return e?function(e){return p("stockDispenseDetails","Batch: {{batchNumber}} - Quantity: {{quantity}} ({{quantityUoM}}) - Expiry: {{expiration}}",{batchNumber:e.batchNumber,quantity:Math.floor(e.quantity),quantityUoM:e.quantityUoM,expiration:(0,i.formatDate)(new Date(e.expiration))})}(e):""},titleText:p("stockDispense","Stock Dispense"),placeholder:p("selectStockDispense","Select stock to dispense from")}))};var ln=t(6002),pn={};pn.styleTagTransform=q(),pn.setAttributes=B(),pn.insert=M().bind(null,"head"),pn.domAPI=z(),pn.insertStyleElement=T(),x()(ln.Z,pn);const cn=ln.Z&&ln.Z.locals?ln.Z.locals:void 0;function dn(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 un(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 dn(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)?dn(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 gn=function(e){var n=e.medicationDispense,t=e.medicationRequestBundle,a=e.mode,l=e.patientUuid,p=e.encounterUuid,c=e.quantityRemaining,d=(0,s.useTranslation)().t,u=(0,i.usePatient)(l),g=u.patient,h=u.isLoading,m=(0,i.useConfig)(),y=un((0,o.useState)(),2),b=y[0],A=y[1],v=un((0,o.useState)(),2),$=v[0],_=v[1],w=un((0,o.useState)(!1),2),x=w[0],k=w[1],z=un((0,o.useState)(!1),2),E=z[0],M=z[1];(0,o.useEffect)((function(){return _(n)}),[n]),(0,o.useEffect)((function(){var e,n,t,i,a,o,r,s,l,p,d,u,g,f,h,m,y;$&&$.performer&&(null===(e=$.performer[0])||void 0===e?void 0:e.actor.reference)&&(null===(n=$.quantity)||void 0===n?void 0:n.value)&&(!c||(null===(i=$)||void 0===i||null===(t=i.quantity)||void 0===t?void 0:t.value)<=c)&&(null===(a=$.quantity)||void 0===a?void 0:a.code)&&(null===(s=$.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===(d=$.dosageInstruction[0])||void 0===d||null===(p=d.doseAndRate[0])||void 0===p||null===(l=p.doseQuantity)||void 0===l?void 0:l.code)&&(null===(g=$.dosageInstruction[0])||void 0===g||null===(u=g.route)||void 0===u?void 0:u.coding[0].code)&&(null===(h=$.dosageInstruction[0])||void 0===h||null===(f=h.timing)||void 0===f?void 0:f.code.coding[0].code)&&(!$.substitution.wasSubstituted||(null===(m=$.substitution.reason[0])||void 0===m?void 0:m.coding[0].code)&&(null===(y=$.substitution.type)||void 0===y?void 0:y.coding[0].code))?k(!0):k(!1)}),[$,c,b]);var D=!!m.enableStockDispense&&!b||!x||E,B=(0,o.useMemo)((function(){if(g)return{patient:g,patientUuid:l,hideActionsOverflow:!0}}),[g,l]);return r().createElement("div",null,r().createElement("div",{className:cn.formWrapper},h&&r().createElement(f.lSo,{className:cn.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),g&&r().createElement(i.ExtensionSlot,{name:"patient-header-slot",state:B}),r().createElement("section",{className:cn.formGroup},r().createElement(f.lXp,null,d(m.dispenseBehavior.allowModifyingPrescription?"drugHelpText":"drugHelpTextNoEdit",m.dispenseBehavior.allowModifyingPrescription?"You may edit the formulation and quantity dispensed here":"You may edit quantity dispensed here")),$?r().createElement("div",null,r().createElement(rn,{medicationDispense:$,updateMedicationDispense:_,quantityRemaining:c}),m.enableStockDispense&&r().createElement(sn,{inventoryItem:b,medicationDispense:n,updateInventoryItem:A})):null),r().createElement("section",{className:cn.buttonGroup},r().createElement(f.zxk,{disabled:E,onClick:function(){return C()},kind:"secondary"},d("cancel","Cancel")),r().createElement(f.zxk,{disabled:D,onClick:function(){if(!E){M(!0);var e=new AbortController;Ie($,Z.completed,e).then((function(e){if(e.ok){var n=function(e,n,t){var i=te(n.dispenses);return i=e.id?i.map((function(n){return n.id===e.id?e:n})):[e].concat(te(i)),ae({request:n.request,dispenses:i},t)}($,t,m.dispenseBehavior.restrictTotalQuantityDispensed);if(ge(t.request)!==n)return Ee(_e($.authorizingPrescription[0].reference),n)}return e})).then((function(n){var t=n.status;if(m.enableStockDispense&&(201===t||200===t)){var a=function(e,n,t,i){var a;return{dispenseLocation:e.locationUuid,patient:n,order:_e(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}}(b,l,p,$);(function(e,n){return Re.apply(this,arguments)})(a,e).then((function(){(0,i.showToast)({critical:!0,title:d("stockDispensed","Stock dispensed"),kind:"success",description:d("stockDispensedSuccessfully","Stock dispensed successfully and batch level updated.")})}),(function(e){var n;(0,i.showToast)({title:"Stock dispense error",kind:"error",description:null===(n=e)||void 0===n?void 0:n.message})}))}return n})).then((function(e){var n=e.status;201!==n&&200!==n||(C(),Ce(p),(0,i.showToast)({critical:!0,kind:"success",description:d("medicationListUpdated","Medication dispense list has been updated."),title:d("enter"===a?"medicationDispensed":"medicationDispenseUpdated","enter"===a?"Medication successfully dispensed.":"Dispense record successfully updated.")}))}),(function(e){var n;(0,i.showNotification)({title:d("enter"===a?"medicationDispenseError":"medicationDispenseUpdatedError","enter"===a?"Error dispensing medication.":"Error updating dispense record"),kind:"error",critical:!0,description:null===(n=e)||void 0===n?void 0:n.message}),M(!1)}))}}},d("enter"===a?"dispensePrescription":"saveChanges","enter"===a?"Dispense prescription":"Save changes")))))};function fn(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 hn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mn(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 fn(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)?fn(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 yn=function(e){var n,t,a,l,p=e.medicationDispense,c=e.mode,d=e.patientUuid,u=e.encounterUuid,g=(0,s.useTranslation)().t,h=(0,i.useConfig)(),m="tablet"===(0,i.useLayoutType)(),y=(0,i.usePatient)(d),b=y.patient,A=y.isLoading,v=mn((0,o.useState)(),2),$=v[0],_=v[1],w=mn((0,o.useState)(!1),2),x=w[0],k=w[1],z=mn((0,o.useState)(!1),2),E=z[0],M=z[1],D=mn((0,o.useState)([]),2),B=D[0],S=D[1],T=(l=h.valueSets.reasonForPause.uuid,{reasonForPauseValueSet:Ne(l)}).reasonForPauseValueSet;(0,o.useEffect)((function(){var e,n,t=[];if(null===(n=T)||void 0===n||null===(e=n.compose)||void 0===e?void 0:e.include){var i,a=T.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)})))}S(t)}),[T]),(0,o.useEffect)((function(){return _(p)}),[p]),(0,o.useEffect)((function(){var e;$&&(null===(e=$.statusReasonCodeableConcept)||void 0===e?void 0:e.coding[0].code)?k(!0):k(!1)}),[$]);var I=(0,o.useMemo)((function(){if(b)return{patient:b,patientUuid:d,hideActionsOverflow:!0}}),[b,d]);return r().createElement("div",{className:""},r().createElement("div",{className:cn.formWrapper},A&&r().createElement(f.lSo,{className:cn.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),b&&r().createElement(i.ExtensionSlot,{name:"patient-header-slot",state:I}),r().createElement("section",{className:cn.formGroup},r().createElement(f.CtY,{id:"reasonForPause",light:m,items:B,titleText:g("reasonForPause","Reason for pause"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(t=p.statusReasonCodeableConcept)||void 0===t||null===(n=t.coding[0])||void 0===n?void 0:n.code,text:null===(a=p.statusReasonCodeableConcept)||void 0===a?void 0:a.text},onChange:function(e){var n,t,i,a=e.selectedItem;_((t=function(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){hn(e,n,t[n])}))}return e}({},$),i=null!=(i={statusReasonCodeableConcept:{coding:[{code:null===(n=a)||void 0===n?void 0:n.id}]}})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})),t))}})),r().createElement("section",{className:cn.buttonGroup},r().createElement(f.zxk,{disabled:E,onClick:function(){return C()},kind:"secondary"},g("cancel","Cancel")),r().createElement(f.zxk,{disabled:!x||E,onClick:function(){if(!E){M(!0);var e=new AbortController;Ie($,Z.on_hold,e).then((function(e){return e.ok&&!p.id?Ee(_e($.authorizingPrescription[0].reference),Q.on_hold):e})).then((function(e){e.ok&&(C(),Ce(u),(0,i.showToast)({critical:!0,kind:"success",description:g("enter"===c?"medicationDispensePaused":"medicationDispenseUpdated","enter"===c?"Medication dispense paused.":"Dispense record successfully updated."),title:g("enter"===c?"medicationDispensePaused":"medicationDispenseUpdated","enter"===c?"Medication dispense paused.":"Dispense record successfully updated.")}))})).catch((function(e){var n;(0,i.showNotification)({title:g("enter"===c?"medicationDispensePauseError":"medicationDispenseUpdatedError","enter"===c?"Error pausing medication dispense.":"Error updating dispense record"),kind:"error",critical:!0,description:null===(n=e)||void 0===n?void 0:n.message}),M(!1)}))}}},g("enter"===c?"pause":"saveChanges","enter"===c?"Pause":"Save changes")))))};function bn(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 An(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function vn(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 bn(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)?bn(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const $n=function(e){var n,t,a,l,p=e.medicationDispense,c=e.mode,d=e.patientUuid,u=e.encounterUuid,g=(0,s.useTranslation)().t,h=(0,i.useConfig)(),m="tablet"===(0,i.useLayoutType)(),y=(0,i.usePatient)(d),b=y.patient,A=y.isLoading,v=vn((0,o.useState)(),2),$=v[0],_=v[1],w=vn((0,o.useState)(!1),2),x=w[0],k=w[1],z=vn((0,o.useState)(!1),2),E=z[0],M=z[1],D=vn((0,o.useState)([]),2),B=D[0],S=D[1],T=(l=h.valueSets.reasonForClose.uuid,{reasonForCloseValueSet:Ne(l)}).reasonForCloseValueSet;(0,o.useEffect)((function(){var e,n,t=[];if(null===(n=T)||void 0===n||null===(e=n.compose)||void 0===e?void 0:e.include){var i,a=T.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)})))}S(t)}),[T]),(0,o.useEffect)((function(){return _(p)}),[p]),(0,o.useEffect)((function(){var e;$&&(null===(e=$.statusReasonCodeableConcept)||void 0===e?void 0:e.coding[0].code)?k(!0):k(!1)}),[$]);var I=(0,o.useMemo)((function(){if(b)return{patient:b,patientUuid:d,hideActionsOverflow:!0}}),[b,d]);return r().createElement("div",{className:""},r().createElement("div",{className:cn.formWrapper},A&&r().createElement(f.lSo,{className:cn.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),b&&r().createElement(i.ExtensionSlot,{name:"patient-header-slot",state:I}),r().createElement("section",{className:cn.formGroup},r().createElement(f.CtY,{id:"reasonForPause",light:m,items:B,titleText:g("reasonForClose","Reason for close"),itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.text},initialSelectedItem:{id:null===(t=p.statusReasonCodeableConcept)||void 0===t||null===(n=t.coding[0])||void 0===n?void 0:n.code,text:null===(a=p.statusReasonCodeableConcept)||void 0===a?void 0:a.text},onChange:function(e){var n,t,i,a=e.selectedItem;_((t=function(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){An(e,n,t[n])}))}return e}({},$),i=null!=(i={statusReasonCodeableConcept:{coding:[{code:null===(n=a)||void 0===n?void 0:n.id}]}})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})),t))}})),r().createElement("section",{className:cn.buttonGroup},r().createElement(f.zxk,{disabled:E,onClick:function(){return C()},kind:"secondary"},g("cancel","Cancel")),r().createElement(f.zxk,{disabled:!x||E,onClick:function(){if(!E){M(!0);var e=new AbortController;Ie($,Z.declined,e).then((function(e){return e.ok&&!p.id?Ee(_e($.authorizingPrescription[0].reference),Q.declined):e})).then((function(e){e.ok&&(C(),Ce(u),(0,i.showToast)({critical:!0,kind:"success",description:g("enter"===c?"medicationDispenseClosed":"medicationDispenseUpdated","enter"===c?"Medication dispense closed.":"Dispense record successfully updated."),title:g("enter"===c?"medicationDispenseClosed":"medicationDispenseUpdated","enter"===c?"Medication dispense closed.":"Dispense record successfully updated.")}))})).catch((function(e){var n;(0,i.showNotification)({title:g("enter"===c?"medicationDispenseCloseError":"medicationDispenseUpdatedError","enter"===c?"Error closing medication dispense.":"Error updating dispense record"),kind:"error",critical:!0,description:null===(n=e)||void 0===n?void 0:n.message}),M(!1)}))}}},g("enter"===c?"close":"saveChanges","enter"===c?"Close":"Save changes")))))},_n=function(e){var n=e.encounterUuid,t=e.patientUuid,a=(0,s.useTranslation)().t,o=(0,i.useSession)(),l=(0,i.useConfig)(),p=ze(n,l.refreshInterval),c=p.medicationRequestBundles,d=p.prescriptionDate,u=p.isError,g=p.isLoading,h=function(e){return e.status===Z.completed?r().createElement(f.Vp9,{type:"gray"},a("dispensed","Dispensed")):e.status===Z.on_hold?r().createElement(f.Vp9,{type:"red"},a("paused","Paused")):e.status===Z.declined?r().createElement(f.Vp9,{type:"red"},a("closed","Closed")):null},m=function(e,t){var a,o=ge(t.request),r=function(e,n,t){return ae({request:n.request,dispenses:n.dispenses.filter((function(n){return n.id!==e.id}))},t)}(e,t,l.dispenseBehavior.restrictTotalQuantityDispensed);o!==r&&Ee(_e(e.authorizingPrescription[0].reference),r).then((function(){Ce(n)})),(a=e.id,(0,i.openmrsFetch)("".concat(i.fhirBaseUrl,"/MedicationDispense/").concat(a),{method:"DELETE"})).then((function(){Ce(n)}))};return r().createElement("div",{className:Se.historyAndCommentsContainer},g&&r().createElement(f.gqd,{role:"progressbar"}),u&&r().createElement("p",null,a("error","Error")),c&&c.flatMap((function(e){return e.dispenses})).sort(we).map((function(e){var s,p,d;return r().createElement("div",{key:e.id},r().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.performer&&(null===(p=e.performer[0])||void 0===p||null===(s=p.actor)||void 0===s?void 0:s.display)," ",(d=e).status===Z.completed?a("dispensedMedication","dispensed medication"):d.status===Z.on_hold?a("pausedDispense","paused dispense"):d.status===Z.declined?a("closedDispense","closed dispense"):null," -"," ",(0,i.formatDatetime)((0,i.parseDate)(e.whenHandedOver))),r().createElement(f.n9L,{className:Se.dispenseTile},function(e,s){var p=function(e){var n;return(null===(n=e)||void 0===n?void 0:n.user)&&(0,i.userHasAccess)("Task: dispensing.edit.dispense",e.user)}(o),c=function(e,n){var t;if(null===(t=e)||void 0===t?void 0:t.user){var a,o;if((0,i.userHasAccess)("Task: dispensing.delete.dispense",e.user))return!0;if((0,i.userHasAccess)("Task: dispensing.delete.dispense.ifCreator",e.user)&&(null===(a=e.currentProvider)||void 0===a?void 0:a.uuid)&&null!=(null===(o=n.performer)||void 0===o?void 0:o.find((function(n){var t,i,a;return(null===(a=n)||void 0===a||null===(i=a.actor)||void 0===i||null===(t=i.reference)||void 0===t?void 0:t.length)>1&&n.actor.reference.split("/")[1]===e.currentProvider.uuid}))))return!0}return!1}(o,e);return p||c?r().createElement(f.PQB,{ariaLabel:a("medicationDispenseActionMenu","Medication Dispense Action Menu"),flipped:!0,className:Se.medicationEventActionMenu},p&&r().createElement(f.laM,{onClick:function(){return _(function(e){return e.status===Z.completed?a("editDispenseRecord","Edit Dispense Record"):e.status===Z.on_hold?a("editPauseRecord","Edit Pause Record"):e.status===Z.declined?a("editCloseeRecord","Edit Close Record"):void 0}(e),function(e,i){if(e.status===Z.completed){var a,o=null;return l.dispenseBehavior.restrictTotalQuantityDispensed&&(o=le(i)+((null===(a=e)||void 0===a?void 0:a.quantity)?e.quantity.value:0)),r().createElement(gn,{patientUuid:t,encounterUuid:n,medicationDispense:e,medicationRequestBundle:i,quantityRemaining:o,mode:"edit"})}return e.status===Z.on_hold?r().createElement(yn,{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}):e.status===Z.declined?r().createElement($n,{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}):void 0}(e,s))},itemText:a("editRecord","Edit Record")}),c&&r().createElement(f.laM,{onClick:function(){m(e,s)},itemText:a("delete","Delete")})):null}(e,function(e,n){return e.find((function(e){return e.dispenses.find((function(e){return e.id===n.id}))}))}(c,e)),r().createElement(Ue,{medicationEvent:e,status:h(e)})))})),c&&c.flatMap((function(e){return e.request})).map((function(e){return r().createElement("div",{key:e.id},r().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.requester.display," ",a("orderedMedication ","ordered medication")," -"," ",(0,i.formatDatetime)(d)),r().createElement(f.n9L,{className:Se.requestTile},r().createElement(Ue,{medicationEvent:e,status:r().createElement(f.Vp9,{type:"green"},a("ordered","Ordered"))})))})))};var Cn=t(4511),wn={};wn.styleTagTransform=q(),wn.setAttributes=B(),wn.insert=M().bind(null,"head"),wn.domAPI=z(),wn.insertStyleElement=T(),x()(Cn.Z,wn);const xn=Cn.Z&&Cn.Z.locals?Cn.Z.locals:void 0;var kn=t(4881),zn=t(1127),En={};En.styleTagTransform=q(),En.setAttributes=B(),En.insert=M().bind(null,"head"),En.domAPI=z(),En.insertStyleElement=T(),x()(zn.Z,En);const Mn=zn.Z&&zn.Z.locals?zn.Z.locals:void 0,Dn=function(e){var n=e.medicationRequestBundle,t=e.patientUuid,a=e.encounterUuid,o=((0,s.useTranslation)().t,(0,i.useConfig)()),l=(0,i.useSession)(),p=qe(o.dispenserProviderRoles),c=me(n.dispenses),d=re(n.request,o.medicationRequestExpirationPeriodInDays),u=d===Y.active&&c!==Z.declined,g=o.actionButtons.pauseButton.enabled&&d===Y.active&&c!==Z.on_hold&&c!==Z.declined,f=o.actionButtons.closeButton.enabled&&d===Y.active&&c!==Z.declined,h=null;o.dispenseBehavior.restrictTotalQuantityDispensed&&(h=le(n));var m={dispensable:u,pauseable:g,closeable:f,quantityRemaining:h,patientUuid:t,encounterUuid:a,medicationRequestBundle:n,session:l,providers:p};return r().createElement("div",{className:Mn.actionBtns},r().createElement(i.ExtensionSlot,{className:Mn.extensionSlot,name:"prescription-action-button-slot",state:m}))};var Bn=t(583),Sn={};Sn.styleTagTransform=q(),Sn.setAttributes=B(),Sn.insert=M().bind(null,"head"),Sn.domAPI=z(),Sn.insertStyleElement=T(),x()(Bn.Z,Sn);const Tn=Bn.Z&&Bn.Z.locals?Bn.Z.locals:void 0;function In(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}const qn=function(e){var n,t,a=e.encounterUuid,l=e.patientUuid,p=(0,s.useTranslation)().t,c=(0,i.useConfig)(),d=(n=(0,o.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(n)||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}}(n,t)||function(e,n){if(e){if("string"==typeof e)return In(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)?In(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],g=d[1],h=function(e,n){var t,a,o,r=(0,V.ZP)("".concat(i.fhirBaseUrl,"/AllergyIntolerance?patient=").concat(e),i.openmrsFetch,{refreshInterval:n}),s=r.data,l=r.error,p=[];return s&&(null===(o=null===(a=s)||void 0===a?void 0:a.data.entry)||void 0===o||o.map((function(e){return p.push(e.resource)}))),{allergies:p,totalAllergies:null===(t=s)||void 0===t?void 0:t.data.total,isError:l}}(l,c.refreshInterval),m=h.allergies,y=h.totalAllergies,b=ze(a,c.refreshInterval),A=b.medicationRequestBundles,v=b.isError,$=b.isLoading;return(0,o.useEffect)((function(){"number"==typeof y&&g(!1)}),[y]),r().createElement("div",{className:Tn.prescriptionContainer},u&&r().createElement(f.gqd,{role:"progressbar"}),!u&&r().createElement(f.n9L,{className:Tn.allergiesTile},r().createElement("div",{className:Tn.allergiesContent},r().createElement("div",null,r().createElement(kn.Rr,{size:24,className:Tn.allergiesIcon}),r().createElement("p",null,y>0&&r().createElement("span",null,r().createElement("span",{style:{fontWeight:"bold"}},p("allergiesCount","{{ count }} allergies",{count:y}))," ",function(e){return e.map((function(e){return de(e.code.coding)})).join(", ")}(m)),0===y&&p("noAllergyDetailsFound","No allergy details found"))))),r().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},p("prescribed","Prescribed")),$&&r().createElement(f.gqd,{role:"progressbar"}),v&&r().createElement("p",null,p("error","Error")),A&&A.map((function(e){return r().createElement(f.n9L,{className:Tn.prescriptionTile},r().createElement(i.UserHasAccess,{privilege:"Task: dispensing.create.dispense"},r().createElement(Dn,{patientUuid:l,encounterUuid:a,medicationRequestBundle:e})),r().createElement(Ue,{key:e.request.id,medicationEvent:e.request,status:(n=e.request,t=oe(n,c.medicationRequestExpirationPeriodInDays),t===K.cancelled?r().createElement(f.Vp9,{type:"red"},p("cancelled","Cancelled")):t===K.completed?r().createElement(f.Vp9,{type:"green"},p("completed","Completed")):t===K.expired?r().createElement(f.Vp9,{type:"red"},p("expired","Expired")):t===K.declined?r().createElement(f.Vp9,{type:"red"},p("closed","Closed")):t===K.on_hold?r().createElement(f.Vp9,{type:"red"},p("paused","Paused")):null)}));var n,t})))},Nn=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(e.status,(0,s.useTranslation)().t),a=[{name:i("prescriptionDetails","Prescription details"),component:r().createElement(qn,{encounterUuid:n,patientUuid:t})},{name:i("historyComments","History and comments"),component:r().createElement(_n,{encounterUuid:n,patientUuid:t})}];return r().createElement("div",{className:xn.expandedTabsParentContainer},r().createElement("div",{className:xn.expandedTabsContainer},r().createElement(f.mQc,null,r().createElement(f.tdY,{"aria-label":i("tabList","Tab List")},a.map((function(e,n){return r().createElement(f.OK9,{key:n,className:xn.orderTabs},e.name)}))),r().createElement(f.nPR,null,a.map((function(e,n){return r().createElement(f.x45,{key:n},e.component)}))))))};var On=t(9803),Fn={};Fn.styleTagTransform=q(),Fn.setAttributes=B(),Fn.insert=M().bind(null,"head"),Fn.domAPI=z(),Fn.insertStyleElement=T(),x()(On.Z,Fn);const Pn=On.Z&&On.Z.locals?On.Z.locals:void 0;function Gn(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 Un(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function jn(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)||Ln(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 Rn(e){return function(e){if(Array.isArray(e))return Gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ln(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 Ln(e,n){if(e){if("string"==typeof e)return Gn(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)?Gn(e,n):void 0}}const Hn=function(e){var n,t,a,l,p=e.searchTerm,c=e.location,d=e.status,g=(0,s.useTranslation)().t,h=(0,i.useConfig)(),m=jn((0,o.useState)(1),2),y=m[0],b=m[1],A=jn((0,o.useState)(10),2),v=A[0],$=A[1],_=jn((0,o.useState)(0),2),C=_[0],w=_[1],x=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=arguments.length>5?arguments[5]:void 0,p=arguments.length>6?arguments[6]:void 0,c=(0,V.ZP)("ACTIVE"===s?function(e,n,t,a,o){return be("".concat(i.fhirBaseUrl,"/").concat(u,"&_getpagesoffset=").concat(e,"&_count=").concat(n,"&date=ge").concat(t,"&status=active"),a,o)}(a,t,ee()(new Date).startOf("day").subtract(l,"day").toISOString(),o,r):function(e,n,t,a){return be("".concat(i.fhirBaseUrl,"/").concat(u,"&_getpagesoffset=").concat(e,"&_count=").concat(n),t,a)}(a,t,o,r),i.openmrsFetch,{refreshInterval:p}),d=c.data,g=c.error;if(d){var f,h=null===(f=d)||void 0===f?void 0:f.data.entry;if(h){var m=h.filter((function(e){var n,t;return"Encounter"==(null===(t=e)||void 0===t||null===(n=t.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),y=h.filter((function(e){var n,t;return"MedicationRequest"==(null===(t=e)||void 0===t||null===(n=t.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),b=h.filter((function(e){var n,t;return"MedicationDispense"==(null===(t=e)||void 0===t||null===(n=t.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})).sort(we);n=m.map((function(e){var n=y.filter((function(n){return n.encounter.reference=="Encounter/"+e.id})),t=n.map((function(e){return"MedicationRequest/"+e.id})),i=b.filter((function(e){var n;return t.includes(null===(n=e.authorizingPrescription[0])||void 0===n?void 0:n.reference)}));return function(e,n,t,i){var a,o,r,s,l,p,c,d,u,g,f,h,m,y;return{id:null===(a=e)||void 0===a?void 0:a.id,created:null===(r=e)||void 0===r||null===(o=r.period)||void 0===o?void 0:o.start,patient:{name:null===(l=e)||void 0===l||null===(s=l.subject)||void 0===s?void 0:s.display,uuid:null===(d=e)||void 0===d||null===(c=d.subject)||void 0===c||null===(p=c.reference)||void 0===p?void 0:p.split("/")[1]},drugs:ke(new Set(n.map((function(e){return fe(he(e))})).sort((function(e,n){return e.localeCompare(n)})))).join("; "),lastDispenser:t&&(null===(u=t[0])||void 0===u?void 0:u.performer)&&(null===(f=t[0])||void 0===f||null===(g=f.performer[0])||void 0===g?void 0:g.actor.display),prescriber:ke(new Set(n.map((function(e){return e.requester.display})))).join(", "),status:se(n,i),location:(null===(h=e)||void 0===h?void 0:h.location)?null===(y=e)||void 0===y||null===(m=y.location[0])||void 0===m?void 0:m.location.display:null}}(e,n,i,l)})),n.sort((function(e,n){return e.created<n.created?1:-1}))}else n=[]}return{prescriptionsTableRows:n,error:g,isLoading:!n&&!g,totalOrders:null===(e=d)||void 0===e?void 0:e.data.total}}(v,C,p,c,d,h.medicationRequestExpirationPeriodInDays,h.refreshInterval),k=x.prescriptionsTableRows,z=x.error,E=x.isLoading,M=x.totalOrders,D=[{header:g("created","Created"),key:"created"},{header:g("patientName","Patient name"),key:"patient"},{header:g("prescriber","Prescriber"),key:"prescriber"},{header:g("drugs","Drugs"),key:"drugs"},{header:g("lastDispenser","Last dispenser"),key:"lastDispenser"},{header:g("status","Status"),key:"status"}];return(null===(t=h.locationBehavior)||void 0===t||null===(n=t.locationColumn)||void 0===n?void 0:n.enabled)&&(D=Rn(D.slice(0,3)).concat([{header:g("location","Location"),key:"location"}],Rn(D.slice(3)))),(0,o.useEffect)((function(){b(1),w(0)}),[p]),r().createElement(f.x45,null,r().createElement("div",{className:Pn.patientListTableContainer},E&&r().createElement(f.gqd,{role:"progressbar"}),z&&r().createElement("p",null,"Error"),k&&r().createElement(r().Fragment,null,r().createElement(f.wQF,{rows:k,headers:D,isSortable:!0},(function(e){var n,t,a=e.rows,o=e.headers,s=e.getExpandHeaderProps,l=e.getHeaderProps,p=e.getRowProps,c=e.getTableProps;return r().createElement(f.xJi,null,r().createElement(f.iA_,(n=function(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){Un(e,n,t[n])}))}return e}({},c()),t=null!=(t={useZebraStyles:!0})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n),r().createElement(f.ssF,null,r().createElement(f.SCH,null,r().createElement(f.MOD,s()),o.map((function(e){return r().createElement(f.xDH,l({header:e}),e.header)})))),r().createElement(f.RMI,null,a.map((function(e){return r().createElement(r().Fragment,{key:e.id},r().createElement(f.RcE,p({row:e}),e.cells.map((function(e){return r().createElement(f.pj1,{key:e.id},e.id.endsWith("created")?(0,i.formatDatetime)((0,i.parseDate)(e.value)):e.id.endsWith("patient")?r().createElement(Me,{patient:e.value}):e.id.endsWith("status")?g(e.value):e.value)}))),e.isExpanded?r().createElement(f.WdL,{colSpan:o.length+1},r().createElement(Nn,{encounterUuid:e.id,patientUuid:e.cells.find((function(e){return e.id.endsWith("patient")})).value.uuid,status:e.cells.find((function(e){return e.id.endsWith("status")})).value})):r().createElement(f.WdL,{className:Pn.hiddenRow,colSpan:o.length+2}))})))))})),0===(null===(a=k)||void 0===a?void 0:a.length)&&r().createElement("div",{className:Pn.filterEmptyState},r().createElement(f.mh4,null,r().createElement(f.n9L,{className:Pn.filterEmptyStateTile},r().createElement("p",{className:Pn.filterEmptyStateContent},g("noPrescriptionsToDisplay","No prescriptions to display")),r().createElement("p",{className:Pn.filterEmptyStateHelper},g("checkFilters","Check the filters above"))))),(null===(l=k)||void 0===l?void 0:l.length)>0&&r().createElement("div",{style:{width:"100%"}},r().createElement(f.tlE,{page:y,pageSize:v,pageSizes:[10,20,30,40,50,100],totalItems:M,onChange:function(e){var n=e.page,t=e.pageSize;b(n),w((n-1)*t),$(t)}})))))};function Wn(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 Zn(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 Wn(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)?Wn(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 Yn=function(){var e,n,t,a=(0,s.useTranslation)().t,l=(0,i.useConfig)(),p=function(e){var n,t,a,o=(0,V.ZP)("".concat(i.fhirBaseUrl,"/Location?_tag=").concat(encodeURIComponent(e.locationBehavior.locationFilter.tag),"&_count=100"),i.openmrsFetch),r=o.data,s=o.error,l=null===(a=r)||void 0===a||null===(t=a.data)||void 0===t||null===(n=t.entry)||void 0===n?void 0:n.map((function(e){return{id:e.resource.id,name:e.resource.name}})).sort((function(e,n){return e.name.localeCompare(n.name)}));return{filterLocations:l,isError:s,isLoading:!l&&!s}}(l),c=p.filterLocations,d=p.isLoading,u=Zn((0,o.useState)(""),2),g=u[0],h=u[1],m=Zn((0,o.useState)(""),2),y=m[0],b=m[1],A=Zn((0,o.useState)(""),2),v=A[0],$=A[1],_=Zn((0,o.useState)(0),2),C=_[0],w=_[1],x=[{key:"activePrescriptions",header:a("activePrescriptions","Active Prescriptions"),status:"ACTIVE"},{key:"allPrescriptions",header:a("allPrescriptions","All Prescriptions"),status:""}];return(0,o.useEffect)((function(){var e=setTimeout((function(){b(g)}),500);return function(){return clearTimeout(e)}}),[g]),r().createElement("main",{className:"omrs-main-content ".concat(Pn.prescriptionListContainer)},r().createElement("section",{className:Pn.prescriptionTabsContainer},r().createElement(f.mQc,{className:Pn.prescriptionTabs,onChange:function(e){w(e.selectedIndex)},type:"container",tabContentClassName:Pn.hiddenTabsContent},r().createElement(f.tdY,{"aria-label":a("tabList","Tab List"),contained:!0,className:Pn.tabsContainer},x.map((function(e,n){return r().createElement(f.OK9,{title:a(e.key),key:n,id:"tab-"+n,className:Pn.tab},a(e.header))}))),r().createElement("div",{className:Pn.searchContainer},r().createElement(f.olm,{closeButtonLabelText:a("clearSearchInput","Clear search input"),defaultValue:g,placeholder:a("searchByPatientIdOrName","Search by patient ID or name"),labelText:a("searchByPatientIdOrName","Search by patient ID or name"),onChange:function(e){e.preventDefault(),h(e.target.value)},size:"md",className:Pn.patientSearch}),(null===(n=l.locationBehavior)||void 0===n||null===(e=n.locationFilter)||void 0===e?void 0:e.enabled)&&!d&&(null===(t=c)||void 0===t?void 0:t.length)>1&&r().createElement(f.CtY,{id:"locationFilter",placeholder:a("filterByLocation","Filter by location"),items:d?[]:c,itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.name},onChange:function(e){var n,t=e.selectedItem;$(null===(n=t)||void 0===n?void 0:n.id)},className:Pn.locationFilter})),r().createElement(f.nPR,null,x.map((function(e,n){return n===C?r().createElement(Hn,{location:v,searchTerm:y,status:e.status}):r().createElement(r().Fragment,null)}))))))};var Qn=t(8897);function Kn(){var e=(0,s.useTranslation)().t,n="".concat(window.spaBase,"/home"),t=(0,o.useMemo)((function(){var e=location.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[]);return r().createElement(i.ConfigurableLink,{className:m()("cds--side-nav__link",{"active-left-nav-link":t.match("dispensing")}),to:"".concat(n,"/dispensing")},e("dispensing","Dispensing"))}var Jn=t(3979),Vn="@openmrs/esm-dispensing-app",Xn={featureName:"dispensing",moduleName:Vn},et=(0,i.getSyncLifecycle)((function(){return r().createElement(i.ExtensionSlot,{name:"dispensing-dashboard-slot"})}),Xn),nt=(0,i.getSyncLifecycle)((function(){var e=(0,s.useTranslation)().t;return r().createElement(i.ConfigurableLink,{to:l},e("dispensing","Dispensing"))}),Xn),tt=(0,i.getSyncLifecycle)((function(){var e=(0,i.useConfig)(),n=(0,s.useTranslation)().t;return e.dispenseBehavior.restrictTotalQuantityDispensed&&e.dispenseBehavior.allowModifyingPrescription?r().createElement("div",{className:"omrs-main-content"},r().createElement(f.K0D,{title:n("dispensingAppError","Dispensing App Error"),subtitle:n("dispensingAppMisconfigurationMessage","Please contact your system administration: Misconfiguration - 'restrictTotalQuantityDispensed' cannot be enabled if 'allowModifyingPrescription' is enabled.")})):r().createElement("div",{className:"omrs-main-content"},r().createElement(J,null),r().createElement(Yn,null),r().createElement(G,null))}),Xn);function it(){(0,i.defineConfigSchema)(Vn,a)}var at=(0,i.getSyncLifecycle)((function(){return r().createElement(Qn.VK,null,r().createElement(Kn,null))}),Xn),ot=(0,i.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,a=e.session,o=e.providers,l=e.dispensable,p=e.quantityRemaining,c=(0,s.useTranslation)().t;return l?r().createElement(f.zxk,{kind:"primary",onClick:function(){return _(c("dispensePrescription","Dispense prescription"),r().createElement(gn,{patientUuid:n,encounterUuid:t,medicationDispense:Oe(i.request,a,o,!0),medicationRequestBundle:i,quantityRemaining:p,mode:"enter"}))}},c("dispense","Dispense")):null}),Xn),rt=(0,i.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,a=e.session,o=e.providers,l=e.pauseable,p=(0,s.useTranslation)().t;return l?r().createElement(f.zxk,{kind:"secondary",onClick:function(){return _(p("pausePrescription","Pause prescription"),r().createElement(yn,{patientUuid:n,encounterUuid:t,medicationDispense:Oe(i.request,a,o,!1),mode:"enter"}))}},p("pause","Pause")):null}),Xn),st=(0,i.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,a=e.session,o=e.providers,l=e.closeable,p=(0,s.useTranslation)().t;return l?r().createElement(f.zxk,{kind:"danger",onClick:function(){return _(p("closePrescription","Close prescription"),r().createElement($n,{patientUuid:n,encounterUuid:t,medicationDispense:Oe(i.request,a,o,!1),mode:"enter"}))}},p("close","Close")):null}),Xn)},1127:(e,n,t)=>{"use strict";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,".-esm-dispensing__action-buttons__actionBtns___W\\+gb3{float:right;margin-left:1rem;margin-top:2rem}.-esm-dispensing__action-buttons__extensionSlot___H\\+\\+9z{display:flex}","",{version:3,sources:["webpack://./src/components/action-buttons.scss"],names:[],mappings:"AAAA,sDACE,WAAA,CACA,gBAAA,CACA,eAAA,CAGF,0DACE,YAAA",sourcesContent:[".actionBtns {\n float: right;\n margin-left: 1rem;\n margin-top: 2rem;\n}\n\n.extensionSlot {\n display: flex;\n}\n"],sourceRoot:""}]),r.locals={actionBtns:"-esm-dispensing__action-buttons__actionBtns___W+gb3",extensionSlot:"-esm-dispensing__action-buttons__extensionSlot___H++9z"};const s=r},7591:(e,n,t)=>{"use strict";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)=>{"use strict";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},8404:(e,n,t)=>{"use strict";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-event__medicationName___S4P0B{font-size:15px !important}.-esm-dispensing__medication-event__bodyLong01___SfU-3{font-size:13px !important}.-esm-dispensing__medication-event__dosage___foiIZ,.-esm-dispensing__medication-event__quantity___SLQEY,.-esm-dispensing__medication-event__refills___5LLBD{color:#525252;font-weight:bold}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/medication-event.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,2DACE,yBAAA,CAGF,uDACE,yBAAA,CAGF,4JAGE,aAAA,CACA,gBAAA",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.medicationName {\n font-size: 15px !important;\n}\n\n.bodyLong01 {\n font-size: 13px !important;\n}\n\n.dosage,\n.quantity,\n.refills {\n color: #525252;\n font-weight: bold;\n}\n"],sourceRoot:""}]),r.locals={medicationName:"-esm-dispensing__medication-event__medicationName___S4P0B",bodyLong01:"-esm-dispensing__medication-event__bodyLong01___SfU-3",dosage:"-esm-dispensing__medication-event__dosage___foiIZ",quantity:"-esm-dispensing__medication-event__quantity___SLQEY",refills:"-esm-dispensing__medication-event__refills___5LLBD"};const s=r},6002:(e,n,t)=>{"use strict";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__forms__productiveHeading02___lL\\+Tg,.-esm-dispensing__forms__formGroup___VFSOs 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__forms__formWrapper___AYjwb{background-color:#f4f4f4}.omrs-breakpoint-gt-tablet .-esm-dispensing__forms__formWrapper___AYjwb{background-color:#fff}.-esm-dispensing__forms__formGroup___VFSOs{display:flex;margin-bottom:.25rem;padding:1rem}.omrs-breakpoint-lt-desktop .-esm-dispensing__forms__formGroup___VFSOs>span{flex:1}.omrs-breakpoint-lt-desktop .-esm-dispensing__forms__formGroup___VFSOs>div{flex:3}.-esm-dispensing__forms__bannerLoading___Fa3rm{width:100%;display:flex;justify-content:center}.-esm-dispensing__forms__patientInfo___Vdbqm{position:sticky;z-index:1000;background-color:#fff;top:3rem;overflow-y:auto}.-esm-dispensing__forms__dateTimeContainer___2UlhX{display:flex;margin:1rem 0}.-esm-dispensing__forms__timePickersContainer___I\\+jtq,.-esm-dispensing__forms__frequencyAndDay___oZCya{display:flex}.-esm-dispensing__forms__timePickersContainer___I\\+jtq>div,.-esm-dispensing__forms__frequencyAndDay___oZCya>div{margin-right:.5rem}.-esm-dispensing__forms__datePickerControl___gU9tY{display:flex;flex-direction:column}.-esm-dispensing__forms__datePickerControl___gU9tY>div{margin-bottom:1rem}.omrs-breakpoint-lt-desktop .-esm-dispensing__forms__formGroup___VFSOs{flex-direction:row}.omrs-breakpoint-gt-tablet .-esm-dispensing__forms__formGroup___VFSOs{flex-direction:column}.-esm-dispensing__forms__buttonGroup___5ML3D{display:flex;position:sticky;bottom:0;width:100%}.omrs-breakpoint-lt-desktop .-esm-dispensing__forms__buttonGroup___5ML3D{padding:1rem 1.5rem;background-color:#fff}.-esm-dispensing__forms__buttonGroup___5ML3D button{max-width:none;width:50%;height:4rem;align-items:flex-start}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl{display:flex;width:fit-content;justify-content:flex-end;align-items:center;width:60%}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div>button{background-color:#fff}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div button:first-child{border-top:1px solid #a6c8ff;border-bottom:1px solid #a6c8ff;border-left:1px solid #a6c8ff;border-right:none;border-radius:.25rem 0 0px .25rem}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div button:last-child{border-top:1px solid #a6c8ff;border-bottom:1px solid #a6c8ff;border-right:1px solid #a6c8ff;border-left:none;border-radius:0px .25rem .25rem 0px}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div>button[aria-selected=true],.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div>button[aria-selected=true]:first-child{background-color:#edf5ff;color:#0f62fe;border-color:#0f62fe;border-right:1px solid #0f62fe}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div>button[aria-selected=true],.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div>button[aria-selected=true]:last-child{background-color:#edf5ff;color:#0f62fe;border-color:#0f62fe;border-left:1px solid #0f62fe}.-esm-dispensing__forms__contentSwitcherWrapper___oTWRl>div>button[aria-selected=true]:focus{box-shadow:none}.-esm-dispensing__forms__reviewContainer___Dvr7B{margin:.8rem 0 0 0 !important}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/forms/forms.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/styles/node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCnDF,sGACE,aAAA,CCy1BE,0DAAA,CAAA,6DAAA,CAAA,+DAAA,CAAA,iEAAA,CDr1BJ,yEACE,wBDKwB,CCF1B,wEACE,qBDjBM,CCoBR,2CACE,YAAA,CACA,oBEPW,CFQX,YEOW,CFJb,4EACE,MAAA,CAGF,2EACE,MAAA,CAOF,+CACE,UAAA,CACA,YAAA,CACA,sBAAA,CAGF,6CACE,eAAA,CACA,YAAA,CACA,qBD/CM,CCgDN,QAAA,CACA,eAAA,CAGF,mDACE,YAAA,CACA,aAAA,CAGF,wGAEE,YAAA,CAEA,gHACE,kBAAA,CAIJ,mDACE,YAAA,CACA,qBAAA,CAEA,uDACE,kBAAA,CAIJ,uEACE,kBAAA,CAGF,sEACE,qBAAA,CAGF,6CACE,YAAA,CACA,eAAA,CACA,QAAA,CACA,UAAA,CAGF,yEACE,mBAAA,CACA,qBD5FM,CC+FR,oDACE,cAAA,CACA,SAAA,CACA,WE3CW,CF4CX,sBAAA,CAGF,wDACE,YAAA,CACA,iBAAA,CACA,wBAAA,CACA,kBAAA,CACA,SAAA,CAGF,mEACE,qBD/GM,CCkHR,+EACE,4BAAA,CACA,+BAAA,CACA,6BAAA,CACA,iBAAA,CACA,iCAAA,CAGF,8EACE,4BAAA,CACA,+BAAA,CACA,8BAAA,CACA,gBAAA,CACA,mCAAA,CAGF,0LAEE,wBDzHc,CC0Hd,aD3HgB,CC4HhB,oBD5HgB,CC6HhB,8BAAA,CAGF,yLAEE,wBDjIc,CCkId,aDnIgB,CCoIhB,oBDpIgB,CCqIhB,6BAAA,CAGF,6FACE,eAAA,CAGF,iDACE,6BAAA",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// TO DO Move this styles to style - guide\n// https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-styleguide/src/_vars.scss\n$color-blue-30: #a6c8ff;\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.bannerLoading {\n width: 100%;\n display: flex;\n justify-content: center;\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.dateTimeContainer {\n display: flex;\n margin: 1rem 0;\n}\n\n.timePickersContainer,\n.frequencyAndDay {\n display: flex;\n\n > div {\n margin-right: 0.5rem;\n }\n}\n\n.datePickerControl {\n display: flex;\n flex-direction: column;\n\n > div {\n margin-bottom: 1rem;\n }\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\n.contentSwitcherWrapper {\n display: flex;\n width: fit-content;\n justify-content: flex-end;\n align-items: center;\n width: 60%;\n}\n\n.contentSwitcherWrapper > div > button {\n background-color: $ui-02;\n}\n\n.contentSwitcherWrapper > div button:first-child {\n border-top: 1px solid $color-blue-30;\n border-bottom: 1px solid $color-blue-30;\n border-left: 1px solid $color-blue-30;\n border-right: none;\n border-radius: spacing.$spacing-02 0 0px spacing.$spacing-02;\n}\n\n.contentSwitcherWrapper > div button:last-child {\n border-top: 1px solid $color-blue-30;\n border-bottom: 1px solid $color-blue-30;\n border-right: 1px solid $color-blue-30;\n border-left: none;\n border-radius: 0px spacing.$spacing-02 spacing.$spacing-02 0px;\n}\n\n.contentSwitcherWrapper > div > button[aria-selected='true'],\n.contentSwitcherWrapper > div > button[aria-selected='true']:first-child {\n background-color: $color-blue-10;\n color: $color-blue-60-2;\n border-color: $color-blue-60-2;\n border-right: 1px solid $color-blue-60-2;\n}\n\n.contentSwitcherWrapper > div > button[aria-selected='true'],\n.contentSwitcherWrapper > div > button[aria-selected='true']:last-child {\n background-color: $color-blue-10;\n color: $color-blue-60-2;\n border-color: $color-blue-60-2;\n border-left: 1px solid $color-blue-60-2;\n}\n\n.contentSwitcherWrapper > div > button[aria-selected='true']:focus {\n box-shadow: none;\n}\n\n.reviewContainer {\n margin: 0.8rem 0 0 0 !important;\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","// 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"],sourceRoot:""}]),r.locals={productiveHeading02:"-esm-dispensing__forms__productiveHeading02___lL+Tg",formGroup:"-esm-dispensing__forms__formGroup___VFSOs",formWrapper:"-esm-dispensing__forms__formWrapper___AYjwb",bannerLoading:"-esm-dispensing__forms__bannerLoading___Fa3rm",patientInfo:"-esm-dispensing__forms__patientInfo___Vdbqm",dateTimeContainer:"-esm-dispensing__forms__dateTimeContainer___2UlhX",timePickersContainer:"-esm-dispensing__forms__timePickersContainer___I+jtq",frequencyAndDay:"-esm-dispensing__forms__frequencyAndDay___oZCya",datePickerControl:"-esm-dispensing__forms__datePickerControl___gU9tY",buttonGroup:"-esm-dispensing__forms__buttonGroup___5ML3D",contentSwitcherWrapper:"-esm-dispensing__forms__contentSwitcherWrapper___oTWRl",reviewContainer:"-esm-dispensing__forms__reviewContainer___Dvr7B"};const s=r},8776:(e,n,t)=>{"use strict";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))}: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__overlay__productiveHeading01___eK5kl{font-size:var(--cds-heading-01-font-size, 0.875rem);font-weight:var(--cds-heading-01-font-weight, 600);line-height:var(--cds-heading-01-line-height, 1.42857);letter-spacing:var(--cds-heading-01-letter-spacing, 0.16px)}.-esm-dispensing__overlay__productiveHeading02___CQOwf{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0)}.-esm-dispensing__overlay__productiveHeading03___TSlon{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-dispensing__overlay__productiveHeading04___T7Y7s{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-dispensing__overlay__bodyLong01___OQlS8{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-dispensing__overlay__bodyShort01___UlUk7{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-dispensing__overlay__bodyShort02___enQVi{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-dispensing__overlay__text02___ZYEU5{color:#525252}.-esm-dispensing__overlay__label01___ZXH48{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__overlay__modal___S-oMb{position:fixed;width:100vw;height:100vh;display:grid;background-color:rgba(0,0,0,.5);z-index:9000;justify-items:center;align-items:center}.-esm-dispensing__overlay__desktopOverlay___3pLHv{position:fixed;top:3rem;width:37rem;right:0;bottom:0;border-left:1px solid #a8a8a8;background-color:#f4f4f4;overflow-y:auto;height:calc(100vh - 3rem)}.-esm-dispensing__overlay__desktopOverlay___3pLHv::after{height:100%;border-left:1px solid #a8a8a8}.-esm-dispensing__overlay__tabletOverlay___h8wUe{position:fixed;top:0;bottom:0;left:0;right:0;z-index:9999;background-color:#f4f4f4;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.-esm-dispensing__overlay__tabletOverlay___h8wUe::-webkit-scrollbar{width:0}.-esm-dispensing__overlay__tabletOverlay___h8wUe>div{margin-top:3rem}.-esm-dispensing__overlay__tabletOverlayHeader___u9Oeq button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-dispensing__overlay__tabletOverlayHeader___u9Oeq .-esm-dispensing__overlay__headerContent___cfc8Q{color:#fff}.-esm-dispensing__overlay__desktopHeader___Os-1d{display:flex;justify-content:space-between;align-items:center;background-color:#e0e0e0;border-bottom:1px solid #a8a8a8;position:sticky;position:-webkit-sticky;width:100%;z-index:1000;top:0}.-esm-dispensing__overlay__headerContent___cfc8Q{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);padding:0 1rem;color:#161616}.-esm-dispensing__overlay__closeButton___RUxv\\+{background-color:#fff;color:#161616;fill:#161616}.omrs-breakpoint-gt-tablet .-esm-dispensing__overlay__overlayContent___T2IiG{padding:0 0 0 0;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-dispensing__overlay__overlayContent___T2IiG{padding:0 0 0 0;overflow-y:auto}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./src/forms/overlay/overlay.scss","webpack://./node_modules/@carbon/styles/node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CAPF,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,uDC81BI,mDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,2DAAA,CD11BJ,uDC01BI,+CAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDt1BJ,uDCs1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl1BJ,uDCk1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD90BJ,8CC80BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD10BJ,+CC00BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDt0BJ,+CCs0BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDl0BJ,0CACE,aD5BQ,CC+BV,2CC8zBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD1zBJ,yCACE,cAAA,CACA,WAAA,CACA,YAAA,CACA,YAAA,CACA,+BAAA,CACA,YAAA,CACA,oBAAA,CACA,kBAAA,CE3CF,kDACE,cAAA,CACA,QC4CW,CD3CX,WAAA,CACA,OAAA,CACA,QAAA,CACA,6BAAA,CACA,wBHZM,CGaN,eAAA,CACA,yBAAA,CAGF,yDACE,WAAA,CACA,6BAAA,CAGF,iDACE,cAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,YAAA,CACA,wBH7BM,CG8BN,iBAAA,CACA,uBAAA,CACA,oBAAA,CAEA,oEACE,OAAA,CAGF,qDACE,eCYS,CDPX,8DHNA,wBAAA,CACA,gCAAA,CGSA,wGACE,UHhDI,CGoDR,iDACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,wBHvDM,CGwDN,+BAAA,CACA,eAAA,CACA,uBAAA,CACA,UAAA,CACA,YAAA,CACA,KAAA,CAGF,iDDgyBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CC9xBF,cAAA,CACA,aHjEM,CGoER,gDACE,qBHlEc,CGmEd,aHtEM,CGuEN,YHvEM,CG4EN,6EACE,eAAA,CACA,eAAA,CAMF,8EACE,eAAA,CACA,eAAA",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.productiveHeading01 {\n @include type.type-style('heading-01');\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-02');\n}\n\n.productiveHeading03 {\n @include type.type-style('heading-03');\n}\n\n.productiveHeading04 {\n @include type.type-style('heading-04');\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n}\n\n.bodyShort01 {\n @include type.type-style('body-compact-01');\n}\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n}\n\n.text02 {\n color: $text-02;\n}\n\n.label01 {\n @include type.type-style('label-01');\n}\n\n.modal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n display: grid;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9000;\n justify-items: center;\n align-items: center;\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","@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@import '~@openmrs/esm-styleguide/src/vars';\n@import '../../root.scss';\n\n.desktopOverlay {\n position: fixed;\n top: spacing.$spacing-09;\n width: 37rem;\n right: 0;\n bottom: 0;\n border-left: 1px solid $text-03;\n background-color: $ui-01;\n overflow-y: auto;\n height: calc(100vh - 3rem);\n}\n\n.desktopOverlay::after {\n height: 100%;\n border-left: 1px solid $text-03;\n}\n\n.tabletOverlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 9999;\n background-color: $ui-01;\n overflow-y: scroll;\n -ms-overflow-style: none;\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n width: 0;\n }\n\n & > div {\n margin-top: spacing.$spacing-09;\n }\n}\n\n.tabletOverlayHeader {\n button {\n @include brand-01(background-color);\n }\n\n .headerContent {\n color: $ui-02;\n }\n}\n\n.desktopHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: $ui-03;\n border-bottom: 1px solid $text-03;\n position: sticky;\n position: -webkit-sticky;\n width: 100%;\n z-index: 1000;\n top: 0;\n}\n\n.headerContent {\n @include type.type-style('heading-compact-02');\n padding: 0 spacing.$spacing-05;\n color: $ui-05;\n}\n\n.closeButton {\n background-color: $ui-background;\n color: $ui-05;\n fill: $ui-05;\n}\n\n/* Desktop */\n:global(.omrs-breakpoint-gt-tablet) {\n .overlayContent {\n padding: 0 0 0 0;\n overflow-y: auto;\n }\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .overlayContent {\n padding: 0 0 0 0;\n overflow-y: auto;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),r.locals={productiveHeading01:"-esm-dispensing__overlay__productiveHeading01___eK5kl",productiveHeading02:"-esm-dispensing__overlay__productiveHeading02___CQOwf",productiveHeading03:"-esm-dispensing__overlay__productiveHeading03___TSlon",productiveHeading04:"-esm-dispensing__overlay__productiveHeading04___T7Y7s",bodyLong01:"-esm-dispensing__overlay__bodyLong01___OQlS8",bodyShort01:"-esm-dispensing__overlay__bodyShort01___UlUk7",bodyShort02:"-esm-dispensing__overlay__bodyShort02___enQVi",text02:"-esm-dispensing__overlay__text02___ZYEU5",label01:"-esm-dispensing__overlay__label01___ZXH48",modal:"-esm-dispensing__overlay__modal___S-oMb",desktopOverlay:"-esm-dispensing__overlay__desktopOverlay___3pLHv",tabletOverlay:"-esm-dispensing__overlay__tabletOverlay___h8wUe",tabletOverlayHeader:"-esm-dispensing__overlay__tabletOverlayHeader___u9Oeq",headerContent:"-esm-dispensing__overlay__headerContent___cfc8Q",desktopHeader:"-esm-dispensing__overlay__desktopHeader___Os-1d",closeButton:"-esm-dispensing__overlay__closeButton___RUxv+",overlayContent:"-esm-dispensing__overlay__overlayContent___T2IiG"};const s=r},9736:(e,n,t)=>{"use strict";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__history-and-comments__historyAndCommentsContainer___LN9-l{max-width:80%}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form{display:flex;flex-flow:row wrap;align-items:center}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form input{vertical-align:middle;margin:0 10px 0 0;padding:10px;border:1px solid #8d8d8d !important;background-color:#fff}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form button{width:90px;height:20px;min-height:2.5rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form .cds--btn--ghost{width:8rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__requestTile___tV2US{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__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__dispenseTile___Pc-Pr{width:100%;margin:2px 0 8px;padding:0 8px 0 8px;background-color:#fff;border-left:4px solid red;color:#525252;margin-bottom:1rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__medicationEventActionMenu___ejiqe{float:right}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/history/history-and-comments.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,4EACE,aAAA,CAEA,iFACE,YAAA,CACA,kBAAA,CACA,kBAAA,CAGF,uFACE,qBAAA,CACA,iBAAA,CACA,YAAA,CACA,mCAAA,CACA,qBAAA,CAEF,wFACE,UAAA,CACA,WAAA,CACA,4BAAA,CAGF,kGACE,qBAAA,CAGF,wIACE,UAAA,CACA,gBAAA,CACA,mBAAA,CACA,qBAAA,CACA,qCAAA,CACA,aD/BM,CCgCN,6BAAA,CAGF,yIACE,UAAA,CACA,gBAAA,CACA,mBAAA,CACA,qBAAA,CACA,yBAAA,CACA,aDzCM,CC0CN,6BAAA,CAGF,sJACE,WAAA",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.historyAndCommentsContainer {\n max-width: 80%;\n\n form {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n }\n\n form input {\n vertical-align: middle;\n margin: 0 10px 0 0;\n padding: 10px;\n border: 1px solid #8d8d8d !important;\n background-color: white;\n }\n form button {\n width: 90px;\n height: 20px;\n min-height: 2.5rem !important;\n }\n\n form :global(.cds--btn--ghost) {\n width: 8rem !important;\n }\n\n .requestTile {\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 .dispenseTile {\n width: 100%;\n margin: 2px 0 8px;\n padding: 0 8px 0 8px;\n background-color: #fff;\n border-left: 4px solid red;\n color: $text-02;\n margin-bottom: 1rem !important;\n }\n\n .medicationEventActionMenu {\n float: right;\n }\n}\n"],sourceRoot:""}]),r.locals={historyAndCommentsContainer:"-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l",requestTile:"-esm-dispensing__history-and-comments__requestTile___tV2US",dispenseTile:"-esm-dispensing__history-and-comments__dispenseTile___Pc-Pr",medicationEventActionMenu:"-esm-dispensing__history-and-comments__medicationEventActionMenu___ejiqe"};const s=r},8488:(e,n,t)=>{"use strict";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__pharmacy-header__header___SqCly{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;height:6rem;background-color:#fff;display:flex;justify-content:space-between}.-esm-dispensing__pharmacy-header__left-justified-items___khP2f{display:flex;flex-direction:row;align-items:center;margin-left:.75rem}.-esm-dispensing__pharmacy-header__right-justified-items___JXp8x{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;padding-top:1rem}.-esm-dispensing__pharmacy-header__page-name___skDRq{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-dispensing__pharmacy-header__page-labels___9zKm2{margin-left:1rem}.-esm-dispensing__pharmacy-header__page-labels___9zKm2 p:first-of-type{margin-bottom:.25rem}.-esm-dispensing__pharmacy-header__date-and-location___X19rr{display:flex;justify-content:flex-end;align-items:center;margin-right:1rem}.-esm-dispensing__pharmacy-header__value___KSx0o{margin-left:.25rem}.-esm-dispensing__pharmacy-header__middot___mO9w-{margin:0 .5rem}.-esm-dispensing__pharmacy-header__view___rdi8M{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/pharmacy-header/pharmacy-header.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/styles/node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,kDC81BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD51BF,aDDQ,CCER,WE2DW,CF1DX,qBDPM,CCQN,YAAA,CACA,6BAAA,CAGF,gEACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,kBAAA,CAGF,iEC80BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD50BF,aDjBQ,CCkBR,gBAAA,CAGF,qDCw0BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CDp0BJ,uDACE,gBAAA,CACA,uEACE,oBAAA,CAIJ,6DACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,iBAAA,CAGF,iDACE,kBAAA,CAGF,kDACE,cAAA,CAGF,gDC8yBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA",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.header {\n @include type.type-style('body-compact-02');\n color: $text-02;\n height: spacing.$spacing-12;\n background-color: $ui-02;\n display: flex;\n justify-content: space-between;\n}\n\n.left-justified-items {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: 0.75rem;\n}\n\n.right-justified-items {\n @include type.type-style('body-compact-02');\n color: $text-02;\n padding-top: 1rem;\n}\n\n.page-name {\n @include type.type-style('heading-04');\n}\n\n.page-labels {\n margin-left: 1rem;\n p:first-of-type {\n margin-bottom: 0.25rem;\n }\n}\n\n.date-and-location {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-right: 1rem;\n}\n\n.value {\n margin-left: 0.25rem;\n}\n\n.middot {\n margin: 0 0.5rem;\n}\n\n.view {\n @include type.type-style('label-01');\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","// 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"],sourceRoot:""}]),r.locals={header:"-esm-dispensing__pharmacy-header__header___SqCly","left-justified-items":"-esm-dispensing__pharmacy-header__left-justified-items___khP2f","right-justified-items":"-esm-dispensing__pharmacy-header__right-justified-items___JXp8x","page-name":"-esm-dispensing__pharmacy-header__page-name___skDRq","page-labels":"-esm-dispensing__pharmacy-header__page-labels___9zKm2","date-and-location":"-esm-dispensing__pharmacy-header__date-and-location___X19rr",value:"-esm-dispensing__pharmacy-header__value___KSx0o",middot:"-esm-dispensing__pharmacy-header__middot___mO9w-",view:"-esm-dispensing__pharmacy-header__view___rdi8M"};const s=r},583:(e,n,t)=>{"use strict";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__prescription-details__prescriptionTile___wvAJ0{width:100%;margin:2px 0 8px;padding:0;background-color:#fff;border-left:4px solid var(--brand-03);color:#525252;margin-bottom:1rem !important}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R{display:flex;flex-direction:column;max-width:80%;margin-bottom:1rem}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R.cds--tile{min-height:3rem !important;padding-left:10px !important}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R>.cds--tile{min-height:3rem !important;padding-left:10px !important;margin:auto}.-esm-dispensing__prescription-details__allergiesTile___YUpd1{height:24px;padding:0 8px 0 0;border-left:4px solid #f1c21b;background-color:rgba(253,209,58,.3);margin:auto;width:100%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG{margin:auto;min-width:100%;height:100%;display:flex;align-items:center}.-esm-dispensing__prescription-details__allergiesContent___gU7aG div{align-items:center;display:flex;flex-direction:row;width:100%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG p{margin-left:10px;font-size:.9rem;width:80%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG a{margin:auto;color:#0f62fe;text-decoration:none;text-align:right}svg.-esm-dispensing__prescription-details__allergiesIcon___JMdna{fill:#f1c21b;vertical-align:middle}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescription-details.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,iEACE,UAAA,CACA,gBAAA,CACA,SAAA,CACA,qBAAA,CACA,qCAAA,CACA,aDLQ,CCMR,6BAAA,CAGF,sEACE,YAAA,CACA,qBAAA,CACA,aAAA,CACA,kBAAA,CAEA,gFACE,0BAAA,CACA,4BAAA,CAIJ,iFACE,0BAAA,CACA,4BAAA,CACA,WAAA,CAGF,8DACE,WAAA,CACA,iBAAA,CACA,6BAAA,CACA,oCAAA,CACA,WAAA,CACA,UAAA,CAGF,iEACE,WAAA,CACA,cAAA,CACA,WAAA,CACA,YAAA,CACA,kBAAA,CAEA,qEACE,kBAAA,CACA,YAAA,CACA,kBAAA,CACA,UAAA,CAGF,mEACE,gBAAA,CACA,eAAA,CACA,SAAA,CAGF,mEACE,WAAA,CACA,aAAA,CACA,oBAAA,CACA,gBAAA,CAIJ,iEACE,YAAA,CACA,qBAAA",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/index';\n@import '~@openmrs/esm-styleguide/src/vars';\n\n.prescriptionTile {\n width: 100%;\n margin: 2px 0 8px;\n padding: 0;\n background-color: #fff;\n border-left: 4px solid var(--brand-03);\n color: $text-02;\n margin-bottom: 1rem !important;\n}\n\n.prescriptionContainer {\n display: flex;\n flex-direction: column;\n max-width: 80%;\n margin-bottom: 1rem;\n\n &:global(.cds--tile) {\n min-height: 3rem !important;\n padding-left: 10px !important;\n }\n}\n\n.prescriptionContainer > :global(.cds--tile) {\n min-height: 3rem !important;\n padding-left: 10px !important;\n margin: auto;\n}\n\n.allergiesTile {\n height: 24px;\n padding: 0 8px 0 0;\n border-left: 4px solid #f1c21b;\n background-color: rgba(253, 209, 58, 0.3);\n margin: auto;\n width: 100%;\n}\n\n.allergiesContent {\n margin: auto;\n min-width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n\n div {\n align-items: center;\n display: flex;\n flex-direction: row;\n width: 100%;\n }\n\n p {\n margin-left: 10px;\n font-size: 0.9rem;\n width: 80%;\n }\n\n a {\n margin: auto;\n color: #0f62fe;\n text-decoration: none;\n text-align: right;\n }\n}\n\nsvg.allergiesIcon {\n fill: #f1c21b;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),r.locals={prescriptionTile:"-esm-dispensing__prescription-details__prescriptionTile___wvAJ0",prescriptionContainer:"-esm-dispensing__prescription-details__prescriptionContainer___g0U1R",allergiesTile:"-esm-dispensing__prescription-details__allergiesTile___YUpd1",allergiesContent:"-esm-dispensing__prescription-details__allergiesContent___gU7aG",allergiesIcon:"-esm-dispensing__prescription-details__allergiesIcon___JMdna"};const s=r},4511:(e,n,t)=>{"use strict";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__prescription-expanded__expandedTabsParentContainer___zs0a7{display:flex;flex-direction:column;margin-bottom:1rem}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K{display:flex;flex-direction:row}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs{margin:1rem 0;width:20%;max-height:8rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tab--list{flex-direction:column !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tab-content{margin:1rem 0;width:100% !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-link{border-bottom:0 !important;border-left:3px solid #e0e0e0 !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-item--selected{border-bottom:0px !important;border-left:3px solid var(--brand-03) !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item{margin-left:0rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K>ul{flex-direction:column !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K>ul>li button{width:12rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-link{max-width:12rem !important}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescription-expanded.scss","webpack://./node_modules/@carbon/styles/node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,6EACE,YAAA,CACA,qBAAA,CACA,kBCwBW,CDrBb,uEACE,YAAA,CACA,kBAAA,CAEA,kFACE,aAAA,CACA,SAAA,CACA,0BAAA,CAGF,uFACE,gCAAA,CAGF,yFACE,aAAA,CACA,qBAAA,CAGF,4FACE,0BAAA,CACA,wCAAA,CAGF,sGACE,4BAAA,CACA,gDAAA,CAGF,iKACE,2BAAA,CAGF,0EACE,gCAAA,CAGF,oFACE,sBAAA,CAGF,4FACE,0BAAA",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.expandedTabsParentContainer {\n display: flex;\n flex-direction: column;\n margin-bottom: spacing.$spacing-05;\n}\n\n.expandedTabsContainer {\n display: flex;\n flex-direction: row;\n\n :global(.cds--tabs) {\n margin: 1rem 0;\n width: 20%;\n max-height: 8rem !important;\n }\n\n :global(.cds--tab--list) {\n flex-direction: column !important;\n }\n\n :global(.cds--tab-content) {\n margin: 1rem 0;\n width: 100% !important;\n }\n\n :global(.cds--tabs__nav-link) {\n border-bottom: 0 !important;\n border-left: 3px solid $ui-03 !important;\n }\n\n :global(.cds--tabs__nav-item--selected) {\n border-bottom: 0px !important;\n border-left: 3px solid var(--brand-03) !important;\n }\n\n &:global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item) {\n margin-left: 0rem !important;\n }\n\n > ul {\n flex-direction: column !important;\n }\n\n > ul > li button {\n width: 12rem !important;\n }\n\n :global(.cds--tabs__nav-link) {\n max-width: 12rem !important;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),r.locals={expandedTabsParentContainer:"-esm-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7",expandedTabsContainer:"-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K"};const s=r},9803:(e,n,t)=>{"use strict";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))}: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__prescriptions__productiveHeading01___dogtN{font-size:var(--cds-heading-01-font-size, 0.875rem);font-weight:var(--cds-heading-01-font-weight, 600);line-height:var(--cds-heading-01-line-height, 1.42857);letter-spacing:var(--cds-heading-01-letter-spacing, 0.16px)}.-esm-dispensing__prescriptions__productiveHeading02___gjwi\\+{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0)}.-esm-dispensing__prescriptions__productiveHeading03___cx0BG{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-dispensing__prescriptions__productiveHeading04___GvlBM{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-dispensing__prescriptions__bodyLong01___LKG7k{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-dispensing__prescriptions__bodyShort01___nIOkA{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-dispensing__prescriptions__bodyShort02___\\+FkDH{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-dispensing__prescriptions__text02___GreNi{color:#525252}.-esm-dispensing__prescriptions__label01___HdsaA{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__prescriptions__modal___6Bztk{position:fixed;width:100vw;height:100vh;display:grid;background-color:rgba(0,0,0,.5);z-index:9000;justify-items:center;align-items:center}title{width:6.938rem;height:1.75rem;margin:.438rem 22.875rem .813rem 0;font-family:IBMPlexSans;font-size:1.25rem;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal}.-esm-dispensing__prescriptions__link___nh1F1{text-decoration:none}.-esm-dispensing__prescriptions__breadcrumbsSlot___s3KgQ{grid-row:1/2;grid-column:1/2}.-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg{height:100%;width:100%}.-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg .cds--tab-content{padding:0 !important}.-esm-dispensing__prescriptions__prescriptionTabs___3aZuw{grid-column:"span 2";padding:0 1rem}.-esm-dispensing__prescriptions__newListButton___cGpxv{width:fit-content;justify-self:end;align-self:center}.-esm-dispensing__prescriptions__tabsContainer___74mkw{background-color:#fff}.-esm-dispensing__prescriptions__tabsContainer___74mkw .cds--tabs__nav-item--selected{box-shadow:inset 0 2px 0 0 var(--brand-03) !important}.-esm-dispensing__prescriptions__tabsContainer___74mkw .cds--tab--list button{max-width:12rem !important}.-esm-dispensing__prescriptions__hiddenTabsContent___krxGf,.-esm-dispensing__prescriptions__tabs___QV2Z9 .-esm-dispensing__prescriptions__hiddenTabsContent___krxGf{display:none}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6{grid-row:3/4;grid-column:1/2;height:100%;margin:0 1rem;background-color:#f4f4f4;border:.5px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table-container{padding-top:0 !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 tbody>tr>:nth-child(2){white-space:nowrap}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table td{height:unset !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+1) td{background-color:#fff;border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+3) td{background-color:#f4f4f4;border-bottom:1px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--pagination{border-top:none !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--table-expand__button{height:2rem !important}.-esm-dispensing__prescriptions__searchContainer___J0rpK{display:flex;align-items:center;flex-direction:row-reverse;padding:.5rem 1rem 0}.-esm-dispensing__prescriptions__searchContainer___J0rpK .cds--search-magnifier-icon{z-index:0 !important}.-esm-dispensing__prescriptions__searchContainer___J0rpK input{background-color:#fff}.-esm-dispensing__prescriptions__addPrescriptionBtn___KF0Z3{width:10rem !important;padding:.5rem !important;margin-left:1rem;margin-right:1rem}.-esm-dispensing__prescriptions__patientSearch___4Loxt{width:25rem;border-bottom-color:#e0e0e0}.-esm-dispensing__prescriptions__locationFilter___znalM{width:25rem}.-esm-dispensing__prescriptions__search___56gcv{width:100%;max-width:16rem;background-color:#fff;border-bottom-color:#e0e0e0}.-esm-dispensing__prescriptions__hiddenRow___r6JbH{display:none}.-esm-dispensing__prescriptions__filterEmptyState___y0ZGb{display:flex;justify-content:center;align-items:center;padding:3rem;text-align:center;background-color:#fff}.-esm-dispensing__prescriptions__filterEmptyStateTile___14jtq{margin:auto;background-color:#f4f4f4}.-esm-dispensing__prescriptions__filterEmptyStateContent___7CgxQ{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}.-esm-dispensing__prescriptions__filterEmptyStateHelper___AQsYs{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}',"",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./src/prescriptions/prescriptions.scss","webpack://./node_modules/@carbon/styles/node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CAPF,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,6DC81BI,mDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,2DAAA,CD11BJ,8DC01BI,+CAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDt1BJ,6DCs1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl1BJ,6DCk1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD90BJ,oDC80BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD10BJ,qDC00BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDt0BJ,sDCs0BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDl0BJ,gDACE,aD5BQ,CC+BV,iDC8zBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD1zBJ,+CACE,cAAA,CACA,WAAA,CACA,YAAA,CACA,YAAA,CACA,+BAAA,CACA,YAAA,CACA,oBAAA,CACA,kBAAA,CE3CF,MACE,cAAA,CACA,cAAA,CACA,kCAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,mBAAA,CACA,iBAAA,CACA,eAAA,CACA,qBAAA,CAGF,8CACE,oBAAA,CAGF,yDACE,YAAA,CACA,eAAA,CAGF,mEACE,WAAA,CACA,UAAA,CAEA,qFACE,oBAAA,CAIJ,0DACE,oBAAA,CACA,cAAA,CAGF,uDACE,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGF,uDACE,qBH/CM,CGiDN,sFACE,qDAAA,CAGF,8EACE,0BAAA,CAIJ,oKAEE,YAAA,CAGF,mEACE,YAAA,CACA,eAAA,CACA,WAAA,CACA,aAAA,CACA,wBHrEM,CGsEN,yBAAA,CAEA,8FACE,wBAAA,CAGF,0FACE,kBAAA,CAGF,uFACE,uBAAA,CAGF,wIACE,qBHpFI,CGqFJ,+BAAA,CACA,4BAAA,CAGF,wIACE,wBH3FI,CG4FJ,+BAAA,CAGF,oFACE,0BAAA,CAGF,8FACE,sBAAA,CAIJ,yDACE,YAAA,CACA,kBAAA,CACA,0BAAA,CACA,oBAAA,CAEA,qFACE,oBAAA,CAGF,+DACE,qBAAA,CAIJ,4DACE,sBAAA,CACA,wBAAA,CACA,gBAAA,CACA,iBAAA,CAGF,uDACE,WAAA,CACA,2BH9HM,CGiIR,wDACE,WAAA,CAGF,gDACE,UAAA,CACA,eAAA,CACA,qBHzIM,CG0IN,2BHzIM,CG4IR,mDACE,YAAA,CAGF,0DACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,YCnGW,CDoGX,iBAAA,CACA,qBHvJM,CG0JR,8DACE,WAAA,CACA,wBH7JM,CGgKR,iEDksBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CChsBF,aH7JQ,CG8JR,mBC9IW,CDiJb,gED4rBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CC1rBF,aHnKQ",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.productiveHeading01 {\n @include type.type-style('heading-01');\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-02');\n}\n\n.productiveHeading03 {\n @include type.type-style('heading-03');\n}\n\n.productiveHeading04 {\n @include type.type-style('heading-04');\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n}\n\n.bodyShort01 {\n @include type.type-style('body-compact-01');\n}\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n}\n\n.text02 {\n color: $text-02;\n}\n\n.label01 {\n @include type.type-style('label-01');\n}\n\n.modal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n display: grid;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9000;\n justify-items: center;\n align-items: center;\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","@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@import '~@openmrs/esm-styleguide/src/vars';\n@import '../root.scss';\n\ntitle {\n width: 6.938rem;\n height: 1.75rem;\n margin: 0.438rem 22.875rem 0.813rem 0;\n font-family: IBMPlexSans;\n font-size: 1.25rem;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.4;\n letter-spacing: normal;\n}\n\n.link {\n text-decoration: none;\n}\n\n.breadcrumbsSlot {\n grid-row: 1 / 2;\n grid-column: 1 / 2;\n}\n\n.prescriptionTabsContainer {\n height: 100%;\n width: 100%;\n\n :global(.cds--tab-content) {\n padding: 0 !important;\n }\n}\n\n.prescriptionTabs {\n grid-column: 'span 2';\n padding: 0 spacing.$spacing-05;\n}\n\n.newListButton {\n width: fit-content;\n justify-self: end;\n align-self: center;\n}\n\n.tabsContainer {\n background-color: $ui-02;\n\n :global(.cds--tabs__nav-item--selected) {\n box-shadow: inset 0 2px 0 0 var(--brand-03) !important;\n }\n\n :global(.cds--tab--list) button {\n max-width: 12rem !important;\n }\n}\n\n.hiddenTabsContent,\n.tabs .hiddenTabsContent {\n display: none;\n}\n\n.patientListTableContainer {\n grid-row: 3 / 4;\n grid-column: 1 / 2;\n height: 100%;\n margin: 0 spacing.$spacing-05;\n background-color: $ui-01;\n border: 0.5px solid #e0e0e0;\n\n :global(.cds--data-table-container) {\n padding-top: 0 !important;\n }\n\n tbody > tr > :nth-child(2) {\n white-space: nowrap;\n }\n\n :global(.cds--data-table td) {\n height: unset !important;\n }\n\n :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 1) td {\n background-color: $ui-02;\n border-bottom: 1px solid $ui-03;\n border-top: 1px solid $ui-03;\n }\n\n :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 3) td {\n background-color: $ui-01;\n border-bottom: 1px solid $ui-03;\n }\n\n :global(.cds--pagination) {\n border-top: none !important;\n }\n\n :global(.cds--table-expand__button) {\n height: 2rem !important;\n }\n}\n\n.searchContainer {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n padding: 0.5rem 1rem 0;\n\n :global(.cds--search-magnifier-icon) {\n z-index: 0 !important;\n }\n\n input {\n background-color: #fff;\n }\n}\n\n.addPrescriptionBtn {\n width: 10rem !important;\n padding: 0.5rem !important;\n margin-left: 1rem;\n margin-right: 1rem;\n}\n\n.patientSearch {\n width: 25rem;\n border-bottom-color: $ui-03;\n}\n\n.locationFilter {\n width: 25rem;\n}\n\n.search {\n width: 100%;\n max-width: 16rem;\n background-color: $ui-02;\n border-bottom-color: $ui-03;\n}\n\n.hiddenRow {\n display: none;\n}\n\n.filterEmptyState {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: spacing.$spacing-09;\n text-align: center;\n background-color: $ui-02;\n}\n\n.filterEmptyStateTile {\n margin: auto;\n background-color: $ui-01;\n}\n\n.filterEmptyStateContent {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: spacing.$spacing-03;\n}\n\n.filterEmptyStateHelper {\n @include type.type-style('body-compact-01');\n color: $text-02;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),r.locals={productiveHeading01:"-esm-dispensing__prescriptions__productiveHeading01___dogtN",productiveHeading02:"-esm-dispensing__prescriptions__productiveHeading02___gjwi+",productiveHeading03:"-esm-dispensing__prescriptions__productiveHeading03___cx0BG",productiveHeading04:"-esm-dispensing__prescriptions__productiveHeading04___GvlBM",bodyLong01:"-esm-dispensing__prescriptions__bodyLong01___LKG7k",bodyShort01:"-esm-dispensing__prescriptions__bodyShort01___nIOkA",bodyShort02:"-esm-dispensing__prescriptions__bodyShort02___+FkDH",text02:"-esm-dispensing__prescriptions__text02___GreNi",label01:"-esm-dispensing__prescriptions__label01___HdsaA",modal:"-esm-dispensing__prescriptions__modal___6Bztk",link:"-esm-dispensing__prescriptions__link___nh1F1",breadcrumbsSlot:"-esm-dispensing__prescriptions__breadcrumbsSlot___s3KgQ",prescriptionTabsContainer:"-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg",prescriptionTabs:"-esm-dispensing__prescriptions__prescriptionTabs___3aZuw",newListButton:"-esm-dispensing__prescriptions__newListButton___cGpxv",tabsContainer:"-esm-dispensing__prescriptions__tabsContainer___74mkw",hiddenTabsContent:"-esm-dispensing__prescriptions__hiddenTabsContent___krxGf",tabs:"-esm-dispensing__prescriptions__tabs___QV2Z9",patientListTableContainer:"-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6",searchContainer:"-esm-dispensing__prescriptions__searchContainer___J0rpK",addPrescriptionBtn:"-esm-dispensing__prescriptions__addPrescriptionBtn___KF0Z3",patientSearch:"-esm-dispensing__prescriptions__patientSearch___4Loxt",locationFilter:"-esm-dispensing__prescriptions__locationFilter___znalM",search:"-esm-dispensing__prescriptions__search___56gcv",hiddenRow:"-esm-dispensing__prescriptions__hiddenRow___r6JbH",filterEmptyState:"-esm-dispensing__prescriptions__filterEmptyState___y0ZGb",filterEmptyStateTile:"-esm-dispensing__prescriptions__filterEmptyStateTile___14jtq",filterEmptyStateContent:"-esm-dispensing__prescriptions__filterEmptyStateContent___7CgxQ",filterEmptyStateHelper:"-esm-dispensing__prescriptions__filterEmptyStateHelper___AQsYs"};const s=r},3979:(e,n,t)=>{var i={"./en.json":[3574,574],"./fr.json":[2757,757],"./zh.json":[8271,271]};function a(e){if(!t.o(i,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],a=n[0];return t.e(n[1]).then((()=>t(a)))}a.keys=()=>Object.keys(i),a.id=3979,e.exports=a}}]);
|