@kenyaemr/esm-active-visits-app 8.1.2-pre.220 → 8.1.2-pre.236

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.
Files changed (121) hide show
  1. package/.turbo/turbo-build.log +11 -38
  2. package/dist/102.js +1 -0
  3. package/dist/102.js.map +1 -0
  4. package/dist/116.js +1 -0
  5. package/dist/127.js +1 -0
  6. package/dist/177.js +1 -0
  7. package/dist/254.js +1 -0
  8. package/dist/273.js +1 -0
  9. package/dist/329.js +1 -0
  10. package/dist/329.js.map +1 -0
  11. package/dist/335.js +1 -0
  12. package/dist/335.js.map +1 -0
  13. package/dist/339.js +1 -0
  14. package/dist/343.js +1 -0
  15. package/dist/343.js.map +1 -0
  16. package/dist/381.js +1 -0
  17. package/dist/40.js +1 -0
  18. package/dist/431.js +1 -0
  19. package/dist/431.js.map +1 -0
  20. package/dist/465.js +1 -0
  21. package/dist/466.js +1 -0
  22. package/dist/466.js.map +1 -0
  23. package/dist/472.js +1 -0
  24. package/dist/472.js.map +1 -0
  25. package/dist/474.js +1 -0
  26. package/dist/549.js +1 -0
  27. package/dist/566.js +1 -1
  28. package/dist/577.js +11 -0
  29. package/dist/577.js.map +1 -0
  30. package/dist/603.js +1 -0
  31. package/dist/631.js +1 -0
  32. package/dist/689.js +1 -0
  33. package/dist/689.js.map +1 -0
  34. package/dist/697.js +1 -0
  35. package/dist/697.js.map +1 -0
  36. package/dist/720.js +1 -0
  37. package/dist/747.js +1 -0
  38. package/dist/747.js.map +1 -0
  39. package/dist/751.js +1 -0
  40. package/dist/754.js +1 -0
  41. package/dist/799.js +1 -0
  42. package/dist/802.js +1 -0
  43. package/dist/827.js +1 -0
  44. package/dist/847.js +1 -0
  45. package/dist/847.js.map +1 -0
  46. package/dist/85.js +1 -0
  47. package/dist/85.js.map +1 -0
  48. package/dist/868.js +1 -0
  49. package/dist/882.js +1 -0
  50. package/dist/91.js +1 -0
  51. package/dist/91.js.map +1 -0
  52. package/dist/916.js +1 -0
  53. package/dist/925.js +1 -0
  54. package/dist/970.js +1 -0
  55. package/dist/977.js +43 -0
  56. package/dist/977.js.map +1 -0
  57. package/dist/kenyaemr-esm-active-visits-app.js +6 -1
  58. package/dist/kenyaemr-esm-active-visits-app.js.buildmanifest.json +378 -304
  59. package/dist/kenyaemr-esm-active-visits-app.js.map +1 -1
  60. package/dist/main.js +16 -2
  61. package/dist/main.js.map +1 -1
  62. package/dist/routes.json +1 -1
  63. package/package.json +5 -8
  64. package/rspack.config.js +1 -0
  65. package/dist/106.js +0 -1
  66. package/dist/106.js.map +0 -1
  67. package/dist/130.js +0 -2
  68. package/dist/130.js.LICENSE.txt +0 -5
  69. package/dist/130.js.map +0 -1
  70. package/dist/136.js +0 -2
  71. package/dist/136.js.LICENSE.txt +0 -25
  72. package/dist/136.js.map +0 -1
  73. package/dist/233.js +0 -1
  74. package/dist/233.js.map +0 -1
  75. package/dist/236.js +0 -1
  76. package/dist/240.js +0 -1
  77. package/dist/261.js +0 -1
  78. package/dist/271.js +0 -1
  79. package/dist/272.js +0 -1
  80. package/dist/316.js +0 -2
  81. package/dist/316.js.LICENSE.txt +0 -19
  82. package/dist/316.js.map +0 -1
  83. package/dist/319.js +0 -1
  84. package/dist/325.js +0 -1
  85. package/dist/325.js.map +0 -1
  86. package/dist/336.js +0 -1
  87. package/dist/378.js +0 -1
  88. package/dist/443.js +0 -1
  89. package/dist/443.js.map +0 -1
  90. package/dist/460.js +0 -1
  91. package/dist/539.js +0 -1
  92. package/dist/574.js +0 -1
  93. package/dist/6.js +0 -1
  94. package/dist/6.js.map +0 -1
  95. package/dist/644.js +0 -1
  96. package/dist/652.js +0 -1
  97. package/dist/673.js +0 -1
  98. package/dist/705.js +0 -1
  99. package/dist/711.js +0 -1
  100. package/dist/725.js +0 -1
  101. package/dist/725.js.map +0 -1
  102. package/dist/727.js +0 -1
  103. package/dist/737.js +0 -1
  104. package/dist/744.js +0 -1
  105. package/dist/757.js +0 -1
  106. package/dist/784.js +0 -2
  107. package/dist/784.js.LICENSE.txt +0 -9
  108. package/dist/784.js.map +0 -1
  109. package/dist/788.js +0 -1
  110. package/dist/807.js +0 -1
  111. package/dist/814.js +0 -2
  112. package/dist/814.js.LICENSE.txt +0 -9
  113. package/dist/814.js.map +0 -1
  114. package/dist/833.js +0 -1
  115. package/dist/879.js +0 -1
  116. package/dist/879.js.map +0 -1
  117. package/dist/899.js +0 -1
  118. package/dist/967.js +0 -1
  119. package/dist/967.js.map +0 -1
  120. package/dist/main.js.LICENSE.txt +0 -25
  121. package/webpack.config.js +0 -1
@@ -1,40 +1,13 @@
1
- Browserslist: caniuse-lite is outdated. Please run:
2
- npx update-browserslist-db@latest
3
- Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
- assets by path *.js 2.33 MiB
5
- assets by chunk 1.75 MiB (id hint: vendors)
6
- asset 130.js 1.39 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
7
- asset 136.js 211 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
8
- asset 316.js 130 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
9
- asset 443.js 20 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
10
- asset 325.js 6.09 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
11
- + 35 assets
12
- assets by path *.json 19.8 KiB
13
- asset kenyaemr-esm-active-visits-app.js.buildmanifest.json 19.3 KiB [emitted]
14
- asset routes.json 541 bytes [emitted] [from: src/routes.json] [copied]
15
- orphan modules 4.88 MiB [orphan] 601 modules
16
- runtime modules 42.2 KiB 30 modules
17
- built modules 6.98 MiB (javascript) 294 bytes (share-init) 294 bytes (consume-shared) [built]
18
- javascript modules 6.96 MiB 78 modules
19
- optional modules 28.3 KiB [optional]
20
- ./translations/am.json 1.01 KiB [optional] [built] [code generated]
21
- + 24 modules
22
- provide-module modules 294 bytes
23
- modules by path provide shared module (default) swr/ 84 bytes 2 modules
24
- + 5 modules
25
- consume-shared-module modules 294 bytes
26
- modules by path consume shared module (default) swr/ 84 bytes 2 modules
27
- + 5 modules
1
+ WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
2
+ │ Assets:
3
+ │ main.js (459.781 KiB)
4
+ │ 977.js (2.190 MiB)
5
+ 
28
6
 
29
- WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
30
- This can impact web performance.
31
- Assets:
32
- main.js (350 KiB)
33
- 130.js (1.39 MiB)
7
+ WARNING in ⚠ entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244.141 KiB). This can impact web performance.
8
+ │ Entrypoints:
9
+ │ main (459.781 KiB)
10
+ │ main.js
11
+ 
34
12
 
35
- WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
36
- Entrypoints:
37
- main (350 KiB)
38
- main.js
39
-
40
- webpack 5.88.0 compiled with 2 warnings in 156453 ms
13
+ Rspack compiled with 2 warnings in 41.72 s
package/dist/102.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["102"],{5085:function(e,t,a){a.r(t),a.d(t,{default:()=>u});var n=a(2044),s=a.n(n),i=a(7996),l=a(8836),c=a(9819),r=a(3624),o=a(4470);let u=function(){var e,t,a,n,u,d,m,p,v=(n=null==(a=(0,c.useSession)())||null==(e=a.sessionLocation)?void 0:e.uuid,d=(u=(0,r.Ay)(function(){var e="".concat(c.restBaseUrl,"/visit?v=").concat("custom:(uuid,startDatetime,stopDatetime)","&"),t=new URLSearchParams;return t.append("includeInactive","false"),t.append("totalCount","true"),t.append("location","".concat(n)),e+t.toString()},c.openmrsFetch)).data,m=u.error,p=u.isLoading,{count:null==d||null==(t=d.data)?void 0:t.totalCount,error:m,isLoading:p}).count,_=(0,l.useTranslation)().t;return s().createElement(i.FAs,{className:o.A.tileContainer},s().createElement("header",{className:o.A.tileHeader},_("activeVisits","Active Visits")),s().createElement("div",{className:o.A.displayDetails},s().createElement("div",{className:o.A.countLabel},_("patients","Patients")),s().createElement("div",{className:o.A.displayData},null!=v?v:0)))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"102.js","sources":["webpack://@kenyaemr/esm-active-visits-app/./src/home-page-tiles/active-visits-metric-tile/active-visits-tile.component.tsx","webpack://@kenyaemr/esm-active-visits-app/./src/home-page-tiles/active-visits-metric-tile/active-visits.resource.ts"],"names":["session","data","sessionLocation","useSWR","error","isLoading","count","useActiveVisits","useSession","uuid","url","customRepresentation","restBaseUrl","urlSearchParams","URLSearchParams","append","toString","openmrsFetch","totalCount","t","useTranslation","Tile","className","styles","header","div"],"mappings":"4QAsBA,MAhBmC,WACjC,ICFwBA,EAkBfC,EAnBHD,EACAE,EAe6BC,EAA3BF,EAAMG,EAAOC,EDbbC,EAAUC,CCFZL,SADAF,EAAUQ,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,MACQR,MAAAA,CAAAA,EAAAA,EAASE,eAAe,AAAD,EAAvBF,KAAAA,EAAAA,EAA0BS,IAAI,CAe9CR,EAA2BE,CAAAA,EAAAA,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAXpB,WACb,IAAIO,EAAO,GAAyBC,MAAAA,CAAvBC,EAAAA,WAAWA,CAAC,aAAgC,OAH9B,2CAG8B,KACrDC,EAAkB,IAAIC,gBAM1B,OAJAD,EAAgBE,MAAM,CAAC,kBAAmB,SAC1CF,EAAgBE,MAAM,CAAC,aAAc,QACrCF,EAAgBE,MAAM,CAAC,WAAa,GAAkB,OAAhBb,IAE/BQ,EAAMG,EAAgBG,QAAQ,EACvC,EAEoFC,EAAAA,YAAYA,GAAxFhB,IAAI,CAAEG,EAAqBD,EAArBC,KAAK,CAAEC,EAAcF,EAAdE,SAAS,CAEvB,CACLC,KAAK,OAAEL,GAAAA,MAAAA,CAAAA,EAAAA,EAAMA,IAAI,AAAD,EAATA,KAAAA,EAAAA,EAAYiB,UAAU,CAC7Bd,MAAAA,EACAC,UAAAA,CACF,GDnBQC,KAAK,CAELa,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CAET,OACE,kBAACE,EAAAA,GAAIA,CAAAA,CAACC,UAAWC,EAAAA,CAAAA,CAAAA,aAAoB,A,EACnC,kBAACC,SAAAA,CAAOF,UAAWC,EAAAA,CAAAA,CAAAA,UAAiB,A,EAAGJ,EAAE,eAAgB,kBACzD,kBAACM,MAAAA,CAAIH,UAAWC,EAAAA,CAAAA,CAAAA,cAAqB,A,EACnC,kBAACE,MAAAA,CAAIH,UAAWC,EAAAA,CAAAA,CAAAA,UAAiB,A,EAAGJ,EAAE,WAAY,aAClD,kBAACM,MAAAA,CAAIH,UAAWC,EAAAA,CAAAA,CAAAA,WAAkB,A,EAAGjB,MAAAA,EAAAA,EAAS,IAItD,C"}
package/dist/116.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["116"],{8573:function(i){i.exports=JSON.parse('{"activeVisits":"Active Visits","age":"Age","allEncounters":"All Encounters","checkFilters":"Check the filters above","diagnoses":"Diagnoses","dose":"Dose","encounterType":"Encounter Type","endDate":"End date","filterTable":"Filter table","gender":"Gender","idNumber":"ID Number","indication":"Indication","medications":"Medications","name":"Name","noActiveVisitsForLocation":"There are no active visits to display for this location.","noDiagnosesFound":"No diagnoses found","noEncountersFound":"No encounters found","noMedicationsFound":"No medications found","noNotesToShowForPatient":"There are no notes to display for this patient","noObservationsFound":"No observations found","notes":"Notes","noVisitsToDisplay":"No visits to display","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","patients":"Patients","provider":"Provider","quantity":"Quantity","refills":"Refills","tests":"Tests","thereIsNoInformationToDisplayHere":"There is no information to display here","time":"Time","totalVisits":"Total Visits Today","visitStartTime":"Visit Time","visitSummary":"Visit Summary","visitType":"Visit Type"}')}}]);
package/dist/127.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["127"],{1066:function(i){i.exports=JSON.parse('{"activeVisits":"Active Visits","age":"Age","allEncounters":"All Encounters","checkFilters":"Check the filters above","diagnoses":"Diagnoses","dose":"Dose","encounterType":"Encounter Type","endDate":"End date","filterTable":"Filter table","idNumber":"ID Number","indication":"Indication","medications":"Medications","name":"Name","noActiveVisitsForLocation":"There are no active visits to display for this location.","noDiagnosesFound":"No diagnoses found","noEncountersFound":"No encounters found","noMedicationsFound":"No medications found","noNotesToShowForPatient":"There are no notes to display for this patient","noObservationsFound":"No observations found","notes":"Notes","noVisitsToDisplay":"No visits to display","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","patients":"Patients","provider":"Provider","quantity":"Quantity","refills":"Refills","sex":"Sex","tests":"Tests","thereIsNoInformationToDisplayHere":"There is no information to display here","time":"Time","totalVisits":"Total Visits Today","visitStartTime":"Visit Time","visitSummary":"Visit Summary","visitType":"Visit Type"}')}}]);
package/dist/177.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["177"],{32:function(i){i.exports=JSON.parse('{"activeVisits":"Active Visits","age":"Age","allEncounters":"All Encounters","checkFilters":"Check the filters above","diagnoses":"Diagnoses","dose":"Dose","encounterType":"Encounter Type","endDate":"End date","filterTable":"Filter table","gender":"Gender","idNumber":"ID Number","indication":"Indication","medications":"Medications","name":"Name","noActiveVisitsForLocation":"There are no active visits to display for this location.","noDiagnosesFound":"No diagnoses found","noEncountersFound":"No encounters found","noMedicationsFound":"No medications found","noNotesToShowForPatient":"There are no notes to display for this patient","noObservationsFound":"No observations found","notes":"Notes","noVisitsToDisplay":"No visits to display","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","patients":"Patients","provider":"Provider","quantity":"Quantity","refills":"Refills","tests":"Tests","thereIsNoInformationToDisplayHere":"There is no information to display here","time":"Time","totalVisits":"Total Visits Today","visitStartTime":"Visit Time","visitSummary":"Visit Summary","visitType":"Visit Type"}')}}]);
package/dist/254.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["254"],{109:function(i){i.exports=JSON.parse('{"activeVisits":"活动就诊","age":"年龄","allEncounters":"所有问诊记录","checkFilters":"检查上方的筛选条件","diagnoses":"诊断","dose":"剂量","encounterType":"问诊类型","endDate":"结束日期","filterTable":"筛选表格","gender":"性别","idNumber":"ID","indication":"适应症","medications":"药物","name":"姓名","noActiveVisitsForLocation":"在这个地点没有活动的就诊记录可供显示。","noDiagnosesFound":"未找到诊断","noEncountersFound":"未找到问诊记录","noMedicationsFound":"未找到药物","noNotesToShowForPatient":"该患者没有可显示的记录","noObservationsFound":"未找到观察记录","notes":"备注","noVisitsToDisplay":"没有就诊可显示","orderDurationAndUnit":"持续 {{duration}} {{durationUnit}}。","orderIndefiniteDuration":"无限期","patients":"患者","provider":"提供者","quantity":"数量","refills":"补充处方","tests":"检验","thereIsNoInformationToDisplayHere":"这里没有可显示的信息","time":"时间","totalVisits":"Total Visits Today","visitStartTime":"就诊时间","visitSummary":"就诊总结","visitType":"就诊类型"}')}}]);
package/dist/273.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["273"],{4552:function(i){i.exports=JSON.parse('{"activeVisits":"Active Visits","age":"Age","allEncounters":"All Encounters","checkFilters":"Check the filters above","diagnoses":"Diagnoses","dose":"Dose","encounterType":"Encounter Type","endDate":"End date","filterTable":"Filter table","gender":"Gender","idNumber":"ID Number","indication":"Indication","medications":"Medications","name":"Name","noActiveVisitsForLocation":"There are no active visits to display for this location.","noDiagnosesFound":"No diagnoses found","noEncountersFound":"No encounters found","noMedicationsFound":"No medications found","noNotesToShowForPatient":"There are no notes to display for this patient","noObservationsFound":"No observations found","notes":"Notes","noVisitsToDisplay":"No visits to display","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","patients":"Patients","provider":"Provider","quantity":"Quantity","refills":"Refills","tests":"Tests","thereIsNoInformationToDisplayHere":"There is no information to display here","time":"Time","totalVisits":"Total Visits Today","visitStartTime":"Visit Time","visitSummary":"Visit Summary","visitType":"Visit Type"}')}}]);
package/dist/329.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["329"],{3296:function(e,t,r){var n=r(2044),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,u=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return o(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),u(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s},8139:function(e,t,r){e.exports=r(3296)},2695:function(e,t,r){r.d(t,{f:()=>z,I:()=>k,u:()=>C,c:()=>W,B:()=>g,n:()=>F,g:()=>N,r:()=>R,U:()=>l,d:()=>$,o:()=>A,z:()=>b,s:()=>P,a:()=>d,O:()=>c,e:()=>s,S:()=>J,i:()=>w,t:()=>T,b:()=>u,m:()=>f});var n=r(2044),i=r(7395),a=Object.prototype.hasOwnProperty;let u=new WeakMap,o=()=>{},l=o(),c=Object,s=e=>e===l,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),g=e=>d(e.then),v={},p={},h="undefined",w=typeof window!=h,y=typeof document!=h,m=w&&"Deno"in window,b=(e,t)=>{let r=u.get(e);return[()=>!s(t)&&e.get(t)||v,n=>{if(!s(t)){let i=e.get(t);t in p||(p[t]=i),r[5](t,f(i,n),i||v)}},r[6],()=>!s(t)&&t in p?p[t]:!s(t)&&e.get(t)||v]},O=!0,[S,_]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],E={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{O=!0,e()},r=()=>{O=!1};return S("online",t),S("offline",r),()=>{_("online",t),_("offline",r)}}},k=!n.useId,R=!w||m,T=e=>w&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1),C=R?n.useEffect:n.useLayoutEffect,L="undefined"!=typeof navigator&&navigator.connection,j=!R&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),V=new WeakMap,D=(e,t)=>e===`[object ${t}]`,I=0,x=e=>{let t,r,n=typeof e,i=c.prototype.toString.call(e),a=D(i,"Date"),u=D(i,"RegExp"),o=D(i,"Object");if(c(e)!==e||a||u)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=V.get(e))return t;if(t=++I+"~",V.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=x(e[r])+",";V.set(e,t)}if(o){t="#";let n=c.keys(e).sort();for(;!s(r=n.pop());)s(e[r])||(t+=r+":"+x(e[r])+",");V.set(e,t)}}return t},P=e=>{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]},q=0,A=()=>++q;async function F(...e){let[t,r,n,a]=e,o=f({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{}),c=o.populateCache,v=o.rollbackOnError,p=o.optimisticData,h=o.throwOnError;if(d(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(w))}return w(r);async function w(r){let a,[f]=P(r);if(!f)return;let[w,y]=b(t,f),[m,O,S,_]=u.get(t),E=()=>{let e=m[f];return(d(o.revalidate)?o.revalidate(w().data,r):!1!==o.revalidate)&&(delete S[f],delete _[f],e&&e[0])?e[0](i.q2).then(()=>w().data):w().data};if(e.length<3)return E();let k=n,R=!1,T=A();O[f]=[T,0];let C=!s(p),L=w(),j=L.data,V=L._c,D=s(V)?j:V;if(C&&y({data:p=d(p)?p(D,j):p,_c:D}),d(k))try{k=k(D)}catch(e){a=e,R=!0}if(k&&g(k)){let e;if(k=await k.catch(e=>{a=e,R=!0}),T!==O[f][0]){if(R)throw a;return k}R&&C&&(e=a,"function"==typeof v?v(e):!1!==v)&&(c=!0,y({data:D,_c:l}))}if(c&&!R&&(d(c)?y({data:c(k,D),error:l,_c:l}):y({data:k,error:l,_c:l})),O[f][1]=A(),Promise.resolve(E()).then(()=>{y({_c:l})}),R){if(h)throw a;return}return k}}let M=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},U=(e,t)=>{if(!u.has(e)){let r=f(E,t),n=Object.create(null),a=F.bind(l,e),c=o,s=Object.create(null),d=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},g=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},v=()=>{if(!u.has(e)&&(u.set(e,[n,Object.create(null),Object.create(null),Object.create(null),a,g,d]),!R)){let t=r.initFocus(setTimeout.bind(l,M.bind(l,n,i.CC))),a=r.initReconnect(setTimeout.bind(l,M.bind(l,n,i.jB)));c=()=>{t&&t(),a&&a(),u.delete(e)}}};return v(),[e,a,v,c]}return[e,u.get(e)[4]]},[W,B]=U(new Map),$=f({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,u=i.retryCount,o=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(s(a)||!(u>a))&&setTimeout(n,o,i)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:j?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:j?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(a.call(t,n)&&++i&&!a.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:W,mutate:B,fallback:{}},{isOnline:()=>O,isVisible:()=>{let e=y&&document.visibilityState;return s(e)||"hidden"!==e}}),z=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:u}=t;n&&a&&(r.use=n.concat(a)),i&&u&&(r.fallback=f(i,u))}return r},J=(0,n.createContext)({}),N=e=>{let{value:t}=e,r=(0,n.useContext)(J),i=d(t),a=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),u=(0,n.useMemo)(()=>i?a:z(r,a),[i,r,a]),o=a&&a.provider,c=(0,n.useRef)(l);o&&!c.current&&(c.current=U(o(u.cache||W),a));let s=c.current;return s&&(u.cache=s[0],u.mutate=s[1]),C(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,n.createElement)(J.Provider,f(e,{value:u}))}},2215:function(e,t,r){r.d(t,{q:()=>n});let n="$inf$"},7395:function(e,t,r){r.d(t,{CC:()=>n,I0:()=>u,jB:()=>i,q2:()=>a});let n=0,i=1,a=2,u=3},4764:function(e,t,r){r.d(t,{Ht:()=>f,aw:()=>d,qm:()=>s});var n=r(2695),i=r(2215),a=r(2044);let u=n.i&&window.__SWR_DEVTOOLS_USE__,o=u?window.__SWR_DEVTOOLS_USE__:[],l=e=>(0,n.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],c=o.concat(e=>(t,r,a)=>{let u=r&&((...e)=>{let[a]=(0,n.s)(t),[,,,u]=n.b.get(n.c);if(a.startsWith(i.q))return r(...e);let o=u[a];return(0,n.e)(o)?r(...e):(delete u[a],o)});return e(t,u,a)}),s=e=>function(...t){let r,i=(r=(0,a.useContext)(n.S),(0,a.useMemo)(()=>(0,n.m)(n.d,r),[r])),[u,o,s]=l(t),d=(0,n.f)(i,s),f=e,{use:g}=d,v=(g||[]).concat(c);for(let e=v.length;e--;)f=v[e](f);return f(u,o||d.fetcher||null,d)},d=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},f=(e,t)=>(...r)=>{let[n,i,a]=l(r),u=(a.use||[]).concat(t);return e(n,i,{...a,use:u})};u&&(window.__SWR_DEVTOOLS_REACT__=a)},3624:function(e,t,r){r.d(t,{Ay:()=>v,BE:()=>g});var n=r(2044),i=r(8139),a=r(2695),u=r(7395),o=r(4764);let l=()=>{},c=l(),s=(new WeakMap,n.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),d={dedupe:!0},f=Promise.resolve(a.U),g=a.O.defineProperty(a.g,"defaultValue",{value:a.d}),v=(0,o.qm)((e,t,r)=>{let{cache:l,compare:c,suspense:g,fallbackData:v,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:w,refreshWhenHidden:y,refreshWhenOffline:m,keepPreviousData:b}=r,[O,S,_,E]=a.b.get(l),[k,R]=(0,a.s)(e),T=(0,n.useRef)(!1),C=(0,n.useRef)(!1),L=(0,n.useRef)(k),j=(0,n.useRef)(t),V=(0,n.useRef)(r),D=()=>V.current.isVisible()&&V.current.isOnline(),[I,x,P,q]=(0,a.z)(l,k),A=(0,n.useRef)({}).current,F=(0,a.e)(v)?(0,a.e)(r.fallback)?a.U:r.fallback[k]:v,M=(e,t)=>{for(let r in A)if("data"===r){if(!c(e[r],t[r])&&(!(0,a.e)(e[r])||!c(G,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},U=(0,n.useMemo)(()=>{let e=!!k&&!!t&&((0,a.e)(p)?!V.current.isPaused()&&!g&&!1!==h:p),r=t=>{let r=(0,a.m)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=I(),i=q(),u=r(n),o=n===i?u:r(i),l=u;return[()=>{let e=r(I());return M(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>o]},[l,k]),W=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>P(k,(t,r)=>{M(r,t)||e()}),[l,k]),U[0],U[1]),B=!T.current,$=O[k]&&O[k].length>0,z=W.data,J=(0,a.e)(z)?F&&(0,a.B)(F)?s(F):F:z,N=W.error,H=(0,n.useRef)(J),G=b?(0,a.e)(z)?(0,a.e)(H.current)?J:H.current:z:J,K=(!$||!!(0,a.e)(N))&&(B&&!(0,a.e)(p)?p:!V.current.isPaused()&&(g?!(0,a.e)(J)&&h:(0,a.e)(J)||h)),Q=!!(k&&t&&B&&K),X=(0,a.e)(W.isValidating)?Q:W.isValidating,Y=(0,a.e)(W.isLoading)?Q:W.isLoading,Z=(0,n.useCallback)(async e=>{let t,n,i=j.current;if(!k||!i||C.current||V.current.isPaused())return!1;let o=!0,l=e||{},s=!_[k]||!l.dedupe,d=()=>a.I?!C.current&&k===L.current&&T.current:k===L.current,f={isValidating:!1,isLoading:!1},g=()=>{x(f)},v=()=>{let e=_[k];e&&e[1]===n&&delete _[k]},p={isValidating:!0};(0,a.e)(I().data)&&(p.isLoading=!0);try{if(s&&(x(p),r.loadingTimeout&&(0,a.e)(I().data)&&setTimeout(()=>{o&&d()&&V.current.onLoadingSlow(k,r)},r.loadingTimeout),_[k]=[i(R),(0,a.o)()]),[t,n]=_[k],t=await t,s&&setTimeout(v,r.dedupingInterval),!_[k]||_[k][1]!==n)return s&&d()&&V.current.onDiscarded(k),!1;f.error=a.U;let e=S[k];if(!(0,a.e)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),s&&d()&&V.current.onDiscarded(k),!1;let u=I().data;f.data=c(u,t)?u:t,s&&d()&&V.current.onSuccess(t,k,r)}catch(r){v();let e=V.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,s&&d()&&(e.onError(r,k,e),(!0===t||(0,a.a)(t)&&t(r))&&(!V.current.revalidateOnFocus||!V.current.revalidateOnReconnect||D())&&e.onErrorRetry(r,k,e,e=>{let t=O[k];t&&t[0]&&t[0](u.I0,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return o=!1,g(),!0},[k,l]),ee=(0,n.useCallback)((...e)=>(0,a.n)(l,L.current,...e),[]);if((0,a.u)(()=>{j.current=t,V.current=r,(0,a.e)(z)||(H.current=z)}),(0,a.u)(()=>{if(!k)return;let e=Z.bind(a.U,d),t=0;V.current.revalidateOnFocus&&(t=Date.now()+V.current.focusThrottleInterval);let r=(0,o.aw)(k,O,(r,n={})=>{if(r==u.CC){let r=Date.now();V.current.revalidateOnFocus&&r>t&&D()&&(t=r+V.current.focusThrottleInterval,e())}else if(r==u.jB)V.current.revalidateOnReconnect&&D()&&e();else if(r==u.q2)return Z();else if(r==u.I0)return Z(n)});return C.current=!1,L.current=k,T.current=!0,x({_k:R}),K&&!_[k]&&((0,a.e)(J)||a.r?e():(0,a.t)(e)),()=>{C.current=!0,r()}},[k]),(0,a.u)(()=>{let e;function t(){let t=(0,a.a)(w)?w(I().data):w;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!I().error&&(y||V.current.isVisible())&&(m||V.current.isOnline())?Z(d).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[w,y,m,k]),(0,n.useDebugValue)(G),g){let e=k&&(0,a.e)(J);if(!a.I&&a.r&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(j.current=t,V.current=r,C.current=!1);let n=E[k];if(s(!(0,a.e)(n)&&e?ee(n):f),!(0,a.e)(N)&&e)throw N;let i=e?Z(d):f;!(0,a.e)(G)&&e&&(i.status="fulfilled",i.value=!0),s(i)}return{mutate:ee,get data(){return A.data=!0,G},get error(){return A.error=!0,N},get isValidating(){return A.isValidating=!0,X},get isLoading(){return A.isLoading=!0,Y}}})}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"329.js","sources":["webpack://@kenyaemr/esm-active-visits-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/dequal/lite/index.mjs","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/swr/dist/_internal/config-context-client-BoS53ST9.mjs","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/swr/dist/_internal/constants.mjs","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/swr/dist/_internal/events.mjs","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/swr/dist/_internal/index.mjs","webpack://@kenyaemr/esm-active-visits-app/../../node_modules/swr/dist/index/index.mjs"],"names":["r","Object","u","c","e","s","window","i","WeakMap","document","setTimeout","navigator","t","JSON","Array","o","Promise","Map","Math","Date","RegExp","k","f","clearTimeout","Error"],"mappings":"qKAWA,IAAI,EAAQA,EAAQ,M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H,EAAI,CAGxB,GADA,EADkB,CAAC,QAAc,IAAQ,EAAkB,GAAY,GAAO,GAE1E,CAAC,QAAc,IAAU,EACzB,MAAM,EAEV,IAAM,EAAe,EAAkB,EAAW,GAAe,CAC7D,EAAC,QAAc,IAAiB,IAEhC,EAAa,MAAM,CAAG,YAEtB,EAAa,KAAK,CAAG,IAEzB,EAAI,EACR,CAoBA,MAnBoB,CAChB,OAAQ,GACR,IAAI,MAAQ,CAER,OADA,EAAkB,IAAI,CAAG,GAClB,CACX,EACA,IAAI,OAAS,CAET,OADA,EAAkB,KAAK,CAAG,GACnB,CACX,EACA,IAAI,cAAgB,CAEhB,OADA,EAAkB,YAAY,CAAG,GAC1B,CACX,EACA,IAAI,WAAa,CAEb,OADA,EAAkB,SAAS,CAAG,GACvB,CACX,CACJ,CAEJ,E"}
package/dist/335.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_kenyaemr_esm_active_visits_app=globalThis.webpackChunk_kenyaemr_esm_active_visits_app||[]).push([["335"],{4781:function(e,n,t){"use strict";t.d(n,{A:()=>o});var i=t(1452),a=t.n(i),s=t(4567),r=t.n(s)()(a());r.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-active-visits__active-visits__container___XDupn{margin:0 1rem}.-esm-active-visits__active-visits__activeVisitsContainer___XAE0K{background-color:#fff;border:1px solid #e0e0e0;width:100%;margin:0 auto;max-width:95vw;padding-bottom:0}.-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__activeVisitsTable___ISQat{width:100%}.-esm-active-visits__active-visits__activeVisitsTable___ISQat th,.-esm-active-visits__active-visits__activeVisitsTable___ISQat td{white-space:nowrap;text-align:left}.-esm-active-visits__active-visits__activeVisitsTable___ISQat tbody tr[data-parent-row]:nth-last-of-type(2)>td{border-bottom:none}.-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:1px solid #e0e0e0}.-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:48rem;margin:1rem auto}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO td{padding:0 2rem}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO td>div{max-height:max-content !important}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO th[colspan] td[colspan]>div:first-child{padding:0 1rem}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO:last-of-type th[colspan]:last-child{border-bottom:none}.-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}.-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}.-esm-active-visits__active-visits__filterEmptyState___lrkdM{display:flex;justify-content:center;align-items:center;padding:1rem;margin:5rem;text-align:center}.-esm-active-visits__active-visits__filterEmptyStateTile___DzW91{margin:auto}.-esm-active-visits__active-visits__filterEmptyStateContent___Lknz\\+{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-active-visits__active-visits__filterEmptyStateHelper___z6MPO{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}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu{padding:.75rem 1rem .75rem 0}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__desktopHeading___3cKg8 h4,html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__tabletHeading___vrNoH h4{text-align:right}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K div[role=search] :first-child svg{left:unset;right:.5rem}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K div[role=search] :last-child{right:unset;left:0}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__tableContainer___27wfu{overflow-x:auto;text-wrap:nowrap}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__tableContainer___27wfu th>div{text-align:right}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__tableContainer___27wfu td{text-align:right}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__tableContainer___27wfu td .-esm-active-visits__active-visits__serviceColor___r2uPU{margin-right:0;margin-left:.5rem}html[dir=rtl] .-esm-active-visits__active-visits__activeVisitsContainer___XAE0K .-esm-active-visits__active-visits__tableContainer___27wfu td button{text-align:right}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/active-visits-widget/active-visits.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,sDACE,aAAA,CAGF,kEACE,qBDNM,CCON,wBAAA,CACA,UAAA,CACA,aAAA,CACA,cAAA,CACA,gBAAA,CAGF,8EACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDnBM,CCsBR,8DACE,UAAA,CAEA,kIAEE,kBAAA,CACA,eAAA,CAKA,+GACE,kBAAA,CAKN,4EACE,kBAAA,CACA,YAAA,CACA,WAAA,CACA,sBAAA,CAGF,mEACE,iBAAA,CAGF,6DACE,oBAAA,CAGF,uDACE,eAAA,CAEA,uEACE,4BAAA,CAIJ,sDACE,YAAA,CAGF,qDACE,cAAA,CACA,YAAA,CACA,kBAAA,CAGF,kEACE,UAAA,CACA,eAAA,CACA,gBAAA,CAIA,sEACE,cAAA,CAEA,0EACE,iCAAA,CAIJ,2GACE,cAAA,CAGF,uGACE,kBAAA,CAIJ,mDACE,mBC/EW,CDkFb,oDE2vBI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFzvBF,aDlGQ,CCmGR,eC3EW,CD4EX,mBCtFW,CDyFb,qHAEE,eAAA,CACA,yBAAA,CAEA,2HE+uBE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CF7uBA,aD9GM,CCgHN,uIACE,UAAA,CACA,aAAA,CACA,UCjFO,CDkFP,eAAA,CACA,2BAAA,CD1EJ,2BAAA,CACA,mCAAA,CC+EF,iDACE,iBAAA,CAGF,6DACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,YC3GW,CD4GX,WC9EW,CD+EX,iBAAA,CAGF,iEACE,WAAA,CAGF,qEE+sBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CF7sBF,aD9IQ,CC+IR,mBCjIW,CDoIb,mEEysBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFvsBF,aDpJQ,CC0JN,8JACE,4BAAA,CAKA,2RACE,gBAAA,CAMA,kHACE,UAAA,CACA,WC3JG,CD+JP,6GACE,WAAA,CACA,MAAA,CAIJ,2IACE,eAAA,CACA,gBAAA,CAEA,kJACE,gBAAA,CAGF,8IACE,gBAAA,CAEA,uMACE,cAAA,CACA,iBClLG,CDqLL,qJACE,gBAAA",sourcesContent:["@use '@carbon/layout';\n\n$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: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\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/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.container {\n margin: 0 layout.$spacing-05;\n}\n\n.activeVisitsContainer {\n background-color: $ui-02;\n border: 1px solid $ui-03;\n width: 100%;\n margin: 0 auto;\n max-width: 95vw;\n padding-bottom: 0;\n}\n\n.activeVisitsDetailHeaderContainer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.activeVisitsTable {\n width: 100%;\n\n th,\n td {\n white-space: nowrap;\n text-align: left;\n }\n\n tbody tr[data-parent-row] {\n // Don't show a bottom border on the last row so we don't end up with a double border from the activeVisitContainer\n &:nth-last-of-type(2) > td {\n border-bottom: none;\n }\n }\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: 1px solid $ui-03;\n }\n}\n\n.hiddenRow {\n display: none;\n}\n\n.emptyRow {\n padding: 0 layout.$spacing-05;\n display: flex;\n align-items: center;\n}\n\n.visitSummaryContainer {\n width: 100%;\n max-width: 48rem;\n margin: layout.$spacing-05 auto;\n}\n\n.expandedActiveVisitRow {\n td {\n padding: 0 layout.$spacing-07;\n\n > div {\n max-height: max-content !important;\n }\n }\n\n th[colspan] td[colspan] > div:first-child {\n padding: 0 layout.$spacing-05;\n }\n\n &:last-of-type th[colspan]:last-child {\n border-bottom: none;\n }\n}\n\n.action {\n margin-bottom: layout.$spacing-03;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: layout.$spacing-05;\n margin-bottom: layout.$spacing-03;\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\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: layout.$spacing-07;\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\n.filterEmptyState {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: layout.$spacing-05;\n margin: layout.$spacing-11;\n text-align: center;\n}\n\n.filterEmptyStateTile {\n margin: auto;\n}\n\n.filterEmptyStateContent {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n\n.filterEmptyStateHelper {\n @include type.type-style('body-compact-01');\n color: $text-02;\n}\n\n// Overriding styles for RTL support\nhtml[dir='rtl'] {\n .activeVisitsContainer {\n .activeVisitsDetailHeaderContainer {\n padding: layout.$spacing-04 layout.$spacing-05 layout.$spacing-04 0;\n }\n\n .desktopHeading,\n .tabletHeading {\n h4 {\n text-align: right;\n }\n }\n\n div[role='search'] {\n & :first-child {\n svg {\n left: unset;\n right: layout.$spacing-03;\n }\n }\n\n & :last-child {\n right: unset;\n left: 0;\n }\n }\n\n .tableContainer {\n overflow-x: auto;\n text-wrap: nowrap;\n\n th > div {\n text-align: right;\n }\n\n td {\n text-align: right;\n\n .serviceColor {\n margin-right: 0;\n margin-left: layout.$spacing-03;\n }\n\n button {\n text-align: right;\n }\n }\n }\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","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={container:"-esm-active-visits__active-visits__container___XDupn",activeVisitsContainer:"-esm-active-visits__active-visits__activeVisitsContainer___XAE0K",activeVisitsDetailHeaderContainer:"-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu",activeVisitsTable:"-esm-active-visits__active-visits__activeVisitsTable___ISQat",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",filterEmptyState:"-esm-active-visits__active-visits__filterEmptyState___lrkdM",filterEmptyStateTile:"-esm-active-visits__active-visits__filterEmptyStateTile___DzW91",filterEmptyStateContent:"-esm-active-visits__active-visits__filterEmptyStateContent___Lknz+",filterEmptyStateHelper:"-esm-active-visits__active-visits__filterEmptyStateHelper___z6MPO",serviceColor:"-esm-active-visits__active-visits__serviceColor___r2uPU"};let o=r},7796:function(e,n,t){"use strict";t.d(n,{A:()=>o});var i=t(1452),a=t.n(i),s=t(4567),r=t.n(s)()(a());r.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-active-visits__visit-detail-overview__container___mkGcD{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.-esm-active-visits__visit-detail-overview__encounterHeading___2xolA{text-align:left;width:100%;margin:0 1rem 1.3125rem;color:#161616}.-esm-active-visits__visit-detail-overview__medicationRecord___lye5q{display:flex;flex-direction:column;justify-content:space-between}.-esm-active-visits__visit-detail-overview__medicationRecord___lye5q .-esm-active-visits__visit-detail-overview__bodyLong01___3DCLv{margin:.25rem 0}.-esm-active-visits__visit-detail-overview__medicationContainer___btt6x{background-color:#f4f4f4;padding:1rem;width:100% !important}.-esm-active-visits__visit-detail-overview__dosage___-x3me{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__visit-detail-overview__metadata___5nPG2{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);color:#525252;margin:.5rem 0 1rem}.-esm-active-visits__visit-detail-overview__visitsDetailWidgetContainer___ZvlEp{background-color:#fff;width:100%;border:1px solid #e0e0e0}.-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET{display:flex;justify-content:space-between;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid #007d79}.-esm-active-visits__visit-detail-overview__customTable___8OnwU th{padding:0 !important}.-esm-active-visits__visit-detail-overview__customTable___8OnwU tr[data-parent-row]:nth-child(odd) td{background-color:#fff}.-esm-active-visits__visit-detail-overview__customTable___8OnwU tbody tr[data-parent-row]:nth-child(even) td{background-color:#f4f4f4}.-esm-active-visits__visit-detail-overview__customTable___8OnwU td{border-bottom:none !important}.-esm-active-visits__visit-detail-overview__visitEmptyState___7PPoN{text-align:center;background-color:#fff;padding:2rem;border:1px solid #e0e0e0;width:100%}.-esm-active-visits__visit-detail-overview__encounterEmptyState___QNHmv{text-align:center;margin:0 1rem 1rem 1rem}.-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ>td{padding:inherit !important}.-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ>td>div{max-height:max-content !important}.-esm-active-visits__visit-detail-overview__observation___Eku\\+V{display:grid;grid-template-columns:max-content auto;grid-gap:.5rem;margin:.5rem 0}.-esm-active-visits__visit-detail-overview__observation___Eku\\+V>span{align-self:center}.-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF{background-color:#fff;display:grid;grid-template-columns:max-content auto;padding:1rem 0;margin:0 1rem}.-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF .cds--tabs{max-height:7rem}.-esm-active-visits__visit-detail-overview__flexSections___K3zUQ{display:flex}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK{margin:1rem 0;scroll-behavior:smooth}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK>ul{flex-direction:column !important}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK .cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item{margin-left:0}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK .cds--tabs--scrollable .cds--tabs--scrollable__nav-link{border-bottom:0 !important;border-left:2px solid #c6c6c6}.-esm-active-visits__visit-detail-overview__tab___ZEwef{outline:0;outline-offset:0;min-height:2rem}.-esm-active-visits__visit-detail-overview__tab___ZEwef:active,.-esm-active-visits__visit-detail-overview__tab___ZEwef:focus{outline:2px solid var(--brand-03) !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef[aria-selected=true]{border-left:3px solid var(--brand-03);border-bottom:none;font-weight:600;margin-left:0 !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef[aria-selected=false]{border-bottom:none;border-left:2px solid #e0e0e0;margin-left:0 !important}.-esm-active-visits__visit-detail-overview__tablist___l7Wdv .cds--tab--list{flex-direction:column;max-height:fit-content;overflow-x:visible}.-esm-active-visits__visit-detail-overview__tablist___l7Wdv>button .cds--tabs .cds--tabs__nav-link{border-bottom:none}.-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy{background-color:#f4f4f4;padding:.625rem 6.75rem .75rem 1.063rem;margin-top:1.5rem;width:100% !important}.-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy:first-child{margin-top:0}.-esm-active-visits__visit-detail-overview__diagnosisLabel___wvbjE{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:5px}.-esm-active-visits__visit-detail-overview__diagnosesList___Q28KT{display:flex;flex-flow:row wrap;padding-bottom:.5rem;margin:0 1rem;border-bottom:1px solid #e0e0e0}.-esm-active-visits__visit-detail-overview__actions___zAZ04{margin:0 1rem}.-esm-active-visits__visit-detail-overview__contentSwitcher___tCYpp .cds--content-switcher-btn{min-width:fit-content}.-esm-active-visits__visit-detail-overview__contentSwitcher___tCYpp .cds--content-switcher__label{height:1rem}.-esm-active-visits__visit-detail-overview__notesContainer___lGWpE{margin-bottom:2rem}.-esm-active-visits__visit-detail-overview__noteText___WoH0y{background-color:#f4f4f4;padding:1rem;width:100% !important;white-space:pre-wrap}.-esm-active-visits__visit-detail-overview__desktopHeading___-1uLJ,.-esm-active-visits__visit-detail-overview__tabletHeading___LNMhi{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-active-visits__visit-detail-overview__desktopHeading___-1uLJ h4,.-esm-active-visits__visit-detail-overview__tabletHeading___LNMhi 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__visit-detail-overview__desktopHeading___-1uLJ h4:after,.-esm-active-visits__visit-detail-overview__tabletHeading___LNMhi 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__visit-detail-overview__tile___MC37N{text-align:center}.-esm-active-visits__visit-detail-overview__emptyStateContent___JjzUp{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__visit-detail-overview__emptyStateContainer___kmnV4{background-color:#fff;border:1px solid #e0e0e0;width:100%;margin:0 auto;max-width:95vw;padding-bottom:0}.-esm-active-visits__visit-detail-overview__productiveHeading02___5-t\\+w{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__visit-detail-overview__bodyLong01___3DCLv{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__visit-detail-overview__caption01___yCfJc{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__visit-detail-overview__bodyShort02___fuXhU{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__visit-detail-overview__text02___hhPqo{color:#525252}.-esm-active-visits__visit-detail-overview__text01___8ug6t{color:#161616}html[dir=rtl] .-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET{padding:.75rem 1rem .75rem 0}html[dir=rtl] .-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET h4{text-align:right}html[dir=rtl] .-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>div>div :first-child{border-bottom-left-radius:unset;border-top-left-radius:unset;border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}html[dir=rtl] .-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>div>div :first-child[aria-selected=false]{border-left:unset;border-right:.0625rem solid #a6c8ff}html[dir=rtl] .-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>div>div :last-child{border-bottom-right-radius:unset;border-top-right-radius:unset;border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}html[dir=rtl] .-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>div>div :last-child[aria-selected=false]{border-right:unset;border-left:.0625rem solid #a6c8ff}html[dir=rtl] .-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF .-esm-active-visits__visit-detail-overview__tablist___l7Wdv>div button{text-align:right}html[dir=rtl] .-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF .-esm-active-visits__visit-detail-overview__tablist___l7Wdv>div button[aria-selected=true]{border-left:unset;border-right:3px solid var(--brand-03)}html[dir=rtl] .-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF .-esm-active-visits__visit-detail-overview__tablist___l7Wdv>div button[aria-selected=false]{border-left:unset;border-right:2px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/visits-summary/visit-detail-overview.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,8DACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,0BAAA,CAGF,qEACE,eAAA,CACA,UAAA,CACA,uBAAA,CACA,aDTM,CCYR,qEACE,YAAA,CACA,qBAAA,CACA,6BAAA,CAEA,oIACE,eAAA,CAIJ,wEACE,wBD3BM,CC4BN,YCCW,CAAA,qBAAA,CDGb,2DEg0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mE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;\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: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\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/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n}\n\n.encounterHeading {\n text-align: left;\n width: 100%;\n margin: 0 layout.$spacing-05 1.3125rem;\n color: $ui-05;\n}\n\n.medicationRecord {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n .bodyLong01 {\n margin: layout.$spacing-02 0;\n }\n}\n\n.medicationContainer {\n background-color: $ui-01;\n padding: layout.$spacing-05;\n width: 100% !important;\n}\n\n.dosage {\n @include type.type-style('heading-compact-01');\n}\n\n.metadata {\n @include type.type-style('label-01');\n color: $text-02;\n margin: layout.$spacing-03 0 layout.$spacing-05;\n}\n\n.visitsDetailWidgetContainer {\n background-color: $ui-background;\n width: 100%;\n border: 1px solid $ui-03;\n}\n\n.visitsDetailHeaderContainer {\n display: flex;\n justify-content: space-between;\n padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-05;\n background-color: $ui-background;\n}\n\n.visitsDetailHeaderContainer > h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid $brand-teal-01;\n}\n\n.customTable {\n th {\n padding: 0 !important;\n }\n\n tr[data-parent-row]:nth-child(odd) td {\n background-color: $ui-02;\n }\n\n tbody tr[data-parent-row]:nth-child(even) td {\n background-color: $ui-01;\n }\n\n td {\n border-bottom: none !important;\n }\n}\n\n.visitEmptyState {\n text-align: center;\n background-color: white;\n padding: layout.$spacing-07;\n border: 1px solid $ui-03;\n width: 100%;\n}\n\n.encounterEmptyState {\n text-align: center;\n margin: 0 layout.$spacing-05 layout.$spacing-05 layout.$spacing-05;\n}\n\n.expandedRow > td {\n padding: inherit !important;\n}\n\n.expandedRow > td > div {\n max-height: max-content !important;\n}\n\n.observation {\n display: grid;\n grid-template-columns: max-content auto;\n grid-gap: layout.$spacing-03;\n margin: layout.$spacing-03 0;\n}\n\n.observation > span {\n align-self: center;\n}\n\n.summaryContainer {\n background-color: $ui-background;\n display: grid;\n grid-template-columns: max-content auto;\n padding: layout.$spacing-05 0;\n margin: 0 layout.$spacing-05;\n\n :global(.cds--tabs) {\n max-height: 7rem;\n }\n}\n\n.flexSections {\n display: flex;\n}\n\n.verticalTabs {\n margin: layout.$spacing-05 0;\n scroll-behavior: smooth;\n\n > ul {\n flex-direction: column !important;\n }\n\n :global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item) {\n margin-left: 0;\n }\n\n :global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-link) {\n border-bottom: 0 !important;\n border-left: 2px solid $color-gray-30;\n }\n}\n\n.tab {\n outline: 0;\n outline-offset: 0;\n min-height: layout.$spacing-07;\n\n &:active,\n &:focus {\n outline: 2px solid var(--brand-03) !important;\n }\n\n &[aria-selected='true'] {\n border-left: 3px solid var(--brand-03);\n border-bottom: none;\n font-weight: 600;\n margin-left: 0 !important;\n }\n\n &[aria-selected='false'] {\n border-bottom: none;\n border-left: 2px solid $ui-03;\n margin-left: 0 !important;\n }\n}\n\n.tablist {\n :global(.cds--tab--list) {\n flex-direction: column;\n max-height: fit-content;\n overflow-x: visible;\n }\n\n > button :global(.cds--tabs .cds--tabs__nav-link) {\n border-bottom: none;\n }\n}\n\n.medicationBlock {\n background-color: $ui-01;\n padding: 0.625rem 6.75rem layout.$spacing-04 1.063rem;\n margin-top: layout.$spacing-06;\n width: 100% !important;\n}\n\n.medicationBlock:first-child {\n margin-top: 0;\n}\n\n.diagnosisLabel {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: 5px;\n}\n\n.diagnosesList {\n display: flex;\n flex-flow: row wrap;\n padding-bottom: layout.$spacing-03;\n margin: 0 layout.$spacing-05;\n border-bottom: 1px solid $ui-03;\n}\n\n.actions {\n margin: 0 layout.$spacing-05;\n}\n\n.contentSwitcher {\n // TODO: Remove once override gets added to styleguide\n :global(.cds--content-switcher-btn) {\n min-width: fit-content;\n }\n\n :global(.cds--content-switcher__label) {\n height: layout.$spacing-05;\n }\n}\n\n.notesContainer {\n margin-bottom: layout.$spacing-07;\n}\n\n.noteText {\n background-color: $ui-01;\n padding: layout.$spacing-05;\n width: 100% !important;\n white-space: pre-wrap;\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$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: layout.$spacing-07;\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\n.emptyStateContent {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: layout.$spacing-05;\n margin-bottom: layout.$spacing-03;\n}\n\n.emptyStateContainer {\n background-color: $ui-02;\n border: 1px solid $ui-03;\n width: 100%;\n margin: 0 auto;\n max-width: 95vw;\n padding-bottom: 0;\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// Overriding styles for RTL support\nhtml[dir='rtl'] {\n .visitsDetailHeaderContainer {\n padding: layout.$spacing-04 layout.$spacing-05 layout.$spacing-04 0;\n h4 {\n text-align: right;\n }\n & > div {\n & > div {\n & :first-child {\n border-bottom-left-radius: unset;\n border-top-left-radius: unset;\n border-bottom-right-radius: layout.$spacing-02;\n border-top-right-radius: layout.$spacing-02;\n }\n & :first-child[aria-selected='false'] {\n border-left: unset;\n border-right: 0.0625rem solid #a6c8ff;\n }\n & :last-child {\n border-bottom-right-radius: unset;\n border-top-right-radius: unset;\n border-bottom-left-radius: layout.$spacing-02;\n border-top-left-radius: layout.$spacing-02;\n }\n & :last-child[aria-selected='false'] {\n border-right: unset;\n border-left: 0.0625rem solid #a6c8ff;\n }\n }\n }\n }\n .summaryContainer {\n .tablist {\n & > div {\n button {\n text-align: right;\n }\n button[aria-selected='true'] {\n border-left: unset;\n border-right: 3px solid var(--brand-03);\n }\n button[aria-selected='false'] {\n border-left: unset;\n border-right: 2px solid #e0e0e0;\n }\n }\n }\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","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={container:"-esm-active-visits__visit-detail-overview__container___mkGcD",encounterHeading:"-esm-active-visits__visit-detail-overview__encounterHeading___2xolA",medicationRecord:"-esm-active-visits__visit-detail-overview__medicationRecord___lye5q",bodyLong01:"-esm-active-visits__visit-detail-overview__bodyLong01___3DCLv",medicationContainer:"-esm-active-visits__visit-detail-overview__medicationContainer___btt6x",dosage:"-esm-active-visits__visit-detail-overview__dosage___-x3me",metadata:"-esm-active-visits__visit-detail-overview__metadata___5nPG2",visitsDetailWidgetContainer:"-esm-active-visits__visit-detail-overview__visitsDetailWidgetContainer___ZvlEp",visitsDetailHeaderContainer:"-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET",customTable:"-esm-active-visits__visit-detail-overview__customTable___8OnwU",visitEmptyState:"-esm-active-visits__visit-detail-overview__visitEmptyState___7PPoN",encounterEmptyState:"-esm-active-visits__visit-detail-overview__encounterEmptyState___QNHmv",expandedRow:"-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ",observation:"-esm-active-visits__visit-detail-overview__observation___Eku+V",summaryContainer:"-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF",flexSections:"-esm-active-visits__visit-detail-overview__flexSections___K3zUQ",verticalTabs:"-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK",tab:"-esm-active-visits__visit-detail-overview__tab___ZEwef",tablist:"-esm-active-visits__visit-detail-overview__tablist___l7Wdv",medicationBlock:"-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy",diagnosisLabel:"-esm-active-visits__visit-detail-overview__diagnosisLabel___wvbjE",diagnosesList:"-esm-active-visits__visit-detail-overview__diagnosesList___Q28KT",actions:"-esm-active-visits__visit-detail-overview__actions___zAZ04",contentSwitcher:"-esm-active-visits__visit-detail-overview__contentSwitcher___tCYpp",notesContainer:"-esm-active-visits__visit-detail-overview__notesContainer___lGWpE",noteText:"-esm-active-visits__visit-detail-overview__noteText___WoH0y",desktopHeading:"-esm-active-visits__visit-detail-overview__desktopHeading___-1uLJ",tabletHeading:"-esm-active-visits__visit-detail-overview__tabletHeading___LNMhi",tile:"-esm-active-visits__visit-detail-overview__tile___MC37N",emptyStateContent:"-esm-active-visits__visit-detail-overview__emptyStateContent___JjzUp",emptyStateContainer:"-esm-active-visits__visit-detail-overview__emptyStateContainer___kmnV4",productiveHeading02:"-esm-active-visits__visit-detail-overview__productiveHeading02___5-t+w",caption01:"-esm-active-visits__visit-detail-overview__caption01___yCfJc",bodyShort02:"-esm-active-visits__visit-detail-overview__bodyShort02___fuXhU",text02:"-esm-active-visits__visit-detail-overview__text02___hhPqo",text01:"-esm-active-visits__visit-detail-overview__text01___8ug6t"};let o=r},3226:function(e,n,t){"use strict";t.r(n),t.d(n,{homeActiveVisitsTile:()=>ez,activeVisits:()=>ek,homeTotalVisitsTile:()=>eD,startupApp:()=>ex,importTranslation:()=>ew,visitDetail:()=>eE});var i=t(9819),a={activeVisits:{identifiers:{_type:i.Type.Array,_description:"Customizable list of identifiers to display on active visits table",_elements:{header:{key:{_type:i.Type.String,_default:null,_description:"Key to be used for translation purposes."},default:{_type:i.Type.String,_default:null,_description:"Default text to be displayed if no translation is found."}},identifierName:{_type:i.Type.String,_default:null,_description:"Name of the desired identifier to filter data returned from the visit resource."}},_default:null},pageSize:{_type:i.Type.Number,_description:"Count of active visits to be shown in a single page.",_default:10},pageSizes:{_type:i.Type.Array,_description:"Customizable page sizes that user can choose",_default:[10,20,50]},obs:{_type:i.Type.Array,_description:"Array of observation concept UUIDs to be displayed on the active visits table.",_elements:{_type:i.Type.UUID,_description:"UUID of an observation concept."},_default:[]}}},s=t(2044),r=t.n(s),o=t(7996),l=t(8836),c=function(e){var n=e.width,t=e.height;return r().createElement("svg",{width:void 0===n?"64":n,height:void 0===t?"64":t,viewBox:"0 0 64 64"},r().createElement("title",null,"Empty data illustration"),r().createElement("g",{fill:"none",fillRule:"evenodd"},r().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"}),r().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"}),r().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"}),r().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),r().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),r().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"}),r().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"}),r().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"}),r().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),r().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},p=t(5292),d=t.n(p),u=t(7248),g=t.n(u),f=t(5602),m=t.n(f),v=t(3624);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function h(e,n,t,i,a,s,r){try{var o=e[s](r),l=o.value}catch(e){t(e);return}o.done?n(l):Promise.resolve(l).then(i,a)}function b(e){return function(){var n=this,t=arguments;return new Promise(function(i,a){var s=e.apply(n,t);function r(e){h(s,i,a,r,o,"next",e)}function o(e){h(s,i,a,r,o,"throw",e)}r(void 0)})}}function _(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,n){if(e){if("string"==typeof e)return y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return y(e,n)}}function $(e,n){var t,i,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return r.next=o(0),r.throw=o(1),r.return=o(2),"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(o){return function(l){var c=[o,l];if(t)throw TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(s=0)),s;)try{if(t=1,i&&(a=2&c[0]?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,i=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){s.label=c[1];break}if(6===c[0]&&s.label<a[1]){s.label=a[1],a=c;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(c);break}a[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(e,s)}catch(e){c=[6,e],i=0}finally{t=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}g().extend(m());var C=t(2591),w=t.n(C),x=t(1740),k=t.n(x),E=t(8128),z=t.n(E),D=t(855),S=t.n(D),M=t(3051),N=t.n(M),T=t(3656),B=t.n(T),F=t(4781),j={};j.styleTagTransform=B(),j.setAttributes=S(),j.insert=z().bind(null,"head"),j.domAPI=k(),j.insertStyleElement=N(),w()(F.A,j);let I=F.A&&F.A.locals?F.A.locals:void 0;function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function H(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){var i;i=t[n],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return e}function L(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),!n||s.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return O(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V=t(7113),U=t.n(V),R=t(7796),P={};P.styleTagTransform=B(),P.setAttributes=S(),P.insert=z().bind(null,"head"),P.domAPI=k(),P.insertStyleElement=N(),w()(R.A,P);let G=R.A&&R.A.locals?R.A.locals:void 0;function q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}let W=function(e){var n=e.observations,t=(0,l.useTranslation)().t,i=(0,s.useMemo)(function(){return n&&n.map(function(e){var n,t=(n=e.display.split(":"),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),2!==s.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(n,2)||function(e,n){if(e){if("string"==typeof e)return q(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{question:t[0],answer:t[1]}})},[n]);return i?i.length>0?r().createElement("div",{className:G.observation},i.map(function(e,n){return r().createElement(r().Fragment,{key:n},r().createElement("span",{className:G.caption01},e.question,": "),r().createElement("span",{className:U()(G.bodyShort02,G.text01)},e.answer))})):r().createElement("p",{className:G.caption01},t("noObservationsFound","No observations found")):r().createElement(o.rrI,null)};function K(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function J(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){var i;i=t[n],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return e}let X=function(e){var n,t=e.encounters,a=e.visitUuid,c=(0,l.useTranslation)().t,p=(0,i.useLayoutType)(),d=(n=(0,s.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),2!==s.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(n,2)||function(e,n){if(e){if("string"==typeof e)return K(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],g=d[1],f=(0,s.useRef)(null),m=(0,s.useMemo)(function(){return[{id:1,header:c("time","Time"),key:"time"},{id:2,header:c("encounterType","Encounter Type"),key:"encounterType"},{id:3,header:c("provider","Provider"),key:"provider"}]},[c]);return(0,s.useEffect)(function(){g(null==f||null==(e=f.current)?void 0:e.clientWidth);var e,n=function(){var e;return g(null==f||null==(e=f.current)?void 0:e.clientWidth)};return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}},[]),t.length>0?r().createElement(o.bQt,{rows:t,headers:m},function(e){var n,s,l=e.rows,c=e.headers,d=e.getHeaderProps,g=e.getRowProps,m=e.getTableProps;return r().createElement(o.K3K,{"data-testid":"encountersTable"},r().createElement(o.XIK,(n=J({className:G.customTable},m()),s=s={size:(0,i.isDesktop)(p)?"sm":"md"},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(s)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(s,e))}),n),r().createElement(o.ndF,null,r().createElement(o.Hjg,null,r().createElement(o.Uwq,null),c.map(function(e,n){return 0===n?r().createElement(o.A0N,J({id:"header_".concat(a,"_").concat(n),ref:f},d({header:e})),e.header):r().createElement(o.A0N,J({id:"header_".concat(a,"_").concat(n)},d({header:e})),e.header)}))),r().createElement(o.BFY,null,l.map(function(e,n){return r().createElement(r().Fragment,{key:e.id},r().createElement(o.fZD,g({row:e}),e.cells.map(function(e){return r().createElement(o.nA6,{key:e.id,"data-testid":e.id},e.value)})),e.isExpanded&&r().createElement(o.cwJ,{className:G.expandedRow,style:{paddingLeft:(0,i.isDesktop)(p)?"3rem":"4rem"},colSpan:c.length+2},r().createElement("div",{style:{marginLeft:u}},r().createElement(W,{observations:t[n].obs}))))}))))}):r().createElement("div",{className:G.encounterEmptyState},r().createElement("h4",{className:G.productiveHeading02},c("noEncountersFound","No encounters found")),r().createElement("p",{className:U()(G.bodyLong01,G.text02)},c("thereIsNoInformationToDisplayHere","There is no information to display here")))},Q=function(e){var n=e.notes,t=(0,l.useTranslation)().t,a=(0,i.useLayoutType)();return r().createElement(r().Fragment,null,n.length?n.map(function(e,n){return r().createElement("div",{className:G.notesContainer,key:n},r().createElement("p",{className:U()(G.noteText,G.bodyLong01),"data-testid":"note"},e.note),r().createElement("p",{className:G.metadata},e.time," ",e.provider.name?r().createElement("span",null,"\xb7 ",e.provider.name," "):null,e.provider.role?r().createElement("span",null,"\xb7 ",e.provider.role):null))}):r().createElement("div",{className:G.emptyStateContainer},r().createElement(o.Wdr,null,r().createElement(o.FAs,{className:G.tile},r().createElement("div",{className:(0,i.isDesktop)(a)?G.desktopHeading:G.tabletHeading},r().createElement("h4",null,t("notes","Notes"))),r().createElement(c,null),r().createElement("p",{className:G.emptyStateContent},t("noNotesToShowForPatient","There are no notes to display for this patient"))))))};var Y=t(1158),Z=t(3279);let ee=function(e,n,t){var i=e.length;return t=void 0===t?i:t,!n&&t>=i?e:(0,Z.A)(e,n,t)};var en=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let et=function(e){return en.test(e)};var ei="\\ud800-\\udfff",ea="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",es="\\ud83c[\\udffb-\\udfff]",er="[^"+ei+"]",eo="(?:\\ud83c[\\udde6-\\uddff]){2}",el="[\\ud800-\\udbff][\\udc00-\\udfff]",ec="(?:"+ea+"|"+es+")?",ep="[\\ufe0e\\ufe0f]?",ed="(?:\\u200d(?:"+[er,eo,el].join("|")+")"+ep+ec+")*",eu=RegExp(es+"(?="+es+")|"+("(?:"+[er+ea+"?",ea,eo,el,"["+ei+"]"].join("|"))+")"+(ep+ec+ed),"g");let eg=function(e){var n,t=et(e=(0,Y.A)(e))?et(n=e)?n.match(eu)||[]:n.split(""):void 0,i=t?t[0]:e.charAt(0),a=t?ee(t,1).join(""):e.slice(1);return i.toUpperCase()+a},ef=function(e){var n=e.medications,t=(0,l.useTranslation)().t;return r().createElement(r().Fragment,null,n.length>0?r().createElement("div",{className:G.medicationRecord},n.map(function(e,n){var a,s,o,l,c,p,d,u,g,f,m,v,y,h,b,_,A,$,C,w,x,k,E,z,D,S,M,N,T,B,F,j,I,O,H,L,V,U,R,P,q,W,K,J,X,Q,Z,ee,en,et;return(null==(a=e.order)?void 0:a.dose)&&(null==(o=e.order)||null==(s=o.orderType)?void 0:s.display)==="Drug Order"&&r().createElement(r().Fragment,{key:n},r().createElement("div",{className:G.medicationContainer},r().createElement("div",null,r().createElement("p",{className:G.bodyLong01},r().createElement("strong",null,(et=null==e||null==(c=e.order)||null==(l=c.drug)?void 0:l.name,eg((0,Y.A)(et).toLowerCase())))," ",(null==e||null==(d=e.order)||null==(p=d.drug)?void 0:p.strength)&&r().createElement(r().Fragment,null,"— ",null==e||null==(f=e.order)||null==(g=f.drug)||null==(u=g.strength)?void 0:u.toLowerCase())," ",(null==e||null==(v=e.order)||null==(m=v.doseUnits)?void 0:m.display)&&r().createElement(r().Fragment,null,"— ",null==e||null==(b=e.order)||null==(h=b.doseUnits)||null==(y=h.display)?void 0:y.toLowerCase())," "),r().createElement("p",{className:G.bodyLong01},r().createElement("span",{className:G.label01}," ",t("dose","Dose").toUpperCase()," ")," ",r().createElement("span",{className:G.dosage},null==e||null==(_=e.order)?void 0:_.dose," ",null==e||null==(C=e.order)||null==($=C.doseUnits)||null==(A=$.display)?void 0:A.toLowerCase())," ",(null==(x=e.order)||null==(w=x.route)?void 0:w.display)&&r().createElement("span",null,"— ",null==e||null==(z=e.order)||null==(E=z.route)||null==(k=E.display)?void 0:k.toLowerCase()," — "),null==e||null==(M=e.order)||null==(S=M.frequency)||null==(D=S.display)?void 0:D.toLowerCase()," —"," ",(null==e||null==(N=e.order)?void 0:N.duration)?t("orderDurationAndUnit","for {{duration}} {{durationUnit}}",{duration:null==e||null==(T=e.order)?void 0:T.duration,durationUnit:null==e||null==(j=e.order)||null==(F=j.durationUnits)||null==(B=F.display)?void 0:B.toLowerCase()}):t("orderIndefiniteDuration","Indefinite duration"),(null==e||null==(I=e.order)?void 0:I.numRefills)!==0&&r().createElement("span",null,r().createElement("span",{className:G.label01}," — ",t("refills","Refills").toUpperCase())," ",null==e||null==(O=e.order)?void 0:O.numRefills,""),(null==e||null==(H=e.order)?void 0:H.dosingInstructions)&&r().createElement("span",null," — ",null==e||null==(V=e.order)||null==(L=V.dosingInstructions)?void 0:L.toLocaleLowerCase())),r().createElement("p",{className:G.bodyLong01},(null==e||null==(U=e.order)?void 0:U.orderReasonNonCoded)?r().createElement("span",null,r().createElement("span",{className:G.label01},t("indication","Indication").toUpperCase())," ",null==e||null==(R=e.order)?void 0:R.orderReasonNonCoded):null,(null==e||null==(P=e.order)?void 0:P.quantity)?r().createElement("span",null,r().createElement("span",{className:G.label01}," — ",t("quantity","Quantity").toUpperCase())," ",null==e||null==(q=e.order)?void 0:q.quantity):null,(null==e||null==(W=e.order)?void 0:W.dateStopped)?r().createElement("span",{className:G.bodyShort01},r().createElement("span",{className:G.label01},(null==e||null==(K=e.order)?void 0:K.quantity)?" — ":""," ",t("endDate","End date").toUpperCase())," ",(0,i.formatDate)(new Date(null==e||null==(J=e.order)?void 0:J.dateStopped))):null))),r().createElement("p",{className:G.metadata},(0,i.formatTime)((0,i.parseDate)(null==e||null==(X=e.order)?void 0:X.dateActivated)),(null==e||null==(Q=e.provider)?void 0:Q.name)&&r().createElement(r().Fragment,null," \xb7 ",null==e||null==(Z=e.provider)?void 0:Z.name),(null==e||null==(ee=e.provider)?void 0:ee.role)&&r().createElement(r().Fragment,null,", ",null==e||null==(en=e.provider)?void 0:en.role)))})):r().createElement("p",{className:U()(G.bodyLong01,G.text02)},t("noMedicationsFound","No medications found")))};function em(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}let ev=function(e){var n=e.patientUuid,t=e.encounters,a=(0,s.useMemo)(function(){var e=t.map(function(e){return"Encounter/".concat(e.uuid)});return function(n){var t,i=(function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),1!==s.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(n,1)||function(e,n){if(e){if("string"==typeof e)return em(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return em(e,1)}}(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return e.includes(null==(t=i.encounter)?void 0:t.reference)}},[t]);return r().createElement("div",{className:G.bodyLong01},r().createElement(i.ExtensionSlot,{name:"test-results-filtered-overview-slot",state:{filter:a,patientUuid:n}}))};function ey(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function eh(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),!n||s.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(e,n)||eb(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eb(e,n){if(e){if("string"==typeof e)return ey(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ey(e,n)}}let e_=function(e){var n=e.encounters,t=e.patientUuid,a=(0,l.useTranslation)().t,c=eh((0,s.useState)(0),2),p=(c[0],c[1]),d=eh((0,s.useMemo)(function(){var e=[],t=[],a=[];return n.forEach(function(n){var s;e.push.apply(e,function(e){if(Array.isArray(e))return ey(e)}(s=n.orders.map(function(e){return{order:e,provider:{name:n.encounterProviders.length?n.encounterProviders[0].provider.person.display:"",role:n.encounterProviders.length?n.encounterProviders[0].encounterRole.display:""}}}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||eb(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),"Visit Note"===n.encounterType.display&&n.obs.forEach(function(e){"Visit Diagnoses"===e.concept.display?t.push({diagnosis:e.groupMembers.find(function(e){return"PROBLEM LIST"===e.concept.display}).value.display,order:e.groupMembers.find(function(e){return"Diagnosis order"===e.concept.display}).value.display}):"Text of encounter note"===e.concept.display&&a.push({note:e.value,provider:{name:n.encounterProviders.length?n.encounterProviders[0].provider.person.display:"",role:n.encounterProviders.length?n.encounterProviders[0].encounterRole.display:""},time:(0,i.formatTime)((0,i.parseDate)(e.obsDatetime))})})}),[t,a,e]},[n]),3),u=d[0],g=d[1],f=d[2];return r().createElement("div",{className:G.summaryContainer},r().createElement("p",{className:G.diagnosisLabel},a("diagnoses","Diagnoses")),r().createElement("div",{className:G.diagnosesList},u.length>0?u.map(function(e,n){return r().createElement(o.vwO,{key:n,type:"Primary"===e.order?"blue":"red"},e.diagnosis)}):r().createElement("p",{className:U()(G.bodyLong01,G.text02),style:{marginBottom:"0.5rem"}},a("noDiagnosesFound","No diagnoses found"))),r().createElement(o.tUM,{className:G.verticalTabs},r().createElement(o.wbY,{"aria-label":"Visit summary tabs",className:G.tablist},r().createElement(o.ozo,{className:U()(G.tab,G.bodyLong01),onClick:function(){return p(0)},id:"notes-tab"},a("notes","Notes")),r().createElement(o.ozo,{className:G.tab,onClick:function(){return p(1)},id:"tests-tab"},a("tests","Tests")),r().createElement(o.ozo,{className:G.tab,onClick:function(){return p(2)},id:"tab-3"},a("medications","Medications"))),r().createElement(o.T2N,null,r().createElement(o.KpK,null,r().createElement(Q,{notes:g})),r().createElement(o.KpK,null,r().createElement(ev,{patientUuid:t,encounters:n})),r().createElement(o.KpK,null,r().createElement(ef,{medications:f})))))};function eA(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}var e$="@kenyaemr/esm-active-visits-app",eC={featureName:"active-visits",moduleName:e$},ew=t(1437);function ex(){(0,i.defineConfigSchema)(e$,a)}var ek=(0,i.getSyncLifecycle)(function(){var e,n,t,a,p,u,g,f,m,y,h,C,w,x,k,E,z,D,S,M,N,T,B,F,j,O,V,U,R,P,G,q,W=(0,l.useTranslation)().t,K=(0,i.useConfig)(),J=(0,i.useLayoutType)(),X=null!=(G=null==K||null==(R=K.activeVisits)?void 0:R.pageSizes)?G:[10,20,30,40,50],Q=L((0,s.useState)(null!=(q=null==K||null==(P=K.activeVisits)?void 0:P.pageSize)?q:10),2),Y=Q[0],Z=Q[1],ee=(e=K.activeVisits.obs,n=function(e){return b(function(){var n,t;return $(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,i.openmrsFetch)("".concat(i.restBaseUrl,"/concept/").concat(e,"?v=custom:(uuid,display)"))];case 1:return[2,null==(n=a.sent())?void 0:n.data];case 2:return t=a.sent(),console.error("Error fetching concept for UUID: ".concat(e),t),[2,null];case 3:return[2]}})})()},a=(t=(0,v.Ay)(e.length>0?["obs-concepts",e]:null,function(){return b(function(){return $(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(n))];case 1:return[2,t.sent().filter(function(e){return null!==e})]}})})()})).data,p=t.isLoading,t.error,(0,s.useMemo)(function(){return{obsConcepts:null!=a?a:[],isLoadingObsConcepts:p}},[a,p])),en=ee.obsConcepts,et=ee.isLoadingObsConcepts,ei=(h=(0,i.useSession)(),C=(0,i.useConfig)(),w=null==h||null==(g=h.sessionLocation)?void 0:g.uuid,k=(x=d()(w?function(e,n){if(e&&!(null==n||null==(a=n.data)||null==(t=a.links)?void 0:t.some(function(e){return"next"===e.rel})))return null;var t,a,s="".concat(i.restBaseUrl,"/visit?v=").concat("custom:(uuid,patient:(uuid,identifiers:(identifier,uuid,identifierType:(name,uuid)),person:(age,display,gender,uuid,attributes:(value,attributeType:(uuid,display)))),visitType:(uuid,name,display),location:(uuid,name,display),startDatetime,stopDatetime,encounters:(encounterDatetime,obs:(uuid,concept:(uuid,display),value)))","&"),r=new URLSearchParams;return r.append("includeInactive","false"),r.append("totalCount","true"),r.append("location","".concat(w)),e&&r.append("startIndex","".concat(50*e)),s+r.toString()}:null,i.openmrsFetch)).data,E=x.error,z=x.isLoading,D=x.isValidating,S=x.size,M=x.setSize,(0,s.useEffect)(function(){var e,n,t;k&&(null==k||null==(t=k[S-1])||null==(n=t.data)||null==(e=n.links)?void 0:e.some(function(e){return"next"===e.rel}))&&M(function(e){return e+1})},[k,S,M]),N=function(e){var n,t,a,s,r,o,l,c,p,d,u,g,f,m,v,y,h,b={age:null==e||null==(t=e.patient)||null==(n=t.person)?void 0:n.age.toString(),id:e.uuid,idNumber:null,gender:null==e||null==(s=e.patient)||null==(a=s.person)?void 0:a.gender,location:null==e||null==(r=e.location)?void 0:r.uuid,name:null==e||null==(l=e.patient)||null==(o=l.person)?void 0:o.display,patientUuid:null==e||null==(c=e.patient)?void 0:c.uuid,visitStartTime:(0,i.formatDatetime)((0,i.parseDate)(null==e?void 0:e.startDatetime)),visitType:null==e||null==(p=e.visitType)?void 0:p.display,visitUuid:e.uuid};return(null==C||null==(d=C.activeVisits)?void 0:d.identifiers)?null==C||null==(h=C.activeVisits)||null==(y=h.identifiers)||y.map(function(n){var t,i,a,s=null==e||null==(t=e.patient)?void 0:t.identifiers.find(function(e){var t;return(null==e||null==(t=e.identifierType)?void 0:t.name)===(null==n?void 0:n.identifierName)});b[null==(i=n.header)?void 0:i.key]=null!=(a=null==s?void 0:s.identifier)?a:"--"}):b.idNumber=null!=(v=null==e||null==(m=e.patient)||null==(f=m.identifiers[0])?void 0:f.identifier)?v:"--",null==C||null==(g=C.activeVisits)||null==(u=g.attributes)||u.map(function(n){var t,i,a,s=n.display,r=n.header,o=null==e||null==(i=e.patient)||null==(t=i.person)?void 0:t.attributes.find(function(e){var n;return(null==e||null==(n=e.attributeType)?void 0:n.display)===s});b[null==r?void 0:r.key]=null!=(a=null==o?void 0:o.value)?a:"--"}),b.observations=e.encounters.reduce(function(e,n){return _(e).concat(_(n.obs||[]))},[]).reduce(function(e,n){var t=n.concept.uuid;return e[t]||(e[t]=[]),e[t].push({value:n.value,uuid:n.uuid}),e},{}),b},{activeVisits:k?(u=[]).concat.apply(u,_(null==k?void 0:k.map(function(e){var n,t;return null==e||null==(t=e.data)||null==(n=t.results)?void 0:n.map(N)}))):[],error:E,isLoading:z,isValidating:D,totalResults:null!=(y=null==k||null==(m=k[0])||null==(f=m.data)?void 0:f.totalCount)?y:0}),ea=ei.activeVisits,es=ei.isLoading,er=ei.isValidating,eo=ei.error,el=L((0,s.useState)(""),2),ec=el[0],ep=el[1],ed=(T=(0,l.useTranslation)().t,B=(0,i.useConfig)(),(0,s.useMemo)(function(){var e,n,t,i,a,s=0,r=[{id:s++,header:T("visitStartTime","Visit Time"),key:"visitStartTime"}];return null==B||null==(n=B.activeVisits)||null==(e=n.identifiers)||e.forEach(function(e){var n,t,i;r.push({id:s++,header:T(null==e||null==(n=e.header)?void 0:n.key,null==e||null==(t=e.header)?void 0:t.default),key:null==e||null==(i=e.header)?void 0:i.key})}),(null==B||null==(t=B.activeVisits)?void 0:t.identifiers)||r.push({id:s++,header:T("idNumber","ID Number"),key:"idNumber"}),null==B||null==(a=B.activeVisits)||null==(i=a.attributes)||i.forEach(function(e){var n,t,i;r.push({id:s++,header:T(null==e||null==(n=e.header)?void 0:n.key,null==e||null==(t=e.header)?void 0:t.default),key:null==e||null==(i=e.header)?void 0:i.key})}),null==en||en.forEach(function(e){r.push({id:s++,header:e.display,key:"obs-".concat(e.uuid)})}),r.push({id:s++,header:T("name","Name"),key:"name"},{id:s++,header:T("sex","Sex"),key:"gender"},{id:s++,header:T("age","Age"),key:"age"},{id:s++,header:T("visitType","Visit Type"),key:"visitType"}),r},[T,B,en])),eu=(0,s.useCallback)(function(e){var n=H({},e);return null==en||en.forEach(function(t){var i,a,s,r=(null!=(a=null==e||null==(i=e.observations)?void 0:i[t.uuid])?a:[])[0];r?n["obs-".concat(t.uuid)]="object"==((s=r.value)&&"undefined"!=typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)?r.value.display:r.value:n["obs-".concat(t.uuid)]="--"}),n},[en]),eg=(0,s.useMemo)(function(){if(void 0!==ea&&ea.length>0&&ec&&""!==ec.trim()){var e=ec.toLowerCase();return null==ea?void 0:ea.filter(function(n){return Object.entries(n).some(function(n){var t=L(n,2),i=t[0],a=t[1];return"patientUuid"!==i&&"".concat(a).toLowerCase().includes(e)})})}return ea.map(eu)},[ec,ea,eu]),ef=(O=(F=(0,s.useState)({key:"visitStartTime",sortDirection:"DESC"}),j=function(e){if(Array.isArray(e))return e}(F)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),2!==s.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(F,2)||A(F,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],V=j[1],U=function(e,n){if(n.startsWith("obs-")){var t,i,a,s=n.replace("obs-",""),r=null==e||null==(a=e.observations)||null==(i=a[s])||null==(t=i[0])?void 0:t.value;return r?(void 0===r?"undefined":r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&r.display?r.display.toLowerCase():r:null}var o=e[n];return null==o?null:"visitStartTime"===n?new Date(o).getTime():"age"!==n||isNaN(o)?String(o).toLowerCase():Number(o)},{sortedRows:(0,s.useMemo)(function(){return"NONE"===O.sortDirection?eg:_(eg).sort(function(e,n){var t=U(e,O.key),i=U(n,O.key);if(null===t&&null===i)return 0;if(null===t)return 1;if(null===i)return -1;if("number"==typeof t&&"number"==typeof i)return"DESC"===O.sortDirection?i-t:t-i;var a=String(t).localeCompare(String(i),void 0,{numeric:!0});return"DESC"===O.sortDirection?-a:a})},[O,eg]),sortRow:function(e,n,t){V({key:t.key,sortDirection:t.sortDirection})}}),em=ef.sortedRows,ev=ef.sortRow,ey=(0,i.usePagination)(em,Y),eh=ey.paginated,eb=ey.goTo,e_=ey.results,eA=ey.currentPage,e$=(0,s.useCallback)(function(e){eb(1),ep(e.target.value)},[eb,ep]);return es||et?r().createElement("div",{className:I.activeVisitsContainer},r().createElement("div",{className:I.activeVisitsDetailHeaderContainer},r().createElement("div",{className:(0,i.isDesktop)(J)?I.desktopHeading:I.tabletHeading},r().createElement("h4",null,W("activeVisits","Active Visits"))),r().createElement("div",{className:I.backgroundDataFetchingIndicator},r().createElement("span",null,er?r().createElement(o.OuH,null):null))),r().createElement(o.vji,{labelText:"",placeholder:W("filterTable","Filter table"),onChange:e$,size:(0,i.isDesktop)(J)?"sm":"lg",disabled:!0}),r().createElement(o.OOb,{rowCount:Y,showHeader:!1,showToolbar:!1,zebra:!0,columnCount:null==ed?void 0:ed.length,size:(0,i.isDesktop)(J)?"sm":"lg"})):eo?r().createElement("div",{className:I.activeVisitsContainer},r().createElement(o.Wdr,null,r().createElement(i.ErrorState,{error:eo,headerTitle:W("activeVisits","Active Visits")}))):ea.length?r().createElement("div",{className:I.activeVisitsContainer},r().createElement("div",{className:I.activeVisitsDetailHeaderContainer},r().createElement("div",{className:(0,i.isDesktop)(J)?I.desktopHeading:I.tabletHeading},r().createElement("h4",null,W("activeVisits","Active Visits"))),r().createElement("div",{className:I.backgroundDataFetchingIndicator},r().createElement("span",null,er?r().createElement(o.OuH,null):null))),r().createElement(o.vji,{labelText:"",placeholder:W("filterTable","Filter table"),onChange:e$,size:(0,i.isDesktop)(J)?"sm":"lg"}),r().createElement(o.bQt,{isSortable:!0,useStaticWidth:!0,rows:e_,headers:ed,sortRow:ev,size:(0,i.isDesktop)(J)?"sm":"lg",useZebraStyles:(null==ea?void 0:ea.length)>1},function(e){var n=e.rows,t=e.headers,a=e.getHeaderProps,s=e.getTableProps,l=e.getRowProps,c=e.getExpandHeaderProps;return r().createElement(o.K3K,{className:I.tableContainer},r().createElement(o.XIK,H({className:I.activeVisitsTable},s()),r().createElement(o.ndF,null,r().createElement(o.Hjg,null,r().createElement(o.Uwq,H({enableToggle:!0},c())),t.map(function(e){return r().createElement(o.A0N,a({header:e}),e.header)}))),r().createElement(o.BFY,null,n.map(function(e,n){var a,s,c=ea.find(function(n){return n.id===e.id});return c?r().createElement(r().Fragment,{key:"active-visit-row-".concat(n)},r().createElement(o.fZD,(a=H({},l({row:e})),s=s={"data-testid":"activeVisitRow".concat(c.patientUuid||"unknown")},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(s)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(s,e))}),a),e.cells.map(function(e){return r().createElement(o.nA6,{key:"active-visit-row-".concat(n,"-cell-").concat(e.id),"data-testid":e.id},"name"===e.info.header&&c.patientUuid?r().createElement(i.ConfigurableLink,{to:"${openmrsSpaBase}/patient/${patientUuid}/chart",templateParams:{patientUuid:c.patientUuid}},e.value):e.value)})),e.isExpanded?r().createElement(o.Hjg,{className:I.expandedActiveVisitRow},r().createElement("th",{colSpan:t.length+2},r().createElement(i.ExtensionSlot,{className:I.visitSummaryContainer,name:"visit-summary-slot",state:{patientUuid:c.patientUuid,visitUuid:c.visitUuid}}))):r().createElement(o.cwJ,{className:I.hiddenRow,colSpan:t.length+2})):null}))))}),(null==eg?void 0:eg.length)===0&&r().createElement("div",{className:I.filterEmptyState},r().createElement(o.Wdr,{level:0},r().createElement(o.FAs,{className:I.filterEmptyStateTile},r().createElement("p",{className:I.filterEmptyStateContent},W("noVisitsToDisplay","No visits to display")),r().createElement("p",{className:I.filterEmptyStateHelper},W("checkFilters","Check the filters above"))))),eh&&r().createElement(o.dKS,{forwardText:"Next page",backwardText:"Previous page",page:eA,pageSize:Y,pageSizes:X,totalItems:null==eg?void 0:eg.length,className:I.pagination,size:(0,i.isDesktop)(J)?"sm":"lg",onChange:function(e){var n=e.pageSize,t=e.page;n!==Y&&Z(n),t!==eA&&eb(t)}})):r().createElement("div",{className:I.activeVisitsContainer},r().createElement(o.Wdr,null,r().createElement(o.FAs,{className:I.tile},r().createElement("div",{className:(0,i.isDesktop)(J)?I.desktopHeading:I.tabletHeading},r().createElement("h4",null,W("activeVisits","Active Visits"))),r().createElement(c,null),r().createElement("p",{className:I.content},W("noActiveVisitsForLocation","There are no active visits to display for this location.")))))},eC),eE=(0,i.getSyncLifecycle)(function(e){var n,t,a,c,p,d,u,g,f=e.visitUuid,m=e.patientUuid,y=(0,l.useTranslation)().t,h=(n=(0,s.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,i,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s=[],r=!0,o=!1;try{for(a=a.call(e);!(r=(t=a.next()).done)&&(s.push(t.value),2!==s.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return s}}(n,2)||function(e,n){if(e){if("string"==typeof e)return eA(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eA(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=h[0],_=h[1],A=(t="".concat(i.restBaseUrl,"/visit/").concat(f,"?v=").concat("custom:(uuid,encounters:(uuid,encounterDatetime,orders:(uuid,dateActivated,drug:(uuid,name,strength),doseUnits:(uuid,display),dose,route:(uuid,display),frequency:(uuid,display),duration,durationUnits:(uuid,display),numRefills,orderType:(uuid,display),orderer:(uuid,person:(uuid,display))),obs:(uuid,concept:(uuid,display,conceptClass:(uuid,display)),display,groupMembers:(uuid,concept:(uuid,display),value:(uuid,display)),value),encounterType:(uuid,display),encounterProviders:(uuid,display,encounterRole:(uuid,display),provider:(uuid,person:(uuid,display)))),visitType:(uuid,name,display),startDatetime"),c=(a=(0,v.Ay)(f?t:null,i.openmrsFetch)).data,p=a.error,d=a.isLoading,u=a.isValidating,{visit:c?c.data:null,error:p,isLoading:d,isValidating:u}),$=A.visit,C=A.isLoading,w=(0,s.useMemo)(function(){var e;return $?null==$||null==(e=$.encounters)?void 0:e.map(function(e){return{id:e.uuid,time:(0,i.formatTime)((0,i.parseDate)(e.encounterDateTime)),encounterType:e.encounterType.display,provider:e.encounterProviders.length>0?e.encounterProviders[0].display:"",obs:e.obs}}):[]},[$]);return C?r().createElement(o.OOb,{role:"progressbar"}):$?r().createElement("div",{className:G.visitsDetailWidgetContainer},r().createElement("div",{className:G.visitsDetailHeaderContainer},r().createElement("h4",{className:G.productiveHeading02},null==$||null==(g=$.visitType)?void 0:g.display,r().createElement("br",null),r().createElement("p",{className:U()(G.bodyLong01,G.text02)},(0,i.formatDatetime)((0,i.parseDate)(null==$?void 0:$.startDatetime)))),r().createElement("div",{className:G.actions},r().createElement(o.Tps,{className:G.contentSwitcher,selectedIndex:b,onChange:function(e){return _(e.index)}},r().createElement(o.dOG,{name:"allEncounters",text:y("allEncounters","All Encounters")}),r().createElement(o.dOG,{name:"visitSummary",text:y("visitSummary","Visit Summary")})))),0===b&&(null==$?void 0:$.encounters)&&r().createElement(X,{visitUuid:$.uuid,encounters:w}),1===b&&r().createElement(e_,{encounters:$.encounters,patientUuid:m})):r().createElement("div",{className:G.visitEmptyState},r().createElement("h4",{className:G.productiveHeading02},y("noEncountersFound","No encounters found")),r().createElement("p",{className:U()(G.bodyLong01,G.text02)},y("thereIsNoInformationToDisplayHere","There is no information to display here")))},eC),ez=(0,i.getAsyncLifecycle)(function(){return Promise.all([t.e("747"),t.e("102")]).then(t.bind(t,5085))},eC),eD=(0,i.getAsyncLifecycle)(function(){return Promise.all([t.e("747"),t.e("431")]).then(t.bind(t,2218))},eC)},1437:function(e,n,t){var i={"./tr.json":["9279","868"],"./tr_TR.json":["3646","339"],"./uk.json":["7134","754"],"./vi.json":["236","549"],"./zh_CN.json":["109","254"],"./ar.json":["9114","799"],"./he.json":["4430","827"],"./id.json":["3612","925"],"./fr.json":["8961","882"],"./es.json":["1705","802"],"./ne.json":["1152","465"],"./sw_KE.json":["32","177"],"./en.json":["1066","127"],"./zh.json":["6515","720"],"./hi_IN.json":["4552","273"],"./pt_BR.json":["5830","603"],"./si.json":["8401","970"],"./qu.json":["8573","116"],"./sw.json":["3987","40"],"./am.json":["2735","916"],"./de.json":["738","631"],"./pt.json":["449","474"],"./it.json":["7052","381"],"./km.json":["5325","566"],"./hi.json":["6621","751"]};function a(e){if(!t.o(i,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=i[e],a=n[0];return t.e(n[1]).then(function(){return t(a)})}a.keys=()=>Object.keys(i),a.id=1437,e.exports=a}}]);