@elliemae/pui-app-sdk 5.42.2 → 5.42.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/build/docs/404.html +1 -1
- package/build/docs/api/classes/Analytics/index.html +1 -1
- package/build/docs/api/classes/CMicroAppGuest/index.html +1 -1
- package/build/docs/api/classes/CMicroAppHost/index.html +1 -1
- package/build/docs/api/classes/ErrorBoundary/index.html +1 -1
- package/build/docs/api/classes/GuestModule/index.html +1 -1
- package/build/docs/api/functions/AppRoot/index.html +1 -1
- package/build/docs/api/functions/Autocomplete/index.html +1 -1
- package/build/docs/api/functions/CheckBox/index.html +1 -1
- package/build/docs/api/functions/ComboBox/index.html +1 -1
- package/build/docs/api/functions/ComboBoxV3/index.html +1 -1
- package/build/docs/api/functions/ConnectForm/index.html +1 -1
- package/build/docs/api/functions/DateInput/index.html +1 -1
- package/build/docs/api/functions/DatePicker/index.html +1 -1
- package/build/docs/api/functions/DateRangePicker/index.html +1 -1
- package/build/docs/api/functions/DateTimePicker/index.html +1 -1
- package/build/docs/api/functions/Form/index.html +1 -1
- package/build/docs/api/functions/FormItemLayout/index.html +1 -1
- package/build/docs/api/functions/FormLayoutBlockItem/index.html +1 -1
- package/build/docs/api/functions/FormSubmitButton/index.html +1 -1
- package/build/docs/api/functions/InputMask/index.html +1 -1
- package/build/docs/api/functions/InputText/index.html +1 -1
- package/build/docs/api/functions/LargeTextBox/index.html +1 -1
- package/build/docs/api/functions/MaskedInputText/index.html +1 -1
- package/build/docs/api/functions/Page/index.html +1 -1
- package/build/docs/api/functions/Radio/index.html +1 -1
- package/build/docs/api/functions/RadioGroup/index.html +1 -1
- package/build/docs/api/functions/RegisterService/index.html +1 -1
- package/build/docs/api/functions/RenderWithStateAddOns/index.html +1 -1
- package/build/docs/api/functions/RequireAuth/index.html +1 -1
- package/build/docs/api/functions/SessionTimeout/index.html +1 -1
- package/build/docs/api/functions/TextBox/index.html +1 -1
- package/build/docs/api/functions/Toggle/index.html +1 -1
- package/build/docs/api/functions/authSaga/index.html +1 -1
- package/build/docs/api/functions/authorize/index.html +1 -1
- package/build/docs/api/functions/buildModuleParams/index.html +1 -1
- package/build/docs/api/functions/cleanup/index.html +1 -1
- package/build/docs/api/functions/configureStore/index.html +1 -1
- package/build/docs/api/functions/createGuestModule/index.html +1 -1
- package/build/docs/api/functions/createManager/index.html +1 -1
- package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +1 -1
- package/build/docs/api/functions/fetchHostAppData/index.html +1 -1
- package/build/docs/api/functions/fetchUserSettings/index.html +1 -1
- package/build/docs/api/functions/getApiActionCreator/index.html +1 -1
- package/build/docs/api/functions/getAppConfig/index.html +1 -1
- package/build/docs/api/functions/getAppConfigValue/index.html +1 -1
- package/build/docs/api/functions/getAuthHTTPClient/index.html +1 -1
- package/build/docs/api/functions/getAuthorizationHeader/index.html +1 -1
- package/build/docs/api/functions/getHTTPClient/index.html +1 -1
- package/build/docs/api/functions/getHostAppDataByKey/index.html +1 -1
- package/build/docs/api/functions/getLogger/index.html +1 -1
- package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +1 -1
- package/build/docs/api/functions/getNavigationLinks/index.html +1 -1
- package/build/docs/api/functions/getRedirectUrl/index.html +1 -1
- package/build/docs/api/functions/getSelectField/index.html +1 -1
- package/build/docs/api/functions/getStore/index.html +1 -1
- package/build/docs/api/functions/initServiceWorker/index.html +1 -1
- package/build/docs/api/functions/isCIBuild/index.html +1 -1
- package/build/docs/api/functions/isProd/index.html +1 -1
- package/build/docs/api/functions/isUserAuthorized/index.html +1 -1
- package/build/docs/api/functions/listenStorageEvents/index.html +1 -1
- package/build/docs/api/functions/loadAppConfig/index.html +1 -1
- package/build/docs/api/functions/loadable/index.html +1 -1
- package/build/docs/api/functions/login/index.html +1 -1
- package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +1 -1
- package/build/docs/api/functions/onAuthorizationFailure/index.html +1 -1
- package/build/docs/api/functions/onGuestUnloadStart/index.html +1 -1
- package/build/docs/api/functions/redactPii/index.html +1 -1
- package/build/docs/api/functions/removeDoubleSlash/index.html +1 -1
- package/build/docs/api/functions/removeStorageEvents/index.html +1 -1
- package/build/docs/api/functions/render/index.html +1 -1
- package/build/docs/api/functions/renderHook/index.html +1 -1
- package/build/docs/api/functions/renderWithHostData/index.html +1 -1
- package/build/docs/api/functions/renderWithRedux/index.html +1 -1
- package/build/docs/api/functions/renderWithRouter/index.html +1 -1
- package/build/docs/api/functions/renderWithRouterRedux/index.html +1 -1
- package/build/docs/api/functions/sdkBaseQuery/index.html +1 -1
- package/build/docs/api/functions/sendBAEvent/index.html +1 -1
- package/build/docs/api/functions/sendMessageToHost/index.html +1 -1
- package/build/docs/api/functions/setAppConfig/index.html +1 -1
- package/build/docs/api/functions/setAppConfigValue/index.html +1 -1
- package/build/docs/api/functions/setHostAppData/index.html +1 -1
- package/build/docs/api/functions/setLoginParams/index.html +1 -1
- package/build/docs/api/functions/subscribeToResetSession/index.html +1 -1
- package/build/docs/api/functions/subscribeToSessionExpiry/index.html +1 -1
- package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +1 -1
- package/build/docs/api/functions/trackActivity/index.html +1 -1
- package/build/docs/api/functions/useAppDispatch/index.html +1 -1
- package/build/docs/api/functions/useAppMiddleware/index.html +1 -1
- package/build/docs/api/functions/useInjectQuery/index.html +1 -1
- package/build/docs/api/functions/useInjectReducer/index.html +1 -1
- package/build/docs/api/functions/useInjectSaga/index.html +1 -1
- package/build/docs/api/functions/useInjectSideEffect/index.html +1 -1
- package/build/docs/api/functions/useMediaQueryList/index.html +1 -1
- package/build/docs/api/functions/useStateSelector/index.html +1 -1
- package/build/docs/api/functions/useStateSelectorShallow/index.html +1 -1
- package/build/docs/api/functions/waitFor/index.html +1 -1
- package/build/docs/api/functions/waitForElementToBeRemoved/index.html +1 -1
- package/build/docs/api/functions/withAppDecorator/index.html +1 -1
- package/build/docs/api/index.html +1 -1
- package/build/docs/api/interfaces/AppConfig/index.html +1 -1
- package/build/docs/api/interfaces/GuestProps/index.html +1 -1
- package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +1 -1
- package/build/docs/api/type-aliases/AppDispatch/index.html +1 -1
- package/build/docs/api/type-aliases/AppStore/index.html +1 -1
- package/build/docs/api/type-aliases/Await/index.html +1 -1
- package/build/docs/api/type-aliases/EMUI/index.html +1 -1
- package/build/docs/api/type-aliases/HostOptions/index.html +1 -1
- package/build/docs/api/type-aliases/HostProvidedParams/index.html +1 -1
- package/build/docs/api/type-aliases/ModuleOverrides/index.html +1 -1
- package/build/docs/api/type-aliases/OnHostInitCallback/index.html +1 -1
- package/build/docs/api/type-aliases/OnInitCallback/index.html +1 -1
- package/build/docs/api/type-aliases/OnMountCallback/index.html +1 -1
- package/build/docs/api/type-aliases/OnUnMountCallback/index.html +1 -1
- package/build/docs/api/type-aliases/RootState/index.html +1 -1
- package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +1 -1
- package/build/docs/api/variables/ErrorToast/index.html +1 -1
- package/build/docs/api/variables/FormPropsContext/index.html +1 -1
- package/build/docs/api/variables/GuestMicroApp/index.html +1 -1
- package/build/docs/api/variables/MASK_PIPES/index.html +1 -1
- package/build/docs/api/variables/MASK_TYPES/index.html +1 -1
- package/build/docs/api/variables/MicroApp/index.html +1 -1
- package/build/docs/api/variables/MicroIFrameApp/index.html +1 -1
- package/build/docs/api/variables/NavigationPrompt/index.html +1 -1
- package/build/docs/api/variables/NavigationPromptActions/index.html +1 -1
- package/build/docs/api/variables/Themes/index.html +1 -1
- package/build/docs/api/variables/VisuallyHidden/index.html +1 -1
- package/build/docs/api/variables/WaitMessage/index.html +1 -1
- package/build/docs/api/variables/act/index.html +1 -1
- package/build/docs/api/variables/ariaLive/index.html +1 -1
- package/build/docs/api/variables/auth/index.html +1 -1
- package/build/docs/api/variables/authReducer/index.html +1 -1
- package/build/docs/api/variables/clearSideEffects/index.html +1 -1
- package/build/docs/api/variables/createSideEffect/index.html +1 -1
- package/build/docs/api/variables/decorators/index.html +1 -1
- package/build/docs/api/variables/endSession/index.html +1 -1
- package/build/docs/api/variables/error/index.html +1 -1
- package/build/docs/api/variables/errorMiddleware/index.html +1 -1
- package/build/docs/api/variables/fireEvent/index.html +1 -1
- package/build/docs/api/variables/globalConstants/index.html +1 -1
- package/build/docs/api/variables/history/index.html +1 -1
- package/build/docs/api/variables/httpClientProps/index.html +1 -1
- package/build/docs/api/variables/logout/index.html +1 -1
- package/build/docs/api/variables/memoryHistory/index.html +1 -1
- package/build/docs/api/variables/removeSideEffect/index.html +1 -1
- package/build/docs/api/variables/resetUserIdleTime/index.html +1 -1
- package/build/docs/api/variables/screen/index.html +1 -1
- package/build/docs/api/variables/startSideEffect/index.html +1 -1
- package/build/docs/api/variables/updateBAEventParameters/index.html +1 -1
- package/build/docs/api/variables/useAppSelector/index.html +1 -1
- package/build/docs/api/variables/waitMessageAction/index.html +1 -1
- package/build/docs/api/variables/within/index.html +1 -1
- package/build/docs/assets/js/{main.e2c0c98b.js → main.2c531d5e.js} +2 -2
- package/build/docs/index.html +1 -1
- package/build/docs/usage-guide/index.html +1 -1
- package/demo/{5685.9dc6ce90.iframe.bundle.js → 9478.de5e6fa2.iframe.bundle.js} +205 -205
- package/demo/9478.de5e6fa2.iframe.bundle.js.br +0 -0
- package/demo/9478.de5e6fa2.iframe.bundle.js.gz +0 -0
- package/demo/{docs/1770.ef5c473d.iframe.bundle.js → 9888.bfe9152c.iframe.bundle.js} +8 -8
- package/demo/9888.bfe9152c.iframe.bundle.js.br +0 -0
- package/demo/9888.bfe9152c.iframe.bundle.js.gz +0 -0
- package/demo/docs/{5685.9dc6ce90.iframe.bundle.js → 9478.de5e6fa2.iframe.bundle.js} +205 -205
- package/demo/docs/9478.de5e6fa2.iframe.bundle.js.br +0 -0
- package/demo/docs/9478.de5e6fa2.iframe.bundle.js.gz +0 -0
- package/demo/{1770.ef5c473d.iframe.bundle.js → docs/9888.bfe9152c.iframe.bundle.js} +8 -8
- package/demo/docs/9888.bfe9152c.iframe.bundle.js.br +0 -0
- package/demo/docs/9888.bfe9152c.iframe.bundle.js.gz +0 -0
- package/demo/docs/iframe.html +1 -1
- package/demo/docs/index.html +1 -1
- package/demo/docs/main.4a02f0d8.iframe.bundle.js +5 -0
- package/demo/docs/main.4a02f0d8.iframe.bundle.js.br +0 -0
- package/demo/docs/main.4a02f0d8.iframe.bundle.js.gz +0 -0
- package/demo/docs/{main.bab38e3aec58987b3b32.manager.bundle.js → main.b293ffa609119d831d1a.manager.bundle.js} +1 -1
- package/demo/docs/main.b293ffa609119d831d1a.manager.bundle.js.br +0 -0
- package/demo/docs/{main.bab38e3aec58987b3b32.manager.bundle.js.gz → main.b293ffa609119d831d1a.manager.bundle.js.gz} +0 -0
- package/demo/docs/project.json +1 -1
- package/demo/docs/{runtime~main.d70e75f8.iframe.bundle.js → runtime~main.79f1fd4d.iframe.bundle.js} +2 -2
- package/demo/docs/runtime~main.79f1fd4d.iframe.bundle.js.br +0 -0
- package/demo/docs/runtime~main.79f1fd4d.iframe.bundle.js.gz +0 -0
- package/demo/iframe.html +1 -1
- package/demo/index.html +1 -1
- package/demo/main.4a02f0d8.iframe.bundle.js +5 -0
- package/demo/main.4a02f0d8.iframe.bundle.js.br +0 -0
- package/demo/main.4a02f0d8.iframe.bundle.js.gz +0 -0
- package/demo/{main.bab38e3aec58987b3b32.manager.bundle.js → main.b293ffa609119d831d1a.manager.bundle.js} +1 -1
- package/demo/main.b293ffa609119d831d1a.manager.bundle.js.br +0 -0
- package/demo/{main.bab38e3aec58987b3b32.manager.bundle.js.gz → main.b293ffa609119d831d1a.manager.bundle.js.gz} +0 -0
- package/demo/project.json +1 -1
- package/demo/{runtime~main.d70e75f8.iframe.bundle.js → runtime~main.79f1fd4d.iframe.bundle.js} +2 -2
- package/demo/runtime~main.79f1fd4d.iframe.bundle.js.br +0 -0
- package/demo/runtime~main.79f1fd4d.iframe.bundle.js.gz +0 -0
- package/dist/cjs/utils/page-wake.js +47 -0
- package/dist/cjs/utils/session.js +12 -1
- package/dist/cjs/view/modals/session-expiry/customHooks.js +25 -22
- package/dist/esm/utils/page-wake.js +27 -0
- package/dist/esm/utils/session.js +12 -1
- package/dist/esm/view/modals/session-expiry/customHooks.js +25 -22
- package/dist/types/lib/utils/page-wake.d.ts +6 -0
- package/dist/types/lib/utils/tests/page-wake.test.d.ts +1 -0
- package/dist/types/lib/utils/tests/session.test.d.ts +1 -0
- package/dist/types/lib/view/modals/session-expiry/tests/customHooks.test.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/demo/1770.ef5c473d.iframe.bundle.js.br +0 -0
- package/demo/1770.ef5c473d.iframe.bundle.js.gz +0 -0
- package/demo/5685.9dc6ce90.iframe.bundle.js.br +0 -0
- package/demo/5685.9dc6ce90.iframe.bundle.js.gz +0 -0
- package/demo/docs/1770.ef5c473d.iframe.bundle.js.br +0 -0
- package/demo/docs/1770.ef5c473d.iframe.bundle.js.gz +0 -0
- package/demo/docs/5685.9dc6ce90.iframe.bundle.js.br +0 -0
- package/demo/docs/5685.9dc6ce90.iframe.bundle.js.gz +0 -0
- package/demo/docs/main.84a32532.iframe.bundle.js +0 -5
- package/demo/docs/main.84a32532.iframe.bundle.js.br +0 -0
- package/demo/docs/main.84a32532.iframe.bundle.js.gz +0 -0
- package/demo/docs/main.bab38e3aec58987b3b32.manager.bundle.js.br +0 -0
- package/demo/docs/runtime~main.d70e75f8.iframe.bundle.js.br +0 -0
- package/demo/docs/runtime~main.d70e75f8.iframe.bundle.js.gz +0 -0
- package/demo/main.84a32532.iframe.bundle.js +0 -5
- package/demo/main.84a32532.iframe.bundle.js.br +0 -0
- package/demo/main.84a32532.iframe.bundle.js.gz +0 -0
- package/demo/main.bab38e3aec58987b3b32.manager.bundle.js.br +0 -0
- package/demo/runtime~main.d70e75f8.iframe.bundle.js.br +0 -0
- package/demo/runtime~main.d70e75f8.iframe.bundle.js.gz +0 -0
- /package/build/docs/assets/js/{main.e2c0c98b.js.LICENSE.txt → main.2c531d5e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[8792],{"./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$"(j,h,e){var d={"./view/breakpoint/index.stories":["./lib/view/breakpoint/index.stories.tsx",[946,999]],"./view/breakpoint/index.stories.tsx":["./lib/view/breakpoint/index.stories.tsx",[946,999]],"./view/error-toast/index.stories":["./lib/view/error-toast/index.stories.tsx",[1800]],"./view/error-toast/index.stories.tsx":["./lib/view/error-toast/index.stories.tsx",[1800]],"./view/fields/autocomplete/advanced-autocomplete.stories":["./lib/view/fields/autocomplete/advanced-autocomplete.stories.tsx",[946,5058,1156,5600,6469,3071]],"./view/fields/autocomplete/advanced-autocomplete.stories.tsx":["./lib/view/fields/autocomplete/advanced-autocomplete.stories.tsx",[946,5058,1156,5600,6469,3071]],"./view/fields/autocomplete/async-suggestions-autocomplete.stories":["./lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx",[946,5058,1156,5600,6469,9825]],"./view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx":["./lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx",[946,5058,1156,5600,6469,9825]],"./view/fields/autocomplete/index.stories":["./lib/view/fields/autocomplete/index.stories.tsx",[946,5058,1156,5600,6469,8048]],"./view/fields/autocomplete/index.stories.tsx":["./lib/view/fields/autocomplete/index.stories.tsx",[946,5058,1156,5600,6469,8048]],"./view/fields/check-box/index.stories":["./lib/view/fields/check-box/index.stories.tsx",[946,5058,8654,590,9634,1281,2382]],"./view/fields/check-box/index.stories.tsx":["./lib/view/fields/check-box/index.stories.tsx",[946,5058,8654,590,9634,1281,2382]],"./view/fields/check-box/set-value.stories":["./lib/view/fields/check-box/set-value.stories.tsx",[946,5058,8654,590,9634,1281,5410]],"./view/fields/check-box/set-value.stories.tsx":["./lib/view/fields/check-box/set-value.stories.tsx",[946,5058,8654,590,9634,1281,5410]],"./view/fields/combo-box-v3/index.stories":["./lib/view/fields/combo-box-v3/index.stories.tsx",[946,5058,8654,3805,590,1156,9634,5600,102,1281,3804,3086]],"./view/fields/combo-box-v3/index.stories.tsx":["./lib/view/fields/combo-box-v3/index.stories.tsx",[946,5058,8654,3805,590,1156,9634,5600,102,1281,3804,3086]],"./view/fields/combo-box/index.stories":["./lib/view/fields/combo-box/index.stories.tsx",[946,5058,8654,3805,590,3085,6039,9888,6184]],"./view/fields/combo-box/index.stories.tsx":["./lib/view/fields/combo-box/index.stories.tsx",[946,5058,8654,3805,590,3085,6039,9888,6184]],"./view/fields/date-input/index.stories":["./lib/view/fields/date-input/index.stories.tsx",[946,5058,8654,3805,3085,725,4820,6055]],"./view/fields/date-input/index.stories.tsx":["./lib/view/fields/date-input/index.stories.tsx",[946,5058,8654,3805,3085,725,4820,6055]],"./view/fields/date-picker/index.stories":["./lib/view/fields/date-picker/index.stories.tsx",[946,5058,8654,3805,3085,725,2165,7813]],"./view/fields/date-picker/index.stories.tsx":["./lib/view/fields/date-picker/index.stories.tsx",[946,5058,8654,3805,3085,725,2165,7813]],"./view/fields/date-range-picker/index.stories":["./lib/view/fields/date-range-picker/index.stories.tsx",[946,5058,102,3923,7584,77]],"./view/fields/date-range-picker/index.stories.tsx":["./lib/view/fields/date-range-picker/index.stories.tsx",[946,5058,102,3923,7584,77]],"./view/fields/date-time-picker/index.stories":["./lib/view/fields/date-time-picker/index.stories.tsx",[946,5058,102,3923,2129]],"./view/fields/date-time-picker/index.stories.tsx":["./lib/view/fields/date-time-picker/index.stories.tsx",[946,5058,102,3923,2129]],"./view/fields/form-item-layout/index.stories":["./lib/view/fields/form-item-layout/index.stories.tsx",[946,5058,8654,3805,590,3085,6039,6285,3813]],"./view/fields/form-item-layout/index.stories.tsx":["./lib/view/fields/form-item-layout/index.stories.tsx",[946,5058,8654,3805,590,3085,6039,6285,3813]],"./view/fields/form-layout-block-item/index.stories":["./lib/view/fields/form-layout-block-item/index.stories.tsx",[946,5058,8654,3805,3085,2487]],"./view/fields/form-layout-block-item/index.stories.tsx":["./lib/view/fields/form-layout-block-item/index.stories.tsx",[946,5058,8654,3805,3085,2487]],"./view/fields/input-mask/index.stories":["./lib/view/fields/input-mask/index.stories.tsx",[946,5058,8654,3805,3085,5951,6729]],"./view/fields/input-mask/index.stories.tsx":["./lib/view/fields/input-mask/index.stories.tsx",[946,5058,8654,3805,3085,5951,6729]],"./view/fields/input-text/index.stories":["./lib/view/fields/input-text/index.stories.tsx",[946,5058,1156,1764]],"./view/fields/input-text/index.stories.tsx":["./lib/view/fields/input-text/index.stories.tsx",[946,5058,1156,1764]],"./view/fields/large-text-box/index.stories":["./lib/view/fields/large-text-box/index.stories.tsx",[946,5058,1491]],"./view/fields/large-text-box/index.stories.tsx":["./lib/view/fields/large-text-box/index.stories.tsx",[946,5058,1491]],"./view/fields/masked-input-text/with-money-mask.stories":["./lib/view/fields/masked-input-text/with-money-mask.stories.tsx",[946,5058,1156,5974]],"./view/fields/masked-input-text/with-money-mask.stories.tsx":["./lib/view/fields/masked-input-text/with-money-mask.stories.tsx",[946,5058,1156,5974]],"./view/fields/masked-input-text/with-percentage-mask.stories":["./lib/view/fields/masked-input-text/with-percentage-mask.stories.tsx",[946,5058,1156,8980]],"./view/fields/masked-input-text/with-percentage-mask.stories.tsx":["./lib/view/fields/masked-input-text/with-percentage-mask.stories.tsx",[946,5058,1156,8980]],"./view/fields/radio-group/index.stories":["./lib/view/fields/radio-group/index.stories.tsx",[946,5058,8654,3805,590,3085,9634,6039,6285,6316,2977]],"./view/fields/radio-group/index.stories.tsx":["./lib/view/fields/radio-group/index.stories.tsx",[946,5058,8654,3805,590,3085,9634,6039,6285,6316,2977]],"./view/fields/radio/index.stories":["./lib/view/fields/radio/index.stories.tsx",[946,5058,8654,590,9634,6531]],"./view/fields/radio/index.stories.tsx":["./lib/view/fields/radio/index.stories.tsx",[946,5058,8654,590,9634,6531]],"./view/fields/radio/set-value.stories":["./lib/view/fields/radio/set-value.stories.tsx",[946,5058,8654,590,9634,5055]],"./view/fields/radio/set-value.stories.tsx":["./lib/view/fields/radio/set-value.stories.tsx",[946,5058,8654,590,9634,5055]],"./view/fields/text-box/index.stories":["./lib/view/fields/text-box/index.stories.tsx",[946,5058,8654,3805,3085,8749]],"./view/fields/text-box/index.stories.tsx":["./lib/view/fields/text-box/index.stories.tsx",[946,5058,8654,3805,3085,8749]],"./view/fields/toggle/index.stories":["./lib/view/fields/toggle/index.stories.tsx",[946,5058,5936]],"./view/fields/toggle/index.stories.tsx":["./lib/view/fields/toggle/index.stories.tsx",[946,5058,5936]],"./view/form/index.stories":["./lib/view/form/index.stories.tsx",[946,5058,8654,3805,590,1156,9634,5600,102,1281,3923,3804,6220]],"./view/form/index.stories.tsx":["./lib/view/form/index.stories.tsx",[946,5058,8654,3805,590,1156,9634,5600,102,1281,3923,3804,6220]],"./view/form/usecases.stories":["./lib/view/form/usecases.stories.tsx",[946,5058,8654,3805,590,1156,9634,5600,102,1281,3923,3804,4580]],"./view/form/usecases.stories.tsx":["./lib/view/form/usecases.stories.tsx",[946,5058,8654,3805,590,1156,9634,5600,102,1281,3923,3804,4580]],"./view/intro.stories.mdx":["./lib/view/intro.stories.mdx",[721,1791,5711]],"./view/live-message/index.stories":["./lib/view/live-message/index.stories.tsx",[214]],"./view/live-message/index.stories.tsx":["./lib/view/live-message/index.stories.tsx",[214]],"./view/modals/error/index.stories":["./lib/view/modals/error/index.stories.tsx",[5541]],"./view/modals/error/index.stories.tsx":["./lib/view/modals/error/index.stories.tsx",[5541]],"./view/modals/navigation-prompt/index.stories":["./lib/view/modals/navigation-prompt/index.stories.tsx",[2758]],"./view/modals/navigation-prompt/index.stories.tsx":["./lib/view/modals/navigation-prompt/index.stories.tsx",[2758]],"./view/modals/session-expiry/index.stories":["./lib/view/modals/session-expiry/index.stories.tsx",[2327]],"./view/modals/session-expiry/index.stories.tsx":["./lib/view/modals/session-expiry/index.stories.tsx",[2327]],"./view/session-timeout/index.stories":["./lib/view/session-timeout/index.stories.tsx",[5662]],"./view/session-timeout/index.stories.tsx":["./lib/view/session-timeout/index.stories.tsx",[5662]],"./view/wait-message/index.stories":["./lib/view/wait-message/index.stories.tsx",[4531]],"./view/wait-message/index.stories.tsx":["./lib/view/wait-message/index.stories.tsx",[4531]]};function u(p){try{if(!e.o(d,p))return Promise.resolve().then(()=>{var x=new Error("Cannot find module '"+p+"'");throw x.code="MODULE_NOT_FOUND",x})}catch(x){return Promise.reject(x)}var v=d[p],g=v[0];return Promise.all(v[1].map(e.e)).then(()=>e(g))}u.keys=()=>Object.keys(d),u.id="./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$",j.exports=u},"./.storybook/preview.js"(j,h,e){"use strict";e.r(h),e.d(h,{__namedExportsOrder:()=>si,decorators:()=>qt,loaders:()=>ei,parameters:()=>ii});var d=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),u=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.production.min.js"),p=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/query/rtk-query.cjs.production.min.js"),v=e("./node_modules/.pnpm/redux-injectors@2.1.0_react-dom@18.3.1_react-redux@8.1.3_react@18.3.1/node_modules/redux-injectors/dist/index.js"),g=e("./node_modules/.pnpm/redux-saga@1.5.0/node_modules/redux-saga/dist/redux-saga.cjs.js"),x=e.n(g),S=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.cjs.production.min.js"),I=e("./lib/data/wait-message/actions.ts"),E={isOpen:null,message:"loading...",delay:!0},s=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,i=arguments.length>1?arguments[1]:void 0;return(0,S.default)(a,function(r){switch(i.type){case I.k.OPEN:r.isOpen=!0,r.message=i.payload.message,r.delay=i.payload.delay;break;case I.k.CLOSE:r.isOpen=!1;break}})},b=e("./lib/data/error/index.ts"),f={change:"change"},A=function(a){return a.LARGE="large",a.MEDIUM="medium",a.SMALL="small",a.XSMALL="xsmall",a}({}),O={value:A.LARGE},L=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O,i=arguments.length>1?arguments[1]:void 0,r=i.type,_=i.payload;return(0,S.default)(a,function(C){switch(r){case f.change:C.value=_;break}})},P=e("./lib/data/live-message/index.ts"),T=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=(0,u.combineReducers)(Object.assign({waitMessage:s,error:b.L,breakpoint:L,liveMessage:P.k},a));return i},k=e("./lib/data/webpack-hmr.ts"),pe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/toConsumableArray.js"),de=e.n(pe),J=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/lib/redux.js"),$=new Map,te,Z=function(a){return te=a,function(i){return function(r){return J.compose.apply(void 0,de()($.values()))(i)(r)}}},Me=function(a){var i=a.reducerPath,r=a.middleware;$.has(i)||!te||$.set(i,r(te))},Te=function(a){$.delete(a)},ie=function(){$.clear()},se,fe,oe=(0,u.createListenerMiddleware)(),Le=oe.startListening,Re=null,Ue=null,_e=oe.clearListeners,we=T(),he=null,Ee=function(a){he=a},ue=function(){return he},ne=function(a,i,r){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},W=i.run,V=[(0,v.OV)({createReducer:T,runSaga:W})];we=T(C);var ce=(0,u.configureStore)({reducer:we,middleware:function(ye){return ye(_).prepend(oe.middleware).concat([i,Z])},devTools:!1,preloadedState:a,enhancers:V});return(0,p.setupListeners)(ce.dispatch),(0,k.I)(ce),ce},Ne=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,_=arguments.length>3?arguments[3]:void 0,C=x()({}),W=ne(a,C,i,r,_);return Ee(W),W},We=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),U=e.n(We),Q=e("./lib/utils/history.ts"),N=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),ae=e("./node_modules/.pnpm/react-redux@8.1.3_@types+react-dom@18.3.7_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1/node_modules/react-redux/lib/index.js"),B=e("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.cjs.js"),ge=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),Se=e.n(ge),Oe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),Ae=e.n(Oe),q=e("./node_modules/.pnpm/react-router-dom@6.30.4_react-dom@18.3.1_react@18.3.1/node_modules/react-router-dom/dist/umd/react-router-dom.production.min.js"),xe=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),Qe=["history","basename"],ke=function(a){var i=a.history,r=a.basename,_=Ae()(a,Qe),C=(0,N.useState)({action:i.action,location:i.location}),W=Se()(C,2),V=W[0],ce=W[1];return(0,N.useLayoutEffect)(function(){r&&V.location.pathname&&!V.location.pathname.startsWith(r)&&console.warn(`[AppRouter] basename "${r}" does not match location.pathname "${V.location.pathname}". React Router will render nothing. Verify that "homeRoute" in app.config.json matches the guest's route.`)},[r,V.location.pathname]),(0,N.useLayoutEffect)(function(){var ye=i.listen(function(){for(var ve=arguments.length,me=new Array(ve),rt=0;rt<ve;rt++)me[rt]=arguments[rt];me.length===2?ce({location:me[0],action:me[1]}):ce(me[0])});return function(){ye()}},[i]),(0,xe.jsx)(q.Router,Object.assign({},_,{basename:r,location:V.location,navigationType:V.action,navigator:i}))};ke.displayName="AppRouter";var Ge=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),Ve=e("./lib/utils/micro-frontend/guest.ts"),Ie=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),Je=e.n(Ie),qe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),Xe=e.n(qe),et=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),K=e.n(et),Ke=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),je=e.n(Ke),tt=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),it=e.n(tt),De=e("./node_modules/.pnpm/pubsub-js@1.9.5/node_modules/pubsub-js/src/pubsub.js"),at=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"),Et=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),ft=e("./lib/data/logout/actions.ts"),ht=e("./lib/utils/app-config/config.ts"),Ye=e("./lib/utils/app-config/index.ts"),lt=e("./lib/utils/console-logger.ts"),xt=e("./lib/utils/logger.ts"),Fe=e("./lib/utils/constants.ts"),Be=e("./lib/utils/window.ts"),gt=e("./lib/utils/session.ts"),Ze=e("./lib/utils/micro-frontend/app-bridge.ts"),$e=e("./lib/utils/micro-frontend/ssf-host.ts"),y,n=je()("ssfHostRef"),o=je()("appBridge"),c=je()("selfInitialize"),R=function(){function a(i){var r,_,C,W,V,ce,ye=this;Je()(this,a),this.logger=void 0,this.appId=void 0,this.props=void 0,this.activeGuests=void 0,this.onInit=void 0,this.onRenewSessionTimer=void 0,this.throttleRenewSessionTimer=void 0,this.scriptingObjects=void 0,Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:null}),Object.defineProperty(this,c,{writable:!0,value:void 0}),this.appId=(0,ht.vF)("appId"),this.onInit=i?.onInit,this.logger=i?.logger||lt.k,(0,xt.B)(this.logger),this.onRenewSessionTimer=i?.onRenewSessionTimer,K()(this,c)[c]=(r=i?.selfInitialize)!==null&&r!==void 0?r:!1,this.props={systemVersion:(_=i?.version)!==null&&_!==void 0?_:"latest",history:(C=i?.history)!==null&&C!==void 0?C:Q.N,theme:(W=i?.theme)!==null&&W!==void 0?W:(0,d.getDefaultTheme)()},this.activeGuests={},i!=null&&i.ssfHostRef&&(0,$e.Z)(i.ssfHostRef),K()(this,n)[n]=(0,$e.F)();var ve=(V=i?.analytics)!==null&&V!==void 0?V:new at.j({logger:this.logger});this.scriptingObjects=Object.assign({analytics:ve},(ce=i?.scriptingObjects)!==null&&ce!==void 0?ce:{}),this.getProps=this.getProps.bind(this),this.getLogger=this.getLogger.bind(this),this.getGuests=this.getGuests.bind(this),this.getGuest=this.getGuest.bind(this),this.getObject=this.getObject.bind(this),this.renewSessionTimer=this.renewSessionTimer.bind(this),this.setSystemVersion=this.setSystemVersion.bind(this),this.sendBAEvent=this.sendBAEvent.bind(this),this.throttleRenewSessionTimer=it()(async function(){await(0,gt.KB)(),ye.onRenewSessionTimer&&ye.onRenewSessionTimer()},Fe.eE,{leading:!0}),K()(this,c)[c]||(0,Ye.yN)().then(function(){(0,Ze.b)().then(function(me){K()(ye,o)[o]=me,ye.onInit&&ye.onInit(ye.props)}).catch(function(me){throw me})}).catch(function(){}),(0,Et.nE)({appId:this.appId})}return Xe()(a,[{key:"initialize",value:async function(){e.p=e.p.replace(/\/?$/,"/"),await(0,Ye.yN)();var r=await(0,Ze.b)();return K()(this,o)[o]=r,this.onInit&&this.onInit(this.props),this.props}},{key:"getProps",value:function(){return this.props}},{key:"getLogger",value:function(){return this.logger}},{key:"getItem",value:function(r){return(0,Be.zk)().sessionStorage.getItem(r)}},{key:"setItem",value:function(r,_){(0,Be.zk)().sessionStorage.setItem(r,_)}},{key:"getGuests",value:function(){return this.activeGuests}},{key:"getGuest",value:function(r){return this.activeGuests[r]?this.activeGuests[r]:null}},{key:"publish",value:function(r,_){return(0,De.publish)(r,_)}},{key:"subscribe",value:function(r,_){return(0,De.subscribe)(r,_)}},{key:"unsubscribe",value:function(r){(0,De.unsubscribe)(r)}},{key:"navigate",value:function(r,_){r&&this.props.history.push(r,_)}},{key:"openWaitMessage",value:function(){var r=ue();r&&r.dispatch(I.X.open())}},{key:"closeWaitMessage",value:function(){var r=ue();r&&r.dispatch(I.X.close())}},{key:"openErrorBanner",value:function(r){var _=ue();_&&_.dispatch(b.o.set({description:r}))}},{key:"getAuthToken",value:function(){return(0,Be.zk)().sessionStorage.getItem("Authorization")}},{key:"renewAuthToken",value:function(){return(0,Be.zk)().sessionStorage.getItem("Authorization")}},{key:"logout",value:function(){var r=ue();r&&r.dispatch(ft.r.confirm())}},{key:"renewSessionTimer",value:async function(){this.throttleRenewSessionTimer()}},{key:"getBreakpoint",value:function(){return(0,Be.D)()}},{key:"getViewportSize",value:function(){return(0,Be.M5)()}},{key:"onResizeEvent",value:function(r){return(0,De.subscribe)(Fe.BD,function(_,C){return r(C)})}},{key:"onBreakpointChangeEvent",value:function(r){return(0,De.subscribe)(Fe.H1,function(_,C){return r(C)})}},{key:"setSystemVersion",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"latest";window.emui.version=r,this.props.systemVersion=r}},{key:"sendBAEvent",value:function(r){this.scriptingObjects.analytics.sendBAEvent(r).catch(function(){})}},{key:"getObject",value:async function(r){return this.scriptingObjects[r]}},{key:"addScriptingObject",value:function(r,_){K()(this,o)[o]&&K()(this,o)[o].addScriptingObject(r,_),K()(this,n)[n].addScriptingObject(r,_)}},{key:"dispatchEvent",value:async function(r){if(K()(this,o)[o]){var _=await Promise.all([K()(this,o)[o].dispatchEvent(r),K()(this,n)[n].dispatchEvent(r)]),C=Se()(_,2),W=C[0],V=C[1];return Array.isArray(W)&&Array.isArray(V)?W.concat(V):Promise.resolve()}return K()(this,n)[n].dispatchEvent(r)}},{key:"removeScriptingObject",value:function(r,_){K()(this,o)[o]&&K()(this,o)[o].removeScriptingObject(r,_),K()(this,n)[n].removeScriptingObject(r,_)}}],[{key:"getInstance",value:function(r){return this.instance||(this.instance=new a(r),r!=null&&r.selfInitialize||(r?.logger||lt.k).warn("CMicroAppHost.getInstance() called without selfInitialize: true \u2014 this legacy mode is deprecated. Pass { selfInitialize: true } and use initialize() instead.")),this.instance}},{key:"isInitialized",value:function(){return!!this.instance}}])}();y=R,R.instance=void 0;var z,be,He,st,ot,dt,ut=function(){return R.isInitialized()},Ot=function(){return Ve.h.isInitialized()},jt=function(){return Ot()&&window.top===window.self},It=function(){return ut()?R.getInstance().getLogger():Ve.h.getInstance().getLogger()},_t=function(a){return st()?!0:a?a===dt.PRODUCTION:!0},wt=function(a){var i=be.getInstance().getProps(),r=i.systemVersion,_=r.match(/^(?:\d+\.\d+)*/g);return a.replace(/{SYSTEM_VERSION}/,_&&_[0]||"latest")},bt=function(a){var i;return a==null||(i=a.replace)===null||i===void 0?void 0:i.call(a,/\/?$/,"/")},At=function(a){var i=He(`microFrontendApps.${a.id}`);if(!i)throw new Error(`unable to locate application configuraiton for ${a.id} under microFrontendApps section of app.config.json`);var r=i.mode,_=r===void 0?dt.PRODUCTION:r,C=_t(_)?i.production:i.development;i.production&&delete i.production,i.development&&delete i.development;var W=z(a,{mode:"production",hostUrl:"./",manifestPath:"./{SYSTEM_VERSION}",isJsModule:!1},i,C);return W.hostUrl=ot(W.hostUrl.replace(/\/?$/,"/")),W.manifestPath=bt(wt(W.manifestPath)),W},Tt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),Rt=e.n(Tt),Dt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/getPrototypeOf.js"),Pt=e.n(Dt),Lt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/inherits.js"),t=e.n(Lt),l=function(a){var i=a.error,r=i===void 0?new Error("We are unable to process your request"):i,_=a.errorInfo,C=_===void 0?{componentStack:"Please close your browser and login again"}:_;return U()("div",{},void 0,U()("h2",{},void 0,r?.message),U()("section",{},void 0,C?.componentStack))};l.displayName="DefaultErrorTemplate";var m=e("./lib/utils/log-records.ts");function w(a,i,r){return i=Pt()(i),Rt()(a,D()?Reflect.construct(i,r||[],Pt()(a).constructor):i.apply(a,r))}function D(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D=function(){return!!a})()}var M=function(a){function i(r){var _;return Je()(this,i),_=w(this,i,[r]),_.state={error:null,errorInfo:null},_}return t()(i,a),Xe()(i,[{key:"componentDidCatch",value:function(_,C){this.setState({error:_,errorInfo:C});var W=It();W&&W.error(Object.assign({},m.V.UNHANDLED_ERROR,{exception:_,message:_.message}))}},{key:"render",value:function(){var _=this.props,C=_.children,W=_.errorTemplate,V=W||l,ce=this.state,ye=ce.error,ve=ce.errorInfo;return ve?U()(V,{error:ye,errorInfo:ve}):C}}])}(N.Component),H=e("./node_modules/.pnpm/react-aria-live@2.0.5_react@18.3.1/node_modules/react-aria-live/lib/index.js"),F=e("./lib/data/useAppDispatch.ts"),X=function(a,i,r){var _=a.map(function(ve){return window.matchMedia(ve)}),C=(0,N.useCallback)(function(){var ve=_.findIndex(function(me){return me.matches});return typeof i[ve]<"u"?i[ve]:r},[r,_,i]),W=(0,N.useState)(C),V=Se()(W,2),ce=V[0],ye=V[1];return(0,N.useEffect)(function(){var ve=function(){return ye(C)};return _.forEach(function(me){return me.addEventListener("change",ve)}),function(){return _.forEach(function(me){return me.removeEventListener("change",ve)})}},[C,_]),ce},re=function(){var a=(0,N.useContext)(B.ThemeContext),i=X([`(max-width: ${a.breakpoints.small})`,`(max-width: ${a.breakpoints.medium})`,`(max-width: ${a.breakpoints.large})`,`(max-width: ${a.breakpoints.xsmall})`],["small","medium","large","xsmall"],"large"),r=(0,F.j)();(0,N.useEffect)(function(){r({type:f.change,payload:i}),(0,De.publish)(Fe.H1,i)},[i,r])},G=function(){(0,N.useEffect)(function(){if(window.ResizeObserver){var a=new ResizeObserver(function(i){(0,De.publish)(Fe.BD,i&&i[0])});return a.observe(window.document.documentElement),function(){a.unobserve(window.document.documentElement)}}return function(){}},[])},ee=e("./lib/view/session-timeout/index.tsx"),le=e("./lib/view/live-message/index.tsx"),Y=e("./lib/view/error-toast/index.tsx"),Pe=e("./lib/view/wait-message/index.tsx");const Ce=(0,B.createGlobalStyle)([":root{font-size:81.25%;",";}html,body{height:100%;width:100%;line-height:",";}body{font-family:",";background-color:",";}#app,#app-container,#root,main{height:100%;width:100%;min-height:100%;min-width:100%;}"],function(a){var i=a.theme;return i.media.small`
|
|
2
|
+
font-size: 100%;
|
|
3
|
+
`},function(a){return a.theme.lineHeights.m},function(a){return a.theme.fonts.default},function(a){return a.theme.colors.neutral["000"]});var ct,ze,vt,St,mt,yt=B.default.div.withConfig({componentId:"sc-1ho9g5n-0"})(["height:100%;"]),pt=function(a){var i=a.manageSession,r=a.WaitMessage,_=a.children;return re(),G(),U()(H.Ai,{},void 0,U()(yt,{},void 0,ct||(ct=U()(Ce,{})),i&&(ze||(ze=U()(ee.S,{}))),vt||(vt=U()(le.I,{})),r||St||(St=U()(Pe.j,{})),mt||(mt=U()(Y.Q,{})),_))};pt.displayName="StandAloneApp";var Ct=e("./lib/view/wait-message/use-html-wait-message.tsx"),nt,Ut,Wt,Kt=B.default.div.withConfig({componentId:"sc-njn2ro-0"})(["height:100%;"]),kt=function(a){var i=a.WaitMessage,r=a.children;return re(),(0,Ct.t)(!0),G(),U()(Kt,{},void 0,nt||(nt=U()(Ce,{})),i||Ut||(Ut=U()(Pe.j,{})),Wt||(Wt=U()(Y.Q,{})),r)};kt.displayName="HostedApp";var Ft=function(a){var i=jt()||ut();return i?(0,xe.jsx)(pt,Object.assign({},a)):(0,xe.jsx)(kt,Object.assign({},a))},Bt=function(a){var i=a.store,r=a.history,_=a.basename,C=a.theme,W=C===void 0?(0,d.getDefaultTheme)():C,V=a.manageSession,ce=V===void 0?!1:V,ye=a.WaitMessage,ve=a.errorTemplate,me=a.children,rt=a.strictMode,oi=rt===void 0?!0:rt,ni=oi?N.StrictMode:N.Fragment;return U()(ni,{},void 0,U()(M,{errorTemplate:ve},void 0,U()(ae.Provider,{store:i},void 0,U()(ke,{history:r,basename:_},void 0,U()(B.ThemeProvider,{theme:W},void 0,U()(Ft,{manageSession:ce,WaitMessage:ye},void 0,me))))))};Bt.displayName="AppRoot";var Ht=function(a,i,r){return U()(Bt,{store:i,history:Q.N,theme:a},void 0,r())};Ht.displayName="withAppDecorator";var $t=e("./node_modules/.pnpm/@storybook+theming@6.5.16/node_modules/@storybook/theming/dist/esm/index.js"),zt=["base","brandTitle"],Gt=function(a){var i=a.base,r=i===void 0?"light":i,_=a.brandTitle,C=_===void 0?"Platform UI Components":_,W=Ae()(a,zt);return(0,$t.vt)(Object.assign({base:r,brandTitle:`${C} v5.42.4`},W))},Vt=e("./node_modules/.pnpm/style-loader@2.0.0_webpack@5.107.2/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),Jt=e.n(Vt),Nt=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.107.2/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./lib/utils/storybook/preview.css"),Mt={};Mt.insert="head",Mt.singleton=!1;var ri=Jt()(Nt.A,Mt);const ai=Nt.A.locals||{};var Xt=(0,d.getDefaultTheme)(),Yt=Ne({},Q.N),Zt=Ht.bind(null,Xt,Yt),Qt=function(a){return{layout:"fullscreen",actions:{argTypesRegex:"^on.*"},controls:{hideNoControlsWarning:!0},docs:{theme:Gt(a)},options:{storySort:{method:"alphabetical",order:["Getting Started",["Introduction","Installation","Packages","Supported Browsers","Releases","Theme"],"Components"],locales:["en-US"]}},dependencies:{withStoriesOnly:!0,hideEmpty:!0}}},qt=[Zt],ei=[async function(){await(0,Ye.yN)("./")}],ti={brandTitle:"Application SDK",brandUrl:"https://git.elliemae.io/platform-ui/pui-app-sdk.git"},li=null,ii=Qt(ti),si=["decorators","parameters","loaders"]},"./lib/analytics/index.ts"(j,h,e){"use strict";e.d(h,{e:()=>g});var d=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),u=e("./lib/utils/micro-frontend/guest.ts"),p=e("./lib/utils/helpers.ts"),v=function(x){var S=Object.assign({},(0,d.QS)(),(0,p.np)(),x);window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push(S)},g=function(x){var S=x.data,I=x.self,E=I===void 0?!0:I;if(E)v(S);else{var s,b=(s=u.h.getInstance())===null||s===void 0?void 0:s.getHost(),f=b?.sendBAEvent;f?f(S):v(S)}}},"./lib/communication/http-client/props.ts"(j,h,e){"use strict";e.d(h,{K:()=>f});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),u=e.n(d),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),v=e.n(p),g=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),x=e.n(g),S=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),I=e.n(S),E=I()("resetUserIdleTime"),s=I()("endSession"),b=function(){function A(){u()(this,A),Object.defineProperty(this,E,{writable:!0,value:function(){}}),Object.defineProperty(this,s,{writable:!0,value:async function(){}})}return v()(A,[{key:"resetUserIdleTime",get:function(){return x()(this,E)[E]},set:function(O){x()(this,E)[E]=O}},{key:"endSession",get:function(){return x()(this,s)[s]},set:function(O){x()(this,s)[s]=O}}])}(),f=new b},"./lib/data/error/index.ts"(j,h,e){"use strict";e.d(h,{L:()=>x,o:()=>g});var d=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.production.min.js"),u=e.n(d),p={description:"",messageText:""},v=(0,d.createSlice)({name:"error",initialState:p,reducers:{set:function(S,I){return I.payload},clear:function(){return p}}}),g=v.actions,x=v.reducer},"./lib/data/live-message/index.ts"(j,h,e){"use strict";e.d(h,{k:()=>x,o:()=>g});var d=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.production.min.js"),u=e.n(d),p={message:"",ariaLive:"polite",id:""},v=(0,d.createSlice)({name:"liveMessage",initialState:p,reducers:{announce:function(S,I){var E=I.payload,s=E.message,b=E.ariaLive,f=E.id;return{message:s,ariaLive:b,id:f}}}}),g=v.actions,x=v.reducer},"./lib/data/logout/actions.ts"(j,h,e){"use strict";e.d(h,{r:()=>u});var d={CONFIRM:"log-out/CONFIRM",CANCEL:"log-out/CANCEL"},u={confirm:function(){return{type:d.CONFIRM,payload:null}},cancel:function(){return{type:d.CANCEL,payload:null}}}},"./lib/data/useAppDispatch.ts"(j,h,e){"use strict";e.d(h,{j:()=>p});var d=e("./node_modules/.pnpm/react-redux@8.1.3_@types+react-dom@18.3.7_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1/node_modules/react-redux/lib/index.js"),u=e.n(d),p=function(){return(0,d.useDispatch)()}},"./lib/data/useAppSelector.ts"(j,h,e){"use strict";e.d(h,{G:()=>p});var d=e("./node_modules/.pnpm/react-redux@8.1.3_@types+react-dom@18.3.7_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1/node_modules/react-redux/lib/index.js"),u=e.n(d),p=d.useSelector},"./lib/data/wait-message/actions.ts"(j,h,e){"use strict";e.d(h,{X:()=>u,k:()=>d});var d={OPEN:"wait-message/OPEN",CLOSE:"wait-message/CLOSE"},u={open:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"loading...",v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{type:d.OPEN,payload:{message:p,delay:v}}},close:function(){return{type:d.CLOSE,payload:null}}}},"./lib/data/webpack-hmr.ts"(j,h,e){"use strict";e.d(h,{I:()=>u});var d=e("./node_modules/.pnpm/redux-injectors@2.1.0_react-dom@18.3.1_react-redux@8.1.3_react@18.3.1/node_modules/redux-injectors/dist/index.js");j=e.hmd(j);var u=function(p){var v=null;try{var g,x;v=(g=(x=j)===null||x===void 0?void 0:x.hot)!==null&&g!==void 0?g:null}catch{v=null}v&&v.accept("./reducers",function(){(0,d.Dl)(p)})}},"./lib/utils/app-config/config.ts"(j,h,e){"use strict";e.d(h,{WE:()=>O,vF:()=>f,g3:()=>b});var d=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/clone.js"),p=e.n(u),v=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),g=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),x=e.n(g);const S=JSON.parse('{"appId":"app-sdk","activeEnv":"localhost","sessionTimeoutWarnInterval":"60000","sessionTimeoutInterval":"70000","serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","wss":"ws://localhost:5000"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize"}}}}');var I,E,s=S,b=function(P){s=P},f=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p()(x()(s,P,T))},A=function(P,T){return E(s,P,T)},O=function(){return s},L=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return I(s,P)}},"./lib/utils/app-config/index.ts"(j,h,e){"use strict";e.d(h,{yN:()=>s});var d=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),u=e.n(d),p=e("./node_modules/.pnpm/core-js@3.49.0/node_modules/core-js/modules/es.array.includes.js"),v=e.n(p),g=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),x=e("./lib/utils/app-config/config.ts"),S=e("./lib/utils/window.ts"),I=function(b){var f,A,O=b.activeEnv,L=b.env[O]||{};b.env&&delete b.env,(0,x.g3)(u()(b,L)),sessionStorage.setItem("envName",O),window.emui=window.emui||{},window.emui.appId=(f=(A=(0,x.vF)("appId"))!==null&&A!==void 0?A:window.emui.appId)!==null&&f!==void 0?f:"",(0,g.nE)({envName:O})},E=function(b){return b.replace(/(\d+\.\d+)(?!.*\d+\.\d+)/,"latest")},s=async function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,S.OX)(),f=`${b.replace(/\/?$/,"/")}app.config.json`,A=E(b);try{var O=await fetch(f);if(!O.ok){if(b!==A){await s(A);return}var L=`App Config is not found at ${f}`;throw new Error(L)}var P=await O.json();I(P)}catch(k){var T;if(b!==A){await s(A);return}throw k!=null&&(T=k.message)!==null&&T!==void 0&&T.includes("Unexpected token")?new Error(`App config file at ${f} is not a valid JSON`):k}}},"./lib/utils/console-logger.ts"(j,h,e){"use strict";e.d(h,{k:()=>v});var d=e("@elliemae/pui-diagnostics"),u=e.n(d),p=e("./lib/utils/app-config/config.ts"),v=function(){return d.logger?(0,d.logger)({transport:(0,d.Console)(),index:"app",environment:(0,p.vF)("activeEnv"),team:"app team",appName:"ICEMT App",appVersion:"latest",instanceId:"",userId:""}):console}()},"./lib/utils/constants.ts"(j,h,e){"use strict";e.d(h,{Ay:()=>d,BD:()=>v,H1:()=>g,J2:()=>u,eE:()=>x});const d={AUTHORIZATION:"Authorization",CLIENT_ID:"tirykwfo"};var u={WARN:12*60*1e3,EXPIRY:15*60*1e3},p=null,v="HOST_WINDOW_RESIZED",g="HOST_WINDOW_BREAKPOINT_CHANGED",x=6e4},"./lib/utils/helpers.ts"(j,h,e){"use strict";e.d(h,{E_:()=>I,np:()=>S});var d=e("./lib/utils/window.ts"),u=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),p=function(){return!0},v=function(){return u.env.CI==="true"},g=/^(?:[a-z]+:)?\/\//,x=function(E){return g.test(E)?E:new URL(E,document.location.origin).href},S=function(){var E,s,b,f,A,O,L,P=(0,d.zk)(),T=P.document.title,k=document,pe=k.title,de=(E=P==null||(s=P.emui)===null||s===void 0?void 0:s.appId)!==null&&E!==void 0?E:"",J=(b=P==null||(f=P.emui)===null||f===void 0?void 0:f.version)!==null&&b!==void 0?b:"",$=(A=(O=window)===null||O===void 0||(L=O.emui)===null||L===void 0?void 0:L.appId)!==null&&A!==void 0?A:"",te=P.location,Z=te.pathname,Me=te.href,Te=window.location,ie=Te.pathname,se=Te.href;return{productId:de,productPath:Z,productUrl:Me,productPageTitle:T,version:J,appId:$,appPath:ie,appUrl:se,appPageTitle:pe}},I=function(E){var s=E.promise,b=E.delay,f=E.retValue,A=f===void 0?!1:f,O=E.throwError,L=O===void 0?!1:O,P=E.errMsg;return Promise.race([s,new Promise(function(T,k){setTimeout(function(){L?k(new Error(P)):T(A)},b)})])}},"./lib/utils/history.ts"(j,h,e){"use strict";e.d(h,{N:()=>p,w:()=>v});var d=e("./node_modules/.pnpm/history@5.3.0/node_modules/history/umd/history.production.min.js"),u=e.n(d),p=(0,d.createBrowserHistory)(),v=(0,d.createMemoryHistory)()},"./lib/utils/log-records.ts"(j,h,e){"use strict";e.d(h,{V:()=>d});var d={ERR_TOAST_OPEN_FAILED:{code:"appsdk001",message:"Unable to open Error Toast"},WAIT_MSG_OPEN_FAILED:{code:"appsdk02",message:"Unable to open Wait message"},WAIT_MSG_CLOSE_FAILED:{code:"appsdk03",message:"Unable to close Wait message"},APP_CONFIG_LOAD_FAILED:{code:"appsdk04",message:"Unable to load application configuration"},ASSET_NOT_FOUND_IN_MANIFEST:function(u){return{code:"appsdk05",message:`Application load failed. unable to locate ${u} in the manifest`}},APP_INIT_FAILED:function(u,p,v){return{code:"appsdk06",message:`Application load failed. Unable to load one or more application resources for appId: ${u} and instanceId: ${p}. ${v}`}},APP_LOADING:function(u,p){return{code:"appsdk07",message:`Application ${u} with instanceId ${p} is loading...`}},APP_LOADING_COMPLETE:function(u,p){return{code:"appsdk08",message:`Application ${u} loaded with instanceId ${p}`}},APP_UNLOADING:function(u,p){return{code:"appsdk09",message:`Application ${u} with instanceId ${p} unloading...`}},APP_UNLOADING_COMPLETE:function(u,p){return{code:"appsdk10",message:`Application ${u} with instanceId ${p} unloaded`}},SSF_HOST_OBJECT_NOT_FOUND:function(u){return{code:"appsdk11",message:`Parent window doesn't expose SSF Object named ${u}`}},LOGIN_FAILED:{code:"appsdk12",message:"Unable to login the user."},LOGOUT_FAILED:{code:"appsdk13",message:"Unable to logout the user."},SERVICE_WORKER_FAILED:{code:"appsdk14",message:"Service Worker Registration Failed"},UNHANDLED_ERROR:{code:"appsdk15",message:"Unhandled error in react component"},SESSION_RENEWAL_FAILED:{code:"appsdk16",message:"Unable to extend PSS session"}}},"./lib/utils/logger.ts"(j,h,e){"use strict";e.d(h,{B:()=>u,t:()=>p});var d=null,u=function(v){d=v},p=function(){return d}},"./lib/utils/logrocket.ts"(j,h,e){"use strict";e.d(h,{K3:()=>E,Te:()=>x});var d,u,p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),v=e.n(p),g=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),x=function(){var s;return(s=window.emui)===null||s===void 0?void 0:s.logRocket},S=function(s){var b={};return Object.entries(s).forEach(function(f){var A=d(f,2),O=A[0],L=A[1];b[O]=L??""}),b},I=function(s,b){var f=x();f&&(f.identify(s,S(b)),u(s))},E=function(s){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,g.As)(s,b)}},"./lib/utils/micro-frontend/app-bridge.ts"(j,h,e){"use strict";e.d(h,{b:()=>g});var d=e("./node_modules/.pnpm/@elliemae+pui-app-bridge@2.28.6_@elliemae+pui-diagnostics@3.12.5_@elliemae+pui-logrocket@1.3._cu7aeoxsbpbexfro2txwzofllm/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"),u=e("./lib/utils/logger.ts"),p=e("./lib/utils/app-config/config.ts"),v=null,g=async function(){if(!v){var x,S,I,E=(0,u.t)(),s=((x=window.emui)===null||x===void 0?void 0:x.version)||"latest";v=new d.o({logger:E,version:s,appConfigBaseUrl:(S=window)===null||S===void 0||(I=S.emui)===null||I===void 0?void 0:I._ASSET_PATH}),await v.init((0,p.WE)());var b=(0,p.vF)("microFrontendApps");b&&Object.keys(b).forEach(function(f){return v.warmUp(f)})}return v}},"./lib/utils/micro-frontend/guest.ts"(j,h,e){"use strict";e.d(h,{h:()=>it});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),u=e.n(d),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),v=e.n(p),g=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),x=e.n(g),S=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),I=e.n(S),E=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),s=e.n(E),b=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),f=e.n(b),A=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),O=e.n(A),L=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),P=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),T=e("./node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"),k=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),pe=e("./lib/utils/window.ts"),de=e("./lib/utils/app-config/index.ts"),J=e("./lib/utils/app-config/config.ts"),$=e("./lib/utils/history.ts"),te=e("./lib/utils/console-logger.ts"),Z=e("./lib/utils/logger.ts"),Me=e("./node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js"),Te,ie="storage",se="getSessionStorage",fe="sessionStorage",oe=function(){return sessionStorage.length===0},Le=function(y){if(y.key===se)localStorage.setItem(fe,JSON.stringify(sessionStorage)),localStorage.removeItem(fe);else if(y.key===fe&&y.newValue){var n=JSON.parse(y.newValue);n&&Object.keys(n).forEach(function(o){sessionStorage.setItem(o,n[o])})}},Re=null,Ue=function(){window.addEventListener(ie,Le),oe()&&localStorage.setItem(se,`${Date.now()}`)},_e=function(){window.removeEventListener(ie,Le)},we=e("./lib/utils/micro-frontend/app-bridge.ts"),he=e("./lib/utils/helpers.ts"),Ee=e("./lib/utils/micro-frontend/ssf-host.ts"),ue=function(){var y,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;if(n){var o=n,c=(y=o.emui)===null||y===void 0?void 0:y._ASSET_PATH;if(c){o.__webpack_public_path__=new URL("../",c).href;return}o.__webpack_public_path__=(o.__webpack_public_path__||"").replace(/\/?$/,"/")}},ne=["history"],Ne,We="app-container",U=2e3,Q=function(){try{return window.parent.document,!1}catch{return!0}},N=function(y){return y.SSF="ssf",y.APPSDK="app-sdk",y}(N||{}),ae=f()("uuid"),B=f()("communicationMethod"),ge=f()("ssfHostRef"),Se=f()("useV2Guest"),Oe=f()("selfInitialize"),Ae=f()("embeddedWithoutHost"),q=f()("appBridge"),xe=f()("pendingInitialRoute"),Qe=f()("addAppToGlobalVariable"),ke=f()("onWindowUnload"),Ge=f()("resolveHistory"),Ve=f()("discoverHost"),Ie=f()("exposeGetHost"),Je=f()("initAppBridge"),qe=f()("applyModuleParams"),Xe=f()("applyHistoryFromParams"),et=f()("applyInitialRoute"),K=f()("loadConfigAndBridge"),Ke=f()("trackAnalyticsAndOnInit"),je=f()("completeWithoutHost"),tt=f()("fetchModuleScriptingObject"),it=function(){function y(n){var o,c,R;x()(this,y),Object.defineProperty(this,tt,{value:$e}),Object.defineProperty(this,je,{value:Ze}),Object.defineProperty(this,Ke,{value:gt}),Object.defineProperty(this,K,{value:Be}),Object.defineProperty(this,et,{value:Fe}),Object.defineProperty(this,Xe,{value:xt}),Object.defineProperty(this,qe,{value:lt}),Object.defineProperty(this,Je,{value:Ye}),Object.defineProperty(this,Ie,{value:ht}),Object.defineProperty(this,Ve,{value:ft}),Object.defineProperty(this,Ge,{value:Et}),Object.defineProperty(this,ke,{value:at}),Object.defineProperty(this,Qe,{value:De}),Object.defineProperty(this,ae,{writable:!0,value:void 0}),this.logger=void 0,this.appId=void 0,this.props=void 0,Object.defineProperty(this,B,{writable:!0,value:void 0}),Object.defineProperty(this,ge,{writable:!0,value:void 0}),Object.defineProperty(this,Se,{writable:!0,value:void 0}),Object.defineProperty(this,Oe,{writable:!0,value:void 0}),Object.defineProperty(this,Ae,{writable:!0,value:void 0}),Object.defineProperty(this,q,{writable:!0,value:null}),Object.defineProperty(this,xe,{writable:!0,value:null}),this.onInit=void 0,this.onMount=void 0,this.onUnmount=void 0,this.onGetRef=void 0,window.emui.uuid=window.emui.uuid||(0,L.A)(),this.appId=((o=window.emui)===null||o===void 0?void 0:o.appId)||(0,J.vF)("appId"),s()(this,ae)[ae]=window.emui.uuid,s()(this,B)[B]=N.APPSDK,this.props={host:null,hostUrl:null,prevState:null,history:n?.history||$.N,theme:(0,P.getDefaultTheme)(),manifestPath:"./latest",containerId:We},this.logger=n?.logger||te.k,(0,Z.B)(this.logger),n!=null&&n.ssfHostRef&&(0,Ee.Z)(n.ssfHostRef),s()(this,ge)[ge]=(0,Ee.F)(),s()(this,Se)[Se]=n?.useV2Guest!==!1,s()(this,Oe)[Oe]=(c=n?.selfInitialize)!==null&&c!==void 0?c:!1,s()(this,Ae)[Ae]=(R=n?.embeddedWithoutHost)!==null&&R!==void 0?R:!1,this.onInit=n?.onInit,this.onMount=n?.onMount,this.onUnmount=n?.onUnmount,this.onGetRef=n?.onGetRef,s()(this,Ae)[Ae]&&!s()(this,Oe)[Oe]&&this.logger.warn("embeddedWithoutHost requires selfInitialize: true \u2014 the flag only applies to initialize()"),this.getHost=this.getHost.bind(this),this.getLogger=this.getLogger.bind(this),this.getProps=this.getProps.bind(this),s()(this,Oe)[Oe]?window.addEventListener("beforeunload",s()(this,ke)[ke].bind(this)):s()(this,Qe)[Qe]()}return I()(y,[{key:"getHost",value:function(){return this.props.host}},{key:"getLogger",value:function(){return this.logger}},{key:"getObject",value:function(o){var c=null;return s()(this,B)[B]===N.SSF?(c=this.getHost(),c.getObject(o)):(c=this.getHost(),c?c.getObject(o):Promise.resolve(null))}},{key:"subscribe",value:function(o){var c=null;return s()(this,B)[B]===N.SSF?(c=this.getHost(),c.subscribe(o)):(c=this.getHost(),c.subscribe(o))}},{key:"unsubscribe",value:function(o){var c=null;s()(this,B)[B]===N.SSF&&(c=this.getHost(),c.unsubscribe(o)),c=this.getHost(),c.unsubscribe(o)}},{key:"getProps",value:function(){return this.props}},{key:"getSessionStorageItem",value:function(o){var c=sessionStorage.getItem(o),R=this.getHost();return!c&&R!==null&&R!==void 0&&R.getItem&&(c=R.getItem(o)),c}},{key:"findHost",value:async function(){var o=null;if(!Q()){var c,R,z;o=(c=(R=window.parent)===null||R===void 0||(z=R.emui)===null||z===void 0?void 0:z.MicroAppHost)!==null&&c!==void 0?c:null}return!o&&s()(this,Se)[Se]&&(o=new T.p({appLogger:this.logger}),await(0,he.E_)({promise:o.connect(),delay:1e3,retValue:!1})?o=null:s()(this,B)[B]=N.SSF),o}},{key:"uuid",get:function(){return s()(this,ae)[ae]}},{key:"initialize",value:async function(){ue();var o=window.top===window.self&&!window.opener;if(o)return await s()(this,K)[K](),s()(this,je)[je]("standalone");if(s()(this,Ae)[Ae])return await s()(this,K)[K](),s()(this,je)[je]("embeddedWithoutHost");var c=await Promise.all([s()(this,Ve)[Ve](),s()(this,K)[K]()]),R=v()(c,1),z=R[0];if(!z)return s()(this,je)[je]("discoveryFallback");this.props.host=z,s()(this,Ie)[Ie]();var be={moduleId:this.appId};try{var He=await s()(this,tt)[tt]();He?(be=await He.getParameters(),s()(this,qe)[qe](be)):this.logger.warn(`Host did not register a module scripting object for "${this.appId}". Proceeding without host-provided parameters (history, theme, initialRoute).`)}catch{this.logger.warn(`Failed to retrieve module parameters for "${this.appId}". Proceeding without host-provided parameters.`)}return s()(this,Ke)[Ke](),be}},{key:"init",value:async function(o){var c=this,R=o??{},z=R.history,be=u()(R,ne);if(this.props=O()(this.props,be),!this.props.host){var He=await this.findHost();He?this.props.host=He:this.logger.warn("unable to connect to host microapp")}return s()(this,Ie)[Ie](),ue(),(0,de.yN)().then(function(){var st=c.getSessionStorageItem("instanceId")||"",ot=c.getSessionStorageItem("userId")||"";(0,k.nE)({appId:c.appId,instanceId:st,userId:ot});var dt=s()(c,Ge)[Ge](z);return!dt&&o!==null&&o!==void 0&&o.initialRoute&&(s()(c,xe)[xe]=typeof o.initialRoute=="string"?o.initialRoute:o.initialRoute.pathname||null),(0,we.b)().then(function(ut){s()(c,q)[q]=ut,c.onInit&&c.onInit(c.props)})})}},{key:"mount",value:function(){var o=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{containerId:We};return this.props.containerId=c?.containerId,Promise.resolve().then(function(){s()(o,xe)[xe]&&(o.props.history.push(s()(o,xe)[xe]),s()(o,xe)[xe]=null),o.onMount&&o.onMount(c)})}},{key:"unmount",value:function(o){var c=this;return _e(),Promise.resolve().then(function(){return c.onUnmount?c.onUnmount(o):null})}},{key:"getRef",value:function(){return this.onGetRef?this.onGetRef():null}},{key:"navigate",value:function(o,c){o&&this.props.history.push(o,c)}},{key:"addScriptingObject",value:function(o,c){s()(this,q)[q]&&s()(this,q)[q].addScriptingObject(o,c),s()(this,ge)[ge].addScriptingObject(o,c)}},{key:"dispatchEvent",value:async function(o){if(s()(this,q)[q]){var c=await Promise.all([s()(this,q)[q].dispatchEvent(o),s()(this,ge)[ge].dispatchEvent(o)]),R=v()(c,2),z=R[0],be=R[1];return Array.isArray(z)&&Array.isArray(be)?z.concat(be):Promise.resolve()}return s()(this,ge)[ge].dispatchEvent(o)}},{key:"removeScriptingObject",value:function(o,c){s()(this,q)[q]&&s()(this,q)[q].removeScriptingObject(o,c),s()(this,ge)[ge].removeScriptingObject(o,c)}}],[{key:"getInstance",value:function(o){return this.instance||(this.instance=new y(o),o!=null&&o.selfInitialize||(o?.logger||te.k).warn("CMicroApp.getInstance() called without selfInitialize: true \u2014 this legacy mode is deprecated. Pass { selfInitialize: true } and use initialize() instead.")),this.instance}},{key:"isInitialized",value:function(){return!!this.instance}},{key:"isHosted",value:function(){var o,c;return!!((o=this.instance)!==null&&o!==void 0&&(c=o.props)!==null&&c!==void 0&&c.host)}}])}();Ne=it;function De(){var y=this,n=(0,pe.zk)();if(n){n.emui=n.emui||{};var o={uuid:s()(this,ae)[ae],init:this.init.bind(this),mount:this.mount.bind(this),unmount:this.unmount.bind(this),getRef:this.getRef.bind(this),navigate:this.navigate.bind(this)};if(n.emui[this.appId])if(Array.isArray(n.emui[this.appId])){var c=n.emui[this.appId],R=c.findIndex(function(z){return z.uuid===s()(y,ae)[ae]});R>-1?c[R]=o:c.push(o)}else n.emui[this.appId].uuid===s()(this,ae)[ae]?n.emui[this.appId]=o:typeof n.emui[this.appId].init>"u"?n.emui[this.appId]=Object.assign({},n.emui[this.appId],o):n.emui[this.appId]=[n.emui[this.appId],o];else n.emui[this.appId]=o;window.emui.app=o,window.addEventListener("beforeunload",s()(this,ke)[ke].bind(this))}}function at(){var y=this;if(!s()(this,Oe)[Oe]){var n=(0,pe.zk)();if(Array.isArray(n.emui[this.appId])){var o=n.emui[this.appId],c=o.findIndex(function(R){return R.uuid===s()(y,ae)[ae]});c>-1&&o.splice(c,1),o.length===0&&delete n.emui[this.appId]}else delete n.emui[this.appId];delete window.emui.app}this.unmount({containerId:this.props.containerId}).catch(function(){})}function Et(y){if(s()(this,B)[B]===N.SSF)return this.props.history=$.N,!1;var n=(0,J.vF)("useParentHistory",!0);return n&&y?this.props.history=y:!n&&window!==window.parent&&(this.props.history=$.w),n}async function ft(){var y;if((y=window.emui)!==null&&y!==void 0&&y.__host)return window.emui.__host;if(!Q()){var n,o,c,R=(n=(o=window.parent)===null||o===void 0||(c=o.emui)===null||c===void 0?void 0:c.MicroAppHost)!==null&&n!==void 0?n:null;if(R)return R}if(s()(this,Se)[Se]){var z=new T.p({appLogger:this.logger}),be=await(0,he.E_)({promise:z.connect(),delay:1e3,retValue:!0});if(!be)return s()(this,B)[B]=N.SSF,z}return null}function ht(){var y=this;window.emui=window.emui||{},window.emui.getHost=function(){var n;return(n=y.props.host)!==null&&n!==void 0?n:null}}async function Ye(){s()(this,q)[q]=await(0,we.b)()}function lt(y){y.homeRoute&&(this.props.homeRoute=y.homeRoute),y.theme&&(this.props.theme=y.theme),y.hostUrl&&(this.props.hostUrl=y.hostUrl),y.manifestPath&&(this.props.manifestPath=y.manifestPath),y.containerId&&(this.props.containerId=y.containerId),s()(this,Xe)[Xe](y)}function xt(y){if(s()(this,B)[B]===N.SSF){this.props.history=$.N;return}var n=(0,J.vF)("useParentHistory",!0);n&&y.history?this.props.history=y.history:!n&&window!==window.parent&&(this.props.history=$.w),s()(this,et)[et](y,n)}function Fe(y,n){if(!(!y.initialRoute||n)){var o=typeof y.initialRoute=="string"?y.initialRoute:y.initialRoute.pathname;o&&this.props.history.push(o)}}async function Be(){await(0,de.yN)(),await s()(this,Je)[Je]()}function gt(){var y=this.getSessionStorageItem("instanceId")||"",n=this.getSessionStorageItem("userId")||"";(0,k.nE)({appId:this.appId,instanceId:y,userId:n}),this.onInit&&this.onInit(this.props)}function Ze(y){return y==="standalone"?(this.logger.info("Running in standalone mode \u2014 skipping host discovery"),s()(this,Ie)[Ie](),s()(this,Ge)[Ge]()):y==="embeddedWithoutHost"?(this.logger.info("embeddedWithoutHost enabled \u2014 skipping host discovery"),s()(this,Ie)[Ie]()):(this.logger.warn("Unable to discover host. Proceeding with app.config.json values. Host-provided parameters (history, theme, initialRoute) will not be available."),s()(this,Ie)[Ie]()),s()(this,Ke)[Ke](),{moduleId:this.appId}}async function $e(){var y="module",n=this.getObject(y);return s()(this,B)[B]!==N.SSF?n:(0,he.E_)({promise:n,delay:U,throwError:!0,errMsg:`Timed out waiting for module scripting object from host (${U}ms)`})}it.instance=void 0},"./lib/utils/micro-frontend/ssf-host.ts"(j,h,e){"use strict";e.d(h,{F:()=>x,Z:()=>S});var d=e("./node_modules/.pnpm/@elliemae+ssf-host@2.28.6_@elliemae+pui-diagnostics@3.12.5/node_modules/@elliemae/ssf-host/dist/esm/host.js"),u=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"),p=e("./lib/utils/logger.ts"),v=e("./lib/utils/app-config/config.ts"),g=null,x=function(){if(!g){var I=(0,p.t)();g=new d.P((0,v.vF)("appId"),{logger:I,analyticsObj:new u.j({logger:I})})}return g},S=function(I){g||(g=I)}},"./lib/utils/page-wake.ts"(j,h,e){"use strict";e.d(h,{v:()=>d});var d=function(u){var p=!1,v=function(){p||(p=!0,queueMicrotask(function(){p=!1,u()}))},g=function(){document.hidden||v()};return document.addEventListener("visibilitychange",g),window.addEventListener("pageshow",v),window.addEventListener("focus",v),function(){document.removeEventListener("visibilitychange",g),window.removeEventListener("pageshow",v),window.removeEventListener("focus",v)}}},"./lib/utils/session.ts"(j,h,e){"use strict";e.d(h,{lQ:()=>At,LC:()=>Tt,KB:()=>st,oB:()=>He,z3:()=>_t,lD:()=>Pt,n5:()=>Dt,Lw:()=>Rt});var d=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),u=e.n(d),p=function(t){window.emui.loginParams=Object.assign({redirectUri:new URL(window.location.href).href},t)},v=function(){if(!window.emui.loginParams){var t=JSON.parse(sessionStorage.getItem("user")||"{}"),l=t.client_id||"",m=t.scope||"";window.emui.loginParams={clientId:l,scope:m}}return window.emui.loginParams},g=e("./lib/utils/constants.ts"),x,S=function(){return sessionStorage.getItem(g.Ay.AUTHORIZATION)||""},I=function(t){sessionStorage.setItem(x.AUTHORIZATION,t)},E=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),s=e("./node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/axios.js"),b=e("./lib/utils/app-config/config.ts"),f=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),A=e.n(f),O;function L(t,l){var m=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!m){if(Array.isArray(t)||(m=P(t))||l&&t&&typeof t.length=="number"){m&&(t=m);var w=0,D=function(){};return{s:D,n:function(){return w>=t.length?{done:!0}:{done:!1,value:t[w++]}},e:function(X){throw X},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,H=!0,F=!1;return{s:function(){m=m.call(t)},n:function(){var X=m.next();return H=X.done,X},e:function(X){F=!0,M=X},f:function(){try{H||m.return==null||m.return()}finally{if(F)throw M}}}}function P(t,l){if(t){if(typeof t=="string")return T(t,l);var m={}.toString.call(t).slice(8,-1);return m==="Object"&&t.constructor&&(m=t.constructor.name),m==="Map"||m==="Set"?Array.from(t):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?T(t,l):void 0}}function T(t,l){(l==null||l>t.length)&&(l=t.length);for(var m=0,w=Array(l);m<l;m++)w[m]=t[m];return w}var k=function(t){return t},pe=function(t,l){var m,w;l=l||O,(m=l)!==null&&m!==void 0&&(w=m.interceptors)!==null&&w!==void 0&&w.response&&l.interceptors.response.eject(t)},de=function(t){var l=t.config.retryConfig;if(!l||l.retry===0||!t.response&&(l.currentRetryAttempt||0)>=l.noResponseRetries||!t.config.method||l.httpMethodsToRetry.indexOf(t.config.method.toUpperCase())<0)return!1;if(t.response&&t.response.status){var m=!1,w=L(l.statusCodesToRetry),D;try{for(w.s();!(D=w.n()).done;){var M=D.value,H=A()(M,2),F=H[0],X=H[1],re=t.response.status;if(re>=F&&re<=X){m=!0;break}}}catch(G){w.e(G)}finally{w.f()}if(!m)return!1}return l.currentRetryAttempt=l.currentRetryAttempt||0,!(l.currentRetryAttempt>=l.retry)},J=function(t){if(!t.config)return Promise.reject(t);var l=t.config.retryConfig||{};l.currentRetryAttempt=l.currentRetryAttempt||0,l.retry=l.retry===void 0||l.retry===null?3:l.retry,l.retryDelay=l.retryDelay||100,l.instance=l.instance||s.A,l.httpMethodsToRetry=l.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],l.noResponseRetries=l.noResponseRetries===void 0||l.noResponseRetries===null?2:l.noResponseRetries;var m=[[100,199],[429,429],[500,599]];l.statusCodesToRetry=l.statusCodesToRetry||m,t.config.retryConfig=l;var w=l.shouldRetry||de;if(!w(t))return Promise.reject(t);var D=new Promise(function(H){var F=(2**l.currentRetryAttempt-1)/2*1e3;t.config.retryConfig.currentRetryAttempt+=1,setTimeout(H,F)}),M=l.onRetryAttempt?Promise.resolve(l.onRetryAttempt(t)):Promise.resolve();return Promise.resolve().then(function(){return D}).then(function(){return M}).then(function(){return l.instance.request(t.config)})},$=function(t){var l,m;return t=t||s.A,(l=t)!==null&&l!==void 0&&(m=l.interceptors)!==null&&m!==void 0&&m.response?t.interceptors.response.use(k,J):null},te=function(t){return t&&t.config?t.config.retryConfig:null},Z=function(t){return{retry:3,noResponseRetries:2,retryDelay:100,httpMethodsToRetry:["GET","HEAD","OPTIONS","DELETE","PUT"],statusCodesToRetry:[[100,199],[429,429],[500,599]],instance:t,onRetryAttempt:function(l){var m=te(l);m&&m.currentRetryAttempt}}},Me=function(t){t!=null&&t.defaults&&(t.defaults.retryConfig=Z(t)),$(t)};const Te=Me;var ie=e("./lib/communication/http-client/props.ts"),se=function(t){return ie.K.resetUserIdleTime(),t},fe=401,oe=null,Le=function(t){oe=t},Re=function(t){return t},Ue=function(t){var l=(t||{}).response||{},m=l.status;if(m===fe){if(oe&&typeof oe=="function")return oe(t).then(function(w){var D=t.config;if(!(D!=null&&D.headers))throw t;return D.headers.Authorization=w,new Promise(function(M,H){s.A.request(D).then(M).catch(H)})}).catch(function(w){return Promise.reject(w)});if(ie.K.endSession)return ie.K.endSession(Object.assign({},v(),{skipRevoke:!0})).then(function(){return Promise.reject(t)}).catch(function(){return Promise.reject(t)})}return Promise.reject(t)},_e=e("./lib/utils/logrocket.ts"),we,he,Ee=null,ue=2*60*1e3,ne=function(){var t,l,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=m.baseURL,D=w===void 0?(0,b.vF)("serviceEndpoints.api",""):w,M=m.headers,H=M===void 0?{}:M,F=m.sendLogRocketSessionHeader,X=F===void 0?!1:F,re=((t=(0,_e.Te)())===null||t===void 0?void 0:t.sessionURL)||"",G=s.A.create({baseURL:D,headers:X&&re?Object.assign({},H,{"X-LogRocket-URL":re}):H});G!=null&&(l=G.defaults)!==null&&l!==void 0&&l.timeout&&(G.defaults.timeout=ue),Te(G);var ee=G?.interceptors||{},le=ee.request,Y=ee.response;return le&&le.use(se),Y&&Y.use(Re,Ue),G},Ne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=t.baseURL,m=t.headers,w=m===void 0?{}:m,D=t.sendLogRocketSessionHeader,M=D===void 0?!1:D,H=we(t,Ee);return ne(Object.assign({baseURL:l,headers:Object.assign({Authorization:he()},w),sendLogRocketSessionHeader:M},H))},We,U=async function(t){var l=t.code,m=t.clientId,w=t.scope,D=t.redirectUri,M=new URLSearchParams;M.append("grant_type","authorization_code"),M.append("client_id",m),M.append("redirect_uri",D),M.append("scope",w),M.append("code",l);var H=await We().post("/oauth2/v1/token",M),F=H.data;return{tokenType:F.token_type,accessToken:F.access_token}},Q=async function(t){var l=t.clientId,m=t.token,w=new URLSearchParams;w.append("token",m),w.append("client_id",l),await ne().post("/oauth2/v1/token/revocation",w)},N=async function(t){var l=t.clientId,m=t.accessToken,w=new URLSearchParams;w.append("token",m),w.append("client_id",l);var D=await ne().post("/oauth2/v1/token/introspection",w),M=D.data;return M},ae=e("./lib/utils/logger.ts"),B=e("./lib/utils/log-records.ts"),ge=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),Se=e("./lib/analytics/index.ts"),Oe,Ae,q=function(t){var l=t.instanceId,m=t.userId;Oe({instanceId:l,userId:m}),Ae({data:{event:"login"}})},xe=function(){(0,Se.e)({data:{event:"logout"}}),(0,ge.nE)({instanceId:"",userId:""})},Qe=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),ke,Ge,Ve,Ie,Je,qe,Xe,et,K,Ke,je,tt,it,De,at="serviceEndpoints.idp",Et=function(){return!!K()},ft=function(){var t=new URL(window.location.href),l=t.searchParams.get("code")||"",m=t.searchParams.get("error_code")||"";return t.search="",{code:l,idpErrorCode:m,redirectUri:t.href}},ht=function(t){var l=t.clientId,m=t.redirectUri,w=t.idpErrorCode,D=t.scope,M=t.responseType,H=t.instanceId,F=t.siteId,X=t.userId,re=t.disableRememberMe,G=t.useCompactIdpPage,ee=t.isSSO,le=je(at,""),Y=new URL("/authorize",le),Pe=Object.assign({client_id:l,redirect_uri:m,response_type:M??"",scope:D},H!==void 0&&{instance_id:String(H)},F!==void 0&&{site_id:String(F)},X!==void 0&&{user_id:X},re!==void 0&&{disable_remember_me:String(re)},G!==void 0&&{tpoifr:String(G)},ee!==void 0&&{is_sso:String(ee)}),Ce=new URLSearchParams(w?Object.assign({},Pe,{error_code:w}):Pe);Y.search=Ce.toString(),window.location.replace(Y.href)},Ye=async function(t){var l=t.clientId,m=t.redirectUri,w=t.responseType,D=t.scope,M=t.code,H=M===void 0?"":M,F=t.customLogoutUrl,X=F===void 0?"":F,re=t.skipRevoke,G=re===void 0?!1:re;try{var ee=S();sessionStorage.clear();var le=ee?ee.split(" ")[1]:"";G||await Q({clientId:l,token:le}),xe(),(0,_e.K3)("logout"),(0,Qe.E3)(),(0,ge.nE)({instanceId:"",userId:""});var Y;if(X)Y=new URL("/",X);else{var Pe=(0,b.vF)(at,"");Y=new URL("/authorize",Pe);var Ce=Object.assign({client_id:l,redirect_uri:m||""},H&&{error_code:H},{response_type:w||"",scope:D}),ct=new URLSearchParams(Ce);Y.search=ct.toString()}window.location.replace(Y.href)}catch(vt){var ze;(ze=(0,ae.t)())===null||ze===void 0||ze.error(Object.assign({},B.V.LOGOUT_FAILED,{exception:vt}))}},lt=async function(t){var l=t.code,m=t.redirectUri,w=t.clientId,D=t.scope,M=t.responseType,H=t.isConsumerUser;try{var F=await Ve({code:l,clientId:w,scope:D,redirectUri:m}),X=F.tokenType,re=F.accessToken;it({clientId:w,scope:D,responseType:M,redirectUri:m});var G=`${X} ${re}`;Ke(G);var ee=await Ie({clientId:w,accessToken:re});sessionStorage.setItem("user",JSON.stringify(ee));var le=ee.encompass_instance_id,Y=ee.user_name,Pe=ee.bearer_token,Ce=ee.user_key,ct={bearerToken:Pe,realm:le,userName:Y,sessionId:Pe?.replace(`${le} `,"")};sessionStorage.setItem("cred",JSON.stringify(ct)),sessionStorage.setItem("instanceId",le),sessionStorage.setItem("userId",Y),qe({instanceId:le,userId:Y}),ke({instanceId:le,userId:Y});var ze={name:Y,instanceId:le};Xe(Ce,ze),et("login",ze);var vt=await Je({userName:Y,isConsumerUser:H});sessionStorage.setItem("userSettings",JSON.stringify(vt));var St=new URL(m).pathname;Ge.replace(St)}catch(nt){var mt,yt,pt,Ct=nt==null||(mt=nt.response)===null||mt===void 0||(yt=mt.data)===null||yt===void 0?void 0:yt.code;await Ye({clientId:w,redirectUri:m,code:Ct,scope:D,responseType:M}),(pt=De())===null||pt===void 0||pt.error(Object.assign({},tt.LOGIN_FAILED,{exception:nt}))}},xt=async function(t){var l=t.clientId,m=t.scope,w=t.responseType,D=t.isConsumerUser,M=t.instanceId,H=t.siteId,F=t.userId,X=t.disableRememberMe,re=t.useCompactIdpPage,G=t.isSSO,ee=ft(),le=ee.code,Y=ee.idpErrorCode,Pe=ee.redirectUri,Ce={clientId:l,scope:m,responseType:w,redirectUri:Pe,code:le,idpErrorCode:Y,isConsumerUser:D,instanceId:M,siteId:H,userId:F,disableRememberMe:X,useCompactIdpPage:re,isSSO:G};return le?(await lt(Ce),{authorized:!0}):(ht(Ce),{authorized:!1})},Fe=e("./lib/utils/page-wake.ts"),Be,gt,Ze=Date.now(),$e=[],y=[],n=[],o=["click","scroll","keypress","touchstart"],c=!1,R,z,be,He=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c=!1,be=null,Ze=Date.now(),Promise.resolve().then(function(){n.forEach(function(l){return l(t)})}).catch(function(){})},st=async function(){var t=v();try{if(He(!0),t!=null&&t.clientId){var l=S();if(!l)throw new Error("Authorization token not found to extend session");var m=l.split(" ")[1];await N({clientId:t.clientId,accessToken:m})}}catch(D){var w;(w=(0,ae.t)())===null||w===void 0||w.error(Object.assign({},B.V.SESSION_RENEWAL_FAILED,{exception:D})),await Ye(Object.assign({},t,{skipRevoke:!0}))}},ot=u()(st,g.eE,{leading:!0}),dt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,b.vF)("sessionTimeoutWarnInterval")||g.J2.WARN;return Date.now()-Ze>t},ut=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,b.vF)("sessionTimeoutInterval")||g.J2.EXPIRY;return Date.now()-Ze>t},Ot=function(){c=!0,be=Date.now(),Promise.resolve().then(function(){$e.forEach(function(t){return t(be)}),o.forEach(function(t){document.removeEventListener(t,ot)})}).catch(function(){})},jt=function(){return Promise.resolve().then(function(){y.forEach(function(t){return t()})})},It=function(){o.forEach(function(t){document.removeEventListener(t,ot)})},_t=function(){var t;It(),(t=z)===null||t===void 0||t(),z=void 0,clearInterval(R),$e.length=0,y.length=0},wt=function(){ut()?jt().then(function(){_t()}).catch(function(){}):!c&&dt()&&Ot()},bt=function(t,l){var m=t.findIndex(function(w){return w===l});m>-1&&t.splice(m,1)},At=function(){o.forEach(function(t){document.addEventListener(t,ot)})},Tt=function(){var t;clearInterval(R),(t=z)===null||t===void 0||t(),It(),At(),z=(0,Fe.v)(wt),R=setInterval(wt,1e3)},Rt=function(t){return $e.push(t),bt.bind(null,$e,t)},Dt=function(t){return y.push(t),bt.bind(null,y,t)},Pt=function(t){return n.push(t),bt.bind(null,n,t)},Lt=function(t,l){if(!t)return function(){};var m=Be(l,gt,{leading:!0});return o.forEach(function(w){return t.addEventListener(w,m)}),function(){o.forEach(function(w){return t.removeEventListener(w,l)}),o.forEach(function(w){return t.removeEventListener(w,m)})}}},"./lib/utils/window.ts"(j,h,e){"use strict";e.d(h,{D:()=>x,M5:()=>v,OX:()=>S,zk:()=>p});var d=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),u=e.n(d),p=function(){try{return window.parent.document,window.parent}catch{return window}},v=function(){return{width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},g=function(I){return Number(I?.replace("px",""))},x=function(){var I=v(),E=I.width,s=(0,d.getDefaultTheme)(),b=s.breakpoints;return E<=g(b.small)?"small":E<=g(b.medium)?"medium":E<=g(b.xsmall)?"xsmall":"large"},S=function(){var I,E,s,b,f=((I=window)===null||I===void 0||(E=I.emui)===null||E===void 0?void 0:E._ASSET_PATH)||"latest/";if(!((s=window.emui)!==null&&s!==void 0&&s.version))return f;var A=(b=window.emui)===null||b===void 0?void 0:b.version.match(/^(?:\d+\.\d+)*/g);return A&&A[0]?f.replace("latest/",`${A[0]}/`):f}},"./lib/view/error-toast/index.tsx"(j,h,e){"use strict";e.d(h,{Q:()=>f});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),u=e.n(d),p=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),v=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/DSToast.js"),g=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js"),x=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),S=e("./lib/data/useAppDispatch.ts"),I=e("./lib/data/useAppSelector.ts"),E=e("./lib/data/error/index.ts"),s=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),b=["position","messageTitle","type","description","messageText","messageComponent"],f=(0,p.memo)(function(A){var O=(0,I.G)(function(P){return P?.error}),L=(0,S.j)();return(0,p.useEffect)(function(){if(O&&(O!=null&&O.description||O!=null&&O.messageText)){var P=Object.assign({position:x.xJ.TOP_RIGHT,messageTitle:"Error",type:x.Ck.ERROR},A,O),T=P.position,k=P.messageTitle,pe=P.type,de=P.description,J=P.messageText,$=P.messageComponent,te=u()(P,b),Z=de||J;Z&&(0,g.o)({messageText:Z,messageTitle:k,type:pe,messageComponent:$},Object.assign({position:T},te)),L(E.o.clear())}},[O,A,L]),(0,s.jsx)(v.P_,Object.assign({},A))})},"./lib/view/live-message/index.tsx"(j,h,e){"use strict";e.d(h,{I:()=>g});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),u=e.n(d),p=e("./node_modules/.pnpm/react-aria-live@2.0.5_react@18.3.1/node_modules/react-aria-live/lib/index.js"),v=e("./lib/data/useAppSelector.ts"),g=function(){var x=(0,v.G)(function(I){var E;return(E=I.liveMessage)===null||E===void 0?void 0:E.message}),S=(0,v.G)(function(I){var E;return(E=I.liveMessage)===null||E===void 0?void 0:E.ariaLive});return u()(p.Iu,{message:x,"aria-live":S})};g.displayName="LiveMessage"},"./lib/view/modals/session-expiry/index.tsx"(j,h,e){"use strict";e.d(h,{_:()=>Te});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),u=e.n(d),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),v=e.n(p),g=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),x=e("./node_modules/.pnpm/@elliemae+ds-button-v2@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV2/DSButtonV2.js"),S=e("./node_modules/.pnpm/@elliemae+ds-icons@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/WarningCircle.js"),I=e("./node_modules/.pnpm/@elliemae+ds-hooks-focus-trap@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-hooks-focus-trap/dist/esm/DSHookOnFirstFocusIn.js"),E=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/DSDialog.js"),s=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/parts/DSDialogBody/DSDialogBody.js"),b=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.js"),f=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/parts/DSDialogPrimaryMessage/DSDialogPrimaryMessage.js"),A=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/parts/DSDialogSecondaryMessage/DSDialogSecondaryMessage.js"),O=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/parts/DSDialogSeparator/DSDialogSeparator.js"),L=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/parts/DSDialogFooter/DSDialogFooter.js"),P=e("./lib/data/useAppDispatch.ts"),T=e("./lib/data/logout/actions.ts"),k=e("./lib/utils/session.ts"),pe=e("./lib/utils/constants.ts"),de=e("./lib/utils/app-config/config.ts"),J=e("./lib/utils/page-wake.ts"),$=function(ie){var se=Math.max(0,Math.floor(ie/1e3)),fe=Math.floor(se/60),oe=se%60;return`${String(fe).padStart(2,"0")}:${String(oe).padStart(2,"0")}`},te=function(ie){var se=(0,g.useState)(),fe=v()(se,2),oe=fe[0],Le=fe[1];return(0,g.useEffect)(function(){var Re=(0,de.vF)("sessionTimeoutWarnInterval"),Ue=(0,de.vF)("sessionTimeoutInterval"),_e=Re?parseFloat(Re):pe.J2.WARN,we=Ue?parseFloat(Ue):pe.J2.EXPIRY,he=ie+(we-_e),Ee=function(){Le($(he-Date.now()))};Ee();var ue=setInterval(Ee,1e3),ne=(0,J.v)(Ee);return function(){clearInterval(ue),ne()}},[ie]),oe},Z,Me,Te=(0,g.memo)(function(ie){var se=ie.open,fe=ie.warningNotifiedAt,oe=fe===void 0?0:fe,Le=(0,g.useState)(se),Re=v()(Le,2),Ue=Re[0],_e=Re[1],we=te(oe),he=(0,P.j)(),Ee=(0,g.useRef)(null),ue=(0,g.useRef)(null),ne=(0,I.r)({firstElementRef:Ee,lastElementRef:ue});(0,g.useEffect)(function(){_e(se)},[se]);var Ne=async function(){_e(!1),await(0,k.KB)(),(0,k.lQ)(),he(T.r.cancel())},We=function(){_e(!1),he(T.r.confirm())};return we?u()(E.O,{onKeyDown:ne,isOpen:Ue,size:"small"},void 0,u()(s.u,{p:"s"},void 0,u()(b.D,{},void 0,u()(S.A,{size:"xl",color:["warning","900"]}),u()(f.T,{},void 0,`Your session will expire in ${we}`),Z||(Z=u()(A.z,{},void 0,"Please logout or reset your session")))),Me||(Me=u()(O.Z,{})),u()(L.r,{},void 0,u()(x.e,{innerRef:Ee,buttonType:"outline",onClick:We},void 0,"Logout"),u()(x.e,{innerRef:ue,onClick:function(){Ne().catch(function(){})}},void 0,"Reset"))):null})},"./lib/view/session-timeout/index.tsx"(j,h,e){"use strict";e.d(h,{S:()=>b});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),u=e.n(d),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),v=e.n(p),g=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),x=e("./lib/data/useAppDispatch.ts"),S=e("./lib/data/logout/actions.ts"),I=e("./lib/utils/session.ts"),E=e("./lib/view/modals/session-expiry/index.tsx"),s=e("./lib/communication/http-client/props.ts"),b=function(){var f=(0,x.j)(),A=(0,g.useState)(!1),O=v()(A,2),L=O[0],P=O[1],T=(0,g.useState)(),k=v()(T,2),pe=k[0],de=k[1];return(0,g.useEffect)(function(){s.K.resetUserIdleTime=I.oB,(0,I.LC)();var J=(0,I.Lw)(function(Z){Z&&(de(Z),P(!0))}),$=(0,I.lD)(function(Z){Z===!0&&P(!1)}),te=(0,I.n5)(function(){f(S.r.confirm()),P(!1)});return function(){J(),$(),te(),(0,I.z3)()}},[f]),u()("div",{},void 0,L&&u()(E._,{open:!0,warningNotifiedAt:pe}))};b.displayName="SessionTimeout"},"./lib/view/wait-message/index.tsx"(j,h,e){"use strict";e.d(h,{j:()=>de});var d=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),u=e.n(d),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),v=e.n(p),g=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),x=e.n(g),S=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),I=e("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.cjs.js"),E=e("./node_modules/.pnpm/@elliemae+ds-backdrop@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-backdrop/dist/esm/Backdrop.js"),s=e("./node_modules/.pnpm/@elliemae+ds-circular-progress-indicator@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-circular-progress-indicator/dist/esm/v2/DSCircularIndeterminateIndicator.js"),b=e("./lib/data/useAppSelector.ts"),f=e("./lib/view/wait-message/use-html-wait-message.tsx"),A=e("./lib/analytics/index.ts"),O=function(){return(0,A.e)({data:{event:"pageInteractionEnabled"}})},L=function(){return(0,A.e)({data:{event:"pageInteractionDisabled"}})},P=e("./lib/utils/logrocket.ts"),T=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),k=["size","color","showText","withTooltip","tooltipStartPlacementPreference"],pe=(0,I.default)(s.p).withConfig({componentId:"sc-3aqsjr-0"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"]),de=(0,S.memo)(function(J){var $=J.size,te=$===void 0?"xl":$,Z=J.color,Me=Z===void 0?"light":Z,Te=J.showText,ie=Te===void 0?!0:Te,se=J.withTooltip,fe=se===void 0?!1:se,oe=J.tooltipStartPlacementPreference,Le=oe===void 0?"center":oe,Re=x()(J,k),Ue=(0,S.useContext)(I.ThemeContext),_e=(0,S.useRef)(!1),we=(0,S.useState)(!1),he=v()(we,2),Ee=he[0],ue=he[1],ne=(0,b.G)(function(U){var Q;return(Q=U.waitMessage)===null||Q===void 0?void 0:Q.isOpen}),Ne=(0,b.G)(function(U){var Q;return(Q=U.waitMessage)===null||Q===void 0?void 0:Q.delay});_e.current=ne??!1;var We=(0,b.G)(function(U){var Q;return(Q=U.waitMessage)===null||Q===void 0?void 0:Q.message});return(0,S.useEffect)(function(){setTimeout(function(){ne&&_e.current&&(ue(!0),O(),(0,P.K3)("wait-spinner-start"))},Ne?1e3:0),ne||(ue(!1),L(),(0,P.K3)("wait-spinner-end"))},[Ne,ne]),(0,f.t)(ne!==null),Ee?(0,T.jsxs)(T.Fragment,{children:[u()(E.Ay,{zIndex:Ue.zIndex.loader}),(0,T.jsx)(pe,Object.assign({id:"em-loading",size:te,color:Me,showText:ie,withTooltip:fe,tooltipStartPlacementPreference:Le},Re,{text:We}))]}):null})},"./lib/view/wait-message/use-html-wait-message.tsx"(j,h,e){"use strict";e.d(h,{t:()=>u});var d=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),u=function(p){(0,d.useEffect)(function(){var v=document.getElementById("em-wait-message");v&&p&&v.remove()},[p])}},"./storybook-config-entry.js"(j,h,e){"use strict";var d=e("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),u=e.n(d),p=e("./node_modules/.pnpm/@storybook+preview-web@6.5.16/node_modules/@storybook/preview-web/dist/cjs/index.js"),v=e("./node_modules/.pnpm/@storybook+store@6.5.16/node_modules/@storybook/store/dist/cjs/index.js"),g=e("./node_modules/.pnpm/@storybook+client-api@6.5.16/node_modules/@storybook/client-api/dist/cjs/index.js"),x=e("./node_modules/.pnpm/@storybook+addons@6.5.16/node_modules/@storybook/addons/dist/cjs/public_api.js"),S=e("./node_modules/.pnpm/@storybook+channel-postmessage@6.5.16/node_modules/@storybook/channel-postmessage/dist/cjs/index.js"),I=e("./node_modules/.pnpm/@storybook+channel-websocket@6.5.16/node_modules/@storybook/channel-websocket/dist/cjs/index.js"),E=[async function(P){if(/^\.[\\/](?:lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(mdx|tsx|ts|jsx|js))$/.exec(P)){var T=P.substring(6);return e("./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$")("./"+T)}}];async function s(P){for(var T=0;T<E.length;T++){var k=await E[T](P);if(k)return k}}var b=u().SERVER_CHANNEL_URL,f=function(){return(0,v.composeConfigs)([e("./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.29.7_@storybook+builder-webpack5@6.5.16_@storybook+mana_lctauyay7dg6nys5i6cagmqqp4/node_modules/@storybook/react/dist/esm/client/docs/config.js"),e("./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.29.7_@storybook+builder-webpack5@6.5.16_@storybook+mana_lctauyay7dg6nys5i6cagmqqp4/node_modules/@storybook/react/dist/esm/client/preview/config.js"),e("./node_modules/.pnpm/@storybook+addon-docs@6.5.16_@babel+core@7.29.7_eslint@8.57.1_typescript@5.9.3_webpack-cli@5.1.4_webpack@5.107.2/node_modules/@storybook/addon-docs/preview.js"),e("./node_modules/.pnpm/@storybook+addon-actions@6.5.16/node_modules/@storybook/addon-actions/preview.js"),e("./node_modules/.pnpm/@storybook+addon-backgrounds@6.5.16/node_modules/@storybook/addon-backgrounds/preview.js"),e("./node_modules/.pnpm/@storybook+addon-measure@6.5.16/node_modules/@storybook/addon-measure/preview.js"),e("./node_modules/.pnpm/@storybook+addon-outline@6.5.16/node_modules/@storybook/addon-outline/preview.js"),e("./node_modules/.pnpm/@storybook+addon-links@6.5.16/node_modules/@storybook/addon-links/preview.js"),e("./node_modules/.pnpm/@storybook+addon-interactions@6.5.16_eslint@8.57.1_typescript@5.9.3_webpack-cli@5.1.4/node_modules/@storybook/addon-interactions/preview.js"),e("./node_modules/.pnpm/@storybook+addon-a11y@6.5.16/node_modules/@storybook/addon-a11y/preview.js"),e("./.storybook/preview.js")])},A=(0,S.Ay)({page:"preview"});if(x.addons.setChannel(A),b){var O=(0,I.Ay)({url:b});x.addons.setServerChannel(O),window.__STORYBOOK_SERVER_CHANNEL__=O}var L=new p.PreviewWeb;window.__STORYBOOK_PREVIEW__=L,window.__STORYBOOK_STORY_STORE__=L.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=A,window.__STORYBOOK_CLIENT_API__=new g.ClientApi({storyStore:L.storyStore}),L.initialize({importFn:s,getProjectAnnotations:f})},"./node_modules/.pnpm/css-loader@5.2.7_webpack@5.107.2/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./lib/utils/storybook/preview.css"(j,h,e){"use strict";e.d(h,{A:()=>g});var d=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.107.2/node_modules/css-loader/dist/runtime/api.js"),u=e.n(d),p=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.107.2/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./node_modules/.pnpm/@elliemae+ds-basic@3.61.8/node_modules/@elliemae/ds-basic/dist/css/dimsum.css"),v=u()(function(x){return x[1]});v.i(p.A),v.push([j.id,`
|
|
5
|
+
`,""]);const g=v},"@elliemae/pui-diagnostics"(j){"use strict";j.exports=emuiDiagnostics},"?6b64"(){}},j=>{var h=d=>j(j.s=d);j.O(0,[9478],()=>(h("./node_modules/.pnpm/@storybook+core-client@6.5.16_typescript@5.9.3_webpack@4.47.0/node_modules/@storybook/core-client/dist/esm/globals/polyfills.js"),h("./node_modules/.pnpm/@storybook+core-client@6.5.16_typescript@5.9.3_webpack@4.47.0/node_modules/@storybook/core-client/dist/esm/globals/globals.js"),h("./storybook-config-entry.js")));var e=j.O()}]);
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[792],{23841(i,t,o){"use strict";var p=o(59443),m=o(96778),v=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,f=(e,a,r)=>a in e?v(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,b=(e,a)=>{for(var r in a||(a={}))s.call(a,r)&&f(e,r,a[r]);if(l)for(var r of l(a))_.call(a,r)&&f(e,r,a[r]);return e},d=(e,a)=>{var r={};for(var n in e)s.call(e,n)&&a.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&l)for(var n of l(e))a.indexOf(n)<0&&_.call(e,n)&&(r[n]=e[n]);return r};const h=e=>{var a=e,{base:r="light",brandTitle:n="Platform UI Components"}=a,u=d(a,["base","brandTitle"]);return(0,m.vt)(b({base:r,brandTitle:`${n} v5.42.
|
|
1
|
+
(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[792],{23841(i,t,o){"use strict";var p=o(59443),m=o(96778),v=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,f=(e,a,r)=>a in e?v(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,b=(e,a)=>{for(var r in a||(a={}))s.call(a,r)&&f(e,r,a[r]);if(l)for(var r of l(a))_.call(a,r)&&f(e,r,a[r]);return e},d=(e,a)=>{var r={};for(var n in e)s.call(e,n)&&a.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&l)for(var n of l(e))a.indexOf(n)<0&&_.call(e,n)&&(r[n]=e[n]);return r};const h=e=>{var a=e,{base:r="light",brandTitle:n="Platform UI Components"}=a,u=d(a,["base","brandTitle"]);return(0,m.vt)(b({base:r,brandTitle:`${n} v5.42.4`},u))};(e=>{p.MC.setConfig({panelPosition:"bottom",theme:h(e)})})({brandTitle:"Application SDK",brandUrl:"https://git.elliemae.io/platform-ui/pui-app-sdk.git"})},22179(){}},i=>{var t=p=>i(i.s=p);i.O(0,[911],()=>(t(46961),t(23841),t(96941),t(52484),t(72247),t(40652),t(41420),t(48510),t(75963),t(4547),t(15869),t(74157),t(28061),t(99789),t(86009),t(29923)));var o=i.O()}]);
|
|
Binary file
|
|
Binary file
|
package/demo/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1784325058743,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"pnpm","version":"8.15.9"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":false,"reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true,"compilerOptions":{"allowSyntheticDefaultImports":false,"esModuleInterop":false}}},"features":{"fastRefresh":true,"storyStoreV7":true},"language":"javascript","storybookPackages":{},"framework":{"options":{"fastRefresh":true,"strictMode":true,"legacyRootApi":true}},"addons":{"@storybook/addon-docs":{"options":{"sourceLoaderOptions":{"injectStoryParameters":false}},"version":"6.5.16"},"@storybook/addon-essentials":{"options":{"docs":false},"version":"6.5.16"},"@storybook/addon-storysource":{"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-events":{"version":"6.2.9"},"@storybook/addon-interactions":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"},"storybook-addon-turbo-build":{"options":{"optimizationLevel":2,"esbuildMinifyOptions":{"target":"es2022"}},"version":"1.1.0"}}}
|
package/demo/{runtime~main.d70e75f8.iframe.bundle.js → runtime~main.79f1fd4d.iframe.bundle.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var v={},w={};function t(e){var o=w[e];if(o!==void 0)return o.exports;var i=w[e]={id:e,loaded:!1,exports:{}};return v[e].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.m=v,(()=>{var e=[];t.O=(o,i,s,n)=>{if(i){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[i,s,n];return}for(var r=1/0,a=0;a<e.length;a++){for(var[i,s,n]=e[a],
|
|
2
|
-
(`+b+": "+p+")",d.name="ChunkLoadError",d.type=b,d.request=p,a[1](d)}};t.l(l,
|
|
1
|
+
(()=>{"use strict";var v={},w={};function t(e){var o=w[e];if(o!==void 0)return o.exports;var i=w[e]={id:e,loaded:!1,exports:{}};return v[e].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.m=v,(()=>{var e=[];t.O=(o,i,s,n)=>{if(i){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[i,s,n];return}for(var r=1/0,a=0;a<e.length;a++){for(var[i,s,n]=e[a],c=!0,d=0;d<i.length;d++)(n&!1||r>=n)&&Object.keys(t.O).every(u=>t.O[u](i[d]))?i.splice(d--,1):(c=!1,n<r&&(r=n));if(c){e.splice(a--,1);var l=s();l!==void 0&&(o=l)}}return o}})(),t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},(()=>{var e=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,o;t.t=function(i,s){if(s&1&&(i=this(i)),s&8||typeof i=="object"&&i&&(s&4&&i.__esModule||s&16&&typeof i.then=="function"))return i;var n=Object.create(null);t.r(n);var a={};o=o||[null,e({}),e([]),e(e)];for(var r=s&2&&i;(typeof r=="object"||typeof r=="function")&&!~o.indexOf(r);r=e(r))Object.getOwnPropertyNames(r).forEach(c=>a[c]=()=>i[c]);return a.default=()=>i,t.d(n,a),n}})(),t.d=(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((o,i)=>(t.f[i](e,o),o),[])),t.u=e=>""+({77:"view-fields-date-range-picker-index-stories",214:"view-live-message-index-stories",999:"view-breakpoint-index-stories",1491:"view-fields-large-text-box-index-stories",1764:"view-fields-input-text-index-stories",1800:"view-error-toast-index-stories",2129:"view-fields-date-time-picker-index-stories",2327:"view-modals-session-expiry-index-stories",2382:"view-fields-check-box-index-stories",2487:"view-fields-form-layout-block-item-index-stories",2758:"view-modals-navigation-prompt-index-stories",2977:"view-fields-radio-group-index-stories",3071:"view-fields-autocomplete-advanced-autocomplete-stories",3086:"view-fields-combo-box-v3-index-stories",3813:"view-fields-form-item-layout-index-stories",4531:"view-wait-message-index-stories",4580:"view-form-usecases-stories",5055:"view-fields-radio-set-value-stories",5410:"view-fields-check-box-set-value-stories",5541:"view-modals-error-index-stories",5662:"view-session-timeout-index-stories",5711:"view-intro-stories-mdx",5936:"view-fields-toggle-index-stories",5974:"view-fields-masked-input-text-with-money-mask-stories",6055:"view-fields-date-input-index-stories",6184:"view-fields-combo-box-index-stories",6220:"view-form-index-stories",6531:"view-fields-radio-index-stories",6729:"view-fields-input-mask-index-stories",7813:"view-fields-date-picker-index-stories",8048:"view-fields-autocomplete-index-stories",8749:"view-fields-text-box-index-stories",8980:"view-fields-masked-input-text-with-percentage-mask-stories",9825:"view-fields-autocomplete-async-suggestions-autocomplete-stories"}[e]||e)+"."+{77:"27b50896",102:"6de2b9d4",214:"f037b663",590:"6097b69e",721:"32c21624",725:"eeb27800",946:"31c5e6f9",999:"1f39106e",1156:"50ee19de",1281:"e464eaf4",1491:"ea3fa4c8",1764:"4bafe0de",1791:"36e51ad3",1800:"f8ee1574",2129:"ff1194eb",2165:"b12a1ee3",2327:"b309326b",2382:"2722117d",2487:"917da23d",2758:"0c620a4c",2977:"b8b1e1ea",3071:"97e9e941",3085:"4eefe13f",3086:"e8175b5b",3804:"2bdf5819",3805:"13247593",3813:"90cc02e8",3923:"d9fd4b84",4531:"34230db5",4580:"1af3346f",4820:"ffcce092",5055:"529b0445",5058:"626ae567",5410:"4c5959e0",5541:"894f0af7",5600:"5be4359b",5662:"05ce854e",5711:"f001a79c",5936:"a65c6baf",5951:"efbb8ad9",5974:"b8f688b8",6039:"aaaa439c",6055:"022d1e5b",6184:"31e6d671",6220:"9e130d19",6285:"3cfeb3a6",6316:"d15dc233",6469:"dffb8fe5",6531:"d4d637de",6699:"eeb02efb",6729:"90aeacc0",7584:"9954cd44",7813:"adcf1ec2",8048:"00ef6bbb",8654:"29e850ac",8749:"78f2208d",8980:"dd571d9e",9051:"b19ceb5c",9576:"77449673",9634:"c9260b04",9825:"1ca5055e",9888:"bfe9152c"}[e]+".iframe.bundle.js",t.miniCssF=e=>{},t.hmd=e=>(e=Object.create(e),e.children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="@elliemae/pui-app-sdk:";t.l=(i,s,n,a)=>{if(e[i]){e[i].push(s);return}var r,c;if(n!==void 0)for(var d=document.getElementsByTagName("script"),l=0;l<d.length;l++){var f=d[l];if(f.getAttribute("src")==i||f.getAttribute("data-webpack")==o+n){r=f;break}}r||(c=!0,r=document.createElement("script"),r.charset="utf-8",t.nc&&r.setAttribute("nonce",t.nc),r.setAttribute("data-webpack",o+n),r.src=i),e[i]=[s];var b=(m,u)=>{r.onerror=r.onload=null,clearTimeout(p);var x=e[i];if(delete e[i],r.parentNode&&r.parentNode.removeChild(r),x&&x.forEach(g=>g(u)),m)return m(u)},p=setTimeout(b.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=b.bind(null,r.onerror),r.onload=b.bind(null,r.onload),c&&document.head.appendChild(r)}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},t.p="",(()=>{var e={5354:0};t.f.j=(s,n)=>{var a=t.o(e,s)?e[s]:void 0;if(a!==0)if(a)n.push(a[2]);else if(s!=5354){var r=new Promise((f,b)=>a=e[s]=[f,b]);n.push(a[2]=r);var c=t.p+t.u(s),d=new Error,l=f=>{if(t.o(e,s)&&(a=e[s],a!==0&&(e[s]=void 0),a)){var b=f&&(f.type==="load"?"missing":f.type),p=f&&f.target&&f.target.src;d.message="Loading chunk "+s+` failed.
|
|
2
|
+
(`+b+": "+p+")",d.name="ChunkLoadError",d.type=b,d.request=p,a[1](d)}};t.l(c,l,"chunk-"+s,s)}else e[s]=0},t.O.j=s=>e[s]===0;var o=(s,n)=>{var[a,r,c]=n,d,l,f=0;if(a.some(p=>e[p]!==0)){for(d in r)t.o(r,d)&&(t.m[d]=r[d]);if(c)var b=c(t)}for(s&&s(n);f<a.length;f++)l=a[f],t.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return t.O(b)},i=globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[];i.forEach(o.bind(null,0)),i.push=o.bind(null,i.push.bind(i))})(),t.nc=void 0})();
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var page_wake_exports = {};
|
|
20
|
+
__export(page_wake_exports, {
|
|
21
|
+
subscribeToPageWake: () => subscribeToPageWake
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(page_wake_exports);
|
|
24
|
+
const subscribeToPageWake = (callback) => {
|
|
25
|
+
let scheduled = false;
|
|
26
|
+
const runCoalesced = () => {
|
|
27
|
+
if (scheduled) return;
|
|
28
|
+
scheduled = true;
|
|
29
|
+
queueMicrotask(() => {
|
|
30
|
+
scheduled = false;
|
|
31
|
+
callback();
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const onVisibilityChange = () => {
|
|
35
|
+
if (!document.hidden) {
|
|
36
|
+
runCoalesced();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
40
|
+
window.addEventListener("pageshow", runCoalesced);
|
|
41
|
+
window.addEventListener("focus", runCoalesced);
|
|
42
|
+
return () => {
|
|
43
|
+
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
44
|
+
window.removeEventListener("pageshow", runCoalesced);
|
|
45
|
+
window.removeEventListener("focus", runCoalesced);
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -38,6 +38,7 @@ var import_log_records = require("./log-records.js");
|
|
|
38
38
|
var import_auth2 = require("./auth/index.js");
|
|
39
39
|
var import_config = require("./app-config/config.js");
|
|
40
40
|
var import_constants = require("./constants.js");
|
|
41
|
+
var import_page_wake = require("./page-wake.js");
|
|
41
42
|
let lastUserActivityTimeStamp = Date.now();
|
|
42
43
|
const warnListeners = [];
|
|
43
44
|
const expiryListeners = [];
|
|
@@ -45,6 +46,7 @@ const resetListeners = [];
|
|
|
45
46
|
const userInteractionEvents = ["click", "scroll", "keypress", "touchstart"];
|
|
46
47
|
let sessionExpiryWarningNotified = false;
|
|
47
48
|
let timerHandle;
|
|
49
|
+
let removeWakeListener;
|
|
48
50
|
let sessionExpiryWarningNotifiedAt;
|
|
49
51
|
const resetUserIdleTime = (resetWarningModal = false) => {
|
|
50
52
|
sessionExpiryWarningNotified = false;
|
|
@@ -99,10 +101,15 @@ const notifySessionExpiryWarning = () => {
|
|
|
99
101
|
const notifySessionExpiry = () => Promise.resolve().then(() => {
|
|
100
102
|
expiryListeners.forEach((listener) => listener());
|
|
101
103
|
});
|
|
102
|
-
const
|
|
104
|
+
const removeActivityEventListeners = () => {
|
|
103
105
|
userInteractionEvents.forEach((eventType) => {
|
|
104
106
|
document.removeEventListener(eventType, renewSessionAtInterval);
|
|
105
107
|
});
|
|
108
|
+
};
|
|
109
|
+
const stopSessionMonitoring = () => {
|
|
110
|
+
removeActivityEventListeners();
|
|
111
|
+
removeWakeListener?.();
|
|
112
|
+
removeWakeListener = void 0;
|
|
106
113
|
clearInterval(timerHandle);
|
|
107
114
|
warnListeners.length = 0;
|
|
108
115
|
expiryListeners.length = 0;
|
|
@@ -128,7 +135,11 @@ const addEventListeners = () => {
|
|
|
128
135
|
});
|
|
129
136
|
};
|
|
130
137
|
const initSessionMonitoring = () => {
|
|
138
|
+
clearInterval(timerHandle);
|
|
139
|
+
removeWakeListener?.();
|
|
140
|
+
removeActivityEventListeners();
|
|
131
141
|
addEventListeners();
|
|
142
|
+
removeWakeListener = (0, import_page_wake.subscribeToPageWake)(monitorSessionEvents);
|
|
132
143
|
timerHandle = setInterval(monitorSessionEvents, 1e3);
|
|
133
144
|
};
|
|
134
145
|
const subscribeToSessionExpiryWarning = (onSessionExpiryWarn) => {
|
|
@@ -22,36 +22,39 @@ __export(customHooks_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(customHooks_exports);
|
|
24
24
|
var import_react = require("react");
|
|
25
|
-
var import_date_fns = require("date-fns");
|
|
26
25
|
var import_constants = require("../../../utils/constants.js");
|
|
27
26
|
var import_config = require("../../../utils/app-config/config.js");
|
|
27
|
+
var import_page_wake = require("../../../utils/page-wake.js");
|
|
28
|
+
const formatTimeLeft = (msLeft) => {
|
|
29
|
+
const totalSeconds = Math.max(0, Math.floor(msLeft / 1e3));
|
|
30
|
+
const minutes = Math.floor(totalSeconds / 60);
|
|
31
|
+
const seconds = totalSeconds % 60;
|
|
32
|
+
return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(
|
|
33
|
+
2,
|
|
34
|
+
"0"
|
|
35
|
+
)}`;
|
|
36
|
+
};
|
|
28
37
|
const useTrackSessionExpiry = (warningNotifiedAt) => {
|
|
29
38
|
const [timeData, setTimeData] = (0, import_react.useState)();
|
|
30
39
|
(0, import_react.useEffect)(() => {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const seconds = (0, import_date_fns.getSeconds)(sessionExpiresIn - Date.now());
|
|
43
|
-
const minutes = (0, import_date_fns.differenceInMinutes)(sessionExpiresIn, Date.now());
|
|
44
|
-
return {
|
|
45
|
-
seconds: `0${seconds}`.slice(-2),
|
|
46
|
-
minutes: `0${minutes}`.slice(-2)
|
|
47
|
-
};
|
|
40
|
+
const userWarnInterval = (0, import_config.getAppConfigValue)(
|
|
41
|
+
"sessionTimeoutWarnInterval"
|
|
42
|
+
);
|
|
43
|
+
const userTimeoutInterval = (0, import_config.getAppConfigValue)(
|
|
44
|
+
"sessionTimeoutInterval"
|
|
45
|
+
);
|
|
46
|
+
const warnInterval = userWarnInterval ? parseFloat(userWarnInterval) : import_constants.SESSION_TIMEOUT_INTERVAL.WARN;
|
|
47
|
+
const sessionTimeout = userTimeoutInterval ? parseFloat(userTimeoutInterval) : import_constants.SESSION_TIMEOUT_INTERVAL.EXPIRY;
|
|
48
|
+
const sessionExpiresAt = warningNotifiedAt + (sessionTimeout - warnInterval);
|
|
49
|
+
const updateTimeLeft = () => {
|
|
50
|
+
setTimeData(formatTimeLeft(sessionExpiresAt - Date.now()));
|
|
48
51
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, 1e3);
|
|
52
|
+
updateTimeLeft();
|
|
53
|
+
const interval = setInterval(updateTimeLeft, 1e3);
|
|
54
|
+
const removeWakeListener = (0, import_page_wake.subscribeToPageWake)(updateTimeLeft);
|
|
53
55
|
return () => {
|
|
54
56
|
clearInterval(interval);
|
|
57
|
+
removeWakeListener();
|
|
55
58
|
};
|
|
56
59
|
}, [warningNotifiedAt]);
|
|
57
60
|
return timeData;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const subscribeToPageWake = (callback) => {
|
|
2
|
+
let scheduled = false;
|
|
3
|
+
const runCoalesced = () => {
|
|
4
|
+
if (scheduled) return;
|
|
5
|
+
scheduled = true;
|
|
6
|
+
queueMicrotask(() => {
|
|
7
|
+
scheduled = false;
|
|
8
|
+
callback();
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
const onVisibilityChange = () => {
|
|
12
|
+
if (!document.hidden) {
|
|
13
|
+
runCoalesced();
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
17
|
+
window.addEventListener("pageshow", runCoalesced);
|
|
18
|
+
window.addEventListener("focus", runCoalesced);
|
|
19
|
+
return () => {
|
|
20
|
+
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
21
|
+
window.removeEventListener("pageshow", runCoalesced);
|
|
22
|
+
window.removeEventListener("focus", runCoalesced);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
subscribeToPageWake
|
|
27
|
+
};
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
SESSION_TIMEOUT_INTERVAL,
|
|
11
11
|
SESSION_RENEWAL_INTERVAL
|
|
12
12
|
} from "./constants.js";
|
|
13
|
+
import { subscribeToPageWake } from "./page-wake.js";
|
|
13
14
|
let lastUserActivityTimeStamp = Date.now();
|
|
14
15
|
const warnListeners = [];
|
|
15
16
|
const expiryListeners = [];
|
|
@@ -17,6 +18,7 @@ const resetListeners = [];
|
|
|
17
18
|
const userInteractionEvents = ["click", "scroll", "keypress", "touchstart"];
|
|
18
19
|
let sessionExpiryWarningNotified = false;
|
|
19
20
|
let timerHandle;
|
|
21
|
+
let removeWakeListener;
|
|
20
22
|
let sessionExpiryWarningNotifiedAt;
|
|
21
23
|
const resetUserIdleTime = (resetWarningModal = false) => {
|
|
22
24
|
sessionExpiryWarningNotified = false;
|
|
@@ -71,10 +73,15 @@ const notifySessionExpiryWarning = () => {
|
|
|
71
73
|
const notifySessionExpiry = () => Promise.resolve().then(() => {
|
|
72
74
|
expiryListeners.forEach((listener) => listener());
|
|
73
75
|
});
|
|
74
|
-
const
|
|
76
|
+
const removeActivityEventListeners = () => {
|
|
75
77
|
userInteractionEvents.forEach((eventType) => {
|
|
76
78
|
document.removeEventListener(eventType, renewSessionAtInterval);
|
|
77
79
|
});
|
|
80
|
+
};
|
|
81
|
+
const stopSessionMonitoring = () => {
|
|
82
|
+
removeActivityEventListeners();
|
|
83
|
+
removeWakeListener?.();
|
|
84
|
+
removeWakeListener = void 0;
|
|
78
85
|
clearInterval(timerHandle);
|
|
79
86
|
warnListeners.length = 0;
|
|
80
87
|
expiryListeners.length = 0;
|
|
@@ -100,7 +107,11 @@ const addEventListeners = () => {
|
|
|
100
107
|
});
|
|
101
108
|
};
|
|
102
109
|
const initSessionMonitoring = () => {
|
|
110
|
+
clearInterval(timerHandle);
|
|
111
|
+
removeWakeListener?.();
|
|
112
|
+
removeActivityEventListeners();
|
|
103
113
|
addEventListeners();
|
|
114
|
+
removeWakeListener = subscribeToPageWake(monitorSessionEvents);
|
|
104
115
|
timerHandle = setInterval(monitorSessionEvents, 1e3);
|
|
105
116
|
};
|
|
106
117
|
const subscribeToSessionExpiryWarning = (onSessionExpiryWarn) => {
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
import { getSeconds, differenceInMinutes } from "date-fns";
|
|
3
2
|
import { SESSION_TIMEOUT_INTERVAL } from "../../../utils/constants.js";
|
|
4
3
|
import { getAppConfigValue } from "../../../utils/app-config/config.js";
|
|
4
|
+
import { subscribeToPageWake } from "../../../utils/page-wake.js";
|
|
5
|
+
const formatTimeLeft = (msLeft) => {
|
|
6
|
+
const totalSeconds = Math.max(0, Math.floor(msLeft / 1e3));
|
|
7
|
+
const minutes = Math.floor(totalSeconds / 60);
|
|
8
|
+
const seconds = totalSeconds % 60;
|
|
9
|
+
return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(
|
|
10
|
+
2,
|
|
11
|
+
"0"
|
|
12
|
+
)}`;
|
|
13
|
+
};
|
|
5
14
|
const useTrackSessionExpiry = (warningNotifiedAt) => {
|
|
6
15
|
const [timeData, setTimeData] = useState();
|
|
7
16
|
useEffect(() => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const seconds = getSeconds(sessionExpiresIn - Date.now());
|
|
20
|
-
const minutes = differenceInMinutes(sessionExpiresIn, Date.now());
|
|
21
|
-
return {
|
|
22
|
-
seconds: `0${seconds}`.slice(-2),
|
|
23
|
-
minutes: `0${minutes}`.slice(-2)
|
|
24
|
-
};
|
|
17
|
+
const userWarnInterval = getAppConfigValue(
|
|
18
|
+
"sessionTimeoutWarnInterval"
|
|
19
|
+
);
|
|
20
|
+
const userTimeoutInterval = getAppConfigValue(
|
|
21
|
+
"sessionTimeoutInterval"
|
|
22
|
+
);
|
|
23
|
+
const warnInterval = userWarnInterval ? parseFloat(userWarnInterval) : SESSION_TIMEOUT_INTERVAL.WARN;
|
|
24
|
+
const sessionTimeout = userTimeoutInterval ? parseFloat(userTimeoutInterval) : SESSION_TIMEOUT_INTERVAL.EXPIRY;
|
|
25
|
+
const sessionExpiresAt = warningNotifiedAt + (sessionTimeout - warnInterval);
|
|
26
|
+
const updateTimeLeft = () => {
|
|
27
|
+
setTimeData(formatTimeLeft(sessionExpiresAt - Date.now()));
|
|
25
28
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, 1e3);
|
|
29
|
+
updateTimeLeft();
|
|
30
|
+
const interval = setInterval(updateTimeLeft, 1e3);
|
|
31
|
+
const removeWakeListener = subscribeToPageWake(updateTimeLeft);
|
|
30
32
|
return () => {
|
|
31
33
|
clearInterval(interval);
|
|
34
|
+
removeWakeListener();
|
|
32
35
|
};
|
|
33
36
|
}, [warningNotifiedAt]);
|
|
34
37
|
return timeData;
|