@openmrs/esm-login-app 10.0.1-pre.5752 → 11.0.0

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.
@@ -4,4 +4,4 @@
4
4
  │ 3075.js (431.282 KiB)
5
5
  
6
6
 
7
- Rspack compiled with 1 warning in 30.15 s
7
+ Rspack compiled with 1 warning in 19.85 s
File without changes
@@ -0,0 +1,102 @@
1
+
2
+  RUN  v4.1.2 /home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/apps/esm-login-app
3
+
4
+ stderr | src/location-picker/location-picker.test.tsx > LocationPickerView > renders the welcome message and location selection form
5
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
6
+ ⚠️ React Router Future Flag Warning: React Router will begin wrapping state updates in `React.startTransition` in v7. You can use the `v7_startTransition` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition.
7
+ ⚠️ React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the `v7_relativeSplatPath` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
8
+ Warning: An update to LocationPickerView inside a test was not wrapped in act(...).
9
+
10
+ When testing, code that causes React state updates should be wrapped into act(...):
11
+
12
+ act(() => {
13
+ /* fire events that update state */
14
+ });
15
+ /* assert on the output */
16
+
17
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
18
+ at LocationPickerView (/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/apps/esm-login-app/src/location-picker/location-picker-view.component.tsx:34:31)
19
+ at Router (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/react-router/dist/umd/react-router.development.js:1207:17)
20
+ at MemoryRouter (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/react-router/dist/umd/react-router.development.js:1101:7)
21
+
22
+ stderr | src/login/login.test.tsx > Login > renders the login form
23
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
24
+ ⚠️ React Router Future Flag Warning: React Router will begin wrapping state updates in `React.startTransition` in v7. You can use the `v7_startTransition` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition.
25
+ ⚠️ React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the `v7_relativeSplatPath` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
26
+
27
+ ✓ src/redirect-logout/redirect-logout.test.tsx (11 tests) 462ms
28
+ stderr | src/location-picker/location-picker.test.tsx > LocationPickerView > Saving location preference > shows location picker when saved location preference is invalid
29
+ Warning: An update to LocationPickerView inside a test was not wrapped in act(...).
30
+
31
+ When testing, code that causes React state updates should be wrapped into act(...):
32
+
33
+ act(() => {
34
+ /* fire events that update state */
35
+ });
36
+ /* assert on the output */
37
+
38
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
39
+ at LocationPickerView (/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/apps/esm-login-app/src/location-picker/location-picker-view.component.tsx:34:31)
40
+ at Router (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/react-router/dist/umd/react-router.development.js:1207:17)
41
+ at MemoryRouter (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/react-router/dist/umd/react-router.development.js:1101:7)
42
+
43
+ ✓ src/location-picker/location-picker.test.tsx (27 tests) 1170ms
44
+ ✓ src/login/login.test.tsx (11 tests) 2471ms
45
+ ✓ should return user focus to username input when input is invalid  379ms
46
+ ✓ makes an API request when you submit the form  480ms
47
+ ✓ sends the user to the location select page on login if there is more than one location  406ms
48
+ ✓ should be able to login when the showPasswordOnSeparateScreen config is false  366ms
49
+ stderr | src/two-factor-auth/verification-challenge/totp-verification-challenge-page.test.tsx > TotpVerificationChallengePage > should disable the verify button when a digit is deleted after being fully filled
50
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
51
+ ⚠️ React Router Future Flag Warning: React Router will begin wrapping state updates in `React.startTransition` in v7. You can use the `v7_startTransition` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition.
52
+ ⚠️ React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the `v7_relativeSplatPath` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
53
+
54
+ ✓ src/two-factor-auth/verification-challenge/totp-verification-challenge-page.test.tsx (5 tests) 1233ms
55
+ ✓ should disable the verify button when a digit is deleted after being fully filled  388ms
56
+ ✓ should ask the server to remember the device only when the checkbox is checked  338ms
57
+ stderr | src/login-page-wrapper/login-page-wrapper.test.tsx > LoginPageWrapper > renders a configurable logo
58
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
59
+ ⚠️ React Router Future Flag Warning: React Router will begin wrapping state updates in `React.startTransition` in v7. You can use the `v7_startTransition` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition.
60
+ ⚠️ React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the `v7_relativeSplatPath` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
61
+
62
+ ✓ src/login-page-wrapper/login-page-wrapper.test.tsx (7 tests) 138ms
63
+ stderr | src/two-factor-auth/totp-enrollment.test.tsx > TotpEnrollment > should clear old QR code and show error if regenerating a new QR code fails
64
+ Failed to initiate TOTP enrollment: Error: Network error
65
+ at /home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/apps/esm-login-app/src/two-factor-auth/totp-enrollment.test.tsx:102:54
66
+ at file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:1893:20
67
+
68
+ ✓ src/two-factor-auth/totp-enrollment.test.tsx (3 tests) 870ms
69
+ ✓ should verify the totp code successfully and show a success snackbar  389ms
70
+ stderr | src/two-factor-auth/verification-challenge/verification-code-input.test.tsx > VerificationCodeInput > should render 6 number of input boxes
71
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
72
+
73
+ ✓ src/two-factor-auth/verification-challenge/verification-code-input.test.tsx (7 tests) 621ms
74
+ ✓ src/location-picker/location-picker.resource.test.ts (5 tests) 357ms
75
+ stderr | src/change-password/change-password.test.tsx > ChangePasswordModal > validates the form before submitting
76
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
77
+
78
+ ✓ src/change-password/change-password.test.tsx (1 test) 961ms
79
+ ✓ validates the form before submitting  956ms
80
+ stderr | src/two-factor-auth/two-factor-auth.test.tsx > Two-Factor Authentication Component > should render the Setup button when TOTP is not enabled
81
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
82
+
83
+ ✓ src/two-factor-auth/two-factor-auth.test.tsx (2 tests) 166ms
84
+ ✓ src/config-schema.test.ts (4 tests) 30ms
85
+ stderr | src/two-factor-auth/two-factor-auth-link.test.tsx > TwoFactorAuthLink > should render the two factor auth link with the correct icon and text
86
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
87
+
88
+ ✓ src/two-factor-auth/two-factor-auth-link.test.tsx (2 tests) 61ms
89
+ stderr | src/change-location-link/change-location-link.test.tsx > ChangeLocationLink > should display the `Change location` link
90
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
91
+
92
+ ✓ src/change-location-link/change-location-link.test.tsx (1 test) 107ms
93
+ stderr | src/change-password/change-password-link.test.tsx > ChangePasswordLink > should launch the change password modal
94
+ react-i18next:: useTranslation: You will need to pass in an i18next instance by using initReactI18next { code: 'NO_I18NEXT_INSTANCE' }
95
+
96
+ ✓ src/change-password/change-password-link.test.tsx (1 test) 54ms
97
+
98
+  Test Files  14 passed (14)
99
+  Tests  87 passed (87)
100
+  Start at  17:24:10
101
+  Duration  29.09s (transform 9.91s, setup 4.13s, import 55.94s, tests 8.70s, environment 9.46s)
102
+
File without changes
package/dist/2007.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).push([["2007"],{2442(e,t,n){n.r(t),n.d(t,{default:()=>_});var a=n(6925),l=n.n(a),o=n(9737),r=n(8326),i=n(3004);let s="-esm-login__totp-enrollment-modal__instructionItem___7yONm",c="-esm-login__totp-enrollment-modal__stepNumber___bdCw4",m="-esm-login__totp-enrollment-modal__stepText___7UxcC",_=({close:e})=>{let{t}=(0,o.useTranslation)(),[n,_]=(0,a.useState)(!0),[d,p]=(0,a.useState)(!1),[u,h]=(0,a.useState)(""),[g,E]=(0,a.useState)(""),[y,f]=(0,a.useState)(""),[b,C]=(0,a.useState)(""),[v,N]=(0,a.useState)(""),T=v.match(/.{1,4}/g)?.join(" ")||v,w=(0,a.useCallback)(async()=>{try{_(!0),h(""),E(""),C(""),f(""),N("");let e=await (0,i.openmrsFetch)(`${i.restBaseUrl}/auth/totp/enrollment`,{method:"POST"});e.data&&(f(e.data.qrCodeUri||""),N(e.data.secret||""))}catch(e){console.error("Failed to initiate TOTP enrollment:",e),h(t("failToInitiate","Failed to initiate TOTP enrollment. Please try again."))}finally{_(!1)}},[t]);(0,a.useEffect)(()=>{w()},[w]);let S=(0,a.useCallback)(async n=>{n.preventDefault(),n.stopPropagation();try{p(!0),E(""),await (0,i.openmrsFetch)(`${i.restBaseUrl}/auth/totp/enrollment/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:{code:b}}),(0,i.showSnackbar)({title:t("totpEnabledSuccessfully","Two-Factor Authentication Enabled"),subtitle:t("totpEnabledSuccessfullyMessage","Your account is now protected with a TOTP authenticator app."),kind:"success"}),e(),(0,i.refetchCurrentUser)().catch(e=>{console.warn("Failed to refresh current user after TOTP enrollment:",e)})}catch(n){let e=t("totpVerificationFailed","We could not verify that code. Please try again.");if(n instanceof i.OpenmrsFetchError&&"object"==typeof n.responseBody&&null!==n.responseBody){let t=n.responseBody,a=t.error?.translatedMessage;a&&(e=a)}E(e)}finally{p(!1)}},[b,e,t]);return l().createElement(r.Form,{onSubmit:S},l().createElement(r.ModalHeader,{closeModal:e,title:t("setupAuthenticatorApp","Set up Authenticator App")}),l().createElement(r.ModalBody,null,l().createElement("div",{className:"-esm-login__totp-enrollment-modal__twoColumnLayout___WYy5A"},l().createElement("div",{className:"-esm-login__totp-enrollment-modal__leftColumn___ek9tf"},l().createElement("p",{className:"-esm-login__totp-enrollment-modal__banner___HAI5B"},t("useAuthenticatorApp","Your authenticator app will generate a new 6-digit code every 30 seconds. You will be asked for one each time you sign in.")),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__instructionList___pv3bS"},l().createElement("div",{className:s},l().createElement("span",{className:c},"1"),l().createElement("div",{className:m},l().createElement("div",null,t("installAppInstruction","Install an authenticator app if you don't have one — Google Authenticator, Microsoft Authenticator and Authy all work.")),l().createElement("div",null,l().createElement(r.Link,{href:"https://openmrs.atlassian.net/wiki/spaces/docs/pages/1236172803/Supported+Two-Factor+Authentication+Apps+and+Setup+Guide",target:"_blank",rel:"noopener noreferrer"},t("whichApps","Which apps can I use?"))))),l().createElement("div",{className:s},l().createElement("span",{className:c},"2"),l().createElement("div",{className:m},t("addAccountInstruction","Add a new account in the app and scan the code on the right, or type the setup key manually."))),l().createElement("div",{className:s},l().createElement("span",{className:c},"3"),l().createElement("div",{className:m},t("enterCodeInstruction","Enter the code the app shows to finish setting up.")))),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__inputCode___bmUIW"},l().createElement(r.TextInput,{id:"verification-code",labelText:t("enterVerificationCode","Enter 6-digit code from your app"),helperText:t("codeExpiryWarning","Code expires after 30 seconds. If it is rejected, wait for the next one."),inputMode:"numeric",maxLength:6,value:b,invalidText:g?l().createElement("span",null,g,l().createElement(r.Link,{as:"button",type:"button",size:"sm",className:"-esm-login__totp-enrollment-modal__regenerateAction___bEojT",onClick:w},t("generateNewQrCode","Generate a new QR code"))):null,invalid:!!g,onChange:e=>C(e.target.value.replace(/\D/g,"")),disabled:d,autoComplete:"one-time-code",required:!0}))),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__rightColumn___3wDVb"},l().createElement("div",{className:"-esm-login__totp-enrollment-modal__qrContainer___HgnDG"},n?l().createElement("div",{className:"-esm-login__totp-enrollment-modal__center___X116m"},l().createElement(r.InlineLoading,{description:t("generatingQrCode","Generating QR Code...")})):!y&&u?l().createElement(r.ActionableNotification,{kind:"error",inline:!0,hideCloseButton:!0,title:u,actionButtonLabel:t("tryAgain","Try Again"),onActionButtonClick:w}):y?l().createElement(l().Fragment,null,l().createElement("img",{className:"-esm-login__totp-enrollment-modal__qrImage___V9PQD",src:y,alt:t("scanQrCode","Scan the QR Code")}),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__manualSetupContainer___TpNKb"},l().createElement("p",{className:"-esm-login__totp-enrollment-modal__cantScanText___g0C9x"},t("cantScanQrCode","Can't scan the QR code?")),l().createElement("p",{className:"-esm-login__totp-enrollment-modal__manualSetupLabel___Nlyyz"},t("manualSetupKey","Enter this setup key in your app")),l().createElement(r.CodeSnippet,{type:"single",className:"-esm-login__totp-enrollment-modal__secretSnippet___frWlw",copyText:v},T))):null)))),l().createElement(r.ModalFooter,null,l().createElement(r.Button,{kind:"secondary",onClick:e},t("cancel","Cancel")),l().createElement(r.Button,{type:"submit",disabled:n||d||!/^\d{6}$/.test(b)},d?l().createElement(r.InlineLoading,{description:t("verifying","Verifying...")}):t("confirmAndEnable","Confirm and enable authenticator app"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).push([["2007"],{2442(e,t,n){n.r(t),n.d(t,{default:()=>_});var a=n(6925),l=n.n(a),o=n(9737),r=n(8326),i=n(5607);let s="-esm-login__totp-enrollment-modal__instructionItem___7yONm",c="-esm-login__totp-enrollment-modal__stepNumber___bdCw4",m="-esm-login__totp-enrollment-modal__stepText___7UxcC",_=({close:e})=>{let{t}=(0,o.useTranslation)(),[n,_]=(0,a.useState)(!0),[d,p]=(0,a.useState)(!1),[u,h]=(0,a.useState)(""),[g,E]=(0,a.useState)(""),[y,f]=(0,a.useState)(""),[b,C]=(0,a.useState)(""),[v,N]=(0,a.useState)(""),T=v.match(/.{1,4}/g)?.join(" ")||v,w=(0,a.useCallback)(async()=>{try{_(!0),h(""),E(""),C(""),f(""),N("");let e=await (0,i.openmrsFetch)(`${i.restBaseUrl}/auth/totp/enrollment`,{method:"POST"});e.data&&(f(e.data.qrCodeUri||""),N(e.data.secret||""))}catch(e){console.error("Failed to initiate TOTP enrollment:",e),h(t("failToInitiate","Failed to initiate TOTP enrollment. Please try again."))}finally{_(!1)}},[t]);(0,a.useEffect)(()=>{w()},[w]);let S=(0,a.useCallback)(async n=>{n.preventDefault(),n.stopPropagation();try{p(!0),E(""),await (0,i.openmrsFetch)(`${i.restBaseUrl}/auth/totp/enrollment/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:{code:b}}),(0,i.showSnackbar)({title:t("totpEnabledSuccessfully","Two-Factor Authentication Enabled"),subtitle:t("totpEnabledSuccessfullyMessage","Your account is now protected with a TOTP authenticator app."),kind:"success"}),e(),(0,i.refetchCurrentUser)().catch(e=>{console.warn("Failed to refresh current user after TOTP enrollment:",e)})}catch(n){let e=t("totpVerificationFailed","We could not verify that code. Please try again.");if(n instanceof i.OpenmrsFetchError&&"object"==typeof n.responseBody&&null!==n.responseBody){let t=n.responseBody,a=t.error?.translatedMessage;a&&(e=a)}E(e)}finally{p(!1)}},[b,e,t]);return l().createElement(r.Form,{onSubmit:S},l().createElement(r.ModalHeader,{closeModal:e,title:t("setupAuthenticatorApp","Set up Authenticator App")}),l().createElement(r.ModalBody,null,l().createElement("div",{className:"-esm-login__totp-enrollment-modal__twoColumnLayout___WYy5A"},l().createElement("div",{className:"-esm-login__totp-enrollment-modal__leftColumn___ek9tf"},l().createElement("p",{className:"-esm-login__totp-enrollment-modal__banner___HAI5B"},t("useAuthenticatorApp","Your authenticator app will generate a new 6-digit code every 30 seconds. You will be asked for one each time you sign in.")),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__instructionList___pv3bS"},l().createElement("div",{className:s},l().createElement("span",{className:c},"1"),l().createElement("div",{className:m},l().createElement("div",null,t("installAppInstruction","Install an authenticator app if you don't have one — Google Authenticator, Microsoft Authenticator and Authy all work.")),l().createElement("div",null,l().createElement(r.Link,{href:"https://openmrs.atlassian.net/wiki/spaces/docs/pages/1236172803/Supported+Two-Factor+Authentication+Apps+and+Setup+Guide",target:"_blank",rel:"noopener noreferrer"},t("whichApps","Which apps can I use?"))))),l().createElement("div",{className:s},l().createElement("span",{className:c},"2"),l().createElement("div",{className:m},t("addAccountInstruction","Add a new account in the app and scan the code on the right, or type the setup key manually."))),l().createElement("div",{className:s},l().createElement("span",{className:c},"3"),l().createElement("div",{className:m},t("enterCodeInstruction","Enter the code the app shows to finish setting up.")))),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__inputCode___bmUIW"},l().createElement(r.TextInput,{id:"verification-code",labelText:t("enterVerificationCode","Enter 6-digit code from your app"),helperText:t("codeExpiryWarning","Code expires after 30 seconds. If it is rejected, wait for the next one."),inputMode:"numeric",maxLength:6,value:b,invalidText:g?l().createElement("span",null,g,l().createElement(r.Link,{as:"button",type:"button",size:"sm",className:"-esm-login__totp-enrollment-modal__regenerateAction___bEojT",onClick:w},t("generateNewQrCode","Generate a new QR code"))):null,invalid:!!g,onChange:e=>C(e.target.value.replace(/\D/g,"")),disabled:d,autoComplete:"one-time-code",required:!0}))),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__rightColumn___3wDVb"},l().createElement("div",{className:"-esm-login__totp-enrollment-modal__qrContainer___HgnDG"},n?l().createElement("div",{className:"-esm-login__totp-enrollment-modal__center___X116m"},l().createElement(r.InlineLoading,{description:t("generatingQrCode","Generating QR Code...")})):!y&&u?l().createElement(r.ActionableNotification,{kind:"error",inline:!0,hideCloseButton:!0,title:u,actionButtonLabel:t("tryAgain","Try Again"),onActionButtonClick:w}):y?l().createElement(l().Fragment,null,l().createElement("img",{className:"-esm-login__totp-enrollment-modal__qrImage___V9PQD",src:y,alt:t("scanQrCode","Scan the QR Code")}),l().createElement("div",{className:"-esm-login__totp-enrollment-modal__manualSetupContainer___TpNKb"},l().createElement("p",{className:"-esm-login__totp-enrollment-modal__cantScanText___g0C9x"},t("cantScanQrCode","Can't scan the QR code?")),l().createElement("p",{className:"-esm-login__totp-enrollment-modal__manualSetupLabel___Nlyyz"},t("manualSetupKey","Enter this setup key in your app")),l().createElement(r.CodeSnippet,{type:"single",className:"-esm-login__totp-enrollment-modal__secretSnippet___frWlw",copyText:v},T))):null)))),l().createElement(r.ModalFooter,null,l().createElement(r.Button,{kind:"secondary",onClick:e},t("cancel","Cancel")),l().createElement(r.Button,{type:"submit",disabled:n||d||!/^\d{6}$/.test(b)},d?l().createElement(r.InlineLoading,{description:t("verifying","Verifying...")}):t("confirmAndEnable","Confirm and enable authenticator app"))))}}}]);
package/dist/8588.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).push([["8588"],{3479(e,s,a){a.r(s),a.d(s,{default:()=>u});var r=a(6925),o=a.n(r),n=a(9737),d=a(7448),t=a(1509),i=a(2549),l=a(8326),w=a(3004),m=a(2647);let c={submitButton:"-esm-login__change-password-modal__submitButton___tGb1i"},u=({close:e})=>{let{t:s}=(0,n.useTranslation)(),[a,u]=(0,r.useState)(!1),[p,g]=(0,r.useState)(null),P=d.z.string({required_error:s("oldPasswordRequired","Old password is required")}).trim().min(1,s("oldPasswordRequired","Old password is required")),C=d.z.string({required_error:s("newPasswordRequired","New password is required")}).trim().min(1,s("newPasswordRequired","New password is required")),f=d.z.string({required_error:s("passwordConfirmationRequired","Password confirmation is required")}).trim().min(1,s("passwordConfirmationRequired","Password confirmation is required")),h=d.z.object({oldPassword:P,newPassword:C,passwordConfirmation:f}).refine(e=>e.newPassword===e.passwordConfirmation,{message:s("passwordsDoNotMatch","Passwords do not match"),path:["passwordConfirmation"]}),{handleSubmit:b,control:_,formState:{errors:E}}=(0,i.mN)({resolver:(0,t.u)(h),defaultValues:{oldPassword:"",newPassword:"",passwordConfirmation:""}}),q=(0,r.useCallback)(a=>{u(!0);let{oldPassword:r,newPassword:o}=a;(0,m.d)(r,o).then(()=>{e(),(0,w.showSnackbar)({title:s("passwordChangedSuccessfully","Password changed successfully"),kind:"success"})}).catch(e=>{g(e?.responseBody?.message??e?.message)}).finally(()=>{u(!1)})},[e,s]);return o().createElement(l.Form,{onSubmit:b(q,()=>u(!1))},o().createElement(l.ModalHeader,{closeModal:e,title:s("changePassword","Change password")}),o().createElement(l.ModalBody,null,o().createElement(l.Stack,{gap:5,className:c.languageOptionsContainer},o().createElement(i.xI,{name:"oldPassword",control:_,render:({field:{onChange:e,value:a}})=>o().createElement(l.PasswordInput,{id:"oldPassword",invalid:!!E?.oldPassword,invalidText:E?.oldPassword?.message,labelText:s("oldPassword","Old password"),onChange:e,value:a})}),o().createElement(i.xI,{name:"newPassword",control:_,render:({field:{onChange:e,value:a}})=>o().createElement(l.PasswordInput,{id:"newPassword",invalid:!!E?.newPassword,invalidText:E?.newPassword?.message,labelText:s("newPassword","New password"),onChange:e,value:a})}),o().createElement(i.xI,{name:"passwordConfirmation",control:_,render:({field:{onChange:e,value:a}})=>o().createElement(l.PasswordInput,{id:"passwordConfirmation",invalid:!!E?.passwordConfirmation,invalidText:E?.passwordConfirmation?.message,labelText:s("confirmPassword","Confirm new password"),onChange:e,value:a})}),p&&o().createElement(l.InlineNotification,{kind:"error",onClick:()=>g(""),subtitle:p,title:s("errorChangingPassword","Error changing password")}))),o().createElement(l.ModalFooter,null,o().createElement(l.Button,{kind:"secondary",onClick:e},s("cancel","Cancel")),o().createElement(l.Button,{className:c.submitButton,disabled:a,type:"submit"},a?o().createElement(l.InlineLoading,{description:s("changingPassword","Changing password")+"..."}):o().createElement("span",null,s("change","Change")))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).push([["8588"],{3479(e,s,a){a.r(s),a.d(s,{default:()=>u});var r=a(6925),o=a.n(r),n=a(9737),d=a(7448),t=a(1509),i=a(2549),l=a(8326),w=a(5607),m=a(2647);let c={submitButton:"-esm-login__change-password-modal__submitButton___tGb1i"},u=({close:e})=>{let{t:s}=(0,n.useTranslation)(),[a,u]=(0,r.useState)(!1),[p,g]=(0,r.useState)(null),P=d.z.string({required_error:s("oldPasswordRequired","Old password is required")}).trim().min(1,s("oldPasswordRequired","Old password is required")),C=d.z.string({required_error:s("newPasswordRequired","New password is required")}).trim().min(1,s("newPasswordRequired","New password is required")),f=d.z.string({required_error:s("passwordConfirmationRequired","Password confirmation is required")}).trim().min(1,s("passwordConfirmationRequired","Password confirmation is required")),h=d.z.object({oldPassword:P,newPassword:C,passwordConfirmation:f}).refine(e=>e.newPassword===e.passwordConfirmation,{message:s("passwordsDoNotMatch","Passwords do not match"),path:["passwordConfirmation"]}),{handleSubmit:b,control:_,formState:{errors:E}}=(0,i.mN)({resolver:(0,t.u)(h),defaultValues:{oldPassword:"",newPassword:"",passwordConfirmation:""}}),q=(0,r.useCallback)(a=>{u(!0);let{oldPassword:r,newPassword:o}=a;(0,m.d)(r,o).then(()=>{e(),(0,w.showSnackbar)({title:s("passwordChangedSuccessfully","Password changed successfully"),kind:"success"})}).catch(e=>{g(e?.responseBody?.message??e?.message)}).finally(()=>{u(!1)})},[e,s]);return o().createElement(l.Form,{onSubmit:b(q,()=>u(!1))},o().createElement(l.ModalHeader,{closeModal:e,title:s("changePassword","Change password")}),o().createElement(l.ModalBody,null,o().createElement(l.Stack,{gap:5,className:c.languageOptionsContainer},o().createElement(i.xI,{name:"oldPassword",control:_,render:({field:{onChange:e,value:a}})=>o().createElement(l.PasswordInput,{id:"oldPassword",invalid:!!E?.oldPassword,invalidText:E?.oldPassword?.message,labelText:s("oldPassword","Old password"),onChange:e,value:a})}),o().createElement(i.xI,{name:"newPassword",control:_,render:({field:{onChange:e,value:a}})=>o().createElement(l.PasswordInput,{id:"newPassword",invalid:!!E?.newPassword,invalidText:E?.newPassword?.message,labelText:s("newPassword","New password"),onChange:e,value:a})}),o().createElement(i.xI,{name:"passwordConfirmation",control:_,render:({field:{onChange:e,value:a}})=>o().createElement(l.PasswordInput,{id:"passwordConfirmation",invalid:!!E?.passwordConfirmation,invalidText:E?.passwordConfirmation?.message,labelText:s("confirmPassword","Confirm new password"),onChange:e,value:a})}),p&&o().createElement(l.InlineNotification,{kind:"error",onClick:()=>g(""),subtitle:p,title:s("errorChangingPassword","Error changing password")}))),o().createElement(l.ModalFooter,null,o().createElement(l.Button,{kind:"secondary",onClick:e},s("cancel","Cancel")),o().createElement(l.Button,{className:c.submitButton,disabled:a,type:"submit"},a?o().createElement(l.InlineLoading,{description:s("changingPassword","Changing password")+"..."}):o().createElement("span",null,s("change","Change")))))}}}]);
package/dist/9834.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).push([["9834"],{4767(e,t,o){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":["6468","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 a(e){if(!o.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],a=t[0];return o.e(t[1]).then(function(){return o(a)})}a.keys=()=>Object.keys(n),a.id=4767,e.exports=a},2647(e,t,o){"use strict";o.d(t,{d:()=>a});var n=o(3004);function a(e,t){return(0,n.openmrsFetch)(`${n.restBaseUrl}/password`,{method:"POST",headers:{"Content-Type":"application/json"},body:{oldPassword:e,newPassword:t}})}},4593(e,t,o){"use strict";o.r(t),o.d(t,{twoFactorAuthLink:()=>H,changePasswordModal:()=>G,importTranslation:()=>q,logoutButton:()=>$,locationPicker:()=>z,totpEnrollmentModal:()=>Q,changeLocationLink:()=>W,changePasswordLink:()=>V,startupApp:()=>O,root:()=>D});var n=o(3004);let a={enabled:{_type:n.Type.Boolean,_default:!1,_description:"Whether Two Factor Authentication is enabled or not"},dashboardTitle:{_type:n.Type.Object,_default:{key:"twoFactorAuth",value:"Two-Factor Authentication"},_description:"The title of the Two Factor Authentication page",key:{_type:n.Type.String},value:{_type:n.Type.String}}},r={provider:{type:{_type:n.Type.String,_default:"basic",_description:"Selects the login mechanism to use. Choices are 'basic', 'oauth2' and 'custom'. On log out, the user is redirected to the login Url in 'custom' mode, but NOT in 'oauth2' mode. For 'custom' and 'oauth2', you'll also need to set the 'loginUrl' property.",_validators:[n.validators.oneOf(["basic","custom","oauth2"])]},loginUrl:{_type:n.Type.String,_default:"${openmrsSpaBase}/login",_description:"The URL to use to login. This is only used if the login type is 'oauth2' or 'custom'.",_validators:[n.validators.isUrl]},_validators:[(0,n.validator)(e=>"custom"!==e.type&&"oauth2"!==e.type||"${openmrsSpaBase}/login"!==e.loginUrl,e=>`Provider type '${e.type}' requires an explicit loginUrl that is not the default SPA login route.`)]},chooseLocation:{enabled:{_type:n.Type.Boolean,_default:!0,_description:"Whether to show a 'Choose Location' screen after login. If true, the user will be taken to the URL set in the 'links.loginSuccess' config property after choosing a location."},locationsPerRequest:{_type:n.Type.Number,_default:50,_description:"The number of results to fetch in each cycle of infinite scroll.",_validators:[(0,n.validator)(e=>"number"==typeof e&&e>0,"Must be greater than zero")]},useLoginLocationTag:{_type:n.Type.Boolean,_default:!0,_description:"Whether to display only locations with the 'Login Location' tag. If false, all locations are shown."}},links:{loginSuccess:{_type:n.Type.String,_default:"${openmrsSpaBase}/home",_description:"The URL to redirect the user to after a successful login.",_validators:[n.validators.isUrl]}},logo:{src:{_type:n.Type.String,_default:"",_description:"Deprecated: use `logo` in the `@openmrs/esm-styleguide` config instead. If set, this takes precedence over the styleguide logo on the login page.",_validators:[n.validators.isUrl]},alt:{_type:n.Type.String,_default:"Logo",_description:"The alternative text for the logo image, displayed when the image cannot be loaded or on hover."}},footer:{additionalLogos:{_type:n.Type.Array,_elements:{_type:n.Type.Object,src:{_type:n.Type.String,_required:!0,_description:"The source URL of the logo image",_validators:[n.validators.isUrl]},alt:{_type:n.Type.String,_required:!0,_description:"The alternative text for the logo image"}},_default:[],_description:"An array of logos to be displayed in the footer next to the OpenMRS logo."}},showPasswordOnSeparateScreen:{_type:n.Type.Boolean,_default:!0,_description:"Whether to show the password field on a separate screen. If false, the password field will be shown on the same screen."},background:{_type:n.Type.Object,_description:"Customizes the login page background. Either a background image URL or a CSS color may be set. If both are set, the image is used.",image:{_type:n.Type.String,_default:"",_description:"URL to a background image. Relative paths are interpolated via ${openmrsBase} / ${openmrsSpaBase}.",_validators:[n.validators.isUrl]},color:{_type:n.Type.String,_default:"",_description:'CSS color value (e.g. "#0066cc" or "rgb(0,102,204)"). Used when no image is set.'}},announcements:{_type:n.Type.Array,_description:"Message banners displayed above the login form, e.g. for planned downtime notices. Each entry renders as a Carbon InlineNotification. `title` and `text` may be either literal strings or translation keys.",_elements:{_type:n.Type.Object,title:{_type:n.Type.String,_default:"",_description:"Optional title shown at the top of the banner. May be a translation key."},text:{_type:n.Type.String,_required:!0,_description:"Banner body text. May be a translation key."},kind:{_type:n.Type.String,_default:"info",_description:"The visual style of the banner. One of: info, warning, error, success.",_validators:[n.validators.oneOf(["info","warning","error","success"])]}},_default:[]},twoFactorAuth:a};var s=o(6925),i=o.n(s),l=o(8326),c=o(9737),u=o(7665),_=o(8086),m=o.n(_);let d=({hideWelcomeMessage:e,currentLocationUuid:t})=>{let{t:o}=(0,c.useTranslation)(),a=(0,n.useConfig)(),{chooseLocation:r}=a,[_]=(0,u.useSearchParams)(),d=(0,s.useId)(),g=(0,s.useMemo)(()=>"true"===_.get("update"),[_]),{defaultLocation:p,updateDefaultLocation:h,savePreference:f,setSavePreference:w}=function(e){let{t}=(0,c.useTranslation)(),{user:o}=(0,n.useSession)(),{userUuid:a,userProperties:r}=(0,s.useMemo)(()=>({userUuid:o?.uuid,userProperties:o?.userProperties}),[o]),[i,l]=(0,s.useState)(!1),u=(0,s.useMemo)(()=>r?.defaultLocation,[r?.defaultLocation]),{isLocationValid:_,defaultLocation:d}=function(e){let t=e?`${n.fhirBaseUrl}/Location?_id=${e}`:null,{data:o,error:a,isLoading:r}=m()(t,n.openmrsFetch,{shouldRetryOnError:e=>!!e?.response?.status&&e.response.status>=500});return(0,s.useMemo)(()=>({isLocationValid:o?.ok&&o?.data.total>0,defaultLocation:o?.data?.entry??[],error:a,isLoading:r}),[o,r,a])}(u);(0,s.useEffect)(()=>{u&&l(!0)},[l,u]);let g=(0,s.useCallback)(async(e,t)=>{if(t){let t={...r,defaultLocation:e};await (0,n.setUserProperties)(a,t)}else if(r?.defaultLocation){let e={...r};delete e.defaultLocation,await (0,n.setUserProperties)(a,e)}},[r,a]),p=(0,s.useCallback)(async(o,a)=>{i&&o===u||g(o,a).then(()=>{a?(0,n.showSnackbar)({title:e?t("locationUpdated","Location updated"):t("locationSaved","Location saved"),subtitle:e?t("locationUpdateMessage","Your preferred login location has been updated"):t("locationSaveMessage","Your preferred location has been saved for future logins"),kind:"success",isLowContrast:!0}):u&&(0,n.showSnackbar)({title:t("locationPreferenceRemoved","Location preference removed"),subtitle:t("locationPreferenceRemovedMessage","You will need to select a location on each login"),kind:"success",isLowContrast:!0})})},[i,u,g,t,e]);return{defaultLocationFhir:d,defaultLocation:_?u:null,updateDefaultLocation:p,savePreference:i,setSavePreference:l}}(g),{isLoading:y,locationCount:v,firstLocation:E}=function(e){let t=new URLSearchParams({_count:"1"});e&&t.append("_tag","Login Location");let o=`${n.fhirBaseUrl}/Location?${t}`,{data:a,error:r,isLoading:i}=m()(o,n.openmrsFetch,{shouldRetryOnError:e=>!!e?.response?.status&&e.response.status>=500});return(0,s.useMemo)(()=>({locationCount:a?.data?.total,firstLocation:a?.data?.entry?a.data.entry[0]:null,error:r,isLoading:i}),[a,i,r])}(r.useLoginLocationTag),{user:b,sessionLocation:k}=(0,n.useSession)(),{currentUser:C,userProperties:S}=(0,s.useMemo)(()=>({currentUser:b?.display,userProperties:b?.userProperties}),[b]),T=!y&&0===v,[L,N]=(0,s.useState)(()=>t&&e?t:k?.uuid??p),[P,I]=(0,s.useState)(!1),{state:B}=(0,u.useLocation)(),R=(0,s.useCallback)((e,t)=>{I(!0);let o=B?.referrer,r=_.get("returnToUrl"),s=(0,n.setSessionLocation)(e,new AbortController);h(e,t),s.then(()=>{o&&o.startsWith("/")&&!["/","/login","/login/location"].includes(o)?(0,n.navigate)({to:"${openmrsSpaBase}"+o}):r&&function(e){if(!e)return!1;try{let t=(0,n.interpolateUrl)(e);return new URL(t,window.location.origin).origin===window.location.origin}catch{return!1}}(r)?(0,n.navigate)({to:r}):(0,n.navigate)({to:a.links.loginSuccess})})},[B?.referrer,a.links.loginSuccess,h,_]);(0,s.useEffect)(()=>{y||g||(1===v||!r.enabled&&v>0)&&(E?.resource?.id?R(E.resource.id,!0):console.error("Expected location data is missing",{firstLocation:E,locationCount:v}))},[v,y,g]),(0,s.useEffect)(()=>{g||p&&!P&&(N(p),R(p,!0))},[R,P,p,g]);let j=(0,s.useCallback)(e=>{e.preventDefault(),L&&R(L,f)},[L,R,f]);return i().createElement("div",{className:"-esm-login__location-picker__locationPickerContainer___ZFwuq"},i().createElement("form",{onSubmit:j},i().createElement("div",{className:"-esm-login__location-picker__locationCard___yikUB"},i().createElement("div",{className:"-esm-login__location-picker__paddedContainer___YrF6Q"},T?i().createElement("div",{className:"-esm-login__location-picker__emptyStateContainer___ljteM",role:"status"},i().createElement(n.WarningIcon,{className:"-esm-login__location-picker__emptyStateIcon___cuiE5",size:24}),i().createElement("p",{className:"-esm-login__location-picker__emptyStateTitle___bGXMG"},o("noLoginLocations","No login locations configured")),i().createElement("p",{className:"-esm-login__location-picker__emptyStateMessage___vZacO"},o("noLoginLocationsMessage","This installation has no login locations configured. Please contact your system administrator."))):i().createElement(i().Fragment,null,i().createElement("p",{className:"-esm-login__location-picker__welcomeTitle___EjKxQ"},o("welcome","Welcome")," ",C),i().createElement("p",{className:"-esm-login__location-picker__welcomeMessage___rZBlu"},o("selectYourLocation","Select your location from the list below. Use the search bar to find your location.")))),!T&&i().createElement(i().Fragment,null,i().createElement(n.LocationPicker,{selectedLocationUuid:L,defaultLocationUuid:S.defaultLocation,locationTag:r.useLoginLocationTag&&"Login Location",locationsPerRequest:Math.max(r.locationsPerRequest,1),onChange:e=>N(e)}),i().createElement("div",{className:"-esm-login__location-picker__footerContainer___3ipy8"},i().createElement(l.Checkbox,{className:"-esm-login__location-picker__savePreferenceCheckbox___6B5jM",checked:f,id:d,labelText:o("rememberLocationForFutureLogins","Remember my location for future logins"),onChange:(e,{checked:t})=>w(t)}),i().createElement(l.Button,{className:"-esm-login__location-picker__confirmButton___lJH70",kind:"primary",type:"submit",disabled:!L||P},P?i().createElement(l.InlineLoading,{className:"-esm-login__location-picker__loader___WojAJ",description:o("submitting","Submitting")}):i().createElement("span",null,(0,n.getCoreTranslation)("confirm"))))))))};var g=o(7448),p=o(1509),h=o(2549),f=o(2647);let w="-esm-login__login__continueButton___PoHTG",y="-esm-login__login__loader___hNT+s",v=({t:e})=>{let{logo:t}=(0,n.useConfig)(),{logo:o}=(0,n.useConfig)({externalModuleName:"@openmrs/esm-styleguide"}),a=t?.src?t:o;return a?.src?i().createElement("img",{alt:a.alt?e(a.alt):e("openmrsLogo","OpenMRS logo"),className:"-esm-login__login__logoImg___kob2B",src:(0,n.interpolateUrl)(a.src)}):i().createElement("svg",{role:"img",className:"-esm-login__login__logo___eUD1e"},i().createElement("title",null,e("openmrsLogo","OpenMRS logo")),i().createElement("use",{href:"#omrs-logo-full-color"}))},E=()=>{let{t:e}=(0,c.useTranslation)(),[t,o]=(0,s.useState)(!1),a=g.z.string({required_error:e("oldPasswordRequired","Old password is required")}),r=g.z.string({required_error:e("newPasswordRequired","New password is required")}),u=g.z.string({required_error:e("passwordConfirmationRequired","Password confirmation is required")}),_=g.z.object({oldPassword:a,newPassword:r,passwordConfirmation:u}).refine(e=>e.newPassword===e.passwordConfirmation,{message:e("passwordsDoNotMatch","Passwords do not match"),path:["passwordConfirmation"]}),{handleSubmit:m,control:d,formState:{errors:w}}=(0,h.mN)({resolver:(0,p.u)(_)}),y=(0,s.useCallback)(t=>{o(!0);let{oldPassword:a,newPassword:r}=t;(0,f.d)(a,r).then(()=>{(0,n.showSnackbar)({title:e("passwordChangedSuccessfully","Password changed successfully"),kind:"success"})}).catch(t=>{(0,n.showSnackbar)({kind:"error",subtitle:t?.message,title:e("errorChangingPassword","Error changing password")})}).finally(()=>{o(!1)})},[e]),E=(0,s.useCallback)(()=>o(!1),[]);return i().createElement("div",{className:"-esm-login__change-password__container___EjdJ+"},i().createElement(l.Tile,{className:"-esm-login__change-password__changePasswordCard___y-M47"},i().createElement("div",{className:"-esm-login__change-password__alignCenter___QDha+"},i().createElement(v,{t:e})),i().createElement(l.Form,{onSubmit:m(y,E)},i().createElement(h.xI,{name:"oldPassword",control:d,render:({field:{onChange:t,value:o}})=>i().createElement(l.PasswordInput,{id:"oldPassword",invalid:!!w?.oldPassword,invalidText:(w&&w.oldPassword&&w.oldPassword.message&&"string"==typeof w.oldPassword.message&&w.oldPassword.message)??"",labelText:e("oldPassword","Old password"),onChange:t,value:o})}),i().createElement(h.xI,{name:"newPassword",control:d,render:({field:{onChange:t,value:o}})=>i().createElement(l.PasswordInput,{id:"newPassword",invalid:!!w?.newPassword,invalidText:(w&&w.newPassword&&w.newPassword.message&&"string"==typeof w.newPassword.message&&w.newPassword.message)??"",labelText:e("newPassword","New password"),onChange:t,value:o})}),i().createElement(h.xI,{name:"passwordConfirmation",control:d,render:({field:{onChange:t,value:o}})=>i().createElement(l.PasswordInput,{id:"passwordConfirmation",invalid:!!w?.passwordConfirmation,invalidText:(w&&w.passwordConfirmation&&w.passwordConfirmation.message&&"string"==typeof w.passwordConfirmation.message&&w.passwordConfirmation.message)??"",labelText:e("confirmPassword","Confirm new password"),onChange:t,value:o})}),i().createElement(l.Button,{className:"-esm-login__change-password__submitButton___C5und",disabled:t,type:"submit"},t?i().createElement(l.InlineLoading,{description:e("changingPassword","Changing password")+"..."}):i().createElement("span",null,e("change","Change Password"))))))};var b=o(5530),k=o.n(b);let C="-esm-login__footer__poweredByLogo___7yBsr",S="-esm-login__footer__poweredByText___MSWQ0",T=()=>{let{t:e}=(0,c.useTranslation)(),t=(0,n.useConfig)().footer.additionalLogos||[],o=(0,s.useCallback)(e=>{console.error("Failed to load image",e)},[]);return i().createElement("div",{className:"-esm-login__footer__footer___tu4Ea"},i().createElement(l.Tile,{className:"-esm-login__footer__poweredByTile___iJfAv"},i().createElement("div",{className:"-esm-login__footer__poweredByContainer___ND5jc"},i().createElement("span",{className:S},e("builtWith","Built with")),i().createElement("svg",{"aria-label":e("openmrsLogo","OpenMRS Logo"),className:C,role:"img"},i().createElement("use",{href:"#omrs-logo-full-color"})),i().createElement("span",{className:`${S} -esm-login__footer__poweredBySubtext___PQoO1`},e("poweredBySubtext","An open-source medical record system and global community")),i().createElement(l.Link,{className:"-esm-login__footer__learnMoreButton___abMoh",href:"https://openmrs.org",rel:"noopener noreferrer",renderIcon:()=>i().createElement(n.ArrowRightIcon,{size:16,"aria-label":"Arrow right icon"}),target:"_blank"},e("learnMore","Learn more")))),i().createElement("div",{className:"-esm-login__footer__logosContainer___MLq6g"},t.map(t=>i().createElement("img",{alt:t.alt?e(t.alt):e("footerlogo","Footer Logo"),className:C,key:t.src,onError:o,src:t.src}))))},L=({children:e,onClearError:t,errorMessage:o,showFooter:a=!0})=>{let{t:r}=(0,c.useTranslation)(),{announcements:u=[],background:_={image:"",color:""}}=(0,n.useConfig)(),m=k()("-esm-login__login-page-wrapper__container___u7bAR",{"-esm-login__login-page-wrapper__containerWithImage___i1pb4":!!_.image,"-esm-login__login-page-wrapper__containerWithColor___nlDvg":!_.image&&!!_.color}),d=(0,s.useMemo)(()=>_.image?{"--login-bg-image":`url(${(0,n.interpolateUrl)(_.image)})`}:_.color?{"--login-bg-color":_.color}:void 0,[_]);return i().createElement("div",{className:m,style:d,"data-testid":"login-container"},u.length>0&&i().createElement("div",{className:"-esm-login__login-page-wrapper__announcements___0bRHk"},u.map((e,t)=>i().createElement(l.InlineNotification,{key:t,kind:e.kind,title:e.title?r(e.title):"",subtitle:r(e.text),lowContrast:!0,hideCloseButton:!0}))),i().createElement(l.Tile,{className:"-esm-login__login-page-wrapper__loginCard___xP4rC"},o&&i().createElement("div",{className:"-esm-login__login-page-wrapper__errorMessage___4QoqS"},i().createElement(l.InlineNotification,{kind:"error",subtitle:r(o),title:(0,n.getCoreTranslation)("error"),onClick:t})),i().createElement("div",{className:"-esm-login__login-page-wrapper__center___Uf01H"},i().createElement(v,{t:r})),e),a&&i().createElement(T,null))},N=()=>{let{showPasswordOnSeparateScreen:e,provider:t,links:o}=(0,n.useConfig)(),{t:a}=(0,c.useTranslation)(),{user:r}=(0,n.useSession)(),_=(0,u.useLocation)(),m=(0,u.useNavigate)(),[d,g]=(0,s.useState)(""),[p,h]=(0,s.useState)(!1),[f,v]=(0,s.useState)(""),[E,b]=(0,s.useState)(""),[k,C]=(0,s.useState)(!1),S=(0,s.useRef)(null),T=(0,s.useRef)(null);(0,s.useEffect)(()=>{!r&&("oauth2"===t.type||"custom"===t.type?(0,n.navigate)({to:t.loginUrl}):E||"/login/confirm"!==_.pathname||m("/login"))},[E,m,_,r,t]),(0,s.useEffect)(()=>{e&&(k?S.current?.value||S.current?.focus():T.current?.focus())},[k,e]),(0,s.useEffect)(()=>{_?.state?.referrer?sessionStorage.setItem("loginReferrer",_.state.referrer):sessionStorage.removeItem("loginReferrer")},[_]);let N=(0,s.useCallback)(()=>{let e=T.current?.value?.trim();e?(b(e),C(!0)):T.current?.focus()},[]),P=(0,s.useCallback)(e=>b(e.target.value),[]),I=(0,s.useCallback)(e=>v(e.target.value),[]),B=(0,s.useCallback)(async t=>{t.preventDefault(),t.stopPropagation();let r=T.current?.value?.trim()||E,s=S.current?.value||f;if(e&&!k)return N(),!1;if(!s||!s.trim())return S.current?.focus(),!1;try{h(!0);let t=await (0,n.refetchCurrentUser)(r,s),i=t.session;if(t?.session?.authenticated)if(i.sessionLocation){let e=o?.loginSuccess||"/home",t=_?.state?.referrer??sessionStorage.getItem("loginReferrer");t&&t.startsWith("/")&&(e=`\${openmrsSpaBase}${t}`),sessionStorage.removeItem("loginReferrer"),(0,n.navigate)({to:e})}else m("/login/location");else g(a("invalidCredentials","Invalid username or password")),b(""),v(""),e&&C(!1);return!0}catch(t){t instanceof Error?g(t.message):g(a("invalidCredentials","Invalid username or password")),b(""),v(""),e&&C(!1)}finally{h(!1)}},[E,f,m,e,k,o,_,a,N]);return t&&"basic"!==t.type?null:i().createElement(L,{errorMessage:d,onClearError:()=>{g("")}},i().createElement("form",{onSubmit:B},i().createElement("div",{className:"-esm-login__login__inputGroup___VWJgx"},i().createElement(l.TextInput,{id:"username",type:"text",name:"username",autoComplete:"username",labelText:a("username","Username"),value:E,onChange:P,ref:T,required:!0,autoFocus:!0}),e?i().createElement(i().Fragment,null,i().createElement("div",{className:k?void 0:"-esm-login__login__hiddenPasswordField___sn77T"},i().createElement(l.PasswordInput,{id:"password",labelText:a("password","Password"),name:"password",autoComplete:"current-password",onChange:I,ref:S,required:!0,value:f,showPasswordLabel:a("showPassword","Show password"),invalidText:a("validValueRequired","A valid value is required"),"aria-hidden":!k,tabIndex:k?0:-1})),k?i().createElement(l.Button,{type:"submit",className:w,renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),iconDescription:a("loginButtonIconDescription","Log in button"),disabled:p},p?i().createElement(l.InlineLoading,{className:y,description:a("loggingIn","Logging in")+"..."}):a("login","Log in")):i().createElement(l.Button,{type:"submit",className:w,renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),iconDescription:a("continueToPassword","Continue to password"),onClick:e=>{e.preventDefault(),N()}},a("continue","Continue"))):i().createElement(i().Fragment,null,i().createElement(l.PasswordInput,{id:"password",labelText:a("password","Password"),name:"password",autoComplete:"current-password",onChange:I,ref:S,required:!0,value:f,showPasswordLabel:a("showPassword","Show password"),invalidText:a("validValueRequired","A valid value is required")}),i().createElement(l.Button,{type:"submit",className:w,renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),iconDescription:a("loginButtonIconDescription","Log in button"),disabled:p},p?i().createElement(l.InlineLoading,{className:y,description:a("loggingIn","Logging in")+"..."}):a("login","Log in")))),window.applicationVersion&&i().createElement("div",{className:"-esm-login__login__versionText___BMkWw"},window.applicationVersion)))};var P=o(749),I=o(3658);async function B(e,t){await (0,I.logout)(),await R(e,t)}function R(e,t){return Promise.all([...e.keys()].map(e=>t(e,void 0,{revalidate:!1})))}let j=()=>{let e=(0,n.useConfig)(),t=(0,n.useSession)(),{cache:o,mutate:a}=(0,P.useSWRConfig)();return(0,s.useEffect)(()=>{(0,I.clearHistory)(),t.authenticated?B(o,a).then(()=>{let t=document.documentElement.getAttribute("data-default-lang");(0,n.setUserLanguage)({locale:t,authenticated:!1,sessionId:""}),"custom"===e.provider.type?(0,n.navigate)({to:e.provider.loginUrl}):"oauth2"===e.provider.type||(0,n.navigate)({to:"${openmrsSpaBase}/login"})}).catch(e=>{console.error("Logout failed:",e)}):(R(o,a),"custom"===e.provider.type?(0,n.navigate)({to:e.provider.loginUrl}):"oauth2"===e.provider.type||(0,n.navigate)({to:"${openmrsSpaBase}/login"}))},[e,t,o,a]),null},x=({title:e})=>{let{t}=(0,c.useTranslation)(),o=(0,n.useConfig)(),{dashboardTitle:a}=o.twoFactorAuth,r=(0,n.useSession)(),u=r.user?.userProperties,_=(u?.["authentication.secondaryType"]||"").split(",").includes("totp"),m=(0,s.useCallback)(()=>{(0,n.showModal)("totp-enrollment-modal",{size:"md"})},[]);return o.twoFactorAuth.enabled?i().createElement("div",null,i().createElement(n.PageHeader,{className:"-esm-login__two-factor-auth__header___2sPGc"},i().createElement(n.PageHeaderContent,{title:e??t(a.key,a.value),illustration:i().createElement(n.DigitalTrustPictogram,null)})),i().createElement("main",{className:"-esm-login__two-factor-auth__pageContainer___NcNkW"},i().createElement("div",{className:"-esm-login__two-factor-auth__mainCard___1ot6h"},i().createElement("div",{className:"-esm-login__two-factor-auth__descriptionText___0EyIN"},i().createElement("h3",null,t("protectAccountTitle","Protect your account with an extra verification step.")),i().createElement("p",null,t("protectAccountDescription","After signing in, you will verify your identity with a second method.")),i().createElement("p",null,t("protectAccountReason","This helps keep your account secure."))),i().createElement(l.Tile,{className:"-esm-login__two-factor-auth__methodTile___Rq6dQ"},i().createElement("div",{className:"-esm-login__two-factor-auth__iconContainer___5EwpE"},i().createElement(n.MobileCheckIcon,{size:34})),i().createElement("div",{className:"-esm-login__two-factor-auth__textContainer___sNgzv"},i().createElement("div",{className:"-esm-login__two-factor-auth__titleRow___QoDcM"},i().createElement("h4",null,t("authenticatorApp","Authenticator App")),_&&i().createElement(l.Tag,{type:"green",size:"sm"},t("enabled","Enabled"))),i().createElement("p",null,t("authenticatorAppDescription","Use an authentication app to generate one-time codes"))),i().createElement("div",null,_?i().createElement(l.Button,{kind:"danger--ghost",disabled:!0},t("remove","Remove")):i().createElement(l.Button,{kind:"ghost",onClick:m},t("setup","Set up"))))))):null},A=({length:e=6,onChange:t})=>{let{t:o}=(0,c.useTranslation)(),[n,a]=(0,s.useState)(Array(e).fill("")),r=(0,s.useRef)([]);return i().createElement("fieldset",{className:"-esm-login__verification-code-input__wrapper___6SMl+"},i().createElement("legend",{className:"-esm-login__verification-code-input__label___13ZWy"},o("enterCode","Enter the code from your authenticator app")),i().createElement("div",{className:"-esm-login__verification-code-input__otpContainer___eVAFT",onPaste:o=>{o.preventDefault();let n=o.clipboardData.getData("text").replace(/\s/g,"").slice(0,e);if(!/^\d+$/.test(n))return;let s=Array(e).fill("");n.split("").forEach((e,t)=>{s[t]=e}),a(s),t(s.join("")),n.length===e?r.current[e-1]?.focus():r.current[n.length]?.focus()}},n.map((s,c)=>i().createElement(l.TextInput,{className:"-esm-login__verification-code-input__otpInput___kx0N-",key:c,id:`otp-input-${c}`,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"one-time-code",autoFocus:0===c,maxLength:1,value:s,labelText:o("digitLabel","Digit {{number}}",{number:c+1}),hideLabel:!0,ref:e=>r.current[c]=e,onChange:o=>((o,s)=>{let i=o.target.value;if(!/^[0-9]*$/.test(i))return;let l=[...n];l[s]=i.substring(i.length-1),a(l),t(l.join("")),i&&s<e-1&&r.current[s+1]&&r.current[s+1]?.focus()})(o,c),onKeyDown:t=>{"Backspace"===t.key?!n[c]&&c>0&&r.current[c-1]&&r.current[c-1]?.focus():"ArrowLeft"===t.key&&c>0?(t.preventDefault(),r.current[c-1]?.focus()):"ArrowRight"===t.key&&c<e-1&&(t.preventDefault(),r.current[c+1]?.focus())},onFocus:e=>e.target.select()}))))},U=()=>{let{t:e}=(0,c.useTranslation)(),t=(0,u.useNavigate)(),o=(0,u.useLocation)(),{links:a}=(0,n.useConfig)(),[r,_]=(0,s.useState)(""),[m,d]=(0,s.useState)(!0),[g,p]=(0,s.useState)(!1),[h,f]=(0,s.useState)(""),w=async s=>{s.preventDefault();try{p(!0),f("");let s=await (0,I.verifyTotpCode)(r,m);if(s?.authenticated)if(s.sessionLocation){let e=a?.loginSuccess||"/home",t=o?.state?.referrer||sessionStorage.getItem("loginReferrer");t&&t.startsWith("/")&&(e=`\${openmrsSpaBase}${t}`),sessionStorage.removeItem("loginReferrer"),(0,n.navigate)({to:e})}else t("/login/location");else f(e("totpVerificationFailed","We could not verify that code. Please try again."))}catch(o){let t=e("verificationFailedError","A network or server error occurred. Please try again.");if(o instanceof n.OpenmrsFetchError){if("object"==typeof o.responseBody&&null!==o.responseBody){let e=o.responseBody,n=e.error?.translatedMessage??o.message;n&&(t=n)}}else o instanceof Error&&(t=o.message);f(t)}finally{p(!1)}};return i().createElement(L,{errorMessage:h,onClearError:()=>f(""),showFooter:!1},i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__title___h9GOI"},i().createElement("h1",null,e("twoFactorVerification","Two-Factor Verification"))),i().createElement("form",{onSubmit:w},i().createElement(A,{length:6,onChange:e=>{_(e)}}),i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__checkbox___oV4xI"},i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__checkboxInner___93SnL"},i().createElement(l.Checkbox,{id:"remember-device",labelText:e("rememberDevice","Remember this device"),checked:m,onChange:(e,{checked:t})=>d(t)}))),i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__actionButtons___GT2Nu"},i().createElement(l.Button,{type:"button",className:"-esm-login__totp-verification-challenge-page__backToLoginButton___tOVqh",kind:"ghost",onClick:()=>t("/logout"),disabled:g},i().createElement(n.ArrowLeftIcon,{size:16}),e("backToLogin","Back to login")),i().createElement(l.Button,{type:"submit",className:"-esm-login__totp-verification-challenge-page__verifyButton___vL28C",renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),disabled:g||6!==r.length},g?e("verifying","Verifying..."):e("verify","Verify")))))},M="@openmrs/esm-login-app",F={featureName:"login",moduleName:M},q=o(4767);function O(){(0,n.defineConfigSchema)(M,r)}let D=(0,n.getSyncLifecycle)(()=>i().createElement(u.BrowserRouter,{basename:window.getOpenmrsSpaBase()},i().createElement(u.Routes,null,i().createElement(u.Route,{path:"login",element:i().createElement(N,null)}),i().createElement(u.Route,{path:"login/confirm",element:i().createElement(N,null)}),i().createElement(u.Route,{path:"login/location",element:i().createElement(d,null)}),i().createElement(u.Route,{path:"logout",element:i().createElement(j,null)}),i().createElement(u.Route,{path:"change-password",element:i().createElement(E,null)}),i().createElement(u.Route,{path:"two-factor-auth",element:i().createElement(x,null)}),i().createElement(u.Route,{path:"login/totp-challenge",element:i().createElement(U,null)}))),F),z=(0,n.getSyncLifecycle)(d,F),$=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)(),t=(0,s.useCallback)(()=>{(0,n.navigate)({to:"${openmrsSpaBase}/logout"})},[]);return i().createElement(l.SwitcherItem,{"aria-label":e("logout","Logout")},i().createElement(l.Button,{className:"-esm-login__logout__logout___ZqcE6",onClick:t,kind:"ghost"},e("logout","Logout")))},F),W=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)(),t=(0,n.useSession)(),o=t?.sessionLocation?.display;return i().createElement(l.HeaderGlobalAction,{"aria-label":e("changeLocation","Change location"),className:"-esm-login__change-location-link__changeLocationButton___qPbAk",onClick:()=>{(0,n.navigate)({to:`\${openmrsSpaBase}/login/location?returnToUrl=${encodeURIComponent(window.location.pathname)}&update=true`})}},i().createElement(n.LocationIcon,{size:16}),i().createElement("span",{className:"-esm-login__change-location-link__currentLocationText___z4sbN"},o))},F),V=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)(),t=(0,s.useCallback)(()=>{let e=(0,n.showModal)("change-password-modal",{closeModal:()=>e(),size:"sm"})},[]);return i().createElement(l.SwitcherItem,{"aria-label":e("changePassword","ChangePassword"),className:"-esm-login__change-password__panelItemContainer___pu8qq"},i().createElement("div",null,i().createElement(n.PasswordIcon,{size:20}),i().createElement("p",null,e("password","Password"))),i().createElement(l.Button,{kind:"ghost",onClick:t},e("change","Change")))},F),G=(0,n.getAsyncLifecycle)(()=>o.e("8588").then(o.bind(o,3479)),F),H=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)();return(0,n.useConfig)().twoFactorAuth.enabled?i().createElement(l.SwitcherItem,{"aria-label":e("twoFactorAuth","Two-Factor Authentication")},i().createElement("div",null,i().createElement(n.TwoFactorAuthenticationIcon,{size:20})),i().createElement(l.Button,{kind:"ghost",onClick:()=>{(0,n.navigate)({to:"${openmrsSpaBase}/two-factor-auth"}),document.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0}))},className:"-esm-login__two-factor-auth__menuItemButton___M9tVc"},i().createElement("span",null,e("twoFactorAuth","Two-Factor Authentication")))):null},F),Q=(0,n.getAsyncLifecycle)(()=>o.e("2007").then(o.bind(o,2442)),F)}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).push([["9834"],{4767(e,t,o){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":["6468","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 a(e){if(!o.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],a=t[0];return o.e(t[1]).then(function(){return o(a)})}a.keys=()=>Object.keys(n),a.id=4767,e.exports=a},2647(e,t,o){"use strict";o.d(t,{d:()=>a});var n=o(5607);function a(e,t){return(0,n.openmrsFetch)(`${n.restBaseUrl}/password`,{method:"POST",headers:{"Content-Type":"application/json"},body:{oldPassword:e,newPassword:t}})}},4593(e,t,o){"use strict";o.r(t),o.d(t,{twoFactorAuthLink:()=>H,changePasswordModal:()=>G,importTranslation:()=>q,logoutButton:()=>$,locationPicker:()=>z,totpEnrollmentModal:()=>Q,changeLocationLink:()=>W,changePasswordLink:()=>V,startupApp:()=>O,root:()=>D});var n=o(5607);let a={enabled:{_type:n.Type.Boolean,_default:!1,_description:"Whether Two Factor Authentication is enabled or not"},dashboardTitle:{_type:n.Type.Object,_default:{key:"twoFactorAuth",value:"Two-Factor Authentication"},_description:"The title of the Two Factor Authentication page",key:{_type:n.Type.String},value:{_type:n.Type.String}}},r={provider:{type:{_type:n.Type.String,_default:"basic",_description:"Selects the login mechanism to use. Choices are 'basic', 'oauth2' and 'custom'. On log out, the user is redirected to the login Url in 'custom' mode, but NOT in 'oauth2' mode. For 'custom' and 'oauth2', you'll also need to set the 'loginUrl' property.",_validators:[n.validators.oneOf(["basic","custom","oauth2"])]},loginUrl:{_type:n.Type.String,_default:"${openmrsSpaBase}/login",_description:"The URL to use to login. This is only used if the login type is 'oauth2' or 'custom'.",_validators:[n.validators.isUrl]},_validators:[(0,n.validator)(e=>"custom"!==e.type&&"oauth2"!==e.type||"${openmrsSpaBase}/login"!==e.loginUrl,e=>`Provider type '${e.type}' requires an explicit loginUrl that is not the default SPA login route.`)]},chooseLocation:{enabled:{_type:n.Type.Boolean,_default:!0,_description:"Whether to show a 'Choose Location' screen after login. If true, the user will be taken to the URL set in the 'links.loginSuccess' config property after choosing a location."},locationsPerRequest:{_type:n.Type.Number,_default:50,_description:"The number of results to fetch in each cycle of infinite scroll.",_validators:[(0,n.validator)(e=>"number"==typeof e&&e>0,"Must be greater than zero")]},useLoginLocationTag:{_type:n.Type.Boolean,_default:!0,_description:"Whether to display only locations with the 'Login Location' tag. If false, all locations are shown."}},links:{loginSuccess:{_type:n.Type.String,_default:"${openmrsSpaBase}/home",_description:"The URL to redirect the user to after a successful login.",_validators:[n.validators.isUrl]}},logo:{src:{_type:n.Type.String,_default:"",_description:"Deprecated: use `logo` in the `@openmrs/esm-styleguide` config instead. If set, this takes precedence over the styleguide logo on the login page.",_validators:[n.validators.isUrl]},alt:{_type:n.Type.String,_default:"Logo",_description:"The alternative text for the logo image, displayed when the image cannot be loaded or on hover."}},footer:{additionalLogos:{_type:n.Type.Array,_elements:{_type:n.Type.Object,src:{_type:n.Type.String,_required:!0,_description:"The source URL of the logo image",_validators:[n.validators.isUrl]},alt:{_type:n.Type.String,_required:!0,_description:"The alternative text for the logo image"}},_default:[],_description:"An array of logos to be displayed in the footer next to the OpenMRS logo."}},showPasswordOnSeparateScreen:{_type:n.Type.Boolean,_default:!0,_description:"Whether to show the password field on a separate screen. If false, the password field will be shown on the same screen."},background:{_type:n.Type.Object,_description:"Customizes the login page background. Either a background image URL or a CSS color may be set. If both are set, the image is used.",image:{_type:n.Type.String,_default:"",_description:"URL to a background image. Relative paths are interpolated via ${openmrsBase} / ${openmrsSpaBase}.",_validators:[n.validators.isUrl]},color:{_type:n.Type.String,_default:"",_description:'CSS color value (e.g. "#0066cc" or "rgb(0,102,204)"). Used when no image is set.'}},announcements:{_type:n.Type.Array,_description:"Message banners displayed above the login form, e.g. for planned downtime notices. Each entry renders as a Carbon InlineNotification. `title` and `text` may be either literal strings or translation keys.",_elements:{_type:n.Type.Object,title:{_type:n.Type.String,_default:"",_description:"Optional title shown at the top of the banner. May be a translation key."},text:{_type:n.Type.String,_required:!0,_description:"Banner body text. May be a translation key."},kind:{_type:n.Type.String,_default:"info",_description:"The visual style of the banner. One of: info, warning, error, success.",_validators:[n.validators.oneOf(["info","warning","error","success"])]}},_default:[]},twoFactorAuth:a};var s=o(6925),i=o.n(s),l=o(8326),c=o(9737),u=o(7665),_=o(8086),m=o.n(_);let d=({hideWelcomeMessage:e,currentLocationUuid:t})=>{let{t:o}=(0,c.useTranslation)(),a=(0,n.useConfig)(),{chooseLocation:r}=a,[_]=(0,u.useSearchParams)(),d=(0,s.useId)(),g=(0,s.useMemo)(()=>"true"===_.get("update"),[_]),{defaultLocation:p,updateDefaultLocation:h,savePreference:f,setSavePreference:w}=function(e){let{t}=(0,c.useTranslation)(),{user:o}=(0,n.useSession)(),{userUuid:a,userProperties:r}=(0,s.useMemo)(()=>({userUuid:o?.uuid,userProperties:o?.userProperties}),[o]),[i,l]=(0,s.useState)(!1),u=(0,s.useMemo)(()=>r?.defaultLocation,[r?.defaultLocation]),{isLocationValid:_,defaultLocation:d}=function(e){let t=e?`${n.fhirBaseUrl}/Location?_id=${e}`:null,{data:o,error:a,isLoading:r}=m()(t,n.openmrsFetch,{shouldRetryOnError:e=>!!e?.response?.status&&e.response.status>=500});return(0,s.useMemo)(()=>({isLocationValid:o?.ok&&o?.data.total>0,defaultLocation:o?.data?.entry??[],error:a,isLoading:r}),[o,r,a])}(u);(0,s.useEffect)(()=>{u&&l(!0)},[l,u]);let g=(0,s.useCallback)(async(e,t)=>{if(t){let t={...r,defaultLocation:e};await (0,n.setUserProperties)(a,t)}else if(r?.defaultLocation){let e={...r};delete e.defaultLocation,await (0,n.setUserProperties)(a,e)}},[r,a]),p=(0,s.useCallback)(async(o,a)=>{i&&o===u||g(o,a).then(()=>{a?(0,n.showSnackbar)({title:e?t("locationUpdated","Location updated"):t("locationSaved","Location saved"),subtitle:e?t("locationUpdateMessage","Your preferred login location has been updated"):t("locationSaveMessage","Your preferred location has been saved for future logins"),kind:"success",isLowContrast:!0}):u&&(0,n.showSnackbar)({title:t("locationPreferenceRemoved","Location preference removed"),subtitle:t("locationPreferenceRemovedMessage","You will need to select a location on each login"),kind:"success",isLowContrast:!0})})},[i,u,g,t,e]);return{defaultLocationFhir:d,defaultLocation:_?u:null,updateDefaultLocation:p,savePreference:i,setSavePreference:l}}(g),{isLoading:y,locationCount:v,firstLocation:E}=function(e){let t=new URLSearchParams({_count:"1"});e&&t.append("_tag","Login Location");let o=`${n.fhirBaseUrl}/Location?${t}`,{data:a,error:r,isLoading:i}=m()(o,n.openmrsFetch,{shouldRetryOnError:e=>!!e?.response?.status&&e.response.status>=500});return(0,s.useMemo)(()=>({locationCount:a?.data?.total,firstLocation:a?.data?.entry?a.data.entry[0]:null,error:r,isLoading:i}),[a,i,r])}(r.useLoginLocationTag),{user:b,sessionLocation:k}=(0,n.useSession)(),{currentUser:C,userProperties:S}=(0,s.useMemo)(()=>({currentUser:b?.display,userProperties:b?.userProperties}),[b]),T=!y&&0===v,[L,N]=(0,s.useState)(()=>t&&e?t:k?.uuid??p),[P,I]=(0,s.useState)(!1),{state:B}=(0,u.useLocation)(),R=(0,s.useCallback)((e,t)=>{I(!0);let o=B?.referrer,r=_.get("returnToUrl"),s=(0,n.setSessionLocation)(e,new AbortController);h(e,t),s.then(()=>{o&&o.startsWith("/")&&!["/","/login","/login/location"].includes(o)?(0,n.navigate)({to:"${openmrsSpaBase}"+o}):r&&function(e){if(!e)return!1;try{let t=(0,n.interpolateUrl)(e);return new URL(t,window.location.origin).origin===window.location.origin}catch{return!1}}(r)?(0,n.navigate)({to:r}):(0,n.navigate)({to:a.links.loginSuccess})})},[B?.referrer,a.links.loginSuccess,h,_]);(0,s.useEffect)(()=>{y||g||(1===v||!r.enabled&&v>0)&&(E?.resource?.id?R(E.resource.id,!0):console.error("Expected location data is missing",{firstLocation:E,locationCount:v}))},[v,y,g]),(0,s.useEffect)(()=>{g||p&&!P&&(N(p),R(p,!0))},[R,P,p,g]);let j=(0,s.useCallback)(e=>{e.preventDefault(),L&&R(L,f)},[L,R,f]);return i().createElement("div",{className:"-esm-login__location-picker__locationPickerContainer___ZFwuq"},i().createElement("form",{onSubmit:j},i().createElement("div",{className:"-esm-login__location-picker__locationCard___yikUB"},i().createElement("div",{className:"-esm-login__location-picker__paddedContainer___YrF6Q"},T?i().createElement("div",{className:"-esm-login__location-picker__emptyStateContainer___ljteM",role:"status"},i().createElement(n.WarningIcon,{className:"-esm-login__location-picker__emptyStateIcon___cuiE5",size:24}),i().createElement("p",{className:"-esm-login__location-picker__emptyStateTitle___bGXMG"},o("noLoginLocations","No login locations configured")),i().createElement("p",{className:"-esm-login__location-picker__emptyStateMessage___vZacO"},o("noLoginLocationsMessage","This installation has no login locations configured. Please contact your system administrator."))):i().createElement(i().Fragment,null,i().createElement("p",{className:"-esm-login__location-picker__welcomeTitle___EjKxQ"},o("welcome","Welcome")," ",C),i().createElement("p",{className:"-esm-login__location-picker__welcomeMessage___rZBlu"},o("selectYourLocation","Select your location from the list below. Use the search bar to find your location.")))),!T&&i().createElement(i().Fragment,null,i().createElement(n.LocationPicker,{selectedLocationUuid:L,defaultLocationUuid:S.defaultLocation,locationTag:r.useLoginLocationTag&&"Login Location",locationsPerRequest:Math.max(r.locationsPerRequest,1),onChange:e=>N(e)}),i().createElement("div",{className:"-esm-login__location-picker__footerContainer___3ipy8"},i().createElement(l.Checkbox,{className:"-esm-login__location-picker__savePreferenceCheckbox___6B5jM",checked:f,id:d,labelText:o("rememberLocationForFutureLogins","Remember my location for future logins"),onChange:(e,{checked:t})=>w(t)}),i().createElement(l.Button,{className:"-esm-login__location-picker__confirmButton___lJH70",kind:"primary",type:"submit",disabled:!L||P},P?i().createElement(l.InlineLoading,{className:"-esm-login__location-picker__loader___WojAJ",description:o("submitting","Submitting")}):i().createElement("span",null,(0,n.getCoreTranslation)("confirm"))))))))};var g=o(7448),p=o(1509),h=o(2549),f=o(2647);let w="-esm-login__login__continueButton___PoHTG",y="-esm-login__login__loader___hNT+s",v=({t:e})=>{let{logo:t}=(0,n.useConfig)(),{logo:o}=(0,n.useConfig)({externalModuleName:"@openmrs/esm-styleguide"}),a=t?.src?t:o;return a?.src?i().createElement("img",{alt:a.alt?e(a.alt):e("openmrsLogo","OpenMRS logo"),className:"-esm-login__login__logoImg___kob2B",src:(0,n.interpolateUrl)(a.src)}):i().createElement("svg",{role:"img",className:"-esm-login__login__logo___eUD1e"},i().createElement("title",null,e("openmrsLogo","OpenMRS logo")),i().createElement("use",{href:"#omrs-logo-full-color"}))},E=()=>{let{t:e}=(0,c.useTranslation)(),[t,o]=(0,s.useState)(!1),a=g.z.string({required_error:e("oldPasswordRequired","Old password is required")}),r=g.z.string({required_error:e("newPasswordRequired","New password is required")}),u=g.z.string({required_error:e("passwordConfirmationRequired","Password confirmation is required")}),_=g.z.object({oldPassword:a,newPassword:r,passwordConfirmation:u}).refine(e=>e.newPassword===e.passwordConfirmation,{message:e("passwordsDoNotMatch","Passwords do not match"),path:["passwordConfirmation"]}),{handleSubmit:m,control:d,formState:{errors:w}}=(0,h.mN)({resolver:(0,p.u)(_)}),y=(0,s.useCallback)(t=>{o(!0);let{oldPassword:a,newPassword:r}=t;(0,f.d)(a,r).then(()=>{(0,n.showSnackbar)({title:e("passwordChangedSuccessfully","Password changed successfully"),kind:"success"})}).catch(t=>{(0,n.showSnackbar)({kind:"error",subtitle:t?.message,title:e("errorChangingPassword","Error changing password")})}).finally(()=>{o(!1)})},[e]),E=(0,s.useCallback)(()=>o(!1),[]);return i().createElement("div",{className:"-esm-login__change-password__container___EjdJ+"},i().createElement(l.Tile,{className:"-esm-login__change-password__changePasswordCard___y-M47"},i().createElement("div",{className:"-esm-login__change-password__alignCenter___QDha+"},i().createElement(v,{t:e})),i().createElement(l.Form,{onSubmit:m(y,E)},i().createElement(h.xI,{name:"oldPassword",control:d,render:({field:{onChange:t,value:o}})=>i().createElement(l.PasswordInput,{id:"oldPassword",invalid:!!w?.oldPassword,invalidText:(w&&w.oldPassword&&w.oldPassword.message&&"string"==typeof w.oldPassword.message&&w.oldPassword.message)??"",labelText:e("oldPassword","Old password"),onChange:t,value:o})}),i().createElement(h.xI,{name:"newPassword",control:d,render:({field:{onChange:t,value:o}})=>i().createElement(l.PasswordInput,{id:"newPassword",invalid:!!w?.newPassword,invalidText:(w&&w.newPassword&&w.newPassword.message&&"string"==typeof w.newPassword.message&&w.newPassword.message)??"",labelText:e("newPassword","New password"),onChange:t,value:o})}),i().createElement(h.xI,{name:"passwordConfirmation",control:d,render:({field:{onChange:t,value:o}})=>i().createElement(l.PasswordInput,{id:"passwordConfirmation",invalid:!!w?.passwordConfirmation,invalidText:(w&&w.passwordConfirmation&&w.passwordConfirmation.message&&"string"==typeof w.passwordConfirmation.message&&w.passwordConfirmation.message)??"",labelText:e("confirmPassword","Confirm new password"),onChange:t,value:o})}),i().createElement(l.Button,{className:"-esm-login__change-password__submitButton___C5und",disabled:t,type:"submit"},t?i().createElement(l.InlineLoading,{description:e("changingPassword","Changing password")+"..."}):i().createElement("span",null,e("change","Change Password"))))))};var b=o(5530),k=o.n(b);let C="-esm-login__footer__poweredByLogo___7yBsr",S="-esm-login__footer__poweredByText___MSWQ0",T=()=>{let{t:e}=(0,c.useTranslation)(),t=(0,n.useConfig)().footer.additionalLogos||[],o=(0,s.useCallback)(e=>{console.error("Failed to load image",e)},[]);return i().createElement("div",{className:"-esm-login__footer__footer___tu4Ea"},i().createElement(l.Tile,{className:"-esm-login__footer__poweredByTile___iJfAv"},i().createElement("div",{className:"-esm-login__footer__poweredByContainer___ND5jc"},i().createElement("span",{className:S},e("builtWith","Built with")),i().createElement("svg",{"aria-label":e("openmrsLogo","OpenMRS Logo"),className:C,role:"img"},i().createElement("use",{href:"#omrs-logo-full-color"})),i().createElement("span",{className:`${S} -esm-login__footer__poweredBySubtext___PQoO1`},e("poweredBySubtext","An open-source medical record system and global community")),i().createElement(l.Link,{className:"-esm-login__footer__learnMoreButton___abMoh",href:"https://openmrs.org",rel:"noopener noreferrer",renderIcon:()=>i().createElement(n.ArrowRightIcon,{size:16,"aria-label":"Arrow right icon"}),target:"_blank"},e("learnMore","Learn more")))),i().createElement("div",{className:"-esm-login__footer__logosContainer___MLq6g"},t.map(t=>i().createElement("img",{alt:t.alt?e(t.alt):e("footerlogo","Footer Logo"),className:C,key:t.src,onError:o,src:t.src}))))},L=({children:e,onClearError:t,errorMessage:o,showFooter:a=!0})=>{let{t:r}=(0,c.useTranslation)(),{announcements:u=[],background:_={image:"",color:""}}=(0,n.useConfig)(),m=k()("-esm-login__login-page-wrapper__container___u7bAR",{"-esm-login__login-page-wrapper__containerWithImage___i1pb4":!!_.image,"-esm-login__login-page-wrapper__containerWithColor___nlDvg":!_.image&&!!_.color}),d=(0,s.useMemo)(()=>_.image?{"--login-bg-image":`url(${(0,n.interpolateUrl)(_.image)})`}:_.color?{"--login-bg-color":_.color}:void 0,[_]);return i().createElement("div",{className:m,style:d,"data-testid":"login-container"},u.length>0&&i().createElement("div",{className:"-esm-login__login-page-wrapper__announcements___0bRHk"},u.map((e,t)=>i().createElement(l.InlineNotification,{key:t,kind:e.kind,title:e.title?r(e.title):"",subtitle:r(e.text),lowContrast:!0,hideCloseButton:!0}))),i().createElement(l.Tile,{className:"-esm-login__login-page-wrapper__loginCard___xP4rC"},o&&i().createElement("div",{className:"-esm-login__login-page-wrapper__errorMessage___4QoqS"},i().createElement(l.InlineNotification,{kind:"error",subtitle:r(o),title:(0,n.getCoreTranslation)("error"),onClick:t})),i().createElement("div",{className:"-esm-login__login-page-wrapper__center___Uf01H"},i().createElement(v,{t:r})),e),a&&i().createElement(T,null))},N=()=>{let{showPasswordOnSeparateScreen:e,provider:t,links:o}=(0,n.useConfig)(),{t:a}=(0,c.useTranslation)(),{user:r}=(0,n.useSession)(),_=(0,u.useLocation)(),m=(0,u.useNavigate)(),[d,g]=(0,s.useState)(""),[p,h]=(0,s.useState)(!1),[f,v]=(0,s.useState)(""),[E,b]=(0,s.useState)(""),[k,C]=(0,s.useState)(!1),S=(0,s.useRef)(null),T=(0,s.useRef)(null);(0,s.useEffect)(()=>{!r&&("oauth2"===t.type||"custom"===t.type?(0,n.navigate)({to:t.loginUrl}):E||"/login/confirm"!==_.pathname||m("/login"))},[E,m,_,r,t]),(0,s.useEffect)(()=>{e&&(k?S.current?.value||S.current?.focus():T.current?.focus())},[k,e]),(0,s.useEffect)(()=>{_?.state?.referrer?sessionStorage.setItem("loginReferrer",_.state.referrer):sessionStorage.removeItem("loginReferrer")},[_]);let N=(0,s.useCallback)(()=>{let e=T.current?.value?.trim();e?(b(e),C(!0)):T.current?.focus()},[]),P=(0,s.useCallback)(e=>b(e.target.value),[]),I=(0,s.useCallback)(e=>v(e.target.value),[]),B=(0,s.useCallback)(async t=>{t.preventDefault(),t.stopPropagation();let r=T.current?.value?.trim()||E,s=S.current?.value||f;if(e&&!k)return N(),!1;if(!s||!s.trim())return S.current?.focus(),!1;try{h(!0);let t=await (0,n.refetchCurrentUser)(r,s),i=t.session;if(t?.session?.authenticated)if(i.sessionLocation){let e=o?.loginSuccess||"/home",t=_?.state?.referrer??sessionStorage.getItem("loginReferrer");t&&t.startsWith("/")&&(e=`\${openmrsSpaBase}${t}`),sessionStorage.removeItem("loginReferrer"),(0,n.navigate)({to:e})}else m("/login/location");else g(a("invalidCredentials","Invalid username or password")),b(""),v(""),e&&C(!1);return!0}catch(t){t instanceof Error?g(t.message):g(a("invalidCredentials","Invalid username or password")),b(""),v(""),e&&C(!1)}finally{h(!1)}},[E,f,m,e,k,o,_,a,N]);return t&&"basic"!==t.type?null:i().createElement(L,{errorMessage:d,onClearError:()=>{g("")}},i().createElement("form",{onSubmit:B},i().createElement("div",{className:"-esm-login__login__inputGroup___VWJgx"},i().createElement(l.TextInput,{id:"username",type:"text",name:"username",autoComplete:"username",labelText:a("username","Username"),value:E,onChange:P,ref:T,required:!0,autoFocus:!0}),e?i().createElement(i().Fragment,null,i().createElement("div",{className:k?void 0:"-esm-login__login__hiddenPasswordField___sn77T"},i().createElement(l.PasswordInput,{id:"password",labelText:a("password","Password"),name:"password",autoComplete:"current-password",onChange:I,ref:S,required:!0,value:f,showPasswordLabel:a("showPassword","Show password"),invalidText:a("validValueRequired","A valid value is required"),"aria-hidden":!k,tabIndex:k?0:-1})),k?i().createElement(l.Button,{type:"submit",className:w,renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),iconDescription:a("loginButtonIconDescription","Log in button"),disabled:p},p?i().createElement(l.InlineLoading,{className:y,description:a("loggingIn","Logging in")+"..."}):a("login","Log in")):i().createElement(l.Button,{type:"submit",className:w,renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),iconDescription:a("continueToPassword","Continue to password"),onClick:e=>{e.preventDefault(),N()}},a("continue","Continue"))):i().createElement(i().Fragment,null,i().createElement(l.PasswordInput,{id:"password",labelText:a("password","Password"),name:"password",autoComplete:"current-password",onChange:I,ref:S,required:!0,value:f,showPasswordLabel:a("showPassword","Show password"),invalidText:a("validValueRequired","A valid value is required")}),i().createElement(l.Button,{type:"submit",className:w,renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),iconDescription:a("loginButtonIconDescription","Log in button"),disabled:p},p?i().createElement(l.InlineLoading,{className:y,description:a("loggingIn","Logging in")+"..."}):a("login","Log in")))),window.applicationVersion&&i().createElement("div",{className:"-esm-login__login__versionText___BMkWw"},window.applicationVersion)))};var P=o(749),I=o(3658);async function B(e,t){await (0,I.logout)(),await R(e,t)}function R(e,t){return Promise.all([...e.keys()].map(e=>t(e,void 0,{revalidate:!1})))}let j=()=>{let e=(0,n.useConfig)(),t=(0,n.useSession)(),{cache:o,mutate:a}=(0,P.useSWRConfig)();return(0,s.useEffect)(()=>{(0,I.clearHistory)(),t.authenticated?B(o,a).then(()=>{let t=document.documentElement.getAttribute("data-default-lang");(0,n.setUserLanguage)({locale:t,authenticated:!1,sessionId:""}),"custom"===e.provider.type?(0,n.navigate)({to:e.provider.loginUrl}):"oauth2"===e.provider.type||(0,n.navigate)({to:"${openmrsSpaBase}/login"})}).catch(e=>{console.error("Logout failed:",e)}):(R(o,a),"custom"===e.provider.type?(0,n.navigate)({to:e.provider.loginUrl}):"oauth2"===e.provider.type||(0,n.navigate)({to:"${openmrsSpaBase}/login"}))},[e,t,o,a]),null},x=({title:e})=>{let{t}=(0,c.useTranslation)(),o=(0,n.useConfig)(),{dashboardTitle:a}=o.twoFactorAuth,r=(0,n.useSession)(),u=r.user?.userProperties,_=(u?.["authentication.secondaryType"]||"").split(",").includes("totp"),m=(0,s.useCallback)(()=>{(0,n.showModal)("totp-enrollment-modal",{size:"md"})},[]);return o.twoFactorAuth.enabled?i().createElement("div",null,i().createElement(n.PageHeader,{className:"-esm-login__two-factor-auth__header___2sPGc"},i().createElement(n.PageHeaderContent,{title:e??t(a.key,a.value),illustration:i().createElement(n.DigitalTrustPictogram,null)})),i().createElement("main",{className:"-esm-login__two-factor-auth__pageContainer___NcNkW"},i().createElement("div",{className:"-esm-login__two-factor-auth__mainCard___1ot6h"},i().createElement("div",{className:"-esm-login__two-factor-auth__descriptionText___0EyIN"},i().createElement("h3",null,t("protectAccountTitle","Protect your account with an extra verification step.")),i().createElement("p",null,t("protectAccountDescription","After signing in, you will verify your identity with a second method.")),i().createElement("p",null,t("protectAccountReason","This helps keep your account secure."))),i().createElement(l.Tile,{className:"-esm-login__two-factor-auth__methodTile___Rq6dQ"},i().createElement("div",{className:"-esm-login__two-factor-auth__iconContainer___5EwpE"},i().createElement(n.MobileCheckIcon,{size:34})),i().createElement("div",{className:"-esm-login__two-factor-auth__textContainer___sNgzv"},i().createElement("div",{className:"-esm-login__two-factor-auth__titleRow___QoDcM"},i().createElement("h4",null,t("authenticatorApp","Authenticator App")),_&&i().createElement(l.Tag,{type:"green",size:"sm"},t("enabled","Enabled"))),i().createElement("p",null,t("authenticatorAppDescription","Use an authentication app to generate one-time codes"))),i().createElement("div",null,_?i().createElement(l.Button,{kind:"danger--ghost",disabled:!0},t("remove","Remove")):i().createElement(l.Button,{kind:"ghost",onClick:m},t("setup","Set up"))))))):null},A=({length:e=6,onChange:t})=>{let{t:o}=(0,c.useTranslation)(),[n,a]=(0,s.useState)(Array(e).fill("")),r=(0,s.useRef)([]);return i().createElement("fieldset",{className:"-esm-login__verification-code-input__wrapper___6SMl+"},i().createElement("legend",{className:"-esm-login__verification-code-input__label___13ZWy"},o("enterCode","Enter the code from your authenticator app")),i().createElement("div",{className:"-esm-login__verification-code-input__otpContainer___eVAFT",onPaste:o=>{o.preventDefault();let n=o.clipboardData.getData("text").replace(/\s/g,"").slice(0,e);if(!/^\d+$/.test(n))return;let s=Array(e).fill("");n.split("").forEach((e,t)=>{s[t]=e}),a(s),t(s.join("")),n.length===e?r.current[e-1]?.focus():r.current[n.length]?.focus()}},n.map((s,c)=>i().createElement(l.TextInput,{className:"-esm-login__verification-code-input__otpInput___kx0N-",key:c,id:`otp-input-${c}`,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"one-time-code",autoFocus:0===c,maxLength:1,value:s,labelText:o("digitLabel","Digit {{number}}",{number:c+1}),hideLabel:!0,ref:e=>r.current[c]=e,onChange:o=>((o,s)=>{let i=o.target.value;if(!/^[0-9]*$/.test(i))return;let l=[...n];l[s]=i.substring(i.length-1),a(l),t(l.join("")),i&&s<e-1&&r.current[s+1]&&r.current[s+1]?.focus()})(o,c),onKeyDown:t=>{"Backspace"===t.key?!n[c]&&c>0&&r.current[c-1]&&r.current[c-1]?.focus():"ArrowLeft"===t.key&&c>0?(t.preventDefault(),r.current[c-1]?.focus()):"ArrowRight"===t.key&&c<e-1&&(t.preventDefault(),r.current[c+1]?.focus())},onFocus:e=>e.target.select()}))))},U=()=>{let{t:e}=(0,c.useTranslation)(),t=(0,u.useNavigate)(),o=(0,u.useLocation)(),{links:a}=(0,n.useConfig)(),[r,_]=(0,s.useState)(""),[m,d]=(0,s.useState)(!0),[g,p]=(0,s.useState)(!1),[h,f]=(0,s.useState)(""),w=async s=>{s.preventDefault();try{p(!0),f("");let s=await (0,I.verifyTotpCode)(r,m);if(s?.authenticated)if(s.sessionLocation){let e=a?.loginSuccess||"/home",t=o?.state?.referrer||sessionStorage.getItem("loginReferrer");t&&t.startsWith("/")&&(e=`\${openmrsSpaBase}${t}`),sessionStorage.removeItem("loginReferrer"),(0,n.navigate)({to:e})}else t("/login/location");else f(e("totpVerificationFailed","We could not verify that code. Please try again."))}catch(o){let t=e("verificationFailedError","A network or server error occurred. Please try again.");if(o instanceof n.OpenmrsFetchError){if("object"==typeof o.responseBody&&null!==o.responseBody){let e=o.responseBody,n=e.error?.translatedMessage??o.message;n&&(t=n)}}else o instanceof Error&&(t=o.message);f(t)}finally{p(!1)}};return i().createElement(L,{errorMessage:h,onClearError:()=>f(""),showFooter:!1},i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__title___h9GOI"},i().createElement("h1",null,e("twoFactorVerification","Two-Factor Verification"))),i().createElement("form",{onSubmit:w},i().createElement(A,{length:6,onChange:e=>{_(e)}}),i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__checkbox___oV4xI"},i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__checkboxInner___93SnL"},i().createElement(l.Checkbox,{id:"remember-device",labelText:e("rememberDevice","Remember this device"),checked:m,onChange:(e,{checked:t})=>d(t)}))),i().createElement("div",{className:"-esm-login__totp-verification-challenge-page__actionButtons___GT2Nu"},i().createElement(l.Button,{type:"button",className:"-esm-login__totp-verification-challenge-page__backToLoginButton___tOVqh",kind:"ghost",onClick:()=>t("/logout"),disabled:g},i().createElement(n.ArrowLeftIcon,{size:16}),e("backToLogin","Back to login")),i().createElement(l.Button,{type:"submit",className:"-esm-login__totp-verification-challenge-page__verifyButton___vL28C",renderIcon:e=>i().createElement(n.ArrowRightIcon,{size:24,...e}),disabled:g||6!==r.length},g?e("verifying","Verifying..."):e("verify","Verify")))))},M="@openmrs/esm-login-app",F={featureName:"login",moduleName:M},q=o(4767);function O(){(0,n.defineConfigSchema)(M,r)}let D=(0,n.getSyncLifecycle)(()=>i().createElement(u.BrowserRouter,{basename:window.getOpenmrsSpaBase()},i().createElement(u.Routes,null,i().createElement(u.Route,{path:"login",element:i().createElement(N,null)}),i().createElement(u.Route,{path:"login/confirm",element:i().createElement(N,null)}),i().createElement(u.Route,{path:"login/location",element:i().createElement(d,null)}),i().createElement(u.Route,{path:"logout",element:i().createElement(j,null)}),i().createElement(u.Route,{path:"change-password",element:i().createElement(E,null)}),i().createElement(u.Route,{path:"two-factor-auth",element:i().createElement(x,null)}),i().createElement(u.Route,{path:"login/totp-challenge",element:i().createElement(U,null)}))),F),z=(0,n.getSyncLifecycle)(d,F),$=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)(),t=(0,s.useCallback)(()=>{(0,n.navigate)({to:"${openmrsSpaBase}/logout"})},[]);return i().createElement(l.SwitcherItem,{"aria-label":e("logout","Logout")},i().createElement(l.Button,{className:"-esm-login__logout__logout___ZqcE6",onClick:t,kind:"ghost"},e("logout","Logout")))},F),W=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)(),t=(0,n.useSession)(),o=t?.sessionLocation?.display;return i().createElement(l.HeaderGlobalAction,{"aria-label":e("changeLocation","Change location"),className:"-esm-login__change-location-link__changeLocationButton___qPbAk",onClick:()=>{(0,n.navigate)({to:`\${openmrsSpaBase}/login/location?returnToUrl=${encodeURIComponent(window.location.pathname)}&update=true`})}},i().createElement(n.LocationIcon,{size:16}),i().createElement("span",{className:"-esm-login__change-location-link__currentLocationText___z4sbN"},o))},F),V=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)(),t=(0,s.useCallback)(()=>{let e=(0,n.showModal)("change-password-modal",{closeModal:()=>e(),size:"sm"})},[]);return i().createElement(l.SwitcherItem,{"aria-label":e("changePassword","ChangePassword"),className:"-esm-login__change-password__panelItemContainer___pu8qq"},i().createElement("div",null,i().createElement(n.PasswordIcon,{size:20}),i().createElement("p",null,e("password","Password"))),i().createElement(l.Button,{kind:"ghost",onClick:t},e("change","Change")))},F),G=(0,n.getAsyncLifecycle)(()=>o.e("8588").then(o.bind(o,3479)),F),H=(0,n.getSyncLifecycle)(()=>{let{t:e}=(0,c.useTranslation)();return(0,n.useConfig)().twoFactorAuth.enabled?i().createElement(l.SwitcherItem,{"aria-label":e("twoFactorAuth","Two-Factor Authentication")},i().createElement("div",null,i().createElement(n.TwoFactorAuthenticationIcon,{size:20})),i().createElement(l.Button,{kind:"ghost",onClick:()=>{(0,n.navigate)({to:"${openmrsSpaBase}/two-factor-auth"}),document.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0}))},className:"-esm-login__two-factor-auth__menuItemButton___M9tVc"},i().createElement("span",null,e("twoFactorAuth","Two-Factor Authentication")))):null},F),Q=(0,n.getAsyncLifecycle)(()=>o.e("2007").then(o.bind(o,2442)),F)}}]);
@@ -1,3 +1,3 @@
1
- var _openmrs_esm_login_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-login-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-login-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={9453(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(8516),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},_=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},O=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],w={},T=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-login-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(_))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:O,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:w,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:T,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{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==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},1507(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},7416(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},5734(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(7416);let n=r(1001),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},1001(e,t,r){r(7416);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-login-app:10.0.1-pre.5752";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)}},3162(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},8262(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},1148(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1229(e,t,r){let n=r(8262),o=r(1163),i=r(4476),a=r(1532),s=r(3602);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},1532(e,t){t.RUNTIME_012="RUNTIME-012"},3602(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
1
+ var _openmrs_esm_login_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-login-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-login-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={9453(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(8516),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},_=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},O=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],w={},T=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-login-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(_))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:O,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:w,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:T,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{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==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},1507(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},7416(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},5734(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(7416);let n=r(1001),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},1001(e,t,r){r(7416);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-login-app:11.0.0";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)}},3162(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},8262(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},1148(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1229(e,t,r){let n=r(8262),o=r(1163),i=r(4476),a=r(1532),s=r(3602);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},1532(e,t){t.RUNTIME_012="RUNTIME-012"},3602(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
2
2
  ${n}`),o.join("\n")}},252(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},4476(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},8516(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(3162),o=r(8262),i=r(7245),a=r(1229),s=r(7706),l=r(9982),u=r(6605),p=r(6582),c=r(252),d=r(5734);d=n.__toESM(d);let f={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,b=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=b,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},6582(e,t,r){let n=r(3162),o=r(5734),i=r(3926);i=n.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!a)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;i.status!==p&&(i.status=p,s&&l&&a&&(i.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},6605(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},7706(e,t,r){let n=r(8262),o=r(1148);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=i[s];if(u||(u=i[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(i,n));var l=i(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},9982(e,t,r){let n=r(1163),o=r(4476);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:i}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{i[e]=0,delete r.c[e];let a=n();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},7245(e,t,r){r(3162);let n=r(8262),o=r(1148),i=r(1163),a=r(1853);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
3
- while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1163(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).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:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(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}}},7913(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3926(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(7913);let n=r(1050),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},1050(e,t,r){r(7913);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-login-app:10.0.1-pre.5752";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)}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(1507),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2366|4234|8532)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-login-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-login-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("1604"),s.e("195"),s.e("2366"),s.e("4234"),s.e("9863")]).then(()=>()=>s(350)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"10.0.1-pre.5752",factory:()=>Promise.all([s.e("1604"),s.e("3075"),s.e("2366"),s.e("4234"),s.e("7575"),s.e("8532"),s.e("2244")]).then(()=>()=>s(9882)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("9116"),s.e("2366")]).then(()=>()=>s(5623)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("651"),s.e("2366")]).then(()=>()=>s(2454)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.3",factory:()=>Promise.all([s.e("8031"),s.e("2366"),s.e("4234")]).then(()=>()=>s(5842)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("5819").then(()=>()=>s(6326)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("2366")]).then(()=>()=>s(1405)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("149"),s.e("2366"),s.e("7918")]).then(()=>()=>s(6269)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("149"),s.e("2366"),s.e("1582")]).then(()=>()=>s(3709)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("149"),s.e("2366"),s.e("4070")]).then(()=>()=>s(1237)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-login-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{8532:["9737","8326","7665","8086","749"],9834:["3004","3658"],2366:["6925"],7575:["5254","2216"],4234:["2065"]},moduleIdToConsumeDataMapping:{5254:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("8574").then(()=>()=>s(1405))},8326:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1604"),s.e("195"),s.e("4234")]).then(()=>()=>s(350))},6925:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5819").then(()=>()=>s(6326))},9737:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("651").then(()=>()=>s(2454))},2216:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8574"),s.e("149"),s.e("9201")]).then(()=>()=>s(3709))},3658:{shareScope:"default",shareKey:"@openmrs/esm-framework/src/internal",import:"@openmrs/esm-framework/src/internal",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1604"),s.e("3075"),s.e("4234"),s.e("7575")]).then(()=>()=>s(9882))},3004:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1604"),s.e("3075"),s.e("4234"),s.e("7575")]).then(()=>()=>s(9882))},8086:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8574"),s.e("149"),s.e("5537")]).then(()=>()=>s(6269))},7665:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8031"),s.e("4234")]).then(()=>()=>s(5842))},749:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8574"),s.e("149"),s.e("1689")]).then(()=>()=>s(1237))},2065:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9116").then(()=>()=>s(5623))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={4482:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2007:1,7575:1,8588:1,9834:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("1208"),s.e("2366"),s.e("8532"),s.e("9834")]).then(()=>()=>s(4593))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={4482:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(2366|4234|8532)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(9453)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_login_app=s.x()})();
3
+ while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1163(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).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:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(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}}},7913(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3926(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(7913);let n=r(1050),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},1050(e,t,r){r(7913);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-login-app:11.0.0";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)}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(1507),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2366|4234|8532)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-login-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-login-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("1604"),s.e("195"),s.e("2366"),s.e("4234"),s.e("9863")]).then(()=>()=>s(350)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"11.0.0",factory:()=>Promise.all([s.e("1604"),s.e("3075"),s.e("2366"),s.e("4234"),s.e("7575"),s.e("8532"),s.e("2244")]).then(()=>()=>s(9882)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("9116"),s.e("2366")]).then(()=>()=>s(5623)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("651"),s.e("2366")]).then(()=>()=>s(2454)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.3",factory:()=>Promise.all([s.e("8031"),s.e("2366"),s.e("4234")]).then(()=>()=>s(5842)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("5819").then(()=>()=>s(6326)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("2366")]).then(()=>()=>s(1405)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("149"),s.e("2366"),s.e("7918")]).then(()=>()=>s(6269)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("149"),s.e("2366"),s.e("1582")]).then(()=>()=>s(3709)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("8574"),s.e("149"),s.e("2366"),s.e("4070")]).then(()=>()=>s(1237)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-login-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{8532:["9737","8326","7665","8086","749"],9834:["5607","3658"],2366:["6925"],7575:["5254","2216"],4234:["2065"]},moduleIdToConsumeDataMapping:{5254:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("8574").then(()=>()=>s(1405))},8326:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1604"),s.e("195"),s.e("4234")]).then(()=>()=>s(350))},6925:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5819").then(()=>()=>s(6326))},9737:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("651").then(()=>()=>s(2454))},2216:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8574"),s.e("149"),s.e("9201")]).then(()=>()=>s(3709))},5607:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1604"),s.e("3075"),s.e("4234"),s.e("7575")]).then(()=>()=>s(9882))},3658:{shareScope:"default",shareKey:"@openmrs/esm-framework/src/internal",import:"@openmrs/esm-framework/src/internal",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1604"),s.e("3075"),s.e("4234"),s.e("7575")]).then(()=>()=>s(9882))},8086:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8574"),s.e("149"),s.e("5537")]).then(()=>()=>s(6269))},7665:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8031"),s.e("4234")]).then(()=>()=>s(5842))},749:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8574"),s.e("149"),s.e("1689")]).then(()=>()=>s(1237))},2065:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9116").then(()=>()=>s(5623))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={4482:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2007:1,7575:1,8588:1,9834:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("1208"),s.e("2366"),s.e("8532"),s.e("9834")]).then(()=>()=>s(4593))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={4482:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(2366|4234|8532)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_login_app=globalThis.webpackChunk_openmrs_esm_login_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(9453)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_login_app=s.x()})();
@@ -1 +1 @@
1
- {"version":3,"file":"openmrs-esm-login-app.js","sources":["webpack://@openmrs/esm-login-app/webpack/runtime/jsonp_chunk_loading","webpack://@openmrs/esm-login-app/webpack/runtime/embed_federation_runtime","webpack://@openmrs/esm-login-app/==void 0","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/runtime-tools/node_modules/@module-federation/runtime/dist/_virtual/_rolldown/runtime.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/runtime-tools/node_modules/@module-federation/runtime/dist/index.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/runtime-tools/node_modules/@module-federation/runtime/dist/utils.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/_virtual/_rolldown/runtime.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/attachShareScopeMap.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/constant.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/consumes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/error-codes/dist/error-codes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/error-codes/dist/getShortErrorMsg.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/getSharedFallbackGetter.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/getUsedExports.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/index.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/init.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/initContainerEntry.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/initializeSharing.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/installInitialConsumes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/remotes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/updateOptions.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/node_modules/@module-federation/runtime/dist/_virtual/_rolldown/runtime.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/node_modules/@module-federation/runtime/dist/helpers.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/node_modules/@module-federation/runtime/dist/utils.cjs","webpack://@openmrs/esm-login-app/module_federation/runtime","webpack://@openmrs/esm-login-app/webpack/runtime/compat_get_default_export","webpack://@openmrs/esm-login-app/webpack/runtime/define_property_getters","webpack://@openmrs/esm-login-app/webpack/runtime/ensure_chunk","webpack://@openmrs/esm-login-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-login-app/webpack/runtime/get mini-css chunk filename","webpack://@openmrs/esm-login-app/webpack/runtime/global","webpack://@openmrs/esm-login-app/webpack/runtime/has_own_property","webpack://@openmrs/esm-login-app/webpack/runtime/load_script","webpack://@openmrs/esm-login-app/webpack/runtime/make_namespace_object","webpack://@openmrs/esm-login-app/webpack/runtime/rspack_version","webpack://@openmrs/esm-login-app/webpack/runtime/sharing","webpack://@openmrs/esm-login-app/webpack/runtime/auto_public_path","webpack://@openmrs/esm-login-app/webpack/runtime/css loading","webpack://@openmrs/esm-login-app/webpack/runtime/consumes_loading","webpack://@openmrs/esm-login-app/webpack/runtime/initialize_exposes","webpack://@openmrs/esm-login-app/webpack/runtime/rspack_unique_id"],"names":["_ref","_ref1","_ref2","_ref3","_ref4","__webpack_require___remotesLoadingData","__webpack_require___remotesLoadingData1","__webpack_require___initializeSharingData","__webpack_require___consumesLoadingData","__webpack_require___consumesLoadingData1","__webpack_require___initializeExposesData","__webpack_require___consumesLoadingData2","__module_federation_runtime_plugins__","plugin","params","__module_federation_remote_infos__","__webpack_require__","override","obj","key","value","merge","fn","Array","_","_obj","_1","_obj1","Object","early","initial","remotesLoadingChunkMapping","remotesLoadingModuleIdToRemoteDataMapping","initializeSharingScopeToInitDataMapping","consumesLoadingChunkMapping","consumesLoadingModuleToConsumeDataMapping","consumesLoadinginstalledModules","initializeSharingInitPromises","initializeSharingInitTokens","containerShareScope","__module_federation_bundler_runtime__","consumesLoadingModuleToHandlerMapping","moduleId","data","shared","scope","stages","stage","name","version","factory","eager","singleton","requiredVersion","strictVersion","shareConfig","isValidValue","val","options","remote","remotesLoadingIdToExternalAndNameMappingMapping","idToRemoteMap","id","remoteData","info","chunkId","promises","initScope","shareScope","remoteEntryInitOptions","module1","getScope","moduleMap","Promise","Error","undefined","Symbol","r","Date","e","JSON","b","l","h","s","i","p","console","u","globalThis","Function","window","document","clearTimeout","setTimeout"],"mappings":"syBAIU,EAqDN,EA2BA,ECpFA,EACA,E,gCCDulBA,EAAKC,EAAMC,EAAMC,EAAMC,EAAUC,EAAuCC,EAAwCC,EAA0CC,EAAwCC,EAAyCC,EAA0CC,E,mBAAjsB,IAAMC,EAAwC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAEC,OAAAA,CAAM,CAAE,GAAKA,GAAQ,GAAG,CAAC,CAAC,CAAEA,OAAAA,CAAM,CAAEC,OAAAA,CAAM,CAAE,GAAKD,EAAOC,IAAeC,EAAqC,CAAC,EAAqI,GAAIC,AAAAA,CAAAA,EAAoB,qBAAqB,EAAEA,EAAoB,qBAAoB,GAAIA,EAAoB,UAAU,CAAC,CAAmU,IAAMC,EAAS,CAACC,EAAIC,EAAIC,KAAaF,GAAcA,CAAG,CAACC,EAAI,EAACD,CAAAA,CAAG,CAACC,EAAI,CAACC,CAAI,CAAC,EAAQC,EAAM,CAACH,EAAIC,EAAIG,KAAM,IAAMF,EAAME,IAAQC,MAAM,OAAO,CAACH,IAAyBI,MAAGC,AAAKP,CAAI,CAAMC,EAAG,EAAwBM,CAArCP,CAAyC,CAA/BC,EAAqC,CAAC,EAAE,AAAD,EAAED,CAAG,CAACC,EAAI,CAAC,IAAI,IAAIC,IAA8B,UAAf,OAAOA,GAAkBA,AAAQ,OAARA,IAAkCM,MAAIC,AAAMT,CAAI,CAAOC,EAAG,EAA0BQ,CAAxCT,CAA6C,CAAlCC,EAAyC,CAAC,CAAC,GAAES,OAAO,MAAM,CAACV,CAAG,CAACC,EAAI,CAACC,GAAO,EAAQS,EAAM,CAACX,EAAIC,EAAIW,KAA4BN,MAAGC,AAAKP,CAAI,CAAMC,EAAG,EAAwBM,CAArCP,CAAyC,CAA/BC,EAAqC,CAACW,GAAQ,CAAC,EAAQC,EAA4B/B,MAAAA,CAAAA,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EAAa,EAAQ,CAAG,EAGhB,EAAI,EAC3B,GAAI,EAAS,IAAI,CAAC,AAAC,GAAQ,AAAwB,IAAxB,CAAe,CAAC,EAAG,EAAU,CACvD,IAAK,KAAY,EACZ,EAAoB,CAAC,CAAC,EAAa,IACtC,GAAoB,CAAC,CAAC,EAAS,CAAG,CAAW,CAAC,EAAS,AAAD,CAGpD,IAAsB,EAAQ,EACnC,CAEA,IADI,GAA4B,EAA2B,GACpD,EAAI,EAAS,MAAM,CAAE,IAC3B,EAAU,CAAQ,CAAC,EAAE,CAEpB,EAAoB,CAAC,CAAC,EAAiB,IACvC,CAAe,CAAC,EAAQ,EAExB,CAAe,CAAC,EAAQ,CAAC,EAAE,GAE5B,CAAe,CAAC,EAAQ,CAAG,CAG7B,EAGA,CADI,EAAqBe,WAAW,kCAAqC,CAAGA,WAAW,kCAAqC,EAAI,EAAE,EAC/G,OAAO,CAAC,EAAe,IAAI,CAAC,KAAM,IACrD,EAAmB,IAAI,CAAG,EAAe,IAAI,CAAC,KAAM,EAAmB,IAAI,CAAC,IAAI,CAAC,IwCtFjF,EAAoB,IAAI,CAAG,uBvCAvB,EAAc,EAAoB,CAAC,CACnC,EAAS,GACb,EAAoB,CAAC,CAAG,WAKvB,GAJK,IACJ,EAAS,GACT,EAAoB,OAEjB,AAAuB,YAAvB,OAAO,EACV,OAAO,IAERF,QAAQ,IAAI,CAAC,2BACd,E"}
1
+ {"version":3,"file":"openmrs-esm-login-app.js","sources":["webpack://@openmrs/esm-login-app/webpack/runtime/jsonp_chunk_loading","webpack://@openmrs/esm-login-app/webpack/runtime/embed_federation_runtime","webpack://@openmrs/esm-login-app/==void 0","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/runtime-tools/node_modules/@module-federation/runtime/dist/_virtual/_rolldown/runtime.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/runtime-tools/node_modules/@module-federation/runtime/dist/index.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/runtime-tools/node_modules/@module-federation/runtime/dist/utils.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/_virtual/_rolldown/runtime.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/attachShareScopeMap.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/constant.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/consumes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/error-codes/dist/error-codes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/error-codes/dist/getShortErrorMsg.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/getSharedFallbackGetter.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/getUsedExports.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/index.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/init.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/initContainerEntry.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/initializeSharing.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/installInitialConsumes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/remotes.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/dist/updateOptions.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/node_modules/@module-federation/runtime/dist/_virtual/_rolldown/runtime.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/node_modules/@module-federation/runtime/dist/helpers.cjs","webpack://@openmrs/esm-login-app/../../../node_modules/@module-federation/webpack-bundler-runtime/node_modules/@module-federation/runtime/dist/utils.cjs","webpack://@openmrs/esm-login-app/module_federation/runtime","webpack://@openmrs/esm-login-app/webpack/runtime/compat_get_default_export","webpack://@openmrs/esm-login-app/webpack/runtime/define_property_getters","webpack://@openmrs/esm-login-app/webpack/runtime/ensure_chunk","webpack://@openmrs/esm-login-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-login-app/webpack/runtime/get mini-css chunk filename","webpack://@openmrs/esm-login-app/webpack/runtime/global","webpack://@openmrs/esm-login-app/webpack/runtime/has_own_property","webpack://@openmrs/esm-login-app/webpack/runtime/load_script","webpack://@openmrs/esm-login-app/webpack/runtime/make_namespace_object","webpack://@openmrs/esm-login-app/webpack/runtime/rspack_version","webpack://@openmrs/esm-login-app/webpack/runtime/sharing","webpack://@openmrs/esm-login-app/webpack/runtime/auto_public_path","webpack://@openmrs/esm-login-app/webpack/runtime/css loading","webpack://@openmrs/esm-login-app/webpack/runtime/consumes_loading","webpack://@openmrs/esm-login-app/webpack/runtime/initialize_exposes","webpack://@openmrs/esm-login-app/webpack/runtime/rspack_unique_id"],"names":["_ref","_ref1","_ref2","_ref3","_ref4","__webpack_require___remotesLoadingData","__webpack_require___remotesLoadingData1","__webpack_require___initializeSharingData","__webpack_require___consumesLoadingData","__webpack_require___consumesLoadingData1","__webpack_require___initializeExposesData","__webpack_require___consumesLoadingData2","__module_federation_runtime_plugins__","plugin","params","__module_federation_remote_infos__","__webpack_require__","override","obj","key","value","merge","fn","Array","_","_obj","_1","_obj1","Object","early","initial","remotesLoadingChunkMapping","remotesLoadingModuleIdToRemoteDataMapping","initializeSharingScopeToInitDataMapping","consumesLoadingChunkMapping","consumesLoadingModuleToConsumeDataMapping","consumesLoadinginstalledModules","initializeSharingInitPromises","initializeSharingInitTokens","containerShareScope","__module_federation_bundler_runtime__","consumesLoadingModuleToHandlerMapping","moduleId","data","shared","scope","stages","stage","name","version","factory","eager","singleton","requiredVersion","strictVersion","shareConfig","isValidValue","val","options","remote","remotesLoadingIdToExternalAndNameMappingMapping","idToRemoteMap","id","remoteData","info","chunkId","promises","initScope","shareScope","remoteEntryInitOptions","module1","getScope","moduleMap","Promise","Error","undefined","Symbol","r","Date","e","JSON","b","l","h","s","i","p","console","u","globalThis","Function","window","document","clearTimeout","setTimeout"],"mappings":"syBAIU,EAqDN,EA2BA,ECpFA,EACA,E,gCCDulBA,EAAKC,EAAMC,EAAMC,EAAMC,EAAUC,EAAuCC,EAAwCC,EAA0CC,EAAwCC,EAAyCC,EAA0CC,E,mBAAjsB,IAAMC,EAAwC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAEC,OAAAA,CAAM,CAAE,GAAKA,GAAQ,GAAG,CAAC,CAAC,CAAEA,OAAAA,CAAM,CAAEC,OAAAA,CAAM,CAAE,GAAKD,EAAOC,IAAeC,EAAqC,CAAC,EAAqI,GAAIC,AAAAA,CAAAA,EAAoB,qBAAqB,EAAEA,EAAoB,qBAAoB,GAAIA,EAAoB,UAAU,CAAC,CAAmU,IAAMC,EAAS,CAACC,EAAIC,EAAIC,KAAaF,GAAcA,CAAG,CAACC,EAAI,EAACD,CAAAA,CAAG,CAACC,EAAI,CAACC,CAAI,CAAC,EAAQC,EAAM,CAACH,EAAIC,EAAIG,KAAM,IAAMF,EAAME,IAAQC,MAAM,OAAO,CAACH,IAAyBI,MAAGC,AAAKP,CAAI,CAAMC,EAAG,EAAwBM,CAArCP,CAAyC,CAA/BC,EAAqC,CAAC,EAAE,AAAD,EAAED,CAAG,CAACC,EAAI,CAAC,IAAI,IAAIC,IAA8B,UAAf,OAAOA,GAAkBA,AAAQ,OAARA,IAAkCM,MAAIC,AAAMT,CAAI,CAAOC,EAAG,EAA0BQ,CAAxCT,CAA6C,CAAlCC,EAAyC,CAAC,CAAC,GAAES,OAAO,MAAM,CAACV,CAAG,CAACC,EAAI,CAACC,GAAO,EAAQS,E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AAM,OAAO,CAAG,EAChB,CAAkB,CAAC,EAAE,CAAC,EACvB,CAEF,EACyC,SAAW,EAAS,EAC9D,CAIM,EAEJ,EAAiB,CAAC,EAA4B,KACjD,IAGI,EAAU,EAHV,CAAC,EAAU,EAAa,EAAQ,CAAG,EAGhB,EAAI,EAC3B,GAAI,EAAS,IAAI,CAAC,AAAC,GAAQ,AAAwB,IAAxB,CAAe,CAAC,EAAG,EAAU,CACvD,IAAK,KAAY,EACZ,EAAoB,CAAC,CAAC,EAAa,IACtC,GAAoB,CAAC,CAAC,EAAS,CAAG,CAAW,CAAC,EAAS,AAAD,CAGpD,IAAsB,EAAQ,EACnC,CAEA,IADI,GAA4B,EAA2B,GACpD,EAAI,EAAS,MAAM,CAAE,IAC3B,EAAU,CAAQ,CAAC,EAAE,CAEpB,EAAoB,CAAC,CAAC,EAAiB,IACvC,CAAe,CAAC,EAAQ,EAExB,CAAe,CAAC,EAAQ,CAAC,EAAE,GAE5B,CAAe,CAAC,EAAQ,CAAG,CAG7B,EAGA,CADI,EAAqBe,WAAW,kCAAqC,CAAGA,WAAW,kCAAqC,EAAI,EAAE,EAC/G,OAAO,CAAC,EAAe,IAAI,CAAC,KAAM,IACrD,EAAmB,IAAI,CAAG,EAAe,IAAI,CAAC,KAAM,EAAmB,IAAI,CAAC,IAAI,CAAC,IwCtFjF,EAAoB,IAAI,CAAG,uBvCAvB,EAAc,EAAoB,CAAC,CACnC,EAAS,GACb,EAAoB,CAAC,CAAG,WAKvB,GAJK,IACJ,EAAS,GACT,EAAoB,OAEjB,AAAuB,YAAvB,OAAO,EACV,OAAO,IAERF,QAAQ,IAAI,CAAC,2BACd,E"}
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true},{"component":"root","route":"change-password","online":true,"offline":true},{"component":"root","route":"two-factor-auth","online":true,"offline":false}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-bottom-slot","component":"logoutButton","online":true,"offline":true},{"name":"password-changer","slot":"user-panel-slot","component":"changePasswordLink","online":true,"offline":true},{"name":"location-changer","slot":"top-nav-info-slot","component":"changeLocationLink","online":true,"offline":true,"order":1},{"name":"two-factor-authentication","slot":"user-panel-slot","component":"twoFactorAuthLink","online":true,"offline":false}],"modals":[{"name":"change-password-modal","component":"changePasswordModal"},{"name":"totp-enrollment-modal","component":"totpEnrollmentModal"}],"version":"10.0.1-pre.5752"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true},{"component":"root","route":"change-password","online":true,"offline":true},{"component":"root","route":"two-factor-auth","online":true,"offline":false}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-bottom-slot","component":"logoutButton","online":true,"offline":true},{"name":"password-changer","slot":"user-panel-slot","component":"changePasswordLink","online":true,"offline":true},{"name":"location-changer","slot":"top-nav-info-slot","component":"changeLocationLink","online":true,"offline":true,"order":1},{"name":"two-factor-authentication","slot":"user-panel-slot","component":"twoFactorAuthLink","online":true,"offline":false}],"modals":[{"name":"change-password-modal","component":"changePasswordModal"},{"name":"totp-enrollment-modal","component":"totpEnrollmentModal"}],"version":"11.0.0"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-login-app",
3
- "version": "10.0.1-pre.5752",
3
+ "version": "11.0.0",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The login microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-login-app.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@carbon/react": "1.x",
50
- "@openmrs/esm-framework": "10.x",
50
+ "@openmrs/esm-framework": "11.x",
51
51
  "react": "18.x",
52
52
  "react-dom": "18.x",
53
53
  "react-i18next": "16.x",
@@ -56,17 +56,16 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@carbon/react": "^1.92.1",
59
- "@openmrs/esm-framework": "10.0.1-pre.5752",
59
+ "@openmrs/esm-framework": "11.0.0",
60
60
  "@vitest/coverage-v8": "^4.1.2",
61
61
  "cross-env": "^10.1.0",
62
62
  "happy-dom": "^20.6.0",
63
- "openmrs": "10.0.1-pre.5752",
63
+ "openmrs": "11.0.0",
64
64
  "react": "^18.3.1",
65
65
  "react-dom": "^18.3.1",
66
66
  "react-i18next": "^16.0.0",
67
67
  "react-router-dom": "^6.3.0",
68
68
  "swr": "2.5.1",
69
69
  "vitest": "^4.1.2"
70
- },
71
- "stableVersion": "10.0.0"
70
+ }
72
71
  }