@beinformed/react 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE.md +1 -0
  3. package/dist/ErrorBoundaryFallback-D6YQem9P.d.cts +13 -0
  4. package/dist/ErrorBoundaryFallback-D6YQem9P.d.ts +13 -0
  5. package/dist/beforeRenderHooks-CNvsMmi8.d.cts +18 -0
  6. package/dist/beforeRenderHooks-Gb0tcmCY.d.ts +18 -0
  7. package/dist/chunk-347XDLN7.js +1 -0
  8. package/dist/chunk-347XDLN7.js.map +1 -0
  9. package/dist/chunk-3OP2KQ56.js +2 -0
  10. package/dist/chunk-3OP2KQ56.js.map +1 -0
  11. package/dist/chunk-4AC7YQ5Q.js +2 -0
  12. package/dist/chunk-4AC7YQ5Q.js.map +1 -0
  13. package/dist/chunk-6E5DAS6G.js +1 -0
  14. package/dist/chunk-6E5DAS6G.js.map +1 -0
  15. package/dist/chunk-6KRECIRI.js +2 -0
  16. package/dist/chunk-6KRECIRI.js.map +1 -0
  17. package/dist/chunk-A4USB53Q.js +2 -0
  18. package/dist/chunk-A4USB53Q.js.map +1 -0
  19. package/dist/chunk-AMFWIR2R.js +2 -0
  20. package/dist/chunk-AMFWIR2R.js.map +1 -0
  21. package/dist/chunk-B7PQLTVC.js +2 -0
  22. package/dist/chunk-B7PQLTVC.js.map +1 -0
  23. package/dist/chunk-DI7VM62A.js +2 -0
  24. package/dist/chunk-DI7VM62A.js.map +1 -0
  25. package/dist/chunk-FW4363Y4.js +2 -0
  26. package/dist/chunk-FW4363Y4.js.map +1 -0
  27. package/dist/chunk-HDOILTJ2.js +2 -0
  28. package/dist/chunk-HDOILTJ2.js.map +1 -0
  29. package/dist/chunk-JYAETKRB.js +2 -0
  30. package/dist/chunk-JYAETKRB.js.map +1 -0
  31. package/dist/chunk-K3DTH6XN.js +2 -0
  32. package/dist/chunk-K3DTH6XN.js.map +1 -0
  33. package/dist/chunk-KNEDBCHP.js +2 -0
  34. package/dist/chunk-KNEDBCHP.js.map +1 -0
  35. package/dist/chunk-MT7D3AJU.js +12 -0
  36. package/dist/chunk-MT7D3AJU.js.map +1 -0
  37. package/dist/chunk-RKGGCIUD.js +2 -0
  38. package/dist/chunk-RKGGCIUD.js.map +1 -0
  39. package/dist/chunk-UZIZDEU6.js +2 -0
  40. package/dist/chunk-UZIZDEU6.js.map +1 -0
  41. package/dist/chunk-VFLYA5WJ.js +2 -0
  42. package/dist/chunk-VFLYA5WJ.js.map +1 -0
  43. package/dist/chunk-VG3QU524.js +22 -0
  44. package/dist/chunk-VG3QU524.js.map +1 -0
  45. package/dist/chunk-WBPDMDW4.js +2 -0
  46. package/dist/chunk-WBPDMDW4.js.map +1 -0
  47. package/dist/chunk-X2C7CKOK.js +2 -0
  48. package/dist/chunk-X2C7CKOK.js.map +1 -0
  49. package/dist/chunk-X3N2NQVZ.js +2 -0
  50. package/dist/chunk-X3N2NQVZ.js.map +1 -0
  51. package/dist/chunk-Y7ESITVO.js +2 -0
  52. package/dist/chunk-Y7ESITVO.js.map +1 -0
  53. package/dist/chunk-YG7XDCNV.js +2 -0
  54. package/dist/chunk-YG7XDCNV.js.map +1 -0
  55. package/dist/chunk-YJNJVQFW.js +2 -0
  56. package/dist/chunk-YJNJVQFW.js.map +1 -0
  57. package/dist/chunk-Z2Y3OPVI.js +2 -0
  58. package/dist/chunk-Z2Y3OPVI.js.map +1 -0
  59. package/dist/client/index.cjs +12 -0
  60. package/dist/client/index.cjs.map +1 -0
  61. package/dist/client/index.d.cts +84 -0
  62. package/dist/client/index.d.ts +84 -0
  63. package/dist/client/index.js +2 -0
  64. package/dist/client/index.js.map +1 -0
  65. package/dist/components/index.cjs +12 -0
  66. package/dist/components/index.cjs.map +1 -0
  67. package/dist/components/index.d.cts +28 -0
  68. package/dist/components/index.d.ts +28 -0
  69. package/dist/components/index.js +2 -0
  70. package/dist/components/index.js.map +1 -0
  71. package/dist/hooks/index.cjs +2 -0
  72. package/dist/hooks/index.cjs.map +1 -0
  73. package/dist/hooks/index.d.cts +353 -0
  74. package/dist/hooks/index.d.ts +353 -0
  75. package/dist/hooks/index.js +2 -0
  76. package/dist/hooks/index.js.map +1 -0
  77. package/dist/i18n/index.cjs +2 -0
  78. package/dist/i18n/index.cjs.map +1 -0
  79. package/dist/i18n/index.d.cts +26 -0
  80. package/dist/i18n/index.d.ts +26 -0
  81. package/dist/i18n/index.js +2 -0
  82. package/dist/i18n/index.js.map +1 -0
  83. package/dist/index.cjs +32 -0
  84. package/dist/index.cjs.map +1 -0
  85. package/dist/index.d.cts +27 -0
  86. package/dist/index.d.ts +27 -0
  87. package/dist/index.js +2 -0
  88. package/dist/index.js.map +1 -0
  89. package/dist/redux/index.cjs +2 -0
  90. package/dist/redux/index.cjs.map +1 -0
  91. package/dist/redux/index.d.cts +458 -0
  92. package/dist/redux/index.d.ts +458 -0
  93. package/dist/redux/index.js +2 -0
  94. package/dist/redux/index.js.map +1 -0
  95. package/dist/server/index.cjs +22 -0
  96. package/dist/server/index.cjs.map +1 -0
  97. package/dist/server/index.d.cts +78 -0
  98. package/dist/server/index.d.ts +78 -0
  99. package/dist/server/index.js +2 -0
  100. package/dist/server/index.js.map +1 -0
  101. package/dist/styled-components.d-CrkOxzv5.d.cts +346 -0
  102. package/dist/styled-components.d-CrkOxzv5.d.ts +346 -0
  103. package/dist/theme/index.cjs +2 -0
  104. package/dist/theme/index.cjs.map +1 -0
  105. package/dist/theme/index.d.cts +112 -0
  106. package/dist/theme/index.d.ts +112 -0
  107. package/dist/theme/index.js +2 -0
  108. package/dist/theme/index.js.map +1 -0
  109. package/dist/types-CGXygEPz.d.cts +8 -0
  110. package/dist/types-CGXygEPz.d.ts +8 -0
  111. package/dist/useForm-CG_DMYfZ.d.cts +178 -0
  112. package/dist/useForm-DW-a5mcV.d.ts +178 -0
  113. package/dist/utils/index.cjs +2 -0
  114. package/dist/utils/index.cjs.map +1 -0
  115. package/dist/utils/index.d.cts +6 -0
  116. package/dist/utils/index.d.ts +6 -0
  117. package/dist/utils/index.js +2 -0
  118. package/dist/utils/index.js.map +1 -0
  119. package/package.json +125 -0
@@ -0,0 +1,458 @@
1
+ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
+ import { Middleware } from '@reduxjs/toolkit';
3
+ import { S as ShowNotificationArguments, $ as RootState, a0 as BEIDispatch, V as RouterLocation, C as FetchModelResult, F as FetchModelPayload, b as Locales, R as PreferenceValue, W as RouterState, P as PreferencesState, y as ModularUIState, I as I18nState, A as AuthState, E as ErrorState, o as ModalsState, v as ModelCatalogState, N as NotificationState, T as ProgressIndicatorState } from '../styled-components.d-CrkOxzv5.js';
4
+ export { _ as BEIStore, n as ModalState, B as ModelEntry, D as NOTIFICATION_TYPES, g as authReducer, q as closeModal, H as dismissNotification, i as errorReducer, m as i18nReducer, X as locationChange, l as loginSuccess, e as logoutSuccess, t as modalsReducer, x as modelCatalogReducer, z as modularUIReducer, J as notificationReducer, Q as preferencesReducer, U as progressIndicatorReducer, j as receiveLocale, r as resetAuthErrors, Y as routerReducer, f as saveChangePassword, h as saveError, s as sendAuthenticationError, k as setLocales, K as setPreference, O as setPreferences, Z as setupStore, p as showModal, G as showNotification, w as updateEntryDate, u as updateLocale } from '../styled-components.d-CrkOxzv5.js';
5
+ import * as _beinformed_ui_models from '@beinformed/ui/models';
6
+ import { FormModel, ErrorResponse, ApplicationModel, FormObjectModel, AttributeModel, ModularUIModel, Href } from '@beinformed/ui/models';
7
+ import * as redux from 'redux';
8
+ import { LocationState, History } from 'history';
9
+ export { a as BeforeRenderHook, B as BeforeRenderHookProps, h as handleBeforeRenderHooks } from '../beforeRenderHooks-Gb0tcmCY.js';
10
+ import { U as UpdateFormOptions } from '../useForm-DW-a5mcV.js';
11
+ import * as react_redux from 'react-redux';
12
+ import { ISO_DATE } from '@beinformed/ui/types';
13
+ import { ModularUIRequestOptions } from '@beinformed/ui/utils';
14
+ import 'immer';
15
+ import '@beinformed/ui/settings';
16
+ import 'styled-components';
17
+ import '../types-CGXygEPz.js';
18
+
19
+ /**
20
+ * Show form notification
21
+ */
22
+ declare const showFormNotification: _reduxjs_toolkit.AsyncThunk<{
23
+ payload: undefined;
24
+ type: "FINISH_PROGRESS";
25
+ }, FormModel, {
26
+ state?: unknown;
27
+ dispatch?: _reduxjs_toolkit.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
28
+ extra?: unknown;
29
+ rejectValue?: unknown;
30
+ serializedErrorType?: unknown;
31
+ pendingMeta?: unknown;
32
+ fulfilledMeta?: unknown;
33
+ rejectedMeta?: unknown;
34
+ }>;
35
+ /**
36
+ * Show error notification
37
+ */
38
+ declare const showXHRErrorNotification: (error: ErrorResponse) => _reduxjs_toolkit.AsyncThunkAction<void, ShowNotificationArguments, {
39
+ state?: unknown;
40
+ dispatch?: _reduxjs_toolkit.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
41
+ extra?: unknown;
42
+ rejectValue?: unknown;
43
+ serializedErrorType?: unknown;
44
+ pendingMeta?: unknown;
45
+ fulfilledMeta?: unknown;
46
+ rejectedMeta?: unknown;
47
+ }>;
48
+
49
+ /**
50
+ * Retrieve entrydate for the model catalog
51
+ */
52
+ declare const getEntryDate: (state: RootState) => ISO_DATE;
53
+
54
+ declare const reloadApplication: _reduxjs_toolkit.AsyncThunk<void, void, {
55
+ dispatch: BEIDispatch;
56
+ state: RootState;
57
+ extra: unknown;
58
+ rejectValue?: unknown;
59
+ serializedErrorType?: unknown;
60
+ pendingMeta?: unknown;
61
+ fulfilledMeta?: unknown;
62
+ rejectedMeta?: unknown;
63
+ }>;
64
+
65
+ /**
66
+ * Get the application model, which is the model with selfhref '/'
67
+ */
68
+ declare const getApplication: (state: RootState) => ApplicationModel | undefined;
69
+
70
+ declare const loginFailed: (errorMessage: string) => {
71
+ payload: string;
72
+ type: "AUTHENTICATION_ERROR";
73
+ };
74
+ declare const changePassword: _reduxjs_toolkit.AsyncThunk<{
75
+ payload: {
76
+ location: string | RouterLocation;
77
+ state: LocationState;
78
+ };
79
+ type: string;
80
+ }, void, {
81
+ state: RootState;
82
+ dispatch?: _reduxjs_toolkit.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
83
+ extra?: unknown;
84
+ rejectValue?: unknown;
85
+ serializedErrorType?: unknown;
86
+ pendingMeta?: unknown;
87
+ fulfilledMeta?: unknown;
88
+ rejectedMeta?: unknown;
89
+ }>;
90
+ declare const login: _reduxjs_toolkit.AsyncThunk<void, {
91
+ username: string;
92
+ password: string;
93
+ }, {
94
+ state: RootState;
95
+ dispatch: BEIDispatch;
96
+ extra?: unknown;
97
+ rejectValue?: unknown;
98
+ serializedErrorType?: unknown;
99
+ pendingMeta?: unknown;
100
+ fulfilledMeta?: unknown;
101
+ rejectedMeta?: unknown;
102
+ }>;
103
+
104
+ declare const logout: _reduxjs_toolkit.AsyncThunk<void, void, {
105
+ dispatch: BEIDispatch;
106
+ state?: unknown;
107
+ extra?: unknown;
108
+ rejectValue?: unknown;
109
+ serializedErrorType?: unknown;
110
+ pendingMeta?: unknown;
111
+ fulfilledMeta?: unknown;
112
+ rejectedMeta?: unknown;
113
+ }>;
114
+
115
+ declare const handleUnauthorized: _reduxjs_toolkit.AsyncThunk<void, ErrorResponse, {
116
+ state: RootState;
117
+ dispatch: BEIDispatch;
118
+ extra?: unknown;
119
+ rejectValue?: unknown;
120
+ serializedErrorType?: unknown;
121
+ pendingMeta?: unknown;
122
+ fulfilledMeta?: unknown;
123
+ rejectedMeta?: unknown;
124
+ }>;
125
+
126
+ declare const getDataFromServer: () => Record<string, unknown>;
127
+
128
+ declare const updateFormAttribute: _reduxjs_toolkit.AsyncThunk<void, {
129
+ form: FormModel;
130
+ formObject: FormObjectModel;
131
+ attribute: AttributeModel;
132
+ inputvalue: string;
133
+ options?: UpdateFormOptions;
134
+ }, {
135
+ dispatch: BEIDispatch;
136
+ state?: unknown;
137
+ extra?: unknown;
138
+ rejectValue?: unknown;
139
+ serializedErrorType?: unknown;
140
+ pendingMeta?: unknown;
141
+ fulfilledMeta?: unknown;
142
+ rejectedMeta?: unknown;
143
+ }>;
144
+
145
+ /**
146
+ * POSSIBLE AUTOSAVE STATUSSES
147
+ * @type {{START: string, FINISHED: string}}
148
+ */
149
+ declare enum AUTOSAVE_STATUS {
150
+ START = 0,
151
+ FINISHED = 1
152
+ }
153
+ declare const autosaveFormObject: (form: FormModel) => (dispatch: BEIDispatch) => void | undefined;
154
+
155
+ declare const autosubmitFormObject: (form: FormModel, attribute: AttributeModel, forceUpdate?: boolean) => _reduxjs_toolkit.AsyncThunkAction<FetchModelResult, FetchModelPayload, {
156
+ dispatch: BEIDispatch;
157
+ state: RootState;
158
+ rejectValue: _beinformed_ui_models.ErrorResponse;
159
+ extra?: unknown;
160
+ serializedErrorType?: unknown;
161
+ pendingMeta?: unknown;
162
+ fulfilledMeta?: unknown;
163
+ rejectedMeta?: unknown;
164
+ }> | null;
165
+
166
+ declare const autoupdateFormObject: (form: FormModel, attribute: AttributeModel) => _reduxjs_toolkit.AsyncThunkAction<FetchModelResult, FetchModelPayload, {
167
+ dispatch: BEIDispatch;
168
+ state: RootState;
169
+ rejectValue: _beinformed_ui_models.ErrorResponse;
170
+ extra?: unknown;
171
+ serializedErrorType?: unknown;
172
+ pendingMeta?: unknown;
173
+ fulfilledMeta?: unknown;
174
+ rejectedMeta?: unknown;
175
+ }> | null;
176
+
177
+ declare const previousObject: (form: FormModel) => {
178
+ payload: _beinformed_ui_models.ModularUIModel;
179
+ type: "MODULARUI/UPDATE_FORM";
180
+ };
181
+ declare const cancelForm: _reduxjs_toolkit.AsyncThunk<{
182
+ payload: undefined;
183
+ type: string;
184
+ }, FormModel, {
185
+ dispatch: BEIDispatch;
186
+ state: RootState;
187
+ extra?: unknown;
188
+ rejectValue?: unknown;
189
+ serializedErrorType?: unknown;
190
+ pendingMeta?: unknown;
191
+ fulfilledMeta?: unknown;
192
+ rejectedMeta?: unknown;
193
+ }>;
194
+
195
+ declare const addRepeatableAttributeSet: (form: FormModel) => {
196
+ payload: _beinformed_ui_models.ModularUIModel;
197
+ type: "MODULARUI/UPDATE_FORM";
198
+ };
199
+ declare const cancelRepeatableAttributeSet: (form: FormModel, formObject: FormObjectModel) => {
200
+ payload: _beinformed_ui_models.ModularUIModel;
201
+ type: "MODULARUI/UPDATE_FORM";
202
+ };
203
+ declare const removeRepeatableAttributeSet: (form: FormModel, formObject: FormObjectModel) => {
204
+ payload: _beinformed_ui_models.ModularUIModel;
205
+ type: "MODULARUI/UPDATE_FORM";
206
+ };
207
+
208
+ declare const validateFormObject: (form: FormModel) => (dispatch: BEIDispatch) => void;
209
+
210
+ /**
211
+ * Retrieve the locale from state
212
+ */
213
+ declare const getLocale: (state: RootState) => string;
214
+ /**
215
+ * Retrieve all available locales in the store
216
+ */
217
+ declare const getLocales: (state: RootState) => Locales;
218
+
219
+ declare enum MODULARUI_STATUS {
220
+ IDLE = "IDLE",
221
+ LOADING = "LOADING",
222
+ FINISHED = "FINISHED",
223
+ ERROR = "ERROR"
224
+ }
225
+
226
+ declare const fetchModel: _reduxjs_toolkit.AsyncThunk<FetchModelResult, FetchModelPayload, {
227
+ dispatch: BEIDispatch;
228
+ state: RootState;
229
+ rejectValue: ErrorResponse;
230
+ extra?: unknown;
231
+ serializedErrorType?: unknown;
232
+ pendingMeta?: unknown;
233
+ fulfilledMeta?: unknown;
234
+ rejectedMeta?: unknown;
235
+ }>;
236
+
237
+ declare const updateErrorStatus: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[key: string, error: ErrorResponse], {
238
+ key: string;
239
+ error: ErrorResponse;
240
+ }, "MODULARUI/ERROR_STATUS", never, never>;
241
+ declare const setModel: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[key: string, model: ModularUIModel], {
242
+ key: string;
243
+ model: ModularUIModel;
244
+ }, "MODULARUI/SET", never, never>;
245
+ declare const initModels: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[models: {
246
+ key: string;
247
+ model: ModularUIModel;
248
+ }[]], {
249
+ key: string;
250
+ model: ModularUIModel;
251
+ }[], "MODULARUI/INIT", never, never>;
252
+ declare const updateModel: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[model: ModularUIModel], ModularUIModel, "MODULARUI/UPDATE", never, never>;
253
+ declare const updateForm: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[model: ModularUIModel], ModularUIModel, "MODULARUI/UPDATE_FORM", never, never>;
254
+ declare const removeModelByKey: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[key: string], string, "MODULARUI/REMOVE_KEY", never, never>;
255
+ /**
256
+ * Removes all models except the application model from the modular ui reducer
257
+ */
258
+ declare const resetModularUI: _reduxjs_toolkit.ActionCreatorWithoutPayload<"MODULARUI/RESET">;
259
+
260
+ declare const reloadModel: (model: ModularUIModel, options?: ModularUIRequestOptions) => _reduxjs_toolkit.AsyncThunkAction<FetchModelResult, FetchModelPayload, {
261
+ dispatch: BEIDispatch;
262
+ state: RootState;
263
+ rejectValue: _beinformed_ui_models.ErrorResponse;
264
+ extra?: unknown;
265
+ serializedErrorType?: unknown;
266
+ pendingMeta?: unknown;
267
+ fulfilledMeta?: unknown;
268
+ rejectedMeta?: unknown;
269
+ }>;
270
+
271
+ /**
272
+ * Retrieve the preferred language for this request, falls back to the browser language or english
273
+ */
274
+ declare const getRequestLocale: (optionLocale: string | undefined, currentStateLocale: string) => string;
275
+
276
+ declare const setServerPreference: (propertyName: string, defaultValue: PreferenceValue, type?: string) => {
277
+ payload: {
278
+ key: string;
279
+ value: PreferenceValue;
280
+ };
281
+ type: "SET_PREFERENCE";
282
+ };
283
+ declare const setThemePreference: (configTheme: string) => {
284
+ payload: {
285
+ key: string;
286
+ value: PreferenceValue;
287
+ };
288
+ type: "SET_PREFERENCE";
289
+ };
290
+ /**
291
+ * Make modular-ui-content-in-data preference available client side
292
+ */
293
+ declare const setAllContentInDataSetting: (state?: RootState) => {
294
+ payload: {
295
+ key: string;
296
+ value: PreferenceValue;
297
+ };
298
+ type: "SET_PREFERENCE";
299
+ };
300
+ /**
301
+ * Retrieve settings for date time conversion
302
+ */
303
+ declare const setDateTimeSettings: (state?: RootState) => {
304
+ payload: {
305
+ key: string;
306
+ value: PreferenceValue;
307
+ };
308
+ type: "SET_PREFERENCE";
309
+ };
310
+ /**
311
+ * Retrieves login settings from runtime preferences and sets them as setting in the preference reducer
312
+ */
313
+ declare const setLoginPreferences: (state?: RootState) => {
314
+ payload: {
315
+ [x: string]: PreferenceValue;
316
+ };
317
+ type: "SET_PREFERENCES";
318
+ };
319
+
320
+ /**
321
+ * Returns a singleton instance of the browser history.
322
+ * Creates the instance on the first call.
323
+ * This pattern is suitable for client-side applications.
324
+ */
325
+ declare function getBrowserHistory(): History;
326
+
327
+ declare const push: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[location: string | RouterLocation, state?: unknown], {
328
+ location: string | RouterLocation;
329
+ state: unknown;
330
+ }, "ROUTER/PUSH", never, never>;
331
+ declare const replace: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[location: string | RouterLocation, state?: unknown], {
332
+ location: string | RouterLocation;
333
+ state: unknown;
334
+ }, "ROUTER/REPLACE", never, never>;
335
+ declare const go: _reduxjs_toolkit.ActionCreatorWithPreparedPayload<[delta: number], {
336
+ delta: number;
337
+ }, "ROUTER/GO", never, never>;
338
+ declare const goBack: _reduxjs_toolkit.ActionCreatorWithoutPayload<"ROUTER/GOBACK">;
339
+ declare const goForward: _reduxjs_toolkit.ActionCreatorWithoutPayload<"ROUTER/GOFORWARD">;
340
+
341
+ declare const routerMiddleware: (history: History) => Middleware<{}, RootState>;
342
+
343
+ declare const useBEIDispatch: react_redux.UseDispatch<_reduxjs_toolkit.ThunkDispatch<{
344
+ router: RouterState;
345
+ preferences: PreferencesState;
346
+ modularui: ModularUIState;
347
+ i18n: I18nState;
348
+ auth: AuthState;
349
+ error: ErrorState;
350
+ modals: ModalsState;
351
+ modelcatalog: ModelCatalogState;
352
+ notification: NotificationState;
353
+ progressindicator: ProgressIndicatorState;
354
+ }, undefined, redux.UnknownAction> & redux.Dispatch<redux.UnknownAction>>;
355
+ declare const useBEISelector: react_redux.UseSelector<{
356
+ router: RouterState;
357
+ preferences: PreferencesState;
358
+ modularui: ModularUIState;
359
+ i18n: I18nState;
360
+ auth: AuthState;
361
+ error: ErrorState;
362
+ modals: ModalsState;
363
+ modelcatalog: ModelCatalogState;
364
+ notification: NotificationState;
365
+ progressindicator: ProgressIndicatorState;
366
+ }>;
367
+ declare const useBEIStore: react_redux.UseStore<_reduxjs_toolkit.EnhancedStore<{
368
+ router: RouterState;
369
+ preferences: PreferencesState;
370
+ modularui: ModularUIState;
371
+ i18n: I18nState;
372
+ auth: AuthState;
373
+ error: ErrorState;
374
+ modals: ModalsState;
375
+ modelcatalog: ModelCatalogState;
376
+ notification: NotificationState;
377
+ progressindicator: ProgressIndicatorState;
378
+ }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
379
+ dispatch: _reduxjs_toolkit.ThunkDispatch<{
380
+ router: RouterState;
381
+ preferences: PreferencesState;
382
+ modularui: ModularUIState;
383
+ i18n: I18nState;
384
+ auth: AuthState;
385
+ error: ErrorState;
386
+ modals: ModalsState;
387
+ modelcatalog: ModelCatalogState;
388
+ notification: NotificationState;
389
+ progressindicator: ProgressIndicatorState;
390
+ }, undefined, redux.UnknownAction>;
391
+ }>, redux.StoreEnhancer]>>>;
392
+
393
+ declare const noAction: _reduxjs_toolkit.ActionCreatorWithoutPayload<"NO_ACTION">;
394
+
395
+ declare const getFirstModelByInstance: <T extends new (...args: unknown[]) => unknown>(state: RootState, instance: T) => InstanceType<T> | undefined;
396
+ /**
397
+ * Returns all model keys found in the store, restrict on href
398
+ */
399
+ declare const allKeysByHref: (state: RootState, href: Href | string) => string[];
400
+
401
+ type DefaultHandler = typeof defaultErrorResponseHandler;
402
+ declare const defaultErrorResponseHandler: (error: ErrorResponse) => (dispatch: BEIDispatch) => {
403
+ payload: undefined;
404
+ type: "CHANGE_PASSWORD";
405
+ } | {
406
+ payload: ErrorResponse;
407
+ type: "SAVE_ERROR";
408
+ } | (Promise<_reduxjs_toolkit.PayloadAction<void, string, {
409
+ arg: ShowNotificationArguments;
410
+ requestId: string;
411
+ requestStatus: "fulfilled";
412
+ }, never> | _reduxjs_toolkit.PayloadAction<unknown, string, {
413
+ arg: ShowNotificationArguments;
414
+ requestId: string;
415
+ requestStatus: "rejected";
416
+ aborted: boolean;
417
+ condition: boolean;
418
+ } & ({
419
+ rejectedWithValue: true;
420
+ } | ({
421
+ rejectedWithValue: false;
422
+ } & {})), _reduxjs_toolkit.SerializedError>> & {
423
+ __linterBrands: "SafePromise";
424
+ } & {
425
+ abort: (reason?: string) => void;
426
+ requestId: string;
427
+ arg: ShowNotificationArguments;
428
+ unwrap: () => Promise<void>;
429
+ }) | {
430
+ payload: undefined;
431
+ type: "NO_ACTION";
432
+ } | (Promise<_reduxjs_toolkit.PayloadAction<void, string, {
433
+ arg: ErrorResponse;
434
+ requestId: string;
435
+ requestStatus: "fulfilled";
436
+ }, never> | _reduxjs_toolkit.PayloadAction<unknown, string, {
437
+ arg: ErrorResponse;
438
+ requestId: string;
439
+ requestStatus: "rejected";
440
+ aborted: boolean;
441
+ condition: boolean;
442
+ } & ({
443
+ rejectedWithValue: true;
444
+ } | ({
445
+ rejectedWithValue: false;
446
+ } & {})), _reduxjs_toolkit.SerializedError>> & {
447
+ __linterBrands: "SafePromise";
448
+ } & {
449
+ abort: (reason?: string) => void;
450
+ requestId: string;
451
+ arg: ErrorResponse;
452
+ unwrap: () => Promise<void>;
453
+ }) | undefined;
454
+ type CustomErrorResponseHandler = (error: ErrorResponse, defaultHandler: DefaultHandler) => (dispatch: BEIDispatch) => void;
455
+ declare const setCustomErrorResponseHandler: (handler: CustomErrorResponseHandler) => void;
456
+ declare const handleError: (error: unknown) => (dispatch: BEIDispatch) => void;
457
+
458
+ export { AUTOSAVE_STATUS, AuthState, BEIDispatch, ErrorState, FetchModelPayload, FetchModelResult, I18nState, MODULARUI_STATUS, ModalsState, ModelCatalogState, ModularUIState, NotificationState, PreferenceValue, PreferencesState, ProgressIndicatorState, RootState, RouterLocation, RouterState, ShowNotificationArguments, addRepeatableAttributeSet, allKeysByHref, autosaveFormObject, autosubmitFormObject, autoupdateFormObject, cancelForm, cancelRepeatableAttributeSet, changePassword, fetchModel, getApplication, getBrowserHistory, getDataFromServer, getEntryDate, getFirstModelByInstance, getLocale, getLocales, getRequestLocale, go, goBack, goForward, handleError, handleUnauthorized, initModels, login, loginFailed, logout, noAction, previousObject, push, reloadApplication, reloadModel, removeModelByKey, removeRepeatableAttributeSet, replace, resetModularUI, routerMiddleware, setAllContentInDataSetting, setCustomErrorResponseHandler, setDateTimeSettings, setLoginPreferences, setModel, setServerPreference, setThemePreference, showFormNotification, showXHRErrorNotification, updateErrorStatus, updateForm, updateFormAttribute, updateModel, useBEIDispatch, useBEISelector, useBEIStore, validateFormObject };
@@ -0,0 +1,2 @@
1
+ import"../chunk-6E5DAS6G.js";import{b as h}from"../chunk-VFLYA5WJ.js";import{a as oa,b as pa,c as qa,d as ra,e as sa,f as ta,g as ua,h as va,i as wa,j as xa,k as ya,l as za,m as Aa,n as Ba,o as Ca,p as Da,q as Ea}from"../chunk-Z2Y3OPVI.js";import{a as g,c as y,d as E,e as F,f as ha,g as ia,h as ja,i as ka}from"../chunk-3OP2KQ56.js";import{A as H,B as M,C as N,D as O,E as P,F as S,G as T,H as U,I as V,J as W,K as X,L as Y,M as Z,N as _,O as $,P as aa,Q as ba,R as ca,S as da,T as ea,U as fa,V as ga,a,b,c,d,e,f,i,j,o as k,p as l,q as m,r as n,s as o,t as p,u as z,v as A,w as B,x as C,y as D,z as G}from"../chunk-Y7ESITVO.js";import{f as I,g as J,h as K,i as L}from"../chunk-YG7XDCNV.js";import{a as Q,b as R}from"../chunk-JYAETKRB.js";import{b as q,c as r,d as s,e as t,f as u,g as v,h as w,i as x}from"../chunk-K3DTH6XN.js";import"../chunk-WBPDMDW4.js";import{h as la,i as ma,j as na}from"../chunk-6KRECIRI.js";import"../chunk-FW4363Y4.js";export{sa as AUTOSAVE_STATUS,P as MODULARUI_STATUS,k as NOTIFICATION_TYPES,Aa as addRepeatableAttributeSet,_ as allKeysByHref,f as authReducer,ta as autosaveFormObject,ua as autosubmitFormObject,va as autoupdateFormObject,za as cancelForm,Ba as cancelRepeatableAttributeSet,pa as changePassword,N as closeModal,m as dismissNotification,H as errorReducer,ga as fetchModel,$ as getApplication,y as getBrowserHistory,h as getDataFromServer,Da as getEntryDate,Z as getFirstModelByInstance,Q as getLocale,R as getLocales,fa as getRequestLocale,B as go,C as goBack,D as goForward,g as handleBeforeRenderHooks,ea as handleError,ba as handleUnauthorized,L as i18nReducer,U as initModels,E as locationChange,qa as login,oa as loginFailed,a as loginSuccess,ra as logout,b as logoutSuccess,O as modalsReducer,j as modelCatalogReducer,ha as modularUIReducer,ca as noAction,n as notificationReducer,s as preferencesReducer,ya as previousObject,ia as progressIndicatorReducer,z as push,I as receiveLocale,aa as reloadApplication,Ea as reloadModel,X as removeModelByKey,Ca as removeRepeatableAttributeSet,A as replace,d as resetAuthErrors,Y as resetModularUI,ja as routerMiddleware,F as routerReducer,e as saveChangePassword,G as saveError,c as sendAuthenticationError,v as setAllContentInDataSetting,da as setCustomErrorResponseHandler,w as setDateTimeSettings,K as setLocales,x as setLoginPreferences,T as setModel,q as setPreference,r as setPreferences,t as setServerPreference,u as setThemePreference,ka as setupStore,o as showFormNotification,M as showModal,l as showNotification,p as showXHRErrorNotification,i as updateEntryDate,S as updateErrorStatus,W as updateForm,xa as updateFormAttribute,J as updateLocale,V as updateModel,la as useBEIDispatch,ma as useBEISelector,na as useBEIStore,wa as validateFormObject};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";var Ja=Object.create;var G=Object.defineProperty;var Xa=Object.getOwnPropertyDescriptor;var Ya=Object.getOwnPropertyNames;var Za=Object.getPrototypeOf,Qa=Object.prototype.hasOwnProperty;var n=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),en=(e,t)=>{for(var r in t)G(e,r,{get:t[r],enumerable:!0})},Ue=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ya(t))!Qa.call(e,a)&&a!==r&&G(e,a,{get:()=>t[a],enumerable:!(o=Xa(t,a))||o.enumerable});return e};var C=(e,t,r)=>(r=e!=null?Ja(Za(e)):{},Ue(t||!e||!e.__esModule?G(r,"default",{value:e,enumerable:!0}):r,e)),tn=e=>Ue(G({},"__esModule",{value:!0}),e);var Je=n((wd,We)=>{"use strict";function rn(e,t){for(var r=-1,o=t.length,a=e.length;++r<o;)e[a+r]=t[r];return e}We.exports=rn});var Ye=n((Pd,Xe)=>{"use strict";var on=typeof global=="object"&&global&&global.Object===Object&&global;Xe.exports=on});var J=n((Ad,Ze)=>{"use strict";var an=Ye(),nn=typeof self=="object"&&self&&self.Object===Object&&self,sn=an||nn||Function("return this")();Ze.exports=sn});var A=n((kd,Qe)=>{"use strict";var ln=J(),dn=ln.Symbol;Qe.exports=dn});var ot=n((Od,rt)=>{"use strict";var et=A(),tt=Object.prototype,cn=tt.hasOwnProperty,mn=tt.toString,k=et?et.toStringTag:void 0;function un(e){var t=cn.call(e,k),r=e[k];try{e[k]=void 0;var o=!0}catch{}var a=mn.call(e);return o&&(t?e[k]=r:delete e[k]),a}rt.exports=un});var nt=n((Dd,at)=>{"use strict";var pn=Object.prototype,fn=pn.toString;function gn(e){return fn.call(e)}at.exports=gn});var O=n((Nd,lt)=>{"use strict";var it=A(),hn=ot(),yn=nt(),vn="[object Null]",bn="[object Undefined]",st=it?it.toStringTag:void 0;function Sn(e){return e==null?e===void 0?bn:vn:st&&st in Object(e)?hn(e):yn(e)}lt.exports=Sn});var D=n((_d,dt)=>{"use strict";function Cn(e){return e!=null&&typeof e=="object"}dt.exports=Cn});var mt=n((Ld,ct)=>{"use strict";var Rn=O(),En=D(),In="[object Arguments]";function xn(e){return En(e)&&Rn(e)==In}ct.exports=xn});var pe=n((jd,ft)=>{"use strict";var ut=mt(),Tn=D(),pt=Object.prototype,Mn=pt.hasOwnProperty,wn=pt.propertyIsEnumerable,Pn=ut(function(){return arguments}())?ut:function(e){return Tn(e)&&Mn.call(e,"callee")&&!wn.call(e,"callee")};ft.exports=Pn});var E=n((Fd,gt)=>{"use strict";var An=Array.isArray;gt.exports=An});var bt=n(($d,vt)=>{"use strict";var ht=A(),kn=pe(),On=E(),yt=ht?ht.isConcatSpreadable:void 0;function Dn(e){return On(e)||kn(e)||!!(yt&&e&&e[yt])}vt.exports=Dn});var Rt=n((Ud,Ct)=>{"use strict";var Nn=Je(),_n=bt();function St(e,t,r,o,a){var i=-1,l=e.length;for(r||(r=_n),a||(a=[]);++i<l;){var s=e[i];t>0&&r(s)?t>1?St(s,t-1,r,o,a):Nn(a,s):o||(a[a.length]=s)}return a}Ct.exports=St});var It=n((Hd,Et)=>{"use strict";var Ln=Rt(),jn=1/0;function Fn(e){var t=e==null?0:e.length;return t?Ln(e,jn):[]}Et.exports=Fn});var Tt=n((qd,xt)=>{"use strict";function $n(e,t){return function(r){return e(t(r))}}xt.exports=$n});var wt=n((Bd,Mt)=>{"use strict";var Un=Tt(),Hn=Un(Object.getPrototypeOf,Object);Mt.exports=Hn});var fe=n((zd,At)=>{"use strict";var qn=O(),Bn=wt(),zn=D(),Gn="[object Object]",Vn=Function.prototype,Kn=Object.prototype,Pt=Vn.toString,Wn=Kn.hasOwnProperty,Jn=Pt.call(Object);function Xn(e){if(!zn(e)||qn(e)!=Gn)return!1;var t=Bn(e);if(t===null)return!0;var r=Wn.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Pt.call(r)==Jn}At.exports=Xn});var Bt=n((tc,qt)=>{"use strict";var ei=Object.prototype,ti=ei.hasOwnProperty;function ri(e,t){return e!=null&&ti.call(e,t)}qt.exports=ri});var Q=n((rc,zt)=>{"use strict";var oi=O(),ai=D(),ni="[object Symbol]";function ii(e){return typeof e=="symbol"||ai(e)&&oi(e)==ni}zt.exports=ii});var Vt=n((oc,Gt)=>{"use strict";var si=E(),li=Q(),di=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ci=/^\w*$/;function mi(e,t){if(si(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||li(e)?!0:ci.test(e)||!di.test(e)||t!=null&&e in Object(t)}Gt.exports=mi});var Se=n((ac,Kt)=>{"use strict";function ui(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Kt.exports=ui});var Jt=n((nc,Wt)=>{"use strict";var pi=O(),fi=Se(),gi="[object AsyncFunction]",hi="[object Function]",yi="[object GeneratorFunction]",vi="[object Proxy]";function bi(e){if(!fi(e))return!1;var t=pi(e);return t==hi||t==yi||t==gi||t==vi}Wt.exports=bi});var Yt=n((ic,Xt)=>{"use strict";var Si=J(),Ci=Si["__core-js_shared__"];Xt.exports=Ci});var er=n((sc,Qt)=>{"use strict";var Ce=Yt(),Zt=function(){var e=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ri(e){return!!Zt&&Zt in e}Qt.exports=Ri});var rr=n((lc,tr)=>{"use strict";var Ei=Function.prototype,Ii=Ei.toString;function xi(e){if(e!=null){try{return Ii.call(e)}catch{}try{return e+""}catch{}}return""}tr.exports=xi});var ar=n((dc,or)=>{"use strict";var Ti=Jt(),Mi=er(),wi=Se(),Pi=rr(),Ai=/[\\^$.*+?()[\]{}|]/g,ki=/^\[object .+?Constructor\]$/,Oi=Function.prototype,Di=Object.prototype,Ni=Oi.toString,_i=Di.hasOwnProperty,Li=RegExp("^"+Ni.call(_i).replace(Ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ji(e){if(!wi(e)||Mi(e))return!1;var t=Ti(e)?Li:ki;return t.test(Pi(e))}or.exports=ji});var ir=n((cc,nr)=>{"use strict";function Fi(e,t){return e?.[t]}nr.exports=Fi});var Re=n((mc,sr)=>{"use strict";var $i=ar(),Ui=ir();function Hi(e,t){var r=Ui(e,t);return $i(r)?r:void 0}sr.exports=Hi});var N=n((uc,lr)=>{"use strict";var qi=Re(),Bi=qi(Object,"create");lr.exports=Bi});var mr=n((pc,cr)=>{"use strict";var dr=N();function zi(){this.__data__=dr?dr(null):{},this.size=0}cr.exports=zi});var pr=n((fc,ur)=>{"use strict";function Gi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}ur.exports=Gi});var gr=n((gc,fr)=>{"use strict";var Vi=N(),Ki="__lodash_hash_undefined__",Wi=Object.prototype,Ji=Wi.hasOwnProperty;function Xi(e){var t=this.__data__;if(Vi){var r=t[e];return r===Ki?void 0:r}return Ji.call(t,e)?t[e]:void 0}fr.exports=Xi});var yr=n((hc,hr)=>{"use strict";var Yi=N(),Zi=Object.prototype,Qi=Zi.hasOwnProperty;function es(e){var t=this.__data__;return Yi?t[e]!==void 0:Qi.call(t,e)}hr.exports=es});var br=n((yc,vr)=>{"use strict";var ts=N(),rs="__lodash_hash_undefined__";function os(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ts&&t===void 0?rs:t,this}vr.exports=os});var Cr=n((vc,Sr)=>{"use strict";var as=mr(),ns=pr(),is=gr(),ss=yr(),ls=br();function I(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}I.prototype.clear=as;I.prototype.delete=ns;I.prototype.get=is;I.prototype.has=ss;I.prototype.set=ls;Sr.exports=I});var Er=n((bc,Rr)=>{"use strict";function ds(){this.__data__=[],this.size=0}Rr.exports=ds});var xr=n((Sc,Ir)=>{"use strict";function cs(e,t){return e===t||e!==e&&t!==t}Ir.exports=cs});var _=n((Cc,Tr)=>{"use strict";var ms=xr();function us(e,t){for(var r=e.length;r--;)if(ms(e[r][0],t))return r;return-1}Tr.exports=us});var wr=n((Rc,Mr)=>{"use strict";var ps=_(),fs=Array.prototype,gs=fs.splice;function hs(e){var t=this.__data__,r=ps(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():gs.call(t,r,1),--this.size,!0}Mr.exports=hs});var Ar=n((Ec,Pr)=>{"use strict";var ys=_();function vs(e){var t=this.__data__,r=ys(t,e);return r<0?void 0:t[r][1]}Pr.exports=vs});var Or=n((Ic,kr)=>{"use strict";var bs=_();function Ss(e){return bs(this.__data__,e)>-1}kr.exports=Ss});var Nr=n((xc,Dr)=>{"use strict";var Cs=_();function Rs(e,t){var r=this.__data__,o=Cs(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Dr.exports=Rs});var Lr=n((Tc,_r)=>{"use strict";var Es=Er(),Is=wr(),xs=Ar(),Ts=Or(),Ms=Nr();function x(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}x.prototype.clear=Es;x.prototype.delete=Is;x.prototype.get=xs;x.prototype.has=Ts;x.prototype.set=Ms;_r.exports=x});var Fr=n((Mc,jr)=>{"use strict";var ws=Re(),Ps=J(),As=ws(Ps,"Map");jr.exports=As});var Hr=n((wc,Ur)=>{"use strict";var $r=Cr(),ks=Lr(),Os=Fr();function Ds(){this.size=0,this.__data__={hash:new $r,map:new(Os||ks),string:new $r}}Ur.exports=Ds});var Br=n((Pc,qr)=>{"use strict";function Ns(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}qr.exports=Ns});var L=n((Ac,zr)=>{"use strict";var _s=Br();function Ls(e,t){var r=e.__data__;return _s(t)?r[typeof t=="string"?"string":"hash"]:r.map}zr.exports=Ls});var Vr=n((kc,Gr)=>{"use strict";var js=L();function Fs(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}Gr.exports=Fs});var Wr=n((Oc,Kr)=>{"use strict";var $s=L();function Us(e){return $s(this,e).get(e)}Kr.exports=Us});var Xr=n((Dc,Jr)=>{"use strict";var Hs=L();function qs(e){return Hs(this,e).has(e)}Jr.exports=qs});var Zr=n((Nc,Yr)=>{"use strict";var Bs=L();function zs(e,t){var r=Bs(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Yr.exports=zs});var eo=n((_c,Qr)=>{"use strict";var Gs=Hr(),Vs=Vr(),Ks=Wr(),Ws=Xr(),Js=Zr();function T(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}T.prototype.clear=Gs;T.prototype.delete=Vs;T.prototype.get=Ks;T.prototype.has=Ws;T.prototype.set=Js;Qr.exports=T});var oo=n((Lc,ro)=>{"use strict";var to=eo(),Xs="Expected a function";function Ee(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Xs);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],i=r.cache;if(i.has(a))return i.get(a);var l=e.apply(this,o);return r.cache=i.set(a,l)||i,l};return r.cache=new(Ee.Cache||to),r}Ee.Cache=to;ro.exports=Ee});var no=n((jc,ao)=>{"use strict";var Ys=oo(),Zs=500;function Qs(e){var t=Ys(e,function(o){return r.size===Zs&&r.clear(),o}),r=t.cache;return t}ao.exports=Qs});var so=n((Fc,io)=>{"use strict";var el=no(),tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rl=/\\(\\)?/g,ol=el(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tl,function(r,o,a,i){t.push(a?i.replace(rl,"$1"):o||r)}),t});io.exports=ol});var co=n(($c,lo)=>{"use strict";function al(e,t){for(var r=-1,o=e==null?0:e.length,a=Array(o);++r<o;)a[r]=t(e[r],r,e);return a}lo.exports=al});var ho=n((Uc,go)=>{"use strict";var mo=A(),nl=co(),il=E(),sl=Q(),ll=1/0,uo=mo?mo.prototype:void 0,po=uo?uo.toString:void 0;function fo(e){if(typeof e=="string")return e;if(il(e))return nl(e,fo)+"";if(sl(e))return po?po.call(e):"";var t=e+"";return t=="0"&&1/e==-ll?"-0":t}go.exports=fo});var vo=n((Hc,yo)=>{"use strict";var dl=ho();function cl(e){return e==null?"":dl(e)}yo.exports=cl});var So=n((qc,bo)=>{"use strict";var ml=E(),ul=Vt(),pl=so(),fl=vo();function gl(e,t){return ml(e)?e:ul(e,t)?[e]:pl(fl(e))}bo.exports=gl});var Ro=n((Bc,Co)=>{"use strict";var hl=9007199254740991,yl=/^(?:0|[1-9]\d*)$/;function vl(e,t){var r=typeof e;return t=t??hl,!!t&&(r=="number"||r!="symbol"&&yl.test(e))&&e>-1&&e%1==0&&e<t}Co.exports=vl});var Io=n((zc,Eo)=>{"use strict";var bl=9007199254740991;function Sl(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bl}Eo.exports=Sl});var To=n((Gc,xo)=>{"use strict";var Cl=Q(),Rl=1/0;function El(e){if(typeof e=="string"||Cl(e))return e;var t=e+"";return t=="0"&&1/e==-Rl?"-0":t}xo.exports=El});var wo=n((Vc,Mo)=>{"use strict";var Il=So(),xl=pe(),Tl=E(),Ml=Ro(),wl=Io(),Pl=To();function Al(e,t,r){t=Il(t,e);for(var o=-1,a=t.length,i=!1;++o<a;){var l=Pl(t[o]);if(!(i=e!=null&&r(e,l)))break;e=e[l]}return i||++o!=a?i:(a=e==null?0:e.length,!!a&&wl(a)&&Ml(l,a)&&(Tl(e)||xl(e)))}Mo.exports=Al});var Ao=n((Kc,Po)=>{"use strict";var kl=Bt(),Ol=wo();function Dl(e,t){return e!=null&&Ol(e,t,kl)}Po.exports=Dl});var yd={};en(yd,{createHead:()=>Ut,dehydrate:()=>he,getCookieFromRequest:()=>Ht,getFullRequestLocation:()=>ve,getFullRequestUrl:()=>Qn,getPreferredLocale:()=>be,htmlpage:()=>ue,renderSSRMinimal:()=>ye,serverNoSSR:()=>hd,setApplication:()=>me,setServerPreferences:()=>$e,setServerPreferencesFromArray:()=>za});module.exports=tn(yd);var Ge=require("@beinformed/ui/modularui");var V=e=>e.i18n?.locale??"en";var g=require("@reduxjs/toolkit"),K=(0,g.createAction)("MODULARUI/ERROR_STATUS",(e,t)=>({payload:{key:e,error:t}})),He=(0,g.createAction)("MODULARUI/SET",(e,t)=>(t.connectKey=e,{payload:{key:e,model:t}})),W=(0,g.createAction)("MODULARUI/INIT",e=>({payload:e})),qe=(0,g.createAction)("MODULARUI/UPDATE",e=>({payload:e})),Be=(0,g.createAction)("MODULARUI/UPDATE_FORM",e=>({payload:e})),h=(0,g.createAction)("MODULARUI/REMOVE_KEY",e=>({payload:e})),ze=(0,g.createAction)("MODULARUI/RESET");var me=e=>{try{let t=V(e.getState()),r=new Ge.ModularUIRequest("/",{locale:t}).fetchSync();r.connectKey=`application(/)(${t})`,e.dispatch(W([{key:`application(/)(${t})`,model:r}]))}catch{}};var Ve=require("@beinformed/ui/settings");(function(){typeof __webpack_public_path__<"u"&&(__webpack_public_path__=`${(0,Ve.getContextPath)()}/`)})();var ue=e=>{if(e?.contextPath===void 0)throw new Error("Missing contextPath argument");if(e.html===void 0)throw new Error("Missing html for server");let{head:t={}}=e;return`
2
+ <!doctype html>
3
+ <html ${t.htmlAttributes?t.htmlAttributes.toString():""}>
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ ${Object.keys(t).filter(o=>o!=="htmlAttributes").map(o=>String(t[o])).join("")}
7
+ {CSSASSETS:<link rel="stylesheet" type="text/css" href="{CONTEXT_PATH}/{FILE}" />:CSSASSETS}
8
+ </head>
9
+ <body class="nojs">
10
+ <div id="application">${e.html}</div>
11
+ <div id="portal"></div>
12
+ <script
13
+ type="application/json"
14
+ data-app-state="app-json"
15
+ data-app-contextpath="{CONTEXT_PATH}"
16
+ data-app-filepath="{FILEPATH}"
17
+ data-app-nonce="${e.UUID??""}">${e.state??""}</script>
18
+ {JSASSETS:<script src="{CONTEXT_PATH}/{FILE}"></script>:JSASSETS}
19
+ </body>
20
+ </html>
21
+ `.replace(/{CONTEXT_PATH}/g,e.contextPath).trim()};var jt=require("@beinformed/ui/settings"),Ft=require("react-dom/server"),$t=require("react-redux"),Z=require("styled-components");var _t=require("styled-components");var R=require("react-redux"),xd=R.useDispatch.withTypes(),Ke=R.useSelector.withTypes(),Td=R.useStore.withTypes();var Ot=require("@beinformed/ui/settings"),Dt=C(It(),1),Nt=C(fe(),1),kt=e=>{let t=Object.keys(e).map(o=>`\\b${o}\\b`).join("|"),r=new RegExp(`\\$(${t})`,"g");return Object.entries(e).forEach(([o,a])=>{o!=="settings"&&typeof a=="string"&&(e[o]=a.replace(r,(i,l)=>{let s=e[l];return typeof s=="string"?s:i}))}),e},Yn=(e,...t)=>{let r=e?.settings??{},o={settings:{}};for(let a of t)if(typeof a=="function")o=a(kt(o));else if((0,Nt.default)(a)){let i=o.settings??{};o={...o,...a,...e},"settings"in a&&typeof a.settings=="object"&&(o.settings={...i,...a.settings,...r})}return kt(o)},X=(e,...t)=>{let r=(0,Dt.default)(t).filter(a=>a!=null),o=Yn(e,...r);return o?.settings&&(0,Ot.setSettings)(o.settings),o};var Lt=require("react/jsx-runtime"),ge=({theme:e,children:t})=>{let r=Ke(a=>a.preferences.theme),o=X(r,e);return(0,Lt.jsx)(_t.ThemeProvider,{theme:o,children:t})};ge.displayName="BI.ThemeProvider";var he=e=>{let t=e.getState(),r={};for(let a in t.modularui){let i=t.modularui[a];if(i){let{status:l,model:s,lastModification:m}=i;s?r[a]={status:l,lastModification:m,model:s}:r[a]={status:l,lastModification:m,model:void 0}}}let o={...t,modularui:r};return JSON.stringify(o).replace(/</g,"\\u003c")};var Y=require("react/jsx-runtime"),ye=({store:e,theme:t,UUID:r="",render:o,template:a=ue})=>{let i=new Z.ServerStyleSheet,l=(0,Ft.renderToString)((0,Y.jsx)($t.Provider,{store:e,children:(0,Y.jsx)(Z.StyleSheetManager,{sheet:i.instance,children:(0,Y.jsx)(ge,{theme:t,children:o()})})})),s=Ut(i);return a({contextPath:(0,jt.getContextPathServer)(),html:l,head:s,state:he(e),UUID:r})},Ut=(e,t)=>{let r=e.getStyleTags(),o=t?.helmet,a=t?[...o.meta]:[];return t?{...o,style:r,meta:a}:{style:r,meta:a}};var Zn=e=>{if(!e)return"";let t=[];return e.split("&").forEach(r=>{let[o,a]=r.split("=");o&&a?t.push(`${encodeURIComponent(o)}=${encodeURIComponent(a)}`):o&&t.push(encodeURIComponent(o))}),t.join("&")},Qn=e=>{let t=e.getPathInfo()||"/",r=e.getQueryString();return t=t.split("/").map(o=>encodeURIComponent(o)).join("/"),r?`${t}?${Zn(r)}`:t},ve=e=>({pathname:e.getPathInfo()||"/",search:e.getQueryString()||"",state:{},hash:""}),Ht=(e,t)=>e.getCookieByName(t),be=(e,t)=>{let o=Ht(e,"locale")||e.getHeader("Accept-Language");return o===null?t.availableLocaleCodes[0]:t.getPreferredLocale(o)};var Ga=require("@beinformed/ui/utils"),Va=C(Ao(),1);var Me=require("@beinformed/ui/exceptions"),Uo=require("@beinformed/ui/settings"),Ho=C(require("deepmerge"),1);var y=require("@beinformed/ui/utils"),F=require("@reduxjs/toolkit");var jo=require("@beinformed/ui/exceptions"),Fo=require("@beinformed/ui/models");var Oo=require("@beinformed/ui/exceptions"),Do=require("@beinformed/ui/settings"),Ie=C(require("format-message"),1),No=require("immer");var ko={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 j=class{[No.immerable]=!0;#o;#e;#t;#r;constructor(t){this.#o=t.code,this.#e=this.fixPlaceHoldersInObject(t.messages),this.#t=this.fixPlaceHoldersInObject(t.errors),this.#r=t.nativeName,Ie.default.setup({missingTranslation:"ignore"})}get code(){return this.#o}get nativeName(){if(this.#r)return this.#r;let t=this.code.split("-");if(t.length>0){let r=t[0];if(r){let o=ko.lang[r];if(o)return o[1]+(t[1]?` (${t[1].toUpperCase()})`:"")}}throw new Oo.IllegalStateException(`Can not find language name based on locale: ${this.code}`)}fixPlaceHolders(t){return typeof t=="string"?t.replace(/'\$\{(?<key>.*?)}'/g,"''{$<key>}''").replace(/\$\{(?<key>.*?)}/g,"{$<key>}"):null}fixPlaceHoldersInObject(t={}){return JSON.parse(JSON.stringify(t).replace(/'\$\{(?<key>.*?)}'/g,"''{$<key>}''").replace(/\$\{(?<key>.*?)}/g,"{$<key>}"))}getBaseMessage(t,r){if(!t&&!r)return"[message: id or defaultMessage missing]";let o=this.#e[t]||this.#t[t];return(typeof process>"u"||process.env.NODE_ENV!=="production")&&!o&&t&&(0,Do.getBooleanSetting)("DEBUG_I18N_MESSAGE_NOT_FOUND")&&console.debug(`Message with id ${t} not found for locale ${this.code} in layout translations`),o||this.fixPlaceHolders(r)||t}formatMessage(t,r){return r?(0,Ie.default)(t,r):t}getMessage(t,r,o){let a=this.getBaseMessage(t,r);return this.formatMessage(a,o)}update(t={},r={}){this.#e={...this.#e,...this.fixPlaceHoldersInObject(t)},this.#t={...this.#t,...this.fixPlaceHoldersInObject(r)}}};var _o={"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 Lo={"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 xe=[{code:"en",messages:{},errors:_o},{code:"nl",messages:{},errors:Lo}];var M=class e extends Fo.BaseCollection{constructor(t=xe){super(t.map(r=>new j(r)))}static rehydrate(t){return t&&t.collection?new e(t.collection.map(r=>({code:r.code,messages:r.messages,errors:r.errors}))):new e([])}hasLocale(t){return this.some(r=>t.startsWith(r.code))}getLocale(t){if(this.hasLocale(t)){let r=this.find(o=>t.startsWith(o.code));if(r)return r}throw new jo.IllegalArgumentException(`Locale configuration for locale ${t} not found`)}get availableLocaleCodes(){return this.map(t=>t.code)}getPreferredLocale(t){if(t!=null){let o=(t.match(/[-A-Za-z]{2,10}/gu)||[]).filter(a=>this.availableLocaleCodes.some(i=>a.startsWith(i))).map(a=>this.availableLocaleCodes.find(i=>a.startsWith(i)));if(o.length>0)return o[0]}return this.availableLocaleCodes[0]}update(t,r={},o={}){this.hasLocale(t)?this.getLocale(t).update(r,o):this.add(new j({code:t,messages:r,errors:o}))}};var Ll=(0,F.createAction)("UPDATE_LOCALE",e=>({payload:e})),Te=(0,F.createAction)("SET_LOCALES",(e,t)=>({payload:{locales:e,locale:t}})),jl=()=>typeof navigator<"u"&&navigator?.language&&navigator?.language.split("-")[0]||"en",Fl={locales:new M,locale:jl()},$o=(0,F.createReducer)(Fl,e=>{e.addCase(Ll,(t,r)=>{t.locales?.length>1?(0,y.setCookie)("locale",r.payload):(0,y.clearCookie)("locale"),y.Cache.clear(),t.locale=r.payload}).addCase(Te,(t,r)=>{let{locale:o,locales:a}=r.payload;t.locales.length>1?(0,y.setCookie)("locale",o):(0,y.clearCookie)("locale"),t.locales=a,o&&(t.locale=o)})});var qo=(e,t=[],r)=>{if(!Array.isArray(t))throw new Me.IllegalArgumentException("locales must be an array of objects");if(!r)throw new Me.IllegalArgumentException("missing request argument");let o=xe.map(s=>{let m=s.code,p=t.find(z=>z.code===m);return p?(0,Ho.default)(s,p):s});t.forEach(s=>{o.some(m=>m.code===s.code)||o.push(s)});let a=o.filter(s=>(0,Uo.getEnabledLocales)().includes(s.code)),i=new M(a),l=be(r,i);e.dispatch(Te(i,l??"en"))};var Bo=(e=[],t)=>{if(e.length>0)for(let r of e)r(t)};var B=require("@reduxjs/toolkit");var v=require("@reduxjs/toolkit"),$l={authenticated:!1,mustChangePassword:!1,error:null},Ul=(0,v.createAction)("AUTHENTICATION_SUCCESS"),we=(0,v.createAction)("AUTHENTICATION_LOGOUT"),Pe=(0,v.createAction)("AUTHENTICATION_ERROR",e=>({payload:e})),Hl=(0,v.createAction)("AUTHENTICATION_RESET_ERRORS"),Ae=(0,v.createAction)("CHANGE_PASSWORD"),zo=(0,v.createReducer)($l,e=>{e.addCase(Ul,t=>{t.authenticated=!0,t.error=null,t.mustChangePassword=!1}).addCase(Pe,(t,r)=>{t.authenticated=!1,t.error=r.payload,t.mustChangePassword=!1}).addCase(Hl,t=>{t.error=null}).addCase(we,t=>{t.authenticated=!1,t.error=null,t.mustChangePassword=!1}).addCase(Ae,t=>{t.authenticated=!0,t.error=null,t.mustChangePassword=!0})});var ee=require("@reduxjs/toolkit"),ke=(0,ee.createAction)("SAVE_ERROR",e=>({payload:e})),ql=null,Go=(0,ee.createReducer)(ql,e=>{e.addCase(ke,(t,r)=>r.payload)});var $=require("@reduxjs/toolkit"),Bl=(0,$.createAction)("SHOW_MODAL",e=>({payload:e})),zl=(0,$.createAction)("CLOSE_MODAL",e=>({payload:e})),Gl={modals:[]},Vo=(0,$.createReducer)(Gl,e=>{e.addCase(Bl,(t,r)=>{let o=r.payload;t.modals.forEach(i=>{i.visible=!1});let a=t.modals.find(i=>i.key===o);a?a.visible=!0:t.modals.push({key:o,visible:!0})}).addCase(zl,(t,r)=>{let o=r.payload;t.modals=t.modals.filter(i=>i.key!==o);let a=t.modals[t.modals.length-1];a&&(a.visible=!0)})});var Ko=require("@beinformed/ui/utils"),te=require("@reduxjs/toolkit"),Vl=(0,te.createAction)("UPDATE_ENTRYDATE",e=>({payload:e})),Kl={entryDate:new Date().toISOString().split("T")[0]},Wo=(0,te.createReducer)(Kl,e=>{e.addCase(Vl,(t,r)=>{Ko.Cache.addItem("ModelCatalogEntryDate",r.payload),t.entryDate=r.payload})});var Ca=require("@beinformed/ui/models"),Ra=require("@reduxjs/toolkit");var ya=require("@beinformed/ui/constants"),H=require("@beinformed/ui/models"),va=require("@beinformed/ui/modularui"),ba=require("@reduxjs/toolkit");var pa=require("@beinformed/ui/constants"),_e=require("@beinformed/ui/models"),fa=require("@beinformed/ui/settings");var ie=require("@beinformed/ui/settings"),De=require("@beinformed/ui/utils"),ra=require("@reduxjs/toolkit");var oe=require("@beinformed/ui/models"),Yo=require("@reduxjs/toolkit");var Oe=require("@beinformed/ui/models");var Jo=(e,t)=>{if(e&&e.modularui){let r=t instanceof Oe.Href?t:new Oe.Href(t);return Object.keys(e.modularui).filter(o=>{let a=e.modularui[o];if(a)return a.model?.selfhref?.equals(r)})}return[]};var Xo=require("@beinformed/ui/models"),re=e=>{let t=e.i18n.locale||"en",r=e.modularui;if(r){let o=Object.keys(r).find(a=>{let i=r[a];return i?.model?i.model instanceof Xo.ApplicationModel&&i.model.locale===t:!1});if(o)return r[o]}};var Zo=(0,Yo.createAsyncThunk)("application/reload",async(e,{dispatch:t,getState:r})=>{let o=r(),a=new oe.Href("/","Application"),i=re(o);i&&(i.contextPath&&(a.contextPath=i.contextPath),i.origin&&(a.origin=i.origin));let l=Jo(o,a);for(let p of l)t(h(p));let m=`application(/)(${V(o)}`;await t(u({key:m,href:a,options:{targetModel:oe.ApplicationModel}}))});var w=require("@reduxjs/toolkit"),ae=(0,w.createAction)("ROUTER/PUSH",(e,t)=>({payload:{location:e,state:t}})),ne=(0,w.createAction)("ROUTER/REPLACE",(e,t)=>({payload:{location:e,state:t}})),Qo=(0,w.createAction)("ROUTER/GO",e=>({payload:{delta:e}})),ea=(0,w.createAction)("ROUTER/GOBACK"),ta=(0,w.createAction)("ROUTER/GOFORWARD");var oa=(0,ra.createAsyncThunk)("auth/unauthorized",(e,{dispatch:t,getState:r})=>{if(e.connectKey&&t(h(e.connectKey)),(0,ie.getBooleanSetting)("PAGE_RELOAD_ON_UNAUTHORIZED_ERROR",!1)&&e.response){window.location.reload();return}let o=re(r());(De.Cache.getItem("auth")||o?.isLoggedIn)&&t(Zo()),t(we()),De.Cache.removeItem("auth"),e.isInvalidUsername&&t(Pe(e.message||""));let a=r().router.location,i=(0,ie.getStringSetting)("LOGIN_PATH","/signin");if(a?.pathname!==i){let l=a?.state?.from;t(ne(i,{from:l||r().router.location,modal:!1}))}});var la=require("@beinformed/ui/settings"),da=require("@reduxjs/toolkit");var U=require("@reduxjs/toolkit"),se=(0,U.createAction)("START_PROGRESS"),le=(0,U.createAction)("FINISH_PROGRESS"),aa=(0,U.createAction)("RESET_PROGRESS"),na=(0,U.createAction)("UPDATE_PROGRESS",e=>({payload:{percentComplete:e}}));var S=require("@reduxjs/toolkit");var ia=(0,S.createAction)("SHOW_NOTIFICATION",(e,t,r)=>({payload:{type:e,message:t,error:r}})),Ne=(0,S.createAsyncThunk)("notifications/show",({type:e,message:t,error:r,timeout:o},{dispatch:a})=>{o&&setTimeout(()=>{a(de())},o),a(ia(e,t,r))}),de=(0,S.createAction)("DISMISS_NOTIFICATION"),Wl={render:!1,messageType:void 0,message:void 0,error:void 0},sa=(0,S.createReducer)(Wl,e=>{e.addCase(ia,(t,r)=>({...t,render:!0,messageType:r.payload.type,message:r.payload.message,error:r.payload.error})).addCase(de,t=>({...t,render:!1,messageType:void 0,message:void 0,error:void 0}))});var Jl=e=>e.actiontype==="create"?"Notification.Msg.Create":e.actiontype==="update"?"Notification.Msg.Update":e.actiontype==="delete"?"Notification.Msg.Delete":"Notification.Msg.Generic",_m=(0,da.createAsyncThunk)("notification/show_form",async(e,{dispatch:t})=>(t(se()),t(Ne({type:"SUCCESS",message:{id:Jl(e)}})),setTimeout(()=>{t(de())},(0,la.getNumberSetting)("HIDE_NOTIFICATION_TIMEOUT")),t(le()))),ca=e=>Ne({type:"ERROR",message:{id:e.id,defaultMessage:e.message,parameters:e.properties},error:e});var ma=require("@reduxjs/toolkit"),ua=(0,ma.createAction)("NO_ACTION");var Xl=e=>t=>{if(e.isResourceNotFoundAfterReload||e.isRemoteServiceException)return t(ua());if(e.isUnauthorized)return t(oa(e));if(e.isBlocked||e.isConcurrentUser||e.isInvalidUsername){t(ae((0,fa.logoutPath)()));return}return e.isChangePassword?t(Ae()):pa.IS_SERVER?t(ke(e)):(setTimeout(()=>{throw e.error||e}),t(ca(e)))},Yl=(e,t)=>r=>r(t(e));var ga=e=>{let t=e instanceof _e.ErrorResponse?e:new _e.ErrorResponse(e);return Yl(t,Xl)};var ha=(e,t)=>e||typeof navigator<"u"&&navigator?.language&&navigator.language.split("-")[0]||t;var Ql=async({key:e,href:t,options:r},{dispatch:o,getState:a,rejectWithValue:i})=>{try{let l=ha(r?.locale,a().i18n.locale),s=t instanceof H.Href?t:new H.Href(t,"",{origin:r?.origin,contextPath:r?.contextPath}),p=await new va.ModularUIRequest(s,{method:r?.method||ya.HTTP_METHODS.GET,params:r?.params||"",data:r?.data||null,locale:l,childmodels:r?.childmodels??!0,isReload:r?.isReload,cache:r?.cache,headers:r?.headers,events:r?.events,onProgress:r?.onProgress,origin:r?.origin,contextPath:r?.contextPath,targetModel:r?.targetModel,forceTargetModel:r?.forceTargetModel??!1,timeout:r?.timeout}).fetch();return p&&(p.connectKey=e),{key:e,model:p,updateHandler:r?.updateHandler}}catch(l){let s=new H.ErrorResponse(l,e,{origin:r?.origin,contextPath:r?.contextPath});throw s.isChangePassword||s.isResourceNotFoundAfterReload?o(h(e)):o(K(e,s)),o(ga(l)),i(s)}},u=(0,ba.createAsyncThunk)("modularui/fetchModel",Ql,{condition:({key:e},{getState:t})=>{if(t().modularui[e]?.status==="LOADING")return!1}});var ed={},td=(e,t)=>{let{key:r,error:o}=t.payload;e[r]?(e[r].status="ERROR",e[r].lastModification=Date.now()):e[r]={model:void 0,status:"ERROR",lastModification:Date.now()},e[r].error=o},rd=(e,t)=>{let{key:r,model:o}=t.payload;e[r]={model:o||void 0,lastModification:Date.now(),status:o?"FINISHED":"IDLE"}},od=(e,t)=>{let{payload:r}=t;for(let{key:o,model:a}of r)e[o]={status:"FINISHED",lastModification:Date.now(),model:a}},Sa=(e,t)=>{let r=t.payload,o=Object.keys(e).find(a=>e[a]?.model?.connectKey===r.connectKey);o&&e[o]?(e[o].model=r,e[o].lastModification=Date.now(),e[o].status="FINISHED",e[o].error=void 0):console.debug(`ModularUIReducer: Cannot update model with key ${r.connectKey} - model not found in state.`)},ad=(e,t)=>{delete e[t.payload]},nd=e=>{for(let t in e)e[t]?.model instanceof Ca.ApplicationModel||delete e[t]},id=(e,t)=>{let{key:r}=t.meta.arg;e[r]?(e[r].status="LOADING",e[r].lastModification=Date.now(),e[r].error=void 0):e[r]={model:void 0,status:"LOADING",lastModification:Date.now(),error:void 0}},sd=(e,t)=>{let{key:r,model:o,updateHandler:a}=t.payload,i=o;a&&(i=a(o)),e[r]={model:i,lastModification:Date.now(),status:"FINISHED",error:void 0}},ld=(e,t)=>{let{key:r}=t.meta.arg,o=t.payload;e[r]?(e[r].status="ERROR",e[r].lastModification=Date.now(),e[r].error=o):e[r]={model:void 0,status:"ERROR",lastModification:Date.now(),error:o}},Ea=(0,Ra.createReducer)(ed,e=>{e.addCase(K,td).addCase(He,rd).addCase(W,od).addCase(qe,Sa).addCase(Be,Sa).addCase(h,ad).addCase(ze,nd).addCase(u.pending,id).addCase(u.fulfilled,sd).addCase(u.rejected,ld)});var q=require("@reduxjs/toolkit"),b=(0,q.createAction)("SET_PREFERENCE",(e,t)=>({payload:{key:e,value:t}})),Le=(0,q.createAction)("SET_PREFERENCES",e=>({payload:{...e}})),dd={},Ia=(0,q.createReducer)(dd,e=>{e.addCase(b,(t,r)=>{let{key:o,value:a}=r.payload;t[o]=a}).addCase(Le,(t,r)=>{for(let o of Object.keys(r.payload))t[o]=r.payload[o]})});var Ma=require("@reduxjs/toolkit");var cd={count:0,timestamp:0,percentComplete:0},xa=e=>({...e,count:e.count+1}),Ta=e=>{let t=e.count-1===0;return{...e,count:e.count<=0?0:e.count-1,timestamp:t?Date.now():e.timestamp,percentComplete:t?0:e.percentComplete}},md=e=>({...e,count:0,timestamp:Date.now(),percentComplete:0}),wa=(0,Ma.createReducer)(cd,e=>{e.addCase(se,xa).addCase(le,Ta).addCase(aa,t=>({...t,count:0})).addCase(na,(t,r)=>({...t,percentComplete:r.payload?.percentComplete})).addCase(u.pending,xa).addCase(u.fulfilled,Ta).addCase(u.rejected,md)});var Aa=require("@beinformed/ui/settings"),ka=require("history"),je=null,Pa=null;function Oa(){if(typeof window>"u")throw new Error("getBrowserHistory can only be used in a browser environment.");let e=(0,Aa.getContextPathServer)();return(!je||e!==Pa)&&(je=(0,ka.createBrowserHistory)({basename:e}),Pa=e),je}var Da=e=>t=>r=>o=>{if(ae.match(o)){let{location:a,state:i}=o.payload;e.push(a,i)}else if(ne.match(o)){let{location:a,state:i}=o.payload;e.replace(a,i)}else if(Qo.match(o)){let{delta:a}=o.payload;e.go(a)}else ea.match(o)?e.goBack():ta.match(o)&&e.goForward();return r(o)};var ce=require("@reduxjs/toolkit"),ud={location:void 0,action:void 0},pd=(0,ce.createAction)("ROUTER/LOCATION_CHANGE",(e,t)=>({payload:{location:e,action:t}})),Na=(0,ce.createReducer)(ud,e=>{e.addCase(pd,(t,r)=>{t.location=r.payload.location,t.action=r.payload.action})});var _a={router:Na,preferences:Ia,modularui:Ea,i18n:$o,auth:zo,error:Go,modals:Vo,modelcatalog:Wo,notification:sa,progressindicator:wa},fd=(0,B.combineReducers)(_a),La=(e,t,r=Oa())=>{let o=t?(0,B.combineReducers)({..._a,...t}):fd;return(0,B.configureStore)({reducer:o,middleware:a=>a({serializableCheck:!1}).concat(Da(r)),preloadedState:e})};var d=require("@beinformed/ui/constants"),ja=require("@beinformed/ui/exceptions"),c=require("@beinformed/ui/settings"),Fa=C(fe(),1);var P=(e,t,r)=>{let o;return typeof preferencesProvider<"u"&&(o=preferencesProvider.getPreferenceByName(e)),o||(o=t),typeof o=="string"&&r!=="string"&&o.includes(",")&&(o=o.split(",").map(a=>a.trim())),o},Fe=(e,t,r)=>{let o=P(e,t,r);return b(e,o)},$a=e=>{let t;try{t=e?JSON.parse(e):null}catch(r){throw new ja.JsonParseException(`Theme file contains invalid JSON: ${r}`)}return t&&(0,Fa.default)(t)&&(0,c.setSettings)(t.settings),b("theme",t)},Ua=e=>{let t=!1;return typeof preferencesProvider<"u"&&typeof preferencesProvider.getModularUIContentInData<"u"?t=preferencesProvider.getModularUIContentInData():typeof e<"u"&&(t=e.preferences[c.ALL_CONTENT_IN_DATA_SETTING]),(0,c.setSetting)(c.ALL_CONTENT_IN_DATA_SETTING,!!t),b(c.ALL_CONTENT_IN_DATA_SETTING,t)},Ha=e=>{let t=!1;return typeof preferencesProvider<"u"&&typeof preferencesProvider.isIncludeTimeOffsetInDateTimes<"u"?t=preferencesProvider.isIncludeTimeOffsetInDateTimes():typeof e<"u"&&(t=e.preferences[c.INCLUDE_TIME_OFFSET]),(0,c.setSetting)(c.INCLUDE_TIME_OFFSET,!!t),b(c.INCLUDE_TIME_OFFSET,t)},qa=e=>{let t={[d.LOGIN_TYPE]:P(d.LOGIN_TYPE,e?.preferences[d.LOGIN_TYPE]||""),[d.LOGIN_PATH_SETTING]:P(d.LOGIN_PATH_SETTING,e?.preferences[d.LOGIN_PATH_SETTING]||"/callback?client_name=FormClient"),[d.LOGIN_USERNAME_SETTING]:P(d.LOGIN_USERNAME_SETTING,e?.preferences[d.LOGIN_USERNAME_SETTING]||"j_username"),[d.LOGIN_PASSWORD_SETTING]:P(d.LOGIN_PASSWORD_SETTING,e?.preferences[d.LOGIN_PASSWORD_SETTING]||"j_password"),[d.LOGOUT_PATH_SETTING]:P(d.LOGOUT_PATH_SETTING,e?.preferences[d.LOGOUT_PATH_SETTING]||"/logout")};return(0,c.setSettings)(t),Le(t)};var Ba=e=>{let t=null,r=preferencesProvider.getLayoutConfigFileLocation();if(typeof r=="string"){let o=r.startsWith("/")?`/resource${r}`:`/resource/${r}`;if(t=dataFetcher.fetch(o),t)e.dispatch($a(t));else throw new Error(`Could not read theme configuration file from: ${o}`)}};var za=(e,t)=>{t.forEach(r=>{if(typeof r=="object"){let{name:o,defaultValue:a,type:i}=r;a&&e.dispatch(Fe(o,a,i))}else e.dispatch(Fe(r,null))})},$e=(e,t)=>{Array.isArray(t)&&za(e,t),e.dispatch(Ua()),e.dispatch(qa()),e.dispatch(Ha()),preferencesProvider&&preferencesProvider.isStudioContext&&preferencesProvider.isStudioContext()&&e.dispatch(b("isStudioContext",!0))};var gd=e=>{let t=e.getState();if(t.error&&(t.error.shouldThrowOnServer||!(0,Va.default)(t.error,"shouldThrowOnServer")))throw t.error},hd=({request:e,locales:t,customReducers:r,serverPreferences:o=[],theme:a,render:i,template:l,beforeRenderHooks:s,preloadApplication:m=!0})=>{if(e.getHeader("X-BI-Preview-Available"))return"<h1>Preview Available</h1>";let z=(0,Ga.createUUID)();__webpack_nonce__=z;let Ka=ve(e),f=La({router:{location:Ka,action:void 0}},r);if($e(f,o),Ba(f),a){let Wa=f.getState()?.preferences?.theme;X(Wa,a)}return qo(f,t,e),m&&me(f),gd(f),Bo(s,{store:f,request:e}),ye({store:f,theme:a,UUID:z,render:i,template:l})};0&&(module.exports={createHead,dehydrate,getCookieFromRequest,getFullRequestLocation,getFullRequestUrl,getPreferredLocale,htmlpage,renderSSRMinimal,serverNoSSR,setApplication,setServerPreferences,setServerPreferencesFromArray});
22
+ //# sourceMappingURL=index.cjs.map