@gen-epix/ui-client-common 4.5.1 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/_chunks/ApplicationFooter.js +1 -2
  2. package/dist/_chunks/Breadcrumbs.js +1 -2
  3. package/dist/_chunks/CrudPage.js +1 -2
  4. package/dist/_chunks/CrudPage.js.map +1 -1
  5. package/dist/_chunks/GeoFilter.js +1 -2
  6. package/dist/_chunks/GeoFilter.js.map +1 -1
  7. package/dist/_chunks/Notifications.js +1 -2
  8. package/dist/_chunks/OutageList.js +1 -2
  9. package/dist/_chunks/OutageList.js.map +1 -1
  10. package/dist/_chunks/OutageUtil.js +3 -6
  11. package/dist/_chunks/OutageUtil.js.map +1 -1
  12. package/dist/_chunks/QueryClientProvider.js +1 -2
  13. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  14. package/dist/_chunks/QueryClientService.js +6 -8
  15. package/dist/_chunks/QueryClientService.js.map +1 -1
  16. package/dist/_chunks/Reflect.js +1 -2
  17. package/dist/_chunks/Table.js +5 -10
  18. package/dist/_chunks/Table.js.map +1 -1
  19. package/dist/_chunks/TableUtil.js +2 -4
  20. package/dist/_chunks/TableUtil.js.map +1 -1
  21. package/dist/_chunks/TextFilter.js +4 -8
  22. package/dist/_chunks/TextFilter.js.map +1 -1
  23. package/dist/_chunks/UserInvitationsAdminPage.js +1 -2
  24. package/dist/_chunks/UserManagerUtil.js +2 -4
  25. package/dist/_chunks/UserManagerUtil.js.map +1 -1
  26. package/dist/_chunks/_baseAssignValue.js +1 -2
  27. package/dist/_chunks/_baseFlatten.js +1 -2
  28. package/dist/_chunks/_baseGet.js +1 -2
  29. package/dist/_chunks/_baseIteratee.js +1 -2
  30. package/dist/_chunks/_baseUnset.js +1 -2
  31. package/dist/_chunks/_cacheHas.js +1 -2
  32. package/dist/_chunks/_setToString.js +1 -2
  33. package/dist/_chunks/decorate.js +1 -2
  34. package/dist/_chunks/decorateParam.js +1 -2
  35. package/dist/_chunks/format.js +27 -54
  36. package/dist/_chunks/format.js.map +1 -1
  37. package/dist/_chunks/isArrayLike.js +1 -2
  38. package/dist/_chunks/isObject.js +1 -2
  39. package/dist/_chunks/isSymbol.js +1 -2
  40. package/dist/_chunks/last.js +1 -2
  41. package/dist/_chunks/middleware.js +2 -3
  42. package/dist/_chunks/middleware.js.map +1 -1
  43. package/dist/_chunks/omit.js +1 -2
  44. package/dist/_chunks/query.js +8 -15
  45. package/dist/_chunks/query.js.map +1 -1
  46. package/dist/_chunks/react.js +2 -3
  47. package/dist/_chunks/react.js.map +1 -1
  48. package/dist/_chunks/rolldown-runtime.js +2 -3
  49. package/dist/_chunks/tableStore.js +171 -171
  50. package/dist/_chunks/tableStore.js.map +1 -1
  51. package/dist/_chunks/toDate.js +8 -14
  52. package/dist/_chunks/toDate.js.map +1 -1
  53. package/dist/_chunks/uniq.js +1 -2
  54. package/dist/_chunks/useColumnsMenu.js +3 -6
  55. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  56. package/dist/_chunks/useMutation.js +2 -4
  57. package/dist/_chunks/useMutation.js.map +1 -1
  58. package/dist/_chunks/useQueryMemo.js +8 -14
  59. package/dist/_chunks/useQueryMemo.js.map +1 -1
  60. package/dist/_chunks/vanilla.js +1 -2
  61. package/dist/_chunks/vanilla.js.map +1 -1
  62. package/dist/_chunks/yup.js +2 -4
  63. package/dist/_chunks/yup.js.map +1 -1
  64. package/dist/classes/TableEventBus/index.js +1 -2
  65. package/dist/classes/abstracts/FilterAbstract/index.js +1 -2
  66. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  67. package/dist/classes/services/AuthenticationService/index.js +0 -1
  68. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  69. package/dist/classes/services/AuthorizationService/index.js +1 -2
  70. package/dist/classes/services/BackendVersionService/index.js +1 -2
  71. package/dist/classes/services/BreadcrumbService/index.js +1 -2
  72. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  73. package/dist/classes/services/EmotionCacheService/index.js +1 -2
  74. package/dist/classes/services/FeatureFlagsService/index.js +1 -2
  75. package/dist/classes/services/I18nService/index.js +1 -2
  76. package/dist/classes/services/InactivityService/index.js +1 -2
  77. package/dist/classes/services/InactivityService/index.js.map +1 -1
  78. package/dist/classes/services/LogService/index.js +1 -2
  79. package/dist/classes/services/NavigationHistoryService/index.js +1 -2
  80. package/dist/classes/services/NotificationService/index.js +1 -2
  81. package/dist/classes/services/PageEventBusService/index.js +1 -2
  82. package/dist/classes/services/RouterService/index.js +1 -2
  83. package/dist/classes/services/UserSettingsService/index.js +1 -2
  84. package/dist/components/app/App/index.js +1 -2
  85. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +1 -2
  86. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
  87. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +1 -2
  88. package/dist/components/app/AuthenticationWrapper/index.js +1 -2
  89. package/dist/components/app/AuthorizationWrapper/index.js +1 -2
  90. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  91. package/dist/components/app/RouterRoot/index.js +1 -2
  92. package/dist/components/epi/EpiContactDetailsDialog/index.js +1 -2
  93. package/dist/components/filters/BooleanFilterField/index.js +1 -2
  94. package/dist/components/filters/DateFilterField/index.js +1 -2
  95. package/dist/components/filters/GeoFilterField/index.js +1 -2
  96. package/dist/components/filters/MultiSelectFilterField/index.js +1 -2
  97. package/dist/components/filters/NumberRangeFilterField/index.js +1 -2
  98. package/dist/components/filters/TextFilterField/index.js +1 -2
  99. package/dist/components/ui/ApplicationBar/index.js +1 -2
  100. package/dist/components/ui/ConsentDialog/index.js +1 -2
  101. package/dist/components/ui/GenericErrorMessage/index.js +1 -2
  102. package/dist/components/ui/LicensesDialog/index.js +1 -2
  103. package/dist/components/ui/MyPermissionsDialog/index.js +1 -2
  104. package/dist/components/ui/NavLink/index.js +1 -2
  105. package/dist/components/ui/OrganizationSwitcherDialog/index.js +1 -2
  106. package/dist/components/ui/OutagesDialog/index.js +1 -2
  107. package/dist/components/ui/PageContainer/index.js +1 -2
  108. package/dist/components/ui/ResponseHandler/index.js +1 -2
  109. package/dist/components/ui/Sidebar/index.js +1 -2
  110. package/dist/components/ui/UserFeedbackDialog/index.js +1 -2
  111. package/dist/components/ui/UserInactivityConfirmation/index.js +1 -2
  112. package/dist/constants/api.constants.js +1 -2
  113. package/dist/constants/config.constants.js +1 -2
  114. package/dist/constants/query.constants.js +1 -2
  115. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +1 -2
  116. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +1 -2
  117. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +1 -2
  118. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +1 -2
  119. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +1 -2
  120. package/dist/dataHooks/useOrganizationsQuery/index.js +1 -2
  121. package/dist/dataHooks/useUsersQuery/index.js +1 -2
  122. package/dist/hoc/withPermissions/index.js +1 -2
  123. package/dist/hooks/useConfig/index.js +1 -2
  124. package/dist/hooks/useCreateMutation/index.js +1 -2
  125. package/dist/hooks/useDeleteMutation/index.js +1 -2
  126. package/dist/hooks/useEditMutation/index.js +1 -2
  127. package/dist/hooks/useInitializeTableStore/index.js +1 -2
  128. package/dist/hooks/useItemQuery/index.js +1 -2
  129. package/dist/hooks/useUpdateBreadcrumb/index.js +1 -2
  130. package/dist/hooks/useUpdateDocumentTitle/index.js +1 -2
  131. package/dist/models/admin.models.js +1 -2
  132. package/dist/models/admin.models.js.map +1 -1
  133. package/dist/models/table.models.js +1 -2
  134. package/dist/models/table.models.js.map +1 -1
  135. package/dist/pages/AcceptInvitationPage/index.js +1 -2
  136. package/dist/pages/AdminPage/index.js +1 -2
  137. package/dist/pages/ChooseIdentityProviderPage/index.js +1 -2
  138. package/dist/pages/ErrorPage/index.js +1 -2
  139. package/dist/pages/IdentifierIssuersAdminPage/index.js +1 -2
  140. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -2
  141. package/dist/pages/OrganizationContactsAdminPage/index.js +1 -2
  142. package/dist/pages/OrganizationSitesAdminPage/index.js +1 -2
  143. package/dist/pages/OrganizationsAdminPage/index.js +1 -2
  144. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  145. package/dist/pages/OutagesAdminPage/index.js +1 -2
  146. package/dist/pages/PostLoginPage/index.js +2 -3
  147. package/dist/pages/PostLoginPage/index.js.map +1 -1
  148. package/dist/pages/PostLogoutPage/index.js +1 -2
  149. package/dist/pages/RouterErrorPage/index.js +1 -2
  150. package/dist/pages/UsersAdminPage/index.js +1 -2
  151. package/dist/routes/index.js +1 -2
  152. package/dist/setup/setup.js +1 -2
  153. package/dist/stores/oidcStore/index.js +1 -2
  154. package/dist/stores/outagesStore/index.js +1 -2
  155. package/dist/theme/demoTheme/index.js +1 -2
  156. package/dist/utils/AxiosUtil/index.js +1 -2
  157. package/dist/utils/DataHookUtil/index.js +1 -2
  158. package/dist/utils/DependencyContainerUtil/index.js +0 -1
  159. package/dist/utils/LoadableUtil/index.js +1 -2
  160. package/dist/utils/MenuDataUtil/index.js +1 -2
  161. package/dist/utils/NotificationUtil/index.js +1 -2
  162. package/dist/utils/StandardConfigUtil/index.js +1 -2
  163. package/dist/utils/TimeUtil/index.js +1 -2
  164. package/dist/utils/UserUtil/index.js +1 -2
  165. package/package.json +25 -25
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["throttle","_decorate","_decorateParam","__toESM","require__root","require_isObject","require_isSymbol","__decorateParam","__decorate","require_now","root","require__trimmedEndIndex","reWhitespace","trimmedEndIndex","index","string","require__baseTrim","reTrimStart","baseTrim","require_toNumber","isObject","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","value","other","isBinary","require_debounce","now","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","func","wait","options","invokeFunc","args","thisArg","time","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","import_throttle","__commonJSMin","throttle","\"leading\"","\"maxWait\"","\"trailing\"","InactivityService","SubscribableAbstract","Subject","logService","authenticationService","config","event","ALLOWED_IDLE_TIME_MS","notificationEndTime","NOTIFICATION_TIME_MS","CommonDbLogLevel","TimeUtil","singleton","inject","CONFIG_TOKEN","LogService","AuthenticationService"],"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 {\n inject,\n singleton,\n} from 'tsyringe';\n\nimport { AuthenticationService } from '../AuthenticationService';\nimport { LogService } from '../LogService';\nimport { TimeUtil } from '../../../utils/TimeUtil';\nimport { CONFIG_TOKEN } from '../../../constants/config.constants';\nimport type { ConfigBase } from '../../../models/config.models';\n\nexport type InactivityState = {\n idleDiff: number;\n isIdle: boolean;\n notificationDiff: number;\n readableIdleDiff: string;\n readableNotificationDiff: string;\n};\n\n@singleton()\nexport class InactivityService extends SubscribableAbstract<InactivityState> {\n private readonly authenticationService: AuthenticationService;\n\n private idleDiff: number = 0;\n private idleSince: number = Date.now();\n private isIdle: boolean = false;\n private isPaused: boolean = false;\n private readonly logService: LogService;\n private notificationDiff: number = 0;\n private readonly onActivityDebounced: () => void;\n\n public constructor(\n @inject(CONFIG_TOKEN) config: ConfigBase,\n @inject(LogService) logService: LogService,\n @inject(AuthenticationService) authenticationService: AuthenticationService,\n ) {\n super(new Subject<InactivityState>({\n idleDiff: 0,\n isIdle: false,\n notificationDiff: 0,\n readableIdleDiff: '',\n readableNotificationDiff: '',\n }));\n this.logService = logService;\n this.authenticationService = authenticationService;\n\n this.onActivityDebounced = throttle(this.onActivity.bind(this), 1000, {\n leading: true,\n trailing: true,\n });\n\n const { ALLOWED_IDLE_TIME_MS, NOTIFICATION_TIME_MS } = config.userInactivityConfirmation;\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 this.doNext();\n }\n }, 500);\n }\n\n\n public logout(): void {\n this.logService.log([{\n detail: this.authenticationService.authContextProps.user,\n level: CommonDbLogLevel.TRACE,\n topic: 'USER_LOGOUT_BY_INACTIVITY',\n }]);\n this.logService.flushLog();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.authenticationService.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"],"ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;;;;;;;;;CAAA,IAAIU,IAAAN,EAAA;CAsBJ,EAAO,UAAU,WAJI;EACnB,OAAOM,EAAK,KAAK,IAAI;CACvB;;CCnBA,IAAIE,IAAe;CAUnB,SAASC,EAAgB,GAAQ;EAG/B,KAFA,IAAIC,IAAQC,EAAO,QAEZ,OAAWH,EAAa,KAAKG,EAAO,OAAOD,CAAK,CAAC;EACxD,OAAOA;CACT;CAEA,EAAO,UAAUD;;CClBjB,IAAIA,IAAAF,EAAA,GAGAM,IAAc;CASlB,SAASC,EAAS,GAAQ;EACxB,OAAOH,KACHA,EAAO,MAAM,GAAGF,EAAgBE,CAAM,IAAI,CAAC,CAAC,CAAC,QAAQE,GAAa,EAAE;CAE1E;CAEA,EAAO,UAAUC;;CClBjB,IAAIA,IAAAF,EAAA,GACAI,IAAAf,EAAA,GACAgB,IAAAf,EAAA,GAGAgB,IAAM,KAGNC,IAAa,sBAGbC,IAAa,cAGbC,IAAY,eAGZC,IAAe;CAyBnB,SAASC,EAAS,GAAO;EACvB,IAAI,OAAOC,KAAS,UAClB,OAAOA;EAET,IAAIP,EAASO,CAAK,GAChB,OAAON;EAET,IAAIF,EAASQ,CAAK,GAAG;GACnB,IAAIC,IAAQ,OAAOD,EAAM,WAAW,aAAaA,EAAM,QAAQ,IAAIA;GACnE,IAAQR,EAASS,CAAK,IAAKA,IAAQ,KAAMA;EAC3C;EACA,IAAI,OAAOD,KAAS,UAClB,OAAOA,MAAU,IAAIA,IAAQ,CAACA;EAEhC,IAAQV,EAASU,CAAK;EACtB,IAAIE,IAAWN,EAAW,KAAKI,CAAK;EACpC,OAAQE,KAAYL,EAAU,KAAKG,CAAK,IACpCF,EAAaE,EAAM,MAAM,CAAC,G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,sBAAsB,iBAAiB,gBAAgB;CAC9D;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,kBAAkBC,EAAS,yBAAyB,KAAK,QAAQ;GACjE,0BAA0BA,EAAS,yBAAyB,KAAK,gBAAgB;EACnF,CAAC;CACH;CAEA,aAA2B;EACzB,AAAI,KAAK,WAGT,KAAK,YAAY,KAAK,IAAI;CAC5B;AAEF;;CAnGCC,EAAU;CAaNlF,EAAA,GAAAmF,EAAOC,CAAY,CAAA;CACnBpF,EAAA,GAAAmF,EAAOE,CAAU,CAAA;CACjBrF,EAAA,GAAAmF,EAAOG,CAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","names":["throttle","_decorate","_decorateParam","__toESM","require__root","require_isObject","require_isSymbol","__decorateParam","__decorate","require_now","root","require__trimmedEndIndex","reWhitespace","trimmedEndIndex","index","string","require__baseTrim","reTrimStart","baseTrim","require_toNumber","isObject","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","value","other","isBinary","require_debounce","now","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","func","wait","options","invokeFunc","args","thisArg","time","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","import_throttle","__commonJSMin","throttle","\"leading\"","\"maxWait\"","\"trailing\"","InactivityService","SubscribableAbstract","Subject","logService","authenticationService","config","event","ALLOWED_IDLE_TIME_MS","notificationEndTime","NOTIFICATION_TIME_MS","CommonDbLogLevel","TimeUtil","singleton","inject","CONFIG_TOKEN","LogService","AuthenticationService"],"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 {\n inject,\n singleton,\n} from 'tsyringe';\n\nimport { AuthenticationService } from '../AuthenticationService';\nimport { LogService } from '../LogService';\nimport { TimeUtil } from '../../../utils/TimeUtil';\nimport { CONFIG_TOKEN } from '../../../constants/config.constants';\nimport type { ConfigBase } from '../../../models/config.models';\n\nexport type InactivityState = {\n idleDiff: number;\n isIdle: boolean;\n notificationDiff: number;\n readableIdleDiff: string;\n readableNotificationDiff: string;\n};\n\n@singleton()\nexport class InactivityService extends SubscribableAbstract<InactivityState> {\n private readonly authenticationService: AuthenticationService;\n\n private idleDiff: number = 0;\n private idleSince: number = Date.now();\n private isIdle: boolean = false;\n private isPaused: boolean = false;\n private readonly logService: LogService;\n private notificationDiff: number = 0;\n private readonly onActivityDebounced: () => void;\n\n public constructor(\n @inject(CONFIG_TOKEN) config: ConfigBase,\n @inject(LogService) logService: LogService,\n @inject(AuthenticationService) authenticationService: AuthenticationService,\n ) {\n super(new Subject<InactivityState>({\n idleDiff: 0,\n isIdle: false,\n notificationDiff: 0,\n readableIdleDiff: '',\n readableNotificationDiff: '',\n }));\n this.logService = logService;\n this.authenticationService = authenticationService;\n\n this.onActivityDebounced = throttle(this.onActivity.bind(this), 1000, {\n leading: true,\n trailing: true,\n });\n\n const { ALLOWED_IDLE_TIME_MS, NOTIFICATION_TIME_MS } = config.userInactivityConfirmation;\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 this.doNext();\n }\n }, 500);\n }\n\n\n public logout(): void {\n this.logService.log([{\n detail: this.authenticationService.authContextProps.user,\n level: CommonDbLogLevel.TRACE,\n topic: 'USER_LOGOUT_BY_INACTIVITY',\n }]);\n this.logService.flushLog();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.authenticationService.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"],"ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;;;;;;;;;CAAA,IAAIU,IAAAN,EAAA;CAsBJ,EAAO,UAAU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A,SAAsB;EAEpB,AADA,KAAK,WAAW,IAChB,KAAK,MAAM;CACb;CAEA,SAAuB;EACrB,KAAK,KAAK;GACR,UAAU,KAAK;GACf,QAAQ,KAAK;GACb,kBAAkB,KAAK;GACvB,kBAAkBC,EAAS,yBAAyB,KAAK,QAAQ;GACjE,0BAA0BA,EAAS,yBAAyB,KAAK,gBAAgB;EACnF,CAAC;CACH;CAEA,aAA2B;EACzB,AAAI,KAAK,WAGT,KAAK,YAAY,KAAK,IAAI;CAC5B;AAEF;;CAnGCC,EAAU;CAaNlF,EAAA,GAAAmF,EAAOC,CAAY,CAAA;CACnBpF,EAAA,GAAAmF,EAAOE,CAAU,CAAA;CACjBrF,EAAA,GAAAmF,EAAOG,CAAqB,CAAA"}
@@ -8,7 +8,7 @@ import { inject as o, singleton as s } from "tsyringe";
8
8
  import { StringUtil as c } from "@gen-epix/ui-core/utils/StringUtil";
9
9
  import { CommonDbLogLevel as l } from "@gen-epix/api-commondb";
10
10
  import { isAxiosError as u } from "axios";
11
- //#region src/classes/services/LogService/LogService.ts
11
+ // src/classes/services/LogService/LogService.ts
12
12
  var d = class {
13
13
  requestMap;
14
14
  authenticationService;
@@ -99,7 +99,6 @@ d = i([
99
99
  r(1, o(a)),
100
100
  r(2, o(n))
101
101
  ], d);
102
- //#endregion
103
102
  export { d as LogService };
104
103
 
105
104
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,10 @@
1
1
  import { t as e } from "../../../_chunks/decorate.js";
2
2
  import { singleton as t } from "tsyringe";
3
- //#region src/classes/services/NavigationHistoryService/NavigationHistoryService.ts
3
+ // src/classes/services/NavigationHistoryService/NavigationHistoryService.ts
4
4
  var n = class {
5
5
  navigationHistory = [];
6
6
  };
7
7
  n = e([t()], n);
8
- //#endregion
9
8
  export { n as NavigationHistoryService };
10
9
 
11
10
  //# sourceMappingURL=index.js.map
@@ -5,7 +5,7 @@ import { inject as r, singleton as i } from "tsyringe";
5
5
  import { StringUtil as a } from "@gen-epix/ui-core/utils/StringUtil";
6
6
  import { Subject as o } from "@gen-epix/ui-core/classes/Subject";
7
7
  import { SubscribableAbstract as s } from "@gen-epix/ui-core/classes/abstracts/SubscribableAbstract";
8
- //#region src/classes/services/NotificationService/NotificationService.ts
8
+ // src/classes/services/NotificationService/NotificationService.ts
9
9
  var c = class extends s {
10
10
  config;
11
11
  notificationTimeouts;
@@ -57,7 +57,6 @@ var c = class extends s {
57
57
  }
58
58
  };
59
59
  c = n([i(), t(0, r(e))], c);
60
- //#endregion
61
60
  export { c as NotificationService };
62
61
 
63
62
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,7 @@ import { t as n } from "../../../_chunks/decorate.js";
4
4
  import { inject as r, singleton as i } from "tsyringe";
5
5
  import { WindowService as a } from "@gen-epix/ui-core/classes/services/WindowService";
6
6
  import { EventBusAbstract as o } from "@gen-epix/ui-core/classes/abstracts/EventBusAbstract";
7
- //#region src/classes/services/PageEventBusService/PageEventBusService.ts
7
+ // src/classes/services/PageEventBusService/PageEventBusService.ts
8
8
  var s = class extends o {
9
9
  lastPageEventPayload = null;
10
10
  windowService;
@@ -67,7 +67,6 @@ s = n([
67
67
  t(0, r(e)),
68
68
  t(1, r(a))
69
69
  ], s);
70
- //#endregion
71
70
  export { s as PageEventBusService };
72
71
 
73
72
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../../../_chunks/decorate.js";
2
2
  import { singleton as t } from "tsyringe";
3
3
  import { createBrowserRouter as n } from "react-router-dom";
4
- //#region src/classes/services/RouterService/RouterService.ts
4
+ // src/classes/services/RouterService/RouterService.ts
5
5
  var r = class {
6
6
  get adminRoutes() {
7
7
  return this.__adminRoutes ??= this.__adminRoutesFactory(), this.__adminRoutes;
@@ -29,7 +29,6 @@ var r = class {
29
29
  }
30
30
  };
31
31
  r = e([t()], r);
32
- //#endregion
33
32
  export { r as RouterService };
34
33
 
35
34
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,10 @@
1
1
  import { t as e } from "../../../_chunks/decorate.js";
2
2
  import { singleton as t } from "tsyringe";
3
- //#region src/classes/services/UserSettingsService/UserSettingsService.ts
3
+ // src/classes/services/UserSettingsService/UserSettingsService.ts
4
4
  var n = class {
5
5
  showShowUserFeedbackTooltip = !0;
6
6
  };
7
7
  n = e([t()], n);
8
- //#endregion
9
8
  export { n as UserSettingsService };
10
9
 
11
10
  //# sourceMappingURL=index.js.map
@@ -15,7 +15,7 @@ import { jsx as m, jsxs as h } from "react/jsx-runtime";
15
15
  import { RouterProvider as g } from "react-router-dom";
16
16
  import { CacheProvider as _ } from "@emotion/react";
17
17
  import { ErrorBoundary as v } from "react-error-boundary";
18
- //#region src/components/app/AppRouterProvider/AppRouterProvider.tsx
18
+ // src/components/app/AppRouterProvider/AppRouterProvider.tsx
19
19
  var y = () => /* @__PURE__ */ m(g, { router: d.resolve(t).router }), b = () => {
20
20
  let t = n(), g = d.resolve(r), b = d.resolve(i), x = t.getTouchIconUrl();
21
21
  x && document.querySelector("link[rel=\"icon\"]")?.setAttribute("href", x);
@@ -36,7 +36,6 @@ var y = () => /* @__PURE__ */ m(g, { router: d.resolve(t).router }), b = () => {
36
36
  })
37
37
  });
38
38
  };
39
- //#endregion
40
39
  export { b as App };
41
40
 
42
41
  //# sourceMappingURL=index.js.map
@@ -17,7 +17,7 @@ import { jsx as v, jsxs as y } from "react/jsx-runtime";
17
17
  import { useTranslation as b } from "react-i18next";
18
18
  import { TestIdUtil as x } from "@gen-epix/ui-core/utils/TestIdUtil";
19
19
  import { useArray as S } from "@gen-epix/ui-core/hooks/useArray";
20
- //#region src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx
20
+ // src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx
21
21
  var C = ({ children: C }) => {
22
22
  let { t: w } = b(), T = t(n, (e) => e.setCategorizedOutages), [E, D] = _(!1), [O, k] = _(!1), A = o({
23
23
  gcTime: Infinity,
@@ -76,7 +76,6 @@ var C = ({ children: C }) => {
76
76
  })
77
77
  }) : C;
78
78
  };
79
- //#endregion
80
79
  export { C as ApplicationBootstrapWithAuthentication };
81
80
 
82
81
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["OutageUtil","useQueryMemo","QueryClientService","OutageList","ApplicationBootstrapWithAuthentication","useTranslation","setCategorizedOutages","useStore","outagesStore","state","shouldContinue","setShouldContinue","useState","buttonsEnabled","setButtonsEnabled","outagesQuery","container","API_SYSTEM_TOKEN","COMMON_QUERY_KEY","outagesLoadables","useArray","categorizedOutages","useMemo","onRetryButtonClick","useCallback","WindowService","onContinuButtonClick","useEffect","windowService","timeout","PageContainer","TestIdUtil","Box","Button","ResponseHandler","children"],"sources":["../../../../src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx"],"sourcesContent":["import { container } from 'tsyringe';\nimport {\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useStore } from 'zustand';\nimport {\n Box,\n Button,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport { API_SYSTEM_TOKEN } from '../../../constants/api.constants';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { outagesStore } from '../../../stores/outagesStore';\nimport { OutageUtil } from '../../../utils/OutageUtil';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { OutageList } from '../../ui/OutageList';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { COMMON_QUERY_KEY } from '../../../constants/query.constants';\n\n\nexport const ApplicationBootstrapWithAuthentication = ({ children }: PropsWithChildren): ReactNode => {\n const { t } = useTranslation();\n\n const setCategorizedOutages = useStore(outagesStore, (state) => state.setCategorizedOutages);\n const [shouldContinue, setShouldContinue] = useState(false);\n const [buttonsEnabled, setButtonsEnabled] = useState(false);\n\n const outagesQuery = useQueryMemo({\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await container.resolve(API_SYSTEM_TOKEN).retrieveOutages({ signal })).data,\n queryKey: container.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.OUTAGES),\n refetchInterval: 5 * 60 * 1000,\n staleTime: Infinity,\n });\n\n const outagesLoadables = useArray([outagesQuery]);\n\n const categorizedOutages = useMemo(() => {\n return OutageUtil.getCategorizedOutages(outagesQuery.data ?? []);\n }, [outagesQuery.data]);\n\n const onRetryButtonClick = useCallback(() => {\n container.resolve(WindowService).window.location.reload();\n }, []);\n\n const onContinuButtonClick = useCallback(() => {\n setShouldContinue(true);\n }, []);\n\n useEffect(() => {\n if (categorizedOutages) {\n setCategorizedOutages(categorizedOutages);\n }\n\n const windowService = container.resolve(WindowService);\n const timeout = windowService.window.setTimeout(() => {\n setButtonsEnabled(true);\n }, 5000);\n\n return () => {\n windowService.window.clearTimeout(timeout);\n };\n }, [categorizedOutages, setCategorizedOutages]);\n\n const shouldShowOutagePage = !shouldContinue && !outagesQuery.isLoading && !outagesQuery.error && categorizedOutages.activeOutages?.length > 0;\n\n if (shouldShowOutagePage) {\n return (\n <PageContainer\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('OutagePage')}\n title={t`Outages`}\n >\n <OutageList\n activeOutages={categorizedOutages.activeOutages}\n soonActiveOutages={categorizedOutages.soonActiveOutages}\n visibleOutages={categorizedOutages.visibleOutages}\n />\n <Box\n sx={{\n display: 'flex',\n gap: 1,\n justifyContent: 'flex-end',\n }}\n >\n <Button\n disabled={!buttonsEnabled}\n onClick={onContinuButtonClick}\n variant={'outlined'}\n >\n {t`Continue anyway`}\n </Button>\n <Button\n disabled={!buttonsEnabled}\n onClick={onRetryButtonClick}\n variant={'contained'}\n >\n {t`Retry`}\n </Button>\n </Box>\n </PageContainer>\n );\n }\n if (outagesQuery.error || outagesQuery.isLoading) {\n return (\n <PageContainer\n ignorePageEvent\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('OutagesLoadingPage')}\n title={t`Outages`}\n >\n <ResponseHandler\n loadables={outagesLoadables}\n loadingMessage={t`Loading`}\n >\n {children}\n </ResponseHandler>\n </PageContainer>\n );\n\n }\n\n return children;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgCA,IAAaI,KAA0C,EAAE,kBAA6C;CACpG,IAAM,EAAE,SAAMC,EAAe,GAEvBC,IAAwBC,EAASC,IAAe,MAAUC,EAAM,qBAAqB,GACrF,CAACC,GAAgBC,KAAqBC,EAAS,EAAK,GACpD,CAACC,GAAgBC,KAAqBF,EAAS,EAAK,GAEpDG,IAAed,EAAa;EAChC,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMe,EAAU,QAAQC,CAAgB,CAAC,CAAC,gBAAgB,EAAE,UAAO,CAAC,EAAA,CAAG;EACvG,UAAUD,EAAU,QAAQd,CAAkB,CAAC,CAAC,cAAcgB,EAAiB,OAAO;EACtF,iBAAiB;EACjB,WAAW;CACb,CAAC,GAEKC,IAAmBC,EAAS,CAACL,CAAY,CAAC,GAE1CM,IAAqBC,QAClBtB,EAAW,sBAAsBe,EAAa,QAAQ,CAAC,CAAC,GAC9D,CAACA,EAAa,IAAI,CAAC,GAEhBQ,IAAqBC,QAAkB;EAC3C,EAAU,QAAQC,CAAa,CAAC,CAAC,OAAO,SAAS,OAAO;CAC1D,GAAG,CAAC,CAAC,GAECC,IAAuBF,QAAkB;EAC7C,EAAkB,EAAI;CACxB,GAAG,CAAC,CAAC;CA2EL,OAzEAG,QAAgB;EACd,AAAIN,KACFf,EAAsBe,CAAkB;EAG1C,IAAMO,IAAgBZ,EAAU,QAAQS,CAAa,GAC/CI,IAAUD,EAAc,OAAO,iBAAiB;GACpD,EAAkB,EAAI;EACxB,GAAG,GAAI;EAEP,aAAa;GACX,EAAc,OAAO,aAAaC,CAAO;EAC3C;CACF,GAAG,CAACR,GAAoBf,CAAqB,CAAC,GAEjB,CAACI,KAAkB,CAACK,EAAa,aAAa,CAACA,EAAa,SAASM,EAAmB,eAAe,SAAS,IAIzI,kBAACS,GAAD;EACE,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,YAAY;EAC1D,OAAO,CAAC;EAHV,UAAA,CAKE,kBAAC5B,GAAD;GACE,eAAekB,EAAmB;GAClC,mBAAmBA,EAAmB;GACtC,gBAAgBA,EAAmB;EACpC,CAAA,GACD,kBAACW,GAAD;GACE,IAAI;IACF,SAAS;IACT,KAAK;IACL,gBAAgB;GAClB;GALF,UAAA,CAOE,kBAACC,GAAD;IACE,UAAU,CAACpB;IACX,SAASa;IACT,SAAS;IAER,UAAA,CAAC;GACI,CAAA,GACR,kBAACO,GAAD;IACE,UAAU,CAACpB;IACX,SAASU;IACT,SAAS;IAER,UAAA,CAAC;GACI,CAAA,CACL;EACQ,CAAA,CAAA;MAGfR,EAAa,SAASA,EAAa,YAEnC,kBAACe,GAAD;EACE,iBAAA;EACA,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,oBAAoB;EAClE,OAAO,CAAC;EAER,UAAA,kBAACG,GAAD;GACE,WAAWf;GACX,gBAAgB,CAAC;GAEhB;EACc,CAAA;CACJ,CAAA,IAKZgB;AACT"}
1
+ {"version":3,"file":"index.js","names":["OutageUtil","useQueryMemo","QueryClientService","OutageList","ApplicationBootstrapWithAuthentication","useTranslation","setCategorizedOutages","useStore","outagesStore","state","shouldContinue","setShouldContinue","useState","buttonsEnabled","setButtonsEnabled","outagesQuery","container","API_SYSTEM_TOKEN","COMMON_QUERY_KEY","outagesLoadables","useArray","categorizedOutages","useMemo","onRetryButtonClick","useCallback","WindowService","onContinuButtonClick","useEffect","windowService","timeout","PageContainer","TestIdUtil","Box","Button","ResponseHandler","children"],"sources":["../../../../src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx"],"sourcesContent":["import { container } from 'tsyringe';\nimport {\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useStore } from 'zustand';\nimport {\n Box,\n Button,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport { API_SYSTEM_TOKEN } from '../../../constants/api.constants';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { outagesStore } from '../../../stores/outagesStore';\nimport { OutageUtil } from '../../../utils/OutageUtil';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { OutageList } from '../../ui/OutageList';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { COMMON_QUERY_KEY } from '../../../constants/query.constants';\n\n\nexport const ApplicationBootstrapWithAuthentication = ({ children }: PropsWithChildren): ReactNode => {\n const { t } = useTranslation();\n\n const setCategorizedOutages = useStore(outagesStore, (state) => state.setCategorizedOutages);\n const [shouldContinue, setShouldContinue] = useState(false);\n const [buttonsEnabled, setButtonsEnabled] = useState(false);\n\n const outagesQuery = useQueryMemo({\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await container.resolve(API_SYSTEM_TOKEN).retrieveOutages({ signal })).data,\n queryKey: container.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.OUTAGES),\n refetchInterval: 5 * 60 * 1000,\n staleTime: Infinity,\n });\n\n const outagesLoadables = useArray([outagesQuery]);\n\n const categorizedOutages = useMemo(() => {\n return OutageUtil.getCategorizedOutages(outagesQuery.data ?? []);\n }, [outagesQuery.data]);\n\n const onRetryButtonClick = useCallback(() => {\n container.resolve(WindowService).window.location.reload();\n }, []);\n\n const onContinuButtonClick = useCallback(() => {\n setShouldContinue(true);\n }, []);\n\n useEffect(() => {\n if (categorizedOutages) {\n setCategorizedOutages(categorizedOutages);\n }\n\n const windowService = container.resolve(WindowService);\n const timeout = windowService.window.setTimeout(() => {\n setButtonsEnabled(true);\n }, 5000);\n\n return () => {\n windowService.window.clearTimeout(timeout);\n };\n }, [categorizedOutages, setCategorizedOutages]);\n\n const shouldShowOutagePage = !shouldContinue && !outagesQuery.isLoading && !outagesQuery.error && categorizedOutages.activeOutages?.length > 0;\n\n if (shouldShowOutagePage) {\n return (\n <PageContainer\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('OutagePage')}\n title={t`Outages`}\n >\n <OutageList\n activeOutages={categorizedOutages.activeOutages}\n soonActiveOutages={categorizedOutages.soonActiveOutages}\n visibleOutages={categorizedOutages.visibleOutages}\n />\n <Box\n sx={{\n display: 'flex',\n gap: 1,\n justifyContent: 'flex-end',\n }}\n >\n <Button\n disabled={!buttonsEnabled}\n onClick={onContinuButtonClick}\n variant={'outlined'}\n >\n {t`Continue anyway`}\n </Button>\n <Button\n disabled={!buttonsEnabled}\n onClick={onRetryButtonClick}\n variant={'contained'}\n >\n {t`Retry`}\n </Button>\n </Box>\n </PageContainer>\n );\n }\n if (outagesQuery.error || outagesQuery.isLoading) {\n return (\n <PageContainer\n ignorePageEvent\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('OutagesLoadingPage')}\n title={t`Outages`}\n >\n <ResponseHandler\n loadables={outagesLoadables}\n loadingMessage={t`Loading`}\n >\n {children}\n </ResponseHandler>\n </PageContainer>\n );\n\n }\n\n return children;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgCA,IAAaI,KAA0C,EAAE,kBAA6C;CACpG,IAAM,EAAE,SAAMC,EAAe,GAEvBC,IAAwBC,EAASC,IAAe,MAAUC,EAAM,qBAAqB,GACrF,CAACC,GAAgBC,KAAqBC,EAAS,EAAK,GACpD,CAACC,GAAgBC,KAAqBF,EAAS,EAAK,GAEpDG,IAAed,EAAa;EAChC,QAAQ;EAC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,GAAD;IACE,UAAU,CAACpB;IACX,SAASU;IACT,SAAS;IAER,UAAA,CAAC;GACI,CAAA,CACL;EACQ,CAAA,CAAA;C,KAGfR,EAAa,SAASA,EAAa,YAEnC,kBAACe,GAAD;EACE,iBAAA;EACA,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,oBAAoB;EAClE,OAAO,CAAC;EAER,UAAA,kBAACG,GAAD;GACE,WAAWf;GACX,gBAAgB,CAAC;GAEhB;EACc,CAAA;CACJ,CAAA,IAKZgB;AACT"}
@@ -17,7 +17,7 @@ import { TestIdUtil as y } from "@gen-epix/ui-core/utils/TestIdUtil";
17
17
  import { Spinner as b } from "@gen-epix/ui-core-components/components/Spinner";
18
18
  import { useArray as x } from "@gen-epix/ui-core/hooks/useArray";
19
19
  import { Confirmation as S } from "@gen-epix/ui-core-components/components/Confirmation";
20
- //#region src/components/app/ApplicationBootstrapWithoutAuthorization/ApplicationBootstrapWithoutAuthorization.tsx
20
+ // src/components/app/ApplicationBootstrapWithoutAuthorization/ApplicationBootstrapWithoutAuthorization.tsx
21
21
  var C = ({ children: C }) => {
22
22
  let { t: w } = v(), T = m(null), E = m(null), [D, O] = h(!1);
23
23
  p(() => {
@@ -60,7 +60,6 @@ var C = ({ children: C }) => {
60
60
  })]
61
61
  });
62
62
  };
63
- //#endregion
64
63
  export { C as ApplicationBootstrapWithoutAuthorization };
65
64
 
66
65
  //# sourceMappingURL=index.js.map
@@ -14,7 +14,7 @@ import { TestIdUtil as b } from "@gen-epix/ui-core/utils/TestIdUtil";
14
14
  import { useSubscribable as x } from "@gen-epix/ui-core/hooks/useSubscribable";
15
15
  import { Spinner as S } from "@gen-epix/ui-core-components/components/Spinner";
16
16
  import { useAuth as C } from "react-oidc-context";
17
- //#region src/components/app/AuthenticationWrapper/AuthenticationWrapper.tsx
17
+ // src/components/app/AuthenticationWrapper/AuthenticationWrapper.tsx
18
18
  var w = ({ children: w }) => {
19
19
  let { t: T } = y(), E = C(), D = e(), O = m(null), [k, A] = h(!D.consentDialog?.getShouldShow()), j = x(a.resolve(n)), M = D.login?.AfterLoginElement;
20
20
  f(() => {
@@ -121,7 +121,6 @@ var w = ({ children: w }) => {
121
121
  ref: O
122
122
  })] });
123
123
  };
124
- //#endregion
125
124
  export { w as AuthenticationWrapper };
126
125
 
127
126
  //# sourceMappingURL=index.js.map
@@ -15,7 +15,7 @@ import { useTranslation as p } from "react-i18next";
15
15
  import { TestIdUtil as m } from "@gen-epix/ui-core/utils/TestIdUtil";
16
16
  import { useMatches as h } from "react-router-dom";
17
17
  import { useArray as g } from "@gen-epix/ui-core/hooks/useArray";
18
- //#region src/components/app/AuthorizationWrapper/AuthorizationWrapper.tsx
18
+ // src/components/app/AuthorizationWrapper/AuthorizationWrapper.tsx
19
19
  var _ = /* @__PURE__ */ e(n(), 1), v = ({ children: e }) => {
20
20
  let { t: n } = p(), v = h(), y = d(() => (0, _.default)(v).handle.requiresUserProfile, [v]), b = s({
21
21
  enabled: y,
@@ -41,7 +41,6 @@ var _ = /* @__PURE__ */ e(n(), 1), v = ({ children: e }) => {
41
41
  })
42
42
  }) : e;
43
43
  };
44
- //#endregion
45
44
  export { v as AuthorizationWrapper };
46
45
 
47
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["last","__toESM","require_last","useQueryMemo","QueryClientService","import_last","AuthorizationWrapper","useTranslation","matches","useMatches","requiresUserProfile","useMemo","userQuery","container","API_ORGANIZATION_TOKEN","COMMON_QUERY_KEY","userPermissionsQuery","loadables","useArray","AuthorizationService","LoadableUtil","PageContainer","TestIdUtil","ResponseHandler","children"],"sources":["../../../../src/components/app/AuthorizationWrapper/AuthorizationWrapper.tsx"],"sourcesContent":["import { container } from 'tsyringe';\nimport { useMemo } from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useMatches } from 'react-router-dom';\nimport type { UIMatch } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport last from 'lodash/last';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\n\nimport { API_ORGANIZATION_TOKEN } from '../../../constants/api.constants';\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\nimport type { MyNonIndexRouteObject } from '../../../models/react-router.models';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { LoadableUtil } from '../../../utils/LoadableUtil';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { COMMON_QUERY_KEY } from '../../../constants/query.constants';\n\nexport const AuthorizationWrapper = ({ children }: PropsWithChildren): ReactNode => {\n const { t } = useTranslation();\n const matches = (useMatches() as UIMatch<unknown, MyNonIndexRouteObject['handle']>[]);\n\n const requiresUserProfile = useMemo(() => last(matches).handle.requiresUserProfile, [matches]);\n\n const userQuery = useQueryMemo({\n enabled: requiresUserProfile,\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await container.resolve(API_ORGANIZATION_TOKEN).userMeGetOne({ signal })).data,\n queryKey: container.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.USER_ME),\n staleTime: Infinity,\n });\n const userPermissionsQuery = useQueryMemo({\n enabled: requiresUserProfile,\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await container.resolve(API_ORGANIZATION_TOKEN).userMeRetrievePermissions({ signal })).data,\n queryKey: container.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.USER_PERMISSIONS),\n staleTime: Infinity,\n });\n\n const loadables = useArray([\n userQuery,\n userPermissionsQuery,\n ]);\n\n\n if (userQuery.data) {\n container.resolve(AuthorizationService).user = userQuery.data;\n }\n if (userPermissionsQuery.data) {\n container.resolve(AuthorizationService).apiPermissions = userPermissionsQuery.data;\n }\n\n if (requiresUserProfile && (LoadableUtil.isSomeLoading(loadables) || LoadableUtil.hasSomeError(loadables))) {\n return (\n <PageContainer\n ignorePageEvent\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('LoadingUserDataPage')}\n title={t`Loading user data`}\n >\n <ResponseHandler\n loadables={loadables}\n loadingMessage={t`Loading user data`}\n />\n </PageContainer>\n );\n }\n\n return children;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;mCAuBaM,KAAwB,EAAE,kBAA6C;CAClF,IAAM,EAAE,SAAMC,EAAe,GACvBC,IAAWC,EAAW,GAEtBC,IAAsBC,SAAA,GAAcX,EAAAA,QAAAA,CAAKQ,CAAO,CAAC,CAAC,OAAO,qBAAqB,CAACA,CAAO,CAAC,GAEvFI,IAAYT,EAAa;EAC7B,SAASO;EACT,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMG,EAAU,QAAQC,CAAsB,CAAC,CAAC,aAAa,EAAE,UAAO,CAAC,EAAA,CAAG;EAC1G,UAAUD,EAAU,QAAQT,CAAkB,CAAC,CAAC,cAAcW,EAAiB,OAAO;EACtF,WAAW;CACb,CAAC,GACKC,IAAuBb,EAAa;EACxC,SAASO;EACT,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMG,EAAU,QAAQC,CAAsB,CAAC,CAAC,0BAA0B,EAAE,UAAO,CAAC,EAAA,CAAG;EACvH,UAAUD,EAAU,QAAQT,CAAkB,CAAC,CAAC,cAAcW,EAAiB,gBAAgB;EAC/F,WAAW;CACb,CAAC,GAEKE,IAAYC,EAAS,CACzBN,GACAI,CACF,CAAC;CA0BD,OAvBIJ,EAAU,SACZ,EAAU,QAAQO,CAAoB,CAAC,CAAC,OAAOP,EAAU,OAEvDI,EAAqB,SACvB,EAAU,QAAQG,CAAoB,CAAC,CAAC,iBAAiBH,EAAqB,OAG5EN,MAAwBU,EAAa,cAAcH,CAAS,KAAKG,EAAa,aAAaH,CAAS,KAEpG,kBAACI,GAAD;EACE,iBAAA;EACA,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,qBAAqB;EACnE,OAAO,CAAC;EAER,UAAA,kBAACC,GAAD;GACa;GACX,gBAAgB,CAAC;EAClB,CAAA;CACY,CAAA,IAIZC;AACT"}
1
+ {"version":3,"file":"index.js","names":["last","__toESM","require_last","useQueryMemo","QueryClientService","import_last","AuthorizationWrapper","useTranslation","matches","useMatches","requiresUserProfile","useMemo","userQuery","container","API_ORGANIZATION_TOKEN","COMMON_QUERY_KEY","userPermissionsQuery","loadables","useArray","AuthorizationService","LoadableUtil","PageContainer","TestIdUtil","ResponseHandler","children"],"sources":["../../../../src/components/app/AuthorizationWrapper/AuthorizationWrapper.tsx"],"sourcesContent":["import { container } from 'tsyringe';\nimport { useMemo } from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useMatches } from 'react-router-dom';\nimport type { UIMatch } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport last from 'lodash/last';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\n\nimport { API_ORGANIZATION_TOKEN } from '../../../constants/api.constants';\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\nimport type { MyNonIndexRouteObject } from '../../../models/react-router.models';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { LoadableUtil } from '../../../utils/LoadableUtil';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { COMMON_QUERY_KEY } from '../../../constants/query.constants';\n\nexport const AuthorizationWrapper = ({ children }: PropsWithChildren): ReactNode => {\n const { t } = useTranslation();\n const matches = (useMatches() as UIMatch<unknown, MyNonIndexRouteObject['handle']>[]);\n\n const requiresUserProfile = useMemo(() => last(matches).handle.requiresUserProfile, [matches]);\n\n const userQuery = useQueryMemo({\n enabled: requiresUserProfile,\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await container.resolve(API_ORGANIZATION_TOKEN).userMeGetOne({ signal })).data,\n queryKey: container.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.USER_ME),\n staleTime: Infinity,\n });\n const userPermissionsQuery = useQueryMemo({\n enabled: requiresUserProfile,\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await container.resolve(API_ORGANIZATION_TOKEN).userMeRetrievePermissions({ signal })).data,\n queryKey: container.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.USER_PERMISSIONS),\n staleTime: Infinity,\n });\n\n const loadables = useArray([\n userQuery,\n userPermissionsQuery,\n ]);\n\n\n if (userQuery.data) {\n container.resolve(AuthorizationService).user = userQuery.data;\n }\n if (userPermissionsQuery.data) {\n container.resolve(AuthorizationService).apiPermissions = userPermissionsQuery.data;\n }\n\n if (requiresUserProfile && (LoadableUtil.isSomeLoading(loadables) || LoadableUtil.hasSomeError(loadables))) {\n return (\n <PageContainer\n ignorePageEvent\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('LoadingUserDataPage')}\n title={t`Loading user data`}\n >\n <ResponseHandler\n loadables={loadables}\n loadingMessage={t`Loading user data`}\n />\n </PageContainer>\n );\n }\n\n return children;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;A,mCAuBaM,KAAwB,EAAE,kBAA6C;CAClF,IAAM,EAAE,SAAMC,EAAe,GACvBC,IAAWC,EAAW,GAEtBC,IAAsBC,SAAA,GAAcX,EAAAA,QAAAA,CAAKQ,CAAO,CAAC,CAAC,OAAO,qBAAqB,CAACA,CAAO,CAAC,GAEvFI,IAAYT,EAAa;EAC7B,SAASO;EACT,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMG,EAAU,QAAQC,CAAsB,CAAC,CAAC,aAAa,EAAE,UAAO,CAAC,EAAA,CAAG;EAC1G,UAAUD,EAAU,QAAQT,CAAkB,CAAC,CAAC,cAAcW,EAAiB,OAAO;EACtF,WAAW;CACb,CAAC,GACKC,IAAuBb,EAAa;EACxC,SAASO;EACT,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMG,EAAU,QAAQC,CAAsB,CAAC,CAAC,0BAA0B,EAAE,UAAO,CAAC,EAAA,CAAG;EACvH,UAAUD,EAAU,QAAQT,CAAkB,CAAC,CAAC,cAAcW,EAAiB,gBAAgB;EAC/F,WAAW;CACb,CAAC,GAEKE,IAAYC,EAAS,CACzBN,GACAI,CACF,CAAC;CA0BD,OAvBIJ,EAAU,SACZ,EAAU,QAAQO,CAAoB,CAAC,CAAC,OAAOP,EAAU,OAEvDI,EAAqB,SACvB,EAAU,QAAQG,CAAoB,CAAC,CAAC,iBAAiBH,EAAqB,OAG5EN,MAAwBU,EAAa,cAAcH,CAAS,KAAKG,EAAa,aAAaH,CAAS,KAEpG,kBAACI,GAAD;EACE,iBAAA;EACA,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,qBAAqB;EACnE,OAAO,CAAC;EAER,UAAA,kBAACC,GAAD;GACa;GACX,gBAAgB,CAAC;EAClB,CAAA;CACY,CAAA,IAIZC;AACT"}
@@ -28,7 +28,7 @@ import { Outlet as N, useLocation as P } from "react-router-dom";
28
28
  import { useSubscribable as F } from "@gen-epix/ui-core/hooks/useSubscribable";
29
29
  import { Spinner as I } from "@gen-epix/ui-core-components/components/Spinner";
30
30
  import { AuthProvider as L } from "react-oidc-context";
31
- //#region src/components/app/RouterRoot/RouterRoot.tsx
31
+ // src/components/app/RouterRoot/RouterRoot.tsx
32
32
  var R = () => {
33
33
  let { t: R } = j(), z = P(), B = i(), V = F(v.resolve(o)), { data: H, error: U, isLoading: W } = c({
34
34
  gcTime: Infinity,
@@ -114,7 +114,6 @@ var R = () => {
114
114
  ] }) }) })
115
115
  });
116
116
  };
117
- //#endregion
118
117
  export { R as RouterRoot };
119
118
 
120
119
  //# sourceMappingURL=index.js.map
@@ -8,7 +8,7 @@ import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
8
  import { useTranslation as p } from "react-i18next";
9
9
  import { withDialog as m } from "@gen-epix/ui-core-components/hoc/withDialog";
10
10
  import { useArray as h } from "@gen-epix/ui-core/hooks/useArray";
11
- //#region src/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.tsx
11
+ // src/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.tsx
12
12
  var g = m(({ onTitleChange: m, openProps: g }) => {
13
13
  let { t: _ } = p(), v = u(() => ["contacts", g.organizationId], [g.organizationId]), y = n({
14
14
  queryFn: async ({ signal: t }) => (await r.resolve(e).retrieveOrganizationContacts({ organization_id: g.organizationId }, { signal: t })).data,
@@ -78,7 +78,6 @@ var g = m(({ onTitleChange: m, openProps: g }) => {
78
78
  maxWidth: "md",
79
79
  testId: "EpiContactDetailsDialog"
80
80
  });
81
- //#endregion
82
81
  export { g as EpiContactDetailsDialog };
83
82
 
84
83
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { Box as e } from "@mui/material";
2
2
  import { useMemo as t } from "react";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import { Select as r } from "@gen-epix/ui-core-form/components/fields/Select";
5
- //#region src/components/filters/BooleanFilterField/BooleanFilterField.tsx
5
+ // src/components/filters/BooleanFilterField/BooleanFilterField.tsx
6
6
  var i = ({ filter: i }) => {
7
7
  let a = t(() => [{
8
8
  label: "Yes",
@@ -17,7 +17,6 @@ var i = ({ filter: i }) => {
17
17
  options: a
18
18
  }) });
19
19
  };
20
- //#endregion
21
20
  export { i as BooleanFilterField };
22
21
 
23
22
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { Box as e } from "@mui/material";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { DateRangePicker as n } from "@gen-epix/ui-core-form/components/fields/DateRangePicker";
4
- //#region src/components/filters/DateFilterField/DateFilterField.tsx
4
+ // src/components/filters/DateFilterField/DateFilterField.tsx
5
5
  var r = ({ filter: r }) => /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t(n, {
6
6
  dateFormat: r.dateFormat,
7
7
  label: r.label,
@@ -9,7 +9,6 @@ var r = ({ filter: r }) => /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t(n,
9
9
  minDate: r.minDate,
10
10
  name: r.id
11
11
  }) });
12
- //#endregion
13
12
  export { r as DateFilterField };
14
13
 
15
14
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { Box as e } from "@mui/material";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { CheckboxGroup as r } from "@gen-epix/ui-core-form/components/fields/CheckboxGroup";
4
4
  import { Autocomplete as i } from "@gen-epix/ui-core-form/components/fields/Autocomplete";
5
- //#region src/components/filters/GeoFilterField/GeoFilterField.tsx
5
+ // src/components/filters/GeoFilterField/GeoFilterField.tsx
6
6
  var a = ({ filter: a }) => /* @__PURE__ */ n(e, { children: [a.options.length <= 5 && /* @__PURE__ */ t(r, {
7
7
  label: a.label,
8
8
  name: a.id,
@@ -14,7 +14,6 @@ var a = ({ filter: a }) => /* @__PURE__ */ n(e, { children: [a.options.length <=
14
14
  options: a.options,
15
15
  shouldSortOptions: !0
16
16
  })] });
17
- //#endregion
18
17
  export { a as GeoFilterField };
19
18
 
20
19
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { Box as e } from "@mui/material";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { CheckboxGroup as r } from "@gen-epix/ui-core-form/components/fields/CheckboxGroup";
4
4
  import { Autocomplete as i } from "@gen-epix/ui-core-form/components/fields/Autocomplete";
5
- //#region src/components/filters/MultiSelectFilterField/MultiSelectFilterField.tsx
5
+ // src/components/filters/MultiSelectFilterField/MultiSelectFilterField.tsx
6
6
  var a = ({ filter: a }) => /* @__PURE__ */ n(e, { children: [a.options.length <= a.maxNumOptionsExpanded && /* @__PURE__ */ t(r, {
7
7
  label: a.label,
8
8
  name: a.id,
@@ -13,7 +13,6 @@ var a = ({ filter: a }) => /* @__PURE__ */ n(e, { children: [a.options.length <=
13
13
  name: a.id,
14
14
  options: a.options
15
15
  })] });
16
- //#endregion
17
16
  export { a as MultiSelectFilterField };
18
17
 
19
18
  //# sourceMappingURL=index.js.map
@@ -1,14 +1,13 @@
1
1
  import { Box as e } from "@mui/material";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { NumberRangeInput as n } from "@gen-epix/ui-core-form/components/fields/NumberRangeInput";
4
- //#region src/components/filters/NumberRangeFilterField/NumberRangeFilterField.tsx
4
+ // src/components/filters/NumberRangeFilterField/NumberRangeFilterField.tsx
5
5
  var r = ({ filter: r }) => /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t(n, {
6
6
  label: r.label,
7
7
  max: r.max,
8
8
  min: r.min,
9
9
  name: r.id
10
10
  }) });
11
- //#endregion
12
11
  export { r as NumberRangeFilterField };
13
12
 
14
13
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,11 @@
1
1
  import { Box as e } from "@mui/material";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { TextField as n } from "@gen-epix/ui-core-form/components/fields/TextField";
4
- //#region src/components/filters/TextFilterField/TextFilterField.tsx
4
+ // src/components/filters/TextFilterField/TextFilterField.tsx
5
5
  var r = ({ filter: r }) => /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t(n, {
6
6
  label: r.label,
7
7
  name: r.id
8
8
  }) });
9
- //#endregion
10
9
  export { r as TextFilterField };
11
10
 
12
11
  //# sourceMappingURL=index.js.map
@@ -46,7 +46,7 @@ import ge from "@mui/icons-material/AccountCircle";
46
46
  import _e from "@mui/icons-material/Logout";
47
47
  import ve from "@mui/icons-material/Key";
48
48
  import ye from "@mui/icons-material/ChangeCircle";
49
- //#region src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx
49
+ // src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx
50
50
  var be = B(ae)(({ theme: e }) => ({
51
51
  "&:hover": { textDecoration: "underline" },
52
52
  color: e.palette.secondary.contrastText,
@@ -672,7 +672,6 @@ var be = B(ae)(({ theme: e }) => ({
672
672
  })
673
673
  });
674
674
  };
675
- //#endregion
676
675
  export { Pe as ApplicationBar };
677
676
 
678
677
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import { useEffect as t } from "react";
3
3
  import { useTranslation as n } from "react-i18next";
4
4
  import { TestIdUtil as r } from "@gen-epix/ui-core/utils/TestIdUtil";
5
5
  import { withDialog as i } from "@gen-epix/ui-core-components/hoc/withDialog";
6
- //#region src/components/ui/ConsentDialog/ConsentDialog.tsx
6
+ // src/components/ui/ConsentDialog/ConsentDialog.tsx
7
7
  var a = i(({ onActionsChange: i, onConsent: a, onTitleChange: o }) => {
8
8
  let { t: s } = n(), c = e();
9
9
  return t(() => {
@@ -35,7 +35,6 @@ var a = i(({ onActionsChange: i, onConsent: a, onTitleChange: o }) => {
35
35
  noCloseButton: !0,
36
36
  testId: "ConsentDialog"
37
37
  });
38
- //#endregion
39
38
  export { a as ConsentDialog };
40
39
 
41
40
  //# sourceMappingURL=index.js.map
@@ -12,7 +12,7 @@ import { useCallback as f, useEffect as p, useMemo as m } from "react";
12
12
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
13
13
  import { useTranslation as _ } from "react-i18next";
14
14
  import { isRouteErrorResponse as v } from "react-router-dom";
15
- //#region src/components/ui/GenericErrorMessage/GenericErrorMessage.tsx
15
+ // src/components/ui/GenericErrorMessage/GenericErrorMessage.tsx
16
16
  var y = ({ error: y, shouldHideActionButtons: b }) => {
17
17
  let { t: x } = _(), S = r();
18
18
  p(() => {
@@ -86,7 +86,6 @@ var y = ({ error: y, shouldHideActionButtons: b }) => {
86
86
  })
87
87
  ] });
88
88
  };
89
- //#endregion
90
89
  export { y as GenericErrorMessage };
91
90
 
92
91
  //# sourceMappingURL=index.js.map
@@ -15,7 +15,7 @@ import { TestIdUtil as O } from "@gen-epix/ui-core/utils/TestIdUtil";
15
15
  import { withDialog as k } from "@gen-epix/ui-core-components/hoc/withDialog";
16
16
  import A from "@mui/icons-material/Folder";
17
17
  import j from "@mui/icons-material/OpenInNew";
18
- //#region src/components/ui/LicensesDialog/LicensesDialog.tsx
18
+ // src/components/ui/LicensesDialog/LicensesDialog.tsx
19
19
  var M = k(({ dialogContentRef: k, onActionsChange: M, onClose: N, onTitleChange: P }) => {
20
20
  let { t: F } = D(), I = t(), [L, R] = C(null), { LicenseInformation: z } = I, { data: B, error: V, isLoading: H } = r({
21
21
  queryFn: async ({ signal: e }) => (await c.get("/licenses.json", { signal: e })).data,
@@ -108,7 +108,6 @@ var M = k(({ dialogContentRef: k, onActionsChange: M, onClose: N, onTitleChange:
108
108
  noCloseButton: !1,
109
109
  testId: "LicensesDialog"
110
110
  });
111
- //#endregion
112
111
  export { M as LicensesDialog };
113
112
 
114
113
  //# sourceMappingURL=index.js.map
@@ -6,7 +6,7 @@ import { useEffect as l, useMemo as u } from "react";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  import { useTranslation as p } from "react-i18next";
8
8
  import { withDialog as m } from "@gen-epix/ui-core-components/hoc/withDialog";
9
- //#region src/components/ui/MyPermissionsDialog/MyPermissionsDialog.tsx
9
+ // src/components/ui/MyPermissionsDialog/MyPermissionsDialog.tsx
10
10
  var h = m(({ onTitleChange: m }) => {
11
11
  let { t: h } = p();
12
12
  l(() => {
@@ -36,7 +36,6 @@ var h = m(({ onTitleChange: m }) => {
36
36
  maxWidth: "md",
37
37
  testId: "MyPermissionsDialog"
38
38
  });
39
- //#endregion
40
39
  export { h as MyPermissionsDialog };
41
40
 
42
41
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { styled as e } from "@mui/material";
2
2
  import { Fragment as t, jsx as n } from "react/jsx-runtime";
3
3
  import { NavLink as r, resolvePath as i, useMatch as a } from "react-router-dom";
4
- //#region src/components/ui/NavLink/NavLink.tsx
4
+ // src/components/ui/NavLink/NavLink.tsx
5
5
  var o = e(r)(({ theme: e }) => ({
6
6
  "&:hover": { textDecoration: "underline" },
7
7
  "&.active": { color: e.palette.secondary.main },
@@ -17,7 +17,6 @@ var o = e(r)(({ theme: e }) => ({
17
17
  })
18
18
  });
19
19
  };
20
- //#endregion
21
20
  export { s as NavLink };
22
21
 
23
22
  //# sourceMappingURL=index.js.map