@openmrs/esm-appointments-app 8.5.1-pre.6083 → 8.5.1-pre.6084

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/9712.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[9712],{19862:(t,e,n)=>{"use strict";n.d(e,{Fy:()=>m,KQ:()=>f,RA:()=>h,q4:()=>d,wQ:()=>v});var r=n(1343),o=n(23464),a=n.n(o),i=n(85602),s=n.n(i),u=n(71123),l=n(38254);function c(t,e,n,r,o,a,i){try{var s=t[a](i),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}a().extend(s());var p="".concat(l.restBaseUrl,"/appointment");function d(){var t=(0,u.iX)().mutate;return{mutateAppointments:(0,r.useCallback)(function(){return t(function(t){return"string"==typeof t&&t.startsWith(p)||Array.isArray(t)&&t[0].startsWith(p)})},[t])}}function f(){var t=(0,u.Ay)("".concat(l.restBaseUrl,"/appointmentService/all/full"),l.openmrsFetch),e=t.data,n=t.error,r=t.isLoading;return{data:e?e.data:null,error:n,isLoading:r}}function m(t,e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/appointment"),{method:"POST",signal:e.signal,headers:{"Content-Type":"application/json"},body:t})}function h(t,e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/recurring-appointments"),{method:"POST",signal:e.signal,headers:{"Content-Type":"application/json"},body:t})}"".concat(l.restBaseUrl,"/appointments/search");var v=function(t){return(e=function(){return function(t,e){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(e){switch(e.label){case 0:return[4,(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/appointments/conflicts"),{method:"POST",body:{patientUuid:t.patientUuid,serviceUuid:t.serviceUuid,startDateTime:t.startDateTime,endDateTime:t.endDateTime,providers:[],locationUuid:t.locationUuid,appointmentKind:t.appointmentKind},headers:{"Content-Type":"application/json"}})];case 1:return[2,e.sent()]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(t){c(a,r,o,i,s,"next",t)}function s(t){c(a,r,o,i,s,"throw",t)}i(void 0)})})();var e}},30493:(t,e,n)=>{"use strict";n.d(e,{D:()=>p,y:()=>d});var r=n(23464),o=n.n(r),a=n(71123),i=n(38254),s=n(85602),u=n.n(s);function l(t,e,n,r,o,a,i){try{var s=t[a](i),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}o().extend(u());var c="".concat(i.restBaseUrl,"/appointments/search");function p(t,e,n){var r,s,u,l,p,d,f,m=(0,a.Ay)(c,function(){return(0,i.openmrsFetch)(c,{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:t,startDate:e}})}),h=m.data,v=m.error,y=m.isLoading,b=m.isValidating,w=m.mutate,g=(null==h||null===(r=h.data)||void 0===r?void 0:r.length)?h.data:null,k=null==g||null===(u=g.sort(function(t,e){return e.startDateTime>t.startDateTime?1:-1}))||void 0===u||null===(s=u.filter(function(t){return"Cancelled"!==t.status}))||void 0===s?void 0:s.filter(function(t){var e=t.startDateTime;return o()(new Date(e).toISOString()).isBefore((new Date).setHours(0,0,0,0))}),T=null==g||null===(p=g.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||void 0===p||null===(l=p.filter(function(t){return"Cancelled"!==t.status}))||void 0===l?void 0:l.filter(function(t){var e=t.startDateTime;return o()(new Date(e).toISOString()).isAfter(new Date)}),C=null==g||null===(f=g.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||void 0===f||null===(d=f.filter(function(t){return"Cancelled"!==t.status}))||void 0===d?void 0:d.filter(function(t){var e=t.startDateTime;return o()(new Date(e).toISOString()).isToday()});return{data:h?{pastAppointments:k,upcomingAppointments:T,todaysAppointments:C}:null,error:v,isLoading:y,isValidating:b,mutate:w}}var d=function(t,e){return(n=function(){var n,r,a;return function(t,e){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(s){switch(s.label){case 0:return n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=o()(new Date).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"),a="".concat(i.restBaseUrl,"/appointments/").concat(e,"/status-change"),[4,(0,i.openmrsFetch)(a,{body:{toStatus:t,onDate:r,timeZone:n},method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return[2,s.sent()]}})},function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function i(t){l(a,r,o,i,s,"next",t)}function s(t){l(a,r,o,i,s,"throw",t)}i(void 0)})})();var n}},79712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(1343),o=n.n(r),a=n(93150),i=n(56766),s=n(38254),u=n(30493),l=n(19862);const c=function(t){var e=t.patientUuid,n=t.appointmentUuid,c=t.closeModal,p=(0,a.useTranslation)().t,d=(0,s.useVisit)(e),f=d.activeVisit,m=d.mutate,h=(0,l.q4)().mutateAppointments,v=(0,r.useCallback)(function(){(0,u.y)("Completed",n).then(function(){if(h(),f){var t=new AbortController,e={stopDatetime:new Date};return(0,s.updateVisit)(f.uuid,e,t).then(function(){(0,s.showSnackbar)({title:p("appointmentEnded","Appointment ended"),subtitle:p("appointmentEndedAndVisitClosedSuccessfully","Appointment successfully ended and visit successfully closed"),isLowContrast:!0,kind:"success"}),m()}).catch(function(t){(0,s.showSnackbar)({title:p("appointmentEndedButVisitNotClosedError","Appointment ended successfully, but there was an error closing the visit."),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})})}(0,s.showSnackbar)({title:p("appointmentEnded","Appointment ended"),subtitle:p("appointmentEndedSuccessfully","Appointment successfully ended."),isLowContrast:!0,kind:"success"})}).catch(function(t){(0,s.showSnackbar)({title:p("appointmentEndError","Error ending appointment"),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})}).finally(function(){c()})},[f,n,c,m,h,p]);return o().createElement(o().Fragment,null,o().createElement(i.rQ0,{closeModal:c,title:p("endAppointmentConfirmation","Are you sure you want to check the patient out for this appointment?")}),o().createElement(i.cwr,null,o().createElement("p",null,f?p("endAppointmentAndVisitConfirmationMessage","Checking the patient out will mark the appointment as complete and close out the active visit for this patient."):p("endAppointmentConfirmationMessage","Checking the patient out will mark the appointment as complete."))),o().createElement(i.jlY,null,o().createElement(i.$nd,{kind:"secondary",onClick:c},p("cancel","Cancel")),o().createElement(i.$nd,{kind:"danger",onClick:v},p("checkOut","Check out"))))}},85602:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=n();return this.format(t)===e.format(t)}}}()}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[9712],{19862:(t,e,n)=>{"use strict";n.d(e,{Fy:()=>m,KQ:()=>f,RA:()=>h,q4:()=>d,wQ:()=>v});var r=n(1343),o=n(23464),a=n.n(o),i=n(85602),s=n.n(i),u=n(71123),l=n(38254);function c(t,e,n,r,o,a,i){try{var s=t[a](i),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}a().extend(s());var p="".concat(l.restBaseUrl,"/appointment");function d(){var t=(0,u.iX)().mutate;return{mutateAppointments:(0,r.useCallback)(function(){return t(function(t){return"string"==typeof t&&t.startsWith(p)||Array.isArray(t)&&t[0].startsWith(p)})},[t])}}function f(){var t=(0,u.Ay)("".concat(l.restBaseUrl,"/appointmentService/all/full"),l.openmrsFetch),e=t.data,n=t.error,r=t.isLoading;return{data:e?e.data:null,error:n,isLoading:r}}function m(t,e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/appointment"),{method:"POST",signal:e.signal,headers:{"Content-Type":"application/json"},body:t})}function h(t,e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/recurring-appointments"),{method:"POST",signal:e.signal,headers:{"Content-Type":"application/json"},body:t})}"".concat(l.restBaseUrl,"/appointments/search");var v=function(t){return(e=function(){return function(t,e){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(e){switch(e.label){case 0:return[4,(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/appointments/conflicts"),{method:"POST",body:{patientUuid:t.patientUuid,serviceUuid:t.serviceUuid,startDateTime:t.startDateTime,endDateTime:t.endDateTime,providers:[],locationUuid:t.locationUuid,appointmentKind:t.appointmentKind},headers:{"Content-Type":"application/json"}})];case 1:return[2,e.sent()]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(t){c(a,r,o,i,s,"next",t)}function s(t){c(a,r,o,i,s,"throw",t)}i(void 0)})})();var e}},30493:(t,e,n)=>{"use strict";n.d(e,{D:()=>p,y:()=>d});var r=n(23464),o=n.n(r),a=n(71123),i=n(38254),s=n(85602),u=n.n(s);function l(t,e,n,r,o,a,i){try{var s=t[a](i),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}o().extend(u());var c="".concat(i.restBaseUrl,"/appointments/search");function p(t,e,n){var r,s,u,l,p,d,f,m=(0,a.Ay)(c,function(){return(0,i.openmrsFetch)(c,{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:t,startDate:e}})}),h=m.data,v=m.error,y=m.isLoading,b=m.isValidating,w=m.mutate,g=(null==h||null===(r=h.data)||void 0===r?void 0:r.length)?h.data:null,k=null==g||null===(u=g.sort(function(t,e){return e.startDateTime>t.startDateTime?1:-1}))||void 0===u||null===(s=u.filter(function(t){return"Cancelled"!==t.status}))||void 0===s?void 0:s.filter(function(t){var e=t.startDateTime;return o()(new Date(e).toISOString()).isBefore((new Date).setHours(0,0,0,0))}),T=null==g||null===(p=g.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||void 0===p||null===(l=p.filter(function(t){return"Cancelled"!==t.status}))||void 0===l?void 0:l.filter(function(t){var e=t.startDateTime;return o()(new Date(e).toISOString()).isAfter(new Date)}),C=null==g||null===(f=g.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||void 0===f||null===(d=f.filter(function(t){return"Cancelled"!==t.status}))||void 0===d?void 0:d.filter(function(t){var e=t.startDateTime;return o()(new Date(e).toISOString()).isToday()});return{data:h?{pastAppointments:k,upcomingAppointments:T,todaysAppointments:C}:null,error:v,isLoading:y,isValidating:b,mutate:w}}var d=function(t,e){return(n=function(){var n,r,a;return function(t,e){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(s){switch(s.label){case 0:return n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=o()(new Date).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"),a="".concat(i.restBaseUrl,"/appointments/").concat(e,"/status-change"),[4,(0,i.openmrsFetch)(a,{body:{toStatus:t,onDate:r,timeZone:n},method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return[2,s.sent()]}})},function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function i(t){l(a,r,o,i,s,"next",t)}function s(t){l(a,r,o,i,s,"throw",t)}i(void 0)})})();var n}},79712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(1343),o=n.n(r),a=n(93150),i=n(93689),s=n(38254),u=n(30493),l=n(19862);const c=function(t){var e=t.patientUuid,n=t.appointmentUuid,c=t.closeModal,p=(0,a.useTranslation)().t,d=(0,s.useVisit)(e),f=d.activeVisit,m=d.mutate,h=(0,l.q4)().mutateAppointments,v=(0,r.useCallback)(function(){(0,u.y)("Completed",n).then(function(){if(h(),f){var t=new AbortController,e={stopDatetime:new Date};return(0,s.updateVisit)(f.uuid,e,t).then(function(){(0,s.showSnackbar)({title:p("appointmentEnded","Appointment ended"),subtitle:p("appointmentEndedAndVisitClosedSuccessfully","Appointment successfully ended and visit successfully closed"),isLowContrast:!0,kind:"success"}),m()}).catch(function(t){(0,s.showSnackbar)({title:p("appointmentEndedButVisitNotClosedError","Appointment ended successfully, but there was an error closing the visit."),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})})}(0,s.showSnackbar)({title:p("appointmentEnded","Appointment ended"),subtitle:p("appointmentEndedSuccessfully","Appointment successfully ended."),isLowContrast:!0,kind:"success"})}).catch(function(t){(0,s.showSnackbar)({title:p("appointmentEndError","Error ending appointment"),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})}).finally(function(){c()})},[f,n,c,m,h,p]);return o().createElement(o().Fragment,null,o().createElement(i.rQ0,{closeModal:c,title:p("endAppointmentConfirmation","Are you sure you want to check the patient out for this appointment?")}),o().createElement(i.cwr,null,o().createElement("p",null,f?p("endAppointmentAndVisitConfirmationMessage","Checking the patient out will mark the appointment as complete and close out the active visit for this patient."):p("endAppointmentConfirmationMessage","Checking the patient out will mark the appointment as complete."))),o().createElement(i.jlY,null,o().createElement(i.$nd,{kind:"secondary",onClick:c},p("cancel","Cancel")),o().createElement(i.$nd,{kind:"danger",onClick:v},p("checkOut","Check out"))))}},85602:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=n();return this.format(t)===e.format(t)}}}()}}]);
package/dist/main.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see main.js.LICENSE.txt */
2
- (()=>{var e,t,n,r,o={9247:(e,t,n)=>{"use strict";function r(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>h});var s=["width","height","viewBox"],l=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(39067),p=n.n(u),f=n(1343),d=n.n(f);const h=d().forwardRef(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},p){const{tabindex:f,...h}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=a(e,s),p=u.tabindex,f=a(u,l),d=i(i(i({},c),f),{},{width:t,height:n,viewBox:o});return d["aria-label"]||d["aria-labelledby"]||d.title?(d.role="img",null!=p&&(d.focusable="true",d.tabindex=p)):d["aria-hidden"]=!0,d}({...u,tabindex:n}),y=h;return e&&(y.className=e),null!=f&&(y.tabIndex="number"==typeof f?f:Number(n)),p&&(y.ref=p),r&&(y.xmlns=r),o&&(y.preserveAspectRatio=o),d().createElement("svg",y,t)});h.displayName="Icon",h.propTypes={"aria-hidden":p().oneOfType([p().bool,p().oneOf(["true","false"])]),"aria-label":p().string,"aria-labelledby":p().string,children:p().node,className:p().string,height:p().oneOfType([p().number,p().string]),preserveAspectRatio:p().string,tabIndex:p().oneOfType([p().number,p().string]),viewBox:p().string,width:p().oneOfType([p().number,p().string]),xmlns:p().string}},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,t,n)=>{"use strict";var r=n(36848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},39067:(e,t,n)=>{e.exports=n(36999)()},47698:(e,t,n)=>{"use strict";var r=n(38254),o=(n(95008),n(1343)),i=n.n(o),a=n(53373),s=n.n(a),l=n(8877),c=n(93150);function u(e){var t=e.dashboardLinkConfig,n=(0,c.useTranslation)().t,a=t.name,u=(0,l.useLocation)(),p="".concat(window.spaBase,"/home"),f=(0,o.useMemo)(function(){var e=u.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)},[u.pathname]);return i().createElement(r.ConfigurableLink,{className:s()("cds--side-nav__link",{"active-left-nav-link":f.match(a)}),to:"".concat(p,"/").concat(a)},n("appointments","Appointments"))}var p=function(e){return function(){return i().createElement(l.BrowserRouter,null,i().createElement(u,{dashboardLinkConfig:e}))}},f={name:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments Calendar",renderIcon:n(49007).Vv},d={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"Appointments",icon:"omrs-icon-event-schedule"};function h(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){y(e,t,n[t])})}return e}r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean;var b="@openmrs/esm-appointments-app",g={featureName:"appointments",moduleName:b};n(84767),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(1559),n.e(4863),n.e(5434),n.e(8241),n.e(5160),n.e(6364),n.e(3092),n.e(1431),n.e(592)]).then(n.bind(n,70592))},g),(0,r.getSyncLifecycle)(p({name:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments"}),g),(0,r.getSyncLifecycle)(p(f),g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(1559),n.e(4863),n.e(5434),n.e(8241),n.e(5160),n.e(1431)]).then(n.bind(n,81431))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(1559),n.e(5434),n.e(8241),n.e(5160),n.e(525),n.e(849)]).then(n.bind(n,50849))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(1559),n.e(5434),n.e(8241),n.e(5160),n.e(525),n.e(6931)]).then(n.bind(n,86931))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(1559),n.e(5434),n.e(8241),n.e(5160),n.e(525),n.e(6112)]).then(n.bind(n,16112))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(5755),n.e(4599)]).then(n.bind(n,94599))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(5755),n.e(6467)]).then(n.bind(n,76467))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(5755),n.e(8784)]).then(n.bind(n,68784))},g),(0,r.getAsyncLifecycle)(function(){return n.e(7026).then(n.bind(n,47026))},g),(0,r.getAsyncLifecycle)(function(){return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(6364).then(n.t.bind(n,76364,23))];case 1:return[2,{default:e.sent().createDashboardLink((t=m({},d),r={moduleName:b},r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}]}var t,r})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)})})();var e},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(5434),n.e(8241),n.e(6364),n.e(3092),n.e(7565)]).then(n.bind(n,73098))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(5434),n.e(8241),n.e(6364),n.e(3092),n.e(4733)]).then(n.bind(n,77800))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(5434),n.e(8241),n.e(6364),n.e(4745)]).then(n.bind(n,34745))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(5434),n.e(8241),n.e(3431)]).then(n.bind(n,73431))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(7420),n.e(5434),n.e(8241),n.e(4889)]).then(n.bind(n,74889))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(5434),n.e(8241),n.e(9712)]).then(n.bind(n,79712))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(6766),n.e(5434),n.e(8241),n.e(3167)]).then(n.bind(n,13167))},g)},49007:(e,t,n)=>{"use strict";n.d(t,{BK:()=>l,Vv:()=>c});var r,o,i=n(1343),a=n.n(i),s=n(9247);const l=a().forwardRef(function({children:e,size:t=16,...n},o){return a().createElement(s.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=a().createElement("path",{d:"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z"})),e)}),c=a().forwardRef(function({children:e,size:t=16,...n},r){return a().createElement(s.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=a().createElement("path",{d:"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"})),e)})},53373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},84767:(e,t,n)=>{var r={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function o(e){if(!n.o(r,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=84767,e.exports=o},95008:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(38254),o={allowAllDayAppointments:{_type:r.Type.Boolean,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)",_default:!1},appointmentStatuses:{_type:r.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},appointmentTypes:{_type:r.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},checkInButton:{enabled:{_type:r.Type.Boolean,_description:'Whether the check-in button on the "Appointments" list should be enabled',_default:!0},showIfActiveVisit:{_type:r.Type.Boolean,_description:"Whether to show the check-in button if the patient currently has an active visit",_default:!1},customUrl:{_type:r.Type.String,_description:"Custom URL to open when clicking the check-in button (instead of thes start visit form)",_default:""}},checkOutButton:{enabled:{_type:r.Type.Boolean,_description:'Whether the check-out button on the "Appointments" list should be disabled',_default:!0},customUrl:{_type:r.Type.String,_description:"Custom URL to open when clicking the check-out button",_default:""}},customPatientChartUrl:{_type:r.Type.String,_description:"Template URL that will be used when clicking on the patient name in the queues table.\n Available argument: patientUuid, openmrsSpaBase, openBase\n (openmrsSpaBase and openBase are available to any <ConfigurableLink>)",_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_validators:[r.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:r.Type.Boolean,_description:"Whether to include phone numbers in the exported Excel spreadsheet",_default:!1},patientIdentifierType:{_type:r.Type.String,_description:"The name of the patient identifier type to be used for the patient identifier field",_default:""},showUnscheduledAppointmentsTab:{_type:r.Type.Boolean,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available",_default:!1}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.c=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@openmrs/esm-appointments-app:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{a.S={};var e={},t={};a.I=(n,r)=>{r||(r=[]);var o=t[n];if(o||(o=t[n]={}),!(r.indexOf(o)>=0)){if(r.push(o),e[n])return e[n];a.o(a.S,n)||(a.S[n]={});var i=a.S[n],s="@openmrs/esm-appointments-app",l=(e,t,n,r)=>{var o=i[e]=i[e]||{},a=o[t];(!a||!a.loaded&&(!r!=!a.eager?r:s>a.from))&&(o[t]={get:n,from:s,eager:!!r})},c=[];return"default"===n&&(l("@openmrs/esm-framework","6.3.1-pre.3218",()=>Promise.all([a.e(66),a.e(6766),a.e(3379),a.e(9224),a.e(4275),a.e(5813),a.e(5434),a.e(8241),a.e(1343),a.e(4569),a.e(6255)]).then(()=>()=>a(95813))),l("@openmrs/esm-patient-common-lib","10.2.1-pre.8362",()=>Promise.all([a.e(66),a.e(6766),a.e(3379),a.e(9224),a.e(4275),a.e(3732),a.e(5434),a.e(8241),a.e(1343),a.e(4569),a.e(6255)]).then(()=>()=>a(83732))),l("react-dom","18.3.1",()=>Promise.all([a.e(3144),a.e(1343)]).then(()=>()=>a(43144))),l("react-i18next","11.18.6",()=>Promise.all([a.e(2537),a.e(1343)]).then(()=>()=>a(72537))),l("react-router-dom","6.30.1",()=>Promise.all([a.e(2913),a.e(8241),a.e(1343)]).then(()=>()=>a(52913))),l("react","18.3.1",()=>a.e(4041).then(()=>()=>a(14041))),l("swr/_internal","2.2.5",()=>Promise.all([a.e(2372),a.e(1343)]).then(()=>()=>a(42372))),l("swr/immutable","2.2.5",()=>Promise.all([a.e(5434),a.e(1343),a.e(7495)]).then(()=>()=>a(29876))),l("swr/infinite","2.2.5",()=>Promise.all([a.e(5434),a.e(1343),a.e(89)]).then(()=>()=>a(52470)))),e[n]=c.length?Promise.all(c).then(()=>e[n]=1):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e=e=>{var t=e=>e.split(".").map(e=>+e==e?+e:e),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<e.length;i++)o--,r+="u"==(typeof(s=e[i]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var a=[];for(i=1;i<e.length;i++){var s=e[i];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():t(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],i=o<0;i&&(o=-o-1);for(var a=0,s=1,l=!0;;s++,a++){var c,u,p=s<t.length?(typeof t[s])[0]:"";if(a>=r.length||"o"==(u=(typeof(c=r[a]))[0]))return!l||("u"==p?s>o&&!i:""==p!=i);if("u"==u){if(!l||"u"!=p)return!1}else if(l)if(p==u)if(s<=o){if(c!=t[s])return!1}else{if(i?c>t[s]:c<t[s])return!1;c!=t[s]&&(l=!1)}else if("s"!=p&&"n"!=p){if(i||s<=o)return!1;l=!1,s--}else{if(s<=o||u<p!=i)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,s--)}}var f=[],d=f.pop.bind(f);for(a=1;a<t.length;a++){var h=t[a];f.push(1==h?d()|d():2==h?d()&d():h?n(h,r):!d())}return!!d()},r=(t,n,r)=>{var o=r?(e=>Object.keys(e).reduce((t,n)=>(e[n].eager&&(t[n]=e[n]),t),{}))(t[n]):t[n];return Object.keys(o).reduce((t,n)=>!t||!o[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var a=n[r],s=(typeof a)[0];if(i!=s)return"o"==i&&"n"==s||"s"==s||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;r++}})(t,n)?n:t,0)},o=(e,t,n)=>n?n():((e,t)=>(e=>{throw new Error(e)})("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),i=(e=>function(t,n,r,o,i){var s=a.I(t);return s&&s.then&&!r?s.then(e.bind(e,t,a.S[t],n,!1,o,i)):e(t,a.S[t],n,r,o,i)})((e,i,s,l,c,u)=>{if(!((e,t)=>e&&a.o(e,t))(i,s))return o(e,s,u);var p,f,d=r(i,s,l);return n(c,d)||(f=((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(i,s,d,c),"undefined"!=typeof console&&console.warn&&console.warn(f)),(p=i[s][d]).loaded=1,p.get()}),s={},l={38254:()=>i("default","@openmrs/esm-framework",!1,[1,6],()=>Promise.all([a.e(66),a.e(6766),a.e(3379),a.e(9224),a.e(5813),a.e(5434),a.e(8241),a.e(4569)]).then(()=>()=>a(95813))),1343:()=>i("default","react",!1,[1,18],()=>a.e(4041).then(()=>()=>a(14041))),8877:()=>i("default","react-router-dom",!1,[1,6],()=>Promise.all([a.e(2913),a.e(8241)]).then(()=>()=>a(52913))),93150:()=>i("default","react-i18next",!1,[1,11],()=>a.e(2537).then(()=>()=>a(72537))),55434:()=>i("default","swr/_internal",!1,[1,2],()=>a.e(2372).then(()=>()=>a(42372))),98241:()=>i("default","react-dom",!1,[1,18],()=>a.e(3144).then(()=>()=>a(43144))),76364:()=>i("default","@openmrs/esm-patient-common-lib",!1,[1,10],()=>Promise.all([a.e(66),a.e(6766),a.e(3379),a.e(9224),a.e(3732),a.e(5434),a.e(8241),a.e(4569)]).then(()=>()=>a(83732))),88010:()=>i("default","swr/immutable",!1,[1,2],()=>a.e(9876).then(()=>()=>a(29876))),98394:()=>i("default","swr/infinite",!1,[1,2],()=>a.e(2470).then(()=>()=>a(52470)))};[38254,1343,8877,93150].forEach(e=>{a.m[e]=t=>{s[e]=0,delete a.c[e];var n=l[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}});var c={1343:[1343],4569:[88010,98394],5434:[55434],6255:[8877,38254,93150],6364:[76364],8241:[98241],8792:[38254,1343,8877,93150]},u={};a.f.consumes=(e,t)=>{a.o(c,e)&&c[e].forEach(e=>{if(a.o(s,e))return t.push(s[e]);if(!u[e]){var n=t=>{s[e]=0,a.m[e]=n=>{delete a.c[e],n.exports=t()}};u[e]=!0;var r=t=>{delete s[e],a.m[e]=n=>{throw delete a.c[e],t}};try{var o=l[e]();o.then?t.push(s[e]=o.then(n).catch(r)):n(o)}catch(e){r(e)}}})}})(),(()=>{var e={1343:0,4275:0,6255:0,7698:0,8792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(1343|4569|5434|6255|6364|8241)$/.test(t))e[t]=0;else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(47698)})();
2
+ (()=>{var e,t,n,r,o={9247:(e,t,n)=>{"use strict";function r(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>h});var s=["width","height","viewBox"],l=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(39067),p=n.n(u),f=n(1343),d=n.n(f);const h=d().forwardRef(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},p){const{tabindex:f,...h}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=a(e,s),p=u.tabindex,f=a(u,l),d=i(i(i({},c),f),{},{width:t,height:n,viewBox:o});return d["aria-label"]||d["aria-labelledby"]||d.title?(d.role="img",null!=p&&(d.focusable="true",d.tabindex=p)):d["aria-hidden"]=!0,d}({...u,tabindex:n}),y=h;return e&&(y.className=e),null!=f&&(y.tabIndex="number"==typeof f?f:Number(n)),p&&(y.ref=p),r&&(y.xmlns=r),o&&(y.preserveAspectRatio=o),d().createElement("svg",y,t)});h.displayName="Icon",h.propTypes={"aria-hidden":p().oneOfType([p().bool,p().oneOf(["true","false"])]),"aria-label":p().string,"aria-labelledby":p().string,children:p().node,className:p().string,height:p().oneOfType([p().number,p().string]),preserveAspectRatio:p().string,tabIndex:p().oneOfType([p().number,p().string]),viewBox:p().string,width:p().oneOfType([p().number,p().string]),xmlns:p().string}},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,t,n)=>{"use strict";var r=n(36848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},39067:(e,t,n)=>{e.exports=n(36999)()},47698:(e,t,n)=>{"use strict";var r=n(38254),o=(n(95008),n(1343)),i=n.n(o),a=n(53373),s=n.n(a),l=n(8877),c=n(93150);function u(e){var t=e.dashboardLinkConfig,n=(0,c.useTranslation)().t,a=t.name,u=(0,l.useLocation)(),p="".concat(window.spaBase,"/home"),f=(0,o.useMemo)(function(){var e=u.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)},[u.pathname]);return i().createElement(r.ConfigurableLink,{className:s()("cds--side-nav__link",{"active-left-nav-link":f.match(a)}),to:"".concat(p,"/").concat(a)},n("appointments","Appointments"))}var p=function(e){return function(){return i().createElement(l.BrowserRouter,null,i().createElement(u,{dashboardLinkConfig:e}))}},f={name:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments Calendar",renderIcon:n(49007).Vv},d={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"Appointments",icon:"omrs-icon-event-schedule"};function h(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){y(e,t,n[t])})}return e}r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean,r.Type.String,r.Type.Boolean,r.Type.Boolean,r.Type.Boolean;var b="@openmrs/esm-appointments-app",g={featureName:"appointments",moduleName:b};n(84767),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(1559),n.e(4863),n.e(5434),n.e(8241),n.e(5160),n.e(6364),n.e(3092),n.e(1431),n.e(592)]).then(n.bind(n,70592))},g),(0,r.getSyncLifecycle)(p({name:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments"}),g),(0,r.getSyncLifecycle)(p(f),g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(1559),n.e(4863),n.e(5434),n.e(8241),n.e(5160),n.e(1431)]).then(n.bind(n,81431))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(1559),n.e(5434),n.e(8241),n.e(5160),n.e(525),n.e(849)]).then(n.bind(n,50849))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(1559),n.e(5434),n.e(8241),n.e(5160),n.e(525),n.e(6931)]).then(n.bind(n,86931))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(1559),n.e(5434),n.e(8241),n.e(5160),n.e(525),n.e(6112)]).then(n.bind(n,16112))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(5755),n.e(4599)]).then(n.bind(n,94599))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(5755),n.e(6467)]).then(n.bind(n,76467))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(5755),n.e(8784)]).then(n.bind(n,68784))},g),(0,r.getAsyncLifecycle)(function(){return n.e(7026).then(n.bind(n,47026))},g),(0,r.getAsyncLifecycle)(function(){return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(6364).then(n.t.bind(n,76364,23))];case 1:return[2,{default:e.sent().createDashboardLink((t=m({},d),r={moduleName:b},r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}]}var t,r})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)})})();var e},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(5434),n.e(8241),n.e(6364),n.e(3092),n.e(7565)]).then(n.bind(n,73098))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(5434),n.e(8241),n.e(6364),n.e(3092),n.e(4733)]).then(n.bind(n,77800))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(5434),n.e(8241),n.e(6364),n.e(4745)]).then(n.bind(n,34745))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(5434),n.e(8241),n.e(3431)]).then(n.bind(n,73431))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(7420),n.e(5434),n.e(8241),n.e(4889)]).then(n.bind(n,74889))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(5434),n.e(8241),n.e(9712)]).then(n.bind(n,79712))},g),(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3689),n.e(5434),n.e(8241),n.e(3167)]).then(n.bind(n,13167))},g)},49007:(e,t,n)=>{"use strict";n.d(t,{BK:()=>l,Vv:()=>c});var r,o,i=n(1343),a=n.n(i),s=n(9247);const l=a().forwardRef(function({children:e,size:t=16,...n},o){return a().createElement(s.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=a().createElement("path",{d:"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z"})),e)}),c=a().forwardRef(function({children:e,size:t=16,...n},r){return a().createElement(s.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=a().createElement("path",{d:"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"})),e)})},53373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},84767:(e,t,n)=>{var r={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function o(e){if(!n.o(r,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=84767,e.exports=o},95008:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(38254),o={allowAllDayAppointments:{_type:r.Type.Boolean,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)",_default:!1},appointmentStatuses:{_type:r.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},appointmentTypes:{_type:r.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},checkInButton:{enabled:{_type:r.Type.Boolean,_description:'Whether the check-in button on the "Appointments" list should be enabled',_default:!0},showIfActiveVisit:{_type:r.Type.Boolean,_description:"Whether to show the check-in button if the patient currently has an active visit",_default:!1},customUrl:{_type:r.Type.String,_description:"Custom URL to open when clicking the check-in button (instead of thes start visit form)",_default:""}},checkOutButton:{enabled:{_type:r.Type.Boolean,_description:'Whether the check-out button on the "Appointments" list should be disabled',_default:!0},customUrl:{_type:r.Type.String,_description:"Custom URL to open when clicking the check-out button",_default:""}},customPatientChartUrl:{_type:r.Type.String,_description:"Template URL that will be used when clicking on the patient name in the queues table.\n Available argument: patientUuid, openmrsSpaBase, openBase\n (openmrsSpaBase and openBase are available to any <ConfigurableLink>)",_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_validators:[r.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:r.Type.Boolean,_description:"Whether to include phone numbers in the exported Excel spreadsheet",_default:!1},patientIdentifierType:{_type:r.Type.String,_description:"The name of the patient identifier type to be used for the patient identifier field",_default:""},showUnscheduledAppointmentsTab:{_type:r.Type.Boolean,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available",_default:!1}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.c=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@openmrs/esm-appointments-app:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{a.S={};var e={},t={};a.I=(n,r)=>{r||(r=[]);var o=t[n];if(o||(o=t[n]={}),!(r.indexOf(o)>=0)){if(r.push(o),e[n])return e[n];a.o(a.S,n)||(a.S[n]={});var i=a.S[n],s="@openmrs/esm-appointments-app",l=(e,t,n,r)=>{var o=i[e]=i[e]||{},a=o[t];(!a||!a.loaded&&(!r!=!a.eager?r:s>a.from))&&(o[t]={get:n,from:s,eager:!!r})},c=[];return"default"===n&&(l("@openmrs/esm-framework","6.3.1-pre.3218",()=>Promise.all([a.e(66),a.e(3689),a.e(3379),a.e(9224),a.e(4275),a.e(5813),a.e(5434),a.e(8241),a.e(1343),a.e(4569),a.e(6255)]).then(()=>()=>a(95813))),l("@openmrs/esm-patient-common-lib","10.2.1-pre.8362",()=>Promise.all([a.e(66),a.e(3689),a.e(3379),a.e(9224),a.e(4275),a.e(3732),a.e(5434),a.e(8241),a.e(1343),a.e(4569),a.e(6255)]).then(()=>()=>a(83732))),l("react-dom","18.3.1",()=>Promise.all([a.e(3144),a.e(1343)]).then(()=>()=>a(43144))),l("react-i18next","11.18.6",()=>Promise.all([a.e(2537),a.e(1343)]).then(()=>()=>a(72537))),l("react-router-dom","6.30.1",()=>Promise.all([a.e(2913),a.e(8241),a.e(1343)]).then(()=>()=>a(52913))),l("react","18.3.1",()=>a.e(4041).then(()=>()=>a(14041))),l("swr/_internal","2.2.5",()=>Promise.all([a.e(2372),a.e(1343)]).then(()=>()=>a(42372))),l("swr/immutable","2.2.5",()=>Promise.all([a.e(5434),a.e(1343),a.e(7495)]).then(()=>()=>a(29876))),l("swr/infinite","2.2.5",()=>Promise.all([a.e(5434),a.e(1343),a.e(89)]).then(()=>()=>a(52470)))),e[n]=c.length?Promise.all(c).then(()=>e[n]=1):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e=e=>{var t=e=>e.split(".").map(e=>+e==e?+e:e),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<e.length;i++)o--,r+="u"==(typeof(s=e[i]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var a=[];for(i=1;i<e.length;i++){var s=e[i];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():t(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],i=o<0;i&&(o=-o-1);for(var a=0,s=1,l=!0;;s++,a++){var c,u,p=s<t.length?(typeof t[s])[0]:"";if(a>=r.length||"o"==(u=(typeof(c=r[a]))[0]))return!l||("u"==p?s>o&&!i:""==p!=i);if("u"==u){if(!l||"u"!=p)return!1}else if(l)if(p==u)if(s<=o){if(c!=t[s])return!1}else{if(i?c>t[s]:c<t[s])return!1;c!=t[s]&&(l=!1)}else if("s"!=p&&"n"!=p){if(i||s<=o)return!1;l=!1,s--}else{if(s<=o||u<p!=i)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,s--)}}var f=[],d=f.pop.bind(f);for(a=1;a<t.length;a++){var h=t[a];f.push(1==h?d()|d():2==h?d()&d():h?n(h,r):!d())}return!!d()},r=(t,n,r)=>{var o=r?(e=>Object.keys(e).reduce((t,n)=>(e[n].eager&&(t[n]=e[n]),t),{}))(t[n]):t[n];return Object.keys(o).reduce((t,n)=>!t||!o[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var a=n[r],s=(typeof a)[0];if(i!=s)return"o"==i&&"n"==s||"s"==s||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;r++}})(t,n)?n:t,0)},o=(e,t,n)=>n?n():((e,t)=>(e=>{throw new Error(e)})("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),i=(e=>function(t,n,r,o,i){var s=a.I(t);return s&&s.then&&!r?s.then(e.bind(e,t,a.S[t],n,!1,o,i)):e(t,a.S[t],n,r,o,i)})((e,i,s,l,c,u)=>{if(!((e,t)=>e&&a.o(e,t))(i,s))return o(e,s,u);var p,f,d=r(i,s,l);return n(c,d)||(f=((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(i,s,d,c),"undefined"!=typeof console&&console.warn&&console.warn(f)),(p=i[s][d]).loaded=1,p.get()}),s={},l={38254:()=>i("default","@openmrs/esm-framework",!1,[1,6],()=>Promise.all([a.e(66),a.e(3689),a.e(3379),a.e(9224),a.e(5813),a.e(5434),a.e(8241),a.e(4569)]).then(()=>()=>a(95813))),1343:()=>i("default","react",!1,[1,18],()=>a.e(4041).then(()=>()=>a(14041))),8877:()=>i("default","react-router-dom",!1,[1,6],()=>Promise.all([a.e(2913),a.e(8241)]).then(()=>()=>a(52913))),93150:()=>i("default","react-i18next",!1,[1,11],()=>a.e(2537).then(()=>()=>a(72537))),55434:()=>i("default","swr/_internal",!1,[1,2],()=>a.e(2372).then(()=>()=>a(42372))),98241:()=>i("default","react-dom",!1,[1,18],()=>a.e(3144).then(()=>()=>a(43144))),76364:()=>i("default","@openmrs/esm-patient-common-lib",!1,[1,10],()=>Promise.all([a.e(66),a.e(3689),a.e(3379),a.e(9224),a.e(3732),a.e(5434),a.e(8241),a.e(4569)]).then(()=>()=>a(83732))),88010:()=>i("default","swr/immutable",!1,[1,2],()=>a.e(9876).then(()=>()=>a(29876))),98394:()=>i("default","swr/infinite",!1,[1,2],()=>a.e(2470).then(()=>()=>a(52470)))};[38254,1343,8877,93150].forEach(e=>{a.m[e]=t=>{s[e]=0,delete a.c[e];var n=l[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}});var c={1343:[1343],4569:[88010,98394],5434:[55434],6255:[8877,38254,93150],6364:[76364],8241:[98241],8792:[38254,1343,8877,93150]},u={};a.f.consumes=(e,t)=>{a.o(c,e)&&c[e].forEach(e=>{if(a.o(s,e))return t.push(s[e]);if(!u[e]){var n=t=>{s[e]=0,a.m[e]=n=>{delete a.c[e],n.exports=t()}};u[e]=!0;var r=t=>{delete s[e],a.m[e]=n=>{throw delete a.c[e],t}};try{var o=l[e]();o.then?t.push(s[e]=o.then(n).catch(r)):n(o)}catch(e){r(e)}}})}})(),(()=>{var e={1343:0,4275:0,6255:0,7698:0,8792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(1343|4569|5434|6255|6364|8241)$/.test(t))e[t]=0;else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(47698)})();
@@ -1 +1 @@
1
- var _openmrs_esm_appointments_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,c,d,m,h,v,g,b,y,w,_={43347:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(4275),t.e(1343),t.e(6255),t.e(7698)]).then(()=>()=>t(47698))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,S),t.exports}S.m=_,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);S.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(e=>a[e]=()=>t[e]);return a.default=()=>t,S.d(o,a),o},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce((r,t)=>(S.f[t](e,r),r),[])),S.u=e=>e+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-appointments-app:",S.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var a=S.S[t],i="@openmrs/esm-appointments-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","6.3.1-pre.3218",()=>Promise.all([S.e(66),S.e(6766),S.e(3379),S.e(9224),S.e(4275),S.e(5813),S.e(5434),S.e(8241),S.e(1343),S.e(4569),S.e(6255)]).then(()=>()=>S(95813))),l("@openmrs/esm-patient-common-lib","10.2.1-pre.8362",()=>Promise.all([S.e(66),S.e(6766),S.e(3379),S.e(9224),S.e(4275),S.e(3732),S.e(5434),S.e(8241),S.e(1343),S.e(4569),S.e(6255)]).then(()=>()=>S(83732))),l("react-dom","18.3.1",()=>Promise.all([S.e(3144),S.e(1343)]).then(()=>()=>S(43144))),l("react-i18next","11.18.6",()=>Promise.all([S.e(2537),S.e(1343)]).then(()=>()=>S(72537))),l("react-router-dom","6.30.1",()=>Promise.all([S.e(2913),S.e(8241),S.e(1343)]).then(()=>()=>S(52913))),l("react","18.3.1",()=>S.e(4041).then(()=>()=>S(14041))),l("swr/_internal","2.2.5",()=>Promise.all([S.e(2372),S.e(1343)]).then(()=>()=>S(42372))),l("swr/immutable","2.2.5",()=>Promise.all([S.e(5434),S.e(1343),S.e(7495)]).then(()=>()=>S(29876))),l("swr/infinite","2.2.5",()=>Promise.all([S.e(5434),S.e(1343),S.e(89)]).then(()=>()=>S(52470)))),e[t]=s.length?Promise.all(s).then(()=>e[t]=1):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var r=S.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),o=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!s||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||p<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,i--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var m=e[a];c.push(1==m?d()|d():2==m?d()&d():m?l(m,r):!d())}return!!d()},s=(e,r)=>e&&S.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},c=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",d=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},h=(e,r,t)=>t?t():((e,r)=>d("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=S.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,S.S[r],t,!1,o,a)):e(r,S.S[r],t,n,o,a)})((e,r,t,n,o,a)=>{if(!s(r,t))return h(e,t,a);var i=f(r,t,n);return l(o,i)||m(c(r,t,i,o)),u(r[t][i])}),g={},b={55434:()=>v("default","swr/_internal",!1,[1,2],()=>S.e(2372).then(()=>()=>S(42372))),98241:()=>v("default","react-dom",!1,[1,18],()=>S.e(3144).then(()=>()=>S(43144))),1343:()=>v("default","react",!1,[1,18],()=>S.e(4041).then(()=>()=>S(14041))),88010:()=>v("default","swr/immutable",!1,[1,2],()=>S.e(9876).then(()=>()=>S(29876))),98394:()=>v("default","swr/infinite",!1,[1,2],()=>S.e(2470).then(()=>()=>S(52470))),8877:()=>v("default","react-router-dom",!1,[1,6],()=>Promise.all([S.e(2913),S.e(8241)]).then(()=>()=>S(52913))),38254:()=>v("default","@openmrs/esm-framework",!1,[1,6],()=>Promise.all([S.e(66),S.e(6766),S.e(3379),S.e(9224),S.e(5813),S.e(5434),S.e(8241),S.e(4569)]).then(()=>()=>S(95813))),93150:()=>v("default","react-i18next",!1,[1,11],()=>S.e(2537).then(()=>()=>S(72537))),76364:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,10],()=>Promise.all([S.e(66),S.e(6766),S.e(3379),S.e(9224),S.e(3732),S.e(5434),S.e(8241),S.e(4569)]).then(()=>()=>S(83732)))},y={1343:[1343],4569:[88010,98394],5434:[55434],6255:[8877,38254,93150],6364:[76364],8241:[98241]},w={},S.f.consumes=(e,r)=>{S.o(y,e)&&y[e].forEach(e=>{if(S.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})},(()=>{var e={3468:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1343|4569|5434|6255|6364|8241)$/.test(r))e[r]=0;else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=S.p+S.u(r),i=new Error;S.l(a,t=>{if(S.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some(r=>0!==e[r])){for(n in i)S.o(i,n)&&(S.m[n]=i[n]);l&&l(S)}for(r&&r(t);s<a.length;s++)o=a[s],S.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),S.nc=void 0;var j=S(43347);_openmrs_esm_appointments_app=j})();
1
+ var _openmrs_esm_appointments_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,c,d,m,h,v,g,b,y,w,_={43347:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(4275),t.e(1343),t.e(6255),t.e(7698)]).then(()=>()=>t(47698))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,S),t.exports}S.m=_,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);S.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(e=>a[e]=()=>t[e]);return a.default=()=>t,S.d(o,a),o},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce((r,t)=>(S.f[t](e,r),r),[])),S.u=e=>e+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-appointments-app:",S.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var a=S.S[t],i="@openmrs/esm-appointments-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","6.3.1-pre.3218",()=>Promise.all([S.e(66),S.e(3689),S.e(3379),S.e(9224),S.e(4275),S.e(5813),S.e(5434),S.e(8241),S.e(1343),S.e(4569),S.e(6255)]).then(()=>()=>S(95813))),l("@openmrs/esm-patient-common-lib","10.2.1-pre.8362",()=>Promise.all([S.e(66),S.e(3689),S.e(3379),S.e(9224),S.e(4275),S.e(3732),S.e(5434),S.e(8241),S.e(1343),S.e(4569),S.e(6255)]).then(()=>()=>S(83732))),l("react-dom","18.3.1",()=>Promise.all([S.e(3144),S.e(1343)]).then(()=>()=>S(43144))),l("react-i18next","11.18.6",()=>Promise.all([S.e(2537),S.e(1343)]).then(()=>()=>S(72537))),l("react-router-dom","6.30.1",()=>Promise.all([S.e(2913),S.e(8241),S.e(1343)]).then(()=>()=>S(52913))),l("react","18.3.1",()=>S.e(4041).then(()=>()=>S(14041))),l("swr/_internal","2.2.5",()=>Promise.all([S.e(2372),S.e(1343)]).then(()=>()=>S(42372))),l("swr/immutable","2.2.5",()=>Promise.all([S.e(5434),S.e(1343),S.e(7495)]).then(()=>()=>S(29876))),l("swr/infinite","2.2.5",()=>Promise.all([S.e(5434),S.e(1343),S.e(89)]).then(()=>()=>S(52470)))),e[t]=s.length?Promise.all(s).then(()=>e[t]=1):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var r=S.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),o=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!s||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||p<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,i--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var m=e[a];c.push(1==m?d()|d():2==m?d()&d():m?l(m,r):!d())}return!!d()},s=(e,r)=>e&&S.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},c=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",d=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},h=(e,r,t)=>t?t():((e,r)=>d("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=S.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,S.S[r],t,!1,o,a)):e(r,S.S[r],t,n,o,a)})((e,r,t,n,o,a)=>{if(!s(r,t))return h(e,t,a);var i=f(r,t,n);return l(o,i)||m(c(r,t,i,o)),u(r[t][i])}),g={},b={55434:()=>v("default","swr/_internal",!1,[1,2],()=>S.e(2372).then(()=>()=>S(42372))),98241:()=>v("default","react-dom",!1,[1,18],()=>S.e(3144).then(()=>()=>S(43144))),1343:()=>v("default","react",!1,[1,18],()=>S.e(4041).then(()=>()=>S(14041))),88010:()=>v("default","swr/immutable",!1,[1,2],()=>S.e(9876).then(()=>()=>S(29876))),98394:()=>v("default","swr/infinite",!1,[1,2],()=>S.e(2470).then(()=>()=>S(52470))),8877:()=>v("default","react-router-dom",!1,[1,6],()=>Promise.all([S.e(2913),S.e(8241)]).then(()=>()=>S(52913))),38254:()=>v("default","@openmrs/esm-framework",!1,[1,6],()=>Promise.all([S.e(66),S.e(3689),S.e(3379),S.e(9224),S.e(5813),S.e(5434),S.e(8241),S.e(4569)]).then(()=>()=>S(95813))),93150:()=>v("default","react-i18next",!1,[1,11],()=>S.e(2537).then(()=>()=>S(72537))),76364:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,10],()=>Promise.all([S.e(66),S.e(3689),S.e(3379),S.e(9224),S.e(3732),S.e(5434),S.e(8241),S.e(4569)]).then(()=>()=>S(83732)))},y={1343:[1343],4569:[88010,98394],5434:[55434],6255:[8877,38254,93150],6364:[76364],8241:[98241]},w={},S.f.consumes=(e,r)=>{S.o(y,e)&&y[e].forEach(e=>{if(S.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})},(()=>{var e={3468:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1343|4569|5434|6255|6364|8241)$/.test(r))e[r]=0;else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=S.p+S.u(r),i=new Error;S.l(a,t=>{if(S.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some(r=>0!==e[r])){for(n in i)S.o(i,n)&&(S.m[n]=i[n]);l&&l(S)}for(r&&r(t);s<a.length;s++)o=a[s],S.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),S.nc=void 0;var j=S(43347);_openmrs_esm_appointments_app=j})();
@@ -73,7 +73,7 @@
73
73
  "auxiliaryFiles": [
74
74
  "525.js.map"
75
75
  ],
76
- "hash": "e9c9bcfdea0258f8",
76
+ "hash": "8795a815d4c03faa",
77
77
  "childrenByOrder": {}
78
78
  },
79
79
  {
@@ -97,7 +97,7 @@
97
97
  "auxiliaryFiles": [
98
98
  "592.js.map"
99
99
  ],
100
- "hash": "b6b8f7783f7330a3",
100
+ "hash": "904781840bca7ad5",
101
101
  "childrenByOrder": {}
102
102
  },
103
103
  {
@@ -299,7 +299,7 @@
299
299
  "auxiliaryFiles": [
300
300
  "1431.js.map"
301
301
  ],
302
- "hash": "3c3d48a10c48ff19",
302
+ "hash": "783b246c9b49297c",
303
303
  "childrenByOrder": {}
304
304
  },
305
305
  {
@@ -500,7 +500,7 @@
500
500
  "auxiliaryFiles": [
501
501
  "3092.js.map"
502
502
  ],
503
- "hash": "f97b093c895a8af1",
503
+ "hash": "980d07546ef21854",
504
504
  "childrenByOrder": {}
505
505
  },
506
506
  {
@@ -573,7 +573,7 @@
573
573
  "auxiliaryFiles": [
574
574
  "3167.js.map"
575
575
  ],
576
- "hash": "4fc47f9d1115d76b",
576
+ "hash": "2672e301c8245ee5",
577
577
  "childrenByOrder": {}
578
578
  },
579
579
  {
@@ -624,7 +624,7 @@
624
624
  "auxiliaryFiles": [
625
625
  "3431.js.map"
626
626
  ],
627
- "hash": "9bfe8480e500df49",
627
+ "hash": "4fa9e39e2f9090c3",
628
628
  "childrenByOrder": {}
629
629
  },
630
630
  {
@@ -651,7 +651,7 @@
651
651
  "auxiliaryFiles": [
652
652
  "openmrs-esm-appointments-app.js.map"
653
653
  ],
654
- "hash": "0f568584ffa062b2",
654
+ "hash": "979f0b7fc19a3672",
655
655
  "childrenByOrder": {}
656
656
  },
657
657
  {
@@ -676,6 +676,33 @@
676
676
  "hash": "53aaafcd06623f38",
677
677
  "childrenByOrder": {}
678
678
  },
679
+ {
680
+ "rendered": true,
681
+ "initial": false,
682
+ "entry": false,
683
+ "recorded": false,
684
+ "reason": "split chunk (cache group: defaultVendors)",
685
+ "size": 2740382,
686
+ "sizes": {
687
+ "javascript": 2740382
688
+ },
689
+ "names": [],
690
+ "idHints": [
691
+ "vendors"
692
+ ],
693
+ "runtime": [
694
+ "@openmrs/esm-appointments-app",
695
+ "main"
696
+ ],
697
+ "files": [
698
+ "3689.js"
699
+ ],
700
+ "auxiliaryFiles": [
701
+ "3689.js.map"
702
+ ],
703
+ "hash": "577fc8af2fff3e99",
704
+ "childrenByOrder": {}
705
+ },
679
706
  {
680
707
  "rendered": true,
681
708
  "initial": false,
@@ -700,7 +727,7 @@
700
727
  "auxiliaryFiles": [
701
728
  "3732.js.map"
702
729
  ],
703
- "hash": "211f1f8a72f8a4bc",
730
+ "hash": "7ee306ca21946c9d",
704
731
  "childrenByOrder": {}
705
732
  },
706
733
  {
@@ -803,9 +830,9 @@
803
830
  "initial": false,
804
831
  "entry": false,
805
832
  "recorded": false,
806
- "size": 6366,
833
+ "size": 6395,
807
834
  "sizes": {
808
- "javascript": 6366
835
+ "javascript": 6395
809
836
  },
810
837
  "names": [],
811
838
  "idHints": [],
@@ -817,7 +844,7 @@
817
844
  "4300.js"
818
845
  ],
819
846
  "auxiliaryFiles": [],
820
- "hash": "4d4e11bd3616e8e8",
847
+ "hash": "aa0d94aa356550e2",
821
848
  "childrenByOrder": {}
822
849
  },
823
850
  {
@@ -952,7 +979,7 @@
952
979
  "auxiliaryFiles": [
953
980
  "4733.js.map"
954
981
  ],
955
- "hash": "3fe450c2f20ab5eb",
982
+ "hash": "6e3a88814f692b62",
956
983
  "childrenByOrder": {}
957
984
  },
958
985
  {
@@ -976,7 +1003,7 @@
976
1003
  "auxiliaryFiles": [
977
1004
  "4745.js.map"
978
1005
  ],
979
- "hash": "8f9d3312d1d435b3",
1006
+ "hash": "d07a3880399cc05e",
980
1007
  "childrenByOrder": {}
981
1008
  },
982
1009
  {
@@ -1011,9 +1038,9 @@
1011
1038
  "initial": false,
1012
1039
  "entry": false,
1013
1040
  "recorded": false,
1014
- "size": 286325,
1041
+ "size": 286367,
1015
1042
  "sizes": {
1016
- "javascript": 286325
1043
+ "javascript": 286367
1017
1044
  },
1018
1045
  "names": [],
1019
1046
  "idHints": [],
@@ -1027,7 +1054,7 @@
1027
1054
  "auxiliaryFiles": [
1028
1055
  "4889.js.map"
1029
1056
  ],
1030
- "hash": "24a6f4fdf49c9393",
1057
+ "hash": "0e19b9ca9ee5143e",
1031
1058
  "childrenByOrder": {}
1032
1059
  },
1033
1060
  {
@@ -1074,7 +1101,7 @@
1074
1101
  "auxiliaryFiles": [
1075
1102
  "5160.js.map"
1076
1103
  ],
1077
- "hash": "aea3a6df370f3463",
1104
+ "hash": "963c85a574b75368",
1078
1105
  "childrenByOrder": {}
1079
1106
  },
1080
1107
  {
@@ -1208,7 +1235,7 @@
1208
1235
  "auxiliaryFiles": [
1209
1236
  "5755.js.map"
1210
1237
  ],
1211
- "hash": "a26b4f20eab026ff",
1238
+ "hash": "8143129d0d00310b",
1212
1239
  "childrenByOrder": {}
1213
1240
  },
1214
1241
  {
@@ -1302,7 +1329,7 @@
1302
1329
  ],
1303
1330
  "files": [],
1304
1331
  "auxiliaryFiles": [],
1305
- "hash": "3585b635feaf6a90",
1332
+ "hash": "96d0f517b914601d",
1306
1333
  "childrenByOrder": {}
1307
1334
  },
1308
1335
  {
@@ -1323,7 +1350,7 @@
1323
1350
  ],
1324
1351
  "files": [],
1325
1352
  "auxiliaryFiles": [],
1326
- "hash": "bc7578719f96b886",
1353
+ "hash": "fa547842afe8a871",
1327
1354
  "childrenByOrder": {}
1328
1355
  },
1329
1356
  {
@@ -1394,33 +1421,6 @@
1394
1421
  "hash": "f376875a452ef747",
1395
1422
  "childrenByOrder": {}
1396
1423
  },
1397
- {
1398
- "rendered": true,
1399
- "initial": false,
1400
- "entry": false,
1401
- "recorded": false,
1402
- "reason": "split chunk (cache group: defaultVendors)",
1403
- "size": 3007647,
1404
- "sizes": {
1405
- "javascript": 3007647
1406
- },
1407
- "names": [],
1408
- "idHints": [
1409
- "vendors"
1410
- ],
1411
- "runtime": [
1412
- "@openmrs/esm-appointments-app",
1413
- "main"
1414
- ],
1415
- "files": [
1416
- "6766.js"
1417
- ],
1418
- "auxiliaryFiles": [
1419
- "6766.js.map"
1420
- ],
1421
- "hash": "0fb4e0076801fc88",
1422
- "childrenByOrder": {}
1423
- },
1424
1424
  {
1425
1425
  "rendered": true,
1426
1426
  "initial": false,
@@ -1674,7 +1674,7 @@
1674
1674
  "auxiliaryFiles": [
1675
1675
  "7698.js.map"
1676
1676
  ],
1677
- "hash": "9e1518eb293829e3",
1677
+ "hash": "982096018f161f05",
1678
1678
  "childrenByOrder": {}
1679
1679
  },
1680
1680
  {
@@ -1813,7 +1813,7 @@
1813
1813
  "auxiliaryFiles": [
1814
1814
  "main.js.map"
1815
1815
  ],
1816
- "hash": "0070ac3dc4bf2b5a",
1816
+ "hash": "48e8a49622dcc753",
1817
1817
  "childrenByOrder": {}
1818
1818
  },
1819
1819
  {
@@ -1862,7 +1862,7 @@
1862
1862
  "auxiliaryFiles": [
1863
1863
  "9224.js.map"
1864
1864
  ],
1865
- "hash": "4005dd6cf84d873e",
1865
+ "hash": "8d1112aabf18be8b",
1866
1866
  "childrenByOrder": {}
1867
1867
  },
1868
1868
  {
@@ -1930,7 +1930,7 @@
1930
1930
  "auxiliaryFiles": [
1931
1931
  "9712.js.map"
1932
1932
  ],
1933
- "hash": "057c8a38144fe9e0",
1933
+ "hash": "e98b17cd0104bb07",
1934
1934
  "childrenByOrder": {}
1935
1935
  },
1936
1936
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"home-appointments","slot":"homepage-widgets-slot","component":"homeAppointments","order":1},{"name":"clinical-appointments-dashboard-link","slot":"homepage-dashboard-slot","component":"appointmentsDashboardLink","meta":{"name":"appointments","slot":"clinical-appointments-dashboard-slot","title":"Appointments"},"order":2},{"component":"root","name":"clinical-appointments-dashboard","slot":"clinical-appointments-dashboard-slot"},{"name":"appointments-dashboard","slot":"appointments-dashboard-slot","component":"appointmentsDashboard"},{"name":"appointments-calendar-dashboard-link","slot":"calendar-dashboard-slot","component":"appointmentsCalendarDashboardLink"},{"name":"todays-appointments-dashboard","slot":"todays-appointment-slot","component":"homeAppointments"},{"name":"expected-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"checked-in-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"completed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"missed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"cancelled-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"early-appointments-panel","component":"earlyAppointments"},{"name":"patient-appointments-summary-dashboard","component":"patientAppointmentsSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"hideDashboardTitle":true,"path":"Appointments","slot":"patient-chart-appointments-dashboard-slot","title":"Appointments"}},{"name":"appointments-details-widget","component":"patientAppointmentsDetailedSummary","slot":"patient-chart-appointments-dashboard-slot","meta":{"columnSpan":1}},{"name":"patient-upcoming-appointment-widget","component":"patientUpcomingAppointmentsWidget","slot":"visit-form-top-slot"},{"name":"search-patient","component":"searchPatient"},{"name":"home-appointments-tile","slot":"home-metrics-tiles-slot","component":"homeAppointmentsTile"},{"name":"metrics-card-scheduled-appointments","component":"metricsCardScheduledAppointments","slot":"appointments-metrics-slot","order":1},{"name":"metrics-card-highest-volume-service","component":"metricsCardHighestVolumeService","slot":"appointments-metrics-slot","order":2},{"name":"metrics-card-providers-booked","component":"metricsCardProvidersBooked","slot":"appointments-metrics-slot","order":3}],"modals":[{"name":"end-appointment-modal","component":"endAppointmentModal"},{"name":"cancel-appointment-modal","component":"cancelAppointmentModal"}],"workspaces":[{"name":"appointments-form-workspace","component":"appointmentsFormWorkspace","title":"createNewAppointment","type":"form"}],"version":"8.5.1-pre.6083"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"home-appointments","slot":"homepage-widgets-slot","component":"homeAppointments","order":1},{"name":"clinical-appointments-dashboard-link","slot":"homepage-dashboard-slot","component":"appointmentsDashboardLink","meta":{"name":"appointments","slot":"clinical-appointments-dashboard-slot","title":"Appointments"},"order":2},{"component":"root","name":"clinical-appointments-dashboard","slot":"clinical-appointments-dashboard-slot"},{"name":"appointments-dashboard","slot":"appointments-dashboard-slot","component":"appointmentsDashboard"},{"name":"appointments-calendar-dashboard-link","slot":"calendar-dashboard-slot","component":"appointmentsCalendarDashboardLink"},{"name":"todays-appointments-dashboard","slot":"todays-appointment-slot","component":"homeAppointments"},{"name":"expected-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"checked-in-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"completed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"missed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"cancelled-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsList"},{"name":"early-appointments-panel","component":"earlyAppointments"},{"name":"patient-appointments-summary-dashboard","component":"patientAppointmentsSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"hideDashboardTitle":true,"path":"Appointments","slot":"patient-chart-appointments-dashboard-slot","title":"Appointments"}},{"name":"appointments-details-widget","component":"patientAppointmentsDetailedSummary","slot":"patient-chart-appointments-dashboard-slot","meta":{"columnSpan":1}},{"name":"patient-upcoming-appointment-widget","component":"patientUpcomingAppointmentsWidget","slot":"visit-form-top-slot"},{"name":"search-patient","component":"searchPatient"},{"name":"home-appointments-tile","slot":"home-metrics-tiles-slot","component":"homeAppointmentsTile"},{"name":"metrics-card-scheduled-appointments","component":"metricsCardScheduledAppointments","slot":"appointments-metrics-slot","order":1},{"name":"metrics-card-highest-volume-service","component":"metricsCardHighestVolumeService","slot":"appointments-metrics-slot","order":2},{"name":"metrics-card-providers-booked","component":"metricsCardProvidersBooked","slot":"appointments-metrics-slot","order":3}],"modals":[{"name":"end-appointment-modal","component":"endAppointmentModal"},{"name":"cancel-appointment-modal","component":"cancelAppointmentModal"}],"workspaces":[{"name":"appointments-form-workspace","component":"appointmentsFormWorkspace","title":"createNewAppointment","type":"form"}],"version":"8.5.1-pre.6084"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-appointments-app",
3
- "version": "8.5.1-pre.6083",
3
+ "version": "8.5.1-pre.6084",
4
4
  "description": "Appointments front-end module for O3",
5
5
  "browser": "dist/openmrs-esm-appointments-app.js",
6
6
  "main": "src/index.ts",
@@ -25,6 +25,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
25
25
  import {
26
26
  ExtensionSlot,
27
27
  OpenmrsDatePicker,
28
+ OpenmrsDateRangePicker,
28
29
  ResponsiveWrapper,
29
30
  showSnackbar,
30
31
  translateFrom,
@@ -530,8 +531,9 @@ const AppointmentsForm: React.FC<AppointmentsFormProps & DefaultWorkspaceProps>
530
531
  const previousServiceDuration = services?.find(
531
532
  (service) => service.name === getValues('selectedService'),
532
533
  )?.durationMins;
533
- const selectedServiceDuration = services?.find((service) => service.name === event.target.value)
534
- ?.durationMins;
534
+ const selectedServiceDuration = services?.find(
535
+ (service) => service.name === event.target.value,
536
+ )?.durationMins;
535
537
  if (selectedServiceDuration && previousServiceDuration === getValues('duration')) {
536
538
  setValue('duration', selectedServiceDuration);
537
539
  }
@@ -612,35 +614,32 @@ const AppointmentsForm: React.FC<AppointmentsFormProps & DefaultWorkspaceProps>
612
614
  <Controller
613
615
  name="appointmentDateTime"
614
616
  control={control}
615
- render={({ field: { onChange, value } }) => (
616
- <ResponsiveWrapper>
617
- <DatePicker
618
- datePickerType="range"
619
- dateFormat={datePickerFormat}
620
- value={[value.startDate, value.recurringPatternEndDate]}
621
- onChange={([startDate, endDate]) => {
622
- onChange({
623
- startDate: new Date(startDate),
624
- recurringPatternEndDate: new Date(endDate),
625
- recurringPatternEndDateText: dayjs(new Date(endDate)).format(dateFormat),
626
- startDateText: dayjs(new Date(startDate)).format(dateFormat),
627
- });
628
- }}>
629
- <DatePickerInput
630
- id="startDatePickerInput"
631
- labelText={t('startDate', 'Start date')}
632
- style={{ width: '100%' }}
633
- value={watch('appointmentDateTime').startDateText}
634
- />
635
- <DatePickerInput
636
- id="endDatePickerInput"
637
- labelText={t('endDate', 'End date')}
638
- style={{ width: '100%' }}
639
- placeholder={datePickerPlaceHolder}
640
- value={watch('appointmentDateTime').recurringPatternEndDateText}
641
- />
642
- </DatePicker>
643
- </ResponsiveWrapper>
617
+ render={({ field: { onChange, value }, fieldState }) => (
618
+ <OpenmrsDateRangePicker
619
+ value={
620
+ value.startDate && value.recurringPatternEndDate
621
+ ? [value.startDate, value.recurringPatternEndDate]
622
+ : null
623
+ }
624
+ onChange={(dateRange) => {
625
+ const [startDate, endDate] = dateRange;
626
+ onChange({
627
+ ...value,
628
+ startDate,
629
+ startDateText: startDate ? dayjs(startDate).format(dateFormat) : '',
630
+ recurringPatternEndDate: endDate,
631
+ recurringPatternEndDateText: endDate ? dayjs(endDate).format(dateFormat) : '',
632
+ });
633
+ }}
634
+ startName="start"
635
+ endName="end"
636
+ id="appointmentRecurringDateRangePicker"
637
+ data-testid="appointmentRecurringDateRangePicker"
638
+ labelText={t('dateRange', 'Set date range')}
639
+ invalid={Boolean(fieldState?.error?.message)}
640
+ invalidText={fieldState?.error?.message}
641
+ isRequired
642
+ />
644
643
  )}
645
644
  />
646
645
  </ResponsiveWrapper>
@@ -59,6 +59,7 @@
59
59
  "date&Time": "Date & time",
60
60
  "dateAppointmentIssuedCannotBeAfterAppointmentDate": "Date appointment issued cannot be after the appointment date",
61
61
  "dateOfBirth": "Date of birth",
62
+ "dateRange": "Set date range",
62
63
  "dateScheduled": "Date appointment issued",
63
64
  "dateScheduledDetail": "Date appointment issued",
64
65
  "dateTime": "Date & Time",