@openmrs/esm-appointments-app 5.1.1-pre.2285 → 5.1.1-pre.2292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +14 -14
- package/dist/152.js +1 -1
- package/dist/152.js.map +1 -1
- package/dist/202.js +1 -0
- package/dist/202.js.map +1 -0
- package/dist/255.js +1 -1
- package/dist/255.js.map +1 -1
- package/dist/303.js +1 -1
- package/dist/303.js.map +1 -1
- package/dist/334.js +1 -0
- package/dist/334.js.map +1 -0
- package/dist/435.js +1 -0
- package/dist/435.js.map +1 -0
- package/dist/44.js +1 -0
- package/dist/44.js.map +1 -0
- package/dist/542.js +2 -0
- package/dist/542.js.map +1 -0
- package/dist/547.js +1 -0
- package/dist/547.js.map +1 -0
- package/dist/551.js +1 -0
- package/dist/551.js.map +1 -0
- package/dist/574.js +1 -1
- package/dist/735.js +1 -1
- package/dist/772.js +1 -0
- package/dist/772.js.map +1 -0
- package/dist/{928.js → 800.js} +1 -1
- package/dist/{928.js.map → 800.js.map} +1 -1
- package/dist/818.js +1 -0
- package/dist/818.js.map +1 -0
- package/dist/890.js +1 -0
- package/dist/890.js.map +1 -0
- package/dist/938.js +1 -0
- package/dist/938.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-appointments-app.js +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +248 -96
- package/dist/openmrs-esm-appointments-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/appointments/common-components/appointments-actions.component.tsx +2 -2
- package/src/appointments/scheduled/appointments-by-status.component.tsx +25 -0
- package/src/appointments/scheduled/early-appointments.component.tsx +32 -0
- package/src/appointments/scheduled/scheduled-appointments.component.tsx +180 -100
- package/src/appointments/utils.tsx +6 -0
- package/src/appointments-metrics/appointments-metrics.component.tsx +3 -2
- package/src/hooks/useAppointmentList.tsx +28 -14
- package/src/index.ts +32 -1
- package/src/routes.json +30 -1
- package/src/scheduled-appointments-config-schema.ts +169 -0
- package/translations/en.json +2 -0
- package/dist/223.js +0 -1
- package/dist/223.js.map +0 -1
- package/dist/297.js +0 -1
- package/dist/297.js.map +0 -1
- package/dist/328.js +0 -1
- package/dist/328.js.map +0 -1
- package/dist/381.js +0 -1
- package/dist/381.js.map +0 -1
- package/dist/975.js +0 -2
- package/dist/975.js.map +0 -1
- /package/dist/{975.js.LICENSE.txt → 542.js.LICENSE.txt} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
assets by path [1m[32m*.js[39m[22m 1.
|
|
1
|
+
assets by path [1m[32m*.js[39m[22m 1.81 MiB
|
|
2
2
|
assets by chunk 1.46 MiB (id hint: vendors)
|
|
3
|
-
assets by status [1m[33m1.
|
|
3
|
+
assets by status [1m[33m1.35 MiB[39m[22m [1m[33m[big][39m[22m
|
|
4
4
|
asset [1m[33m130.js[39m[22m [1m[33m617 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
5
5
|
asset [1m[33m315.js[39m[22m [1m[33m480 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
6
|
-
asset [1m[
|
|
7
|
-
+
|
|
8
|
-
+
|
|
9
|
-
assets by path [1m[32m*.json[39m[22m
|
|
10
|
-
asset [1m[32mopenmrs-esm-appointments-app.js.buildmanifest.json[39m[22m
|
|
11
|
-
asset [1m[32mroutes.json[39m[22m
|
|
12
|
-
orphan modules 3.
|
|
13
|
-
runtime modules 39.
|
|
14
|
-
built modules 6.
|
|
15
|
-
javascript modules 6.
|
|
6
|
+
asset [1m[33m542.js[39m[22m [1m[33m282 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
7
|
+
+ 8 assets
|
|
8
|
+
+ 22 assets
|
|
9
|
+
assets by path [1m[32m*.json[39m[22m 18.8 KiB
|
|
10
|
+
asset [1m[32mopenmrs-esm-appointments-app.js.buildmanifest.json[39m[22m 17.2 KiB [1m[32m[emitted][39m[22m
|
|
11
|
+
asset [1m[32mroutes.json[39m[22m 1.54 KiB [1m[32m[emitted][39m[22m [from: src/routes.json] [1m[32m[copied][39m[22m
|
|
12
|
+
orphan modules 3.62 MiB [1m[33m[orphan][39m[22m 752 modules
|
|
13
|
+
runtime modules 39.5 KiB 28 modules
|
|
14
|
+
built modules 6.26 MiB (javascript) 252 bytes (share-init) 252 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
15
|
+
javascript modules 6.22 MiB 148 modules
|
|
16
16
|
optional modules 35.5 KiB [1m[33m[optional][39m[22m
|
|
17
17
|
[1m./translations/am.json[39m[22m 5.14 KiB [1m[33m[optional][39m[22m [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
18
18
|
+ 6 modules
|
|
@@ -28,6 +28,6 @@ This can impact web performance.
|
|
|
28
28
|
Assets:
|
|
29
29
|
130.js (617 KiB)
|
|
30
30
|
315.js (480 KiB)
|
|
31
|
-
|
|
31
|
+
542.js (282 KiB)[39m[22m
|
|
32
32
|
|
|
33
|
-
webpack 5.86.0 compiled with [1m[33m1 warning[39m[22m in
|
|
33
|
+
webpack 5.86.0 compiled with [1m[33m1 warning[39m[22m in 53328 ms
|
package/dist/152.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[152,303],{2303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i,immutable:()=>s});var n=t(3255),p=t(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[152,303],{2303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i,immutable:()=>s});var n=t(3255),p=t(931);const s=e=>(a,t,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(a,t,n));var i=(0,p.withMiddleware)(n.ZP,s)}}]);
|
package/dist/152.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"152.js","mappings":"
|
|
1
|
+
{"version":3,"file":"152.js","mappings":"kOAGA,MAAMA,EAAaC,GAAa,CAACC,EAAKC,EAASC,KAEvCA,EAAOC,mBAAoB,EAC3BD,EAAOE,mBAAoB,EAC3BF,EAAOG,uBAAwB,EACxBN,EAAWC,EAAKC,EAASC,IAExC,IAAII,GAAQ,IAAAC,gBAAe,KAAQT,E","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/swr/immutable/dist/index.mjs"],"names":["immutable","useSWRNext","key","fetcher","config","revalidateOnFocus","revalidateIfStale","revalidateOnReconnect","index","withMiddleware"],"sourceRoot":""}
|
package/dist/202.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[202],{8447:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),a=n(2609),i=n.n(a)()(o());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-form__productiveHeading01___f1B6i{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-appointments__appointments-form__productiveHeading02___FKWGW{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-appointments__appointments-form__productiveHeading03___wY7wA{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-appointments__appointments-form__productiveHeading04___Uffg7{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-appointments__appointments-form__bodyLong01___yGB1p{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-appointments__appointments-form__bodyShort01___AC_3i{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-appointments__appointments-form__bodyShort02___Wlr7j{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-appointments__appointments-form__text02___RN5sR{color:#525252}.-esm-appointments__appointments-form__label01___zwrTc{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-appointments__appointments-form__modal___dByeC{position:fixed;width:100vw;height:100vh;display:grid;background-color:rgba(0,0,0,.5);z-index:9000;justify-items:center;align-items:center}.-esm-appointments__appointments-form__formContainer___eFj89{margin:0 1rem}.-esm-appointments__appointments-form__stickyFormHeader___Knd9z{position:sticky;top:3rem;z-index:10}.-esm-appointments__appointments-form__row___kkp8W{display:flex;margin:.5rem}.-esm-appointments__appointments-form__select___AeArq{width:90%;margin-right:60%}.-esm-appointments__appointments-form__inputContainer___oAhyS{margin:1rem 0}.-esm-appointments__appointments-form__button___kM_VU{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-appointments__appointments-form__timePickerInput___giOkD{width:8rem}.-esm-appointments__appointments-form__datePickerInput___k31Uy{padding-bottom:1rem;margin-left:12.5rem}.-esm-appointments__appointments-form__workLoadCard___lsrdX{display:flex;margin:0 1rem;color:#525252}.-esm-appointments__appointments-form__monthlyWorkLoadCard___lT79I{color:#525252;display:flex;flex-wrap:wrap}.-esm-appointments__appointments-form__workLoadContainer___JZFqB{display:flex;flex-direction:column;background-color:#fff;padding-bottom:1rem}.-esm-appointments__appointments-form__workLoadTitle___MNLtt{padding-top:1rem;color:#525252;margin:0 1rem 1rem 1rem;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);font-weight:400}.-esm-appointments__appointments-form__input___wxHSE{width:13.5rem}.-esm-appointments__appointments-form__hide___ypOyp{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/appointments/forms/create-edit-form/appointments-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,mEC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD11BJ,mEC01BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDt1BJ,mECs1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl1BJ,mECk1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD90BJ,0DC80BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD10BJ,2DC00BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDt0BJ,2DCs0BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDl0BJ,sDACE,aD5BQ,CC+BV,uDC8zBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD1zBJ,qDACE,cAAA,CACA,WAAA,CACA,YAAA,CACA,YAAA,CACA,+BAAA,CACA,YAAA,CACA,oBAAA,CACA,kBAAA,CE5CF,6DACE,aAAA,CAGF,gEACE,eAAA,CACA,QCyCW,CDxCX,UAAA,CAGF,mDACE,YAAA,CACA,YCKW,CDFb,sDACE,SAAA,CACA,gBAAA,CAGF,8DACE,aAAA,CAGF,sDACE,WAAA,CACA,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,+DACE,UAAA,CAGF,+DACE,mBAAA,CACA,mBAAA,CAGF,4DACE,YAAA,CACA,aAAA,CACA,aAAA,CAEF,mEACE,aAAA,CACA,YAAA,CACA,cAAA,CAEF,iEACE,YAAA,CACA,qBAAA,CACA,qBAAA,CACA,mBAAA,CAGF,6DACE,gBChCW,CDiCX,aAAA,CACA,uBAAA,CDiyBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CC/xBF,eAAA,CAEF,qDACE,aAAA,CAGF,oDACE,YAAA",sourceRoot:""}]),i.locals={productiveHeading01:"-esm-appointments__appointments-form__productiveHeading01___f1B6i",productiveHeading02:"-esm-appointments__appointments-form__productiveHeading02___FKWGW",productiveHeading03:"-esm-appointments__appointments-form__productiveHeading03___wY7wA",productiveHeading04:"-esm-appointments__appointments-form__productiveHeading04___Uffg7",bodyLong01:"-esm-appointments__appointments-form__bodyLong01___yGB1p",bodyShort01:"-esm-appointments__appointments-form__bodyShort01___AC_3i",bodyShort02:"-esm-appointments__appointments-form__bodyShort02___Wlr7j",text02:"-esm-appointments__appointments-form__text02___RN5sR",label01:"-esm-appointments__appointments-form__label01___zwrTc",modal:"-esm-appointments__appointments-form__modal___dByeC",formContainer:"-esm-appointments__appointments-form__formContainer___eFj89",stickyFormHeader:"-esm-appointments__appointments-form__stickyFormHeader___Knd9z",row:"-esm-appointments__appointments-form__row___kkp8W",select:"-esm-appointments__appointments-form__select___AeArq",inputContainer:"-esm-appointments__appointments-form__inputContainer___oAhyS",button:"-esm-appointments__appointments-form__button___kM_VU",timePickerInput:"-esm-appointments__appointments-form__timePickerInput___giOkD",datePickerInput:"-esm-appointments__appointments-form__datePickerInput___k31Uy",workLoadCard:"-esm-appointments__appointments-form__workLoadCard___lsrdX",monthlyWorkLoadCard:"-esm-appointments__appointments-form__monthlyWorkLoadCard___lT79I",workLoadContainer:"-esm-appointments__appointments-form__workLoadContainer___JZFqB",workLoadTitle:"-esm-appointments__appointments-form__workLoadTitle___MNLtt",input:"-esm-appointments__appointments-form__input___wxHSE",hide:"-esm-appointments__appointments-form__hide___ypOyp"};const s=i},3860:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),a=n(2609),i=n.n(a)()(o());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,select,input,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.28572;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-appointments__workload__skeleton___jhMhJ{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.-esm-appointments__workload__cardContainer___nHXRE{background-color:#fff;display:flex;height:6rem}.-esm-appointments__workload__tileContainer___bhF3C{padding:.5rem;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;border:1px solid #a6c8ff}.-esm-appointments__workload__tileContainer___bhF3C:first-child{border-left-width:1px}.-esm-appointments__workload__tileContainer___bhF3C label{color:#525252}.-esm-appointments__workload__tileHeader___dHBCb{display:flex;justify-content:space-between;padding-bottom:1rem}.-esm-appointments__workload__headerLabel___PU12A{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;color:#525252}.-esm-appointments__workload__totalsLabel___DdXz0{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;color:#525252}.-esm-appointments__workload__totalsValue___J6rVn{font-size:1.75rem;font-weight:400;line-height:1.28572;letter-spacing:0;color:#161616}.-esm-appointments__workload__headerLabelContainer___vO88j{display:flex;align-items:center;height:2rem}.-esm-appointments__workload__link___sGRk_{text-decoration:none}.-esm-appointments__workload__activeWorkloadCard___uttch{background-color:#edf5ff}.-esm-appointments__workload__activeWorkloadCard___uttch label{color:#0f62fe}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.import.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss","webpack://./src/appointments/forms/workload.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/themes/generated/_mixins.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCpBE,2ZAiFE,SAAA,CACA,QAAA,CACA,QAAA,CACA,YAAA,CACA,cAAA,CACA,uBAAA,CAIF,6BAIE,eAAA,CACA,mBAAA,CAGF,4BACE,YAAA,CAIF,mFAYE,aAAA,CAGF,KACE,aAAA,CAGF,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E,qBCuCQ,CDtCR,YAAA,CACA,WEyDW,CFtDb,oDACE,aAAA,CACA,MAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,qBAAA,CACA,cAAA,CACA,wBAAA,CAEA,gEACE,qBAAA,CAGF,0DACE,aGqBM,CHjBV,iDACE,YAAA,CACA,6BAAA,CACA,mBEHW,CFMb,kDF2hBI,iBA0LsB,CA1LtB,eA0LsB,CA1LtB,mBA0LsB,CA1LtB,oBA0LsB,CEntBxB,aCYU,CDTZ,kDFshBI,gBA0LsB,CA1LtB,eA0LsB,CA1LtB,mBA0LsB,CA1LtB,oBA0LsB,CE9sBxB,aCOU,CDJZ,kDFihBI,iBA0LsB,CA1LtB,eA0LsB,CA1LtB,mBA0LsB,CA1LtB,gBA0LsB,CEzsBxB,aAAA,CAGF,2DACE,YAAA,CACA,kBAAA,CACA,WC0Ma,CDvMf,2CACE,oBAAA,CAGF,yDACE,wBGnDQ,CHqDR,+DACE,aGjDM",sourceRoot:""}]),i.locals={cardContainer:"-esm-appointments__workload__cardContainer___nHXRE",tileContainer:"-esm-appointments__workload__tileContainer___bhF3C",tileHeader:"-esm-appointments__workload__tileHeader___dHBCb",headerLabel:"-esm-appointments__workload__headerLabel___PU12A",totalsLabel:"-esm-appointments__workload__totalsLabel___DdXz0",totalsValue:"-esm-appointments__workload__totalsValue___J6rVn",headerLabelContainer:"-esm-appointments__workload__headerLabelContainer___vO88j",link:"-esm-appointments__workload__link___sGRk_",activeWorkloadCard:"-esm-appointments__workload__activeWorkloadCard___uttch",skeleton:"-esm-appointments__workload__skeleton___jhMhJ"};const s=i},7202:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(268),o=n.n(r),a=n(4924),i=n(8879),s=n.n(i),l=n(399),c=n(2870),m=n(12),A=n(3255),u=n(1027),p=n(1723),d=n(4546);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _=function(e,t,n){var r,o=(0,d.EN)(new Date(n),e),a=null!==(r=function(e,t){for(var n=new Map([]),r=0;r<=35;r++)n.set(s()(e).add(r,"day").format("YYYY-MM-DD"),0);return t.map((function(e){var t=e.date,r=e.count;n.has(t)&&n.set(t,r)})),Array.from(n).flatMap((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return{date:t[0],count:t[1]}}))}(new Date(n),o))&&void 0!==r?r:[];return"month"===t?a:a.slice(0,7)},v=n(6196);const C=function(e){var t=e.selectedLocation,n=e.defaultFacility,r=e.locations,i=(0,a.useTranslation)().t;return t?n&&0!==Object.keys(n).length?o().createElement(l.QlF,{key:null==n?void 0:n.uuid,text:null==n?void 0:n.display,value:null==n?void 0:n.uuid},null==n?void 0:n.display):r&&r.length>0?o().createElement(o().Fragment,null,r.map((function(e){return o().createElement(l.QlF,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))):null:o().createElement(l.QlF,{text:i("selectOption","Select an option"),value:""})};var h=n(1354),g=n.n(h),y=n(1583),b=n.n(y),B=n(7378),w=n.n(B),D=n(5993),E=n.n(D),k=n(4154),F=n.n(k),x=n(8141),L=n.n(x),S=n(3860),T={};T.styleTagTransform=L(),T.setAttributes=E(),T.insert=w().bind(null,"head"),T.domAPI=b(),T.insertStyleElement=F(),g()(S.Z,T);const I=S.Z&&S.Z.locals?S.Z.locals:void 0,M=function(e){var t=e.date,n=e.count,r=e.isActive,i=e.onClick;return(0,a.useTranslation)().t,o().createElement("div",{tabIndex:0,role:"button",onClick:i,className:"".concat(I.tileContainer," ").concat(r&&I.activeWorkloadCard)},o().createElement("div",{className:I.tileHeader},o().createElement("label",{className:I.headerLabel},t)),o().createElement("div",null,o().createElement("label",{className:I.totalsLabel},n)))};var O=n(8447),G={};G.styleTagTransform=L(),G.setAttributes=E(),G.insert=w().bind(null,"head"),G.domAPI=b(),G.insertStyleElement=F(),g()(O.Z,G);const U=O.Z&&O.Z.locals?O.Z.locals:void 0;function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){N(e,t,n[t])}))}return e}function H(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const q=function(e){var t,n=e.appointment,i=e.patientUuid,f=e.context,h=(0,a.useTranslation)().t,g=(0,c.useConfig)(),y=g.appointmentTypes,b=g.appointmentStatuses,B=g.hiddenFormFields,w=function(e,t){var n,r,o,a,i,l,m,A,u,p,d,f,_,v,C=(0,c.useSession)();return{appointmentKind:null!==(i=null==e?void 0:e.appointmentKind)&&void 0!==i?i:"Scheduled",status:null!==(l=null==e?void 0:e.status)&&void 0!==l?l:"Scheduled",serviceUuid:null!==(m=null==e?void 0:e.serviceUuid)&&void 0!==m?m:"",startDateTime:s()(new Date).format("hh:mm"),endDateTime:s()(new Date).format("hh:mm"),providers:null!==(A=null==e?void 0:e.providers)&&void 0!==A?A:[],providerUuid:null!==(u=null==e||null===(n=e.providers)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.uuid)&&void 0!==u?u:null==C||null===(o=C.currentProvider)||void 0===o?void 0:o.uuid,comments:null!==(p=null==e?void 0:e.comments)&&void 0!==p?p:"",locationUuid:null!==(d=null==e?void 0:e.location)&&void 0!==d?d:null==C||null===(a=C.sessionLocation)||void 0===a?void 0:a.uuid,frequency:"",uuid:null!==(f=null==e?void 0:e.id)&&void 0!==f?f:"",appointmentNumber:null!==(_=null==e?void 0:e.appointmentNumber)&&void 0!==_?_:"",patientUuid:null!==(v=null==e?void 0:e.patientUuid)&&void 0!==v?v:t,visitDate:(null==e?void 0:e.dateTime)?new Date(e.dateTime):new Date,timeFormat:(new Date).getHours()>=12?"PM":"AM",isFullDay:!0,day:null==e?void 0:e.dateTime}}(n,i),D=Y((0,r.useState)(w),2),E=D[0],k=D[1],F=(0,c.usePatient)(null!=i?i:E.patientUuid),x=F.patient,L=F.isLoading,S=(0,c.useLocations)(),T=(0,c.useSession)(),I=(0,d.ko)().providers,O=(0,d.Su)().services,G=Y((0,r.useState)(!1),2),j=G[0],N=G[1],q=(0,d.EN)(E.visitDate,E.serviceUuid),K=Y((0,r.useState)(0),2),W=K[0],J=K[1],Z=_(E.serviceUuid,0===W?"week":"month",E.visitDate),Q=(0,u.zF)().currentAppointmentDate,R=Y((0,r.useState)(""),2),X=R[0],V=R[1],$=(0,v.P)(),ee=$.defaultFacility,te=$.isLoading,ne=null==O?void 0:O.find((function(e){return e.uuid===E.serviceUuid})),re=s()().startOf("day").format();(0,r.useEffect)((function(){var e;(null==S?void 0:S.length)&&T?V(null==T||null===(e=T.sessionLocation)||void 0===e?void 0:e.uuid):!te&&ee&&V(null==ee?void 0:ee.uuid)}),[S,T,te]);var oe,ae,ie,se=(oe=function(){var e,t,n,r,o,a,i,l,m;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(f){return e=Y((0,u.A8)(E.startDateTime,E.timeFormat),2),t=e[0],n=e[1],r=Y((0,u.A8)(E.endDateTime,E.timeFormat),2),o=r[0],a=r[1],i=(0,d.iW)(E.visitDate,t,n),l=(0,d.iW)(E.visitDate,o,a),m={appointmentKind:E.appointmentKind,status:E.status,serviceUuid:E.serviceUuid,startDateTime:s()(i).format(),endDateTime:s()(l).format(),providerUuid:E.providerUuid,providers:[{uuid:E.providerUuid}],comments:E.comments,locationUuid:E.locationUuid,patientUuid:E.patientUuid,appointmentNumber:E.appointmentNumber,uuid:E.uuid},new AbortController,N(!0),(0,d.GB)(m).then((function(e){200===e.status&&((0,c.showToast)({critical:!0,kind:"success",description:h("appointmentNowVisible","It is now visible on the Appointments page"),title:h("appointmentScheduled","Appointment scheduled")}),N(!1),(0,A.JG)("/ws/rest/v1/appointment/appointmentStatus?forDate=".concat(Q,"&status=Scheduled")),(0,A.JG)("/ws/rest/v1/appointment/appointmentStatus?forDate=".concat(Q,"&status=CheckedIn")),(0,A.JG)("/ws/rest/v1/appointment/all?forDate=".concat(Q)),(0,A.JG)("/ws/rest/v1/appointment/appointmentStatus?status=Scheduled&forDate=".concat(Q)),(0,A.JG)("/ws/rest/v1/appointment/appointmentStatus?status=Pending&forDate=".concat(Q)),(0,p.Km)())}),(function(e){(0,c.showNotification)({title:h("appointmentFormError","Error scheduling appointment"),kind:"error",critical:!0,description:null==e?void 0:e.message}),N(!1)})),[2]}))},ae=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=oe.apply(e,t);function a(e){P(o,n,r,a,i,"next",e)}function i(e){P(o,n,r,a,i,"throw",e)}a(void 0)}))},function(){return ae.apply(this,arguments)});return o().createElement("div",{className:U.formContainer},L?o().createElement(l.N2B,null):o().createElement("div",{className:U.stickyFormHeader},o().createElement(c.ExtensionSlot,{name:"patient-header-slot",state:{patient:x,patientUuid:E.patientUuid}})),o().createElement("p",null,h("selectAppointmentLocation","Select where the appointment will take place")),o().createElement(l.PhF,{labelText:h("selectALocation","Select a location"),id:"location",invalidText:"Required",value:X,defaultSelected:X,onChange:function(e){return V(e.target.value)}},o().createElement(C,{selectedLocation:X,defaultFacility:ee,locations:S})),o().createElement(l.PhF,{id:"service",invalidText:"Required",labelText:h("selectService","Select a service"),className:U.inputContainer,onChange:function(e){return k(H(z({},E),{serviceUuid:e.target.value}))},value:E.serviceUuid},E.serviceUuid&&"--"!=E.serviceUuid?null:o().createElement(l.QlF,{text:h("chooseService","Select service"),value:""}),(null==O?void 0:O.length)>0&&O.map((function(e){return o().createElement(l.QlF,{key:e.uuid,text:e.name,value:e.uuid},e.name)}))),o().createElement("p",null,h("appointmentDateAndTime","Appointments Date and Time")),o().createElement("div",{className:U.row},o().createElement(l.ZDl,{onToggle:function(e){return k(H(z({},E),{isFullDay:e}))},id:"allDay",labelA:"Off",labelB:"On",labelText:"All Day",defaultToggled:E.isFullDay}),o().createElement(l.Mtg,{dateFormat:"d/m/Y",datePickerType:"single",id:"visitDate",minDate:re,className:U.datePickerInput,onChange:function(e){var t=Y(e,1)[0];return k(H(z({},E),{visitDate:t}))},value:E.visitDate},o().createElement(l.aj6,{id:"visitStartDateInput",labelText:h("date","Date"),placeholder:"dd/mm/yyyy",style:{width:"100%"}}))),E.isFullDay?null:o().createElement("div",{className:U.row},o().createElement(l.jII,{className:U.timePickerInput,pattern:"([\\d]+:[\\d]{2})",onChange:function(e){return k(H(z({},E),{startDateTime:e.target.value}))},value:E.startDateTime,labelText:h("startTime","Start Time"),id:"start-time-picker"},o().createElement(l.M6n,{id:"start-time-picker",onChange:function(e){return k(H(z({},E),{timeFormat:e.target.value}))},value:E.timeFormat,labelText:h("time","Time"),"aria-label":h("time","Time")},o().createElement(l.QlF,{value:"AM",text:"AM"}),o().createElement(l.QlF,{value:"PM",text:"PM"}))),o().createElement(l.jII,{className:U.timePickerInput,pattern:"([\\d]+:[\\d]{2})",onChange:function(e){return k(H(z({},E),{endDateTime:e.target.value}))},value:E.endDateTime,labelText:h("endTime","End Time"),id:"end-time-picker"},o().createElement(l.M6n,{id:"end-time-picker",onChange:function(e){return k(H(z({},E),{timeFormat:e.target.value}))},value:E.timeFormat,labelText:h("time","Time"),"aria-label":h("time","Time")},o().createElement(l.QlF,{value:"AM",text:"AM"}),o().createElement(l.QlF,{value:"PM",text:"PM"})))),E.serviceUuid&&o().createElement("div",{className:U.workLoadContainer},o().createElement(o().Fragment,null,o().createElement("p",{className:U.workLoadTitle},h("serviceWorkloadTitle","".concat(null==ne?void 0:ne.name," clinic work load on the week of ").concat(s()(null!==(ie=null===(t=(0,m.Z)(q))||void 0===t?void 0:t.date)&&void 0!==ie?ie:new Date).format("DD/MM")))),o().createElement(l.mQc,{selectedIndex:W,onChange:function(e){var t=e.selectedIndex;return J(t)},className:U.tabs},o().createElement(l.tdY,{style:{paddingLeft:"1rem"}},o().createElement(l.OK9,null,h("weekly","Weekly")),o().createElement(l.OK9,null,h("monthly","Monthly"))),o().createElement(l.nPR,null,o().createElement(l.x45,{style:{padding:0}},o().createElement("div",{className:U.workLoadCard},null==Z?void 0:Z.map((function(e,t){var n=e.date,r=e.count;return o().createElement(M,{onClick:function(){return k(H(z({},E),{visitDate:new Date(n)}))},key:"".concat(n,"-").concat(t),date:s()(n).format("DD/MM"),count:r,isActive:s()(n).format("DD-MM-YYYY")===s()(E.visitDate).format("DD-MM-YYYY")})})))),o().createElement(l.x45,{style:{padding:0}},o().createElement("div",{className:U.monthlyWorkLoadCard},null==Z?void 0:Z.map((function(e){var t=e.date,n=e.count;return o().createElement(M,{onClick:function(){return k(H(z({},E),{visitDate:new Date(t)}))},key:t,date:s()(t).format("DD/MM"),count:n,isActive:s()(t).format("DD-MM-YYYY")===s()(E.visitDate).format("DD-MM-YYYY")})})))))))),o().createElement(l.PhF,{id:"appointmentType",invalidText:"Required",labelText:h("selectAppointmentType","Select an appointment type"),className:U.inputContainer,onChange:function(e){return k(H(z({},E),{appointmentKind:e.target.value}))},value:E.appointmentKind},E.appointmentKind&&"--"!=E.appointmentKind?null:o().createElement(l.QlF,{text:h("selectAppointmentType","Select an appointment type"),value:""}),(null==y?void 0:y.length)>0&&y.map((function(e){return o().createElement(l.QlF,{key:e,text:e,value:e},e)}))),"creating"!==f&&o().createElement(l.PhF,{id:"appointmentStatus",invalidText:"Required",labelText:h("selectAppointmentStatus","Select status"),className:U.inputContainer,onChange:function(e){return k(H(z({},E),{status:e.target.value}))},value:E.status},E.status&&"--"!=E.status?null:o().createElement(l.QlF,{text:h("selectAppointmentStatus","Select status"),value:""}),(null==b?void 0:b.length)>0&&b.map((function(e){return o().createElement(l.QlF,{key:e,text:e,value:e},e)}))),o().createElement(l.PhF,{id:"providers",invalidText:"Required",labelText:h("selectProvider","Select a provider"),className:"".concat(U.inputContainer," ").concat(B.includes("providers")&&U.hide),onChange:function(e){k(H(z({},E),{providerUuid:e.target.value}))},value:E.providerUuid},E.providerUuid?null:o().createElement(l.QlF,{text:h("chooseProvider","Select Provider"),value:""}),(null==I?void 0:I.length)>0&&I.map((function(e){return o().createElement(l.QlF,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))),o().createElement(l.mh4,{style:{margin:"0.25rem 0"}},o().createElement(l.Kx8,{cols:50,id:"comment",invalidText:"A valid value is required",labelText:h("comment","Comment"),placeholder:h("typeInComments","Type in appointment comment"),rows:4,value:E.comments,onChange:function(e){return k(H(z({},E),{comments:e.target.value}))}})),o().createElement(l.uVA,null,o().createElement(l.zxk,{onClick:p.Km,className:U.button,kind:"secondary"},h("discard","Discard")),o().createElement(l.zxk,{onClick:se,className:U.button,disabled:j||!E.serviceUuid,kind:"primary",type:"submit"},h("save","Save"))))}},4546:(e,t,n)=>{n.d(t,{EN:()=>C,GB:()=>f,Su:()=>p,iW:()=>h,ko:()=>d,v1:()=>v});var r=n(3255),o=n(2870),a=n(8879),i=n.n(a),s=n(8179),l=n(12);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function A(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){m(a,r,o,i,s,"next",e)}function s(e){m(a,r,o,i,s,"throw",e)}i(void 0)}))}}var u=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function p(){var e=(0,r.ZP)("/ws/rest/v1/appointmentService/all/default",o.openmrsFetch),t=e.data,n=e.error,a=e.isLoading,i=e.isValidating;return{services:t?t.data:[],isLoading:a,isError:n,isValidating:i}}function d(){var e=(0,r.ZP)("/ws/rest/v1/provider",o.openmrsFetch),t=e.data,n=e.error,a=e.isLoading;return{providers:t?t.data.results:null,isError:n,isLoading:a}}function f(e){var t=new AbortController;return(0,o.openmrsFetch)("/ws/rest/v1/appointment",{method:"POST",signal:t.signal,headers:{"Content-Type":"application/json"},body:e})}var _,v=(_=A((function(e,t){var n,r,a,l;return u(this,(function(c){switch(c.label){case 0:return n=new AbortController,r=Intl.DateTimeFormat().resolvedOptions().timeZone,a=i()(new Date).format(s.J$),l="/ws/rest/v1/appointments/".concat(t,"/status-change"),[4,(0,o.openmrsFetch)(l,{body:{toStatus:e,onDate:a,timeZone:r},method:"POST",headers:{"Content-Type":"application/json"},signal:n.signal})];case 1:return[2,c.sent()]}}))})),function(e,t){return _.apply(this,arguments)}),C=function(e,t){var n=i()(e).startOf("week").format(s.J$),a=i()(n).add(2,"week").format(s.J$),m="/ws/rest/v1/appointment/appointmentSummary?startDate=".concat(n,"&endDate=").concat(a),A=(0,r.ZP)(m,o.openmrsFetch),u=A.data,p=(A.error,(0,l.Z)(null==u?void 0:u.data.filter((function(e){return e.appointmentService.uuid===t})))),d=null==p?void 0:p.appointmentCountMap;return Object.entries(null!=d?d:[]).map((function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{date:r[0],count:r[1].allAppointmentsCount}})).sort((function(e,t){return new Date(e.date).getTime()-new Date(t.date).getTime()}))},h=(A((function(e){return u(this,(function(t){switch(t.label){case 0:return[4,(0,o.openmrsFetch)("/ws/rest/v1/appointments/conflicts",{method:"POST",body:{patientUuid:e.patientUuid,serviceUuid:e.serviceUuid,startDateTime:e.startDateTime,endDateTime:e.endDateTime,providers:[],locationUuid:e.locationUuid,appointmentKind:e.appointmentKind},headers:{"Content-Type":"application/json"}})];case 1:return[2,t.sent()]}}))})),function(e,t,n){return i()(new Date(i()(e).year(),i()(e).month(),i()(e).date(),t,n))})},8702:(e,t,n)=>{n.d(t,{Ey:()=>u,Gd:()=>v,IF:()=>f,Nz:()=>C,aN:()=>d,bf:()=>s,c1:()=>_,df:()=>A,g9:()=>l,vN:()=>c,xj:()=>p});var r=n(2870),o=n(8879),a=n.n(o);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=null==t?void 0:t.map((function(e){var t=e.countMap;return{serviceName:e.serviceName,count:t.reduce((function(e,t){return e+t.allAppointmentsCount}),0)}}));return n.find((function(t){return t.count===(e=Math).max.apply(e,function(e){if(Array.isArray(e))return i(e)}(r=n.map((function(e){return e.count})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var r}))},l=function(e){return e.flatMap((function(e){return{serviceName:e.appointmentService.name,countMap:Object.entries(e.appointmentCountMap).flatMap((function(e){return e[1]}))}}))},c=function(e,t){return e.map((function(e){return Object.entries(e.appointmentCountMap).flatMap((function(e){return e[1][t]}))})).flat(1).reduce((function(e,t){return e+t}),0)};function m(){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);return Math.floor(e/6e4)+"min"}var A=function(e,t){var n,o,a,i,s,l,c,A,u,p,d,f,_,v,C,h,g;return{id:null==e?void 0:e.uuid,name:null===(n=e.patient)||void 0===n?void 0:n.name,age:null===(o=e.patient)||void 0===o?void 0:o.birthDate,gender:null===(a=e.patient)||void 0===a?void 0:a.gender,phoneNumber:null===(i=e.patient)||void 0===i?void 0:i.phoneNumber,dob:(0,r.formatDate)((0,r.parseDate)(null===(s=e.patient)||void 0===s?void 0:s.birthDate),{mode:"wide"}),patientUuid:null===(l=e.patient)||void 0===l?void 0:l.uuid,dateTime:(v=(0,r.parseDate)(e.startDateTime),C=v.getHours(),h=v.getMinutes(),g=C>=12?"PM":"AM",(C=(C%=12)||12)+":"+(h=h<10?"0"+h:h)+" "+g),serviceType:e.service?e.service.name:"--",serviceColor:(null===(c=e.service)||void 0===c?void 0:c.color)?e.service.color:"__",serviceUuid:e.service?e.service.uuid:null,appointmentKind:e.appointmentKind?e.appointmentKind:"--",status:e.status,provider:e.provider?null===(A=e.provider.person)||void 0===A?void 0:A.display:"--",location:e.location?e.location.name:"--",comments:e.comments?e.comments:"--",appointmentNumber:e.appointmentNumber,color:null!==(_=null==e||null===(u=e.service)||void 0===u?void 0:u.color)&&void 0!==_?_:"",identifier:null===(p=e.patient)||void 0===p?void 0:p.identifier,duration:(null===(d=e.service)||void 0===d?void 0:d.durationMins)?(null==e||null===(f=e.service)||void 0===f?void 0:f.durationMins)+t("minutes","min"):m(e.startDateTime,e.endDateTime),recurring:e.recurring}},u=function(e){var t,n,o,a,i,s,l,c;return{id:e.uuid,name:null===(t=e.patient)||void 0===t?void 0:t.name,age:null===(n=e.patient)||void 0===n?void 0:n.birthDate,gender:null===(o=e.patient)||void 0===o?void 0:o.gender,phoneNumber:null===(a=e.patient)||void 0===a?void 0:a.phoneNumber,dob:(0,r.formatDate)((0,r.parseDate)(null===(i=e.patient)||void 0===i?void 0:i.birthDate),{mode:"wide"}),patientUuid:null===(s=e.patient)||void 0===s?void 0:s.uuid,dateTime:e.startDateTime,serviceType:e.service?e.service.name:"--",serviceUuid:e.service?e.service.uuid:null,appointmentKind:e.appointmentKind?e.appointmentKind:"--",status:e.status,provider:e.providers?null===(l=null==e?void 0:e.providers[0])||void 0===l?void 0:l.name:"--",location:e.location?null===(c=e.location)||void 0===c?void 0:c.name:"--",comments:e.comments?e.comments:"--",appointmentNumber:e.appointmentNumber,providers:e.providers,identifier:e.patient.identifier}},p=function(e,t){return e.isSame(t,"month")},d=function(e){for(var t=a()(e).startOf("month"),n=a()(e).endOf("month"),r=a()(e).daysInMonth(),o=a()(e).subtract(1,"month"),i=a()(e).add(1,"month"),s=[],l=o.daysInMonth()-t.day();l<o.daysInMonth();l++)s.push(e.date(l).month(o.month()));for(var c=1;c<=r;c++)s.push(e.date(c));for(var m=s.length>30?7:14,A=1;A<m-n.day();A++)s.push(e.date(A).month(i.month()));return s},f=function(e,t){switch(e){case"M":return t("male","Male");case"F":return t("female","Female");case"O":return t("other","Other");case"U":return t("unknown","Unknown");default:return e}},_=function(e){for(var t=[],n=0;n<1;n++)for(var r=0;r<8;r++)t.push(a()(e).day(0===r?0:r-1).hour(n));return t},v=function(e){for(var t=[],n=0;n<24;n++)for(var r=0;r<8;r++)t.push(a()(e).day(0===r?0:r-1).hour(n));return t},C=function(e){for(var t=[],n=0;n<24;n++)t.push(a()(e).hour(n));return t}},1027:(e,t,n)=>{n.d(t,{es:()=>d,A8:()=>A,Nz:()=>r.Nz,g9:()=>r.g9,Ey:()=>r.Ey,IF:()=>r.IF,bf:()=>r.bf,vN:()=>r.vN,xj:()=>r.xj,df:()=>r.df,zF:()=>f,Gd:()=>r.Gd,c1:()=>r.c1});var r=n(8702),o=n(2870),a=n(8879),i=n.n(a),s=n(268),l=n(8179);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var A=function(e,t){var n=m(null==e?void 0:e.split(":"),2),r=n[0],o=n[1];return"12"===r&&"AM"===t&&(r="00"),"PM"===t&&(r="12"===r?r:parseInt(r,10)+12),[r,o]},u={appointmentDate:i()((new Date).setHours(0,0,0,0)).format(l.J$)};function p(){return(0,o.getGlobalStore)("appointmentStartDate",u)}function d(e){p().setState({appointmentDate:i()(new Date(e).setHours(0,0,0,0)).format(l.J$)})}var f=function(){var e=m((0,s.useState)(u.appointmentDate),2),t=e[0],n=e[1];return(0,s.useEffect)((function(){p().subscribe((function(e){var t=e.appointmentDate;return n(t.toString())}))}),[]),{currentAppointmentDate:t,setCurrentAppointmentDate:n}}},6196:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(2870),o=n(5475),a=n.n(o),i=function(){var e=(0,r.useConfig)().defaultFacilityUrl,t=a()(e,r.openmrsFetch),n=t.data,o=t.error,i=t.isLoading;return{defaultFacility:n?null==n?void 0:n.data:null,isLoading:i,isError:o}}},1723:(e,t,n)=>{n.d(t,{I8:()=>l,Ir:()=>m,Km:()=>c});var r=n(2870),o=n(268);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i={isOverlayOpen:!1,header:""},s=function(){return(0,r.getGlobalStore)("appointment-store",i)},l=function(e,t){s().setState({isOverlayOpen:!0,component:t,header:e})},c=function(){s().setState({component:null,isOverlayOpen:!1})},m=function(){var e,t,n=(e=(0,o.useState)(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=n[0],i=n[1],l=(0,o.useCallback)((function(e){i(e)}),[]);(0,o.useEffect)((function(){l(s().getState()),s().subscribe(l)}),[l]);var c=null!=r?r:{};return{isOverlayOpen:c.isOverlayOpen,component:c.component,header:c.header}}}}]);
|
package/dist/202.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"202.js","mappings":"0MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,skIAAukI,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4BAA4B,gEAAgE,6EAA6E,8EAA8E,MAAQ,GAAG,SAAW,kiCAAkiC,WAAa,MAE/gLH,EAAwBI,OAAS,CAChC,oBAAuB,oEACvB,oBAAuB,oEACvB,oBAAuB,oEACvB,oBAAuB,oEACvB,WAAc,2DACd,YAAe,4DACf,YAAe,4DACf,OAAU,uDACV,QAAW,wDACX,MAAS,sDACT,cAAiB,8DACjB,iBAAoB,iEACpB,IAAO,oDACP,OAAU,uDACV,eAAkB,+DAClB,OAAU,uDACV,gBAAmB,gEACnB,gBAAmB,gEACnB,aAAgB,6DAChB,oBAAuB,oEACvB,kBAAqB,kEACrB,cAAiB,8DACjB,MAAS,sDACT,KAAQ,sDAET,S,kEC9BIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,usHAAssH,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,qFAAqF,kHAAkH,wHAAwH,mHAAmH,0HAA0H,wFAAwF,mDAAmD,+HAA+H,6EAA6E,4DAA4D,MAAQ,GAAG,SAAW,4uDAA4uD,WAAa,MAEhiNH,EAAwBI,OAAS,CAChC,cAAiB,qDACjB,cAAiB,qDACjB,WAAc,kDACd,YAAe,mDACf,YAAe,mDACf,YAAe,mDACf,qBAAwB,4DACxB,KAAQ,4CACR,mBAAsB,0DACtB,SAAY,iDAEb,S,wJCnBA,iB,yFAOO,IAcMC,EAA0B,SACrCC,EACAC,EACAC,GAEA,IACoBC,EADdC,GAAqBC,EAAAA,EAAAA,IAAsB,IAAIC,KAAKJ,GAAkBF,G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AkBP,UAAUe,EAC9B,GAAG,CAACA,IAEJ,IAA6CF,EAAAA,QAAAA,EAAW,CAAC,EAEzD,MAAO,CACLR,cAH2CQ,EAArCR,cAINM,UAJ2CE,EAAtBF,UAKrBL,OAL2CO,EAAXP,OAOpC,C","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments/forms/create-edit-form/appointments-form.scss","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/workload.scss","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/workload-helper.ts","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/location-select-option.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/workload.scss?b9df","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/workload.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/create-edit-form/appointments-form.scss?0aba","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/create-edit-form/appointments-form.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/useInitialFormValues.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/forms.resource.ts","webpack://@openmrs/esm-appointments-app/./src/helpers/functions.ts","webpack://@openmrs/esm-appointments-app/./src/helpers/time.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useDefaultLocation.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useOverlay.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","useCalendarDistribution","servieUuid","distributionType","appointmentDate","getMonthlyCalendarDistribution","appointmentSummary","useAppointmentSummary","Date","monthlyData","startDate","appointmentCount","distributionHashTable","Map","i","set","dayjs","add","format","map","date","count","has","Array","from","flatMap","value","slice","selectedLocation","defaultFacility","locations","useTranslation","t","Object","keys","length","SelectItem","key","uuid","text","display","location","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","isActive","onClick","div","tabIndex","role","className","styles","tileContainer","activeWorkloadCard","tileHeader","label","headerLabel","totalsLabel","first","appointment","patientUuid","context","useConfig","appointmentTypes","appointmentStatuses","hiddenFormFields","initialAppointmentFormValues","session","useSession","appointmentKind","status","serviceUuid","startDateTime","endDateTime","providers","providerUuid","currentProvider","comments","locationUuid","sessionLocation","frequency","appointmentNumber","visitDate","dateTime","timeFormat","getHours","isFullDay","day","useInitialAppointmentFormValue","useState","patientAppointment","setPatientAppointment","usePatient","patient","isLoading","useLocations","sessionUser","useProviders","useServices","services","isSubmitting","setIsSubmitting","selectedTab","setSelectedTab","calendarWorkload","useAppointmentDate","currentAppointmentDate","setSelectedLocation","useDefaultLoginLocation","appointmentService","find","today","startOf","useEffect","loadingDefaultFacility","handleSubmit","convertTime12to24","startHour","startMinutes","endHour","endMinutes","startDatetime","endDatetime","appointmentPayload","toAppointmentDateTime","AbortController","saveAppointment","then","showToast","critical","kind","description","title","mutate","closeOverlay","error","showNotification","message","formContainer","SkeletonText","stickyFormHeader","ExtensionSlot","name","state","p","Select","labelText","invalidText","defaultSelected","onChange","event","target","LocationSelectOption","inputContainer","service","row","Toggle","onToggle","labelA","labelB","defaultToggled","DatePicker","dateFormat","datePickerType","minDate","datePickerInput","DatePickerInput","placeholder","style","width","TimePicker","timePickerInput","pattern","TimePickerSelect","aria-label","workLoadContainer","workLoadTitle","Tabs","selectedIndex","tabs","TabList","paddingLeft","Tab","TabPanels","TabPanel","padding","workLoadCard","index","WorkloadCard","monthlyWorkLoadCard","includes","hide","provider","Layer","margin","TextArea","cols","rows","ButtonSet","Button","button","disabled","type","useSWR","openmrsFetch","data","isValidating","isError","results","abortController","method","signal","headers","body","cancelAppointment","toStatus","appointmentUuid","timeZone","statusChangeTime","url","Intl","DateTimeFormat","resolvedOptions","omrsDateFormat","onDate","fromDate","endDate","filter","appointmentCountMap","entries","allAppointmentsCount","sort","dateA","dateB","getTime","hours","minutes","year","month","getHighestAppointmentServiceLoad","Math","groupedAppointments","countMap","serviceName","reduce","cummulator","currentValue","summary","max","x","flattenAppointmentSummary","appointmentToTransfrom","el","getServiceCountByAppointmentType","appointmentType","flat","val","getAppointmentDuration","diff","endTime","startTime","floor","mapAppointmentProperties","ampm","age","birthDate","gender","phoneNumber","dob","formatDate","parseDate","mode","getMinutes","serviceType","serviceColor","color","person","identifier","duration","durationMins","recurring","getAppointment","isSameMonth","cellDate","currentDate","isSame","monthDays","monthStart","monthEnd","endOf","daysInMonth","lastMonth","subtract","nextMonth","days","dayLen","getGender","weekDays","hour","weekAllDays","dailyHours","time12h","split","parseInt","initialState","setHours","getStartDate","getGlobalStore","changeStartDate","updatedDate","setState","setCurrentAppointmentDate","subscribe","toString","apiUrl","defaultFacilityUrl","useSWRImmutable","isOverlayOpen","header","getOverlayStore","launchOverlay","headerTitle","componentToRender","component","useOverlay","overlay","setOverlay","update","useCallback","getState"],"sourceRoot":""}
|
package/dist/255.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 255.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[255],{452:(e,n,t)=>{var r=t(268),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},s=r.useState,a=r.useEffect,u=r.useLayoutEffect,o=r.useDebugValue;function d(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=s({inst:{value:t,getSnapshot:n}}),i=r[0].inst,c=r[1];return u((function(){i.value=t,i.getSnapshot=n,d(i)&&c({inst:i})}),[e,t,n]),a((function(){return d(i)&&c({inst:i}),e((function(){d(i)&&c({inst:i})}))}),[e]),o(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},3100:(e,n,t)=>{e.exports=t(452)},3255:(e,n,t)=>{t.d(n,{J$:()=>u,JG:()=>s.mutate,ZP:()=>o,kY:()=>s.useSWRConfig});var r=t(268),i=t(3100),s=t(
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[255],{452:(e,n,t)=>{var r=t(268),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},s=r.useState,a=r.useEffect,u=r.useLayoutEffect,o=r.useDebugValue;function d(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=s({inst:{value:t,getSnapshot:n}}),i=r[0].inst,c=r[1];return u((function(){i.value=t,i.getSnapshot=n,d(i)&&c({inst:i})}),[e,t,n]),a((function(){return d(i)&&c({inst:i}),e((function(){d(i)&&c({inst:i})}))}),[e]),o(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},3100:(e,n,t)=>{e.exports=t(452)},3255:(e,n,t)=>{t.d(n,{J$:()=>u,JG:()=>s.mutate,ZP:()=>o,kY:()=>s.useSWRConfig});var r=t(268),i=t(3100),s=t(931);const a={dedupe:!0},u=s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig});var o=(0,s.withArgs)(((e,n,t)=>{const{cache:u,compare:o,suspense:d,fallbackData:c,revalidateOnMount:l,refreshInterval:f,refreshWhenHidden:E,refreshWhenOffline:g,keepPreviousData:p}=t,[v,S,h]=s.SWRGlobalState.get(u),[m,b]=(0,s.serialize)(e),R=(0,r.useRef)(!1),U=(0,r.useRef)(!1),C=(0,r.useRef)(m),T=(0,r.useRef)(n),_=(0,r.useRef)(t),y=()=>_.current,V=()=>y().isVisible()&&y().isOnline(),[w,k,I]=(0,s.createCacheHelper)(u,m),L=(0,r.useRef)({}).current,O=(0,s.isUndefined)(c)?t.fallback[m]:c,D=(e,n)=>{let t=!0;for(const r in L){const i=r;o(n[i],e[i])||"data"===i&&(0,s.isUndefined)(e[i])&&o(n[i],M)||(t=!1)}return t},N=(0,r.useMemo)((()=>{const e=!!m&&!!n&&((0,s.isUndefined)(l)?!y().isPaused()&&!d:l),t=()=>{const n=w(),t=(0,s.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t};let r=t();return()=>{const e=t();return D(e,r)?r:r=e}}),[u,m]),F=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>I(m,((n,t)=>{D(n,t)||e()}))),[u,m]),N,N),A=!R.current,P=F.data,x=(0,s.isUndefined)(P)?O:P,W=F.error,G=(0,r.useRef)(x),M=p?(0,s.isUndefined)(P)?G.current:P:x,j=A&&!(0,s.isUndefined)(l)?l:!y().isPaused()&&(d?!(0,s.isUndefined)(x)&&t.revalidateIfStale:(0,s.isUndefined)(x)||t.revalidateIfStale),J=!!(m&&n&&A&&j),Y=(0,s.isUndefined)(F.isValidating)?J:F.isValidating,H=(0,s.isUndefined)(F.isLoading)?J:F.isLoading,q=(0,r.useCallback)((async e=>{const n=T.current;if(!m||!n||U.current||y().isPaused())return!1;let r,i,a=!0;const u=e||{},d=!h[m]||!u.dedupe,c=()=>s.IS_REACT_LEGACY?!U.current&&m===C.current&&R.current:m===C.current,l={isValidating:!1,isLoading:!1},f=()=>{k(l)},E=()=>{const e=h[m];e&&e[1]===i&&delete h[m]},g={isValidating:!0};(0,s.isUndefined)(w().data)&&(g.isLoading=!0);try{if(d&&(k(g),t.loadingTimeout&&(0,s.isUndefined)(w().data)&&setTimeout((()=>{a&&c()&&y().onLoadingSlow(m,t)}),t.loadingTimeout),h[m]=[n(b),(0,s.getTimestamp)()]),[r,i]=h[m],r=await r,d&&setTimeout(E,t.dedupingInterval),!h[m]||h[m][1]!==i)return d&&c()&&y().onDiscarded(m),!1;l.error=s.UNDEFINED;const e=S[m];if(!(0,s.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),d&&c()&&y().onDiscarded(m),!1;const u=w().data;l.data=o(u,r)?u:r,d&&c()&&y().onSuccess(r,m,t)}catch(e){E();const n=y(),{shouldRetryOnError:t}=n;n.isPaused()||(l.error=e,d&&c()&&(n.onError(e,m,n),(!0===t||(0,s.isFunction)(t)&&t(e))&&V()&&n.onErrorRetry(e,m,n,q,{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0}),[m,u]),z=(0,r.useCallback)(((...e)=>(0,s.internalMutate)(u,C.current,...e)),[]);if((0,s.useIsomorphicLayoutEffect)((()=>{T.current=n,_.current=t,(0,s.isUndefined)(P)||(G.current=P)})),(0,s.useIsomorphicLayoutEffect)((()=>{if(!m)return;const e=q.bind(s.UNDEFINED,a);let n=0;const t=(0,s.subscribeCallback)(m,v,(t=>{if(t==s.revalidateEvents.FOCUS_EVENT){const t=Date.now();y().revalidateOnFocus&&t>n&&V()&&(n=t+y().focusThrottleInterval,e())}else if(t==s.revalidateEvents.RECONNECT_EVENT)y().revalidateOnReconnect&&V()&&e();else if(t==s.revalidateEvents.MUTATE_EVENT)return q()}));return U.current=!1,C.current=m,R.current=!0,k({_k:b}),j&&((0,s.isUndefined)(x)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{U.current=!0,t()}}),[m]),(0,s.useIsomorphicLayoutEffect)((()=>{let e;function n(){const n=(0,s.isFunction)(f)?f(x):f;n&&-1!==e&&(e=setTimeout(t,n))}function t(){w().error||!E&&!y().isVisible()||!g&&!y().isOnline()?n():q(a).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,E,g,m]),(0,r.useDebugValue)(M),d&&(0,s.isUndefined)(x)&&m){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");throw T.current=n,_.current=t,U.current=!1,(0,s.isUndefined)(W)?q(a):W}return{mutate:z,get data(){return L.data=!0,M},get error(){return L.error=!0,W},get isValidating(){return L.isValidating=!0,Y},get isLoading(){return L.isLoading=!0,H}}}))}}]);
|
package/dist/255.js.map
CHANGED
|
@@ -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AAsBgB,IAAYI,WAI1G2F,IAHAvD,EAAW1E,GAAaoI,KAAKH,EAKrC,CAEA,OADAA,IACO,KACCD,IACAK,aAAaL,GACbA,GAAS,EACb,CACH,GACF,CACChH,EACAC,EACAC,EACAO,KAGJ,IAAAzC,eAAcmE,GAKVtC,IAAY,IAAAgC,aAAYuB,IAAS3C,EAAK,CAItC,IAAK,EAAA2D,iBAAmB,EAAA0C,UACpB,MAAM,IAAIQ,MAAM,yDAMpB,MAHAtG,EAAWG,QAAU1B,EACrBwB,EAAUE,QAAUzB,EACpBoB,EAAaK,SAAU,GACjB,IAAAU,aAAYwB,GAASK,EAAW1E,GAAeqE,CACzD,CACA,MAAO,CACHkE,OAAQ5B,EACJvC,WAEA,OADAzB,EAAkByB,MAAO,EAClBjB,CACX,EACIkB,YAEA,OADA1B,EAAkB0B,OAAQ,EACnBA,CACX,EACIT,mBAEA,OADAjB,EAAkBiB,cAAe,EAC1BA,CACX,EACIC,gBAEA,OADAlB,EAAkBkB,WAAY,EACvBA,CACX,EACH","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@openmrs/esm-appointments-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@openmrs/esm-appointments-app/../../node_modules/swr/core/dist/index.mjs"],"names":["e","k","Object","is","a","b","l","useState","m","useEffect","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","value","d","f","u","window","document","createElement","inst","c","g","exports","useSyncExternalStore","module","WITH_DEDUPE","dedupe","SWRConfig","OBJECT","defineProperty","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","equal","_","t","returnedData","useMemo","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","isLoading","memorizedSnapshot","cached","useCallback","callback","isInitialMount","cachedData","data","error","laggyDataRef","shouldDoInitialRevalidation","revalidateIfStale","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","onErrorRetry","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","revalidateEvents","FOCUS_EVENT","now","Date","revalidateOnFocus","focusThrottleInterval","RECONNECT_EVENT","revalidateOnReconnect","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","then","clearTimeout","Error","mutate"],"sourceRoot":""}
|
package/dist/303.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[303,152],{2303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i,immutable:()=>s});var n=t(3255),p=t(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[303,152],{2303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i,immutable:()=>s});var n=t(3255),p=t(931);const s=e=>(a,t,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(a,t,n));var i=(0,p.withMiddleware)(n.ZP,s)}}]);
|
package/dist/303.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"303.js","mappings":"
|
|
1
|
+
{"version":3,"file":"303.js","mappings":"kOAGA,MAAMA,EAAaC,GAAa,CAACC,EAAKC,EAASC,KAEvCA,EAAOC,mBAAoB,EAC3BD,EAAOE,mBAAoB,EAC3BF,EAAOG,uBAAwB,EACxBN,EAAWC,EAAKC,EAASC,IAExC,IAAII,GAAQ,IAAAC,gBAAe,KAAQT,E","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/swr/immutable/dist/index.mjs"],"names":["immutable","useSWRNext","key","fetcher","config","revalidateOnFocus","revalidateIfStale","revalidateOnReconnect","index","withMiddleware"],"sourceRoot":""}
|
package/dist/334.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[334],{9788:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(268),a=n.n(r),o=n(4579),i=n(6938),p=n(852);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=function(e){var t=e.appointmentServiceType,n=e.status,r=e.title,s=e.date,u=(0,o.h)(n,s),l=u.appointmentList,b=u.isLoading,m=(0,p.rs)(l,t).map((function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}({id:"".concat(t)},e)}));return a().createElement(i.Z,{appointments:m,isLoading:b,tableHeading:r})}}}]);
|
package/dist/334.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"334.js","mappings":"0OAAA,kB,sGAwBA,QAbkE,Y,IAAGA,EAAAA,EAAAA,uBAAwBC,EAAAA,EAAAA,OAAQC,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,KACnEC,GAAAA,EAAAA,EAAAA,GAAmBH,EAAQE,GAA1DE,EAA+BD,EAA/BC,gBAAiBC,EAAcF,EAAdE,UAEnBC,GAAeC,EAAAA,EAAAA,IAAoBH,EAAiBL,GAAwBS,KAAI,SAACC,EAAaC,GAClG,O,sUAAO,EACLC,GAAI,GAAS,OAAND,IACJD,EAEP,IAEA,OAAO,kBAACG,EAAAA,EAAiBA,CAACN,aAAcA,EAAcD,UAAWA,EAAWQ,aAAcZ,GAC5F,C","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/appointments-by-status.component.tsx"],"names":["appointmentServiceType","status","title","date","useAppointmentList","appointmentList","isLoading","appointments","filterByServiceType","map","appointment","index","id","AppointmentsTable","tableHeading"],"sourceRoot":""}
|
package/dist/435.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[435],{6145:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-header__header____T0Z7{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;height:6rem;background-color:#fff;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between}.-esm-appointments__appointments-header__left-justified-items___CZEZm{display:flex;flex-direction:row;align-items:center;cursor:pointer}.-esm-appointments__appointments-header__right-justified-items___XDzau{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;margin:.5rem}.-esm-appointments__appointments-header__page-name___J2nhC{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-appointments__appointments-header__page-labels___UoKMO{margin:1rem 0}.-esm-appointments__appointments-header__page-labels___UoKMO p:first-of-type{margin-bottom:.25rem}.-esm-appointments__appointments-header__date-and-location___GYvld{display:flex;justify-content:flex-end;align-items:center}.-esm-appointments__appointments-header__dropdownContainer___QjIJk{display:flex;justify-content:flex-end}.-esm-appointments__appointments-header__value___eivSS{margin-left:.25rem}.-esm-appointments__appointments-header__middot___N1FLr{margin:0 .5rem}.-esm-appointments__appointments-header__view___XT0tb{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-appointments__appointments-header__datePicker___lOdCD{background-color:rgba(0,0,0,0);width:10rem;border:none}.-esm-appointments__appointments-header__datePicker___lOdCD>input{color:#edf5ff}html[dir=rtl] .-esm-appointments__appointments-header__date-and-location___GYvld>svg{order:-1}html[dir=rtl] .-esm-appointments__appointments-header__date-and-location___GYvld>span:nth-child(2){order:-2}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/appointments-header/appointments-header.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CClDF,wDC61BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD31BF,aDFQ,CCGR,WE0DW,CFzDX,qBDRM,CCSN,+BAAA,CACA,YAAA,CACA,6BAAA,CAGF,sEACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,cAAA,CAGF,uEC40BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD10BF,aDnBQ,CCoBR,YAAA,CAGF,2DCs0BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CDl0BJ,6DACE,aAAA,CAEA,6EACE,oBAAA,CAIJ,mEACE,YAAA,CACA,wBAAA,CACA,kBAAA,CAGF,mEACE,YAAA,CACA,wBAAA,CAGF,uDACE,kBAAA,CAGF,wDACE,cAAA,CAGF,sDCuyBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDnyBJ,4DACE,8BAAA,CACA,WAAA,CACA,WAAA,CACA,kEACE,aGxDM,CH+DN,qFACE,QAAA,CAEF,mGACE,QAAA",sourceRoot:""}]),i.locals={header:"-esm-appointments__appointments-header__header____T0Z7","left-justified-items":"-esm-appointments__appointments-header__left-justified-items___CZEZm","right-justified-items":"-esm-appointments__appointments-header__right-justified-items___XDzau","page-name":"-esm-appointments__appointments-header__page-name___J2nhC","page-labels":"-esm-appointments__appointments-header__page-labels___UoKMO","date-and-location":"-esm-appointments__appointments-header__date-and-location___GYvld",dropdownContainer:"-esm-appointments__appointments-header__dropdownContainer___QjIJk",value:"-esm-appointments__appointments-header__value___eivSS",middot:"-esm-appointments__appointments-header__middot___N1FLr",view:"-esm-appointments__appointments-header__view___XT0tb",datePicker:"-esm-appointments__appointments-header__datePicker___lOdCD"};const s=i},7322:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-metrics__cardContainer___eKwxC{background-color:#fff;display:flex;justify-content:space-between;padding:.5rem 0rem;flex-flow:row wrap;margin-top:-0.5rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/appointments-metrics/appointments-metrics.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CClDF,gEACE,qBCGM,CDFN,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,kBAAA,CACA,kBAAA",sourceRoot:""}]),i.locals={cardContainer:"-esm-appointments__appointments-metrics__cardContainer___eKwxC"};const s=i},7409:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__metrics-card__container___a0wMY{flex-grow:1}.-esm-appointments__metrics-card__tileContainer___caTDo{border:.0625rem solid #e0e0e0;height:7.875rem;padding:1rem;margin:.5rem .5rem}.-esm-appointments__metrics-card__tileHeader___ORbcf{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.5rem}.-esm-appointments__metrics-card__headerLabel___MDIMK{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}.-esm-appointments__metrics-card__totalsLabel___VOLZp{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}.-esm-appointments__metrics-card__totalsValue___rpZx4{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0);color:#161616}.-esm-appointments__metrics-card__headerLabelContainer___k5dTS{display:flex;align-items:center;height:2rem;justify-content:space-between;width:100%}.-esm-appointments__metrics-card__link___nLW5L{text-decoration:none;display:flex;align-items:center;color:#0f62fe}.-esm-appointments__metrics-card__metricsGrid___iUmq3{display:grid;grid-template-columns:1fr 1fr}.-esm-appointments__metrics-card__countGrid____OQzb{display:grid;grid-template-columns:1fr 1fr;justify-self:flex-end;column-gap:.5rem;row-gap:.5rem;margin:.5rem}.-esm-appointments__metrics-card__countGrid____OQzb>span{font-size:.625rem !important;margin:0;color:#525252}.-esm-appointments__metrics-card__countGrid____OQzb>p{margin:0}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/appointments-metrics/metrics-card.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CClDF,oDACE,WAAA,CAGF,wDACE,6BAAA,CACA,eAAA,CACA,YCmBW,CDlBX,kBAAA,CAGF,qDACE,YAAA,CACA,6BAAA,CACA,oBAAA,CACA,mBCCW,CDEb,sDE20BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFz0BF,aDpBQ,CCuBV,sDEs0BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CFp0BF,aDzBQ,CC4BV,sDEi0BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CF/zBF,aD/BM,CCkCR,+DACE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,6BAAA,CACA,UAAA,CAGF,+CACE,oBAAA,CACA,YAAA,CACA,kBAAA,CACA,aD7Be,CCgCjB,sDACE,YAAA,CACA,6BAAA,CAGF,oDACE,YAAA,CACA,6BAAA,CACA,qBAAA,CACA,gBCzCW,CD0CX,aC1CW,CD2CX,YC3CW,CD6CX,yDACE,4BAAA,CACA,QAAA,CACA,aGrBM,CHwBR,sDACE,QAAA",sourceRoot:""}]),i.locals={container:"-esm-appointments__metrics-card__container___a0wMY",tileContainer:"-esm-appointments__metrics-card__tileContainer___caTDo",tileHeader:"-esm-appointments__metrics-card__tileHeader___ORbcf",headerLabel:"-esm-appointments__metrics-card__headerLabel___MDIMK",totalsLabel:"-esm-appointments__metrics-card__totalsLabel___VOLZp",totalsValue:"-esm-appointments__metrics-card__totalsValue___rpZx4",headerLabelContainer:"-esm-appointments__metrics-card__headerLabelContainer___k5dTS",link:"-esm-appointments__metrics-card__link___nLW5L",metricsGrid:"-esm-appointments__metrics-card__metricsGrid___iUmq3",countGrid:"-esm-appointments__metrics-card__countGrid____OQzb"};const s=i},7969:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__metrics-header__metricsContainer___j6Zvl{display:flex;justify-content:space-between;background-color:#fff;height:4rem;align-items:center;padding:0 1rem}.-esm-appointments__metrics-header__metricsTitle___wryqt{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#161616}.-esm-appointments__metrics-header__link___HDcRy{text-decoration:none;display:flex;align-items:center}.-esm-appointments__metrics-header__viewListBtn___dHjXm{margin:0 0 0 .5rem}.-esm-appointments__metrics-header__metricsContent___elZ82{display:flex;align-items:center;column-gap:.25rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/appointments-metrics/metrics-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,6DACE,YAAA,CACA,6BAAA,CACA,qBDNM,CCON,WCgDW,CD/CX,kBAAA,CACA,cAAA,CAGF,yDEq1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFn1BF,aDXM,CCcR,iDACE,oBAAA,CACA,YAAA,CACA,kBAAA,CAGF,wDACE,kBAAA,CAGF,2DACE,YAAA,CACA,kBAAA,CACA,iBCfW",sourceRoot:""}]),i.locals={metricsContainer:"-esm-appointments__metrics-header__metricsContainer___j6Zvl",metricsTitle:"-esm-appointments__metrics-header__metricsTitle___wryqt",link:"-esm-appointments__metrics-header__link___HDcRy",viewListBtn:"-esm-appointments__metrics-header__viewListBtn___dHjXm",metricsContent:"-esm-appointments__metrics-header__metricsContent___elZ82"};const s=i},9841:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointment-tabs__productiveHeading01___Fsydx{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-appointments__appointment-tabs__productiveHeading02___sk3xh{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-appointments__appointment-tabs__productiveHeading03___JUcKj{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-appointments__appointment-tabs__productiveHeading04___B0bPu{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-appointments__appointment-tabs__bodyLong01___BslNF{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-appointments__appointment-tabs__bodyShort01___R2De5{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-appointments__appointment-tabs__bodyShort02___MSIjs{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-appointments__appointment-tabs__text02___Sx8Es{color:#525252}.-esm-appointments__appointment-tabs__label01___jV_Pi{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-appointments__appointment-tabs__modal___SJ9mi{position:fixed;width:100vw;height:100vh;display:grid;background-color:rgba(0,0,0,.5);z-index:9000;justify-items:center;align-items:center}.-esm-appointments__appointment-tabs__appointmentList___Kyn4j{height:100%;width:100%}.-esm-appointments__appointment-tabs__appointmentList___Kyn4j>div{background-color:#fff}.-esm-appointments__appointment-tabs__tabs___oII5d{grid-column:"span 2"}.-esm-appointments__appointment-tabs__tab___UpKYy{min-width:12rem}.-esm-appointments__appointment-tabs__tab___UpKYy:active,.-esm-appointments__appointment-tabs__tab___UpKYy:focus{outline:2px solid var(--brand-03) !important}.-esm-appointments__appointment-tabs__tab___UpKYy[aria-selected=true]{box-shadow:inset 0 2px 0 0 var(--brand-03) !important}.-esm-appointments__appointment-tabs__tabPanel___cw4QX{padding:0;margin:1rem}.-esm-appointments__appointment-tabs__calendarButton___kthx2{float:right;position:absolute;right:0;height:3rem;min-height:0}.-esm-appointments__appointment-tabs__downloadButton___B7B1d{margin:1rem}.-esm-appointments__appointment-tabs__downloadButton___B7B1d>button{border:1px solid #0f62fe}.-esm-appointments__appointment-tabs__downloadLink___qeEvX{text-decoration:none;color:inherit}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/appointments/appointment-tabs.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,kEC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD11BJ,kEC01BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDt1BJ,kECs1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl1BJ,kECk1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD90BJ,yDC80BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD10BJ,0DC00BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDt0BJ,0DCs0BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDl0BJ,qDACE,aD5BQ,CC+BV,sDC8zBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD1zBJ,oDACE,cAAA,CACA,WAAA,CACA,YAAA,CACA,YAAA,CACA,+BAAA,CACA,YAAA,CACA,oBAAA,CACA,kBAAA,CE3CF,8DACE,WAAA,CACA,UAAA,CAEA,kEACE,qBHTI,CGaR,mDACE,oBAAA,CAGF,kDACE,eAAA,CAEA,iHAEE,4CAAA,CAGF,sEACE,qDAAA,CAIJ,uDACE,SAAA,CACA,WAAA,CAGF,6DACE,WAAA,CACA,iBAAA,CACA,OAAA,CACA,WCWW,CDVX,YAAA,CAGF,6DACE,WCdW,CDeX,oEACE,wBAAA,CAGJ,2DACE,oBAAA,CACA,aAAA",sourceRoot:""}]),i.locals={productiveHeading01:"-esm-appointments__appointment-tabs__productiveHeading01___Fsydx",productiveHeading02:"-esm-appointments__appointment-tabs__productiveHeading02___sk3xh",productiveHeading03:"-esm-appointments__appointment-tabs__productiveHeading03___JUcKj",productiveHeading04:"-esm-appointments__appointment-tabs__productiveHeading04___B0bPu",bodyLong01:"-esm-appointments__appointment-tabs__bodyLong01___BslNF",bodyShort01:"-esm-appointments__appointment-tabs__bodyShort01___R2De5",bodyShort02:"-esm-appointments__appointment-tabs__bodyShort02___MSIjs",text02:"-esm-appointments__appointment-tabs__text02___Sx8Es",label01:"-esm-appointments__appointment-tabs__label01___jV_Pi",modal:"-esm-appointments__appointment-tabs__modal___SJ9mi",appointmentList:"-esm-appointments__appointment-tabs__appointmentList___Kyn4j",tabs:"-esm-appointments__appointment-tabs__tabs___oII5d",tab:"-esm-appointments__appointment-tabs__tab___UpKYy",tabPanel:"-esm-appointments__appointment-tabs__tabPanel___cw4QX",calendarButton:"-esm-appointments__appointment-tabs__calendarButton___kthx2",downloadButton:"-esm-appointments__appointment-tabs__downloadButton___B7B1d",downloadLink:"-esm-appointments__appointment-tabs__downloadLink___qeEvX"};const s=i},501:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,".-esm-appointments__scheduled-appointments__switcher___nzAbW{margin:.125rem 0;max-width:70%}","",{version:3,sources:["webpack://./src/appointments/scheduled/scheduled-appointments.scss"],names:[],mappings:"AAAA,6DACE,gBAAA,CACA,aAAA",sourceRoot:""}]),i.locals={switcher:"-esm-appointments__scheduled-appointments__switcher___nzAbW"};const s=i},9425:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(272),r=n.n(a),o=n(2609),i=n.n(o)()(r());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}:root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__overlay__productiveHeading01___nhbNT{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-appointments__overlay__productiveHeading02___UtcMw{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-appointments__overlay__productiveHeading03___LUZBj{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-appointments__overlay__productiveHeading04___Wx3v1{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-appointments__overlay__bodyLong01___pyDvI{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-appointments__overlay__bodyShort01___zshHs{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-appointments__overlay__bodyShort02___zOKhm{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-appointments__overlay__text02___hjc11{color:#525252}.-esm-appointments__overlay__label01___Xc3RC{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-appointments__overlay__modal___X1uj6{position:fixed;width:100vw;height:100vh;display:grid;background-color:rgba(0,0,0,.5);z-index:9000;justify-items:center;align-items:center}.-esm-appointments__overlay__desktopOverlay___aE4W7{position:fixed;top:3rem;width:37rem;right:0;bottom:0;border-left:1px solid #a8a8a8;background-color:#f4f4f4;overflow-y:auto;height:calc(100vh - 3rem);z-index:3}.-esm-appointments__overlay__desktopOverlay___aE4W7::after{height:100%;border-left:1px solid #a8a8a8}.-esm-appointments__overlay__tabletOverlay___rWlkB{position:fixed;top:0;bottom:0;left:0;right:0;z-index:9999;background-color:#f4f4f4;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;z-index:3}.-esm-appointments__overlay__tabletOverlay___rWlkB::-webkit-scrollbar{width:0}.-esm-appointments__overlay__tabletOverlay___rWlkB>div{margin-top:3rem}.-esm-appointments__overlay__tabletOverlayHeader___J_GDW button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-appointments__overlay__tabletOverlayHeader___J_GDW .-esm-appointments__overlay__headerContent___zd6LU{color:#fff}.-esm-appointments__overlay__desktopHeader___CBZYZ{display:flex;justify-content:space-between;align-items:center;background-color:#e0e0e0;border-bottom:1px solid #a8a8a8;position:sticky;position:-webkit-sticky;width:100%;z-index:1000;top:0}.-esm-appointments__overlay__headerContent___zd6LU{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);padding:0 1rem;color:#161616}.-esm-appointments__overlay__closeButton___jxawR{background-color:#fff;color:#161616;fill:#161616}.omrs-breakpoint-gt-tablet .-esm-appointments__overlay__overlayContent___ciDNH{padding:0 0 0 0;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-appointments__overlay__overlayContent___ciDNH{padding:0 0 0 0;overflow-y:auto}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/overlay.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CAHF,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,yDC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD11BJ,yDC01BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDt1BJ,yDCs1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl1BJ,yDCk1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD90BJ,gDC80BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD10BJ,iDC00BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDt0BJ,iDCs0BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDl0BJ,4CACE,aD5BQ,CC+BV,6CC8zBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD1zBJ,2CACE,cAAA,CACA,WAAA,CACA,YAAA,CACA,YAAA,CACA,+BAAA,CACA,YAAA,CACA,oBAAA,CACA,kBAAA,CE3CF,oDACE,cAAA,CACA,QC4CW,CD3CX,WAAA,CACA,OAAA,CACA,QAAA,CACA,6BAAA,CACA,wBHZM,CGaN,eAAA,CACA,yBAAA,CACA,SAAA,CAGF,2DACE,WAAA,CACA,6BAAA,CAGF,mDACE,cAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,YAAA,CACA,wBH9BM,CG+BN,iBAAA,CACA,uBAAA,CACA,oBAAA,CACA,SAAA,CAEA,sEACE,OAAA,CAGF,uDACE,eCUS,CDLX,gEHRA,wBAAA,CACA,gCAAA,CGWA,4GACE,UHlDI,CGsDR,mDACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,wBHzDM,CG0DN,+BAAA,CACA,eAAA,CACA,uBAAA,CACA,UAAA,CACA,YAAA,CACA,KAAA,CAGF,mDD8xBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CC5xBF,cAAA,CACA,aHnEM,CGsER,iDACE,qBHpEc,CGqEd,aHxEM,CGyEN,YHzEM,CG8EN,+EACE,eAAA,CACA,eAAA,CAMF,gFACE,eAAA,CACA,eAAA",sourceRoot:""}]),i.locals={productiveHeading01:"-esm-appointments__overlay__productiveHeading01___nhbNT",productiveHeading02:"-esm-appointments__overlay__productiveHeading02___UtcMw",productiveHeading03:"-esm-appointments__overlay__productiveHeading03___LUZBj",productiveHeading04:"-esm-appointments__overlay__productiveHeading04___Wx3v1",bodyLong01:"-esm-appointments__overlay__bodyLong01___pyDvI",bodyShort01:"-esm-appointments__overlay__bodyShort01___zshHs",bodyShort02:"-esm-appointments__overlay__bodyShort02___zOKhm",text02:"-esm-appointments__overlay__text02___hjc11",label01:"-esm-appointments__overlay__label01___Xc3RC",modal:"-esm-appointments__overlay__modal___X1uj6",desktopOverlay:"-esm-appointments__overlay__desktopOverlay___aE4W7",tabletOverlay:"-esm-appointments__overlay__tabletOverlay___rWlkB",tabletOverlayHeader:"-esm-appointments__overlay__tabletOverlayHeader___J_GDW",headerContent:"-esm-appointments__overlay__headerContent___zd6LU",desktopHeader:"-esm-appointments__overlay__desktopHeader___CBZYZ",closeButton:"-esm-appointments__overlay__closeButton___jxawR",overlayContent:"-esm-appointments__overlay__overlayContent___ciDNH"};const s=i},8118:(e,t,n)=>{n.d(t,{Z:()=>T});var a=n(268),r=n.n(a),o=n(4924),i=n(3401),s=n(2870);const A=function(){return r().createElement("svg",{width:"92",height:"94",viewBox:"0 0 92 94",xmlns:"http://www.w3.org/2000/svg"},r().createElement("title",null,"Patient queue illustration"),r().createElement("g",{fill:"none",fillRule:"evenodd"},r().createElement("path",{fill:"#FFF",d:"M0 0h92v94H0z"}),r().createElement("path",{d:"M40 32c.84-.602 1.12-1.797 1-3 .12-5.005-3.96-9-9-9s-9.12 3.995-9 9c-.12 3.572 2.1 6.706 5 8-6.76 1.741-12 7.91-12 15v15h28V32h-4zM76 67V52c0-7.09-5.24-13.278-12-15 2.9-1.294 5.12-4.428 5-8 .12-5.005-3.96-9-9-9s-9.12 3.995-9 9c-.12 1.203.14 2.398 1 3h-4v35h28z",fill:"#CEE6E5"}),r().createElement("path",{d:"M32 75V60.312c0-7.402 5.24-13.59 12.3-15.216-3.2-1.39-5.42-4.523-5.42-8.166 0-4.935 4.08-8.93 9.12-8.93 5.04 0 9.12 3.995 9.12 8.93 0 3.642-2.22 6.776-5.42 8.166C58.76 46.741 64 52.91 64 60.313V75",fill:"#7BBCB9"})))};var l=n(1354),c=n.n(l),m=n(1583),p=n.n(m),d=n(7378),_=n.n(d),u=n(5993),C=n.n(u),h=n(4154),g=n.n(h),v=n(8141),f=n.n(v),b=n(6145),y={};y.styleTagTransform=f(),y.setAttributes=C(),y.insert=_().bind(null,"head"),y.domAPI=p(),y.insertStyleElement=g(),c()(b.Z,y);const D=b.Z&&b.Z.locals?b.Z.locals:void 0;var E=n(399),w=n(8879),B=n.n(w),k=n(1027),x=n(3255);function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function S(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}const T=function(e){var t,n,l=e.title,c=e.onChange,m=(0,o.useTranslation)().t,p=(0,s.useSession)(),d=(0,a.useRef)(null),_=(0,k.zF)().currentAppointmentDate,u=null==p||null===(t=p.sessionLocation)||void 0===t?void 0:t.display,C=function(){var e,t=(0,x.ZP)("/ws/rest/v1/appointmentService/all/default",s.openmrsFetch),n=t.data,a=t.error,r=t.isLoading;return{serviceTypes:null!==(e=null==n?void 0:n.data)&&void 0!==e?e:[],isLoading:r,error:a}}().serviceTypes;return r().createElement("div",{className:D.header,"data-testid":"appointments-header"},r().createElement("div",{className:D["left-justified-items"]},r().createElement(A,null),r().createElement("div",{className:D["page-labels"]},r().createElement("p",null,m("appointments","Appointments")),r().createElement("p",{className:D["page-name"]},l))),r().createElement("div",{className:D["right-justified-items"]},r().createElement("div",{className:D["date-and-location"]},r().createElement(i.Ye,{size:16}),r().createElement("span",{className:D.value},u),r().createElement("span",{className:D.middot},"·"),r().createElement(E.Mtg,{onChange:function(e){var t,n,a=(t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,n)||S(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return(0,k.es)(new Date(a))},ref:d,dateFormat:"d-M-Y",datePickerType:"single"},r().createElement(E.aj6,{style:{backgroundColor:"transparent",border:"none",maxWidth:"10rem"},id:"date-picker-calendar-id",placeholder:"DD-MMM-YYYY",labelText:"",type:"text",value:B()(_).format("DD MMM YYYY")}))),"function"==typeof c&&r().createElement("div",{className:D.dropdownContainer},r().createElement(E.mh4,null,r().createElement(E.Ltx,{ariaLabel:"Dropdown",id:"selectServicesDropDown",items:[{name:"All",uuid:""}].concat((n=C,function(e){if(Array.isArray(e))return z(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||S(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),itemToString:function(e){return e?e.name:""},label:m("selectServiceType","Select service type"),titleText:m("view","View"),type:"inline",size:"sm",direction:"bottom",onChange:function(e){var t=e.selectedItem;return c(null==t?void 0:t.uuid)}})))))}},4435:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ke});var a=n(268),r=n.n(a),o=n(4924),i=n(399),s=n(4809),A=n(8879),l=n.n(A),c=n(9388),m=n.n(c),p=n(2870),d=n(1027),_=n(1354),u=n.n(_),C=n(1583),h=n.n(C),g=n(7378),v=n.n(g),f=n(5993),b=n.n(f),y=n(4154),D=n.n(y),E=n(8141),w=n.n(E),B=n(501),k={};k.styleTagTransform=w(),k.setAttributes=b(),k.insert=v().bind(null,"head"),k.domAPI=h(),k.insertStyleElement=D(),u()(B.Z,k);const x=B.Z&&B.Z.locals?B.Z.locals:void 0;function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}l().extend(m());var F="scheduled-appointments-panels-slot";function I(e){var t,n,o=e.extension,i=e.currentTab,s=e.appointmentServiceType,A=e.date,l=e.dateType,c=e.showExtensionTab,m=e.hideExtensionTab,d=(0,a.useRef)(null),_=(0,a.useRef)(l);return(0,a.useEffect)((function(){(null===d.current||null!==d.current&&!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.getOwnPropertyNames(e),a=Object.getOwnPropertyNames(t);return n.length===a.length&&n.every((function(n){return e[n]===t[n]}))}(d.current,o.config)||_.current!==l)&&(d.current=o.config,_.current=l,function(e,t){if(!e)return!1;switch(t){case"futureDate":var n;return null!==(n=e.showForFutureDate)&&void 0!==n&&n;case"pastDate":var a;return null!==(a=e.showForPastDate)&&void 0!==a&&a;case"today":var r;return null!==(r=e.showForToday)&&void 0!==r&&r}}(null==o?void 0:o.config,l)?c(o.name):m(o.name))}),[o,l,c,m]),r().createElement("div",{key:o.name,className:x.container,style:{display:i===o.name?"block":"none"}},r().createElement(p.Extension,{state:{date:A,appointmentServiceType:s,status:null===(t=o.config)||void 0===t?void 0:t.status,title:null===(n=o.config)||void 0===n?void 0:n.title}}))}const j=function(e){e.visits;var t,n=e.appointmentServiceType,s=(0,o.useTranslation)().t,A=(0,d.zF)().currentAppointmentDate,c=T((0,a.useState)(null),2),m=c[0],_=c[1],u=T((0,a.useState)("today"),2),C=u[0],h=u[1],g=(0,p.useConnectedExtensions)(F),v=function(){var e=T((0,a.useReducer)((function(e,t){var n={};switch(t.type){case"show_extension":n[t.extension]=!0;break;case"hide_extension":n[t.extension]=!1}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){S(e,t,n[t])}))}return e}({},e,n)}),{}),2),t=e[0],n=e[1];return{allowedExtensions:t,showExtension:function(e){return n({type:"show_extension",extension:e})},hideExtension:function(e){return n({type:"hide_extension",extension:e})}}}(),f=v.allowedExtensions,b=v.showExtension,y=v.hideExtension,D=(0,a.useCallback)((function(e){return null!==(t=f[e.name])&&void 0!==t&&t}),[f]);return(0,a.useEffect)((function(){var e=l()(A),t=l()();e.isBefore(t,"date")?h("pastDate"):e.isAfter(t,"date")?h("futureDate"):h("today")}),[A]),(0,a.useEffect)((function(){if(f&&(null===m||!f[m])){var e=!0,t=!1,n=void 0;try{for(var a,r=Object.getOwnPropertyNames(f)[Symbol.iterator]();!(e=(a=r.next()).done);e=!0){var o=a.value;if(f[o]){_(o);break}}}catch(e){t=!0,n=e}finally{try{e||null==r.return||r.return()}finally{if(t)throw n}}}}),[f,m]),r().createElement(r().Fragment,null,r().createElement(i.GHR,{className:x.switcher,size:"sm",onChange:function(e){var t=e.name;return _(t)}},g.filter(D).map((function(e){return r().createElement(i.rsf,{key:"panel-".concat(e.name),name:e.name,text:s(e.config.title)})}))),r().createElement(p.ExtensionSlot,{name:F},(function(e){return r().createElement(I,{extension:e,currentTab:m,appointmentServiceType:n,date:A,dateType:C,showExtensionTab:b,hideExtensionTab:y})})))};var N=n(5362),O=n(3255),L=n(9997),H=n(2336),Z=n(852);function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},G.apply(this,arguments)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Y=function(){var e,t,n,s=(0,o.useTranslation)().t,A=P((0,a.useState)(25),2),l=A[0],c=A[1],m=P((0,a.useState)(""),2),_=m[0],u=m[1],C=function(){var e,t=(0,d.zF)().currentAppointmentDate,n="/ws/rest/v1/appointment/unScheduledAppointment?forDate=".concat(t),a=(0,O.ZP)(n,p.openmrsFetch,{errorRetryCount:2}),r=a.data,o=a.error;return{isLoading:a.isLoading,data:null!==(e=null==r?void 0:r.data)&&void 0!==e?e:[],error:o}}(),h=C.data,g=C.isLoading,v=(C.error,(0,Z.si)(h,_)),f=(0,p.usePagination)(v,l),b=f.results,y=f.currentPage,D=f.goTo,E=null==b?void 0:b.map((function(e){return{id:"".concat(e.uuid),name:r().createElement(p.ConfigurableLink,{style:{textDecoration:"none"},to:"${openmrsSpaBase}/patient/".concat(e.uuid,"/chart")},e.name),identifier:e.identifier,gender:"F"===e.gender?"Female":"Male",phoneNumber:""===e.phoneNumber?"--":e.phoneNumber}}));return g?r().createElement(i.gqd,null):(null==h?void 0:h.length)?r().createElement("div",null,r().createElement(i.wQF,{rows:E,headers:[{header:"Patient Name",key:"name"},{header:"Identifier",key:"identifier"},{header:"Gender",key:"gender"},{header:"Phone Number",key:"phoneNumber"}],isSortable:!0},(function(t){var n=t.rows,a=t.headers,o=t.getHeaderProps,A=t.getTableProps;return r().createElement(i.xJi,{title:"".concat(s("unscheduledAppointments","Unscheduled appointments")," ").concat(h.length),description:"".concat(s("Total ".concat(null!==(e=h.length)&&void 0!==e?e:0)))},r().createElement(i.fjU,null,r().createElement(i.Vj0,null,r().createElement(i.Ys1,{style:{backgroundColor:"#f4f4f4"},tabIndex:0,onChange:function(e){return u(e.target.value)}}),r().createElement(i.zxk,{size:"lg",kind:"tertiary",renderIcon:N.UW,onClick:function(){return(0,L.G)(h)}},s("download","Download")))),r().createElement(i.iA_,G({},A()),r().createElement(i.ssF,null,r().createElement(i.SCH,null,a.map((function(e){return r().createElement(i.xDH,G({},o({header:e})),e.header)})))),r().createElement(i.RMI,null,n.map((function(e){return r().createElement(i.SCH,{key:e.id},e.cells.map((function(e){return r().createElement(i.pj1,{key:e.id},e.value)})))})))))})),r().createElement(i.tlE,{backwardText:"Previous page",forwardText:"Next page",page:y,pageNumberText:"Page Number",pageSize:l,onChange:function(e){var t=e.page,n=e.pageSize;D(t),c(n)},pageSizes:null!==(t=(0,Z.jM)(h,l))&&void 0!==t?t:[],totalItems:null!==(n=h.length)&&void 0!==n?n:0})):r().createElement(H.u,{displayText:s("unscheduledAppointments_lower","unscheduled appointments"),headerTitle:s("unscheduledAppointments","Unscheduled appointments"),scheduleType:"Unscheduled"})};var W=n(9841),U={};U.styleTagTransform=w(),U.setAttributes=b(),U.insert=v().bind(null,"head"),U.domAPI=h(),U.insertStyleElement=D(),u()(W.Z,U);const R=W.Z&&W.Z.locals?W.Z.locals:void 0;function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},K.apply(this,arguments)}const V=function(e){var t,n,A=e.appointmentServiceType,l=(0,o.useTranslation)().t,c=(t=(0,a.useState)(0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=c[0],p=c[1],d=(0,s.T)(),_=d.isLoading,u=void 0!==_&&_,C=d.visits,h=void 0===C?[]:C,g=d.mutateVisit;return r().createElement("div",{className:R.appointmentList,"data-testid":"appointment-list"},r().createElement(i.mQc,{selectedIndex:m,onChange:function(e){var t=e.selectedIndex;p(t)},className:R.tabs},r().createElement(i.tdY,{style:{paddingLeft:"1rem"},"aria-label":"Appointment tabs",contained:!0},r().createElement(i.OK9,{className:R.tab},l("scheduled","Scheduled")),r().createElement(i.OK9,{className:R.tab},l("unscheduled","Unscheduled"))),r().createElement(i.nPR,null,r().createElement(i.x45,{className:R.tabPanel},r().createElement(j,K({},{visits:h,isLoading:u,appointmentServiceType:A,mutateVisit:g}))),r().createElement(i.x45,{className:R.tabPanel},r().createElement(Y,null)))))};var X=n(8118),Q=n(6002),q=n(8179),$=n(7279),ee=n(4579),te=n(8871),ne=n(7409),ae={};ae.styleTagTransform=w(),ae.setAttributes=b(),ae.insert=v().bind(null,"head"),ae.domAPI=h(),ae.insertStyleElement=D(),u()(ne.Z,ae);const re=ne.Z&&ne.Z.locals?ne.Z.locals:void 0;l().extend(m());const oe=function(e){var t,n,s=e.label,A=e.value,c=e.headerLabel,m=e.children,d=e.view,_=e.count,u=e.appointmentDate,C=(0,o.useTranslation)().t,h=(0,a.useMemo)((function(){return!l()(u).isBefore(l()(),"date")}),[u]);return r().createElement(i.mh4,{className:re.container},r().createElement(i.n9L,{className:re.tileContainer},r().createElement("div",{className:re.tileHeader},r().createElement("div",{className:re.headerLabelContainer},r().createElement("label",{className:re.headerLabel},c),m),d&&r().createElement("div",{className:re.link},r().createElement(p.ConfigurableLink,{className:re.link,to:"".concat(q.JB).concat(q.sb,"/").concat({patients:"appointments-list/scheduled",highVolume:"appointments-list/high-volume-service",providers:"appointments-list/providers-link"}[d])},r().createElement("span",{style:{fontSize:"0.825rem",marginRight:"0.325rem"}},C("view","View"))," ",r().createElement(te.ol,{size:16,className:re.viewListBtn})))),r().createElement("div",{className:re.metricsGrid},r().createElement("div",null,r().createElement("label",{className:re.totalsLabel},s),r().createElement("p",{className:re.totalsValue},A)),!(0,$.Z)(_)&&r().createElement("div",{className:re.countGrid},r().createElement("span",null,C("checkedIn","Checked in")),r().createElement("span",null,h?C("notArrived","Not arrived"):C("missed","Missed")),r().createElement("p",{style:{color:"#319227"}},null===(t=_.arrivedAppointments)||void 0===t?void 0:t.length),r().createElement("p",{style:{color:"#da1e28"}},null===(n=_.pendingAppointments)||void 0===n?void 0:n.length)))))};var ie=n(6824),se=n.n(ie),Ae=n(4403),le=n(7640),ce=n(1723),me=n(7202),pe=n(7969),de={};de.styleTagTransform=w(),de.setAttributes=b(),de.insert=v().bind(null,"head"),de.domAPI=h(),de.insertStyleElement=D(),u()(pe.Z,de);const _e=pe.Z&&pe.Z.locals?pe.Z.locals:void 0;function ue(){return ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ue.apply(this,arguments)}l().extend(se());const Ce=function(){var e=(0,o.useTranslation)().t;return r().createElement("div",{className:_e.metricsContainer},r().createElement("span",{className:_e.metricsTitle},e("appointmentMetrics","Appointment metrics")),r().createElement("div",{className:_e.metricsContent},r().createElement(i.zxk,{kind:"tertiary",renderIcon:Ae.f,onClick:function(){return(0,p.navigate)({to:"".concat(q.JB,"/appointments/calendar")})}},e("appointmentsCalendar","Appointments Calendar")),r().createElement(p.ExtensionSlot,{name:"patient-search-button-slot",state:{selectPatientAction:function(t){(0,ce.Km)(),(0,ce.I8)(e("appointmentForm","Create Appointment"),r().createElement(me.Z,{patientUuid:t,context:"creating"}))},buttonText:e("createNewAppointment","Create new appointment"),overlayHeader:e("createNewAppointment","Create new appointment"),buttonProps:{kind:"primary",renderIcon:function(e){return r().createElement(le.zI,ue({size:32},e))},size:"lg"}}})))};var he=n(7322),ge={};ge.styleTagTransform=w(),ge.setAttributes=b(),ge.insert=v().bind(null,"head"),ge.domAPI=h(),ge.insertStyleElement=D(),u()(he.Z,ge);const ve=he.Z&&he.Z.locals?he.Z.locals:void 0,fe=function(e){var t,n=e.serviceUuid,a=(0,o.useTranslation)().t,i=function(){var e,t,n,a=(0,d.zF)().currentAppointmentDate,r=l()(new Date(a).setHours(23,59,59,59)).format(q.J$),o="/ws/rest/v1/appointment/appointmentSummary?startDate=".concat(a,"&endDate=").concat(r),i=(0,O.ZP)(o,p.openmrsFetch),s=i.data,A=i.error,c=i.isLoading,m=(i.mutate,(0,d.vN)(null!==(e=null==s?void 0:s.data)&&void 0!==e?e:[],"allAppointmentsCount")),_=(0,d.vN)(null!==(t=null==s?void 0:s.data)&&void 0!==t?t:[],"missedAppointmentsCount"),u=(0,d.g9)(null!==(n=null==s?void 0:s.data)&&void 0!==n?n:[]);return{isLoading:c,error:A,totalAppointments:m,missedAppointments:_,highestServiceLoad:(0,d.bf)(u)}}(),s=i.highestServiceLoad,A=i.error,c=function(){var e,t,n=(0,d.zF)().currentAppointmentDate,a="/ws/rest/v1/appointment/all?forDate=".concat(n),r=(0,O.ZP)(a,p.openmrsFetch),o=r.data,i=r.error,s=r.isLoading,A=r.isValidating,l=r.mutate,c=null!==(t=null==o||null===(e=o.data)||void 0===e?void 0:e.filter((function(e){return null!==e.providers})))&&void 0!==t?t:[],m=(0,Q.Z)(c.map((function(e){return e.providers})).flat(),(function(e){return e.uuid})).length;return{totalProviders:m||0,isLoading:s,isError:i,isValidating:A,mutate:l}}(),m=c.totalProviders,_=(c.isLoading,function(e){var t,n,a,r,o,i=(0,d.zF)().currentAppointmentDate,s="/ws/rest/v1/appointment/all?forDate=".concat(i),A=(0,O.ZP)(s,p.openmrsFetch),l=A.data,c=A.error,m=A.isLoading;return A.mutate,{isLoading:m,error:c,totalScheduledAppointments:(0,$.Z)(e)?null!==(o=null==l||null===(a=l.data)||void 0===a?void 0:a.length)&&void 0!==o?o:0:null!==(r=null===(n=null==l||null===(t=l.data)||void 0===t?void 0:t.filter((function(t){var n;return(null==t||null===(n=t.service)||void 0===n?void 0:n.uuid)===e})))||void 0===n?void 0:n.length)&&void 0!==r?r:0}}(n).totalScheduledAppointments),u=(0,d.zF)().currentAppointmentDate,C=(0,p.formatDate)((0,p.parseDate)(u),{mode:"standard",time:!1}),h=(0,ee.h)("CheckedIn").appointmentList,g=(0,ee.h)("Scheduled").appointmentList,v=n?h.filter((function(e){return e.serviceTypeUuid===n})):h,f=n?g.filter((function(e){return e.serviceTypeUuid===n})):g;return A?r().createElement(p.ErrorState,{headerTitle:a("appointmentMetricsLoadError","Metrics load error"),error:A}):r().createElement(r().Fragment,null,r().createElement(Ce,null),r().createElement("div",{className:ve.cardContainer,"data-testid":"clinic-metrics"},r().createElement(oe,{label:a("patients","Patients"),value:_,headerLabel:a("scheduledAppointments","Scheduled appointments"),count:{pendingAppointments:f,arrivedAppointments:v},appointmentDate:u}),r().createElement(oe,{label:0!==(null==s?void 0:s.count)?a(null==s?void 0:s.serviceName):a("serviceName","Service name"),value:null!==(t=null==s?void 0:s.count)&&void 0!==t?t:"--",headerLabel:a("highestServiceVolume","High volume service: {{time}}",{time:C})}),r().createElement(oe,{label:a("providers","Providers"),value:m,headerLabel:a("providersAvailableToday","Providers available: {{time}}",{time:C})})))};var be=n(240),ye=n(9425),De={};De.styleTagTransform=w(),De.setAttributes=b(),De.insert=v().bind(null,"head"),De.domAPI=h(),De.insertStyleElement=D(),u()(ye.Z,De);const Ee=ye.Z&&ye.Z.locals?ye.Z.locals:void 0,we=function(){var e=(0,ce.Ir)(),t=e.header,n=e.component,a=e.isOverlayOpen,o=(0,p.useLayoutType)(),s="tablet"!==o?Ee.desktopOverlay:Ee.tabletOverlay;return r().createElement(r().Fragment,null,a&&r().createElement("div",{className:s},"tablet"===o&&r().createElement(i.h4i,{onClick:function(){return(0,ce.Km)()},"aria-label":"Tablet overlay",className:Ee.tabletOverlayHeader},r().createElement(i.zxk,{hasIconOnly:!0},r().createElement(te.Xd,{size:16})),r().createElement("div",{className:Ee.headerContent},t)),"tablet"!==o&&r().createElement("div",{className:Ee.desktopHeader},r().createElement("div",{className:Ee.headerContent},t),r().createElement(i.zxk,{className:Ee.closePanelButton,onClick:function(){return(0,ce.Km)()},kind:"ghost",hasIconOnly:!0},r().createElement(be.x8,{size:16}))),n))};function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}const ke=function(){var e,t,n=(0,o.useTranslation)().t,i=(e=(0,a.useState)(""),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],A=i[1];return r().createElement(r().Fragment,null,r().createElement(X.Z,{title:n("home","Home"),onChange:A}),r().createElement(fe,{serviceUuid:s}),r().createElement(V,{appointmentServiceType:s}),r().createElement(we,null))}}}]);
|
package/dist/435.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"435.js","mappings":"0MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,82EAA+2E,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,+DAA+D,gEAAgE,6EAA6E,4DAA4D,MAAQ,GAAG,SAAW,mmBAAmmB,WAAa,MAEz4GH,EAAwBI,OAAS,CAChC,OAAU,yDACV,uBAAwB,uEACxB,wBAAyB,wEACzB,YAAa,4DACb,cAAe,8DACf,oBAAqB,oEACrB,kBAAqB,oEACrB,MAAS,wDACT,OAAU,yDACV,KAAQ,uDACR,WAAc,8DAEf,S,kECjBIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,+PAAgQ,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,iEAAiE,4DAA4D,MAAQ,GAAG,SAAW,iHAAiH,WAAa,MAE7pBH,EAAwBI,OAAS,CAChC,cAAiB,kEAElB,S,kECPIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,m7DAAo7D,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yDAAyD,6EAA6E,gEAAgE,4DAA4D,MAAQ,GAAG,SAAW,6mBAA6mB,WAAa,MAEl9FH,EAAwBI,OAAS,CAChC,UAAa,qDACb,cAAiB,yDACjB,WAAc,sDACd,YAAe,uDACf,YAAe,uDACf,YAAe,uDACf,qBAAwB,gEACxB,KAAQ,gDACR,YAAe,uDACf,UAAa,sDAEd,S,kEChBIJ,E,MAA0B,GAA4B,KA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C,UAAWC,GAAO6R,eAAgB5R,GACvC,kBAAC0I,EAAAA,IAAMA,CAAC5I,UAAWC,GAAO+R,iBAAkBhJ,QAAS,W,OAAM+E,EAAAA,GAAAA,K,EAAgBlF,KAAK,QAAQ+I,aAAAA,GACtF,kBAACK,GAAAA,GAAKA,CAAC1R,KAAM,OAIlB4Q,GAKX,ECrCA,kB,yFAqBA,SAduC,WACrC,I,IAAM,GAAQrS,EAAAA,EAAAA,kBAANC,EACoD6F,G,GAAAA,EAAAA,EAAAA,UAAiB,I,EAAA,E,i0BAAtE9B,EAAqD8B,EAAAA,GAA7BsN,EAA6BtN,EAAAA,GAE5D,OACE,oCACE,kBAACuN,EAAAA,EAAkBA,CAACpU,MAAOgB,EAAE,OAAQ,QAASF,SAAUqT,IACxD,kBAACE,GAAaA,CAAC3D,YAAa3L,IAC5B,kBAACuP,EAAeA,CAACvP,uBAAwBA,IACzC,kBAACwP,GAAOA,MAGd,C","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments-header/appointments-header.scss","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/appointments-metrics.scss","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/metrics-card.scss","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/metrics-header.scss","webpack://@openmrs/esm-appointments-app/./src/appointments/appointment-tabs.scss","webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/scheduled-appointments.scss","webpack://@openmrs/esm-appointments-app/./src/overlay.scss","webpack://@openmrs/esm-appointments-app/./src/appointments-header/appointments-illustration.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments-header/appointments-header.scss?e54a","webpack://@openmrs/esm-appointments-app/./src/appointments-header/appointments-header.component.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useAppointmentService.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/scheduled-appointments.scss?d046","webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/scheduled-appointments.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/unscheduled/unscheduled-appointments.component.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useUnscheduledAppointments.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/appointment-tabs.scss?542a","webpack://@openmrs/esm-appointments-app/./src/appointments/appointment-tabs.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/metrics-card.scss?7de0","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/metrics-card.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/metrics-header.scss?5921","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/metrics-header.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/appointments-metrics.scss?93c5","webpack://@openmrs/esm-appointments-app/./src/appointments-metrics/appointments-metrics.component.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useClinicalMetrics.tsx","webpack://@openmrs/esm-appointments-app/./src/overlay.scss?5258","webpack://@openmrs/esm-appointments-app/./src/overlay.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","svg","width","height","viewBox","xmlns","title","g","fill","fillRule","path","d","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","session","onChange","useTranslation","t","useSession","datePickerRef","useRef","useAppointmentDate","currentAppointmentDate","location","sessionLocation","display","data","useSWR","openmrsFetch","error","isLoading","serviceTypes","useAppointmentServices","div","className","styles","header","data-testid","AppointmentsIllustration","p","Location","size","span","value","middot","DatePicker","date","changeStartDate","Date","ref","dateFormat","datePickerType","DatePickerInput","style","backgroundColor","border","maxWidth","placeholder","labelText","type","dayjs","format","dropdownContainer","Layer","Dropdown","ariaLabel","items","name","uuid","itemToString","item","label","titleText","direction","selectedItem","isSameOrBefore","scheduledAppointmentsPanelsSlot","ExtensionWrapper","extension","currentTab","appointmentServiceType","dateType","showExtensionTab","hideExtensionTab","currentConfig","currentDateType","useEffect","current","objA","objB","Object","is","objAKeys","getOwnPropertyNames","objBKeys","length","every","key","shallowEqual","config","showForFutureDate","showForPastDate","showForToday","shouldDisplayExtensionTab","container","Extension","state","status","visits","allowedExtensions","useState","setCurrentTab","setDateType","scheduledAppointmentPanels","useConnectedExtensions","useAllowedExtensions","useReducer","action","addedState","dispatch","showExtension","hideExtension","shouldShowPanel","useCallback","panel","dayjsDate","now","isBefore","isAfter","ContentSwitcher","switcher","filter","map","Switch","text","ExtensionSlot","unscheduledAppointments","getPageSizes","pageSize","setPageSize","searchString","setSearchString","useUnscheduledAppointments","url","errorRetryCount","searchResults","useSearchResults","usePagination","results","currentPage","goTo","rowData","visit","ConfigurableLink","textDecoration","to","identifier","gender","phoneNumber","DataTableSkeleton","DataTable","rows","headers","isSortable","getHeaderProps","getTableProps","TableContainer","description","TableToolbar","TableToolbarContent","TableToolbarSearch","tabIndex","event","target","Button","kind","renderIcon","Download","onClick","downloadUnscheduledAppointments","Table","TableHead","TableRow","TableHeader","TableBody","row","cells","cell","TableCell","Pagination","backwardText","forwardText","page","pageNumberText","pageSizes","totalItems","EmptyState","displayText","headerTitle","scheduleType","activeTabIndex","setActiveTabIndex","useVisits","mutateVisit","appointmentList","Tabs","selectedIndex","tabs","TabList","paddingLeft","aria-label","contained","Tab","tab","TabPanels","TabPanel","tabPanel","ScheduledAppointments","UnscheduledAppointments","count","headerLabel","children","view","appointmentDate","isDateInPast","useMemo","Tile","tileContainer","tileHeader","headerLabelContainer","link","basePath","spaBasePath","metricsLink","patients","highVolume","providers","fontSize","marginRight","ArrowRight","viewListBtn","metricsGrid","totalsLabel","totalsValue","isEmpty","countGrid","color","arrivedAppointments","pendingAppointments","isToday","metricsContainer","metricsTitle","metricsContent","Calendar","navigate","selectPatientAction","patientUuid","closeOverlay","launchOverlay","AppointmentForm","context","buttonText","overlayHeader","buttonProps","props","Hospital","highestServiceLoad","serviceUuid","useClinicalMetrics","endDate","setHours","omrsDateFormat","totalAppointments","mutate","getServiceCountByAppointmentType","missedAppointments","transformedAppointments","flattenAppointmentSummary","getHighestAppointmentServiceLoad","useAllAppointmentsByDate","apiUrl","isValidating","providersArray","providersCount","uniqBy","flat","provider","totalProviders","isError","totalScheduledAppointments","appt","service","useScheduledAppointment","formattedStartDate","formatDate","parseDate","mode","time","useAppointmentList","filteredArrivedAppointments","serviceTypeUuid","filteredPendingAppointments","clinicalMetricsError","ErrorState","MetricsHeader","cardContainer","MetricsCard","serviceName","useOverlay","component","isOverlayOpen","layout","useLayoutType","overlayClass","desktopOverlay","tabletOverlay","Header","tabletOverlayHeader","hasIconOnly","ArrowLeft","headerContent","desktopHeader","closePanelButton","Close","setAppointmentServiceType","AppointmentsHeader","ClinicMetrics","AppointmentList","Overlay"],"sourceRoot":""}
|
package/dist/44.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[44],{8179:(e,t,n)=>{"use strict";n.d(t,{J$:()=>o,JB:()=>i,sb:()=>a}),window.getOpenmrsSpaBase;var a="/appointments",i="".concat(window.spaBase,"/home"),o="YYYY-MM-DDTHH:mm:ss.SSSZZ"},9044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appointmentsByStatus:()=>D,appointmentsCalendarDashboardLink:()=>k,appointmentsDashboard:()=>A,appointmentsDashboardLink:()=>S,checkInModal:()=>F,earlyAppointments:()=>U,homeAppointments:()=>I,importTranslation:()=>g,root:()=>C,startupApp:()=>B});var a=n(2870),i=n(8179),o={concepts:{visitQueueNumberAttributeUuid:{_type:a.Type.String,_description:"The UUID of the visit attribute that contains the visit queue number.",_default:"c61ce16f-272a-41e7-9924-4c555d0932c5"}},appointmentTypes:{_type:a.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},appointmentStatuses:{_type:a.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},daysOfTheWeek:{_type:a.Type.Array,_description:"Configurable days of the week",_default:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},useBahmniAppointmentsUI:{_type:a.Type.Boolean,_description:"Open links in Bahmni Appointments UI instead of O3 UI",_default:!1},useFullViewPrivilege:{_type:a.Type.Boolean,_description:"If set to 'false', will always display the full view, disregarding any privilege",_default:!1},fullViewPrivilege:{_type:a.Type.String,_description:"Name of the privilege to display the full view of the Appointments dashboard widget.",_default:"Today's Appointments Widget: Display Full View"},bahmniAppointmentsUiBaseUrl:{_type:a.Type.String,_description:"Configurable base URL that points to the Bahmni Appointments UI",_default:"/appointments"},appointmentsBaseUrl:{_type:a.Type.String,_description:"Configurable alternative URL for the Appointments UI. Eg, the Bahmni Appointments UI URL",_default:"".concat(i.JB)},hiddenFormFields:{_type:a.Type.Array,_description:"Array of form controls to be hidden on form load",_default:[]},showServiceQueueFields:{_type:a.Type.Boolean,_description:"Whether start visit form should display service queue fields`",_default:!1},defaultFacilityUrl:{_type:a.Type.String,_default:"/ws/rest/v1/kenyaemr/default-facility",_description:"Custom URL to load default facility if it is not in the session"},patientIdentifierType:{_type:a.Type.String,_description:"The name of the patient identifier type to be used for the patient identifier field",_default:"OpenMRS ID"}},s=n(268),p=n.n(s),l=n(8744),r=n(4924);function d(e){var t=e.dashboardLinkConfig,n=(0,r.useTranslation)().t,i=t.name,o=(0,l.useLocation)(),d="".concat(window.spaBase,"/home"),u=(0,s.useMemo)((function(){var e=o.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)}),[o.pathname]);return p().createElement(a.ConfigurableLink,{to:"".concat(d,"/").concat(i),className:"cds--side-nav__link ".concat(u.match(i)&&"active-left-nav-link")},n("appointments","Appointments"))}var u=function(e){return function(){return p().createElement(l.BrowserRouter,null,p().createElement(d,{dashboardLinkConfig:e}))}},h={name:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments Calendar",renderIcon:n(4403).f},c={title:{_type:a.Type.Boolean,_description:"The title to display, may be a translation key or plain text",_default:"expected"},status:{_type:a.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Scheduled"},showForPastDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!1},showForToday:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!0}},y={title:{_type:a.Type.Boolean,_description:"The title to display, may be a translation key or plain text",_default:"checkedIn"},status:{_type:a.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"CheckedIn"},showForPastDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!1},showForToday:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},f={title:{_type:a.Type.Boolean,_description:"The title to display, may be a translation key or plain text",_default:"completed"},status:{_type:a.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Completed"},showForPastDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},m={title:{_type:a.Type.Boolean,_description:"The title to display, may be a translation key or plain text",_default:"missed"},status:{_type:a.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Missed"},showForPastDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!1},showForFutureDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},_={title:{_type:a.Type.Boolean,_description:"The title to display, may be a translation key or plain text",_default:"cancelled"},status:{_type:a.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Cancelled"},showForPastDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!0}},w={title:{_type:a.Type.Boolean,_description:"The title to display, may be a translation key or plain text",_default:"cameEarly"},showForPastDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:a.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var g=n(3979),v="@openmrs/esm-appointments-app",b={featureName:"appointments",moduleName:v};function B(){var e="".concat(window.spaBase,"/home/appointments");(0,a.defineConfigSchema)(v,o),(0,a.defineExtensionConfigSchema)("expected-appointments-panel",c),(0,a.defineExtensionConfigSchema)("checked-in-appointments-panel",y),(0,a.defineExtensionConfigSchema)("completed-appointments-panel",f),(0,a.defineExtensionConfigSchema)("missed-appointments-panel",m),(0,a.defineExtensionConfigSchema)("cancelled-appointments-panel",_),(0,a.defineExtensionConfigSchema)("early-appointments-panel",w),(0,a.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t,n,a=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o=[],s=!0,p=!1;try{for(n=n.call(e);!(s=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);s=!0);}catch(e){p=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(p)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=(a[0],a[1]);return"Patient Lists / ".concat(decodeURI(i))},parent:"".concat(window.spaBase)}])}var C=(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(255),n.e(315),n.e(542),n.e(547),n.e(931),n.e(202),n.e(772),n.e(435),n.e(735)]).then(n.bind(n,7735))}),b),S=(0,a.getSyncLifecycle)(u({name:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments"}),b),k=(0,a.getSyncLifecycle)(u(h),b),A=(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(255),n.e(315),n.e(542),n.e(547),n.e(931),n.e(202),n.e(772),n.e(435)]).then(n.bind(n,4435))}),b),F=(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(255),n.e(315),n.e(931),n.e(80)]).then(n.bind(n,3080))}),b),I=(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(255),n.e(315),n.e(800),n.e(931),n.e(202),n.e(818)]).then(n.bind(n,4381))}),b),D=(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(255),n.e(315),n.e(542),n.e(800),n.e(551),n.e(931),n.e(202),n.e(772),n.e(938),n.e(334)]).then(n.bind(n,9788))}),b),U=(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(255),n.e(315),n.e(542),n.e(800),n.e(551),n.e(931),n.e(202),n.e(772),n.e(938),n.e(890)]).then(n.bind(n,9890))}),b)},3979:(e,t,n)=>{var a={"./am.json":[8788,788],"./ar.json":[4460,460],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./he.json":[5833,833],"./km.json":[7807,807]};function i(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
|