@openmrs/esm-dispensing-app 1.6.1 → 1.6.2-pre.421

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/890.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[890],{3252:(e,n,t)=>{"use strict";t.d(n,{FI:()=>l,HX:()=>f,Is:()=>r,JB:()=>a,Ph:()=>g,UW:()=>p,YG:()=>s,aZ:()=>u,ar:()=>d,nj:()=>o,q:()=>c}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/dispensing"),i="http://fhir.openmrs.org/ext",r=i+"/medicine",o=i+"/medicationrequest/fullfillerstatus",s="Task: dispensing.create.dispense",l="Task: dispensing.create.dispense.allowSubstitutions",c="Task: dispensing.edit.dispense",p="Task: dispensing.delete.dispense",d="Task: dispensing.delete.dispense.ifCreator",u="application/merge-patch+json",f="Encounter?_query=encountersWithMedicationRequests",g="MedicationRequest"},6973:(e,n,t)=>{"use strict";t.r(n),t.d(n,{closeActionButton:()=>Ue,closeDispenseWorkspace:()=>He,dispenseActionButton:()=>Ge,dispenseWorkspace:()=>We,dispensing:()=>Fe,dispensingDashboard:()=>Oe,dispensingDashboardLink:()=>Re,dispensingLink:()=>Le,importTranslation:()=>Ie,pauseActionButton:()=>Ze,pauseDispenseWorkspace:()=>Xe,printPrescriptionPreviewModal:()=>Je,startupApp:()=>Pe});var a=t(1132),i={appName:{_type:a.Type.String,_default:"Pharmacy"},actionButtons:{pauseButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Pause button in the button action bar",_default:!0}},closeButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Close button in the button action bar",_default:!0}}},dispenseBehavior:{allowModifyingPrescription:{_type:a.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:a.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:a.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:a.Type.Number,_description:"Medication Requests older that this will be considered expired",_default:90},locationBehavior:{locationColumn:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Location column in the main prescriptions table showing ordering location",_default:!1}},locationFilter:{enabled:{_type:a.Type.Boolean,_description:"Enable/Disable Location filter on main prescriptions page",_default:!1},tag:{_type:a.Type.String,_description:"Name of the location tag to use when fetching locations to populate filter",_default:"Login Location"}}},refreshInterval:{_type:a.Type.Number,_description:"The interval, in milliseconds, to query the backend for new/changed data",_default:6e4},valueSets:{reasonForPause:{uuid:{_type:a.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:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},reasonForClose:{uuid:{_type:a.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:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},substitutionReason:{uuid:{_type:a.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:"2de6e1be-f2dd-4ba0-9516-8a611aa2af9b"}},substitutionType:{uuid:{_type:a.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:a.Type.Boolean,_description:"Enable or disable stock deduction during the dispensing process. Requires the stock management module to be installed and configured.",_default:!1}},r=t(1672),o=t.n(r),s=t(1352),l=t(3397),c=t(3439);var p=t(7913),d=t(9658);const u=function(){return o().createElement("svg",{width:"72",height:"72",viewBox:"0 0 62 58",xmlns:"http://www.w3.org/2000/svg"},o().createElement("defs",null,o().createElement("path",{id:"whv9q6f4ta",d:"M0 0h62v30.508H0z"}),o().createElement("path",{id:"hp71ojgcnc",d:"M0 0h24.603v26.571H0z"})),o().createElement("g",{fill:"none"},o().createElement("g",{opacity:".193",transform:"matrix(-1 0 0 1 62 26.571)"},o().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)"})),o().createElement("g",{opacity:".396",transform:"matrix(-1 0 0 1 60.032 0)"},o().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 f=t(3379),g=t.n(f),h=t(7795),m=t.n(h),y=t(569),b=t.n(y),A=t(3565),$=t.n(A),v=t(9216),_=t.n(v),C=t(4589),w=t.n(C),x=t(8488),k={};k.styleTagTransform=w(),k.setAttributes=$(),k.insert=b().bind(null,"head"),k.domAPI=m(),k.insertStyleElement=_(),g()(x.Z,k);const E=x.Z&&x.Z.locals?x.Z.locals:void 0;var z=function(){var e,n,t=(0,l.useTranslation)().t,i=(0,a.useSession)(),r=(0,a.useConfig)(),s=null===(n=i)||void 0===n||null===(e=n.sessionLocation)||void 0===e?void 0:e.display;return o().createElement("div",{className:E.header},o().createElement("div",{className:E["left-justified-items"]},o().createElement(u,null),o().createElement("div",{className:E["page-labels"]},o().createElement("p",null,t("appName",r.appName)),o().createElement("p",{className:E["page-name"]},t("home","Home")))),o().createElement("div",{className:E["right-justified-items"]},o().createElement("div",{className:E["date-and-location"]},o().createElement(p.Ye,{size:16}),o().createElement("span",{className:E.value},s),o().createElement("span",{className:E.middot},"·"),o().createElement(d.f,{size:16}),o().createElement("span",{className:E.value},(0,a.formatDate)(new Date,{mode:"standard"})))))},B=t(2796),M=t(9820);const D=function(e){var n=e.patient,t=n.name,i=function(e){var n,t,i="".concat(a.restBaseUrl,"/person/").concat(e,"?v=").concat("custom:(age)"),r=(0,M.ZP)(i,a.openmrsFetch),o=r.data,s=r.error,l=r.isLoading,c=r.mutate;return{age:null===(t=o)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.age,error:s,isLoading:l,mutate:c}}(n.uuid),r=i.error,s=i.isLoading,c=i.age,p=(0,(0,l.useTranslation)().t)("age","Age");if(s||r)return o().createElement(o().Fragment,null,t);var d=function(e,n){var t=e.lastIndexOf(")");return-1!==t?e.slice(0,t)+", ".concat(p,": ").concat(n)+e.slice(t):"".concat(e," ").concat(p,": ").concat(n)}(t,c);return o().createElement(o().Fragment,null,d)};var T=t(9736),S={};S.styleTagTransform=w(),S.setAttributes=$(),S.insert=b().bind(null,"head"),S.domAPI=m(),S.insertStyleElement=_(),g()(T.Z,S);const N=T.Z&&T.Z.locals?T.Z.locals:void 0;var I=t(8404),q={};q.styleTagTransform=w(),q.setAttributes=$(),q.insert=b().bind(null,"head"),q.domAPI=m(),q.insertStyleElement=_(),g()(I.Z,q);const j=I.Z&&I.Z.locals?I.Z.locals:void 0;var P=t(6139);const F=function(e){var n,t,a,i,r,s,c,p,d,u,f,g,h,m,y,b,A,$,v,_=e.medicationEvent,C=e.status,w=void 0===C?null:C,x=(0,l.useTranslation)().t,k=(0,P.EN)(_.dosageInstruction),E=(0,P.Un)(_),z=(0,P.B9)(_);return o().createElement("div",null,o().createElement("p",{className:j.medicationName},w,o().createElement("strong",null,(0,P.SV)((0,P.mL)(_)))),k&&o().createElement("p",{className:j.bodyLong01},o().createElement("span",{className:j.label01},x("dose","Dose").toUpperCase())," ",o().createElement("span",{className:j.dosage},k.doseAndRate&&(null===(n=k)||void 0===n?void 0:n.doseAndRate.map((function(e,n){var t,a,i,r;return o().createElement("span",{key:n},null===(a=e)||void 0===a||null===(t=a.doseQuantity)||void 0===t?void 0:t.value," ",null===(r=e)||void 0===r||null===(i=r.doseQuantity)||void 0===i?void 0:i.unit)}))))," ","— ",null===(a=k)||void 0===a||null===(t=a.route)||void 0===t?void 0:t.text," — ",null===(s=k)||void 0===s||null===(r=s.timing)||void 0===r||null===(i=r.code)||void 0===i?void 0:i.text," ",(null===(d=k)||void 0===d||null===(p=d.timing)||void 0===p||null===(c=p.repeat)||void 0===c?void 0:c.duration)?"for "+(null===(g=k)||void 0===g||null===(f=g.timing)||void 0===f||null===(u=f.repeat)||void 0===u?void 0:u.duration)+" "+(null===(y=k)||void 0===y||null===(m=y.timing)||void 0===m||null===(h=m.repeat)||void 0===h?void 0:h.durationUnit):" "),E&&o().createElement("p",{className:j.bodyLong01},o().createElement("span",{className:j.label01},x("quantity","Quantity").toUpperCase())," ",o().createElement("span",{className:j.quantity},E.value," ",E.unit)),(z||0===z)&&o().createElement("p",{className:j.bodyLong01},o().createElement("span",{className:j.label01},x("refills","Refills").toUpperCase())," ",o().createElement("span",{className:j.refills},z)),(null===(b=k)||void 0===b?void 0:b.text)&&o().createElement("p",{className:j.bodyLong01},k.text),(null===($=k)||void 0===$||null===(A=$.additionalInstruction)||void 0===A?void 0:A.length)>0&&o().createElement("p",{className:j.bodyLong01},null===(v=k)||void 0===v?void 0:v.additionalInstruction[0].text))};var L=t(3957),O=t(3252);function R(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const U=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,r=(0,a.useSession)(),p=(0,a.useConfig)(),d=(0,B.ud)(n,p.refreshInterval),u=d.medicationRequestBundles,f=d.prescriptionDate,g=d.error,h=d.isLoading,m=function(e){return e.status===L.jm.completed?o().createElement(s.Vp9,{type:"gray"},i("dispensed","Dispensed")):e.status===L.jm.on_hold?o().createElement(s.Vp9,{type:"red"},i("paused","Paused")):e.status===L.jm.declined?o().createElement(s.Vp9,{type:"red"},i("closed","Closed")):null},y=function(e,t){var a=(0,P.vo)(t.request),i=(0,P.g_)(e,t,p.dispenseBehavior.restrictTotalQuantityDispensed);a!==i&&(0,B.XN)((0,P.i7)(e.authorizingPrescription[0].reference),i).then((function(){(0,P.A8)(n)})),(0,c.Xf)(e.id).then((function(){(0,P.A8)(n)}))};return o().createElement("div",{className:N.historyAndCommentsContainer},h&&o().createElement(s.gqd,{role:"progressbar"}),g&&o().createElement("p",null,i("error","Error")),u&&u.flatMap((function(e){return e.dispenses})).sort(P.OO).map((function(e){var l,c,d;return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.performer&&(null===(c=e.performer[0])||void 0===c||null===(l=c.actor)||void 0===l?void 0:l.display)," ",(d=e).status===L.jm.completed?i("dispensedMedication","dispensed medication"):d.status===L.jm.on_hold?i("pausedDispense","paused dispense"):d.status===L.jm.declined?i("closedDispense","closed dispense"):null," -"," ",(0,a.formatDatetime)((0,a.parseDate)(e.whenHandedOver))),o().createElement(s.n9L,{className:N.dispenseTile,"data-floating-menu-container":!0},function(e,l){var c=function(e){var n;return(null===(n=e)||void 0===n?void 0:n.user)&&(0,a.userHasAccess)(O.q,e.user)}(r),d=function(e,n){var t;if(null===(t=e)||void 0===t?void 0:t.user){var i,r;if((0,a.userHasAccess)(O.UW,e.user))return!0;if((0,a.userHasAccess)(O.ar,e.user)&&(null===(i=e.currentProvider)||void 0===i?void 0:i.uuid)&&null!==(null===(r=n.performer)||void 0===r?void 0:r.find((function(n){var t,a,i;return(null===(i=n)||void 0===i||null===(a=i.actor)||void 0===a||null===(t=a.reference)||void 0===t?void 0:t.length)>1&&n.actor.reference.split("/")[1]===e.currentProvider.uuid}))))return!0}return!1}(r,e);return c||d?o().createElement(s.PQB,{ariaLabel:i("medicationDispenseActionMenu","Medication Dispense Action Menu"),flipped:!0,className:N.medicationEventActionMenu},c&&o().createElement(s.laM,{onClick:function(){var r=function(e,a){if(e.status===L.jm.completed){var i,r=null;return p.dispenseBehavior.restrictTotalQuantityDispensed&&(r=(0,P.SR)(a)+((null===(i=e)||void 0===i?void 0:i.quantity)?e.quantity.value:0)),{workspaceName:"dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,medicationRequestBundle:a,quantityRemaining:r,mode:"edit"}}}return e.status===L.jm.on_hold?{workspaceName:"pause-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:e.status===L.jm.declined?{workspaceName:"close-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:void 0}(e,l),o=r.workspaceName,s=r.props,c=function(e){return e.status===L.jm.completed?i("editDispenseRecord","Edit Dispense Record"):e.status===L.jm.on_hold?i("editPauseRecord","Edit Pause Record"):e.status===L.jm.declined?i("editCloseeRecord","Edit Close Record"):void 0}(e);(0,a.launchWorkspace)(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){R(e,n,t[n])}))}return e}({workspaceTitle:c},s))},itemText:i("editRecord","Edit record")}),d&&o().createElement(s.laM,{onClick:function(){y(e,l)},itemText:i("delete","Delete")})):null}(e,(0,P.hY)(u,e)),o().createElement(F,{medicationEvent:e,status:m(e)})))})),u&&u.flatMap((function(e){return e.request})).map((function(e){return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.requester.display," ",i("orderedMedication ","ordered medication")," -"," ",(0,a.formatDatetime)(f)),o().createElement(s.n9L,{className:N.requestTile},o().createElement(F,{medicationEvent:e,status:o().createElement(s.Vp9,{type:"green"},i("ordered","Ordered"))})))})))};var G=t(4511),Z={};Z.styleTagTransform=w(),Z.setAttributes=$(),Z.insert=b().bind(null,"head"),Z.domAPI=m(),Z.insertStyleElement=_(),g()(G.Z,Z);const H=G.Z&&G.Z.locals?G.Z.locals:void 0;var W=t(4881),X=t(1127),J={};J.styleTagTransform=w(),J.setAttributes=$(),J.insert=b().bind(null,"head"),J.domAPI=m(),J.insertStyleElement=_(),g()(X.Z,J);const K=X.Z&&X.Z.locals?X.Z.locals:void 0,Q=function(e){var n=e.medicationRequestBundle,t=e.patientUuid,i=e.encounterUuid,r=((0,l.useTranslation)().t,(0,a.useConfig)()),s=(0,a.useSession)(),p=(0,c.ko)(r.dispenserProviderRoles),d=(0,P.qM)(n.dispenses),u=(0,P.Rd)(n.request,r.medicationRequestExpirationPeriodInDays),f=u===L.I_.active&&d!==L.jm.declined,g=r.actionButtons.pauseButton.enabled&&u===L.I_.active&&d!==L.jm.on_hold&&d!==L.jm.declined,h=r.actionButtons.closeButton.enabled&&u===L.I_.active&&d!==L.jm.declined,m=null;r.dispenseBehavior.restrictTotalQuantityDispensed&&(m=(0,P.SR)(n));var y={dispensable:f,pauseable:g,closeable:h,quantityRemaining:m,patientUuid:t,encounterUuid:i,medicationRequestBundle:n,session:s,providers:p};return o().createElement("div",{className:K.actionBtns},o().createElement(a.ExtensionSlot,{className:K.extensionSlot,name:"prescription-action-button-slot",state:y}))};var Y=t(9675);const V=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,c=(0,r.useCallback)((function(){var e=(0,a.showModal)("prescription-print-preview-modal",{onClose:function(){return e()},encounterUuid:n,patientUuid:t})}),[n,t]);return o().createElement(s.zxk,{renderIcon:Y.FB,iconDescription:i("print","Print"),onClick:c,kind:"ghost"},i("printPrescriptions","Print prescriptions"))};var ee=t(777),ne={};ne.styleTagTransform=w(),ne.setAttributes=$(),ne.insert=b().bind(null,"head"),ne.domAPI=m(),ne.insertStyleElement=_(),g()(ee.Z,ne);const te=ee.Z&&ee.Z.locals?ee.Z.locals:void 0,ae=function(e){var n=e.encounterUuid,t=e.patientUuid;return o().createElement(s.mh4,{className:te.actionsContainer},o().createElement("div",{className:te.actionCluster},o().createElement(V,{encounterUuid:n,patientUuid:t})),o().createElement("div",{className:te.actionCluster}))};var ie=t(583),re={};re.styleTagTransform=w(),re.setAttributes=$(),re.insert=b().bind(null,"head"),re.domAPI=m(),re.insertStyleElement=_(),g()(ie.Z,re);const oe=ie.Z&&ie.Z.locals?ie.Z.locals:void 0;function se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const le=function(e){var n,t,i=e.encounterUuid,c=e.patientUuid,p=(0,l.useTranslation)().t,d=(0,a.useConfig)(),u=(n=(0,r.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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(n,t)||function(e,n){if(e){if("string"==typeof e)return se(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)?se(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.")}()),f=u[0],g=u[1],h=(0,B.jC)(c,d.refreshInterval),m=h.allergies,y=h.totalAllergies,b=(0,B.ud)(i,d.refreshInterval),A=b.medicationRequestBundles,$=b.error,v=b.isLoading;return(0,r.useEffect)((function(){"number"==typeof y&&g(!1)}),[y]),o().createElement("div",{className:oe.prescriptionContainer},f&&o().createElement(s.gqd,{role:"progressbar"}),!f&&o().createElement(s.n9L,{className:oe.allergiesTile},o().createElement("div",{className:oe.allergiesContent},o().createElement("div",null,o().createElement(W.Rr,{size:24,className:oe.allergiesIcon}),o().createElement("p",null,y>0&&o().createElement("span",null,o().createElement("span",{style:{fontWeight:"bold"}},p("allergiesCount","{{ count }} allergies",{count:y}))," ",function(e){return e.map((function(e){return(0,P.r1)(e.code.coding)})).join(", ")}(m)),0===y&&p("noAllergyDetailsFound","No allergy details found"))))),o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},p("prescribed","Prescribed")),v&&o().createElement(s.gqd,{role:"progressbar"}),$&&o().createElement("p",null,p("error","Error")),A&&A.map((function(e){return o().createElement(s.n9L,{className:oe.prescriptionTile},o().createElement(a.UserHasAccess,{privilege:O.YG},o().createElement(Q,{patientUuid:c,encounterUuid:i,medicationRequestBundle:e})),o().createElement(F,{key:e.request.id,medicationEvent:e.request,status:(n=e.request,t=(0,P.sf)(n,d.medicationRequestExpirationPeriodInDays),t===L.Xh.cancelled?o().createElement(s.Vp9,{type:"red"},p("cancelled","Cancelled")):t===L.Xh.completed?o().createElement(s.Vp9,{type:"green"},p("completed","Completed")):t===L.Xh.expired?o().createElement(s.Vp9,{type:"red"},p("expired","Expired")):t===L.Xh.declined?o().createElement(s.Vp9,{type:"red"},p("closed","Closed")):t===L.Xh.on_hold?o().createElement(s.Vp9,{type:"red"},p("paused","Paused")):null)}));var n,t})),o().createElement(ae,{encounterUuid:i,patientUuid:c}))},ce=function(e){var n=e.encounterUuid,t=e.patientUuid,a=(e.status,(0,l.useTranslation)().t),i=[{name:a("prescriptionDetails","Prescription details"),component:o().createElement(le,{encounterUuid:n,patientUuid:t})},{name:a("historyComments","History and comments"),component:o().createElement(U,{encounterUuid:n,patientUuid:t})}];return o().createElement("div",{className:H.expandedTabsParentContainer},o().createElement("div",{className:H.expandedTabsContainer},o().createElement(s.mQc,null,o().createElement(s.tdY,{"aria-label":a("tabList","Tab List")},i.map((function(e,n){return o().createElement(s.OK9,{key:n,className:H.orderTabs},e.name)}))),o().createElement(s.nPR,null,i.map((function(e,n){return o().createElement(s.x45,{key:n},e.component)}))))))};var pe=t(9803),de={};de.styleTagTransform=w(),de.setAttributes=$(),de.insert=b().bind(null,"head"),de.domAPI=m(),de.insertStyleElement=_(),g()(pe.Z,de);const ue=pe.Z&&pe.Z.locals?pe.Z.locals:void 0;function fe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ge(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function he(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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||ye(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 me(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ye(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 ye(e,n){if(e){if("string"==typeof e)return fe(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)?fe(e,n):void 0}}const be=function(e){var n,t,i,c,p=e.searchTerm,d=e.location,u=e.status,f=(0,l.useTranslation)().t,g=(0,a.useConfig)(),h=he((0,r.useState)(1),2),m=h[0],y=h[1],b=he((0,r.useState)(10),2),A=b[0],$=b[1],v=he((0,r.useState)(0),2),_=v[0],C=v[1],w=(0,B.j3)(A,_,p,d,u,g.medicationRequestExpirationPeriodInDays,g.refreshInterval),x=w.prescriptionsTableRows,k=w.error,E=w.isLoading,z=w.totalOrders,M=[{header:f("created","Created"),key:"created"},{header:f("patientName","Patient name"),key:"patient"},{header:f("prescriber","Prescriber"),key:"prescriber"},{header:f("drugs","Drugs"),key:"drugs"},{header:f("lastDispenser","Last dispenser"),key:"lastDispenser"},{header:f("status","Status"),key:"status"}];return(null===(t=g.locationBehavior)||void 0===t||null===(n=t.locationColumn)||void 0===n?void 0:n.enabled)&&(M=me(M.slice(0,3)).concat([{header:f("location","Location"),key:"location"}],me(M.slice(3)))),(0,r.useEffect)((function(){y(1),C(0)}),[p]),o().createElement(s.x45,null,o().createElement("div",{className:ue.patientListTableContainer},E&&o().createElement(s.gqd,{role:"progressbar"}),k&&o().createElement("p",null,"Error"),x&&o().createElement(o().Fragment,null,o().createElement(s.wQF,{rows:x,headers:M,isSortable:!0},(function(e){var n,t,i=e.rows,r=e.headers,l=e.getExpandHeaderProps,c=e.getHeaderProps,p=e.getRowProps,d=e.getTableProps;return o().createElement(s.xJi,null,o().createElement(s.iA_,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){ge(e,n,t[n])}))}return e}({},d()),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 a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n),o().createElement(s.ssF,null,o().createElement(s.SCH,null,o().createElement(s.MOD,l()),r.map((function(e){return o().createElement(s.xDH,c({header:e}),e.header)})))),o().createElement(s.RMI,null,i.map((function(e){return o().createElement(o().Fragment,{key:e.id},o().createElement(s.RcE,p({row:e}),e.cells.map((function(e){return o().createElement(s.pj1,{key:e.id},e.id.endsWith("created")?(0,a.formatDatetime)((0,a.parseDate)(e.value)):e.id.endsWith("patient")?o().createElement(D,{patient:e.value}):e.id.endsWith("status")?f(e.value):e.value)}))),e.isExpanded?o().createElement(s.WdL,{colSpan:r.length+1},o().createElement(ce,{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})):o().createElement(s.WdL,{className:ue.hiddenRow,colSpan:r.length+2}))})))))})),0===(null===(i=x)||void 0===i?void 0:i.length)&&o().createElement("div",{className:ue.filterEmptyState},o().createElement(s.mh4,null,o().createElement(s.n9L,{className:ue.filterEmptyStateTile},o().createElement("p",{className:ue.filterEmptyStateContent},f("noPrescriptionsToDisplay","No prescriptions to display")),o().createElement("p",{className:ue.filterEmptyStateHelper},f("checkFilters","Check the filters above"))))),(null===(c=x)||void 0===c?void 0:c.length)>0&&o().createElement("div",{style:{width:"100%"}},o().createElement(s.tlE,{page:m,pageSize:A,pageSizes:[10,20,30,40,50,100],totalItems:z,onChange:function(e){var n=e.page,t=e.pageSize;y(n),C((n-1)*t),$(t)}})))))};function Ae(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function $e(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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||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,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 ve=function(){var e,n,t,i=(0,l.useTranslation)().t,c=(0,a.useConfig)(),p=function(e){var n,t,i,r=(0,M.ZP)("".concat(a.fhirBaseUrl,"/Location?_tag=").concat(encodeURIComponent(e.locationBehavior.locationFilter.tag),"&_count=100"),a.openmrsFetch),o=r.data,s=r.error,l=null===(i=o)||void 0===i||null===(t=i.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,error:s,isLoading:!l&&!s}}(c),d=p.filterLocations,u=p.isLoading,f=$e((0,r.useState)(""),2),g=f[0],h=f[1],m=$e((0,r.useState)(""),2),y=m[0],b=m[1],A=$e((0,r.useState)(""),2),$=A[0],v=A[1],_=$e((0,r.useState)(0),2),C=_[0],w=_[1],x=[{key:"activePrescriptions",header:i("activePrescriptions","Active Prescriptions"),status:"ACTIVE"},{key:"allPrescriptions",header:i("allPrescriptions","All Prescriptions"),status:""}];return(0,r.useEffect)((function(){var e=setTimeout((function(){b(g)}),500);return function(){return clearTimeout(e)}}),[g]),o().createElement("main",{className:"omrs-main-content ".concat(ue.prescriptionListContainer)},o().createElement("section",{className:ue.prescriptionTabsContainer},o().createElement(s.mQc,{className:ue.prescriptionTabs,onChange:function(e){w(e.selectedIndex)},type:"container",tabContentClassName:ue.hiddenTabsContent},o().createElement(s.tdY,{"aria-label":i("tabList","Tab List"),contained:!0,className:ue.tabsContainer},x.map((function(e,n){return o().createElement(s.OK9,{title:i(e.key),key:n,id:"tab-"+n,className:ue.tab},i(e.header))}))),o().createElement("div",{className:ue.searchContainer},o().createElement(s.olm,{closeButtonLabelText:i("clearSearchInput","Clear search input"),defaultValue:g,placeholder:i("searchByPatientIdOrName","Search by patient ID or name"),labelText:i("searchByPatientIdOrName","Search by patient ID or name"),onChange:function(e){e.preventDefault(),h(e.target.value)},size:"md",className:ue.patientSearch}),(null===(n=c.locationBehavior)||void 0===n||null===(e=n.locationFilter)||void 0===e?void 0:e.enabled)&&!u&&(null===(t=d)||void 0===t?void 0:t.length)>1&&o().createElement(s.CtY,{id:"locationFilter",placeholder:i("filterByLocation","Filter by location"),items:u?[]:d,itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.name},onChange:function(e){var n,t=e.selectedItem;v(null===(n=t)||void 0===n?void 0:n.id)},className:ue.locationFilter})),o().createElement(s.nPR,null,x.map((function(e,n){return n===C?o().createElement(be,{location:$,searchTerm:y,status:e.status}):o().createElement(o().Fragment,null)}))))))};var _e=t(3967),Ce=t.n(_e),we=t(8897);function xe(){var e=(0,l.useTranslation)().t,n="".concat(window.spaBase,"/home"),t=(0,r.useMemo)((function(){var e=location.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[]);return o().createElement(a.ConfigurableLink,{className:Ce()("cds--side-nav__link",{"active-left-nav-link":t.match("dispensing")}),to:"".concat(n,"/dispensing")},e("dispensing","Dispensing"))}var ke=t(7116),Ee=t(9814),ze={};ze.styleTagTransform=w(),ze.setAttributes=$(),ze.insert=b().bind(null,"head"),ze.domAPI=m(),ze.insertStyleElement=_(),g()(Ee.Z,ze);const Be=Ee.Z&&Ee.Z.locals?Ee.Z.locals:void 0,Me=function(e){var n,t,i,r,c,p=e.medicationrequests,d=e.excludedPrescription,u=(0,l.useTranslation)().t,f=(0,a.useSession)().sessionLocation.display,g=null===(t=p[0])||void 0===t||null===(n=t.request)||void 0===n?void 0:n.subject;return o().createElement(s.mh4,{className:Be.printOutContainer},o().createElement(s.x4x,null,o().createElement(s.FxI,null,o().createElement(s.s1N,{head:!0},o().createElement(s.agF,{head:!0},o().createElement("br",null),o().createElement("br",null),o().createElement("p",{className:Be.printoutTitle},u("prescriptionInstructions","Prescription instructions")),g&&o().createElement("p",{className:Ce()(Be.patientName,Be.faintText)},(c=g.display).includes("(")?c.split("(")[0]:c),o().createElement("br",null),o().createElement("br",null))),null===(r=p)||void 0===r||null===(i=r.filter((function(e){return!d.includes(e.request.id)})))||void 0===i?void 0:i.map((function(e,n){var t,i,r,l,c,p,d,f,g,h,m,y,b,A,$,v,_,C,w,x,k=e.request,E=(0,P.EN)(k.dosageInstruction),z=(0,P.Un)(k),B=(0,P.B9)(k);return o().createElement("div",{key:n},E&&o().createElement(s.s1N,null,o().createElement(s.agF,null,o().createElement("p",null,o().createElement("strong",null,(0,P.SV)((0,P.mL)(k)))),o().createElement("br",null),o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("dose","Dose")),": ",o().createElement("span",null,null===(i=E)||void 0===i||null===(t=i.doseAndRate)||void 0===t?void 0:t.map((function(e,n){var t,a,i,r;return o().createElement("span",{key:n},null===(a=e)||void 0===a||null===(t=a.doseQuantity)||void 0===t?void 0:t.value," ",null===(r=e)||void 0===r||null===(i=r.doseQuantity)||void 0===i?void 0:i.unit)})))," ","— ",null===(l=E)||void 0===l||null===(r=l.route)||void 0===r?void 0:r.text," — ",null===(d=E)||void 0===d||null===(p=d.timing)||void 0===p||null===(c=p.code)||void 0===c?void 0:c.text,(null===(h=E)||void 0===h||null===(g=h.timing)||void 0===g||null===(f=g.repeat)||void 0===f?void 0:f.duration)?" ".concat(u("for","for")," ")+(null===(b=E)||void 0===b||null===(y=b.timing)||void 0===y||null===(m=y.repeat)||void 0===m?void 0:m.duration)+" "+(null===(v=E)||void 0===v||null===($=v.timing)||void 0===$||null===(A=$.repeat)||void 0===A?void 0:A.durationUnit):" ",z&&o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("quantity","Quantity")),": ",o().createElement("span",null,z.value," ",z.unit))),o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("datePrescribed","Date prescribed")),": "," ",o().createElement("span",null,(0,a.formatDate)((0,a.parseDate)(e.request.authoredOn)))),o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("refills","Refills")),": "," ",o().createElement("span",null,B||0===B?B:u("noRefills","No refills"))),(null===(_=E)||void 0===_?void 0:_.text)&&o().createElement("p",null,E.text),(null===(w=E)||void 0===w||null===(C=w.additionalInstruction)||void 0===C?void 0:C.length)>0&&o().createElement("p",null,null===(x=E)||void 0===x?void 0:x.additionalInstruction.map((function(e){return e.text})).join(", ")))))})),o().createElement("p",{className:Be.facilityName},f))))};function De(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const Te=function(e){var n,t=e.medicationRequests,a=e.onExcludedPrescriptionChange,i=e.excludedPrescription,c=(0,l.useTranslation)().t,p=(0,r.useCallback)((function(e,n){var t;a(e?i.filter((function(e){return e!==n})):(t=i,function(e){if(Array.isArray(e))return De(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,n){if(e){if("string"==typeof e)return De(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)?De(e,n):void 0}}(t)||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.")}()).concat([n]))}),[a,i]);return o().createElement("div",null,o().createElement("p",null,o().createElement("strong",null,c("selectPrescriptions","Check prescriptions to print"))),null===(n=t)||void 0===n?void 0:n.map((function(e){var n=e.request,t=(0,P.EN)(n.dosageInstruction);return o().createElement("div",{key:n.id},t&&o().createElement(s.XZJ,{id:n.id,labelText:(0,P.SV)((0,P.mL)(n)),checked:!i.includes(n.id),onChange:function(e,t){var a=t.checked;return p(a,n.id)}}))})))};function Se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Ne(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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Se(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)?Se(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.")}()}var Ie=t(3979),qe="@openmrs/esm-dispensing-app",je={featureName:"dispensing",moduleName:qe};function Pe(){(0,a.defineConfigSchema)(qe,i)}var Fe=(0,a.getSyncLifecycle)((function(){return o().createElement(a.ExtensionSlot,{name:"dispensing-dashboard-slot"})}),je),Le=(0,a.getSyncLifecycle)((function(){var e=(0,l.useTranslation)().t;return o().createElement(a.ConfigurableLink,{to:O.JB},e("dispensing","Dispensing"))}),je),Oe=(0,a.getSyncLifecycle)((function(){var e=(0,a.useConfig)(),n=(0,l.useTranslation)().t;return e.dispenseBehavior.restrictTotalQuantityDispensed&&e.dispenseBehavior.allowModifyingPrescription?o().createElement("div",{className:"omrs-main-content"},o().createElement(s.K0D,{title:n("dispensingAppError","Dispensing App Error"),subtitle:n("dispensingAppMisconfigurationMessage","Please contact your system administration: Misconfiguration - 'restrictTotalQuantityDispensed' cannot be enabled if 'allowModifyingPrescription' is enabled.")})):o().createElement("div",{className:"omrs-main-content"},o().createElement(z,null),o().createElement(ve,null),o().createElement(a.WorkspaceContainer,{key:"dispensing",contextKey:"dispensing"}))}),je),Re=(0,a.getSyncLifecycle)((function(){return o().createElement(we.VK,null,o().createElement(xe,null))}),je),Ue=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.closeable,u=(0,l.useTranslation)().t,f={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.Mg)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.zxk,{kind:"danger",onClick:function(){(0,a.launchWorkspace)("close-dispense-workspace",f)}},u("close","Close")):null}),je),Ge=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.dispensable,u=e.quantityRemaining,f=(0,l.useTranslation)().t,g={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.Mg)(i.request,r,p,!0),medicationRequestBundle:i,quantityRemaining:u,mode:"enter"};return d?o().createElement(s.zxk,{kind:"primary",onClick:function(){(0,a.launchWorkspace)("dispense-workspace",g)}},f("dispense","Dispense")):null}),je),Ze=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.pauseable,u=(0,l.useTranslation)().t,f={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.Mg)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.zxk,{kind:"secondary",onClick:function(){(0,a.launchWorkspace)("pause-dispense-workspace",f)}},u("pause","Pause")):null}),je),He=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(905),t.e(637)]).then(t.bind(t,1637))}),je),We=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(905),t.e(626)]).then(t.bind(t,7626))}),je),Xe=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(905),t.e(77)]).then(t.bind(t,8077))}),je),Je=(0,a.getSyncLifecycle)((function(e){var n,t=e.onClose,i=e.encounterUuid,c=(0,l.useTranslation)().t,p=(0,B.ud)(i),d=p.medicationRequestBundles,u=p.error,f=p.isLoading,g=Ne((0,r.useState)([]),2),h=g[0],m=g[1],y=Ne((0,r.useState)(null),2),b=y[0],A=y[1],$=(0,r.useRef)(null),v=(0,ke.useReactToPrint)({content:function(){return $.current},onBeforeGetContent:function(){A(null)},onPrintError:function(e){A(c("printError","An error occurred while printing. Please try again."))},copyStyles:!0});return o().createElement(o().Fragment,null,o().createElement(s.xBx,{closeModal:t,className:Be.title},c("printPrescriptions","Print prescriptions")),o().createElement(s.fef,null,f&&o().createElement(s.lSo,{status:"active",iconDescription:"Loading",description:c("loading","Loading prescriptions")+"...."}),u&&o().createElement(a.ErrorState,{error:u,headerTitle:c("error","Error")}),!f&&(null===(n=d)||void 0===n?void 0:n.length)>0&&o().createElement("div",{className:Be.printoutSelectorRow},o().createElement(Te,{medicationRequests:d,excludedPrescription:h,onExcludedPrescriptionChange:m}),o().createElement("div",{ref:$},o().createElement(Me,{medicationrequests:d,excludedPrescription:h}))),b&&o().createElement(s.K0D,{kind:"error",title:c("printErrorTitle","Print Error"),subtitle:b})),o().createElement(s.mzw,null,o().createElement(s.uVA,{className:Be.btnSet},o().createElement(s.zxk,{kind:"secondary",onClick:t,type:"button"},(0,a.getCoreTranslation)("cancel","Cancel")),o().createElement(s.zxk,{kind:"primary",onClick:v,type:"button",disabled:f},c("print","Print")))))}),je)},3439:(e,n,t)=>{"use strict";t.d(n,{CA:()=>u,LL:()=>f,Mg:()=>y,Ng:()=>p,VF:()=>l,Xf:()=>c,dW:()=>g,hg:()=>h,ko:()=>d});var a=t(2653),i=t.n(a),r=t(9820),o=t(1132);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n,t){var a=e.id?"".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e.id):"".concat(o.fhirBaseUrl,"/MedicationDispense"),i=e.id?"PUT":"POST";return e.status=n,e.whenPrepared=e.whenHandedOver,(0,o.openmrsFetch)(a,{method:i,signal:t.signal,headers:{"Content-Type":"application/json"},body:e})}function c(e){return(0,o.openmrsFetch)("".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e),{method:"DELETE"})}function p(){var e=(0,r.ZP)("".concat(o.restBaseUrl,"/orderentryconfig"),o.openmrsFetch),n=e.data,t=e.error,a=e.isValidating;return{orderConfigObject:n?n.data:null,error:t,isLoading:!n&&!t,isValidating:a}}function d(e){var n,t,a="custom:(uuid,person:(display)";return null===(t=(0,r.ZP)(e&&e.length>0?"".concat(o.restBaseUrl,"/provider?providerRoles=").concat(e.join(","),"&v=").concat(a,")"):"".concat(o.restBaseUrl,"/provider?v=").concat(a,")"),o.openmrsFetch).data)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.results.sort((function(e,n){var t,a;return null===(a=e.person)||void 0===a?void 0:a.display.localeCompare(null===(t=n.person)||void 0===t?void 0:t.display)}))}function u(e){return{reasonForPauseValueSet:m(e)}}function f(e){return{reasonForCloseValueSet:m(e)}}function g(e){return{substitutionTypeValueSet:m(e)}}function h(e){return{substitutionReasonValueSet:m(e)}}function m(e){var n=(0,r.ZP)("".concat(o.fhirBaseUrl,"/ValueSet/").concat(e),o.openmrsFetch).data;return n?n.data:null}function y(e,n,t,a){var r,o,l,c,p,d,u,f,g,h,m,y,b,A={resourceType:"MedicationDispense",status:null,authorizingPrescription:[{reference:"MedicationRequest/"+e.id,type:"MedicationRequest"}],medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept,subject:e.subject,performer:[{actor:{reference:(null===(r=n)||void 0===r?void 0:r.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:i()().format()};return a&&(y=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){s(e,n,t[n])}))}return e}({},A),b=null!=(b={quantity:{value:null===(c=e.dispenseRequest)||void 0===c||null===(l=c.quantity)||void 0===l?void 0:l.value,code:null===(d=e.dispenseRequest)||void 0===d||null===(p=d.quantity)||void 0===p?void 0:p.code,unit:null===(f=e.dispenseRequest)||void 0===f||null===(u=f.quantity)||void 0===u?void 0:u.unit,system:null===(h=e.dispenseRequest)||void 0===h||null===(g=h.quantity)||void 0===g?void 0:g.system},dosageInstruction:[{text:[e.dosageInstruction[0].text,(null===(m=e.dosageInstruction[0].additionalInstruction)||void 0===m?void 0:m.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}]}}})?b:{},Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(b)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(b)).forEach((function(e){Object.defineProperty(y,e,Object.getOwnPropertyDescriptor(b,e))})),A=y),A}},2796:(e,n,t)=>{"use strict";t.d(n,{QW:()=>g,XN:()=>h,j3:()=>d,jC:()=>f,ud:()=>u});var a=t(9820),i=t(1132),r=t(6139),o=t(2653),s=t.n(o),l=t(3252);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function p(e){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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 d(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,g=(0,a.ZP)("ACTIVE"===d?(0,r.PS)(o,t,s()(new Date).startOf("day").subtract(u,"day").toISOString(),l,c):(0,r.CW)(o,t,l,c),i.openmrsFetch,{refreshInterval:f}),h=g.data,m=g.error;if(h){var y,b=null===(y=h)||void 0===y?void 0:y.data.entry;if(b){var A=b.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})),$=b.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})),v=b.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(r.OO);n=A.map((function(e){var n=$.filter((function(n){return n.encounter.reference=="Encounter/"+e.id})),t=n.map((function(e){return"MedicationRequest/"+e.id})),a=v.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,a){var i,o,s,l,c,d,u,f,g,h,m,y,b,A;return{id:null===(i=e)||void 0===i?void 0:i.id,created:null===(s=e)||void 0===s||null===(o=s.period)||void 0===o?void 0:o.start,patient:{name:null===(c=e)||void 0===c||null===(l=c.subject)||void 0===l?void 0:l.display,uuid:null===(f=e)||void 0===f||null===(u=f.subject)||void 0===u||null===(d=u.reference)||void 0===d?void 0:d.split("/")[1]},drugs:p(new Set(n.map((function(e){return(0,r.SV)((0,r.mL)(e))})).sort((function(e,n){return e.localeCompare(n)})))).join("; "),lastDispenser:t&&(null===(g=t[0])||void 0===g?void 0:g.performer)&&(null===(m=t[0])||void 0===m||null===(h=m.performer[0])||void 0===h?void 0:h.actor.display),prescriber:p(new Set(n.map((function(e){return e.requester.display})))).join(", "),status:(0,r.Bx)(n,a),location:(null===(y=e)||void 0===y?void 0:y.location)?null===(A=e)||void 0===A||null===(b=A.location[0])||void 0===b?void 0:b.location.display:null}}(e,n,a,u)})),n.sort((function(e,n){return e.created<n.created?1:-1}))}else n=[]}return{prescriptionsTableRows:n,error:m,isLoading:!n&&!m,totalOrders:null===(e=h)||void 0===e?void 0:e.data.total}}function u(e){var n,t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=[],l=(0,a.ZP)((0,r.e2)(e),i.openmrsFetch,{refreshInterval:o}),c=l.data,p=l.error;if(c){var d,u,f=null===(d=c)||void 0===d?void 0:d.data.entry,g=null===(u=f)||void 0===u?void 0:u.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(g){var h,m,y;n=(0,i.parseDate)(null===(h=g[0])||void 0===h?void 0:h.period.start);var b=null===(m=f)||void 0===m?void 0:m.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})),A=null===(y=f)||void 0===y?void 0:y.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(r.OO);b.every((function(e){return s.push({request:e,dispenses:(0,r.WG)(e,A).sort(r.OO)})}))}}return t=!(s&&0!=s.length||p),{medicationRequestBundles:s,prescriptionDate:n,error:p,isLoading:t}}function f(e,n){var t,r,o,s=(0,a.ZP)("".concat(i.fhirBaseUrl,"/AllergyIntolerance?patient=").concat(e),i.openmrsFetch,{refreshInterval:n}),l=s.data,c=s.error,p=[];return l&&(null===(o=null===(r=l)||void 0===r?void 0:r.data.entry)||void 0===o||o.map((function(e){return p.push(e.resource)}))),{allergies:p,totalAllergies:null===(t=l)||void 0===t?void 0:t.data.total,error:c}}function g(e,n){e=e?e.startsWith("MedicationRequest")?e:"MedicationRequest/".concat(e):null;var t=(0,a.ZP)(e?"".concat(i.fhirBaseUrl,"/").concat(e):null,i.openmrsFetch,{refreshInterval:n}).data;return{medicationRequest:t?t.data:null}}function h(e,n){var t="".concat(i.fhirBaseUrl,"/MedicationRequest/").concat(e);return(0,i.openmrsFetch)(t,{method:"PATCH",headers:{"Content-Type":l.aZ},body:{extension:[{url:l.nj,valueCode:n}]}})}},3957:(e,n,t)=>{"use strict";var a,i,r,o;t.d(n,{I_:()=>i,Xh:()=>o,jm:()=>a,nn:()=>r}),function(e){e.on_hold="on-hold",e.completed="completed",e.declined="declined"}(a||(a={})),function(e){e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired"}(i||(i={})),function(e){e.on_hold="ON_HOLD",e.declined="DECLINED",e.completed="COMPLETED"}(r||(r={})),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"}(o||(o={}))},6139:(e,n,t)=>{"use strict";t.d(n,{A8:()=>F,B9:()=>j,Bx:()=>y,CW:()=>S,EN:()=>C,OO:()=>L,PS:()=>T,RZ:()=>h,Rc:()=>_,Rd:()=>g,SR:()=>b,SV:()=>k,Un:()=>I,WG:()=>A,e2:()=>D,g_:()=>m,hY:()=>B,i7:()=>P,mL:()=>E,qM:()=>z,r1:()=>v,sf:()=>f,uj:()=>x,vF:()=>M,vo:()=>w});var a=t(9820),i=t(3957),r=t(1132),o=t(3252),s=t(2653),l=t.n(s);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function p(e){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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 d="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 u(e,n){if(n&&b(e)<=0)return i.nn.completed;var t=z(e.dispenses);return t===i.jm.declined?i.nn.declined:t===i.jm.on_hold?i.nn.on_hold:null}function f(e,n){var t=g(e,n),a=w(e);if(t!==i.I_.active){if(t===i.I_.expired)return i.Xh.expired;if(t===i.I_.completed)return i.Xh.completed;if(t===i.I_.cancelled)return i.Xh.cancelled}return a===i.nn.declined?i.Xh.declined:a===i.nn.on_hold?i.Xh.on_hold:i.Xh.active}function g(e,n){var t,a;return e.status===i.I_.cancelled||e.status===i.I_.completed?e.status:(null===(a=e.dispenseRequest)||void 0===a||null===(t=a.validityPeriod)||void 0===t?void 0:t.start)&&l()(e.dispenseRequest.validityPeriod.start).isBefore(l()().startOf("day").subtract(n,"day"))?i.I_.expired:i.I_.active}function h(e,n,t){var a=p(n.dispenses);return a=e.id?a.map((function(n){return n.id===e.id?e:n})):[e].concat(p(a)),u({request:n.request,dispenses:a},t)}function m(e,n,t){return u({request:n.request,dispenses:n.dispenses.filter((function(n){return n.id!==e.id}))},t)}function y(e,n){var t=function(e,n){if(!e||0===e.length)return null;var t=e.map((function(e){return f(e,n)}));return t.includes(i.Xh.active)?i.Xh.active:t.includes(i.Xh.on_hold)?i.Xh.on_hold:t.includes(i.Xh.completed)?i.Xh.completed:t.includes(i.Xh.declined)?i.Xh.declined:t.includes(i.Xh.cancelled)?i.Xh.cancelled:t.includes(i.Xh.expired)?i.Xh.expired:null}(e,n);return null===t?null:t===i.Xh.active?"active":t===i.Xh.on_hold?"paused":t===i.Xh.completed?"completed":t===i.Xh.declined?"closed":t===i.Xh.expired?"expired":t===i.Xh.cancelled?"cancelled":null}function b(e){if(e){if(!q([e.request].concat(p(e.dispenses))))throw new Error(d);return i=j(n=e.request),((null===(a=n.dispenseRequest)||void 0===a||null===(t=a.quantity)||void 0===t?void 0:t.value)?n.dispenseRequest.quantity.value*(1+(i||0)):null)-function(e){if(e){if(!q(e))throw new Error(d);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,a,i;return 0}function A(e,n){var t;return null===(t=n)||void 0===t?void 0:t.filter((function(n){var t,a;return null===(a=n)||void 0===a||null===(t=a.authorizingPrescription)||void 0===t?void 0:t.some((function(n){return n.reference.endsWith(e.id)}))}))}function $(e){return e?e.find((function(e){return!("system"in e)||void 0===e.system})):null}function v(e){var n;return null===(n=$(e))||void 0===n?void 0:n.display}function _(e){var n;return null===(n=$(e))||void 0===n?void 0:n.code}function C(e){var n;return(null===(n=e)||void 0===n?void 0:n.length)>0?e[0]:null}function w(e){var n,t,a;return null===(a=e)||void 0===a||null===(t=a.extension)||void 0===t||null===(n=t.find((function(e){return e.url===o.nj})))||void 0===n?void 0:n.valueCode}function x(e){return"".concat(r.fhirBaseUrl,"/Medication?code=").concat(e)}function k(e){var n,t;return e.medicationReference?e.medicationReference.display:v(null===(n=e)||void 0===n?void 0:n.medicationCodeableConcept.coding)+": "+(null===(t=e)||void 0===t?void 0:t.medicationCodeableConcept.text)}function E(e){return{medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept}}function z(e){var n,t=null===(n=e)||void 0===n?void 0:n.sort(L);return t&&t.length>0?t[0].status:null}function B(e,n){return e.find((function(e){return e.dispenses.find((function(e){return e.id===n.id}))}))}function M(e){if(!e||!e.extension)return null;var n=e.extension.find((function(e){return e.url===o.Is}));if(!n||!n.extension)return null;var t=n.extension.find((function(e){return e.url===o.Is+"#drugName"}));return t?t.valueString:null}function D(e){return"".concat(r.fhirBaseUrl,"/").concat(o.Ph,"?encounter=").concat(e,"&_revinclude=MedicationDispense:prescription&_include=MedicationRequest:encounter")}function T(e,n,t,a,i){return N("".concat(r.fhirBaseUrl,"/").concat(o.HX,"&_getpagesoffset=").concat(e,"&_count=").concat(n,"&date=ge").concat(t,"&status=active"),a,i)}function S(e,n,t,a){return N("".concat(r.fhirBaseUrl,"/").concat(o.HX,"&_getpagesoffset=").concat(e,"&_count=").concat(n),t,a)}function N(e,n,t){return n&&(e="".concat(e,"&patientSearchTerm=").concat(n)),t&&(e="".concat(e,"&location=").concat(t)),e}function I(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 q(e){if(e){var n=e.map((function(e){var n;return null===(n=I(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 j(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.numberOfRepeatsAllowed:null}function P(e){var n;return(null===(n=e)||void 0===n?void 0:n.includes("/"))?e.split("/")[1]:e}function F(e){(0,a.JG)((function(n){return"string"==typeof n&&(n.startsWith("".concat(r.fhirBaseUrl,"/").concat(o.HX))||n.startsWith("".concat(r.fhirBaseUrl,"/").concat(o.Ph,"?encounter=").concat(e)))}))}function L(e,n){if(null===n.whenHandedOver)return 1;if(null===e.whenHandedOver)return-1;var t=(0,r.parseDate)(n.whenHandedOver).getTime()-(0,r.parseDate)(e.whenHandedOver).getTime();return 0!==t?t:e.id.localeCompare(n.id)}},1127:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__action-buttons__actionBtns___W\\+gb3{position:absolute;bottom:0;right:0;display:flex;gap:0}.-esm-dispensing__action-buttons__extensionSlot___H\\+\\+9z{display:flex;flex-direction:row-reverse;justify-content:space-between;height:100%;position:relative}","",{version:3,sources:["webpack://./src/components/action-buttons.scss"],names:[],mappings:"AAAA,sDACE,iBAAA,CACA,QAAA,CACA,OAAA,CACA,YAAA,CACA,KAAA,CAGF,0DACE,YAAA,CACA,0BAAA,CACA,6BAAA,CACA,WAAA,CACA,iBAAA",sourcesContent:[".actionBtns {\n position: absolute;\n bottom: 0;\n right: 0;\n display: flex;\n gap: 0;\n}\n\n.extensionSlot {\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n height: 100%;\n position: relative;\n}\n"],sourceRoot:""}]),o.locals={actionBtns:"-esm-dispensing__action-buttons__actionBtns___W+gb3",extensionSlot:"-esm-dispensing__action-buttons__extensionSlot___H++9z"};const s=o},8404:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},9736:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},8488:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},777:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__prescription-actions__actionsContainer___ZjLDP{flex-direction:row;display:flex;justify-content:space-between}.-esm-dispensing__prescription-actions__actionCluster___L5NEE{gap:.5rem;display:flex;flex-direction:row}","",{version:3,sources:["webpack://./src/prescriptions/prescription-actions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAIA,iEACE,kBAAA,CACA,YAAA,CACA,6BAAA,CAGF,8DACE,SCUW,CDTX,YAAA,CACA,kBAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n\n.actionsContainer {\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n}\n\n.actionCluster {\n gap: layout.$spacing-03;\n display: flex;\n flex-direction: row;\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:""}]),o.locals={actionsContainer:"-esm-dispensing__prescription-actions__actionsContainer___ZjLDP",actionCluster:"-esm-dispensing__prescription-actions__actionCluster___L5NEE"};const s=o},583:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},4511:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.locals={expandedTabsParentContainer:"-esm-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7",expandedTabsContainer:"-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K"};const s=o},9803:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}: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:""}]),o.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=o},9814:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__print-prescription__title___Q\\+FEc{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__print-prescription__btnSet___fKvQJ{width:100%}.-esm-dispensing__print-prescription__faintText___q-d\\+e{color:#8d8d8d;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__print-prescription__printOutContainer___5\\+hc\\+{background-color:#e0e0e0;padding:1rem;width:20rem}.-esm-dispensing__print-prescription__printoutTitle___0Vjmu{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);text-align:center;font-weight:bold}.-esm-dispensing__print-prescription__facilityName___Rb3tg{color:#8d8d8d;text-align:end;padding:1rem 0 1rem 0;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__print-prescription__printoutSelectorRow___l9J1Z{display:flex;flex-direction:row;gap:1rem;padding:0 1rem 0 1rem;justify-content:space-between}.-esm-dispensing__print-prescription__patientName___OGjRy{text-transform:capitalize;text-align:center}","",{version:3,sources:["webpack://./src/print-prescription/print-prescription.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/colors/index.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAIA,qDC81BI,+CAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD11BJ,qDACE,UAAA,CAGF,yDACE,aEiCQ,CDozBN,mDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,2DAAA,CDj1BJ,kEACE,wBEyBQ,CFxBR,YGYW,CHXX,WAAA,CAGF,4DC20BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDz0BF,iBAAA,CACA,gBAAA,CAGF,2DACE,aEgBQ,CFfR,cAAA,CACA,qBAAA,CCk0BE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD9zBJ,kEACE,YAAA,CACA,kBAAA,CACA,QGRW,CHSX,qBAAA,CACA,6BAAA,CAGF,0DACE,yBAAA,CACA,iBAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n\n.title {\n @include type.type-style('heading-02');\n}\n\n.btnSet {\n width: 100%;\n}\n\n.faintText {\n color: colors.$gray-50;\n @include type.type-style('heading-01');\n}\n\n.printOutContainer {\n background-color: colors.$gray-20;\n padding: layout.$spacing-05;\n width: 20rem;\n}\n\n.printoutTitle {\n @include type.type-style('heading-03');\n text-align: center;\n font-weight: bold;\n}\n\n.facilityName {\n color: colors.$gray-50;\n text-align: end;\n padding: layout.$spacing-05 0 layout.$spacing-05 0;\n @include type.type-style('label-01');\n}\n\n.printoutSelectorRow {\n display: flex;\n flex-direction: row;\n gap: layout.$spacing-05;\n padding: 0 layout.$spacing-05 0 layout.$spacing-05;\n justify-content: space-between;\n}\n\n.patientName {\n text-transform: capitalize;\n text-align: 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","// Code generated by @carbon/colors. 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$black: #000000 !default;\n$white: #ffffff !default;\n\n$black-100: #000000 !default;\n$blue-10: #edf5ff !default;\n$blue-20: #d0e2ff !default;\n$blue-30: #a6c8ff !default;\n$blue-40: #78a9ff !default;\n$blue-50: #4589ff !default;\n$blue-60: #0f62fe !default;\n$blue-70: #0043ce !default;\n$blue-80: #002d9c !default;\n$blue-90: #001d6c !default;\n$blue-100: #001141 !default;\n$cool-gray-10: #f2f4f8 !default;\n$cool-gray-20: #dde1e6 !default;\n$cool-gray-30: #c1c7cd !default;\n$cool-gray-40: #a2a9b0 !default;\n$cool-gray-50: #878d96 !default;\n$cool-gray-60: #697077 !default;\n$cool-gray-70: #4d5358 !default;\n$cool-gray-80: #343a3f !default;\n$cool-gray-90: #21272a !default;\n$cool-gray-100: #121619 !default;\n$cyan-10: #e5f6ff !default;\n$cyan-20: #bae6ff !default;\n$cyan-30: #82cfff !default;\n$cyan-40: #33b1ff !default;\n$cyan-50: #1192e8 !default;\n$cyan-60: #0072c3 !default;\n$cyan-70: #00539a !default;\n$cyan-80: #003a6d !default;\n$cyan-90: #012749 !default;\n$cyan-100: #061727 !default;\n$gray-10: #f4f4f4 !default;\n$gray-20: #e0e0e0 !default;\n$gray-30: #c6c6c6 !default;\n$gray-40: #a8a8a8 !default;\n$gray-50: #8d8d8d !default;\n$gray-60: #6f6f6f !default;\n$gray-70: #525252 !default;\n$gray-80: #393939 !default;\n$gray-90: #262626 !default;\n$gray-100: #161616 !default;\n$green-10: #defbe6 !default;\n$green-20: #a7f0ba !default;\n$green-30: #6fdc8c !default;\n$green-40: #42be65 !default;\n$green-50: #24a148 !default;\n$green-60: #198038 !default;\n$green-70: #0e6027 !default;\n$green-80: #044317 !default;\n$green-90: #022d0d !default;\n$green-100: #071908 !default;\n$magenta-10: #fff0f7 !default;\n$magenta-20: #ffd6e8 !default;\n$magenta-30: #ffafd2 !default;\n$magenta-40: #ff7eb6 !default;\n$magenta-50: #ee5396 !default;\n$magenta-60: #d02670 !default;\n$magenta-70: #9f1853 !default;\n$magenta-80: #740937 !default;\n$magenta-90: #510224 !default;\n$magenta-100: #2a0a18 !default;\n$orange-10: #fff2e8 !default;\n$orange-20: #ffd9be !default;\n$orange-30: #ffb784 !default;\n$orange-40: #ff832b !default;\n$orange-50: #eb6200 !default;\n$orange-60: #ba4e00 !default;\n$orange-70: #8a3800 !default;\n$orange-80: #5e2900 !default;\n$orange-90: #3e1a00 !default;\n$orange-100: #231000 !default;\n$purple-10: #f6f2ff !default;\n$purple-20: #e8daff !default;\n$purple-30: #d4bbff !default;\n$purple-40: #be95ff !default;\n$purple-50: #a56eff !default;\n$purple-60: #8a3ffc !default;\n$purple-70: #6929c4 !default;\n$purple-80: #491d8b !default;\n$purple-90: #31135e !default;\n$purple-100: #1c0f30 !default;\n$red-10: #fff1f1 !default;\n$red-20: #ffd7d9 !default;\n$red-30: #ffb3b8 !default;\n$red-40: #ff8389 !default;\n$red-50: #fa4d56 !default;\n$red-60: #da1e28 !default;\n$red-70: #a2191f !default;\n$red-80: #750e13 !default;\n$red-90: #520408 !default;\n$red-100: #2d0709 !default;\n$teal-10: #d9fbfb !default;\n$teal-20: #9ef0f0 !default;\n$teal-30: #3ddbd9 !default;\n$teal-40: #08bdba !default;\n$teal-50: #009d9a !default;\n$teal-60: #007d79 !default;\n$teal-70: #005d5d !default;\n$teal-80: #004144 !default;\n$teal-90: #022b30 !default;\n$teal-100: #081a1c !default;\n$warm-gray-10: #f7f3f2 !default;\n$warm-gray-20: #e5e0df !default;\n$warm-gray-30: #cac5c4 !default;\n$warm-gray-40: #ada8a8 !default;\n$warm-gray-50: #8f8b8b !default;\n$warm-gray-60: #726e6e !default;\n$warm-gray-70: #565151 !default;\n$warm-gray-80: #3c3838 !default;\n$warm-gray-90: #272525 !default;\n$warm-gray-100: #171414 !default;\n$white-0: #ffffff !default;\n$yellow-10: #fcf4d6 !default;\n$yellow-20: #fddc69 !default;\n$yellow-30: #f1c21b !default;\n$yellow-40: #d2a106 !default;\n$yellow-50: #b28600 !default;\n$yellow-60: #8e6a00 !default;\n$yellow-70: #684e00 !default;\n$yellow-80: #483700 !default;\n$yellow-90: #302400 !default;\n$yellow-100: #1c1500 !default;\n\n$white-hover: #e8e8e8 !default;\n$black-hover: #212121 !default;\n$blue-10-hover: #dbebff !default;\n$blue-20-hover: #b8d3ff !default;\n$blue-30-hover: #8ab6ff !default;\n$blue-40-hover: #5c97ff !default;\n$blue-50-hover: #1f70ff !default;\n$blue-60-hover: #0050e6 !default;\n$blue-70-hover: #0053ff !default;\n$blue-80-hover: #0039c7 !default;\n$blue-90-hover: #00258a !default;\n$blue-100-hover: #001f75 !default;\n$cool-gray-10-hover: #e4e9f1 !default;\n$cool-gray-20-hover: #cdd3da !default;\n$cool-gray-30-hover: #adb5bd !default;\n$cool-gray-40-hover: #9199a1 !default;\n$cool-gray-50-hover: #757b85 !default;\n$cool-gray-60-hover: #585e64 !default;\n$cool-gray-70-hover: #5d646a !default;\n$cool-gray-80-hover: #434a51 !default;\n$cool-gray-90-hover: #2b3236 !default;\n$cool-gray-100-hover: #222a2f !default;\n$cyan-10-hover: #cceeff !default;\n$cyan-20-hover: #99daff !default;\n$cyan-30-hover: #57beff !default;\n$cyan-40-hover: #059fff !default;\n$cyan-50-hover: #0f7ec8 !default;\n$cyan-60-hover: #005fa3 !default;\n$cyan-70-hover: #0066bd !default;\n$cyan-80-hover: #00498a !default;\n$cyan-90-hover: #013360 !default;\n$cyan-100-hover: #0b2947 !default;\n$gray-10-hover: #e8e8e8 !default;\n$gray-20-hover: #d1d1d1 !default;\n$gray-30-hover: #b5b5b5 !default;\n$gray-40-hover: #999999 !default;\n$gray-50-hover: #7a7a7a !default;\n$gray-60-hover: #5e5e5e !default;\n$gray-70-hover: #636363 !default;\n$gray-80-hover: #474747 !default;\n$gray-90-hover: #333333 !default;\n$gray-100-hover: #292929 !default;\n$green-10-hover: #b6f6c8 !default;\n$green-20-hover: #74e792 !default;\n$green-30-hover: #36ce5e !default;\n$green-40-hover: #3bab5a !default;\n$green-50-hover: #208e3f !default;\n$green-60-hover: #166f31 !default;\n$green-70-hover: #11742f !default;\n$green-80-hover: #05521c !default;\n$green-90-hover: #033b11 !default;\n$green-100-hover: #0d300f !default;\n$magenta-10-hover: #ffe0ef !default;\n$magenta-20-hover: #ffbdda !default;\n$magenta-30-hover: #ff94c3 !default;\n$magenta-40-hover: #ff57a0 !default;\n$magenta-50-hover: #e3176f !default;\n$magenta-60-hover: #b0215f !default;\n$magenta-70-hover: #bf1d63 !default;\n$magenta-80-hover: #8e0b43 !default;\n$magenta-90-hover: #68032e !default;\n$magenta-100-hover: #53142f !default;\n$orange-10-hover: #ffe2cc !default;\n$orange-20-hover: #ffc69e !default;\n$orange-30-hover: #ff9d57 !default;\n$orange-40-hover: #fa6800 !default;\n$orange-50-hover: #cc5500 !default;\n$orange-60-hover: #9e4200 !default;\n$orange-70-hover: #a84400 !default;\n$orange-80-hover: #753300 !default;\n$orange-90-hover: #522200 !default;\n$orange-100-hover: #421e00 !default;\n$purple-10-hover: #ede5ff !default;\n$purple-20-hover: #dcc7ff !default;\n$purple-30-hover: #c5a3ff !default;\n$purple-40-hover: #ae7aff !default;\n$purple-50-hover: #9352ff !default;\n$purple-60-hover: #7822fb !default;\n$purple-70-hover: #7c3dd6 !default;\n$purple-80-hover: #5b24ad !default;\n$purple-90-hover: #40197b !default;\n$purple-100-hover: #341c59 !default;\n$red-10-hover: #ffe0e0 !default;\n$red-20-hover: #ffc2c5 !default;\n$red-30-hover: #ff99a0 !default;\n$red-40-hover: #ff6168 !default;\n$red-50-hover: #ee0713 !default;\n$red-60-hover: #b81922 !default;\n$red-70-hover: #c21e25 !default;\n$red-80-hover: #921118 !default;\n$red-90-hover: #66050a !default;\n$red-100-hover: #540d11 !default;\n$teal-10-hover: #acf6f6 !default;\n$teal-20-hover: #57e5e5 !default;\n$teal-30-hover: #25cac8 !default;\n$teal-40-hover: #07aba9 !default;\n$teal-50-hover: #008a87 !default;\n$teal-60-hover: #006b68 !default;\n$teal-70-hover: #007070 !default;\n$teal-80-hover: #005357 !default;\n$teal-90-hover: #033940 !default;\n$teal-100-hover: #0f3034 !default;\n$warm-gray-10-hover: #f0e8e6 !default;\n$warm-gray-20-hover: #d8d0cf !default;\n$warm-gray-30-hover: #b9b3b1 !default;\n$warm-gray-40-hover: #9c9696 !default;\n$warm-gray-50-hover: #7f7b7b !default;\n$warm-gray-60-hover: #605d5d !default;\n$warm-gray-70-hover: #696363 !default;\n$warm-gray-80-hover: #4c4848 !default;\n$warm-gray-90-hover: #343232 !default;\n$warm-gray-100-hover: #2c2626 !default;\n$yellow-10-hover: #f8e6a0 !default;\n$yellow-20-hover: #fccd27 !default;\n$yellow-30-hover: #ddb00e !default;\n$yellow-40-hover: #bc9005 !default;\n$yellow-50-hover: #9e7700 !default;\n$yellow-60-hover: #755800 !default;\n$yellow-70-hover: #806000 !default;\n$yellow-80-hover: #5c4600 !default;\n$yellow-90-hover: #3d2e00 !default;\n$yellow-100-hover: #332600 !default;\n\n/// Colors from the IBM Design Language\n/// @access public\n/// @group @carbon/colors\n$colors: (\n black: (\n 100: #000000,\n ),\n blue: (\n 10: #edf5ff,\n 20: #d0e2ff,\n 30: #a6c8ff,\n 40: #78a9ff,\n 50: #4589ff,\n 60: #0f62fe,\n 70: #0043ce,\n 80: #002d9c,\n 90: #001d6c,\n 100: #001141,\n ),\n cool-gray: (\n 10: #f2f4f8,\n 20: #dde1e6,\n 30: #c1c7cd,\n 40: #a2a9b0,\n 50: #878d96,\n 60: #697077,\n 70: #4d5358,\n 80: #343a3f,\n 90: #21272a,\n 100: #121619,\n ),\n cyan: (\n 10: #e5f6ff,\n 20: #bae6ff,\n 30: #82cfff,\n 40: #33b1ff,\n 50: #1192e8,\n 60: #0072c3,\n 70: #00539a,\n 80: #003a6d,\n 90: #012749,\n 100: #061727,\n ),\n gray: (\n 10: #f4f4f4,\n 20: #e0e0e0,\n 30: #c6c6c6,\n 40: #a8a8a8,\n 50: #8d8d8d,\n 60: #6f6f6f,\n 70: #525252,\n 80: #393939,\n 90: #262626,\n 100: #161616,\n ),\n green: (\n 10: #defbe6,\n 20: #a7f0ba,\n 30: #6fdc8c,\n 40: #42be65,\n 50: #24a148,\n 60: #198038,\n 70: #0e6027,\n 80: #044317,\n 90: #022d0d,\n 100: #071908,\n ),\n magenta: (\n 10: #fff0f7,\n 20: #ffd6e8,\n 30: #ffafd2,\n 40: #ff7eb6,\n 50: #ee5396,\n 60: #d02670,\n 70: #9f1853,\n 80: #740937,\n 90: #510224,\n 100: #2a0a18,\n ),\n orange: (\n 10: #fff2e8,\n 20: #ffd9be,\n 30: #ffb784,\n 40: #ff832b,\n 50: #eb6200,\n 60: #ba4e00,\n 70: #8a3800,\n 80: #5e2900,\n 90: #3e1a00,\n 100: #231000,\n ),\n purple: (\n 10: #f6f2ff,\n 20: #e8daff,\n 30: #d4bbff,\n 40: #be95ff,\n 50: #a56eff,\n 60: #8a3ffc,\n 70: #6929c4,\n 80: #491d8b,\n 90: #31135e,\n 100: #1c0f30,\n ),\n red: (\n 10: #fff1f1,\n 20: #ffd7d9,\n 30: #ffb3b8,\n 40: #ff8389,\n 50: #fa4d56,\n 60: #da1e28,\n 70: #a2191f,\n 80: #750e13,\n 90: #520408,\n 100: #2d0709,\n ),\n teal: (\n 10: #d9fbfb,\n 20: #9ef0f0,\n 30: #3ddbd9,\n 40: #08bdba,\n 50: #009d9a,\n 60: #007d79,\n 70: #005d5d,\n 80: #004144,\n 90: #022b30,\n 100: #081a1c,\n ),\n warm-gray: (\n 10: #f7f3f2,\n 20: #e5e0df,\n 30: #cac5c4,\n 40: #ada8a8,\n 50: #8f8b8b,\n 60: #726e6e,\n 70: #565151,\n 80: #3c3838,\n 90: #272525,\n 100: #171414,\n ),\n white: (\n 0: #ffffff,\n ),\n yellow: (\n 10: #fcf4d6,\n 20: #fddc69,\n 30: #f1c21b,\n 40: #d2a106,\n 50: #b28600,\n 60: #8e6a00,\n 70: #684e00,\n 80: #483700,\n 90: #302400,\n 100: #1c1500,\n ),\n) !default;\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:""}]),o.locals={title:"-esm-dispensing__print-prescription__title___Q+FEc",btnSet:"-esm-dispensing__print-prescription__btnSet___fKvQJ",faintText:"-esm-dispensing__print-prescription__faintText___q-d+e",printOutContainer:"-esm-dispensing__print-prescription__printOutContainer___5+hc+",printoutTitle:"-esm-dispensing__print-prescription__printoutTitle___0Vjmu",facilityName:"-esm-dispensing__print-prescription__facilityName___Rb3tg",printoutSelectorRow:"-esm-dispensing__print-prescription__printoutSelectorRow___l9J1Z",patientName:"-esm-dispensing__print-prescription__patientName___OGjRy"};const s=o},3979:(e,n,t)=>{var a={"./am.json":[8788,788],"./ar.json":[4460,460],"./bn.json":[8323,323],"./de.json":[4272,272],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./he.json":[5833,833],"./hi.json":[5336,336],"./hi_IN.json":[5737,737],"./id.json":[9261,261],"./it.json":[5711,711],"./km.json":[7807,807],"./lg.json":[5962,962],"./ne.json":[3652,652],"./pt.json":[4378,378],"./pt_BR.json":[6566,566],"./qu.json":[899,899],"./ru_RU.json":[9579,579],"./si.json":[6727,727],"./sw.json":[236,236],"./sw_KE.json":[539,539],"./tr.json":[4705,705],"./tr_TR.json":[5673,673],"./uk.json":[5240,240],"./uz.json":[1901,901],"./vi.json":[744,744],"./zh.json":[8271,271],"./zh_CN.json":[1644,644]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[890],{3252:(e,n,t)=>{"use strict";t.d(n,{FI:()=>l,HX:()=>f,Is:()=>r,JB:()=>a,Ph:()=>g,UW:()=>p,YG:()=>s,aZ:()=>u,ar:()=>d,nj:()=>o,q:()=>c}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/dispensing"),i="http://fhir.openmrs.org/ext",r=i+"/medicine",o=i+"/medicationrequest/fullfillerstatus",s="Task: dispensing.create.dispense",l="Task: dispensing.create.dispense.allowSubstitutions",c="Task: dispensing.edit.dispense",p="Task: dispensing.delete.dispense",d="Task: dispensing.delete.dispense.ifCreator",u="application/merge-patch+json",f="Encounter?_query=encountersWithMedicationRequests",g="MedicationRequest"},6973:(e,n,t)=>{"use strict";t.r(n),t.d(n,{closeActionButton:()=>Ue,closeDispenseWorkspace:()=>He,dispenseActionButton:()=>Ge,dispenseWorkspace:()=>We,dispensing:()=>Pe,dispensingDashboard:()=>Oe,dispensingDashboardLink:()=>Re,dispensingLink:()=>Fe,importTranslation:()=>Ie,pauseActionButton:()=>Ze,pauseDispenseWorkspace:()=>Je,printPrescriptionPreviewModal:()=>Qe,startupApp:()=>Le});var a=t(1132),i={appName:{_type:a.Type.String,_default:"Pharmacy"},actionButtons:{pauseButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Pause button in the button action bar",_default:!0}},closeButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Close button in the button action bar",_default:!0}}},dispenseBehavior:{allowModifyingPrescription:{_type:a.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:a.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:a.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:a.Type.Number,_description:"Medication Requests older that this will be considered expired",_default:90},locationBehavior:{locationColumn:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Location column in the main prescriptions table showing ordering location",_default:!1}},locationFilter:{enabled:{_type:a.Type.Boolean,_description:"Enable/Disable Location filter on main prescriptions page",_default:!1},tag:{_type:a.Type.String,_description:"Name of the location tag to use when fetching locations to populate filter",_default:"Login Location"}}},refreshInterval:{_type:a.Type.Number,_description:"The interval, in milliseconds, to query the backend for new/changed data",_default:6e4},valueSets:{reasonForPause:{uuid:{_type:a.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:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},reasonForClose:{uuid:{_type:a.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:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},substitutionReason:{uuid:{_type:a.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:"2de6e1be-f2dd-4ba0-9516-8a611aa2af9b"}},substitutionType:{uuid:{_type:a.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:a.Type.Boolean,_description:"Enable or disable stock deduction during the dispensing process. Requires the stock management module to be installed and configured.",_default:!1}},r=t(1672),o=t.n(r),s=t(1352),l=t(3397),c=t(3439);var p=t(7913),d=t(9658);const u=function(){return o().createElement("svg",{width:"72",height:"72",viewBox:"0 0 62 58",xmlns:"http://www.w3.org/2000/svg"},o().createElement("defs",null,o().createElement("path",{id:"whv9q6f4ta",d:"M0 0h62v30.508H0z"}),o().createElement("path",{id:"hp71ojgcnc",d:"M0 0h24.603v26.571H0z"})),o().createElement("g",{fill:"none"},o().createElement("g",{opacity:".193",transform:"matrix(-1 0 0 1 62 26.571)"},o().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)"})),o().createElement("g",{opacity:".396",transform:"matrix(-1 0 0 1 60.032 0)"},o().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 f=t(3379),g=t.n(f),h=t(7795),m=t.n(h),y=t(569),b=t.n(y),A=t(3565),$=t.n(A),v=t(9216),_=t.n(v),C=t(4589),w=t.n(C),x=t(8488),k={};k.styleTagTransform=w(),k.setAttributes=$(),k.insert=b().bind(null,"head"),k.domAPI=m(),k.insertStyleElement=_(),g()(x.Z,k);const E=x.Z&&x.Z.locals?x.Z.locals:void 0;var z=function(){var e,n,t=(0,l.useTranslation)().t,i=(0,a.useSession)(),r=(0,a.useConfig)(),s=null===(n=i)||void 0===n||null===(e=n.sessionLocation)||void 0===e?void 0:e.display;return o().createElement("div",{className:E.header},o().createElement("div",{className:E.leftJustifiedItems},o().createElement(u,null),o().createElement("div",{className:E.pageLabels},o().createElement("p",null,t("appName",r.appName)),o().createElement("p",{className:E.pageName},t("home","Home")))),o().createElement("div",{className:E.rightJustifiedItems},o().createElement("div",{className:E.dateAndLocation},o().createElement(p.Ye,{size:16}),o().createElement("span",{className:E.value},s),o().createElement("span",{className:E.middot},"·"),o().createElement(d.f,{size:16}),o().createElement("span",{className:E.value},(0,a.formatDate)(new Date,{mode:"standard"})))))},B=t(2796),M=t(9820);const D=function(e){var n=e.patient,t=n.name,i=function(e){var n,t,i="".concat(a.restBaseUrl,"/person/").concat(e,"?v=").concat("custom:(age)"),r=(0,M.ZP)(i,a.openmrsFetch),o=r.data,s=r.error,l=r.isLoading,c=r.mutate;return{age:null===(t=o)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.age,error:s,isLoading:l,mutate:c}}(n.uuid),r=i.error,s=i.isLoading,c=i.age,p=(0,(0,l.useTranslation)().t)("age","Age");if(s||r)return o().createElement(o().Fragment,null,t);var d=function(e,n){var t=e.lastIndexOf(")");return-1!==t?e.slice(0,t)+", ".concat(p,": ").concat(n)+e.slice(t):"".concat(e," ").concat(p,": ").concat(n)}(t,c);return o().createElement(o().Fragment,null,d)};var T=t(9736),N={};N.styleTagTransform=w(),N.setAttributes=$(),N.insert=b().bind(null,"head"),N.domAPI=m(),N.insertStyleElement=_(),g()(T.Z,N);const S=T.Z&&T.Z.locals?T.Z.locals:void 0;var I=t(8404),q={};q.styleTagTransform=w(),q.setAttributes=$(),q.insert=b().bind(null,"head"),q.domAPI=m(),q.insertStyleElement=_(),g()(I.Z,q);const j=I.Z&&I.Z.locals?I.Z.locals:void 0;var L=t(6139);const P=function(e){var n,t,a,i,r,s,c,p,d,u,f,g,h,m,y,b,A,$,v,_=e.medicationEvent,C=e.status,w=void 0===C?null:C,x=(0,l.useTranslation)().t,k=(0,L.EN)(_.dosageInstruction),E=(0,L.Un)(_),z=(0,L.B9)(_);return o().createElement("div",null,o().createElement("p",{className:j.medicationName},w,o().createElement("strong",null,(0,L.SV)((0,L.mL)(_)))),k&&o().createElement("p",{className:j.bodyLong01},o().createElement("span",{className:j.label01},x("dose","Dose").toUpperCase())," ",o().createElement("span",{className:j.dosage},k.doseAndRate&&(null===(n=k)||void 0===n?void 0:n.doseAndRate.map((function(e,n){var t,a,i,r;return o().createElement("span",{key:n},null===(a=e)||void 0===a||null===(t=a.doseQuantity)||void 0===t?void 0:t.value," ",null===(r=e)||void 0===r||null===(i=r.doseQuantity)||void 0===i?void 0:i.unit)}))))," ","— ",null===(a=k)||void 0===a||null===(t=a.route)||void 0===t?void 0:t.text," — ",null===(s=k)||void 0===s||null===(r=s.timing)||void 0===r||null===(i=r.code)||void 0===i?void 0:i.text," ",(null===(d=k)||void 0===d||null===(p=d.timing)||void 0===p||null===(c=p.repeat)||void 0===c?void 0:c.duration)?"for "+(null===(g=k)||void 0===g||null===(f=g.timing)||void 0===f||null===(u=f.repeat)||void 0===u?void 0:u.duration)+" "+(null===(y=k)||void 0===y||null===(m=y.timing)||void 0===m||null===(h=m.repeat)||void 0===h?void 0:h.durationUnit):" "),E&&o().createElement("p",{className:j.bodyLong01},o().createElement("span",{className:j.label01},x("quantity","Quantity").toUpperCase())," ",o().createElement("span",{className:j.quantity},E.value," ",E.unit)),(z||0===z)&&o().createElement("p",{className:j.bodyLong01},o().createElement("span",{className:j.label01},x("refills","Refills").toUpperCase())," ",o().createElement("span",{className:j.refills},z)),(null===(b=k)||void 0===b?void 0:b.text)&&o().createElement("p",{className:j.bodyLong01},k.text),(null===($=k)||void 0===$||null===(A=$.additionalInstruction)||void 0===A?void 0:A.length)>0&&o().createElement("p",{className:j.bodyLong01},null===(v=k)||void 0===v?void 0:v.additionalInstruction[0].text))};var F=t(3957),O=t(3252);function R(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const U=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,r=(0,a.useSession)(),p=(0,a.useConfig)(),d=(0,B.ud)(n,p.refreshInterval),u=d.medicationRequestBundles,f=d.prescriptionDate,g=d.error,h=d.isLoading,m=function(e){return e.status===F.jm.completed?o().createElement(s.Vp9,{type:"gray"},i("dispensed","Dispensed")):e.status===F.jm.on_hold?o().createElement(s.Vp9,{type:"red"},i("paused","Paused")):e.status===F.jm.declined?o().createElement(s.Vp9,{type:"red"},i("closed","Closed")):null},y=function(e,t){var a=(0,L.vo)(t.request),i=(0,L.g_)(e,t,p.dispenseBehavior.restrictTotalQuantityDispensed);a!==i&&(0,B.XN)((0,L.i7)(e.authorizingPrescription[0].reference),i).then((function(){(0,L.A8)(n)})),(0,c.Xf)(e.id).then((function(){(0,L.A8)(n)}))};return o().createElement("div",{className:S.historyAndCommentsContainer},h&&o().createElement(s.gqd,{role:"progressbar"}),g&&o().createElement("p",null,i("error","Error")),u&&u.flatMap((function(e){return e.dispenses})).sort(L.OO).map((function(e){var l,c,d;return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.performer&&(null===(c=e.performer[0])||void 0===c||null===(l=c.actor)||void 0===l?void 0:l.display)," ",(d=e).status===F.jm.completed?i("dispensedMedication","dispensed medication"):d.status===F.jm.on_hold?i("pausedDispense","paused dispense"):d.status===F.jm.declined?i("closedDispense","closed dispense"):null," -"," ",(0,a.formatDatetime)((0,a.parseDate)(e.whenHandedOver))),o().createElement(s.n9L,{className:S.dispenseTile,"data-floating-menu-container":!0},function(e,l){var c=function(e){var n;return(null===(n=e)||void 0===n?void 0:n.user)&&(0,a.userHasAccess)(O.q,e.user)}(r),d=function(e,n){var t;if(null===(t=e)||void 0===t?void 0:t.user){var i,r;if((0,a.userHasAccess)(O.UW,e.user))return!0;if((0,a.userHasAccess)(O.ar,e.user)&&(null===(i=e.currentProvider)||void 0===i?void 0:i.uuid)&&null!==(null===(r=n.performer)||void 0===r?void 0:r.find((function(n){var t,a,i;return(null===(i=n)||void 0===i||null===(a=i.actor)||void 0===a||null===(t=a.reference)||void 0===t?void 0:t.length)>1&&n.actor.reference.split("/")[1]===e.currentProvider.uuid}))))return!0}return!1}(r,e);return c||d?o().createElement(s.PQB,{ariaLabel:i("medicationDispenseActionMenu","Medication Dispense Action Menu"),flipped:!0,className:S.medicationEventActionMenu},c&&o().createElement(s.laM,{onClick:function(){var r=function(e,a){if(e.status===F.jm.completed){var i,r=null;return p.dispenseBehavior.restrictTotalQuantityDispensed&&(r=(0,L.SR)(a)+((null===(i=e)||void 0===i?void 0:i.quantity)?e.quantity.value:0)),{workspaceName:"dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,medicationRequestBundle:a,quantityRemaining:r,mode:"edit"}}}return e.status===F.jm.on_hold?{workspaceName:"pause-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:e.status===F.jm.declined?{workspaceName:"close-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:void 0}(e,l),o=r.workspaceName,s=r.props,c=function(e){return e.status===F.jm.completed?i("editDispenseRecord","Edit Dispense Record"):e.status===F.jm.on_hold?i("editPauseRecord","Edit Pause Record"):e.status===F.jm.declined?i("editCloseeRecord","Edit Close Record"):void 0}(e);(0,a.launchWorkspace)(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){R(e,n,t[n])}))}return e}({workspaceTitle:c},s))},itemText:i("editRecord","Edit record")}),d&&o().createElement(s.laM,{onClick:function(){y(e,l)},itemText:i("delete","Delete")})):null}(e,(0,L.hY)(u,e)),o().createElement(P,{medicationEvent:e,status:m(e)})))})),u&&u.flatMap((function(e){return e.request})).map((function(e){return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.requester.display," ",i("orderedMedication ","ordered medication")," -"," ",(0,a.formatDatetime)(f)),o().createElement(s.n9L,{className:S.requestTile},o().createElement(P,{medicationEvent:e,status:o().createElement(s.Vp9,{type:"green"},i("ordered","Ordered"))})))})))};var G=t(4511),Z={};Z.styleTagTransform=w(),Z.setAttributes=$(),Z.insert=b().bind(null,"head"),Z.domAPI=m(),Z.insertStyleElement=_(),g()(G.Z,Z);const H=G.Z&&G.Z.locals?G.Z.locals:void 0;var W=t(4881),J=t(1127),Q={};Q.styleTagTransform=w(),Q.setAttributes=$(),Q.insert=b().bind(null,"head"),Q.domAPI=m(),Q.insertStyleElement=_(),g()(J.Z,Q);const X=J.Z&&J.Z.locals?J.Z.locals:void 0,K=function(e){var n=e.medicationRequestBundle,t=e.patientUuid,i=e.encounterUuid,r=((0,l.useTranslation)().t,(0,a.useConfig)()),s=(0,a.useSession)(),p=(0,c.ko)(r.dispenserProviderRoles),d=(0,L.qM)(n.dispenses),u=(0,L.Rd)(n.request,r.medicationRequestExpirationPeriodInDays),f=u===F.I_.active&&d!==F.jm.declined,g=r.actionButtons.pauseButton.enabled&&u===F.I_.active&&d!==F.jm.on_hold&&d!==F.jm.declined,h=r.actionButtons.closeButton.enabled&&u===F.I_.active&&d!==F.jm.declined,m=null;r.dispenseBehavior.restrictTotalQuantityDispensed&&(m=(0,L.SR)(n));var y={dispensable:f,pauseable:g,closeable:h,quantityRemaining:m,patientUuid:t,encounterUuid:i,medicationRequestBundle:n,session:s,providers:p};return o().createElement("div",{className:X.actionBtns},o().createElement(a.ExtensionSlot,{className:X.extensionSlot,name:"prescription-action-button-slot",state:y}))};var V=t(9675);const Y=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,c=(0,r.useCallback)((function(){var e=(0,a.showModal)("prescription-print-preview-modal",{onClose:function(){return e()},encounterUuid:n,patientUuid:t})}),[n,t]);return o().createElement(s.zxk,{renderIcon:V.FB,iconDescription:i("print","Print"),onClick:c,kind:"ghost"},i("printPrescriptions","Print prescriptions"))};var ee=t(777),ne={};ne.styleTagTransform=w(),ne.setAttributes=$(),ne.insert=b().bind(null,"head"),ne.domAPI=m(),ne.insertStyleElement=_(),g()(ee.Z,ne);const te=ee.Z&&ee.Z.locals?ee.Z.locals:void 0,ae=function(e){var n=e.encounterUuid,t=e.patientUuid;return o().createElement(s.mh4,{className:te.actionsContainer},o().createElement("div",{className:te.actionCluster},o().createElement(Y,{encounterUuid:n,patientUuid:t})),o().createElement("div",{className:te.actionCluster}))};var ie=t(583),re={};re.styleTagTransform=w(),re.setAttributes=$(),re.insert=b().bind(null,"head"),re.domAPI=m(),re.insertStyleElement=_(),g()(ie.Z,re);const oe=ie.Z&&ie.Z.locals?ie.Z.locals:void 0;function se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const le=function(e){var n,t,i=e.encounterUuid,c=e.patientUuid,p=(0,l.useTranslation)().t,d=(0,a.useConfig)(),u=(n=(0,r.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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(n,t)||function(e,n){if(e){if("string"==typeof e)return se(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)?se(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.")}()),f=u[0],g=u[1],h=(0,B.jC)(c,d.refreshInterval),m=h.allergies,y=h.totalAllergies,b=(0,B.ud)(i,d.refreshInterval),A=b.medicationRequestBundles,$=b.error,v=b.isLoading;return(0,r.useEffect)((function(){"number"==typeof y&&g(!1)}),[y]),o().createElement("div",{className:oe.prescriptionContainer},f&&o().createElement(s.gqd,{role:"progressbar"}),!f&&o().createElement(s.n9L,{className:oe.allergiesTile},o().createElement("div",{className:oe.allergiesContent},o().createElement("div",null,o().createElement(W.Rr,{size:24,className:oe.allergiesIcon}),o().createElement("p",null,y>0&&o().createElement("span",null,o().createElement("span",{style:{fontWeight:"bold"}},p("allergiesCount","{{ count }} allergies",{count:y}))," ",function(e){return e.map((function(e){return(0,L.r1)(e.code.coding)})).join(", ")}(m)),0===y&&p("noAllergyDetailsFound","No allergy details found"))))),o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},p("prescribed","Prescribed")),v&&o().createElement(s.gqd,{role:"progressbar"}),$&&o().createElement("p",null,p("error","Error")),A&&A.map((function(e){return o().createElement(s.n9L,{className:oe.prescriptionTile},o().createElement(a.UserHasAccess,{privilege:O.YG},o().createElement(K,{patientUuid:c,encounterUuid:i,medicationRequestBundle:e})),o().createElement(P,{key:e.request.id,medicationEvent:e.request,status:(n=e.request,t=(0,L.sf)(n,d.medicationRequestExpirationPeriodInDays),t===F.Xh.cancelled?o().createElement(s.Vp9,{type:"red"},p("cancelled","Cancelled")):t===F.Xh.completed?o().createElement(s.Vp9,{type:"green"},p("completed","Completed")):t===F.Xh.expired?o().createElement(s.Vp9,{type:"red"},p("expired","Expired")):t===F.Xh.declined?o().createElement(s.Vp9,{type:"red"},p("closed","Closed")):t===F.Xh.on_hold?o().createElement(s.Vp9,{type:"red"},p("paused","Paused")):null)}));var n,t})),o().createElement(ae,{encounterUuid:i,patientUuid:c}))},ce=function(e){var n=e.encounterUuid,t=e.patientUuid,a=(e.status,(0,l.useTranslation)().t),i=[{name:a("prescriptionDetails","Prescription details"),component:o().createElement(le,{encounterUuid:n,patientUuid:t})},{name:a("historyComments","History and comments"),component:o().createElement(U,{encounterUuid:n,patientUuid:t})}];return o().createElement("div",{className:H.expandedTabsParentContainer},o().createElement("div",{className:H.expandedTabsContainer},o().createElement(s.mQc,null,o().createElement(s.tdY,{"aria-label":a("tabList","Tab List")},i.map((function(e,n){return o().createElement(s.OK9,{key:n,className:H.orderTabs},e.name)}))),o().createElement(s.nPR,null,i.map((function(e,n){return o().createElement(s.x45,{key:n},e.component)}))))))};var pe=t(9803),de={};de.styleTagTransform=w(),de.setAttributes=$(),de.insert=b().bind(null,"head"),de.domAPI=m(),de.insertStyleElement=_(),g()(pe.Z,de);const ue=pe.Z&&pe.Z.locals?pe.Z.locals:void 0;function fe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ge(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function he(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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||ye(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 me(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ye(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 ye(e,n){if(e){if("string"==typeof e)return fe(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)?fe(e,n):void 0}}const be=function(e){var n,t,i,c,p=e.searchTerm,d=e.location,u=e.status,f=(0,l.useTranslation)().t,g=(0,a.useConfig)(),h=he((0,r.useState)(1),2),m=h[0],y=h[1],b=he((0,r.useState)(10),2),A=b[0],$=b[1],v=he((0,r.useState)(0),2),_=v[0],C=v[1],w=(0,B.j3)(A,_,p,d,u,g.medicationRequestExpirationPeriodInDays,g.refreshInterval),x=w.prescriptionsTableRows,k=w.error,E=w.isLoading,z=w.totalOrders,M=[{header:f("created","Created"),key:"created"},{header:f("patientName","Patient name"),key:"patient"},{header:f("prescriber","Prescriber"),key:"prescriber"},{header:f("drugs","Drugs"),key:"drugs"},{header:f("lastDispenser","Last dispenser"),key:"lastDispenser"},{header:f("status","Status"),key:"status"}];return(null===(t=g.locationBehavior)||void 0===t||null===(n=t.locationColumn)||void 0===n?void 0:n.enabled)&&(M=me(M.slice(0,3)).concat([{header:f("location","Location"),key:"location"}],me(M.slice(3)))),(0,r.useEffect)((function(){y(1),C(0)}),[p]),o().createElement(s.x45,null,o().createElement("div",{className:ue.patientListTableContainer},E&&o().createElement(s.gqd,{role:"progressbar"}),k&&o().createElement("p",null,"Error"),x&&o().createElement(o().Fragment,null,o().createElement(s.wQF,{rows:x,headers:M,isSortable:!0},(function(e){var n,t,i=e.rows,r=e.headers,l=e.getExpandHeaderProps,c=e.getHeaderProps,p=e.getRowProps,d=e.getTableProps;return o().createElement(s.xJi,null,o().createElement(s.iA_,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){ge(e,n,t[n])}))}return e}({},d()),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 a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n),o().createElement(s.ssF,null,o().createElement(s.SCH,null,o().createElement(s.MOD,l()),r.map((function(e){return o().createElement(s.xDH,c({header:e}),e.header)})))),o().createElement(s.RMI,null,i.map((function(e){return o().createElement(o().Fragment,{key:e.id},o().createElement(s.RcE,p({row:e}),e.cells.map((function(e){return o().createElement(s.pj1,{key:e.id},e.id.endsWith("created")?(0,a.formatDatetime)((0,a.parseDate)(e.value)):e.id.endsWith("patient")?o().createElement(D,{patient:e.value}):e.id.endsWith("status")?f(e.value):e.value)}))),e.isExpanded?o().createElement(s.WdL,{colSpan:r.length+1},o().createElement(ce,{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})):o().createElement(s.WdL,{className:ue.hiddenRow,colSpan:r.length+2}))})))))})),0===(null===(i=x)||void 0===i?void 0:i.length)&&o().createElement("div",{className:ue.filterEmptyState},o().createElement(s.mh4,null,o().createElement(s.n9L,{className:ue.filterEmptyStateTile},o().createElement("p",{className:ue.filterEmptyStateContent},f("noPrescriptionsToDisplay","No prescriptions to display")),o().createElement("p",{className:ue.filterEmptyStateHelper},f("checkFilters","Check the filters above"))))),(null===(c=x)||void 0===c?void 0:c.length)>0&&o().createElement("div",{style:{width:"100%"}},o().createElement(s.tlE,{page:m,pageSize:A,pageSizes:[10,20,30,40,50,100],totalItems:z,onChange:function(e){var n=e.page,t=e.pageSize;y(n),C((n-1)*t),$(t)}})))))};function Ae(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function $e(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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||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,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 ve=function(){var e,n,t,i=(0,l.useTranslation)().t,c=(0,a.useConfig)(),p=function(e){var n,t,i,r=(0,M.ZP)("".concat(a.fhirBaseUrl,"/Location?_tag=").concat(encodeURIComponent(e.locationBehavior.locationFilter.tag),"&_count=100"),a.openmrsFetch),o=r.data,s=r.error,l=null===(i=o)||void 0===i||null===(t=i.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,error:s,isLoading:!l&&!s}}(c),d=p.filterLocations,u=p.isLoading,f=$e((0,r.useState)(""),2),g=f[0],h=f[1],m=$e((0,r.useState)(""),2),y=m[0],b=m[1],A=$e((0,r.useState)(""),2),$=A[0],v=A[1],_=$e((0,r.useState)(0),2),C=_[0],w=_[1],x=[{key:"activePrescriptions",header:i("activePrescriptions","Active Prescriptions"),status:"ACTIVE"},{key:"allPrescriptions",header:i("allPrescriptions","All Prescriptions"),status:""}];return(0,r.useEffect)((function(){var e=setTimeout((function(){b(g)}),500);return function(){return clearTimeout(e)}}),[g]),o().createElement("main",{className:"omrs-main-content ".concat(ue.prescriptionListContainer)},o().createElement("section",{className:ue.prescriptionTabsContainer},o().createElement(s.mQc,{className:ue.prescriptionTabs,onChange:function(e){w(e.selectedIndex)},type:"container",tabContentClassName:ue.hiddenTabsContent},o().createElement(s.tdY,{"aria-label":i("tabList","Tab List"),contained:!0,className:ue.tabsContainer},x.map((function(e,n){return o().createElement(s.OK9,{title:i(e.key),key:n,id:"tab-"+n,className:ue.tab},i(e.header))}))),o().createElement("div",{className:ue.searchContainer},o().createElement(s.olm,{closeButtonLabelText:i("clearSearchInput","Clear search input"),defaultValue:g,placeholder:i("searchByPatientIdOrName","Search by patient ID or name"),labelText:i("searchByPatientIdOrName","Search by patient ID or name"),onChange:function(e){e.preventDefault(),h(e.target.value)},size:"md",className:ue.patientSearch}),(null===(n=c.locationBehavior)||void 0===n||null===(e=n.locationFilter)||void 0===e?void 0:e.enabled)&&!u&&(null===(t=d)||void 0===t?void 0:t.length)>1&&o().createElement(s.CtY,{id:"locationFilter",placeholder:i("filterByLocation","Filter by location"),items:u?[]:d,itemToString:function(e){var n;return null===(n=e)||void 0===n?void 0:n.name},onChange:function(e){var n,t=e.selectedItem;v(null===(n=t)||void 0===n?void 0:n.id)},className:ue.locationFilter})),o().createElement(s.nPR,null,x.map((function(e,n){return n===C?o().createElement(be,{location:$,searchTerm:y,status:e.status}):o().createElement(o().Fragment,null)}))))))};var _e=t(3967),Ce=t.n(_e),we=t(8897);function xe(){var e=(0,l.useTranslation)().t,n="".concat(window.spaBase,"/home"),t=(0,r.useMemo)((function(){var e=location.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[]);return o().createElement(a.ConfigurableLink,{className:Ce()("cds--side-nav__link",{"active-left-nav-link":t.match("dispensing")}),to:"".concat(n,"/dispensing")},e("dispensing","Dispensing"))}var ke=t(7116),Ee=t(9814),ze={};ze.styleTagTransform=w(),ze.setAttributes=$(),ze.insert=b().bind(null,"head"),ze.domAPI=m(),ze.insertStyleElement=_(),g()(Ee.Z,ze);const Be=Ee.Z&&Ee.Z.locals?Ee.Z.locals:void 0,Me=function(e){var n,t,i,r,c,p=e.medicationrequests,d=e.excludedPrescription,u=(0,l.useTranslation)().t,f=(0,a.useSession)().sessionLocation.display,g=null===(t=p[0])||void 0===t||null===(n=t.request)||void 0===n?void 0:n.subject;return o().createElement(s.mh4,{className:Be.printOutContainer},o().createElement(s.x4x,null,o().createElement(s.FxI,null,o().createElement(s.s1N,{head:!0},o().createElement(s.agF,{head:!0},o().createElement("br",null),o().createElement("br",null),o().createElement("p",{className:Be.printoutTitle},u("prescriptionInstructions","Prescription instructions")),g&&o().createElement("p",{className:Ce()(Be.patientName,Be.faintText)},(c=g.display).includes("(")?c.split("(")[0]:c),o().createElement("br",null),o().createElement("br",null))),null===(r=p)||void 0===r||null===(i=r.filter((function(e){return!d.includes(e.request.id)})))||void 0===i?void 0:i.map((function(e,n){var t,i,r,l,c,p,d,f,g,h,m,y,b,A,$,v,_,C,w,x,k=e.request,E=(0,L.EN)(k.dosageInstruction),z=(0,L.Un)(k),B=(0,L.B9)(k);return o().createElement("div",{key:n},E&&o().createElement(s.s1N,null,o().createElement(s.agF,null,o().createElement("p",null,o().createElement("strong",null,(0,L.SV)((0,L.mL)(k)))),o().createElement("br",null),o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("dose","Dose")),": ",o().createElement("span",null,null===(i=E)||void 0===i||null===(t=i.doseAndRate)||void 0===t?void 0:t.map((function(e,n){var t,a,i,r;return o().createElement("span",{key:n},null===(a=e)||void 0===a||null===(t=a.doseQuantity)||void 0===t?void 0:t.value," ",null===(r=e)||void 0===r||null===(i=r.doseQuantity)||void 0===i?void 0:i.unit)})))," ","— ",null===(l=E)||void 0===l||null===(r=l.route)||void 0===r?void 0:r.text," — ",null===(d=E)||void 0===d||null===(p=d.timing)||void 0===p||null===(c=p.code)||void 0===c?void 0:c.text,(null===(h=E)||void 0===h||null===(g=h.timing)||void 0===g||null===(f=g.repeat)||void 0===f?void 0:f.duration)?" ".concat(u("for","for")," ")+(null===(b=E)||void 0===b||null===(y=b.timing)||void 0===y||null===(m=y.repeat)||void 0===m?void 0:m.duration)+" "+(null===(v=E)||void 0===v||null===($=v.timing)||void 0===$||null===(A=$.repeat)||void 0===A?void 0:A.durationUnit):" ",z&&o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("quantity","Quantity")),": ",o().createElement("span",null,z.value," ",z.unit))),o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("datePrescribed","Date prescribed")),": "," ",o().createElement("span",null,(0,a.formatDate)((0,a.parseDate)(e.request.authoredOn)))),o().createElement("p",null,o().createElement("span",{className:Be.faintText},u("refills","Refills")),": "," ",o().createElement("span",null,B||0===B?B:u("noRefills","No refills"))),(null===(_=E)||void 0===_?void 0:_.text)&&o().createElement("p",null,E.text),(null===(w=E)||void 0===w||null===(C=w.additionalInstruction)||void 0===C?void 0:C.length)>0&&o().createElement("p",null,null===(x=E)||void 0===x?void 0:x.additionalInstruction.map((function(e){return e.text})).join(", ")))))})),o().createElement("p",{className:Be.facilityName},f))))};function De(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const Te=function(e){var n,t=e.medicationRequests,a=e.onExcludedPrescriptionChange,i=e.excludedPrescription,c=(0,l.useTranslation)().t,p=(0,r.useCallback)((function(e,n){var t;a(e?i.filter((function(e){return e!==n})):(t=i,function(e){if(Array.isArray(e))return De(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,n){if(e){if("string"==typeof e)return De(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)?De(e,n):void 0}}(t)||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.")}()).concat([n]))}),[a,i]);return o().createElement("div",null,o().createElement("p",null,o().createElement("strong",null,c("selectPrescriptions","Check prescriptions to print"))),null===(n=t)||void 0===n?void 0:n.map((function(e){var n=e.request,t=(0,L.EN)(n.dosageInstruction);return o().createElement("div",{key:n.id},t&&o().createElement(s.XZJ,{id:n.id,labelText:(0,L.SV)((0,L.mL)(n)),checked:!i.includes(n.id),onChange:function(e,t){var a=t.checked;return p(a,n.id)}}))})))};function Ne(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Se(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 a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ne(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ne(e,n):void 0}}(e,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.")}()}var Ie=t(3979),qe="@openmrs/esm-dispensing-app",je={featureName:"dispensing",moduleName:qe};function Le(){(0,a.defineConfigSchema)(qe,i)}var Pe=(0,a.getSyncLifecycle)((function(){return o().createElement(a.ExtensionSlot,{name:"dispensing-dashboard-slot"})}),je),Fe=(0,a.getSyncLifecycle)((function(){var e=(0,l.useTranslation)().t;return o().createElement(a.ConfigurableLink,{to:O.JB},e("dispensing","Dispensing"))}),je),Oe=(0,a.getSyncLifecycle)((function(){var e=(0,a.useConfig)(),n=(0,l.useTranslation)().t;return e.dispenseBehavior.restrictTotalQuantityDispensed&&e.dispenseBehavior.allowModifyingPrescription?o().createElement("div",{className:"omrs-main-content"},o().createElement(s.K0D,{title:n("dispensingAppError","Dispensing App Error"),subtitle:n("dispensingAppMisconfigurationMessage","Please contact your system administration: Misconfiguration - 'restrictTotalQuantityDispensed' cannot be enabled if 'allowModifyingPrescription' is enabled.")})):o().createElement("div",{className:"omrs-main-content"},o().createElement(z,null),o().createElement(ve,null),o().createElement(a.WorkspaceContainer,{key:"dispensing",contextKey:"dispensing"}))}),je),Re=(0,a.getSyncLifecycle)((function(){return o().createElement(we.VK,null,o().createElement(xe,null))}),je),Ue=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.closeable,u=(0,l.useTranslation)().t,f={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.Mg)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.zxk,{kind:"danger",onClick:function(){(0,a.launchWorkspace)("close-dispense-workspace",f)}},u("close","Close")):null}),je),Ge=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.dispensable,u=e.quantityRemaining,f=(0,l.useTranslation)().t,g={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.Mg)(i.request,r,p,!0),medicationRequestBundle:i,quantityRemaining:u,mode:"enter"};return d?o().createElement(s.zxk,{kind:"primary",onClick:function(){(0,a.launchWorkspace)("dispense-workspace",g)}},f("dispense","Dispense")):null}),je),Ze=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.pauseable,u=(0,l.useTranslation)().t,f={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.Mg)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.zxk,{kind:"secondary",onClick:function(){(0,a.launchWorkspace)("pause-dispense-workspace",f)}},u("pause","Pause")):null}),je),He=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(905),t.e(637)]).then(t.bind(t,1637))}),je),We=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(905),t.e(626)]).then(t.bind(t,7626))}),je),Je=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(905),t.e(77)]).then(t.bind(t,8077))}),je),Qe=(0,a.getSyncLifecycle)((function(e){var n,t=e.onClose,i=e.encounterUuid,c=(0,l.useTranslation)().t,p=(0,B.ud)(i),d=p.medicationRequestBundles,u=p.error,f=p.isLoading,g=Se((0,r.useState)([]),2),h=g[0],m=g[1],y=Se((0,r.useState)(null),2),b=y[0],A=y[1],$=(0,r.useRef)(null),v=(0,ke.useReactToPrint)({content:function(){return $.current},onBeforeGetContent:function(){A(null)},onPrintError:function(e){A(c("printError","An error occurred while printing. Please try again."))},copyStyles:!0});return o().createElement(o().Fragment,null,o().createElement(s.xBx,{closeModal:t,className:Be.title},c("printPrescriptions","Print prescriptions")),o().createElement(s.fef,null,f&&o().createElement(s.lSo,{status:"active",iconDescription:"Loading",description:c("loading","Loading prescriptions")+"...."}),u&&o().createElement(a.ErrorState,{error:u,headerTitle:c("error","Error")}),!f&&(null===(n=d)||void 0===n?void 0:n.length)>0&&o().createElement("div",{className:Be.printoutSelectorRow},o().createElement(Te,{medicationRequests:d,excludedPrescription:h,onExcludedPrescriptionChange:m}),o().createElement("div",{ref:$},o().createElement(Me,{medicationrequests:d,excludedPrescription:h}))),b&&o().createElement(s.K0D,{kind:"error",title:c("printErrorTitle","Print Error"),subtitle:b})),o().createElement(s.mzw,null,o().createElement(s.uVA,{className:Be.btnSet},o().createElement(s.zxk,{kind:"secondary",onClick:t,type:"button"},(0,a.getCoreTranslation)("cancel","Cancel")),o().createElement(s.zxk,{kind:"primary",onClick:v,type:"button",disabled:f},c("print","Print")))))}),je)},3439:(e,n,t)=>{"use strict";t.d(n,{CA:()=>u,LL:()=>f,Mg:()=>y,Ng:()=>p,VF:()=>l,Xf:()=>c,dW:()=>g,hg:()=>h,ko:()=>d});var a=t(2653),i=t.n(a),r=t(9820),o=t(1132);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n,t){var a=e.id?"".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e.id):"".concat(o.fhirBaseUrl,"/MedicationDispense"),i=e.id?"PUT":"POST";return e.status=n,e.whenPrepared=e.whenHandedOver,(0,o.openmrsFetch)(a,{method:i,signal:t.signal,headers:{"Content-Type":"application/json"},body:e})}function c(e){return(0,o.openmrsFetch)("".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e),{method:"DELETE"})}function p(){var e=(0,r.ZP)("".concat(o.restBaseUrl,"/orderentryconfig"),o.openmrsFetch),n=e.data,t=e.error,a=e.isValidating;return{orderConfigObject:n?n.data:null,error:t,isLoading:!n&&!t,isValidating:a}}function d(e){var n,t,a="custom:(uuid,person:(display)";return null===(t=(0,r.ZP)(e&&e.length>0?"".concat(o.restBaseUrl,"/provider?providerRoles=").concat(e.join(","),"&v=").concat(a,")"):"".concat(o.restBaseUrl,"/provider?v=").concat(a,")"),o.openmrsFetch).data)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.results.sort((function(e,n){var t,a;return null===(a=e.person)||void 0===a?void 0:a.display.localeCompare(null===(t=n.person)||void 0===t?void 0:t.display)}))}function u(e){return{reasonForPauseValueSet:m(e)}}function f(e){return{reasonForCloseValueSet:m(e)}}function g(e){return{substitutionTypeValueSet:m(e)}}function h(e){return{substitutionReasonValueSet:m(e)}}function m(e){var n=(0,r.ZP)("".concat(o.fhirBaseUrl,"/ValueSet/").concat(e),o.openmrsFetch).data;return n?n.data:null}function y(e,n,t,a){var r,o,l,c,p,d,u,f,g,h,m,y,b,A={resourceType:"MedicationDispense",status:null,authorizingPrescription:[{reference:"MedicationRequest/"+e.id,type:"MedicationRequest"}],medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept,subject:e.subject,performer:[{actor:{reference:(null===(r=n)||void 0===r?void 0:r.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:i()().format()};return a&&(y=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){s(e,n,t[n])}))}return e}({},A),b=null!=(b={quantity:{value:null===(c=e.dispenseRequest)||void 0===c||null===(l=c.quantity)||void 0===l?void 0:l.value,code:null===(d=e.dispenseRequest)||void 0===d||null===(p=d.quantity)||void 0===p?void 0:p.code,unit:null===(f=e.dispenseRequest)||void 0===f||null===(u=f.quantity)||void 0===u?void 0:u.unit,system:null===(h=e.dispenseRequest)||void 0===h||null===(g=h.quantity)||void 0===g?void 0:g.system},dosageInstruction:[{text:[e.dosageInstruction[0].text,(null===(m=e.dosageInstruction[0].additionalInstruction)||void 0===m?void 0:m.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}]}}})?b:{},Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(b)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(b)).forEach((function(e){Object.defineProperty(y,e,Object.getOwnPropertyDescriptor(b,e))})),A=y),A}},2796:(e,n,t)=>{"use strict";t.d(n,{QW:()=>g,XN:()=>h,j3:()=>d,jC:()=>f,ud:()=>u});var a=t(9820),i=t(1132),r=t(6139),o=t(2653),s=t.n(o),l=t(3252);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function p(e){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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 d(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,g=(0,a.ZP)("ACTIVE"===d?(0,r.PS)(o,t,s()(new Date).startOf("day").subtract(u,"day").toISOString(),l,c):(0,r.CW)(o,t,l,c),i.openmrsFetch,{refreshInterval:f}),h=g.data,m=g.error;if(h){var y,b=null===(y=h)||void 0===y?void 0:y.data.entry;if(b){var A=b.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})),$=b.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})),v=b.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(r.OO);n=A.map((function(e){var n=$.filter((function(n){return n.encounter.reference=="Encounter/"+e.id})),t=n.map((function(e){return"MedicationRequest/"+e.id})),a=v.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,a){var i,o,s,l,c,d,u,f,g,h,m,y,b,A;return{id:null===(i=e)||void 0===i?void 0:i.id,created:null===(s=e)||void 0===s||null===(o=s.period)||void 0===o?void 0:o.start,patient:{name:null===(c=e)||void 0===c||null===(l=c.subject)||void 0===l?void 0:l.display,uuid:null===(f=e)||void 0===f||null===(u=f.subject)||void 0===u||null===(d=u.reference)||void 0===d?void 0:d.split("/")[1]},drugs:p(new Set(n.map((function(e){return(0,r.SV)((0,r.mL)(e))})).sort((function(e,n){return e.localeCompare(n)})))).join("; "),lastDispenser:t&&(null===(g=t[0])||void 0===g?void 0:g.performer)&&(null===(m=t[0])||void 0===m||null===(h=m.performer[0])||void 0===h?void 0:h.actor.display),prescriber:p(new Set(n.map((function(e){return e.requester.display})))).join(", "),status:(0,r.Bx)(n,a),location:(null===(y=e)||void 0===y?void 0:y.location)?null===(A=e)||void 0===A||null===(b=A.location[0])||void 0===b?void 0:b.location.display:null}}(e,n,a,u)})),n.sort((function(e,n){return e.created<n.created?1:-1}))}else n=[]}return{prescriptionsTableRows:n,error:m,isLoading:!n&&!m,totalOrders:null===(e=h)||void 0===e?void 0:e.data.total}}function u(e){var n,t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=[],l=(0,a.ZP)((0,r.e2)(e),i.openmrsFetch,{refreshInterval:o}),c=l.data,p=l.error;if(c){var d,u,f=null===(d=c)||void 0===d?void 0:d.data.entry,g=null===(u=f)||void 0===u?void 0:u.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(g){var h,m,y;n=(0,i.parseDate)(null===(h=g[0])||void 0===h?void 0:h.period.start);var b=null===(m=f)||void 0===m?void 0:m.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})),A=null===(y=f)||void 0===y?void 0:y.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(r.OO);b.every((function(e){return s.push({request:e,dispenses:(0,r.WG)(e,A).sort(r.OO)})}))}}return t=!(s&&0!=s.length||p),{medicationRequestBundles:s,prescriptionDate:n,error:p,isLoading:t}}function f(e,n){var t,r,o,s=(0,a.ZP)("".concat(i.fhirBaseUrl,"/AllergyIntolerance?patient=").concat(e),i.openmrsFetch,{refreshInterval:n}),l=s.data,c=s.error,p=[];return l&&(null===(o=null===(r=l)||void 0===r?void 0:r.data.entry)||void 0===o||o.map((function(e){return p.push(e.resource)}))),{allergies:p,totalAllergies:null===(t=l)||void 0===t?void 0:t.data.total,error:c}}function g(e,n){e=e?e.startsWith("MedicationRequest")?e:"MedicationRequest/".concat(e):null;var t=(0,a.ZP)(e?"".concat(i.fhirBaseUrl,"/").concat(e):null,i.openmrsFetch,{refreshInterval:n}).data;return{medicationRequest:t?t.data:null}}function h(e,n){var t="".concat(i.fhirBaseUrl,"/MedicationRequest/").concat(e);return(0,i.openmrsFetch)(t,{method:"PATCH",headers:{"Content-Type":l.aZ},body:{extension:[{url:l.nj,valueCode:n}]}})}},3957:(e,n,t)=>{"use strict";var a,i,r,o;t.d(n,{I_:()=>i,Xh:()=>o,jm:()=>a,nn:()=>r}),function(e){e.on_hold="on-hold",e.completed="completed",e.declined="declined"}(a||(a={})),function(e){e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired"}(i||(i={})),function(e){e.on_hold="ON_HOLD",e.declined="DECLINED",e.completed="COMPLETED"}(r||(r={})),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"}(o||(o={}))},6139:(e,n,t)=>{"use strict";t.d(n,{A8:()=>P,B9:()=>j,Bx:()=>y,CW:()=>N,EN:()=>C,OO:()=>F,PS:()=>T,RZ:()=>h,Rc:()=>_,Rd:()=>g,SR:()=>b,SV:()=>k,Un:()=>I,WG:()=>A,e2:()=>D,g_:()=>m,hY:()=>B,i7:()=>L,mL:()=>E,qM:()=>z,r1:()=>v,sf:()=>f,uj:()=>x,vF:()=>M,vo:()=>w});var a=t(9820),i=t(3957),r=t(1132),o=t(3252),s=t(2653),l=t.n(s);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function p(e){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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 d="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 u(e,n){if(n&&b(e)<=0)return i.nn.completed;var t=z(e.dispenses);return t===i.jm.declined?i.nn.declined:t===i.jm.on_hold?i.nn.on_hold:null}function f(e,n){var t=g(e,n),a=w(e);if(t!==i.I_.active){if(t===i.I_.expired)return i.Xh.expired;if(t===i.I_.completed)return i.Xh.completed;if(t===i.I_.cancelled)return i.Xh.cancelled}return a===i.nn.declined?i.Xh.declined:a===i.nn.on_hold?i.Xh.on_hold:i.Xh.active}function g(e,n){var t,a;return e.status===i.I_.cancelled||e.status===i.I_.completed?e.status:(null===(a=e.dispenseRequest)||void 0===a||null===(t=a.validityPeriod)||void 0===t?void 0:t.start)&&l()(e.dispenseRequest.validityPeriod.start).isBefore(l()().startOf("day").subtract(n,"day"))?i.I_.expired:i.I_.active}function h(e,n,t){var a=p(n.dispenses);return a=e.id?a.map((function(n){return n.id===e.id?e:n})):[e].concat(p(a)),u({request:n.request,dispenses:a},t)}function m(e,n,t){return u({request:n.request,dispenses:n.dispenses.filter((function(n){return n.id!==e.id}))},t)}function y(e,n){var t=function(e,n){if(!e||0===e.length)return null;var t=e.map((function(e){return f(e,n)}));return t.includes(i.Xh.active)?i.Xh.active:t.includes(i.Xh.on_hold)?i.Xh.on_hold:t.includes(i.Xh.completed)?i.Xh.completed:t.includes(i.Xh.declined)?i.Xh.declined:t.includes(i.Xh.cancelled)?i.Xh.cancelled:t.includes(i.Xh.expired)?i.Xh.expired:null}(e,n);return null===t?null:t===i.Xh.active?"active":t===i.Xh.on_hold?"paused":t===i.Xh.completed?"completed":t===i.Xh.declined?"closed":t===i.Xh.expired?"expired":t===i.Xh.cancelled?"cancelled":null}function b(e){if(e){if(!q([e.request].concat(p(e.dispenses))))throw new Error(d);return i=j(n=e.request),((null===(a=n.dispenseRequest)||void 0===a||null===(t=a.quantity)||void 0===t?void 0:t.value)?n.dispenseRequest.quantity.value*(1+(i||0)):null)-function(e){if(e){if(!q(e))throw new Error(d);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,a,i;return 0}function A(e,n){var t;return null===(t=n)||void 0===t?void 0:t.filter((function(n){var t,a;return null===(a=n)||void 0===a||null===(t=a.authorizingPrescription)||void 0===t?void 0:t.some((function(n){return n.reference.endsWith(e.id)}))}))}function $(e){return e?e.find((function(e){return!("system"in e)||void 0===e.system})):null}function v(e){var n;return null===(n=$(e))||void 0===n?void 0:n.display}function _(e){var n;return null===(n=$(e))||void 0===n?void 0:n.code}function C(e){var n;return(null===(n=e)||void 0===n?void 0:n.length)>0?e[0]:null}function w(e){var n,t,a;return null===(a=e)||void 0===a||null===(t=a.extension)||void 0===t||null===(n=t.find((function(e){return e.url===o.nj})))||void 0===n?void 0:n.valueCode}function x(e){return"".concat(r.fhirBaseUrl,"/Medication?code=").concat(e)}function k(e){var n,t;return e.medicationReference?e.medicationReference.display:v(null===(n=e)||void 0===n?void 0:n.medicationCodeableConcept.coding)+": "+(null===(t=e)||void 0===t?void 0:t.medicationCodeableConcept.text)}function E(e){return{medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept}}function z(e){var n,t=null===(n=e)||void 0===n?void 0:n.sort(F);return t&&t.length>0?t[0].status:null}function B(e,n){return e.find((function(e){return e.dispenses.find((function(e){return e.id===n.id}))}))}function M(e){if(!e||!e.extension)return null;var n=e.extension.find((function(e){return e.url===o.Is}));if(!n||!n.extension)return null;var t=n.extension.find((function(e){return e.url===o.Is+"#drugName"}));return t?t.valueString:null}function D(e){return"".concat(r.fhirBaseUrl,"/").concat(o.Ph,"?encounter=").concat(e,"&_revinclude=MedicationDispense:prescription&_include=MedicationRequest:encounter")}function T(e,n,t,a,i){return S("".concat(r.fhirBaseUrl,"/").concat(o.HX,"&_getpagesoffset=").concat(e,"&_count=").concat(n,"&date=ge").concat(t,"&status=active"),a,i)}function N(e,n,t,a){return S("".concat(r.fhirBaseUrl,"/").concat(o.HX,"&_getpagesoffset=").concat(e,"&_count=").concat(n),t,a)}function S(e,n,t){return n&&(e="".concat(e,"&patientSearchTerm=").concat(n)),t&&(e="".concat(e,"&location=").concat(t)),e}function I(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 q(e){if(e){var n=e.map((function(e){var n;return null===(n=I(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 j(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.numberOfRepeatsAllowed:null}function L(e){var n;return(null===(n=e)||void 0===n?void 0:n.includes("/"))?e.split("/")[1]:e}function P(e){(0,a.JG)((function(n){return"string"==typeof n&&(n.startsWith("".concat(r.fhirBaseUrl,"/").concat(o.HX))||n.startsWith("".concat(r.fhirBaseUrl,"/").concat(o.Ph,"?encounter=").concat(e)))}))}function F(e,n){if(null===n.whenHandedOver)return 1;if(null===e.whenHandedOver)return-1;var t=(0,r.parseDate)(n.whenHandedOver).getTime()-(0,r.parseDate)(e.whenHandedOver).getTime();return 0!==t?t:e.id.localeCompare(n.id)}},1127:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__action-buttons__actionBtns___W\\+gb3{position:absolute;bottom:0;right:0;display:flex;gap:0}.-esm-dispensing__action-buttons__extensionSlot___H\\+\\+9z{display:flex;flex-direction:row-reverse;justify-content:space-between;height:100%;position:relative}","",{version:3,sources:["webpack://./src/components/action-buttons.scss"],names:[],mappings:"AAAA,sDACE,iBAAA,CACA,QAAA,CACA,OAAA,CACA,YAAA,CACA,KAAA,CAGF,0DACE,YAAA,CACA,0BAAA,CACA,6BAAA,CACA,WAAA,CACA,iBAAA",sourcesContent:[".actionBtns {\n position: absolute;\n bottom: 0;\n right: 0;\n display: flex;\n gap: 0;\n}\n\n.extensionSlot {\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n height: 100%;\n position: relative;\n}\n"],sourceRoot:""}]),o.locals={actionBtns:"-esm-dispensing__action-buttons__actionBtns___W+gb3",extensionSlot:"-esm-dispensing__action-buttons__extensionSlot___H++9z"};const s=o},8404:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},9736:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},8488:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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__leftJustifiedItems___qHG0b{display:flex;flex-direction:row;align-items:center;margin-left:1rem}.-esm-dispensing__pharmacy-header__rightJustifiedItems___LoxfU{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__pageName___\\+cHVt{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__pageLabels___4sjNR{margin-left:1rem}.-esm-dispensing__pharmacy-header__pageLabels___4sjNR p:first-of-type{margin-bottom:.25rem}.-esm-dispensing__pharmacy-header__dateAndLocation___ZobdG{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,8DACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,gBAAA,CAGF,+DC80BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD50BF,aDjBQ,CCkBR,gBAAA,CAGF,qDCw0BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CDp0BJ,sDACE,gBAAA,CACA,sEACE,oBAAA,CAIJ,2DACE,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.leftJustifiedItems {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: 1rem;\n}\n\n.rightJustifiedItems {\n @include type.type-style('body-compact-02');\n color: $text-02;\n padding-top: 1rem;\n}\n\n.pageName {\n @include type.type-style('heading-04');\n}\n\n.pageLabels {\n margin-left: 1rem;\n p:first-of-type {\n margin-bottom: 0.25rem;\n }\n}\n\n.dateAndLocation {\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:""}]),o.locals={header:"-esm-dispensing__pharmacy-header__header___SqCly",leftJustifiedItems:"-esm-dispensing__pharmacy-header__leftJustifiedItems___qHG0b",rightJustifiedItems:"-esm-dispensing__pharmacy-header__rightJustifiedItems___LoxfU",pageName:"-esm-dispensing__pharmacy-header__pageName___+cHVt",pageLabels:"-esm-dispensing__pharmacy-header__pageLabels___4sjNR",dateAndLocation:"-esm-dispensing__pharmacy-header__dateAndLocation___ZobdG",value:"-esm-dispensing__pharmacy-header__value___KSx0o",middot:"-esm-dispensing__pharmacy-header__middot___mO9w-",view:"-esm-dispensing__pharmacy-header__view___rdi8M"};const s=o},777:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__prescription-actions__actionsContainer___ZjLDP{flex-direction:row;display:flex;justify-content:space-between}.-esm-dispensing__prescription-actions__actionCluster___L5NEE{gap:.5rem;display:flex;flex-direction:row}","",{version:3,sources:["webpack://./src/prescriptions/prescription-actions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAIA,iEACE,kBAAA,CACA,YAAA,CACA,6BAAA,CAGF,8DACE,SCUW,CDTX,YAAA,CACA,kBAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n\n.actionsContainer {\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n}\n\n.actionCluster {\n gap: layout.$spacing-03;\n display: flex;\n flex-direction: row;\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:""}]),o.locals={actionsContainer:"-esm-dispensing__prescription-actions__actionsContainer___ZjLDP",actionCluster:"-esm-dispensing__prescription-actions__actionCluster___L5NEE"};const s=o},583:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.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=o},4511:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-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:""}]),o.locals={expandedTabsParentContainer:"-esm-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7",expandedTabsContainer:"-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K"};const s=o},9803:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}: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;padding:0 1rem}.-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,CGgDN,cAAA,CAEA,sFACE,qDAAA,CAGF,8EACE,0BAAA,CAIJ,oKAEE,YAAA,CAGF,mEACE,YAAA,CACA,eAAA,CACA,WAAA,CACA,aAAA,CACA,wBHtEM,CGuEN,yBAAA,CAEA,8FACE,wBAAA,CAGF,0FACE,kBAAA,CAGF,uFACE,uBAAA,CAGF,wIACE,qBHrFI,CGsFJ,+BAAA,CACA,4BAAA,CAGF,wIACE,wBH5FI,CG6FJ,+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,2BH/HM,CGkIR,wDACE,WAAA,CAGF,gDACE,UAAA,CACA,eAAA,CACA,qBH1IM,CG2IN,2BH1IM,CG6IR,mDACE,YAAA,CAGF,0DACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,YCpGW,CDqGX,iBAAA,CACA,qBHxJM,CG2JR,8DACE,WAAA,CACA,wBH9JM,CGiKR,iEDisBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CC/rBF,aH9JQ,CG+JR,mBC/IW,CDkJb,gED2rBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CCzrBF,aHpKQ",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 padding: 0 spacing.$spacing-05;\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:""}]),o.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=o},9814:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(4015),i=t.n(a),r=t(3645),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__print-prescription__title___Q\\+FEc{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__print-prescription__btnSet___fKvQJ{width:100%}.-esm-dispensing__print-prescription__faintText___q-d\\+e{color:#8d8d8d;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__print-prescription__printOutContainer___5\\+hc\\+{background-color:#e0e0e0;padding:1rem;width:20rem}.-esm-dispensing__print-prescription__printoutTitle___0Vjmu{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);text-align:center;font-weight:bold}.-esm-dispensing__print-prescription__facilityName___Rb3tg{color:#8d8d8d;text-align:end;padding:1rem 0 1rem 0;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__print-prescription__printoutSelectorRow___l9J1Z{display:flex;flex-direction:row;gap:1rem;padding:0 1rem 0 1rem;justify-content:space-between}.-esm-dispensing__print-prescription__patientName___OGjRy{text-transform:capitalize;text-align:center}","",{version:3,sources:["webpack://./src/print-prescription/print-prescription.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/colors/index.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAIA,qDC81BI,+CAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD11BJ,qDACE,UAAA,CAGF,yDACE,aEiCQ,CDozBN,mDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,2DAAA,CDj1BJ,kEACE,wBEyBQ,CFxBR,YGYW,CHXX,WAAA,CAGF,4DC20BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDz0BF,iBAAA,CACA,gBAAA,CAGF,2DACE,aEgBQ,CFfR,cAAA,CACA,qBAAA,CCk0BE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD9zBJ,kEACE,YAAA,CACA,kBAAA,CACA,QGRW,CHSX,qBAAA,CACA,6BAAA,CAGF,0DACE,yBAAA,CACA,iBAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n\n.title {\n @include type.type-style('heading-02');\n}\n\n.btnSet {\n width: 100%;\n}\n\n.faintText {\n color: colors.$gray-50;\n @include type.type-style('heading-01');\n}\n\n.printOutContainer {\n background-color: colors.$gray-20;\n padding: layout.$spacing-05;\n width: 20rem;\n}\n\n.printoutTitle {\n @include type.type-style('heading-03');\n text-align: center;\n font-weight: bold;\n}\n\n.facilityName {\n color: colors.$gray-50;\n text-align: end;\n padding: layout.$spacing-05 0 layout.$spacing-05 0;\n @include type.type-style('label-01');\n}\n\n.printoutSelectorRow {\n display: flex;\n flex-direction: row;\n gap: layout.$spacing-05;\n padding: 0 layout.$spacing-05 0 layout.$spacing-05;\n justify-content: space-between;\n}\n\n.patientName {\n text-transform: capitalize;\n text-align: 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","// Code generated by @carbon/colors. 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$black: #000000 !default;\n$white: #ffffff !default;\n\n$black-100: #000000 !default;\n$blue-10: #edf5ff !default;\n$blue-20: #d0e2ff !default;\n$blue-30: #a6c8ff !default;\n$blue-40: #78a9ff !default;\n$blue-50: #4589ff !default;\n$blue-60: #0f62fe !default;\n$blue-70: #0043ce !default;\n$blue-80: #002d9c !default;\n$blue-90: #001d6c !default;\n$blue-100: #001141 !default;\n$cool-gray-10: #f2f4f8 !default;\n$cool-gray-20: #dde1e6 !default;\n$cool-gray-30: #c1c7cd !default;\n$cool-gray-40: #a2a9b0 !default;\n$cool-gray-50: #878d96 !default;\n$cool-gray-60: #697077 !default;\n$cool-gray-70: #4d5358 !default;\n$cool-gray-80: #343a3f !default;\n$cool-gray-90: #21272a !default;\n$cool-gray-100: #121619 !default;\n$cyan-10: #e5f6ff !default;\n$cyan-20: #bae6ff !default;\n$cyan-30: #82cfff !default;\n$cyan-40: #33b1ff !default;\n$cyan-50: #1192e8 !default;\n$cyan-60: #0072c3 !default;\n$cyan-70: #00539a !default;\n$cyan-80: #003a6d !default;\n$cyan-90: #012749 !default;\n$cyan-100: #061727 !default;\n$gray-10: #f4f4f4 !default;\n$gray-20: #e0e0e0 !default;\n$gray-30: #c6c6c6 !default;\n$gray-40: #a8a8a8 !default;\n$gray-50: #8d8d8d !default;\n$gray-60: #6f6f6f !default;\n$gray-70: #525252 !default;\n$gray-80: #393939 !default;\n$gray-90: #262626 !default;\n$gray-100: #161616 !default;\n$green-10: #defbe6 !default;\n$green-20: #a7f0ba !default;\n$green-30: #6fdc8c !default;\n$green-40: #42be65 !default;\n$green-50: #24a148 !default;\n$green-60: #198038 !default;\n$green-70: #0e6027 !default;\n$green-80: #044317 !default;\n$green-90: #022d0d !default;\n$green-100: #071908 !default;\n$magenta-10: #fff0f7 !default;\n$magenta-20: #ffd6e8 !default;\n$magenta-30: #ffafd2 !default;\n$magenta-40: #ff7eb6 !default;\n$magenta-50: #ee5396 !default;\n$magenta-60: #d02670 !default;\n$magenta-70: #9f1853 !default;\n$magenta-80: #740937 !default;\n$magenta-90: #510224 !default;\n$magenta-100: #2a0a18 !default;\n$orange-10: #fff2e8 !default;\n$orange-20: #ffd9be !default;\n$orange-30: #ffb784 !default;\n$orange-40: #ff832b !default;\n$orange-50: #eb6200 !default;\n$orange-60: #ba4e00 !default;\n$orange-70: #8a3800 !default;\n$orange-80: #5e2900 !default;\n$orange-90: #3e1a00 !default;\n$orange-100: #231000 !default;\n$purple-10: #f6f2ff !default;\n$purple-20: #e8daff !default;\n$purple-30: #d4bbff !default;\n$purple-40: #be95ff !default;\n$purple-50: #a56eff !default;\n$purple-60: #8a3ffc !default;\n$purple-70: #6929c4 !default;\n$purple-80: #491d8b !default;\n$purple-90: #31135e !default;\n$purple-100: #1c0f30 !default;\n$red-10: #fff1f1 !default;\n$red-20: #ffd7d9 !default;\n$red-30: #ffb3b8 !default;\n$red-40: #ff8389 !default;\n$red-50: #fa4d56 !default;\n$red-60: #da1e28 !default;\n$red-70: #a2191f !default;\n$red-80: #750e13 !default;\n$red-90: #520408 !default;\n$red-100: #2d0709 !default;\n$teal-10: #d9fbfb !default;\n$teal-20: #9ef0f0 !default;\n$teal-30: #3ddbd9 !default;\n$teal-40: #08bdba !default;\n$teal-50: #009d9a !default;\n$teal-60: #007d79 !default;\n$teal-70: #005d5d !default;\n$teal-80: #004144 !default;\n$teal-90: #022b30 !default;\n$teal-100: #081a1c !default;\n$warm-gray-10: #f7f3f2 !default;\n$warm-gray-20: #e5e0df !default;\n$warm-gray-30: #cac5c4 !default;\n$warm-gray-40: #ada8a8 !default;\n$warm-gray-50: #8f8b8b !default;\n$warm-gray-60: #726e6e !default;\n$warm-gray-70: #565151 !default;\n$warm-gray-80: #3c3838 !default;\n$warm-gray-90: #272525 !default;\n$warm-gray-100: #171414 !default;\n$white-0: #ffffff !default;\n$yellow-10: #fcf4d6 !default;\n$yellow-20: #fddc69 !default;\n$yellow-30: #f1c21b !default;\n$yellow-40: #d2a106 !default;\n$yellow-50: #b28600 !default;\n$yellow-60: #8e6a00 !default;\n$yellow-70: #684e00 !default;\n$yellow-80: #483700 !default;\n$yellow-90: #302400 !default;\n$yellow-100: #1c1500 !default;\n\n$white-hover: #e8e8e8 !default;\n$black-hover: #212121 !default;\n$blue-10-hover: #dbebff !default;\n$blue-20-hover: #b8d3ff !default;\n$blue-30-hover: #8ab6ff !default;\n$blue-40-hover: #5c97ff !default;\n$blue-50-hover: #1f70ff !default;\n$blue-60-hover: #0050e6 !default;\n$blue-70-hover: #0053ff !default;\n$blue-80-hover: #0039c7 !default;\n$blue-90-hover: #00258a !default;\n$blue-100-hover: #001f75 !default;\n$cool-gray-10-hover: #e4e9f1 !default;\n$cool-gray-20-hover: #cdd3da !default;\n$cool-gray-30-hover: #adb5bd !default;\n$cool-gray-40-hover: #9199a1 !default;\n$cool-gray-50-hover: #757b85 !default;\n$cool-gray-60-hover: #585e64 !default;\n$cool-gray-70-hover: #5d646a !default;\n$cool-gray-80-hover: #434a51 !default;\n$cool-gray-90-hover: #2b3236 !default;\n$cool-gray-100-hover: #222a2f !default;\n$cyan-10-hover: #cceeff !default;\n$cyan-20-hover: #99daff !default;\n$cyan-30-hover: #57beff !default;\n$cyan-40-hover: #059fff !default;\n$cyan-50-hover: #0f7ec8 !default;\n$cyan-60-hover: #005fa3 !default;\n$cyan-70-hover: #0066bd !default;\n$cyan-80-hover: #00498a !default;\n$cyan-90-hover: #013360 !default;\n$cyan-100-hover: #0b2947 !default;\n$gray-10-hover: #e8e8e8 !default;\n$gray-20-hover: #d1d1d1 !default;\n$gray-30-hover: #b5b5b5 !default;\n$gray-40-hover: #999999 !default;\n$gray-50-hover: #7a7a7a !default;\n$gray-60-hover: #5e5e5e !default;\n$gray-70-hover: #636363 !default;\n$gray-80-hover: #474747 !default;\n$gray-90-hover: #333333 !default;\n$gray-100-hover: #292929 !default;\n$green-10-hover: #b6f6c8 !default;\n$green-20-hover: #74e792 !default;\n$green-30-hover: #36ce5e !default;\n$green-40-hover: #3bab5a !default;\n$green-50-hover: #208e3f !default;\n$green-60-hover: #166f31 !default;\n$green-70-hover: #11742f !default;\n$green-80-hover: #05521c !default;\n$green-90-hover: #033b11 !default;\n$green-100-hover: #0d300f !default;\n$magenta-10-hover: #ffe0ef !default;\n$magenta-20-hover: #ffbdda !default;\n$magenta-30-hover: #ff94c3 !default;\n$magenta-40-hover: #ff57a0 !default;\n$magenta-50-hover: #e3176f !default;\n$magenta-60-hover: #b0215f !default;\n$magenta-70-hover: #bf1d63 !default;\n$magenta-80-hover: #8e0b43 !default;\n$magenta-90-hover: #68032e !default;\n$magenta-100-hover: #53142f !default;\n$orange-10-hover: #ffe2cc !default;\n$orange-20-hover: #ffc69e !default;\n$orange-30-hover: #ff9d57 !default;\n$orange-40-hover: #fa6800 !default;\n$orange-50-hover: #cc5500 !default;\n$orange-60-hover: #9e4200 !default;\n$orange-70-hover: #a84400 !default;\n$orange-80-hover: #753300 !default;\n$orange-90-hover: #522200 !default;\n$orange-100-hover: #421e00 !default;\n$purple-10-hover: #ede5ff !default;\n$purple-20-hover: #dcc7ff !default;\n$purple-30-hover: #c5a3ff !default;\n$purple-40-hover: #ae7aff !default;\n$purple-50-hover: #9352ff !default;\n$purple-60-hover: #7822fb !default;\n$purple-70-hover: #7c3dd6 !default;\n$purple-80-hover: #5b24ad !default;\n$purple-90-hover: #40197b !default;\n$purple-100-hover: #341c59 !default;\n$red-10-hover: #ffe0e0 !default;\n$red-20-hover: #ffc2c5 !default;\n$red-30-hover: #ff99a0 !default;\n$red-40-hover: #ff6168 !default;\n$red-50-hover: #ee0713 !default;\n$red-60-hover: #b81922 !default;\n$red-70-hover: #c21e25 !default;\n$red-80-hover: #921118 !default;\n$red-90-hover: #66050a !default;\n$red-100-hover: #540d11 !default;\n$teal-10-hover: #acf6f6 !default;\n$teal-20-hover: #57e5e5 !default;\n$teal-30-hover: #25cac8 !default;\n$teal-40-hover: #07aba9 !default;\n$teal-50-hover: #008a87 !default;\n$teal-60-hover: #006b68 !default;\n$teal-70-hover: #007070 !default;\n$teal-80-hover: #005357 !default;\n$teal-90-hover: #033940 !default;\n$teal-100-hover: #0f3034 !default;\n$warm-gray-10-hover: #f0e8e6 !default;\n$warm-gray-20-hover: #d8d0cf !default;\n$warm-gray-30-hover: #b9b3b1 !default;\n$warm-gray-40-hover: #9c9696 !default;\n$warm-gray-50-hover: #7f7b7b !default;\n$warm-gray-60-hover: #605d5d !default;\n$warm-gray-70-hover: #696363 !default;\n$warm-gray-80-hover: #4c4848 !default;\n$warm-gray-90-hover: #343232 !default;\n$warm-gray-100-hover: #2c2626 !default;\n$yellow-10-hover: #f8e6a0 !default;\n$yellow-20-hover: #fccd27 !default;\n$yellow-30-hover: #ddb00e !default;\n$yellow-40-hover: #bc9005 !default;\n$yellow-50-hover: #9e7700 !default;\n$yellow-60-hover: #755800 !default;\n$yellow-70-hover: #806000 !default;\n$yellow-80-hover: #5c4600 !default;\n$yellow-90-hover: #3d2e00 !default;\n$yellow-100-hover: #332600 !default;\n\n/// Colors from the IBM Design Language\n/// @access public\n/// @group @carbon/colors\n$colors: (\n black: (\n 100: #000000,\n ),\n blue: (\n 10: #edf5ff,\n 20: #d0e2ff,\n 30: #a6c8ff,\n 40: #78a9ff,\n 50: #4589ff,\n 60: #0f62fe,\n 70: #0043ce,\n 80: #002d9c,\n 90: #001d6c,\n 100: #001141,\n ),\n cool-gray: (\n 10: #f2f4f8,\n 20: #dde1e6,\n 30: #c1c7cd,\n 40: #a2a9b0,\n 50: #878d96,\n 60: #697077,\n 70: #4d5358,\n 80: #343a3f,\n 90: #21272a,\n 100: #121619,\n ),\n cyan: (\n 10: #e5f6ff,\n 20: #bae6ff,\n 30: #82cfff,\n 40: #33b1ff,\n 50: #1192e8,\n 60: #0072c3,\n 70: #00539a,\n 80: #003a6d,\n 90: #012749,\n 100: #061727,\n ),\n gray: (\n 10: #f4f4f4,\n 20: #e0e0e0,\n 30: #c6c6c6,\n 40: #a8a8a8,\n 50: #8d8d8d,\n 60: #6f6f6f,\n 70: #525252,\n 80: #393939,\n 90: #262626,\n 100: #161616,\n ),\n green: (\n 10: #defbe6,\n 20: #a7f0ba,\n 30: #6fdc8c,\n 40: #42be65,\n 50: #24a148,\n 60: #198038,\n 70: #0e6027,\n 80: #044317,\n 90: #022d0d,\n 100: #071908,\n ),\n magenta: (\n 10: #fff0f7,\n 20: #ffd6e8,\n 30: #ffafd2,\n 40: #ff7eb6,\n 50: #ee5396,\n 60: #d02670,\n 70: #9f1853,\n 80: #740937,\n 90: #510224,\n 100: #2a0a18,\n ),\n orange: (\n 10: #fff2e8,\n 20: #ffd9be,\n 30: #ffb784,\n 40: #ff832b,\n 50: #eb6200,\n 60: #ba4e00,\n 70: #8a3800,\n 80: #5e2900,\n 90: #3e1a00,\n 100: #231000,\n ),\n purple: (\n 10: #f6f2ff,\n 20: #e8daff,\n 30: #d4bbff,\n 40: #be95ff,\n 50: #a56eff,\n 60: #8a3ffc,\n 70: #6929c4,\n 80: #491d8b,\n 90: #31135e,\n 100: #1c0f30,\n ),\n red: (\n 10: #fff1f1,\n 20: #ffd7d9,\n 30: #ffb3b8,\n 40: #ff8389,\n 50: #fa4d56,\n 60: #da1e28,\n 70: #a2191f,\n 80: #750e13,\n 90: #520408,\n 100: #2d0709,\n ),\n teal: (\n 10: #d9fbfb,\n 20: #9ef0f0,\n 30: #3ddbd9,\n 40: #08bdba,\n 50: #009d9a,\n 60: #007d79,\n 70: #005d5d,\n 80: #004144,\n 90: #022b30,\n 100: #081a1c,\n ),\n warm-gray: (\n 10: #f7f3f2,\n 20: #e5e0df,\n 30: #cac5c4,\n 40: #ada8a8,\n 50: #8f8b8b,\n 60: #726e6e,\n 70: #565151,\n 80: #3c3838,\n 90: #272525,\n 100: #171414,\n ),\n white: (\n 0: #ffffff,\n ),\n yellow: (\n 10: #fcf4d6,\n 20: #fddc69,\n 30: #f1c21b,\n 40: #d2a106,\n 50: #b28600,\n 60: #8e6a00,\n 70: #684e00,\n 80: #483700,\n 90: #302400,\n 100: #1c1500,\n ),\n) !default;\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:""}]),o.locals={title:"-esm-dispensing__print-prescription__title___Q+FEc",btnSet:"-esm-dispensing__print-prescription__btnSet___fKvQJ",faintText:"-esm-dispensing__print-prescription__faintText___q-d+e",printOutContainer:"-esm-dispensing__print-prescription__printOutContainer___5+hc+",printoutTitle:"-esm-dispensing__print-prescription__printoutTitle___0Vjmu",facilityName:"-esm-dispensing__print-prescription__facilityName___Rb3tg",printoutSelectorRow:"-esm-dispensing__print-prescription__printoutSelectorRow___l9J1Z",patientName:"-esm-dispensing__print-prescription__patientName___OGjRy"};const s=o},3979:(e,n,t)=>{var a={"./am.json":[8788,788],"./ar.json":[4460,460],"./bn.json":[8323,323],"./de.json":[4272,272],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./he.json":[5833,833],"./hi.json":[5336,336],"./hi_IN.json":[5737,737],"./id.json":[9261,261],"./it.json":[5711,711],"./km.json":[7807,807],"./lg.json":[5962,962],"./ne.json":[3652,652],"./pt.json":[4378,378],"./pt_BR.json":[6566,566],"./qu.json":[899,899],"./ru_RU.json":[9579,579],"./si.json":[6727,727],"./sw.json":[236,236],"./sw_KE.json":[539,539],"./tr.json":[4705,705],"./tr_TR.json":[5673,673],"./uk.json":[5240,240],"./uz.json":[1901,901],"./vi.json":[744,744],"./zh.json":[8271,271],"./zh_CN.json":[1644,644]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);