@gen-epix/ui-client-common 4.0.0 → 4.0.1

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 (243) hide show
  1. package/dist/@types/{ui.d.ts → ui-client-common.d.ts} +1 -1
  2. package/dist/_chunks/ApplicationFooter.js +1 -1
  3. package/dist/_chunks/ApplicationFooter.js.map +1 -1
  4. package/dist/_chunks/Breadcrumbs.js +1 -1
  5. package/dist/_chunks/Breadcrumbs.js.map +1 -1
  6. package/dist/_chunks/CrudPage.js +293 -293
  7. package/dist/_chunks/CrudPage.js.map +1 -1
  8. package/dist/_chunks/GeoFilter.js +1 -1
  9. package/dist/_chunks/GeoFilter.js.map +1 -1
  10. package/dist/_chunks/Notifications.js.map +1 -1
  11. package/dist/_chunks/OutageList.js.map +1 -1
  12. package/dist/_chunks/QueryClientProvider.js +1 -1
  13. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  14. package/dist/_chunks/QueryClientService.js +79 -66
  15. package/dist/_chunks/QueryClientService.js.map +1 -1
  16. package/dist/_chunks/Table.js +953 -945
  17. package/dist/_chunks/Table.js.map +1 -1
  18. package/dist/_chunks/TableUtil.js.map +1 -1
  19. package/dist/_chunks/TextFilter.js +4 -4
  20. package/dist/_chunks/TextFilter.js.map +1 -1
  21. package/dist/_chunks/UserInvitationsAdminPage.js +110 -110
  22. package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
  23. package/dist/_chunks/_baseFlatten.js +1 -1
  24. package/dist/_chunks/_baseGet.js +26 -26
  25. package/dist/_chunks/_baseGet.js.map +1 -1
  26. package/dist/_chunks/_baseIteratee.js +25 -26
  27. package/dist/_chunks/_baseIteratee.js.map +1 -1
  28. package/dist/_chunks/_setToString.js.map +1 -1
  29. package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +1041 -1128
  30. package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
  31. package/dist/_chunks/format.js +199 -198
  32. package/dist/_chunks/format.js.map +1 -1
  33. package/dist/_chunks/index.esm.js +797 -692
  34. package/dist/_chunks/index.esm.js.map +1 -1
  35. package/dist/_chunks/isArrayLike.js +1 -2
  36. package/dist/_chunks/isArrayLike.js.map +1 -1
  37. package/dist/_chunks/isObject.js +38 -2
  38. package/dist/_chunks/isObject.js.map +1 -1
  39. package/dist/_chunks/isSymbol.js +2 -2
  40. package/dist/_chunks/middleware.js +11 -9
  41. package/dist/_chunks/middleware.js.map +1 -1
  42. package/dist/_chunks/oidc-client-ts.js +12 -9
  43. package/dist/_chunks/oidc-client-ts.js.map +1 -1
  44. package/dist/_chunks/omit.js +38 -39
  45. package/dist/_chunks/omit.js.map +1 -1
  46. package/dist/_chunks/query.js +210 -228
  47. package/dist/_chunks/query.js.map +1 -1
  48. package/dist/_chunks/react-oidc-context.js +1 -1
  49. package/dist/_chunks/react-oidc-context.js.map +1 -1
  50. package/dist/_chunks/react.js +1 -1
  51. package/dist/_chunks/react.js.map +1 -1
  52. package/dist/_chunks/rolldown-runtime.js +2 -2
  53. package/dist/_chunks/tableStore.js +79 -78
  54. package/dist/_chunks/tableStore.js.map +1 -1
  55. package/dist/_chunks/toDate.js +1 -1
  56. package/dist/_chunks/toDate.js.map +1 -1
  57. package/dist/_chunks/uniq.js +1 -1
  58. package/dist/_chunks/uniq.js.map +1 -1
  59. package/dist/_chunks/useColumnsMenu.js +7 -6
  60. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  61. package/dist/_chunks/useMutation.js +19 -16
  62. package/dist/_chunks/useMutation.js.map +1 -1
  63. package/dist/_chunks/useQueryMemo.js +156 -169
  64. package/dist/_chunks/useQueryMemo.js.map +1 -1
  65. package/dist/_chunks/vanilla.js +1 -1
  66. package/dist/_chunks/vanilla.js.map +1 -1
  67. package/dist/_chunks/yup.js +5 -5
  68. package/dist/_chunks/yup.js.map +1 -1
  69. package/dist/classes/filters/GeoFilter.d.ts +1 -1
  70. package/dist/classes/filters/MultiSelectFilter.d.ts +1 -1
  71. package/dist/classes/services/AuthenticationService/index.js +41 -44
  72. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  73. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  74. package/dist/classes/services/InactivityService/index.js +10 -11
  75. package/dist/classes/services/InactivityService/index.js.map +1 -1
  76. package/dist/classes/services/RouterService/index.js +1 -1
  77. package/dist/components/app/App/index.js +48 -38
  78. package/dist/components/app/App/index.js.map +1 -1
  79. package/dist/components/app/ApplicationBootstrap/index.js +54 -54
  80. package/dist/components/app/ApplicationBootstrap/index.js.map +1 -1
  81. package/dist/components/app/AuthenticationWrapper/index.js +45 -45
  82. package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
  83. package/dist/components/app/AuthorizationWrapper/index.js +7 -7
  84. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  85. package/dist/components/app/RouterRoot/index.js +53 -53
  86. package/dist/components/app/RouterRoot/index.js.map +1 -1
  87. package/dist/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.d.ts +2 -2
  88. package/dist/components/epi/EpiContactDetailsDialog/index.js +28 -26
  89. package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
  90. package/dist/components/filters/BooleanFilterField/index.js +1 -1
  91. package/dist/components/filters/BooleanFilterField/index.js.map +1 -1
  92. package/dist/components/filters/DateFilterField/index.js +1 -1
  93. package/dist/components/filters/DateFilterField/index.js.map +1 -1
  94. package/dist/components/filters/GeoFilterField/index.js +2 -2
  95. package/dist/components/filters/GeoFilterField/index.js.map +1 -1
  96. package/dist/components/filters/MultiSelectFilterField/index.js +2 -2
  97. package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -1
  98. package/dist/components/filters/NumberRangeFilterField/index.js +1 -1
  99. package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -1
  100. package/dist/components/filters/TextFilterField/index.js +1 -1
  101. package/dist/components/filters/TextFilterField/index.js.map +1 -1
  102. package/dist/components/ui/ApplicationBar/index.js +132 -132
  103. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  104. package/dist/components/ui/ConsentDialog/ConsentDialog.d.ts +2 -2
  105. package/dist/components/ui/ConsentDialog/index.js +11 -11
  106. package/dist/components/ui/ConsentDialog/index.js.map +1 -1
  107. package/dist/components/ui/GenericErrorMessage/index.js +1 -1
  108. package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
  109. package/dist/components/ui/LicensesDialog/LicensesDialog.d.ts +2 -2
  110. package/dist/components/ui/LicensesDialog/index.js +40 -40
  111. package/dist/components/ui/LicensesDialog/index.js.map +1 -1
  112. package/dist/components/ui/MyPermissionsDialog/MyPermissionsDialog.d.ts +2 -2
  113. package/dist/components/ui/MyPermissionsDialog/index.js +21 -21
  114. package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -1
  115. package/dist/components/ui/NavLink/index.js +1 -1
  116. package/dist/components/ui/NavLink/index.js.map +1 -1
  117. package/dist/components/ui/OrganizationSwitcherDialog/OrganizationSwitcherDialog.d.ts +2 -2
  118. package/dist/components/ui/OrganizationSwitcherDialog/index.js +43 -43
  119. package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
  120. package/dist/components/ui/OutagesDialog/OutagesDialog.d.ts +2 -2
  121. package/dist/components/ui/OutagesDialog/index.js +14 -14
  122. package/dist/components/ui/OutagesDialog/index.js.map +1 -1
  123. package/dist/components/ui/PageContainer/index.js +2 -2
  124. package/dist/components/ui/PageContainer/index.js.map +1 -1
  125. package/dist/components/ui/ResponseHandler/index.js +8 -8
  126. package/dist/components/ui/ResponseHandler/index.js.map +1 -1
  127. package/dist/components/ui/Sidebar/index.js.map +1 -1
  128. package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +2 -2
  129. package/dist/components/ui/UserFeedbackDialog/UserFeedbackDialog.d.ts +2 -2
  130. package/dist/components/ui/UserFeedbackDialog/index.js +38 -38
  131. package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -1
  132. package/dist/components/ui/UserInactivityConfirmation/index.js +14 -14
  133. package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -1
  134. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContext.d.ts +5 -0
  135. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +6 -0
  136. package/dist/context/uiClientCommonConfigContext/index.d.ts +3 -0
  137. package/dist/context/uiClientCommonConfigContext/index.js +18 -0
  138. package/dist/context/uiClientCommonConfigContext/index.js.map +1 -0
  139. package/dist/context/uiClientCommonConfigContext/useUiClientCommonConfigContext.d.ts +2 -0
  140. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +4 -4
  141. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +4 -4
  142. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +4 -4
  143. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +4 -4
  144. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +4 -4
  145. package/dist/dataHooks/useOrganizationsQuery/index.js +4 -4
  146. package/dist/dataHooks/useUsersQuery/index.js +4 -4
  147. package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +1 -1
  148. package/dist/hooks/useEditMutation/index.js +6 -6
  149. package/dist/hooks/useEditMutation/index.js.map +1 -1
  150. package/dist/hooks/useItemQuery/index.js +8 -8
  151. package/dist/hooks/useItemQuery/index.js.map +1 -1
  152. package/dist/locale/en.json +0 -10
  153. package/dist/locale/nl.json +0 -10
  154. package/dist/models/dataHooks.d.ts +1 -1
  155. package/dist/models/table.d.ts +1 -1
  156. package/dist/models/table.js.map +1 -1
  157. package/dist/pages/AcceptInvitationPage/index.js +5 -5
  158. package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
  159. package/dist/pages/AdminPage/index.js +1 -1
  160. package/dist/pages/AdminPage/index.js.map +1 -1
  161. package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -1
  162. package/dist/pages/CrudPage/CrudPage.d.ts +2 -2
  163. package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +2 -2
  164. package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +4 -4
  165. package/dist/pages/ErrorPage/index.js.map +1 -1
  166. package/dist/pages/IdentifierIssuersAdminPage/index.js +2 -2
  167. package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
  168. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -1
  169. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
  170. package/dist/pages/OrganizationContactsAdminPage/index.js +3 -3
  171. package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
  172. package/dist/pages/OrganizationSitesAdminPage/index.js +3 -3
  173. package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
  174. package/dist/pages/OrganizationsAdminPage/index.js +2 -2
  175. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  176. package/dist/pages/OutagesAdminPage/index.js +2 -2
  177. package/dist/pages/OutagesAdminPage/index.js.map +1 -1
  178. package/dist/pages/PostLoginPage/index.js.map +1 -1
  179. package/dist/pages/PostLogoutPage/index.js.map +1 -1
  180. package/dist/pages/RouterErrorPage/index.js +1 -1
  181. package/dist/pages/RouterErrorPage/index.js.map +1 -1
  182. package/dist/pages/UserInvitationsAdminPage/UserInvitationConsumeDialog.d.ts +2 -2
  183. package/dist/pages/UserInvitationsAdminPage/UserInvitationShareDialog.d.ts +2 -2
  184. package/dist/pages/UsersAdminPage/index.js +47 -47
  185. package/dist/pages/UsersAdminPage/index.js.map +1 -1
  186. package/dist/setup/setup.js +1 -1
  187. package/dist/setup/setup.js.map +1 -1
  188. package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +1 -1
  189. package/dist/utils/MenuDataUtil/index.js.map +1 -1
  190. package/dist/utils/StandardConfigUtil/index.js +4 -4
  191. package/dist/utils/StandardConfigUtil/index.js.map +1 -1
  192. package/dist/utils/TableUtil/TableUtil.d.ts +1 -1
  193. package/package.json +7 -7
  194. package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
  195. package/dist/_chunks/isObjectLike.js +0 -43
  196. package/dist/_chunks/isObjectLike.js.map +0 -1
  197. package/dist/components/ui/BackdropSpinner/BackdropSpinner.d.ts +0 -5
  198. package/dist/components/ui/BackdropSpinner/index.d.ts +0 -1
  199. package/dist/components/ui/BackdropSpinner/index.js +0 -19
  200. package/dist/components/ui/BackdropSpinner/index.js.map +0 -1
  201. package/dist/components/ui/Confirmation/Confirmation.d.ts +0 -2
  202. package/dist/components/ui/Confirmation/ConfirmationRender.d.ts +0 -11
  203. package/dist/components/ui/Confirmation/index.d.ts +0 -2
  204. package/dist/components/ui/Confirmation/index.js +0 -58
  205. package/dist/components/ui/Confirmation/index.js.map +0 -1
  206. package/dist/components/ui/CopyToClipboardButton/CopyToClipboardButton.d.ts +0 -13
  207. package/dist/components/ui/CopyToClipboardButton/index.d.ts +0 -1
  208. package/dist/components/ui/CopyToClipboardButton/index.js +0 -101
  209. package/dist/components/ui/CopyToClipboardButton/index.js.map +0 -1
  210. package/dist/components/ui/Dialog/Dialog.d.ts +0 -27
  211. package/dist/components/ui/Dialog/index.d.ts +0 -1
  212. package/dist/components/ui/Dialog/index.js +0 -83
  213. package/dist/components/ui/Dialog/index.js.map +0 -1
  214. package/dist/components/ui/LinearProgressWithLabel/LinearProgressWithLabel.d.ts +0 -5
  215. package/dist/components/ui/LinearProgressWithLabel/index.d.ts +0 -1
  216. package/dist/components/ui/LinearProgressWithLabel/index.js +0 -31
  217. package/dist/components/ui/LinearProgressWithLabel/index.js.map +0 -1
  218. package/dist/components/ui/LoadingIndicator/LoadingIndicator.d.ts +0 -2
  219. package/dist/components/ui/LoadingIndicator/index.d.ts +0 -1
  220. package/dist/components/ui/LoadingIndicator/index.js +0 -12
  221. package/dist/components/ui/LoadingIndicator/index.js.map +0 -1
  222. package/dist/components/ui/NestedMenu/IconMenuItem.d.ts +0 -18
  223. package/dist/components/ui/NestedMenu/NestedDropdown.d.ts +0 -17
  224. package/dist/components/ui/NestedMenu/NestedMenuItem.d.ts +0 -22
  225. package/dist/components/ui/NestedMenu/index.d.ts +0 -4
  226. package/dist/components/ui/NestedMenu/index.js +0 -240
  227. package/dist/components/ui/NestedMenu/index.js.map +0 -1
  228. package/dist/components/ui/NestedMenu/nestedMenuItemsFromObject.d.ts +0 -11
  229. package/dist/components/ui/Spinner/Spinner.d.ts +0 -11
  230. package/dist/components/ui/Spinner/index.d.ts +0 -1
  231. package/dist/components/ui/Spinner/index.js +0 -63
  232. package/dist/components/ui/Spinner/index.js.map +0 -1
  233. package/dist/components/ui/Stepper/Stepper.d.ts +0 -17
  234. package/dist/components/ui/Stepper/index.d.ts +0 -2
  235. package/dist/components/ui/Stepper/index.js +0 -126
  236. package/dist/components/ui/Stepper/index.js.map +0 -1
  237. package/dist/components/ui/Stepper/stepperModel.d.ts +0 -4
  238. package/dist/hoc/withDialog/index.d.ts +0 -1
  239. package/dist/hoc/withDialog/index.js +0 -69
  240. package/dist/hoc/withDialog/index.js.map +0 -1
  241. package/dist/hoc/withDialog/withDialog.d.ts +0 -33
  242. package/dist/models/nestedMenu.d.ts +0 -17
  243. package/dist/models/nestedMenu.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js","../../../../src/classes/services/InactivityService/InactivityService.ts"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import throttle from 'lodash/throttle';\nimport { CommonDbLogLevel } from '@gen-epix/api-commondb';\nimport { SubscribableAbstract } from '@gen-epix/ui-core/classes/abstracts/SubscribableAbstract';\nimport { Subject } from '@gen-epix/ui-core/classes/Subject';\nimport { HmrUtil } from '@gen-epix/ui-core/utils/HmrUtil';\n\nimport { AuthenticationService } from '../AuthenticationService';\nimport { ConfigService } from '../ConfigService';\nimport { LogService } from '../LogService';\nimport { TimeUtil } from '../../../utils/TimeUtil';\n\nexport type InactivityState = {\n idleDiff: number;\n isIdle: boolean;\n notificationDiff: number;\n readableIdleDiff: string;\n readableNotificationDiff: string;\n};\n\nexport class InactivityService extends SubscribableAbstract<InactivityState> {\n private static __instance: InactivityService;\n\n private idleDiff: number = 0;\n\n private idleSince: number = Date.now();\n private isIdle: boolean = false;\n private isPaused: boolean = false;\n private notificationDiff: number = 0;\n private readonly onActivityDebounced: () => void;\n\n private constructor() {\n super(new Subject<InactivityState>({\n idleDiff: 0,\n isIdle: false,\n notificationDiff: 0,\n readableIdleDiff: '',\n readableNotificationDiff: '',\n }));\n\n const ALLOWED_IDLE_TIME_MS = ConfigService.getInstance().config.userInactivityConfirmation.ALLOWED_IDLE_TIME_MS;\n const NOTIFICATION_TIME_MS = ConfigService.getInstance().config.userInactivityConfirmation.NOTIFICATION_TIME_MS;\n\n this.onActivityDebounced = throttle(this.onActivity.bind(this), 1000, {\n leading: true,\n trailing: true,\n });\n\n ['mousemove', 'keydown', 'scroll'].forEach((event) => window.addEventListener(event, this.onActivityDebounced));\n\n setInterval(() => {\n if (this.idleSince > 0 && (Date.now() - ALLOWED_IDLE_TIME_MS) > this.idleSince && !this.isPaused) {\n this.idleDiff = Date.now() - this.idleSince;\n this.isIdle = true;\n\n const notificationEndTime = this.idleSince + ALLOWED_IDLE_TIME_MS + NOTIFICATION_TIME_MS;\n this.notificationDiff = notificationEndTime - Date.now();\n\n if (this.notificationDiff < 0) {\n this.logout();\n }\n\n if (this.isIdle) {\n this.doNext();\n }\n }\n }, 500);\n }\n\n public static getInstance(): InactivityService {\n InactivityService.__instance = HmrUtil.getHmrSingleton('inactivityService', InactivityService.__instance, () => new InactivityService());\n return InactivityService.__instance;\n }\n\n public logout(): void {\n LogService.getInstance().log([{\n detail: AuthenticationService.getInstance().authContextProps.user,\n level: CommonDbLogLevel.TRACE,\n topic: 'USER_LOGOUT_BY_INACTIVITY',\n }]);\n LogService.getInstance().flushLog();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n AuthenticationService.getInstance().authContextProps.signoutRedirect();\n }\n\n public pause(): void {\n this.isPaused = true;\n this.reset();\n }\n\n public reset(): void {\n this.idleSince = Date.now();\n this.isIdle = false;\n this.idleDiff = 0;\n this.notificationDiff = 0;\n this.doNext();\n }\n\n public resume(): void {\n this.isPaused = false;\n this.reset();\n }\n\n private doNext(): void {\n this.next({\n idleDiff: this.idleDiff,\n isIdle: this.isIdle,\n notificationDiff: this.notificationDiff,\n readableIdleDiff: TimeUtil.getReadableTimeRemaining(this.idleDiff),\n readableNotificationDiff: TimeUtil.getReadableTimeRemaining(this.notificationDiff),\n });\n }\n\n private onActivity(): void {\n if (this.isIdle) {\n return;\n }\n this.idleSince = Date.now();\n }\n\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;;;;;;;;CAAA,IAAI,IAAA,EAAA;CAsBJ,EAAO,UAAU,WAJI;EACnB,OAAO,EAAK,KAAK,IAAI;CACvB;;CCnBA,IAAI,IAAe;CAUnB,SAAS,EAAgB,GAAQ;EAG/B,KAFA,IAAI,IAAQ,EAAO,QAEZ,OAAW,EAAa,KAAK,EAAO,OAAO,CAAK,CAAC;EACxD,OAAO;CACT;CAEA,EAAO,UAAU;;CClBjB,IAAI,IAAA,EAAA,GAGA,IAAc;CASlB,SAAS,EAAS,GAAQ;EACxB,OAAO,KACH,EAAO,MAAM,GAAG,EAAgB,CAAM,IAAI,CAAC,CAAC,CAAC,QAAQ,GAAa,EAAE;CAE1E;CAEA,EAAO,UAAU;;CClBjB,IAAI,IAAA,EAAA,GACA,IAAA,EAAA,GACA,IAAA,EAAA,GAGA,IAAM,KAGN,IAAa,sBAGb,IAAa,cAGb,IAAY,eAGZ,IAAe;CAyBnB,SAAS,EAAS,GAAO;EACvB,IAAI,OAAO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;CACR;CAEA,OAAc,cAAiC;EAE7C,OADA,EAAkB,aAAa,EAAQ,gBAAgB,qBAAqB,EAAkB,kBAAkB,IAAI,EAAkB,CAAC,GAChI,EAAkB;CAC3B;CAEA,SAAsB;EAQpB,AAPA,EAAW,YAAY,CAAC,CAAC,IAAI,CAAC;GAC5B,QAAQ,EAAsB,YAAY,CAAC,CAAC,iBAAiB;GAC7D,OAAO,EAAiB;GACxB,OAAO;EACT,CAAC,CAAC,GACF,EAAW,YAAY,CAAC,CAAC,SAAS,GAElC,EAAsB,YAAY,CAAC,CAAC,iBAAiB,gBAAgB;CACvE;CAEA,QAAqB;EAEnB,AADA,KAAK,WAAW,IAChB,KAAK,MAAM;CACb;CAEA,QAAqB;EAKnB,AAJA,KAAK,YAAY,KAAK,IAAI,GAC1B,KAAK,SAAS,IACd,KAAK,WAAW,GAChB,KAAK,mBAAmB,GACxB,KAAK,OAAO;CACd;CAEA,SAAsB;EAEpB,AADA,KAAK,WAAW,IAChB,KAAK,MAAM;CACb;CAEA,SAAuB;EACrB,KAAK,KAAK;GACR,UAAU,KAAK;GACf,QAAQ,KAAK;GACb,kBAAkB,KAAK;GACvB,kBAAkB,EAAS,yBAAyB,KAAK,QAAQ;GACjE,0BAA0B,EAAS,yBAAyB,KAAK,gBAAgB;EACnF,CAAC;CACH;CAEA,aAA2B;EACrB,KAAK,WAGT,KAAK,YAAY,KAAK,IAAI;CAC5B;AAEF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js","../../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js","../../../../src/classes/services/InactivityService/InactivityService.ts"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import throttle from 'lodash/throttle';\nimport { CommonDbLogLevel } from '@gen-epix/api-commondb';\nimport { SubscribableAbstract } from '@gen-epix/ui-core/classes/abstracts/SubscribableAbstract';\nimport { Subject } from '@gen-epix/ui-core/classes/Subject';\nimport { HmrUtil } from '@gen-epix/ui-core/utils/HmrUtil';\n\nimport { AuthenticationService } from '../AuthenticationService';\nimport { ConfigService } from '../ConfigService';\nimport { LogService } from '../LogService';\nimport { TimeUtil } from '../../../utils/TimeUtil';\n\nexport type InactivityState = {\n idleDiff: number;\n isIdle: boolean;\n notificationDiff: number;\n readableIdleDiff: string;\n readableNotificationDiff: string;\n};\n\nexport class InactivityService extends SubscribableAbstract<InactivityState> {\n private static __instance: InactivityService;\n\n private idleDiff: number = 0;\n\n private idleSince: number = Date.now();\n private isIdle: boolean = false;\n private isPaused: boolean = false;\n private notificationDiff: number = 0;\n private readonly onActivityDebounced: () => void;\n\n private constructor() {\n super(new Subject<InactivityState>({\n idleDiff: 0,\n isIdle: false,\n notificationDiff: 0,\n readableIdleDiff: '',\n readableNotificationDiff: '',\n }));\n\n const ALLOWED_IDLE_TIME_MS = ConfigService.getInstance().config.userInactivityConfirmation.ALLOWED_IDLE_TIME_MS;\n const NOTIFICATION_TIME_MS = ConfigService.getInstance().config.userInactivityConfirmation.NOTIFICATION_TIME_MS;\n\n this.onActivityDebounced = throttle(this.onActivity.bind(this), 1000, {\n leading: true,\n trailing: true,\n });\n\n ['mousemove', 'keydown', 'scroll'].forEach((event) => window.addEventListener(event, this.onActivityDebounced));\n\n setInterval(() => {\n if (this.idleSince > 0 && (Date.now() - ALLOWED_IDLE_TIME_MS) > this.idleSince && !this.isPaused) {\n this.idleDiff = Date.now() - this.idleSince;\n this.isIdle = true;\n\n const notificationEndTime = this.idleSince + ALLOWED_IDLE_TIME_MS + NOTIFICATION_TIME_MS;\n this.notificationDiff = notificationEndTime - Date.now();\n\n if (this.notificationDiff < 0) {\n this.logout();\n }\n\n if (this.isIdle) {\n this.doNext();\n }\n }\n }, 500);\n }\n\n public static getInstance(): InactivityService {\n InactivityService.__instance = HmrUtil.getHmrSingleton('inactivityService', InactivityService.__instance, () => new InactivityService());\n return InactivityService.__instance;\n }\n\n public logout(): void {\n LogService.getInstance().log([{\n detail: AuthenticationService.getInstance().authContextProps.user,\n level: CommonDbLogLevel.TRACE,\n topic: 'USER_LOGOUT_BY_INACTIVITY',\n }]);\n LogService.getInstance().flushLog();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n AuthenticationService.getInstance().authContextProps.signoutRedirect();\n }\n\n public pause(): void {\n this.isPaused = true;\n this.reset();\n }\n\n public reset(): void {\n this.idleSince = Date.now();\n this.isIdle = false;\n this.idleDiff = 0;\n this.notificationDiff = 0;\n this.doNext();\n }\n\n public resume(): void {\n this.isPaused = false;\n this.reset();\n }\n\n private doNext(): void {\n this.next({\n idleDiff: this.idleDiff,\n isIdle: this.isIdle,\n notificationDiff: this.notificationDiff,\n readableIdleDiff: TimeUtil.getReadableTimeRemaining(this.idleDiff),\n readableNotificationDiff: TimeUtil.getReadableTimeRemaining(this.notificationDiff),\n });\n }\n\n private onActivity(): void {\n if (this.isIdle) {\n return;\n }\n this.idleSince = Date.now();\n }\n\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;;;;;;;CAAA,IAAI,IAAA,EAAA;CAsBJ,EAAO,UAAU,WAJI;EACnB,OAAO,EAAK,KAAK,IAAI;CACvB;;CCnBA,IAAI,IAAe;CAUnB,SAAS,EAAgB,GAAQ;EAG/B,KAFA,IAAI,IAAQ,EAAO,QAEZ,OAAW,EAAa,KAAK,EAAO,OAAO,CAAK,CAAC;EACxD,OAAO;CACT;CAEA,EAAO,UAAU;;CClBjB,IAAI,IAAA,EAAA,GAGA,IAAc;CASlB,SAAS,EAAS,GAAQ;EACxB,OAAO,KACH,EAAO,MAAM,GAAG,EAAgB,CAAM,IAAI,CAAC,CAAC,CAAC,QAAQ,GAAa,EAAE;CAE1E;CAEA,EAAO,UAAU;;CClBjB,IAA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K,YAAY,IAAuB;IAOpE,AANA,KAAK,mBAAmB,IAAsB,KAAK,IAAI,GAEnD,KAAK,mBAAmB,KAC1B,KAAK,OAAO,GAGV,KAAK,UACP,KAAK,OAAO;GAEhB;EACF,GAAG,GAAG;CACR;CAEA,OAAc,cAAiC;EAE7C,OADA,EAAkB,aAAa,EAAQ,gBAAgB,qBAAqB,EAAkB,kBAAkB,IAAI,EAAkB,CAAC,GAChI,EAAkB;CAC3B;CAEA,SAAsB;EAQpB,AAPA,EAAW,YAAY,CAAC,CAAC,IAAI,CAAC;GAC5B,QAAQ,EAAsB,YAAY,CAAC,CAAC,iBAAiB;GAC7D,OAAO,EAAiB;GACxB,OAAO;EACT,CAAC,CAAC,GACF,EAAW,YAAY,CAAC,CAAC,SAAS,GAElC,EAAsB,YAAY,CAAC,CAAC,iBAAiB,gBAAgB;CACvE;CAEA,QAAqB;EAEnB,AADA,KAAK,WAAW,IAChB,KAAK,MAAM;CACb;CAEA,QAAqB;EAKnB,AAJA,KAAK,YAAY,KAAK,IAAI,GAC1B,KAAK,SAAS,IACd,KAAK,WAAW,GAChB,KAAK,mBAAmB,GACxB,KAAK,OAAO;CACd;CAEA,SAAsB;EAEpB,AADA,KAAK,WAAW,IAChB,KAAK,MAAM;CACb;CAEA,SAAuB;EACrB,KAAK,KAAK;GACR,UAAU,KAAK;GACf,QAAQ,KAAK;GACb,kBAAkB,KAAK;GACvB,kBAAkB,EAAS,yBAAyB,KAAK,QAAQ;GACjE,0BAA0B,EAAS,yBAAyB,KAAK,gBAAgB;EACnF,CAAC;CACH;CAEA,aAA2B;EACrB,KAAK,WAGT,KAAK,YAAY,KAAK,IAAI;CAC5B;AAEF"}
@@ -1,4 +1,4 @@
1
- import { i as e } from "../../../_chunks/chunk-KS7C4IRE.js";
1
+ import { i as e } from "../../../_chunks/chunk-BV7QT456.js";
2
2
  import { HmrUtil as t } from "@gen-epix/ui-core/utils/HmrUtil";
3
3
  //#region src/classes/services/RouterService/RouterService.ts
4
4
  var n = class n {
@@ -1,36 +1,37 @@
1
1
  import { ConfigService as e } from "../../../classes/services/ConfigService/index.js";
2
- import { a as t, r as n } from "../../../_chunks/chunk-KS7C4IRE.js";
2
+ import { a as t, r as n } from "../../../_chunks/chunk-BV7QT456.js";
3
3
  import { RouterService as r } from "../../../classes/services/RouterService/index.js";
4
4
  import { AuthenticationService as i } from "../../../classes/services/AuthenticationService/index.js";
5
5
  import { ApiService as a } from "../../../classes/services/ApiService/index.js";
6
6
  import { LogService as o } from "../../../classes/services/LogService/index.js";
7
- import { t as s } from "../../../_chunks/QueryClientService.js";
8
- import { t as c } from "../../../_chunks/QueryClientProvider.js";
7
+ import { t as s } from "../../../_chunks/QueryClientProvider.js";
8
+ import { t as c } from "../../../_chunks/QueryClientService.js";
9
9
  import { ErrorPage as l } from "../../../pages/ErrorPage/index.js";
10
10
  import { BackendVersionService as u } from "../../../classes/services/BackendVersionService/index.js";
11
11
  import { EmotionCacheService as d } from "../../../classes/services/EmotionCacheService/index.js";
12
12
  import { CssBaseline as f, ThemeProvider as p } from "@mui/material";
13
13
  import * as m from "react";
14
- import { Component as h, createContext as g, createElement as _ } from "react";
15
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
16
- import * as b from "react-dom";
17
- import { CacheProvider as x } from "@emotion/react";
18
- //#region ../../node_modules/.pnpm/react-router@7.18.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-router/dist/development/dom-export.mjs
19
- function S(e) {
14
+ import { Component as h, createContext as g, createElement as _, useMemo as v } from "react";
15
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
16
+ import * as x from "react-dom";
17
+ import { UiCoreComponentsContextProvider as S } from "@gen-epix/ui-core-components/context/uiCoreComponentsConfigContext";
18
+ import { CacheProvider as C } from "@emotion/react";
19
+ //#region ../../node_modules/.pnpm/react-router@7.18.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/dom-export.mjs
20
+ function w(e) {
20
21
  return /* @__PURE__ */ m.createElement(n, {
21
- flushSync: b.flushSync,
22
+ flushSync: x.flushSync,
22
23
  ...e
23
24
  });
24
25
  }
25
26
  t();
26
27
  //#endregion
27
- //#region ../../node_modules/.pnpm/react-error-boundary@6.1.2_react@19.2.7/node_modules/react-error-boundary/dist/react-error-boundary.js
28
- var C = g(null), w = {
28
+ //#region ../../node_modules/.pnpm/react-error-boundary@6.1.4_@types+react@19.2.18_react@19.2.8/node_modules/react-error-boundary/dist/react-error-boundary.js
29
+ var T = g(null), E = {
29
30
  didCatch: !1,
30
31
  error: null
31
- }, T = class extends h {
32
+ }, D = class extends h {
32
33
  constructor(e) {
33
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = w;
34
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = E;
34
35
  }
35
36
  static getDerivedStateFromError(e) {
36
37
  return {
@@ -39,22 +40,22 @@ var C = g(null), w = {
39
40
  };
40
41
  }
41
42
  resetErrorBoundary(...e) {
42
- let { error: t } = this.state;
43
- t !== null && (this.props.onReset?.({
43
+ let { didCatch: t } = this.state;
44
+ t && (this.props.onReset?.({
44
45
  args: e,
45
46
  reason: "imperative-api"
46
- }), this.setState(w));
47
+ }), this.setState(E));
47
48
  }
48
49
  componentDidCatch(e, t) {
49
50
  this.props.onError?.(e, t);
50
51
  }
51
52
  componentDidUpdate(e, t) {
52
53
  let { didCatch: n } = this.state, { resetKeys: r } = this.props;
53
- n && t.error !== null && E(e.resetKeys, r) && (this.props.onReset?.({
54
+ n && t.didCatch && O(e.resetKeys, r) && (this.props.onReset?.({
54
55
  next: r,
55
56
  prev: e.resetKeys,
56
57
  reason: "keys"
57
- }), this.setState(w));
58
+ }), this.setState(E));
58
59
  }
59
60
  render() {
60
61
  let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
@@ -68,39 +69,48 @@ var C = g(null), w = {
68
69
  else if (r !== void 0) o = r;
69
70
  else throw a;
70
71
  }
71
- return _(C.Provider, { value: {
72
+ return _(T.Provider, { value: {
72
73
  didCatch: i,
73
74
  error: a,
74
75
  resetErrorBoundary: this.resetErrorBoundary
75
76
  } }, o);
76
77
  }
77
78
  };
78
- function E(e = [], t = []) {
79
+ function O(e = [], t = []) {
79
80
  return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
80
81
  }
81
82
  //#endregion
82
83
  //#region src/components/app/App/App.tsx
83
- var D = () => {
84
- let { config: t } = e.getInstance(), n = i.getInstance(), m = o.getInstance(), h = t.getTouchIconUrl();
85
- h && document.querySelector("link[rel=\"icon\"]")?.setAttribute("href", h);
86
- let g = a.getInstance(), _ = r.getInstance();
87
- g.api.baseUrl = t.getAPIBaseUrl(), g.api.defaultRequestTimeout = t.defaultRequestTimeout, g.api.onRequest = [n.onRequest.bind(n), m.onRequest.bind(m)], g.api.onResponseFulfilled = [m.onResponseFulfilled.bind(m), u.getInstance().onResponseFulfilled.bind(u.getInstance())], g.api.onResponseRejected = [m.onResponseRejected.bind(m), n.onResponseRejected.bind(n)];
88
- let b = s.getInstance(), C = d.getInstance();
89
- return /* @__PURE__ */ v(c, {
90
- client: b.queryClient,
91
- children: /* @__PURE__ */ v(x, {
92
- value: C.emotionCache,
93
- children: /* @__PURE__ */ y(p, {
94
- theme: e.getInstance().config.theme,
95
- children: [/* @__PURE__ */ v(f, {}), /* @__PURE__ */ v(T, {
96
- FallbackComponent: l,
97
- children: /* @__PURE__ */ v(S, { router: _.router })
98
- })]
84
+ var k = () => {
85
+ let { config: t } = e.getInstance(), n = v(() => {
86
+ let { DEFAULT_CIRCULAR_PROGRESS_SIZE: e, DEFAULT_TAKING_LONGER_TIMEOUT_MS: n } = t.spinner;
87
+ return { spinner: {
88
+ defaultCircularProgressSize: e,
89
+ defaultTakingLongerTimeoutMs: n
90
+ } };
91
+ }, [t.spinner]), m = i.getInstance(), h = o.getInstance(), g = t.getTouchIconUrl();
92
+ g && document.querySelector("link[rel=\"icon\"]")?.setAttribute("href", g);
93
+ let _ = a.getInstance(), x = r.getInstance();
94
+ _.api.baseUrl = t.getAPIBaseUrl(), _.api.defaultRequestTimeout = t.defaultRequestTimeout, _.api.onRequest = [m.onRequest.bind(m), h.onRequest.bind(h)], _.api.onResponseFulfilled = [h.onResponseFulfilled.bind(h), u.getInstance().onResponseFulfilled.bind(u.getInstance())], _.api.onResponseRejected = [h.onResponseRejected.bind(h), m.onResponseRejected.bind(m)];
95
+ let T = c.getInstance(), E = d.getInstance();
96
+ return /* @__PURE__ */ y(S, {
97
+ config: n,
98
+ children: /* @__PURE__ */ y(s, {
99
+ client: T.queryClient,
100
+ children: /* @__PURE__ */ y(C, {
101
+ value: E.emotionCache,
102
+ children: /* @__PURE__ */ b(p, {
103
+ theme: e.getInstance().config.theme,
104
+ children: [/* @__PURE__ */ y(f, {}), /* @__PURE__ */ y(D, {
105
+ FallbackComponent: l,
106
+ children: /* @__PURE__ */ y(w, { router: x.router })
107
+ })]
108
+ })
99
109
  })
100
110
  })
101
111
  });
102
112
  };
103
113
  //#endregion
104
- export { D as App };
114
+ export { k as App };
105
115
 
106
116
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["createContext","l","y","d"],"sources":["../../../../../../node_modules/.pnpm/react-router@7.18.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-router/dist/development/dom-export.mjs","../../../../../../node_modules/.pnpm/react-error-boundary@6.1.2_react@19.2.7/node_modules/react-error-boundary/dist/react-error-boundary.js","../../../../src/components/app/App/App.tsx"],"sourcesContent":["/**\n * react-router v7.18.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n\"use client\";\nimport {\n RSCRouterGlobalErrorBoundary,\n getHydrationData,\n populateRSCRouteModules\n} from \"./chunk-IJF3QNGC.mjs\";\nimport {\n CRITICAL_CSS_DATA_ATTRIBUTE,\n ErrorResponseImpl,\n FrameworkContext,\n PROTOCOL_RELATIVE_URL_REGEX,\n RSCRouterContext,\n RemixErrorBoundary,\n RouterProvider,\n URL_LIMIT,\n createBrowserHistory,\n createClientRoutes,\n createClientRoutesWithHMRRevalidationOptOut,\n createContext,\n createRequestInit,\n createRouter,\n decodeViaTurboStream,\n getPatchRoutesOnNavigationFunction,\n getPathsWithAncestors,\n getSingleFetchDataStrategyImpl,\n getTurboStreamSingleFetchDataStrategy,\n hasInvalidProtocol,\n hydrationRouteProperties,\n invariant,\n isMutationMethod,\n mapRouteProperties,\n noActionDefinedError,\n resolvePath,\n setIsHydrated,\n shouldHydrateRouteLoader,\n singleFetchUrl,\n stripIndexParam,\n useFogOFWarDiscovery\n} from \"./chunk-KS7C4IRE.mjs\";\n\n// lib/dom-export/dom-router-provider.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nfunction RouterProvider2(props) {\n return /* @__PURE__ */ React.createElement(RouterProvider, { flushSync: ReactDOM.flushSync, ...props });\n}\n\n// lib/dom-export/hydrated-router.tsx\nimport * as React2 from \"react\";\nvar ssrInfo = null;\nvar router = null;\nfunction initSsrInfo() {\n if (!ssrInfo && window.__reactRouterContext && window.__reactRouterManifest && window.__reactRouterRouteModules) {\n if (window.__reactRouterManifest.sri === true) {\n const importMap = document.querySelector(\"script[rr-importmap]\");\n if (importMap?.textContent) {\n try {\n window.__reactRouterManifest.sri = JSON.parse(\n importMap.textContent\n ).integrity;\n } catch (err) {\n console.error(\"Failed to parse import map\", err);\n }\n }\n }\n ssrInfo = {\n context: window.__reactRouterContext,\n manifest: window.__reactRouterManifest,\n routeModules: window.__reactRouterRouteModules,\n stateDecodingPromise: void 0,\n router: void 0,\n routerInitialized: false\n };\n }\n}\nfunction createHydratedRouter({\n getContext,\n instrumentations\n}) {\n initSsrInfo();\n if (!ssrInfo) {\n throw new Error(\n \"You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`\"\n );\n }\n let localSsrInfo = ssrInfo;\n if (!ssrInfo.stateDecodingPromise) {\n let stream = ssrInfo.context.stream;\n invariant(stream, \"No stream found for single fetch decoding\");\n ssrInfo.context.stream = void 0;\n ssrInfo.stateDecodingPromise = decodeViaTurboStream(stream, window).then((value) => {\n ssrInfo.context.state = value.value;\n localSsrInfo.stateDecodingPromise.value = true;\n }).catch((e) => {\n localSsrInfo.stateDecodingPromise.error = e;\n });\n }\n if (ssrInfo.stateDecodingPromise.error) {\n throw ssrInfo.stateDecodingPromise.error;\n }\n if (!ssrInfo.stateDecodingPromise.value) {\n throw ssrInfo.stateDecodingPromise;\n }\n let routes = createClientRoutes(\n ssrInfo.manifest.routes,\n ssrInfo.routeModules,\n ssrInfo.context.state,\n ssrInfo.context.ssr,\n ssrInfo.context.isSpaMode\n );\n let hydrationData = void 0;\n if (ssrInfo.context.isSpaMode) {\n let { loaderData } = ssrInfo.context.state;\n if (ssrInfo.manifest.routes.root?.hasLoader && loaderData && \"root\" in loaderData) {\n hydrationData = {\n loaderData: {\n root: loaderData.root\n }\n };\n }\n } else {\n hydrationData = getHydrationData({\n state: ssrInfo.context.state,\n routes,\n getRouteInfo: (routeId) => ({\n clientLoader: ssrInfo.routeModules[routeId]?.clientLoader,\n hasLoader: ssrInfo.manifest.routes[routeId]?.hasLoader === true,\n hasHydrateFallback: ssrInfo.routeModules[routeId]?.HydrateFallback != null\n }),\n location: window.location,\n basename: window.__reactRouterContext?.basename,\n isSpaMode: ssrInfo.context.isSpaMode\n });\n }\n if (window.history.state && window.history.state.masked) {\n window.history.replaceState(\n { ...window.history.state, masked: void 0 },\n \"\"\n );\n }\n let router2 = createRouter({\n routes,\n history: createBrowserHistory(),\n basename: ssrInfo.context.basename,\n getContext,\n hydrationData,\n hydrationRouteProperties,\n instrumentations,\n mapRouteProperties,\n future: {\n v8_passThroughRequests: ssrInfo.context.future.v8_passThroughRequests\n },\n dataStrategy: getTurboStreamSingleFetchDataStrategy(\n () => router2,\n ssrInfo.manifest,\n ssrInfo.routeModules,\n ssrInfo.context.ssr,\n ssrInfo.context.basename,\n ssrInfo.context.future.v8_trailingSlashAwareDataRequests\n ),\n patchRoutesOnNavigation: getPatchRoutesOnNavigationFunction(\n () => router2,\n ssrInfo.manifest,\n ssrInfo.routeModules,\n ssrInfo.context.ssr,\n ssrInfo.context.routeDiscovery,\n ssrInfo.context.isSpaMode,\n ssrInfo.context.basename\n )\n });\n ssrInfo.router = router2;\n if (router2.state.initialized) {\n ssrInfo.routerInitialized = true;\n router2.initialize();\n }\n router2.createRoutesForHMR = /* spacer so ts-ignore does not affect the right hand of the assignment */\n createClientRoutesWithHMRRevalidationOptOut;\n window.__reactRouterDataRouter = router2;\n return router2;\n}\nfunction HydratedRouter(props) {\n if (!router) {\n router = createHydratedRouter({\n getContext: props.getContext,\n instrumentations: props.instrumentations\n });\n }\n let [criticalCss, setCriticalCss] = React2.useState(\n process.env.NODE_ENV === \"development\" ? ssrInfo?.context.criticalCss : void 0\n );\n React2.useEffect(() => {\n if (process.env.NODE_ENV === \"development\") {\n setCriticalCss(void 0);\n }\n }, []);\n React2.useEffect(() => {\n if (process.env.NODE_ENV === \"development\" && criticalCss === void 0) {\n document.querySelectorAll(`[${CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());\n }\n }, [criticalCss]);\n let [location2, setLocation] = React2.useState(router.state.location);\n React2.useLayoutEffect(() => {\n if (ssrInfo && ssrInfo.router && !ssrInfo.routerInitialized) {\n ssrInfo.routerInitialized = true;\n ssrInfo.router.initialize();\n }\n }, []);\n React2.useLayoutEffect(() => {\n if (ssrInfo && ssrInfo.router) {\n return ssrInfo.router.subscribe((newState) => {\n if (newState.location !== location2) {\n setLocation(newState.location);\n }\n });\n }\n }, [location2]);\n invariant(ssrInfo, \"ssrInfo unavailable for HydratedRouter\");\n useFogOFWarDiscovery(\n router,\n ssrInfo.manifest,\n ssrInfo.routeModules,\n ssrInfo.context.ssr,\n ssrInfo.context.routeDiscovery,\n ssrInfo.context.isSpaMode\n );\n return (\n // This fragment is important to ensure we match the <ServerRouter> JSX\n // structure so that useId values hydrate correctly\n /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(\n FrameworkContext.Provider,\n {\n value: {\n manifest: ssrInfo.manifest,\n routeModules: ssrInfo.routeModules,\n future: ssrInfo.context.future,\n criticalCss,\n ssr: ssrInfo.context.ssr,\n isSpaMode: ssrInfo.context.isSpaMode,\n routeDiscovery: ssrInfo.context.routeDiscovery\n }\n },\n /* @__PURE__ */ React2.createElement(RemixErrorBoundary, { location: location2 }, /* @__PURE__ */ React2.createElement(\n RouterProvider2,\n {\n router,\n useTransitions: props.useTransitions,\n onError: props.onError\n }\n ))\n ), /* @__PURE__ */ React2.createElement(React2.Fragment, null))\n );\n}\n\n// lib/rsc/browser.tsx\nimport * as React3 from \"react\";\nimport * as ReactDOM2 from \"react-dom\";\nvar defaultManifestPath = \"/__manifest\";\nfunction createCallServer({\n createFromReadableStream,\n createTemporaryReferenceSet,\n encodeReply,\n fetch: fetchImplementation = fetch\n}) {\n const globalVar = window;\n let landedActionId = 0;\n return async (id, args) => {\n let actionId = globalVar.__routerActionID = (globalVar.__routerActionID ?? (globalVar.__routerActionID = 0)) + 1;\n const temporaryReferences = createTemporaryReferenceSet();\n const payloadPromise = fetchImplementation(\n new Request(location.href, {\n body: await encodeReply(args, { temporaryReferences }),\n method: \"POST\",\n headers: {\n Accept: \"text/x-component\",\n \"rsc-action-id\": id\n }\n })\n ).then((response) => {\n if (!response.body) {\n throw new Error(\"No response body\");\n }\n return createFromReadableStream(response.body, {\n temporaryReferences\n });\n });\n React3.startTransition(\n () => (\n // @ts-expect-error - Needs React 19 types\n Promise.resolve(payloadPromise).then(async (payload) => {\n if (payload.type === \"redirect\") {\n let location2 = normalizeRedirectLocation(payload.location);\n if (payload.reload || isExternalLocation(location2)) {\n if (hasInvalidProtocol(location2)) {\n throw new Error(\"Invalid redirect location\");\n }\n window.location.href = location2;\n return;\n }\n React3.startTransition(() => {\n globalVar.__reactRouterDataRouter.navigate(location2, {\n replace: payload.replace\n });\n });\n return;\n }\n if (payload.type !== \"action\") {\n throw new Error(\"Unexpected payload type\");\n }\n const rerender = await payload.rerender;\n if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {\n if (rerender.type === \"redirect\") {\n let location2 = normalizeRedirectLocation(rerender.location);\n if (rerender.reload || isExternalLocation(location2)) {\n if (hasInvalidProtocol(location2)) {\n throw new Error(\"Invalid redirect location\");\n }\n window.location.href = location2;\n return;\n }\n React3.startTransition(() => {\n globalVar.__reactRouterDataRouter.navigate(location2, {\n replace: rerender.replace\n });\n });\n return;\n }\n React3.startTransition(() => {\n let lastMatch;\n for (const match of rerender.matches) {\n globalVar.__reactRouterDataRouter.patchRoutes(\n lastMatch?.id ?? null,\n [createRouteFromServerManifest(match)],\n true\n );\n lastMatch = match;\n }\n window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(\n {\n loaderData: Object.assign(\n {},\n globalVar.__reactRouterDataRouter.state.loaderData,\n rerender.loaderData\n ),\n errors: rerender.errors ? Object.assign(\n {},\n globalVar.__reactRouterDataRouter.state.errors,\n rerender.errors\n ) : null\n }\n );\n });\n }\n }).catch(() => {\n })\n )\n );\n return payloadPromise.then((payload) => {\n if (payload.type !== \"action\" && payload.type !== \"redirect\") {\n throw new Error(\"Unexpected payload type\");\n }\n return payload.actionResult;\n });\n };\n}\nfunction createRouterFromPayload({\n fetchImplementation,\n createFromReadableStream,\n getContext,\n payload\n}) {\n const globalVar = window;\n if (globalVar.__reactRouterDataRouter && globalVar.__reactRouterRouteModules)\n return {\n router: globalVar.__reactRouterDataRouter,\n routeModules: globalVar.__reactRouterRouteModules\n };\n if (payload.type !== \"render\") throw new Error(\"Invalid payload type\");\n globalVar.__reactRouterRouteModules = globalVar.__reactRouterRouteModules ?? {};\n populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);\n let routes = payload.matches.reduceRight((previous, match) => {\n const route = createRouteFromServerManifest(\n match,\n payload\n );\n if (previous.length > 0) {\n route.children = previous;\n } else if (!route.index) {\n route.children = [];\n }\n return [route];\n }, []);\n let applyPatchesPromise;\n globalVar.__reactRouterDataRouter = createRouter({\n routes,\n getContext,\n basename: payload.basename,\n history: createBrowserHistory(),\n hydrationData: getHydrationData({\n state: {\n loaderData: payload.loaderData,\n actionData: payload.actionData,\n errors: payload.errors\n },\n routes,\n getRouteInfo: (routeId) => {\n let match = payload.matches.find((m) => m.id === routeId);\n invariant(match, \"Route not found in payload\");\n return {\n clientLoader: match.clientLoader,\n hasLoader: match.hasLoader,\n hasHydrateFallback: match.hydrateFallbackElement != null\n };\n },\n location: payload.location,\n basename: payload.basename,\n isSpaMode: false\n }),\n async patchRoutesOnNavigation({ path, signal }) {\n if (payload.routeDiscovery.mode === \"initial\") {\n if (!applyPatchesPromise) {\n applyPatchesPromise = (async () => {\n if (!payload.patches) return;\n let patches = await payload.patches;\n React3.startTransition(() => {\n patches.forEach((p) => {\n window.__reactRouterDataRouter.patchRoutes(p.parentId ?? null, [\n createRouteFromServerManifest(p)\n ]);\n });\n });\n })();\n }\n await applyPatchesPromise;\n return;\n }\n if (discoveredPaths.has(path)) {\n return;\n }\n await fetchAndApplyManifestPatches(\n [path],\n createFromReadableStream,\n fetchImplementation,\n signal\n );\n },\n // FIXME: Pass `build.ssr` into this function\n dataStrategy: getRSCSingleFetchDataStrategy(\n () => globalVar.__reactRouterDataRouter,\n true,\n payload.basename,\n createFromReadableStream,\n fetchImplementation\n )\n });\n if (globalVar.__reactRouterDataRouter.state.initialized) {\n globalVar.__routerInitialized = true;\n globalVar.__reactRouterDataRouter.initialize();\n } else {\n globalVar.__routerInitialized = false;\n }\n let lastLoaderData = void 0;\n globalVar.__reactRouterDataRouter.subscribe(({ loaderData, actionData }) => {\n if (lastLoaderData !== loaderData) {\n globalVar.__routerActionID = (globalVar.__routerActionID ?? (globalVar.__routerActionID = 0)) + 1;\n }\n });\n globalVar.__reactRouterDataRouter._updateRoutesForHMR = (routeUpdateByRouteId) => {\n const oldRoutes = window.__reactRouterDataRouter.routes;\n const newRoutes = [];\n function walkRoutes(routes2, parentId) {\n return routes2.map((route) => {\n const routeUpdate = routeUpdateByRouteId.get(route.id);\n if (routeUpdate) {\n const {\n routeModule,\n hasAction,\n hasComponent,\n hasErrorBoundary,\n hasLoader\n } = routeUpdate;\n const newRoute = createRouteFromServerManifest({\n clientAction: routeModule.clientAction,\n clientLoader: routeModule.clientLoader,\n element: route.element,\n errorElement: route.errorElement,\n handle: route.handle,\n hasAction,\n hasComponent,\n hasErrorBoundary,\n hasLoader,\n hydrateFallbackElement: route.hydrateFallbackElement,\n id: route.id,\n index: route.index,\n links: routeModule.links,\n meta: routeModule.meta,\n parentId,\n path: route.path,\n shouldRevalidate: routeModule.shouldRevalidate\n });\n if (route.children) {\n newRoute.children = walkRoutes(route.children, route.id);\n }\n return newRoute;\n }\n const updatedRoute = { ...route };\n if (route.children) {\n updatedRoute.children = walkRoutes(route.children, route.id);\n }\n return updatedRoute;\n });\n }\n newRoutes.push(\n ...walkRoutes(oldRoutes, void 0)\n );\n window.__reactRouterDataRouter._internalSetRoutes(newRoutes);\n };\n return {\n router: globalVar.__reactRouterDataRouter,\n routeModules: globalVar.__reactRouterRouteModules\n };\n}\nvar renderedRoutesContext = createContext();\nfunction getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {\n let dataStrategy = getSingleFetchDataStrategyImpl(\n getRouter,\n (match) => {\n let M = match;\n return {\n hasLoader: M.route.hasLoader,\n hasClientLoader: M.route.hasClientLoader,\n hasComponent: M.route.hasComponent,\n hasAction: M.route.hasAction,\n hasClientAction: M.route.hasClientAction\n };\n },\n // pass map into fetchAndDecode so it can add payloads\n getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation),\n ssr,\n basename,\n // .rsc requests are always trailing slash aware\n true,\n // If the route has a component but we don't have an element, we need to hit\n // the server loader flow regardless of whether the client loader calls\n // `serverLoader` or not, otherwise we'll have nothing to render.\n (match) => {\n let M = match;\n return M.route.hasComponent && !M.route.element;\n }\n );\n return async (args) => args.runClientMiddleware(async () => {\n let context = args.context;\n context.set(renderedRoutesContext, []);\n let results = await dataStrategy(args);\n const renderedRoutesById = /* @__PURE__ */ new Map();\n for (const route of context.get(renderedRoutesContext)) {\n if (!renderedRoutesById.has(route.id)) {\n renderedRoutesById.set(route.id, []);\n }\n renderedRoutesById.get(route.id).push(route);\n }\n React3.startTransition(() => {\n for (const match of args.matches) {\n const renderedRoutes = renderedRoutesById.get(match.route.id);\n if (renderedRoutes) {\n for (const rendered of renderedRoutes) {\n window.__reactRouterDataRouter.patchRoutes(\n rendered.parentId ?? null,\n [createRouteFromServerManifest(rendered)],\n true\n );\n }\n }\n }\n });\n return results;\n });\n}\nfunction getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {\n return async (args, basename, trailingSlashAware, targetRoutes) => {\n let { request, context } = args;\n let url = singleFetchUrl(request.url, basename, trailingSlashAware, \"rsc\");\n if (request.method === \"GET\") {\n url = stripIndexParam(url);\n if (targetRoutes) {\n url.searchParams.set(\"_routes\", targetRoutes.join(\",\"));\n }\n }\n let res = await fetchImplementation(\n new Request(url, await createRequestInit(request))\n );\n if (res.status >= 400 && !res.headers.has(\"X-Remix-Response\")) {\n throw new ErrorResponseImpl(res.status, res.statusText, await res.text());\n }\n invariant(res.body, \"No response body to decode\");\n try {\n const payload = await createFromReadableStream(res.body, {\n temporaryReferences: void 0\n });\n if (payload.type === \"redirect\") {\n return {\n status: res.status,\n data: {\n redirect: {\n redirect: payload.location,\n reload: payload.reload,\n replace: payload.replace,\n revalidate: false,\n status: payload.status\n }\n }\n };\n }\n if (payload.type !== \"render\") {\n throw new Error(\"Unexpected payload type\");\n }\n context.get(renderedRoutesContext).push(...payload.matches);\n let results = { routes: {} };\n const dataKey = isMutationMethod(request.method) ? \"actionData\" : \"loaderData\";\n for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {\n results.routes[routeId] = { data };\n }\n if (payload.errors) {\n for (let [routeId, error] of Object.entries(payload.errors)) {\n results.routes[routeId] = { error };\n }\n }\n return { status: res.status, data: results };\n } catch (cause) {\n throw new Error(\"Unable to decode RSC response\", { cause });\n }\n };\n}\nfunction RSCHydratedRouter({\n createFromReadableStream,\n fetch: fetchImplementation = fetch,\n payload,\n getContext\n}) {\n if (payload.type !== \"render\") throw new Error(\"Invalid payload type\");\n let { routeDiscovery } = payload;\n let { router: router2, routeModules } = React3.useMemo(\n () => createRouterFromPayload({\n payload,\n fetchImplementation,\n getContext,\n createFromReadableStream\n }),\n [createFromReadableStream, payload, fetchImplementation, getContext]\n );\n React3.useEffect(() => {\n setIsHydrated();\n }, []);\n React3.useLayoutEffect(() => {\n const globalVar = window;\n if (!globalVar.__routerInitialized) {\n globalVar.__routerInitialized = true;\n globalVar.__reactRouterDataRouter.initialize();\n }\n }, []);\n let [{ routes, state }, setState] = React3.useState(() => ({\n routes: cloneRoutes(router2.routes),\n state: router2.state\n }));\n React3.useLayoutEffect(\n () => router2.subscribe((newState) => {\n if (diffRoutes(router2.routes, routes))\n React3.startTransition(() => {\n setState({\n routes: cloneRoutes(router2.routes),\n state: newState\n });\n });\n }),\n [router2.subscribe, routes, router2]\n );\n const transitionEnabledRouter = React3.useMemo(\n () => ({\n ...router2,\n state,\n routes\n }),\n [router2, routes, state]\n );\n React3.useEffect(() => {\n if (routeDiscovery.mode === \"initial\" || // @ts-expect-error - TS doesn't know about this yet\n window.navigator?.connection?.saveData === true) {\n return;\n }\n function registerElement(el) {\n let path = el.tagName === \"FORM\" ? el.getAttribute(\"action\") : el.getAttribute(\"href\");\n if (!path) {\n return;\n }\n let pathname = el.tagName === \"A\" ? el.pathname : new URL(path, window.location.origin).pathname;\n if (!discoveredPaths.has(pathname)) {\n nextPaths.add(pathname);\n }\n }\n async function fetchPatches() {\n document.querySelectorAll(\"a[data-discover], form[data-discover]\").forEach(registerElement);\n let paths = Array.from(nextPaths.keys()).filter((path) => {\n if (discoveredPaths.has(path)) {\n nextPaths.delete(path);\n return false;\n }\n return true;\n });\n if (paths.length === 0) {\n return;\n }\n try {\n await fetchAndApplyManifestPatches(\n paths,\n createFromReadableStream,\n fetchImplementation\n );\n } catch (e) {\n console.error(\"Failed to fetch manifest patches\", e);\n }\n }\n let debouncedFetchPatches = debounce(fetchPatches, 100);\n fetchPatches();\n let observer = new MutationObserver(() => debouncedFetchPatches());\n observer.observe(document.documentElement, {\n subtree: true,\n childList: true,\n attributes: true,\n attributeFilter: [\"data-discover\", \"href\", \"action\"]\n });\n }, [routeDiscovery, createFromReadableStream, fetchImplementation]);\n const frameworkContext = {\n future: {\n // These flags have no runtime impact so can always be false. If we add\n // flags that drive runtime behavior they'll need to be proxied through.\n v8_middleware: false,\n v8_trailingSlashAwareDataRequests: true,\n // always on for RSC\n v8_passThroughRequests: true\n // always on for RSC\n },\n isSpaMode: false,\n ssr: true,\n criticalCss: \"\",\n manifest: {\n routes: {},\n version: \"1\",\n url: \"\",\n entry: {\n module: \"\",\n imports: []\n }\n },\n routeDiscovery: payload.routeDiscovery.mode === \"initial\" ? { mode: \"initial\", manifestPath: defaultManifestPath } : {\n mode: \"lazy\",\n manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath\n },\n routeModules\n };\n return /* @__PURE__ */ React3.createElement(RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(\n RouterProvider,\n {\n router: transitionEnabledRouter,\n flushSync: ReactDOM2.flushSync\n }\n ))));\n}\nfunction createRouteFromServerManifest(match, payload) {\n let hasInitialData = payload && match.id in payload.loaderData;\n let initialData = payload?.loaderData[match.id];\n let hasInitialError = payload?.errors && match.id in payload.errors;\n let initialError = payload?.errors?.[match.id];\n let isHydrationRequest = match.clientLoader?.hydrate === true || !match.hasLoader || // If the route has a component but we don't have an element, we need to hit\n // the server loader flow regardless of whether the client loader calls\n // `serverLoader` or not, otherwise we'll have nothing to render.\n match.hasComponent && !match.element;\n invariant(window.__reactRouterRouteModules);\n populateRSCRouteModules(window.__reactRouterRouteModules, match);\n let dataRoute = {\n id: match.id,\n element: match.element,\n errorElement: match.errorElement,\n handle: match.handle,\n hasErrorBoundary: match.hasErrorBoundary,\n hydrateFallbackElement: match.hydrateFallbackElement,\n index: match.index,\n loader: match.clientLoader ? async (args, singleFetch) => {\n let _isHydrationRequest = isHydrationRequest;\n isHydrationRequest = false;\n let result = await match.clientLoader({\n ...args,\n serverLoader: () => {\n preventInvalidServerHandlerCall(\n \"loader\",\n match.id,\n match.hasLoader\n );\n if (_isHydrationRequest) {\n if (hasInitialData) {\n return initialData;\n }\n if (hasInitialError) {\n throw initialError;\n }\n }\n return callSingleFetch(singleFetch);\n }\n });\n return result;\n } : (\n // We always make the call in this RSC world since even if we don't\n // have a `loader` we may need to get the `element` implementation\n (_, singleFetch) => callSingleFetch(singleFetch)\n ),\n action: match.clientAction ? (args, singleFetch) => match.clientAction({\n ...args,\n serverAction: async () => {\n preventInvalidServerHandlerCall(\n \"action\",\n match.id,\n match.hasLoader\n );\n return await callSingleFetch(singleFetch);\n }\n }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {\n throw noActionDefinedError(\"action\", match.id);\n },\n path: match.path,\n shouldRevalidate: match.shouldRevalidate,\n // We always have a \"loader\" in this RSC world since even if we don't\n // have a `loader` we may need to get the `element` implementation\n hasLoader: true,\n hasClientLoader: match.clientLoader != null,\n hasAction: match.hasAction,\n hasClientAction: match.clientAction != null\n };\n if (typeof dataRoute.loader === \"function\") {\n dataRoute.loader.hydrate = shouldHydrateRouteLoader(\n match.id,\n match.clientLoader,\n match.hasLoader,\n false\n );\n }\n return dataRoute;\n}\nfunction callSingleFetch(singleFetch) {\n invariant(typeof singleFetch === \"function\", \"Invalid singleFetch parameter\");\n return singleFetch();\n}\nfunction preventInvalidServerHandlerCall(type, routeId, hasHandler) {\n if (!hasHandler) {\n let fn = type === \"action\" ? \"serverAction()\" : \"serverLoader()\";\n let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: \"${routeId}\")`;\n console.error(msg);\n throw new ErrorResponseImpl(400, \"Bad Request\", new Error(msg), true);\n }\n}\nvar nextPaths = /* @__PURE__ */ new Set();\nvar discoveredPathsMaxSize = 1e3;\nvar discoveredPaths = /* @__PURE__ */ new Set();\nfunction getManifestUrl(paths) {\n if (paths.length === 0) {\n return null;\n }\n if (paths.length === 1) {\n return new URL(`${paths[0]}.manifest`, window.location.origin);\n }\n const globalVar = window;\n let basename = (globalVar.__reactRouterDataRouter.basename ?? \"\").replace(\n /^\\/|\\/$/g,\n \"\"\n );\n let url = new URL(`${basename}/.manifest`, window.location.origin);\n url.searchParams.set(\"paths\", paths.sort().join(\",\"));\n return url;\n}\nasync function fetchAndApplyManifestPatches(paths, createFromReadableStream, fetchImplementation, signal) {\n paths = getPathsWithAncestors(paths);\n let url = getManifestUrl(paths);\n if (url == null) {\n return;\n }\n if (url.toString().length > URL_LIMIT) {\n nextPaths.clear();\n return;\n }\n let response = await fetchImplementation(new Request(url, { signal }));\n if (!response.body || response.status < 200 || response.status >= 300) {\n throw new Error(\"Unable to fetch new route matches from the server\");\n }\n let payload = await createFromReadableStream(response.body, {\n temporaryReferences: void 0\n });\n if (payload.type !== \"manifest\") {\n throw new Error(\"Failed to patch routes\");\n }\n paths.forEach((p) => addToFifoQueue(p, discoveredPaths));\n let patches = await payload.patches;\n React3.startTransition(() => {\n patches.forEach((p) => {\n window.__reactRouterDataRouter.patchRoutes(\n p.parentId ?? null,\n [createRouteFromServerManifest(p)]\n );\n });\n });\n}\nfunction addToFifoQueue(path, queue) {\n if (queue.size >= discoveredPathsMaxSize) {\n let first = queue.values().next().value;\n if (typeof first === \"string\") queue.delete(first);\n }\n queue.add(path);\n}\nfunction debounce(callback, wait) {\n let timeoutId;\n return (...args) => {\n window.clearTimeout(timeoutId);\n timeoutId = window.setTimeout(() => callback(...args), wait);\n };\n}\nfunction isExternalLocation(location2) {\n const newLocation = new URL(location2, window.location.href);\n return newLocation.origin !== window.location.origin;\n}\nfunction normalizeRedirectLocation(location2) {\n if (PROTOCOL_RELATIVE_URL_REGEX.test(location2)) {\n let path = resolvePath(location2);\n return path.pathname + path.search + path.hash;\n }\n return location2;\n}\nfunction cloneRoutes(routes) {\n if (!routes) return void 0;\n return routes.map((route) => ({\n ...route,\n children: cloneRoutes(route.children)\n }));\n}\nfunction diffRoutes(a, b) {\n if (a.length !== b.length) return true;\n return a.some((route, index) => {\n if (route.element !== b[index].element) return true;\n if (route.errorElement !== b[index].errorElement)\n return true;\n if (route.hydrateFallbackElement !== b[index].hydrateFallbackElement)\n return true;\n if (route.hasErrorBoundary !== b[index].hasErrorBoundary)\n return true;\n if (route.hasLoader !== b[index].hasLoader) return true;\n if (route.hasClientLoader !== b[index].hasClientLoader)\n return true;\n if (route.hasAction !== b[index].hasAction) return true;\n if (route.hasClientAction !== b[index].hasClientAction)\n return true;\n return diffRoutes(route.children || [], b[index].children || []);\n });\n}\n\n// lib/rsc/html-stream/browser.ts\nfunction getRSCStream() {\n let encoder = new TextEncoder();\n let streamController = null;\n let rscStream = new ReadableStream({\n start(controller) {\n if (typeof window === \"undefined\") {\n return;\n }\n let handleChunk = (chunk) => {\n if (typeof chunk === \"string\") {\n controller.enqueue(encoder.encode(chunk));\n } else {\n controller.enqueue(chunk);\n }\n };\n window.__FLIGHT_DATA || (window.__FLIGHT_DATA = []);\n window.__FLIGHT_DATA.forEach(handleChunk);\n window.__FLIGHT_DATA.push = (chunk) => {\n handleChunk(chunk);\n return 0;\n };\n streamController = controller;\n }\n });\n if (typeof document !== \"undefined\" && document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", () => {\n streamController?.close();\n });\n } else {\n streamController?.close();\n }\n return rscStream;\n}\nexport {\n HydratedRouter,\n RouterProvider2 as RouterProvider,\n RSCHydratedRouter as unstable_RSCHydratedRouter,\n createCallServer as unstable_createCallServer,\n getRSCStream as unstable_getRSCStream\n};\n","\"use client\";\nimport { createContext as l, Component as y, createElement as d, useContext as f, useState as p, useMemo as E, forwardRef as B } from \"react\";\nconst h = l(null), c = {\n didCatch: !1,\n error: null\n};\nclass m extends y {\n constructor(e) {\n super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = c;\n }\n static getDerivedStateFromError(e) {\n return { didCatch: !0, error: e };\n }\n resetErrorBoundary(...e) {\n const { error: t } = this.state;\n t !== null && (this.props.onReset?.({\n args: e,\n reason: \"imperative-api\"\n }), this.setState(c));\n }\n componentDidCatch(e, t) {\n this.props.onError?.(e, t);\n }\n componentDidUpdate(e, t) {\n const { didCatch: o } = this.state, { resetKeys: s } = this.props;\n o && t.error !== null && C(e.resetKeys, s) && (this.props.onReset?.({\n next: s,\n prev: e.resetKeys,\n reason: \"keys\"\n }), this.setState(c));\n }\n render() {\n const { children: e, fallbackRender: t, FallbackComponent: o, fallback: s } = this.props, { didCatch: n, error: a } = this.state;\n let i = e;\n if (n) {\n const u = {\n error: a,\n resetErrorBoundary: this.resetErrorBoundary\n };\n if (typeof t == \"function\")\n i = t(u);\n else if (o)\n i = d(o, u);\n else if (s !== void 0)\n i = s;\n else\n throw a;\n }\n return d(\n h.Provider,\n {\n value: {\n didCatch: n,\n error: a,\n resetErrorBoundary: this.resetErrorBoundary\n }\n },\n i\n );\n }\n}\nfunction C(r = [], e = []) {\n return r.length !== e.length || r.some((t, o) => !Object.is(t, e[o]));\n}\nfunction g(r) {\n return r !== null && typeof r == \"object\" && \"didCatch\" in r && typeof r.didCatch == \"boolean\" && \"error\" in r && \"resetErrorBoundary\" in r && typeof r.resetErrorBoundary == \"function\";\n}\nfunction x(r) {\n if (!g(r))\n throw new Error(\"ErrorBoundaryContext not found\");\n}\nfunction k() {\n const r = f(h);\n x(r);\n const { error: e, resetErrorBoundary: t } = r, [o, s] = p({\n error: null,\n hasError: !1\n }), n = E(\n () => ({\n error: e,\n resetBoundary: () => {\n t(), s({ error: null, hasError: !1 });\n },\n showBoundary: (a) => s({\n error: a,\n hasError: !0\n })\n }),\n [e, t]\n );\n if (o.hasError)\n throw o.error;\n return n;\n}\nfunction S(r) {\n switch (typeof r) {\n case \"object\": {\n if (r !== null && \"message\" in r && typeof r.message == \"string\")\n return r.message;\n break;\n }\n case \"string\":\n return r;\n }\n}\nfunction w(r, e) {\n const t = B(\n (s, n) => d(\n m,\n e,\n d(r, { ...s, ref: n })\n )\n ), o = r.displayName || r.name || \"Unknown\";\n return t.displayName = `withErrorBoundary(${o})`, t;\n}\nexport {\n m as ErrorBoundary,\n h as ErrorBoundaryContext,\n S as getErrorMessage,\n k as useErrorBoundary,\n w as withErrorBoundary\n};\n//# sourceMappingURL=react-error-boundary.js.map\n","import { CacheProvider } from '@emotion/react';\nimport {\n CssBaseline,\n ThemeProvider,\n} from '@mui/material';\nimport { QueryClientProvider } from '@tanstack/react-query';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { RouterProvider } from 'react-router-dom';\n\nimport { BackendVersionService } from '../../../classes/services/BackendVersionService';\nimport { ConfigService } from '../../../classes/services/ConfigService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { ErrorPage } from '../../../pages/ErrorPage';\nimport { EmotionCacheService } from '../../../classes/services/EmotionCacheService';\nimport { AuthenticationService } from '../../../classes/services/AuthenticationService';\nimport { LogService } from '../../../classes/services/LogService';\nimport { ApiService } from '../../../classes/services/ApiService';\nimport { RouterService } from '../../../classes/services/RouterService';\n\n\nexport const App = () => {\n const { config } = ConfigService.getInstance();\n\n const authenticationService = AuthenticationService.getInstance();\n const logService = LogService.getInstance();\n\n const touchIconUrl = config.getTouchIconUrl();\n if (touchIconUrl) {\n\n document.querySelector('link[rel=\"icon\"]')?.setAttribute('href', touchIconUrl);\n }\n const apiService = ApiService.getInstance();\n const routerService = RouterService.getInstance();\n apiService.api.baseUrl = config.getAPIBaseUrl();\n apiService.api.defaultRequestTimeout = config.defaultRequestTimeout;\n apiService.api.onRequest = [\n authenticationService.onRequest.bind(authenticationService),\n logService.onRequest.bind(logService),\n ];\n apiService.api.onResponseFulfilled = [\n logService.onResponseFulfilled.bind(logService),\n BackendVersionService.getInstance().onResponseFulfilled.bind(BackendVersionService.getInstance()),\n ];\n apiService.api.onResponseRejected = [\n logService.onResponseRejected.bind(logService),\n authenticationService.onResponseRejected.bind(authenticationService),\n ];\n\n const queryQueryManager = QueryClientService.getInstance();\n const emotionCacheService = EmotionCacheService.getInstance();\n\n return (\n <QueryClientProvider client={queryQueryManager.queryClient}>\n <CacheProvider value={emotionCacheService.emotionCache}>\n <ThemeProvider theme={ConfigService.getInstance().config.theme}>\n <CssBaseline />\n <ErrorBoundary FallbackComponent={ErrorPage}>\n <RouterProvider router={routerService.router} />\n </ErrorBoundary>\n </ThemeProvider>\n </CacheProvider>\n </QueryClientProvider>\n );\n};\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;;;;;;;;;;;;AAqDA,SAAS,EAAgB,GAAO;CAC9B,OAAuB,kBAAM,cAAc,GAAgB;EAAE,WAAW,EAAS;EAAW,GAAG;CAAM,CAAC;AACxG;AA4d4BA,EAAc;;;ACjhB1C,IAAM,IAAIC,EAAE,IAAI,GAAG,IAAI;CACrB,UAAU,CAAC;CACX,OAAO;AACT,GACM,IAAN,cAAgBC,EAAE;CAChB,YAAY,GAAG;EACb,MAAM,CAAC,GAAG,KAAK,qBAAqB,KAAK,mBAAmB,KAAK,IAAI,GAAG,KAAK,QAAQ;CACvF;CACA,OAAO,yBAAyB,GAAG;EACjC,OAAO;GAAE,UAAU,CAAC;GAAG,OAAO;EAAE;CAClC;CACA,mBAAmB,GAAG,GAAG;EACvB,IAAM,EAAE,OAAO,MAAM,KAAK;EAC1B,MAAM,SAAS,KAAK,MAAM,UAAU;GAClC,MAAM;GACN,QAAQ;EACV,CAAC,GAAG,KAAK,SAAS,CAAC;CACrB;CACA,kBAAkB,GAAG,GAAG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GAC9C,EAAW,IAAI,wBAAwB,EAAO,uBAC9C,EAAW,IAAI,YAAY,CACzB,EAAsB,UAAU,KAAK,CAAqB,GAC1D,EAAW,UAAU,KAAK,CAAU,CACtC,GACA,EAAW,IAAI,sBAAsB,CACnC,EAAW,oBAAoB,KAAK,CAAU,GAC9C,EAAsB,YAAY,CAAC,CAAC,oBAAoB,KAAK,EAAsB,YAAY,CAAC,CAClG,GACA,EAAW,IAAI,qBAAqB,CAClC,EAAW,mBAAmB,KAAK,CAAU,GAC7C,EAAsB,mBAAmB,KAAK,CAAqB,CACrE;CAEA,IAAM,IAAoB,EAAmB,YAAY,GACnD,IAAsB,EAAoB,YAAY;CAE5D,OACE,kBAAC,GAAD;EAAqB,QAAQ,EAAkB;YAC7C,kBAAC,GAAD;GAAe,OAAO,EAAoB;aACxC,kBAAC,GAAD;IAAe,OAAO,EAAc,YAAY,CAAC,CAAC,OAAO;cAAzD,CACE,kBAAC,GAAD,CAAc,CAAA,GACd,kBAAC,GAAD;KAAe,mBAAmB;eAChC,kBAAC,GAAD,EAAgB,QAAQ,EAAc,OAAS,CAAA;IAClC,CAAA,CACF;;EACF,CAAA;CACI,CAAA;AAEzB"}
1
+ {"version":3,"file":"index.js","names":["createContext","y","f","d"],"sources":["../../../../../../node_modules/.pnpm/react-router@7.18.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/dom-export.mjs","../../../../../../node_modules/.pnpm/react-error-boundary@6.1.4_@types+react@19.2.18_react@19.2.8/node_modules/react-error-boundary/dist/react-error-boundary.js","../../../../src/components/app/App/App.tsx"],"sourcesContent":["/**\n * react-router v7.18.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n\"use client\";\nimport {\n RSCRouterGlobalErrorBoundary,\n getHydrationData,\n populateRSCRouteModules\n} from \"./chunk-HT4INDD5.mjs\";\nimport {\n CRITICAL_CSS_DATA_ATTRIBUTE,\n ErrorResponseImpl,\n FrameworkContext,\n PROTOCOL_RELATIVE_URL_REGEX,\n RSCRouterContext,\n RemixErrorBoundary,\n RouterProvider,\n URL_LIMIT,\n createBrowserHistory,\n createClientRoutes,\n createClientRoutesWithHMRRevalidationOptOut,\n createContext,\n createRequestInit,\n createRouter,\n decodeViaTurboStream,\n getPatchRoutesOnNavigationFunction,\n getPathsWithAncestors,\n getSingleFetchDataStrategyImpl,\n getTurboStreamSingleFetchDataStrategy,\n hasInvalidProtocol,\n hydrationRouteProperties,\n invariant,\n isMutationMethod,\n mapRouteProperties,\n noActionDefinedError,\n resolvePath,\n setIsHydrated,\n shouldHydrateRouteLoader,\n singleFetchUrl,\n stripIndexParam,\n useFogOFWarDiscovery,\n validateNavigationTarget\n} from \"./chunk-BV7QT456.mjs\";\n\n// lib/dom-export/dom-router-provider.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nfunction RouterProvider2(props) {\n return /* @__PURE__ */ React.createElement(RouterProvider, { flushSync: ReactDOM.flushSync, ...props });\n}\n\n// lib/dom-export/hydrated-router.tsx\nimport * as React2 from \"react\";\nvar ssrInfo = null;\nvar router = null;\nfunction initSsrInfo() {\n if (!ssrInfo && window.__reactRouterContext && window.__reactRouterManifest && window.__reactRouterRouteModules) {\n if (window.__reactRouterManifest.sri === true) {\n const importMap = document.querySelector(\"script[rr-importmap]\");\n if (importMap?.textContent) {\n try {\n window.__reactRouterManifest.sri = JSON.parse(\n importMap.textContent\n ).integrity;\n } catch (err) {\n console.error(\"Failed to parse import map\", err);\n }\n }\n }\n ssrInfo = {\n context: window.__reactRouterContext,\n manifest: window.__reactRouterManifest,\n routeModules: window.__reactRouterRouteModules,\n stateDecodingPromise: void 0,\n router: void 0,\n routerInitialized: false\n };\n }\n}\nfunction createHydratedRouter({\n getContext,\n instrumentations\n}) {\n initSsrInfo();\n if (!ssrInfo) {\n throw new Error(\n \"You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`\"\n );\n }\n let localSsrInfo = ssrInfo;\n if (!ssrInfo.stateDecodingPromise) {\n let stream = ssrInfo.context.stream;\n invariant(stream, \"No stream found for single fetch decoding\");\n ssrInfo.context.stream = void 0;\n ssrInfo.stateDecodingPromise = decodeViaTurboStream(stream, window).then((value) => {\n ssrInfo.context.state = value.value;\n localSsrInfo.stateDecodingPromise.value = true;\n }).catch((e) => {\n localSsrInfo.stateDecodingPromise.error = e;\n });\n }\n if (ssrInfo.stateDecodingPromise.error) {\n throw ssrInfo.stateDecodingPromise.error;\n }\n if (!ssrInfo.stateDecodingPromise.value) {\n throw ssrInfo.stateDecodingPromise;\n }\n let routes = createClientRoutes(\n ssrInfo.manifest.routes,\n ssrInfo.routeModules,\n ssrInfo.context.state,\n ssrInfo.context.ssr,\n ssrInfo.context.isSpaMode\n );\n let hydrationData = void 0;\n if (ssrInfo.context.isSpaMode) {\n let { loaderData } = ssrInfo.context.state;\n if (ssrInfo.manifest.routes.root?.hasLoader && loaderData && \"root\" in loaderData) {\n hydrationData = {\n loaderData: {\n root: loaderData.root\n }\n };\n }\n } else {\n hydrationData = getHydrationData({\n state: ssrInfo.context.state,\n routes,\n getRouteInfo: (routeId) => ({\n clientLoader: ssrInfo.routeModules[routeId]?.clientLoader,\n hasLoader: ssrInfo.manifest.routes[routeId]?.hasLoader === true,\n hasHydrateFallback: ssrInfo.routeModules[routeId]?.HydrateFallback != null\n }),\n location: window.location,\n basename: window.__reactRouterContext?.basename,\n isSpaMode: ssrInfo.context.isSpaMode\n });\n }\n if (window.history.state && window.history.state.masked) {\n window.history.replaceState(\n { ...window.history.state, masked: void 0 },\n \"\"\n );\n }\n let router2 = createRouter({\n routes,\n history: createBrowserHistory(),\n basename: ssrInfo.context.basename,\n getContext,\n hydrationData,\n hydrationRouteProperties,\n instrumentations,\n mapRouteProperties,\n future: {\n v8_passThroughRequests: ssrInfo.context.future.v8_passThroughRequests\n },\n dataStrategy: getTurboStreamSingleFetchDataStrategy(\n () => router2,\n ssrInfo.manifest,\n ssrInfo.routeModules,\n ssrInfo.context.ssr,\n ssrInfo.context.basename,\n ssrInfo.context.future.v8_trailingSlashAwareDataRequests\n ),\n patchRoutesOnNavigation: getPatchRoutesOnNavigationFunction(\n () => router2,\n ssrInfo.manifest,\n ssrInfo.routeModules,\n ssrInfo.context.ssr,\n ssrInfo.context.routeDiscovery,\n ssrInfo.context.isSpaMode,\n ssrInfo.context.basename\n )\n });\n ssrInfo.router = router2;\n if (router2.state.initialized) {\n ssrInfo.routerInitialized = true;\n router2.initialize();\n }\n router2.createRoutesForHMR = /* spacer so ts-ignore does not affect the right hand of the assignment */\n createClientRoutesWithHMRRevalidationOptOut;\n window.__reactRouterDataRouter = router2;\n return router2;\n}\nfunction HydratedRouter(props) {\n if (!router) {\n router = createHydratedRouter({\n getContext: props.getContext,\n instrumentations: props.instrumentations\n });\n }\n let [criticalCss, setCriticalCss] = React2.useState(\n process.env.NODE_ENV === \"development\" ? ssrInfo?.context.criticalCss : void 0\n );\n React2.useEffect(() => {\n if (process.env.NODE_ENV === \"development\") {\n setCriticalCss(void 0);\n }\n }, []);\n React2.useEffect(() => {\n if (process.env.NODE_ENV === \"development\" && criticalCss === void 0) {\n document.querySelectorAll(`[${CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());\n }\n }, [criticalCss]);\n let [location2, setLocation] = React2.useState(router.state.location);\n React2.useLayoutEffect(() => {\n if (ssrInfo && ssrInfo.router && !ssrInfo.routerInitialized) {\n ssrInfo.routerInitialized = true;\n ssrInfo.router.initialize();\n }\n }, []);\n React2.useLayoutEffect(() => {\n if (ssrInfo && ssrInfo.router) {\n return ssrInfo.router.subscribe((newState) => {\n if (newState.location !== location2) {\n setLocation(newState.location);\n }\n });\n }\n }, [location2]);\n invariant(ssrInfo, \"ssrInfo unavailable for HydratedRouter\");\n useFogOFWarDiscovery(\n router,\n ssrInfo.manifest,\n ssrInfo.routeModules,\n ssrInfo.context.ssr,\n ssrInfo.context.routeDiscovery,\n ssrInfo.context.isSpaMode\n );\n return (\n // This fragment is important to ensure we match the <ServerRouter> JSX\n // structure so that useId values hydrate correctly\n /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(\n FrameworkContext.Provider,\n {\n value: {\n manifest: ssrInfo.manifest,\n routeModules: ssrInfo.routeModules,\n future: ssrInfo.context.future,\n criticalCss,\n ssr: ssrInfo.context.ssr,\n isSpaMode: ssrInfo.context.isSpaMode,\n routeDiscovery: ssrInfo.context.routeDiscovery\n }\n },\n /* @__PURE__ */ React2.createElement(RemixErrorBoundary, { location: location2 }, /* @__PURE__ */ React2.createElement(\n RouterProvider2,\n {\n router,\n useTransitions: props.useTransitions,\n onError: props.onError\n }\n ))\n ), /* @__PURE__ */ React2.createElement(React2.Fragment, null))\n );\n}\n\n// lib/rsc/browser.tsx\nimport * as React3 from \"react\";\nimport * as ReactDOM2 from \"react-dom\";\nvar defaultManifestPath = \"/__manifest\";\nfunction createCallServer({\n createFromReadableStream,\n createTemporaryReferenceSet,\n encodeReply,\n fetch: fetchImplementation = fetch\n}) {\n const globalVar = window;\n let landedActionId = 0;\n return async (id, args) => {\n let actionId = globalVar.__routerActionID = (globalVar.__routerActionID ?? (globalVar.__routerActionID = 0)) + 1;\n const temporaryReferences = createTemporaryReferenceSet();\n const payloadPromise = fetchImplementation(\n new Request(location.href, {\n body: await encodeReply(args, { temporaryReferences }),\n method: \"POST\",\n headers: {\n Accept: \"text/x-component\",\n \"rsc-action-id\": id\n }\n })\n ).then((response) => {\n if (!response.body) {\n throw new Error(\"No response body\");\n }\n return createFromReadableStream(response.body, {\n temporaryReferences\n });\n });\n React3.startTransition(\n () => (\n // @ts-expect-error - Needs React 19 types\n Promise.resolve(payloadPromise).then(async (payload) => {\n if (payload.type === \"redirect\") {\n let location2 = normalizeRedirectLocation(payload.location);\n validateNavigationTarget(\n payload.location,\n location2,\n new URL(window.location.href),\n \"allow-explicit\"\n );\n if (payload.reload || isExternalLocation(location2)) {\n if (hasInvalidProtocol(location2)) {\n throw new Error(\"Invalid redirect location\");\n }\n window.location.href = location2;\n return;\n }\n React3.startTransition(() => {\n globalVar.__reactRouterDataRouter.navigate(location2, {\n replace: payload.replace\n });\n });\n return;\n }\n if (payload.type !== \"action\") {\n throw new Error(\"Unexpected payload type\");\n }\n const rerender = await payload.rerender;\n if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {\n if (rerender.type === \"redirect\") {\n let location2 = normalizeRedirectLocation(rerender.location);\n validateNavigationTarget(\n rerender.location,\n location2,\n new URL(window.location.href),\n \"allow-explicit\"\n );\n if (rerender.reload || isExternalLocation(location2)) {\n if (hasInvalidProtocol(location2)) {\n throw new Error(\"Invalid redirect location\");\n }\n window.location.href = location2;\n return;\n }\n React3.startTransition(() => {\n globalVar.__reactRouterDataRouter.navigate(location2, {\n replace: rerender.replace\n });\n });\n return;\n }\n React3.startTransition(() => {\n let lastMatch;\n for (const match of rerender.matches) {\n globalVar.__reactRouterDataRouter.patchRoutes(\n lastMatch?.id ?? null,\n [createRouteFromServerManifest(match)],\n true\n );\n lastMatch = match;\n }\n window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(\n {\n loaderData: Object.assign(\n {},\n globalVar.__reactRouterDataRouter.state.loaderData,\n rerender.loaderData\n ),\n errors: rerender.errors ? Object.assign(\n {},\n globalVar.__reactRouterDataRouter.state.errors,\n rerender.errors\n ) : null\n }\n );\n });\n }\n }).catch(() => {\n })\n )\n );\n return payloadPromise.then((payload) => {\n if (payload.type !== \"action\" && payload.type !== \"redirect\") {\n throw new Error(\"Unexpected payload type\");\n }\n return payload.actionResult;\n });\n };\n}\nfunction createRouterFromPayload({\n fetchImplementation,\n createFromReadableStream,\n getContext,\n payload\n}) {\n const globalVar = window;\n if (globalVar.__reactRouterDataRouter && globalVar.__reactRouterRouteModules)\n return {\n router: globalVar.__reactRouterDataRouter,\n routeModules: globalVar.__reactRouterRouteModules\n };\n if (payload.type !== \"render\") throw new Error(\"Invalid payload type\");\n globalVar.__reactRouterRouteModules = globalVar.__reactRouterRouteModules ?? {};\n populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);\n let routes = payload.matches.reduceRight((previous, match) => {\n const route = createRouteFromServerManifest(\n match,\n payload\n );\n if (previous.length > 0) {\n route.children = previous;\n } else if (!route.index) {\n route.children = [];\n }\n return [route];\n }, []);\n let applyPatchesPromise;\n globalVar.__reactRouterDataRouter = createRouter({\n routes,\n getContext,\n basename: payload.basename,\n history: createBrowserHistory(),\n hydrationData: getHydrationData({\n state: {\n loaderData: payload.loaderData,\n actionData: payload.actionData,\n errors: payload.errors\n },\n routes,\n getRouteInfo: (routeId) => {\n let match = payload.matches.find((m) => m.id === routeId);\n invariant(match, \"Route not found in payload\");\n return {\n clientLoader: match.clientLoader,\n hasLoader: match.hasLoader,\n hasHydrateFallback: match.hydrateFallbackElement != null\n };\n },\n location: payload.location,\n basename: payload.basename,\n isSpaMode: false\n }),\n async patchRoutesOnNavigation({ path, signal }) {\n if (payload.routeDiscovery.mode === \"initial\") {\n if (!applyPatchesPromise) {\n applyPatchesPromise = (async () => {\n if (!payload.patches) return;\n let patches = await payload.patches;\n React3.startTransition(() => {\n patches.forEach((p) => {\n window.__reactRouterDataRouter.patchRoutes(p.parentId ?? null, [\n createRouteFromServerManifest(p)\n ]);\n });\n });\n })();\n }\n await applyPatchesPromise;\n return;\n }\n if (discoveredPaths.has(path)) {\n return;\n }\n await fetchAndApplyManifestPatches(\n [path],\n createFromReadableStream,\n fetchImplementation,\n signal\n );\n },\n // FIXME: Pass `build.ssr` into this function\n dataStrategy: getRSCSingleFetchDataStrategy(\n () => globalVar.__reactRouterDataRouter,\n true,\n payload.basename,\n createFromReadableStream,\n fetchImplementation\n )\n });\n if (globalVar.__reactRouterDataRouter.state.initialized) {\n globalVar.__routerInitialized = true;\n globalVar.__reactRouterDataRouter.initialize();\n } else {\n globalVar.__routerInitialized = false;\n }\n let lastLoaderData = void 0;\n globalVar.__reactRouterDataRouter.subscribe(({ loaderData, actionData }) => {\n if (lastLoaderData !== loaderData) {\n globalVar.__routerActionID = (globalVar.__routerActionID ?? (globalVar.__routerActionID = 0)) + 1;\n }\n });\n globalVar.__reactRouterDataRouter._updateRoutesForHMR = (routeUpdateByRouteId) => {\n const oldRoutes = window.__reactRouterDataRouter.routes;\n const newRoutes = [];\n function walkRoutes(routes2, parentId) {\n return routes2.map((route) => {\n const routeUpdate = routeUpdateByRouteId.get(route.id);\n if (routeUpdate) {\n const {\n routeModule,\n hasAction,\n hasComponent,\n hasErrorBoundary,\n hasLoader\n } = routeUpdate;\n const newRoute = createRouteFromServerManifest({\n clientAction: routeModule.clientAction,\n clientLoader: routeModule.clientLoader,\n element: route.element,\n errorElement: route.errorElement,\n handle: route.handle,\n hasAction,\n hasComponent,\n hasErrorBoundary,\n hasLoader,\n hydrateFallbackElement: route.hydrateFallbackElement,\n id: route.id,\n index: route.index,\n links: routeModule.links,\n meta: routeModule.meta,\n parentId,\n path: route.path,\n shouldRevalidate: routeModule.shouldRevalidate\n });\n if (route.children) {\n newRoute.children = walkRoutes(route.children, route.id);\n }\n return newRoute;\n }\n const updatedRoute = { ...route };\n if (route.children) {\n updatedRoute.children = walkRoutes(route.children, route.id);\n }\n return updatedRoute;\n });\n }\n newRoutes.push(\n ...walkRoutes(oldRoutes, void 0)\n );\n window.__reactRouterDataRouter._internalSetRoutes(newRoutes);\n };\n return {\n router: globalVar.__reactRouterDataRouter,\n routeModules: globalVar.__reactRouterRouteModules\n };\n}\nvar renderedRoutesContext = createContext();\nfunction getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {\n let dataStrategy = getSingleFetchDataStrategyImpl(\n getRouter,\n (match) => {\n let M = match;\n return {\n hasLoader: M.route.hasLoader,\n hasClientLoader: M.route.hasClientLoader,\n hasComponent: M.route.hasComponent,\n hasAction: M.route.hasAction,\n hasClientAction: M.route.hasClientAction\n };\n },\n // pass map into fetchAndDecode so it can add payloads\n getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation),\n ssr,\n basename,\n // .rsc requests are always trailing slash aware\n true,\n // If the route has a component but we don't have an element, we need to hit\n // the server loader flow regardless of whether the client loader calls\n // `serverLoader` or not, otherwise we'll have nothing to render.\n (match) => {\n let M = match;\n return M.route.hasComponent && !M.route.element;\n }\n );\n return async (args) => args.runClientMiddleware(async () => {\n let context = args.context;\n context.set(renderedRoutesContext, []);\n let results = await dataStrategy(args);\n const renderedRoutesById = /* @__PURE__ */ new Map();\n for (const route of context.get(renderedRoutesContext)) {\n if (!renderedRoutesById.has(route.id)) {\n renderedRoutesById.set(route.id, []);\n }\n renderedRoutesById.get(route.id).push(route);\n }\n React3.startTransition(() => {\n for (const match of args.matches) {\n const renderedRoutes = renderedRoutesById.get(match.route.id);\n if (renderedRoutes) {\n for (const rendered of renderedRoutes) {\n window.__reactRouterDataRouter.patchRoutes(\n rendered.parentId ?? null,\n [createRouteFromServerManifest(rendered)],\n true\n );\n }\n }\n }\n });\n return results;\n });\n}\nfunction getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {\n return async (args, basename, trailingSlashAware, targetRoutes) => {\n let { request, context } = args;\n let url = singleFetchUrl(request.url, basename, trailingSlashAware, \"rsc\");\n if (request.method === \"GET\") {\n url = stripIndexParam(url);\n if (targetRoutes) {\n url.searchParams.set(\"_routes\", targetRoutes.join(\",\"));\n }\n }\n let res = await fetchImplementation(\n new Request(url, await createRequestInit(request))\n );\n if (res.status >= 400 && !res.headers.has(\"X-Remix-Response\")) {\n throw new ErrorResponseImpl(res.status, res.statusText, await res.text());\n }\n invariant(res.body, \"No response body to decode\");\n try {\n const payload = await createFromReadableStream(res.body, {\n temporaryReferences: void 0\n });\n if (payload.type === \"redirect\") {\n return {\n status: res.status,\n data: {\n redirect: {\n redirect: payload.location,\n reload: payload.reload,\n replace: payload.replace,\n revalidate: false,\n status: payload.status\n }\n }\n };\n }\n if (payload.type !== \"render\") {\n throw new Error(\"Unexpected payload type\");\n }\n context.get(renderedRoutesContext).push(...payload.matches);\n let results = { routes: {} };\n const dataKey = isMutationMethod(request.method) ? \"actionData\" : \"loaderData\";\n for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {\n results.routes[routeId] = { data };\n }\n if (payload.errors) {\n for (let [routeId, error] of Object.entries(payload.errors)) {\n results.routes[routeId] = { error };\n }\n }\n return { status: res.status, data: results };\n } catch (cause) {\n throw new Error(\"Unable to decode RSC response\", { cause });\n }\n };\n}\nfunction RSCHydratedRouter({\n createFromReadableStream,\n fetch: fetchImplementation = fetch,\n payload,\n getContext\n}) {\n if (payload.type !== \"render\") throw new Error(\"Invalid payload type\");\n let { routeDiscovery } = payload;\n let { router: router2, routeModules } = React3.useMemo(\n () => createRouterFromPayload({\n payload,\n fetchImplementation,\n getContext,\n createFromReadableStream\n }),\n [createFromReadableStream, payload, fetchImplementation, getContext]\n );\n React3.useEffect(() => {\n setIsHydrated();\n }, []);\n React3.useLayoutEffect(() => {\n const globalVar = window;\n if (!globalVar.__routerInitialized) {\n globalVar.__routerInitialized = true;\n globalVar.__reactRouterDataRouter.initialize();\n }\n }, []);\n let [{ routes, state }, setState] = React3.useState(() => ({\n routes: cloneRoutes(router2.routes),\n state: router2.state\n }));\n React3.useLayoutEffect(\n () => router2.subscribe((newState) => {\n if (diffRoutes(router2.routes, routes))\n React3.startTransition(() => {\n setState({\n routes: cloneRoutes(router2.routes),\n state: newState\n });\n });\n }),\n [router2.subscribe, routes, router2]\n );\n const transitionEnabledRouter = React3.useMemo(\n () => ({\n ...router2,\n state,\n routes\n }),\n [router2, routes, state]\n );\n React3.useEffect(() => {\n if (routeDiscovery.mode === \"initial\" || // @ts-expect-error - TS doesn't know about this yet\n window.navigator?.connection?.saveData === true) {\n return;\n }\n function registerElement(el) {\n let path = el.tagName === \"FORM\" ? el.getAttribute(\"action\") : el.getAttribute(\"href\");\n if (!path) {\n return;\n }\n let pathname = el.tagName === \"A\" ? el.pathname : new URL(path, window.location.origin).pathname;\n if (!discoveredPaths.has(pathname)) {\n nextPaths.add(pathname);\n }\n }\n async function fetchPatches() {\n document.querySelectorAll(\"a[data-discover], form[data-discover]\").forEach(registerElement);\n let paths = Array.from(nextPaths.keys()).filter((path) => {\n if (discoveredPaths.has(path)) {\n nextPaths.delete(path);\n return false;\n }\n return true;\n });\n if (paths.length === 0) {\n return;\n }\n try {\n await fetchAndApplyManifestPatches(\n paths,\n createFromReadableStream,\n fetchImplementation\n );\n } catch (e) {\n console.error(\"Failed to fetch manifest patches\", e);\n }\n }\n let debouncedFetchPatches = debounce(fetchPatches, 100);\n fetchPatches();\n let observer = new MutationObserver(() => debouncedFetchPatches());\n observer.observe(document.documentElement, {\n subtree: true,\n childList: true,\n attributes: true,\n attributeFilter: [\"data-discover\", \"href\", \"action\"]\n });\n }, [routeDiscovery, createFromReadableStream, fetchImplementation]);\n const frameworkContext = {\n future: {\n // These flags have no runtime impact so can always be false. If we add\n // flags that drive runtime behavior they'll need to be proxied through.\n v8_middleware: false,\n v8_trailingSlashAwareDataRequests: true,\n // always on for RSC\n v8_passThroughRequests: true\n // always on for RSC\n },\n isSpaMode: false,\n ssr: true,\n criticalCss: \"\",\n manifest: {\n routes: {},\n version: \"1\",\n url: \"\",\n entry: {\n module: \"\",\n imports: []\n }\n },\n routeDiscovery: payload.routeDiscovery.mode === \"initial\" ? { mode: \"initial\", manifestPath: defaultManifestPath } : {\n mode: \"lazy\",\n manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath\n },\n routeModules\n };\n return /* @__PURE__ */ React3.createElement(RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(\n RouterProvider,\n {\n router: transitionEnabledRouter,\n flushSync: ReactDOM2.flushSync\n }\n ))));\n}\nfunction createRouteFromServerManifest(match, payload) {\n let hasInitialData = payload && match.id in payload.loaderData;\n let initialData = payload?.loaderData[match.id];\n let hasInitialError = payload?.errors && match.id in payload.errors;\n let initialError = payload?.errors?.[match.id];\n let isHydrationRequest = match.clientLoader?.hydrate === true || !match.hasLoader || // If the route has a component but we don't have an element, we need to hit\n // the server loader flow regardless of whether the client loader calls\n // `serverLoader` or not, otherwise we'll have nothing to render.\n match.hasComponent && !match.element;\n invariant(window.__reactRouterRouteModules);\n populateRSCRouteModules(window.__reactRouterRouteModules, match);\n let dataRoute = {\n id: match.id,\n element: match.element,\n errorElement: match.errorElement,\n handle: match.handle,\n hasErrorBoundary: match.hasErrorBoundary,\n hydrateFallbackElement: match.hydrateFallbackElement,\n index: match.index,\n loader: match.clientLoader ? async (args, singleFetch) => {\n let _isHydrationRequest = isHydrationRequest;\n isHydrationRequest = false;\n let result = await match.clientLoader({\n ...args,\n serverLoader: () => {\n preventInvalidServerHandlerCall(\n \"loader\",\n match.id,\n match.hasLoader\n );\n if (_isHydrationRequest) {\n if (hasInitialData) {\n return initialData;\n }\n if (hasInitialError) {\n throw initialError;\n }\n }\n return callSingleFetch(singleFetch);\n }\n });\n return result;\n } : (\n // We always make the call in this RSC world since even if we don't\n // have a `loader` we may need to get the `element` implementation\n (_, singleFetch) => callSingleFetch(singleFetch)\n ),\n action: match.clientAction ? (args, singleFetch) => match.clientAction({\n ...args,\n serverAction: async () => {\n preventInvalidServerHandlerCall(\n \"action\",\n match.id,\n match.hasLoader\n );\n return await callSingleFetch(singleFetch);\n }\n }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {\n throw noActionDefinedError(\"action\", match.id);\n },\n path: match.path,\n shouldRevalidate: match.shouldRevalidate,\n // We always have a \"loader\" in this RSC world since even if we don't\n // have a `loader` we may need to get the `element` implementation\n hasLoader: true,\n hasClientLoader: match.clientLoader != null,\n hasAction: match.hasAction,\n hasClientAction: match.clientAction != null\n };\n if (typeof dataRoute.loader === \"function\") {\n dataRoute.loader.hydrate = shouldHydrateRouteLoader(\n match.id,\n match.clientLoader,\n match.hasLoader,\n false\n );\n }\n return dataRoute;\n}\nfunction callSingleFetch(singleFetch) {\n invariant(typeof singleFetch === \"function\", \"Invalid singleFetch parameter\");\n return singleFetch();\n}\nfunction preventInvalidServerHandlerCall(type, routeId, hasHandler) {\n if (!hasHandler) {\n let fn = type === \"action\" ? \"serverAction()\" : \"serverLoader()\";\n let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: \"${routeId}\")`;\n console.error(msg);\n throw new ErrorResponseImpl(400, \"Bad Request\", new Error(msg), true);\n }\n}\nvar nextPaths = /* @__PURE__ */ new Set();\nvar discoveredPathsMaxSize = 1e3;\nvar discoveredPaths = /* @__PURE__ */ new Set();\nfunction getManifestUrl(paths) {\n if (paths.length === 0) {\n return null;\n }\n if (paths.length === 1) {\n return new URL(`${paths[0]}.manifest`, window.location.origin);\n }\n const globalVar = window;\n let basename = (globalVar.__reactRouterDataRouter.basename ?? \"\").replace(\n /^\\/|\\/$/g,\n \"\"\n );\n let url = new URL(`${basename}/.manifest`, window.location.origin);\n url.searchParams.set(\"paths\", paths.sort().join(\",\"));\n return url;\n}\nasync function fetchAndApplyManifestPatches(paths, createFromReadableStream, fetchImplementation, signal) {\n paths = getPathsWithAncestors(paths);\n let url = getManifestUrl(paths);\n if (url == null) {\n return;\n }\n if (url.toString().length > URL_LIMIT) {\n nextPaths.clear();\n return;\n }\n let response = await fetchImplementation(new Request(url, { signal }));\n if (!response.body || response.status < 200 || response.status >= 300) {\n throw new Error(\"Unable to fetch new route matches from the server\");\n }\n let payload = await createFromReadableStream(response.body, {\n temporaryReferences: void 0\n });\n if (payload.type !== \"manifest\") {\n throw new Error(\"Failed to patch routes\");\n }\n paths.forEach((p) => addToFifoQueue(p, discoveredPaths));\n let patches = await payload.patches;\n React3.startTransition(() => {\n patches.forEach((p) => {\n window.__reactRouterDataRouter.patchRoutes(\n p.parentId ?? null,\n [createRouteFromServerManifest(p)]\n );\n });\n });\n}\nfunction addToFifoQueue(path, queue) {\n if (queue.size >= discoveredPathsMaxSize) {\n let first = queue.values().next().value;\n if (typeof first === \"string\") queue.delete(first);\n }\n queue.add(path);\n}\nfunction debounce(callback, wait) {\n let timeoutId;\n return (...args) => {\n window.clearTimeout(timeoutId);\n timeoutId = window.setTimeout(() => callback(...args), wait);\n };\n}\nfunction isExternalLocation(location2) {\n const newLocation = new URL(location2, window.location.href);\n return newLocation.origin !== window.location.origin;\n}\nfunction normalizeRedirectLocation(location2) {\n if (PROTOCOL_RELATIVE_URL_REGEX.test(location2)) {\n let path = resolvePath(location2);\n return path.pathname + path.search + path.hash;\n }\n return location2;\n}\nfunction cloneRoutes(routes) {\n if (!routes) return void 0;\n return routes.map((route) => ({\n ...route,\n children: cloneRoutes(route.children)\n }));\n}\nfunction diffRoutes(a, b) {\n if (a.length !== b.length) return true;\n return a.some((route, index) => {\n if (route.element !== b[index].element) return true;\n if (route.errorElement !== b[index].errorElement)\n return true;\n if (route.hydrateFallbackElement !== b[index].hydrateFallbackElement)\n return true;\n if (route.hasErrorBoundary !== b[index].hasErrorBoundary)\n return true;\n if (route.hasLoader !== b[index].hasLoader) return true;\n if (route.hasClientLoader !== b[index].hasClientLoader)\n return true;\n if (route.hasAction !== b[index].hasAction) return true;\n if (route.hasClientAction !== b[index].hasClientAction)\n return true;\n return diffRoutes(route.children || [], b[index].children || []);\n });\n}\n\n// lib/rsc/html-stream/browser.ts\nfunction getRSCStream() {\n let encoder = new TextEncoder();\n let streamController = null;\n let rscStream = new ReadableStream({\n start(controller) {\n if (typeof window === \"undefined\") {\n return;\n }\n let handleChunk = (chunk) => {\n if (typeof chunk === \"string\") {\n controller.enqueue(encoder.encode(chunk));\n } else {\n controller.enqueue(chunk);\n }\n };\n window.__FLIGHT_DATA || (window.__FLIGHT_DATA = []);\n window.__FLIGHT_DATA.forEach(handleChunk);\n window.__FLIGHT_DATA.push = (chunk) => {\n handleChunk(chunk);\n return 0;\n };\n streamController = controller;\n }\n });\n if (typeof document !== \"undefined\" && document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", () => {\n streamController?.close();\n });\n } else {\n streamController?.close();\n }\n return rscStream;\n}\nexport {\n HydratedRouter,\n RouterProvider2 as RouterProvider,\n RSCHydratedRouter as unstable_RSCHydratedRouter,\n createCallServer as unstable_createCallServer,\n getRSCStream as unstable_getRSCStream\n};\n","\"use client\";\nimport { createContext as y, Component as f, createElement as d, useContext as l, useState as p, useMemo as E, forwardRef as B } from \"react\";\nconst h = y(null), c = {\n didCatch: !1,\n error: null\n};\nclass m extends f {\n constructor(e) {\n super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = c;\n }\n static getDerivedStateFromError(e) {\n return { didCatch: !0, error: e };\n }\n resetErrorBoundary(...e) {\n const { didCatch: t } = this.state;\n t && (this.props.onReset?.({\n args: e,\n reason: \"imperative-api\"\n }), this.setState(c));\n }\n componentDidCatch(e, t) {\n this.props.onError?.(e, t);\n }\n componentDidUpdate(e, t) {\n const { didCatch: o } = this.state, { resetKeys: s } = this.props;\n o && t.didCatch && C(e.resetKeys, s) && (this.props.onReset?.({\n next: s,\n prev: e.resetKeys,\n reason: \"keys\"\n }), this.setState(c));\n }\n render() {\n const { children: e, fallbackRender: t, FallbackComponent: o, fallback: s } = this.props, { didCatch: n, error: a } = this.state;\n let i = e;\n if (n) {\n const u = {\n error: a,\n resetErrorBoundary: this.resetErrorBoundary\n };\n if (typeof t == \"function\")\n i = t(u);\n else if (o)\n i = d(o, u);\n else if (s !== void 0)\n i = s;\n else\n throw a;\n }\n return d(\n h.Provider,\n {\n value: {\n didCatch: n,\n error: a,\n resetErrorBoundary: this.resetErrorBoundary\n }\n },\n i\n );\n }\n}\nfunction C(r = [], e = []) {\n return r.length !== e.length || r.some((t, o) => !Object.is(t, e[o]));\n}\nfunction g(r) {\n return r !== null && typeof r == \"object\" && \"didCatch\" in r && typeof r.didCatch == \"boolean\" && \"error\" in r && \"resetErrorBoundary\" in r && typeof r.resetErrorBoundary == \"function\";\n}\nfunction x(r) {\n if (!g(r))\n throw new Error(\"ErrorBoundaryContext not found\");\n}\nfunction k() {\n const r = l(h);\n x(r);\n const { error: e, resetErrorBoundary: t } = r, [o, s] = p({\n error: null,\n hasError: !1\n }), n = E(\n () => ({\n error: e,\n resetBoundary: () => {\n t(), s({ error: null, hasError: !1 });\n },\n showBoundary: (a) => s({\n error: a,\n hasError: !0\n })\n }),\n [e, t]\n );\n if (o.hasError)\n throw o.error;\n return n;\n}\nfunction S(r) {\n switch (typeof r) {\n case \"object\": {\n if (r !== null && \"message\" in r && typeof r.message == \"string\")\n return r.message;\n break;\n }\n case \"string\":\n return r;\n }\n}\nfunction w(r, e) {\n const t = B(\n (s, n) => d(\n m,\n e,\n d(r, { ...s, ref: n })\n )\n ), o = r.displayName || r.name || \"Unknown\";\n return t.displayName = `withErrorBoundary(${o})`, t;\n}\nexport {\n m as ErrorBoundary,\n h as ErrorBoundaryContext,\n S as getErrorMessage,\n k as useErrorBoundary,\n w as withErrorBoundary\n};\n//# sourceMappingURL=react-error-boundary.js.map\n","import { CacheProvider } from '@emotion/react';\nimport {\n CssBaseline,\n ThemeProvider,\n} from '@mui/material';\nimport { QueryClientProvider } from '@tanstack/react-query';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { RouterProvider } from 'react-router-dom';\nimport { useMemo } from 'react';\nimport { UiCoreComponentsContextProvider } from '@gen-epix/ui-core-components/context/uiCoreComponentsConfigContext';\nimport type { UiCoreComponentsConfig } from '@gen-epix/ui-core-components/context/uiCoreComponentsConfigContext';\n\nimport { BackendVersionService } from '../../../classes/services/BackendVersionService';\nimport { ConfigService } from '../../../classes/services/ConfigService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { ErrorPage } from '../../../pages/ErrorPage';\nimport { EmotionCacheService } from '../../../classes/services/EmotionCacheService';\nimport { AuthenticationService } from '../../../classes/services/AuthenticationService';\nimport { LogService } from '../../../classes/services/LogService';\nimport { ApiService } from '../../../classes/services/ApiService';\nimport { RouterService } from '../../../classes/services/RouterService';\n\n\nexport const App = () => {\n const { config } = ConfigService.getInstance();\n\n const uiCoreComponentsConfig = useMemo<UiCoreComponentsConfig>(() => {\n const { DEFAULT_CIRCULAR_PROGRESS_SIZE, DEFAULT_TAKING_LONGER_TIMEOUT_MS } = config.spinner;\n\n return {\n spinner: {\n defaultCircularProgressSize: DEFAULT_CIRCULAR_PROGRESS_SIZE,\n defaultTakingLongerTimeoutMs: DEFAULT_TAKING_LONGER_TIMEOUT_MS,\n },\n };\n }, [config.spinner]);\n\n const authenticationService = AuthenticationService.getInstance();\n const logService = LogService.getInstance();\n\n const touchIconUrl = config.getTouchIconUrl();\n if (touchIconUrl) {\n\n document.querySelector('link[rel=\"icon\"]')?.setAttribute('href', touchIconUrl);\n }\n const apiService = ApiService.getInstance();\n const routerService = RouterService.getInstance();\n apiService.api.baseUrl = config.getAPIBaseUrl();\n apiService.api.defaultRequestTimeout = config.defaultRequestTimeout;\n apiService.api.onRequest = [\n authenticationService.onRequest.bind(authenticationService),\n logService.onRequest.bind(logService),\n ];\n apiService.api.onResponseFulfilled = [\n logService.onResponseFulfilled.bind(logService),\n BackendVersionService.getInstance().onResponseFulfilled.bind(BackendVersionService.getInstance()),\n ];\n apiService.api.onResponseRejected = [\n logService.onResponseRejected.bind(logService),\n authenticationService.onResponseRejected.bind(authenticationService),\n ];\n\n const queryQueryManager = QueryClientService.getInstance();\n const emotionCacheService = EmotionCacheService.getInstance();\n\n return (\n <UiCoreComponentsContextProvider config={uiCoreComponentsConfig}>\n <QueryClientProvider client={queryQueryManager.queryClient}>\n <CacheProvider value={emotionCacheService.emotionCache}>\n <ThemeProvider theme={ConfigService.getInstance().config.theme}>\n <CssBaseline />\n <ErrorBoundary FallbackComponent={ErrorPage}>\n <RouterProvider router={routerService.router} />\n </ErrorBoundary>\n </ThemeProvider>\n </CacheProvider>\n </QueryClientProvider>\n </UiCoreComponentsContextProvider>\n );\n};\n"],"x_google_ignoreList":[0,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