@openmrs/esm-appointments-app 10.0.3-pre.8413 → 10.0.3-pre.8414

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.
@@ -5,4 +5,4 @@
5
5
  │ 6098.js (1.673 MiB)
6
6
  
7
7
 
8
- Rspack compiled with 1 warning in 42.19 s
8
+ Rspack compiled with 1 warning in 26.84 s
package/dist/7654.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["7654"],{4767(e,t,n){var o={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function r(e){if(!n.o(o,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],r=t[0];return n.e(t[1]).then(function(){return n(r)})}r.keys=()=>Object.keys(o),r.id=4767,e.exports=r},7488(e,t,n){"use strict";n.d(t,{Q:()=>a});var o=n(2735),r=n(7003),a={allowAllDayAppointments:{_type:o.Type.Boolean,_default:!1,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)"},appointmentStatuses:{_type:o.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:o.Type.String,_description:"Status of an appointment"}},appointmentTypes:{_type:o.Type.Array,_default:["Scheduled"],_description:"Configurable appointment types (types of appointments)",_elements:{_type:o.Type.String,_description:"Type of an appointment"}},checkInButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-in button on the "Appointments" list should be enabled'},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-in button (instead of the start visit form)"}},checkOutButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-out button on the "Appointments" list should be enabled'},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-out button"}},customPatientChartUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_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>)",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:o.Type.Boolean,_default:!1,_description:"Whether to include phone numbers in the exported Excel spreadsheet"},patientIdentifierType:{_type:o.Type.String,_default:"",_description:"The name of the patient identifier type to be used for the patient identifier field"},showUnscheduledAppointmentsTab:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available"},showEarlyAppointmentsTab:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the Early Appointments tab. Note that configuring this to true requires a custom earlyAppointment endpoint not currently available"},appointmentsTableColumns:{_type:o.Type.Array,_description:"Columns to display in the appointment table. Available options: "+r.Je.join(", "),_default:["patientName","identifier","location","serviceType","dateTime","visitStartTime","status","actions"],_elements:{_type:o.Type.String,_validators:[o.validators.oneOf(r.Je)]}}}},7003(e,t,n){"use strict";n.d(t,{AO:()=>i,BC:()=>r,Je:()=>c,Mq:()=>p,gC:()=>s,gL:()=>a,i$:()=>l,lw:()=>o});var o="".concat(window.spaBase,"/home"),r="YYYY-MM-DDTHH:mm:ss.SSSZZ",a="Appointment Location",i="@openmrs/esm-appointments-app",s="appointments-form-workspace",l="DD/MM/YYYY",p=[{id:"MONDAY",label:"Monday",labelCode:"monday",order:0},{id:"TUESDAY",label:"Tuesday",labelCode:"tuesday",order:1},{id:"WEDNESDAY",label:"Wednesday",labelCode:"wednesday",order:2},{id:"THURSDAY",label:"Thursday",labelCode:"thursday",order:3},{id:"FRIDAY",label:"Friday",labelCode:"friday",order:4},{id:"SATURDAY",label:"Saturday",labelCode:"saturday",order:5},{id:"SUNDAY",label:"Sunday",labelCode:"sunday",order:6}],c=["patientName","identifier","location","serviceType","status","dateTime","provider","actions","visitStartTime"]},3189(e,t,n){"use strict";n.r(t),n.d(t,{root:()=>_,batchChangeAppointmentStatusesModal:()=>N,metricsCardProvidersBooked:()=>k,appointmentsCalendarDashboardLink:()=>g,appointmentsDashboard:()=>v,homeAppointmentsTile:()=>Y,patientAppointmentsDetailedSummary:()=>C,endAppointmentModal:()=>E,patientAppointmentsOverview:()=>L,startupApp:()=>b,exportedAppointmentsFormWorkspace:()=>O,earlyAppointments:()=>w,cancelAppointmentModal:()=>D,importTranslation:()=>f,patientAppointmentsSummaryDashboardLink:()=>P,metricsCardHighestVolumeService:()=>T,appointmentsFormWorkspace:()=>U,metricsCardScheduledAppointments:()=>S,patientUpcomingAppointmentsWidget:()=>B,appointmentsDashboardLink:()=>A,homeAppointments:()=>j});var o=n(2735),r=n(7488),a=n(7125),i=n.n(a),s=n(2745),l=function(e){return function(){return i().createElement(s.BrowserRouter,null,i().createElement(o.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},p={path:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments",basePath:"".concat(window.spaBase,"/home")},c={path:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments calendar",basePath:"".concat(window.spaBase,"/home")},u={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"appointments",icon:"omrs-icon-event-schedule"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function m(e,t,n,o,r,a,i){try{var s=e[a](i),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(o,r)}var h="@openmrs/esm-appointments-app",y={featureName:"appointments",moduleName:h},f=n(4767);function b(){var e="".concat(window.spaBase,"/home/appointments");(0,o.defineConfigSchema)(h,r.Q),(0,o.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(r.push(t.value),2!==r.length);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return r}}(e)||function(e){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=(t[0],t[1]);return"Patient Lists / ".concat(decodeURI(n))},parent:"".concat(window.spaBase)}])}var _=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("635"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("2620"),n.e("8981"),n.e("3220"),n.e("5640"),n.e("8063")]).then(n.bind(n,2130))},y),A=(0,o.getSyncLifecycle)(l(p),y),g=(0,o.getSyncLifecycle)(l(c),y),v=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("635"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("3220"),n.e("2539")]).then(n.bind(n,6735))},y),j=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("7159")]).then(n.bind(n,7690))},y),w=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("7609")]).then(n.bind(n,256))},y),S=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("7357"),n.e("7226"),n.e("8346"),n.e("1884")]).then(n.bind(n,2567))},y),T=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("7357"),n.e("7226"),n.e("8346"),n.e("2495")]).then(n.bind(n,6482))},y),k=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("7357"),n.e("7226"),n.e("8346"),n.e("8937")]).then(n.bind(n,4096))},y),P=(0,o.getAsyncLifecycle)(function(){var e;return(e=function(){return function(e,t){var n,o,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var p=[s,l];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,p[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&p[0]?o.return:p[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,p[1])).done)return r;switch(o=0,r&&(p=[2&p[0],r.value]),p[0]){case 0:case 1:r=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,o=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===p[0]||2===p[0])){a=0;continue}if(3===p[0]&&(!r||p[1]>r[0]&&p[1]<r[3])){a.label=p[1];break}if(6===p[0]&&a.label<r[1]){a.label=r[1],r=p;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(p);break}r[2]&&a.ops.pop(),a.trys.pop();continue}p=t.call(e,a)}catch(e){p=[6,e],o=0}finally{n=r=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}(this,function(e){return[2,{default:(0,o.createDashboard)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},u))}]})},function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){m(a,o,r,i,s,"next",e)}function s(e){m(a,o,r,i,s,"throw",e)}i(void 0)})})()},y),C=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("2620"),n.e("1962")]).then(n.bind(n,7))},y),L=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("2620"),n.e("5640"),n.e("9581")]).then(n.bind(n,4299))},y),B=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("6789")]).then(n.bind(n,8900))},y),D=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("6236")]).then(n.bind(n,6199))},y),U=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("2717"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("8981"),n.e("7138")]).then(n.bind(n,1257))},y),O=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("2717"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("8981"),n.e("7138"),n.e("9282")]).then(n.bind(n,2409))},y),E=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("1465")]).then(n.bind(n,9648))},y),Y=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9443")]).then(n.bind(n,110))},y),N=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("4307")]).then(n.bind(n,4350))},y)}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["7654"],{4767(e,t,n){var o={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function r(e){if(!n.o(o,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],r=t[0];return n.e(t[1]).then(function(){return n(r)})}r.keys=()=>Object.keys(o),r.id=4767,e.exports=r},7488(e,t,n){"use strict";n.d(t,{Q:()=>a});var o=n(2735),r=n(7003),a={allowAllDayAppointments:{_type:o.Type.Boolean,_default:!1,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)"},appointmentStatuses:{_type:o.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:o.Type.String,_description:"Status of an appointment"}},appointmentTypes:{_type:o.Type.Array,_default:["Scheduled"],_description:"Configurable appointment types (types of appointments)",_elements:{_type:o.Type.String,_description:"Type of an appointment"}},checkInButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-in button on the "Appointments" list should be enabled'},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-in button (instead of the start visit form)"}},checkOutButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-out button on the "Appointments" list should be enabled'},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-out button"}},customPatientChartUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_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>)",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:o.Type.Boolean,_default:!1,_description:"Whether to include phone numbers in the exported Excel spreadsheet"},patientIdentifierType:{_type:o.Type.String,_default:"",_description:"The name of the patient identifier type to be used for the patient identifier field"},showUnscheduledAppointmentsTab:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available"},showEarlyAppointmentsTab:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the Early Appointments tab. Note that configuring this to true requires a custom earlyAppointment endpoint not currently available"},appointmentsTableColumns:{_type:o.Type.Array,_description:"Columns to display in the appointment table. Available options: "+r.Je.join(", "),_default:["patientName","identifier","location","serviceType","dateTime","visitStartTime","status","actions"],_elements:{_type:o.Type.String,_validators:[o.validators.oneOf(r.Je)]}}}},7003(e,t,n){"use strict";n.d(t,{AO:()=>i,BC:()=>r,Je:()=>c,Mq:()=>p,gC:()=>s,gL:()=>a,i$:()=>l,lw:()=>o});var o="".concat(window.spaBase,"/home"),r="YYYY-MM-DDTHH:mm:ss.SSSZZ",a="Appointment Location",i="@openmrs/esm-appointments-app",s="appointments-form-workspace",l="DD/MM/YYYY",p=[{id:"MONDAY",label:"Monday",labelCode:"monday",order:0},{id:"TUESDAY",label:"Tuesday",labelCode:"tuesday",order:1},{id:"WEDNESDAY",label:"Wednesday",labelCode:"wednesday",order:2},{id:"THURSDAY",label:"Thursday",labelCode:"thursday",order:3},{id:"FRIDAY",label:"Friday",labelCode:"friday",order:4},{id:"SATURDAY",label:"Saturday",labelCode:"saturday",order:5},{id:"SUNDAY",label:"Sunday",labelCode:"sunday",order:6}],c=["patientName","identifier","location","serviceType","status","dateTime","provider","actions","visitStartTime"]},3189(e,t,n){"use strict";n.r(t),n.d(t,{root:()=>_,batchChangeAppointmentStatusesModal:()=>N,metricsCardProvidersBooked:()=>k,appointmentsCalendarDashboardLink:()=>g,appointmentsDashboard:()=>v,homeAppointmentsTile:()=>Y,patientAppointmentsDetailedSummary:()=>C,endAppointmentModal:()=>E,patientAppointmentsOverview:()=>L,startupApp:()=>b,exportedAppointmentsFormWorkspace:()=>O,earlyAppointments:()=>w,cancelAppointmentModal:()=>D,importTranslation:()=>f,patientAppointmentsSummaryDashboardLink:()=>P,metricsCardHighestVolumeService:()=>T,appointmentsFormWorkspace:()=>U,metricsCardScheduledAppointments:()=>S,patientUpcomingAppointmentsWidget:()=>B,appointmentsDashboardLink:()=>A,homeAppointments:()=>j});var o=n(2735),r=n(7488),a=n(7125),i=n.n(a),s=n(2745),l=function(e){return function(){return i().createElement(s.BrowserRouter,null,i().createElement(o.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},p={path:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments",basePath:"".concat(window.spaBase,"/home")},c={path:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments calendar",basePath:"".concat(window.spaBase,"/home")},u={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"Appointments",icon:"omrs-icon-event-schedule"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function m(e,t,n,o,r,a,i){try{var s=e[a](i),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(o,r)}var h="@openmrs/esm-appointments-app",y={featureName:"appointments",moduleName:h},f=n(4767);function b(){var e="".concat(window.spaBase,"/home/appointments");(0,o.defineConfigSchema)(h,r.Q),(0,o.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(r.push(t.value),2!==r.length);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return r}}(e)||function(e){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=(t[0],t[1]);return"Patient Lists / ".concat(decodeURI(n))},parent:"".concat(window.spaBase)}])}var _=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("635"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("2620"),n.e("8981"),n.e("3220"),n.e("5640"),n.e("8063")]).then(n.bind(n,2130))},y),A=(0,o.getSyncLifecycle)(l(p),y),g=(0,o.getSyncLifecycle)(l(c),y),v=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("635"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("3220"),n.e("2539")]).then(n.bind(n,6735))},y),j=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("7159")]).then(n.bind(n,7690))},y),w=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("3930"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9399"),n.e("7609")]).then(n.bind(n,256))},y),S=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("7357"),n.e("7226"),n.e("8346"),n.e("1884")]).then(n.bind(n,2567))},y),T=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("7357"),n.e("7226"),n.e("8346"),n.e("2495")]).then(n.bind(n,6482))},y),k=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("7357"),n.e("7226"),n.e("8346"),n.e("8937")]).then(n.bind(n,4096))},y),P=(0,o.getAsyncLifecycle)(function(){var e;return(e=function(){return function(e,t){var n,o,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var p=[s,l];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,p[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&p[0]?o.return:p[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,p[1])).done)return r;switch(o=0,r&&(p=[2&p[0],r.value]),p[0]){case 0:case 1:r=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,o=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===p[0]||2===p[0])){a=0;continue}if(3===p[0]&&(!r||p[1]>r[0]&&p[1]<r[3])){a.label=p[1];break}if(6===p[0]&&a.label<r[1]){a.label=r[1],r=p;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(p);break}r[2]&&a.ops.pop(),a.trys.pop();continue}p=t.call(e,a)}catch(e){p=[6,e],o=0}finally{n=r=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}(this,function(e){return[2,{default:(0,o.createDashboard)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},u))}]})},function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){m(a,o,r,i,s,"next",e)}function s(e){m(a,o,r,i,s,"throw",e)}i(void 0)})})()},y),C=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("2620"),n.e("1962")]).then(n.bind(n,7))},y),L=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("2620"),n.e("5640"),n.e("9581")]).then(n.bind(n,4299))},y),B=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("6789")]).then(n.bind(n,8900))},y),D=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("6236")]).then(n.bind(n,6199))},y),U=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("2717"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("8981"),n.e("7138")]).then(n.bind(n,1257))},y),O=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("2717"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("8981"),n.e("7138"),n.e("9282")]).then(n.bind(n,2409))},y),E=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("1465")]).then(n.bind(n,9648))},y),Y=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("9443")]).then(n.bind(n,110))},y),N=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e("3198"),n.e("7226"),n.e("6111"),n.e("8678"),n.e("4307")]).then(n.bind(n,4350))},y)}}]);
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (()=>{var __webpack_modules__={3767(e,t){"use strict";let r="RUNTIME-001",n="RUNTIME-002",o="RUNTIME-003",i="RUNTIME-004",a="RUNTIME-005",s="RUNTIME-006",l="RUNTIME-007",c="RUNTIME-008",u="RUNTIME-009",f="TYPE-001",p="BUILD-001",h="BUILD-002",d=e=>{let t=e.split("-")[0].toLowerCase();return`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${t}/${e}`},m=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(d(e)),n&&o.push(`Original Error Message:
2
- ${n}`),o.join("\n")},y={[r]:"Failed to get remoteEntry exports.",[n]:'The remote entry interface does not contain "init"',[o]:"Failed to get manifest.",[i]:"Failed to locate remote.",[a]:"Invalid loadShareSync function call from bundler runtime",[s]:"Invalid loadShareSync function call from runtime",[l]:"Failed to get remote snapshot.",[c]:"Failed to load script resources.",[u]:"Please call createInstance first."},g={[f]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},_={[p]:"Failed to find expose module.",[h]:"PublicPath is required in prod mode."},b={...y,...g,..._};t.BUILD_001=p,t.BUILD_002=h,t.RUNTIME_001=r,t.RUNTIME_002=n,t.RUNTIME_003=o,t.RUNTIME_004=i,t.RUNTIME_005=a,t.RUNTIME_006=s,t.RUNTIME_007=l,t.RUNTIME_008=c,t.RUNTIME_009=u,t.TYPE_001=f,t.buildDescMap=_,t.errorDescMap=b,t.getShortErrorMsg=m,t.runtimeDescMap=y,t.typeDescMap=g},4767(e,t,r){var n={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function o(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],o=t[0];return r.e(t[1]).then(function(){return r(o)})}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o},7488(e,t,r){"use strict";r.d(t,{Q:()=>i});var n=r(2735),o=r(7003),i={allowAllDayAppointments:{_type:n.Type.Boolean,_default:!1,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)"},appointmentStatuses:{_type:n.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:n.Type.String,_description:"Status of an appointment"}},appointmentTypes:{_type:n.Type.Array,_default:["Scheduled"],_description:"Configurable appointment types (types of appointments)",_elements:{_type:n.Type.String,_description:"Type of an appointment"}},checkInButton:{enabled:{_type:n.Type.Boolean,_default:!0,_description:'Whether the check-in button on the "Appointments" list should be enabled'},customUrl:{_type:n.Type.String,_default:"",_description:"Custom URL to open when clicking the check-in button (instead of the start visit form)"}},checkOutButton:{enabled:{_type:n.Type.Boolean,_default:!0,_description:'Whether the check-out button on the "Appointments" list should be enabled'},customUrl:{_type:n.Type.String,_default:"",_description:"Custom URL to open when clicking the check-out button"}},customPatientChartUrl:{_type:n.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_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>)",_validators:[n.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:n.Type.Boolean,_default:!1,_description:"Whether to include phone numbers in the exported Excel spreadsheet"},patientIdentifierType:{_type:n.Type.String,_default:"",_description:"The name of the patient identifier type to be used for the patient identifier field"},showUnscheduledAppointmentsTab:{_type:n.Type.Boolean,_default:!1,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available"},showEarlyAppointmentsTab:{_type:n.Type.Boolean,_default:!1,_description:"Whether to show the Early Appointments tab. Note that configuring this to true requires a custom earlyAppointment endpoint not currently available"},appointmentsTableColumns:{_type:n.Type.Array,_description:"Columns to display in the appointment table. Available options: "+o.Je.join(", "),_default:["patientName","identifier","location","serviceType","dateTime","visitStartTime","status","actions"],_elements:{_type:n.Type.String,_validators:[n.validators.oneOf(o.Je)]}}}},7003(e,t,r){"use strict";r.d(t,{AO:()=>a,BC:()=>o,Je:()=>u,Mq:()=>c,gC:()=>s,gL:()=>i,i$:()=>l,lw:()=>n});var n="".concat(window.spaBase,"/home"),o="YYYY-MM-DDTHH:mm:ss.SSSZZ",i="Appointment Location",a="@openmrs/esm-appointments-app",s="appointments-form-workspace",l="DD/MM/YYYY",c=[{id:"MONDAY",label:"Monday",labelCode:"monday",order:0},{id:"TUESDAY",label:"Tuesday",labelCode:"tuesday",order:1},{id:"WEDNESDAY",label:"Wednesday",labelCode:"wednesday",order:2},{id:"THURSDAY",label:"Thursday",labelCode:"thursday",order:3},{id:"FRIDAY",label:"Friday",labelCode:"friday",order:4},{id:"SATURDAY",label:"Saturday",labelCode:"saturday",order:5},{id:"SUNDAY",label:"Sunday",labelCode:"sunday",order:6}],u=["patientName","identifier","location","serviceType","status","dateTime","provider","actions","visitStartTime"]},3189(e,t,r){"use strict";var n=r(2735);r(7488);var o=r(7125),i=r.n(o),a=r(2745),s=function(e){return function(){return i().createElement(a.BrowserRouter,null,i().createElement(n.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},l={path:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments",basePath:"".concat(window.spaBase,"/home")},c={path:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments calendar",basePath:"".concat(window.spaBase,"/home")},u={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"appointments",icon:"omrs-icon-event-schedule"};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e){if(Array.isArray(e))return e}function h(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,s,"next",e)}function s(e){h(i,n,o,a,s,"throw",e)}a(void 0)})}}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}function g(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){m(e,t,r[t])})}return e}function b(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}}function E(e,t){var r,n,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),s=Object.defineProperty;return s(a,"next",{value:l(0)}),s(a,"throw",{value:l(1)}),s(a,"return",{value:l(2)}),"function"==typeof Symbol&&s(a,Symbol.iterator,{value:function(){return this}}),a;function l(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var S={featureName:"appointments",moduleName:"@openmrs/esm-appointments-app"};r(4767),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("635"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("2620"),r.e("8981"),r.e("3220"),r.e("5640"),r.e("8063")]).then(r.bind(r,2130))},S),(0,n.getSyncLifecycle)(s(l),S),(0,n.getSyncLifecycle)(s(c),S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("635"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("3220"),r.e("2539")]).then(r.bind(r,6735))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("7159")]).then(r.bind(r,7690))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("7609")]).then(r.bind(r,256))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("7357"),r.e("7226"),r.e("8346"),r.e("1884")]).then(r.bind(r,2567))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("7357"),r.e("7226"),r.e("8346"),r.e("2495")]).then(r.bind(r,6482))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("7357"),r.e("7226"),r.e("8346"),r.e("8937")]).then(r.bind(r,4096))},S),(0,n.getAsyncLifecycle)(function(){return d(function(){return E(this,function(e){return[2,{default:(0,n.createDashboard)(_({},u))}]})})()},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("2620"),r.e("1962")]).then(r.bind(r,7))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("2620"),r.e("5640"),r.e("9581")]).then(r.bind(r,4299))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("6789")]).then(r.bind(r,8900))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("6236")]).then(r.bind(r,6199))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("2717"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("8981"),r.e("7138")]).then(r.bind(r,1257))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("2717"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("8981"),r.e("7138"),r.e("9282")]).then(r.bind(r,2409))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("1465")]).then(r.bind(r,9648))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9443")]).then(r.bind(r,110))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("4307")]).then(r.bind(r,4350))},S)},2872(e,t,r){"use strict";var n=r(2707),o=r.n(n);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){if(Array.isArray(e))return e}function s(e){if(Array.isArray(e))return i(e)}function l(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}function u(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){return a(e)||c(e,t)||m(e,t)||u()}function h(e){return s(e)||l(e)||m(e)||f()}function d(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function m(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}}var y=[].filter(function(e){return e.plugin}).map(function(e){return(0,e.plugin)(e.params)}),g={},_="@openmrs/esm-appointments-app",b="version-first";if((r.initializeSharingData||r.initializeExposesData)&&r.federation){var E,S,v,I,R,N,T,w,A,M,$,O,k=function(e,t,r){e&&e[t]&&(e[t]=r)},P=function(e,t,r){var n,o,i,a,s,l,c,u=r();Array.isArray(u)?(null!=(a=(o=e)[i=t])||(o[i]=[]),(n=e[t]).push.apply(n,h(u))):(void 0===u?"undefined":d(u))==="object"&&null!==u&&(null!=(c=(s=e)[l=t])||(s[l]={}),Object.assign(e[t],u))},D=function(e,t,r){var n,o,i;null!=(i=(n=e)[o=t])||(n[o]=r())},j=null!=(E=null==(N=r.remotesLoadingData)?void 0:N.chunkMapping)?E:{},L=null!=(S=null==(T=r.remotesLoadingData)?void 0:T.moduleIdToRemoteDataMapping)?S:{},x=null!=(v=null==(w=r.initializeSharingData)?void 0:w.scopeToSharingDataMapping)?v:{},F=null!=(I=null==(A=r.consumesLoadingData)?void 0:A.chunkMapping)?I:{},C=null!=(R=null==(M=r.consumesLoadingData)?void 0:M.moduleIdToConsumeDataMapping)?R:{},H={},U=[],V={},G=null==($=r.initializeExposesData)?void 0:$.shareScope;for(var B in o())r.federation[B]=o()[B];D(r.federation,"consumesLoadingModuleToHandlerMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(C)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=a[1];e[s]={getter:l.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:l.requiredVersion,strictVersion:l.strictVersion,singleton:l.singleton,eager:l.eager},scope:[l.shareScope]},shareKey:l.shareKey}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),D(r.federation,"initOptions",function(){return{}}),D(r.federation.initOptions,"name",function(){return _}),D(r.federation.initOptions,"shareStrategy",function(){return b}),D(r.federation.initOptions,"shared",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(x)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=a[1],c=!0,u=!1,f=void 0;try{for(var h,m=l[Symbol.iterator]();!(c=(h=m.next()).done);c=!0){var y=h.value;if((void 0===y?"undefined":d(y))==="object"&&null!==y){var g=y.name,_=y.version,b=y.factory,E=y.eager,S=y.singleton,v=y.requiredVersion,I=y.strictVersion,R={},N=function(e){return void 0!==e};N(S)&&(R.singleton=S),N(v)&&(R.requiredVersion=v),N(E)&&(R.eager=E),N(I)&&(R.strictVersion=I);var T={version:_,scope:[s],shareConfig:R,get:b};e[g]?e[g].push(T):e[g]=[T]}}}catch(e){u=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(u)throw f}}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),P(r.federation.initOptions,"remotes",function(){return Object.values(g).flat().filter(function(e){return"script"===e.externalType})}),P(r.federation.initOptions,"plugins",function(){return y}),D(r.federation,"bundlerRuntimeOptions",function(){return{}}),D(r.federation.bundlerRuntimeOptions,"remotes",function(){return{}}),D(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",function(){return j}),D(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",function(){return g}),D(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(L)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=a[1];e[s]=[l.shareScope,l.name,l.externalModuleId,l.remoteName]}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),D(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",function(){return r}),P(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(L)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=g[a[1].remoteName];l&&(e[s]=l)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),k(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),k(r.f,"remotes",function(e,t){return r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:j,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})}),k(r.f,"consumes",function(e,t){return r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:F,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:H,webpackRequire:r})}),k(r,"I",function(e,t){return r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:U,initTokens:V,webpackRequire:r})}),k(r,"initContainer",function(e,t,n){return r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:G,webpackRequire:r})}),k(r,"getContainer",function(e,t){var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(function(){throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(O=r.consumesLoadingData)?void 0:O.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:H,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},5822(e,t,r){"use strict";var n=r(5882),o=r(3767);let i="[ Federation Runtime ]",a=n.createLogger(i);function s(e,t){e||l(t)}function l(e){if(e instanceof Error)throw e.message.startsWith(i)||(e.message=`${i}: ${e.message}`),e;throw Error(`${i}: ${e}`)}function c(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}function u(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e}function f(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function p(e){return void 0!==e.entry}function h(e){return!e.entry.includes(".json")}async function d(e,t){try{return await e()}catch(e){t||c(e);return}}function m(e){return e&&"object"==typeof e}let y=Object.prototype.toString;function g(e){return"[object Object]"===y.call(e)}function _(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function b(e){return Array.isArray(e)?e:[e]}function E(e){let t={url:"",type:"global",globalName:""};return n.isBrowserEnv()||n.isReactNativeEnv()?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}let S=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t},v="object"==typeof globalThis?globalThis:window,I=(()=>{try{return document.defaultView}catch{return v}})(),R=I;function N(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function T(e,t){return Object.hasOwnProperty.call(e,t)}T(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||N(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let w=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function A(e){T(e,"__VMOK__")&&!T(e,"__FEDERATION__")&&N(e,"__FEDERATION__",e.__VMOK__),T(e,"__FEDERATION__")||(N(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),N(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function M(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(w).forEach(e=>{delete w[e]})}function $(e){v.__FEDERATION__.__INSTANCES__.push(e)}function O(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function k(e,t=n.isDebugMode()){t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.22.0")}function P(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};for(let r of Object.keys(e)){let[n,o]=r.split(":"),i=`${n}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}throw Error("key must be string")}A(v),A(I);let D=()=>I.__FEDERATION__.moduleInfo,j=(e,t)=>{let r=P(t,f(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t,...r}=e,n=f(r),o=P(I.__FEDERATION__.moduleInfo,n).value;if(o?.version===t)return o}},L=e=>j(e,I.__FEDERATION__.moduleInfo),x=(e,t)=>{let r=f(e);return I.__FEDERATION__.moduleInfo[r]=t,I.__FEDERATION__.moduleInfo},F=e=>(I.__FEDERATION__.moduleInfo={...I.__FEDERATION__.moduleInfo,...e},()=>{for(let t of Object.keys(e))delete I.__FEDERATION__.moduleInfo[t]}),C=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`,n=v[r];return{remoteEntryKey:r,entryExports:n}},H=e=>{let{__GLOBAL_PLUGIN__:t}=I.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):c(`The plugin ${e.name} has been registered.`)})},U=()=>I.__FEDERATION__.__GLOBAL_PLUGIN__,V=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),B="default",q="global",W="[0-9A-Za-z-]+",z=`(?:\\+(${W}(?:\\.${W})*))`,Y="0|[1-9]\\d*",K="[0-9]+",J="\\d*[a-zA-Z-][a-zA-Z0-9-]*",X=`(?:${K}|${J})`,Z=`(?:-?(${X}(?:\\.${X})*))`,Q=`(?:${Y}|${J})`,ee=`(?:-(${Q}(?:\\.${Q})*))`,et=`${Y}|x|X|\\*`,er=`[v=\\s]*(${et})(?:\\.(${et})(?:\\.(${et})(?:${ee})?${z}?)?)?`,en=`^\\s*(${er})\\s+-\\s+(${er})\\s*$`,eo=`(${K})\\.(${K})\\.(${K})`,ei=`[v=\\s]*${eo}${Z}?${z}?`,ea="((?:<|>)?=?)",es=`(\\s*)${ea}\\s*(${ei}|${er})`,el="(?:~>?)",ec=`(\\s*)${el}\\s+`,eu="(?:\\^)",ef=`(\\s*)${eu}\\s+`,ep="(<|>)?=?\\s*\\*",eh=`^${eu}${er}$`,ed=`(${Y})\\.(${Y})\\.(${Y})`,em=`v?${ed}${ee}?${z}?`,ey=`^${el}${er}$`,eg=`^${ea}\\s*${er}$`,e_=`^${ea}\\s*(${em})$|^$`,eb="^\\s*>=\\s*0.0.0\\s*$";function eE(e){return new RegExp(e)}function eS(e){return!e||"x"===e.toLowerCase()||"*"===e}function ev(...e){return t=>e.reduce((e,t)=>t(e),t)}function eI(e){return e.match(eE(e_))}function eR(e,t,r,n){let o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}function eN(e){return e.replace(eE(en),(e,t,r,n,o,i,a,s,l,c,u,f)=>(t=eS(r)?"":eS(n)?`>=${r}.0.0`:eS(o)?`>=${r}.${n}.0`:`>=${t}`,s=eS(l)?"":eS(c)?`<${Number(l)+1}.0.0-0`:eS(u)?`<${l}.${Number(c)+1}.0-0`:f?`<=${l}.${c}.${u}-${f}`:`<=${s}`,`${t} ${s}`.trim()))}function eT(e){return e.replace(eE(es),"$1$2$3")}function ew(e){return e.replace(eE(ec),"$1~")}function eA(e){return e.replace(eE(ef),"$1^")}function eM(e){return e.trim().split(/\s+/).map(e=>e.replace(eE(eh),(e,t,r,n,o)=>{if(eS(t))return"";if(eS(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(eS(n))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(o)if("0"!==t)return`>=${t}.${r}.${n}-${o} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${n}-${o} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${n} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${n} <${Number(t)+1}.0.0-0`})).join(" ")}function e$(e){return e.trim().split(/\s+/).map(e=>e.replace(eE(ey),(e,t,r,n,o)=>eS(t)?"":eS(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:eS(n)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:o?`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`)).join(" ")}function eO(e){return e.split(/\s+/).map(e=>e.trim().replace(eE(eg),(e,t,r,n,o,i)=>{let a=eS(r),s=a||eS(n),l=s||eS(o);if("="===t&&l&&(t=""),i="",a)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&l?(s&&(n=0),o=0,">"===t?(t=">=",s?(r=Number(r)+1,n=0):n=Number(n)+1,o=0):"<="===t&&(t="<",s?r=Number(r)+1:n=Number(n)+1),"<"===t&&(i="-0"),`${t+r}.${n}.${o}${i}`):s?`>=${r}.0.0${i} <${Number(r)+1}.0.0-0`:l?`>=${r}.${n}.0${i} <${r}.${Number(n)+1}.0-0`:e})).join(" ")}function ek(e){return e.trim().replace(eE(ep),"")}function eP(e){return e.trim().replace(eE(eb),"")}function eD(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function ej(e,t){let{preRelease:r}=e,{preRelease:n}=t;if(void 0===r&&n)return 1;if(r&&void 0===n)return -1;if(void 0===r&&void 0===n)return 0;for(let e=0,t=r.length;e<=t;e++){let t=r[e],o=n[e];if(t!==o){if(void 0===t&&void 0===o)return 0;if(!t)return 1;if(!o)return -1;return eD(t,o)}}return 0}function eL(e,t){return eD(e.major,t.major)||eD(e.minor,t.minor)||eD(e.patch,t.patch)||ej(e,t)}function ex(e,t){return e.version===t.version}function eF(e,t){switch(e.operator){case"":case"=":return ex(e,t);case">":return 0>eL(e,t);case">=":return ex(e,t)||0>eL(e,t);case"<":return eL(e,t)>0;case"<=":return ex(e,t)||eL(e,t)>0;case void 0:return!0;default:return!1}}function eC(e){return ev(eM,e$,eO,ek)(e)}function eH(e){return ev(eN,eT,ew,eA)(e.trim()).split(/\s+/).join(" ")}function eU(e,t){if(!e)return!1;let r=eI(e);if(!r)return!1;let[,n,,o,i,a,s]=r,l={operator:n,version:eR(o,i,a,s),major:o,minor:i,patch:a,preRelease:s?.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=eH(t);if(!e.trim())return!0;let r=e.split(" ").map(e=>eC(e)).join(" ");if(!r.trim())return!0;let n=r.split(/\s+/).map(e=>eP(e)).filter(Boolean);if(0===n.length)continue;let o=!0;for(let e of n){let t=eI(e);if(!t){o=!1;break}let[,r,,n,i,a,s]=t,c={operator:r,version:eR(n,i,a,s),major:n,minor:i,patch:a,preRelease:s?.split(".")};if(!eF(c,l)){o=!1;break}}if(o)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}function eV(e,t,r,n){let o;return o="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{throw Error(`Can not get shared '${r}'!`)}),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:o,loaded:!!e?.loaded||"lib"in e||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first"}}function eG(e,t){let r=t.shared||{},n=t.name,o=Object.keys(r).reduce((e,o)=>{let i=b(r[o]);return e[o]=e[o]||[],i.forEach(r=>{e[o].push(eV(r,n,o,t.shareStrategy))}),e},{}),i={...e.shared};return Object.keys(o).forEach(e=>{i[e]?o[e].forEach(t=>{i[e].find(e=>e.version===t.version)||i[e].push(t)}):i[e]=o[e]}),{shared:i,shareInfos:o}}function eB(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!eU(r(e),`<=${r(t)}`)}let eq=(e,t)=>{let r=t||function(e,t){return eB(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},eW=e=>!!e.loaded||"function"==typeof e.lib,ez=e=>!!e.loading;function eY(e,t,r){let n=e[t][r],o=function(e,t){return!eW(n[e])&&eB(e,t)};return eq(e[t][r],o)}function eK(e,t,r){let n=e[t][r],o=function(e,t){let r=e=>eW(e)||ez(e);if(r(n[t]))if(r(n[e]))return!!eB(e,t);else return!0;return!r(n[e])&&eB(e,t)};return eq(e[t][r],o)}function eJ(e){return"loaded-first"===e?eK:eY}function eX(e,t,r,n){if(!e)return;let{shareConfig:o,scope:i=B,strategy:a}=r;for(let s of Array.isArray(i)?i:[i])if(o&&e[s]&&e[s][t]){let{requiredVersion:i}=o,u=eJ(a)(e,s,t),f=()=>{if(o.singleton){if("string"==typeof i&&!eU(u,i)){let n=`Version ${u} from ${u&&e[s][t][u].from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${i})`;o.strictVersion?l(n):c(n)}return e[s][t][u]}if(!1===i||"*"===i||eU(u,i))return e[s][t][u];for(let[r,n]of Object.entries(e[s][t]))if(eU(r,i))return n},p={shareScopeMap:e,scope:s,pkgName:t,version:u,GlobalFederation:R.__FEDERATION__,resolver:f};return(n.emit(p)||p).resolver()}}function eZ(){return R.__FEDERATION__.__SHARE__}function eQ(e){let{pkgName:t,extraOptions:r,shareInfos:n}=e,o=e=>{if(!e)return;let t={};e.forEach(e=>{t[e.version]=e});let r=function(e,r){return!eW(t[e])&&eB(e,r)},n=eq(t,r);return t[n]};return Object.assign({},(r?.resolver??o)(n[t]),r?.customShareInfo)}function e0(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}function e1(e,t){for(let r of e){let e=t.startsWith(r.name),n=t.replace(r.name,"");if(e){if(n.startsWith("/"))return{pkgNameOrAlias:r.name,expose:n=`.${n}`,remote:r};else if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let o=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&o){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function e2(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}function e7(e,t){let r=U(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{e?.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}let e6=".then(callbacks[0]).catch(callbacks[1])";async function e9({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${e}")${e6}`)([r,n]):import(e).then(r).catch(n)}catch(e){n(e)}})}async function e8({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):Function("callbacks",`System.import("${e}")${e6}`)([r,n])}catch(e){n(e)}})}function e3(e,t,r){let{remoteEntryKey:n,entryExports:i}=C(e,t);return s(i,o.getShortErrorMsg(o.RUNTIME_001,o.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n})),i}async function e4({name:e,globalName:t,entry:r,loaderHook:i,getEntryUrl:a}){let{entryExports:l}=C(e,t);if(l)return l;let c=a?a(r):r;return n.loadScript(c,{attrs:{},createScriptHook:(e,t)=>{let r=i.lifecycle.createScript.emit({url:e,attrs:t});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>e3(e,t,r)).catch(t=>{throw s(void 0,o.getShortErrorMsg(o.RUNTIME_008,o.runtimeDescMap,{remoteName:e,resourceUrl:r})),t})}async function e5({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:n}){let{entry:o,entryGlobalName:i,name:a,type:s}=e;switch(s){case"esm":case"module":return e9({entry:o,remoteEntryExports:t});case"system":return e8({entry:o,remoteEntryExports:t});default:return e4({entry:o,globalName:i,name:a,loaderHook:r,getEntryUrl:n})}}async function te({remoteInfo:e,loaderHook:t}){let{entry:r,entryGlobalName:o,name:i,type:a}=e,{entryExports:s}=C(i,o);return s||n.loadScriptNode(r,{attrs:{name:i,globalName:o,type:a},loaderHook:{createScriptHook:(e,r={})=>{let n=t.lifecycle.createScript.emit({url:e,attrs:r});if(n&&"url"in n)return n}}}).then(()=>e3(i,o,r)).catch(e=>{throw e})}function tt(e){let{entry:t,name:r}=e;return n.composeKeyWithSeparator(r,t)}async function tr(e){let{origin:t,remoteEntryExports:r,remoteInfo:i,getEntryUrl:a,_inErrorHandling:s=!1}=e,l=tt(i);if(r)return r;if(!w[l]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;w[l]=e.emit({loaderHook:c,remoteInfo:i,remoteEntryExports:r}).then(e=>e||(("u">typeof ENV_TARGET?"web"===ENV_TARGET:n.isBrowserEnv())?e5({remoteInfo:i,remoteEntryExports:r,loaderHook:c,getEntryUrl:a}):te({remoteInfo:i,loaderHook:c}))).catch(async e=>{let n=tt(i);if(e instanceof Error&&e.message.includes(o.RUNTIME_008)&&!s){let e=e=>tr({...e,_inErrorHandling:!0}),o=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:i,remoteEntryExports:r,globalLoading:w,uniqueKey:n});if(o)return o}throw e})}return w[l]}function tn(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||q,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||B}}function to(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ti(e,t){return t.map(t=>{let r=e2(e,t.nameOrAlias);return s(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&n.safeToString({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:to(t)}})}function ta(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]}function ts(e,t,r,o=!0){let{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:s}=r;if(t.options.inBrowser){if(s.forEach(r=>{let{moduleInfo:n}=r,o=t.moduleCache.get(e.name);o?tr({origin:t,remoteInfo:n,remoteEntryExports:o.remoteEntryExports}):tr({origin:t,remoteInfo:n,remoteEntryExports:void 0})}),o){let e={rel:"preload",as:"style"};i.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(o)})}else{let e={rel:"stylesheet",type:"text/css"};i.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});i&&document.head.appendChild(o)})}if(o){let e={rel:"preload",as:"script"};a.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(o)})}else{let r={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};a.forEach(e=>{let{script:o,needAttach:i}=n.createScript({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});i&&document.head.appendChild(o)})}}}var tl={global:{Global:R,nativeGlobal:I,resetFederationGlobalInfo:M,setGlobalFederationInstance:$,getGlobalFederationConstructor:O,setGlobalFederationConstructor:k,getInfoWithoutType:P,getGlobalSnapshot:D,getTargetSnapshotInfoByModuleInfo:j,getGlobalSnapshotInfoByModuleInfo:L,setGlobalSnapshotInfoByModuleInfo:x,addGlobalSnapshot:F,getRemoteEntryExports:C,registerGlobalPlugins:H,getGlobalHostPlugins:U,getPreloaded:V,setPreloaded:G},share:{getRegisteredShare:eX,getGlobalShareScope:eZ},utils:{matchRemoteWithNameAndExpose:e1,preloadAssets:ts,getRemoteInfo:tn}};class tc{constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(){let e;return this.remoteEntryExports||(s(e=await tr({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports}),`remoteEntryExports is undefined
2
+ ${n}`),o.join("\n")},y={[r]:"Failed to get remoteEntry exports.",[n]:'The remote entry interface does not contain "init"',[o]:"Failed to get manifest.",[i]:"Failed to locate remote.",[a]:"Invalid loadShareSync function call from bundler runtime",[s]:"Invalid loadShareSync function call from runtime",[l]:"Failed to get remote snapshot.",[c]:"Failed to load script resources.",[u]:"Please call createInstance first."},g={[f]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},_={[p]:"Failed to find expose module.",[h]:"PublicPath is required in prod mode."},b={...y,...g,..._};t.BUILD_001=p,t.BUILD_002=h,t.RUNTIME_001=r,t.RUNTIME_002=n,t.RUNTIME_003=o,t.RUNTIME_004=i,t.RUNTIME_005=a,t.RUNTIME_006=s,t.RUNTIME_007=l,t.RUNTIME_008=c,t.RUNTIME_009=u,t.TYPE_001=f,t.buildDescMap=_,t.errorDescMap=b,t.getShortErrorMsg=m,t.runtimeDescMap=y,t.typeDescMap=g},4767(e,t,r){var n={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function o(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],o=t[0];return r.e(t[1]).then(function(){return r(o)})}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o},7488(e,t,r){"use strict";r.d(t,{Q:()=>i});var n=r(2735),o=r(7003),i={allowAllDayAppointments:{_type:n.Type.Boolean,_default:!1,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)"},appointmentStatuses:{_type:n.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:n.Type.String,_description:"Status of an appointment"}},appointmentTypes:{_type:n.Type.Array,_default:["Scheduled"],_description:"Configurable appointment types (types of appointments)",_elements:{_type:n.Type.String,_description:"Type of an appointment"}},checkInButton:{enabled:{_type:n.Type.Boolean,_default:!0,_description:'Whether the check-in button on the "Appointments" list should be enabled'},customUrl:{_type:n.Type.String,_default:"",_description:"Custom URL to open when clicking the check-in button (instead of the start visit form)"}},checkOutButton:{enabled:{_type:n.Type.Boolean,_default:!0,_description:'Whether the check-out button on the "Appointments" list should be enabled'},customUrl:{_type:n.Type.String,_default:"",_description:"Custom URL to open when clicking the check-out button"}},customPatientChartUrl:{_type:n.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_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>)",_validators:[n.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:n.Type.Boolean,_default:!1,_description:"Whether to include phone numbers in the exported Excel spreadsheet"},patientIdentifierType:{_type:n.Type.String,_default:"",_description:"The name of the patient identifier type to be used for the patient identifier field"},showUnscheduledAppointmentsTab:{_type:n.Type.Boolean,_default:!1,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available"},showEarlyAppointmentsTab:{_type:n.Type.Boolean,_default:!1,_description:"Whether to show the Early Appointments tab. Note that configuring this to true requires a custom earlyAppointment endpoint not currently available"},appointmentsTableColumns:{_type:n.Type.Array,_description:"Columns to display in the appointment table. Available options: "+o.Je.join(", "),_default:["patientName","identifier","location","serviceType","dateTime","visitStartTime","status","actions"],_elements:{_type:n.Type.String,_validators:[n.validators.oneOf(o.Je)]}}}},7003(e,t,r){"use strict";r.d(t,{AO:()=>a,BC:()=>o,Je:()=>u,Mq:()=>c,gC:()=>s,gL:()=>i,i$:()=>l,lw:()=>n});var n="".concat(window.spaBase,"/home"),o="YYYY-MM-DDTHH:mm:ss.SSSZZ",i="Appointment Location",a="@openmrs/esm-appointments-app",s="appointments-form-workspace",l="DD/MM/YYYY",c=[{id:"MONDAY",label:"Monday",labelCode:"monday",order:0},{id:"TUESDAY",label:"Tuesday",labelCode:"tuesday",order:1},{id:"WEDNESDAY",label:"Wednesday",labelCode:"wednesday",order:2},{id:"THURSDAY",label:"Thursday",labelCode:"thursday",order:3},{id:"FRIDAY",label:"Friday",labelCode:"friday",order:4},{id:"SATURDAY",label:"Saturday",labelCode:"saturday",order:5},{id:"SUNDAY",label:"Sunday",labelCode:"sunday",order:6}],u=["patientName","identifier","location","serviceType","status","dateTime","provider","actions","visitStartTime"]},3189(e,t,r){"use strict";var n=r(2735);r(7488);var o=r(7125),i=r.n(o),a=r(2745),s=function(e){return function(){return i().createElement(a.BrowserRouter,null,i().createElement(n.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},l={path:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments",basePath:"".concat(window.spaBase,"/home")},c={path:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments calendar",basePath:"".concat(window.spaBase,"/home")},u={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"Appointments",icon:"omrs-icon-event-schedule"};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e){if(Array.isArray(e))return e}function h(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,s,"next",e)}function s(e){h(i,n,o,a,s,"throw",e)}a(void 0)})}}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}function g(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){m(e,t,r[t])})}return e}function b(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}}function E(e,t){var r,n,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),s=Object.defineProperty;return s(a,"next",{value:l(0)}),s(a,"throw",{value:l(1)}),s(a,"return",{value:l(2)}),"function"==typeof Symbol&&s(a,Symbol.iterator,{value:function(){return this}}),a;function l(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var S={featureName:"appointments",moduleName:"@openmrs/esm-appointments-app"};r(4767),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("635"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("2620"),r.e("8981"),r.e("3220"),r.e("5640"),r.e("8063")]).then(r.bind(r,2130))},S),(0,n.getSyncLifecycle)(s(l),S),(0,n.getSyncLifecycle)(s(c),S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("635"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("3220"),r.e("2539")]).then(r.bind(r,6735))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("7159")]).then(r.bind(r,7690))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("3930"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9399"),r.e("7609")]).then(r.bind(r,256))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("7357"),r.e("7226"),r.e("8346"),r.e("1884")]).then(r.bind(r,2567))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("7357"),r.e("7226"),r.e("8346"),r.e("2495")]).then(r.bind(r,6482))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("7357"),r.e("7226"),r.e("8346"),r.e("8937")]).then(r.bind(r,4096))},S),(0,n.getAsyncLifecycle)(function(){return d(function(){return E(this,function(e){return[2,{default:(0,n.createDashboard)(_({},u))}]})})()},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("2620"),r.e("1962")]).then(r.bind(r,7))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("2620"),r.e("5640"),r.e("9581")]).then(r.bind(r,4299))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("6789")]).then(r.bind(r,8900))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("6236")]).then(r.bind(r,6199))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("2717"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("8981"),r.e("7138")]).then(r.bind(r,1257))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("2717"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("8981"),r.e("7138"),r.e("9282")]).then(r.bind(r,2409))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("1465")]).then(r.bind(r,9648))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("9443")]).then(r.bind(r,110))},S),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3198"),r.e("7226"),r.e("6111"),r.e("8678"),r.e("4307")]).then(r.bind(r,4350))},S)},2872(e,t,r){"use strict";var n=r(2707),o=r.n(n);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){if(Array.isArray(e))return e}function s(e){if(Array.isArray(e))return i(e)}function l(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}function u(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){return a(e)||c(e,t)||m(e,t)||u()}function h(e){return s(e)||l(e)||m(e)||f()}function d(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function m(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}}var y=[].filter(function(e){return e.plugin}).map(function(e){return(0,e.plugin)(e.params)}),g={},_="@openmrs/esm-appointments-app",b="version-first";if((r.initializeSharingData||r.initializeExposesData)&&r.federation){var E,S,v,I,R,N,T,w,A,M,$,O,k=function(e,t,r){e&&e[t]&&(e[t]=r)},P=function(e,t,r){var n,o,i,a,s,l,c,u=r();Array.isArray(u)?(null!=(a=(o=e)[i=t])||(o[i]=[]),(n=e[t]).push.apply(n,h(u))):(void 0===u?"undefined":d(u))==="object"&&null!==u&&(null!=(c=(s=e)[l=t])||(s[l]={}),Object.assign(e[t],u))},D=function(e,t,r){var n,o,i;null!=(i=(n=e)[o=t])||(n[o]=r())},j=null!=(E=null==(N=r.remotesLoadingData)?void 0:N.chunkMapping)?E:{},L=null!=(S=null==(T=r.remotesLoadingData)?void 0:T.moduleIdToRemoteDataMapping)?S:{},x=null!=(v=null==(w=r.initializeSharingData)?void 0:w.scopeToSharingDataMapping)?v:{},F=null!=(I=null==(A=r.consumesLoadingData)?void 0:A.chunkMapping)?I:{},C=null!=(R=null==(M=r.consumesLoadingData)?void 0:M.moduleIdToConsumeDataMapping)?R:{},H={},U=[],V={},G=null==($=r.initializeExposesData)?void 0:$.shareScope;for(var B in o())r.federation[B]=o()[B];D(r.federation,"consumesLoadingModuleToHandlerMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(C)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=a[1];e[s]={getter:l.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:l.requiredVersion,strictVersion:l.strictVersion,singleton:l.singleton,eager:l.eager},scope:[l.shareScope]},shareKey:l.shareKey}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),D(r.federation,"initOptions",function(){return{}}),D(r.federation.initOptions,"name",function(){return _}),D(r.federation.initOptions,"shareStrategy",function(){return b}),D(r.federation.initOptions,"shared",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(x)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=a[1],c=!0,u=!1,f=void 0;try{for(var h,m=l[Symbol.iterator]();!(c=(h=m.next()).done);c=!0){var y=h.value;if((void 0===y?"undefined":d(y))==="object"&&null!==y){var g=y.name,_=y.version,b=y.factory,E=y.eager,S=y.singleton,v=y.requiredVersion,I=y.strictVersion,R={},N=function(e){return void 0!==e};N(S)&&(R.singleton=S),N(v)&&(R.requiredVersion=v),N(E)&&(R.eager=E),N(I)&&(R.strictVersion=I);var T={version:_,scope:[s],shareConfig:R,get:b};e[g]?e[g].push(T):e[g]=[T]}}}catch(e){u=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(u)throw f}}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),P(r.federation.initOptions,"remotes",function(){return Object.values(g).flat().filter(function(e){return"script"===e.externalType})}),P(r.federation.initOptions,"plugins",function(){return y}),D(r.federation,"bundlerRuntimeOptions",function(){return{}}),D(r.federation.bundlerRuntimeOptions,"remotes",function(){return{}}),D(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",function(){return j}),D(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",function(){return g}),D(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(L)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=a[1];e[s]=[l.shareScope,l.name,l.externalModuleId,l.remoteName]}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),D(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",function(){return r}),P(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.entries(L)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=p(o.value,2),s=a[0],l=g[a[1].remoteName];l&&(e[s]=l)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}),k(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),k(r.f,"remotes",function(e,t){return r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:j,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})}),k(r.f,"consumes",function(e,t){return r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:F,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:H,webpackRequire:r})}),k(r,"I",function(e,t){return r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:U,initTokens:V,webpackRequire:r})}),k(r,"initContainer",function(e,t,n){return r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:G,webpackRequire:r})}),k(r,"getContainer",function(e,t){var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(function(){throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(O=r.consumesLoadingData)?void 0:O.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:H,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},5822(e,t,r){"use strict";var n=r(5882),o=r(3767);let i="[ Federation Runtime ]",a=n.createLogger(i);function s(e,t){e||l(t)}function l(e){if(e instanceof Error)throw e.message.startsWith(i)||(e.message=`${i}: ${e.message}`),e;throw Error(`${i}: ${e}`)}function c(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}function u(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e}function f(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function p(e){return void 0!==e.entry}function h(e){return!e.entry.includes(".json")}async function d(e,t){try{return await e()}catch(e){t||c(e);return}}function m(e){return e&&"object"==typeof e}let y=Object.prototype.toString;function g(e){return"[object Object]"===y.call(e)}function _(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function b(e){return Array.isArray(e)?e:[e]}function E(e){let t={url:"",type:"global",globalName:""};return n.isBrowserEnv()||n.isReactNativeEnv()?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}let S=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t},v="object"==typeof globalThis?globalThis:window,I=(()=>{try{return document.defaultView}catch{return v}})(),R=I;function N(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function T(e,t){return Object.hasOwnProperty.call(e,t)}T(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||N(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let w=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function A(e){T(e,"__VMOK__")&&!T(e,"__FEDERATION__")&&N(e,"__FEDERATION__",e.__VMOK__),T(e,"__FEDERATION__")||(N(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),N(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function M(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(w).forEach(e=>{delete w[e]})}function $(e){v.__FEDERATION__.__INSTANCES__.push(e)}function O(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function k(e,t=n.isDebugMode()){t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.22.0")}function P(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};for(let r of Object.keys(e)){let[n,o]=r.split(":"),i=`${n}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}throw Error("key must be string")}A(v),A(I);let D=()=>I.__FEDERATION__.moduleInfo,j=(e,t)=>{let r=P(t,f(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t,...r}=e,n=f(r),o=P(I.__FEDERATION__.moduleInfo,n).value;if(o?.version===t)return o}},L=e=>j(e,I.__FEDERATION__.moduleInfo),x=(e,t)=>{let r=f(e);return I.__FEDERATION__.moduleInfo[r]=t,I.__FEDERATION__.moduleInfo},F=e=>(I.__FEDERATION__.moduleInfo={...I.__FEDERATION__.moduleInfo,...e},()=>{for(let t of Object.keys(e))delete I.__FEDERATION__.moduleInfo[t]}),C=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`,n=v[r];return{remoteEntryKey:r,entryExports:n}},H=e=>{let{__GLOBAL_PLUGIN__:t}=I.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):c(`The plugin ${e.name} has been registered.`)})},U=()=>I.__FEDERATION__.__GLOBAL_PLUGIN__,V=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),B="default",q="global",W="[0-9A-Za-z-]+",z=`(?:\\+(${W}(?:\\.${W})*))`,Y="0|[1-9]\\d*",K="[0-9]+",J="\\d*[a-zA-Z-][a-zA-Z0-9-]*",X=`(?:${K}|${J})`,Z=`(?:-?(${X}(?:\\.${X})*))`,Q=`(?:${Y}|${J})`,ee=`(?:-(${Q}(?:\\.${Q})*))`,et=`${Y}|x|X|\\*`,er=`[v=\\s]*(${et})(?:\\.(${et})(?:\\.(${et})(?:${ee})?${z}?)?)?`,en=`^\\s*(${er})\\s+-\\s+(${er})\\s*$`,eo=`(${K})\\.(${K})\\.(${K})`,ei=`[v=\\s]*${eo}${Z}?${z}?`,ea="((?:<|>)?=?)",es=`(\\s*)${ea}\\s*(${ei}|${er})`,el="(?:~>?)",ec=`(\\s*)${el}\\s+`,eu="(?:\\^)",ef=`(\\s*)${eu}\\s+`,ep="(<|>)?=?\\s*\\*",eh=`^${eu}${er}$`,ed=`(${Y})\\.(${Y})\\.(${Y})`,em=`v?${ed}${ee}?${z}?`,ey=`^${el}${er}$`,eg=`^${ea}\\s*${er}$`,e_=`^${ea}\\s*(${em})$|^$`,eb="^\\s*>=\\s*0.0.0\\s*$";function eE(e){return new RegExp(e)}function eS(e){return!e||"x"===e.toLowerCase()||"*"===e}function ev(...e){return t=>e.reduce((e,t)=>t(e),t)}function eI(e){return e.match(eE(e_))}function eR(e,t,r,n){let o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}function eN(e){return e.replace(eE(en),(e,t,r,n,o,i,a,s,l,c,u,f)=>(t=eS(r)?"":eS(n)?`>=${r}.0.0`:eS(o)?`>=${r}.${n}.0`:`>=${t}`,s=eS(l)?"":eS(c)?`<${Number(l)+1}.0.0-0`:eS(u)?`<${l}.${Number(c)+1}.0-0`:f?`<=${l}.${c}.${u}-${f}`:`<=${s}`,`${t} ${s}`.trim()))}function eT(e){return e.replace(eE(es),"$1$2$3")}function ew(e){return e.replace(eE(ec),"$1~")}function eA(e){return e.replace(eE(ef),"$1^")}function eM(e){return e.trim().split(/\s+/).map(e=>e.replace(eE(eh),(e,t,r,n,o)=>{if(eS(t))return"";if(eS(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(eS(n))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(o)if("0"!==t)return`>=${t}.${r}.${n}-${o} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${n}-${o} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${n} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${n} <${Number(t)+1}.0.0-0`})).join(" ")}function e$(e){return e.trim().split(/\s+/).map(e=>e.replace(eE(ey),(e,t,r,n,o)=>eS(t)?"":eS(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:eS(n)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:o?`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`)).join(" ")}function eO(e){return e.split(/\s+/).map(e=>e.trim().replace(eE(eg),(e,t,r,n,o,i)=>{let a=eS(r),s=a||eS(n),l=s||eS(o);if("="===t&&l&&(t=""),i="",a)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&l?(s&&(n=0),o=0,">"===t?(t=">=",s?(r=Number(r)+1,n=0):n=Number(n)+1,o=0):"<="===t&&(t="<",s?r=Number(r)+1:n=Number(n)+1),"<"===t&&(i="-0"),`${t+r}.${n}.${o}${i}`):s?`>=${r}.0.0${i} <${Number(r)+1}.0.0-0`:l?`>=${r}.${n}.0${i} <${r}.${Number(n)+1}.0-0`:e})).join(" ")}function ek(e){return e.trim().replace(eE(ep),"")}function eP(e){return e.trim().replace(eE(eb),"")}function eD(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function ej(e,t){let{preRelease:r}=e,{preRelease:n}=t;if(void 0===r&&n)return 1;if(r&&void 0===n)return -1;if(void 0===r&&void 0===n)return 0;for(let e=0,t=r.length;e<=t;e++){let t=r[e],o=n[e];if(t!==o){if(void 0===t&&void 0===o)return 0;if(!t)return 1;if(!o)return -1;return eD(t,o)}}return 0}function eL(e,t){return eD(e.major,t.major)||eD(e.minor,t.minor)||eD(e.patch,t.patch)||ej(e,t)}function ex(e,t){return e.version===t.version}function eF(e,t){switch(e.operator){case"":case"=":return ex(e,t);case">":return 0>eL(e,t);case">=":return ex(e,t)||0>eL(e,t);case"<":return eL(e,t)>0;case"<=":return ex(e,t)||eL(e,t)>0;case void 0:return!0;default:return!1}}function eC(e){return ev(eM,e$,eO,ek)(e)}function eH(e){return ev(eN,eT,ew,eA)(e.trim()).split(/\s+/).join(" ")}function eU(e,t){if(!e)return!1;let r=eI(e);if(!r)return!1;let[,n,,o,i,a,s]=r,l={operator:n,version:eR(o,i,a,s),major:o,minor:i,patch:a,preRelease:s?.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=eH(t);if(!e.trim())return!0;let r=e.split(" ").map(e=>eC(e)).join(" ");if(!r.trim())return!0;let n=r.split(/\s+/).map(e=>eP(e)).filter(Boolean);if(0===n.length)continue;let o=!0;for(let e of n){let t=eI(e);if(!t){o=!1;break}let[,r,,n,i,a,s]=t,c={operator:r,version:eR(n,i,a,s),major:n,minor:i,patch:a,preRelease:s?.split(".")};if(!eF(c,l)){o=!1;break}}if(o)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}function eV(e,t,r,n){let o;return o="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{throw Error(`Can not get shared '${r}'!`)}),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:o,loaded:!!e?.loaded||"lib"in e||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first"}}function eG(e,t){let r=t.shared||{},n=t.name,o=Object.keys(r).reduce((e,o)=>{let i=b(r[o]);return e[o]=e[o]||[],i.forEach(r=>{e[o].push(eV(r,n,o,t.shareStrategy))}),e},{}),i={...e.shared};return Object.keys(o).forEach(e=>{i[e]?o[e].forEach(t=>{i[e].find(e=>e.version===t.version)||i[e].push(t)}):i[e]=o[e]}),{shared:i,shareInfos:o}}function eB(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!eU(r(e),`<=${r(t)}`)}let eq=(e,t)=>{let r=t||function(e,t){return eB(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},eW=e=>!!e.loaded||"function"==typeof e.lib,ez=e=>!!e.loading;function eY(e,t,r){let n=e[t][r],o=function(e,t){return!eW(n[e])&&eB(e,t)};return eq(e[t][r],o)}function eK(e,t,r){let n=e[t][r],o=function(e,t){let r=e=>eW(e)||ez(e);if(r(n[t]))if(r(n[e]))return!!eB(e,t);else return!0;return!r(n[e])&&eB(e,t)};return eq(e[t][r],o)}function eJ(e){return"loaded-first"===e?eK:eY}function eX(e,t,r,n){if(!e)return;let{shareConfig:o,scope:i=B,strategy:a}=r;for(let s of Array.isArray(i)?i:[i])if(o&&e[s]&&e[s][t]){let{requiredVersion:i}=o,u=eJ(a)(e,s,t),f=()=>{if(o.singleton){if("string"==typeof i&&!eU(u,i)){let n=`Version ${u} from ${u&&e[s][t][u].from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${i})`;o.strictVersion?l(n):c(n)}return e[s][t][u]}if(!1===i||"*"===i||eU(u,i))return e[s][t][u];for(let[r,n]of Object.entries(e[s][t]))if(eU(r,i))return n},p={shareScopeMap:e,scope:s,pkgName:t,version:u,GlobalFederation:R.__FEDERATION__,resolver:f};return(n.emit(p)||p).resolver()}}function eZ(){return R.__FEDERATION__.__SHARE__}function eQ(e){let{pkgName:t,extraOptions:r,shareInfos:n}=e,o=e=>{if(!e)return;let t={};e.forEach(e=>{t[e.version]=e});let r=function(e,r){return!eW(t[e])&&eB(e,r)},n=eq(t,r);return t[n]};return Object.assign({},(r?.resolver??o)(n[t]),r?.customShareInfo)}function e0(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}function e1(e,t){for(let r of e){let e=t.startsWith(r.name),n=t.replace(r.name,"");if(e){if(n.startsWith("/"))return{pkgNameOrAlias:r.name,expose:n=`.${n}`,remote:r};else if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let o=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&o){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function e2(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}function e7(e,t){let r=U(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{e?.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}let e6=".then(callbacks[0]).catch(callbacks[1])";async function e9({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${e}")${e6}`)([r,n]):import(e).then(r).catch(n)}catch(e){n(e)}})}async function e8({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):Function("callbacks",`System.import("${e}")${e6}`)([r,n])}catch(e){n(e)}})}function e3(e,t,r){let{remoteEntryKey:n,entryExports:i}=C(e,t);return s(i,o.getShortErrorMsg(o.RUNTIME_001,o.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n})),i}async function e4({name:e,globalName:t,entry:r,loaderHook:i,getEntryUrl:a}){let{entryExports:l}=C(e,t);if(l)return l;let c=a?a(r):r;return n.loadScript(c,{attrs:{},createScriptHook:(e,t)=>{let r=i.lifecycle.createScript.emit({url:e,attrs:t});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>e3(e,t,r)).catch(t=>{throw s(void 0,o.getShortErrorMsg(o.RUNTIME_008,o.runtimeDescMap,{remoteName:e,resourceUrl:r})),t})}async function e5({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:n}){let{entry:o,entryGlobalName:i,name:a,type:s}=e;switch(s){case"esm":case"module":return e9({entry:o,remoteEntryExports:t});case"system":return e8({entry:o,remoteEntryExports:t});default:return e4({entry:o,globalName:i,name:a,loaderHook:r,getEntryUrl:n})}}async function te({remoteInfo:e,loaderHook:t}){let{entry:r,entryGlobalName:o,name:i,type:a}=e,{entryExports:s}=C(i,o);return s||n.loadScriptNode(r,{attrs:{name:i,globalName:o,type:a},loaderHook:{createScriptHook:(e,r={})=>{let n=t.lifecycle.createScript.emit({url:e,attrs:r});if(n&&"url"in n)return n}}}).then(()=>e3(i,o,r)).catch(e=>{throw e})}function tt(e){let{entry:t,name:r}=e;return n.composeKeyWithSeparator(r,t)}async function tr(e){let{origin:t,remoteEntryExports:r,remoteInfo:i,getEntryUrl:a,_inErrorHandling:s=!1}=e,l=tt(i);if(r)return r;if(!w[l]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;w[l]=e.emit({loaderHook:c,remoteInfo:i,remoteEntryExports:r}).then(e=>e||(("u">typeof ENV_TARGET?"web"===ENV_TARGET:n.isBrowserEnv())?e5({remoteInfo:i,remoteEntryExports:r,loaderHook:c,getEntryUrl:a}):te({remoteInfo:i,loaderHook:c}))).catch(async e=>{let n=tt(i);if(e instanceof Error&&e.message.includes(o.RUNTIME_008)&&!s){let e=e=>tr({...e,_inErrorHandling:!0}),o=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:i,remoteEntryExports:r,globalLoading:w,uniqueKey:n});if(o)return o}throw e})}return w[l]}function tn(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||q,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||B}}function to(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ti(e,t){return t.map(t=>{let r=e2(e,t.nameOrAlias);return s(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&n.safeToString({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:to(t)}})}function ta(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]}function ts(e,t,r,o=!0){let{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:s}=r;if(t.options.inBrowser){if(s.forEach(r=>{let{moduleInfo:n}=r,o=t.moduleCache.get(e.name);o?tr({origin:t,remoteInfo:n,remoteEntryExports:o.remoteEntryExports}):tr({origin:t,remoteInfo:n,remoteEntryExports:void 0})}),o){let e={rel:"preload",as:"style"};i.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(o)})}else{let e={rel:"stylesheet",type:"text/css"};i.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});i&&document.head.appendChild(o)})}if(o){let e={rel:"preload",as:"script"};a.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(o)})}else{let r={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};a.forEach(e=>{let{script:o,needAttach:i}=n.createScript({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});i&&document.head.appendChild(o)})}}}var tl={global:{Global:R,nativeGlobal:I,resetFederationGlobalInfo:M,setGlobalFederationInstance:$,getGlobalFederationConstructor:O,setGlobalFederationConstructor:k,getInfoWithoutType:P,getGlobalSnapshot:D,getTargetSnapshotInfoByModuleInfo:j,getGlobalSnapshotInfoByModuleInfo:L,setGlobalSnapshotInfoByModuleInfo:x,addGlobalSnapshot:F,getRemoteEntryExports:C,registerGlobalPlugins:H,getGlobalHostPlugins:U,getPreloaded:V,setPreloaded:G},share:{getRegisteredShare:eX,getGlobalShareScope:eZ},utils:{matchRemoteWithNameAndExpose:e1,preloadAssets:ts,getRemoteInfo:tn}};class tc{constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(){let e;return this.remoteEntryExports||(s(e=await tr({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports}),`remoteEntryExports is undefined
3
3
  ${n.safeToString(this.remoteInfo)}`),this.remoteEntryExports=e),this.remoteEntryExports}async get(e,t,r,n){let i,{loadFactory:a=!0}=r||{loadFactory:!0},c=await this.getEntry();if(!this.inited){let t=this.host.shareScopeMap,r=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];r.length||r.push("default"),r.forEach(e=>{t[e]||(t[e]={})});let i=t[r[0]],a=[],s={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?r:this.remoteInfo.shareScope||"default"};Object.defineProperty(s,"shareScopeMap",{value:t,enumerable:!1});let u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:s,initScope:a,remoteInfo:this.remoteInfo,origin:this.host});void 0===c?.init&&l(o.getShortErrorMsg(o.RUNTIME_002,o.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await c.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...u,id:e,remoteSnapshot:n,remoteEntryExports:c})}this.lib=c,this.inited=!0,(i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:c,expose:t,moduleInfo:this.remoteInfo}))||(i=await c.get(t)),s(i,`${f(this.remoteInfo)} remote don't export ${t}.`);let u=S(this.remoteInfo.name,t),p=this.wraperFactory(i,u);return a?await p():p}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{let n=await e();return r(n,t),n}:()=>{let n=e();return r(n,t),n}}}class tu{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(...n){return t.remove(r),e.apply(null,n)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{t=r(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}class tf extends tu{emit(...e){let t,r=Array.from(this.listeners);if(r.length>0){let n=0,o=t=>!1!==t&&(n<r.length?Promise.resolve(r[n++].apply(null,e)).then(o):t);t=o()}return Promise.resolve(t)}}function tp(e,t){if(!m(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}class th extends tu{constructor(e){super(),this.onerror=l,this.type=e}emit(e){for(let t of(m(e)||l(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(tp(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){c(e),this.onerror(e)}return e}}class td extends tu{constructor(e){super(),this.onerror=l,this.type=e}emit(e){m(e)||l(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(c(t),this.onerror(t),e),o=i=>{if(tp(e,i)){if(e=i,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(e){return n(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}}class tm{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){s(g(e),"Plugin configuration is invalid.");let r=e.name;s(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){s(e,"A name is required.");let t=this.registerPlugins[e];s(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}}function ty(e,t){let r=E(t);r.url||l(`The attribute remoteEntry of ${e.name} must not be undefined.`);let o=n.getResourceUrl(t,r.url);n.isBrowserEnv()||o.startsWith("http")||(o=`https:${o}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=o,e.version=t.version,e.buildVersion=t.buildVersion}function tg(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:i,id:a}=e;if(!p(t)||!h(t)){let{remoteSnapshot:s,globalSnapshot:l}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:a});ty(i,s);let c={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:c,remoteInfo:i,remote:t,remoteSnapshot:s,globalSnapshot:l});return u&&ts(i,o,u,!1),{...e,remoteSnapshot:s}}return e}}}function t_(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function tb(e,t,r,o,i={},a){let{value:s}=P(e,f(t)),l=a||s;if(l&&!n.isManifestProvider(l)&&(r(l,t,o),l.remotesInfo))for(let t of Object.keys(l.remotesInfo)){if(i[t])continue;i[t]=!0;let n=t_(t),o=l.remotesInfo[t];tb(e,{name:n.name,version:o.matchedVersion},r,!1,i,void 0)}}let tE=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function tS(e,t,r,o,i){let a=[],s=[],l=[],c=new Set,u=new Set,{options:f}=e,{preloadConfig:p}=t,{depsRemote:h}=p;if(tb(o,r,(t,r,o)=>{let i;if(o)i=p;else if(Array.isArray(h)){let e=h.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;i=to(e)}else{if(!0!==h)return;i=p}let c=n.getResourceUrl(t,E(t).url);c&&l.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[],f=ta(i.exposes);function d(e){let r=e.map(e=>n.getResourceUrl(t,e));return i.filter?r.filter(i.filter):r}if(f.length&&"modules"in t&&(u=t?.modules?.reduce((e,t)=>(f?.indexOf(t.moduleName)!==-1&&e.push(t),e),[])),u){let n=u.length;for(let o=0;o<n;o++){let n=u[o],l=`${r.name}/${n.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===n.moduleName?r.name:l,name:r.name,remoteSnapshot:t,preloadConfig:i,remote:r,origin:e}),V(l)||("all"===i.resourceCategory?(a.push(...d(n.assets.css.async)),a.push(...d(n.assets.css.sync)),s.push(...d(n.assets.js.async))):(i.resourceCategory="sync",a.push(...d(n.assets.css.sync))),s.push(...d(n.assets.js.sync)),G(l))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,r)=>{let n=eX(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);n&&"function"==typeof n.lib&&(r.assets.js.sync.forEach(e=>{c.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};i.shared.forEach(e=>{let r=f.shared?.[e.sharedName];if(!r)return;let n=e.version?r.find(t=>t.version===e.version):r;n&&b(n).forEach(r=>{t(r,e)})})}let d=s.filter(e=>!c.has(e)&&!tE("script",e));return{cssAssets:a.filter(e=>!u.has(e)&&!tE("link",e)),jsAssetsWithoutEntry:d,entryAssets:l.filter(e=>!tE("script",e.url))}}let tv=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:o,remote:i,globalSnapshot:a,remoteSnapshot:s}=e;return n.isBrowserEnv()?p(i)&&h(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:o.name,entry:i.entry,type:o.type||"global",entryGlobalName:"",shareScope:""}}]}:(ty(o,s),tS(t,r,o,a,s)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function tI(e,t){let r=L({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&P(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:D(),remoteSnapshot:L({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:D(),remoteSnapshot:L({name:e.name,version:"version"in e?e.version:void 0})}}class tR{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new tm({beforeLoadRemoteSnapshot:new tf("beforeLoadRemoteSnapshot"),loadSnapshot:new td("loadGlobalSnapshot"),loadRemoteSnapshot:new td("loadRemoteSnapshot"),afterLoadSnapshot:new td("afterLoadSnapshot")}),this.manifestLoading=R.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:r}){let i,a,{options:s}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:s,moduleInfo:e});let c=L({name:this.HostInstance.options.name,version:this.HostInstance.options.version});c||(c={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},F({[this.HostInstance.options.name]:c})),c&&"remotesInfo"in c&&!P(c.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(c.remotesInfo={...c?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:u,remoteSnapshot:f,globalSnapshot:h}=this.getGlobalRemoteInfo(e),{remoteSnapshot:d,globalSnapshot:m}=await this.hooks.lifecycle.loadSnapshot.emit({options:s,moduleInfo:e,hostGlobalSnapshot:u,remoteSnapshot:f,globalSnapshot:h});if(d)if(n.isManifestProvider(d)){let t=n.isBrowserEnv()?d.remoteEntry:d.ssrRemoteEntry||d.remoteEntry||"",r=await this.getManifestJson(t,e,{}),o=x({...e,entry:t},r);i=r,a=o}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:d,from:"global"});i=t,a=m}else if(p(e)){let t=await this.getManifestJson(e.entry,e,{}),r=x(e,t),{remoteSnapshot:n}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});i=n,a=r}else l(o.getShortErrorMsg(o.RUNTIME_007,o.runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(m)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:s,moduleInfo:e,remoteSnapshot:i}),{remoteSnapshot:i,globalSnapshot:a}}getGlobalRemoteInfo(e){return tI(e,this.HostInstance)}async getManifestJson(e,t,r){let i=async()=>{let r=this.manifestCache.get(e);if(r)return r;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),r=await t.json()}catch(n){(r=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))||(delete this.manifestLoading[e],l(o.getShortErrorMsg(o.RUNTIME_003,o.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`)))}return s(r.metaData&&r.exposes&&r.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,r),r},a=async()=>{let r=await i(),o=n.generateSnapshotFromManifest(r,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:r,remoteSnapshot:o,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=a().then(e=>e)),this.manifestLoading[e]}}class tN{constructor(e){this.hooks=new tm({afterResolve:new td("afterResolve"),beforeLoadShare:new td("beforeLoadShare"),loadShare:new tf,resolveShare:new th("resolveShare"),initContainerShareScopeMap:new th("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){let{shareInfos:r,shared:n}=eG(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(n=>{this.shareScopeMap[n]?.[e]||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{shareInfos:r,shared:n}}async loadShare(e,t){let{host:r}=this,n=eQ({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))}));let{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});s(o,`Cannot find ${e} Share in the ${r.options.name}. Please ensure that the ${e} Share parameters have been injected`);let i=eX(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),u(e.useIn,r.options.name)};if(i&&i.lib)return a(i),i.lib;if(i&&i.loading&&!i.loaded){let e=await i.loading;return i.loaded=!0,i.lib||(i.lib=e),a(i),e}if(i){let t=(async()=>{let e=await i.get();return a(i),i.loaded=!0,i.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:t}),t}{if(t?.customShareInfo)return!1;let n=(async()=>{let t=await o.get();o.lib=t,o.loaded=!0,a(o);let r=eX(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0,r.from=o.from),t})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:n}),n}}initializeSharing(e=B,t){let{host:r}=this,n=t?.from,o=t?.strategy,i=t?.initScope,a=[];if("build"!==n){let{initTokens:t}=this;i||(i=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),i.indexOf(r)>=0)return a;i.push(r)}let s=this.shareScopeMap,l=r.options.name;s[e]||(s[e]={});let c=s[e],u=(e,t)=>{let{version:r,eager:n}=t;c[e]=c[e]||{};let o=c[e],i=o[r],a=!!(i&&(i.eager||i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(!n!=!a?n:l>i.from))&&(o[r]=t)},f=t=>t&&t.init&&t.init(s[e],i),p=async e=>{let{module:t}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});if(t.getEntry){let n;try{n=await t.getEntry()}catch(t){n=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:t,from:"runtime",lifecycle:"beforeLoadShare",origin:r})}t.inited||(await f(n),t.inited=!0)}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&u(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===o)&&r.options.remotes.forEach(t=>{t.shareScope===e&&a.push(p(t.name))}),a}loadShareSync(e,t){let{host:r}=this,n=eQ({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let i=eX(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),u(e.useIn,r.options.name)};if(i){if("function"==typeof i.lib)return a(i),i.loaded||(i.loaded=!0,i.from===r.options.name&&(n.loaded=!0)),i.lib;if("function"==typeof i.get){let t=i.get();if(!(t instanceof Promise))return a(i),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:i}),t}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){let i=n.get();if(i instanceof Promise){let n=t?.from==="build"?o.RUNTIME_005:o.RUNTIME_006;throw Error(o.getShortErrorMsg(n,o.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}return n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}throw Error(o.getShortErrorMsg(o.RUNTIME_006,o.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}initShareScopeMap(e,t,r={}){let{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:n,loading:o,loaded:i,get:a}){let{version:s,scope:l="default",...c}=t;(Array.isArray(l)?l:[l]).forEach(t=>{if(this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),!this.shareScopeMap[t][e][s]){this.shareScopeMap[t][e][s]={version:s,scope:[t],...c,lib:n,loaded:i,loading:o},a&&(this.shareScopeMap[t][e][s].get=a);return}let l=this.shareScopeMap[t][e][s];o&&!l.loading&&(l.loading=o),i&&!l.loaded&&(l.loaded=i),r&&l.from!==r&&(l.from=r)})}_setGlobalShareScopeMap(e){let t=eZ(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}}class tT{constructor(e){this.hooks=new tm({beforeRegisterRemote:new th("beforeRegisterRemote"),registerRemote:new th("registerRemote"),beforeRequest:new td("beforeRequest"),onLoad:new tf("onLoad"),handlePreloadModule:new tu("handlePreloadModule"),errorLoadRemote:new tf("errorLoadRemote"),beforePreloadRemote:new tf("beforePreloadRemote"),generatePreloadAssets:new tf("generatePreloadAssets"),afterPreloadRemote:new tf,loadEntry:new tf}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:n}=t,{name:o,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},i&&e.startsWith(o)){let t=e.replace(o,i);this.idToRemoteMap[t]={name:r.name,expose:n};return}if(i&&e.startsWith(i)){let t=e.replace(i,o);this.idToRemoteMap[t]={name:r.name,expose:n}}}async loadRemote(e,t){let{host:r}=this;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:i,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:l,expose:c,id:u,remoteSnapshot:f}=a,p=await o.get(u,c,t,f),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:s,expose:c,exposeModule:n?p:void 0,exposeModuleFactory:n?void 0:p,remote:l,options:i,moduleInstance:o,origin:r});if(this.setIdToRemoteMap(e,a),"function"==typeof h)return h;return p}catch(i){let{from:n="runtime"}=t||{from:"runtime"},o=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:n,lifecycle:"onLoad",origin:r});if(!o)throw i;return o}}async preloadRemote(e){let{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=ti(t.options.remotes,e);await Promise.all(r.map(async e=>{let{remote:r}=e,n=tn(r),{globalSnapshot:o,remoteSnapshot:i}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r}),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:r,remoteInfo:n,globalSnapshot:o,remoteSnapshot:i});a&&ts(n,t,a)}))}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=e1(r.options.remotes,i);s(a,o.getShortErrorMsg(o.RUNTIME_004,o.runtimeDescMap,{hostName:r.options.name,requestId:i}));let{remote:l}=a,c=tn(l),u=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:c}),{remote:f,expose:p}=u;s(f&&p,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let h=r.moduleCache.get(f.name),d={host:r,remoteInfo:c};return h||(h=new tc(d),r.moduleCache.set(f.name,h)),{module:h,moduleOptions:d,remoteMatchInfo:u}}registerRemote(e,t,r){let{host:o}=this,i=()=>{if(e.alias){let r=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));s(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&n.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=B),e.type||(e.type=q)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:o});let a=t.find(t=>t.name===e.name);if(a){let s=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(a),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o}),n.warn(s.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o})}removeRemote(e){try{let{host:t}=this,{name:r}=e,o=t.options.remotes.findIndex(e=>e.name===r);-1!==o&&t.options.remotes.splice(o,1);let i=t.moduleCache.get(e.name);if(i){let r=i.remoteInfo,o=r.entryGlobalName;v[o]&&(Object.getOwnPropertyDescriptor(v,o)?.configurable?delete v[o]:v[o]=void 0);let a=tt(i.remoteInfo);w[a]&&delete w[a],t.snapshotHandler.manifestCache.delete(r.entry);let s=r.buildVersion?n.composeKeyWithSeparator(r.name,r.buildVersion):r.name,l=v.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===s:e.name===s);if(-1!==l){let e=v.__FEDERATION__.__INSTANCES__[l];s=e.options.id||s;let t=eZ(),n=!0,o=[];Object.keys(t).forEach(e=>{let i=t[e];i&&Object.keys(i).forEach(t=>{let a=i[t];a&&Object.keys(a).forEach(i=>{let s=a[i];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==r.name),l.useIn.length?n=!1:o.push([e,t,i,a])):o.push([e,t,i,a]))})})})}),n&&(e.shareScopeMap={},delete t[s]),o.forEach(([e,r,n,o])=>{delete t[e]?.[r]?.[n]?.[o]}),v.__FEDERATION__.__INSTANCES__.splice(l,1)}let{hostGlobalSnapshot:c}=tI(e,t);if(c){let t=c&&"remotesInfo"in c&&c.remotesInfo&&P(c.remotesInfo,e.name).key;t&&(delete c.remotesInfo[t],R.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete R.__FEDERATION__.__MANIFEST_LOADING__[t])}t.moduleCache.delete(e.name)}}catch(e){a.log("removeRemote fail: ",e)}}}let tw="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;class tA{constructor(e){this.hooks=new tm({beforeInit:new th("beforeInit"),init:new tu,beforeInitContainer:new td("beforeInitContainer"),initContainer:new td("initContainer")}),this.version="0.22.0",this.moduleCache=new Map,this.loaderHook=new tm({getModuleInfo:new tu,createScript:new tu,createLink:new tu,fetch:new tf,loadEntryError:new tf,getModuleFactory:new tf}),this.bridgeHook=new tm({beforeBridgeRender:new tu,afterBridgeRender:new tu,beforeBridgeDestroy:new tu,afterBridgeDestroy:new tu});const t=tw?[tg(),tv()]:[],r={id:e0(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:n.isBrowserEnv()};this.name=e.name,this.options=r,this.snapshotHandler=new tR(this),this.sharedHandler=new tN(this),this.remoteHandler=new tT(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}initOptions(e){this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=B,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let n=new tc({host:this,remoteInfo:tn({name:e,entry:t})});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{shared:r}=eG(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),i=this.remoteHandler.formatAndRegisterRemote(o,n),{shared:a}=this.sharedHandler.registerShared(o,n),s=[...o.plugins];n.plugins&&n.plugins.forEach(e=>{s.includes(e)||s.push(e)});let l={...e,...t,plugins:s,remotes:i,shared:a};return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){let t=e7(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}var tM=Object.freeze({__proto__:null});t.loadScript=n.loadScript,t.loadScriptNode=n.loadScriptNode,t.CurrentGlobal=v,t.Global=R,t.Module=tc,t.ModuleFederation=tA,t.addGlobalSnapshot=F,t.assert=s,t.getGlobalFederationConstructor=O,t.getGlobalSnapshot=D,t.getInfoWithoutType=P,t.getRegisteredShare=eX,t.getRemoteEntry=tr,t.getRemoteInfo=tn,t.helpers=tl,t.isStaticResourcesEqual=_,t.matchRemoteWithNameAndExpose=e1,t.registerGlobalPlugins=H,t.resetFederationGlobalInfo=M,t.safeWrapper=d,t.satisfy=eU,t.setGlobalFederationConstructor=k,t.setGlobalFederationInstance=$,t.types=tM},6490(e,t,r){"use strict";var n=r(5822),o=r(3767),i=r(6197);function a(e){let t=new(n.getGlobalFederationConstructor()||n.ModuleFederation)(e);return n.setGlobalFederationInstance(t),t}let s=null;function l(e){let t=i.getGlobalFederationInstance(e.name,e.version);return t?(t.initOptions(e),s||(s=t),t):s=a(e)}function c(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadRemote.apply(s,e)}function u(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadShare.apply(s,e)}function f(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadShareSync.apply(s,e)}function p(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.preloadRemote.apply(s,e)}function h(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerRemotes.apply(s,e)}function d(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerPlugins.apply(s,e)}function m(){return s}function y(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerShared.apply(s,e)}n.setGlobalFederationConstructor(n.ModuleFederation),t.Module=n.Module,t.ModuleFederation=n.ModuleFederation,t.getRemoteEntry=n.getRemoteEntry,t.getRemoteInfo=n.getRemoteInfo,t.loadScript=n.loadScript,t.loadScriptNode=n.loadScriptNode,t.registerGlobalPlugins=n.registerGlobalPlugins,t.createInstance=a,t.getInstance=m,t.init=l,t.loadRemote=c,t.loadShare=u,t.loadShareSync=f,t.preloadRemote=p,t.registerPlugins=d,t.registerRemotes=h,t.registerShared=y},6197(e,t,r){"use strict";var n=r(5822);function o(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}t.getGlobalFederationInstance=function(e,t){let r=o();return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},5882(__unused_rspack_module,exports){"use strict";let FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"u">typeof window&&void 0!==window.document}function isReactNativeEnv(){return"u">typeof navigator&&navigator?.product==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(e){}return!1}function isDebugMode(){return"u">typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||isBrowserDebug()}let getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,t,r=SEPARATOR)=>{let n=e.split(r),o="development"===getProcessEnv().NODE_ENV&&t,i="*",a=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(n.length>=2){let[t,...s]=n;e.startsWith(r)&&(t=n.slice(0,2).join(r),s=[o||n.slice(2).join(r)]);let l=o||s.join(r);return a(l)?{name:t,entry:l}:{name:t,version:l||i}}if(1===n.length){let[e]=n;return o&&a(o)?{name:e,entry:o}:{name:e,version:o||i}}throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${SEPARATOR}${t}`:t:e,""):""},encodeName=function(e,t="",r=!1){try{let n=r?".js":"";return`${t}${e.replace(RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${n}`}catch(e){throw e}},decodeName=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(RegExp(t,"g"),"")}return n=n.replace(RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(e){throw e}},generateExposeFilename=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),encodeName(r,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in e?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},assert=(e,t)=>{e||error(t)},error=e=>{throw Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}let simpleJoinRemoteEntry=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){let r,{remotes:n={},overrides:o={},version:i}=t,a=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&i?inferAutoPublicPath(i):e.metaData.publicPath:e.metaData.getPublicPath,s=Object.keys(o),l={};Object.keys(n).length||(l=e.remotes?.reduce((e,t)=>{let r,n=t.federationContainerName;return r=s.includes(n)?o[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:r},e},{})||{}),Object.keys(n).forEach(e=>l[e]={matchedVersion:s.includes(e)?o[e]:n[e]});let{remoteEntry:{path:c,name:u,type:f},types:p={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:h},globalName:d,ssrRemoteEntry:m}=e.metaData,{exposes:y}=e,g={version:i||"",buildVersion:h,globalName:d,remoteEntry:simpleJoinRemoteEntry(c,u),remoteEntryType:f,remoteTypes:simpleJoinRemoteEntry(p.path,p.name),remoteTypesZip:p.zip||"",remoteTypesAPI:p.api||"",remotesInfo:l,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:y?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(e.metaData?.prefetchInterface){let t=e.metaData.prefetchInterface;g={...g,prefetchInterface:t}}if(e.metaData?.prefetchEntry){let{path:t,name:r,type:n}=e.metaData.prefetchEntry;g={...g,prefetchEntry:simpleJoinRemoteEntry(t,r),prefetchEntryType:n}}return r="publicPath"in e.metaData?{...g,publicPath:a(),ssrPublicPath:e.metaData.ssrPublicPath}:{...g,getPublicPath:a()},m&&(r.ssrRemoteEntry=simpleJoinRemoteEntry(m.path,m.name),r.ssrRemoteEntryType=m.type||"commonjs-module"),r}function isManifestProvider(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(MANIFEST_EXT))}function getManifestFileName(e){if(!e)return{statsFileName:StatsFileName,manifestFileName:ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",n=".json",o=e=>e.endsWith(n)?e:`${e}${n}`,i=(e,t)=>e.replace(n,`${t}${n}`),a=r?o(r):ManifestFileName;return{statsFileName:simpleJoinRemoteEntry(t,r?i(a,"-stats"):StatsFileName),manifestFileName:simpleJoinRemoteEntry(t,a)}}let PREFIX="[ Module Federation ]",DEFAULT_DELEGATE=console,LOGGER_STACK_SKIP_TOKENS=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!LOGGER_STACK_SKIP_TOKENS.some(t=>e.includes(t)));if(!r.length)return;let n=r.slice(0,5).join("\n");return`Stack trace:
4
4
  ${n}`}catch{return}}class Logger{constructor(e,t=DEFAULT_DELEGATE){this.prefix=e,this.delegate=t??DEFAULT_DELEGATE}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??DEFAULT_DELEGATE}emit(e,t){let r=this.delegate,n=isDebugMode()?captureStackTrace():void 0,o=n?[...t,n]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...o)}for(let e of i){let t=DEFAULT_DELEGATE[e];if("function"==typeof t)return void t.call(DEFAULT_DELEGATE,this.prefix,...o)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){isDebugMode()&&this.emit("debug",e)}}function createLogger(e){return new Logger(e)}function createInfrastructureLogger(e){let t=new Logger(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function bindLoggerToCompiler(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let n=t.getInfrastructureLogger(r);n&&"object"==typeof n&&("function"==typeof n.log||"function"==typeof n.info||"function"==typeof n.warn||"function"==typeof n.error)&&e.setDelegate(n)}catch{e.setDelegate(void 0)}}let logger=createLogger(PREFIX),infrastructureLogger=createInfrastructureLogger(PREFIX);async function safeWrapper(e,t){try{return await e()}catch(e){t||warn(e);return}}function isStaticResourcesEqual(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function createScript(e){let t,r=null,n=!0,o=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let o=i[t],a=o.getAttribute("src");if(a&&isStaticResourcesEqual(a,e.url)){r=o,n=!1;break}}if(!r){let t,n=e.attrs;(r=document.createElement("script")).type=n?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(o=t.timeout))),r.src||(r.src=e.url),n&&!t&&Object.keys(n).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=n[e]:r.getAttribute(e)||r.setAttribute(e,n[e]))})}let a=async(n,o)=>{clearTimeout(t);let i=()=>{o?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(o):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,safeWrapper(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){let e=n(o);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=a.bind(null,r.onerror),r.onload=a.bind(null,r.onload),t=setTimeout(()=>{a(null,Error(`Remote script "${e.url}" time-outed.`))},o),{script:r,needAttach:n}}function createLink(e){let t=null,r=!0,n=document.getElementsByTagName("link");for(let o=0;o<n.length;o++){let i=n[o],a=i.getAttribute("href"),s=i.getAttribute("rel");if(a&&isStaticResourcesEqual(a,e.url)&&s===e.attrs.rel){t=i,r=!1;break}}if(!t){let r;(t=document.createElement("link")).setAttribute("href",e.url);let n=e.attrs;e.createLinkHook&&(r=e.createLinkHook(e.url,n))instanceof HTMLLinkElement&&(t=r),n&&!r&&Object.keys(n).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}let o=(r,n)=>{let o=()=>{n?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(n):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{let{needDeleteLink:r=!0}=e;r&&t?.parentNode&&t.parentNode.removeChild(t)}),r)){let e=r(n);return o(),e}o()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function loadScript(e,t){let{attrs:r={},createScriptHook:n}=t;return new Promise((t,o)=>{let{script:i,needAttach:a}=createScript({url:e,cb:t,onErrorCallback:o,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),sdkImportCache.delete(e),t});return sdkImportCache.set(e,t),t}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{let n=(e,t)=>r.lifecycle.fetch.emit(e,t),o=await n(e,t||{});return o&&o instanceof Response?o:("u"<typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(loaderHook?.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>loaderHook?.fetch?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{let res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
5
5
  })`,{filename,importModuleDynamically:vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){let container=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,container);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,n)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{createScriptNode(e,(e,o)=>{if(e)n(e);else{let e=t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`;r(globalThis[e]=o)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,t){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:r,vm:n}=t,o=await r(e),i=await o.text(),a=new n.SourceTextModule(i,{importModuleDynamically:async(r,n)=>loadModule(new URL(r,e).href,t)});return esmModuleCache.set(e,a),await a.link(async r=>{let n=new URL(r,e).href;return await loadModule(n,t)}),a}function normalizeOptions(e,t,r){return function(n){if(!1===n)return!1;if(void 0===n)if(e)return t;else return!1;if(!0===n)return t;if(n&&"object"==typeof n)return{...t,...n};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}let createModuleFederationConfig=e=>e;exports.BROWSER_LOG_KEY=BROWSER_LOG_KEY,exports.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,exports.EncodedNameTransformMap=EncodedNameTransformMap,exports.FederationModuleManifest=FederationModuleManifest,exports.MANIFEST_EXT=MANIFEST_EXT,exports.MFModuleType=MFModuleType,exports.MFPrefetchCommon=MFPrefetchCommon,exports.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,exports.ManifestFileName=ManifestFileName,exports.NameTransformMap=NameTransformMap,exports.NameTransformSymbol=NameTransformSymbol,exports.SEPARATOR=SEPARATOR,exports.StatsFileName=StatsFileName,exports.TEMP_DIR=TEMP_DIR,exports.assert=assert,exports.bindLoggerToCompiler=bindLoggerToCompiler,exports.composeKeyWithSeparator=composeKeyWithSeparator,exports.containerPlugin=ContainerPlugin,exports.containerReferencePlugin=ContainerReferencePlugin,exports.createInfrastructureLogger=createInfrastructureLogger,exports.createLink=createLink,exports.createLogger=createLogger,exports.createModuleFederationConfig=createModuleFederationConfig,exports.createScript=createScript,exports.createScriptNode=createScriptNode,exports.decodeName=decodeName,exports.encodeName=encodeName,exports.error=error,exports.generateExposeFilename=generateExposeFilename,exports.generateShareFilename=generateShareFilename,exports.generateSnapshotFromManifest=generateSnapshotFromManifest,exports.getManifestFileName=getManifestFileName,exports.getProcessEnv=getProcessEnv,exports.getResourceUrl=getResourceUrl,exports.inferAutoPublicPath=inferAutoPublicPath,exports.infrastructureLogger=infrastructureLogger,exports.isBrowserEnv=isBrowserEnv,exports.isDebugMode=isDebugMode,exports.isManifestProvider=isManifestProvider,exports.isReactNativeEnv=isReactNativeEnv,exports.isRequiredVersion=isRequiredVersion,exports.isStaticResourcesEqual=isStaticResourcesEqual,exports.loadScript=loadScript,exports.loadScriptNode=loadScriptNode,exports.logger=logger,exports.moduleFederationPlugin=ModuleFederationPlugin,exports.normalizeOptions=normalizeOptions,exports.parseEntry=parseEntry,exports.safeToString=safeToString,exports.safeWrapper=safeWrapper,exports.sharePlugin=SharePlugin,exports.simpleJoinRemoteEntry=simpleJoinRemoteEntry,exports.warn=warn},1629(e,t){"use strict";t.FEDERATION_SUPPORTED_TYPES=["script"]},2707(e,t,r){"use strict";var n=r(6490),o=r(1629),i=r(5882);function a(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function s(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:t={},initialConsumes:o=[],chunkMapping:i={}}=n;if(Object.entries(t).forEach(([e,t])=>{r[e]||(r[e]={getter:t.fallback,shareInfo:{shareConfig:{requiredVersion:t.requiredVersion,strictVersion:t.strictVersion,singleton:t.singleton,eager:t.eager,layer:t.layer},scope:Array.isArray(t.shareScope)?t.shareScope:[t.shareScope||"default"]},shareKey:t.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;o.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(i).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=n,u={requiredVersion:`^${o}`},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let p={version:o,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(p):r[t]=[p]}e.instance.registerShared(r),o._updated=1}}function l(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}function c(e){l(e);let{chunkId:t,promises:r,webpackRequire:n,chunkMapping:s,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;a(n),n.o(s,t)&&s[t].forEach(e=>{let t=n.R;t||(t=[]);let a=c[e],s=u[e]||[];if(t.indexOf(a)>=0)return;if(t.push(a),a.p)return r.push(a.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
@@ -269,7 +269,7 @@
269
269
  "auxiliaryFiles": [
270
270
  "main.js.map"
271
271
  ],
272
- "hash": "e6a71c1cf07305a7",
272
+ "hash": "a4f79ff501a4a9f3",
273
273
  "childrenByOrder": {}
274
274
  },
275
275
  {
@@ -1620,7 +1620,7 @@
1620
1620
  "auxiliaryFiles": [
1621
1621
  "7654.js.map"
1622
1622
  ],
1623
- "hash": "f52a6a5813f11a20",
1623
+ "hash": "ee043c69d0d53bab",
1624
1624
  "childrenByOrder": {}
1625
1625
  },
1626
1626
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","appointments":">=2.0.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":"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":"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"},{"name":"batch-change-appointments-statuses-modal","component":"batchChangeAppointmentStatusesModal"}],"workspaceGroups2":[{"name":"appointments-group","scopePattern":"/home/appointments"}],"workspaceWindows2":[{"name":"appointments-window","group":"appointments-group"}],"workspaces2":[{"name":"appointments-form-workspace","component":"appointmentsFormWorkspace","window":"appointments-window"},{"name":"appointments-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"appointments-window"},{"name":"appointments-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"appointments-window"}],"version":"10.0.3-pre.8413"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","appointments":">=2.0.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":"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":"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"},{"name":"batch-change-appointments-statuses-modal","component":"batchChangeAppointmentStatusesModal"}],"workspaceGroups2":[{"name":"appointments-group","scopePattern":"/home/appointments"}],"workspaceWindows2":[{"name":"appointments-window","group":"appointments-group"}],"workspaces2":[{"name":"appointments-form-workspace","component":"appointmentsFormWorkspace","window":"appointments-window"},{"name":"appointments-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"appointments-window"},{"name":"appointments-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"appointments-window"}],"version":"10.0.3-pre.8414"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-appointments-app",
3
- "version": "10.0.3-pre.8413",
3
+ "version": "10.0.3-pre.8414",
4
4
  "description": "Appointments front-end module for O3",
5
5
  "browser": "dist/openmrs-esm-appointments-app.js",
6
6
  "main": "src/index.ts",
@@ -16,6 +16,6 @@ export const patientChartDashboardMeta = {
16
16
  slot: 'patient-chart-appointments-dashboard-slot',
17
17
  columns: 1,
18
18
  title: 'Appointments',
19
- path: 'appointments',
19
+ path: 'Appointments',
20
20
  icon: 'omrs-icon-event-schedule',
21
21
  } as const;
package/src/routes.json CHANGED
@@ -55,7 +55,7 @@
55
55
  "columns": 1,
56
56
  "columnSpan": 1,
57
57
  "hideDashboardTitle": true,
58
- "path": "appointments",
58
+ "path": "Appointments",
59
59
  "slot": "patient-chart-appointments-dashboard-slot",
60
60
  "title": "Appointments"
61
61
  }