"use strict";(globalThis.webpackChunk_openmrs_esm_patient_orders_app=globalThis.webpackChunk_openmrs_esm_patient_orders_app||[]).push([[8416],{8416:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var r=t(1343),o=t.n(r),a=t(72339),s=t(14863),u=t(44189);const p=function(e){var n=e.groupProps,t=n.patientUuid,r=n.patient,p=(0,a.useTranslation)().t,i=(0,u.useOrderBasket)(r).orders,l=(0,u.useStartVisitIfNeeded)(t);return o().createElement(s.ActionMenuButton2,{icon:function(e){return o().createElement(s.ShoppingCartIcon,e)},label:p("orderBasket","Order basket"),tagContent:(null==i?void 0:i.length)>0?null==i?void 0:i.length:null,workspaceToLaunch:{workspaceName:"order-basket",windowProps:{encounterUuid:""}},onBeforeWorkspaceLaunch:l})}}}]);