@openmrs/esm-appointments-app 4.1.0 → 4.1.1-pre.1005

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.
@@ -2,21 +2,20 @@ assets by chunk 1.05 MiB (id hint: vendors)
2
2
  assets by status 897 KiB [big]
3
3
  asset 568.js 500 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
4
4
  asset 858.js 397 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
- asset 339.js 90.3 KiB [emitted] [minimized] (id hint: vendors)
5
+ asset 984.js 95.4 KiB [emitted] [minimized] (id hint: vendors)
6
6
  asset 34.js 50.7 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
7
  asset 285.js 18 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
- asset 842.js 7.06 KiB [emitted] [minimized] (id hint: vendors)
9
- asset 268.js 5.95 KiB [emitted] [minimized] (id hint: vendors)
8
+ asset 976.js 8.11 KiB [emitted] [minimized] (id hint: vendors)
10
9
  asset 542.js 1.29 KiB [emitted] [minimized] (id hint: vendors)
11
- asset 39.js 675 bytes [emitted] [minimized] (id hint: vendors)
12
- + 20 assets
13
- orphan modules 3.38 MiB [orphan] 607 modules
10
+ asset 456.js 759 bytes [emitted] [minimized] (id hint: vendors)
11
+ + 21 assets
12
+ orphan modules 3.38 MiB [orphan] 608 modules
14
13
  runtime modules 37.9 KiB 28 modules
15
- built modules 4.12 MiB (javascript) 168 bytes (share-init) 168 bytes (consume-shared) [built]
14
+ built modules 4.11 MiB (javascript) 168 bytes (share-init) 168 bytes (consume-shared) [built]
16
15
  modules by path ../../node_modules/ 3.72 MiB 255 modules
17
- modules by path ./ 404 KiB
18
- modules by path ./src/ 393 KiB 49 modules
19
- modules by path ./translations/ 10.9 KiB 4 modules
16
+ modules by path ./ 394 KiB
17
+ modules by path ./src/ 377 KiB 48 modules
18
+ modules by path ./translations/ 16.6 KiB 5 modules
20
19
  provide-module modules 168 bytes
21
20
  provide shared module (default) @openmrs/esm-framework@4.0.3-pre.392 = ../../node_modules/@openmrs/esm-framework/src/internal.ts 42 bytes [built] [code generated]
22
21
  + 3 modules
@@ -39,4 +38,4 @@ Entrypoints:
39
38
  main.js
40
39
  
41
40
 
42
- webpack 5.74.0 compiled with 2 warnings in 163639 ms
41
+ webpack 5.74.0 compiled with 2 warnings in 195816 ms
package/dist/285.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 285.js.LICENSE.txt */
2
- (self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[285],{2609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<t.length;a++){var u=[].concat(t[a]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},8879:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",i="minute",s="hour",o="day",a="week",u="month",c="quarter",f="year",d="date",l="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),s=n-i<0,o=e.clone().add(r+(s?-1:1),u);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:a,d:o,D:d,h:s,m:i,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=v;var w=function(t){return t instanceof D},S=function t(e,n,r){var i;if(!e)return y;if("string"==typeof e){var s=e.toLowerCase();$[s]&&(i=s),n&&($[s]=n,i=s);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var a=e.name;$[a]=e,i=a}return!r&&i&&(y=i),i||!r&&y},M=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},b=g;b.l=S,b.i=w,b.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=v.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=M(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return M(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<M(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,c=!!b.u(e)||e,l=b.p(t),h=function(t,e){var r=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?r:r.endOf(o)},p=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},v=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case f:return c?h(1,0):h(31,11);case u:return c?h(1,m):h(0,m+1);case a:var $=this.$locale().weekStart||0,w=(v<$?v+7:v)-$;return h(c?g-w:g+(6-w),m);case o:case d:return p(y+"Hours",0);case s:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var a,c=b.p(t),l="set"+(this.$u?"UTC":""),h=(a={},a[o]=l+"Date",a[d]=l+"Date",a[u]=l+"Month",a[f]=l+"FullYear",a[s]=l+"Hours",a[i]=l+"Minutes",a[r]=l+"Seconds",a[n]=l+"Milliseconds",a)[c],p=c===o?this.$D+(e-this.$W):e;if(c===u||c===f){var v=this.clone().set(d,1);v.$d[h](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(n,c){var d,l=this;n=Number(n);var h=b.p(c),p=function(t){var e=M(l);return b.w(e.date(e.date()+Math.round(t*n)),l)};if(h===u)return this.set(u,this.$M+n);if(h===f)return this.set(f,this.$y+n);if(h===o)return p(1);if(h===a)return p(7);var v=(d={},d[i]=t,d[s]=e,d[r]=1e3,d)[h]||1,m=this.$d.getTime()+n*v;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,o=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:b.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:b.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:b.s(o,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(t,e){return e||v[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,l){var h,p=b.p(d),v=M(n),m=(v.utcOffset()-this.utcOffset())*t,g=this-v,y=b.m(this,v);return y=(h={},h[f]=y/12,h[u]=y,h[c]=y/3,h[a]=(g-m)/6048e5,h[o]=(g-m)/864e5,h[s]=g/e,h[i]=g/t,h[r]=g/1e3,h)[p]||g,l?y:b.a(y)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return $[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),_=D.prototype;return M.prototype=_,[["$ms",n],["$s",r],["$m",i],["$H",s],["$W",o],["$M",u],["$y",f],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,D,M),t.$i=!0),M},M.locale=S,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=$[y],M.Ls=$,M.p={},M}()},6062:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],c=r.base?u[0]+r.base:u[0],f=s[c]||0,d="".concat(c," ").concat(f);s[c]=f+1;var l=n(d),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==l)e[l].references++,e[l].updater(h);else{var p=i(h,r);r.byIndex=a,e.splice(a,0,{identifier:d,updater:p,references:1})}o.push(d)}return o}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var u=r(t,i),c=0;c<s.length;c++){var f=n(s[c]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=u}}},6793:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1173:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},7892:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},4036:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},2464:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},452:(t,e,n)=>{"use strict";var r=n(268),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=r.useState,o=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=s({inst:{value:n,getSnapshot:e}}),i=r[0].inst,f=r[1];return a((function(){i.value=n,i.getSnapshot=e,c(i)&&f({inst:i})}),[t,n,e]),o((function(){return c(i)&&f({inst:i}),t((function(){c(i)&&f({inst:i})}))}),[t]),u(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},3100:(t,e,n)=>{"use strict";t.exports=n(452)},9984:(t,e,n)=>{"use strict";n.d(e,{J$:()=>q,ZP:()=>z,kY:()=>U});var r=n(268),i=n(3100);const s=new WeakMap,o={},a=()=>{},u=a(),c=Object,f=t=>t===u,d=t=>"function"==typeof t,l=(t,e)=>({...t,...e}),h="undefined",p=typeof window!=h,v=typeof document!=h,m=(t,e)=>{const n=s.get(t);return[()=>t.get(e)||o,r=>{const i=t.get(e);n[5](e,l(i,r),i||o)},n[6]]},g=new WeakMap;let y=0;const $=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let i,s;if(c(t)!==t||r||n==RegExp)i=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(i=g.get(t),i)return i;if(i=++y+"~",g.set(t,i),n==Array){for(i="@",s=0;s<t.length;s++)i+=$(t[s])+",";g.set(t,i)}if(n==c){i="#";const e=c.keys(t).sort();for(;!f(s=e.pop());)f(t[s])||(i+=s+":"+$(t[s])+",");g.set(t,i)}}return i};let w=!0;const[S,M]=p&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],b={isOnline:()=>w,isVisible:()=>{const t=v&&document.visibilityState;return f(t)||"hidden"!==t}},D={initFocus:t=>(v&&document.addEventListener("visibilitychange",t),S("focus",t),()=>{v&&document.removeEventListener("visibilitychange",t),M("focus",t)}),initReconnect:t=>{const e=()=>{w=!0,t()},n=()=>{w=!1};return S("online",e),S("offline",n),()=>{M("online",e),M("offline",n)}}},_=!r.useId,O=!p||"Deno"in window,E=O?r.useEffect:r.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,k=!O&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),x=t=>{if(d(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?$(t):"",e]};let C=0;const L=()=>++C;async function R(...t){const[e,n,r,i]=t,o=l({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let a=o.populateCache;const c=o.rollbackOnError;let h=o.optimisticData;const p=!1!==o.revalidate,v=o.throwOnError;if(d(n)){const t=n,r=[],i=e.keys();for(let n=i.next();!n.done;n=i.next()){const i=n.value;!i.startsWith("$inf$")&&t(e.get(i)._k)&&r.push(i)}return Promise.all(r.map(g))}return g(n);async function g(n){const[i]=x(n);if(!i)return;const[o,l]=m(e,i),[g,y,$]=s.get(e),w=g[i],S=()=>p&&(delete $[i],w&&w[0])?w[0](2).then((()=>o().data)):o().data;if(t.length<3)return S();let M,b=r;const D=L();y[i]=[D,0];const _=!f(h),O=o(),E=O.data,T=O._c,k=f(T)?E:T;if(_&&(h=d(h)?h(k):h,l({data:h,_c:k})),d(b))try{b=b(k)}catch(t){M=t}if(b&&d(b.then)){if(b=await b.catch((t=>{M=t})),D!==y[i][0]){if(M)throw M;return b}M&&_&&(t=>"function"==typeof c?c(t):!1!==c)(M)&&(a=!0,b=k,l({data:b,_c:u}))}a&&(M||(d(a)&&(b=a(b,k)),l({data:b,_c:u}))),y[i][1]=L();const C=await S();if(l({_c:u}),!M)return a?C:b;if(v)throw M}}const I=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},V=(t,e)=>{if(!s.has(t)){const n=l(D,e),r={},i=R.bind(u,t);let o=a;const c={},f=(t,e)=>{const n=c[t]||[];return c[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},d=(e,n,r)=>{t.set(e,n);const i=c[e];if(i)for(let t=i.length;t--;)i[t](r,n)},h=()=>{if(!s.has(t)&&(s.set(t,[r,{},{},{},i,d,f]),!O)){const e=n.initFocus(setTimeout.bind(u,I.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,I.bind(u,r,1)));o=()=>{e&&e(),i&&i(),s.delete(t)}}};return h(),[t,i,h,o]}return[t,s.get(t)[4]]},[W,A]=V(new Map),H=l({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(t,e,n,r,i)=>{const s=n.errorRetryCount,o=i.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!f(s)&&o>s||setTimeout(r,a,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:(t,e)=>$(t)==$(e),isPaused:()=>!1,cache:W,mutate:A,fallback:{}},b),Y=(t,e)=>{const n=l(t,e);if(e){const{use:r,fallback:i}=t,{use:s,fallback:o}=e;r&&s&&(n.use=r.concat(s)),i&&o&&(n.fallback=l(i,o))}return n},F=(0,r.createContext)({}),P=p&&window.__SWR_DEVTOOLS_USE__,N=P?window.__SWR_DEVTOOLS_USE__:[],U=()=>l(H,(0,r.useContext)(F)),j=N.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const r=x(e)[0],[,,,i]=s.get(W),o=i[r];return o?(delete i[r],o):n(...t)}),r)));P&&(window.__SWR_DEVTOOLS_REACT__=r);const J={dedupe:!0},q=c.defineProperty((t=>{const{value:e}=t,n=(0,r.useContext)(F),i=d(e),s=(0,r.useMemo)((()=>i?e(n):e),[i,n,e]),o=(0,r.useMemo)((()=>i?s:Y(n,s)),[i,n,s]),a=s&&s.provider,[c]=(0,r.useState)((()=>a?V(a(o.cache||W),s):u));return c&&(o.cache=c[0],o.mutate=c[1]),E((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,r.createElement)(F.Provider,l(t,{value:o}))}),"defaultValue",{value:H});var Z,z=(Z=(t,e,n)=>{const{cache:o,compare:a,suspense:c,fallbackData:v,revalidateOnMount:g,refreshInterval:y,refreshWhenHidden:$,refreshWhenOffline:w,keepPreviousData:S}=n,[M,b,D]=s.get(o),[T,k]=x(t),C=(0,r.useRef)(!1),I=(0,r.useRef)(!1),V=(0,r.useRef)(T),W=(0,r.useRef)(e),A=(0,r.useRef)(n),H=()=>A.current,Y=()=>H().isVisible()&&H().isOnline(),[F,P,N]=m(o,T),U=(0,r.useRef)({}).current,j=f(v)?n.fallback[T]:v,q=(t,e)=>{let n=!0;for(const r in U){const i=r;a(e[i],t[i])||"data"===i&&f(t[i])&&a(e[i],tt)||(n=!1)}return n},Z=(0,r.useMemo)((()=>{const t=!!T&&!!e&&(f(g)?!H().isPaused()&&!c:g),n=()=>{const e=F(),n=l(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const t=n();return q(t,r)?r:r=t}}),[o,T]),z=(0,i.useSyncExternalStore)((0,r.useCallback)((t=>N(T,((e,n)=>{q(e,n)||t()}))),[o,T]),Z,Z),B=!C.current,Q=z.data,G=f(Q)?j:Q,K=z.error,X=(0,r.useRef)(G),tt=S?f(Q)?X.current:Q:G,et=B&&!f(g)?g:!H().isPaused()&&(c?!f(G)&&n.revalidateIfStale:f(G)||n.revalidateIfStale),nt=!!(T&&e&&B&&et),rt=f(z.isValidating)?nt:z.isValidating,it=f(z.isLoading)?nt:z.isLoading,st=(0,r.useCallback)((async t=>{const e=W.current;if(!T||!e||I.current||H().isPaused())return!1;let r,i,s=!0;const o=t||{},c=!D[T]||!o.dedupe,l=()=>_?!I.current&&T===V.current&&C.current:T===V.current,h={isValidating:!1,isLoading:!1},p=()=>{P(h)},v=()=>{const t=D[T];t&&t[1]===i&&delete D[T]},m={isValidating:!0};f(F().data)&&(m.isLoading=!0);try{if(c&&(P(m),n.loadingTimeout&&f(F().data)&&setTimeout((()=>{s&&l()&&H().onLoadingSlow(T,n)}),n.loadingTimeout),D[T]=[e(k),L()]),[r,i]=D[T],r=await r,c&&setTimeout(v,n.dedupingInterval),!D[T]||D[T][1]!==i)return c&&l()&&H().onDiscarded(T),!1;h.error=u;const t=b[T];if(!f(t)&&(i<=t[0]||i<=t[1]||0===t[1]))return p(),c&&l()&&H().onDiscarded(T),!1;const o=F().data;h.data=a(o,r)?o:r,c&&l()&&H().onSuccess(r,T,n)}catch(t){v();const e=H(),{shouldRetryOnError:n}=e;e.isPaused()||(h.error=t,c&&l()&&(e.onError(t,T,e),(!0===n||d(n)&&n(t))&&Y()&&e.onErrorRetry(t,T,e,st,{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return s=!1,p(),!0}),[T,o]),ot=(0,r.useCallback)(((...t)=>R(o,V.current,...t)),[]);if(E((()=>{W.current=e,A.current=n,f(Q)||(X.current=Q)})),E((()=>{if(!T)return;const t=st.bind(u,J);let e=0;const n=((t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}})(T,M,(n=>{if(0==n){const n=Date.now();H().revalidateOnFocus&&n>e&&Y()&&(e=n+H().focusThrottleInterval,t())}else if(1==n)H().revalidateOnReconnect&&Y()&&t();else if(2==n)return st()}));return I.current=!1,V.current=T,C.current=!0,P({_k:k}),et&&(f(G)||O?t():(r=t,p&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{I.current=!0,n()};var r}),[T]),E((()=>{let t;function e(){const e=d(y)?y(G):y;e&&-1!==t&&(t=setTimeout(n,e))}function n(){F().error||!$&&!H().isVisible()||!w&&!H().isOnline()?e():st(J).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[y,$,w,T]),(0,r.useDebugValue)(tt),c&&f(G)&&T){if(!_&&O)throw new Error("Fallback data is required when using suspense in SSR.");throw W.current=e,A.current=n,I.current=!1,f(K)?st(J):K}return{mutate:ot,get data(){return U.data=!0,tt},get error(){return U.error=!0,K},get isValidating(){return U.isValidating=!0,rt},get isLoading(){return U.isLoading=!0,it}}},function(...t){const e=U(),[n,r,i]=(t=>d(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}])(t),s=Y(e,i);let o=Z;const{use:a}=s,u=(a||[]).concat(j);for(let t=u.length;t--;)o=u[t](o);return o(n,r||s.fetcher||null,s)})}}]);
2
+ (self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[285],{2609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<t.length;a++){var u=[].concat(t[a]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},8879:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",i="minute",s="hour",o="day",a="week",u="month",c="quarter",f="year",d="date",l="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),s=n-i<0,o=e.clone().add(r+(s?-1:1),u);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:a,d:o,D:d,h:s,m:i,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=v;var w=function(t){return t instanceof D},S=function t(e,n,r){var i;if(!e)return y;if("string"==typeof e){var s=e.toLowerCase();$[s]&&(i=s),n&&($[s]=n,i=s);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var a=e.name;$[a]=e,i=a}return!r&&i&&(y=i),i||!r&&y},M=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},b=g;b.l=S,b.i=w,b.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=v.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=M(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return M(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<M(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,c=!!b.u(e)||e,l=b.p(t),h=function(t,e){var r=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?r:r.endOf(o)},p=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},v=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case f:return c?h(1,0):h(31,11);case u:return c?h(1,m):h(0,m+1);case a:var $=this.$locale().weekStart||0,w=(v<$?v+7:v)-$;return h(c?g-w:g+(6-w),m);case o:case d:return p(y+"Hours",0);case s:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var a,c=b.p(t),l="set"+(this.$u?"UTC":""),h=(a={},a[o]=l+"Date",a[d]=l+"Date",a[u]=l+"Month",a[f]=l+"FullYear",a[s]=l+"Hours",a[i]=l+"Minutes",a[r]=l+"Seconds",a[n]=l+"Milliseconds",a)[c],p=c===o?this.$D+(e-this.$W):e;if(c===u||c===f){var v=this.clone().set(d,1);v.$d[h](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(n,c){var d,l=this;n=Number(n);var h=b.p(c),p=function(t){var e=M(l);return b.w(e.date(e.date()+Math.round(t*n)),l)};if(h===u)return this.set(u,this.$M+n);if(h===f)return this.set(f,this.$y+n);if(h===o)return p(1);if(h===a)return p(7);var v=(d={},d[i]=t,d[s]=e,d[r]=1e3,d)[h]||1,m=this.$d.getTime()+n*v;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,o=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:b.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:b.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:b.s(o,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(t,e){return e||v[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,l){var h,p=b.p(d),v=M(n),m=(v.utcOffset()-this.utcOffset())*t,g=this-v,y=b.m(this,v);return y=(h={},h[f]=y/12,h[u]=y,h[c]=y/3,h[a]=(g-m)/6048e5,h[o]=(g-m)/864e5,h[s]=g/e,h[i]=g/t,h[r]=g/1e3,h)[p]||g,l?y:b.a(y)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return $[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),_=D.prototype;return M.prototype=_,[["$ms",n],["$s",r],["$m",i],["$H",s],["$W",o],["$M",u],["$y",f],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,D,M),t.$i=!0),M},M.locale=S,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=$[y],M.Ls=$,M.p={},M}()},6062:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],c=r.base?u[0]+r.base:u[0],f=s[c]||0,d="".concat(c," ").concat(f);s[c]=f+1;var l=n(d),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==l)e[l].references++,e[l].updater(h);else{var p=i(h,r);r.byIndex=a,e.splice(a,0,{identifier:d,updater:p,references:1})}o.push(d)}return o}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var u=r(t,i),c=0;c<s.length;c++){var f=n(s[c]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=u}}},6793:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1173:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},7892:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},4036:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},2464:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},452:(t,e,n)=>{"use strict";var r=n(268),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=r.useState,o=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=s({inst:{value:n,getSnapshot:e}}),i=r[0].inst,f=r[1];return a((function(){i.value=n,i.getSnapshot=e,c(i)&&f({inst:i})}),[t,n,e]),o((function(){return c(i)&&f({inst:i}),t((function(){c(i)&&f({inst:i})}))}),[t]),u(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},3100:(t,e,n)=>{"use strict";t.exports=n(452)},9984:(t,e,n)=>{"use strict";n.d(e,{J$:()=>q,ZP:()=>z,JG:()=>A,kY:()=>J});var r=n(268),i=n(3100);const s=new WeakMap,o={},a=()=>{},u=a(),c=Object,f=t=>t===u,d=t=>"function"==typeof t,l=(t,e)=>({...t,...e}),h="undefined",p=typeof window!=h,v=typeof document!=h,m=(t,e)=>{const n=s.get(t);return[()=>t.get(e)||o,r=>{const i=t.get(e);n[5](e,l(i,r),i||o)},n[6]]},g=new WeakMap;let y=0;const $=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let i,s;if(c(t)!==t||r||n==RegExp)i=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(i=g.get(t),i)return i;if(i=++y+"~",g.set(t,i),n==Array){for(i="@",s=0;s<t.length;s++)i+=$(t[s])+",";g.set(t,i)}if(n==c){i="#";const e=c.keys(t).sort();for(;!f(s=e.pop());)f(t[s])||(i+=s+":"+$(t[s])+",");g.set(t,i)}}return i};let w=!0;const[S,M]=p&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],b={isOnline:()=>w,isVisible:()=>{const t=v&&document.visibilityState;return f(t)||"hidden"!==t}},D={initFocus:t=>(v&&document.addEventListener("visibilitychange",t),S("focus",t),()=>{v&&document.removeEventListener("visibilitychange",t),M("focus",t)}),initReconnect:t=>{const e=()=>{w=!0,t()},n=()=>{w=!1};return S("online",e),S("offline",n),()=>{M("online",e),M("offline",n)}}},_=!r.useId,O=!p||"Deno"in window,E=O?r.useEffect:r.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,k=!O&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),x=t=>{if(d(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?$(t):"",e]};let C=0;const L=()=>++C;async function R(...t){const[e,n,r,i]=t,o=l({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let a=o.populateCache;const c=o.rollbackOnError;let h=o.optimisticData;const p=!1!==o.revalidate,v=o.throwOnError;if(d(n)){const t=n,r=[],i=e.keys();for(let n=i.next();!n.done;n=i.next()){const i=n.value;!i.startsWith("$inf$")&&t(e.get(i)._k)&&r.push(i)}return Promise.all(r.map(g))}return g(n);async function g(n){const[i]=x(n);if(!i)return;const[o,l]=m(e,i),[g,y,$]=s.get(e),w=g[i],S=()=>p&&(delete $[i],w&&w[0])?w[0](2).then((()=>o().data)):o().data;if(t.length<3)return S();let M,b=r;const D=L();y[i]=[D,0];const _=!f(h),O=o(),E=O.data,T=O._c,k=f(T)?E:T;if(_&&(h=d(h)?h(k):h,l({data:h,_c:k})),d(b))try{b=b(k)}catch(t){M=t}if(b&&d(b.then)){if(b=await b.catch((t=>{M=t})),D!==y[i][0]){if(M)throw M;return b}M&&_&&(t=>"function"==typeof c?c(t):!1!==c)(M)&&(a=!0,b=k,l({data:b,_c:u}))}a&&(M||(d(a)&&(b=a(b,k)),l({data:b,_c:u}))),y[i][1]=L();const C=await S();if(l({_c:u}),!M)return a?C:b;if(v)throw M}}const I=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},V=(t,e)=>{if(!s.has(t)){const n=l(D,e),r={},i=R.bind(u,t);let o=a;const c={},f=(t,e)=>{const n=c[t]||[];return c[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},d=(e,n,r)=>{t.set(e,n);const i=c[e];if(i)for(let t=i.length;t--;)i[t](r,n)},h=()=>{if(!s.has(t)&&(s.set(t,[r,{},{},{},i,d,f]),!O)){const e=n.initFocus(setTimeout.bind(u,I.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,I.bind(u,r,1)));o=()=>{e&&e(),i&&i(),s.delete(t)}}};return h(),[t,i,h,o]}return[t,s.get(t)[4]]},[W,A]=V(new Map),H=l({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(t,e,n,r,i)=>{const s=n.errorRetryCount,o=i.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!f(s)&&o>s||setTimeout(r,a,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:(t,e)=>$(t)==$(e),isPaused:()=>!1,cache:W,mutate:A,fallback:{}},b),Y=(t,e)=>{const n=l(t,e);if(e){const{use:r,fallback:i}=t,{use:s,fallback:o}=e;r&&s&&(n.use=r.concat(s)),i&&o&&(n.fallback=l(i,o))}return n},F=(0,r.createContext)({}),P=p&&window.__SWR_DEVTOOLS_USE__,N=P?window.__SWR_DEVTOOLS_USE__:[],J=()=>l(H,(0,r.useContext)(F)),U=N.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const r=x(e)[0],[,,,i]=s.get(W),o=i[r];return o?(delete i[r],o):n(...t)}),r)));P&&(window.__SWR_DEVTOOLS_REACT__=r);const j={dedupe:!0},q=c.defineProperty((t=>{const{value:e}=t,n=(0,r.useContext)(F),i=d(e),s=(0,r.useMemo)((()=>i?e(n):e),[i,n,e]),o=(0,r.useMemo)((()=>i?s:Y(n,s)),[i,n,s]),a=s&&s.provider,[c]=(0,r.useState)((()=>a?V(a(o.cache||W),s):u));return c&&(o.cache=c[0],o.mutate=c[1]),E((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,r.createElement)(F.Provider,l(t,{value:o}))}),"defaultValue",{value:H});var Z,z=(Z=(t,e,n)=>{const{cache:o,compare:a,suspense:c,fallbackData:v,revalidateOnMount:g,refreshInterval:y,refreshWhenHidden:$,refreshWhenOffline:w,keepPreviousData:S}=n,[M,b,D]=s.get(o),[T,k]=x(t),C=(0,r.useRef)(!1),I=(0,r.useRef)(!1),V=(0,r.useRef)(T),W=(0,r.useRef)(e),A=(0,r.useRef)(n),H=()=>A.current,Y=()=>H().isVisible()&&H().isOnline(),[F,P,N]=m(o,T),J=(0,r.useRef)({}).current,U=f(v)?n.fallback[T]:v,q=(t,e)=>{let n=!0;for(const r in J){const i=r;a(e[i],t[i])||"data"===i&&f(t[i])&&a(e[i],tt)||(n=!1)}return n},Z=(0,r.useMemo)((()=>{const t=!!T&&!!e&&(f(g)?!H().isPaused()&&!c:g),n=()=>{const e=F(),n=l(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const t=n();return q(t,r)?r:r=t}}),[o,T]),z=(0,i.useSyncExternalStore)((0,r.useCallback)((t=>N(T,((e,n)=>{q(e,n)||t()}))),[o,T]),Z,Z),B=!C.current,G=z.data,Q=f(G)?U:G,K=z.error,X=(0,r.useRef)(Q),tt=S?f(G)?X.current:G:Q,et=B&&!f(g)?g:!H().isPaused()&&(c?!f(Q)&&n.revalidateIfStale:f(Q)||n.revalidateIfStale),nt=!!(T&&e&&B&&et),rt=f(z.isValidating)?nt:z.isValidating,it=f(z.isLoading)?nt:z.isLoading,st=(0,r.useCallback)((async t=>{const e=W.current;if(!T||!e||I.current||H().isPaused())return!1;let r,i,s=!0;const o=t||{},c=!D[T]||!o.dedupe,l=()=>_?!I.current&&T===V.current&&C.current:T===V.current,h={isValidating:!1,isLoading:!1},p=()=>{P(h)},v=()=>{const t=D[T];t&&t[1]===i&&delete D[T]},m={isValidating:!0};f(F().data)&&(m.isLoading=!0);try{if(c&&(P(m),n.loadingTimeout&&f(F().data)&&setTimeout((()=>{s&&l()&&H().onLoadingSlow(T,n)}),n.loadingTimeout),D[T]=[e(k),L()]),[r,i]=D[T],r=await r,c&&setTimeout(v,n.dedupingInterval),!D[T]||D[T][1]!==i)return c&&l()&&H().onDiscarded(T),!1;h.error=u;const t=b[T];if(!f(t)&&(i<=t[0]||i<=t[1]||0===t[1]))return p(),c&&l()&&H().onDiscarded(T),!1;const o=F().data;h.data=a(o,r)?o:r,c&&l()&&H().onSuccess(r,T,n)}catch(t){v();const e=H(),{shouldRetryOnError:n}=e;e.isPaused()||(h.error=t,c&&l()&&(e.onError(t,T,e),(!0===n||d(n)&&n(t))&&Y()&&e.onErrorRetry(t,T,e,st,{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return s=!1,p(),!0}),[T,o]),ot=(0,r.useCallback)(((...t)=>R(o,V.current,...t)),[]);if(E((()=>{W.current=e,A.current=n,f(G)||(X.current=G)})),E((()=>{if(!T)return;const t=st.bind(u,j);let e=0;const n=((t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}})(T,M,(n=>{if(0==n){const n=Date.now();H().revalidateOnFocus&&n>e&&Y()&&(e=n+H().focusThrottleInterval,t())}else if(1==n)H().revalidateOnReconnect&&Y()&&t();else if(2==n)return st()}));return I.current=!1,V.current=T,C.current=!0,P({_k:k}),et&&(f(Q)||O?t():(r=t,p&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{I.current=!0,n()};var r}),[T]),E((()=>{let t;function e(){const e=d(y)?y(Q):y;e&&-1!==t&&(t=setTimeout(n,e))}function n(){F().error||!$&&!H().isVisible()||!w&&!H().isOnline()?e():st(j).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[y,$,w,T]),(0,r.useDebugValue)(tt),c&&f(Q)&&T){if(!_&&O)throw new Error("Fallback data is required when using suspense in SSR.");throw W.current=e,A.current=n,I.current=!1,f(K)?st(j):K}return{mutate:ot,get data(){return J.data=!0,tt},get error(){return J.error=!0,K},get isValidating(){return J.isValidating=!0,rt},get isLoading(){return J.isLoading=!0,it}}},function(...t){const e=J(),[n,r,i]=(t=>d(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}])(t),s=Y(e,i);let o=Z;const{use:a}=s,u=(a||[]).concat(U);for(let t=u.length;t--;)o=u[t](o);return o(n,r||s.fetcher||null,s)})}}]);
package/dist/351.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[351],{8179:(e,n,t)=>{"use strict";t.d(n,{J$:()=>i,JB:()=>a}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/appointments"),i="YYYY-MM-DDTHH:mm:ss.SSSZZ"},1351:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>m,importTranslation:()=>d,setupOpenMRS:()=>f,version:()=>c});var a=t(906),i=t(8179),o={concepts:{priorityConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"96105db1-abbf-48d2-8a52-a1d561fd8c90"},serviceConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"330c0ec6-0ac7-4b86-9c70-29d76f0ae20a"},statusConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"a8f3f64a-11d5-4a09-b0fb-c8118fa349f3"}},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)},appointmentComments:{_type:a.Type.Array,_description:"Reason for Changes",_default:["Forgot Appoinment","Lack of Transport","Travelled","Work/Schedule/Busy","Had enough Medicine","Taking Herbal Medication","Spiritual Healed","Recieved Refill in another facility","Other"]}},p=t(268),s=t.n(p),l=t(1948),r={name:"",slot:"clinical-appointments-dashboard-slot",title:"Clinical Appointments",renderIcon:t(306).SK},c="4.1.0",d=t(3979),m={"webservices.rest":"^2.2.0"};function f(){var e,n="@openmrs/esm-appointments-app",p={featureName:"appointments",moduleName:n};return(0,a.defineConfigSchema)(n,o),(0,a.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/appointments"),title:"Appointments",parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/appointments/calendar"),title:"Calendar",parent:"".concat(window.spaBase,"/appointments")}]),{pages:[{route:"appointments",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(268),t.e(842),t.e(542),t.e(924),t.e(45),t.e(437),t.e(430)]).then(t.bind(t,8430))}),p),online:!0,offline:!0}],extensions:[{name:"appointments-link",slot:"app-menu-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(153)]).then(t.bind(t,8153))}),p),online:!0,offline:!1},{id:"home-appointments",slot:"homepage-widgets-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(268),t.e(39),t.e(924),t.e(45),t.e(821)]).then(t.bind(t,1821))}),p)},{name:"appointments-side-nav",slot:"appointments-sidebar-slot",load:(0,a.getAsyncLifecycle)((function(){return t.e(685).then(t.bind(t,5685))}),p),online:!0,offline:!0},{name:"clinical-appointments-db-link",slot:"appointments-dashboard-slot",load:(0,a.getSyncLifecycle)((e=r,function(){return s().createElement("div",{key:e.name},s().createElement(l.yTF,{renderIcon:e.renderIcon,href:"".concat(i.JB,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,a.navigate)({to:"".concat(i.JB,"/").concat(e.name)})}},e.title))}),p),meta:r,online:!0,offline:!0},{name:"clinical-appointments-dashboard",slot:"clinical-appointments-dashboard-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(268),t.e(842),t.e(339),t.e(924),t.e(45),t.e(437),t.e(647)]).then(t.bind(t,4647))}),p),online:!0,offline:!0},{name:"change-appointment-status-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(830)]).then(t.bind(t,1830))}),p),online:!0,offline:!1},{name:"check-in-appointment-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(497)]).then(t.bind(t,7497))}),p),online:!0,offline:!1},{name:"patient-table",load:(0,a.getAsyncLifecycle)((function(){return t.e(692).then(t.bind(t,5692))}),{featureName:"patient-table",moduleName:n}),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var a={"./en.json":[3574,574],"./es.json":[8319,319],"./km.json":[7807,807]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
1
+ (self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[351],{8179:(e,n,t)=>{"use strict";t.d(n,{J$:()=>i,JB:()=>a}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/appointments"),i="YYYY-MM-DDTHH:mm:ss.SSSZZ"},1351:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>m,importTranslation:()=>c,setupOpenMRS:()=>f,version:()=>d});var a=t(906),i=t(8179),o={concepts:{priorityConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"96105db1-abbf-48d2-8a52-a1d561fd8c90"},serviceConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"330c0ec6-0ac7-4b86-9c70-29d76f0ae20a"},statusConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"a8f3f64a-11d5-4a09-b0fb-c8118fa349f3"}},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:[]}},s=t(268),p=t.n(s),l=t(1948),r={name:"",slot:"clinical-appointments-dashboard-slot",title:"Clinical Appointments",renderIcon:t(306).SK},d="4.1.1-pre.1005",c=t(3979),m={"webservices.rest":"^2.2.0"};function f(){var e,n="@openmrs/esm-appointments-app",s={featureName:"appointments",moduleName:n};return(0,a.defineConfigSchema)(n,o),(0,a.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/appointments"),title:"Appointments",parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/appointments/calendar"),title:"Calendar",parent:"".concat(window.spaBase,"/appointments")}]),{pages:[{route:"appointments",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(976),t.e(542),t.e(924),t.e(45),t.e(437),t.e(430)]).then(t.bind(t,8430))}),s),online:!0,offline:!0}],extensions:[{name:"appointments-link",slot:"app-menu-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(153)]).then(t.bind(t,8153))}),s),online:!0,offline:!1},{id:"home-appointments",slot:"homepage-widgets-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(456),t.e(924),t.e(45),t.e(821)]).then(t.bind(t,1821))}),s)},{name:"appointments-side-nav",slot:"appointments-sidebar-slot",load:(0,a.getAsyncLifecycle)((function(){return t.e(685).then(t.bind(t,5685))}),s),online:!0,offline:!0},{name:"clinical-appointments-db-link",slot:"appointments-dashboard-slot",load:(0,a.getSyncLifecycle)((e=r,function(){return p().createElement("div",{key:e.name},p().createElement(l.yTF,{renderIcon:e.renderIcon,href:"".concat(i.JB,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,a.navigate)({to:"".concat(i.JB,"/").concat(e.name)})}},e.title))}),s),meta:r,online:!0,offline:!0},{name:"clinical-appointments-dashboard",slot:"clinical-appointments-dashboard-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(976),t.e(984),t.e(924),t.e(45),t.e(437),t.e(647)]).then(t.bind(t,4647))}),s),online:!0,offline:!0},{name:"change-appointment-status-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(830)]).then(t.bind(t,1830))}),s),online:!0,offline:!1},{name:"check-in-appointment-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(497)]).then(t.bind(t,7497))}),s),online:!0,offline:!1},{name:"patient-table",load:(0,a.getAsyncLifecycle)((function(){return t.e(692).then(t.bind(t,5692))}),{featureName:"patient-table",moduleName:n}),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var a={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./km.json":[7807,807]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
package/dist/430.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[430],{3593:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-calendar-list-view__wrapper___3XIVI{position:relative}.-esm-appointments__appointments-calendar-list-view__monthly-calendar___yePVi{display:grid;grid-template-columns:repeat(7, minmax(0px, 1fr));grid-template-rows:repeat(6, minmax(0px, 1fr))}.-esm-appointments__appointments-calendar-list-view__backgroundColor___U-dEY{background-color:#fff}",""]),o.locals={wrapper:"-esm-appointments__appointments-calendar-list-view__wrapper___3XIVI","monthly-calendar":"-esm-appointments__appointments-calendar-list-view__monthly-calendar___yePVi",backgroundColor:"-esm-appointments__appointments-calendar-list-view__backgroundColor___U-dEY"};const i=o},3636:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,".-esm-appointments__calendar-header__titleContainer___J2QM4{display:flex;justify-content:space-between;align-items:center}.-esm-appointments__calendar-header__titleContainer___J2QM4>p{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0)}.-esm-appointments__calendar-header__titleContainer___J2QM4>button{color:#0f62fe;font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px)}.-esm-appointments__calendar-header__titleContent___AaATf{display:flex;justify-content:space-between;align-items:center}",""]),o.locals={titleContainer:"-esm-appointments__calendar-header__titleContainer___J2QM4",titleContent:"-esm-appointments__calendar-header__titleContent___AaATf"};const i=o},1215:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.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__days-of-week__skeleton___2g7Ep{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__days-of-week__tileContainer___hI7UA{height:4rem;display:flex;justify-content:center;width:100%;align-items:center;border:1px solid #e0e0e0}.-esm-appointments__days-of-week__tileContainer___hI7UA>span{font-size:1rem;color:#525252}.-esm-appointments__days-of-week__bold___fBlxx{font-weight:bold}.-esm-appointments__days-of-week__tileHeader___LWrCf{display:flex;justify-content:space-between;padding-bottom:1rem}.-esm-appointments__days-of-week__headerLabel___qwuO3{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;color:#525252}",""]),o.locals={tileContainer:"-esm-appointments__days-of-week__tileContainer___hI7UA",bold:"-esm-appointments__days-of-week__bold___fBlxx",tileHeader:"-esm-appointments__days-of-week__tileHeader___LWrCf",headerLabel:"-esm-appointments__days-of-week__headerLabel___qwuO3",skeleton:"-esm-appointments__days-of-week__skeleton___2g7Ep"};const i=o},3159:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,".-esm-appointments__monthly-header-module__container___JdNv6{display:flex;justify-content:space-between;align-items:center;width:100%;height:4rem}.-esm-appointments__monthly-header-module__workLoadCard___yTgGJ{display:flex;color:#000}",""]),o.locals={container:"-esm-appointments__monthly-header-module__container___JdNv6",workLoadCard:"-esm-appointments__monthly-header-module__workLoadCard___yTgGJ"};const i=o},5328:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__monthly-view-workload__monthly-cell___-ciM2{border-left:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;background:#fff;color:#000;padding:.125rem;text-align:right;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__monthly-view-workload__monthly-cell___-ciM2:nth-child(-n+7){border-top:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__monthly-cell___-ciM2:nth-child(7n){border-right:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__monthly-cell-disabled___Y8ymw{border-left:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__monthly-cell-disabled___Y8ymw:last-child{border-right:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__identifiers___0NJyn{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:#8d8d8d;display:list-item}.-esm-appointments__monthly-view-workload__identifiers___0NJyn span:not(:first-child){margin:0rem .75rem}.-esm-appointments__monthly-view-workload__identifierTag___nuLXI{display:flex;align-items:center}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6{position:relative;border-right:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;min-height:120px;color:#fff}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6 .-esm-appointments__monthly-view-workload__week-time___1UJVJ{display:none}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:nth-child(-n+8){border-top:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:first-child{border-top:none}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:nth-child(8n+1){border-bottom:none}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:nth-child(8n+1) .-esm-appointments__monthly-view-workload__week-time___1UJVJ{white-space:nowrap;display:inline;color:#fff;position:absolute;top:-11px;height:1.5rem;width:2rem}.-esm-appointments__monthly-view-workload__currentData___8W8sA{margin:2px}.-esm-appointments__monthly-view-workload__currentData___8W8sA>span{font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px)}.-esm-appointments__monthly-view-workload__greyBackground___HgDGQ{background-color:#f4f4f4}.-esm-appointments__monthly-view-workload__serviceArea___oSQFS{display:grid;column-gap:2rem;grid-template-columns:1fr 1fr;justify-content:flex-start;text-align:left;margin:.125rem;font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px);color:#020f1b;cursor:pointer}.-esm-appointments__monthly-view-workload__serviceArea___oSQFS>span:first-child{text-align:left;text-overflow:ellipsis;width:1.5rem}.-esm-appointments__monthly-view-workload__smallDesktop___edukX{height:100px}.-esm-appointments__monthly-view-workload__largeDesktop___Rxffz{height:150px}.-esm-appointments__monthly-view-workload__red___HWZ7D{background-color:#a2191f;color:#fff;font-weight:bold;padding:.3rem}.-esm-appointments__monthly-view-workload__purple___B3Tvw{background-color:#684e00;color:#fff;font-weight:bold;padding:.3rem}.-esm-appointments__monthly-view-workload__blue___68rfu{background-color:#0043ce;color:#fff;font-weight:bold;padding:.3rem}.-esm-appointments__monthly-view-workload__green___XT2wj{background-color:#0e6027;color:#fff;font-weight:bold;padding:.3rem}",""]),o.locals={"monthly-cell":"-esm-appointments__monthly-view-workload__monthly-cell___-ciM2","monthly-cell-disabled":"-esm-appointments__monthly-view-workload__monthly-cell-disabled___Y8ymw",identifiers:"-esm-appointments__monthly-view-workload__identifiers___0NJyn",identifierTag:"-esm-appointments__monthly-view-workload__identifierTag___nuLXI","weekly-cell":"-esm-appointments__monthly-view-workload__weekly-cell___LXrN6","week-time":"-esm-appointments__monthly-view-workload__week-time___1UJVJ",currentData:"-esm-appointments__monthly-view-workload__currentData___8W8sA",greyBackground:"-esm-appointments__monthly-view-workload__greyBackground___HgDGQ",serviceArea:"-esm-appointments__monthly-view-workload__serviceArea___oSQFS",smallDesktop:"-esm-appointments__monthly-view-workload__smallDesktop___edukX",largeDesktop:"-esm-appointments__monthly-view-workload__largeDesktop___Rxffz",red:"-esm-appointments__monthly-view-workload__red___HWZ7D",purple:"-esm-appointments__monthly-view-workload__purple___B3Tvw",blue:"-esm-appointments__monthly-view-workload__blue___68rfu",green:"-esm-appointments__monthly-view-workload__green___XT2wj"};const i=o},4096:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-header__header___1BXcm{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:1px solid #e0e0e0;border-left:0px;display:flex;justify-content:space-between}.-esm-appointments__appointments-header__left-justified-items___w526P{display:flex;flex-direction:row;align-items:center}.-esm-appointments__appointments-header__right-justified-items___RTdyD{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;padding-top:1rem}.-esm-appointments__appointments-header__page-name___z9emR{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___a8OE- p:first-of-type{margin-bottom:.25rem}.-esm-appointments__appointments-header__date-and-location___r18-o{display:flex;justify-content:flex-end;align-items:center;margin-right:1rem}.-esm-appointments__appointments-header__value___baWtC{margin-left:.25rem}.-esm-appointments__appointments-header__middot___2QdbQ{margin:0 .5rem}.-esm-appointments__appointments-header__view___yHKw3{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__dropdown___1DzhT{display:flex;align-items:center;justify-content:flex-end;margin-top:.25rem}.-esm-appointments__appointments-header__dropdown___1DzhT .cds--dropdown__wrapper--inline{align-items:center;display:flex}.-esm-appointments__appointments-header__dropdown___1DzhT .cds--list-box__menu{left:-10.15rem}.-esm-appointments__appointments-header__datePicker___2Ca3c{background-color:rgba(0,0,0,0);width:10rem;border:none}.-esm-appointments__appointments-header__datePicker___2Ca3c>input{color:#edf5ff}",""]),o.locals={header:"-esm-appointments__appointments-header__header___1BXcm","left-justified-items":"-esm-appointments__appointments-header__left-justified-items___w526P","right-justified-items":"-esm-appointments__appointments-header__right-justified-items___RTdyD","page-name":"-esm-appointments__appointments-header__page-name___z9emR","page-labels":"-esm-appointments__appointments-header__page-labels___a8OE-","date-and-location":"-esm-appointments__appointments-header__date-and-location___r18-o",value:"-esm-appointments__appointments-header__value___baWtC",middot:"-esm-appointments__appointments-header__middot___2QdbQ",view:"-esm-appointments__appointments-header__view___yHKw3",dropdown:"-esm-appointments__appointments-header__dropdown___1DzhT",datePicker:"-esm-appointments__appointments-header__datePicker___2Ca3c"};const i=o},3950:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__missed-appointment-list__productiveHeading01___YOIgt{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__missed-appointment-list__productiveHeading02___p9EQ0{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__missed-appointment-list__productiveHeading03___6KG8a{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__missed-appointment-list__productiveHeading04___6MGPI{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__missed-appointment-list__bodyLong01___s-UAY{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__missed-appointment-list__bodyShort01___FwtNZ{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__missed-appointment-list__bodyShort02___gk28t{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__missed-appointment-list__text02___lEv2W{color:#525252}.-esm-appointments__missed-appointment-list__label01___-X2aD{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__missed-appointment-list__modal___fRM8V{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__missed-appointment-list__appointmentList___y9bTu{height:100%;width:100%;background-color:#fff}.-esm-appointments__missed-appointment-list__wrapper___cVxLY{margin:1rem}.-esm-appointments__missed-appointment-list__heading___Sk1VM{margin:1.5rem;color:#161616}",""]),o.locals={productiveHeading01:"-esm-appointments__missed-appointment-list__productiveHeading01___YOIgt",productiveHeading02:"-esm-appointments__missed-appointment-list__productiveHeading02___p9EQ0",productiveHeading03:"-esm-appointments__missed-appointment-list__productiveHeading03___6KG8a",productiveHeading04:"-esm-appointments__missed-appointment-list__productiveHeading04___6MGPI",bodyLong01:"-esm-appointments__missed-appointment-list__bodyLong01___s-UAY",bodyShort01:"-esm-appointments__missed-appointment-list__bodyShort01___FwtNZ",bodyShort02:"-esm-appointments__missed-appointment-list__bodyShort02___gk28t",text02:"-esm-appointments__missed-appointment-list__text02___lEv2W",label01:"-esm-appointments__missed-appointment-list__label01___-X2aD",modal:"-esm-appointments__missed-appointment-list__modal___fRM8V",appointmentList:"-esm-appointments__missed-appointment-list__appointmentList___y9bTu",wrapper:"-esm-appointments__missed-appointment-list__wrapper___cVxLY",heading:"-esm-appointments__missed-appointment-list__heading___Sk1VM"};const i=o},7927:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-dashboard__productiveHeading01___KRi5f{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-dashboard__productiveHeading02___\\+adnV{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-dashboard__productiveHeading03___axnjA{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-dashboard__productiveHeading04___CYqqO{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-dashboard__bodyLong01___T-FLc{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-dashboard__bodyShort01___UG1fZ{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-dashboard__bodyShort02___FhTyW{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-dashboard__text02___FwUPB{color:#525252}.-esm-appointments__appointments-dashboard__label01___LV058{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-dashboard__modal___gYCht{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-dashboard__dashboardContainer___k6evV{display:-webkit-flex;min-height:100vh;position:relative;overflow-y:hidden;background-color:#fff}.-esm-appointments__appointments-dashboard__dashboardContent___ei7lq{margin:0;flex-basis:75%;flex-grow:1;flex-shrink:1;position:relative;overflow-y:auto;margin-left:16rem;padding-left:0;padding-right:0;max-width:100% !important}@media(max-width: 1200px){.-esm-appointments__appointments-dashboard__dashboardContent___ei7lq{margin-left:0}}",""]),o.locals={productiveHeading01:"-esm-appointments__appointments-dashboard__productiveHeading01___KRi5f",productiveHeading02:"-esm-appointments__appointments-dashboard__productiveHeading02___+adnV",productiveHeading03:"-esm-appointments__appointments-dashboard__productiveHeading03___axnjA",productiveHeading04:"-esm-appointments__appointments-dashboard__productiveHeading04___CYqqO",bodyLong01:"-esm-appointments__appointments-dashboard__bodyLong01___T-FLc",bodyShort01:"-esm-appointments__appointments-dashboard__bodyShort01___UG1fZ",bodyShort02:"-esm-appointments__appointments-dashboard__bodyShort02___FhTyW",text02:"-esm-appointments__appointments-dashboard__text02___FwUPB",label01:"-esm-appointments__appointments-dashboard__label01___LV058",modal:"-esm-appointments__appointments-dashboard__modal___gYCht",dashboardContainer:"-esm-appointments__appointments-dashboard__dashboardContainer___k6evV",dashboardContent:"-esm-appointments__appointments-dashboard__dashboardContent___ei7lq"};const i=o},227:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.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___\\+elvs{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___BIxPm{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___Tu\\+RV{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___IbOTi{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___wKS0S{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___\\+SoTY{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___EWI6c{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___GhyI9{color:#525252}.-esm-appointments__overlay__label01___\\+LGbq{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___T2ZUj{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___Fnqq2{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:1}.-esm-appointments__overlay__desktopOverlay___Fnqq2::after{height:100%;border-left:1px solid #a8a8a8}.-esm-appointments__overlay__tabletOverlay___up7d4{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:1}.-esm-appointments__overlay__tabletOverlay___up7d4::-webkit-scrollbar{width:0}.-esm-appointments__overlay__tabletOverlay___up7d4>div{margin-top:3rem}.-esm-appointments__overlay__tabletOverlayHeader___VZVIv button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-appointments__overlay__tabletOverlayHeader___VZVIv .-esm-appointments__overlay__headerContent___r8UCR{color:#fff}.-esm-appointments__overlay__desktopHeader___SJ6dj{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___r8UCR{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___vBMDD{background-color:#fff;color:#161616;fill:#161616}.omrs-breakpoint-gt-tablet .-esm-appointments__overlay__overlayContent___ESBr2{padding:0 0 0 0;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-appointments__overlay__overlayContent___ESBr2{padding:0 0 0 0;overflow-y:auto}",""]),o.locals={productiveHeading01:"-esm-appointments__overlay__productiveHeading01___+elvs",productiveHeading02:"-esm-appointments__overlay__productiveHeading02___BIxPm",productiveHeading03:"-esm-appointments__overlay__productiveHeading03___Tu+RV",productiveHeading04:"-esm-appointments__overlay__productiveHeading04___IbOTi",bodyLong01:"-esm-appointments__overlay__bodyLong01___wKS0S",bodyShort01:"-esm-appointments__overlay__bodyShort01___+SoTY",bodyShort02:"-esm-appointments__overlay__bodyShort02___EWI6c",text02:"-esm-appointments__overlay__text02___GhyI9",label01:"-esm-appointments__overlay__label01___+LGbq",modal:"-esm-appointments__overlay__modal___T2ZUj",desktopOverlay:"-esm-appointments__overlay__desktopOverlay___Fnqq2",tabletOverlay:"-esm-appointments__overlay__tabletOverlay___up7d4",tabletOverlayHeader:"-esm-appointments__overlay__tabletOverlayHeader___VZVIv",headerContent:"-esm-appointments__overlay__headerContent___r8UCR",desktopHeader:"-esm-appointments__overlay__desktopHeader___SJ6dj",closeButton:"-esm-appointments__overlay__closeButton___vBMDD",overlayContent:"-esm-appointments__overlay__overlayContent___ESBr2"};const i=o},8430:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ie});var a=n(268),o=n.n(a),i=n(9984),r=n(8744),s=n(8179),l=n(906),_=(0,l.createGlobalStore)("appointments-nav-groups",{navGroups:[]}),d=(0,l.createUseStore)(_),m=n(4924),p=n(4717);const c=function(){return o().createElement("svg",{width:"92",height:"94",viewBox:"0 0 92 94",xmlns:"http://www.w3.org/2000/svg"},o().createElement("title",null,"Patient queue illustration"),o().createElement("g",{fill:"none",fillRule:"evenodd"},o().createElement("path",{fill:"#FFF",d:"M0 0h92v94H0z"}),o().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"}),o().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 h=n(6062),g=n.n(h),f=n(4036),v=n.n(f),u=n(6793),y=n.n(u),b=n(7892),w=n.n(b),k=n(1173),x=n.n(k),E=n(2464),z=n.n(E),S=n(4096),N={};N.styleTagTransform=z(),N.setAttributes=w(),N.insert=y().bind(null,"head"),N.domAPI=v(),N.insertStyleElement=x(),g()(S.Z,N);const C=S.Z&&S.Z.locals?S.Z.locals:void 0;var T=n(1948),D=n(8879),A=n.n(D),H=n(4562);function I(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 L(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,o,i=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||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}}(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 Z=function(e){var t,n=e.title,i=(0,m.useTranslation)().t,r=(0,l.useSession)(),s=(0,a.useRef)(null),_=L((0,a.useState)(new Date),2),d=_[0],h=(_[1],null==r||null===(t=r.sessionLocation)||void 0===t?void 0:t.display);return o().createElement("div",{className:C.header},o().createElement("div",{className:C["left-justified-items"]},o().createElement(c,null),o().createElement("div",{className:C["page-labels"]},o().createElement("p",null,i("appointments","Appointments")),o().createElement("p",{className:C["page-name"]},n))),o().createElement("div",{className:C["right-justified-items"]},o().createElement("div",{className:C["date-and-location"]},o().createElement(p.Ye,{size:16}),o().createElement("span",{className:C.value},h),o().createElement("span",{className:C.middot},"·"),o().createElement(T.Mtg,{onChange:function(e){var t=L(e,1)[0];return(0,H.es)(new Date(t))},ref:s,dateFormat:"d-M-Y",datePickerType:"single"},o().createElement(T.aj6,{style:{backgroundColor:"transparent",border:"none",maxWidth:"10rem"},id:"date-picker-calendar-id",placeholder:"DD-MMM-YYYY",labelText:"",type:"text",value:A()(d).format("DD MMM YYYY")})))))};var M=n(7927),V={};V.styleTagTransform=z(),V.setAttributes=w(),V.insert=y().bind(null,"head"),V.domAPI=v(),V.insertStyleElement=x(),g()(M.Z,V);const O=M.Z&&M.Z.locals?M.Z.locals:void 0;var j=function(e){var t=e.dashboardSlot,n=e.title;return o().createElement(l.ExtensionSlot,{style:{backgroundColor:"white"},extensionSlotName:t,state:{dashboardTitle:n}})};const P=function(){var e,t=(0,r.useParams)().view,n=d().navGroups,i=(0,l.useExtensionStore)(),s=(0,l.useLayoutType)(),_=(null===(e=i.slots["appointments-dashboard-slot"])||void 0===e?void 0:e.assignedExtensions.map((function(e){return e.meta})).filter((function(e){return Object.keys(e).length})))||[],m=n.map((function(e){var t;return null===(t=i.slots[e])||void 0===t?void 0:t.assignedExtensions.map((function(e){return e.meta}))})).flat(),p=_.concat(m),c=p.find((function(e){return e.name===t}))||p[0];return(0,a.useEffect)((function(){return(0,l.isDesktop)(s)||(0,l.attach)("global-nav-menu-slot","appointments-side-nav-ext"),function(){return(0,l.detach)("global-nav-menu-slot","appointments-side-nav-ext")}}),[s]),o().createElement("div",{className:O.dashboardContainer},(0,l.isDesktop)(s)&&o().createElement(l.ExtensionSlot,{extensionSlotName:"appointments-sidebar-slot",key:s}),c&&o().createElement("div",{className:"cds--grid ".concat(O.dashboardContent)},o().createElement(Z,{title:c.title}),o().createElement(j,{dashboardSlot:c.slot,title:c.title,key:c.slot})))};var Y=n(2074),R=n(6759),B=n(1723),U=n(227),F={};F.styleTagTransform=z(),F.setAttributes=w(),F.insert=y().bind(null,"head"),F.domAPI=v(),F.insertStyleElement=x(),g()(U.Z,F);const X=U.Z&&U.Z.locals?U.Z.locals:void 0,q=function(){var e=(0,B.Ir)(),t=e.header,n=e.component,a=e.isOverlayOpen,i=(0,l.useLayoutType)();return o().createElement(o().Fragment,null,a&&o().createElement("div",{className:"tablet"!==i?X.desktopOverlay:X.tabletOverlay},"tablet"!==i?o().createElement("div",{className:X.desktopHeader},o().createElement("div",{className:X.headerContent},t),o().createElement(T.zxk,{className:X.closePanelButton,onClick:function(){return(0,B.Km)()},kind:"ghost",hasIconOnly:!0},o().createElement(Y.x8,{size:16}))):o().createElement(T.h4i,{onClick:function(){return(0,B.Km)()},"aria-label":"Tablet overlay",className:X.tabletOverlayHeader},o().createElement(T.zxk,{hasIconOnly:!0},o().createElement(R.Xd,{size:16})),o().createElement("div",{className:X.headerContent},t)),o().createElement("div",null,n)))};var J=n(7631),W=n(3636),G={};G.styleTagTransform=z(),G.setAttributes=w(),G.insert=y().bind(null,"head"),G.domAPI=v(),G.insertStyleElement=x(),g()(W.Z,G);const Q=W.Z&&W.Z.locals?W.Z.locals:void 0,K=function(e){var t=e.onChangeView,n=(e.calendarView,(0,m.useTranslation)().t);return o().createElement("div",{className:Q.calendarHeaderContainer},o().createElement("div",{className:Q.titleContainer},o().createElement("p",null,n("calendar","Calendar")),o().createElement(T.zxk,{size:"md",kind:"ghost",renderIcon:R.ol},n("addNewClinicDay","Add new clinic day"))),o().createElement("div",{className:Q.titleContent},o().createElement(T.zxk,{size:"md",renderIcon:J.wn,kind:"ghost"},n("filter","Filter")),o().createElement(T.GHR,{selectedIndex:2,size:"md",style:{maxWidth:"30rem"},onChange:function(e){var n=e.name;return t(n)}},o().createElement(T.rsf,{name:"daily",text:n("daily","Daily")}),o().createElement(T.rsf,{name:"weekly",text:n("weekly","Weekly")}),o().createElement(T.rsf,{name:"monthly",text:n("monthly","Monthly")}))))};var $=n(30),ee=n.n($),te=n(5326),ne=n(3593),ae={};ae.styleTagTransform=z(),ae.setAttributes=w(),ae.insert=y().bind(null,"head"),ae.domAPI=v(),ae.insertStyleElement=x(),g()(ne.Z,ae);const oe=ne.Z&&ne.Z.locals?ne.Z.locals:void 0;var ie=n(5328),re={};re.styleTagTransform=z(),re.setAttributes=w(),re.insert=y().bind(null,"head"),re.domAPI=v(),re.insertStyleElement=x(),g()(ie.Z,re);const se=ie.Z&&ie.Z.locals?ie.Z.locals:void 0,le=function(e){var t,n=e.type,a=e.dateTime,i=e.currentDate,r=e.events,s=(0,l.useLayoutType)(),_=null==r?void 0:r.find((function(e){return A()(e.appointmentDate).format("YYYY-MM-DD")===A()(a).format("YYYY-MM-DD")})),d={HIV:"red","Lab testing":"purple",Refill:"blue"},p=(0,m.useTranslation)().t;return o().createElement("div",{className:"".concat(se[(0,H.xj)(a,i)?"monthly-cell":"monthly-cell-disabled"]," ").concat((null==_?void 0:_.service)?se.greyBackground:""," ").concat("small-desktop"===s?se.smallDesktop:se.largeDesktop)},"monthly"===n?o().createElement("p",null,(0,H.xj)(a,i)&&o().createElement(o().Fragment,null,!(null==_?void 0:_.service)&&a.format("D")," ","",(null==_?void 0:_.service)&&o().createElement("div",{className:se.currentData},null==_?void 0:_.service.map((function(e){var t=e.serviceName,n=e.count;return o().createElement("div",{key:t,className:"".concat(se.serviceArea," ").concat(se[d[t]])},o().createElement("span",null,t),o().createElement("span",null,n))})),o().createElement("div",{className:"".concat(se.serviceArea," ").concat(se.green)},o().createElement("span",null,p("total","Total")),o().createElement("span",null,null==_?void 0:_.service.reduce((function(e,n){return null!==(t=e+(null==n?void 0:n.count))&&void 0!==t?t:0}),0)))))):null)};var _e=n(3159),de={};de.styleTagTransform=z(),de.setAttributes=w(),de.insert=y().bind(null,"head"),de.domAPI=v(),de.insertStyleElement=x(),g()(_e.Z,de);const me=_e.Z&&_e.Z.locals?_e.Z.locals:void 0;var pe=n(1215),ce={};ce.styleTagTransform=z(),ce.setAttributes=w(),ce.insert=y().bind(null,"head"),ce.domAPI=v(),ce.insertStyleElement=x(),g()(pe.Z,ce);const he=pe.Z&&pe.Z.locals?pe.Z.locals:void 0,ge=function(e){var t=e.dayOfWeek,n=A()(new Date).format("ddd").toUpperCase()===t;return o().createElement("div",{tabIndex:0,role:"button",className:"".concat(he.tileContainer," ")},o().createElement("span",{className:n?he.bold:""},t))};var fe={monthly:"month",weekly:"week",daily:"day"},ve=["SUN","MON","TUE","WED","THUR","FRI","SAT"];const ue=function(e){var t=e.type,n=e.currentDate,a=e.setCurrentDate,i=(0,m.useTranslation)().t;return o().createElement(o().Fragment,null,o().createElement("div",{className:me.container},o().createElement(T.zxk,{size:"sm",onClick:function(){return a(n.subtract(1,fe[t]))},kind:"tertiary"},i("prev","Prev")),o().createElement("span",null,n.format("MMMM, YYYY")),o().createElement(T.zxk,{size:"sm",onClick:function(){return a(n.add(1,fe[t]))},kind:"tertiary"},i("next","Next"))),o().createElement("div",{className:me.workLoadCard},null==ve?void 0:ve.map((function(e){return o().createElement(ge,{dayOfWeek:e})}))))};function ye(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}A().extend(ee());const be=function(e){var t,n,i=e.type,r=e.events,s=(t=(0,a.useState)(A()()),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,o,i=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ye(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)?ye(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.")}()),l=s[0],_=s[1];return o().createElement("div",{style:{margin:"1rem"}},o().createElement(ue,{type:i,currentDate:l,setCurrentDate:_}),o().createElement("div",{className:oe.wrapper},"monthly"===i?o().createElement("div",{className:oe["monthly-calendar"]},(0,te.aN)(l).map((function(e,t){return o().createElement(le,{type:i,key:t,dateTime:e,currentDate:l,events:r})}))):null))};function we(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,m.useTranslation)().t,i=(e=(0,a.useState)("monthly"),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,o,i=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return we(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)?we(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=i[0],s=i[1];return o().createElement("div",{className:oe.backgroundColor},o().createElement(Z,{title:n("appointments","Appointments")}),o().createElement(K,{onChangeView:s,calendarView:r}),"monthly"===r&&o().createElement(be,{type:"monthly",events:xe}))};var xe=[{appointmentDate:"2022-12-01 05:20:00",service:[{serviceName:"HIV",count:10},{serviceName:"Lab testing",count:7},{serviceName:"Refill",count:15}]},{appointmentDate:"2022-12-05 10:20:00",service:[{serviceName:"HIV",count:5},{serviceName:"Lab testing",count:3},{serviceName:"Refill",count:1}]},{appointmentDate:"2022-11-24 09:20:00",service:[{serviceName:"Test",count:10},{serviceName:"Lab testing",count:10}]},{appointmentDate:"2022-11-21 10:00:00",service:[{serviceName:"HIV",count:1},{serviceName:"Lab testing",count:1},{serviceName:"Refill",count:1}]},{appointmentDate:"2022-11-18 08:20:00",service:[{serviceName:"HIV",count:21},{serviceName:"Drug Pickup",count:4},{serviceName:"Lab testing",count:10},{serviceName:"Refill",count:3}]},{appointmentDate:"2022-12-14 12:20:00",service:[{serviceName:"HIV",count:10},{serviceName:"Refill",count:2}]},{appointmentDate:"2022-12-11 14:20:00",service:[{serviceName:"HIV",count:1},{serviceName:"Lab testing",count:10}]},{appointmentDate:"2022-11-26 13:20:00",service:[{serviceName:"HIV",count:10},{serviceName:"Lab testing",count:10},{serviceName:"Refill",count:15}]},{appointmentDate:"2022-10-27 15:20:00",service:[{serviceName:"HIV",count:1},{serviceName:"Drug pickup",count:4},{serviceName:"Refill",count:1}]},{appointmentDate:"2022-10-22 17:20:00",service:[{serviceName:"HIV",count:13}]}],Ee=n(6306),ze=n(1961);const Se=function(e){var t=e.status,n=e.title,a=(0,Ee.z)(t),i=a.appointments,r=a.isLoading,s=a.mutate;return(0,m.useTranslation)().t,o().createElement("div",null,o().createElement(ze.Z,{appointments:i,isLoading:r,mutate:s,tableHeading:n}))};var Ne=n(3950),Ce={};Ce.styleTagTransform=z(),Ce.setAttributes=w(),Ce.insert=y().bind(null,"head"),Ce.domAPI=v(),Ce.insertStyleElement=x(),g()(Ne.Z,Ce);const Te=Ne.Z&&Ne.Z.locals?Ne.Z.locals:void 0;var De;!function(e){e.MISSED="Scheduled",e.DEFAULTERS="Defaulters",e.LTFU="Ltfu",e.PROMISED="Promised"}(De||(De={}));const Ae=function(){var e=(0,m.useTranslation)().t;return o().createElement("div",{className:Te.appointmentList},o().createElement("h3",{className:Te.heading},e("missedAppointmentsList","Missed Appointments List")),o().createElement("div",{className:Te.wrapper},o().createElement(T.mQc,{className:Te.tabs},o().createElement(T.tdY,{"aria-label":"Appointment tabs",contained:!0},o().createElement(T.OK9,null,e("missed","Missed")),o().createElement(T.OK9,null,e("defaulters","Defaulters")),o().createElement(T.OK9,null,e("lostToFollowUp","Lost To Follow Up")),o().createElement(T.OK9,null,e("promisedPatients","Promised Patients"))),o().createElement(T.nPR,null,o().createElement(T.x45,null,o().createElement(Se,{status:De.MISSED,title:e("missedAppointmentsList","Missed Appointments List")})),o().createElement(T.x45,null,o().createElement(Se,{status:De.DEFAULTERS,title:e("defaulters","Defaulters")})),o().createElement(T.x45,null,o().createElement(Se,{status:De.LTFU,title:e("lostToFollowupAppointments","Lost To Followup Appointments")})),o().createElement(T.x45,null,o().createElement(Se,{status:De.PROMISED,title:e("promisedPateints","Promised Patients")}))))))};var He={errorRetryCount:3};const Ie=function(){return o().createElement("main",null,o().createElement(i.J$,{value:He},o().createElement(r.BrowserRouter,{basename:s.JB},o().createElement(r.Routes,null,o().createElement(r.Route,{path:"",element:o().createElement(P,null)}),o().createElement(r.Route,{path:"/calendar",element:o().createElement(ke,null)}),o().createElement(r.Route,{path:"/missed",element:o().createElement(Ae,null)})),o().createElement(q,null))))}}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[430],{3593:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-calendar-list-view__wrapper___3XIVI{position:relative}.-esm-appointments__appointments-calendar-list-view__monthly-calendar___yePVi{display:grid;grid-template-columns:repeat(7, minmax(0px, 1fr));grid-template-rows:repeat(6, minmax(0px, 1fr))}.-esm-appointments__appointments-calendar-list-view__backgroundColor___U-dEY{background-color:#fff}",""]),o.locals={wrapper:"-esm-appointments__appointments-calendar-list-view__wrapper___3XIVI","monthly-calendar":"-esm-appointments__appointments-calendar-list-view__monthly-calendar___yePVi",backgroundColor:"-esm-appointments__appointments-calendar-list-view__backgroundColor___U-dEY"};const i=o},3636:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,".-esm-appointments__calendar-header__titleContainer___J2QM4{display:flex;justify-content:space-between;align-items:center}.-esm-appointments__calendar-header__titleContainer___J2QM4>p{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0)}.-esm-appointments__calendar-header__titleContainer___J2QM4>button{color:#0f62fe;font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px)}.-esm-appointments__calendar-header__titleContent___AaATf{display:flex;justify-content:space-between;align-items:center}",""]),o.locals={titleContainer:"-esm-appointments__calendar-header__titleContainer___J2QM4",titleContent:"-esm-appointments__calendar-header__titleContent___AaATf"};const i=o},1215:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.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__days-of-week__skeleton___2g7Ep{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__days-of-week__tileContainer___hI7UA{height:4rem;display:flex;justify-content:center;width:100%;align-items:center;border:1px solid #e0e0e0}.-esm-appointments__days-of-week__tileContainer___hI7UA>span{font-size:1rem;color:#525252}.-esm-appointments__days-of-week__bold___fBlxx{font-weight:bold}.-esm-appointments__days-of-week__tileHeader___LWrCf{display:flex;justify-content:space-between;padding-bottom:1rem}.-esm-appointments__days-of-week__headerLabel___qwuO3{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;color:#525252}",""]),o.locals={tileContainer:"-esm-appointments__days-of-week__tileContainer___hI7UA",bold:"-esm-appointments__days-of-week__bold___fBlxx",tileHeader:"-esm-appointments__days-of-week__tileHeader___LWrCf",headerLabel:"-esm-appointments__days-of-week__headerLabel___qwuO3",skeleton:"-esm-appointments__days-of-week__skeleton___2g7Ep"};const i=o},3159:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,".-esm-appointments__monthly-header-module__container___JdNv6{display:flex;justify-content:space-between;align-items:center;width:100%;height:4rem}.-esm-appointments__monthly-header-module__workLoadCard___yTgGJ{display:flex;color:#000}",""]),o.locals={container:"-esm-appointments__monthly-header-module__container___JdNv6",workLoadCard:"-esm-appointments__monthly-header-module__workLoadCard___yTgGJ"};const i=o},5328:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__monthly-view-workload__monthly-cell___-ciM2{border-left:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;background:#fff;color:#000;padding:.125rem;text-align:right;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__monthly-view-workload__monthly-cell___-ciM2:nth-child(-n+7){border-top:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__monthly-cell___-ciM2:nth-child(7n){border-right:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__monthly-cell-disabled___Y8ymw{border-left:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__monthly-cell-disabled___Y8ymw:last-child{border-right:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__identifiers___0NJyn{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:#8d8d8d;display:list-item}.-esm-appointments__monthly-view-workload__identifiers___0NJyn span:not(:first-child){margin:0rem .75rem}.-esm-appointments__monthly-view-workload__identifierTag___nuLXI{display:flex;align-items:center}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6{position:relative;border-right:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;min-height:120px;color:#fff}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6 .-esm-appointments__monthly-view-workload__week-time___1UJVJ{display:none}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:nth-child(-n+8){border-top:1px solid #e0e0e0}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:first-child{border-top:none}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:nth-child(8n+1){border-bottom:none}.-esm-appointments__monthly-view-workload__weekly-cell___LXrN6:nth-child(8n+1) .-esm-appointments__monthly-view-workload__week-time___1UJVJ{white-space:nowrap;display:inline;color:#fff;position:absolute;top:-11px;height:1.5rem;width:2rem}.-esm-appointments__monthly-view-workload__currentData___8W8sA{margin:2px}.-esm-appointments__monthly-view-workload__currentData___8W8sA>span{font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px)}.-esm-appointments__monthly-view-workload__greyBackground___HgDGQ{background-color:#f4f4f4}.-esm-appointments__monthly-view-workload__serviceArea___oSQFS{display:grid;column-gap:2rem;grid-template-columns:1fr 1fr;justify-content:flex-start;text-align:left;margin:.125rem;font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px);color:#020f1b;cursor:pointer}.-esm-appointments__monthly-view-workload__serviceArea___oSQFS>span:first-child{text-align:left;text-overflow:ellipsis;width:1.5rem}.-esm-appointments__monthly-view-workload__smallDesktop___edukX{height:100px}.-esm-appointments__monthly-view-workload__largeDesktop___Rxffz{height:150px}.-esm-appointments__monthly-view-workload__red___HWZ7D{background-color:#a2191f;color:#fff;font-weight:bold;padding:.3rem}.-esm-appointments__monthly-view-workload__purple___B3Tvw{background-color:#684e00;color:#fff;font-weight:bold;padding:.3rem}.-esm-appointments__monthly-view-workload__blue___68rfu{background-color:#0043ce;color:#fff;font-weight:bold;padding:.3rem}.-esm-appointments__monthly-view-workload__green___XT2wj{background-color:#0e6027;color:#fff;font-weight:bold;padding:.3rem}",""]),o.locals={"monthly-cell":"-esm-appointments__monthly-view-workload__monthly-cell___-ciM2","monthly-cell-disabled":"-esm-appointments__monthly-view-workload__monthly-cell-disabled___Y8ymw",identifiers:"-esm-appointments__monthly-view-workload__identifiers___0NJyn",identifierTag:"-esm-appointments__monthly-view-workload__identifierTag___nuLXI","weekly-cell":"-esm-appointments__monthly-view-workload__weekly-cell___LXrN6","week-time":"-esm-appointments__monthly-view-workload__week-time___1UJVJ",currentData:"-esm-appointments__monthly-view-workload__currentData___8W8sA",greyBackground:"-esm-appointments__monthly-view-workload__greyBackground___HgDGQ",serviceArea:"-esm-appointments__monthly-view-workload__serviceArea___oSQFS",smallDesktop:"-esm-appointments__monthly-view-workload__smallDesktop___edukX",largeDesktop:"-esm-appointments__monthly-view-workload__largeDesktop___Rxffz",red:"-esm-appointments__monthly-view-workload__red___HWZ7D",purple:"-esm-appointments__monthly-view-workload__purple___B3Tvw",blue:"-esm-appointments__monthly-view-workload__blue___68rfu",green:"-esm-appointments__monthly-view-workload__green___XT2wj"};const i=o},4096:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-header__header___1BXcm{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:1px solid #e0e0e0;border-left:0px;display:flex;justify-content:space-between}.-esm-appointments__appointments-header__left-justified-items___w526P{display:flex;flex-direction:row;align-items:center}.-esm-appointments__appointments-header__right-justified-items___RTdyD{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;padding-top:1rem}.-esm-appointments__appointments-header__page-name___z9emR{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___a8OE- p:first-of-type{margin-bottom:.25rem}.-esm-appointments__appointments-header__date-and-location___r18-o{display:flex;justify-content:flex-end;align-items:center;margin-right:1rem}.-esm-appointments__appointments-header__value___baWtC{margin-left:.25rem}.-esm-appointments__appointments-header__middot___2QdbQ{margin:0 .5rem}.-esm-appointments__appointments-header__view___yHKw3{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__dropdown___1DzhT{display:flex;align-items:center;justify-content:flex-end;margin-top:.25rem}.-esm-appointments__appointments-header__dropdown___1DzhT .cds--dropdown__wrapper--inline{align-items:center;display:flex}.-esm-appointments__appointments-header__dropdown___1DzhT .cds--list-box__menu{left:-10.15rem}.-esm-appointments__appointments-header__datePicker___2Ca3c{background-color:rgba(0,0,0,0);width:10rem;border:none}.-esm-appointments__appointments-header__datePicker___2Ca3c>input{color:#edf5ff}",""]),o.locals={header:"-esm-appointments__appointments-header__header___1BXcm","left-justified-items":"-esm-appointments__appointments-header__left-justified-items___w526P","right-justified-items":"-esm-appointments__appointments-header__right-justified-items___RTdyD","page-name":"-esm-appointments__appointments-header__page-name___z9emR","page-labels":"-esm-appointments__appointments-header__page-labels___a8OE-","date-and-location":"-esm-appointments__appointments-header__date-and-location___r18-o",value:"-esm-appointments__appointments-header__value___baWtC",middot:"-esm-appointments__appointments-header__middot___2QdbQ",view:"-esm-appointments__appointments-header__view___yHKw3",dropdown:"-esm-appointments__appointments-header__dropdown___1DzhT",datePicker:"-esm-appointments__appointments-header__datePicker___2Ca3c"};const i=o},3950:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__missed-appointment-list__productiveHeading01___YOIgt{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__missed-appointment-list__productiveHeading02___p9EQ0{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__missed-appointment-list__productiveHeading03___6KG8a{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__missed-appointment-list__productiveHeading04___6MGPI{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__missed-appointment-list__bodyLong01___s-UAY{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__missed-appointment-list__bodyShort01___FwtNZ{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__missed-appointment-list__bodyShort02___gk28t{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__missed-appointment-list__text02___lEv2W{color:#525252}.-esm-appointments__missed-appointment-list__label01___-X2aD{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__missed-appointment-list__modal___fRM8V{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__missed-appointment-list__appointmentList___y9bTu{height:100%;width:100%;background-color:#fff}.-esm-appointments__missed-appointment-list__wrapper___cVxLY{margin:1rem}.-esm-appointments__missed-appointment-list__heading___Sk1VM{margin:1.5rem;color:#161616}",""]),o.locals={productiveHeading01:"-esm-appointments__missed-appointment-list__productiveHeading01___YOIgt",productiveHeading02:"-esm-appointments__missed-appointment-list__productiveHeading02___p9EQ0",productiveHeading03:"-esm-appointments__missed-appointment-list__productiveHeading03___6KG8a",productiveHeading04:"-esm-appointments__missed-appointment-list__productiveHeading04___6MGPI",bodyLong01:"-esm-appointments__missed-appointment-list__bodyLong01___s-UAY",bodyShort01:"-esm-appointments__missed-appointment-list__bodyShort01___FwtNZ",bodyShort02:"-esm-appointments__missed-appointment-list__bodyShort02___gk28t",text02:"-esm-appointments__missed-appointment-list__text02___lEv2W",label01:"-esm-appointments__missed-appointment-list__label01___-X2aD",modal:"-esm-appointments__missed-appointment-list__modal___fRM8V",appointmentList:"-esm-appointments__missed-appointment-list__appointmentList___y9bTu",wrapper:"-esm-appointments__missed-appointment-list__wrapper___cVxLY",heading:"-esm-appointments__missed-appointment-list__heading___Sk1VM"};const i=o},7927:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-dashboard__productiveHeading01___KRi5f{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-dashboard__productiveHeading02___\\+adnV{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-dashboard__productiveHeading03___axnjA{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-dashboard__productiveHeading04___CYqqO{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-dashboard__bodyLong01___T-FLc{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-dashboard__bodyShort01___UG1fZ{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-dashboard__bodyShort02___FhTyW{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-dashboard__text02___FwUPB{color:#525252}.-esm-appointments__appointments-dashboard__label01___LV058{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-dashboard__modal___gYCht{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-dashboard__dashboardContainer___k6evV{display:-webkit-flex;min-height:100vh;position:relative;overflow-y:hidden;background-color:#fff}.-esm-appointments__appointments-dashboard__dashboardContent___ei7lq{margin:0;flex-basis:75%;flex-grow:1;flex-shrink:1;position:relative;overflow-y:auto;margin-left:16rem;padding-left:0;padding-right:0;max-width:100% !important}@media(max-width: 1200px){.-esm-appointments__appointments-dashboard__dashboardContent___ei7lq{margin-left:0}}",""]),o.locals={productiveHeading01:"-esm-appointments__appointments-dashboard__productiveHeading01___KRi5f",productiveHeading02:"-esm-appointments__appointments-dashboard__productiveHeading02___+adnV",productiveHeading03:"-esm-appointments__appointments-dashboard__productiveHeading03___axnjA",productiveHeading04:"-esm-appointments__appointments-dashboard__productiveHeading04___CYqqO",bodyLong01:"-esm-appointments__appointments-dashboard__bodyLong01___T-FLc",bodyShort01:"-esm-appointments__appointments-dashboard__bodyShort01___UG1fZ",bodyShort02:"-esm-appointments__appointments-dashboard__bodyShort02___FhTyW",text02:"-esm-appointments__appointments-dashboard__text02___FwUPB",label01:"-esm-appointments__appointments-dashboard__label01___LV058",modal:"-esm-appointments__appointments-dashboard__modal___gYCht",dashboardContainer:"-esm-appointments__appointments-dashboard__dashboardContainer___k6evV",dashboardContent:"-esm-appointments__appointments-dashboard__dashboardContent___ei7lq"};const i=o},227:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(2609),o=n.n(a)()((function(e){return e[1]}));o.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___\\+elvs{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___BIxPm{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___Tu\\+RV{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___IbOTi{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___wKS0S{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___\\+SoTY{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___EWI6c{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___GhyI9{color:#525252}.-esm-appointments__overlay__label01___\\+LGbq{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___T2ZUj{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___Fnqq2{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:1}.-esm-appointments__overlay__desktopOverlay___Fnqq2::after{height:100%;border-left:1px solid #a8a8a8}.-esm-appointments__overlay__tabletOverlay___up7d4{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:1}.-esm-appointments__overlay__tabletOverlay___up7d4::-webkit-scrollbar{width:0}.-esm-appointments__overlay__tabletOverlay___up7d4>div{margin-top:3rem}.-esm-appointments__overlay__tabletOverlayHeader___VZVIv button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-appointments__overlay__tabletOverlayHeader___VZVIv .-esm-appointments__overlay__headerContent___r8UCR{color:#fff}.-esm-appointments__overlay__desktopHeader___SJ6dj{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___r8UCR{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___vBMDD{background-color:#fff;color:#161616;fill:#161616}.omrs-breakpoint-gt-tablet .-esm-appointments__overlay__overlayContent___ESBr2{padding:0 0 0 0;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-appointments__overlay__overlayContent___ESBr2{padding:0 0 0 0;overflow-y:auto}",""]),o.locals={productiveHeading01:"-esm-appointments__overlay__productiveHeading01___+elvs",productiveHeading02:"-esm-appointments__overlay__productiveHeading02___BIxPm",productiveHeading03:"-esm-appointments__overlay__productiveHeading03___Tu+RV",productiveHeading04:"-esm-appointments__overlay__productiveHeading04___IbOTi",bodyLong01:"-esm-appointments__overlay__bodyLong01___wKS0S",bodyShort01:"-esm-appointments__overlay__bodyShort01___+SoTY",bodyShort02:"-esm-appointments__overlay__bodyShort02___EWI6c",text02:"-esm-appointments__overlay__text02___GhyI9",label01:"-esm-appointments__overlay__label01___+LGbq",modal:"-esm-appointments__overlay__modal___T2ZUj",desktopOverlay:"-esm-appointments__overlay__desktopOverlay___Fnqq2",tabletOverlay:"-esm-appointments__overlay__tabletOverlay___up7d4",tabletOverlayHeader:"-esm-appointments__overlay__tabletOverlayHeader___VZVIv",headerContent:"-esm-appointments__overlay__headerContent___r8UCR",desktopHeader:"-esm-appointments__overlay__desktopHeader___SJ6dj",closeButton:"-esm-appointments__overlay__closeButton___vBMDD",overlayContent:"-esm-appointments__overlay__overlayContent___ESBr2"};const i=o},8430:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ie});var a=n(268),o=n.n(a),i=n(9984),r=n(8744),s=n(8179),l=n(906),_=(0,l.createGlobalStore)("appointments-nav-groups",{navGroups:[]}),d=(0,l.createUseStore)(_),m=n(4924),p=n(4717);const c=function(){return o().createElement("svg",{width:"92",height:"94",viewBox:"0 0 92 94",xmlns:"http://www.w3.org/2000/svg"},o().createElement("title",null,"Patient queue illustration"),o().createElement("g",{fill:"none",fillRule:"evenodd"},o().createElement("path",{fill:"#FFF",d:"M0 0h92v94H0z"}),o().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"}),o().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 h=n(6062),g=n.n(h),f=n(4036),v=n.n(f),u=n(6793),y=n.n(u),b=n(7892),w=n.n(b),k=n(1173),x=n.n(k),E=n(2464),z=n.n(E),S=n(4096),N={};N.styleTagTransform=z(),N.setAttributes=w(),N.insert=y().bind(null,"head"),N.domAPI=v(),N.insertStyleElement=x(),g()(S.Z,N);const C=S.Z&&S.Z.locals?S.Z.locals:void 0;var T=n(1948),D=n(8879),A=n.n(D),H=n(1427);function I(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 L(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,o,i=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||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}}(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 Z=function(e){var t,n=e.title,i=(0,m.useTranslation)().t,r=(0,l.useSession)(),s=(0,a.useRef)(null),_=L((0,a.useState)(new Date),2),d=_[0],h=(_[1],null==r||null===(t=r.sessionLocation)||void 0===t?void 0:t.display);return o().createElement("div",{className:C.header},o().createElement("div",{className:C["left-justified-items"]},o().createElement(c,null),o().createElement("div",{className:C["page-labels"]},o().createElement("p",null,i("appointments","Appointments")),o().createElement("p",{className:C["page-name"]},n))),o().createElement("div",{className:C["right-justified-items"]},o().createElement("div",{className:C["date-and-location"]},o().createElement(p.Ye,{size:16}),o().createElement("span",{className:C.value},h),o().createElement("span",{className:C.middot},"·"),o().createElement(T.Mtg,{onChange:function(e){var t=L(e,1)[0];return(0,H.es)(new Date(t))},ref:s,dateFormat:"d-M-Y",datePickerType:"single"},o().createElement(T.aj6,{style:{backgroundColor:"transparent",border:"none",maxWidth:"10rem"},id:"date-picker-calendar-id",placeholder:"DD-MMM-YYYY",labelText:"",type:"text",value:A()(d).format("DD MMM YYYY")})))))};var M=n(7927),V={};V.styleTagTransform=z(),V.setAttributes=w(),V.insert=y().bind(null,"head"),V.domAPI=v(),V.insertStyleElement=x(),g()(M.Z,V);const O=M.Z&&M.Z.locals?M.Z.locals:void 0;var j=function(e){var t=e.dashboardSlot,n=e.title;return o().createElement(l.ExtensionSlot,{style:{backgroundColor:"white"},extensionSlotName:t,state:{dashboardTitle:n}})};const P=function(){var e,t=(0,r.useParams)().view,n=d().navGroups,i=(0,l.useExtensionStore)(),s=(0,l.useLayoutType)(),_=(null===(e=i.slots["appointments-dashboard-slot"])||void 0===e?void 0:e.assignedExtensions.map((function(e){return e.meta})).filter((function(e){return Object.keys(e).length})))||[],m=n.map((function(e){var t;return null===(t=i.slots[e])||void 0===t?void 0:t.assignedExtensions.map((function(e){return e.meta}))})).flat(),p=_.concat(m),c=p.find((function(e){return e.name===t}))||p[0];return(0,a.useEffect)((function(){return(0,l.isDesktop)(s)||(0,l.attach)("global-nav-menu-slot","appointments-side-nav-ext"),function(){return(0,l.detach)("global-nav-menu-slot","appointments-side-nav-ext")}}),[s]),o().createElement("div",{className:O.dashboardContainer},(0,l.isDesktop)(s)&&o().createElement(l.ExtensionSlot,{extensionSlotName:"appointments-sidebar-slot",key:s}),c&&o().createElement("div",{className:"cds--grid ".concat(O.dashboardContent)},o().createElement(Z,{title:c.title}),o().createElement(j,{dashboardSlot:c.slot,title:c.title,key:c.slot})))};var Y=n(2074),R=n(6759),B=n(1723),U=n(227),F={};F.styleTagTransform=z(),F.setAttributes=w(),F.insert=y().bind(null,"head"),F.domAPI=v(),F.insertStyleElement=x(),g()(U.Z,F);const X=U.Z&&U.Z.locals?U.Z.locals:void 0,q=function(){var e=(0,B.Ir)(),t=e.header,n=e.component,a=e.isOverlayOpen,i=(0,l.useLayoutType)();return o().createElement(o().Fragment,null,a&&o().createElement("div",{className:"tablet"!==i?X.desktopOverlay:X.tabletOverlay},"tablet"!==i?o().createElement("div",{className:X.desktopHeader},o().createElement("div",{className:X.headerContent},t),o().createElement(T.zxk,{className:X.closePanelButton,onClick:function(){return(0,B.Km)()},kind:"ghost",hasIconOnly:!0},o().createElement(Y.x8,{size:16}))):o().createElement(T.h4i,{onClick:function(){return(0,B.Km)()},"aria-label":"Tablet overlay",className:X.tabletOverlayHeader},o().createElement(T.zxk,{hasIconOnly:!0},o().createElement(R.Xd,{size:16})),o().createElement("div",{className:X.headerContent},t)),o().createElement("div",null,n)))};var J=n(7631),W=n(3636),G={};G.styleTagTransform=z(),G.setAttributes=w(),G.insert=y().bind(null,"head"),G.domAPI=v(),G.insertStyleElement=x(),g()(W.Z,G);const Q=W.Z&&W.Z.locals?W.Z.locals:void 0,K=function(e){var t=e.onChangeView,n=(e.calendarView,(0,m.useTranslation)().t);return o().createElement("div",{className:Q.calendarHeaderContainer},o().createElement("div",{className:Q.titleContainer},o().createElement("p",null,n("calendar","Calendar")),o().createElement(T.zxk,{size:"md",kind:"ghost",renderIcon:R.ol},n("addNewClinicDay","Add new clinic day"))),o().createElement("div",{className:Q.titleContent},o().createElement(T.zxk,{size:"md",renderIcon:J.wn,kind:"ghost"},n("filter","Filter")),o().createElement(T.GHR,{selectedIndex:2,size:"md",style:{maxWidth:"30rem"},onChange:function(e){var n=e.name;return t(n)}},o().createElement(T.rsf,{name:"daily",text:n("daily","Daily")}),o().createElement(T.rsf,{name:"weekly",text:n("weekly","Weekly")}),o().createElement(T.rsf,{name:"monthly",text:n("monthly","Monthly")}))))};var $=n(30),ee=n.n($),te=n(5326),ne=n(3593),ae={};ae.styleTagTransform=z(),ae.setAttributes=w(),ae.insert=y().bind(null,"head"),ae.domAPI=v(),ae.insertStyleElement=x(),g()(ne.Z,ae);const oe=ne.Z&&ne.Z.locals?ne.Z.locals:void 0;var ie=n(5328),re={};re.styleTagTransform=z(),re.setAttributes=w(),re.insert=y().bind(null,"head"),re.domAPI=v(),re.insertStyleElement=x(),g()(ie.Z,re);const se=ie.Z&&ie.Z.locals?ie.Z.locals:void 0,le=function(e){var t,n=e.type,a=e.dateTime,i=e.currentDate,r=e.events,s=(0,l.useLayoutType)(),_=null==r?void 0:r.find((function(e){return A()(e.appointmentDate).format("YYYY-MM-DD")===A()(a).format("YYYY-MM-DD")})),d={HIV:"red","Lab testing":"purple",Refill:"blue"},p=(0,m.useTranslation)().t;return o().createElement("div",{className:"".concat(se[(0,H.xj)(a,i)?"monthly-cell":"monthly-cell-disabled"]," ").concat((null==_?void 0:_.service)?se.greyBackground:""," ").concat("small-desktop"===s?se.smallDesktop:se.largeDesktop)},"monthly"===n?o().createElement("p",null,(0,H.xj)(a,i)&&o().createElement(o().Fragment,null,!(null==_?void 0:_.service)&&a.format("D")," ","",(null==_?void 0:_.service)&&o().createElement("div",{className:se.currentData},null==_?void 0:_.service.map((function(e){var t=e.serviceName,n=e.count;return o().createElement("div",{key:t,className:"".concat(se.serviceArea," ").concat(se[d[t]])},o().createElement("span",null,t),o().createElement("span",null,n))})),o().createElement("div",{className:"".concat(se.serviceArea," ").concat(se.green)},o().createElement("span",null,p("total","Total")),o().createElement("span",null,null==_?void 0:_.service.reduce((function(e,n){return null!==(t=e+(null==n?void 0:n.count))&&void 0!==t?t:0}),0)))))):null)};var _e=n(3159),de={};de.styleTagTransform=z(),de.setAttributes=w(),de.insert=y().bind(null,"head"),de.domAPI=v(),de.insertStyleElement=x(),g()(_e.Z,de);const me=_e.Z&&_e.Z.locals?_e.Z.locals:void 0;var pe=n(1215),ce={};ce.styleTagTransform=z(),ce.setAttributes=w(),ce.insert=y().bind(null,"head"),ce.domAPI=v(),ce.insertStyleElement=x(),g()(pe.Z,ce);const he=pe.Z&&pe.Z.locals?pe.Z.locals:void 0,ge=function(e){var t=e.dayOfWeek,n=A()(new Date).format("ddd").toUpperCase()===t;return o().createElement("div",{tabIndex:0,role:"button",className:"".concat(he.tileContainer," ")},o().createElement("span",{className:n?he.bold:""},t))};var fe={monthly:"month",weekly:"week",daily:"day"},ve=["SUN","MON","TUE","WED","THUR","FRI","SAT"];const ue=function(e){var t=e.type,n=e.currentDate,a=e.setCurrentDate,i=(0,m.useTranslation)().t;return o().createElement(o().Fragment,null,o().createElement("div",{className:me.container},o().createElement(T.zxk,{size:"sm",onClick:function(){return a(n.subtract(1,fe[t]))},kind:"tertiary"},i("prev","Prev")),o().createElement("span",null,n.format("MMMM, YYYY")),o().createElement(T.zxk,{size:"sm",onClick:function(){return a(n.add(1,fe[t]))},kind:"tertiary"},i("next","Next"))),o().createElement("div",{className:me.workLoadCard},null==ve?void 0:ve.map((function(e){return o().createElement(ge,{dayOfWeek:e})}))))};function ye(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}A().extend(ee());const be=function(e){var t,n,i=e.type,r=e.events,s=(t=(0,a.useState)(A()()),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,o,i=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ye(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)?ye(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.")}()),l=s[0],_=s[1];return o().createElement("div",{style:{margin:"1rem"}},o().createElement(ue,{type:i,currentDate:l,setCurrentDate:_}),o().createElement("div",{className:oe.wrapper},"monthly"===i?o().createElement("div",{className:oe["monthly-calendar"]},(0,te.aN)(l).map((function(e,t){return o().createElement(le,{type:i,key:t,dateTime:e,currentDate:l,events:r})}))):null))};function we(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,m.useTranslation)().t,i=(e=(0,a.useState)("monthly"),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,o,i=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return we(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)?we(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=i[0],s=i[1];return o().createElement("div",{className:oe.backgroundColor},o().createElement(Z,{title:n("appointments","Appointments")}),o().createElement(K,{onChangeView:s,calendarView:r}),"monthly"===r&&o().createElement(be,{type:"monthly",events:xe}))};var xe=[{appointmentDate:"2022-12-01 05:20:00",service:[{serviceName:"HIV",count:10},{serviceName:"Lab testing",count:7},{serviceName:"Refill",count:15}]},{appointmentDate:"2022-12-05 10:20:00",service:[{serviceName:"HIV",count:5},{serviceName:"Lab testing",count:3},{serviceName:"Refill",count:1}]},{appointmentDate:"2022-11-24 09:20:00",service:[{serviceName:"Test",count:10},{serviceName:"Lab testing",count:10}]},{appointmentDate:"2022-11-21 10:00:00",service:[{serviceName:"HIV",count:1},{serviceName:"Lab testing",count:1},{serviceName:"Refill",count:1}]},{appointmentDate:"2022-11-18 08:20:00",service:[{serviceName:"HIV",count:21},{serviceName:"Drug Pickup",count:4},{serviceName:"Lab testing",count:10},{serviceName:"Refill",count:3}]},{appointmentDate:"2022-12-14 12:20:00",service:[{serviceName:"HIV",count:10},{serviceName:"Refill",count:2}]},{appointmentDate:"2022-12-11 14:20:00",service:[{serviceName:"HIV",count:1},{serviceName:"Lab testing",count:10}]},{appointmentDate:"2022-11-26 13:20:00",service:[{serviceName:"HIV",count:10},{serviceName:"Lab testing",count:10},{serviceName:"Refill",count:15}]},{appointmentDate:"2022-10-27 15:20:00",service:[{serviceName:"HIV",count:1},{serviceName:"Drug pickup",count:4},{serviceName:"Refill",count:1}]},{appointmentDate:"2022-10-22 17:20:00",service:[{serviceName:"HIV",count:13}]}],Ee=n(6306),ze=n(1961);const Se=function(e){var t=e.status,n=e.title,a=(0,Ee.z)(t),i=a.appointments,r=a.isLoading,s=a.mutate;return(0,m.useTranslation)().t,o().createElement("div",null,o().createElement(ze.Z,{appointments:i,isLoading:r,mutate:s,tableHeading:n}))};var Ne=n(3950),Ce={};Ce.styleTagTransform=z(),Ce.setAttributes=w(),Ce.insert=y().bind(null,"head"),Ce.domAPI=v(),Ce.insertStyleElement=x(),g()(Ne.Z,Ce);const Te=Ne.Z&&Ne.Z.locals?Ne.Z.locals:void 0;var De;!function(e){e.MISSED="Scheduled",e.DEFAULTERS="Defaulters",e.LTFU="Ltfu",e.PROMISED="Promised"}(De||(De={}));const Ae=function(){var e=(0,m.useTranslation)().t;return o().createElement("div",{className:Te.appointmentList},o().createElement("h3",{className:Te.heading},e("missedAppointmentsList","Missed Appointments List")),o().createElement("div",{className:Te.wrapper},o().createElement(T.mQc,{className:Te.tabs},o().createElement(T.tdY,{"aria-label":"Appointment tabs",contained:!0},o().createElement(T.OK9,null,e("missed","Missed")),o().createElement(T.OK9,null,e("defaulters","Defaulters")),o().createElement(T.OK9,null,e("lostToFollowUp","Lost To Follow Up")),o().createElement(T.OK9,null,e("promisedPatients","Promised Patients"))),o().createElement(T.nPR,null,o().createElement(T.x45,null,o().createElement(Se,{status:De.MISSED,title:e("missedAppointmentsList","Missed Appointments List")})),o().createElement(T.x45,null,o().createElement(Se,{status:De.DEFAULTERS,title:e("defaulters","Defaulters")})),o().createElement(T.x45,null,o().createElement(Se,{status:De.LTFU,title:e("lostToFollowupAppointments","Lost To Followup Appointments")})),o().createElement(T.x45,null,o().createElement(Se,{status:De.PROMISED,title:e("promisedPateints","Promised Patients")}))))))};var He={errorRetryCount:3};const Ie=function(){return o().createElement("main",null,o().createElement(i.J$,{value:He},o().createElement(r.BrowserRouter,{basename:s.JB},o().createElement(r.Routes,null,o().createElement(r.Route,{path:"",element:o().createElement(P,null)}),o().createElement(r.Route,{path:"/calendar",element:o().createElement(ke,null)}),o().createElement(r.Route,{path:"/missed",element:o().createElement(Ae,null)})),o().createElement(q,null))))}}}]);
package/dist/437.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[437],{9698:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(2609),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".-esm-appointments__appointment-details__appointmentDetailsContainer___rTSFk{min-height:fit-content;background-color:#fff;padding:1rem}.-esm-appointments__appointment-details__title___qvJe9{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:#262626}.-esm-appointments__appointment-details__subTitle___kfZyw{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__appointment-details__tags___rBzn4{margin-top:1rem;display:flex;column-gap:.5rem}.-esm-appointments__appointment-details__tags___rBzn4>div{margin:0}.-esm-appointments__appointment-details__patientInfoGrid___FawDC{display:grid;grid-template-columns:1fr 1fr 1fr;column-gap:1rem;margin-top:1rem}.-esm-appointments__appointment-details__gridTitle___zXkda{font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px);margin-bottom:1.5rem;color:#525252}.-esm-appointments__appointment-details__label___BKxKI{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__appointment-details__historyGrid___V6zdw{display:grid;grid-template-columns:1fr 1fr;row-gap:1rem}.-esm-appointments__appointment-details__historyGridLabel___plUVB{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);color:#525252}.-esm-appointments__appointment-details__historyGridCount___2M9hr{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0);margin-top:.125rem;color:#0f62fe}.-esm-appointments__appointment-details__historyGridCountRed___fm2L\\+{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0);margin-top:.125rem;color:#da1e28}",""]),i.locals={appointmentDetailsContainer:"-esm-appointments__appointment-details__appointmentDetailsContainer___rTSFk",title:"-esm-appointments__appointment-details__title___qvJe9",subTitle:"-esm-appointments__appointment-details__subTitle___kfZyw",tags:"-esm-appointments__appointment-details__tags___rBzn4",patientInfoGrid:"-esm-appointments__appointment-details__patientInfoGrid___FawDC",gridTitle:"-esm-appointments__appointment-details__gridTitle___zXkda",label:"-esm-appointments__appointment-details__label___BKxKI",historyGrid:"-esm-appointments__appointment-details__historyGrid___V6zdw",historyGridLabel:"-esm-appointments__appointment-details__historyGridLabel___plUVB",historyGridCount:"-esm-appointments__appointment-details__historyGridCount___2M9hr",historyGridCountRed:"-esm-appointments__appointment-details__historyGridCountRed___fm2L+"};const r=i},5735:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(2609),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".-esm-appointments__appointments-base-table__appointmentBaseTable___E4Ad3 td>div{height:fit-content;max-height:none !important}.-esm-appointments__appointments-base-table__addAppointmentButton___QPLib{min-height:2rem;margin-left:82%;right:0;margin-top:2em;height:2rem;min-height:0}",""]),i.locals={appointmentBaseTable:"-esm-appointments__appointments-base-table__appointmentBaseTable___E4Ad3",addAppointmentButton:"-esm-appointments__appointments-base-table__addAppointmentButton___QPLib"};const r=i},8472:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(2609),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__empty-state__content___YmT3T{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-appointments__empty-state__desktopHeading___9ravb h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__empty-state__tabletHeading___SHY\\+Z h4{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:#525252}.-esm-appointments__empty-state__desktopHeading___9ravb,.-esm-appointments__empty-state__tabletHeading___SHY\\+Z{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__empty-state__desktopHeading___9ravb h4:after,.-esm-appointments__empty-state__tabletHeading___SHY\\+Z h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__heading___XX-Rc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__tile___wbKcN{text-align:center;border:1px solid #e0e0e0;margin:2rem 1rem}.-esm-appointments__empty-state__actionText___x06gb{display:flex;align-items:center}',""]),i.locals={content:"-esm-appointments__empty-state__content___YmT3T",desktopHeading:"-esm-appointments__empty-state__desktopHeading___9ravb",tabletHeading:"-esm-appointments__empty-state__tabletHeading___SHY+Z",heading:"-esm-appointments__empty-state__heading___XX-Rc",tile:"-esm-appointments__empty-state__tile___wbKcN",actionText:"-esm-appointments__empty-state__actionText___x06gb"};const r=i},1961:(e,t,n)=>{n.d(t,{Z:()=>U});var a=n(268),i=n.n(a),r=n(4924),l=n(4741),o=n(1723),s=n(5320),p=n(1948),m=n(906),c=n(7384),d=n(6759),_=n(6062),g=n.n(_),u=n(4036),h=n.n(u),f=n(6793),v=n.n(f),b=n(7892),y=n.n(b),E=n(1173),T=n.n(E),w=n(2464),C=n.n(w),A=n(9698),x={};x.styleTagTransform=C(),x.setAttributes=y(),x.insert=v().bind(null,"head"),x.domAPI=h(),x.insertStyleElement=T(),g()(A.Z,x);const z=A.Z&&A.Z.locals?A.Z.locals:void 0;var N=n(9984),k=n(8879),L=n.n(k),H=n(4562);const Z=function(e){var t,n,a,l,o,s,c,d,_,g,u,h,f,v,b=e.appointment,y=(0,r.useTranslation)().t,E=(t=b.patientUuid,n=new AbortController,d="/ws/rest/v1/appointments/search",_=(0,H.zF)(),g=(0,N.ZP)(d,(function(){return(0,m.openmrsFetch)(d,{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:t,startDate:_}})})),u=g.data,h=g.error,f=g.isLoading,v=g.isValidating,{appointmentsCount:{missedAppointments:(null==u||null===(a=u.data)||void 0===a?void 0:a.length)?u.data.filter((function(e){return"Missed"===e.status})).length:0,completedAppointments:(null==u||null===(l=u.data)||void 0===l?void 0:l.length)?u.data.filter((function(e){return"Completed"===e.status})).length:0,cancelledAppointments:(null==u||null===(o=u.data)||void 0===o?void 0:o.length)?u.data.filter((function(e){return"Cancelled"===e.status})).length:0,upcomingAppointments:(null==u||null===(s=u.data)||void 0===s?void 0:s.length)?null===(c=u.data)||void 0===c?void 0:c.filter((function(e){return L()(e.startDateTime/1e3*1e3).isAfter(L()())})).length:0},isError:h,isLoading:f,isValidating:v}).appointmentsCount;return i().createElement("div",{className:z.appointmentDetailsContainer},i().createElement("p",{className:z.title},b.serviceType),i().createElement("p",{className:z.subTitle},(0,m.formatDate)(new Date(b.dateTime))),i().createElement("div",{className:z.tags},i().createElement(p.Vp9,{type:"red",title:b.appointmentKind},b.appointmentKind)),i().createElement("div",{className:z.patientInfoGrid},i().createElement("div",null,i().createElement("p",{className:z.gridTitle},y("patientDetails","Patient details")),i().createElement("p",{className:z.label},b.name),i().createElement("p",{className:z.label},b.age),i().createElement("p",{className:z.label},b.gender),i().createElement("p",{className:z.label},b.dob),i().createElement("p",{className:z.label},b.phoneNumber)),i().createElement("div",null,i().createElement("p",{className:z.gridTitle},y("appointmentNotes","Appointment Notes")),i().createElement("p",{className:z.label},b.comments)),i().createElement("div",null,i().createElement("p",{className:z.gridTitle},y("appointmentHistory","Appointment History")),i().createElement("div",{className:z.historyGrid},i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("completed","Completed")),i().createElement("span",{className:z.historyGridCount},E.completedAppointments)),i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("missed","Missed")),i().createElement("span",{className:z.historyGridCountRed},E.missedAppointments)),i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("cancelled","Cancelled")),i().createElement("span",{className:z.historyGridCount},E.cancelledAppointments)),i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("upcomming","Upcoming")),i().createElement("span",{className:z.historyGridCount},E.upcomingAppointments))))))};var S=n(5735),F={};F.styleTagTransform=C(),F.setAttributes=y(),F.insert=v().bind(null,"head"),F.domAPI=h(),F.insertStyleElement=T(),g()(S.Z,F);const I=S.Z&&S.Z.locals?S.Z.locals:void 0;var D=function(e){var t=e.rowIds,n=e.headers,a=e.cellsById,i=e.inputValue,r=e.getCellId;return t.filter((function(e){return n.some((function(t){var n=t.key,l=r(e,n),o=a[l].value,s=i.toLowerCase();return"boolean"!=typeof o&&(o.hasOwnProperty("content")?Array.isArray(o.content.props.children)?(""+o.content.props.children[1]).toLowerCase().includes(s):"object"==typeof o.content.props.children?(""+o.content.props.children.props.children).toLowerCase().includes(s):(""+o.content.props.children).toLowerCase().includes(s):(""+o).toLowerCase().includes(s))}))}))},G=n(9317),P=n(9405),B=n(6824),M=n.n(B),V=n(264),R=n.n(V);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)}L().extend(R()),L().extend(M());const U=function(e){var t,n,_,g=e.appointments,u=e.isLoading,h=e.tableHeading,f=(e.mutate,(0,r.useTranslation)().t),v=(0,m.usePagination)(g,10),b=v.results,y=v.goTo,E=v.currentPage,T=[{header:f("patientName","Patient name"),key:"patientName"},{header:f("identifier","identifier"),key:"identifier"},{header:f("dateTime","Date & Time"),key:"dateTime"},{header:f("serviceType","Service Type"),key:"serviceType"},{header:f("actions","Actions"),key:"actions"}],w=null==b?void 0:b.map((function(e,t){return{id:"".concat(t),patientName:{content:i().createElement(m.ConfigurableLink,{style:{textDecoration:"none"},to:"${openmrsSpaBase}/patient/".concat(e.patientUuid,"/chart")},e.name)},identifier:e.identifier,dateTime:(0,m.formatDatetime)(new Date(e.dateTime)),serviceType:e.serviceType,provider:e.provider,actions:i().createElement(i().Fragment,null,(L()(e.dateTime).isAfter(L()())||L()(e.dateTime).isToday())&&i().createElement(p.PQB,{size:"sm",flipped:!0},i().createElement(p.laM,{itemText:f("editAppointments","Edit Appointment"),onClick:function(){return(0,o.I8)(f("editAppointments","Edit Appointment"),i().createElement(G.Z,{appointment:e,context:"editing"}))}}),i().createElement(p.laM,{itemText:f("cancelAppointment","Cancel appointment"),onClick:function(){return(0,o.I8)(f("cancelAppointment","Cancel appointment"),i().createElement(P.Z,{appointment:e}))}})))}})),C=(0,a.useMemo)((function(){var e,t=Math.ceil(g.length/10);return(e=Array(t).keys(),function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||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)||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.")}()).map((function(e){return 10*(e+1)}))}),[g]);return u?i().createElement(p.gqd,{role:"progressbar",row:5}):(null==g?void 0:g.length)?i().createElement("div",{className:I.appointmentBaseTable},i().createElement("div",{className:I.addAppointmentButton},i().createElement(m.ExtensionSlot,{extensionSlotName:"patient-search-button-slot",state:{selectPatientAction:function(e){(0,o.Km)(),(0,o.I8)(f("appointmentForm","Create Appointment"),i().createElement(G.Z,{patientUuid:e,context:"creating"}))},buttonText:f("createNewAppointment","Create new appointment"),overlayHeader:f("createNewAppointment","Create new appointment"),buttonProps:{kind:"secondary",size:"sm",renderIcon:function(e){return i().createElement(d.mm,K({size:20},e))}}}})),i().createElement(p.wQF,{rows:w,headers:T,isSortable:!0,filterRows:D},(function(e){var a=e.rows,r=e.headers,l=e.getHeaderProps,o=e.getRowProps,s=e.getTableProps,m=(e.getBatchActionProps,e.onInputChange);return i().createElement(p.xJi,{title:"".concat((0,c.Z)(h)," ").concat(f("appointments","appointment")," ").concat(null!==(t=g.length)&&void 0!==t?t:0)},i().createElement(p.fjU,null,i().createElement(p.Vj0,null,i().createElement(p.Ys1,{style:{backgroundColor:"#f4f4f4"},tabIndex:0,onChange:m}))),i().createElement(p.iA_,K({},s(),{size:"sm",useZebraStyles:!0}),i().createElement(p.ssF,null,i().createElement(p.SCH,null,i().createElement(p.MOD,null),r.map((function(e){return i().createElement(p.xDH,K({},l({header:e})),e.header)})))),i().createElement(p.RMI,null,a.map((function(e,t){return i().createElement(i().Fragment,{key:e.id},i().createElement(p.RcE,K({},o({row:e})),e.cells.map((function(e){var t;return i().createElement(p.pj1,{className:"cds--table-column-menu",key:e.id},null!==(n=null===(t=e.value)||void 0===t?void 0:t.content)&&void 0!==n?n:e.value)}))),e.isExpanded&&i().createElement(p.WdL,{colSpan:r.length+1},i().createElement(Z,{appointment:b[t]})))})))))})),i().createElement(p.tlE,{backwardText:"Previous page",forwardText:"Next page",itemsPerPageText:"Items per page:",page:E,pageNumberText:"Page Number",pageSize:10,onChange:function(e){var t=e.page;return y(t)},pageSizes:C,totalItems:null!==(_=g.length)&&void 0!==_?_:0})):i().createElement(l.u,{headerTitle:"".concat(h," appointments"),displayText:"".concat(h," appointments"),launchForm:function(){return(0,o.I8)(f("search","Search"),i().createElement(s.Z,null))}})}},6306:(e,t,n)=>{n.d(t,{z:()=>o});var a=n(268),i=n(9984),r=n(906),l=n(4562);function o(e){var t,n=(0,l.zF)(),o="/ws/rest/v1/appointment/appointmentStatus?forDate=".concat(n,"&status=").concat(e),s="/ws/rest/v1/appointment/all?forDate=".concat(n),p=(0,i.ZP)(e?s:o,r.openmrsFetch),m=p.data,c=p.error,d=p.isLoading,_=p.isValidating,g=p.mutate,u=(0,a.useMemo)((function(){var e;return null!==(t=null==m||null===(e=m.data)||void 0===e?void 0:e.map((function(e){return(0,l.ny)(e)})))&&void 0!==t?t:[]}),[null==m?void 0:m.data]);return{appointments:u,isLoading:d,isError:c,isValidating:_,mutate:g}}},4741:(e,t,n)=>{n.d(t,{u:()=>A});var a=n(268),i=n.n(a),r=n(1948),l=n(4924),o=function(e){var t=e.width,n=void 0===t?"64":t,a=e.height,r=void 0===a?"64":a;return i().createElement("svg",{width:n,height:r,viewBox:"0 0 64 64"},i().createElement("title",null,"Empty data illustration"),i().createElement("g",{fill:"none",fillRule:"evenodd"},i().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),i().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),i().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),i().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},s=n(906),p=n(6062),m=n.n(p),c=n(4036),d=n.n(c),_=n(6793),g=n.n(_),u=n(7892),h=n.n(u),f=n(1173),v=n.n(f),b=n(2464),y=n.n(b),E=n(8472),T={};T.styleTagTransform=y(),T.setAttributes=h(),T.insert=g().bind(null,"head"),T.domAPI=d(),T.insertStyleElement=v(),m()(E.Z,T);const w=E.Z&&E.Z.locals?E.Z.locals:void 0;var C=n(6759),A=function(e){var t=e.headerTitle,n=e.displayText,a=e.launchForm,p=(0,l.useTranslation)().t,m="tablet"===(0,s.useLayoutType)();return i().createElement(r.mh4,null,i().createElement(r.n9L,{className:w.tile},i().createElement("div",{className:m?w.tabletHeading:w.desktopHeading},i().createElement("h4",null,t)),i().createElement(o,null),i().createElement("p",{className:w.content},i().createElement(l.Trans,{i18nKey:"emptyStateText",values:{displayText:n.toLowerCase()}},"There are no ",n.toLowerCase()," to display")),i().createElement("p",{className:w.action},a&&i().createElement("span",null,i().createElement(r.zxk,{renderIcon:C.mm,kind:"ghost",onClick:function(){return a()}},p("createAppointment","Create appointment"))))))}}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[437],{9698:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(2609),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".-esm-appointments__appointment-details__appointmentDetailsContainer___rTSFk{min-height:fit-content;background-color:#fff;padding:1rem}.-esm-appointments__appointment-details__title___qvJe9{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:#262626}.-esm-appointments__appointment-details__subTitle___kfZyw{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__appointment-details__tags___rBzn4{margin-top:1rem;display:flex;column-gap:.5rem}.-esm-appointments__appointment-details__tags___rBzn4>div{margin:0}.-esm-appointments__appointment-details__patientInfoGrid___FawDC{display:grid;grid-template-columns:1fr 1fr 1fr;column-gap:1rem;margin-top:1rem}.-esm-appointments__appointment-details__gridTitle___zXkda{font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px);margin-bottom:1.5rem;color:#525252}.-esm-appointments__appointment-details__label___BKxKI{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__appointment-details__historyGrid___V6zdw{display:grid;grid-template-columns:1fr 1fr;row-gap:1rem}.-esm-appointments__appointment-details__historyGridLabel___plUVB{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);color:#525252}.-esm-appointments__appointment-details__historyGridCount___2M9hr{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0);margin-top:.125rem;color:#0f62fe}.-esm-appointments__appointment-details__historyGridCountRed___fm2L\\+{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0);margin-top:.125rem;color:#da1e28}",""]),i.locals={appointmentDetailsContainer:"-esm-appointments__appointment-details__appointmentDetailsContainer___rTSFk",title:"-esm-appointments__appointment-details__title___qvJe9",subTitle:"-esm-appointments__appointment-details__subTitle___kfZyw",tags:"-esm-appointments__appointment-details__tags___rBzn4",patientInfoGrid:"-esm-appointments__appointment-details__patientInfoGrid___FawDC",gridTitle:"-esm-appointments__appointment-details__gridTitle___zXkda",label:"-esm-appointments__appointment-details__label___BKxKI",historyGrid:"-esm-appointments__appointment-details__historyGrid___V6zdw",historyGridLabel:"-esm-appointments__appointment-details__historyGridLabel___plUVB",historyGridCount:"-esm-appointments__appointment-details__historyGridCount___2M9hr",historyGridCountRed:"-esm-appointments__appointment-details__historyGridCountRed___fm2L+"};const r=i},5735:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(2609),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".-esm-appointments__appointments-base-table__appointmentBaseTable___E4Ad3 td>div{height:fit-content;max-height:none !important}.-esm-appointments__appointments-base-table__addAppointmentButton___QPLib{min-height:2rem;margin-left:82%;right:0;margin-top:2em;height:2rem;min-height:0}",""]),i.locals={appointmentBaseTable:"-esm-appointments__appointments-base-table__appointmentBaseTable___E4Ad3",addAppointmentButton:"-esm-appointments__appointments-base-table__addAppointmentButton___QPLib"};const r=i},8472:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(2609),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__empty-state__content___YmT3T{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-appointments__empty-state__desktopHeading___9ravb h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__empty-state__tabletHeading___SHY\\+Z h4{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:#525252}.-esm-appointments__empty-state__desktopHeading___9ravb,.-esm-appointments__empty-state__tabletHeading___SHY\\+Z{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__empty-state__desktopHeading___9ravb h4:after,.-esm-appointments__empty-state__tabletHeading___SHY\\+Z h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__heading___XX-Rc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__tile___wbKcN{text-align:center;border:1px solid #e0e0e0;margin:2rem 1rem}.-esm-appointments__empty-state__actionText___x06gb{display:flex;align-items:center}',""]),i.locals={content:"-esm-appointments__empty-state__content___YmT3T",desktopHeading:"-esm-appointments__empty-state__desktopHeading___9ravb",tabletHeading:"-esm-appointments__empty-state__tabletHeading___SHY+Z",heading:"-esm-appointments__empty-state__heading___XX-Rc",tile:"-esm-appointments__empty-state__tile___wbKcN",actionText:"-esm-appointments__empty-state__actionText___x06gb"};const r=i},1961:(e,t,n)=>{n.d(t,{Z:()=>U});var a=n(268),i=n.n(a),r=n(4924),l=n(4741),o=n(1723),s=n(5320),p=n(1948),m=n(906),c=n(7384),d=n(6759),_=n(6062),g=n.n(_),u=n(4036),h=n.n(u),f=n(6793),v=n.n(f),b=n(7892),y=n.n(b),E=n(1173),T=n.n(E),w=n(2464),C=n.n(w),A=n(9698),x={};x.styleTagTransform=C(),x.setAttributes=y(),x.insert=v().bind(null,"head"),x.domAPI=h(),x.insertStyleElement=T(),g()(A.Z,x);const z=A.Z&&A.Z.locals?A.Z.locals:void 0;var N=n(9984),k=n(8879),L=n.n(k),H=n(1427);const Z=function(e){var t,n,a,l,o,s,c,d,_,g,u,h,f,v,b=e.appointment,y=(0,r.useTranslation)().t,E=(t=b.patientUuid,n=new AbortController,d="/ws/rest/v1/appointments/search",_=(0,H.zF)(),g=(0,N.ZP)(d,(function(){return(0,m.openmrsFetch)(d,{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:t,startDate:_}})})),u=g.data,h=g.error,f=g.isLoading,v=g.isValidating,{appointmentsCount:{missedAppointments:(null==u||null===(a=u.data)||void 0===a?void 0:a.length)?u.data.filter((function(e){return"Missed"===e.status})).length:0,completedAppointments:(null==u||null===(l=u.data)||void 0===l?void 0:l.length)?u.data.filter((function(e){return"Completed"===e.status})).length:0,cancelledAppointments:(null==u||null===(o=u.data)||void 0===o?void 0:o.length)?u.data.filter((function(e){return"Cancelled"===e.status})).length:0,upcomingAppointments:(null==u||null===(s=u.data)||void 0===s?void 0:s.length)?null===(c=u.data)||void 0===c?void 0:c.filter((function(e){return L()(e.startDateTime/1e3*1e3).isAfter(L()())})).length:0},isError:h,isLoading:f,isValidating:v}).appointmentsCount;return i().createElement("div",{className:z.appointmentDetailsContainer},i().createElement("p",{className:z.title},b.serviceType),i().createElement("p",{className:z.subTitle},(0,m.formatDate)(new Date(b.dateTime))),i().createElement("div",{className:z.tags},i().createElement(p.Vp9,{type:"red",title:b.appointmentKind},b.appointmentKind)),i().createElement("div",{className:z.patientInfoGrid},i().createElement("div",null,i().createElement("p",{className:z.gridTitle},y("patientDetails","Patient details")),i().createElement("p",{className:z.label},b.name),i().createElement("p",{className:z.label},b.age),i().createElement("p",{className:z.label},b.gender),i().createElement("p",{className:z.label},b.dob),i().createElement("p",{className:z.label},b.phoneNumber)),i().createElement("div",null,i().createElement("p",{className:z.gridTitle},y("appointmentNotes","Appointment Notes")),i().createElement("p",{className:z.label},b.comments)),i().createElement("div",null,i().createElement("p",{className:z.gridTitle},y("appointmentHistory","Appointment History")),i().createElement("div",{className:z.historyGrid},i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("completed","Completed")),i().createElement("span",{className:z.historyGridCount},E.completedAppointments)),i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("missed","Missed")),i().createElement("span",{className:z.historyGridCountRed},E.missedAppointments)),i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("cancelled","Cancelled")),i().createElement("span",{className:z.historyGridCount},E.cancelledAppointments)),i().createElement("div",null,i().createElement("p",{className:z.historyGridLabel},y("upcomming","Upcoming")),i().createElement("span",{className:z.historyGridCount},E.upcomingAppointments))))))};var S=n(5735),F={};F.styleTagTransform=C(),F.setAttributes=y(),F.insert=v().bind(null,"head"),F.domAPI=h(),F.insertStyleElement=T(),g()(S.Z,F);const I=S.Z&&S.Z.locals?S.Z.locals:void 0;var D=function(e){var t=e.rowIds,n=e.headers,a=e.cellsById,i=e.inputValue,r=e.getCellId;return t.filter((function(e){return n.some((function(t){var n=t.key,l=r(e,n),o=a[l].value,s=i.toLowerCase();return"boolean"!=typeof o&&(o.hasOwnProperty("content")?Array.isArray(o.content.props.children)?(""+o.content.props.children[1]).toLowerCase().includes(s):"object"==typeof o.content.props.children?(""+o.content.props.children.props.children).toLowerCase().includes(s):(""+o.content.props.children).toLowerCase().includes(s):(""+o).toLowerCase().includes(s))}))}))},G=n(2186),P=n(9405),B=n(6824),M=n.n(B),V=n(264),R=n.n(V);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)}L().extend(R()),L().extend(M());const U=function(e){var t,n,_,g=e.appointments,u=e.isLoading,h=e.tableHeading,f=(e.mutate,(0,r.useTranslation)().t),v=(0,m.usePagination)(g,10),b=v.results,y=v.goTo,E=v.currentPage,T=[{header:f("patientName","Patient name"),key:"patientName"},{header:f("identifier","identifier"),key:"identifier"},{header:f("dateTime","Date & Time"),key:"dateTime"},{header:f("serviceType","Service Type"),key:"serviceType"},{header:f("actions","Actions"),key:"actions"}],w=null==b?void 0:b.map((function(e,t){return{id:"".concat(t),patientName:{content:i().createElement(m.ConfigurableLink,{style:{textDecoration:"none"},to:"${openmrsSpaBase}/patient/".concat(e.patientUuid,"/chart")},e.name)},identifier:e.identifier,dateTime:(0,m.formatDatetime)(new Date(e.dateTime)),serviceType:e.serviceType,provider:e.provider,actions:i().createElement(i().Fragment,null,(L()(e.dateTime).isAfter(L()())||L()(e.dateTime).isToday())&&i().createElement(p.PQB,{size:"sm",flipped:!0},i().createElement(p.laM,{itemText:f("editAppointments","Edit Appointment"),onClick:function(){return(0,o.I8)(f("editAppointments","Edit Appointment"),i().createElement(G.Z,{appointment:e,context:"editing"}))}}),i().createElement(p.laM,{itemText:f("cancelAppointment","Cancel appointment"),onClick:function(){return(0,o.I8)(f("cancelAppointment","Cancel appointment"),i().createElement(P.Z,{appointment:e}))}})))}})),C=(0,a.useMemo)((function(){var e,t=Math.ceil(g.length/10);return(e=Array(t).keys(),function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||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)||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.")}()).map((function(e){return 10*(e+1)}))}),[g]);return u?i().createElement(p.gqd,{role:"progressbar",row:5}):(null==g?void 0:g.length)?i().createElement("div",{className:I.appointmentBaseTable},i().createElement("div",{className:I.addAppointmentButton},i().createElement(m.ExtensionSlot,{extensionSlotName:"patient-search-button-slot",state:{selectPatientAction:function(e){(0,o.Km)(),(0,o.I8)(f("appointmentForm","Create Appointment"),i().createElement(G.Z,{patientUuid:e,context:"creating"}))},buttonText:f("createNewAppointment","Create new appointment"),overlayHeader:f("createNewAppointment","Create new appointment"),buttonProps:{kind:"secondary",size:"sm",renderIcon:function(e){return i().createElement(d.mm,K({size:20},e))}}}})),i().createElement(p.wQF,{rows:w,headers:T,isSortable:!0,filterRows:D},(function(e){var a=e.rows,r=e.headers,l=e.getHeaderProps,o=e.getRowProps,s=e.getTableProps,m=(e.getBatchActionProps,e.onInputChange);return i().createElement(p.xJi,{title:"".concat((0,c.Z)(h)," ").concat(f("appointments","appointment")," ").concat(null!==(t=g.length)&&void 0!==t?t:0)},i().createElement(p.fjU,null,i().createElement(p.Vj0,null,i().createElement(p.Ys1,{style:{backgroundColor:"#f4f4f4"},tabIndex:0,onChange:m}))),i().createElement(p.iA_,K({},s(),{size:"sm",useZebraStyles:!0}),i().createElement(p.ssF,null,i().createElement(p.SCH,null,i().createElement(p.MOD,null),r.map((function(e){return i().createElement(p.xDH,K({},l({header:e})),e.header)})))),i().createElement(p.RMI,null,a.map((function(e,t){return i().createElement(i().Fragment,{key:e.id},i().createElement(p.RcE,K({},o({row:e})),e.cells.map((function(e){var t;return i().createElement(p.pj1,{className:"cds--table-column-menu",key:e.id},null!==(n=null===(t=e.value)||void 0===t?void 0:t.content)&&void 0!==n?n:e.value)}))),e.isExpanded&&i().createElement(p.WdL,{colSpan:r.length+1},i().createElement(Z,{appointment:b[t]})))})))))})),i().createElement(p.tlE,{backwardText:"Previous page",forwardText:"Next page",itemsPerPageText:"Items per page:",page:E,pageNumberText:"Page Number",pageSize:10,onChange:function(e){var t=e.page;return y(t)},pageSizes:C,totalItems:null!==(_=g.length)&&void 0!==_?_:0})):i().createElement(l.u,{headerTitle:"".concat(h," appointments"),displayText:"".concat(h," appointments"),launchForm:function(){return(0,o.I8)(f("search","Search"),i().createElement(s.Z,null))}})}},6306:(e,t,n)=>{n.d(t,{z:()=>o});var a=n(268),i=n(9984),r=n(906),l=n(1427);function o(e){var t,n=(0,l.zF)(),o="/ws/rest/v1/appointment/appointmentStatus?forDate=".concat(n,"&status=").concat(e),s="/ws/rest/v1/appointment/all?forDate=".concat(n),p=(0,i.ZP)(e?s:o,r.openmrsFetch),m=p.data,c=p.error,d=p.isLoading,_=p.isValidating,g=p.mutate,u=(0,a.useMemo)((function(){var e;return null!==(t=null==m||null===(e=m.data)||void 0===e?void 0:e.map((function(e){return(0,l.ny)(e)})))&&void 0!==t?t:[]}),[null==m?void 0:m.data]);return{appointments:u,isLoading:d,isError:c,isValidating:_,mutate:g}}},4741:(e,t,n)=>{n.d(t,{u:()=>A});var a=n(268),i=n.n(a),r=n(1948),l=n(4924),o=function(e){var t=e.width,n=void 0===t?"64":t,a=e.height,r=void 0===a?"64":a;return i().createElement("svg",{width:n,height:r,viewBox:"0 0 64 64"},i().createElement("title",null,"Empty data illustration"),i().createElement("g",{fill:"none",fillRule:"evenodd"},i().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),i().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),i().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),i().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},s=n(906),p=n(6062),m=n.n(p),c=n(4036),d=n.n(c),_=n(6793),g=n.n(_),u=n(7892),h=n.n(u),f=n(1173),v=n.n(f),b=n(2464),y=n.n(b),E=n(8472),T={};T.styleTagTransform=y(),T.setAttributes=h(),T.insert=g().bind(null,"head"),T.domAPI=d(),T.insertStyleElement=v(),m()(E.Z,T);const w=E.Z&&E.Z.locals?E.Z.locals:void 0;var C=n(6759),A=function(e){var t=e.headerTitle,n=e.displayText,a=e.launchForm,p=(0,l.useTranslation)().t,m="tablet"===(0,s.useLayoutType)();return i().createElement(r.mh4,null,i().createElement(r.n9L,{className:w.tile},i().createElement("div",{className:m?w.tabletHeading:w.desktopHeading},i().createElement("h4",null,t)),i().createElement(o,null),i().createElement("p",{className:w.content},i().createElement(l.Trans,{i18nKey:"emptyStateText",values:{displayText:n.toLowerCase()}},"There are no ",n.toLowerCase()," to display")),i().createElement("p",{className:w.action},a&&i().createElement("span",null,i().createElement(r.zxk,{renderIcon:C.mm,kind:"ghost",onClick:function(){return a()}},p("createAppointment","Create appointment"))))))}}}]);