@openmrs/esm-dispensing-app 1.5.1-pre.359 → 1.5.1-pre.366

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/343.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[343],{5763:(e,n,t)=>{"use strict";t.r(n),t.d(n,{closeActionButton:()=>rt,dispenseActionButton:()=>at,dispensing:()=>Xn,dispensingDashboard:()=>nt,dispensingDashboardLink:()=>it,dispensingLink:()=>et,importTranslation:()=>Kn,pauseActionButton:()=>ot,startupApp:()=>tt});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 j=t(7913),U=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=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(j.Ye,{size:16}),r().createElement("span",{className:W.value},l),r().createElement("span",{className:W.middot},"·"),r().createElement(U.f,{size:16}),r().createElement("span",{className:W.value},(0,i.formatDate)(new Date,{mode:"standard"})))))},Y=t(9736),Q={};Q.styleTagTransform=q(),Q.setAttributes=B(),Q.insert=M().bind(null,"head"),Q.domAPI=z(),Q.insertStyleElement=T(),x()(Y.Z,Q);const K=Y.Z&&Y.Z.locals?Y.Z.locals:void 0;var J,V,X,ee,ne=t(9820);!function(e){e.on_hold="on-hold",e.completed="completed",e.declined="declined"}(J||(J={})),function(e){e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired"}(V||(V={})),function(e){e.on_hold="ON_HOLD",e.declined="DECLINED",e.completed="COMPLETED"}(X||(X={})),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"}(ee||(ee={}));var te=t(2653),ie=t.n(te);function ae(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 oe(e){return function(e){if(Array.isArray(e))return ae(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 ae(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)?ae(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 re="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 se(e,n){if(n&&de(e)<=0)return X.completed;var t=Ae(e.dispenses);return t===J.declined?X.declined:t===J.on_hold?X.on_hold:null}function le(e,n){var t=pe(e,n),i=me(e);if(t!==V.active){if(t===V.expired)return ee.expired;if(t===V.completed)return ee.completed;if(t===V.cancelled)return ee.cancelled}return i===X.declined?ee.declined:i===X.on_hold?ee.on_hold:ee.active}function pe(e,n){var t,i;return e.status===V.cancelled||e.status===V.completed?e.status:(null===(i=e.dispenseRequest)||void 0===i||null===(t=i.validityPeriod)||void 0===t?void 0:t.start)&&ie()(e.dispenseRequest.validityPeriod.start).isBefore(ie()().startOf("day").subtract(n,"day"))?V.expired:V.active}function ce(e,n){var t=function(e,n){if(!e||0===e.length)return null;var t=e.map((function(e){return le(e,n)}));return t.includes(ee.active)?ee.active:t.includes(ee.on_hold)?ee.on_hold:t.includes(ee.completed)?ee.completed:t.includes(ee.declined)?ee.declined:t.includes(ee.cancelled)?ee.cancelled:t.includes(ee.expired)?ee.expired:null}(e,n);return null===t?null:t===ee.active?"active":t===ee.on_hold?"paused":t===ee.completed?"completed":t===ee.declined?"closed":t===ee.expired?"expired":t===ee.cancelled?"cancelled":null}function de(e){if(e){if(!Ce([e.request].concat(oe(e.dispenses))))throw new Error(re);return a=we(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(!Ce(e))throw new Error(re);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 ue(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 ge(e){return e?e.find((function(e){return!("system"in e)||void 0===e.system})):null}function fe(e){var n;return null===(n=ge(e))||void 0===n?void 0:n.display}function he(e){var n;return null===(n=ge(e))||void 0===n?void 0:n.code}function me(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 ye(e){var n,t;return e.medicationReference?e.medicationReference.display:fe(null===(n=e)||void 0===n?void 0:n.medicationCodeableConcept.coding)+": "+(null===(t=e)||void 0===t?void 0:t.medicationCodeableConcept.text)}function be(e){return{medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept}}function Ae(e){var n,t=null===(n=e)||void 0===n?void 0:n.sort(ze);return t&&t.length>0?t[0].status:null}function ve(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 $e(e,n,t){return n&&(e="".concat(e,"&patientSearchTerm=").concat(n)),t&&(e="".concat(e,"&location=").concat(t)),e}function _e(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 Ce(e){if(e){var n=e.map((function(e){var n;return null===(n=_e(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 we(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.numberOfRepeatsAllowed:null}function xe(e){var n;return(null===(n=e)||void 0===n?void 0:n.includes("/"))?e.split("/")[1]:e}function ke(e){(0,ne.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 ze(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 Ee(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 Me(e){return function(e){if(Array.isArray(e))return Ee(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 Ee(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)?Ee(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 De(e){var n,t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[],r=(0,ne.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(ze);y.every((function(e){return o.push({request:e,dispenses:ue(e,b).sort(ze)})}))}}return t=!(o&&0!=o.length||l),{medicationRequestBundles:o,prescriptionDate:n,isError:l,isLoading:t}}function Be(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}]}})}function Se(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Te(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 Ie(e){var n,t,a="custom:(uuid,person:(display)";return null===(t=(0,ne.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 qe(e){var n=(0,ne.ZP)("".concat(i.fhirBaseUrl,"/ValueSet/").concat(e),i.openmrsFetch).data;return n?n.data:null}function Ne(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:ie()().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){Se(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 Oe=t(8404),Fe={};Fe.styleTagTransform=q(),Fe.setAttributes=B(),Fe.insert=M().bind(null,"head"),Fe.domAPI=z(),Fe.insertStyleElement=T(),x()(Oe.Z,Fe);const Pe=Oe.Z&&Oe.Z.locals?Oe.Z.locals:void 0,Ge=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=_e(w),D=we(w);return r().createElement("div",null,r().createElement("p",{className:Pe.medicationName},k,r().createElement("strong",null,ye(be(w)))),E&&r().createElement("p",{className:Pe.bodyLong01},r().createElement("span",{className:Pe.label01},z("dose","Dose").toUpperCase())," ",r().createElement("span",{className:Pe.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:Pe.bodyLong01},r().createElement("span",{className:Pe.label01},z("quantity","Quantity").toUpperCase())," ",r().createElement("span",{className:Pe.quantity},M.value," ",M.unit)),(D||0===D)&&r().createElement("p",{className:Pe.bodyLong01},r().createElement("span",{className:Pe.label01},z("refills","Refills").toUpperCase())," ",r().createElement("span",{className:Pe.refills},D)),(null===(b=E)||void 0===b?void 0:b.text)&&r().createElement("p",{className:Pe.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:Pe.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 Ue(){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()]}}))},Ue=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)}))},Ue.apply(this,arguments)}var Re=t(4672),Le=t(7591),He={};He.styleTagTransform=q(),He.setAttributes=B(),He.insert=M().bind(null,"head"),He.domAPI=z(),He.insertStyleElement=T(),x()(Le.Z,He);const We=Le.Z&&Le.Z.locals?Le.Z.locals:void 0,Ze=function(e){var n=e.medication,t=e.editAction;return r().createElement(f.n9L,{className:We.medicationTile},r().createElement("p",{className:We.medicationName},r().createElement("strong",null,ye(n))),t&&r().createElement(Re.I8,{onClick:t}))};var Ye=t(4295),Qe={};Qe.styleTagTransform=q(),Qe.setAttributes=B(),Qe.insert=M().bind(null,"head"),Qe.domAPI=z(),Qe.insertStyleElement=T(),x()(Ye.Z,Qe);const Ke=Ye.Z&&Ye.Z.locals?Ye.Z.locals:void 0;function Je(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 Ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Xe(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){Ve(e,n,t[n])}))}return e}function en(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 nn(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)||an(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 tn(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||an(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 an(e,n){if(e){if("string"==typeof e)return Je(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)?Je(e,n):void 0}}const on=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=nn((0,o.useState)(!1),2),P=F[0],G=F[1],j=nn((0,o.useState)(!1),2),U=j[0],R=j[1],L=nn((0,o.useState)([]),2),H=L[0],W=L[1],Z=nn((0,o.useState)([]),2),Y=Z[0],Q=Z[1],K=nn((0,o.useState)([]),2),J=K[0],V=K[1],X=nn((0,o.useState)([]),2),ee=X[0],te=X[1],ae=nn((0,o.useState)([]),2),oe=ae[0],re=ae[1],se=nn((0,o.useState)([]),2),le=se[0],pe=se[1],ce=nn((0,o.useState)(!1),2),de=ce[0],ue=ce[1],ge="tablet"===(0,i.useLayoutType)(),fe=N.dispenseBehavior.allowModifyingPrescription,me=(z=(0,ne.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,ye=(B=N.valueSets.substitutionType.uuid,{substitutionTypeValueSet:qe(B)}).substitutionTypeValueSet,Ae=function(e){return{substitutionReasonValueSet:qe(e)}}(N.valueSets.substitutionReason.uuid).substitutionReasonValueSet,$e=Ie(N.dispenserProviderRoles),_e=function(e,n){e=e?e.startsWith("MedicationRequest")?e:"MedicationRequest/".concat(e):null;var t=(0,ne.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=De(_e?_e.encounter.reference:null).prescriptionDate;(0,o.useEffect)((function(){if(me){var e=J.map((function(e){return e.id})),n=[];me.drugRoutes.forEach((function(t){return e.includes(t.uuid)||n.push({id:t.uuid,text:t.display})})),V(tn(J).concat(tn(n)));var t=H.map((function(e){return e.id})),i=[];me.drugDosingUnits.forEach((function(e){return t.includes(e.uuid)||i.push({id:e.uuid,text:e.display})})),W(tn(H).concat(tn(i)));var a=Y.map((function(e){return e.id})),o=[];me.drugDispensingUnits.forEach((function(e){return a.includes(e.uuid)||o.push({id:e.uuid,text:e.display})})),Q(tn(Y).concat(tn(o)));var r=ee.map((function(e){return e.id})),s=[];me.orderFrequencies.forEach((function(e){return r.includes(e.uuid)||s.push({id:e.uuid,text:e.display})})),te(tn(ee).concat(tn(s)))}}),[Y,H,J,me,ee]),(0,o.useEffect)((function(){var e,n,t=[];if(null===(n=ye)||void 0===n||null===(e=n.compose)||void 0===e?void 0:e.include){var i,a=ye.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)}),[ye]),(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)}))}pe(t)}),[Ae]);var we=he(null===(t=be(S))||void 0===t||null===(n=t.medicationCodeableConcept)||void 0===n?void 0:n.coding),xe=function(e,n){var t=(0,ne.ZP)(e||!n?null:"".concat(i.fhirBaseUrl,"/").concat(n),i.openmrsFetch).data;return{medicationCodeableConceptUuid:t?he(t.data.code.coding):null}}(we,null===(a=be(S).medicationReference)||void 0===a?void 0:a.reference).medicationCodeableConceptUuid,ke=function(e){var n,t=(0,ne.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(en(Xe({},S),{substitution:en(Xe({},S.substitution),{wasSubstituted:!0})}))):(R(!1),T(en(Xe({},S),{substitution:{wasSubstituted:!1,reason:[{coding:[{code:null}]}],type:{coding:[{code:null}]}}})))}),[S,_e,T]),(0,o.useEffect)((function(){var e;ue((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:Ke.medicationDispenseReviewContainer},r().createElement(f.Kqy,{gap:5},P?r().createElement(f.Ltx,{id:"medicationFormulation",light:ge,items:ke,itemToString:function(e){return ve(e)},initialSelectedItem:Xe({},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(en(Xe({},S),{medicationCodeableConcept:void 0,medicationReference:{reference:"Medication/"+(null===(n=t)||void 0===n?void 0:n.id),display:ve(t)}})),G(!1)},required:!0}):r().createElement(Ze,{medication:be(S),editAction:de&&fe?function(){return G(!0)}:null}),U&&r().createElement("div",{className:Ke.dispenseDetailsContainer},r().createElement(f.CtY,{className:Ke.substitutionType,id:"substitutionType",light:ge,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(en(Xe({},S),{substitution:en(Xe({},S.substitution),{type:{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}})}))}})),U&&r().createElement("div",{className:Ke.dispenseDetailsContainer},r().createElement(f.CtY,{className:Ke.substitutionReason,id:"substitutionReason",light:ge,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(en(Xe({},S),{substitution:en(Xe({},S.substitution),{reason:[{coding:[{code:null===(n=t)||void 0===n?void 0:n.id}]}]})}))}})),r().createElement("div",{className:Ke.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(en(Xe({},S),{quantity:en(Xe({},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||!fe,light:ge,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(en(Xe({},S),{quantity:{value:S.quantity.value,code:null===(n=t)||void 0===n?void 0:n.id}}))},required:!0})),r().createElement("div",{className:Ke.dispenseDetailsContainer},r().createElement(f.Y2U,{allowEmpty:!1,disabled:!de||!fe,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(en(Xe({},S),{dosageInstruction:[en(Xe({},S.dosageInstruction[0]),{doseAndRate:[en(Xe({},S.dosageInstruction[0].doseAndRate[0]),{doseQuantity:en(Xe({},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||!fe,light:ge,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(en(Xe({},S),{dosageInstruction:[en(Xe({},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||!fe,light:ge,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(en(Xe({},S),{dosageInstruction:[en(Xe({},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||!fe,light:ge,items:ee,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(en(Xe({},S),{dosageInstruction:[en(Xe({},S.dosageInstruction[0]),{timing:en(Xe({},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(en(Xe({},S),{dosageInstruction:[en(Xe({},S.dosageInstruction[0]),{text:e.target.value})]}))}}),r().createElement(i.OpenmrsDatePicker,{id:"dispenseDate",labelText:q("dispenseDate","Date of Dispense"),minDate:Ce?ie()(Ce).startOf("day").toDate():null,maxDate:ie()().toDate(),onChange:function(e){var n,t=S.whenHandedOver?ie()(S.whenHandedOver):null,i=ie()(e);T(en(Xe({},S),{whenHandedOver:(null===(n=t)||void 0===n?void 0:n.isSame(i,"day"))?t.toISOString():i.toISOString()}))},value:ie()(S.whenHandedOver).toDate()}),$e&&r().createElement(f.CtY,{id:"dispenser",light:ge,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(en(Xe({},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")})))},rn=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,ne.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 sn=t(6002),ln={};ln.styleTagTransform=q(),ln.setAttributes=B(),ln.insert=M().bind(null,"head"),ln.domAPI=z(),ln.insertStyleElement=T(),x()(sn.Z,ln);const pn=sn.Z&&sn.Z.locals?sn.Z.locals:void 0;function cn(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 dn(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 cn(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)?cn(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 un=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=dn((0,o.useState)(),2),b=y[0],A=y[1],v=dn((0,o.useState)(),2),$=v[0],_=v[1],w=dn((0,o.useState)(!1),2),x=w[0],k=w[1],z=dn((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:pn.formWrapper},h&&r().createElement(f.lSo,{className:pn.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),g&&r().createElement(i.ExtensionSlot,{name:"patient-header-slot",state:B}),r().createElement("section",{className:pn.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(on,{medicationDispense:$,updateMedicationDispense:_,quantityRemaining:c}),m.enableStockDispense&&r().createElement(rn,{inventoryItem:b,medicationDispense:n,updateInventoryItem:A})):null),r().createElement("section",{className:pn.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;Te($,J.completed,e).then((function(e){if(e.ok){var n=function(e,n,t){var i=oe(n.dispenses);return i=e.id?i.map((function(n){return n.id===e.id?e:n})):[e].concat(oe(i)),se({request:n.request,dispenses:i},t)}($,t,m.dispenseBehavior.restrictTotalQuantityDispensed);if(me(t.request)!==n)return Be(xe($.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:xe(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 Ue.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(),ke(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 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 fn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function hn(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 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}}(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 mn=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=hn((0,o.useState)(),2),$=v[0],_=v[1],w=hn((0,o.useState)(!1),2),x=w[0],k=w[1],z=hn((0,o.useState)(!1),2),E=z[0],M=z[1],D=hn((0,o.useState)([]),2),B=D[0],S=D[1],T=(l=h.valueSets.reasonForPause.uuid,{reasonForPauseValueSet:qe(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:pn.formWrapper},A&&r().createElement(f.lSo,{className:pn.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),b&&r().createElement(i.ExtensionSlot,{name:"patient-header-slot",state:I}),r().createElement("section",{className:pn.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){fn(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:pn.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;Te($,J.on_hold,e).then((function(e){return e.ok&&!p.id?Be(xe($.authorizingPrescription[0].reference),X.on_hold):e})).then((function(e){e.ok&&(C(),ke(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 yn(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 bn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function An(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 yn(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)?yn(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 vn=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=An((0,o.useState)(),2),$=v[0],_=v[1],w=An((0,o.useState)(!1),2),x=w[0],k=w[1],z=An((0,o.useState)(!1),2),E=z[0],M=z[1],D=An((0,o.useState)([]),2),B=D[0],S=D[1],T=(l=h.valueSets.reasonForClose.uuid,{reasonForCloseValueSet:qe(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:pn.formWrapper},A&&r().createElement(f.lSo,{className:pn.bannerLoading,iconDescription:"Loading",description:"Loading banner",status:"active"}),b&&r().createElement(i.ExtensionSlot,{name:"patient-header-slot",state:I}),r().createElement("section",{className:pn.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){bn(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:pn.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;Te($,J.declined,e).then((function(e){return e.ok&&!p.id?Be(xe($.authorizingPrescription[0].reference),X.declined):e})).then((function(e){e.ok&&(C(),ke(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=De(n,l.refreshInterval),c=p.medicationRequestBundles,d=p.prescriptionDate,u=p.isError,g=p.isLoading,h=function(e){return e.status===J.completed?r().createElement(f.Vp9,{type:"gray"},a("dispensed","Dispensed")):e.status===J.on_hold?r().createElement(f.Vp9,{type:"red"},a("paused","Paused")):e.status===J.declined?r().createElement(f.Vp9,{type:"red"},a("closed","Closed")):null},m=function(e,t){var a,o=me(t.request),r=function(e,n,t){return se({request:n.request,dispenses:n.dispenses.filter((function(n){return n.id!==e.id}))},t)}(e,t,l.dispenseBehavior.restrictTotalQuantityDispensed);o!==r&&Be(xe(e.authorizingPrescription[0].reference),r).then((function(){ke(n)})),(a=e.id,(0,i.openmrsFetch)("".concat(i.fhirBaseUrl,"/MedicationDispense/").concat(a),{method:"DELETE"})).then((function(){ke(n)}))};return r().createElement("div",{className:K.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(ze).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===J.completed?a("dispensedMedication","dispensed medication"):d.status===J.on_hold?a("pausedDispense","paused dispense"):d.status===J.declined?a("closedDispense","closed dispense"):null," -"," ",(0,i.formatDatetime)((0,i.parseDate)(e.whenHandedOver))),r().createElement(f.n9L,{className:K.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:K.medicationEventActionMenu},p&&r().createElement(f.laM,{onClick:function(){return _(function(e){return e.status===J.completed?a("editDispenseRecord","Edit Dispense Record"):e.status===J.on_hold?a("editPauseRecord","Edit Pause Record"):e.status===J.declined?a("editCloseeRecord","Edit Close Record"):void 0}(e),function(e,i){if(e.status===J.completed){var a,o=null;return l.dispenseBehavior.restrictTotalQuantityDispensed&&(o=de(i)+((null===(a=e)||void 0===a?void 0:a.quantity)?e.quantity.value:0)),r().createElement(un,{patientUuid:t,encounterUuid:n,medicationDispense:e,medicationRequestBundle:i,quantityRemaining:o,mode:"edit"})}return e.status===J.on_hold?r().createElement(mn,{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}):e.status===J.declined?r().createElement(vn,{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(Ge,{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:K.requestTile},r().createElement(Ge,{medicationEvent:e,status:r().createElement(f.Vp9,{type:"green"},a("ordered","Ordered"))})))})))};var _n=t(4511),Cn={};Cn.styleTagTransform=q(),Cn.setAttributes=B(),Cn.insert=M().bind(null,"head"),Cn.domAPI=z(),Cn.insertStyleElement=T(),x()(_n.Z,Cn);const wn=_n.Z&&_n.Z.locals?_n.Z.locals:void 0;var xn=t(4881),kn=t(1127),zn={};zn.styleTagTransform=q(),zn.setAttributes=B(),zn.insert=M().bind(null,"head"),zn.domAPI=z(),zn.insertStyleElement=T(),x()(kn.Z,zn);const En=kn.Z&&kn.Z.locals?kn.Z.locals:void 0,Mn=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=Ie(o.dispenserProviderRoles),c=Ae(n.dispenses),d=pe(n.request,o.medicationRequestExpirationPeriodInDays),u=d===V.active&&c!==J.declined,g=o.actionButtons.pauseButton.enabled&&d===V.active&&c!==J.on_hold&&c!==J.declined,f=o.actionButtons.closeButton.enabled&&d===V.active&&c!==J.declined,h=null;o.dispenseBehavior.restrictTotalQuantityDispensed&&(h=de(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:En.actionBtns},r().createElement(i.ExtensionSlot,{className:En.extensionSlot,name:"prescription-action-button-slot",state:m}))};var Dn=t(583),Bn={};Bn.styleTagTransform=q(),Bn.setAttributes=B(),Bn.insert=M().bind(null,"head"),Bn.domAPI=z(),Bn.insertStyleElement=T(),x()(Dn.Z,Bn);const Sn=Dn.Z&&Dn.Z.locals?Dn.Z.locals:void 0;function Tn(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 In=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 Tn(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)?Tn(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,ne.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=De(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:Sn.prescriptionContainer},u&&r().createElement(f.gqd,{role:"progressbar"}),!u&&r().createElement(f.n9L,{className:Sn.allergiesTile},r().createElement("div",{className:Sn.allergiesContent},r().createElement("div",null,r().createElement(xn.Rr,{size:24,className:Sn.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 fe(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:Sn.prescriptionTile},r().createElement(i.UserHasAccess,{privilege:"Task: dispensing.create.dispense"},r().createElement(Mn,{patientUuid:l,encounterUuid:a,medicationRequestBundle:e})),r().createElement(Ge,{key:e.request.id,medicationEvent:e.request,status:(n=e.request,t=le(n,c.medicationRequestExpirationPeriodInDays),t===ee.cancelled?r().createElement(f.Vp9,{type:"red"},p("cancelled","Cancelled")):t===ee.completed?r().createElement(f.Vp9,{type:"green"},p("completed","Completed")):t===ee.expired?r().createElement(f.Vp9,{type:"red"},p("expired","Expired")):t===ee.declined?r().createElement(f.Vp9,{type:"red"},p("closed","Closed")):t===ee.on_hold?r().createElement(f.Vp9,{type:"red"},p("paused","Paused")):null)}));var n,t})))},qn=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(In,{encounterUuid:n,patientUuid:t})},{name:i("historyComments","History and comments"),component:r().createElement($n,{encounterUuid:n,patientUuid:t})}];return r().createElement("div",{className:wn.expandedTabsParentContainer},r().createElement("div",{className:wn.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:wn.orderTabs},e.name)}))),r().createElement(f.nPR,null,a.map((function(e,n){return r().createElement(f.x45,{key:n},e.component)}))))))};var Nn=t(9803),On={};On.styleTagTransform=q(),On.setAttributes=B(),On.insert=M().bind(null,"head"),On.domAPI=z(),On.insertStyleElement=T(),x()(Nn.Z,On);const Fn=Nn.Z&&Nn.Z.locals?Nn.Z.locals:void 0;function Pn(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 Gn(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)||Rn(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 Un(e){return function(e){if(Array.isArray(e))return Pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(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 Rn(e,n){if(e){if("string"==typeof e)return Pn(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)?Pn(e,n):void 0}}const Ln=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,ne.ZP)("ACTIVE"===s?function(e,n,t,a,o){return $e("".concat(i.fhirBaseUrl,"/").concat(u,"&_getpagesoffset=").concat(e,"&_count=").concat(n,"&date=ge").concat(t,"&status=active"),a,o)}(a,t,ie()(new Date).startOf("day").subtract(l,"day").toISOString(),o,r):function(e,n,t,a){return $e("".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(ze);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:Me(new Set(n.map((function(e){return ye(be(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:Me(new Set(n.map((function(e){return e.requester.display})))).join(", "),status:ce(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=Un(D.slice(0,3)).concat([{header:g("location","Location"),key:"location"}],Un(D.slice(3)))),(0,o.useEffect)((function(){b(1),w(0)}),[p]),r().createElement(f.x45,null,r().createElement("div",{className:Fn.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){Gn(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")?e.value.name:e.id.endsWith("status")?g(e.value):e.value)}))),e.isExpanded?r().createElement(f.WdL,{colSpan:o.length+1},r().createElement(qn,{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:Fn.hiddenRow,colSpan:o.length+2}))})))))})),0===(null===(a=k)||void 0===a?void 0:a.length)&&r().createElement("div",{className:Fn.filterEmptyState},r().createElement(f.mh4,null,r().createElement(f.n9L,{className:Fn.filterEmptyStateTile},r().createElement("p",{className:Fn.filterEmptyStateContent},g("noPrescriptionsToDisplay","No prescriptions to display")),r().createElement("p",{className:Fn.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 Hn(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 Wn(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 Hn(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)?Hn(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 Zn=function(){var e,n,t,a=(0,s.useTranslation)().t,l=(0,i.useConfig)(),p=function(e){var n,t,a,o=(0,ne.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=Wn((0,o.useState)(""),2),g=u[0],h=u[1],m=Wn((0,o.useState)(""),2),y=m[0],b=m[1],A=Wn((0,o.useState)(""),2),v=A[0],$=A[1],_=Wn((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(Fn.prescriptionListContainer)},r().createElement("section",{className:Fn.prescriptionTabsContainer},r().createElement(f.mQc,{className:Fn.prescriptionTabs,onChange:function(e){w(e.selectedIndex)},type:"container",tabContentClassName:Fn.hiddenTabsContent},r().createElement(f.tdY,{"aria-label":a("tabList","Tab List"),contained:!0,className:Fn.tabsContainer},x.map((function(e,n){return r().createElement(f.OK9,{title:a(e.key),key:n,id:"tab-"+n,className:Fn.tab},a(e.header))}))),r().createElement("div",{className:Fn.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:Fn.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:Fn.locationFilter})),r().createElement(f.nPR,null,x.map((function(e,n){return n===C?r().createElement(Ln,{location:v,searchTerm:y,status:e.status}):r().createElement(r().Fragment,null)}))))))};var Yn=t(8897);function Qn(){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 Kn=t(3979),Jn="@openmrs/esm-dispensing-app",Vn={featureName:"dispensing",moduleName:Jn},Xn=(0,i.getSyncLifecycle)((function(){return r().createElement(i.ExtensionSlot,{name:"dispensing-dashboard-slot"})}),Vn),et=(0,i.getSyncLifecycle)((function(){var e=(0,s.useTranslation)().t;return r().createElement(i.ConfigurableLink,{to:l},e("dispensing","Dispensing"))}),Vn),nt=(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(Z,null),r().createElement(Zn,null),r().createElement(G,null))}),Vn);function tt(){(0,i.defineConfigSchema)(Jn,a)}var it=(0,i.getSyncLifecycle)((function(){return r().createElement(Yn.VK,null,r().createElement(Qn,null))}),Vn),at=(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(un,{patientUuid:n,encounterUuid:t,medicationDispense:Ne(i.request,a,o,!0),medicationRequestBundle:i,quantityRemaining:p,mode:"enter"}))}},c("dispense","Dispense")):null}),Vn),ot=(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(mn,{patientUuid:n,encounterUuid:t,medicationDispense:Ne(i.request,a,o,!1),mode:"enter"}))}},p("pause","Pause")):null}),Vn),rt=(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(vn,{patientUuid:n,encounterUuid:t,medicationDispense:Ne(i.request,a,o,!1),mode:"enter"}))}},p("close","Close")):null}),Vn)},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}}]);