@beinformed/react 1.0.0-beta.1 → 1.0.0-beta.3

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 (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/chunk-4IDEBSD5.js +2 -0
  3. package/dist/chunk-4IDEBSD5.js.map +1 -0
  4. package/dist/chunk-6AKWSGWH.js +2 -0
  5. package/dist/chunk-6AKWSGWH.js.map +1 -0
  6. package/dist/{chunk-LYHN5GC6.js → chunk-6EK3TAMN.js} +2 -2
  7. package/dist/{chunk-3UHZ6GBP.js → chunk-BV77KA4Y.js} +2 -2
  8. package/dist/{chunk-GHKA2XFO.js → chunk-ITSZQHGD.js} +2 -2
  9. package/dist/chunk-ITSZQHGD.js.map +1 -0
  10. package/dist/chunk-JWOBKHOJ.js +2 -0
  11. package/dist/chunk-JWOBKHOJ.js.map +1 -0
  12. package/dist/{chunk-X6L6BWD4.js → chunk-KZB56W7Q.js} +2 -2
  13. package/dist/chunk-KZB56W7Q.js.map +1 -0
  14. package/dist/{chunk-LJM2ADG6.js → chunk-KZLW2NHD.js} +2 -2
  15. package/dist/{chunk-7LGDJBGK.js → chunk-OQK6SSUD.js} +2 -2
  16. package/dist/{chunk-ALGSLJJI.js → chunk-SPV6MD7J.js} +2 -2
  17. package/dist/{chunk-ZNJONDQ6.js → chunk-TAWZ2VIM.js} +2 -2
  18. package/dist/chunk-VXOYOMNN.js +2 -0
  19. package/dist/chunk-VXOYOMNN.js.map +1 -0
  20. package/dist/chunk-WEJGEXAP.js +2 -0
  21. package/dist/chunk-WEJGEXAP.js.map +1 -0
  22. package/dist/client/index.cjs +1 -1
  23. package/dist/client/index.cjs.map +1 -1
  24. package/dist/client/index.js +1 -1
  25. package/dist/hooks/index.cjs +1 -1
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.cts +79 -8
  28. package/dist/hooks/index.d.ts +79 -8
  29. package/dist/hooks/index.js +1 -1
  30. package/dist/i18n/index.cjs +1 -1
  31. package/dist/i18n/index.cjs.map +1 -1
  32. package/dist/i18n/index.d.cts +20 -2
  33. package/dist/i18n/index.d.ts +20 -2
  34. package/dist/i18n/index.js +1 -1
  35. package/dist/index.cjs +6 -6
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +4 -4
  38. package/dist/index.d.ts +4 -4
  39. package/dist/index.js +1 -1
  40. package/dist/index.js.map +1 -1
  41. package/dist/redux/index.cjs +1 -1
  42. package/dist/redux/index.cjs.map +1 -1
  43. package/dist/redux/index.d.cts +3 -3
  44. package/dist/redux/index.d.ts +3 -3
  45. package/dist/redux/index.js +1 -1
  46. package/dist/server/index.cjs +1 -1
  47. package/dist/server/index.cjs.map +1 -1
  48. package/dist/server/index.js +1 -1
  49. package/dist/theme/index.cjs +1 -1
  50. package/dist/theme/index.cjs.map +1 -1
  51. package/dist/theme/index.js +1 -1
  52. package/dist/utils/index.cjs +1 -1
  53. package/dist/utils/index.cjs.map +1 -1
  54. package/dist/utils/index.d.cts +6 -1
  55. package/dist/utils/index.d.ts +6 -1
  56. package/dist/utils/index.js +1 -1
  57. package/package.json +8 -8
  58. package/dist/chunk-5MOCT43G.js +0 -2
  59. package/dist/chunk-5MOCT43G.js.map +0 -1
  60. package/dist/chunk-AMFWIR2R.js +0 -2
  61. package/dist/chunk-AMFWIR2R.js.map +0 -1
  62. package/dist/chunk-GHKA2XFO.js.map +0 -1
  63. package/dist/chunk-JYAETKRB.js +0 -2
  64. package/dist/chunk-JYAETKRB.js.map +0 -1
  65. package/dist/chunk-LUXTQYD2.js +0 -2
  66. package/dist/chunk-LUXTQYD2.js.map +0 -1
  67. package/dist/chunk-TRPPQFNA.js +0 -2
  68. package/dist/chunk-TRPPQFNA.js.map +0 -1
  69. package/dist/chunk-TYEAR2B7.js +0 -2
  70. package/dist/chunk-TYEAR2B7.js.map +0 -1
  71. package/dist/chunk-X6L6BWD4.js.map +0 -1
  72. /package/dist/{chunk-LYHN5GC6.js.map → chunk-6EK3TAMN.js.map} +0 -0
  73. /package/dist/{chunk-3UHZ6GBP.js.map → chunk-BV77KA4Y.js.map} +0 -0
  74. /package/dist/{chunk-LJM2ADG6.js.map → chunk-KZLW2NHD.js.map} +0 -0
  75. /package/dist/{chunk-7LGDJBGK.js.map → chunk-OQK6SSUD.js.map} +0 -0
  76. /package/dist/{chunk-ALGSLJJI.js.map → chunk-SPV6MD7J.js.map} +0 -0
  77. /package/dist/{chunk-ZNJONDQ6.js.map → chunk-TAWZ2VIM.js.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import * as _beinformed_ui_models from '@beinformed/ui/models';
2
- import { ListModel, DetailModel, TabModel, SourceReferenceCollection, ContentModel, Href, ListDetailModel, FilterCollection, IFilter, AttributeModel, ModelCatalogModel, ConceptIndexModel, ConceptDetailModel, ContentIndexModel, ContentTOCModel, ContentTypeModel, ModularUIModel, ApplicationModel, CaseViewModel, GroupingPanelModel, UserProfileModel, ErrorResponse, CaseSearchModel } from '@beinformed/ui/models';
2
+ import { ListModel, DetailModel, TabModel, SourceReferenceCollection, ContentModel, Href, ListDetailModel, FilterCollection, IFilter, AttributeModel, LinkModel, LookupOptionsModel, ModelCatalogModel, ConceptIndexModel, ConceptDetailModel, ContentIndexModel, ContentTOCModel, ContentTypeModel, ResourceModel, ApplicationModel, ModularUIModel, CaseViewModel, GroupingPanelModel, UserProfileModel, ErrorResponse, CaseSearchModel } from '@beinformed/ui/models';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { AuthenticationType, ModularUIResponse, ModularUIRequest } from '@beinformed/ui/modularui';
5
5
  import { EffectCallback, DependencyList } from 'react';
6
6
  export { U as UpdateFormOptions, b as useAttributeUpdate, u as useForm, a as useFormNavigation, c as useRepeatableAttributeSet } from '../useForm-BWwXFuv5.cjs';
7
- import * as lodash from 'lodash';
8
7
  import { MessageParameters, ISO_DATE } from '@beinformed/ui/types';
8
+ import { b as Locales, B as ModelEntry, M as MessageObject, S as ShowNotificationArguments, P as PreferencesState, T as ProgressIndicatorState, V as RouterLocation, $ as RootState } from '../styled-components.d-C19eFejP.cjs';
9
+ import * as lodash from 'lodash';
9
10
  import { ModularUIRequestOptions } from '@beinformed/ui/utils';
10
- import { B as ModelEntry, M as MessageObject, S as ShowNotificationArguments, P as PreferencesState, T as ProgressIndicatorState, V as RouterLocation, $ as RootState } from '../styled-components.d-C19eFejP.cjs';
11
11
  import 'history';
12
12
  import 'redux';
13
13
  import 'immer';
@@ -146,10 +146,17 @@ declare function useDeepCompareEffect(callback: EffectCallback, dependencies: De
146
146
  declare const useMessage: (id: string, defaultMessage?: string, placeholders?: MessageParameters | undefined) => string;
147
147
  declare const useTranslate: () => ((id: string, defaultMessage?: string, placeholders?: MessageParameters | undefined) => string) & lodash.MemoizedFunction;
148
148
  declare const useLocale: () => string;
149
+ declare const useLocales: () => Locales;
149
150
  /**
150
151
  * Retrieve all available locale codes
151
152
  */
152
153
  declare const useLocaleCodes: () => string[];
154
+ /**
155
+ * A hook that returns a memoized function to update the application locale.
156
+ *
157
+ * @returns {(locale: string) => void} A memoized function to update the locale.
158
+ */
159
+ declare const useUpdateLocale: () => (locale: string) => void;
153
160
 
154
161
  /**
155
162
  * Configuration options for low-level modular UI requests.
@@ -215,6 +222,15 @@ declare const useListNavigation: ({ syncLocation, historyAction, }?: ListNavigat
215
222
  removeFilter: (list: ListModel, filter: IFilter) => void;
216
223
  };
217
224
 
225
+ interface UseLookupHook {
226
+ lookupOptions: LookupOptionsModel | null;
227
+ lookupLoading: boolean;
228
+ }
229
+ /**
230
+ * Lookup options call
231
+ */
232
+ declare const useLookup: (lookupLink: LinkModel, filterInput?: string, minLength?: number, debounceMs?: number) => UseLookupHook;
233
+
218
234
  type ModalHook = (modalId: string) => {
219
235
  key: string | null;
220
236
  size?: string | null;
@@ -256,6 +272,61 @@ declare const useEntryDate: () => {
256
272
  };
257
273
  };
258
274
 
275
+ /**
276
+ * Returns all models in the store that are instances of the provided class
277
+ * and match the current application locale.
278
+ */
279
+ declare const useAllModelsByInstance: <T extends new (...args: never[]) => ResourceModel>(instance: T) => InstanceType<T>[];
280
+ /**
281
+ * Returns the first model found in the store that is an instance of the
282
+ * provided class and matches the current locale.
283
+ */
284
+ declare const useFirstModelByInstance: <T extends new (...args: never[]) => ResourceModel>(instance: T) => InstanceType<T> | undefined;
285
+ /**
286
+ * Returns the model instance that is currently "active" based on the URL path.
287
+ * It checks if the current router location starts with the model's selfhref path.
288
+ */
289
+ declare const useActiveModelByInstance: <T extends new (...args: never[]) => ResourceModel>(instance: T) => InstanceType<T> | undefined;
290
+ /**
291
+ * Retrieves a specific model from the store based on its unique Href.
292
+ * @param {Href | string} href - The Href object or string path of the model.
293
+ * @returns {ModularUIModel | null} The model matching the href or null.
294
+ */
295
+ declare const useModelByHref: (href: Href | string) => _beinformed_ui_models.ModularUIModel | undefined;
296
+ /**
297
+ * Returns the unique store key (identifier) for a model associated with a specific Href.
298
+ * @param {Href | string} href - The Href object or string path.
299
+ * @returns {string | null | void} The internal key of the model.
300
+ */
301
+ declare const useKeyByHref: (href: Href | string) => string | undefined;
302
+ /**
303
+ * Returns all internal keys found in the store for a specific Href.
304
+ * Useful if multiple versions/entries exist for the same path.
305
+ * @param {Href | string} href - The Href object or string path.
306
+ * @returns {Array<string>} An array of keys.
307
+ */
308
+ declare const useAllKeysByHref: (href: Href | string) => string[];
309
+ /**
310
+ * Returns a list of simplified model info (key, href, label, type) for all
311
+ * models currently active in the navigation context (breadcrumbs).
312
+ * @returns {Array<{key: string, href: Href, label: string, type: string}>}
313
+ */
314
+ declare const useActiveModels: () => {
315
+ key: string;
316
+ href: Href | undefined;
317
+ label: string;
318
+ type: string;
319
+ }[];
320
+ /**
321
+ * Returns all models in the store that have a status of MODULARUI_STATUS.FINISHED.
322
+ * @returns {Array<ModularUIModel>} An array of fully loaded models.
323
+ */
324
+ declare const useAllFinishedModels: () => (_beinformed_ui_models.ModularUIModel | undefined)[];
325
+ /**
326
+ * Returns the current active application, without retrying to request it.
327
+ */
328
+ declare const useCurrentApplication: () => ApplicationModel | null;
329
+
259
330
  type ReloadCallback = (model: ModularUIModel | undefined) => boolean;
260
331
  type UseModels = () => {
261
332
  reload: (model: ModularUIModel, options?: Record<string, unknown>) => void;
@@ -309,10 +380,7 @@ declare const useNotification: () => {
309
380
  messageType: string | undefined;
310
381
  message: MessageObject | undefined;
311
382
  error: ErrorResponse | undefined;
312
- dismiss: () => {
313
- payload: undefined;
314
- type: "DISMISS_NOTIFICATION";
315
- };
383
+ dismiss: () => void;
316
384
  };
317
385
  declare const useErrorNotification: () => (message: MessageObject, error?: ErrorResponse) => Promise<_reduxjs_toolkit.PayloadAction<void, string, {
318
386
  arg: ShowNotificationArguments;
@@ -403,4 +471,7 @@ declare const useNavigation: () => {
403
471
  };
404
472
  };
405
473
 
406
- export { type HookOptions, type SearchFilter, type UseModularUIBasicOptions, useApplication, useCaseView, useCompleteSource, useConceptDetail, useConceptIndex, useConceptSearch, useContent, useContentFromSourceReferences, useContentIndex, useContentSearch, useContentTOC, useContentType, useDeepCompareEffect, useDetailPanel, useEntryDate, useErrorNotification, useGroupingPanel, useList, useListDetail, useListNavigation, useListOrDetail, useLocale, useLocaleCodes, useLocation, useLocationKey, useLogin, useLogout, useMessage, useModal, useModelCatalog, useModels, useModularUI, useModularUIBasic, useModularUIKey, useModularUIRequest, useNavigation, useNotification, usePanel, usePathname, usePreference, useProgressIndicator, useProgressIndicatorState, useQuerystring, useRelatedConcepts, useReload, useRetrieveFormsOnModel, useTab, useTranslate, useUserProfile };
474
+ declare const useQuicksearch: (href: string | Href, options?: HookOptions) => CaseSearchModel | undefined;
475
+ declare const useSearch: (href: string | Href, options?: HookOptions) => CaseSearchModel | undefined;
476
+
477
+ export { type HookOptions, type SearchFilter, type UseModularUIBasicOptions, useActiveModelByInstance, useActiveModels, useAllFinishedModels, useAllKeysByHref, useAllModelsByInstance, useApplication, useCaseView, useCompleteSource, useConceptDetail, useConceptIndex, useConceptSearch, useContent, useContentFromSourceReferences, useContentIndex, useContentSearch, useContentTOC, useContentType, useCurrentApplication, useDeepCompareEffect, useDetailPanel, useEntryDate, useErrorNotification, useFirstModelByInstance, useGroupingPanel, useKeyByHref, useList, useListDetail, useListNavigation, useListOrDetail, useLocale, useLocaleCodes, useLocales, useLocation, useLocationKey, useLogin, useLogout, useLookup, useMessage, useModal, useModelByHref, useModelCatalog, useModels, useModularUI, useModularUIBasic, useModularUIKey, useModularUIRequest, useNavigation, useNotification, usePanel, usePathname, usePreference, useProgressIndicator, useProgressIndicatorState, useQuerystring, useQuicksearch, useRelatedConcepts, useReload, useRetrieveFormsOnModel, useSearch, useTab, useTranslate, useUpdateLocale, useUserProfile };
@@ -1,13 +1,13 @@
1
1
  import * as _beinformed_ui_models from '@beinformed/ui/models';
2
- import { ListModel, DetailModel, TabModel, SourceReferenceCollection, ContentModel, Href, ListDetailModel, FilterCollection, IFilter, AttributeModel, ModelCatalogModel, ConceptIndexModel, ConceptDetailModel, ContentIndexModel, ContentTOCModel, ContentTypeModel, ModularUIModel, ApplicationModel, CaseViewModel, GroupingPanelModel, UserProfileModel, ErrorResponse, CaseSearchModel } from '@beinformed/ui/models';
2
+ import { ListModel, DetailModel, TabModel, SourceReferenceCollection, ContentModel, Href, ListDetailModel, FilterCollection, IFilter, AttributeModel, LinkModel, LookupOptionsModel, ModelCatalogModel, ConceptIndexModel, ConceptDetailModel, ContentIndexModel, ContentTOCModel, ContentTypeModel, ResourceModel, ApplicationModel, ModularUIModel, CaseViewModel, GroupingPanelModel, UserProfileModel, ErrorResponse, CaseSearchModel } from '@beinformed/ui/models';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { AuthenticationType, ModularUIResponse, ModularUIRequest } from '@beinformed/ui/modularui';
5
5
  import { EffectCallback, DependencyList } from 'react';
6
6
  export { U as UpdateFormOptions, b as useAttributeUpdate, u as useForm, a as useFormNavigation, c as useRepeatableAttributeSet } from '../useForm-DqaU9T78.js';
7
- import * as lodash from 'lodash';
8
7
  import { MessageParameters, ISO_DATE } from '@beinformed/ui/types';
8
+ import { b as Locales, B as ModelEntry, M as MessageObject, S as ShowNotificationArguments, P as PreferencesState, T as ProgressIndicatorState, V as RouterLocation, $ as RootState } from '../styled-components.d-C19eFejP.js';
9
+ import * as lodash from 'lodash';
9
10
  import { ModularUIRequestOptions } from '@beinformed/ui/utils';
10
- import { B as ModelEntry, M as MessageObject, S as ShowNotificationArguments, P as PreferencesState, T as ProgressIndicatorState, V as RouterLocation, $ as RootState } from '../styled-components.d-C19eFejP.js';
11
11
  import 'history';
12
12
  import 'redux';
13
13
  import 'immer';
@@ -146,10 +146,17 @@ declare function useDeepCompareEffect(callback: EffectCallback, dependencies: De
146
146
  declare const useMessage: (id: string, defaultMessage?: string, placeholders?: MessageParameters | undefined) => string;
147
147
  declare const useTranslate: () => ((id: string, defaultMessage?: string, placeholders?: MessageParameters | undefined) => string) & lodash.MemoizedFunction;
148
148
  declare const useLocale: () => string;
149
+ declare const useLocales: () => Locales;
149
150
  /**
150
151
  * Retrieve all available locale codes
151
152
  */
152
153
  declare const useLocaleCodes: () => string[];
154
+ /**
155
+ * A hook that returns a memoized function to update the application locale.
156
+ *
157
+ * @returns {(locale: string) => void} A memoized function to update the locale.
158
+ */
159
+ declare const useUpdateLocale: () => (locale: string) => void;
153
160
 
154
161
  /**
155
162
  * Configuration options for low-level modular UI requests.
@@ -215,6 +222,15 @@ declare const useListNavigation: ({ syncLocation, historyAction, }?: ListNavigat
215
222
  removeFilter: (list: ListModel, filter: IFilter) => void;
216
223
  };
217
224
 
225
+ interface UseLookupHook {
226
+ lookupOptions: LookupOptionsModel | null;
227
+ lookupLoading: boolean;
228
+ }
229
+ /**
230
+ * Lookup options call
231
+ */
232
+ declare const useLookup: (lookupLink: LinkModel, filterInput?: string, minLength?: number, debounceMs?: number) => UseLookupHook;
233
+
218
234
  type ModalHook = (modalId: string) => {
219
235
  key: string | null;
220
236
  size?: string | null;
@@ -256,6 +272,61 @@ declare const useEntryDate: () => {
256
272
  };
257
273
  };
258
274
 
275
+ /**
276
+ * Returns all models in the store that are instances of the provided class
277
+ * and match the current application locale.
278
+ */
279
+ declare const useAllModelsByInstance: <T extends new (...args: never[]) => ResourceModel>(instance: T) => InstanceType<T>[];
280
+ /**
281
+ * Returns the first model found in the store that is an instance of the
282
+ * provided class and matches the current locale.
283
+ */
284
+ declare const useFirstModelByInstance: <T extends new (...args: never[]) => ResourceModel>(instance: T) => InstanceType<T> | undefined;
285
+ /**
286
+ * Returns the model instance that is currently "active" based on the URL path.
287
+ * It checks if the current router location starts with the model's selfhref path.
288
+ */
289
+ declare const useActiveModelByInstance: <T extends new (...args: never[]) => ResourceModel>(instance: T) => InstanceType<T> | undefined;
290
+ /**
291
+ * Retrieves a specific model from the store based on its unique Href.
292
+ * @param {Href | string} href - The Href object or string path of the model.
293
+ * @returns {ModularUIModel | null} The model matching the href or null.
294
+ */
295
+ declare const useModelByHref: (href: Href | string) => _beinformed_ui_models.ModularUIModel | undefined;
296
+ /**
297
+ * Returns the unique store key (identifier) for a model associated with a specific Href.
298
+ * @param {Href | string} href - The Href object or string path.
299
+ * @returns {string | null | void} The internal key of the model.
300
+ */
301
+ declare const useKeyByHref: (href: Href | string) => string | undefined;
302
+ /**
303
+ * Returns all internal keys found in the store for a specific Href.
304
+ * Useful if multiple versions/entries exist for the same path.
305
+ * @param {Href | string} href - The Href object or string path.
306
+ * @returns {Array<string>} An array of keys.
307
+ */
308
+ declare const useAllKeysByHref: (href: Href | string) => string[];
309
+ /**
310
+ * Returns a list of simplified model info (key, href, label, type) for all
311
+ * models currently active in the navigation context (breadcrumbs).
312
+ * @returns {Array<{key: string, href: Href, label: string, type: string}>}
313
+ */
314
+ declare const useActiveModels: () => {
315
+ key: string;
316
+ href: Href | undefined;
317
+ label: string;
318
+ type: string;
319
+ }[];
320
+ /**
321
+ * Returns all models in the store that have a status of MODULARUI_STATUS.FINISHED.
322
+ * @returns {Array<ModularUIModel>} An array of fully loaded models.
323
+ */
324
+ declare const useAllFinishedModels: () => (_beinformed_ui_models.ModularUIModel | undefined)[];
325
+ /**
326
+ * Returns the current active application, without retrying to request it.
327
+ */
328
+ declare const useCurrentApplication: () => ApplicationModel | null;
329
+
259
330
  type ReloadCallback = (model: ModularUIModel | undefined) => boolean;
260
331
  type UseModels = () => {
261
332
  reload: (model: ModularUIModel, options?: Record<string, unknown>) => void;
@@ -309,10 +380,7 @@ declare const useNotification: () => {
309
380
  messageType: string | undefined;
310
381
  message: MessageObject | undefined;
311
382
  error: ErrorResponse | undefined;
312
- dismiss: () => {
313
- payload: undefined;
314
- type: "DISMISS_NOTIFICATION";
315
- };
383
+ dismiss: () => void;
316
384
  };
317
385
  declare const useErrorNotification: () => (message: MessageObject, error?: ErrorResponse) => Promise<_reduxjs_toolkit.PayloadAction<void, string, {
318
386
  arg: ShowNotificationArguments;
@@ -403,4 +471,7 @@ declare const useNavigation: () => {
403
471
  };
404
472
  };
405
473
 
406
- export { type HookOptions, type SearchFilter, type UseModularUIBasicOptions, useApplication, useCaseView, useCompleteSource, useConceptDetail, useConceptIndex, useConceptSearch, useContent, useContentFromSourceReferences, useContentIndex, useContentSearch, useContentTOC, useContentType, useDeepCompareEffect, useDetailPanel, useEntryDate, useErrorNotification, useGroupingPanel, useList, useListDetail, useListNavigation, useListOrDetail, useLocale, useLocaleCodes, useLocation, useLocationKey, useLogin, useLogout, useMessage, useModal, useModelCatalog, useModels, useModularUI, useModularUIBasic, useModularUIKey, useModularUIRequest, useNavigation, useNotification, usePanel, usePathname, usePreference, useProgressIndicator, useProgressIndicatorState, useQuerystring, useRelatedConcepts, useReload, useRetrieveFormsOnModel, useTab, useTranslate, useUserProfile };
474
+ declare const useQuicksearch: (href: string | Href, options?: HookOptions) => CaseSearchModel | undefined;
475
+ declare const useSearch: (href: string | Href, options?: HookOptions) => CaseSearchModel | undefined;
476
+
477
+ export { type HookOptions, type SearchFilter, type UseModularUIBasicOptions, useActiveModelByInstance, useActiveModels, useAllFinishedModels, useAllKeysByHref, useAllModelsByInstance, useApplication, useCaseView, useCompleteSource, useConceptDetail, useConceptIndex, useConceptSearch, useContent, useContentFromSourceReferences, useContentIndex, useContentSearch, useContentTOC, useContentType, useCurrentApplication, useDeepCompareEffect, useDetailPanel, useEntryDate, useErrorNotification, useFirstModelByInstance, useGroupingPanel, useKeyByHref, useList, useListDetail, useListNavigation, useListOrDetail, useLocale, useLocaleCodes, useLocales, useLocation, useLocationKey, useLogin, useLogout, useLookup, useMessage, useModal, useModelByHref, useModelCatalog, useModels, useModularUI, useModularUIBasic, useModularUIKey, useModularUIRequest, useNavigation, useNotification, usePanel, usePathname, usePreference, useProgressIndicator, useProgressIndicatorState, useQuerystring, useQuicksearch, useRelatedConcepts, useReload, useRetrieveFormsOnModel, useSearch, useTab, useTranslate, useUpdateLocale, useUserProfile };
@@ -1,2 +1,2 @@
1
- import{A as E,B as F,C as G,D as H,E as I,F as J,G as K,H as L,I as M,J as N,K as O,L as P,M as Q,N as R,O as S,P as T,Q as U,R as V,S as W,T as X,U as Y,V as Z,W as _,a,b,c,d,e,f,g,h,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u,r as v,s as w,t as x,u as y,v as z,w as A,x as B,y as C,z as D}from"../chunk-LUXTQYD2.js";import{a as i,b as j,c as k,d as l}from"../chunk-5MOCT43G.js";import"../chunk-ZNJONDQ6.js";import"../chunk-GHKA2XFO.js";import"../chunk-JYAETKRB.js";import"../chunk-7JMMW2FM.js";import"../chunk-TDYPCNQI.js";import"../chunk-L7DO7AZT.js";import"../chunk-HTR32BUX.js";import"../chunk-FW4363Y4.js";export{q as useApplication,D as useAttributeUpdate,s as useCaseView,Q as useCompleteSource,M as useConceptDetail,L as useConceptIndex,T as useConceptSearch,P as useContent,A as useContentFromSourceReferences,N as useContentIndex,U as useContentSearch,O as useContentTOC,R as useContentType,h as useDeepCompareEffect,u as useDetailPanel,V as useEntryDate,Y as useErrorNotification,B as useForm,C as useFormNavigation,t as useGroupingPanel,F as useList,H as useListDetail,I as useListNavigation,G as useListOrDetail,k as useLocale,l as useLocaleCodes,c as useLocation,d as useLocationKey,w as useLogin,x as useLogout,i as useMessage,J as useModal,K as useModelCatalog,W as useModels,n as useModularUI,o as useModularUIBasic,m as useModularUIKey,a as useModularUIRequest,g as useNavigation,X as useNotification,Z as usePanel,f as usePathname,_ as usePreference,y as useProgressIndicator,z as useProgressIndicatorState,e as useQuerystring,S as useRelatedConcepts,p as useReload,E as useRepeatableAttributeSet,b as useRetrieveFormsOnModel,r as useTab,j as useTranslate,v as useUserProfile};
1
+ import{$ as fa,A as G,B as H,C as I,D as J,E as K,F as L,G as M,H as N,I as O,J as P,K as Q,L as R,M as S,N as T,O as U,P as V,Q as W,R as X,S as Y,T as Z,U as _,V as $,W as aa,X as ba,Y as ca,Z as da,_ as ea,a,aa as ga,b,ba as ha,c,ca as ia,d,da as ja,e,ea as ka,f,fa as la,g,ga as ma,h,i as o,j as p,k as q,l as r,m as s,n as t,o as u,p as v,q as w,r as x,s as y,t as z,u as A,v as B,w as C,x as D,y as E,z as F}from"../chunk-VXOYOMNN.js";import{a as i,b as j,c as k,d as l,e as m,f as n}from"../chunk-JWOBKHOJ.js";import"../chunk-TAWZ2VIM.js";import"../chunk-ITSZQHGD.js";import"../chunk-KZB56W7Q.js";import"../chunk-7JMMW2FM.js";import"../chunk-TDYPCNQI.js";import"../chunk-L7DO7AZT.js";import"../chunk-HTR32BUX.js";import"../chunk-FW4363Y4.js";export{$ as useActiveModelByInstance,da as useActiveModels,ea as useAllFinishedModels,ca as useAllKeysByHref,Z as useAllModelsByInstance,s as useApplication,F as useAttributeUpdate,u as useCaseView,T as useCompleteSource,P as useConceptDetail,O as useConceptIndex,W as useConceptSearch,S as useContent,C as useContentFromSourceReferences,Q as useContentIndex,X as useContentSearch,R as useContentTOC,U as useContentType,fa as useCurrentApplication,h as useDeepCompareEffect,w as useDetailPanel,Y as useEntryDate,ia as useErrorNotification,_ as useFirstModelByInstance,D as useForm,E as useFormNavigation,v as useGroupingPanel,ba as useKeyByHref,H as useList,J as useListDetail,K as useListNavigation,I as useListOrDetail,k as useLocale,m as useLocaleCodes,l as useLocales,c as useLocation,d as useLocationKey,y as useLogin,z as useLogout,L as useLookup,i as useMessage,M as useModal,aa as useModelByHref,N as useModelCatalog,ga as useModels,p as useModularUI,q as useModularUIBasic,o as useModularUIKey,a as useModularUIRequest,g as useNavigation,ha as useNotification,ja as usePanel,f as usePathname,ka as usePreference,A as useProgressIndicator,B as useProgressIndicatorState,e as useQuerystring,la as useQuicksearch,V as useRelatedConcepts,r as useReload,G as useRepeatableAttributeSet,b as useRetrieveFormsOnModel,ma as useSearch,t as useTab,j as useTranslate,n as useUpdateLocale,x as useUserProfile};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var Tt=Object.create;var x=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var $t=Object.getOwnPropertyNames;var Lt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Rt=(t,e)=>{for(var a in e)x(t,a,{get:e[a],enumerable:!0})},F=(t,e,a,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $t(e))!jt.call(t,o)&&o!==a&&x(t,o,{get:()=>e[o],enumerable:!(r=At(e,o))||r.enumerable});return t};var I=(t,e,a)=>(a=t!=null?Tt(Lt(t)):{},F(e||!t||!t.__esModule?x(a,"default",{value:t,enumerable:!0}):a,t)),Ot=t=>F(x({},"__esModule",{value:!0}),t);var J=n((nn,K)=>{"use strict";var Ft=typeof global=="object"&&global&&global.Object===Object&&global;K.exports=Ft});var k=n((on,W)=>{"use strict";var _t=J(),qt=typeof self=="object"&&self&&self.Object===Object&&self,zt=_t||qt||Function("return this")();W.exports=zt});var A=n((sn,X)=>{"use strict";var Bt=k(),Ut=Bt.Symbol;X.exports=Ut});var ee=n((ln,Q)=>{"use strict";var Y=A(),Z=Object.prototype,Ht=Z.hasOwnProperty,Vt=Z.toString,b=Y?Y.toStringTag:void 0;function Gt(t){var e=Ht.call(t,b),a=t[b];try{t[b]=void 0;var r=!0}catch{}var o=Vt.call(t);return r&&(e?t[b]=a:delete t[b]),o}Q.exports=Gt});var ae=n((dn,te)=>{"use strict";var Kt=Object.prototype,Jt=Kt.toString;function Wt(t){return Jt.call(t)}te.exports=Wt});var ie=n((un,oe)=>{"use strict";var re=A(),Xt=ee(),Yt=ae(),Zt="[object Null]",Qt="[object Undefined]",ne=re?re.toStringTag:void 0;function ea(t){return t==null?t===void 0?Qt:Zt:ne&&ne in Object(t)?Xt(t):Yt(t)}oe.exports=ea});var $=n((cn,se)=>{"use strict";function ta(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}se.exports=ta});var de=n((mn,le)=>{"use strict";var aa=ie(),ra=$(),na="[object AsyncFunction]",oa="[object Function]",ia="[object GeneratorFunction]",sa="[object Proxy]";function la(t){if(!ra(t))return!1;var e=aa(t);return e==oa||e==ia||e==na||e==sa}le.exports=la});var ce=n((gn,ue)=>{"use strict";var da=k(),ua=da["__core-js_shared__"];ue.exports=ua});var he=n((hn,ge)=>{"use strict";var L=ce(),me=(function(){var t=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ca(t){return!!me&&me in t}ge.exports=ca});var fe=n((pn,pe)=>{"use strict";var ma=Function.prototype,ga=ma.toString;function ha(t){if(t!=null){try{return ga.call(t)}catch{}try{return t+""}catch{}}return""}pe.exports=ha});var be=n((fn,ve)=>{"use strict";var pa=de(),fa=he(),va=$(),ba=fe(),Ca=/[\\^$.*+?()[\]{}|]/g,ya=/^\[object .+?Constructor\]$/,wa=Function.prototype,Ma=Object.prototype,xa=wa.toString,ka=Ma.hasOwnProperty,Sa=RegExp("^"+xa.call(ka).replace(Ca,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ia(t){if(!va(t)||fa(t))return!1;var e=pa(t)?Sa:ya;return e.test(ba(t))}ve.exports=Ia});var ye=n((vn,Ce)=>{"use strict";function Ea(t,e){return t?.[e]}Ce.exports=Ea});var j=n((bn,we)=>{"use strict";var Ta=be(),Aa=ye();function $a(t,e){var a=Aa(t,e);return Ta(a)?a:void 0}we.exports=$a});var C=n((Cn,Me)=>{"use strict";var La=j(),ja=La(Object,"create");Me.exports=ja});var Se=n((yn,ke)=>{"use strict";var xe=C();function Ra(){this.__data__=xe?xe(null):{},this.size=0}ke.exports=Ra});var Ee=n((wn,Ie)=>{"use strict";function Oa(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Ie.exports=Oa});var Ae=n((Mn,Te)=>{"use strict";var Na=C(),Da="__lodash_hash_undefined__",Pa=Object.prototype,Fa=Pa.hasOwnProperty;function _a(t){var e=this.__data__;if(Na){var a=e[t];return a===Da?void 0:a}return Fa.call(e,t)?e[t]:void 0}Te.exports=_a});var Le=n((xn,$e)=>{"use strict";var qa=C(),za=Object.prototype,Ba=za.hasOwnProperty;function Ua(t){var e=this.__data__;return qa?e[t]!==void 0:Ba.call(e,t)}$e.exports=Ua});var Re=n((kn,je)=>{"use strict";var Ha=C(),Va="__lodash_hash_undefined__";function Ga(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Ha&&e===void 0?Va:e,this}je.exports=Ga});var Ne=n((Sn,Oe)=>{"use strict";var Ka=Se(),Ja=Ee(),Wa=Ae(),Xa=Le(),Ya=Re();function m(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}m.prototype.clear=Ka;m.prototype.delete=Ja;m.prototype.get=Wa;m.prototype.has=Xa;m.prototype.set=Ya;Oe.exports=m});var Pe=n((In,De)=>{"use strict";function Za(){this.__data__=[],this.size=0}De.exports=Za});var _e=n((En,Fe)=>{"use strict";function Qa(t,e){return t===e||t!==t&&e!==e}Fe.exports=Qa});var y=n((Tn,qe)=>{"use strict";var er=_e();function tr(t,e){for(var a=t.length;a--;)if(er(t[a][0],e))return a;return-1}qe.exports=tr});var Be=n((An,ze)=>{"use strict";var ar=y(),rr=Array.prototype,nr=rr.splice;function or(t){var e=this.__data__,a=ar(e,t);if(a<0)return!1;var r=e.length-1;return a==r?e.pop():nr.call(e,a,1),--this.size,!0}ze.exports=or});var He=n(($n,Ue)=>{"use strict";var ir=y();function sr(t){var e=this.__data__,a=ir(e,t);return a<0?void 0:e[a][1]}Ue.exports=sr});var Ge=n((Ln,Ve)=>{"use strict";var lr=y();function dr(t){return lr(this.__data__,t)>-1}Ve.exports=dr});var Je=n((jn,Ke)=>{"use strict";var ur=y();function cr(t,e){var a=this.__data__,r=ur(a,t);return r<0?(++this.size,a.push([t,e])):a[r][1]=e,this}Ke.exports=cr});var Xe=n((Rn,We)=>{"use strict";var mr=Pe(),gr=Be(),hr=He(),pr=Ge(),fr=Je();function g(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}g.prototype.clear=mr;g.prototype.delete=gr;g.prototype.get=hr;g.prototype.has=pr;g.prototype.set=fr;We.exports=g});var Ze=n((On,Ye)=>{"use strict";var vr=j(),br=k(),Cr=vr(br,"Map");Ye.exports=Cr});var tt=n((Nn,et)=>{"use strict";var Qe=Ne(),yr=Xe(),wr=Ze();function Mr(){this.size=0,this.__data__={hash:new Qe,map:new(wr||yr),string:new Qe}}et.exports=Mr});var rt=n((Dn,at)=>{"use strict";function xr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}at.exports=xr});var w=n((Pn,nt)=>{"use strict";var kr=rt();function Sr(t,e){var a=t.__data__;return kr(e)?a[typeof e=="string"?"string":"hash"]:a.map}nt.exports=Sr});var it=n((Fn,ot)=>{"use strict";var Ir=w();function Er(t){var e=Ir(this,t).delete(t);return this.size-=e?1:0,e}ot.exports=Er});var lt=n((_n,st)=>{"use strict";var Tr=w();function Ar(t){return Tr(this,t).get(t)}st.exports=Ar});var ut=n((qn,dt)=>{"use strict";var $r=w();function Lr(t){return $r(this,t).has(t)}dt.exports=Lr});var mt=n((zn,ct)=>{"use strict";var jr=w();function Rr(t,e){var a=jr(this,t),r=a.size;return a.set(t,e),this.size+=a.size==r?0:1,this}ct.exports=Rr});var ht=n((Bn,gt)=>{"use strict";var Or=tt(),Nr=it(),Dr=lt(),Pr=ut(),Fr=mt();function h(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=Or;h.prototype.delete=Nr;h.prototype.get=Dr;h.prototype.has=Pr;h.prototype.set=Fr;gt.exports=h});var vt=n((Un,ft)=>{"use strict";var pt=ht(),_r="Expected a function";function R(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(_r);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return a.cache=i.set(o,u)||i,u};return a.cache=new(R.Cache||pt),a}R.Cache=pt;ft.exports=R});var Kr={};Rt(Kr,{Locale:()=>c,Locales:()=>d,availableLocales:()=>v,createLocalesWithConfiguredErrors:()=>Pt,languages:()=>E,setI18n:()=>Gr});module.exports=Ot(Kr);var E={attribute:{name:0,nativeName:1},rtl:{ar:1,dv:1,fa:1,ha:1,he:1,ks:1,ku:1,ps:1,ur:1,yi:1},lang:{aa:["Afar","Afar"],ab:["Abkhazian","\u0410\u04A7\u0441\u0443\u0430"],af:["Afrikaans","Afrikaans"],ak:["Akan","Akana"],am:["Amharic","\u12A0\u121B\u122D\u129B"],an:["Aragonese","Aragon\xE9s"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629"],as:["Assamese","\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE"],av:["Avar","\u0410\u0432\u0430\u0440"],ay:["Aymara","Aymar"],az:["Azerbaijani","Az\u0259rbaycanca / \u0622\u0630\u0631\u0628\u0627\u064A\u062C\u0627\u0646"],ba:["Bashkir","\u0411\u0430\u0448\u04A1\u043E\u0440\u0442"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"],bh:["Bihari","\u092D\u094B\u091C\u092A\u0941\u0930\u0940"],bi:["Bislama","Bislama"],bm:["Bambara","Bamanankan"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42 / Bod skad"],br:["Breton","Brezhoneg"],bs:["Bosnian","Bosanski"],ca:["Catalan","Catal\xE0"],ce:["Chechen","\u041D\u043E\u0445\u0447\u0438\u0439\u043D"],ch:["Chamorro","Chamoru"],co:["Corsican","Corsu"],cr:["Cree","Nehiyaw"],cs:["Czech","\u010Cesky"],cu:["Old Church Slavonic / Old Bulgarian","\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A / slov\u011Bn\u012Dsk\u016D"],cv:["Chuvash","\u0427\u0103\u0432\u0430\u0448"],cy:["Welsh","Cymraeg"],da:["Danish","Dansk"],de:["German","Deutsch"],dv:["Divehi","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0"],dz:["Dzongkha","\u0F47\u0F7C\u0F44\u0F0B\u0F41"],ee:["Ewe","\u0190\u028B\u025B"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"],en:["English","English"],eo:["Esperanto","Esperanto"],es:["Spanish","Espa\xF1ol"],et:["Estonian","Eesti"],eu:["Basque","Euskara"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC"],ff:["Peul","Fulfulde"],fi:["Finnish","Suomi"],fj:["Fijian","Na Vosa Vakaviti"],fo:["Faroese","F\xF8royskt"],fr:["French","Fran\xE7ais"],fy:["West Frisian","Frysk"],ga:["Irish","Gaeilge"],gd:["Scottish Gaelic","G\xE0idhlig"],gl:["Galician","Galego"],gn:["Guarani","Ava\xF1e'\u1EBD"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0"],gv:["Manx","Gaelg"],ha:["Hausa","\u0647\u064E\u0648\u064F\u0633\u064E"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940"],ho:["Hiri Motu","Hiri Motu"],hr:["Croatian","Hrvatski"],ht:["Haitian","Kr\xE8yol ayisyen"],hu:["Hungarian","Magyar"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576"],hz:["Herero","Otsiherero"],ia:["Interlingua","Interlingua"],id:["Indonesian","Bahasa Indonesia"],ie:["Interlingue","Interlingue"],ig:["Igbo","Igbo"],ii:["Sichuan Yi","\uA187\uA259 / \u56DB\u5DDD\u5F5D\u8BED"],ik:["Inupiak","I\xF1upiak"],io:["Ido","Ido"],is:["Icelandic","\xCDslenska"],it:["Italian","Italiano"],iu:["Inuktitut","\u1403\u14C4\u1483\u144E\u1450\u1466"],ja:["Japanese","\u65E5\u672C\u8A9E"],jv:["Javanese","Basa Jawa"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"],kg:["Kongo","KiKongo"],ki:["Kikuyu","G\u0129k\u0169y\u0169"],kj:["Kuanyama","Kuanyama"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B\u0448\u0430"],kl:["Greenlandic","Kalaallisut"],km:["Cambodian","\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"],ko:["Korean","\uD55C\uAD6D\uC5B4"],kr:["Kanuri","Kanuri"],ks:["Kashmiri","\u0915\u0936\u094D\u092E\u0940\u0930\u0940 / \u0643\u0634\u0645\u064A\u0631\u064A"],ku:["Kurdish","Kurd\xEE / \u0643\u0648\u0631\u062F\u06CC"],kv:["Komi","\u041A\u043E\u043C\u0438"],kw:["Cornish","Kernewek"],ky:["Kirghiz","K\u0131rg\u0131zca / \u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430"],la:["Latin","Latina"],lb:["Luxembourgish","L\xEBtzebuergesch"],lg:["Ganda","Luganda"],li:["Limburgian","Limburgs"],ln:["Lingala","Ling\xE1la"],lo:["Laotian","\u0EA5\u0EB2\u0EA7 / Pha xa lao"],lt:["Lithuanian","Lietuvi\u0173"],lv:["Latvian","Latvie\u0161u"],mg:["Malagasy","Malagasy"],mh:["Marshallese","Kajin Majel / Ebon"],mi:["Maori","M\u0101ori"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B"],mo:["Moldovan","Moldoveneasc\u0103"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940"],ms:["Malay","Bahasa Melayu"],mt:["Maltese","bil-Malti"],my:["Burmese","Myanmasa"],na:["Nauruan","Dorerin Naoero"],nd:["North Ndebele","Sindebele"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940"],ng:["Ndonga","Oshiwambo"],nl:["Dutch","Nederlands"],nn:["Norwegian Nynorsk","Norsk (nynorsk)"],no:["Norwegian","Norsk (bokm\xE5l / riksm\xE5l)"],nr:["South Ndebele","isiNdebele"],nv:["Navajo","Din\xE9 bizaad"],ny:["Chichewa","Chi-Chewa"],oc:["Occitan","Occitan"],oj:["Ojibwa","\u140A\u14C2\u1511\u14C8\u142F\u14A7\u140E\u14D0 / Anishinaabemowin"],om:["Oromo","Oromoo"],or:["Oriya","\u0B13\u0B21\u0B3C\u0B3F\u0B06"],os:["Ossetian / Ossetic","\u0418\u0440\u043E\u043D\u0430\u0443"],pa:["Panjabi / Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40 / \u092A\u0902\u091C\u093E\u092C\u0940 / \u067E\u0646\u062C\u0627\u0628\u064A"],pi:["Pali","P\u0101li / \u092A\u093E\u0934\u093F"],pl:["Polish","Polski"],ps:["Pashto","\u067E\u069A\u062A\u0648"],pt:["Portuguese","Portugu\xEAs"],qu:["Quechua","Runa Simi"],rm:["Raeto Romance","Rumantsch"],rn:["Kirundi","Kirundi"],ro:["Romanian","Rom\xE2n\u0103"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439"],rw:["Rwandi","Kinyarwandi"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D"],sc:["Sardinian","Sardu"],sd:["Sindhi","\u0938\u093F\u0928\u0927\u093F"],se:["Northern Sami","S\xE1megiella"],sg:["Sango","S\xE4ng\xF6"],sh:["Serbo-Croatian","Srpskohrvatski / \u0421\u0440\u043F\u0441\u043A\u043E\u0445\u0440\u0432\u0430\u0442\u0441\u043A\u0438"],si:["Sinhalese","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"],sk:["Slovak","Sloven\u010Dina"],sl:["Slovenian","Sloven\u0161\u010Dina"],sm:["Samoan","Gagana Samoa"],sn:["Shona","chiShona"],so:["Somalia","Soomaaliga"],sq:["Albanian","Shqip"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438"],ss:["Swati","SiSwati"],st:["Southern Sotho","Sesotho"],su:["Sundanese","Basa Sunda"],sv:["Swedish","Svenska"],sw:["Swahili","Kiswahili"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3"],th:["Thai","\u0E44\u0E17\u0E22 / Phasa Thai"],ti:["Tigrinya","\u1275\u130D\u122D\u129B"],tk:["Turkmen","\u0422\u0443\u0440\u043A\u043C\u0435\u043D / \u062A\u0631\u0643\u0645\u0646"],tl:["Tagalog / Filipino","Tagalog"],tn:["Tswana","Setswana"],to:["Tonga","Lea Faka-Tonga"],tr:["Turkish","T\xFCrk\xE7e"],ts:["Tsonga","Xitsonga"],tt:["Tatar","Tatar\xE7a"],tw:["Twi","Twi"],ty:["Tahitian","Reo M\u0101`ohi"],ug:["Uyghur","Uy\u01A3urq\u0259 / \u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"],ur:["Urdu","\u0627\u0631\u062F\u0648"],uz:["Uzbek","\u040E\u0437\u0431\u0435\u043A"],ve:["Venda","Tshiven\u1E13a"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t"],vo:["Volap\xFCk","Volap\xFCk"],wa:["Walloon","Walon"],wo:["Wolof","Wollof"],xh:["Xhosa","isiXhosa"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","Yor\xF9b\xE1"],za:["Zhuang","Cuengh / T\xF4\xF4 / \u58EE\u8BED"],zh:["Chinese","\u4E2D\u6587"],zu:["Zulu","isiZulu"],pap:["Papiamento","Papiamento"]}};var T=I(require("format-message"),1),_=require("immer"),q=require("@beinformed/ui/exceptions"),z=require("@beinformed/ui/settings"),B=require("@beinformed/ui/utils");var c=class{[_.immerable]=!0;#r;#e;#t;#a;constructor(e){this.#r=e.code,this.#e=this.fixPlaceHoldersInObject(e.messages),this.#t=this.fixPlaceHoldersInObject(e.errors),this.#a=e.nativeName,T.default.setup({missingTranslation:"ignore"})}get code(){return this.#r}get nativeName(){if(this.#a)return this.#a;let e=this.code.split("-");if(e.length>0){let a=e[0];if(a){let r=E.lang[a];if(r)return r[1]+(e[1]?` (${e[1].toUpperCase()})`:"")}}throw new q.IllegalStateException(`Can not find language name based on locale: ${this.code}`)}fixPlaceHolders(e){return typeof e=="string"?e.replace(/'\$\{(?<key>.*?)}'/g,"''{$<key>}''").replace(/\$\{(?<key>.*?)}/g,"{$<key>}"):null}fixPlaceHoldersInObject(e={}){return JSON.parse(JSON.stringify(e).replace(/'\$\{(?<key>.*?)}'/g,"''{$<key>}''").replace(/\$\{(?<key>.*?)}/g,"{$<key>}"))}getBaseMessage(e,a){if(!e&&!a)return"[message: id or defaultMessage missing]";let r=this.#e[e]||this.#t[e];return B.IS_DEV&&!r&&e&&(0,z.getBooleanSetting)("DEBUG_I18N_MESSAGE_NOT_FOUND")&&console.debug(`Message with id ${e} not found for locale ${this.code} in layout translations`),r||this.fixPlaceHolders(a)||e}formatMessage(e,a){return a?(0,T.default)(e,a):e}getMessage(e,a,r){let o=this.getBaseMessage(e,a);return this.formatMessage(o,r)}update(e={},a={}){this.#e={...this.#e,...this.fixPlaceHoldersInObject(e)},this.#t={...this.#t,...this.fixPlaceHoldersInObject(a)}}};var V=require("@beinformed/ui/exceptions"),G=require("@beinformed/ui/models");var U={"Constraint.Attribute.IncorrectValue":"Incorrect value","Constraint.Boolean.InvalidValue":"Invalid boolean value, only values 'true' or 'false' are valid","Constraint.BSN.InvalidFormat":"Must be a valid BSN","Constraint.Captcha.InvalidToken":"The captcha is invalid","Constraint.Choice.ConflictingAnswer":"Cannot select '${answer-option-key}' because this is not a relevant option, given the other answers","Constraint.Choice.ConflictingOptions":"Cannot select '${answer-option-key1}' and '${answer-option-key2}' at the same time","Constraint.Choice.InvalidOption":"Allowed options are: ${options}","Constraint.Choice.InvalidOption.General":"Value '${value}' is not allowed","Constraint.Choice.MultipleNotAllowed":"Selecting multiple options is not allowed","Constraint.ConfirmCurrentPassword.Invalid":"Must match the current password","Constraint.Date.AboveMaximum":"Must be on or before ${max-date}","Constraint.Date.BelowMinimum":"Must be on or after ${min-date}","Constraint.Date.InvalidFormat":"Must be entered in the format ${format}","Constraint.Date.NotOnDate":"Must be on ${date}","Constraint.Date.OutOfRange":"Must be between ${min-date} and ${max-date}","Constraint.DateRange.InvalidRange":"Start date must be before end date","Constraint.DateRange.Mandatory":"Field is mandatory: must contain at least a start or end date","Constraint.DateTime.AboveMaximum":"Must be before ${max-date-time}","Constraint.DateTime.BelowMinimum":"Must be at ${min-date-time} or after","Constraint.DateTime.InvalidFormat":"Must be entered in the format ${format}","Constraint.DateTime.OutOfRange":"Must be between ${min-date-time} and ${max-date-time}","Constraint.DateTimeRange.InvalidRange":"Start date-time must be before end date-time","Constraint.DateTimeRange.Mandatory":"Field is mandatory: must contain at least a start or end date-time","Constraint.Document.MimeTypeNotAllowed":"The document mime type is not valid for the selected document type","Constraint.Email.InvalidFormat":"Must be a valid e-mail address","Constraint.File.DataEmpty":"File does not exist or has no content","Constraint.File.InvalidExtension":"Allowed extensions are: ${extensions}","Constraint.File.InvalidFormat":"Must meet the requirements of the file name","Constraint.File.InvalidMimeType":"Allowed mime types are: ${mime-types}","Constraint.File.MaxFileSizeExceeded":"Maximum file upload size is ${max-filesize}","Constraint.File.OnlyAllowsOneFile":"Only one file is allowed","Constraint.IBAN.InvalidFormat":"Must be a valid IBAN number","Constraint.InvalidLengthBetween":"Length must be between ${min-length} and ${max-length} characters","Constraint.InvalidLengthExact":"Length must be precisely ${length} characters","Constraint.InvalidLengthTooLong":"Length must not be larger than ${max-length} characters","Constraint.InvalidLengthTooShort":"Length must be at least ${min-length} characters","Constraint.InvalidRegularExpression":"The value is not according the given regular expression ${regexp}","Constraint.Mandatory":"Field is mandatory","Constraint.Missing":"Field is mandatory","Constraint.Number.AboveMaximum":"Must be at most ${max-number}","Constraint.Number.BelowMinimum":"Must be at least ${min-number}","Constraint.Number.InvalidDecimal":"Must be a number with up to ${max-digits} decimal places","Constraint.Number.InvalidInteger":"Must be a whole number","Constraint.Number.InvalidLong":"Must be a whole number","Constraint.Number.OutOfRange":"Must be between ${min-number} and ${max-number}","Constraint.NumberRange.BothFieldsMandatory":"Must contain start and end value","Constraint.NumberRange.InvalidRange":"Start value must be less than the end value","Constraint.NumberRange.Mandatory":"Field is mandatory: must contain at least a start or end value","Constraint.Password.AlreadyUsed":"Must not have been used before","Constraint.Password.LowerAndUpperCaseMandatory":"Must contain both upper and lowercase characters","Constraint.Password.MinNumericCharactersMandatory":"Must contain ${min-numeric} or more numerical characters","Constraint.Password.MinSpecialCharactersMandatory":"Must contain ${min-special} or more special characters","Constraint.Password.ThreeConsecutiveCharactersNotAllowed":"Must not contain any character more than twice consecutively","Constraint.Password.Unchanged":"Must not be the same as the old password","Constraint.Password.UserNameSubstringNotAllowed":"Must not have 5 consecutive characters from username","Constraint.SortParameter.InvalidValue":"Invalid sort parameter. Allowed values: field+[asc|desc]","Constraint.Time.InvalidFormat":"Must be entered in the format ${format}","Constraint.TimeRange.InvalidRange":"Start time must be before end time","Constraint.TimeRange.Mandatory":"Field is mandatory: must contain at least a start or end time","Constraint.TimeStamp.AboveMaximum":"Must be on or before ${max-date}","Constraint.TimeStamp.BelowMinimum":"Must be on or after ${min-date}","Constraint.Timestamp.InvalidFormat":"Must be entered in the format ${format}","Constraint.TimeStampRange.InvalidRange":"Start value must be before end value","Constraint.TimeStampRange.Mandatory":"Field is mandatory: must contain at least a start or end value","Constraint.XML.InvalidFormat":"Must be well-formed XML","Constraint.ZipCode.InvalidFormat":"Must be a valid Dutch ZIP code, e.g. 1234AB","Error.AcceptHeaderRequired":"The 'Accept' request-header field must be provided","Error.Authentication.BlockedUser":"You have been logged out, because your account has been blocked","Error.Authentication.ConcurrentUser":"You have been logged out, since your username has been used at a different location.","Error.Authentication.InvalidCredentials":"Authentication failed","Error.Authentication.InvalidUsername":"You have been logged out, because your username is not valid anymore","Error.Authentication.Required":"Authentication is required","Error.Case.ConcurrentModification":"Another user has updated a case used in this task. As a result, this task can not be completed.","Error.ChangePasswordRequired":"User password is initial or expired, and must be changed ","Error.CodemapLookup.InvalidToken":"Token for codemap lookup is not valid","Error.DataStore.ConcurrentModification":"Another user has updated a record used in this task","Error.DataStore.RecordAlreadyExists":"","Error.DataStore.RowCannotBeLocked":"Another user has already locked a record used in this task","Error.Form.DataNotAvailableForId":"Service can not be completed, data not available for mandatory element ${elementid}","Error.Form.ObjectNotAllowed":"Object '${objectid}' is not allowed","Error.Form.ReadOnlyElementId":"Element '${elementid}' is read only","Error.Form.TooManyObjects":"Too many objects '${objectid}' provided","Error.Form.UndefinedElementId":"Undefined element '${elementid}'","Error.Form.UndefinedObject":"Undefined object(s) '${objectid}'","Error.GeneralError":"An unexpected error occurred","Error.MethodNotAllowed":"The given HTTP method is not allowed for this resource","Error.Parameter.InvalidValue":"The parameter contains characters that are not allowed","Error.Parameter.Mandatory":"Parameter ${parameter} is mandatory","Error.Parameter.NotAllowed":"Parameter '${parameter}' is not allowed","Error.ResourceNotFound":"The requested resource cannot be found","Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch":"Password and password confirmation do not match.","Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists":"A user with email address '${Email}' already exists","Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists":"A user with username '${Username}' already exists","Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists":"An organization with id '${ID}' already exists"};var H={"Constraint.Attribute.IncorrectValue":"Ongeldige waarde","Constraint.Boolean.InvalidValue":"Waarde voldoet niet aan het boolean formaat, alleen waarden 'true' en 'false' zijn toegestaan","Constraint.BSN.InvalidFormat":"Moet een geldig BSN zijn","Constraint.Captcha.InvalidToken":"Captcha is niet correct","Constraint.Choice.ConflictingAnswer":"'${answer-option-key}' kan niet worden gekozen omdat dit geen relevante optie is, gegeven de andere antwoorden","Constraint.Choice.ConflictingOptions":"'${answer-option-key1}' and '${answer-option-key2}' kunnen niet tegelijkertijd worden gekozen","Constraint.Choice.InvalidOption":"Toegestane waarden zijn: ${options}","Constraint.Choice.InvalidOption.General":"Waarde '${value}' is niet toegestaan","Constraint.Choice.MultipleNotAllowed":"Meerdere opties selecteren is niet toegestaan","Constraint.ConfirmCurrentPassword.Invalid":"Moet overeenkomen met het huidige wachtwoord","Constraint.Date.AboveMaximum":"Moet op of voor ${max-date} liggen","Constraint.Date.BelowMinimum":"Moet op of na ${min-date} liggen","Constraint.Date.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.Date.NotOnDate":"Moet op ${date} liggen","Constraint.Date.OutOfRange":"Moet tussen ${min-date} en ${max-date} liggen","Constraint.DateRange.InvalidRange":"De begindatum dient voor de einddatum te liggen","Constraint.DateRange.Mandatory":"Veld is verplicht: moet tenminste begin- of einddatum bevatten","Constraint.DateTime.AboveMaximum":"Moet voor ${max-date-time} liggen","Constraint.DateTime.BelowMinimum":"Moet op ${min-date-time} of later liggen","Constraint.DateTime.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.DateTime.OutOfRange":"Moet tussen ${min-date-time} en ${max-date-time} liggen","Constraint.DateTimeRange.InvalidRange":"De begindatumtijd dient voor de einddatumtijd te liggen","Constraint.DateTimeRange.Mandatory":"Veld is verplicht: moet tenminste begin- of einddatumtijd bevatten","Constraint.Document.MimeTypeNotAllowed":"Het document mime type voldoet niet aan het document type","Constraint.Email.InvalidFormat":"Moet een geldig emailadres zijn","Constraint.File.DataEmpty":"Bestand bestaat niet of heeft geen inhoud","Constraint.File.InvalidExtension":"Toegestane extensies zijn: ${extensions}","Constraint.File.InvalidFormat":"Voldoet niet aan de voorwaarden van een bestandsnaam","Constraint.File.InvalidMimeType":"Toegestane mime-types zijn: ${mime-types}","Constraint.File.MaxFileSizeExceeded":"De maximum file grootte voor upload is ${max-filesize}","Constraint.File.OnlyAllowsOneFile":"Er is slechts \xE9\xE9n bestand toegestaan","Constraint.IBAN.InvalidFormat":"Moet een geldig IBAN nummer zijn","Constraint.InvalidLengthBetween":"Lengte moet tussen ${min-length} en ${max-length} karakters liggen","Constraint.InvalidLengthExact":"Lengte moet precies ${length} karakters zijn","Constraint.InvalidLengthTooLong":"Lengte mag niet langer dan ${max-length} karakters zijn","Constraint.InvalidLengthTooShort":"Lengte moet tenminste ${min-length} karakters zijn","Constraint.InvalidRegularExpression":"De waarde voldoet niet aan de reguliere expressie ${regexp}","Constraint.Mandatory":"Veld is verplicht","Constraint.Missing":"Veld is verplicht","Constraint.Number.AboveMaximum":"Mag niet groter dan ${max-number} zijn","Constraint.Number.BelowMinimum":"Moet minstens ${min-number} zijn","Constraint.Number.InvalidDecimal":"Moet een getal zijn met maximaal ${max-digits} decimalen","Constraint.Number.InvalidInteger":"Moet een geheel getal zijn","Constraint.Number.InvalidLong":"Moet een geheel getal zijn","Constraint.Number.OutOfRange":"Moet tussen ${min-number} en ${max-number} liggen","Constraint.NumberRange.BothFieldsMandatory":"Moet zowel een begin- als een eindwaarde bevatten","Constraint.NumberRange.InvalidRange":"De beginwaarde dient kleiner te zijn dan de eindwaarde","Constraint.NumberRange.Mandatory":"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten","Constraint.Password.AlreadyUsed":"Mag niet eerder zijn gebruikt","Constraint.Password.LowerAndUpperCaseMandatory":"Moet zowel hoofdletters als kleine letters bevatten","Constraint.Password.MinNumericCharactersMandatory":"Moet ${min-numeric} of meer numerieke karakters bevatten","Constraint.Password.MinSpecialCharactersMandatory":"Moet ${min-special} of meer speciale karakters bevatten","Constraint.Password.ThreeConsecutiveCharactersNotAllowed":"Mag niet meer dan twee dezelfde karakters achter elkaar bevatten","Constraint.Password.Unchanged":"Mag niet hetzelfde zijn als het oude wachtwoord","Constraint.Password.UserNameSubstringNotAllowed":"Mag niet vijf opeenvolgende karakters van de gebruikersnaam bevatten","Constraint.SortParameter.InvalidValue":"Ongeldige sorteerparameter. Toegestane waardes: veld+[asc|desc]","Constraint.Time.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.TimeRange.InvalidRange":"De begintijd dient voor de eindtijd te liggen","Constraint.TimeRange.Mandatory":"Veld is verplicht: moet tenminste begin- of eindtijd bevatten","Constraint.TimeStamp.AboveMaximum":"Moet op of voor ${max-date} liggen","Constraint.TimeStamp.BelowMinimum":"Moet op of na ${min-date} liggen","Constraint.Timestamp.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.TimeStampRange.InvalidRange":"De beginwaarde dient voor de eindwaarde te liggen","Constraint.TimeStampRange.Mandatory":"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten","Constraint.XML.InvalidFormat":"Moet geldige XML zijn","Constraint.ZipCode.InvalidFormat":"Moet een geldige postcode zijn, bijvoorbeeld 1234AB","Error.AcceptHeaderRequired":"De 'Accept' request-header moet worden meegegeven","Error.Authentication.BlockedUser":"U bent uitgelogd omdat uw account geblokkeerd is","Error.Authentication.ConcurrentUser":"U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.","Error.Authentication.InvalidCredentials":"Inloggen is mislukt","Error.Authentication.InvalidUsername":"U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is","Error.Authentication.Required":"Autorisatie is vereist","Error.Case.ConcurrentModification":"Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan","Error.ChangePasswordRequired":"Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast","Error.CodemapLookup.InvalidToken":"Token voor keuzelijst lookup is niet valide","Error.DataStore.ConcurrentModification":"Een andere gebruiker heeft de rij in de datastore reeds aangepast","Error.DataStore.RecordAlreadyExists":"","Error.DataStore.RowCannotBeLocked":"Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.","Error.Form.DataNotAvailableForId":"Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar","Error.Form.ObjectNotAllowed":"Object '${objectid}' is niet toegestaan","Error.Form.ReadOnlyElementId":"Element '${elementid}' is alleen lezen","Error.Form.TooManyObjects":"Te veel objecten '${objectid}' aangeleverd","Error.Form.UndefinedElementId":"Element '${elementid}' is ongedefinieerd","Error.Form.UndefinedObject":"Object(en) '${objectid}' ongedefinieerd","Error.GeneralError":"Er is een onverwachte fout opgetreden","Error.MethodNotAllowed":"De opgegeven HTTP methode is niet toegestaan op deze resource","Error.Parameter.InvalidValue":"De parameter bevat karakters die niet zijn toegestaan","Error.Parameter.Mandatory":"De parameter ${parameter} is verplicht","Error.Parameter.NotAllowed":"Parameter '${parameter}' is niet toegestaan","Error.ResourceNotFound":"De opgevraagde resource kan niet worden gevonden","Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch":"Het wachtwoord en de wachtwoordbevestiging komen niet overeen","Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists":"Een gebruiker met e-mailadres '${Email}' bestaat al","Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists":"Een gebruiker met gebruikersnaam '${Username}' bestaat al","Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists":"Een organisatie met id '${ID}' bestaat al"};var v=[{code:"en",messages:{},errors:U},{code:"nl",messages:{},errors:H}],Pt=t=>v.map(e=>t[e.code]?{...e,errors:{...e.errors,...t[e.code]}}:e),d=class t extends G.BaseCollection{constructor(e=v){super(e.map(a=>new c(a)))}static rehydrate(e){return e&&e.collection?new t(e.collection.map(a=>({code:a.code,messages:a.messages,errors:a.errors}))):new t([])}hasLocale(e){return this.some(a=>e.startsWith(a.code))}getLocale(e){if(this.hasLocale(e)){let a=this.find(r=>e.startsWith(r.code));if(a)return a}throw new V.IllegalArgumentException(`Locale configuration for locale ${e} not found`)}get availableLocaleCodes(){return this.map(e=>e.code)}getPreferredLocale(e){if(e!=null){let r=(e.match(/[-A-Za-z]{2,10}/gu)||[]).filter(o=>this.availableLocaleCodes.some(i=>o.startsWith(i))).map(o=>this.availableLocaleCodes.find(i=>o.startsWith(i)));if(r.length>0)return r[0]}return this.availableLocaleCodes[0]}update(e,a={},r={}){this.hasLocale(e)?this.getLocale(e).update(a,r):this.add(new c({code:e,messages:a,errors:r}))}};var xt=require("polished");var wt=I(vt(),1),O=require("reselect");var p=require("react-redux"),Hn=p.useDispatch.withTypes(),bt=p.useSelector.withTypes(),Vn=p.useStore.withTypes();var Ct=t=>t.i18n?.locale??"en",yt=t=>t.i18n.locales;var qr=(0,O.createSelector)([yt,Ct],(t,e)=>(0,wt.default)((a,r,o)=>t.getLocale(e).getMessage(a,r,o),(...a)=>JSON.stringify(a))),Mt=(t,e,a)=>bt(qr)(t,e,a);var Xn=(0,O.createSelector)(t=>t.i18n.locales,t=>t.map(e=>e.code));var S=require("react/jsx-runtime"),zr=({className:t,id:e,defaultMessage:a,children:r,data:o,screenreaderOnly:i=!1,allowHTML:u=!1})=>{let s=Mt(e,a||r,o);if(i){let f={...(0,xt.hideVisually)()};return(0,S.jsx)("span",{className:t,style:f,children:s})}return u?(0,S.jsx)("span",{className:t,dangerouslySetInnerHTML:{__html:s}}):(0,S.jsx)("span",{className:t,children:s})};zr.displayName="BI.Message";var St=I(require("deepmerge"),1),D=require("@beinformed/ui/exceptions"),It=require("@beinformed/ui/settings");var M=require("@reduxjs/toolkit"),l=require("@beinformed/ui/utils");var Br=(0,M.createAction)("UPDATE_LOCALE",t=>({payload:t})),N=(0,M.createAction)("SET_LOCALES",(t,e)=>({payload:{locales:t,locale:e}})),Ur=()=>typeof navigator<"u"&&navigator?.language&&navigator?.language.split("-")[0]||"en",Hr={locales:new d,locale:Ur()},ao=(0,M.createReducer)(Hr,t=>{t.addCase(Br,(e,a)=>{e.locales?.length>1?(0,l.setCookie)("locale",a.payload):(0,l.clearCookie)("locale"),l.Cache.clear(),e.locale=a.payload}).addCase(N,(e,a)=>{let{locale:r,locales:o}=a.payload;e.locales.length>1?(0,l.setCookie)("locale",r):(0,l.clearCookie)("locale"),e.locales=o,r&&(e.locale=r)})});var Vr=(t,e)=>t.getCookieByName(e),kt=(t,e)=>{let r=Vr(t,"locale")||t.getHeader("Accept-Language");return r===null?e.availableLocaleCodes[0]:e.getPreferredLocale(r)};var Gr=(t,e=[],a)=>{if(!Array.isArray(e))throw new D.IllegalArgumentException("locales must be an array of objects");if(!a)throw new D.IllegalArgumentException("missing request argument");let r=v.map(s=>{let f=s.code,P=e.find(Et=>Et.code===f);return P?(0,St.default)(s,P):s});e.forEach(s=>{r.some(f=>f.code===s.code)||r.push(s)});let o=r.filter(s=>(0,It.getEnabledLocales)().includes(s.code)),i=new d(o),u=kt(a,i);t.dispatch(N(i,u??"en"))};0&&(module.exports={Locale,Locales,availableLocales,createLocalesWithConfiguredErrors,languages,setI18n});
1
+ "use strict";var $t=Object.create;var x=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var jt=Object.getOwnPropertyNames;var Rt=Object.getPrototypeOf,Ot=Object.prototype.hasOwnProperty;var n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nt=(t,e)=>{for(var a in e)x(t,a,{get:e[a],enumerable:!0})},F=(t,e,a,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of jt(e))!Ot.call(t,o)&&o!==a&&x(t,o,{get:()=>e[o],enumerable:!(r=Lt(e,o))||r.enumerable});return t};var I=(t,e,a)=>(a=t!=null?$t(Rt(t)):{},F(e||!t||!t.__esModule?x(a,"default",{value:t,enumerable:!0}):a,t)),Dt=t=>F(x({},"__esModule",{value:!0}),t);var J=n((sn,K)=>{"use strict";var qt=typeof global=="object"&&global&&global.Object===Object&&global;K.exports=qt});var k=n((ln,W)=>{"use strict";var zt=J(),Bt=typeof self=="object"&&self&&self.Object===Object&&self,Ut=zt||Bt||Function("return this")();W.exports=Ut});var A=n((dn,X)=>{"use strict";var Ht=k(),Vt=Ht.Symbol;X.exports=Vt});var ee=n((un,Q)=>{"use strict";var Y=A(),Z=Object.prototype,Gt=Z.hasOwnProperty,Kt=Z.toString,b=Y?Y.toStringTag:void 0;function Jt(t){var e=Gt.call(t,b),a=t[b];try{t[b]=void 0;var r=!0}catch{}var o=Kt.call(t);return r&&(e?t[b]=a:delete t[b]),o}Q.exports=Jt});var ae=n((cn,te)=>{"use strict";var Wt=Object.prototype,Xt=Wt.toString;function Yt(t){return Xt.call(t)}te.exports=Yt});var ie=n((mn,oe)=>{"use strict";var re=A(),Zt=ee(),Qt=ae(),ea="[object Null]",ta="[object Undefined]",ne=re?re.toStringTag:void 0;function aa(t){return t==null?t===void 0?ta:ea:ne&&ne in Object(t)?Zt(t):Qt(t)}oe.exports=aa});var $=n((gn,se)=>{"use strict";function ra(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}se.exports=ra});var de=n((pn,le)=>{"use strict";var na=ie(),oa=$(),ia="[object AsyncFunction]",sa="[object Function]",la="[object GeneratorFunction]",da="[object Proxy]";function ua(t){if(!oa(t))return!1;var e=na(t);return e==sa||e==la||e==ia||e==da}le.exports=ua});var ce=n((hn,ue)=>{"use strict";var ca=k(),ma=ca["__core-js_shared__"];ue.exports=ma});var pe=n((fn,ge)=>{"use strict";var L=ce(),me=(function(){var t=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ga(t){return!!me&&me in t}ge.exports=ga});var fe=n((vn,he)=>{"use strict";var pa=Function.prototype,ha=pa.toString;function fa(t){if(t!=null){try{return ha.call(t)}catch{}try{return t+""}catch{}}return""}he.exports=fa});var be=n((bn,ve)=>{"use strict";var va=de(),ba=pe(),Ca=$(),ya=fe(),wa=/[\\^$.*+?()[\]{}|]/g,Ma=/^\[object .+?Constructor\]$/,xa=Function.prototype,ka=Object.prototype,Sa=xa.toString,Ia=ka.hasOwnProperty,Ea=RegExp("^"+Sa.call(Ia).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ta(t){if(!Ca(t)||ba(t))return!1;var e=va(t)?Ea:Ma;return e.test(ya(t))}ve.exports=Ta});var ye=n((Cn,Ce)=>{"use strict";function Aa(t,e){return t?.[e]}Ce.exports=Aa});var j=n((yn,we)=>{"use strict";var $a=be(),La=ye();function ja(t,e){var a=La(t,e);return $a(a)?a:void 0}we.exports=ja});var C=n((wn,Me)=>{"use strict";var Ra=j(),Oa=Ra(Object,"create");Me.exports=Oa});var Se=n((Mn,ke)=>{"use strict";var xe=C();function Na(){this.__data__=xe?xe(null):{},this.size=0}ke.exports=Na});var Ee=n((xn,Ie)=>{"use strict";function Da(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Ie.exports=Da});var Ae=n((kn,Te)=>{"use strict";var Pa=C(),Fa="__lodash_hash_undefined__",_a=Object.prototype,qa=_a.hasOwnProperty;function za(t){var e=this.__data__;if(Pa){var a=e[t];return a===Fa?void 0:a}return qa.call(e,t)?e[t]:void 0}Te.exports=za});var Le=n((Sn,$e)=>{"use strict";var Ba=C(),Ua=Object.prototype,Ha=Ua.hasOwnProperty;function Va(t){var e=this.__data__;return Ba?e[t]!==void 0:Ha.call(e,t)}$e.exports=Va});var Re=n((In,je)=>{"use strict";var Ga=C(),Ka="__lodash_hash_undefined__";function Ja(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Ga&&e===void 0?Ka:e,this}je.exports=Ja});var Ne=n((En,Oe)=>{"use strict";var Wa=Se(),Xa=Ee(),Ya=Ae(),Za=Le(),Qa=Re();function m(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}m.prototype.clear=Wa;m.prototype.delete=Xa;m.prototype.get=Ya;m.prototype.has=Za;m.prototype.set=Qa;Oe.exports=m});var Pe=n((Tn,De)=>{"use strict";function er(){this.__data__=[],this.size=0}De.exports=er});var _e=n((An,Fe)=>{"use strict";function tr(t,e){return t===e||t!==t&&e!==e}Fe.exports=tr});var y=n(($n,qe)=>{"use strict";var ar=_e();function rr(t,e){for(var a=t.length;a--;)if(ar(t[a][0],e))return a;return-1}qe.exports=rr});var Be=n((Ln,ze)=>{"use strict";var nr=y(),or=Array.prototype,ir=or.splice;function sr(t){var e=this.__data__,a=nr(e,t);if(a<0)return!1;var r=e.length-1;return a==r?e.pop():ir.call(e,a,1),--this.size,!0}ze.exports=sr});var He=n((jn,Ue)=>{"use strict";var lr=y();function dr(t){var e=this.__data__,a=lr(e,t);return a<0?void 0:e[a][1]}Ue.exports=dr});var Ge=n((Rn,Ve)=>{"use strict";var ur=y();function cr(t){return ur(this.__data__,t)>-1}Ve.exports=cr});var Je=n((On,Ke)=>{"use strict";var mr=y();function gr(t,e){var a=this.__data__,r=mr(a,t);return r<0?(++this.size,a.push([t,e])):a[r][1]=e,this}Ke.exports=gr});var Xe=n((Nn,We)=>{"use strict";var pr=Pe(),hr=Be(),fr=He(),vr=Ge(),br=Je();function g(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}g.prototype.clear=pr;g.prototype.delete=hr;g.prototype.get=fr;g.prototype.has=vr;g.prototype.set=br;We.exports=g});var Ze=n((Dn,Ye)=>{"use strict";var Cr=j(),yr=k(),wr=Cr(yr,"Map");Ye.exports=wr});var tt=n((Pn,et)=>{"use strict";var Qe=Ne(),Mr=Xe(),xr=Ze();function kr(){this.size=0,this.__data__={hash:new Qe,map:new(xr||Mr),string:new Qe}}et.exports=kr});var rt=n((Fn,at)=>{"use strict";function Sr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}at.exports=Sr});var w=n((_n,nt)=>{"use strict";var Ir=rt();function Er(t,e){var a=t.__data__;return Ir(e)?a[typeof e=="string"?"string":"hash"]:a.map}nt.exports=Er});var it=n((qn,ot)=>{"use strict";var Tr=w();function Ar(t){var e=Tr(this,t).delete(t);return this.size-=e?1:0,e}ot.exports=Ar});var lt=n((zn,st)=>{"use strict";var $r=w();function Lr(t){return $r(this,t).get(t)}st.exports=Lr});var ut=n((Bn,dt)=>{"use strict";var jr=w();function Rr(t){return jr(this,t).has(t)}dt.exports=Rr});var mt=n((Un,ct)=>{"use strict";var Or=w();function Nr(t,e){var a=Or(this,t),r=a.size;return a.set(t,e),this.size+=a.size==r?0:1,this}ct.exports=Nr});var pt=n((Hn,gt)=>{"use strict";var Dr=tt(),Pr=it(),Fr=lt(),_r=ut(),qr=mt();function p(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}p.prototype.clear=Dr;p.prototype.delete=Pr;p.prototype.get=Fr;p.prototype.has=_r;p.prototype.set=qr;gt.exports=p});var vt=n((Vn,ft)=>{"use strict";var ht=pt(),zr="Expected a function";function R(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(zr);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return a.cache=i.set(o,u)||i,u};return a.cache=new(R.Cache||ht),a}R.Cache=ht;ft.exports=R});var Wr={};Nt(Wr,{Locale:()=>c,Locales:()=>d,Message:()=>St,availableLocales:()=>v,createLocalesWithConfiguredErrors:()=>_t,languages:()=>E,setI18n:()=>Jr});module.exports=Dt(Wr);var E={attribute:{name:0,nativeName:1},rtl:{ar:1,dv:1,fa:1,ha:1,he:1,ks:1,ku:1,ps:1,ur:1,yi:1},lang:{aa:["Afar","Afar"],ab:["Abkhazian","\u0410\u04A7\u0441\u0443\u0430"],af:["Afrikaans","Afrikaans"],ak:["Akan","Akana"],am:["Amharic","\u12A0\u121B\u122D\u129B"],an:["Aragonese","Aragon\xE9s"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629"],as:["Assamese","\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE"],av:["Avar","\u0410\u0432\u0430\u0440"],ay:["Aymara","Aymar"],az:["Azerbaijani","Az\u0259rbaycanca / \u0622\u0630\u0631\u0628\u0627\u064A\u062C\u0627\u0646"],ba:["Bashkir","\u0411\u0430\u0448\u04A1\u043E\u0440\u0442"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"],bh:["Bihari","\u092D\u094B\u091C\u092A\u0941\u0930\u0940"],bi:["Bislama","Bislama"],bm:["Bambara","Bamanankan"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42 / Bod skad"],br:["Breton","Brezhoneg"],bs:["Bosnian","Bosanski"],ca:["Catalan","Catal\xE0"],ce:["Chechen","\u041D\u043E\u0445\u0447\u0438\u0439\u043D"],ch:["Chamorro","Chamoru"],co:["Corsican","Corsu"],cr:["Cree","Nehiyaw"],cs:["Czech","\u010Cesky"],cu:["Old Church Slavonic / Old Bulgarian","\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A / slov\u011Bn\u012Dsk\u016D"],cv:["Chuvash","\u0427\u0103\u0432\u0430\u0448"],cy:["Welsh","Cymraeg"],da:["Danish","Dansk"],de:["German","Deutsch"],dv:["Divehi","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0"],dz:["Dzongkha","\u0F47\u0F7C\u0F44\u0F0B\u0F41"],ee:["Ewe","\u0190\u028B\u025B"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"],en:["English","English"],eo:["Esperanto","Esperanto"],es:["Spanish","Espa\xF1ol"],et:["Estonian","Eesti"],eu:["Basque","Euskara"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC"],ff:["Peul","Fulfulde"],fi:["Finnish","Suomi"],fj:["Fijian","Na Vosa Vakaviti"],fo:["Faroese","F\xF8royskt"],fr:["French","Fran\xE7ais"],fy:["West Frisian","Frysk"],ga:["Irish","Gaeilge"],gd:["Scottish Gaelic","G\xE0idhlig"],gl:["Galician","Galego"],gn:["Guarani","Ava\xF1e'\u1EBD"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0"],gv:["Manx","Gaelg"],ha:["Hausa","\u0647\u064E\u0648\u064F\u0633\u064E"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940"],ho:["Hiri Motu","Hiri Motu"],hr:["Croatian","Hrvatski"],ht:["Haitian","Kr\xE8yol ayisyen"],hu:["Hungarian","Magyar"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576"],hz:["Herero","Otsiherero"],ia:["Interlingua","Interlingua"],id:["Indonesian","Bahasa Indonesia"],ie:["Interlingue","Interlingue"],ig:["Igbo","Igbo"],ii:["Sichuan Yi","\uA187\uA259 / \u56DB\u5DDD\u5F5D\u8BED"],ik:["Inupiak","I\xF1upiak"],io:["Ido","Ido"],is:["Icelandic","\xCDslenska"],it:["Italian","Italiano"],iu:["Inuktitut","\u1403\u14C4\u1483\u144E\u1450\u1466"],ja:["Japanese","\u65E5\u672C\u8A9E"],jv:["Javanese","Basa Jawa"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"],kg:["Kongo","KiKongo"],ki:["Kikuyu","G\u0129k\u0169y\u0169"],kj:["Kuanyama","Kuanyama"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B\u0448\u0430"],kl:["Greenlandic","Kalaallisut"],km:["Cambodian","\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"],ko:["Korean","\uD55C\uAD6D\uC5B4"],kr:["Kanuri","Kanuri"],ks:["Kashmiri","\u0915\u0936\u094D\u092E\u0940\u0930\u0940 / \u0643\u0634\u0645\u064A\u0631\u064A"],ku:["Kurdish","Kurd\xEE / \u0643\u0648\u0631\u062F\u06CC"],kv:["Komi","\u041A\u043E\u043C\u0438"],kw:["Cornish","Kernewek"],ky:["Kirghiz","K\u0131rg\u0131zca / \u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430"],la:["Latin","Latina"],lb:["Luxembourgish","L\xEBtzebuergesch"],lg:["Ganda","Luganda"],li:["Limburgian","Limburgs"],ln:["Lingala","Ling\xE1la"],lo:["Laotian","\u0EA5\u0EB2\u0EA7 / Pha xa lao"],lt:["Lithuanian","Lietuvi\u0173"],lv:["Latvian","Latvie\u0161u"],mg:["Malagasy","Malagasy"],mh:["Marshallese","Kajin Majel / Ebon"],mi:["Maori","M\u0101ori"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B"],mo:["Moldovan","Moldoveneasc\u0103"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940"],ms:["Malay","Bahasa Melayu"],mt:["Maltese","bil-Malti"],my:["Burmese","Myanmasa"],na:["Nauruan","Dorerin Naoero"],nd:["North Ndebele","Sindebele"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940"],ng:["Ndonga","Oshiwambo"],nl:["Dutch","Nederlands"],nn:["Norwegian Nynorsk","Norsk (nynorsk)"],no:["Norwegian","Norsk (bokm\xE5l / riksm\xE5l)"],nr:["South Ndebele","isiNdebele"],nv:["Navajo","Din\xE9 bizaad"],ny:["Chichewa","Chi-Chewa"],oc:["Occitan","Occitan"],oj:["Ojibwa","\u140A\u14C2\u1511\u14C8\u142F\u14A7\u140E\u14D0 / Anishinaabemowin"],om:["Oromo","Oromoo"],or:["Oriya","\u0B13\u0B21\u0B3C\u0B3F\u0B06"],os:["Ossetian / Ossetic","\u0418\u0440\u043E\u043D\u0430\u0443"],pa:["Panjabi / Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40 / \u092A\u0902\u091C\u093E\u092C\u0940 / \u067E\u0646\u062C\u0627\u0628\u064A"],pi:["Pali","P\u0101li / \u092A\u093E\u0934\u093F"],pl:["Polish","Polski"],ps:["Pashto","\u067E\u069A\u062A\u0648"],pt:["Portuguese","Portugu\xEAs"],qu:["Quechua","Runa Simi"],rm:["Raeto Romance","Rumantsch"],rn:["Kirundi","Kirundi"],ro:["Romanian","Rom\xE2n\u0103"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439"],rw:["Rwandi","Kinyarwandi"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D"],sc:["Sardinian","Sardu"],sd:["Sindhi","\u0938\u093F\u0928\u0927\u093F"],se:["Northern Sami","S\xE1megiella"],sg:["Sango","S\xE4ng\xF6"],sh:["Serbo-Croatian","Srpskohrvatski / \u0421\u0440\u043F\u0441\u043A\u043E\u0445\u0440\u0432\u0430\u0442\u0441\u043A\u0438"],si:["Sinhalese","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"],sk:["Slovak","Sloven\u010Dina"],sl:["Slovenian","Sloven\u0161\u010Dina"],sm:["Samoan","Gagana Samoa"],sn:["Shona","chiShona"],so:["Somalia","Soomaaliga"],sq:["Albanian","Shqip"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438"],ss:["Swati","SiSwati"],st:["Southern Sotho","Sesotho"],su:["Sundanese","Basa Sunda"],sv:["Swedish","Svenska"],sw:["Swahili","Kiswahili"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3"],th:["Thai","\u0E44\u0E17\u0E22 / Phasa Thai"],ti:["Tigrinya","\u1275\u130D\u122D\u129B"],tk:["Turkmen","\u0422\u0443\u0440\u043A\u043C\u0435\u043D / \u062A\u0631\u0643\u0645\u0646"],tl:["Tagalog / Filipino","Tagalog"],tn:["Tswana","Setswana"],to:["Tonga","Lea Faka-Tonga"],tr:["Turkish","T\xFCrk\xE7e"],ts:["Tsonga","Xitsonga"],tt:["Tatar","Tatar\xE7a"],tw:["Twi","Twi"],ty:["Tahitian","Reo M\u0101`ohi"],ug:["Uyghur","Uy\u01A3urq\u0259 / \u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"],ur:["Urdu","\u0627\u0631\u062F\u0648"],uz:["Uzbek","\u040E\u0437\u0431\u0435\u043A"],ve:["Venda","Tshiven\u1E13a"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t"],vo:["Volap\xFCk","Volap\xFCk"],wa:["Walloon","Walon"],wo:["Wolof","Wollof"],xh:["Xhosa","isiXhosa"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","Yor\xF9b\xE1"],za:["Zhuang","Cuengh / T\xF4\xF4 / \u58EE\u8BED"],zh:["Chinese","\u4E2D\u6587"],zu:["Zulu","isiZulu"],pap:["Papiamento","Papiamento"]}};var T=I(require("format-message"),1),_=require("immer"),q=require("@beinformed/ui/exceptions"),z=require("@beinformed/ui/settings"),B=require("@beinformed/ui/utils");var c=class{[_.immerable]=!0;#r;#e;#t;#a;constructor(e){this.#r=e.code,this.#e=this.fixPlaceHoldersInObject(e.messages),this.#t=this.fixPlaceHoldersInObject(e.errors),this.#a=e.nativeName,T.default.setup({missingTranslation:"ignore"})}get code(){return this.#r}get nativeName(){if(this.#a)return this.#a;let e=this.code.split("-");if(e.length>0){let a=e[0];if(a){let r=E.lang[a];if(r)return r[1]+(e[1]?` (${e[1].toUpperCase()})`:"")}}throw new q.IllegalStateException(`Can not find language name based on locale: ${this.code}`)}fixPlaceHolders(e){return typeof e=="string"?e.replace(/'\$\{(?<key>.*?)}'/g,"''{$<key>}''").replace(/\$\{(?<key>.*?)}/g,"{$<key>}"):null}fixPlaceHoldersInObject(e={}){return JSON.parse(JSON.stringify(e).replace(/'\$\{(?<key>.*?)}'/g,"''{$<key>}''").replace(/\$\{(?<key>.*?)}/g,"{$<key>}"))}getBaseMessage(e,a){if(!e&&!a)return"[message: id or defaultMessage missing]";let r=this.#e[e]||this.#t[e];return B.IS_DEV&&!r&&e&&(0,z.getBooleanSetting)("DEBUG_I18N_MESSAGE_NOT_FOUND")&&console.debug(`Message with id ${e} not found for locale ${this.code} in layout translations`),r||this.fixPlaceHolders(a)||e}formatMessage(e,a){return a?(0,T.default)(e,a):e}getMessage(e,a,r){let o=this.getBaseMessage(e,a);return this.formatMessage(o,r)}update(e={},a={}){this.#e={...this.#e,...this.fixPlaceHoldersInObject(e)},this.#t={...this.#t,...this.fixPlaceHoldersInObject(a)}}};var V=require("@beinformed/ui/exceptions"),G=require("@beinformed/ui/models");var U={"Constraint.Attribute.IncorrectValue":"Incorrect value","Constraint.Boolean.InvalidValue":"Invalid boolean value, only values 'true' or 'false' are valid","Constraint.BSN.InvalidFormat":"Must be a valid BSN","Constraint.Captcha.InvalidToken":"The captcha is invalid","Constraint.Choice.ConflictingAnswer":"Cannot select '${answer-option-key}' because this is not a relevant option, given the other answers","Constraint.Choice.ConflictingOptions":"Cannot select '${answer-option-key1}' and '${answer-option-key2}' at the same time","Constraint.Choice.InvalidOption":"Allowed options are: ${options}","Constraint.Choice.InvalidOption.General":"Value '${value}' is not allowed","Constraint.Choice.MultipleNotAllowed":"Selecting multiple options is not allowed","Constraint.ConfirmCurrentPassword.Invalid":"Must match the current password","Constraint.Date.AboveMaximum":"Must be on or before ${max-date}","Constraint.Date.BelowMinimum":"Must be on or after ${min-date}","Constraint.Date.InvalidFormat":"Must be entered in the format ${format}","Constraint.Date.NotOnDate":"Must be on ${date}","Constraint.Date.OutOfRange":"Must be between ${min-date} and ${max-date}","Constraint.DateRange.InvalidRange":"Start date must be before end date","Constraint.DateRange.Mandatory":"Field is mandatory: must contain at least a start or end date","Constraint.DateTime.AboveMaximum":"Must be before ${max-date-time}","Constraint.DateTime.BelowMinimum":"Must be at ${min-date-time} or after","Constraint.DateTime.InvalidFormat":"Must be entered in the format ${format}","Constraint.DateTime.OutOfRange":"Must be between ${min-date-time} and ${max-date-time}","Constraint.DateTimeRange.InvalidRange":"Start date-time must be before end date-time","Constraint.DateTimeRange.Mandatory":"Field is mandatory: must contain at least a start or end date-time","Constraint.Document.MimeTypeNotAllowed":"The document mime type is not valid for the selected document type","Constraint.Email.InvalidFormat":"Must be a valid e-mail address","Constraint.File.DataEmpty":"File does not exist or has no content","Constraint.File.InvalidExtension":"Allowed extensions are: ${extensions}","Constraint.File.InvalidFormat":"Must meet the requirements of the file name","Constraint.File.InvalidMimeType":"Allowed mime types are: ${mime-types}","Constraint.File.MaxFileSizeExceeded":"Maximum file upload size is ${max-filesize}","Constraint.File.OnlyAllowsOneFile":"Only one file is allowed","Constraint.IBAN.InvalidFormat":"Must be a valid IBAN number","Constraint.InvalidLengthBetween":"Length must be between ${min-length} and ${max-length} characters","Constraint.InvalidLengthExact":"Length must be precisely ${length} characters","Constraint.InvalidLengthTooLong":"Length must not be larger than ${max-length} characters","Constraint.InvalidLengthTooShort":"Length must be at least ${min-length} characters","Constraint.InvalidRegularExpression":"The value is not according the given regular expression ${regexp}","Constraint.Mandatory":"Field is mandatory","Constraint.Missing":"Field is mandatory","Constraint.Number.AboveMaximum":"Must be at most ${max-number}","Constraint.Number.BelowMinimum":"Must be at least ${min-number}","Constraint.Number.InvalidDecimal":"Must be a number with up to ${max-digits} decimal places","Constraint.Number.InvalidInteger":"Must be a whole number","Constraint.Number.InvalidLong":"Must be a whole number","Constraint.Number.OutOfRange":"Must be between ${min-number} and ${max-number}","Constraint.NumberRange.BothFieldsMandatory":"Must contain start and end value","Constraint.NumberRange.InvalidRange":"Start value must be less than the end value","Constraint.NumberRange.Mandatory":"Field is mandatory: must contain at least a start or end value","Constraint.Password.AlreadyUsed":"Must not have been used before","Constraint.Password.LowerAndUpperCaseMandatory":"Must contain both upper and lowercase characters","Constraint.Password.MinNumericCharactersMandatory":"Must contain ${min-numeric} or more numerical characters","Constraint.Password.MinSpecialCharactersMandatory":"Must contain ${min-special} or more special characters","Constraint.Password.ThreeConsecutiveCharactersNotAllowed":"Must not contain any character more than twice consecutively","Constraint.Password.Unchanged":"Must not be the same as the old password","Constraint.Password.UserNameSubstringNotAllowed":"Must not have 5 consecutive characters from username","Constraint.SortParameter.InvalidValue":"Invalid sort parameter. Allowed values: field+[asc|desc]","Constraint.Time.InvalidFormat":"Must be entered in the format ${format}","Constraint.TimeRange.InvalidRange":"Start time must be before end time","Constraint.TimeRange.Mandatory":"Field is mandatory: must contain at least a start or end time","Constraint.TimeStamp.AboveMaximum":"Must be on or before ${max-date}","Constraint.TimeStamp.BelowMinimum":"Must be on or after ${min-date}","Constraint.Timestamp.InvalidFormat":"Must be entered in the format ${format}","Constraint.TimeStampRange.InvalidRange":"Start value must be before end value","Constraint.TimeStampRange.Mandatory":"Field is mandatory: must contain at least a start or end value","Constraint.XML.InvalidFormat":"Must be well-formed XML","Constraint.ZipCode.InvalidFormat":"Must be a valid Dutch ZIP code, e.g. 1234AB","Error.AcceptHeaderRequired":"The 'Accept' request-header field must be provided","Error.Authentication.BlockedUser":"You have been logged out, because your account has been blocked","Error.Authentication.ConcurrentUser":"You have been logged out, since your username has been used at a different location.","Error.Authentication.InvalidCredentials":"Authentication failed","Error.Authentication.InvalidUsername":"You have been logged out, because your username is not valid anymore","Error.Authentication.Required":"Authentication is required","Error.Case.ConcurrentModification":"Another user has updated a case used in this task. As a result, this task can not be completed.","Error.ChangePasswordRequired":"User password is initial or expired, and must be changed ","Error.CodemapLookup.InvalidToken":"Token for codemap lookup is not valid","Error.DataStore.ConcurrentModification":"Another user has updated a record used in this task","Error.DataStore.RecordAlreadyExists":"","Error.DataStore.RowCannotBeLocked":"Another user has already locked a record used in this task","Error.Form.DataNotAvailableForId":"Service can not be completed, data not available for mandatory element ${elementid}","Error.Form.ObjectNotAllowed":"Object '${objectid}' is not allowed","Error.Form.ReadOnlyElementId":"Element '${elementid}' is read only","Error.Form.TooManyObjects":"Too many objects '${objectid}' provided","Error.Form.UndefinedElementId":"Undefined element '${elementid}'","Error.Form.UndefinedObject":"Undefined object(s) '${objectid}'","Error.GeneralError":"An unexpected error occurred","Error.MethodNotAllowed":"The given HTTP method is not allowed for this resource","Error.Parameter.InvalidValue":"The parameter contains characters that are not allowed","Error.Parameter.Mandatory":"Parameter ${parameter} is mandatory","Error.Parameter.NotAllowed":"Parameter '${parameter}' is not allowed","Error.ResourceNotFound":"The requested resource cannot be found","Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch":"Password and password confirmation do not match.","Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists":"A user with email address '${Email}' already exists","Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists":"A user with username '${Username}' already exists","Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists":"An organization with id '${ID}' already exists"};var H={"Constraint.Attribute.IncorrectValue":"Ongeldige waarde","Constraint.Boolean.InvalidValue":"Waarde voldoet niet aan het boolean formaat, alleen waarden 'true' en 'false' zijn toegestaan","Constraint.BSN.InvalidFormat":"Moet een geldig BSN zijn","Constraint.Captcha.InvalidToken":"Captcha is niet correct","Constraint.Choice.ConflictingAnswer":"'${answer-option-key}' kan niet worden gekozen omdat dit geen relevante optie is, gegeven de andere antwoorden","Constraint.Choice.ConflictingOptions":"'${answer-option-key1}' and '${answer-option-key2}' kunnen niet tegelijkertijd worden gekozen","Constraint.Choice.InvalidOption":"Toegestane waarden zijn: ${options}","Constraint.Choice.InvalidOption.General":"Waarde '${value}' is niet toegestaan","Constraint.Choice.MultipleNotAllowed":"Meerdere opties selecteren is niet toegestaan","Constraint.ConfirmCurrentPassword.Invalid":"Moet overeenkomen met het huidige wachtwoord","Constraint.Date.AboveMaximum":"Moet op of voor ${max-date} liggen","Constraint.Date.BelowMinimum":"Moet op of na ${min-date} liggen","Constraint.Date.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.Date.NotOnDate":"Moet op ${date} liggen","Constraint.Date.OutOfRange":"Moet tussen ${min-date} en ${max-date} liggen","Constraint.DateRange.InvalidRange":"De begindatum dient voor de einddatum te liggen","Constraint.DateRange.Mandatory":"Veld is verplicht: moet tenminste begin- of einddatum bevatten","Constraint.DateTime.AboveMaximum":"Moet voor ${max-date-time} liggen","Constraint.DateTime.BelowMinimum":"Moet op ${min-date-time} of later liggen","Constraint.DateTime.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.DateTime.OutOfRange":"Moet tussen ${min-date-time} en ${max-date-time} liggen","Constraint.DateTimeRange.InvalidRange":"De begindatumtijd dient voor de einddatumtijd te liggen","Constraint.DateTimeRange.Mandatory":"Veld is verplicht: moet tenminste begin- of einddatumtijd bevatten","Constraint.Document.MimeTypeNotAllowed":"Het document mime type voldoet niet aan het document type","Constraint.Email.InvalidFormat":"Moet een geldig emailadres zijn","Constraint.File.DataEmpty":"Bestand bestaat niet of heeft geen inhoud","Constraint.File.InvalidExtension":"Toegestane extensies zijn: ${extensions}","Constraint.File.InvalidFormat":"Voldoet niet aan de voorwaarden van een bestandsnaam","Constraint.File.InvalidMimeType":"Toegestane mime-types zijn: ${mime-types}","Constraint.File.MaxFileSizeExceeded":"De maximum file grootte voor upload is ${max-filesize}","Constraint.File.OnlyAllowsOneFile":"Er is slechts \xE9\xE9n bestand toegestaan","Constraint.IBAN.InvalidFormat":"Moet een geldig IBAN nummer zijn","Constraint.InvalidLengthBetween":"Lengte moet tussen ${min-length} en ${max-length} karakters liggen","Constraint.InvalidLengthExact":"Lengte moet precies ${length} karakters zijn","Constraint.InvalidLengthTooLong":"Lengte mag niet langer dan ${max-length} karakters zijn","Constraint.InvalidLengthTooShort":"Lengte moet tenminste ${min-length} karakters zijn","Constraint.InvalidRegularExpression":"De waarde voldoet niet aan de reguliere expressie ${regexp}","Constraint.Mandatory":"Veld is verplicht","Constraint.Missing":"Veld is verplicht","Constraint.Number.AboveMaximum":"Mag niet groter dan ${max-number} zijn","Constraint.Number.BelowMinimum":"Moet minstens ${min-number} zijn","Constraint.Number.InvalidDecimal":"Moet een getal zijn met maximaal ${max-digits} decimalen","Constraint.Number.InvalidInteger":"Moet een geheel getal zijn","Constraint.Number.InvalidLong":"Moet een geheel getal zijn","Constraint.Number.OutOfRange":"Moet tussen ${min-number} en ${max-number} liggen","Constraint.NumberRange.BothFieldsMandatory":"Moet zowel een begin- als een eindwaarde bevatten","Constraint.NumberRange.InvalidRange":"De beginwaarde dient kleiner te zijn dan de eindwaarde","Constraint.NumberRange.Mandatory":"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten","Constraint.Password.AlreadyUsed":"Mag niet eerder zijn gebruikt","Constraint.Password.LowerAndUpperCaseMandatory":"Moet zowel hoofdletters als kleine letters bevatten","Constraint.Password.MinNumericCharactersMandatory":"Moet ${min-numeric} of meer numerieke karakters bevatten","Constraint.Password.MinSpecialCharactersMandatory":"Moet ${min-special} of meer speciale karakters bevatten","Constraint.Password.ThreeConsecutiveCharactersNotAllowed":"Mag niet meer dan twee dezelfde karakters achter elkaar bevatten","Constraint.Password.Unchanged":"Mag niet hetzelfde zijn als het oude wachtwoord","Constraint.Password.UserNameSubstringNotAllowed":"Mag niet vijf opeenvolgende karakters van de gebruikersnaam bevatten","Constraint.SortParameter.InvalidValue":"Ongeldige sorteerparameter. Toegestane waardes: veld+[asc|desc]","Constraint.Time.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.TimeRange.InvalidRange":"De begintijd dient voor de eindtijd te liggen","Constraint.TimeRange.Mandatory":"Veld is verplicht: moet tenminste begin- of eindtijd bevatten","Constraint.TimeStamp.AboveMaximum":"Moet op of voor ${max-date} liggen","Constraint.TimeStamp.BelowMinimum":"Moet op of na ${min-date} liggen","Constraint.Timestamp.InvalidFormat":"Moet worden opgegeven in het formaat ${format}","Constraint.TimeStampRange.InvalidRange":"De beginwaarde dient voor de eindwaarde te liggen","Constraint.TimeStampRange.Mandatory":"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten","Constraint.XML.InvalidFormat":"Moet geldige XML zijn","Constraint.ZipCode.InvalidFormat":"Moet een geldige postcode zijn, bijvoorbeeld 1234AB","Error.AcceptHeaderRequired":"De 'Accept' request-header moet worden meegegeven","Error.Authentication.BlockedUser":"U bent uitgelogd omdat uw account geblokkeerd is","Error.Authentication.ConcurrentUser":"U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.","Error.Authentication.InvalidCredentials":"Inloggen is mislukt","Error.Authentication.InvalidUsername":"U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is","Error.Authentication.Required":"Autorisatie is vereist","Error.Case.ConcurrentModification":"Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan","Error.ChangePasswordRequired":"Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast","Error.CodemapLookup.InvalidToken":"Token voor keuzelijst lookup is niet valide","Error.DataStore.ConcurrentModification":"Een andere gebruiker heeft de rij in de datastore reeds aangepast","Error.DataStore.RecordAlreadyExists":"","Error.DataStore.RowCannotBeLocked":"Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.","Error.Form.DataNotAvailableForId":"Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar","Error.Form.ObjectNotAllowed":"Object '${objectid}' is niet toegestaan","Error.Form.ReadOnlyElementId":"Element '${elementid}' is alleen lezen","Error.Form.TooManyObjects":"Te veel objecten '${objectid}' aangeleverd","Error.Form.UndefinedElementId":"Element '${elementid}' is ongedefinieerd","Error.Form.UndefinedObject":"Object(en) '${objectid}' ongedefinieerd","Error.GeneralError":"Er is een onverwachte fout opgetreden","Error.MethodNotAllowed":"De opgegeven HTTP methode is niet toegestaan op deze resource","Error.Parameter.InvalidValue":"De parameter bevat karakters die niet zijn toegestaan","Error.Parameter.Mandatory":"De parameter ${parameter} is verplicht","Error.Parameter.NotAllowed":"Parameter '${parameter}' is niet toegestaan","Error.ResourceNotFound":"De opgevraagde resource kan niet worden gevonden","Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch":"Het wachtwoord en de wachtwoordbevestiging komen niet overeen","Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists":"Een gebruiker met e-mailadres '${Email}' bestaat al","Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists":"Een gebruiker met gebruikersnaam '${Username}' bestaat al","Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists":"Een organisatie met id '${ID}' bestaat al"};var v=[{code:"en",messages:{},errors:U},{code:"nl",messages:{},errors:H}],_t=t=>v.map(e=>t[e.code]?{...e,errors:{...e.errors,...t[e.code]}}:e),d=class t extends G.BaseCollection{constructor(e=v){super(e.map(a=>new c(a)))}static rehydrate(e){return e&&e.collection?new t(e.collection.map(a=>({code:a.code,messages:a.messages,errors:a.errors}))):new t([])}hasLocale(e){return this.some(a=>e.startsWith(a.code))}getLocale(e){if(this.hasLocale(e)){let a=this.find(r=>e.startsWith(r.code));if(a)return a}throw new V.IllegalArgumentException(`Locale configuration for locale ${e} not found`)}get availableLocaleCodes(){return this.map(e=>e.code)}getPreferredLocale(e){if(e!=null){let r=(e.match(/[-A-Za-z]{2,10}/gu)||[]).filter(o=>this.availableLocaleCodes.some(i=>o.startsWith(i))).map(o=>this.availableLocaleCodes.find(i=>o.startsWith(i)));if(r.length>0)return r[0]}return this.availableLocaleCodes[0]}update(e,a={},r={}){this.hasLocale(e)?this.getLocale(e).update(a,r):this.add(new c({code:e,messages:a,errors:r}))}};var kt=require("polished");var Vr=require("react"),Mt=I(vt(),1),N=require("reselect");var h=require("react-redux"),Br=h.useDispatch.withTypes(),bt=h.useSelector.withTypes(),Gn=h.useStore.withTypes();var M=require("@reduxjs/toolkit"),l=require("@beinformed/ui/utils");var Ct=(0,M.createAction)("UPDATE_LOCALE",t=>({payload:t})),O=(0,M.createAction)("SET_LOCALES",(t,e)=>({payload:{locales:t,locale:e}})),Ur=()=>typeof navigator<"u"&&navigator?.language&&navigator?.language.split("-")[0]||"en",Hr={locales:new d,locale:Ur()},Wn=(0,M.createReducer)(Hr,t=>{t.addCase(Ct,(e,a)=>{e.locales?.length>1?(0,l.setCookie)("locale",a.payload):(0,l.clearCookie)("locale"),l.Cache.clear(),e.locale=a.payload}).addCase(O,(e,a)=>{let{locale:r,locales:o}=a.payload;e.locales.length>1?(0,l.setCookie)("locale",r):(0,l.clearCookie)("locale"),e.locales=o,r&&(e.locale=r)})});var yt=t=>t.i18n?.locale??"en",wt=t=>t.i18n.locales;var Gr=(0,N.createSelector)([wt,yt],(t,e)=>(0,Mt.default)((a,r,o)=>t.getLocale(e).getMessage(a,r,o),(...a)=>JSON.stringify(a))),xt=(t,e,a)=>bt(Gr)(t,e,a);var to=(0,N.createSelector)(t=>t.i18n.locales,t=>t.map(e=>e.code));var S=require("react/jsx-runtime"),St=({className:t,id:e,defaultMessage:a,children:r,data:o,screenreaderOnly:i=!1,allowHTML:u=!1})=>{let s=xt(e,a||r,o);if(i){let f={...(0,kt.hideVisually)()};return(0,S.jsx)("span",{className:t,style:f,children:s})}return u?(0,S.jsx)("span",{className:t,dangerouslySetInnerHTML:{__html:s}}):(0,S.jsx)("span",{className:t,children:s})};St.displayName="BI.Message";var Et=I(require("deepmerge"),1),D=require("@beinformed/ui/exceptions"),Tt=require("@beinformed/ui/settings");var Kr=(t,e)=>t.getCookieByName(e),It=(t,e)=>{let r=Kr(t,"locale")||t.getHeader("Accept-Language");return r===null?e.availableLocaleCodes[0]:e.getPreferredLocale(r)};var Jr=(t,e=[],a)=>{if(!Array.isArray(e))throw new D.IllegalArgumentException("locales must be an array of objects");if(!a)throw new D.IllegalArgumentException("missing request argument");let r=v.map(s=>{let f=s.code,P=e.find(At=>At.code===f);return P?(0,Et.default)(s,P):s});e.forEach(s=>{r.some(f=>f.code===s.code)||r.push(s)});let o=r.filter(s=>(0,Tt.getEnabledLocales)().includes(s.code)),i=new d(o),u=It(a,i);t.dispatch(O(i,u??"en"))};0&&(module.exports={Locale,Locales,Message,availableLocales,createLocalesWithConfiguredErrors,languages,setI18n});
2
2
  //# sourceMappingURL=index.cjs.map