@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.
- package/CHANGELOG.md +16 -0
- package/dist/chunk-4IDEBSD5.js +2 -0
- package/dist/chunk-4IDEBSD5.js.map +1 -0
- package/dist/chunk-6AKWSGWH.js +2 -0
- package/dist/chunk-6AKWSGWH.js.map +1 -0
- package/dist/{chunk-LYHN5GC6.js → chunk-6EK3TAMN.js} +2 -2
- package/dist/{chunk-3UHZ6GBP.js → chunk-BV77KA4Y.js} +2 -2
- package/dist/{chunk-GHKA2XFO.js → chunk-ITSZQHGD.js} +2 -2
- package/dist/chunk-ITSZQHGD.js.map +1 -0
- package/dist/chunk-JWOBKHOJ.js +2 -0
- package/dist/chunk-JWOBKHOJ.js.map +1 -0
- package/dist/{chunk-X6L6BWD4.js → chunk-KZB56W7Q.js} +2 -2
- package/dist/chunk-KZB56W7Q.js.map +1 -0
- package/dist/{chunk-LJM2ADG6.js → chunk-KZLW2NHD.js} +2 -2
- package/dist/{chunk-7LGDJBGK.js → chunk-OQK6SSUD.js} +2 -2
- package/dist/{chunk-ALGSLJJI.js → chunk-SPV6MD7J.js} +2 -2
- package/dist/{chunk-ZNJONDQ6.js → chunk-TAWZ2VIM.js} +2 -2
- package/dist/chunk-VXOYOMNN.js +2 -0
- package/dist/chunk-VXOYOMNN.js.map +1 -0
- package/dist/chunk-WEJGEXAP.js +2 -0
- package/dist/chunk-WEJGEXAP.js.map +1 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +79 -8
- package/dist/hooks/index.d.ts +79 -8
- package/dist/hooks/index.js +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +20 -2
- package/dist/i18n/index.d.ts +20 -2
- package/dist/i18n/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/redux/index.cjs +1 -1
- package/dist/redux/index.cjs.map +1 -1
- package/dist/redux/index.d.cts +3 -3
- package/dist/redux/index.d.ts +3 -3
- package/dist/redux/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +6 -1
- package/dist/utils/index.d.ts +6 -1
- package/dist/utils/index.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-5MOCT43G.js +0 -2
- package/dist/chunk-5MOCT43G.js.map +0 -1
- package/dist/chunk-AMFWIR2R.js +0 -2
- package/dist/chunk-AMFWIR2R.js.map +0 -1
- package/dist/chunk-GHKA2XFO.js.map +0 -1
- package/dist/chunk-JYAETKRB.js +0 -2
- package/dist/chunk-JYAETKRB.js.map +0 -1
- package/dist/chunk-LUXTQYD2.js +0 -2
- package/dist/chunk-LUXTQYD2.js.map +0 -1
- package/dist/chunk-TRPPQFNA.js +0 -2
- package/dist/chunk-TRPPQFNA.js.map +0 -1
- package/dist/chunk-TYEAR2B7.js +0 -2
- package/dist/chunk-TYEAR2B7.js.map +0 -1
- package/dist/chunk-X6L6BWD4.js.map +0 -1
- /package/dist/{chunk-LYHN5GC6.js.map → chunk-6EK3TAMN.js.map} +0 -0
- /package/dist/{chunk-3UHZ6GBP.js.map → chunk-BV77KA4Y.js.map} +0 -0
- /package/dist/{chunk-LJM2ADG6.js.map → chunk-KZLW2NHD.js.map} +0 -0
- /package/dist/{chunk-7LGDJBGK.js.map → chunk-OQK6SSUD.js.map} +0 -0
- /package/dist/{chunk-ALGSLJJI.js.map → chunk-SPV6MD7J.js.map} +0 -0
- /package/dist/{chunk-ZNJONDQ6.js.map → chunk-TAWZ2VIM.js.map} +0 -0
package/dist/redux/index.d.cts
CHANGED
|
@@ -568,14 +568,14 @@ declare const getAllFinishedModels: ((state: {
|
|
|
568
568
|
resultsCount: () => number;
|
|
569
569
|
resetResultsCount: () => void;
|
|
570
570
|
} & {
|
|
571
|
-
resultFunc: (resultFuncArgs_0: ModularUIState) => (ModularUIModel | undefined)[];
|
|
572
|
-
memoizedResultFunc: ((resultFuncArgs_0: ModularUIState) => (ModularUIModel | undefined)[]) & {
|
|
571
|
+
resultFunc: (resultFuncArgs_0: ModularUIState, resultFuncArgs_1: string) => (ModularUIModel | undefined)[];
|
|
572
|
+
memoizedResultFunc: ((resultFuncArgs_0: ModularUIState, resultFuncArgs_1: string) => (ModularUIModel | undefined)[]) & {
|
|
573
573
|
clearCache: () => void;
|
|
574
574
|
resultsCount: () => number;
|
|
575
575
|
resetResultsCount: () => void;
|
|
576
576
|
};
|
|
577
577
|
lastResult: () => (ModularUIModel | undefined)[];
|
|
578
|
-
dependencies: [(state: RootState) => ModularUIState];
|
|
578
|
+
dependencies: [(state: RootState) => ModularUIState, (state: RootState) => string];
|
|
579
579
|
recomputations: () => number;
|
|
580
580
|
resetRecomputations: () => void;
|
|
581
581
|
dependencyRecomputations: () => number;
|
package/dist/redux/index.d.ts
CHANGED
|
@@ -568,14 +568,14 @@ declare const getAllFinishedModels: ((state: {
|
|
|
568
568
|
resultsCount: () => number;
|
|
569
569
|
resetResultsCount: () => void;
|
|
570
570
|
} & {
|
|
571
|
-
resultFunc: (resultFuncArgs_0: ModularUIState) => (ModularUIModel | undefined)[];
|
|
572
|
-
memoizedResultFunc: ((resultFuncArgs_0: ModularUIState) => (ModularUIModel | undefined)[]) & {
|
|
571
|
+
resultFunc: (resultFuncArgs_0: ModularUIState, resultFuncArgs_1: string) => (ModularUIModel | undefined)[];
|
|
572
|
+
memoizedResultFunc: ((resultFuncArgs_0: ModularUIState, resultFuncArgs_1: string) => (ModularUIModel | undefined)[]) & {
|
|
573
573
|
clearCache: () => void;
|
|
574
574
|
resultsCount: () => number;
|
|
575
575
|
resetResultsCount: () => void;
|
|
576
576
|
};
|
|
577
577
|
lastResult: () => (ModularUIModel | undefined)[];
|
|
578
|
-
dependencies: [(state: RootState) => ModularUIState];
|
|
578
|
+
dependencies: [(state: RootState) => ModularUIState, (state: RootState) => string];
|
|
579
579
|
recomputations: () => number;
|
|
580
580
|
resetRecomputations: () => void;
|
|
581
581
|
dependencyRecomputations: () => number;
|
package/dist/redux/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-6E5DAS6G.js";import{b as h}from"../chunk-
|
|
1
|
+
import"../chunk-6E5DAS6G.js";import{b as h}from"../chunk-KZLW2NHD.js";import{a as ua,b as va,c as wa,d as xa,e as ya,f as za,g as Aa,h as Ba,i as Ca,j as Da,k as Ea,l as Fa,m as Ga,n as Ha,o as Ia,p as Ja,q as Ka}from"../chunk-TAWZ2VIM.js";import{a as g,c as y,d as E,e as F,f as na,g as oa,h as pa,i as qa}from"../chunk-SPV6MD7J.js";import{$ as ma,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,W as ha,X as ia,Y as ja,Z as ka,_ as la,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-ITSZQHGD.js";import{f as I,g as J,h as K,i as L,j as Q,k as R}from"../chunk-KZB56W7Q.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-FBCZEJSD.js";import"../chunk-L7DO7AZT.js";import{h as ra,i as sa,j as ta}from"../chunk-HTR32BUX.js";import"../chunk-FW4363Y4.js";export{ya as AUTOSAVE_STATUS,P as MODULARUI_STATUS,k as NOTIFICATION_TYPES,Ga as addRepeatableAttributeSet,ca as allKeysByHref,f as authReducer,za as autosaveFormObject,Aa as autosubmitFormObject,Ba as autoupdateFormObject,Fa as cancelForm,Ha as cancelRepeatableAttributeSet,va as changePassword,N as closeModal,m as dismissNotification,H as errorReducer,ma as fetchModel,$ as getActiveModelByInstance,da as getActiveModels,ea as getAllFinishedModels,Z as getAllModelsByInstance,fa as getApplication,y as getBrowserHistory,h as getDataFromServer,Ja as getEntryDate,_ as getFirstModelByInstance,Q as getLocale,R as getLocales,la as getRequestLocale,B as go,C as goBack,D as goForward,g as handleBeforeRenderHooks,ka as handleError,ha as handleUnauthorized,L as i18nReducer,U as initModels,ba as keyByHref,E as locationChange,wa as login,ua as loginFailed,a as loginSuccess,xa as logout,b as logoutSuccess,O as modalsReducer,aa as modelByHref,j as modelCatalogReducer,na as modularUIReducer,ia as noAction,n as notificationReducer,s as preferencesReducer,Ea as previousObject,oa as progressIndicatorReducer,z as push,I as receiveLocale,ga as reloadApplication,Ka as reloadModel,X as removeModelByKey,Ia as removeRepeatableAttributeSet,A as replace,d as resetAuthErrors,Y as resetModularUI,pa as routerMiddleware,F as routerReducer,e as saveChangePassword,G as saveError,c as sendAuthenticationError,v as setAllContentInDataSetting,ja 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,qa as setupStore,o as showFormNotification,M as showModal,l as showNotification,p as showXHRErrorNotification,i as updateEntryDate,S as updateErrorStatus,W as updateForm,Da as updateFormAttribute,J as updateLocale,V as updateModel,ra as useBEIDispatch,sa as useBEISelector,ta as useBEIStore,Ca as validateFormObject};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.cjs
CHANGED
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
{JSASSETS:<script src="{CONTEXT_PATH}/{FILE}"></script>:JSASSETS}
|
|
19
19
|
</body>
|
|
20
20
|
</html>
|
|
21
|
-
`.replace(/{CONTEXT_PATH}/g,e.contextPath).trim()};var $t=require("react-dom/server"),Ht=require("react-redux"),ee=require("styled-components"),qt=require("@beinformed/ui/settings");var Ft=require("styled-components");var E=require("react-redux"),Ad=E.useDispatch.withTypes(),Xe=E.useSelector.withTypes(),kd=E.useStore.withTypes();var Lt=I(Tt(),1),_t=I(ve(),1),jt=require("@beinformed/ui/settings"),Nt=e=>{let t=Object.keys(e).map(o=>`\\b${o}\\b`).join("|"),r=new RegExp(`\\$(${t})`,"g");return Object.entries(e).forEach(([o,n])=>{o!=="settings"&&typeof n=="string"&&(e[o]=n.replace(r,(a,s)=>{let l=e[s];return typeof l=="string"?l:a}))}),e},ti=(e,...t)=>{let r=e?.settings??{},o={settings:{}};for(let n of t)if(typeof n=="function")o=n(Nt(o));else if((0,_t.default)(n)){let a=o.settings??{};o={...o,...n,...e},"settings"in n&&typeof n.settings=="object"&&(o.settings={...a,...n.settings,...r})}return Nt(o)},Z=(e,...t)=>{let r=(0,Lt.default)(t).filter(n=>n!=null),o=ti(e,...r);return o?.settings&&(0,jt.setSettings)(o.settings),o};var Ut=require("react/jsx-runtime"),Se=({theme:e,children:t})=>{let r=Xe(n=>n.preferences.theme),o=Z(r,e);return(0,Ut.jsx)(Ft.ThemeProvider,{theme:o,children:t})};Se.displayName="BI.ThemeProvider";var be=e=>{let t=e.getState(),r={};for(let n in t.modularui){let a=t.modularui[n];if(a){let{status:s,model:l,lastModification:c}=a;l?r[n]={status:s,lastModification:c,model:l}:r[n]={status:s,lastModification:c,model:void 0}}}let o={...t,modularui:r};return JSON.stringify(o).replace(/</g,"\\u003c")};var Q=require("react/jsx-runtime"),Ce=({store:e,theme:t,UUID:r="",render:o,template:n=he})=>{let a=new ee.ServerStyleSheet,s=(0,$t.renderToString)((0,Q.jsx)(Ht.Provider,{store:e,children:(0,Q.jsx)(ee.StyleSheetManager,{sheet:a.instance,children:(0,Q.jsx)(Se,{theme:t,children:o()})})})),l=Bt(a);return n({contextPath:(0,qt.getContextPathServer)(),html:s,head:l,state:be(e),UUID:r})},Bt=(e,t)=>{let r=e.getStyleTags(),o=t?.helmet,n=t?[...o.meta]:[];return t?{...o,style:r,meta:n}:{style:r,meta:n}};var ri=e=>{if(!e)return"";let t=[];return e.split("&").forEach(r=>{let[o,n]=r.split("=");o&&n?t.push(`${encodeURIComponent(o)}=${encodeURIComponent(n)}`):o&&t.push(encodeURIComponent(o))}),t.join("&")},oi=e=>{let t=e.getPathInfo()||"/",r=e.getQueryString();return t=t.split("/").map(o=>encodeURIComponent(o)).join("/"),r?`${t}?${ri(r)}`:t},Re=e=>({pathname:e.getPathInfo()||"/",search:e.getQueryString()||"",state:{},hash:""}),zt=(e,t)=>e.getCookieByName(t),Ie=(e,t)=>{let o=zt(e,"locale")||e.getHeader("Accept-Language");return o===null?t.availableLocaleCodes[0]:t.getPreferredLocale(o)};var Yn=I(Do(),1),Zn=require("@beinformed/ui/utils");var zo=I(require("deepmerge"),1),ke=require("@beinformed/ui/exceptions"),Go=require("@beinformed/ui/settings");var $=require("@reduxjs/toolkit"),y=require("@beinformed/ui/utils");var Ho=require("@beinformed/ui/exceptions"),qo=require("@beinformed/ui/models");var we=I(require("format-message"),1),Lo=require("immer"),_o=require("@beinformed/ui/exceptions"),jo=require("@beinformed/ui/settings"),Fo=require("@beinformed/ui/utils");var No={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 U=class{[Lo.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,we.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=No.lang[r];if(o)return o[1]+(t[1]?` (${t[1].toUpperCase()})`:"")}}throw new _o.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 Fo.IS_DEV&&!o&&t&&(0,jo.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,we.default)(t,r):t}getMessage(t,r,o){let n=this.getBaseMessage(t,r);return this.formatMessage(n,o)}update(t={},r={}){this.#e={...this.#e,...this.fixPlaceHoldersInObject(t)},this.#t={...this.#t,...this.fixPlaceHoldersInObject(r)}}};var Uo={"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 $o={"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 Pe=[{code:"en",messages:{},errors:Uo},{code:"nl",messages:{},errors:$o}];var P=class e extends qo.BaseCollection{constructor(t=Pe){super(t.map(r=>new U(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 Ho.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(n=>this.availableLocaleCodes.some(a=>n.startsWith(a))).map(n=>this.availableLocaleCodes.find(a=>n.startsWith(a)));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 U({code:t,messages:r,errors:o}))}};var $l=(0,$.createAction)("UPDATE_LOCALE",e=>({payload:e})),Ae=(0,$.createAction)("SET_LOCALES",(e,t)=>({payload:{locales:e,locale:t}})),Hl=()=>typeof navigator<"u"&&navigator?.language&&navigator?.language.split("-")[0]||"en",ql={locales:new P,locale:Hl()},Bo=(0,$.createReducer)(ql,e=>{e.addCase($l,(t,r)=>{t.locales?.length>1?(0,y.setCookie)("locale",r.payload):(0,y.clearCookie)("locale"),y.Cache.clear(),t.locale=r.payload}).addCase(Ae,(t,r)=>{let{locale:o,locales:n}=r.payload;t.locales.length>1?(0,y.setCookie)("locale",o):(0,y.clearCookie)("locale"),t.locales=n,o&&(t.locale=o)})});var Ko=(e,t=[],r)=>{if(!Array.isArray(t))throw new ke.IllegalArgumentException("locales must be an array of objects");if(!r)throw new ke.IllegalArgumentException("missing request argument");let o=Pe.map(l=>{let c=l.code,u=t.find(R=>R.code===c);return u?(0,zo.default)(l,u):l});t.forEach(l=>{o.some(c=>c.code===l.code)||o.push(l)});let n=o.filter(l=>(0,Go.getEnabledLocales)().includes(l.code)),a=new P(n),s=Ie(r,a);e.dispatch(Ae(a,s??"en"))};var Vo=(e=[],t)=>{if(e.length>0)for(let r of e)r(t)};var G=require("@reduxjs/toolkit");var v=require("@reduxjs/toolkit"),Bl={authenticated:!1,mustChangePassword:!1,error:null},zl=(0,v.createAction)("AUTHENTICATION_SUCCESS"),Oe=(0,v.createAction)("AUTHENTICATION_LOGOUT"),De=(0,v.createAction)("AUTHENTICATION_ERROR",e=>({payload:e})),Gl=(0,v.createAction)("AUTHENTICATION_RESET_ERRORS"),Ne=(0,v.createAction)("CHANGE_PASSWORD"),Wo=(0,v.createReducer)(Bl,e=>{e.addCase(zl,t=>{t.authenticated=!0,t.error=null,t.mustChangePassword=!1}).addCase(De,(t,r)=>{t.authenticated=!1,t.error=r.payload,t.mustChangePassword=!1}).addCase(Gl,t=>{t.error=null}).addCase(Oe,t=>{t.authenticated=!1,t.error=null,t.mustChangePassword=!1}).addCase(Ne,t=>{t.authenticated=!0,t.error=null,t.mustChangePassword=!0})});var re=require("@reduxjs/toolkit"),Le=(0,re.createAction)("SAVE_ERROR",e=>({payload:e})),Kl=null,Jo=(0,re.createReducer)(Kl,e=>{e.addCase(Le,(t,r)=>r.payload)});var H=require("@reduxjs/toolkit"),Vl=(0,H.createAction)("SHOW_MODAL",e=>({payload:e})),Wl=(0,H.createAction)("CLOSE_MODAL",e=>({payload:e})),Jl={modals:[]},Xo=(0,H.createReducer)(Jl,e=>{e.addCase(Vl,(t,r)=>{let o=r.payload;t.modals.forEach(a=>{a.visible=!1});let n=t.modals.find(a=>a.key===o);n?n.visible=!0:t.modals.push({key:o,visible:!0})}).addCase(Wl,(t,r)=>{let o=r.payload;t.modals=t.modals.filter(a=>a.key!==o);let n=t.modals[t.modals.length-1];n&&(n.visible=!0)})});var oe=require("@reduxjs/toolkit"),Yo=require("@beinformed/ui/utils"),Xl=(0,oe.createAction)("UPDATE_ENTRYDATE",e=>({payload:e})),Yl={entryDate:new Date().toISOString().split("T")[0]},Zo=(0,oe.createReducer)(Yl,e=>{e.addCase(Xl,(t,r)=>{Yo.Cache.addItem("ModelCatalogEntryDate",r.payload),t.entryDate=r.payload})});var Tn=require("@reduxjs/toolkit"),wn=require("@beinformed/ui/models");var In=require("@reduxjs/toolkit"),En=require("@beinformed/ui/constants"),B=require("@beinformed/ui/models"),Mn=require("@beinformed/ui/modularui");var Sn=require("@beinformed/ui/constants"),Fe=require("@beinformed/ui/models"),bn=require("@beinformed/ui/settings");var ln=require("@reduxjs/toolkit"),de=require("@beinformed/ui/settings"),_e=require("@beinformed/ui/utils");var rn=require("@reduxjs/toolkit"),ie=require("@beinformed/ui/models");var ne=require("reselect"),S=require("@beinformed/ui/models");var Zl=e=>e?.router?.location?.pathname;var en=(e,t)=>{if(e?.modularui){let r=t instanceof S.Href?t:new S.Href(t);return Object.keys(e.modularui).filter(o=>{let n=e.modularui[o];if(n)return n.model?.selfhref?.equals(r)})}return[]},Ql=(0,ne.createSelector)([e=>e.modularui],e=>{let t=[];return e&&Object.keys(e).forEach(r=>{let o=e[r];if(o&&"model"in o){let{key:n,selfhref:a,label:s,type:l}=o.model,c={key:n,selfhref:a,label:s,type:l,selfContentLink:null};o.model instanceof S.ContentModel||o.model instanceof S.ContentTOCModel?t.push({...c,selfContentLink:o.model.selfContentLink}):t.push(c)}}),t}),Cm=(0,ne.createSelector)([Zl,Ql],(e,t)=>{if(!e||!t.length)return[];let r=new Map(t.filter(s=>s.selfhref).map(s=>[s.selfhref?.toString(),s])),o=[],n=e.split("/"),a="";return n.forEach(s=>{a=a==="/"?`/${s}`:`${a}/${s}`;let l=decodeURIComponent(a).replace("/modelcatalog/","/"),c=r.get(l);if(c){let{key:u,label:R,type:fe,selfhref:p,selfContentLink:K}=c,Qn=a.startsWith("/modelcatalog/")&&K?new S.Href(`/modelcatalog${K.encodedHref.toString()}`):p;o.push({key:u,href:Qn,label:R,type:fe})}}),o}),Rm=(0,ne.createSelector)(e=>e.modularui,e=>e?Object.keys(e).filter(t=>e[t]&&e[t].status==="FINISHED").map(t=>e[t].model):[]);var tn=require("@beinformed/ui/models"),ae=e=>{let t=e.i18n.locale||"en",r=e.modularui;if(r){let o=Object.keys(r).find(n=>{let a=r[n];return a?.model?a.model instanceof tn.ApplicationModel&&a.model.locale===t:!1});if(o)return r[o]}};var on=(0,rn.createAsyncThunk)("application/reload",async(e,{dispatch:t,getState:r})=>{let o=r(),n=new ie.Href("/","Application"),a=ae(o);a&&(a.contextPath&&(n.contextPath=a.contextPath),a.origin&&(n.origin=a.origin));let s=en(o,n);for(let u of s)t(h(u));let c=`application(/)(${W(o)}`;await t(f({key:c,href:n,options:{targetModel:ie.ApplicationModel}}))});var A=require("@reduxjs/toolkit"),se=(0,A.createAction)("ROUTER/PUSH",(e,t)=>({payload:{location:e,state:t}})),le=(0,A.createAction)("ROUTER/REPLACE",(e,t)=>({payload:{location:e,state:t}})),nn=(0,A.createAction)("ROUTER/GO",e=>({payload:{delta:e}})),an=(0,A.createAction)("ROUTER/GOBACK"),sn=(0,A.createAction)("ROUTER/GOFORWARD");var dn=(0,ln.createAsyncThunk)("auth/unauthorized",(e,{dispatch:t,getState:r})=>{if(e.connectKey&&t(h(e.connectKey)),(0,de.getBooleanSetting)("PAGE_RELOAD_ON_UNAUTHORIZED_ERROR",!1)&&e.response){window.location.reload();return}let o=ae(r());(_e.Cache.getItem("auth")||o?.isLoggedIn)&&t(on()),t(Oe()),_e.Cache.removeItem("auth"),e.isInvalidUsername&&t(De(e.message||""));let n=r().router.location,a=(0,de.getStringSetting)("LOGIN_PATH","/signin");if(n?.pathname!==a){let s=n?.state?.from;t(le(a,{from:s||r().router.location,modal:!1}))}});var fn=require("@reduxjs/toolkit"),gn=require("@beinformed/ui/settings");var q=require("@reduxjs/toolkit"),ce=(0,q.createAction)("START_PROGRESS"),me=(0,q.createAction)("FINISH_PROGRESS"),cn=(0,q.createAction)("RESET_PROGRESS"),mn=(0,q.createAction)("UPDATE_PROGRESS",e=>({payload:{percentComplete:e}}));var C=require("@reduxjs/toolkit");var un=(0,C.createAction)("SHOW_NOTIFICATION",(e,t,r)=>({payload:{type:e,message:t,error:r}})),je=(0,C.createAsyncThunk)("notifications/show",({type:e,message:t,error:r,timeout:o},{dispatch:n})=>{o&&setTimeout(()=>{n(ue())},o),n(un(e,t,r))}),ue=(0,C.createAction)("DISMISS_NOTIFICATION"),ed={render:!1,messageType:void 0,message:void 0,error:void 0},pn=(0,C.createReducer)(ed,e=>{e.addCase(un,(t,r)=>({...t,render:!0,messageType:r.payload.type,message:r.payload.message,error:r.payload.error})).addCase(ue,t=>({...t,render:!1,messageType:void 0,message:void 0,error:void 0}))});var td=e=>e.actiontype==="create"?"Notification.Msg.Create":e.actiontype==="update"?"Notification.Msg.Update":e.actiontype==="delete"?"Notification.Msg.Delete":"Notification.Msg.Generic",Bm=(0,fn.createAsyncThunk)("notification/show_form",async(e,{dispatch:t})=>(t(ce()),t(je({type:"SUCCESS",message:{id:td(e)}})),setTimeout(()=>{t(ue())},(0,gn.getNumberSetting)("HIDE_NOTIFICATION_TIMEOUT")),t(me()))),hn=e=>je({type:"ERROR",message:{id:e.id,defaultMessage:e.message,parameters:e.properties},error:e});var yn=require("@reduxjs/toolkit"),vn=(0,yn.createAction)("NO_ACTION");var rd=e=>t=>{if(e.isResourceNotFoundAfterReload||e.isRemoteServiceException)return t(vn());if(e.isUnauthorized)return t(dn(e));if(e.isBlocked||e.isConcurrentUser||e.isInvalidUsername){t(se((0,bn.logoutPath)()));return}return e.isChangePassword?t(Ne()):Sn.IS_SERVER?t(Le(e)):(setTimeout(()=>{throw e.error||e}),t(hn(e)))},od=(e,t)=>r=>r(t(e));var Cn=e=>{let t=e instanceof Fe.ErrorResponse?e:new Fe.ErrorResponse(e);return od(t,rd)};var Rn=(e,t)=>e||typeof navigator<"u"&&navigator?.language&&navigator.language.split("-")[0]||t;var nd=async({key:e,href:t,options:r},{dispatch:o,getState:n,rejectWithValue:a})=>{try{let s=Rn(r?.locale,n().i18n.locale),l=t instanceof B.Href?t:new B.Href(t,"",{origin:r?.origin,contextPath:r?.contextPath}),u=await new Mn.ModularUIRequest(l,{method:r?.method||En.HTTP_METHODS.GET,params:r?.params||"",data:r?.data||null,locale:s,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 u&&(u.connectKey=e),{key:e,model:u,updateHandler:r?.updateHandler}}catch(s){let l=new B.ErrorResponse(s,e,{origin:r?.origin,contextPath:r?.contextPath});throw l.isChangePassword||l.isResourceNotFoundAfterReload?o(h(e)):o(J(e,l)),o(Cn(s)),a(l)}},f=(0,In.createAsyncThunk)("modularui/fetchModel",nd,{condition:({key:e},{getState:t})=>{if(t().modularui[e]?.status==="LOADING")return!1}});var ad={},id=(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},sd=(e,t)=>{let{key:r,model:o}=t.payload;e[r]={model:o||void 0,lastModification:Date.now(),status:o?"FINISHED":"IDLE"}},ld=(e,t)=>{let{payload:r}=t;for(let{key:o,model:n}of r)e[o]={status:"FINISHED",lastModification:Date.now(),model:n}},xn=(e,t)=>{let r=t.payload,o=Object.keys(e).find(n=>e[n]?.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.`)},dd=(e,t)=>{delete e[t.payload]},cd=e=>{for(let t in e)e[t]?.model instanceof wn.ApplicationModel||delete e[t]},md=(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}},ud=(e,t)=>{let{key:r,model:o,updateHandler:n}=t.payload,a=o;n&&(a=n(o)),e[r]={model:a,lastModification:Date.now(),status:"FINISHED",error:void 0}},pd=(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}},Pn=(0,Tn.createReducer)(ad,e=>{e.addCase(J,id).addCase(ze,sd).addCase(X,ld).addCase(Ge,xn).addCase(Ke,xn).addCase(h,dd).addCase(Ve,cd).addCase(f.pending,md).addCase(f.fulfilled,ud).addCase(f.rejected,pd)});var z=require("@reduxjs/toolkit"),b=(0,z.createAction)("SET_PREFERENCE",(e,t)=>({payload:{key:e,value:t}})),Ue=(0,z.createAction)("SET_PREFERENCES",e=>({payload:{...e}})),fd={},An=(0,z.createReducer)(fd,e=>{e.addCase(b,(t,r)=>{let{key:o,value:n}=r.payload;t[o]=n}).addCase(Ue,(t,r)=>{for(let o of Object.keys(r.payload))t[o]=r.payload[o]})});var Dn=require("@reduxjs/toolkit");var gd={count:0,timestamp:0,percentComplete:0},kn=e=>({...e,count:e.count+1}),On=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}},hd=e=>({...e,count:0,timestamp:Date.now(),percentComplete:0}),Nn=(0,Dn.createReducer)(gd,e=>{e.addCase(ce,kn).addCase(me,On).addCase(cn,t=>({...t,count:0})).addCase(mn,(t,r)=>({...t,percentComplete:r.payload?.percentComplete})).addCase(f.pending,kn).addCase(f.fulfilled,On).addCase(f.rejected,hd)});var _n=require("history"),jn=require("@beinformed/ui/settings"),$e=null,Ln=null;function Fn(){if(typeof window>"u")throw new Error("getBrowserHistory can only be used in a browser environment.");let e=(0,jn.getContextPathServer)();return(!$e||e!==Ln)&&($e=(0,_n.createBrowserHistory)({basename:e}),Ln=e),$e}var Un=e=>t=>r=>o=>{if(se.match(o)){let{location:n,state:a}=o.payload;e.push(n,a)}else if(le.match(o)){let{location:n,state:a}=o.payload;e.replace(n,a)}else if(nn.match(o)){let{delta:n}=o.payload;e.go(n)}else an.match(o)?e.goBack():sn.match(o)&&e.goForward();return r(o)};var pe=require("@reduxjs/toolkit"),yd={location:void 0,action:void 0},vd=(0,pe.createAction)("ROUTER/LOCATION_CHANGE",(e,t)=>({payload:{location:e,action:t}})),$n=(0,pe.createReducer)(yd,e=>{e.addCase(vd,(t,r)=>{t.location=r.payload.location,t.action=r.payload.action})});var Hn={router:$n,preferences:An,modularui:Pn,i18n:Bo,auth:Wo,error:Jo,modals:Xo,modelcatalog:Zo,notification:pn,progressindicator:Nn},Sd=(0,G.combineReducers)(Hn),qn=(e,t,r=Fn())=>{let o=t?(0,G.combineReducers)({...Hn,...t}):Sd;return(0,G.configureStore)({reducer:o,middleware:n=>n({serializableCheck:!1}).concat(Un(r)),preloadedState:e})};var Bn=I(ve(),1),d=require("@beinformed/ui/constants"),zn=require("@beinformed/ui/exceptions"),m=require("@beinformed/ui/settings");var k=(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(n=>n.trim())),o},He=(e,t,r)=>{let o=k(e,t,r);return b(e,o)},Gn=e=>{let t;try{t=e?JSON.parse(e):null}catch(r){throw new zn.JsonParseException(`Theme file contains invalid JSON: ${r}`)}return t&&(0,Bn.default)(t)&&(0,m.setSettings)(t.settings),b("theme",t)},Kn=e=>{let t=!1;return typeof preferencesProvider<"u"&&typeof preferencesProvider.getModularUIContentInData<"u"?t=preferencesProvider.getModularUIContentInData():typeof e<"u"&&(t=e.preferences[m.ALL_CONTENT_IN_DATA_SETTING]),(0,m.setSetting)(m.ALL_CONTENT_IN_DATA_SETTING,!!t),b(m.ALL_CONTENT_IN_DATA_SETTING,t)},Vn=e=>{let t=!1;return typeof preferencesProvider<"u"&&typeof preferencesProvider.isIncludeTimeOffsetInDateTimes<"u"?t=preferencesProvider.isIncludeTimeOffsetInDateTimes():typeof e<"u"&&(t=e.preferences[m.INCLUDE_TIME_OFFSET]),(0,m.setSetting)(m.INCLUDE_TIME_OFFSET,!!t),b(m.INCLUDE_TIME_OFFSET,t)},Wn=e=>{let t={[d.LOGIN_TYPE]:k(d.LOGIN_TYPE,e?.preferences[d.LOGIN_TYPE]||""),[d.LOGIN_PATH_SETTING]:k(d.LOGIN_PATH_SETTING,e?.preferences[d.LOGIN_PATH_SETTING]||"/callback?client_name=FormClient"),[d.LOGIN_USERNAME_SETTING]:k(d.LOGIN_USERNAME_SETTING,e?.preferences[d.LOGIN_USERNAME_SETTING]||"j_username"),[d.LOGIN_PASSWORD_SETTING]:k(d.LOGIN_PASSWORD_SETTING,e?.preferences[d.LOGIN_PASSWORD_SETTING]||"j_password"),[d.LOGOUT_PATH_SETTING]:k(d.LOGOUT_PATH_SETTING,e?.preferences[d.LOGOUT_PATH_SETTING]||"/logout")};return(0,m.setSettings)(t),Ue(t)};var Jn=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(Gn(t));else throw new Error(`Could not read theme configuration file from: ${o}`)}};var Xn=(e,t)=>{t.forEach(r=>{if(typeof r=="object"){let{name:o,defaultValue:n,type:a}=r;n&&e.dispatch(He(o,n,a))}else e.dispatch(He(r,null))})},qe=(e,t)=>{Array.isArray(t)&&Xn(e,t),e.dispatch(Kn()),e.dispatch(Wn()),e.dispatch(Vn()),preferencesProvider&&preferencesProvider.isStudioContext&&preferencesProvider.isStudioContext()&&e.dispatch(b("isStudioContext",!0))};var bd=e=>{let t=e.getState();if(t.error&&(t.error.shouldThrowOnServer||!(0,Yn.default)(t.error,"shouldThrowOnServer")))throw t.error},Cd=({request:e,locales:t,customReducers:r,serverPreferences:o=[],theme:n,render:a,template:s,beforeRenderHooks:l,preloadApplication:c=!0})=>{if(e.getHeader("X-BI-Preview-Available"))return"<h1>Preview Available</h1>";let R=(0,Zn.createUUID)();__webpack_nonce__=R;let fe=Re(e),p=qn({router:{location:fe,action:void 0}},r);if(qe(p,o),Jn(p),n){let K=p.getState()?.preferences?.theme;Z(K,n)}return Ko(p,t,e),c&&ge(p),bd(p),Vo(l,{store:p,request:e}),Ce({store:p,theme:n,UUID:R,render:a,template:s})};0&&(module.exports={createHead,dehydrate,getCookieFromRequest,getFullRequestLocation,getFullRequestUrl,getPreferredLocale,htmlpage,renderSSRMinimal,serverNoSSR,setApplication,setServerPreferences,setServerPreferencesFromArray});
|
|
21
|
+
`.replace(/{CONTEXT_PATH}/g,e.contextPath).trim()};var $t=require("react-dom/server"),Ht=require("react-redux"),ee=require("styled-components"),qt=require("@beinformed/ui/settings");var Ft=require("styled-components");var E=require("react-redux"),Ad=E.useDispatch.withTypes(),Xe=E.useSelector.withTypes(),kd=E.useStore.withTypes();var Lt=I(Tt(),1),_t=I(ve(),1),jt=require("@beinformed/ui/settings"),Nt=e=>{let t=Object.keys(e).map(o=>`\\b${o}\\b`).join("|"),r=new RegExp(`\\$(${t})`,"g");return Object.entries(e).forEach(([o,n])=>{o!=="settings"&&typeof n=="string"&&(e[o]=n.replace(r,(a,s)=>{let l=e[s];return typeof l=="string"?l:a}))}),e},ti=(e,...t)=>{let r=e?.settings??{},o={settings:{}};for(let n of t)if(typeof n=="function")o=n(Nt(o));else if((0,_t.default)(n)){let a=o.settings??{};o={...o,...n,...e},"settings"in n&&typeof n.settings=="object"&&(o.settings={...a,...n.settings,...r})}return Nt(o)},Z=(e,...t)=>{let r=(0,Lt.default)(t).filter(n=>n!=null),o=ti(e,...r);return o?.settings&&(0,jt.setSettings)(o.settings),o};var Ut=require("react/jsx-runtime"),Se=({theme:e,children:t})=>{let r=Xe(n=>n.preferences.theme),o=Z(r,e);return(0,Ut.jsx)(Ft.ThemeProvider,{theme:o,children:t})};Se.displayName="BI.ThemeProvider";var be=e=>{let t=e.getState(),r={};for(let n in t.modularui){let a=t.modularui[n];if(a){let{status:s,model:l,lastModification:c}=a;l?r[n]={status:s,lastModification:c,model:l}:r[n]={status:s,lastModification:c,model:void 0}}}let o={...t,modularui:r};return JSON.stringify(o).replace(/</g,"\\u003c")};var Q=require("react/jsx-runtime"),Ce=({store:e,theme:t,UUID:r="",render:o,template:n=he})=>{let a=new ee.ServerStyleSheet,s=(0,$t.renderToString)((0,Q.jsx)(Ht.Provider,{store:e,children:(0,Q.jsx)(ee.StyleSheetManager,{sheet:a.instance,children:(0,Q.jsx)(Se,{theme:t,children:o()})})})),l=Bt(a);return n({contextPath:(0,qt.getContextPathServer)(),html:s,head:l,state:be(e),UUID:r})},Bt=(e,t)=>{let r=e.getStyleTags(),o=t?.helmet,n=t?[...o.meta]:[];return t?{...o,style:r,meta:n}:{style:r,meta:n}};var ri=e=>{if(!e)return"";let t=[];return e.split("&").forEach(r=>{let[o,n]=r.split("=");o&&n?t.push(`${encodeURIComponent(o)}=${encodeURIComponent(n)}`):o&&t.push(encodeURIComponent(o))}),t.join("&")},oi=e=>{let t=e.getPathInfo()||"/",r=e.getQueryString();return t=t.split("/").map(o=>encodeURIComponent(o)).join("/"),r?`${t}?${ri(r)}`:t},Re=e=>({pathname:e.getPathInfo()||"/",search:e.getQueryString()||"",state:{},hash:""}),zt=(e,t)=>e.getCookieByName(t),Ie=(e,t)=>{let o=zt(e,"locale")||e.getHeader("Accept-Language");return o===null?t.availableLocaleCodes[0]:t.getPreferredLocale(o)};var Yn=I(Do(),1),Zn=require("@beinformed/ui/utils");var zo=I(require("deepmerge"),1),ke=require("@beinformed/ui/exceptions"),Go=require("@beinformed/ui/settings");var $=require("@reduxjs/toolkit"),y=require("@beinformed/ui/utils");var Ho=require("@beinformed/ui/exceptions"),qo=require("@beinformed/ui/models");var we=I(require("format-message"),1),Lo=require("immer"),_o=require("@beinformed/ui/exceptions"),jo=require("@beinformed/ui/settings"),Fo=require("@beinformed/ui/utils");var No={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 U=class{[Lo.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,we.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=No.lang[r];if(o)return o[1]+(t[1]?` (${t[1].toUpperCase()})`:"")}}throw new _o.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 Fo.IS_DEV&&!o&&t&&(0,jo.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,we.default)(t,r):t}getMessage(t,r,o){let n=this.getBaseMessage(t,r);return this.formatMessage(n,o)}update(t={},r={}){this.#e={...this.#e,...this.fixPlaceHoldersInObject(t)},this.#t={...this.#t,...this.fixPlaceHoldersInObject(r)}}};var Uo={"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 $o={"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 Pe=[{code:"en",messages:{},errors:Uo},{code:"nl",messages:{},errors:$o}];var P=class e extends qo.BaseCollection{constructor(t=Pe){super(t.map(r=>new U(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 Ho.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(n=>this.availableLocaleCodes.some(a=>n.startsWith(a))).map(n=>this.availableLocaleCodes.find(a=>n.startsWith(a)));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 U({code:t,messages:r,errors:o}))}};var $l=(0,$.createAction)("UPDATE_LOCALE",e=>({payload:e})),Ae=(0,$.createAction)("SET_LOCALES",(e,t)=>({payload:{locales:e,locale:t}})),Hl=()=>typeof navigator<"u"&&navigator?.language&&navigator?.language.split("-")[0]||"en",ql={locales:new P,locale:Hl()},Bo=(0,$.createReducer)(ql,e=>{e.addCase($l,(t,r)=>{t.locales?.length>1?(0,y.setCookie)("locale",r.payload):(0,y.clearCookie)("locale"),y.Cache.clear(),t.locale=r.payload}).addCase(Ae,(t,r)=>{let{locale:o,locales:n}=r.payload;t.locales.length>1?(0,y.setCookie)("locale",o):(0,y.clearCookie)("locale"),t.locales=n,o&&(t.locale=o)})});var Ko=(e,t=[],r)=>{if(!Array.isArray(t))throw new ke.IllegalArgumentException("locales must be an array of objects");if(!r)throw new ke.IllegalArgumentException("missing request argument");let o=Pe.map(l=>{let c=l.code,u=t.find(R=>R.code===c);return u?(0,zo.default)(l,u):l});t.forEach(l=>{o.some(c=>c.code===l.code)||o.push(l)});let n=o.filter(l=>(0,Go.getEnabledLocales)().includes(l.code)),a=new P(n),s=Ie(r,a);e.dispatch(Ae(a,s??"en"))};var Vo=(e=[],t)=>{if(e.length>0)for(let r of e)r(t)};var G=require("@reduxjs/toolkit");var v=require("@reduxjs/toolkit"),Bl={authenticated:!1,mustChangePassword:!1,error:null},zl=(0,v.createAction)("AUTHENTICATION_SUCCESS"),Oe=(0,v.createAction)("AUTHENTICATION_LOGOUT"),De=(0,v.createAction)("AUTHENTICATION_ERROR",e=>({payload:e})),Gl=(0,v.createAction)("AUTHENTICATION_RESET_ERRORS"),Ne=(0,v.createAction)("CHANGE_PASSWORD"),Wo=(0,v.createReducer)(Bl,e=>{e.addCase(zl,t=>{t.authenticated=!0,t.error=null,t.mustChangePassword=!1}).addCase(De,(t,r)=>{t.authenticated=!1,t.error=r.payload,t.mustChangePassword=!1}).addCase(Gl,t=>{t.error=null}).addCase(Oe,t=>{t.authenticated=!1,t.error=null,t.mustChangePassword=!1}).addCase(Ne,t=>{t.authenticated=!0,t.error=null,t.mustChangePassword=!0})});var re=require("@reduxjs/toolkit"),Le=(0,re.createAction)("SAVE_ERROR",e=>({payload:e})),Kl=null,Jo=(0,re.createReducer)(Kl,e=>{e.addCase(Le,(t,r)=>r.payload)});var H=require("@reduxjs/toolkit"),Vl=(0,H.createAction)("SHOW_MODAL",e=>({payload:e})),Wl=(0,H.createAction)("CLOSE_MODAL",e=>({payload:e})),Jl={modals:[]},Xo=(0,H.createReducer)(Jl,e=>{e.addCase(Vl,(t,r)=>{let o=r.payload;t.modals.forEach(a=>{a.visible=!1});let n=t.modals.find(a=>a.key===o);n?n.visible=!0:t.modals.push({key:o,visible:!0})}).addCase(Wl,(t,r)=>{let o=r.payload;t.modals=t.modals.filter(a=>a.key!==o);let n=t.modals[t.modals.length-1];n&&(n.visible=!0)})});var oe=require("@reduxjs/toolkit"),Yo=require("@beinformed/ui/utils"),Xl=(0,oe.createAction)("UPDATE_ENTRYDATE",e=>({payload:e})),Yl={entryDate:new Date().toISOString().split("T")[0]},Zo=(0,oe.createReducer)(Yl,e=>{e.addCase(Xl,(t,r)=>{Yo.Cache.addItem("ModelCatalogEntryDate",r.payload),t.entryDate=r.payload})});var Tn=require("@reduxjs/toolkit"),wn=require("@beinformed/ui/models");var In=require("@reduxjs/toolkit"),En=require("@beinformed/ui/constants"),B=require("@beinformed/ui/models"),Mn=require("@beinformed/ui/modularui");var Sn=require("@beinformed/ui/constants"),Fe=require("@beinformed/ui/models"),bn=require("@beinformed/ui/settings");var ln=require("@reduxjs/toolkit"),de=require("@beinformed/ui/settings"),_e=require("@beinformed/ui/utils");var rn=require("@reduxjs/toolkit"),ie=require("@beinformed/ui/models");var ne=require("reselect"),S=require("@beinformed/ui/models");var Zl=e=>e?.router?.location?.pathname;var en=(e,t)=>{if(e?.modularui){let r=t instanceof S.Href?t:new S.Href(t);return Object.keys(e.modularui).filter(o=>{let n=e.modularui[o];if(n)return n.model?.selfhref?.equals(r)})}return[]},Ql=(0,ne.createSelector)([e=>e.modularui],e=>{let t=[];return e&&Object.keys(e).forEach(r=>{let o=e[r];if(o&&"model"in o){let{key:n,selfhref:a,label:s,type:l}=o.model,c={key:n,selfhref:a,label:s,type:l,selfContentLink:null};o.model instanceof S.ContentModel||o.model instanceof S.ContentTOCModel?t.push({...c,selfContentLink:o.model.selfContentLink}):t.push(c)}}),t}),Cm=(0,ne.createSelector)([Zl,Ql],(e,t)=>{if(!e||!t.length)return[];let r=new Map(t.filter(s=>s.selfhref).map(s=>[s.selfhref?.toString(),s])),o=[],n=e.split("/"),a="";return n.forEach(s=>{a=a==="/"?`/${s}`:`${a}/${s}`;let l=decodeURIComponent(a).replace("/modelcatalog/","/"),c=r.get(l);if(c){let{key:u,label:R,type:fe,selfhref:p,selfContentLink:K}=c,Qn=a.startsWith("/modelcatalog/")&&K?new S.Href(`/modelcatalog${K.encodedHref.toString()}`):p;o.push({key:u,href:Qn,label:R,type:fe})}}),o}),Rm=(0,ne.createSelector)([e=>e.modularui,e=>e.i18n.locale],(e,t)=>e?Object.keys(e).filter(r=>{if(e[r]){let o=e[r];return o.status==="FINISHED"&&o.model?.locale===t}return!1}).map(r=>e[r].model):[]);var tn=require("@beinformed/ui/models"),ae=e=>{let t=e.i18n.locale||"en",r=e.modularui;if(r){let o=Object.keys(r).find(n=>{let a=r[n];return a?.model?a.model instanceof tn.ApplicationModel&&a.model.locale===t:!1});if(o)return r[o]}};var on=(0,rn.createAsyncThunk)("application/reload",async(e,{dispatch:t,getState:r})=>{let o=r(),n=new ie.Href("/","Application"),a=ae(o);a&&(a.contextPath&&(n.contextPath=a.contextPath),a.origin&&(n.origin=a.origin));let s=en(o,n);for(let u of s)t(h(u));let c=`application(/)(${W(o)}`;await t(f({key:c,href:n,options:{targetModel:ie.ApplicationModel}}))});var A=require("@reduxjs/toolkit"),se=(0,A.createAction)("ROUTER/PUSH",(e,t)=>({payload:{location:e,state:t}})),le=(0,A.createAction)("ROUTER/REPLACE",(e,t)=>({payload:{location:e,state:t}})),nn=(0,A.createAction)("ROUTER/GO",e=>({payload:{delta:e}})),an=(0,A.createAction)("ROUTER/GOBACK"),sn=(0,A.createAction)("ROUTER/GOFORWARD");var dn=(0,ln.createAsyncThunk)("auth/unauthorized",(e,{dispatch:t,getState:r})=>{if(e.connectKey&&t(h(e.connectKey)),(0,de.getBooleanSetting)("PAGE_RELOAD_ON_UNAUTHORIZED_ERROR",!1)&&e.response){window.location.reload();return}let o=ae(r());(_e.Cache.getItem("auth")||o?.isLoggedIn)&&t(on()),t(Oe()),_e.Cache.removeItem("auth"),e.isInvalidUsername&&t(De(e.message||""));let n=r().router.location,a=(0,de.getStringSetting)("LOGIN_PATH","/signin");if(n?.pathname!==a){let s=n?.state?.from;t(le(a,{from:s||r().router.location,modal:!1}))}});var fn=require("@reduxjs/toolkit"),gn=require("@beinformed/ui/settings");var q=require("@reduxjs/toolkit"),ce=(0,q.createAction)("START_PROGRESS"),me=(0,q.createAction)("FINISH_PROGRESS"),cn=(0,q.createAction)("RESET_PROGRESS"),mn=(0,q.createAction)("UPDATE_PROGRESS",e=>({payload:{percentComplete:e}}));var C=require("@reduxjs/toolkit");var un=(0,C.createAction)("SHOW_NOTIFICATION",(e,t,r)=>({payload:{type:e,message:t,error:r}})),je=(0,C.createAsyncThunk)("notifications/show",({type:e,message:t,error:r,timeout:o},{dispatch:n})=>{o&&setTimeout(()=>{n(ue())},o),n(un(e,t,r))}),ue=(0,C.createAction)("DISMISS_NOTIFICATION"),ed={render:!1,messageType:void 0,message:void 0,error:void 0},pn=(0,C.createReducer)(ed,e=>{e.addCase(un,(t,r)=>({...t,render:!0,messageType:r.payload.type,message:r.payload.message,error:r.payload.error})).addCase(ue,t=>({...t,render:!1,messageType:void 0,message:void 0,error:void 0}))});var td=e=>e.actiontype==="create"?"Notification.Msg.Create":e.actiontype==="update"?"Notification.Msg.Update":e.actiontype==="delete"?"Notification.Msg.Delete":"Notification.Msg.Generic",Bm=(0,fn.createAsyncThunk)("notification/show_form",async(e,{dispatch:t})=>(t(ce()),t(je({type:"SUCCESS",message:{id:td(e)}})),setTimeout(()=>{t(ue())},(0,gn.getNumberSetting)("HIDE_NOTIFICATION_TIMEOUT")),t(me()))),hn=e=>je({type:"ERROR",message:{id:e.id,defaultMessage:e.message,parameters:e.properties},error:e});var yn=require("@reduxjs/toolkit"),vn=(0,yn.createAction)("NO_ACTION");var rd=e=>t=>{if(e.isResourceNotFoundAfterReload||e.isRemoteServiceException)return t(vn());if(e.isUnauthorized)return t(dn(e));if(e.isBlocked||e.isConcurrentUser||e.isInvalidUsername){t(se((0,bn.logoutPath)()));return}return e.isChangePassword?t(Ne()):Sn.IS_SERVER?t(Le(e)):(setTimeout(()=>{throw e.error||e}),t(hn(e)))},od=(e,t)=>r=>r(t(e));var Cn=e=>{let t=e instanceof Fe.ErrorResponse?e:new Fe.ErrorResponse(e);return od(t,rd)};var Rn=(e,t)=>e||typeof navigator<"u"&&navigator?.language&&navigator.language.split("-")[0]||t;var nd=async({key:e,href:t,options:r},{dispatch:o,getState:n,rejectWithValue:a})=>{try{let s=Rn(r?.locale,n().i18n.locale),l=t instanceof B.Href?t:new B.Href(t,"",{origin:r?.origin,contextPath:r?.contextPath}),u=await new Mn.ModularUIRequest(l,{method:r?.method||En.HTTP_METHODS.GET,params:r?.params||"",data:r?.data||null,locale:s,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 u&&(u.connectKey=e),{key:e,model:u,updateHandler:r?.updateHandler}}catch(s){let l=new B.ErrorResponse(s,e,{origin:r?.origin,contextPath:r?.contextPath});throw l.isChangePassword||l.isResourceNotFoundAfterReload?o(h(e)):o(J(e,l)),o(Cn(s)),a(l)}},f=(0,In.createAsyncThunk)("modularui/fetchModel",nd,{condition:({key:e},{getState:t})=>{if(t().modularui[e]?.status==="LOADING")return!1}});var ad={},id=(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},sd=(e,t)=>{let{key:r,model:o}=t.payload;e[r]={model:o||void 0,lastModification:Date.now(),status:o?"FINISHED":"IDLE"}},ld=(e,t)=>{let{payload:r}=t;for(let{key:o,model:n}of r)e[o]={status:"FINISHED",lastModification:Date.now(),model:n}},xn=(e,t)=>{let r=t.payload,o=Object.keys(e).find(n=>e[n]?.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.`)},dd=(e,t)=>{delete e[t.payload]},cd=e=>{for(let t in e)e[t]?.model instanceof wn.ApplicationModel||delete e[t]},md=(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}},ud=(e,t)=>{let{key:r,model:o,updateHandler:n}=t.payload,a=o;n&&(a=n(o)),e[r]={model:a,lastModification:Date.now(),status:"FINISHED",error:void 0}},pd=(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}},Pn=(0,Tn.createReducer)(ad,e=>{e.addCase(J,id).addCase(ze,sd).addCase(X,ld).addCase(Ge,xn).addCase(Ke,xn).addCase(h,dd).addCase(Ve,cd).addCase(f.pending,md).addCase(f.fulfilled,ud).addCase(f.rejected,pd)});var z=require("@reduxjs/toolkit"),b=(0,z.createAction)("SET_PREFERENCE",(e,t)=>({payload:{key:e,value:t}})),Ue=(0,z.createAction)("SET_PREFERENCES",e=>({payload:{...e}})),fd={},An=(0,z.createReducer)(fd,e=>{e.addCase(b,(t,r)=>{let{key:o,value:n}=r.payload;t[o]=n}).addCase(Ue,(t,r)=>{for(let o of Object.keys(r.payload))t[o]=r.payload[o]})});var Dn=require("@reduxjs/toolkit");var gd={count:0,timestamp:0,percentComplete:0},kn=e=>({...e,count:e.count+1}),On=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}},hd=e=>({...e,count:0,timestamp:Date.now(),percentComplete:0}),Nn=(0,Dn.createReducer)(gd,e=>{e.addCase(ce,kn).addCase(me,On).addCase(cn,t=>({...t,count:0})).addCase(mn,(t,r)=>({...t,percentComplete:r.payload?.percentComplete})).addCase(f.pending,kn).addCase(f.fulfilled,On).addCase(f.rejected,hd)});var _n=require("history"),jn=require("@beinformed/ui/settings"),$e=null,Ln=null;function Fn(){if(typeof window>"u")throw new Error("getBrowserHistory can only be used in a browser environment.");let e=(0,jn.getContextPathServer)();return(!$e||e!==Ln)&&($e=(0,_n.createBrowserHistory)({basename:e}),Ln=e),$e}var Un=e=>t=>r=>o=>{if(se.match(o)){let{location:n,state:a}=o.payload;e.push(n,a)}else if(le.match(o)){let{location:n,state:a}=o.payload;e.replace(n,a)}else if(nn.match(o)){let{delta:n}=o.payload;e.go(n)}else an.match(o)?e.goBack():sn.match(o)&&e.goForward();return r(o)};var pe=require("@reduxjs/toolkit"),yd={location:void 0,action:void 0},vd=(0,pe.createAction)("ROUTER/LOCATION_CHANGE",(e,t)=>({payload:{location:e,action:t}})),$n=(0,pe.createReducer)(yd,e=>{e.addCase(vd,(t,r)=>{t.location=r.payload.location,t.action=r.payload.action})});var Hn={router:$n,preferences:An,modularui:Pn,i18n:Bo,auth:Wo,error:Jo,modals:Xo,modelcatalog:Zo,notification:pn,progressindicator:Nn},Sd=(0,G.combineReducers)(Hn),qn=(e,t,r=Fn())=>{let o=t?(0,G.combineReducers)({...Hn,...t}):Sd;return(0,G.configureStore)({reducer:o,middleware:n=>n({serializableCheck:!1}).concat(Un(r)),preloadedState:e})};var Bn=I(ve(),1),d=require("@beinformed/ui/constants"),zn=require("@beinformed/ui/exceptions"),m=require("@beinformed/ui/settings");var k=(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(n=>n.trim())),o},He=(e,t,r)=>{let o=k(e,t,r);return b(e,o)},Gn=e=>{let t;try{t=e?JSON.parse(e):null}catch(r){throw new zn.JsonParseException(`Theme file contains invalid JSON: ${r}`)}return t&&(0,Bn.default)(t)&&(0,m.setSettings)(t.settings),b("theme",t)},Kn=e=>{let t=!1;return typeof preferencesProvider<"u"&&typeof preferencesProvider.getModularUIContentInData<"u"?t=preferencesProvider.getModularUIContentInData():typeof e<"u"&&(t=e.preferences[m.ALL_CONTENT_IN_DATA_SETTING]),(0,m.setSetting)(m.ALL_CONTENT_IN_DATA_SETTING,!!t),b(m.ALL_CONTENT_IN_DATA_SETTING,t)},Vn=e=>{let t=!1;return typeof preferencesProvider<"u"&&typeof preferencesProvider.isIncludeTimeOffsetInDateTimes<"u"?t=preferencesProvider.isIncludeTimeOffsetInDateTimes():typeof e<"u"&&(t=e.preferences[m.INCLUDE_TIME_OFFSET]),(0,m.setSetting)(m.INCLUDE_TIME_OFFSET,!!t),b(m.INCLUDE_TIME_OFFSET,t)},Wn=e=>{let t={[d.LOGIN_TYPE]:k(d.LOGIN_TYPE,e?.preferences[d.LOGIN_TYPE]||""),[d.LOGIN_PATH_SETTING]:k(d.LOGIN_PATH_SETTING,e?.preferences[d.LOGIN_PATH_SETTING]||"/callback?client_name=FormClient"),[d.LOGIN_USERNAME_SETTING]:k(d.LOGIN_USERNAME_SETTING,e?.preferences[d.LOGIN_USERNAME_SETTING]||"j_username"),[d.LOGIN_PASSWORD_SETTING]:k(d.LOGIN_PASSWORD_SETTING,e?.preferences[d.LOGIN_PASSWORD_SETTING]||"j_password"),[d.LOGOUT_PATH_SETTING]:k(d.LOGOUT_PATH_SETTING,e?.preferences[d.LOGOUT_PATH_SETTING]||"/logout")};return(0,m.setSettings)(t),Ue(t)};var Jn=e=>{let t=preferencesProvider.getLayoutConfigFileLocation();if(typeof t=="string"){let r=t.startsWith("/")?`/resource${t}`:`/resource/${t}`,o=dataFetcher.fetch(r);if(o)e.dispatch(Gn(o));else throw new Error(`Could not read theme configuration file from: ${r}`)}};var Xn=(e,t)=>{t.forEach(r=>{if(typeof r=="object"){let{name:o,defaultValue:n,type:a}=r;n&&e.dispatch(He(o,n,a))}else e.dispatch(He(r,null))})},qe=(e,t)=>{Array.isArray(t)&&Xn(e,t),e.dispatch(Kn()),e.dispatch(Wn()),e.dispatch(Vn()),preferencesProvider&&preferencesProvider.isStudioContext&&preferencesProvider.isStudioContext()&&e.dispatch(b("isStudioContext",!0))};var bd=e=>{let t=e.getState();if(t.error&&(t.error.shouldThrowOnServer||!(0,Yn.default)(t.error,"shouldThrowOnServer")))throw t.error},Cd=({request:e,locales:t,customReducers:r,serverPreferences:o=[],theme:n,render:a,template:s,beforeRenderHooks:l,preloadApplication:c=!0})=>{if(e.getHeader("X-BI-Preview-Available"))return"<h1>Preview Available</h1>";let R=(0,Zn.createUUID)();__webpack_nonce__=R;let fe=Re(e),p=qn({router:{location:fe,action:void 0}},r);if(qe(p,o),Jn(p),n){let K=p.getState()?.preferences?.theme;Z(K,n)}return Ko(p,t,e),c&&ge(p),bd(p),Vo(l,{store:p,request:e}),Ce({store:p,theme:n,UUID:R,render:a,template:s})};0&&(module.exports={createHead,dehydrate,getCookieFromRequest,getFullRequestLocation,getFullRequestUrl,getPreferredLocale,htmlpage,renderSSRMinimal,serverNoSSR,setApplication,setServerPreferences,setServerPreferencesFromArray});
|
|
22
22
|
//# sourceMappingURL=index.cjs.map
|