@elliemae/pui-app-sdk 5.44.0 → 5.44.2

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.
Files changed (200) hide show
  1. package/build/docs/404.html +1 -1
  2. package/build/docs/api/classes/Analytics/index.html +1 -1
  3. package/build/docs/api/classes/CMicroAppGuest/index.html +1 -1
  4. package/build/docs/api/classes/CMicroAppHost/index.html +1 -1
  5. package/build/docs/api/classes/ErrorBoundary/index.html +1 -1
  6. package/build/docs/api/classes/GuestModule/index.html +1 -1
  7. package/build/docs/api/functions/AppRoot/index.html +1 -1
  8. package/build/docs/api/functions/Autocomplete/index.html +1 -1
  9. package/build/docs/api/functions/CheckBox/index.html +1 -1
  10. package/build/docs/api/functions/ComboBox/index.html +1 -1
  11. package/build/docs/api/functions/ComboBoxV3/index.html +1 -1
  12. package/build/docs/api/functions/ConnectForm/index.html +1 -1
  13. package/build/docs/api/functions/DateInput/index.html +1 -1
  14. package/build/docs/api/functions/DatePicker/index.html +1 -1
  15. package/build/docs/api/functions/DateRangePicker/index.html +1 -1
  16. package/build/docs/api/functions/DateTimePicker/index.html +1 -1
  17. package/build/docs/api/functions/Form/index.html +1 -1
  18. package/build/docs/api/functions/FormItemLayout/index.html +1 -1
  19. package/build/docs/api/functions/FormLayoutBlockItem/index.html +1 -1
  20. package/build/docs/api/functions/FormSubmitButton/index.html +1 -1
  21. package/build/docs/api/functions/InputMask/index.html +1 -1
  22. package/build/docs/api/functions/InputText/index.html +1 -1
  23. package/build/docs/api/functions/LargeTextBox/index.html +1 -1
  24. package/build/docs/api/functions/MaskedInputText/index.html +1 -1
  25. package/build/docs/api/functions/Page/index.html +1 -1
  26. package/build/docs/api/functions/Radio/index.html +1 -1
  27. package/build/docs/api/functions/RadioGroup/index.html +1 -1
  28. package/build/docs/api/functions/RegisterService/index.html +1 -1
  29. package/build/docs/api/functions/RenderWithStateAddOns/index.html +1 -1
  30. package/build/docs/api/functions/RequireAuth/index.html +1 -1
  31. package/build/docs/api/functions/SessionTimeout/index.html +1 -1
  32. package/build/docs/api/functions/TextBox/index.html +1 -1
  33. package/build/docs/api/functions/Toggle/index.html +1 -1
  34. package/build/docs/api/functions/authSaga/index.html +1 -1
  35. package/build/docs/api/functions/authorize/index.html +1 -1
  36. package/build/docs/api/functions/buildModuleParams/index.html +1 -1
  37. package/build/docs/api/functions/cleanup/index.html +1 -1
  38. package/build/docs/api/functions/configureStore/index.html +1 -1
  39. package/build/docs/api/functions/createGuestModule/index.html +1 -1
  40. package/build/docs/api/functions/createManager/index.html +1 -1
  41. package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +1 -1
  42. package/build/docs/api/functions/fetchHostAppData/index.html +1 -1
  43. package/build/docs/api/functions/fetchUserSettings/index.html +1 -1
  44. package/build/docs/api/functions/getApiActionCreator/index.html +1 -1
  45. package/build/docs/api/functions/getAppConfig/index.html +1 -1
  46. package/build/docs/api/functions/getAppConfigValue/index.html +1 -1
  47. package/build/docs/api/functions/getAuthHTTPClient/index.html +1 -1
  48. package/build/docs/api/functions/getAuthorizationHeader/index.html +1 -1
  49. package/build/docs/api/functions/getHTTPClient/index.html +1 -1
  50. package/build/docs/api/functions/getHostAppDataByKey/index.html +1 -1
  51. package/build/docs/api/functions/getLogger/index.html +1 -1
  52. package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +1 -1
  53. package/build/docs/api/functions/getNavigationLinks/index.html +1 -1
  54. package/build/docs/api/functions/getRedirectUrl/index.html +1 -1
  55. package/build/docs/api/functions/getSelectField/index.html +1 -1
  56. package/build/docs/api/functions/getStore/index.html +1 -1
  57. package/build/docs/api/functions/initServiceWorker/index.html +1 -1
  58. package/build/docs/api/functions/isCIBuild/index.html +1 -1
  59. package/build/docs/api/functions/isProd/index.html +1 -1
  60. package/build/docs/api/functions/isUserAuthorized/index.html +1 -1
  61. package/build/docs/api/functions/listenStorageEvents/index.html +1 -1
  62. package/build/docs/api/functions/loadAppConfig/index.html +1 -1
  63. package/build/docs/api/functions/loadable/index.html +1 -1
  64. package/build/docs/api/functions/login/index.html +1 -1
  65. package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +1 -1
  66. package/build/docs/api/functions/onAuthorizationFailure/index.html +1 -1
  67. package/build/docs/api/functions/onGuestUnloadStart/index.html +1 -1
  68. package/build/docs/api/functions/redactPii/index.html +1 -1
  69. package/build/docs/api/functions/removeDoubleSlash/index.html +1 -1
  70. package/build/docs/api/functions/removeStorageEvents/index.html +1 -1
  71. package/build/docs/api/functions/render/index.html +1 -1
  72. package/build/docs/api/functions/renderHook/index.html +1 -1
  73. package/build/docs/api/functions/renderWithHostData/index.html +1 -1
  74. package/build/docs/api/functions/renderWithRedux/index.html +1 -1
  75. package/build/docs/api/functions/renderWithRouter/index.html +1 -1
  76. package/build/docs/api/functions/renderWithRouterRedux/index.html +1 -1
  77. package/build/docs/api/functions/sdkBaseQuery/index.html +1 -1
  78. package/build/docs/api/functions/sendBAEvent/index.html +1 -1
  79. package/build/docs/api/functions/sendMessageToHost/index.html +1 -1
  80. package/build/docs/api/functions/setAppConfig/index.html +1 -1
  81. package/build/docs/api/functions/setAppConfigValue/index.html +1 -1
  82. package/build/docs/api/functions/setHostAppData/index.html +1 -1
  83. package/build/docs/api/functions/setLoginParams/index.html +1 -1
  84. package/build/docs/api/functions/subscribeToResetSession/index.html +1 -1
  85. package/build/docs/api/functions/subscribeToSessionExpiry/index.html +1 -1
  86. package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +1 -1
  87. package/build/docs/api/functions/trackActivity/index.html +1 -1
  88. package/build/docs/api/functions/useAppDispatch/index.html +1 -1
  89. package/build/docs/api/functions/useAppMiddleware/index.html +1 -1
  90. package/build/docs/api/functions/useInjectQuery/index.html +1 -1
  91. package/build/docs/api/functions/useInjectReducer/index.html +1 -1
  92. package/build/docs/api/functions/useInjectSaga/index.html +1 -1
  93. package/build/docs/api/functions/useInjectSideEffect/index.html +1 -1
  94. package/build/docs/api/functions/useMediaQueryList/index.html +1 -1
  95. package/build/docs/api/functions/useStateSelector/index.html +1 -1
  96. package/build/docs/api/functions/useStateSelectorShallow/index.html +1 -1
  97. package/build/docs/api/functions/waitFor/index.html +1 -1
  98. package/build/docs/api/functions/waitForElementToBeRemoved/index.html +1 -1
  99. package/build/docs/api/functions/withAppDecorator/index.html +1 -1
  100. package/build/docs/api/index.html +1 -1
  101. package/build/docs/api/interfaces/AppConfig/index.html +1 -1
  102. package/build/docs/api/interfaces/GuestProps/index.html +1 -1
  103. package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +1 -1
  104. package/build/docs/api/type-aliases/AppDispatch/index.html +1 -1
  105. package/build/docs/api/type-aliases/AppStore/index.html +1 -1
  106. package/build/docs/api/type-aliases/Await/index.html +1 -1
  107. package/build/docs/api/type-aliases/EMUI/index.html +1 -1
  108. package/build/docs/api/type-aliases/HostOptions/index.html +1 -1
  109. package/build/docs/api/type-aliases/HostProvidedParams/index.html +1 -1
  110. package/build/docs/api/type-aliases/ModuleOverrides/index.html +1 -1
  111. package/build/docs/api/type-aliases/OnHostInitCallback/index.html +1 -1
  112. package/build/docs/api/type-aliases/OnInitCallback/index.html +1 -1
  113. package/build/docs/api/type-aliases/OnMountCallback/index.html +1 -1
  114. package/build/docs/api/type-aliases/OnUnMountCallback/index.html +1 -1
  115. package/build/docs/api/type-aliases/RootState/index.html +1 -1
  116. package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +1 -1
  117. package/build/docs/api/variables/ErrorToast/index.html +1 -1
  118. package/build/docs/api/variables/FormPropsContext/index.html +1 -1
  119. package/build/docs/api/variables/GuestMicroApp/index.html +1 -1
  120. package/build/docs/api/variables/MASK_PIPES/index.html +1 -1
  121. package/build/docs/api/variables/MASK_TYPES/index.html +1 -1
  122. package/build/docs/api/variables/MicroApp/index.html +1 -1
  123. package/build/docs/api/variables/MicroIFrameApp/index.html +1 -1
  124. package/build/docs/api/variables/NavigationPrompt/index.html +1 -1
  125. package/build/docs/api/variables/NavigationPromptActions/index.html +1 -1
  126. package/build/docs/api/variables/Themes/index.html +1 -1
  127. package/build/docs/api/variables/VisuallyHidden/index.html +1 -1
  128. package/build/docs/api/variables/WaitMessage/index.html +1 -1
  129. package/build/docs/api/variables/act/index.html +1 -1
  130. package/build/docs/api/variables/ariaLive/index.html +1 -1
  131. package/build/docs/api/variables/auth/index.html +1 -1
  132. package/build/docs/api/variables/authReducer/index.html +1 -1
  133. package/build/docs/api/variables/clearSideEffects/index.html +1 -1
  134. package/build/docs/api/variables/createSideEffect/index.html +1 -1
  135. package/build/docs/api/variables/decorators/index.html +1 -1
  136. package/build/docs/api/variables/endSession/index.html +1 -1
  137. package/build/docs/api/variables/error/index.html +1 -1
  138. package/build/docs/api/variables/errorMiddleware/index.html +1 -1
  139. package/build/docs/api/variables/fireEvent/index.html +1 -1
  140. package/build/docs/api/variables/globalConstants/index.html +1 -1
  141. package/build/docs/api/variables/history/index.html +1 -1
  142. package/build/docs/api/variables/httpClientProps/index.html +1 -1
  143. package/build/docs/api/variables/logout/index.html +1 -1
  144. package/build/docs/api/variables/memoryHistory/index.html +1 -1
  145. package/build/docs/api/variables/removeSideEffect/index.html +1 -1
  146. package/build/docs/api/variables/resetUserIdleTime/index.html +1 -1
  147. package/build/docs/api/variables/screen/index.html +1 -1
  148. package/build/docs/api/variables/startSideEffect/index.html +1 -1
  149. package/build/docs/api/variables/updateBAEventParameters/index.html +1 -1
  150. package/build/docs/api/variables/useAppSelector/index.html +1 -1
  151. package/build/docs/api/variables/waitMessageAction/index.html +1 -1
  152. package/build/docs/api/variables/within/index.html +1 -1
  153. package/build/docs/assets/js/{main.f6a3322e.js → main.1bebbb71.js} +2 -2
  154. package/build/docs/index.html +1 -1
  155. package/build/docs/usage-guide/index.html +1 -1
  156. package/demo/{docs/1896.1c742108.iframe.bundle.js → 1896.619ce620.iframe.bundle.js} +1 -1
  157. package/demo/1896.619ce620.iframe.bundle.js.br +0 -0
  158. package/demo/{docs/1896.1c742108.iframe.bundle.js.gz → 1896.619ce620.iframe.bundle.js.gz} +0 -0
  159. package/demo/{1896.1c742108.iframe.bundle.js → docs/1896.619ce620.iframe.bundle.js} +1 -1
  160. package/demo/docs/1896.619ce620.iframe.bundle.js.br +0 -0
  161. package/demo/{1896.1c742108.iframe.bundle.js.gz → docs/1896.619ce620.iframe.bundle.js.gz} +0 -0
  162. package/demo/docs/iframe.html +1 -1
  163. package/demo/docs/index.html +1 -1
  164. package/demo/docs/{main.8e67bf2a43b910cc0a1f.manager.bundle.js → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js} +1 -1
  165. package/demo/docs/{main.8e67bf2a43b910cc0a1f.manager.bundle.js.br → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.br} +0 -0
  166. package/demo/docs/{main.8e67bf2a43b910cc0a1f.manager.bundle.js.gz → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.gz} +0 -0
  167. package/demo/docs/main.b368484e.iframe.bundle.js +5 -0
  168. package/demo/docs/main.b368484e.iframe.bundle.js.br +0 -0
  169. package/demo/docs/main.b368484e.iframe.bundle.js.gz +0 -0
  170. package/demo/docs/project.json +1 -1
  171. package/demo/iframe.html +1 -1
  172. package/demo/index.html +1 -1
  173. package/demo/{main.8e67bf2a43b910cc0a1f.manager.bundle.js → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js} +1 -1
  174. package/demo/{main.8e67bf2a43b910cc0a1f.manager.bundle.js.br → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.br} +0 -0
  175. package/demo/{main.8e67bf2a43b910cc0a1f.manager.bundle.js.gz → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.gz} +0 -0
  176. package/demo/main.b368484e.iframe.bundle.js +5 -0
  177. package/demo/main.b368484e.iframe.bundle.js.br +0 -0
  178. package/demo/main.b368484e.iframe.bundle.js.gz +0 -0
  179. package/demo/project.json +1 -1
  180. package/dist/cjs/utils/micro-frontend/guest.js +39 -36
  181. package/dist/cjs/view/guest-microapp.js +40 -17
  182. package/dist/cjs/view/iframe-teardown-sandbox.js +50 -0
  183. package/dist/cjs/view/micro-app/use-app-will-render.js +24 -3
  184. package/dist/esm/utils/micro-frontend/guest.js +39 -36
  185. package/dist/esm/view/guest-microapp.js +43 -17
  186. package/dist/esm/view/iframe-teardown-sandbox.js +30 -0
  187. package/dist/esm/view/micro-app/use-app-will-render.js +24 -3
  188. package/dist/types/lib/view/iframe-teardown-sandbox.d.ts +20 -0
  189. package/dist/types/lib/view/tests/iframe-teardown-sandbox.test.d.ts +1 -0
  190. package/dist/types/tsconfig.tsbuildinfo +1 -1
  191. package/package.json +1 -1
  192. package/demo/1896.1c742108.iframe.bundle.js.br +0 -0
  193. package/demo/docs/1896.1c742108.iframe.bundle.js.br +0 -0
  194. package/demo/docs/main.643b2148.iframe.bundle.js +0 -5
  195. package/demo/docs/main.643b2148.iframe.bundle.js.br +0 -0
  196. package/demo/docs/main.643b2148.iframe.bundle.js.gz +0 -0
  197. package/demo/main.643b2148.iframe.bundle.js +0 -5
  198. package/demo/main.643b2148.iframe.bundle.js.br +0 -0
  199. package/demo/main.643b2148.iframe.bundle.js.gz +0 -0
  200. /package/build/docs/assets/js/{main.f6a3322e.js.LICENSE.txt → main.1bebbb71.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "5.44.0",
3
+ "version": "5.44.2",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -1,5 +0,0 @@
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,g,e){const u={"./view/breakpoint/index.stories":["./lib/view/breakpoint/index.stories.tsx",[8535,999]],"./view/breakpoint/index.stories.tsx":["./lib/view/breakpoint/index.stories.tsx",[8535,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",[8535,5058,1156,5600,6469,3071]],"./view/fields/autocomplete/advanced-autocomplete.stories.tsx":["./lib/view/fields/autocomplete/advanced-autocomplete.stories.tsx",[8535,5058,1156,5600,6469,3071]],"./view/fields/autocomplete/async-suggestions-autocomplete.stories":["./lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx",[8535,5058,1156,5600,6469,9825]],"./view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx":["./lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx",[8535,5058,1156,5600,6469,9825]],"./view/fields/autocomplete/index.stories":["./lib/view/fields/autocomplete/index.stories.tsx",[8535,5058,1156,5600,6469,8048]],"./view/fields/autocomplete/index.stories.tsx":["./lib/view/fields/autocomplete/index.stories.tsx",[8535,5058,1156,5600,6469,8048]],"./view/fields/check-box/index.stories":["./lib/view/fields/check-box/index.stories.tsx",[8535,5058,8654,590,9634,1281,2382]],"./view/fields/check-box/index.stories.tsx":["./lib/view/fields/check-box/index.stories.tsx",[8535,5058,8654,590,9634,1281,2382]],"./view/fields/check-box/set-value.stories":["./lib/view/fields/check-box/set-value.stories.tsx",[8535,5058,8654,590,9634,1281,5410]],"./view/fields/check-box/set-value.stories.tsx":["./lib/view/fields/check-box/set-value.stories.tsx",[8535,5058,8654,590,9634,1281,5410]],"./view/fields/combo-box-v3/index.stories":["./lib/view/fields/combo-box-v3/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,2915,3086]],"./view/fields/combo-box-v3/index.stories.tsx":["./lib/view/fields/combo-box-v3/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,2915,3086]],"./view/fields/combo-box/index.stories":["./lib/view/fields/combo-box/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6957,6184]],"./view/fields/combo-box/index.stories.tsx":["./lib/view/fields/combo-box/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6957,6184]],"./view/fields/date-input/index.stories":["./lib/view/fields/date-input/index.stories.tsx",[8535,5058,8654,9863,5256,6996,8523,6055]],"./view/fields/date-input/index.stories.tsx":["./lib/view/fields/date-input/index.stories.tsx",[8535,5058,8654,9863,5256,6996,8523,6055]],"./view/fields/date-picker/index.stories":["./lib/view/fields/date-picker/index.stories.tsx",[8535,5058,8654,9863,5256,6996,9041,7813]],"./view/fields/date-picker/index.stories.tsx":["./lib/view/fields/date-picker/index.stories.tsx",[8535,5058,8654,9863,5256,6996,9041,7813]],"./view/fields/date-range-picker/index.stories":["./lib/view/fields/date-range-picker/index.stories.tsx",[8535,5058,102,3923,7584,77]],"./view/fields/date-range-picker/index.stories.tsx":["./lib/view/fields/date-range-picker/index.stories.tsx",[8535,5058,102,3923,7584,77]],"./view/fields/date-time-picker/index.stories":["./lib/view/fields/date-time-picker/index.stories.tsx",[8535,5058,102,3923,2129]],"./view/fields/date-time-picker/index.stories.tsx":["./lib/view/fields/date-time-picker/index.stories.tsx",[8535,5058,102,3923,2129]],"./view/fields/form-item-layout/index.stories":["./lib/view/fields/form-item-layout/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6061,3813]],"./view/fields/form-item-layout/index.stories.tsx":["./lib/view/fields/form-item-layout/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6061,3813]],"./view/fields/form-layout-block-item/index.stories":["./lib/view/fields/form-layout-block-item/index.stories.tsx",[8535,5058,8654,9863,5256,2487]],"./view/fields/form-layout-block-item/index.stories.tsx":["./lib/view/fields/form-layout-block-item/index.stories.tsx",[8535,5058,8654,9863,5256,2487]],"./view/fields/input-mask/index.stories":["./lib/view/fields/input-mask/index.stories.tsx",[8535,5058,8654,9863,5256,3848,6729]],"./view/fields/input-mask/index.stories.tsx":["./lib/view/fields/input-mask/index.stories.tsx",[8535,5058,8654,9863,5256,3848,6729]],"./view/fields/input-text/index.stories":["./lib/view/fields/input-text/index.stories.tsx",[8535,5058,1156,1764]],"./view/fields/input-text/index.stories.tsx":["./lib/view/fields/input-text/index.stories.tsx",[8535,5058,1156,1764]],"./view/fields/large-text-box/index.stories":["./lib/view/fields/large-text-box/index.stories.tsx",[8535,5058,1491]],"./view/fields/large-text-box/index.stories.tsx":["./lib/view/fields/large-text-box/index.stories.tsx",[8535,5058,1491]],"./view/fields/masked-input-text/with-money-mask.stories":["./lib/view/fields/masked-input-text/with-money-mask.stories.tsx",[8535,5058,1156,5974]],"./view/fields/masked-input-text/with-money-mask.stories.tsx":["./lib/view/fields/masked-input-text/with-money-mask.stories.tsx",[8535,5058,1156,5974]],"./view/fields/masked-input-text/with-percentage-mask.stories":["./lib/view/fields/masked-input-text/with-percentage-mask.stories.tsx",[8535,5058,1156,8980]],"./view/fields/masked-input-text/with-percentage-mask.stories.tsx":["./lib/view/fields/masked-input-text/with-percentage-mask.stories.tsx",[8535,5058,1156,8980]],"./view/fields/radio-group/index.stories":["./lib/view/fields/radio-group/index.stories.tsx",[8535,5058,8654,9863,590,5256,9634,6868,6061,235,2977]],"./view/fields/radio-group/index.stories.tsx":["./lib/view/fields/radio-group/index.stories.tsx",[8535,5058,8654,9863,590,5256,9634,6868,6061,235,2977]],"./view/fields/radio/index.stories":["./lib/view/fields/radio/index.stories.tsx",[8535,5058,8654,590,9634,6531]],"./view/fields/radio/index.stories.tsx":["./lib/view/fields/radio/index.stories.tsx",[8535,5058,8654,590,9634,6531]],"./view/fields/radio/set-value.stories":["./lib/view/fields/radio/set-value.stories.tsx",[8535,5058,8654,590,9634,5055]],"./view/fields/radio/set-value.stories.tsx":["./lib/view/fields/radio/set-value.stories.tsx",[8535,5058,8654,590,9634,5055]],"./view/fields/text-box/index.stories":["./lib/view/fields/text-box/index.stories.tsx",[8535,5058,8654,9863,5256,8749]],"./view/fields/text-box/index.stories.tsx":["./lib/view/fields/text-box/index.stories.tsx",[8535,5058,8654,9863,5256,8749]],"./view/fields/toggle/index.stories":["./lib/view/fields/toggle/index.stories.tsx",[8535,5058,5936]],"./view/fields/toggle/index.stories.tsx":["./lib/view/fields/toggle/index.stories.tsx",[8535,5058,5936]],"./view/form/index.stories":["./lib/view/form/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,6220]],"./view/form/index.stories.tsx":["./lib/view/form/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,6220]],"./view/form/usecases.stories":["./lib/view/form/usecases.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,4580]],"./view/form/usecases.stories.tsx":["./lib/view/form/usecases.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,4580]],"./view/intro.stories.mdx":["./lib/view/intro.stories.mdx",[721,6964,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 d(p){try{if(!e.o(u,p))return Promise.resolve().then(()=>{const x=new Error("Cannot find module '"+p+"'");throw x.code="MODULE_NOT_FOUND",x})}catch(x){return Promise.reject(x)}const c=u[p],y=c[0];return Promise.all(c[1].map(e.e)).then(()=>e(y))}d.keys=()=>Object.keys(u),d.id="./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$",j.exports=d},"./.storybook/preview.js"(j,g,e){"use strict";e.r(g),e.d(g,{__namedExportsOrder:()=>si,decorators:()=>qt,loaders:()=>ei,parameters:()=>ii});var u=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),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"),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"),c=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"),y=e("./node_modules/.pnpm/redux-saga@1.5.0/node_modules/redux-saga/dist/redux-saga.cjs.js"),x=e.n(y),P=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.cjs.production.min.js"),_=e("./lib/data/wait-message/actions.ts"),E={isOpen:null,message:"loading...",delay:!0},i=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,s=arguments.length>1?arguments[1]:void 0;return(0,P.default)(r,function(n){switch(s.type){case _.k.OPEN:n.isOpen=!0,n.message=s.payload.message,n.delay=s.payload.delay;break;case _.k.CLOSE:n.isOpen=!1;break}})},b=e("./lib/data/error/index.ts"),m={change:"change"},A=function(r){return r.LARGE="large",r.MEDIUM="medium",r.SMALL="small",r.XSMALL="xsmall",r}({}),S={value:A.LARGE},L=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,s=arguments.length>1?arguments[1]:void 0,n=s.type,I=s.payload;return(0,P.default)(r,function(M){switch(n){case m.change:M.value=I;break}})},O=e("./lib/data/live-message/index.ts"),D=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=(0,d.combineReducers)(Object.assign({waitMessage:i,error:b.L,breakpoint:L,liveMessage:O.k},r));return s},B=e("./lib/data/webpack-hmr.ts"),xe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/toConsumableArray.js"),ue=e.n(xe),Y=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/lib/redux.js"),K=new Map,se,ee=function(r){return se=r,function(s){return function(n){return Y.compose.apply(void 0,ue()(K.values()))(s)(n)}}},Ve=function(r){var s=r.reducerPath,n=r.middleware;K.has(s)||!se||K.set(s,n(se))},ce=function(r){K.delete(r)},ne=function(){K.clear()},le,we,ve=(0,d.createListenerMiddleware)(),ke=ve.startListening,Je=null,Be=null,_e=ve.clearListeners,Pe=D(),be=null,He=function(r){be=r},Oe=function(){return be},me=function(r,s,n){var I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},W=s.run,X=[(0,c.OV)({createReducer:D,runSaga:W})];Pe=D(M);var fe=(0,d.configureStore)({reducer:Pe,middleware:function(Ee){return Ee(I).prepend(ve.middleware).concat([s,ee])},devTools:!1,preloadedState:r,enhancers:X});return(0,p.setupListeners)(fe.dispatch),(0,B.I)(fe),fe},Xe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,I=arguments.length>3?arguments[3]:void 0,M=x()({}),W=me(r,M,s,n,I);return He(W),W},tt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),U=e.n(tt),oe=e("./lib/utils/history.ts"),H=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),ct=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"),Z=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"),F=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),pe=e.n(F),Ne=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),ye=e.n(Ne),ze=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"),z=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),Te=["history","basename"],Se=function(r){var s=r.history,n=r.basename,I=ye()(r,Te),M=(0,H.useState)({action:s.action,location:s.location}),W=pe()(M,2),X=W[0],fe=W[1];return(0,H.useLayoutEffect)(function(){n&&X.location.pathname&&!X.location.pathname.startsWith(n)&&console.warn(`[AppRouter] basename "${n}" does not match location.pathname "${X.location.pathname}". React Router will render nothing. Verify that "homeRoute" in app.config.json matches the guest's route.`)},[n,X.location.pathname]),(0,H.useLayoutEffect)(function(){var Ee=s.listen(function(){for(var he=arguments.length,ge=new Array(he),Et=0;Et<he;Et++)ge[Et]=arguments[Et];ge.length===2?fe({location:ge[0],action:ge[1]}):fe(ge[0])});return function(){Ee()}},[s]),(0,z.jsx)(ze.Router,Object.assign({},I,{basename:n,location:X.location,navigationType:X.action,navigator:s}))};Se.displayName="AppRouter";var je=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),it=e("./lib/utils/micro-frontend/guest.ts"),Ye=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),st=e.n(Ye),Ze=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),nt=e.n(Ze),Qe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),te=e.n(Qe),Ie=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),qe=e.n(Ie),vt=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),mt=e.n(vt),De=e("./node_modules/.pnpm/pubsub-js@1.9.5/node_modules/pubsub-js/src/pubsub.js"),Ce=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"),ot=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),Re=e("./lib/data/logout/actions.ts"),et=e("./lib/utils/app-config/config.ts"),Ge=e("./lib/utils/app-config/index.ts"),Le=e("./lib/utils/console-logger.ts"),xt=e("./lib/utils/logger.ts"),Ke=e("./lib/utils/constants.ts"),Ue=e("./lib/utils/window.ts"),Tt=e("./lib/utils/session.ts"),_t=e("./lib/utils/micro-frontend/app-bridge.ts"),rt=e("./lib/utils/micro-frontend/ssf-host.ts"),at,de=qe()("ssfHostRef"),G=qe()("appBridge"),Me=qe()("selfInitialize"),Fe=function(){function r(s){var n,I,M,W,X,fe,Ee=this;st()(this,r),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,de,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:null}),Object.defineProperty(this,Me,{writable:!0,value:void 0}),this.appId=(0,et.vF)("appId"),this.onInit=s?.onInit,this.logger=s?.logger||Le.k,(0,xt.B)(this.logger),this.onRenewSessionTimer=s?.onRenewSessionTimer,te()(this,Me)[Me]=(n=s?.selfInitialize)!==null&&n!==void 0?n:!1,this.props={systemVersion:(I=s?.version)!==null&&I!==void 0?I:"latest",history:(M=s?.history)!==null&&M!==void 0?M:oe.N,theme:(W=s?.theme)!==null&&W!==void 0?W:(0,u.getDefaultTheme)()},this.activeGuests={},s!=null&&s.ssfHostRef&&(0,rt.Z)(s.ssfHostRef),te()(this,de)[de]=(0,rt.F)();var he=(X=s?.analytics)!==null&&X!==void 0?X:new Ce.j({logger:this.logger});this.scriptingObjects=Object.assign({analytics:he},(fe=s?.scriptingObjects)!==null&&fe!==void 0?fe:{}),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=mt()(async function(){await(0,Tt.KB)(),Ee.onRenewSessionTimer&&Ee.onRenewSessionTimer()},Ke.eE,{leading:!0}),te()(this,Me)[Me]||(0,Ge.y)().then(function(){(0,_t.b)().then(function(ge){te()(Ee,G)[G]=ge,Ee.onInit&&Ee.onInit(Ee.props)}).catch(function(ge){throw ge})}).catch(function(){}),(0,ot.nE)({appId:this.appId})}return nt()(r,[{key:"initialize",value:async function(){e.p=e.p.replace(/\/?$/,"/"),await(0,Ge.y)();var n=await(0,_t.b)();return te()(this,G)[G]=n,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(n){return(0,Ue.zk)().sessionStorage.getItem(n)}},{key:"setItem",value:function(n,I){(0,Ue.zk)().sessionStorage.setItem(n,I)}},{key:"getGuests",value:function(){return this.activeGuests}},{key:"getGuest",value:function(n){return this.activeGuests[n]?this.activeGuests[n]:null}},{key:"publish",value:function(n,I){return(0,De.publish)(n,I)}},{key:"subscribe",value:function(n,I){return(0,De.subscribe)(n,I)}},{key:"unsubscribe",value:function(n){(0,De.unsubscribe)(n)}},{key:"navigate",value:function(n,I){n&&this.props.history.push(n,I)}},{key:"openWaitMessage",value:function(){var n=Oe();n&&n.dispatch(_.X.open())}},{key:"closeWaitMessage",value:function(){var n=Oe();n&&n.dispatch(_.X.close())}},{key:"openErrorBanner",value:function(n){var I=Oe();I&&I.dispatch(b.o.set({description:n}))}},{key:"getAuthToken",value:function(){return(0,Ue.zk)().sessionStorage.getItem("Authorization")}},{key:"renewAuthToken",value:function(){return(0,Ue.zk)().sessionStorage.getItem("Authorization")}},{key:"logout",value:function(){var n=Oe();n&&n.dispatch(Re.r.confirm())}},{key:"renewSessionTimer",value:async function(){this.throttleRenewSessionTimer()}},{key:"getBreakpoint",value:function(){return(0,Ue.D)()}},{key:"getViewportSize",value:function(){return(0,Ue.M5)()}},{key:"onResizeEvent",value:function(n){return(0,De.subscribe)(Ke.BD,function(I,M){return n(M)})}},{key:"onBreakpointChangeEvent",value:function(n){return(0,De.subscribe)(Ke.H1,function(I,M){return n(M)})}},{key:"setSystemVersion",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"latest";window.emui.version=n,this.props.systemVersion=n}},{key:"sendBAEvent",value:function(n){this.scriptingObjects.analytics.sendBAEvent(n).catch(function(){})}},{key:"getObject",value:async function(n){return this.scriptingObjects[n]}},{key:"addScriptingObject",value:function(n,I){te()(this,G)[G]&&te()(this,G)[G].addScriptingObject(n,I),te()(this,de)[de].addScriptingObject(n,I)}},{key:"dispatchEvent",value:async function(n){if(te()(this,G)[G]){var I=await Promise.all([te()(this,G)[G].dispatchEvent(n),te()(this,de)[de].dispatchEvent(n)]),M=pe()(I,2),W=M[0],X=M[1];return Array.isArray(W)&&Array.isArray(X)?W.concat(X):Promise.resolve()}return te()(this,de)[de].dispatchEvent(n)}},{key:"removeScriptingObject",value:function(n,I){te()(this,G)[G]&&te()(this,G)[G].removeScriptingObject(n,I),te()(this,de)[de].removeScriptingObject(n,I)}}],[{key:"getInstance",value:function(n){return this.instance||(this.instance=new r(n),n!=null&&n.selfInitialize||(n?.logger||Le.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}}])}();at=Fe,Fe.instance=void 0;var pt,ft,lt,ht,gt,It,wt=function(){return Fe.isInitialized()},Dt=function(){return it.h.isInitialized()},h=function(){return Dt()&&window.top===window.self},o=function(){return wt()?Fe.getInstance().getLogger():it.h.getInstance().getLogger()},l=function(r){return ht()?!0:r?r===It.PRODUCTION:!0},v=function(r){var s=ft.getInstance().getProps(),n=s.systemVersion,I=n.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,I&&I[0]||"latest")},C=function(r){var s;return r==null||(s=r.replace)===null||s===void 0?void 0:s.call(r,/\/?$/,"/")},$=function(r){var s=lt(`microFrontendApps.${r.id}`);if(!s)throw new Error(`unable to locate application configuraiton for ${r.id} under microFrontendApps section of app.config.json`);var n=s.mode,I=n===void 0?It.PRODUCTION:n,M=l(I)?s.production:s.development;s.production&&delete s.production,s.development&&delete s.development;var W=pt(r,{mode:"production",hostUrl:"./",manifestPath:"./{SYSTEM_VERSION}",isJsModule:!1},s,M);return W.hostUrl=gt(W.hostUrl.replace(/\/?$/,"/")),W.manifestPath=C(v(W.manifestPath)),W},V=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),We=e.n(V),dt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/getPrototypeOf.js"),bt=e.n(dt),Rt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/inherits.js"),Mt=e.n(Rt),Ct=function(r){var s=r.error,n=s===void 0?new Error("We are unable to process your request"):s,I=r.errorInfo,M=I===void 0?{componentStack:"Please close your browser and login again"}:I;return U()("div",{},void 0,U()("h2",{},void 0,n?.message),U()("section",{},void 0,M?.componentStack))};Ct.displayName="DefaultErrorTemplate";var Lt=e("./lib/utils/log-records.ts");function Bt(r,s,n){return s=bt()(s),We()(r,t()?Reflect.construct(s,n||[],bt()(r).constructor):s.apply(r,n))}function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!r})()}var a=function(r){function s(n){var I;return st()(this,s),I=Bt(this,s,[n]),I.state={error:null,errorInfo:null},I}return Mt()(s,r),nt()(s,[{key:"componentDidCatch",value:function(I,M){this.setState({error:I,errorInfo:M});var W=o();W&&W.error(Object.assign({},Lt.V.UNHANDLED_ERROR,{exception:I,message:I.message}))}},{key:"render",value:function(){var I=this.props,M=I.children,W=I.errorTemplate,X=W||Ct,fe=this.state,Ee=fe.error,he=fe.errorInfo;return he?U()(X,{error:Ee,errorInfo:he}):M}}])}(H.Component),f=e("./node_modules/.pnpm/react-aria-live@2.0.5_react@18.3.1/node_modules/react-aria-live/lib/index.js"),w=e("./lib/data/useAppDispatch.ts"),R=function(r,s,n){var I=r.map(function(he){return window.matchMedia(he)}),M=(0,H.useCallback)(function(){var he=I.findIndex(function(ge){return ge.matches});return typeof s[he]<"u"?s[he]:n},[n,I,s]),W=(0,H.useState)(M),X=pe()(W,2),fe=X[0],Ee=X[1];return(0,H.useEffect)(function(){var he=function(){return Ee(M)};return I.forEach(function(ge){return ge.addEventListener("change",he)}),function(){return I.forEach(function(ge){return ge.removeEventListener("change",he)})}},[M,I]),fe},T=function(){var r=(0,H.useContext)(Z.ThemeContext),s=R([`(max-width: ${r.breakpoints.small})`,`(max-width: ${r.breakpoints.medium})`,`(max-width: ${r.breakpoints.large})`,`(max-width: ${r.breakpoints.xsmall})`],["small","medium","large","xsmall"],"large"),n=(0,w.j)();(0,H.useEffect)(function(){n({type:m.change,payload:s}),(0,De.publish)(Ke.H1,s)},[s,n])},k=function(){(0,H.useEffect)(function(){if(window.ResizeObserver){var r=new ResizeObserver(function(s){(0,De.publish)(Ke.BD,s&&s[0])});return r.observe(window.document.documentElement),function(){r.unobserve(window.document.documentElement)}}return function(){}},[])},N=e("./lib/view/session-timeout/index.tsx"),Q=e("./lib/view/live-message/index.tsx"),re=e("./lib/view/error-toast/index.tsx"),J=e("./lib/view/wait-message/index.tsx");const ie=(0,Z.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(r){var s=r.theme;return s.media.small`
2
- font-size: 100%;
3
- `},function(r){return r.theme.lineHeights.m},function(r){return r.theme.fonts.default},function(r){return r.theme.colors.neutral["000"]});var ae,q,Ae,$e,Pt,ut=Z.default.div.withConfig({componentId:"sc-1ho9g5n-0"})(["height:100%;"]),Ot=function(r){var s=r.manageSession,n=r.WaitMessage,I=r.children;return T(),k(),U()(f.Ai,{},void 0,U()(ut,{},void 0,ae||(ae=U()(ie,{})),s&&(q||(q=U()(N.S,{}))),Ae||(Ae=U()(Q.I,{})),n||$e||($e=U()(J.j,{})),Pt||(Pt=U()(re.Q,{})),I))};Ot.displayName="StandAloneApp";var Ut=e("./lib/view/wait-message/use-html-wait-message.tsx"),St,jt,At,Wt=Z.default.div.withConfig({componentId:"sc-njn2ro-0"})(["height:100%;"]),yt=function(r){var s=r.WaitMessage,n=r.children;return T(),(0,Ut.t)(!0),k(),U()(Wt,{},void 0,St||(St=U()(ie,{})),s||jt||(jt=U()(J.j,{})),At||(At=U()(re.Q,{})),n)};yt.displayName="HostedApp";var Ft=function(r){var s=h()||wt();return s?(0,z.jsx)(Ot,Object.assign({},r)):(0,z.jsx)(yt,Object.assign({},r))},Ht=function(r){var s=r.store,n=r.history,I=r.basename,M=r.theme,W=M===void 0?(0,u.getDefaultTheme)():M,X=r.manageSession,fe=X===void 0?!1:X,Ee=r.WaitMessage,he=r.errorTemplate,ge=r.children,Et=r.strictMode,ni=Et===void 0?!0:Et,oi=ni?H.StrictMode:H.Fragment;return U()(oi,{},void 0,U()(a,{errorTemplate:he},void 0,U()(ct.Provider,{store:s},void 0,U()(Se,{history:n,basename:I},void 0,U()(Z.ThemeProvider,{theme:W},void 0,U()(Ft,{manageSession:fe,WaitMessage:Ee},void 0,ge))))))};Ht.displayName="AppRoot";var Nt=function(r,s,n){return U()(Ht,{store:s,history:oe.N,theme:r},void 0,n())};Nt.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(r){var s=r.base,n=s===void 0?"light":s,I=r.brandTitle,M=I===void 0?"Platform UI Components":I,W=ye()(r,zt);return(0,$t.vt)(Object.assign({base:n,brandTitle:`${M} v5.44.0`},W))},Vt=e("./node_modules/.pnpm/style-loader@2.0.0_webpack@5.108.4/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),Jt=e.n(Vt),Kt=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./lib/utils/storybook/preview.css"),kt={};kt.insert="head",kt.singleton=!1;var ri=Jt()(Kt.A,kt);const ai=Kt.A.locals||{};var Xt=(0,u.getDefaultTheme)(),Yt=Xe({},oe.N),Zt=Nt.bind(null,Xt,Yt),Qt=function(r){return{layout:"fullscreen",actions:{argTypesRegex:"^on.*"},controls:{hideNoControlsWarning:!0},docs:{theme:Gt(r)},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,Ge.y)("./")}],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,g,e){"use strict";e.d(g,{e:()=>y});var u=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),d=e("./lib/utils/micro-frontend/guest.ts"),p=e("./lib/utils/helpers.ts"),c=function(x){var P=Object.assign({},(0,u.QS)(),(0,p.np)(),x);window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push(P)},y=function(x){var P=x.data,_=x.self,E=_===void 0?!0:_;if(E)c(P);else{var i,b=(i=d.h.getInstance())===null||i===void 0?void 0:i.getHost(),m=b?.sendBAEvent;m?m(P):c(P)}}},"./lib/communication/http-client/props.ts"(j,g,e){"use strict";e.d(g,{K:()=>m});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),c=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),x=e.n(y),P=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),_=e.n(P),E=_()("resetUserIdleTime"),i=_()("endSession"),b=function(){function A(){d()(this,A),Object.defineProperty(this,E,{writable:!0,value:function(){}}),Object.defineProperty(this,i,{writable:!0,value:async function(){}})}return c()(A,[{key:"resetUserIdleTime",get:function(){return x()(this,E)[E]},set:function(S){x()(this,E)[E]=S}},{key:"endSession",get:function(){return x()(this,i)[i]},set:function(S){x()(this,i)[i]=S}}])}(),m=new b},"./lib/data/error/index.ts"(j,g,e){"use strict";e.d(g,{L:()=>x,o:()=>y});var 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"),d=e.n(u),p={description:"",messageText:""},c=(0,u.createSlice)({name:"error",initialState:p,reducers:{set:function(P,_){return _.payload},clear:function(){return p}}}),y=c.actions,x=c.reducer},"./lib/data/live-message/index.ts"(j,g,e){"use strict";e.d(g,{k:()=>x,o:()=>y});var 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"),d=e.n(u),p={message:"",ariaLive:"polite",id:""},c=(0,u.createSlice)({name:"liveMessage",initialState:p,reducers:{announce:function(P,_){var E=_.payload,i=E.message,b=E.ariaLive,m=E.id;return{message:i,ariaLive:b,id:m}}}}),y=c.actions,x=c.reducer},"./lib/data/logout/actions.ts"(j,g,e){"use strict";e.d(g,{r:()=>d});var u={CONFIRM:"log-out/CONFIRM",CANCEL:"log-out/CANCEL"},d={confirm:function(){return{type:u.CONFIRM,payload:null}},cancel:function(){return{type:u.CANCEL,payload:null}}}},"./lib/data/useAppDispatch.ts"(j,g,e){"use strict";e.d(g,{j:()=>p});var u=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"),d=e.n(u),p=function(){return(0,u.useDispatch)()}},"./lib/data/useAppSelector.ts"(j,g,e){"use strict";e.d(g,{G:()=>p});var u=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"),d=e.n(u),p=u.useSelector},"./lib/data/wait-message/actions.ts"(j,g,e){"use strict";e.d(g,{X:()=>d,k:()=>u});var u={OPEN:"wait-message/OPEN",CLOSE:"wait-message/CLOSE"},d={open:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"loading...",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{type:u.OPEN,payload:{message:p,delay:c}}},close:function(){return{type:u.CLOSE,payload:null}}}},"./lib/data/webpack-hmr.ts"(j,g,e){"use strict";e.d(g,{I:()=>d});var u=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 d=function(p){var c=null;try{var y,x;c=(y=(x=j)===null||x===void 0?void 0:x.hot)!==null&&y!==void 0?y:null}catch{c=null}c&&c.accept("./reducers",function(){(0,u.Dl)(p)})}},"./lib/utils/app-config/config.ts"(j,g,e){"use strict";e.d(g,{WE:()=>S,vF:()=>m,g3:()=>b});var u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),d=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/clone.js"),p=e.n(d),c=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),y=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),x=e.n(y);const P=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 _,E,i=P,b=function(O){i=O},m=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p()(x()(i,O,D))},A=function(O,D){return E(i,O,D)},S=function(){return i},L=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _(i,O)}},"./lib/utils/app-config/index.ts"(j,g,e){"use strict";e.d(g,{y:()=>i});var u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),d=e.n(u),p=e("./node_modules/.pnpm/core-js@3.49.0/node_modules/core-js/modules/es.array.includes.js"),c=e.n(p),y=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),x=e("./lib/utils/app-config/config.ts"),P=e("./lib/utils/window.ts"),_=function(b){var m,A,S=b.activeEnv,L=b.env[S]||{};b.env&&delete b.env,(0,x.g3)(d()(b,L)),sessionStorage.setItem("envName",S),window.emui=window.emui||{},window.emui.appId=(m=(A=(0,x.vF)("appId"))!==null&&A!==void 0?A:window.emui.appId)!==null&&m!==void 0?m:"",(0,y.nE)({envName:S})},E=function(b){return b.replace(/(\d+\.\d+)(?!.*\d+\.\d+)/,"latest")},i=async function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,P.OX)(),m=`${b.replace(/\/?$/,"/")}app.config.json`,A=E(b);try{var S=await fetch(m);if(!S.ok){if(b!==A){await i(A);return}var L=`App Config is not found at ${m}`;throw new Error(L)}var O=await S.json();_(O)}catch(B){var D;if(b!==A){await i(A);return}throw B!=null&&(D=B.message)!==null&&D!==void 0&&D.includes("Unexpected token")?new Error(`App config file at ${m} is not a valid JSON`):B}}},"./lib/utils/console-logger.ts"(j,g,e){"use strict";e.d(g,{k:()=>c});var u=e("@elliemae/pui-diagnostics"),d=e.n(u),p=e("./lib/utils/app-config/config.ts"),c=function(){return u.logger?(0,u.logger)({transport:(0,u.Console)(),index:"app",environment:(0,p.vF)("activeEnv"),team:"app team",appName:"ICEMT App",appVersion:"latest",instanceId:"",userId:""}):console}()},"./lib/utils/constants.ts"(j,g,e){"use strict";e.d(g,{BD:()=>c,H1:()=>y,J2:()=>d,eE:()=>x});const u={AUTHORIZATION:"Authorization",CLIENT_ID:"tirykwfo"};var d={WARN:12*60*1e3,EXPIRY:15*60*1e3},p=null,c="HOST_WINDOW_RESIZED",y="HOST_WINDOW_BREAKPOINT_CHANGED",x=6e4;e.d(g,["Ay",0,u])},"./lib/utils/helpers.ts"(j,g,e){"use strict";e.d(g,{E_:()=>_,np:()=>P});var u=e("./lib/utils/window.ts"),d=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),p=function(){return!0},c=function(){return d.env.CI==="true"},y=/^(?:[a-z]+:)?\/\//,x=function(E){return y.test(E)?E:new URL(E,document.location.origin).href},P=function(){var E,i,b,m,A,S,L,O=(0,u.zk)(),D=O.document.title,B=document,xe=B.title,ue=(E=O==null||(i=O.emui)===null||i===void 0?void 0:i.appId)!==null&&E!==void 0?E:"",Y=(b=O==null||(m=O.emui)===null||m===void 0?void 0:m.version)!==null&&b!==void 0?b:"",K=(A=(S=window)===null||S===void 0||(L=S.emui)===null||L===void 0?void 0:L.appId)!==null&&A!==void 0?A:"",se=O.location,ee=se.pathname,Ve=se.href,ce=window.location,ne=ce.pathname,le=ce.href;return{productId:ue,productPath:ee,productUrl:Ve,productPageTitle:D,version:Y,appId:K,appPath:ne,appUrl:le,appPageTitle:xe}},_=function(E){var i=E.promise,b=E.delay,m=E.retValue,A=m===void 0?!1:m,S=E.throwError,L=S===void 0?!1:S,O=E.errMsg;return Promise.race([i,new Promise(function(D,B){setTimeout(function(){L?B(new Error(O)):D(A)},b)})])}},"./lib/utils/history.ts"(j,g,e){"use strict";e.d(g,{N:()=>p,w:()=>c});var u=e("./node_modules/.pnpm/history@5.3.0/node_modules/history/umd/history.production.min.js"),d=e.n(u),p=(0,u.createBrowserHistory)(),c=(0,u.createMemoryHistory)()},"./lib/utils/log-records.ts"(j,g,e){"use strict";e.d(g,{V:()=>u});var u={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(d){return{code:"appsdk05",message:`Application load failed. unable to locate ${d} in the manifest`}},APP_INIT_FAILED:function(d,p,c){return{code:"appsdk06",message:`Application load failed. Unable to load one or more application resources for appId: ${d} and instanceId: ${p}. ${c}`}},APP_LOADING:function(d,p){return{code:"appsdk07",message:`Application ${d} with instanceId ${p} is loading...`}},APP_LOADING_COMPLETE:function(d,p){return{code:"appsdk08",message:`Application ${d} loaded with instanceId ${p}`}},APP_UNLOADING:function(d,p){return{code:"appsdk09",message:`Application ${d} with instanceId ${p} unloading...`}},APP_UNLOADING_COMPLETE:function(d,p){return{code:"appsdk10",message:`Application ${d} with instanceId ${p} unloaded`}},SSF_HOST_OBJECT_NOT_FOUND:function(d){return{code:"appsdk11",message:`Parent window doesn't expose SSF Object named ${d}`}},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,g,e){"use strict";e.d(g,{B:()=>d,t:()=>p});var u=null,d=function(c){u=c},p=function(){return u}},"./lib/utils/logrocket.ts"(j,g,e){"use strict";e.d(g,{K3:()=>E,Te:()=>x});var u,d,p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),x=function(){var i;return(i=window.emui)===null||i===void 0?void 0:i.logRocket},P=function(i){var b={};return Object.entries(i).forEach(function(m){var A=u(m,2),S=A[0],L=A[1];b[S]=L??""}),b},_=function(i,b){var m=x();m&&(m.identify(i,P(b)),d(i))},E=function(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,y.As)(i,b)}},"./lib/utils/micro-frontend/app-bridge.ts"(j,g,e){"use strict";e.d(g,{b:()=>y});var u=e("./node_modules/.pnpm/@elliemae+pui-app-bridge@2.29.0_@elliemae+pui-diagnostics@3.12.6_@elliemae+pui-logrocket@1.3._a3wvyjkzxvlfw6hybwiifbsika/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"),d=e("./lib/utils/logger.ts"),p=e("./lib/utils/app-config/config.ts"),c=null,y=async function(){if(!c){var x,P,_,E=(0,d.t)(),i=((x=window.emui)===null||x===void 0?void 0:x.version)||"latest";c=new u.o({logger:E,version:i,appConfigBaseUrl:(P=window)===null||P===void 0||(_=P.emui)===null||_===void 0?void 0:_._ASSET_PATH}),await c.init((0,p.WE)());var b=(0,p.vF)("microFrontendApps");b&&Object.keys(b).forEach(function(m){return c.warmUp(m)})}return c}},"./lib/utils/micro-frontend/guest.ts"(j,g,e){"use strict";e.d(g,{h:()=>Ke});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),x=e.n(y),P=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),_=e.n(P),E=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),i=e.n(E),b=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),m=e.n(b),A=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),S=e.n(A),L=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),O=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),D=e("./node_modules/.pnpm/@elliemae+ssf-guest@2.29.0_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"),B=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),xe=e("./lib/utils/window.ts"),ue=e("./lib/utils/app-config/index.ts"),Y=e("./lib/utils/app-config/config.ts"),K=e("./lib/utils/history.ts"),se=e("./lib/utils/console-logger.ts"),ee=e("./lib/utils/logger.ts"),Ve=e("./node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js"),ce,ne="storage",le="getSessionStorage",we="sessionStorage",ve=function(){return sessionStorage.length===0},ke=function(h){if(h.key===le)localStorage.setItem(we,JSON.stringify(sessionStorage)),localStorage.removeItem(we);else if(h.key===we&&h.newValue){var o=JSON.parse(h.newValue);o&&Object.keys(o).forEach(function(l){sessionStorage.setItem(l,o[l])})}},Je=null,Be=function(){window.addEventListener(ne,ke),ve()&&localStorage.setItem(le,`${Date.now()}`)},_e=function(){window.removeEventListener(ne,ke)},Pe=e("./lib/utils/micro-frontend/app-bridge.ts"),be=e("./lib/utils/helpers.ts"),He=e("./lib/utils/micro-frontend/ssf-host.ts"),Oe=function(){var h,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;if(o){var l=o,v=(h=l.emui)===null||h===void 0?void 0:h._ASSET_PATH;if(v){l.__webpack_public_path__=new URL("../",v).href;return}l.__webpack_public_path__=(l.__webpack_public_path__||"").replace(/\/?$/,"/")}},me=["history"],Xe,tt="app-container",U=2e3,oe=function(){try{return window.parent.document,!1}catch{return!0}},H=function(h){return h.SSF="ssf",h.APPSDK="app-sdk",h}(H||{}),ct="module.unmount",Z=m()("uuid"),F=m()("communicationMethod"),pe=m()("ssfHostRef"),Ne=m()("useV2Guest"),ye=m()("selfInitialize"),ze=m()("embeddedWithoutHost"),z=m()("appBridge"),Te=m()("pendingInitialRoute"),Se=m()("hostTeardownPromise"),je=m()("moduleUnmountSubToken"),it=m()("handleModuleUnmount"),Ye=m()("boundOnWindowUnload"),st=m()("addAppToGlobalVariable"),Ze=m()("removeLegacyGlobalRegistration"),nt=m()("onWindowUnload"),Qe=m()("resolveHistory"),te=m()("discoverHost"),Ie=m()("exposeGetHost"),qe=m()("initAppBridge"),vt=m()("applyModuleParams"),mt=m()("applyHistoryFromParams"),De=m()("applyInitialRoute"),Ce=m()("loadConfigAndBridge"),ot=m()("trackAnalyticsAndOnInit"),Re=m()("internalTeardown"),et=m()("bindModuleUnmountListener"),Ge=m()("unbindModuleUnmountListener"),Le=m()("completeWithoutHost"),xt=m()("fetchModuleScriptingObject"),Ke=function(){function h(o){var l=this,v,C,$;x()(this,h),Object.defineProperty(this,xt,{value:Dt}),Object.defineProperty(this,Le,{value:wt}),Object.defineProperty(this,Ge,{value:It}),Object.defineProperty(this,et,{value:gt}),Object.defineProperty(this,Re,{value:ht}),Object.defineProperty(this,ot,{value:lt}),Object.defineProperty(this,Ce,{value:ft}),Object.defineProperty(this,De,{value:pt}),Object.defineProperty(this,mt,{value:Fe}),Object.defineProperty(this,vt,{value:Me}),Object.defineProperty(this,qe,{value:G}),Object.defineProperty(this,Ie,{value:de}),Object.defineProperty(this,te,{value:at}),Object.defineProperty(this,Qe,{value:rt}),Object.defineProperty(this,nt,{value:_t}),Object.defineProperty(this,Ze,{value:Tt}),Object.defineProperty(this,st,{value:Ue}),Object.defineProperty(this,Z,{writable:!0,value:void 0}),this.logger=void 0,this.appId=void 0,this.props=void 0,Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,pe,{writable:!0,value:void 0}),Object.defineProperty(this,Ne,{writable:!0,value:void 0}),Object.defineProperty(this,ye,{writable:!0,value:void 0}),Object.defineProperty(this,ze,{writable:!0,value:void 0}),Object.defineProperty(this,z,{writable:!0,value:null}),Object.defineProperty(this,Te,{writable:!0,value:null}),Object.defineProperty(this,Se,{writable:!0,value:null}),Object.defineProperty(this,je,{writable:!0,value:null}),Object.defineProperty(this,it,{writable:!0,value:async function(){return await i()(l,Re)[Re](),!0}}),Object.defineProperty(this,Ye,{writable:!0,value:function(){i()(l,nt)[nt]()}}),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=((v=window.emui)===null||v===void 0?void 0:v.appId)||(0,Y.vF)("appId"),i()(this,Z)[Z]=window.emui.uuid,i()(this,F)[F]=H.APPSDK,this.props={host:null,hostUrl:null,prevState:null,history:o?.history||K.N,theme:(0,O.getDefaultTheme)(),manifestPath:"./latest",containerId:tt},this.logger=o?.logger||se.k,(0,ee.B)(this.logger),o!=null&&o.ssfHostRef&&(0,He.Z)(o.ssfHostRef),i()(this,pe)[pe]=(0,He.F)(),i()(this,Ne)[Ne]=o?.useV2Guest!==!1,i()(this,ye)[ye]=(C=o?.selfInitialize)!==null&&C!==void 0?C:!1,i()(this,ze)[ze]=($=o?.embeddedWithoutHost)!==null&&$!==void 0?$:!1,this.onInit=o?.onInit,this.onMount=o?.onMount,this.onUnmount=o?.onUnmount,this.onGetRef=o?.onGetRef,i()(this,ze)[ze]&&!i()(this,ye)[ye]&&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),i()(this,ye)[ye]?window.addEventListener("beforeunload",i()(this,Ye)[Ye]):i()(this,st)[st]()}return _()(h,[{key:"getHost",value:function(){return this.props.host}},{key:"getLogger",value:function(){return this.logger}},{key:"getObject",value:function(l){var v=null;return i()(this,F)[F]===H.SSF?(v=this.getHost(),v.getObject(l)):(v=this.getHost(),v?v.getObject(l):Promise.resolve(null))}},{key:"subscribe",value:function(l){var v=null;return i()(this,F)[F]===H.SSF?(v=this.getHost(),v.subscribe(l)):(v=this.getHost(),v.subscribe(l))}},{key:"unsubscribe",value:function(l){var v=null;if(i()(this,F)[F]===H.SSF){v=this.getHost(),v.unsubscribe(l);return}v=this.getHost(),v.unsubscribe(l)}},{key:"getProps",value:function(){return this.props}},{key:"getSessionStorageItem",value:function(l){var v=sessionStorage.getItem(l),C=this.getHost();return!v&&C!==null&&C!==void 0&&C.getItem&&(v=C.getItem(l)),v}},{key:"findHost",value:async function(){var l=null;if(!oe()){var v,C,$;l=(v=(C=window.parent)===null||C===void 0||($=C.emui)===null||$===void 0?void 0:$.MicroAppHost)!==null&&v!==void 0?v:null}return!l&&i()(this,Ne)[Ne]&&(l=new D.p({appLogger:this.logger}),await(0,be.E_)({promise:l.connect(),delay:1e3,retValue:!1})?l=null:i()(this,F)[F]=H.SSF),l}},{key:"uuid",get:function(){return i()(this,Z)[Z]}},{key:"initialize",value:async function(){Oe();var l=window.top===window.self&&!window.opener;if(l)return await i()(this,Ce)[Ce](),i()(this,Le)[Le]("standalone");if(i()(this,ze)[ze])return await i()(this,Ce)[Ce](),i()(this,Le)[Le]("embeddedWithoutHost");var v=await Promise.all([i()(this,te)[te](),i()(this,Ce)[Ce]()]),C=c()(v,1),$=C[0];if(!$)return i()(this,Le)[Le]("discoveryFallback");this.props.host=$,i()(this,Ie)[Ie]();var V={moduleId:this.appId};try{var We=await i()(this,xt)[xt]();We?(V=await We.getParameters(),i()(this,vt)[vt](V)):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 i()(this,ot)[ot](),i()(this,et)[et](),V}},{key:"init",value:async function(l){var v=this,C=l??{},$=C.history,V=d()(C,me);if(this.props=S()(this.props,V),!this.props.host){var We=await this.findHost();We?this.props.host=We:this.logger.warn("unable to connect to host microapp")}return i()(this,Ie)[Ie](),Oe(),(0,ue.y)().then(function(){var dt=v.getSessionStorageItem("instanceId")||"",bt=v.getSessionStorageItem("userId")||"";(0,B.nE)({appId:v.appId,instanceId:dt,userId:bt});var Rt=i()(v,Qe)[Qe]($);return!Rt&&l!==null&&l!==void 0&&l.initialRoute&&(i()(v,Te)[Te]=typeof l.initialRoute=="string"?l.initialRoute:l.initialRoute.pathname||null),(0,Pe.b)().then(function(Mt){i()(v,z)[z]=Mt,v.onInit&&v.onInit(v.props),i()(v,et)[et]()})})}},{key:"mount",value:function(){var l=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{containerId:tt};return this.props.containerId=v?.containerId,Promise.resolve().then(function(){i()(l,Te)[Te]&&(l.props.history.push(i()(l,Te)[Te]),i()(l,Te)[Te]=null),l.onMount&&l.onMount(v)})}},{key:"unmount",value:function(l){var v=this;return _e(),Promise.resolve().then(function(){return v.onUnmount?v.onUnmount(l):null})}},{key:"getRef",value:function(){return this.onGetRef?this.onGetRef():null}},{key:"navigate",value:function(l,v){l&&this.props.history.push(l,v)}},{key:"addScriptingObject",value:function(l,v){i()(this,z)[z]&&i()(this,z)[z].addScriptingObject(l,v),i()(this,pe)[pe].addScriptingObject(l,v)}},{key:"dispatchEvent",value:async function(l){if(i()(this,z)[z]){var v=await Promise.all([i()(this,z)[z].dispatchEvent(l),i()(this,pe)[pe].dispatchEvent(l)]),C=c()(v,2),$=C[0],V=C[1];return Array.isArray($)&&Array.isArray(V)?$.concat(V):Promise.resolve()}return i()(this,pe)[pe].dispatchEvent(l)}},{key:"removeScriptingObject",value:function(l,v){i()(this,z)[z]&&i()(this,z)[z].removeScriptingObject(l,v),i()(this,pe)[pe].removeScriptingObject(l,v)}}],[{key:"getInstance",value:function(l){return this.instance||(this.instance=new h(l),l!=null&&l.selfInitialize||(l?.logger||se.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 l,v;return!!((l=this.instance)!==null&&l!==void 0&&(v=l.props)!==null&&v!==void 0&&v.host)}}])}();Xe=Ke;function Ue(){var h=this,o=(0,xe.zk)();if(o){o.emui=o.emui||{};var l=this.unmount.bind(this),v={uuid:i()(this,Z)[Z],init:this.init.bind(this),mount:this.mount.bind(this),unmount:function(V){return V!=null&&V.containerId&&(h.props.containerId=V.containerId),h.props.host?i()(h,Re)[Re]().then(function(){return null}):l(V)},getRef:this.getRef.bind(this),navigate:this.navigate.bind(this)};if(o.emui[this.appId])if(Array.isArray(o.emui[this.appId])){var C=o.emui[this.appId],$=C.findIndex(function(V){return V.uuid===i()(h,Z)[Z]});$>-1?C[$]=v:C.push(v)}else o.emui[this.appId].uuid===i()(this,Z)[Z]?o.emui[this.appId]=v:typeof o.emui[this.appId].init>"u"?o.emui[this.appId]=Object.assign({},o.emui[this.appId],v):o.emui[this.appId]=[o.emui[this.appId],v];else o.emui[this.appId]=v;window.emui.app=v,window.addEventListener("beforeunload",i()(this,Ye)[Ye])}}function Tt(){var h=this;if(!i()(this,ye)[ye]){var o=(0,xe.zk)();if(o!=null&&o.emui){if(Array.isArray(o.emui[this.appId])){var l=o.emui[this.appId],v=l.findIndex(function(C){return C.uuid===i()(h,Z)[Z]});v>-1&&l.splice(v,1),l.length===0&&delete o.emui[this.appId]}else delete o.emui[this.appId];delete window.emui.app}}}function _t(){if(this.props.host){i()(this,Re)[Re]().catch(function(){});return}if(!i()(this,ye)[ye]){i()(this,Ze)[Ze](),this.unmount({containerId:this.props.containerId}).catch(function(){});return}i()(this,Re)[Re]().catch(function(){})}function rt(h){if(i()(this,F)[F]===H.SSF)return this.props.history=K.N,!1;var o=(0,Y.vF)("useParentHistory",!0);return o&&h?this.props.history=h:!o&&window!==window.parent&&(this.props.history=K.w),o}async function at(){var h;if((h=window.emui)!==null&&h!==void 0&&h.__host)return window.emui.__host;if(!oe()){var o,l,v,C=(o=(l=window.parent)===null||l===void 0||(v=l.emui)===null||v===void 0?void 0:v.MicroAppHost)!==null&&o!==void 0?o:null;if(C)return C}if(i()(this,Ne)[Ne]){var $=new D.p({appLogger:this.logger}),V=await(0,be.E_)({promise:$.connect(),delay:1e3,retValue:!0});if(!V)return i()(this,F)[F]=H.SSF,$}return null}function de(){var h=this;window.emui=window.emui||{},window.emui.getHost=function(){var o;return(o=h.props.host)!==null&&o!==void 0?o:null}}async function G(){i()(this,z)[z]=await(0,Pe.b)()}function Me(h){h.homeRoute&&(this.props.homeRoute=h.homeRoute),h.theme&&(this.props.theme=h.theme),h.hostUrl&&(this.props.hostUrl=h.hostUrl),h.manifestPath&&(this.props.manifestPath=h.manifestPath),h.containerId&&(this.props.containerId=h.containerId),i()(this,mt)[mt](h)}function Fe(h){if(i()(this,F)[F]===H.SSF){this.props.history=K.N;return}var o=(0,Y.vF)("useParentHistory",!0);o&&h.history?this.props.history=h.history:!o&&window!==window.parent&&(this.props.history=K.w),i()(this,De)[De](h,o)}function pt(h,o){if(!(!h.initialRoute||o)){var l=typeof h.initialRoute=="string"?h.initialRoute:h.initialRoute.pathname;l&&this.props.history.push(l)}}async function ft(){await(0,ue.y)(),await i()(this,qe)[qe]()}function lt(){var h=this.getSessionStorageItem("instanceId")||"",o=this.getSessionStorageItem("userId")||"";(0,B.nE)({appId:this.appId,instanceId:h,userId:o}),this.onInit&&this.onInit(this.props)}function ht(){var h=this;return i()(this,Se)[Se]||(i()(this,Se)[Se]=Promise.resolve().then(function(){i()(h,Ze)[Ze]()}).then(function(){return h.unmount({containerId:h.props.containerId})}).then(function(){i()(h,Ge)[Ge]()}).catch(function(o){throw i()(h,Se)[Se]=null,o})),i()(this,Se)[Se]}function gt(){i()(this,je)[je]||!this.props.host||(i()(this,je)[je]=this.subscribe({eventId:ct,callback:i()(this,it)[it]}))}function It(){i()(this,je)[je]&&(this.unsubscribe({eventId:ct,token:i()(this,je)[je]}),i()(this,je)[je]=null)}function wt(h){return h==="standalone"?(this.logger.info("Running in standalone mode \u2014 skipping host discovery"),i()(this,Ie)[Ie](),i()(this,Qe)[Qe]()):h==="embeddedWithoutHost"?(this.logger.info("embeddedWithoutHost enabled \u2014 skipping host discovery"),i()(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."),i()(this,Ie)[Ie]()),i()(this,ot)[ot](),{moduleId:this.appId}}async function Dt(){var h="module",o=this.getObject(h);return i()(this,F)[F]!==H.SSF?o:(0,be.E_)({promise:o,delay:U,throwError:!0,errMsg:`Timed out waiting for module scripting object from host (${U}ms)`})}Ke.instance=void 0},"./lib/utils/micro-frontend/ssf-host.ts"(j,g,e){"use strict";e.d(g,{F:()=>x,Z:()=>P});var u=e("./node_modules/.pnpm/@elliemae+ssf-host@2.29.0_@elliemae+pui-diagnostics@3.12.6/node_modules/@elliemae/ssf-host/dist/esm/host.js"),d=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"),p=e("./lib/utils/logger.ts"),c=e("./lib/utils/app-config/config.ts"),y=null,x=function(){if(!y){var _=(0,p.t)();y=new u.P((0,c.vF)("appId"),{logger:_,analyticsObj:new d.j({logger:_})})}return y},P=function(_){y||(y=_)}},"./lib/utils/page-wake.ts"(j,g,e){"use strict";e.d(g,{v:()=>u});var u=function(d){var p=!1,c=function(){p||(p=!0,queueMicrotask(function(){p=!1,d()}))},y=function(){document.hidden||c()};return document.addEventListener("visibilitychange",y),window.addEventListener("pageshow",c),window.addEventListener("focus",c),function(){document.removeEventListener("visibilitychange",y),window.removeEventListener("pageshow",c),window.removeEventListener("focus",c)}}},"./lib/utils/session-timeout-config.ts"(j,g,e){"use strict";e.d(g,{BH:()=>y,Gw:()=>P,vG:()=>_});var u=e("./lib/utils/app-config/config.ts"),d=e("./lib/utils/constants.ts"),p,c,y=function(){p=void 0,c=void 0},x=function(E,i){var b=(0,u.vF)(E);if(b==null||b==="")return i;var m=Number(b);return Number.isFinite(m)&&m>0?m:i},P=function(){return p===void 0&&(p=x("sessionTimeoutWarnInterval",d.J2.WARN)),p},_=function(){if(c===void 0){var E=P(),i=x("sessionTimeoutInterval",d.J2.EXPIRY);c=i>E?i:E+1}return c}},"./lib/utils/session.ts"(j,g,e){"use strict";e.d(g,{lQ:()=>bt,LC:()=>Rt,KB:()=>l,oB:()=>o,z3:()=>V,lD:()=>Lt,n5:()=>Ct,Lw:()=>Mt});var u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),d=e.n(u),p=function(t){window.emui.loginParams=Object.assign({redirectUri:new URL(window.location.href).href},t)},c=function(){if(!window.emui.loginParams){var t=JSON.parse(sessionStorage.getItem("user")||"{}"),a=t.client_id||"",f=t.scope||"";window.emui.loginParams={clientId:a,scope:f}}return window.emui.loginParams},y=e("./lib/utils/constants.ts"),x,P=function(){return sessionStorage.getItem(y.Ay.AUTHORIZATION)||""},_=function(t){sessionStorage.setItem(x.AUTHORIZATION,t)},E=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),i=e("./node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/axios.js"),b=e("./lib/utils/app-config/config.ts"),m=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),A=e.n(m),S;function L(t,a){var f=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!f){if(Array.isArray(t)||(f=O(t))||a&&t&&typeof t.length=="number"){f&&(t=f);var w=0,R=function(){};return{s:R,n:function(){return w>=t.length?{done:!0}:{done:!1,value:t[w++]}},e:function(Q){throw Q},f:R}}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 T,k=!0,N=!1;return{s:function(){f=f.call(t)},n:function(){var Q=f.next();return k=Q.done,Q},e:function(Q){N=!0,T=Q},f:function(){try{k||f.return==null||f.return()}finally{if(N)throw T}}}}function O(t,a){if(t){if(typeof t=="string")return D(t,a);var f={}.toString.call(t).slice(8,-1);return f==="Object"&&t.constructor&&(f=t.constructor.name),f==="Map"||f==="Set"?Array.from(t):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?D(t,a):void 0}}function D(t,a){(a==null||a>t.length)&&(a=t.length);for(var f=0,w=Array(a);f<a;f++)w[f]=t[f];return w}var B=function(t){return t},xe=function(t,a){var f,w;a=a||S,(f=a)!==null&&f!==void 0&&(w=f.interceptors)!==null&&w!==void 0&&w.response&&a.interceptors.response.eject(t)},ue=function(t){var a=t.config.retryConfig;if(!a||a.retry===0||!t.response&&(a.currentRetryAttempt||0)>=a.noResponseRetries||!t.config.method||a.httpMethodsToRetry.indexOf(t.config.method.toUpperCase())<0)return!1;if(t.response&&t.response.status){var f=!1,w=L(a.statusCodesToRetry),R;try{for(w.s();!(R=w.n()).done;){var T=R.value,k=A()(T,2),N=k[0],Q=k[1],re=t.response.status;if(re>=N&&re<=Q){f=!0;break}}}catch(J){w.e(J)}finally{w.f()}if(!f)return!1}return a.currentRetryAttempt=a.currentRetryAttempt||0,!(a.currentRetryAttempt>=a.retry)},Y=function(t){if(!t.config)return Promise.reject(t);var a=t.config.retryConfig||{};a.currentRetryAttempt=a.currentRetryAttempt||0,a.retry=a.retry===void 0||a.retry===null?3:a.retry,a.retryDelay=a.retryDelay||100,a.instance=a.instance||i.A,a.httpMethodsToRetry=a.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],a.noResponseRetries=a.noResponseRetries===void 0||a.noResponseRetries===null?2:a.noResponseRetries;var f=[[100,199],[429,429],[500,599]];a.statusCodesToRetry=a.statusCodesToRetry||f,t.config.retryConfig=a;var w=a.shouldRetry||ue;if(!w(t))return Promise.reject(t);var R=new Promise(function(k){var N=(2**a.currentRetryAttempt-1)/2*1e3;t.config.retryConfig.currentRetryAttempt+=1,setTimeout(k,N)}),T=a.onRetryAttempt?Promise.resolve(a.onRetryAttempt(t)):Promise.resolve();return Promise.resolve().then(function(){return R}).then(function(){return T}).then(function(){return a.instance.request(t.config)})},K=function(t){var a,f;return t=t||i.A,(a=t)!==null&&a!==void 0&&(f=a.interceptors)!==null&&f!==void 0&&f.response?t.interceptors.response.use(B,Y):null},se=function(t){return t&&t.config?t.config.retryConfig:null},ee=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(a){var f=se(a);f&&f.currentRetryAttempt}}},Ve=function(t){t!=null&&t.defaults&&(t.defaults.retryConfig=ee(t)),K(t)};const ce=Ve;var ne=e("./lib/communication/http-client/props.ts"),le=function(t){return ne.K.resetUserIdleTime(),t},we=401,ve=null,ke=function(t){ve=t},Je=function(t){return t},Be=function(t){var a=(t||{}).response||{},f=a.status;if(f===we){if(ve&&typeof ve=="function")return ve(t).then(function(w){var R=t.config;if(!(R!=null&&R.headers))throw t;return R.headers.Authorization=w,new Promise(function(T,k){i.A.request(R).then(T).catch(k)})}).catch(function(w){return Promise.reject(w)});if(ne.K.endSession)return ne.K.endSession(Object.assign({},c(),{skipRevoke:!0})).then(function(){return Promise.reject(t)}).catch(function(){return Promise.reject(t)})}return Promise.reject(t)},_e=e("./lib/utils/logrocket.ts"),Pe,be,He=null,Oe=2*60*1e3,me=function(){var t,a,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=f.baseURL,R=w===void 0?(0,b.vF)("serviceEndpoints.api",""):w,T=f.headers,k=T===void 0?{}:T,N=f.sendLogRocketSessionHeader,Q=N===void 0?!1:N,re=((t=(0,_e.Te)())===null||t===void 0?void 0:t.sessionURL)||"",J=i.A.create({baseURL:R,headers:Q&&re?Object.assign({},k,{"X-LogRocket-URL":re}):k});J!=null&&(a=J.defaults)!==null&&a!==void 0&&a.timeout&&(J.defaults.timeout=Oe),ce(J);var ie=J?.interceptors||{},ae=ie.request,q=ie.response;return ae&&ae.use(le),q&&q.use(Je,Be),J},Xe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.baseURL,f=t.headers,w=f===void 0?{}:f,R=t.sendLogRocketSessionHeader,T=R===void 0?!1:R,k=Pe(t,He);return me(Object.assign({baseURL:a,headers:Object.assign({Authorization:be()},w),sendLogRocketSessionHeader:T},k))},tt,U=async function(t){var a=t.code,f=t.clientId,w=t.scope,R=t.redirectUri,T=new URLSearchParams;T.append("grant_type","authorization_code"),T.append("client_id",f),T.append("redirect_uri",R),T.append("scope",w),T.append("code",a);var k=await tt().post("/oauth2/v1/token",T),N=k.data;return{tokenType:N.token_type,accessToken:N.access_token}},oe=async function(t){var a=t.clientId,f=t.token,w=new URLSearchParams;w.append("token",f),w.append("client_id",a),await me().post("/oauth2/v1/token/revocation",w)},H=async function(t){var a=t.clientId,f=t.accessToken,w=new URLSearchParams;w.append("token",f),w.append("client_id",a);var R=await me().post("/oauth2/v1/token/introspection",w),T=R.data;return T},ct=e("./lib/utils/logger.ts"),Z=e("./lib/utils/log-records.ts"),F=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),pe=e("./lib/analytics/index.ts"),Ne,ye,ze=function(t){var a=t.instanceId,f=t.userId;Ne({instanceId:a,userId:f}),ye({data:{event:"login"}})},z=function(){(0,pe.e)({data:{event:"logout"}}),(0,F.nE)({instanceId:"",userId:""})},Te=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),Se,je,it,Ye,st,Ze,nt,Qe,te,Ie,qe,vt,mt,De,Ce="serviceEndpoints.idp",ot=function(){return!!te()},Re=function(){var t=new URL(window.location.href),a=t.searchParams.get("code")||"",f=t.searchParams.get("error_code")||"";return t.search="",{code:a,idpErrorCode:f,redirectUri:t.href}},et=function(t){var a=t.clientId,f=t.redirectUri,w=t.idpErrorCode,R=t.scope,T=t.responseType,k=t.instanceId,N=t.siteId,Q=t.userId,re=t.disableRememberMe,J=t.useCompactIdpPage,ie=t.isSSO,ae=qe(Ce,""),q=new URL("/authorize",ae),Ae=Object.assign({client_id:a,redirect_uri:f,response_type:T??"",scope:R},k!==void 0&&{instance_id:String(k)},N!==void 0&&{site_id:String(N)},Q!==void 0&&{user_id:Q},re!==void 0&&{disable_remember_me:String(re)},J!==void 0&&{tpoifr:String(J)},ie!==void 0&&{is_sso:String(ie)}),$e=new URLSearchParams(w?Object.assign({},Ae,{error_code:w}):Ae);q.search=$e.toString(),window.location.replace(q.href)},Ge=async function(t){var a=t.clientId,f=t.redirectUri,w=t.responseType,R=t.scope,T=t.code,k=T===void 0?"":T,N=t.customLogoutUrl,Q=N===void 0?"":N,re=t.skipRevoke,J=re===void 0?!1:re;try{var ie=P();sessionStorage.clear();var ae=ie?ie.split(" ")[1]:"";J||await oe({clientId:a,token:ae}),z(),(0,_e.K3)("logout"),(0,Te.E3)(),(0,F.nE)({instanceId:"",userId:""});var q;if(Q)q=new URL("/",Q);else{var Ae=(0,b.vF)(Ce,"");q=new URL("/authorize",Ae);var $e=Object.assign({client_id:a,redirect_uri:f||""},k&&{error_code:k},{response_type:w||"",scope:R}),Pt=new URLSearchParams($e);q.search=Pt.toString()}window.location.replace(q.href)}catch(Ot){var ut;(ut=(0,ct.t)())===null||ut===void 0||ut.error(Object.assign({},Z.V.LOGOUT_FAILED,{exception:Ot}))}},Le=async function(t){var a=t.code,f=t.redirectUri,w=t.clientId,R=t.scope,T=t.responseType,k=t.isConsumerUser;try{var N=await it({code:a,clientId:w,scope:R,redirectUri:f}),Q=N.tokenType,re=N.accessToken;mt({clientId:w,scope:R,responseType:T,redirectUri:f});var J=`${Q} ${re}`;Ie(J);var ie=await Ye({clientId:w,accessToken:re});sessionStorage.setItem("user",JSON.stringify(ie));var ae=ie.encompass_instance_id,q=ie.user_name,Ae=ie.bearer_token,$e=ie.user_key,Pt={bearerToken:Ae,realm:ae,userName:q,sessionId:Ae?.replace(`${ae} `,"")};sessionStorage.setItem("cred",JSON.stringify(Pt)),sessionStorage.setItem("instanceId",ae),sessionStorage.setItem("userId",q),Ze({instanceId:ae,userId:q}),Se({instanceId:ae,userId:q});var ut={name:q,instanceId:ae};nt($e,ut),Qe("login",ut);var Ot=await st({userName:q,isConsumerUser:k});sessionStorage.setItem("userSettings",JSON.stringify(Ot));var Ut=new URL(f).pathname;je.replace(Ut)}catch(yt){var St,jt,At,Wt=yt==null||(St=yt.response)===null||St===void 0||(jt=St.data)===null||jt===void 0?void 0:jt.code;await Ge({clientId:w,redirectUri:f,code:Wt,scope:R,responseType:T}),(At=De())===null||At===void 0||At.error(Object.assign({},vt.LOGIN_FAILED,{exception:yt}))}},xt=async function(t){var a=t.clientId,f=t.scope,w=t.responseType,R=t.isConsumerUser,T=t.instanceId,k=t.siteId,N=t.userId,Q=t.disableRememberMe,re=t.useCompactIdpPage,J=t.isSSO,ie=Re(),ae=ie.code,q=ie.idpErrorCode,Ae=ie.redirectUri,$e={clientId:a,scope:f,responseType:w,redirectUri:Ae,code:ae,idpErrorCode:q,isConsumerUser:R,instanceId:T,siteId:k,userId:N,disableRememberMe:Q,useCompactIdpPage:re,isSSO:J};return ae?(await Le($e),{authorized:!0}):(et($e),{authorized:!1})},Ke=e("./lib/utils/page-wake.ts"),Ue=e("./lib/utils/session-timeout-config.ts"),Tt,_t,rt=Date.now(),at=[],de=[],G=[],Me=["click","scroll","keypress","touchstart"],Fe=!1,pt=!1,ft,lt,ht,gt=function(){pt=!1,Fe=!1,ht=null},It=function(){return Date.now()-rt>(0,Ue.Gw)()},wt=function(){return Date.now()-rt>(0,Ue.vG)()},Dt=function(){return Promise.resolve().then(function(){de.forEach(function(t){return t()})})},h=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gt(),rt=Date.now(),Promise.resolve().then(function(){G.forEach(function(a){return a(t)})}).catch(function(){})},o=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;We(t===!0)&&h(t)},l=async function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(We(t===!0)){var a=c();try{if(h(!0),a!=null&&a.clientId){var f=P();if(!f)throw new Error("Authorization token not found to extend session");var w=f.split(" ")[1];await H({clientId:a.clientId,accessToken:w})}}catch(T){var R;(R=(0,ct.t)())===null||R===void 0||R.error(Object.assign({},Z.V.SESSION_RENEWAL_FAILED,{exception:T})),await Ge(Object.assign({},a,{skipRevoke:!0}))}}},v=d()(function(){l().catch(function(){})},y.eE,{leading:!0}),C=function(){Me.forEach(function(t){document.removeEventListener(t,v)})},$=function(){Fe=!0,ht=Date.now(),C(),Promise.resolve().then(function(){at.forEach(function(t){return t(ht)})}).catch(function(){})},V=function(){var t;C(),(t=lt)===null||t===void 0||t(),lt=void 0,clearInterval(ft),gt(),at.length=0,de.length=0};function We(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return pt?!1:wt()?(pt=!0,Dt().then(function(){V()}).catch(function(){}),!1):!Fe&&It()?($(),!1):!(Fe&&!t)}var dt=function(t,a){var f=t.findIndex(function(w){return w===a});f>-1&&t.splice(f,1)},bt=function(){Me.forEach(function(t){document.addEventListener(t,v)})},Rt=function(){var t;clearInterval(ft),(t=lt)===null||t===void 0||t(),C(),(0,Ue.BH)(),gt(),bt(),lt=(0,Ke.v)(We),ft=setInterval(We,1e3)},Mt=function(t){return at.push(t),dt.bind(null,at,t)},Ct=function(t){return de.push(t),dt.bind(null,de,t)},Lt=function(t){return G.push(t),dt.bind(null,G,t)},Bt=function(t,a){if(!t)return function(){};var f=Tt(a,_t,{leading:!0});return Me.forEach(function(w){return t.addEventListener(w,f)}),function(){Me.forEach(function(w){return t.removeEventListener(w,a)}),Me.forEach(function(w){return t.removeEventListener(w,f)})}}},"./lib/utils/window.ts"(j,g,e){"use strict";e.d(g,{D:()=>x,M5:()=>c,OX:()=>P,zk:()=>p});var u=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),d=e.n(u),p=function(){try{return window.parent.document,window.parent}catch{return window}},c=function(){return{width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},y=function(_){return Number(_?.replace("px",""))},x=function(){var _=c(),E=_.width,i=(0,u.getDefaultTheme)(),b=i.breakpoints;return E<=y(b.small)?"small":E<=y(b.medium)?"medium":E<=y(b.xsmall)?"xsmall":"large"},P=function(){var _,E,i,b,m=((_=window)===null||_===void 0||(E=_.emui)===null||E===void 0?void 0:E._ASSET_PATH)||"latest/";if(!((i=window.emui)!==null&&i!==void 0&&i.version))return m;var A=(b=window.emui)===null||b===void 0?void 0:b.version.match(/^(?:\d+\.\d+)*/g);return A&&A[0]?m.replace("latest/",`${A[0]}/`):m}},"./lib/view/error-toast/index.tsx"(j,g,e){"use strict";e.d(g,{Q:()=>m});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),d=e.n(u),p=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),c=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"),y=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"),P=e("./lib/data/useAppDispatch.ts"),_=e("./lib/data/useAppSelector.ts"),E=e("./lib/data/error/index.ts"),i=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),b=["position","messageTitle","type","description","messageText","messageComponent"],m=(0,p.memo)(function(A){var S=(0,_.G)(function(O){return O?.error}),L=(0,P.j)();return(0,p.useEffect)(function(){if(S&&(S!=null&&S.description||S!=null&&S.messageText)){var O=Object.assign({position:x.xJ.TOP_RIGHT,messageTitle:"Error",type:x.Ck.ERROR},A,S),D=O.position,B=O.messageTitle,xe=O.type,ue=O.description,Y=O.messageText,K=O.messageComponent,se=d()(O,b),ee=ue||Y;ee&&(0,y.o)({messageText:ee,messageTitle:B,type:xe,messageComponent:K},Object.assign({position:D},se)),L(E.o.clear())}},[S,A,L]),(0,i.jsx)(c.P_,Object.assign({},A))})},"./lib/view/live-message/index.tsx"(j,g,e){"use strict";e.d(g,{I:()=>y});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/react-aria-live@2.0.5_react@18.3.1/node_modules/react-aria-live/lib/index.js"),c=e("./lib/data/useAppSelector.ts"),y=function(){var x=(0,c.G)(function(_){var E;return(E=_.liveMessage)===null||E===void 0?void 0:E.message}),P=(0,c.G)(function(_){var E;return(E=_.liveMessage)===null||E===void 0?void 0:E.ariaLive});return d()(p.Iu,{message:x,"aria-live":P})};y.displayName="LiveMessage"},"./lib/view/modals/session-expiry/index.tsx"(j,g,e){"use strict";e.d(g,{_:()=>Ve});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=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"),P=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"),_=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"),i=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"),m=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"),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/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"),O=e("./lib/data/useAppDispatch.ts"),D=e("./lib/data/logout/actions.ts"),B=e("./lib/utils/session.ts"),xe=e("./lib/utils/page-wake.ts"),ue=e("./lib/utils/session-timeout-config.ts"),Y=function(ce){var ne=Math.max(0,Math.floor(ce/1e3)),le=Math.floor(ne/60),we=ne%60;return`${String(le).padStart(2,"0")}:${String(we).padStart(2,"0")}`},K=function(ce){var ne=(0,y.useState)(),le=c()(ne,2),we=le[0],ve=le[1];return(0,y.useEffect)(function(){var ke=(0,ue.Gw)(),Je=(0,ue.vG)(),Be=ce+(Je-ke),_e=function(){ve(Y(Be-Date.now()))};_e();var Pe=setInterval(_e,1e3),be=(0,xe.v)(_e);return function(){clearInterval(Pe),be()}},[ce]),we},se,ee,Ve=(0,y.memo)(function(ce){var ne=ce.open,le=ce.warningNotifiedAt,we=le===void 0?0:le,ve=(0,y.useState)(ne),ke=c()(ve,2),Je=ke[0],Be=ke[1],_e=K(we),Pe=(0,O.j)(),be=(0,y.useRef)(null),He=(0,y.useRef)(null),Oe=(0,_.r)({firstElementRef:be,lastElementRef:He});(0,y.useEffect)(function(){Be(ne)},[ne]);var me=async function(){Be(!1),await(0,B.KB)(!0),(0,B.lQ)(),Pe(D.r.cancel())},Xe=function(){Be(!1),Pe(D.r.confirm())};return _e?d()(E.O,{onKeyDown:Oe,isOpen:Je,size:"small"},void 0,d()(i.u,{p:"s"},void 0,d()(b.D,{},void 0,d()(P.A,{size:"xl",color:["warning","900"]}),d()(m.T,{},void 0,`Your session will expire in ${_e}`),se||(se=d()(A.z,{},void 0,"Please logout or reset your session")))),ee||(ee=d()(S.Z,{})),d()(L.r,{},void 0,d()(x.e,{innerRef:be,buttonType:"outline",onClick:Xe},void 0,"Logout"),d()(x.e,{innerRef:He,onClick:function(){me().catch(function(){})}},void 0,"Reset"))):null})},"./lib/view/session-timeout/index.tsx"(j,g,e){"use strict";e.d(g,{S:()=>b});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),x=e("./lib/data/useAppDispatch.ts"),P=e("./lib/data/logout/actions.ts"),_=e("./lib/utils/session.ts"),E=e("./lib/view/modals/session-expiry/index.tsx"),i=e("./lib/communication/http-client/props.ts"),b=function(){var m=(0,x.j)(),A=(0,y.useState)(!1),S=c()(A,2),L=S[0],O=S[1],D=(0,y.useState)(),B=c()(D,2),xe=B[0],ue=B[1];return(0,y.useEffect)(function(){i.K.resetUserIdleTime=_.oB,(0,_.LC)();var Y=(0,_.Lw)(function(ee){ee&&(ue(ee),O(!0))}),K=(0,_.lD)(function(ee){ee===!0&&O(!1)}),se=(0,_.n5)(function(){m(P.r.confirm()),O(!1)});return function(){Y(),K(),se(),(0,_.z3)()}},[m]),d()("div",{},void 0,L&&d()(E._,{open:!0,warningNotifiedAt:xe}))};b.displayName="SessionTimeout"},"./lib/view/wait-message/index.tsx"(j,g,e){"use strict";e.d(g,{j:()=>ue});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),x=e.n(y),P=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),_=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"),i=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"),m=e("./lib/view/wait-message/use-html-wait-message.tsx"),A=e("./lib/analytics/index.ts"),S=function(){return(0,A.e)({data:{event:"pageInteractionEnabled"}})},L=function(){return(0,A.e)({data:{event:"pageInteractionDisabled"}})},O=e("./lib/utils/logrocket.ts"),D=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),B=["size","color","showText","withTooltip","tooltipStartPlacementPreference"],xe=(0,_.default)(i.p).withConfig({componentId:"sc-3aqsjr-0"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"]),ue=(0,P.memo)(function(Y){var K=Y.size,se=K===void 0?"xl":K,ee=Y.color,Ve=ee===void 0?"light":ee,ce=Y.showText,ne=ce===void 0?!0:ce,le=Y.withTooltip,we=le===void 0?!1:le,ve=Y.tooltipStartPlacementPreference,ke=ve===void 0?"center":ve,Je=x()(Y,B),Be=(0,P.useContext)(_.ThemeContext),_e=(0,P.useRef)(!1),Pe=(0,P.useState)(!1),be=c()(Pe,2),He=be[0],Oe=be[1],me=(0,b.G)(function(U){var oe;return(oe=U.waitMessage)===null||oe===void 0?void 0:oe.isOpen}),Xe=(0,b.G)(function(U){var oe;return(oe=U.waitMessage)===null||oe===void 0?void 0:oe.delay});_e.current=me??!1;var tt=(0,b.G)(function(U){var oe;return(oe=U.waitMessage)===null||oe===void 0?void 0:oe.message});return(0,P.useEffect)(function(){setTimeout(function(){me&&_e.current&&(Oe(!0),S(),(0,O.K3)("wait-spinner-start"))},Xe?1e3:0),me||(Oe(!1),L(),(0,O.K3)("wait-spinner-end"))},[Xe,me]),(0,m.t)(me!==null),He?(0,D.jsxs)(D.Fragment,{children:[d()(E.Ay,{zIndex:Be.zIndex.loader}),(0,D.jsx)(xe,Object.assign({id:"em-loading",size:se,color:Ve,showText:ne,withTooltip:we,tooltipStartPlacementPreference:ke},Je,{text:tt}))]}):null})},"./lib/view/wait-message/use-html-wait-message.tsx"(j,g,e){"use strict";e.d(g,{t:()=>d});var u=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),d=function(p){(0,u.useEffect)(function(){var c=document.getElementById("em-wait-message");c&&p&&c.remove()},[p])}},"./storybook-config-entry.js"(j,g,e){"use strict";var u=e("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),d=e.n(u),p=e("./node_modules/.pnpm/@storybook+preview-web@6.5.16/node_modules/@storybook/preview-web/dist/cjs/index.js"),c=e("./node_modules/.pnpm/@storybook+store@6.5.16/node_modules/@storybook/store/dist/cjs/index.js"),y=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"),P=e("./node_modules/.pnpm/@storybook+channel-postmessage@6.5.16/node_modules/@storybook/channel-postmessage/dist/cjs/index.js"),_=e("./node_modules/.pnpm/@storybook+channel-websocket@6.5.16/node_modules/@storybook/channel-websocket/dist/cjs/index.js"),E=[async function(O){if(/^\.[\\/](?:lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(mdx|tsx|ts|jsx|js))$/.exec(O)){var D=O.substring(6);return e("./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$")("./"+D)}}];async function i(O){for(var D=0;D<E.length;D++){var B=await E[D](O);if(B)return B}}var b=d().SERVER_CHANNEL_URL,m=function(){return(0,c.composeConfigs)([e("./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.29.7_@storybook+builder-webpack5@6.5.16_@storybook+mana_bd2mrctaigmcgc5bouhkkufcim/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_bd2mrctaigmcgc5bouhkkufcim/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.108.4/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,P.Ay)({page:"preview"});if(x.addons.setChannel(A),b){var S=(0,_.Ay)({url:b});x.addons.setServerChannel(S),window.__STORYBOOK_SERVER_CHANNEL__=S}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 y.ClientApi({storyStore:L.storyStore}),L.initialize({importFn:i,getProjectAnnotations:m})},"./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./lib/utils/storybook/preview.css"(j,g,e){"use strict";var u=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),d=e.n(u),p=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/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"),c=d()(function(x){return x[1]});c.i(p.A),c.push([j.id,`
5
- `,""]);const y=c;e.d(g,["A",0,y])},"@elliemae/pui-diagnostics"(j){"use strict";j.exports=emuiDiagnostics},"?6b64"(){}},j=>{var g=u=>j(j.s=u);j.O(0,[1896],()=>(g("./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"),g("./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"),g("./storybook-config-entry.js")));var e=j.O()}]);
@@ -1,5 +0,0 @@
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,g,e){const u={"./view/breakpoint/index.stories":["./lib/view/breakpoint/index.stories.tsx",[8535,999]],"./view/breakpoint/index.stories.tsx":["./lib/view/breakpoint/index.stories.tsx",[8535,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",[8535,5058,1156,5600,6469,3071]],"./view/fields/autocomplete/advanced-autocomplete.stories.tsx":["./lib/view/fields/autocomplete/advanced-autocomplete.stories.tsx",[8535,5058,1156,5600,6469,3071]],"./view/fields/autocomplete/async-suggestions-autocomplete.stories":["./lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx",[8535,5058,1156,5600,6469,9825]],"./view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx":["./lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.tsx",[8535,5058,1156,5600,6469,9825]],"./view/fields/autocomplete/index.stories":["./lib/view/fields/autocomplete/index.stories.tsx",[8535,5058,1156,5600,6469,8048]],"./view/fields/autocomplete/index.stories.tsx":["./lib/view/fields/autocomplete/index.stories.tsx",[8535,5058,1156,5600,6469,8048]],"./view/fields/check-box/index.stories":["./lib/view/fields/check-box/index.stories.tsx",[8535,5058,8654,590,9634,1281,2382]],"./view/fields/check-box/index.stories.tsx":["./lib/view/fields/check-box/index.stories.tsx",[8535,5058,8654,590,9634,1281,2382]],"./view/fields/check-box/set-value.stories":["./lib/view/fields/check-box/set-value.stories.tsx",[8535,5058,8654,590,9634,1281,5410]],"./view/fields/check-box/set-value.stories.tsx":["./lib/view/fields/check-box/set-value.stories.tsx",[8535,5058,8654,590,9634,1281,5410]],"./view/fields/combo-box-v3/index.stories":["./lib/view/fields/combo-box-v3/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,2915,3086]],"./view/fields/combo-box-v3/index.stories.tsx":["./lib/view/fields/combo-box-v3/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,2915,3086]],"./view/fields/combo-box/index.stories":["./lib/view/fields/combo-box/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6957,6184]],"./view/fields/combo-box/index.stories.tsx":["./lib/view/fields/combo-box/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6957,6184]],"./view/fields/date-input/index.stories":["./lib/view/fields/date-input/index.stories.tsx",[8535,5058,8654,9863,5256,6996,8523,6055]],"./view/fields/date-input/index.stories.tsx":["./lib/view/fields/date-input/index.stories.tsx",[8535,5058,8654,9863,5256,6996,8523,6055]],"./view/fields/date-picker/index.stories":["./lib/view/fields/date-picker/index.stories.tsx",[8535,5058,8654,9863,5256,6996,9041,7813]],"./view/fields/date-picker/index.stories.tsx":["./lib/view/fields/date-picker/index.stories.tsx",[8535,5058,8654,9863,5256,6996,9041,7813]],"./view/fields/date-range-picker/index.stories":["./lib/view/fields/date-range-picker/index.stories.tsx",[8535,5058,102,3923,7584,77]],"./view/fields/date-range-picker/index.stories.tsx":["./lib/view/fields/date-range-picker/index.stories.tsx",[8535,5058,102,3923,7584,77]],"./view/fields/date-time-picker/index.stories":["./lib/view/fields/date-time-picker/index.stories.tsx",[8535,5058,102,3923,2129]],"./view/fields/date-time-picker/index.stories.tsx":["./lib/view/fields/date-time-picker/index.stories.tsx",[8535,5058,102,3923,2129]],"./view/fields/form-item-layout/index.stories":["./lib/view/fields/form-item-layout/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6061,3813]],"./view/fields/form-item-layout/index.stories.tsx":["./lib/view/fields/form-item-layout/index.stories.tsx",[8535,5058,8654,9863,590,5256,6868,6061,3813]],"./view/fields/form-layout-block-item/index.stories":["./lib/view/fields/form-layout-block-item/index.stories.tsx",[8535,5058,8654,9863,5256,2487]],"./view/fields/form-layout-block-item/index.stories.tsx":["./lib/view/fields/form-layout-block-item/index.stories.tsx",[8535,5058,8654,9863,5256,2487]],"./view/fields/input-mask/index.stories":["./lib/view/fields/input-mask/index.stories.tsx",[8535,5058,8654,9863,5256,3848,6729]],"./view/fields/input-mask/index.stories.tsx":["./lib/view/fields/input-mask/index.stories.tsx",[8535,5058,8654,9863,5256,3848,6729]],"./view/fields/input-text/index.stories":["./lib/view/fields/input-text/index.stories.tsx",[8535,5058,1156,1764]],"./view/fields/input-text/index.stories.tsx":["./lib/view/fields/input-text/index.stories.tsx",[8535,5058,1156,1764]],"./view/fields/large-text-box/index.stories":["./lib/view/fields/large-text-box/index.stories.tsx",[8535,5058,1491]],"./view/fields/large-text-box/index.stories.tsx":["./lib/view/fields/large-text-box/index.stories.tsx",[8535,5058,1491]],"./view/fields/masked-input-text/with-money-mask.stories":["./lib/view/fields/masked-input-text/with-money-mask.stories.tsx",[8535,5058,1156,5974]],"./view/fields/masked-input-text/with-money-mask.stories.tsx":["./lib/view/fields/masked-input-text/with-money-mask.stories.tsx",[8535,5058,1156,5974]],"./view/fields/masked-input-text/with-percentage-mask.stories":["./lib/view/fields/masked-input-text/with-percentage-mask.stories.tsx",[8535,5058,1156,8980]],"./view/fields/masked-input-text/with-percentage-mask.stories.tsx":["./lib/view/fields/masked-input-text/with-percentage-mask.stories.tsx",[8535,5058,1156,8980]],"./view/fields/radio-group/index.stories":["./lib/view/fields/radio-group/index.stories.tsx",[8535,5058,8654,9863,590,5256,9634,6868,6061,235,2977]],"./view/fields/radio-group/index.stories.tsx":["./lib/view/fields/radio-group/index.stories.tsx",[8535,5058,8654,9863,590,5256,9634,6868,6061,235,2977]],"./view/fields/radio/index.stories":["./lib/view/fields/radio/index.stories.tsx",[8535,5058,8654,590,9634,6531]],"./view/fields/radio/index.stories.tsx":["./lib/view/fields/radio/index.stories.tsx",[8535,5058,8654,590,9634,6531]],"./view/fields/radio/set-value.stories":["./lib/view/fields/radio/set-value.stories.tsx",[8535,5058,8654,590,9634,5055]],"./view/fields/radio/set-value.stories.tsx":["./lib/view/fields/radio/set-value.stories.tsx",[8535,5058,8654,590,9634,5055]],"./view/fields/text-box/index.stories":["./lib/view/fields/text-box/index.stories.tsx",[8535,5058,8654,9863,5256,8749]],"./view/fields/text-box/index.stories.tsx":["./lib/view/fields/text-box/index.stories.tsx",[8535,5058,8654,9863,5256,8749]],"./view/fields/toggle/index.stories":["./lib/view/fields/toggle/index.stories.tsx",[8535,5058,5936]],"./view/fields/toggle/index.stories.tsx":["./lib/view/fields/toggle/index.stories.tsx",[8535,5058,5936]],"./view/form/index.stories":["./lib/view/form/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,6220]],"./view/form/index.stories.tsx":["./lib/view/form/index.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,6220]],"./view/form/usecases.stories":["./lib/view/form/usecases.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,4580]],"./view/form/usecases.stories.tsx":["./lib/view/form/usecases.stories.tsx",[8535,5058,8654,9863,590,1156,9634,5600,102,1281,3923,2915,4580]],"./view/intro.stories.mdx":["./lib/view/intro.stories.mdx",[721,6964,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 d(p){try{if(!e.o(u,p))return Promise.resolve().then(()=>{const x=new Error("Cannot find module '"+p+"'");throw x.code="MODULE_NOT_FOUND",x})}catch(x){return Promise.reject(x)}const c=u[p],y=c[0];return Promise.all(c[1].map(e.e)).then(()=>e(y))}d.keys=()=>Object.keys(u),d.id="./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$",j.exports=d},"./.storybook/preview.js"(j,g,e){"use strict";e.r(g),e.d(g,{__namedExportsOrder:()=>si,decorators:()=>qt,loaders:()=>ei,parameters:()=>ii});var u=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),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"),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"),c=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"),y=e("./node_modules/.pnpm/redux-saga@1.5.0/node_modules/redux-saga/dist/redux-saga.cjs.js"),x=e.n(y),P=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.cjs.production.min.js"),_=e("./lib/data/wait-message/actions.ts"),E={isOpen:null,message:"loading...",delay:!0},i=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,s=arguments.length>1?arguments[1]:void 0;return(0,P.default)(r,function(n){switch(s.type){case _.k.OPEN:n.isOpen=!0,n.message=s.payload.message,n.delay=s.payload.delay;break;case _.k.CLOSE:n.isOpen=!1;break}})},b=e("./lib/data/error/index.ts"),m={change:"change"},A=function(r){return r.LARGE="large",r.MEDIUM="medium",r.SMALL="small",r.XSMALL="xsmall",r}({}),S={value:A.LARGE},L=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,s=arguments.length>1?arguments[1]:void 0,n=s.type,I=s.payload;return(0,P.default)(r,function(M){switch(n){case m.change:M.value=I;break}})},O=e("./lib/data/live-message/index.ts"),D=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=(0,d.combineReducers)(Object.assign({waitMessage:i,error:b.L,breakpoint:L,liveMessage:O.k},r));return s},B=e("./lib/data/webpack-hmr.ts"),xe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/toConsumableArray.js"),ue=e.n(xe),Y=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/lib/redux.js"),K=new Map,se,ee=function(r){return se=r,function(s){return function(n){return Y.compose.apply(void 0,ue()(K.values()))(s)(n)}}},Ve=function(r){var s=r.reducerPath,n=r.middleware;K.has(s)||!se||K.set(s,n(se))},ce=function(r){K.delete(r)},ne=function(){K.clear()},le,we,ve=(0,d.createListenerMiddleware)(),ke=ve.startListening,Je=null,Be=null,_e=ve.clearListeners,Pe=D(),be=null,He=function(r){be=r},Oe=function(){return be},me=function(r,s,n){var I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},W=s.run,X=[(0,c.OV)({createReducer:D,runSaga:W})];Pe=D(M);var fe=(0,d.configureStore)({reducer:Pe,middleware:function(Ee){return Ee(I).prepend(ve.middleware).concat([s,ee])},devTools:!1,preloadedState:r,enhancers:X});return(0,p.setupListeners)(fe.dispatch),(0,B.I)(fe),fe},Xe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,I=arguments.length>3?arguments[3]:void 0,M=x()({}),W=me(r,M,s,n,I);return He(W),W},tt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),U=e.n(tt),oe=e("./lib/utils/history.ts"),H=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),ct=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"),Z=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"),F=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),pe=e.n(F),Ne=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),ye=e.n(Ne),ze=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"),z=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),Te=["history","basename"],Se=function(r){var s=r.history,n=r.basename,I=ye()(r,Te),M=(0,H.useState)({action:s.action,location:s.location}),W=pe()(M,2),X=W[0],fe=W[1];return(0,H.useLayoutEffect)(function(){n&&X.location.pathname&&!X.location.pathname.startsWith(n)&&console.warn(`[AppRouter] basename "${n}" does not match location.pathname "${X.location.pathname}". React Router will render nothing. Verify that "homeRoute" in app.config.json matches the guest's route.`)},[n,X.location.pathname]),(0,H.useLayoutEffect)(function(){var Ee=s.listen(function(){for(var he=arguments.length,ge=new Array(he),Et=0;Et<he;Et++)ge[Et]=arguments[Et];ge.length===2?fe({location:ge[0],action:ge[1]}):fe(ge[0])});return function(){Ee()}},[s]),(0,z.jsx)(ze.Router,Object.assign({},I,{basename:n,location:X.location,navigationType:X.action,navigator:s}))};Se.displayName="AppRouter";var je=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),it=e("./lib/utils/micro-frontend/guest.ts"),Ye=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),st=e.n(Ye),Ze=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),nt=e.n(Ze),Qe=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),te=e.n(Qe),Ie=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),qe=e.n(Ie),vt=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),mt=e.n(vt),De=e("./node_modules/.pnpm/pubsub-js@1.9.5/node_modules/pubsub-js/src/pubsub.js"),Ce=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"),ot=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),Re=e("./lib/data/logout/actions.ts"),et=e("./lib/utils/app-config/config.ts"),Ge=e("./lib/utils/app-config/index.ts"),Le=e("./lib/utils/console-logger.ts"),xt=e("./lib/utils/logger.ts"),Ke=e("./lib/utils/constants.ts"),Ue=e("./lib/utils/window.ts"),Tt=e("./lib/utils/session.ts"),_t=e("./lib/utils/micro-frontend/app-bridge.ts"),rt=e("./lib/utils/micro-frontend/ssf-host.ts"),at,de=qe()("ssfHostRef"),G=qe()("appBridge"),Me=qe()("selfInitialize"),Fe=function(){function r(s){var n,I,M,W,X,fe,Ee=this;st()(this,r),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,de,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:null}),Object.defineProperty(this,Me,{writable:!0,value:void 0}),this.appId=(0,et.vF)("appId"),this.onInit=s?.onInit,this.logger=s?.logger||Le.k,(0,xt.B)(this.logger),this.onRenewSessionTimer=s?.onRenewSessionTimer,te()(this,Me)[Me]=(n=s?.selfInitialize)!==null&&n!==void 0?n:!1,this.props={systemVersion:(I=s?.version)!==null&&I!==void 0?I:"latest",history:(M=s?.history)!==null&&M!==void 0?M:oe.N,theme:(W=s?.theme)!==null&&W!==void 0?W:(0,u.getDefaultTheme)()},this.activeGuests={},s!=null&&s.ssfHostRef&&(0,rt.Z)(s.ssfHostRef),te()(this,de)[de]=(0,rt.F)();var he=(X=s?.analytics)!==null&&X!==void 0?X:new Ce.j({logger:this.logger});this.scriptingObjects=Object.assign({analytics:he},(fe=s?.scriptingObjects)!==null&&fe!==void 0?fe:{}),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=mt()(async function(){await(0,Tt.KB)(),Ee.onRenewSessionTimer&&Ee.onRenewSessionTimer()},Ke.eE,{leading:!0}),te()(this,Me)[Me]||(0,Ge.y)().then(function(){(0,_t.b)().then(function(ge){te()(Ee,G)[G]=ge,Ee.onInit&&Ee.onInit(Ee.props)}).catch(function(ge){throw ge})}).catch(function(){}),(0,ot.nE)({appId:this.appId})}return nt()(r,[{key:"initialize",value:async function(){e.p=e.p.replace(/\/?$/,"/"),await(0,Ge.y)();var n=await(0,_t.b)();return te()(this,G)[G]=n,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(n){return(0,Ue.zk)().sessionStorage.getItem(n)}},{key:"setItem",value:function(n,I){(0,Ue.zk)().sessionStorage.setItem(n,I)}},{key:"getGuests",value:function(){return this.activeGuests}},{key:"getGuest",value:function(n){return this.activeGuests[n]?this.activeGuests[n]:null}},{key:"publish",value:function(n,I){return(0,De.publish)(n,I)}},{key:"subscribe",value:function(n,I){return(0,De.subscribe)(n,I)}},{key:"unsubscribe",value:function(n){(0,De.unsubscribe)(n)}},{key:"navigate",value:function(n,I){n&&this.props.history.push(n,I)}},{key:"openWaitMessage",value:function(){var n=Oe();n&&n.dispatch(_.X.open())}},{key:"closeWaitMessage",value:function(){var n=Oe();n&&n.dispatch(_.X.close())}},{key:"openErrorBanner",value:function(n){var I=Oe();I&&I.dispatch(b.o.set({description:n}))}},{key:"getAuthToken",value:function(){return(0,Ue.zk)().sessionStorage.getItem("Authorization")}},{key:"renewAuthToken",value:function(){return(0,Ue.zk)().sessionStorage.getItem("Authorization")}},{key:"logout",value:function(){var n=Oe();n&&n.dispatch(Re.r.confirm())}},{key:"renewSessionTimer",value:async function(){this.throttleRenewSessionTimer()}},{key:"getBreakpoint",value:function(){return(0,Ue.D)()}},{key:"getViewportSize",value:function(){return(0,Ue.M5)()}},{key:"onResizeEvent",value:function(n){return(0,De.subscribe)(Ke.BD,function(I,M){return n(M)})}},{key:"onBreakpointChangeEvent",value:function(n){return(0,De.subscribe)(Ke.H1,function(I,M){return n(M)})}},{key:"setSystemVersion",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"latest";window.emui.version=n,this.props.systemVersion=n}},{key:"sendBAEvent",value:function(n){this.scriptingObjects.analytics.sendBAEvent(n).catch(function(){})}},{key:"getObject",value:async function(n){return this.scriptingObjects[n]}},{key:"addScriptingObject",value:function(n,I){te()(this,G)[G]&&te()(this,G)[G].addScriptingObject(n,I),te()(this,de)[de].addScriptingObject(n,I)}},{key:"dispatchEvent",value:async function(n){if(te()(this,G)[G]){var I=await Promise.all([te()(this,G)[G].dispatchEvent(n),te()(this,de)[de].dispatchEvent(n)]),M=pe()(I,2),W=M[0],X=M[1];return Array.isArray(W)&&Array.isArray(X)?W.concat(X):Promise.resolve()}return te()(this,de)[de].dispatchEvent(n)}},{key:"removeScriptingObject",value:function(n,I){te()(this,G)[G]&&te()(this,G)[G].removeScriptingObject(n,I),te()(this,de)[de].removeScriptingObject(n,I)}}],[{key:"getInstance",value:function(n){return this.instance||(this.instance=new r(n),n!=null&&n.selfInitialize||(n?.logger||Le.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}}])}();at=Fe,Fe.instance=void 0;var pt,ft,lt,ht,gt,It,wt=function(){return Fe.isInitialized()},Dt=function(){return it.h.isInitialized()},h=function(){return Dt()&&window.top===window.self},o=function(){return wt()?Fe.getInstance().getLogger():it.h.getInstance().getLogger()},l=function(r){return ht()?!0:r?r===It.PRODUCTION:!0},v=function(r){var s=ft.getInstance().getProps(),n=s.systemVersion,I=n.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,I&&I[0]||"latest")},C=function(r){var s;return r==null||(s=r.replace)===null||s===void 0?void 0:s.call(r,/\/?$/,"/")},$=function(r){var s=lt(`microFrontendApps.${r.id}`);if(!s)throw new Error(`unable to locate application configuraiton for ${r.id} under microFrontendApps section of app.config.json`);var n=s.mode,I=n===void 0?It.PRODUCTION:n,M=l(I)?s.production:s.development;s.production&&delete s.production,s.development&&delete s.development;var W=pt(r,{mode:"production",hostUrl:"./",manifestPath:"./{SYSTEM_VERSION}",isJsModule:!1},s,M);return W.hostUrl=gt(W.hostUrl.replace(/\/?$/,"/")),W.manifestPath=C(v(W.manifestPath)),W},V=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),We=e.n(V),dt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/getPrototypeOf.js"),bt=e.n(dt),Rt=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/inherits.js"),Mt=e.n(Rt),Ct=function(r){var s=r.error,n=s===void 0?new Error("We are unable to process your request"):s,I=r.errorInfo,M=I===void 0?{componentStack:"Please close your browser and login again"}:I;return U()("div",{},void 0,U()("h2",{},void 0,n?.message),U()("section",{},void 0,M?.componentStack))};Ct.displayName="DefaultErrorTemplate";var Lt=e("./lib/utils/log-records.ts");function Bt(r,s,n){return s=bt()(s),We()(r,t()?Reflect.construct(s,n||[],bt()(r).constructor):s.apply(r,n))}function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!r})()}var a=function(r){function s(n){var I;return st()(this,s),I=Bt(this,s,[n]),I.state={error:null,errorInfo:null},I}return Mt()(s,r),nt()(s,[{key:"componentDidCatch",value:function(I,M){this.setState({error:I,errorInfo:M});var W=o();W&&W.error(Object.assign({},Lt.V.UNHANDLED_ERROR,{exception:I,message:I.message}))}},{key:"render",value:function(){var I=this.props,M=I.children,W=I.errorTemplate,X=W||Ct,fe=this.state,Ee=fe.error,he=fe.errorInfo;return he?U()(X,{error:Ee,errorInfo:he}):M}}])}(H.Component),f=e("./node_modules/.pnpm/react-aria-live@2.0.5_react@18.3.1/node_modules/react-aria-live/lib/index.js"),w=e("./lib/data/useAppDispatch.ts"),R=function(r,s,n){var I=r.map(function(he){return window.matchMedia(he)}),M=(0,H.useCallback)(function(){var he=I.findIndex(function(ge){return ge.matches});return typeof s[he]<"u"?s[he]:n},[n,I,s]),W=(0,H.useState)(M),X=pe()(W,2),fe=X[0],Ee=X[1];return(0,H.useEffect)(function(){var he=function(){return Ee(M)};return I.forEach(function(ge){return ge.addEventListener("change",he)}),function(){return I.forEach(function(ge){return ge.removeEventListener("change",he)})}},[M,I]),fe},T=function(){var r=(0,H.useContext)(Z.ThemeContext),s=R([`(max-width: ${r.breakpoints.small})`,`(max-width: ${r.breakpoints.medium})`,`(max-width: ${r.breakpoints.large})`,`(max-width: ${r.breakpoints.xsmall})`],["small","medium","large","xsmall"],"large"),n=(0,w.j)();(0,H.useEffect)(function(){n({type:m.change,payload:s}),(0,De.publish)(Ke.H1,s)},[s,n])},k=function(){(0,H.useEffect)(function(){if(window.ResizeObserver){var r=new ResizeObserver(function(s){(0,De.publish)(Ke.BD,s&&s[0])});return r.observe(window.document.documentElement),function(){r.unobserve(window.document.documentElement)}}return function(){}},[])},N=e("./lib/view/session-timeout/index.tsx"),Q=e("./lib/view/live-message/index.tsx"),re=e("./lib/view/error-toast/index.tsx"),J=e("./lib/view/wait-message/index.tsx");const ie=(0,Z.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(r){var s=r.theme;return s.media.small`
2
- font-size: 100%;
3
- `},function(r){return r.theme.lineHeights.m},function(r){return r.theme.fonts.default},function(r){return r.theme.colors.neutral["000"]});var ae,q,Ae,$e,Pt,ut=Z.default.div.withConfig({componentId:"sc-1ho9g5n-0"})(["height:100%;"]),Ot=function(r){var s=r.manageSession,n=r.WaitMessage,I=r.children;return T(),k(),U()(f.Ai,{},void 0,U()(ut,{},void 0,ae||(ae=U()(ie,{})),s&&(q||(q=U()(N.S,{}))),Ae||(Ae=U()(Q.I,{})),n||$e||($e=U()(J.j,{})),Pt||(Pt=U()(re.Q,{})),I))};Ot.displayName="StandAloneApp";var Ut=e("./lib/view/wait-message/use-html-wait-message.tsx"),St,jt,At,Wt=Z.default.div.withConfig({componentId:"sc-njn2ro-0"})(["height:100%;"]),yt=function(r){var s=r.WaitMessage,n=r.children;return T(),(0,Ut.t)(!0),k(),U()(Wt,{},void 0,St||(St=U()(ie,{})),s||jt||(jt=U()(J.j,{})),At||(At=U()(re.Q,{})),n)};yt.displayName="HostedApp";var Ft=function(r){var s=h()||wt();return s?(0,z.jsx)(Ot,Object.assign({},r)):(0,z.jsx)(yt,Object.assign({},r))},Ht=function(r){var s=r.store,n=r.history,I=r.basename,M=r.theme,W=M===void 0?(0,u.getDefaultTheme)():M,X=r.manageSession,fe=X===void 0?!1:X,Ee=r.WaitMessage,he=r.errorTemplate,ge=r.children,Et=r.strictMode,ni=Et===void 0?!0:Et,oi=ni?H.StrictMode:H.Fragment;return U()(oi,{},void 0,U()(a,{errorTemplate:he},void 0,U()(ct.Provider,{store:s},void 0,U()(Se,{history:n,basename:I},void 0,U()(Z.ThemeProvider,{theme:W},void 0,U()(Ft,{manageSession:fe,WaitMessage:Ee},void 0,ge))))))};Ht.displayName="AppRoot";var Nt=function(r,s,n){return U()(Ht,{store:s,history:oe.N,theme:r},void 0,n())};Nt.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(r){var s=r.base,n=s===void 0?"light":s,I=r.brandTitle,M=I===void 0?"Platform UI Components":I,W=ye()(r,zt);return(0,$t.vt)(Object.assign({base:n,brandTitle:`${M} v5.44.0`},W))},Vt=e("./node_modules/.pnpm/style-loader@2.0.0_webpack@5.108.4/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),Jt=e.n(Vt),Kt=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./lib/utils/storybook/preview.css"),kt={};kt.insert="head",kt.singleton=!1;var ri=Jt()(Kt.A,kt);const ai=Kt.A.locals||{};var Xt=(0,u.getDefaultTheme)(),Yt=Xe({},oe.N),Zt=Nt.bind(null,Xt,Yt),Qt=function(r){return{layout:"fullscreen",actions:{argTypesRegex:"^on.*"},controls:{hideNoControlsWarning:!0},docs:{theme:Gt(r)},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,Ge.y)("./")}],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,g,e){"use strict";e.d(g,{e:()=>y});var u=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),d=e("./lib/utils/micro-frontend/guest.ts"),p=e("./lib/utils/helpers.ts"),c=function(x){var P=Object.assign({},(0,u.QS)(),(0,p.np)(),x);window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push(P)},y=function(x){var P=x.data,_=x.self,E=_===void 0?!0:_;if(E)c(P);else{var i,b=(i=d.h.getInstance())===null||i===void 0?void 0:i.getHost(),m=b?.sendBAEvent;m?m(P):c(P)}}},"./lib/communication/http-client/props.ts"(j,g,e){"use strict";e.d(g,{K:()=>m});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),c=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),x=e.n(y),P=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),_=e.n(P),E=_()("resetUserIdleTime"),i=_()("endSession"),b=function(){function A(){d()(this,A),Object.defineProperty(this,E,{writable:!0,value:function(){}}),Object.defineProperty(this,i,{writable:!0,value:async function(){}})}return c()(A,[{key:"resetUserIdleTime",get:function(){return x()(this,E)[E]},set:function(S){x()(this,E)[E]=S}},{key:"endSession",get:function(){return x()(this,i)[i]},set:function(S){x()(this,i)[i]=S}}])}(),m=new b},"./lib/data/error/index.ts"(j,g,e){"use strict";e.d(g,{L:()=>x,o:()=>y});var 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"),d=e.n(u),p={description:"",messageText:""},c=(0,u.createSlice)({name:"error",initialState:p,reducers:{set:function(P,_){return _.payload},clear:function(){return p}}}),y=c.actions,x=c.reducer},"./lib/data/live-message/index.ts"(j,g,e){"use strict";e.d(g,{k:()=>x,o:()=>y});var 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"),d=e.n(u),p={message:"",ariaLive:"polite",id:""},c=(0,u.createSlice)({name:"liveMessage",initialState:p,reducers:{announce:function(P,_){var E=_.payload,i=E.message,b=E.ariaLive,m=E.id;return{message:i,ariaLive:b,id:m}}}}),y=c.actions,x=c.reducer},"./lib/data/logout/actions.ts"(j,g,e){"use strict";e.d(g,{r:()=>d});var u={CONFIRM:"log-out/CONFIRM",CANCEL:"log-out/CANCEL"},d={confirm:function(){return{type:u.CONFIRM,payload:null}},cancel:function(){return{type:u.CANCEL,payload:null}}}},"./lib/data/useAppDispatch.ts"(j,g,e){"use strict";e.d(g,{j:()=>p});var u=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"),d=e.n(u),p=function(){return(0,u.useDispatch)()}},"./lib/data/useAppSelector.ts"(j,g,e){"use strict";e.d(g,{G:()=>p});var u=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"),d=e.n(u),p=u.useSelector},"./lib/data/wait-message/actions.ts"(j,g,e){"use strict";e.d(g,{X:()=>d,k:()=>u});var u={OPEN:"wait-message/OPEN",CLOSE:"wait-message/CLOSE"},d={open:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"loading...",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{type:u.OPEN,payload:{message:p,delay:c}}},close:function(){return{type:u.CLOSE,payload:null}}}},"./lib/data/webpack-hmr.ts"(j,g,e){"use strict";e.d(g,{I:()=>d});var u=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 d=function(p){var c=null;try{var y,x;c=(y=(x=j)===null||x===void 0?void 0:x.hot)!==null&&y!==void 0?y:null}catch{c=null}c&&c.accept("./reducers",function(){(0,u.Dl)(p)})}},"./lib/utils/app-config/config.ts"(j,g,e){"use strict";e.d(g,{WE:()=>S,vF:()=>m,g3:()=>b});var u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),d=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/clone.js"),p=e.n(d),c=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),y=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),x=e.n(y);const P=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 _,E,i=P,b=function(O){i=O},m=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p()(x()(i,O,D))},A=function(O,D){return E(i,O,D)},S=function(){return i},L=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _(i,O)}},"./lib/utils/app-config/index.ts"(j,g,e){"use strict";e.d(g,{y:()=>i});var u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),d=e.n(u),p=e("./node_modules/.pnpm/core-js@3.49.0/node_modules/core-js/modules/es.array.includes.js"),c=e.n(p),y=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),x=e("./lib/utils/app-config/config.ts"),P=e("./lib/utils/window.ts"),_=function(b){var m,A,S=b.activeEnv,L=b.env[S]||{};b.env&&delete b.env,(0,x.g3)(d()(b,L)),sessionStorage.setItem("envName",S),window.emui=window.emui||{},window.emui.appId=(m=(A=(0,x.vF)("appId"))!==null&&A!==void 0?A:window.emui.appId)!==null&&m!==void 0?m:"",(0,y.nE)({envName:S})},E=function(b){return b.replace(/(\d+\.\d+)(?!.*\d+\.\d+)/,"latest")},i=async function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,P.OX)(),m=`${b.replace(/\/?$/,"/")}app.config.json`,A=E(b);try{var S=await fetch(m);if(!S.ok){if(b!==A){await i(A);return}var L=`App Config is not found at ${m}`;throw new Error(L)}var O=await S.json();_(O)}catch(B){var D;if(b!==A){await i(A);return}throw B!=null&&(D=B.message)!==null&&D!==void 0&&D.includes("Unexpected token")?new Error(`App config file at ${m} is not a valid JSON`):B}}},"./lib/utils/console-logger.ts"(j,g,e){"use strict";e.d(g,{k:()=>c});var u=e("@elliemae/pui-diagnostics"),d=e.n(u),p=e("./lib/utils/app-config/config.ts"),c=function(){return u.logger?(0,u.logger)({transport:(0,u.Console)(),index:"app",environment:(0,p.vF)("activeEnv"),team:"app team",appName:"ICEMT App",appVersion:"latest",instanceId:"",userId:""}):console}()},"./lib/utils/constants.ts"(j,g,e){"use strict";e.d(g,{BD:()=>c,H1:()=>y,J2:()=>d,eE:()=>x});const u={AUTHORIZATION:"Authorization",CLIENT_ID:"tirykwfo"};var d={WARN:12*60*1e3,EXPIRY:15*60*1e3},p=null,c="HOST_WINDOW_RESIZED",y="HOST_WINDOW_BREAKPOINT_CHANGED",x=6e4;e.d(g,["Ay",0,u])},"./lib/utils/helpers.ts"(j,g,e){"use strict";e.d(g,{E_:()=>_,np:()=>P});var u=e("./lib/utils/window.ts"),d=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),p=function(){return!0},c=function(){return d.env.CI==="true"},y=/^(?:[a-z]+:)?\/\//,x=function(E){return y.test(E)?E:new URL(E,document.location.origin).href},P=function(){var E,i,b,m,A,S,L,O=(0,u.zk)(),D=O.document.title,B=document,xe=B.title,ue=(E=O==null||(i=O.emui)===null||i===void 0?void 0:i.appId)!==null&&E!==void 0?E:"",Y=(b=O==null||(m=O.emui)===null||m===void 0?void 0:m.version)!==null&&b!==void 0?b:"",K=(A=(S=window)===null||S===void 0||(L=S.emui)===null||L===void 0?void 0:L.appId)!==null&&A!==void 0?A:"",se=O.location,ee=se.pathname,Ve=se.href,ce=window.location,ne=ce.pathname,le=ce.href;return{productId:ue,productPath:ee,productUrl:Ve,productPageTitle:D,version:Y,appId:K,appPath:ne,appUrl:le,appPageTitle:xe}},_=function(E){var i=E.promise,b=E.delay,m=E.retValue,A=m===void 0?!1:m,S=E.throwError,L=S===void 0?!1:S,O=E.errMsg;return Promise.race([i,new Promise(function(D,B){setTimeout(function(){L?B(new Error(O)):D(A)},b)})])}},"./lib/utils/history.ts"(j,g,e){"use strict";e.d(g,{N:()=>p,w:()=>c});var u=e("./node_modules/.pnpm/history@5.3.0/node_modules/history/umd/history.production.min.js"),d=e.n(u),p=(0,u.createBrowserHistory)(),c=(0,u.createMemoryHistory)()},"./lib/utils/log-records.ts"(j,g,e){"use strict";e.d(g,{V:()=>u});var u={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(d){return{code:"appsdk05",message:`Application load failed. unable to locate ${d} in the manifest`}},APP_INIT_FAILED:function(d,p,c){return{code:"appsdk06",message:`Application load failed. Unable to load one or more application resources for appId: ${d} and instanceId: ${p}. ${c}`}},APP_LOADING:function(d,p){return{code:"appsdk07",message:`Application ${d} with instanceId ${p} is loading...`}},APP_LOADING_COMPLETE:function(d,p){return{code:"appsdk08",message:`Application ${d} loaded with instanceId ${p}`}},APP_UNLOADING:function(d,p){return{code:"appsdk09",message:`Application ${d} with instanceId ${p} unloading...`}},APP_UNLOADING_COMPLETE:function(d,p){return{code:"appsdk10",message:`Application ${d} with instanceId ${p} unloaded`}},SSF_HOST_OBJECT_NOT_FOUND:function(d){return{code:"appsdk11",message:`Parent window doesn't expose SSF Object named ${d}`}},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,g,e){"use strict";e.d(g,{B:()=>d,t:()=>p});var u=null,d=function(c){u=c},p=function(){return u}},"./lib/utils/logrocket.ts"(j,g,e){"use strict";e.d(g,{K3:()=>E,Te:()=>x});var u,d,p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),x=function(){var i;return(i=window.emui)===null||i===void 0?void 0:i.logRocket},P=function(i){var b={};return Object.entries(i).forEach(function(m){var A=u(m,2),S=A[0],L=A[1];b[S]=L??""}),b},_=function(i,b){var m=x();m&&(m.identify(i,P(b)),d(i))},E=function(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,y.As)(i,b)}},"./lib/utils/micro-frontend/app-bridge.ts"(j,g,e){"use strict";e.d(g,{b:()=>y});var u=e("./node_modules/.pnpm/@elliemae+pui-app-bridge@2.29.0_@elliemae+pui-diagnostics@3.12.6_@elliemae+pui-logrocket@1.3._a3wvyjkzxvlfw6hybwiifbsika/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"),d=e("./lib/utils/logger.ts"),p=e("./lib/utils/app-config/config.ts"),c=null,y=async function(){if(!c){var x,P,_,E=(0,d.t)(),i=((x=window.emui)===null||x===void 0?void 0:x.version)||"latest";c=new u.o({logger:E,version:i,appConfigBaseUrl:(P=window)===null||P===void 0||(_=P.emui)===null||_===void 0?void 0:_._ASSET_PATH}),await c.init((0,p.WE)());var b=(0,p.vF)("microFrontendApps");b&&Object.keys(b).forEach(function(m){return c.warmUp(m)})}return c}},"./lib/utils/micro-frontend/guest.ts"(j,g,e){"use strict";e.d(g,{h:()=>Ke});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classCallCheck.js"),x=e.n(y),P=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/createClass.js"),_=e.n(P),E=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js"),i=e.n(E),b=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js"),m=e.n(b),A=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),S=e.n(A),L=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),O=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),D=e("./node_modules/.pnpm/@elliemae+ssf-guest@2.29.0_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"),B=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),xe=e("./lib/utils/window.ts"),ue=e("./lib/utils/app-config/index.ts"),Y=e("./lib/utils/app-config/config.ts"),K=e("./lib/utils/history.ts"),se=e("./lib/utils/console-logger.ts"),ee=e("./lib/utils/logger.ts"),Ve=e("./node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js"),ce,ne="storage",le="getSessionStorage",we="sessionStorage",ve=function(){return sessionStorage.length===0},ke=function(h){if(h.key===le)localStorage.setItem(we,JSON.stringify(sessionStorage)),localStorage.removeItem(we);else if(h.key===we&&h.newValue){var o=JSON.parse(h.newValue);o&&Object.keys(o).forEach(function(l){sessionStorage.setItem(l,o[l])})}},Je=null,Be=function(){window.addEventListener(ne,ke),ve()&&localStorage.setItem(le,`${Date.now()}`)},_e=function(){window.removeEventListener(ne,ke)},Pe=e("./lib/utils/micro-frontend/app-bridge.ts"),be=e("./lib/utils/helpers.ts"),He=e("./lib/utils/micro-frontend/ssf-host.ts"),Oe=function(){var h,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;if(o){var l=o,v=(h=l.emui)===null||h===void 0?void 0:h._ASSET_PATH;if(v){l.__webpack_public_path__=new URL("../",v).href;return}l.__webpack_public_path__=(l.__webpack_public_path__||"").replace(/\/?$/,"/")}},me=["history"],Xe,tt="app-container",U=2e3,oe=function(){try{return window.parent.document,!1}catch{return!0}},H=function(h){return h.SSF="ssf",h.APPSDK="app-sdk",h}(H||{}),ct="module.unmount",Z=m()("uuid"),F=m()("communicationMethod"),pe=m()("ssfHostRef"),Ne=m()("useV2Guest"),ye=m()("selfInitialize"),ze=m()("embeddedWithoutHost"),z=m()("appBridge"),Te=m()("pendingInitialRoute"),Se=m()("hostTeardownPromise"),je=m()("moduleUnmountSubToken"),it=m()("handleModuleUnmount"),Ye=m()("boundOnWindowUnload"),st=m()("addAppToGlobalVariable"),Ze=m()("removeLegacyGlobalRegistration"),nt=m()("onWindowUnload"),Qe=m()("resolveHistory"),te=m()("discoverHost"),Ie=m()("exposeGetHost"),qe=m()("initAppBridge"),vt=m()("applyModuleParams"),mt=m()("applyHistoryFromParams"),De=m()("applyInitialRoute"),Ce=m()("loadConfigAndBridge"),ot=m()("trackAnalyticsAndOnInit"),Re=m()("internalTeardown"),et=m()("bindModuleUnmountListener"),Ge=m()("unbindModuleUnmountListener"),Le=m()("completeWithoutHost"),xt=m()("fetchModuleScriptingObject"),Ke=function(){function h(o){var l=this,v,C,$;x()(this,h),Object.defineProperty(this,xt,{value:Dt}),Object.defineProperty(this,Le,{value:wt}),Object.defineProperty(this,Ge,{value:It}),Object.defineProperty(this,et,{value:gt}),Object.defineProperty(this,Re,{value:ht}),Object.defineProperty(this,ot,{value:lt}),Object.defineProperty(this,Ce,{value:ft}),Object.defineProperty(this,De,{value:pt}),Object.defineProperty(this,mt,{value:Fe}),Object.defineProperty(this,vt,{value:Me}),Object.defineProperty(this,qe,{value:G}),Object.defineProperty(this,Ie,{value:de}),Object.defineProperty(this,te,{value:at}),Object.defineProperty(this,Qe,{value:rt}),Object.defineProperty(this,nt,{value:_t}),Object.defineProperty(this,Ze,{value:Tt}),Object.defineProperty(this,st,{value:Ue}),Object.defineProperty(this,Z,{writable:!0,value:void 0}),this.logger=void 0,this.appId=void 0,this.props=void 0,Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,pe,{writable:!0,value:void 0}),Object.defineProperty(this,Ne,{writable:!0,value:void 0}),Object.defineProperty(this,ye,{writable:!0,value:void 0}),Object.defineProperty(this,ze,{writable:!0,value:void 0}),Object.defineProperty(this,z,{writable:!0,value:null}),Object.defineProperty(this,Te,{writable:!0,value:null}),Object.defineProperty(this,Se,{writable:!0,value:null}),Object.defineProperty(this,je,{writable:!0,value:null}),Object.defineProperty(this,it,{writable:!0,value:async function(){return await i()(l,Re)[Re](),!0}}),Object.defineProperty(this,Ye,{writable:!0,value:function(){i()(l,nt)[nt]()}}),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=((v=window.emui)===null||v===void 0?void 0:v.appId)||(0,Y.vF)("appId"),i()(this,Z)[Z]=window.emui.uuid,i()(this,F)[F]=H.APPSDK,this.props={host:null,hostUrl:null,prevState:null,history:o?.history||K.N,theme:(0,O.getDefaultTheme)(),manifestPath:"./latest",containerId:tt},this.logger=o?.logger||se.k,(0,ee.B)(this.logger),o!=null&&o.ssfHostRef&&(0,He.Z)(o.ssfHostRef),i()(this,pe)[pe]=(0,He.F)(),i()(this,Ne)[Ne]=o?.useV2Guest!==!1,i()(this,ye)[ye]=(C=o?.selfInitialize)!==null&&C!==void 0?C:!1,i()(this,ze)[ze]=($=o?.embeddedWithoutHost)!==null&&$!==void 0?$:!1,this.onInit=o?.onInit,this.onMount=o?.onMount,this.onUnmount=o?.onUnmount,this.onGetRef=o?.onGetRef,i()(this,ze)[ze]&&!i()(this,ye)[ye]&&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),i()(this,ye)[ye]?window.addEventListener("beforeunload",i()(this,Ye)[Ye]):i()(this,st)[st]()}return _()(h,[{key:"getHost",value:function(){return this.props.host}},{key:"getLogger",value:function(){return this.logger}},{key:"getObject",value:function(l){var v=null;return i()(this,F)[F]===H.SSF?(v=this.getHost(),v.getObject(l)):(v=this.getHost(),v?v.getObject(l):Promise.resolve(null))}},{key:"subscribe",value:function(l){var v=null;return i()(this,F)[F]===H.SSF?(v=this.getHost(),v.subscribe(l)):(v=this.getHost(),v.subscribe(l))}},{key:"unsubscribe",value:function(l){var v=null;if(i()(this,F)[F]===H.SSF){v=this.getHost(),v.unsubscribe(l);return}v=this.getHost(),v.unsubscribe(l)}},{key:"getProps",value:function(){return this.props}},{key:"getSessionStorageItem",value:function(l){var v=sessionStorage.getItem(l),C=this.getHost();return!v&&C!==null&&C!==void 0&&C.getItem&&(v=C.getItem(l)),v}},{key:"findHost",value:async function(){var l=null;if(!oe()){var v,C,$;l=(v=(C=window.parent)===null||C===void 0||($=C.emui)===null||$===void 0?void 0:$.MicroAppHost)!==null&&v!==void 0?v:null}return!l&&i()(this,Ne)[Ne]&&(l=new D.p({appLogger:this.logger}),await(0,be.E_)({promise:l.connect(),delay:1e3,retValue:!1})?l=null:i()(this,F)[F]=H.SSF),l}},{key:"uuid",get:function(){return i()(this,Z)[Z]}},{key:"initialize",value:async function(){Oe();var l=window.top===window.self&&!window.opener;if(l)return await i()(this,Ce)[Ce](),i()(this,Le)[Le]("standalone");if(i()(this,ze)[ze])return await i()(this,Ce)[Ce](),i()(this,Le)[Le]("embeddedWithoutHost");var v=await Promise.all([i()(this,te)[te](),i()(this,Ce)[Ce]()]),C=c()(v,1),$=C[0];if(!$)return i()(this,Le)[Le]("discoveryFallback");this.props.host=$,i()(this,Ie)[Ie]();var V={moduleId:this.appId};try{var We=await i()(this,xt)[xt]();We?(V=await We.getParameters(),i()(this,vt)[vt](V)):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 i()(this,ot)[ot](),i()(this,et)[et](),V}},{key:"init",value:async function(l){var v=this,C=l??{},$=C.history,V=d()(C,me);if(this.props=S()(this.props,V),!this.props.host){var We=await this.findHost();We?this.props.host=We:this.logger.warn("unable to connect to host microapp")}return i()(this,Ie)[Ie](),Oe(),(0,ue.y)().then(function(){var dt=v.getSessionStorageItem("instanceId")||"",bt=v.getSessionStorageItem("userId")||"";(0,B.nE)({appId:v.appId,instanceId:dt,userId:bt});var Rt=i()(v,Qe)[Qe]($);return!Rt&&l!==null&&l!==void 0&&l.initialRoute&&(i()(v,Te)[Te]=typeof l.initialRoute=="string"?l.initialRoute:l.initialRoute.pathname||null),(0,Pe.b)().then(function(Mt){i()(v,z)[z]=Mt,v.onInit&&v.onInit(v.props),i()(v,et)[et]()})})}},{key:"mount",value:function(){var l=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{containerId:tt};return this.props.containerId=v?.containerId,Promise.resolve().then(function(){i()(l,Te)[Te]&&(l.props.history.push(i()(l,Te)[Te]),i()(l,Te)[Te]=null),l.onMount&&l.onMount(v)})}},{key:"unmount",value:function(l){var v=this;return _e(),Promise.resolve().then(function(){return v.onUnmount?v.onUnmount(l):null})}},{key:"getRef",value:function(){return this.onGetRef?this.onGetRef():null}},{key:"navigate",value:function(l,v){l&&this.props.history.push(l,v)}},{key:"addScriptingObject",value:function(l,v){i()(this,z)[z]&&i()(this,z)[z].addScriptingObject(l,v),i()(this,pe)[pe].addScriptingObject(l,v)}},{key:"dispatchEvent",value:async function(l){if(i()(this,z)[z]){var v=await Promise.all([i()(this,z)[z].dispatchEvent(l),i()(this,pe)[pe].dispatchEvent(l)]),C=c()(v,2),$=C[0],V=C[1];return Array.isArray($)&&Array.isArray(V)?$.concat(V):Promise.resolve()}return i()(this,pe)[pe].dispatchEvent(l)}},{key:"removeScriptingObject",value:function(l,v){i()(this,z)[z]&&i()(this,z)[z].removeScriptingObject(l,v),i()(this,pe)[pe].removeScriptingObject(l,v)}}],[{key:"getInstance",value:function(l){return this.instance||(this.instance=new h(l),l!=null&&l.selfInitialize||(l?.logger||se.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 l,v;return!!((l=this.instance)!==null&&l!==void 0&&(v=l.props)!==null&&v!==void 0&&v.host)}}])}();Xe=Ke;function Ue(){var h=this,o=(0,xe.zk)();if(o){o.emui=o.emui||{};var l=this.unmount.bind(this),v={uuid:i()(this,Z)[Z],init:this.init.bind(this),mount:this.mount.bind(this),unmount:function(V){return V!=null&&V.containerId&&(h.props.containerId=V.containerId),h.props.host?i()(h,Re)[Re]().then(function(){return null}):l(V)},getRef:this.getRef.bind(this),navigate:this.navigate.bind(this)};if(o.emui[this.appId])if(Array.isArray(o.emui[this.appId])){var C=o.emui[this.appId],$=C.findIndex(function(V){return V.uuid===i()(h,Z)[Z]});$>-1?C[$]=v:C.push(v)}else o.emui[this.appId].uuid===i()(this,Z)[Z]?o.emui[this.appId]=v:typeof o.emui[this.appId].init>"u"?o.emui[this.appId]=Object.assign({},o.emui[this.appId],v):o.emui[this.appId]=[o.emui[this.appId],v];else o.emui[this.appId]=v;window.emui.app=v,window.addEventListener("beforeunload",i()(this,Ye)[Ye])}}function Tt(){var h=this;if(!i()(this,ye)[ye]){var o=(0,xe.zk)();if(o!=null&&o.emui){if(Array.isArray(o.emui[this.appId])){var l=o.emui[this.appId],v=l.findIndex(function(C){return C.uuid===i()(h,Z)[Z]});v>-1&&l.splice(v,1),l.length===0&&delete o.emui[this.appId]}else delete o.emui[this.appId];delete window.emui.app}}}function _t(){if(this.props.host){i()(this,Re)[Re]().catch(function(){});return}if(!i()(this,ye)[ye]){i()(this,Ze)[Ze](),this.unmount({containerId:this.props.containerId}).catch(function(){});return}i()(this,Re)[Re]().catch(function(){})}function rt(h){if(i()(this,F)[F]===H.SSF)return this.props.history=K.N,!1;var o=(0,Y.vF)("useParentHistory",!0);return o&&h?this.props.history=h:!o&&window!==window.parent&&(this.props.history=K.w),o}async function at(){var h;if((h=window.emui)!==null&&h!==void 0&&h.__host)return window.emui.__host;if(!oe()){var o,l,v,C=(o=(l=window.parent)===null||l===void 0||(v=l.emui)===null||v===void 0?void 0:v.MicroAppHost)!==null&&o!==void 0?o:null;if(C)return C}if(i()(this,Ne)[Ne]){var $=new D.p({appLogger:this.logger}),V=await(0,be.E_)({promise:$.connect(),delay:1e3,retValue:!0});if(!V)return i()(this,F)[F]=H.SSF,$}return null}function de(){var h=this;window.emui=window.emui||{},window.emui.getHost=function(){var o;return(o=h.props.host)!==null&&o!==void 0?o:null}}async function G(){i()(this,z)[z]=await(0,Pe.b)()}function Me(h){h.homeRoute&&(this.props.homeRoute=h.homeRoute),h.theme&&(this.props.theme=h.theme),h.hostUrl&&(this.props.hostUrl=h.hostUrl),h.manifestPath&&(this.props.manifestPath=h.manifestPath),h.containerId&&(this.props.containerId=h.containerId),i()(this,mt)[mt](h)}function Fe(h){if(i()(this,F)[F]===H.SSF){this.props.history=K.N;return}var o=(0,Y.vF)("useParentHistory",!0);o&&h.history?this.props.history=h.history:!o&&window!==window.parent&&(this.props.history=K.w),i()(this,De)[De](h,o)}function pt(h,o){if(!(!h.initialRoute||o)){var l=typeof h.initialRoute=="string"?h.initialRoute:h.initialRoute.pathname;l&&this.props.history.push(l)}}async function ft(){await(0,ue.y)(),await i()(this,qe)[qe]()}function lt(){var h=this.getSessionStorageItem("instanceId")||"",o=this.getSessionStorageItem("userId")||"";(0,B.nE)({appId:this.appId,instanceId:h,userId:o}),this.onInit&&this.onInit(this.props)}function ht(){var h=this;return i()(this,Se)[Se]||(i()(this,Se)[Se]=Promise.resolve().then(function(){i()(h,Ze)[Ze]()}).then(function(){return h.unmount({containerId:h.props.containerId})}).then(function(){i()(h,Ge)[Ge]()}).catch(function(o){throw i()(h,Se)[Se]=null,o})),i()(this,Se)[Se]}function gt(){i()(this,je)[je]||!this.props.host||(i()(this,je)[je]=this.subscribe({eventId:ct,callback:i()(this,it)[it]}))}function It(){i()(this,je)[je]&&(this.unsubscribe({eventId:ct,token:i()(this,je)[je]}),i()(this,je)[je]=null)}function wt(h){return h==="standalone"?(this.logger.info("Running in standalone mode \u2014 skipping host discovery"),i()(this,Ie)[Ie](),i()(this,Qe)[Qe]()):h==="embeddedWithoutHost"?(this.logger.info("embeddedWithoutHost enabled \u2014 skipping host discovery"),i()(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."),i()(this,Ie)[Ie]()),i()(this,ot)[ot](),{moduleId:this.appId}}async function Dt(){var h="module",o=this.getObject(h);return i()(this,F)[F]!==H.SSF?o:(0,be.E_)({promise:o,delay:U,throwError:!0,errMsg:`Timed out waiting for module scripting object from host (${U}ms)`})}Ke.instance=void 0},"./lib/utils/micro-frontend/ssf-host.ts"(j,g,e){"use strict";e.d(g,{F:()=>x,Z:()=>P});var u=e("./node_modules/.pnpm/@elliemae+ssf-host@2.29.0_@elliemae+pui-diagnostics@3.12.6/node_modules/@elliemae/ssf-host/dist/esm/host.js"),d=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"),p=e("./lib/utils/logger.ts"),c=e("./lib/utils/app-config/config.ts"),y=null,x=function(){if(!y){var _=(0,p.t)();y=new u.P((0,c.vF)("appId"),{logger:_,analyticsObj:new d.j({logger:_})})}return y},P=function(_){y||(y=_)}},"./lib/utils/page-wake.ts"(j,g,e){"use strict";e.d(g,{v:()=>u});var u=function(d){var p=!1,c=function(){p||(p=!0,queueMicrotask(function(){p=!1,d()}))},y=function(){document.hidden||c()};return document.addEventListener("visibilitychange",y),window.addEventListener("pageshow",c),window.addEventListener("focus",c),function(){document.removeEventListener("visibilitychange",y),window.removeEventListener("pageshow",c),window.removeEventListener("focus",c)}}},"./lib/utils/session-timeout-config.ts"(j,g,e){"use strict";e.d(g,{BH:()=>y,Gw:()=>P,vG:()=>_});var u=e("./lib/utils/app-config/config.ts"),d=e("./lib/utils/constants.ts"),p,c,y=function(){p=void 0,c=void 0},x=function(E,i){var b=(0,u.vF)(E);if(b==null||b==="")return i;var m=Number(b);return Number.isFinite(m)&&m>0?m:i},P=function(){return p===void 0&&(p=x("sessionTimeoutWarnInterval",d.J2.WARN)),p},_=function(){if(c===void 0){var E=P(),i=x("sessionTimeoutInterval",d.J2.EXPIRY);c=i>E?i:E+1}return c}},"./lib/utils/session.ts"(j,g,e){"use strict";e.d(g,{lQ:()=>bt,LC:()=>Rt,KB:()=>l,oB:()=>o,z3:()=>V,lD:()=>Lt,n5:()=>Ct,Lw:()=>Mt});var u=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),d=e.n(u),p=function(t){window.emui.loginParams=Object.assign({redirectUri:new URL(window.location.href).href},t)},c=function(){if(!window.emui.loginParams){var t=JSON.parse(sessionStorage.getItem("user")||"{}"),a=t.client_id||"",f=t.scope||"";window.emui.loginParams={clientId:a,scope:f}}return window.emui.loginParams},y=e("./lib/utils/constants.ts"),x,P=function(){return sessionStorage.getItem(y.Ay.AUTHORIZATION)||""},_=function(t){sessionStorage.setItem(x.AUTHORIZATION,t)},E=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),i=e("./node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/axios.js"),b=e("./lib/utils/app-config/config.ts"),m=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),A=e.n(m),S;function L(t,a){var f=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!f){if(Array.isArray(t)||(f=O(t))||a&&t&&typeof t.length=="number"){f&&(t=f);var w=0,R=function(){};return{s:R,n:function(){return w>=t.length?{done:!0}:{done:!1,value:t[w++]}},e:function(Q){throw Q},f:R}}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 T,k=!0,N=!1;return{s:function(){f=f.call(t)},n:function(){var Q=f.next();return k=Q.done,Q},e:function(Q){N=!0,T=Q},f:function(){try{k||f.return==null||f.return()}finally{if(N)throw T}}}}function O(t,a){if(t){if(typeof t=="string")return D(t,a);var f={}.toString.call(t).slice(8,-1);return f==="Object"&&t.constructor&&(f=t.constructor.name),f==="Map"||f==="Set"?Array.from(t):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?D(t,a):void 0}}function D(t,a){(a==null||a>t.length)&&(a=t.length);for(var f=0,w=Array(a);f<a;f++)w[f]=t[f];return w}var B=function(t){return t},xe=function(t,a){var f,w;a=a||S,(f=a)!==null&&f!==void 0&&(w=f.interceptors)!==null&&w!==void 0&&w.response&&a.interceptors.response.eject(t)},ue=function(t){var a=t.config.retryConfig;if(!a||a.retry===0||!t.response&&(a.currentRetryAttempt||0)>=a.noResponseRetries||!t.config.method||a.httpMethodsToRetry.indexOf(t.config.method.toUpperCase())<0)return!1;if(t.response&&t.response.status){var f=!1,w=L(a.statusCodesToRetry),R;try{for(w.s();!(R=w.n()).done;){var T=R.value,k=A()(T,2),N=k[0],Q=k[1],re=t.response.status;if(re>=N&&re<=Q){f=!0;break}}}catch(J){w.e(J)}finally{w.f()}if(!f)return!1}return a.currentRetryAttempt=a.currentRetryAttempt||0,!(a.currentRetryAttempt>=a.retry)},Y=function(t){if(!t.config)return Promise.reject(t);var a=t.config.retryConfig||{};a.currentRetryAttempt=a.currentRetryAttempt||0,a.retry=a.retry===void 0||a.retry===null?3:a.retry,a.retryDelay=a.retryDelay||100,a.instance=a.instance||i.A,a.httpMethodsToRetry=a.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],a.noResponseRetries=a.noResponseRetries===void 0||a.noResponseRetries===null?2:a.noResponseRetries;var f=[[100,199],[429,429],[500,599]];a.statusCodesToRetry=a.statusCodesToRetry||f,t.config.retryConfig=a;var w=a.shouldRetry||ue;if(!w(t))return Promise.reject(t);var R=new Promise(function(k){var N=(2**a.currentRetryAttempt-1)/2*1e3;t.config.retryConfig.currentRetryAttempt+=1,setTimeout(k,N)}),T=a.onRetryAttempt?Promise.resolve(a.onRetryAttempt(t)):Promise.resolve();return Promise.resolve().then(function(){return R}).then(function(){return T}).then(function(){return a.instance.request(t.config)})},K=function(t){var a,f;return t=t||i.A,(a=t)!==null&&a!==void 0&&(f=a.interceptors)!==null&&f!==void 0&&f.response?t.interceptors.response.use(B,Y):null},se=function(t){return t&&t.config?t.config.retryConfig:null},ee=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(a){var f=se(a);f&&f.currentRetryAttempt}}},Ve=function(t){t!=null&&t.defaults&&(t.defaults.retryConfig=ee(t)),K(t)};const ce=Ve;var ne=e("./lib/communication/http-client/props.ts"),le=function(t){return ne.K.resetUserIdleTime(),t},we=401,ve=null,ke=function(t){ve=t},Je=function(t){return t},Be=function(t){var a=(t||{}).response||{},f=a.status;if(f===we){if(ve&&typeof ve=="function")return ve(t).then(function(w){var R=t.config;if(!(R!=null&&R.headers))throw t;return R.headers.Authorization=w,new Promise(function(T,k){i.A.request(R).then(T).catch(k)})}).catch(function(w){return Promise.reject(w)});if(ne.K.endSession)return ne.K.endSession(Object.assign({},c(),{skipRevoke:!0})).then(function(){return Promise.reject(t)}).catch(function(){return Promise.reject(t)})}return Promise.reject(t)},_e=e("./lib/utils/logrocket.ts"),Pe,be,He=null,Oe=2*60*1e3,me=function(){var t,a,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=f.baseURL,R=w===void 0?(0,b.vF)("serviceEndpoints.api",""):w,T=f.headers,k=T===void 0?{}:T,N=f.sendLogRocketSessionHeader,Q=N===void 0?!1:N,re=((t=(0,_e.Te)())===null||t===void 0?void 0:t.sessionURL)||"",J=i.A.create({baseURL:R,headers:Q&&re?Object.assign({},k,{"X-LogRocket-URL":re}):k});J!=null&&(a=J.defaults)!==null&&a!==void 0&&a.timeout&&(J.defaults.timeout=Oe),ce(J);var ie=J?.interceptors||{},ae=ie.request,q=ie.response;return ae&&ae.use(le),q&&q.use(Je,Be),J},Xe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.baseURL,f=t.headers,w=f===void 0?{}:f,R=t.sendLogRocketSessionHeader,T=R===void 0?!1:R,k=Pe(t,He);return me(Object.assign({baseURL:a,headers:Object.assign({Authorization:be()},w),sendLogRocketSessionHeader:T},k))},tt,U=async function(t){var a=t.code,f=t.clientId,w=t.scope,R=t.redirectUri,T=new URLSearchParams;T.append("grant_type","authorization_code"),T.append("client_id",f),T.append("redirect_uri",R),T.append("scope",w),T.append("code",a);var k=await tt().post("/oauth2/v1/token",T),N=k.data;return{tokenType:N.token_type,accessToken:N.access_token}},oe=async function(t){var a=t.clientId,f=t.token,w=new URLSearchParams;w.append("token",f),w.append("client_id",a),await me().post("/oauth2/v1/token/revocation",w)},H=async function(t){var a=t.clientId,f=t.accessToken,w=new URLSearchParams;w.append("token",f),w.append("client_id",a);var R=await me().post("/oauth2/v1/token/introspection",w),T=R.data;return T},ct=e("./lib/utils/logger.ts"),Z=e("./lib/utils/log-records.ts"),F=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"),pe=e("./lib/analytics/index.ts"),Ne,ye,ze=function(t){var a=t.instanceId,f=t.userId;Ne({instanceId:a,userId:f}),ye({data:{event:"login"}})},z=function(){(0,pe.e)({data:{event:"logout"}}),(0,F.nE)({instanceId:"",userId:""})},Te=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),Se,je,it,Ye,st,Ze,nt,Qe,te,Ie,qe,vt,mt,De,Ce="serviceEndpoints.idp",ot=function(){return!!te()},Re=function(){var t=new URL(window.location.href),a=t.searchParams.get("code")||"",f=t.searchParams.get("error_code")||"";return t.search="",{code:a,idpErrorCode:f,redirectUri:t.href}},et=function(t){var a=t.clientId,f=t.redirectUri,w=t.idpErrorCode,R=t.scope,T=t.responseType,k=t.instanceId,N=t.siteId,Q=t.userId,re=t.disableRememberMe,J=t.useCompactIdpPage,ie=t.isSSO,ae=qe(Ce,""),q=new URL("/authorize",ae),Ae=Object.assign({client_id:a,redirect_uri:f,response_type:T??"",scope:R},k!==void 0&&{instance_id:String(k)},N!==void 0&&{site_id:String(N)},Q!==void 0&&{user_id:Q},re!==void 0&&{disable_remember_me:String(re)},J!==void 0&&{tpoifr:String(J)},ie!==void 0&&{is_sso:String(ie)}),$e=new URLSearchParams(w?Object.assign({},Ae,{error_code:w}):Ae);q.search=$e.toString(),window.location.replace(q.href)},Ge=async function(t){var a=t.clientId,f=t.redirectUri,w=t.responseType,R=t.scope,T=t.code,k=T===void 0?"":T,N=t.customLogoutUrl,Q=N===void 0?"":N,re=t.skipRevoke,J=re===void 0?!1:re;try{var ie=P();sessionStorage.clear();var ae=ie?ie.split(" ")[1]:"";J||await oe({clientId:a,token:ae}),z(),(0,_e.K3)("logout"),(0,Te.E3)(),(0,F.nE)({instanceId:"",userId:""});var q;if(Q)q=new URL("/",Q);else{var Ae=(0,b.vF)(Ce,"");q=new URL("/authorize",Ae);var $e=Object.assign({client_id:a,redirect_uri:f||""},k&&{error_code:k},{response_type:w||"",scope:R}),Pt=new URLSearchParams($e);q.search=Pt.toString()}window.location.replace(q.href)}catch(Ot){var ut;(ut=(0,ct.t)())===null||ut===void 0||ut.error(Object.assign({},Z.V.LOGOUT_FAILED,{exception:Ot}))}},Le=async function(t){var a=t.code,f=t.redirectUri,w=t.clientId,R=t.scope,T=t.responseType,k=t.isConsumerUser;try{var N=await it({code:a,clientId:w,scope:R,redirectUri:f}),Q=N.tokenType,re=N.accessToken;mt({clientId:w,scope:R,responseType:T,redirectUri:f});var J=`${Q} ${re}`;Ie(J);var ie=await Ye({clientId:w,accessToken:re});sessionStorage.setItem("user",JSON.stringify(ie));var ae=ie.encompass_instance_id,q=ie.user_name,Ae=ie.bearer_token,$e=ie.user_key,Pt={bearerToken:Ae,realm:ae,userName:q,sessionId:Ae?.replace(`${ae} `,"")};sessionStorage.setItem("cred",JSON.stringify(Pt)),sessionStorage.setItem("instanceId",ae),sessionStorage.setItem("userId",q),Ze({instanceId:ae,userId:q}),Se({instanceId:ae,userId:q});var ut={name:q,instanceId:ae};nt($e,ut),Qe("login",ut);var Ot=await st({userName:q,isConsumerUser:k});sessionStorage.setItem("userSettings",JSON.stringify(Ot));var Ut=new URL(f).pathname;je.replace(Ut)}catch(yt){var St,jt,At,Wt=yt==null||(St=yt.response)===null||St===void 0||(jt=St.data)===null||jt===void 0?void 0:jt.code;await Ge({clientId:w,redirectUri:f,code:Wt,scope:R,responseType:T}),(At=De())===null||At===void 0||At.error(Object.assign({},vt.LOGIN_FAILED,{exception:yt}))}},xt=async function(t){var a=t.clientId,f=t.scope,w=t.responseType,R=t.isConsumerUser,T=t.instanceId,k=t.siteId,N=t.userId,Q=t.disableRememberMe,re=t.useCompactIdpPage,J=t.isSSO,ie=Re(),ae=ie.code,q=ie.idpErrorCode,Ae=ie.redirectUri,$e={clientId:a,scope:f,responseType:w,redirectUri:Ae,code:ae,idpErrorCode:q,isConsumerUser:R,instanceId:T,siteId:k,userId:N,disableRememberMe:Q,useCompactIdpPage:re,isSSO:J};return ae?(await Le($e),{authorized:!0}):(et($e),{authorized:!1})},Ke=e("./lib/utils/page-wake.ts"),Ue=e("./lib/utils/session-timeout-config.ts"),Tt,_t,rt=Date.now(),at=[],de=[],G=[],Me=["click","scroll","keypress","touchstart"],Fe=!1,pt=!1,ft,lt,ht,gt=function(){pt=!1,Fe=!1,ht=null},It=function(){return Date.now()-rt>(0,Ue.Gw)()},wt=function(){return Date.now()-rt>(0,Ue.vG)()},Dt=function(){return Promise.resolve().then(function(){de.forEach(function(t){return t()})})},h=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gt(),rt=Date.now(),Promise.resolve().then(function(){G.forEach(function(a){return a(t)})}).catch(function(){})},o=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;We(t===!0)&&h(t)},l=async function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(We(t===!0)){var a=c();try{if(h(!0),a!=null&&a.clientId){var f=P();if(!f)throw new Error("Authorization token not found to extend session");var w=f.split(" ")[1];await H({clientId:a.clientId,accessToken:w})}}catch(T){var R;(R=(0,ct.t)())===null||R===void 0||R.error(Object.assign({},Z.V.SESSION_RENEWAL_FAILED,{exception:T})),await Ge(Object.assign({},a,{skipRevoke:!0}))}}},v=d()(function(){l().catch(function(){})},y.eE,{leading:!0}),C=function(){Me.forEach(function(t){document.removeEventListener(t,v)})},$=function(){Fe=!0,ht=Date.now(),C(),Promise.resolve().then(function(){at.forEach(function(t){return t(ht)})}).catch(function(){})},V=function(){var t;C(),(t=lt)===null||t===void 0||t(),lt=void 0,clearInterval(ft),gt(),at.length=0,de.length=0};function We(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return pt?!1:wt()?(pt=!0,Dt().then(function(){V()}).catch(function(){}),!1):!Fe&&It()?($(),!1):!(Fe&&!t)}var dt=function(t,a){var f=t.findIndex(function(w){return w===a});f>-1&&t.splice(f,1)},bt=function(){Me.forEach(function(t){document.addEventListener(t,v)})},Rt=function(){var t;clearInterval(ft),(t=lt)===null||t===void 0||t(),C(),(0,Ue.BH)(),gt(),bt(),lt=(0,Ke.v)(We),ft=setInterval(We,1e3)},Mt=function(t){return at.push(t),dt.bind(null,at,t)},Ct=function(t){return de.push(t),dt.bind(null,de,t)},Lt=function(t){return G.push(t),dt.bind(null,G,t)},Bt=function(t,a){if(!t)return function(){};var f=Tt(a,_t,{leading:!0});return Me.forEach(function(w){return t.addEventListener(w,f)}),function(){Me.forEach(function(w){return t.removeEventListener(w,a)}),Me.forEach(function(w){return t.removeEventListener(w,f)})}}},"./lib/utils/window.ts"(j,g,e){"use strict";e.d(g,{D:()=>x,M5:()=>c,OX:()=>P,zk:()=>p});var u=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js"),d=e.n(u),p=function(){try{return window.parent.document,window.parent}catch{return window}},c=function(){return{width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},y=function(_){return Number(_?.replace("px",""))},x=function(){var _=c(),E=_.width,i=(0,u.getDefaultTheme)(),b=i.breakpoints;return E<=y(b.small)?"small":E<=y(b.medium)?"medium":E<=y(b.xsmall)?"xsmall":"large"},P=function(){var _,E,i,b,m=((_=window)===null||_===void 0||(E=_.emui)===null||E===void 0?void 0:E._ASSET_PATH)||"latest/";if(!((i=window.emui)!==null&&i!==void 0&&i.version))return m;var A=(b=window.emui)===null||b===void 0?void 0:b.version.match(/^(?:\d+\.\d+)*/g);return A&&A[0]?m.replace("latest/",`${A[0]}/`):m}},"./lib/view/error-toast/index.tsx"(j,g,e){"use strict";e.d(g,{Q:()=>m});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),d=e.n(u),p=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),c=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"),y=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"),P=e("./lib/data/useAppDispatch.ts"),_=e("./lib/data/useAppSelector.ts"),E=e("./lib/data/error/index.ts"),i=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),b=["position","messageTitle","type","description","messageText","messageComponent"],m=(0,p.memo)(function(A){var S=(0,_.G)(function(O){return O?.error}),L=(0,P.j)();return(0,p.useEffect)(function(){if(S&&(S!=null&&S.description||S!=null&&S.messageText)){var O=Object.assign({position:x.xJ.TOP_RIGHT,messageTitle:"Error",type:x.Ck.ERROR},A,S),D=O.position,B=O.messageTitle,xe=O.type,ue=O.description,Y=O.messageText,K=O.messageComponent,se=d()(O,b),ee=ue||Y;ee&&(0,y.o)({messageText:ee,messageTitle:B,type:xe,messageComponent:K},Object.assign({position:D},se)),L(E.o.clear())}},[S,A,L]),(0,i.jsx)(c.P_,Object.assign({},A))})},"./lib/view/live-message/index.tsx"(j,g,e){"use strict";e.d(g,{I:()=>y});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/react-aria-live@2.0.5_react@18.3.1/node_modules/react-aria-live/lib/index.js"),c=e("./lib/data/useAppSelector.ts"),y=function(){var x=(0,c.G)(function(_){var E;return(E=_.liveMessage)===null||E===void 0?void 0:E.message}),P=(0,c.G)(function(_){var E;return(E=_.liveMessage)===null||E===void 0?void 0:E.ariaLive});return d()(p.Iu,{message:x,"aria-live":P})};y.displayName="LiveMessage"},"./lib/view/modals/session-expiry/index.tsx"(j,g,e){"use strict";e.d(g,{_:()=>Ve});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=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"),P=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"),_=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"),i=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"),m=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"),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/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"),O=e("./lib/data/useAppDispatch.ts"),D=e("./lib/data/logout/actions.ts"),B=e("./lib/utils/session.ts"),xe=e("./lib/utils/page-wake.ts"),ue=e("./lib/utils/session-timeout-config.ts"),Y=function(ce){var ne=Math.max(0,Math.floor(ce/1e3)),le=Math.floor(ne/60),we=ne%60;return`${String(le).padStart(2,"0")}:${String(we).padStart(2,"0")}`},K=function(ce){var ne=(0,y.useState)(),le=c()(ne,2),we=le[0],ve=le[1];return(0,y.useEffect)(function(){var ke=(0,ue.Gw)(),Je=(0,ue.vG)(),Be=ce+(Je-ke),_e=function(){ve(Y(Be-Date.now()))};_e();var Pe=setInterval(_e,1e3),be=(0,xe.v)(_e);return function(){clearInterval(Pe),be()}},[ce]),we},se,ee,Ve=(0,y.memo)(function(ce){var ne=ce.open,le=ce.warningNotifiedAt,we=le===void 0?0:le,ve=(0,y.useState)(ne),ke=c()(ve,2),Je=ke[0],Be=ke[1],_e=K(we),Pe=(0,O.j)(),be=(0,y.useRef)(null),He=(0,y.useRef)(null),Oe=(0,_.r)({firstElementRef:be,lastElementRef:He});(0,y.useEffect)(function(){Be(ne)},[ne]);var me=async function(){Be(!1),await(0,B.KB)(!0),(0,B.lQ)(),Pe(D.r.cancel())},Xe=function(){Be(!1),Pe(D.r.confirm())};return _e?d()(E.O,{onKeyDown:Oe,isOpen:Je,size:"small"},void 0,d()(i.u,{p:"s"},void 0,d()(b.D,{},void 0,d()(P.A,{size:"xl",color:["warning","900"]}),d()(m.T,{},void 0,`Your session will expire in ${_e}`),se||(se=d()(A.z,{},void 0,"Please logout or reset your session")))),ee||(ee=d()(S.Z,{})),d()(L.r,{},void 0,d()(x.e,{innerRef:be,buttonType:"outline",onClick:Xe},void 0,"Logout"),d()(x.e,{innerRef:He,onClick:function(){me().catch(function(){})}},void 0,"Reset"))):null})},"./lib/view/session-timeout/index.tsx"(j,g,e){"use strict";e.d(g,{S:()=>b});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),x=e("./lib/data/useAppDispatch.ts"),P=e("./lib/data/logout/actions.ts"),_=e("./lib/utils/session.ts"),E=e("./lib/view/modals/session-expiry/index.tsx"),i=e("./lib/communication/http-client/props.ts"),b=function(){var m=(0,x.j)(),A=(0,y.useState)(!1),S=c()(A,2),L=S[0],O=S[1],D=(0,y.useState)(),B=c()(D,2),xe=B[0],ue=B[1];return(0,y.useEffect)(function(){i.K.resetUserIdleTime=_.oB,(0,_.LC)();var Y=(0,_.Lw)(function(ee){ee&&(ue(ee),O(!0))}),K=(0,_.lD)(function(ee){ee===!0&&O(!1)}),se=(0,_.n5)(function(){m(P.r.confirm()),O(!1)});return function(){Y(),K(),se(),(0,_.z3)()}},[m]),d()("div",{},void 0,L&&d()(E._,{open:!0,warningNotifiedAt:xe}))};b.displayName="SessionTimeout"},"./lib/view/wait-message/index.tsx"(j,g,e){"use strict";e.d(g,{j:()=>ue});var u=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/jsx.js"),d=e.n(u),p=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/slicedToArray.js"),c=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),x=e.n(y),P=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),_=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"),i=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"),m=e("./lib/view/wait-message/use-html-wait-message.tsx"),A=e("./lib/analytics/index.ts"),S=function(){return(0,A.e)({data:{event:"pageInteractionEnabled"}})},L=function(){return(0,A.e)({data:{event:"pageInteractionDisabled"}})},O=e("./lib/utils/logrocket.ts"),D=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),B=["size","color","showText","withTooltip","tooltipStartPlacementPreference"],xe=(0,_.default)(i.p).withConfig({componentId:"sc-3aqsjr-0"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"]),ue=(0,P.memo)(function(Y){var K=Y.size,se=K===void 0?"xl":K,ee=Y.color,Ve=ee===void 0?"light":ee,ce=Y.showText,ne=ce===void 0?!0:ce,le=Y.withTooltip,we=le===void 0?!1:le,ve=Y.tooltipStartPlacementPreference,ke=ve===void 0?"center":ve,Je=x()(Y,B),Be=(0,P.useContext)(_.ThemeContext),_e=(0,P.useRef)(!1),Pe=(0,P.useState)(!1),be=c()(Pe,2),He=be[0],Oe=be[1],me=(0,b.G)(function(U){var oe;return(oe=U.waitMessage)===null||oe===void 0?void 0:oe.isOpen}),Xe=(0,b.G)(function(U){var oe;return(oe=U.waitMessage)===null||oe===void 0?void 0:oe.delay});_e.current=me??!1;var tt=(0,b.G)(function(U){var oe;return(oe=U.waitMessage)===null||oe===void 0?void 0:oe.message});return(0,P.useEffect)(function(){setTimeout(function(){me&&_e.current&&(Oe(!0),S(),(0,O.K3)("wait-spinner-start"))},Xe?1e3:0),me||(Oe(!1),L(),(0,O.K3)("wait-spinner-end"))},[Xe,me]),(0,m.t)(me!==null),He?(0,D.jsxs)(D.Fragment,{children:[d()(E.Ay,{zIndex:Be.zIndex.loader}),(0,D.jsx)(xe,Object.assign({id:"em-loading",size:se,color:Ve,showText:ne,withTooltip:we,tooltipStartPlacementPreference:ke},Je,{text:tt}))]}):null})},"./lib/view/wait-message/use-html-wait-message.tsx"(j,g,e){"use strict";e.d(g,{t:()=>d});var u=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),d=function(p){(0,u.useEffect)(function(){var c=document.getElementById("em-wait-message");c&&p&&c.remove()},[p])}},"./storybook-config-entry.js"(j,g,e){"use strict";var u=e("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),d=e.n(u),p=e("./node_modules/.pnpm/@storybook+preview-web@6.5.16/node_modules/@storybook/preview-web/dist/cjs/index.js"),c=e("./node_modules/.pnpm/@storybook+store@6.5.16/node_modules/@storybook/store/dist/cjs/index.js"),y=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"),P=e("./node_modules/.pnpm/@storybook+channel-postmessage@6.5.16/node_modules/@storybook/channel-postmessage/dist/cjs/index.js"),_=e("./node_modules/.pnpm/@storybook+channel-websocket@6.5.16/node_modules/@storybook/channel-websocket/dist/cjs/index.js"),E=[async function(O){if(/^\.[\\/](?:lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(mdx|tsx|ts|jsx|js))$/.exec(O)){var D=O.substring(6);return e("./lib lazy recursive ^\\.\\/.*$ include: (?:\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Ctsx%7Cts%7Cjsx%7Cjs))$")("./"+D)}}];async function i(O){for(var D=0;D<E.length;D++){var B=await E[D](O);if(B)return B}}var b=d().SERVER_CHANNEL_URL,m=function(){return(0,c.composeConfigs)([e("./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.29.7_@storybook+builder-webpack5@6.5.16_@storybook+mana_bd2mrctaigmcgc5bouhkkufcim/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_bd2mrctaigmcgc5bouhkkufcim/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.108.4/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,P.Ay)({page:"preview"});if(x.addons.setChannel(A),b){var S=(0,_.Ay)({url:b});x.addons.setServerChannel(S),window.__STORYBOOK_SERVER_CHANNEL__=S}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 y.ClientApi({storyStore:L.storyStore}),L.initialize({importFn:i,getProjectAnnotations:m})},"./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!./lib/utils/storybook/preview.css"(j,g,e){"use strict";var u=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),d=e.n(u),p=e("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.108.4/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"),c=d()(function(x){return x[1]});c.i(p.A),c.push([j.id,`
5
- `,""]);const y=c;e.d(g,["A",0,y])},"@elliemae/pui-diagnostics"(j){"use strict";j.exports=emuiDiagnostics},"?6b64"(){}},j=>{var g=u=>j(j.s=u);j.O(0,[1896],()=>(g("./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"),g("./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"),g("./storybook-config-entry.js")));var e=j.O()}]);