@openmrs/esm-active-visits-app 4.1.1-pre.997 → 4.2.0

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/399.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[399],{7935:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var a=i(2609),n=i.n(a)()((function(e){return e[1]}));n.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-active-visits__active-visits__productiveHeading01___5dzOt{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-active-visits__active-visits__productiveHeading02___-o9Tn{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)}.-esm-active-visits__active-visits__bodyLong01___xwAEE{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-active-visits__active-visits__caption01___e7sSC{font-size:var(--cds-legal-01-font-size, 0.75rem);font-weight:var(--cds-legal-01-font-weight, 400);line-height:var(--cds-legal-01-line-height, 1.33333);letter-spacing:var(--cds-legal-01-letter-spacing, 0.32px)}.-esm-active-visits__active-visits__bodyShort02___BiPkR{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-active-visits__active-visits__text02___lkEHs{color:#525252}.-esm-active-visits__active-visits__text01___iTf3H{color:#161616}.-esm-active-visits__active-visits__activeVisitsContainer___XAE0K{background-color:#fff;border:1px solid #e0e0e0;width:100%;margin:0 auto;max-width:95vw}.-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-active-visits__active-visits__backgroundDataFetchingIndicator___YszBc{align-items:center;display:flex;flex:1 1 0%;justify-content:center}.-esm-active-visits__active-visits__tableContainer___27wfu section{position:relative}.-esm-active-visits__active-visits__tableContainer___27wfu a{text-decoration:none}.-esm-active-visits__active-visits__pagination___h8NbE{overflow:hidden}.-esm-active-visits__active-visits__pagination___h8NbE.cds--pagination{border-top:none}.-esm-active-visits__active-visits__hiddenRow___nho0Q{display:none}.-esm-active-visits__active-visits__emptyRow___jKDsj{padding:0 1rem;display:flex;align-items:center}.-esm-active-visits__active-visits__visitSummaryContainer___mBkXn{width:100%;max-width:768px;margin:1rem auto}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO>td>div{max-height:max-content !important}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO td{padding:0 2rem}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO th[colspan] td[colspan]>div:first-child{padding:0 1rem}.-esm-active-visits__active-visits__action___Kn0CE{margin-bottom:.5rem}.-esm-active-visits__active-visits__content___hF3rN{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-active-visits__active-visits__desktopHeading___3cKg8,.-esm-active-visits__active-visits__tabletHeading___vrNoH{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-active-visits__active-visits__desktopHeading___3cKg8 h4,.-esm-active-visits__active-visits__tabletHeading___vrNoH h4{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}.-esm-active-visits__active-visits__desktopHeading___3cKg8 h4:after,.-esm-active-visits__active-visits__tabletHeading___vrNoH h4:after{content:"";display:block;width:2rem;padding-top:3px;border-bottom:.375rem solid;border-bottom-color:#007d79;border-bottom-color:var(--brand-03)}.-esm-active-visits__active-visits__tile___OJ1Dy{text-align:center}',""]),n.locals={productiveHeading01:"-esm-active-visits__active-visits__productiveHeading01___5dzOt",productiveHeading02:"-esm-active-visits__active-visits__productiveHeading02___-o9Tn",bodyLong01:"-esm-active-visits__active-visits__bodyLong01___xwAEE",caption01:"-esm-active-visits__active-visits__caption01___e7sSC",bodyShort02:"-esm-active-visits__active-visits__bodyShort02___BiPkR",text02:"-esm-active-visits__active-visits__text02___lkEHs",text01:"-esm-active-visits__active-visits__text01___iTf3H",activeVisitsContainer:"-esm-active-visits__active-visits__activeVisitsContainer___XAE0K",activeVisitsDetailHeaderContainer:"-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu",backgroundDataFetchingIndicator:"-esm-active-visits__active-visits__backgroundDataFetchingIndicator___YszBc",tableContainer:"-esm-active-visits__active-visits__tableContainer___27wfu",pagination:"-esm-active-visits__active-visits__pagination___h8NbE",hiddenRow:"-esm-active-visits__active-visits__hiddenRow___nho0Q",emptyRow:"-esm-active-visits__active-visits__emptyRow___jKDsj",visitSummaryContainer:"-esm-active-visits__active-visits__visitSummaryContainer___mBkXn",expandedActiveVisitRow:"-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO",action:"-esm-active-visits__active-visits__action___Kn0CE",content:"-esm-active-visits__active-visits__content___hF3rN",desktopHeading:"-esm-active-visits__active-visits__desktopHeading___3cKg8",tabletHeading:"-esm-active-visits__active-visits__tabletHeading___vrNoH",tile:"-esm-active-visits__active-visits__tile___OJ1Dy"};const s=n},6824:function(e){e.exports=function(){"use strict";return function(e,t,i){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=i();return this.format(e)===t.format(e)}}}()},9399:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>A});var a=i(5206),n=i.n(a),s=i(1313),r=i(906),c=i(4924),o=function(e){var t=e.width,i=void 0===t?"64":t,a=e.height,s=void 0===a?"64":a;return n().createElement("svg",{width:i,height:s,viewBox:"0 0 64 64"},n().createElement("title",null,"Empty data illustration"),n().createElement("g",{fill:"none",fillRule:"evenodd"},n().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),n().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),n().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),n().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),n().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),n().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),n().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),n().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),n().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),n().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},l=i(9984),v=i(3565),_=i.n(v),d=i(6824),m=i.n(d);const u=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};_().extend(m());var p=i(6062),g=i.n(p),h=i(4036),f=i.n(h),y=i(6793),b=i.n(y),w=i(7892),E=i.n(w),x=i(1173),S=i.n(x),C=i(2464),H=i.n(C),k=i(7935),O={};O.styleTagTransform=H(),O.setAttributes=E(),O.insert=b().bind(null,"head"),O.domAPI=f(),O.insertStyleElement=S(),g()(k.Z,O);const D=k.Z&&k.Z.locals?k.Z.locals:void 0;function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function N(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},z.apply(this,arguments)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,n,s=[],r=!0,c=!1;try{for(i=i.call(e);!(r=(a=i.next()).done)&&(s.push(a.value),!t||s.length!==t);r=!0);}catch(e){c=!0,n=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j=function(e){var t=e.from,i=e.to,a=e.children;return n().createElement("a",{onClick:function(e){return function(e,i){e.preventDefault(),(0,r.navigate)({to:i}),localStorage.setItem("fromPage",t)}(e,i)},href:(0,r.interpolateUrl)(i)},a)};const A=function(){var e,t,i,v,d=(0,c.useTranslation)().t,m=(0,r.useConfig)(),p=(0,r.useLayoutType)(),g=function(){var e,t,i=(0,r.useSession)(),a=_()().format("YYYY-MM-DD"),n=null==i||null===(e=i.sessionLocation)||void 0===e?void 0:e.uuid,s="/ws/rest/v1/visit?includeInactive=false&v=".concat("custom:(uuid,patient:(uuid,identifiers:(identifier,uuid),person:(age,display,gender,uuid)),visitType:(uuid,name,display),location:(uuid,name,display),startDatetime,stopDatetime)&fromStartDate="+a+"&location="+n),c=(0,l.ZP)(n?s:null,r.openmrsFetch),o=c.data,v=c.error,d=c.isLoading,m=c.isValidating,u=(null==o||null===(t=o.data)||void 0===t?void 0:t.results.length)?o.data.results.map((function(e){var t,i,a,n,s,r,c,o,l,v,_;return{age:null==e||null===(t=e.patient)||void 0===t||null===(i=t.person)||void 0===i?void 0:i.age,id:e.uuid,idNumber:null===(n=null==e||null===(a=e.patient)||void 0===a?void 0:a.identifiers[0])||void 0===n?void 0:n.identifier,gender:null==e||null===(s=e.patient)||void 0===s||null===(r=s.person)||void 0===r?void 0:r.gender,location:null==e||null===(c=e.location)||void 0===c?void 0:c.uuid,name:null==e||null===(o=e.patient)||void 0===o||null===(l=o.person)||void 0===l?void 0:l.display,patientUuid:null==e||null===(v=e.patient)||void 0===v?void 0:v.uuid,visitStartTime:null==e?void 0:e.startDatetime,visitType:null==e||null===(_=e.visitType)||void 0===_?void 0:_.display,visitUuid:e.uuid}})).filter((function(e){var t=e.visitStartTime;return _()(t).isToday()})):[];return{activeVisits:u,isLoading:d,isError:v,isValidating:m}}(),h=g.activeVisits,f=(g.isError,g.isLoading),y=g.isValidating,b=null!==(i=null==m||null===(e=m.activeVisits)||void 0===e?void 0:e.pageSizes)&&void 0!==i?i:[10,20,30,40,50],w=T((0,a.useState)(null!==(v=null==m||null===(t=m.activeVisits)||void 0===t?void 0:t.pageSize)&&void 0!==v?v:10),2),E=w[0],x=w[1],S=T((0,a.useState)(""),2),C=S[0],H=S[1],k=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/");return u(e)}(window.location.pathname),O=(0,a.useMemo)((function(){return[{id:0,header:d("visitStartTime","Visit Time"),key:"visitStartTime"},{id:1,header:d("idNumber","ID Number"),key:"idNumber"},{id:2,header:d("name","Name"),key:"name"},{id:3,header:d("gender","Gender"),key:"gender"},{id:4,header:d("age","Age"),key:"age"},{id:5,header:d("visitType","Visit Type"),key:"visitType"}]}),[d]),V=h.map((function(e){return t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},a=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})))),a.forEach((function(t){N(e,t,i[t])}))}return e}({},e),i=null!=(i={visitStartTime:(0,r.formatDatetime)((0,r.parseDate)(e.visitStartTime))})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):function(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i.push.apply(i,a)}return i}(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})),t;var t,i})),A=(0,a.useMemo)((function(){if(C&&""!==C.trim()){var e=C.toLowerCase();return V.filter((function(t){return Object.keys(t).some((function(i){return"patientUuid"!==i&&"".concat(t[i]).toLowerCase().includes(e)}))}))}return V}),[C,V]),F=(0,r.usePagination)(A,E),P=F.goTo,L=F.results,R=F.currentPage,M=(0,a.useCallback)((function(e){return H(e.target.value)}),[]);return(0,a.useEffect)((function(){1!==R&&P(1)}),[C]),f?n().createElement(s.gqd,{role:"progressbar"}):(null==h?void 0:h.length)?n().createElement("div",{className:D.activeVisitsContainer},n().createElement("div",{className:D.activeVisitsDetailHeaderContainer},n().createElement("div",{className:(0,r.isDesktop)(p)?D.desktopHeading:D.tabletHeading},n().createElement("h4",null,d("activeVisits","Active Visits"))),n().createElement("div",{className:D.backgroundDataFetchingIndicator},n().createElement("span",null,y?n().createElement(s.lSo,null):null))),n().createElement(s.wQF,{rows:L,headers:O,size:(0,r.isDesktop)(p)?"xs":"md",useZebraStyles:(null==h?void 0:h.length)>1},(function(e){var t=e.rows,i=e.headers,a=e.getHeaderProps,c=e.getTableProps,o=e.getBatchActionProps,l=e.getRowProps;return n().createElement(s.xJi,{className:D.tableContainer},n().createElement(s.fjU,null,n().createElement(s.Vj0,null,n().createElement(s.olm,{tabIndex:o().shouldShowBatchActions?-1:0,labelText:"",placeholder:d("filterTable","Filter table"),onChange:M}))),n().createElement(s.iA_,z({className:D.activeVisitsTable},c()),n().createElement(s.ssF,null,n().createElement(s.SCH,null,n().createElement(s.MOD,null),i.map((function(e){return n().createElement(s.xDH,z({},a({header:e})),e.header)})))),n().createElement(s.RMI,null,t.map((function(e,t){var a,c;return n().createElement(n().Fragment,{key:t},n().createElement(s.RcE,z({},l({row:e})),e.cells.map((function(e){var i;return n().createElement(s.pj1,{key:e.id},"name"===e.info.header?n().createElement(j,{from:k,to:"${openmrsSpaBase}/patient/".concat(null==L||null===(i=L[t])||void 0===i?void 0:i.patientUuid,"/chart/")},e.value):e.value)}))),e.isExpanded?n().createElement(s.SCH,{className:D.expandedActiveVisitRow},n().createElement("th",{colSpan:i.length+2},n().createElement(r.ExtensionSlot,{className:D.visitSummaryContainer,extensionSlotName:"visit-summary-slot",state:{visitUuid:null===(a=L[t])||void 0===a?void 0:a.visitUuid,patientUuid:null===(c=L[t])||void 0===c?void 0:c.patientUuid}}))):n().createElement(s.WdL,{className:D.hiddenRow,colSpan:i.length+2}))})))),0===t.length&&n().createElement("p",{style:{height:(0,r.isDesktop)(p)?"2rem":"3rem",margin:"1rem 1.5rem"},className:"".concat(D.emptyRow," ").concat(D.bodyLong01)},d("noVisitsFound","No matching visits found")),n().createElement(s.tlE,{forwardText:"Next page",backwardText:"Previous page",page:R,pageSize:E,pageSizes:b,totalItems:A.length,className:D.pagination,onChange:function(e){var t=e.pageSize,i=e.page;t!==E&&x(t),i!==R&&P(i)}}))}))):n().createElement("div",{className:D.activeVisitsContainer},n().createElement(s.mh4,null,n().createElement(s.n9L,{className:D.tile},n().createElement("div",{className:(0,r.isDesktop)(p)?D.desktopHeading:D.tabletHeading},n().createElement("h4",null,d("activeVisits","Active Visits"))),n().createElement(o,null),n().createElement("p",{className:D.content},d("noActiveVisitsForLocation","There are no active visits to display for this location.")))))}}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_active_visits_app=globalThis.webpackChunk_openmrs_esm_active_visits_app||[]).push([[399],{7935:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var i=t(1799),a=t.n(i),s=t(2609),o=t.n(s)()(a());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-active-visits__active-visits__productiveHeading01___5dzOt{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-active-visits__active-visits__productiveHeading02___-o9Tn{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)}.-esm-active-visits__active-visits__bodyLong01___xwAEE{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-active-visits__active-visits__caption01___e7sSC{font-size:var(--cds-legal-01-font-size, 0.75rem);font-weight:var(--cds-legal-01-font-weight, 400);line-height:var(--cds-legal-01-line-height, 1.33333);letter-spacing:var(--cds-legal-01-letter-spacing, 0.32px)}.-esm-active-visits__active-visits__bodyShort02___BiPkR{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-active-visits__active-visits__text02___lkEHs{color:#525252}.-esm-active-visits__active-visits__text01___iTf3H{color:#161616}.-esm-active-visits__active-visits__activeVisitsContainer___XAE0K{background-color:#fff;border:1px solid #e0e0e0;width:100%;margin:0 auto;max-width:95vw}.-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-active-visits__active-visits__backgroundDataFetchingIndicator___YszBc{align-items:center;display:flex;flex:1 1 0%;justify-content:center}.-esm-active-visits__active-visits__tableContainer___27wfu section{position:relative}.-esm-active-visits__active-visits__tableContainer___27wfu a{text-decoration:none}.-esm-active-visits__active-visits__pagination___h8NbE{overflow:hidden}.-esm-active-visits__active-visits__pagination___h8NbE.cds--pagination{border-top:none}.-esm-active-visits__active-visits__hiddenRow___nho0Q{display:none}.-esm-active-visits__active-visits__emptyRow___jKDsj{padding:0 1rem;display:flex;align-items:center}.-esm-active-visits__active-visits__visitSummaryContainer___mBkXn{width:100%;max-width:768px;margin:1rem auto}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO>td>div{max-height:max-content !important}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO td{padding:0 2rem}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO th[colspan] td[colspan]>div:first-child{padding:0 1rem}.-esm-active-visits__active-visits__action___Kn0CE{margin-bottom:.5rem}.-esm-active-visits__active-visits__content___hF3rN{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-active-visits__active-visits__desktopHeading___3cKg8,.-esm-active-visits__active-visits__tabletHeading___vrNoH{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-active-visits__active-visits__desktopHeading___3cKg8 h4,.-esm-active-visits__active-visits__tabletHeading___vrNoH h4{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}.-esm-active-visits__active-visits__desktopHeading___3cKg8 h4:after,.-esm-active-visits__active-visits__tabletHeading___vrNoH h4:after{content:"";display:block;width:2rem;padding-top:3px;border-bottom:.375rem solid;border-bottom-color:#007d79;border-bottom-color:var(--brand-03)}.-esm-active-visits__active-visits__tile___OJ1Dy{text-align:center}',"",{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/active-visits-widget/active-visits.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCpDF,gECu0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDn0BJ,gECm0BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD/zBJ,uDC+zBI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD3zBJ,sDC2zBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDvzBJ,wDCuzBI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDnzBJ,mDACE,aDnBQ,CCsBV,mDACE,aDxBM,CAAA,kEGCN,qBHEc,CGDd,wBAAA,CACA,UAAA,CACA,aAAA,CACA,cAAA,CAGF,8EACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBHVc,CGahB,4EACE,kBAAA,CACA,YAAA,CACA,WAAA,CACA,sBAAA,CAGF,mEACE,iBAAA,CAGF,6DACE,oBAAA,CAGF,uDACE,eAAA,CAEA,uEACE,eAAA,CAIJ,sDACE,YAAA,CAGF,qDACE,cAAA,CACA,YAAA,CACA,kBAAA,CAGF,kEACE,UAAA,CACA,eAAA,CACA,gBAAA,CAGF,0EACE,iCAAA,CAGF,sEACE,cAAA,CAGF,2GACE,cAAA,CAGF,mDACE,mBCnDW,CDsDb,oDD+vBI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CC7vBF,aHxEQ,CGyER,eC/CW,CDgDX,mBC1DW,CD6Db,qHAEE,eAAA,CACA,yBAAA,CACA,kBCvDW,CDyDX,2HDkvBE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CChvBA,aHrFM,CGuFN,uIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,eAAA,CACA,2BAAA,CHjDJ,2BAAA,CACA,mCAAA,CGsDF,iDACE,iBAAA",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}\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/type';\n@import '~@openmrs/esm-styleguide/src/vars';\n\n.productiveHeading01 {\n @include type.type-style('heading-compact-01');\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n}\n\n.caption01 {\n @include type.type-style('legal-01');\n}\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n}\n\n.text02 {\n color: $text-02;\n}\n\n.text01 {\n color: $ui-05;\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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/// @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: carbon--type-scale(2),\n font-weight: carbon--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 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);\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 '../root.scss';\n\n.activeVisitsContainer {\n background-color: $ui-background;\n border: 1px solid $ui-03;\n width: 100%;\n margin: 0 auto;\n max-width: 95vw;\n}\n\n.activeVisitsDetailHeaderContainer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: spacing.$spacing-04 0 spacing.$spacing-04 spacing.$spacing-05;\n background-color: $ui-background;\n}\n\n.backgroundDataFetchingIndicator {\n align-items: center;\n display: flex;\n flex: 1 1 0%;\n justify-content: center;\n}\n\n.tableContainer section {\n position: relative;\n}\n\n.tableContainer a {\n text-decoration: none;\n}\n\n.pagination {\n overflow: hidden;\n\n &:global(.cds--pagination) {\n border-top: none;\n }\n}\n\n.hiddenRow {\n display: none;\n}\n\n.emptyRow {\n padding: 0 1rem;\n display: flex;\n align-items: center;\n}\n\n.visitSummaryContainer {\n width: 100%;\n max-width: 768px;\n margin: 1rem auto;\n}\n\n.expandedActiveVisitRow > td > div {\n max-height: max-content !important;\n}\n\n.expandedActiveVisitRow td {\n padding: 0 2rem;\n}\n\n.expandedActiveVisitRow th[colspan] td[colspan] > div:first-child {\n padding: 0 1rem;\n}\n\n.action {\n margin-bottom: spacing.$spacing-03;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: spacing.$spacing-05;\n margin-bottom: spacing.$spacing-03;\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: spacing.$spacing-05;\n\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n\n &:after {\n content: '';\n display: block;\n width: 2rem;\n padding-top: 3px;\n border-bottom: 0.375rem solid;\n @include brand-03(border-bottom-color);\n }\n }\n}\n\n.tile {\n text-align: center;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2021\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-active-visits__active-visits__productiveHeading01___5dzOt",productiveHeading02:"-esm-active-visits__active-visits__productiveHeading02___-o9Tn",bodyLong01:"-esm-active-visits__active-visits__bodyLong01___xwAEE",caption01:"-esm-active-visits__active-visits__caption01___e7sSC",bodyShort02:"-esm-active-visits__active-visits__bodyShort02___BiPkR",text02:"-esm-active-visits__active-visits__text02___lkEHs",text01:"-esm-active-visits__active-visits__text01___iTf3H",activeVisitsContainer:"-esm-active-visits__active-visits__activeVisitsContainer___XAE0K",activeVisitsDetailHeaderContainer:"-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu",backgroundDataFetchingIndicator:"-esm-active-visits__active-visits__backgroundDataFetchingIndicator___YszBc",tableContainer:"-esm-active-visits__active-visits__tableContainer___27wfu",pagination:"-esm-active-visits__active-visits__pagination___h8NbE",hiddenRow:"-esm-active-visits__active-visits__hiddenRow___nho0Q",emptyRow:"-esm-active-visits__active-visits__emptyRow___jKDsj",visitSummaryContainer:"-esm-active-visits__active-visits__visitSummaryContainer___mBkXn",expandedActiveVisitRow:"-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO",action:"-esm-active-visits__active-visits__action___Kn0CE",content:"-esm-active-visits__active-visits__content___hF3rN",desktopHeading:"-esm-active-visits__active-visits__desktopHeading___3cKg8",tabletHeading:"-esm-active-visits__active-visits__tabletHeading___vrNoH",tile:"-esm-active-visits__active-visits__tile___OJ1Dy"};const l=o},6824:function(e){e.exports=function(){"use strict";return function(e,n,t){n.prototype.isToday=function(){var e="YYYY-MM-DD",n=t();return this.format(e)===n.format(e)}}}()},9399:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>T});var i=t(5206),a=t.n(i),s=t(1313),o=t(906),l=t(4924),r=function(e){var n=e.width,t=void 0===n?"64":n,i=e.height,s=void 0===i?"64":i;return a().createElement("svg",{width:t,height:s,viewBox:"0 0 64 64"},a().createElement("title",null,"Empty data illustration"),a().createElement("g",{fill:"none",fillRule:"evenodd"},a().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),a().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),a().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),a().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},c=t(9984),p=t(3565),d=t.n(p),u=t(6824),g=t.n(u);const f=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0};d().extend(g());var h=t(6062),y=t.n(h),m=t(4036),v=t.n(m),b=t(6793),A=t.n(b),_=t(7892),$=t.n(_),w=t(1173),x=t.n(w),C=t(2464),k=t.n(C),z=t(7935),E={};E.styleTagTransform=k(),E.setAttributes=$(),E.insert=A().bind(null,"head"),E.domAPI=v(),E.insertStyleElement=x(),y()(z.Z,E);const D=z.Z&&z.Z.locals?z.Z.locals:void 0;function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function 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 H(){return H=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},H.apply(this,arguments)}function N(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,s=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(i=t.next()).done)&&(s.push(i.value),!n||s.length!==n);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw a}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return M(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)?M(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 B=function(e){var n=e.from,t=e.to,i=e.children;return a().createElement("a",{onClick:function(e){return function(e,t){e.preventDefault(),(0,o.navigate)({to:t}),localStorage.setItem("fromPage",n)}(e,t)},href:(0,o.interpolateUrl)(t)},i)};const T=function(){var e,n,t,p,u=(0,l.useTranslation)().t,g=(0,o.useConfig)(),h=(0,o.useLayoutType)(),y=function(){var e,n,t=(0,o.useSession)(),i=d()().format("YYYY-MM-DD"),a=null==t||null===(e=t.sessionLocation)||void 0===e?void 0:e.uuid,s="/ws/rest/v1/visit?includeInactive=false&v=".concat("custom:(uuid,patient:(uuid,identifiers:(identifier,uuid),person:(age,display,gender,uuid)),visitType:(uuid,name,display),location:(uuid,name,display),startDatetime,stopDatetime)&fromStartDate="+i+"&location="+a),l=(0,c.ZP)(a?s:null,o.openmrsFetch),r=l.data,p=l.error,u=l.isLoading,g=l.isValidating,f=(null==r||null===(n=r.data)||void 0===n?void 0:n.results.length)?r.data.results.map((function(e){var n,t,i,a,s,o,l,r,c,p,d;return{age:null==e||null===(n=e.patient)||void 0===n||null===(t=n.person)||void 0===t?void 0:t.age,id:e.uuid,idNumber:null===(a=null==e||null===(i=e.patient)||void 0===i?void 0:i.identifiers[0])||void 0===a?void 0:a.identifier,gender:null==e||null===(s=e.patient)||void 0===s||null===(o=s.person)||void 0===o?void 0:o.gender,location:null==e||null===(l=e.location)||void 0===l?void 0:l.uuid,name:null==e||null===(r=e.patient)||void 0===r||null===(c=r.person)||void 0===c?void 0:c.display,patientUuid:null==e||null===(p=e.patient)||void 0===p?void 0:p.uuid,visitStartTime:null==e?void 0:e.startDatetime,visitType:null==e||null===(d=e.visitType)||void 0===d?void 0:d.display,visitUuid:e.uuid}})).filter((function(e){var n=e.visitStartTime;return d()(n).isToday()})):[];return{activeVisits:f,isLoading:u,isError:p,isValidating:g}}(),m=y.activeVisits,v=y.isLoading,b=y.isValidating,A=null!==(t=null==g||null===(e=g.activeVisits)||void 0===e?void 0:e.pageSizes)&&void 0!==t?t:[10,20,30,40,50],_=N((0,i.useState)(null!==(p=null==g||null===(n=g.activeVisits)||void 0===n?void 0:n.pageSize)&&void 0!==p?p:10),2),$=_[0],w=_[1],x=N((0,i.useState)(""),2),C=x[0],k=x[1],z=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/");return f(e)}(window.location.pathname),E=(0,i.useMemo)((function(){return[{id:0,header:u("visitStartTime","Visit Time"),key:"visitStartTime"},{id:1,header:u("idNumber","ID Number"),key:"idNumber"},{id:2,header:u("name","Name"),key:"name"},{id:3,header:u("gender","Gender"),key:"gender"},{id:4,header:u("age","Age"),key:"age"},{id:5,header:u("visitType","Visit Type"),key:"visitType"}]}),[u]),M=m.map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),i.forEach((function(n){S(e,n,t[n])}))}return e}({},e),t=null!=(t={visitStartTime:(0,o.formatDatetime)((0,o.parseDate)(e.visitStartTime))})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t})),T=(0,i.useMemo)((function(){if(C&&""!==C.trim()){var e=C.toLowerCase();return M.filter((function(n){return Object.keys(n).some((function(t){return"patientUuid"!==t&&"".concat(n[t]).toLowerCase().includes(e)}))}))}return M}),[C,M]),O=(0,o.usePagination)(T,$),V=O.goTo,F=O.results,j=O.currentPage,I=(0,i.useCallback)((function(e){return k(e.target.value)}),[]);return(0,i.useEffect)((function(){1!==j&&V(1)}),[C]),v?a().createElement(s.gqd,{role:"progressbar"}):(null==m?void 0:m.length)?a().createElement("div",{className:D.activeVisitsContainer},a().createElement("div",{className:D.activeVisitsDetailHeaderContainer},a().createElement("div",{className:(0,o.isDesktop)(h)?D.desktopHeading:D.tabletHeading},a().createElement("h4",null,u("activeVisits","Active Visits"))),a().createElement("div",{className:D.backgroundDataFetchingIndicator},a().createElement("span",null,b?a().createElement(s.lSo,null):null))),a().createElement(s.wQF,{rows:F,headers:E,size:(0,o.isDesktop)(h)?"xs":"md",useZebraStyles:(null==m?void 0:m.length)>1},(function(e){var n=e.rows,t=e.headers,i=e.getHeaderProps,l=e.getTableProps,r=e.getBatchActionProps,c=e.getRowProps;return a().createElement(s.xJi,{className:D.tableContainer},a().createElement(s.fjU,null,a().createElement(s.Vj0,null,a().createElement(s.olm,{tabIndex:r().shouldShowBatchActions?-1:0,labelText:"",placeholder:u("filterTable","Filter table"),onChange:I}))),a().createElement(s.iA_,H({className:D.activeVisitsTable},l()),a().createElement(s.ssF,null,a().createElement(s.SCH,null,a().createElement(s.MOD,null),t.map((function(e){return a().createElement(s.xDH,H({},i({header:e})),e.header)})))),a().createElement(s.RMI,null,n.map((function(e,n){var i,l,r;return a().createElement(a().Fragment,{key:n},a().createElement(s.RcE,H({},c({row:e}),{"data-testid":"activeVisitRow".concat(null==F||null===(i=F[n])||void 0===i?void 0:i.patientUuid)}),e.cells.map((function(e){var t;return a().createElement(s.pj1,{key:e.id,"data-testid":e.id},"name"===e.info.header?a().createElement(B,{from:z,to:"${openmrsSpaBase}/patient/".concat(null==F||null===(t=F[n])||void 0===t?void 0:t.patientUuid,"/chart/")},e.value):e.value)}))),e.isExpanded?a().createElement(s.SCH,{className:D.expandedActiveVisitRow},a().createElement("th",{colSpan:t.length+2},a().createElement(o.ExtensionSlot,{className:D.visitSummaryContainer,extensionSlotName:"visit-summary-slot",state:{visitUuid:null===(l=F[n])||void 0===l?void 0:l.visitUuid,patientUuid:null===(r=F[n])||void 0===r?void 0:r.patientUuid}}))):a().createElement(s.WdL,{className:D.hiddenRow,colSpan:t.length+2}))})))),0===n.length&&a().createElement("p",{style:{height:(0,o.isDesktop)(h)?"2rem":"3rem",margin:"1rem 1.5rem"},className:"".concat(D.emptyRow," ").concat(D.bodyLong01)},u("noVisitsFound","No matching visits found")),a().createElement(s.tlE,{forwardText:"Next page",backwardText:"Previous page",page:j,pageSize:$,pageSizes:A,totalItems:T.length,className:D.pagination,onChange:function(e){var n=e.pageSize,t=e.page;n!==$&&w(n),t!==j&&V(t)}}))}))):a().createElement("div",{className:D.activeVisitsContainer},a().createElement(s.mh4,null,a().createElement(s.n9L,{className:D.tile},a().createElement("div",{className:(0,o.isDesktop)(h)?D.desktopHeading:D.tabletHeading},a().createElement("h4",null,u("activeVisits","Active Visits"))),a().createElement(r,null),a().createElement("p",{className:D.content},u("noActiveVisitsForLocation","There are no active visits to display for this location.")))))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"399.js","mappings":"6MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8vIAAiwI,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4BAA4B,gEAAgE,0DAA0D,8EAA8E,MAAQ,GAAG,SAAW,ygCAAygC,eAAiB,CAAC,ypDAAypD,sfAAsf,s5tBAAs5tB,64DAA64D,25DAA25D,WAAa,MAE5/kCH,EAAwBI,OAAS,CAChC,oBAAuB,iEACvB,oBAAuB,iEACvB,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CAAIC,WAAYE,EAAAA,EAAAA,WAAU/E,GAAiC8E,EAAAA,eAAvBA,EAAAA,eACnC,kBAACE,KAAAA,KAAI/H,EAAE,eAAgB,mBAEzB,kBAACK,EAAqBA,MACtB,kBAACsK,IAAAA,CAAE/C,UAAWC,EAAAA,SACX7H,EAAE,4BAA6B,+DAM5C,C","sources":["webpack://@openmrs/esm-active-visits-app/./src/active-visits-widget/active-visits.scss","webpack://@openmrs/esm-active-visits-app/../../node_modules/dayjs/plugin/isToday.js","webpack://@openmrs/esm-active-visits-app/./src/active-visits-widget/empty-data-illustration.component.tsx","webpack://@openmrs/esm-active-visits-app/../../node_modules/lodash-es/last.js","webpack://@openmrs/esm-active-visits-app/./src/active-visits-widget/active-visits.resource.tsx","webpack://@openmrs/esm-active-visits-app/./src/active-visits-widget/active-visits.scss?6435","webpack://@openmrs/esm-active-visits-app/./src/active-visits-widget/active-visits.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","exports","e","o","t","prototype","isToday","this","format","EmptyDataIllustration","width","height","svg","viewBox","title","g","fill","fillRule","path","d","circle","cx","cy","r","array","length","undefined","dayjs","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","PatientNameLink","from","to","children","a","onClick","event","preventDefault","navigate","localStorage","setItem","handleNameClick","href","interpolateUrl","config","useTranslation","useConfig","layout","useLayoutType","useActiveVisits","currentUserSession","data","useSession","startDate","sessionLocation","uuid","url","useSWR","openmrsFetch","error","isLoading","isValidating","formattedActiveVisits","results","map","visit","age","patient","person","idNumber","identifiers","identifier","gender","location","name","display","patientUuid","visitStartTime","startDatetime","visitType","visitUuid","filter","activeVisits","isError","pageSizes","useState","pageSize","currentPageSize","setPageSize","searchString","setSearchString","fromPage","pathname","split","last","getOriginFromPathName","window","headerData","useMemo","header","key","rowData","formatDatetime","parseDate","searchResults","trim","search","toLowerCase","activeVisitRow","Object","keys","some","includes","usePagination","goTo","currentPage","handleSearch","useCallback","target","value","useEffect","DataTableSkeleton","role","div","className","styles","isDesktop","h4","span","InlineLoading","DataTable","rows","paginatedActiveVisits","headers","size","useZebraStyles","getHeaderProps","getTableProps","getBatchActionProps","getRowProps","TableContainer","TableToolbar","TableToolbarContent","Search","tabIndex","shouldShowBatchActions","labelText","placeholder","onChange","Table","TableHead","TableRow","TableExpandHeader","TableHeader","TableBody","row","index","React","TableExpandRow","data-testid","cells","cell","TableCell","info","isExpanded","th","colSpan","ExtensionSlot","extensionSlotName","state","TableExpandedRow","p","style","margin","Pagination","forwardText","backwardText","page","totalItems","Layer","Tile"],"sourceRoot":""}