@beinformed/react 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE.md +1 -0
  3. package/dist/ErrorBoundaryFallback-D6YQem9P.d.cts +13 -0
  4. package/dist/ErrorBoundaryFallback-D6YQem9P.d.ts +13 -0
  5. package/dist/beforeRenderHooks-CNvsMmi8.d.cts +18 -0
  6. package/dist/beforeRenderHooks-Gb0tcmCY.d.ts +18 -0
  7. package/dist/chunk-347XDLN7.js +1 -0
  8. package/dist/chunk-347XDLN7.js.map +1 -0
  9. package/dist/chunk-3OP2KQ56.js +2 -0
  10. package/dist/chunk-3OP2KQ56.js.map +1 -0
  11. package/dist/chunk-4AC7YQ5Q.js +2 -0
  12. package/dist/chunk-4AC7YQ5Q.js.map +1 -0
  13. package/dist/chunk-6E5DAS6G.js +1 -0
  14. package/dist/chunk-6E5DAS6G.js.map +1 -0
  15. package/dist/chunk-6KRECIRI.js +2 -0
  16. package/dist/chunk-6KRECIRI.js.map +1 -0
  17. package/dist/chunk-A4USB53Q.js +2 -0
  18. package/dist/chunk-A4USB53Q.js.map +1 -0
  19. package/dist/chunk-AMFWIR2R.js +2 -0
  20. package/dist/chunk-AMFWIR2R.js.map +1 -0
  21. package/dist/chunk-B7PQLTVC.js +2 -0
  22. package/dist/chunk-B7PQLTVC.js.map +1 -0
  23. package/dist/chunk-DI7VM62A.js +2 -0
  24. package/dist/chunk-DI7VM62A.js.map +1 -0
  25. package/dist/chunk-FW4363Y4.js +2 -0
  26. package/dist/chunk-FW4363Y4.js.map +1 -0
  27. package/dist/chunk-HDOILTJ2.js +2 -0
  28. package/dist/chunk-HDOILTJ2.js.map +1 -0
  29. package/dist/chunk-JYAETKRB.js +2 -0
  30. package/dist/chunk-JYAETKRB.js.map +1 -0
  31. package/dist/chunk-K3DTH6XN.js +2 -0
  32. package/dist/chunk-K3DTH6XN.js.map +1 -0
  33. package/dist/chunk-KNEDBCHP.js +2 -0
  34. package/dist/chunk-KNEDBCHP.js.map +1 -0
  35. package/dist/chunk-MT7D3AJU.js +12 -0
  36. package/dist/chunk-MT7D3AJU.js.map +1 -0
  37. package/dist/chunk-RKGGCIUD.js +2 -0
  38. package/dist/chunk-RKGGCIUD.js.map +1 -0
  39. package/dist/chunk-UZIZDEU6.js +2 -0
  40. package/dist/chunk-UZIZDEU6.js.map +1 -0
  41. package/dist/chunk-VFLYA5WJ.js +2 -0
  42. package/dist/chunk-VFLYA5WJ.js.map +1 -0
  43. package/dist/chunk-VG3QU524.js +22 -0
  44. package/dist/chunk-VG3QU524.js.map +1 -0
  45. package/dist/chunk-WBPDMDW4.js +2 -0
  46. package/dist/chunk-WBPDMDW4.js.map +1 -0
  47. package/dist/chunk-X2C7CKOK.js +2 -0
  48. package/dist/chunk-X2C7CKOK.js.map +1 -0
  49. package/dist/chunk-X3N2NQVZ.js +2 -0
  50. package/dist/chunk-X3N2NQVZ.js.map +1 -0
  51. package/dist/chunk-Y7ESITVO.js +2 -0
  52. package/dist/chunk-Y7ESITVO.js.map +1 -0
  53. package/dist/chunk-YG7XDCNV.js +2 -0
  54. package/dist/chunk-YG7XDCNV.js.map +1 -0
  55. package/dist/chunk-YJNJVQFW.js +2 -0
  56. package/dist/chunk-YJNJVQFW.js.map +1 -0
  57. package/dist/chunk-Z2Y3OPVI.js +2 -0
  58. package/dist/chunk-Z2Y3OPVI.js.map +1 -0
  59. package/dist/client/index.cjs +12 -0
  60. package/dist/client/index.cjs.map +1 -0
  61. package/dist/client/index.d.cts +84 -0
  62. package/dist/client/index.d.ts +84 -0
  63. package/dist/client/index.js +2 -0
  64. package/dist/client/index.js.map +1 -0
  65. package/dist/components/index.cjs +12 -0
  66. package/dist/components/index.cjs.map +1 -0
  67. package/dist/components/index.d.cts +28 -0
  68. package/dist/components/index.d.ts +28 -0
  69. package/dist/components/index.js +2 -0
  70. package/dist/components/index.js.map +1 -0
  71. package/dist/hooks/index.cjs +2 -0
  72. package/dist/hooks/index.cjs.map +1 -0
  73. package/dist/hooks/index.d.cts +353 -0
  74. package/dist/hooks/index.d.ts +353 -0
  75. package/dist/hooks/index.js +2 -0
  76. package/dist/hooks/index.js.map +1 -0
  77. package/dist/i18n/index.cjs +2 -0
  78. package/dist/i18n/index.cjs.map +1 -0
  79. package/dist/i18n/index.d.cts +26 -0
  80. package/dist/i18n/index.d.ts +26 -0
  81. package/dist/i18n/index.js +2 -0
  82. package/dist/i18n/index.js.map +1 -0
  83. package/dist/index.cjs +32 -0
  84. package/dist/index.cjs.map +1 -0
  85. package/dist/index.d.cts +27 -0
  86. package/dist/index.d.ts +27 -0
  87. package/dist/index.js +2 -0
  88. package/dist/index.js.map +1 -0
  89. package/dist/redux/index.cjs +2 -0
  90. package/dist/redux/index.cjs.map +1 -0
  91. package/dist/redux/index.d.cts +458 -0
  92. package/dist/redux/index.d.ts +458 -0
  93. package/dist/redux/index.js +2 -0
  94. package/dist/redux/index.js.map +1 -0
  95. package/dist/server/index.cjs +22 -0
  96. package/dist/server/index.cjs.map +1 -0
  97. package/dist/server/index.d.cts +78 -0
  98. package/dist/server/index.d.ts +78 -0
  99. package/dist/server/index.js +2 -0
  100. package/dist/server/index.js.map +1 -0
  101. package/dist/styled-components.d-CrkOxzv5.d.cts +346 -0
  102. package/dist/styled-components.d-CrkOxzv5.d.ts +346 -0
  103. package/dist/theme/index.cjs +2 -0
  104. package/dist/theme/index.cjs.map +1 -0
  105. package/dist/theme/index.d.cts +112 -0
  106. package/dist/theme/index.d.ts +112 -0
  107. package/dist/theme/index.js +2 -0
  108. package/dist/theme/index.js.map +1 -0
  109. package/dist/types-CGXygEPz.d.cts +8 -0
  110. package/dist/types-CGXygEPz.d.ts +8 -0
  111. package/dist/useForm-CG_DMYfZ.d.cts +178 -0
  112. package/dist/useForm-DW-a5mcV.d.ts +178 -0
  113. package/dist/utils/index.cjs +2 -0
  114. package/dist/utils/index.cjs.map +1 -0
  115. package/dist/utils/index.d.cts +6 -0
  116. package/dist/utils/index.d.ts +6 -0
  117. package/dist/utils/index.js +2 -0
  118. package/dist/utils/index.js.map +1 -0
  119. package/package.json +125 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js","../../src/i18n/index.ts","../../src/i18n/languages.ts","../../src/i18n/Locale.ts","../../src/i18n/Locales.ts","../../src/i18n/translations/beinformed_error_messages_en.nl.json","../../src/i18n/translations/beinformed_error_messages_nl.nl.json","../../src/i18n/react/Message.tsx","../../src/hooks/useI18n.ts","../../src/redux/hooks.ts","../../src/redux/i18n/i18nSelectors.ts","../../src/i18n/serverI18n.ts","../../src/redux/i18n/i18nReducer.ts","../../src/server/requestInformation.ts"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","// Generated by createIndex.js - Do not edit manually!\n// This file is automatically updated when the script runs.\n\nexport * from \"./languages\";\nexport * from \"./Locale\";\nexport * from \"./Locales\";\nexport * from \"./react\";\nexport * from \"./serverI18n\";\nexport * from \"./translations\";\n\nexport type * from \"./types\";\n","interface LanguagesObject {\n attribute: { name: number; nativeName: number };\n rtl: Record<string, number>;\n lang: Record<string, string[]>;\n}\n\nexport const languages: LanguagesObject = {\n attribute: {\n name: 0,\n nativeName: 1,\n },\n rtl: {\n ar: 1,\n dv: 1,\n fa: 1,\n ha: 1,\n he: 1,\n ks: 1,\n ku: 1,\n ps: 1,\n ur: 1,\n yi: 1,\n },\n lang: {\n aa: [\"Afar\", \"Afar\"],\n ab: [\"Abkhazian\", \"Аҧсуа\"],\n af: [\"Afrikaans\", \"Afrikaans\"],\n ak: [\"Akan\", \"Akana\"],\n am: [\"Amharic\", \"አማርኛ\"],\n an: [\"Aragonese\", \"Aragonés\"],\n ar: [\"Arabic\", \"العربية\"],\n as: [\"Assamese\", \"অসমীয়া\"],\n av: [\"Avar\", \"Авар\"],\n ay: [\"Aymara\", \"Aymar\"],\n az: [\"Azerbaijani\", \"Azərbaycanca / آذربايجان\"],\n ba: [\"Bashkir\", \"Башҡорт\"],\n be: [\"Belarusian\", \"Беларуская\"],\n bg: [\"Bulgarian\", \"Български\"],\n bh: [\"Bihari\", \"भोजपुरी\"],\n bi: [\"Bislama\", \"Bislama\"],\n bm: [\"Bambara\", \"Bamanankan\"],\n bn: [\"Bengali\", \"বাংলা\"],\n bo: [\"Tibetan\", \"བོད་ཡིག / Bod skad\"],\n br: [\"Breton\", \"Brezhoneg\"],\n bs: [\"Bosnian\", \"Bosanski\"],\n ca: [\"Catalan\", \"Català\"],\n ce: [\"Chechen\", \"Нохчийн\"],\n ch: [\"Chamorro\", \"Chamoru\"],\n co: [\"Corsican\", \"Corsu\"],\n cr: [\"Cree\", \"Nehiyaw\"],\n cs: [\"Czech\", \"Česky\"],\n cu: [\"Old Church Slavonic / Old Bulgarian\", \"словѣньскъ / slověnĭskŭ\"],\n cv: [\"Chuvash\", \"Чăваш\"],\n cy: [\"Welsh\", \"Cymraeg\"],\n da: [\"Danish\", \"Dansk\"],\n de: [\"German\", \"Deutsch\"],\n dv: [\"Divehi\", \"ދިވެހިބަސް\"],\n dz: [\"Dzongkha\", \"ཇོང་ཁ\"],\n ee: [\"Ewe\", \"Ɛʋɛ\"],\n el: [\"Greek\", \"Ελληνικά\"],\n en: [\"English\", \"English\"],\n eo: [\"Esperanto\", \"Esperanto\"],\n es: [\"Spanish\", \"Español\"],\n et: [\"Estonian\", \"Eesti\"],\n eu: [\"Basque\", \"Euskara\"],\n fa: [\"Persian\", \"فارسی\"],\n ff: [\"Peul\", \"Fulfulde\"],\n fi: [\"Finnish\", \"Suomi\"],\n fj: [\"Fijian\", \"Na Vosa Vakaviti\"],\n fo: [\"Faroese\", \"Føroyskt\"],\n fr: [\"French\", \"Français\"],\n fy: [\"West Frisian\", \"Frysk\"],\n ga: [\"Irish\", \"Gaeilge\"],\n gd: [\"Scottish Gaelic\", \"Gàidhlig\"],\n gl: [\"Galician\", \"Galego\"],\n gn: [\"Guarani\", \"Avañe'ẽ\"],\n gu: [\"Gujarati\", \"ગુજરાતી\"],\n gv: [\"Manx\", \"Gaelg\"],\n ha: [\"Hausa\", \"هَوُسَ\"],\n he: [\"Hebrew\", \"עברית\"],\n hi: [\"Hindi\", \"हिन्दी\"],\n ho: [\"Hiri Motu\", \"Hiri Motu\"],\n hr: [\"Croatian\", \"Hrvatski\"],\n ht: [\"Haitian\", \"Krèyol ayisyen\"],\n hu: [\"Hungarian\", \"Magyar\"],\n hy: [\"Armenian\", \"Հայերեն\"],\n hz: [\"Herero\", \"Otsiherero\"],\n ia: [\"Interlingua\", \"Interlingua\"],\n id: [\"Indonesian\", \"Bahasa Indonesia\"],\n ie: [\"Interlingue\", \"Interlingue\"],\n ig: [\"Igbo\", \"Igbo\"],\n ii: [\"Sichuan Yi\", \"ꆇꉙ / 四川彝语\"],\n ik: [\"Inupiak\", \"Iñupiak\"],\n io: [\"Ido\", \"Ido\"],\n is: [\"Icelandic\", \"Íslenska\"],\n it: [\"Italian\", \"Italiano\"],\n iu: [\"Inuktitut\", \"ᐃᓄᒃᑎᑐᑦ\"],\n ja: [\"Japanese\", \"日本語\"],\n jv: [\"Javanese\", \"Basa Jawa\"],\n ka: [\"Georgian\", \"ქართული\"],\n kg: [\"Kongo\", \"KiKongo\"],\n ki: [\"Kikuyu\", \"Gĩkũyũ\"],\n kj: [\"Kuanyama\", \"Kuanyama\"],\n kk: [\"Kazakh\", \"Қазақша\"],\n kl: [\"Greenlandic\", \"Kalaallisut\"],\n km: [\"Cambodian\", \"ភាសាខ្មែរ\"],\n kn: [\"Kannada\", \"ಕನ್ನಡ\"],\n ko: [\"Korean\", \"한국어\"],\n kr: [\"Kanuri\", \"Kanuri\"],\n ks: [\"Kashmiri\", \"कश्मीरी / كشميري\"],\n ku: [\"Kurdish\", \"Kurdî / كوردی\"],\n kv: [\"Komi\", \"Коми\"],\n kw: [\"Cornish\", \"Kernewek\"],\n ky: [\"Kirghiz\", \"Kırgızca / Кыргызча\"],\n la: [\"Latin\", \"Latina\"],\n lb: [\"Luxembourgish\", \"Lëtzebuergesch\"],\n lg: [\"Ganda\", \"Luganda\"],\n li: [\"Limburgian\", \"Limburgs\"],\n ln: [\"Lingala\", \"Lingála\"],\n lo: [\"Laotian\", \"ລາວ / Pha xa lao\"],\n lt: [\"Lithuanian\", \"Lietuvių\"],\n lv: [\"Latvian\", \"Latviešu\"],\n mg: [\"Malagasy\", \"Malagasy\"],\n mh: [\"Marshallese\", \"Kajin Majel / Ebon\"],\n mi: [\"Maori\", \"Māori\"],\n mk: [\"Macedonian\", \"Македонски\"],\n ml: [\"Malayalam\", \"മലയാളം\"],\n mn: [\"Mongolian\", \"Монгол\"],\n mo: [\"Moldovan\", \"Moldovenească\"],\n mr: [\"Marathi\", \"मराठी\"],\n ms: [\"Malay\", \"Bahasa Melayu\"],\n mt: [\"Maltese\", \"bil-Malti\"],\n my: [\"Burmese\", \"Myanmasa\"],\n na: [\"Nauruan\", \"Dorerin Naoero\"],\n nd: [\"North Ndebele\", \"Sindebele\"],\n ne: [\"Nepali\", \"नेपाली\"],\n ng: [\"Ndonga\", \"Oshiwambo\"],\n nl: [\"Dutch\", \"Nederlands\"],\n nn: [\"Norwegian Nynorsk\", \"Norsk (nynorsk)\"],\n no: [\"Norwegian\", \"Norsk (bokmål / riksmål)\"],\n nr: [\"South Ndebele\", \"isiNdebele\"],\n nv: [\"Navajo\", \"Diné bizaad\"],\n ny: [\"Chichewa\", \"Chi-Chewa\"],\n oc: [\"Occitan\", \"Occitan\"],\n oj: [\"Ojibwa\", \"ᐊᓂᔑᓈᐯᒧᐎᓐ / Anishinaabemowin\"],\n om: [\"Oromo\", \"Oromoo\"],\n or: [\"Oriya\", \"ଓଡ଼ିଆ\"],\n os: [\"Ossetian / Ossetic\", \"Иронау\"],\n pa: [\"Panjabi / Punjabi\", \"ਪੰਜਾਬੀ / पंजाबी / پنجابي\"],\n pi: [\"Pali\", \"Pāli / पाऴि\"],\n pl: [\"Polish\", \"Polski\"],\n ps: [\"Pashto\", \"پښتو\"],\n pt: [\"Portuguese\", \"Português\"],\n qu: [\"Quechua\", \"Runa Simi\"],\n rm: [\"Raeto Romance\", \"Rumantsch\"],\n rn: [\"Kirundi\", \"Kirundi\"],\n ro: [\"Romanian\", \"Română\"],\n ru: [\"Russian\", \"Русский\"],\n rw: [\"Rwandi\", \"Kinyarwandi\"],\n sa: [\"Sanskrit\", \"संस्कृतम्\"],\n sc: [\"Sardinian\", \"Sardu\"],\n sd: [\"Sindhi\", \"सिनधि\"],\n se: [\"Northern Sami\", \"Sámegiella\"],\n sg: [\"Sango\", \"Sängö\"],\n sh: [\"Serbo-Croatian\", \"Srpskohrvatski / Српскохрватски\"],\n si: [\"Sinhalese\", \"සිංහල\"],\n sk: [\"Slovak\", \"Slovenčina\"],\n sl: [\"Slovenian\", \"Slovenščina\"],\n sm: [\"Samoan\", \"Gagana Samoa\"],\n sn: [\"Shona\", \"chiShona\"],\n so: [\"Somalia\", \"Soomaaliga\"],\n sq: [\"Albanian\", \"Shqip\"],\n sr: [\"Serbian\", \"Српски\"],\n ss: [\"Swati\", \"SiSwati\"],\n st: [\"Southern Sotho\", \"Sesotho\"],\n su: [\"Sundanese\", \"Basa Sunda\"],\n sv: [\"Swedish\", \"Svenska\"],\n sw: [\"Swahili\", \"Kiswahili\"],\n ta: [\"Tamil\", \"தமிழ்\"],\n te: [\"Telugu\", \"తెలుగు\"],\n tg: [\"Tajik\", \"Тоҷикӣ\"],\n th: [\"Thai\", \"ไทย / Phasa Thai\"],\n ti: [\"Tigrinya\", \"ትግርኛ\"],\n tk: [\"Turkmen\", \"Туркмен / تركمن\"],\n tl: [\"Tagalog / Filipino\", \"Tagalog\"],\n tn: [\"Tswana\", \"Setswana\"],\n to: [\"Tonga\", \"Lea Faka-Tonga\"],\n tr: [\"Turkish\", \"Türkçe\"],\n ts: [\"Tsonga\", \"Xitsonga\"],\n tt: [\"Tatar\", \"Tatarça\"],\n tw: [\"Twi\", \"Twi\"],\n ty: [\"Tahitian\", \"Reo Mā`ohi\"],\n ug: [\"Uyghur\", \"Uyƣurqə / ئۇيغۇرچە\"],\n uk: [\"Ukrainian\", \"Українська\"],\n ur: [\"Urdu\", \"اردو\"],\n uz: [\"Uzbek\", \"Ўзбек\"],\n ve: [\"Venda\", \"Tshivenḓa\"],\n vi: [\"Vietnamese\", \"Tiếng Việt\"],\n vo: [\"Volapük\", \"Volapük\"],\n wa: [\"Walloon\", \"Walon\"],\n wo: [\"Wolof\", \"Wollof\"],\n xh: [\"Xhosa\", \"isiXhosa\"],\n yi: [\"Yiddish\", \"ייִדיש\"],\n yo: [\"Yoruba\", \"Yorùbá\"],\n za: [\"Zhuang\", \"Cuengh / Tôô / 壮语\"],\n zh: [\"Chinese\", \"中文\"],\n zu: [\"Zulu\", \"isiZulu\"],\n pap: [\"Papiamento\", \"Papiamento\"],\n },\n};\n","import { IllegalStateException } from \"@beinformed/ui/exceptions\";\nimport { getBooleanSetting } from \"@beinformed/ui/settings\";\nimport formatMessage from \"format-message\";\nimport { immerable } from \"immer\";\n\nimport { languages } from \"./languages\";\n\nimport type { MessageParameters } from \"@beinformed/ui/types\";\nimport type { LocaleConfiguration } from \"./types\";\n\n/**\n * Create a locale\n */\nexport class Locale {\n [immerable] = true;\n\n #code: string;\n #messages: Record<string, string>;\n #errors: Record<string, string>;\n #nativeName: string | undefined;\n\n constructor(locale: LocaleConfiguration) {\n this.#code = locale.code;\n\n this.#messages = this.fixPlaceHoldersInObject(locale.messages);\n this.#errors = this.fixPlaceHoldersInObject(locale.errors);\n\n this.#nativeName = locale.nativeName;\n\n formatMessage.setup({\n missingTranslation: \"ignore\",\n });\n }\n\n /**\n * Retrieve locale code\n */\n get code() {\n return this.#code;\n }\n\n /**\n * Retrieve nativeName\n */\n get nativeName() {\n if (this.#nativeName) {\n return this.#nativeName;\n }\n\n const locale = this.code.split(\"-\");\n\n if (locale.length > 0) {\n const languageCode = locale[0];\n if (languageCode) {\n const language = languages.lang[languageCode];\n\n if (language) {\n return (\n language[1] + (locale[1] ? ` (${locale[1].toUpperCase()})` : \"\")\n );\n }\n }\n }\n\n throw new IllegalStateException(\n `Can not find language name based on locale: ${this.code}`,\n );\n }\n\n /**\n * Exported messages from Be Informed have placeholders in the syntax ${placeholder_name}\n * where the ICU messageformat module uses {placeholder_name}.\n * This method converts the ${} to {}\n */\n fixPlaceHolders(message: string | undefined) {\n if (typeof message === \"string\") {\n return message\n .replace(/'\\$\\{(?<key>.*?)}'/g, \"''{$<key>}''\")\n .replace(/\\$\\{(?<key>.*?)}/g, \"{$<key>}\");\n }\n\n return null;\n }\n\n /**\n * Exported messages from Be Informed have placeholders in the syntax ${placeholder_name}\n * where the ICU messageformat module uses {placeholder_name}.\n * This method converts the ${} to {}\n */\n private fixPlaceHoldersInObject(messages: Record<string, string> = {}) {\n return JSON.parse(\n JSON.stringify(messages)\n .replace(/'\\$\\{(?<key>.*?)}'/g, \"''{$<key>}''\")\n .replace(/\\$\\{(?<key>.*?)}/g, \"{$<key>}\"),\n );\n }\n\n /**\n * Retrieve message by id\n */\n getBaseMessage(id: string, defaultMessage?: string) {\n if (!id && !defaultMessage) {\n return \"[message: id or defaultMessage missing]\";\n }\n\n const messageFromLocale = this.#messages[id] || this.#errors[id];\n\n if (\n (typeof process === \"undefined\" ||\n process.env.NODE_ENV !== \"production\") &&\n !messageFromLocale &&\n id &&\n getBooleanSetting(\"DEBUG_I18N_MESSAGE_NOT_FOUND\")\n ) {\n console.debug(\n `Message with id ${id} not found for locale ${this.code} in layout translations`,\n );\n }\n return messageFromLocale || this.fixPlaceHolders(defaultMessage) || id;\n }\n\n /**\n * Format message using formatMessage library\n */\n formatMessage(message: string, parameters?: MessageParameters) {\n if (parameters) {\n return formatMessage(message, parameters);\n }\n\n return message;\n }\n\n /**\n * Retrieve a messages with replaced parameters\n */\n getMessage(\n id: string,\n defaultMessage?: string,\n parameters?: MessageParameters,\n ): string {\n const message = this.getBaseMessage(id, defaultMessage);\n return this.formatMessage(message, parameters);\n }\n\n /**\n * Add or change messages for this locale. It is not possible to remove messages.\n */\n update(\n messages: Record<string, string> = {},\n errors: Record<string, string> = {},\n ) {\n this.#messages = {\n ...this.#messages,\n ...this.fixPlaceHoldersInObject(messages),\n };\n\n this.#errors = {\n ...this.#errors,\n ...this.fixPlaceHoldersInObject(errors),\n };\n }\n}\n","import { IllegalArgumentException } from \"@beinformed/ui/exceptions\";\nimport { BaseCollection } from \"@beinformed/ui/models\";\n\nimport { Locale } from \"./Locale\";\nimport englishErrors from \"./translations/beinformed_error_messages_en.nl.json\";\nimport dutchErrors from \"./translations/beinformed_error_messages_nl.nl.json\";\n\nimport type { LocaleConfiguration } from \"./types\";\n\ntype ErrorMessageObject = Record<string, Record<string, string>>;\n\ninterface HydratedLocales {\n collection: {\n code: string;\n messages: Record<string, string>;\n errors: Record<string, string>;\n }[];\n}\n\n/**\n * Array of available locales\n * Order of locales is the preferred order of locales.\n * When user has an accept language header that does not correspond to the locales array,\n * the first one is used as the preferred language\n */\nexport const availableLocales: LocaleConfiguration[] = [\n {\n code: \"en\",\n messages: {},\n errors: englishErrors,\n },\n {\n code: \"nl\",\n messages: {},\n errors: dutchErrors,\n },\n];\n\n/**\n * Merge an object with custom error messages (exported and translated from be informed for example) and merge them with the existing translations.\n */\nexport const createLocalesWithConfiguredErrors = (\n configuredErrors: ErrorMessageObject,\n) =>\n availableLocales.map((availableLocale) => {\n if (configuredErrors[availableLocale.code]) {\n return {\n ...availableLocale,\n errors: {\n ...availableLocale.errors,\n ...configuredErrors[availableLocale.code],\n },\n };\n }\n\n return availableLocale;\n });\n\n/**\n * Locales, collection of Locale\n */\nexport class Locales extends BaseCollection<Locale> {\n constructor(locales: LocaleConfiguration[] = availableLocales) {\n super(locales.map((locale) => new Locale(locale)));\n }\n\n /**\n * rehydrate\n */\n static rehydrate(hydatedLocales: HydratedLocales): Locales {\n if (hydatedLocales && hydatedLocales.collection) {\n return new Locales(\n hydatedLocales.collection.map((locale) => ({\n code: locale.code,\n messages: locale.messages,\n errors: locale.errors,\n })),\n );\n }\n\n return new Locales([]);\n }\n\n /**\n * Check if locale with localeCode exists\n */\n hasLocale(localeCode: string) {\n return this.some((item) => localeCode.startsWith(item.code));\n }\n\n /**\n * Retrieve locales by localeCode from Locales collection\n */\n getLocale(localeCode: string) {\n if (this.hasLocale(localeCode)) {\n const locale = this.find((item) => localeCode.startsWith(item.code));\n if (locale) {\n return locale;\n }\n }\n throw new IllegalArgumentException(\n `Locale configuration for locale ${localeCode} not found`,\n );\n }\n\n /**\n * Retrieve all available locale codes\n */\n get availableLocaleCodes() {\n return this.map((locale) => locale.code);\n }\n\n /**\n * Retrieve preferred locale based on the accept header of a browser\n */\n getPreferredLocale(acceptLanguageHeader: string | null) {\n if (acceptLanguageHeader != null) {\n const acceptLanguages =\n acceptLanguageHeader.match(/[-A-Za-z]{2,10}/gu) || [];\n\n const preferredLocales = acceptLanguages\n .filter((locale) =>\n this.availableLocaleCodes.some((availableLocale) =>\n locale.startsWith(availableLocale),\n ),\n )\n .map((locale) =>\n this.availableLocaleCodes.find((availableLocale) =>\n locale.startsWith(availableLocale),\n ),\n );\n\n if (preferredLocales.length > 0) {\n return preferredLocales[0];\n }\n }\n\n return this.availableLocaleCodes[0];\n }\n\n /**\n * Add or change messages and errors for the given locale.<br>\n * It is not possible to remove messages.\n */\n update(\n locale: string,\n messages: Record<string, string> = {},\n errors: Record<string, string> = {},\n ) {\n if (this.hasLocale(locale)) {\n this.getLocale(locale).update(messages, errors);\n } else {\n this.add(\n new Locale({\n code: locale,\n messages,\n errors,\n }),\n );\n }\n }\n}\n","{\n \"Constraint.Attribute.IncorrectValue\": \"Incorrect value\",\n \"Constraint.Boolean.InvalidValue\": \"Invalid boolean value, only values 'true' or 'false' are valid\",\n \"Constraint.BSN.InvalidFormat\": \"Must be a valid BSN\",\n \"Constraint.Captcha.InvalidToken\": \"The captcha is invalid\",\n \"Constraint.Choice.ConflictingAnswer\": \"Cannot select '${answer-option-key}' because this is not a relevant option, given the other answers\",\n \"Constraint.Choice.ConflictingOptions\": \"Cannot select '${answer-option-key1}' and '${answer-option-key2}' at the same time\",\n \"Constraint.Choice.InvalidOption\": \"Allowed options are: ${options}\",\n \"Constraint.Choice.InvalidOption.General\": \"Value '${value}' is not allowed\",\n \"Constraint.Choice.MultipleNotAllowed\": \"Selecting multiple options is not allowed\",\n \"Constraint.ConfirmCurrentPassword.Invalid\": \"Must match the current password\",\n \"Constraint.Date.AboveMaximum\": \"Must be on or before ${max-date}\",\n \"Constraint.Date.BelowMinimum\": \"Must be on or after ${min-date}\",\n \"Constraint.Date.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.Date.NotOnDate\": \"Must be on ${date}\",\n \"Constraint.Date.OutOfRange\": \"Must be between ${min-date} and ${max-date}\",\n \"Constraint.DateRange.InvalidRange\": \"Start date must be before end date\",\n \"Constraint.DateRange.Mandatory\": \"Field is mandatory: must contain at least a start or end date\",\n \"Constraint.DateTime.AboveMaximum\": \"Must be before ${max-date-time}\",\n \"Constraint.DateTime.BelowMinimum\": \"Must be at ${min-date-time} or after\",\n \"Constraint.DateTime.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.DateTime.OutOfRange\": \"Must be between ${min-date-time} and ${max-date-time}\",\n \"Constraint.DateTimeRange.InvalidRange\": \"Start date-time must be before end date-time\",\n \"Constraint.DateTimeRange.Mandatory\": \"Field is mandatory: must contain at least a start or end date-time\",\n \"Constraint.Document.MimeTypeNotAllowed\": \"The document mime type is not valid for the selected document type\",\n \"Constraint.Email.InvalidFormat\": \"Must be a valid e-mail address\",\n \"Constraint.File.DataEmpty\": \"File does not exist or has no content\",\n \"Constraint.File.InvalidExtension\": \"Allowed extensions are: ${extensions}\",\n \"Constraint.File.InvalidFormat\": \"Must meet the requirements of the file name\",\n \"Constraint.File.InvalidMimeType\": \"Allowed mime types are: ${mime-types}\",\n \"Constraint.File.MaxFileSizeExceeded\": \"Maximum file upload size is ${max-filesize}\",\n \"Constraint.File.OnlyAllowsOneFile\": \"Only one file is allowed\",\n \"Constraint.IBAN.InvalidFormat\": \"Must be a valid IBAN number\",\n \"Constraint.InvalidLengthBetween\": \"Length must be between ${min-length} and ${max-length} characters\",\n \"Constraint.InvalidLengthExact\": \"Length must be precisely ${length} characters\",\n \"Constraint.InvalidLengthTooLong\": \"Length must not be larger than ${max-length} characters\",\n \"Constraint.InvalidLengthTooShort\": \"Length must be at least ${min-length} characters\",\n \"Constraint.InvalidRegularExpression\": \"The value is not according the given regular expression ${regexp}\",\n \"Constraint.Mandatory\": \"Field is mandatory\",\n \"Constraint.Missing\": \"Field is mandatory\",\n \"Constraint.Number.AboveMaximum\": \"Must be at most ${max-number}\",\n \"Constraint.Number.BelowMinimum\": \"Must be at least ${min-number}\",\n \"Constraint.Number.InvalidDecimal\": \"Must be a number with up to ${max-digits} decimal places\",\n \"Constraint.Number.InvalidInteger\": \"Must be a whole number\",\n \"Constraint.Number.InvalidLong\": \"Must be a whole number\",\n \"Constraint.Number.OutOfRange\": \"Must be between ${min-number} and ${max-number}\",\n \"Constraint.NumberRange.BothFieldsMandatory\": \"Must contain start and end value\",\n \"Constraint.NumberRange.InvalidRange\": \"Start value must be less than the end value\",\n \"Constraint.NumberRange.Mandatory\": \"Field is mandatory: must contain at least a start or end value\",\n \"Constraint.Password.AlreadyUsed\": \"Must not have been used before\",\n \"Constraint.Password.LowerAndUpperCaseMandatory\": \"Must contain both upper and lowercase characters\",\n \"Constraint.Password.MinNumericCharactersMandatory\": \"Must contain ${min-numeric} or more numerical characters\",\n \"Constraint.Password.MinSpecialCharactersMandatory\": \"Must contain ${min-special} or more special characters\",\n \"Constraint.Password.ThreeConsecutiveCharactersNotAllowed\": \"Must not contain any character more than twice consecutively\",\n \"Constraint.Password.Unchanged\": \"Must not be the same as the old password\",\n \"Constraint.Password.UserNameSubstringNotAllowed\": \"Must not have 5 consecutive characters from username\",\n \"Constraint.SortParameter.InvalidValue\": \"Invalid sort parameter. Allowed values: field+[asc|desc]\",\n \"Constraint.Time.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.TimeRange.InvalidRange\": \"Start time must be before end time\",\n \"Constraint.TimeRange.Mandatory\": \"Field is mandatory: must contain at least a start or end time\",\n \"Constraint.TimeStamp.AboveMaximum\": \"Must be on or before ${max-date}\",\n \"Constraint.TimeStamp.BelowMinimum\": \"Must be on or after ${min-date}\",\n \"Constraint.Timestamp.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.TimeStampRange.InvalidRange\": \"Start value must be before end value\",\n \"Constraint.TimeStampRange.Mandatory\": \"Field is mandatory: must contain at least a start or end value\",\n \"Constraint.XML.InvalidFormat\": \"Must be well-formed XML\",\n \"Constraint.ZipCode.InvalidFormat\": \"Must be a valid Dutch ZIP code, e.g. 1234AB\",\n \"Error.AcceptHeaderRequired\": \"The 'Accept' request-header field must be provided\",\n \"Error.Authentication.BlockedUser\": \"You have been logged out, because your account has been blocked\",\n \"Error.Authentication.ConcurrentUser\": \"You have been logged out, since your username has been used at a different location.\",\n \"Error.Authentication.InvalidCredentials\": \"Authentication failed\",\n \"Error.Authentication.InvalidUsername\": \"You have been logged out, because your username is not valid anymore\",\n \"Error.Authentication.Required\": \"Authentication is required\",\n \"Error.Case.ConcurrentModification\": \"Another user has updated a case used in this task. As a result, this task can not be completed.\",\n \"Error.ChangePasswordRequired\": \"User password is initial or expired, and must be changed \",\n \"Error.CodemapLookup.InvalidToken\": \"Token for codemap lookup is not valid\",\n \"Error.DataStore.ConcurrentModification\": \"Another user has updated a record used in this task\",\n \"Error.DataStore.RecordAlreadyExists\": \"\",\n \"Error.DataStore.RowCannotBeLocked\": \"Another user has already locked a record used in this task\",\n \"Error.Form.DataNotAvailableForId\": \"Service can not be completed, data not available for mandatory element ${elementid}\",\n \"Error.Form.ObjectNotAllowed\": \"Object '${objectid}' is not allowed\",\n \"Error.Form.ReadOnlyElementId\": \"Element '${elementid}' is read only\",\n \"Error.Form.TooManyObjects\": \"Too many objects '${objectid}' provided\",\n \"Error.Form.UndefinedElementId\": \"Undefined element '${elementid}'\",\n \"Error.Form.UndefinedObject\": \"Undefined object(s) '${objectid}'\",\n \"Error.GeneralError\": \"An unexpected error occurred\",\n \"Error.MethodNotAllowed\": \"The given HTTP method is not allowed for this resource\",\n \"Error.Parameter.InvalidValue\": \"The parameter contains characters that are not allowed\",\n \"Error.Parameter.Mandatory\": \"Parameter ${parameter} is mandatory\",\n \"Error.Parameter.NotAllowed\": \"Parameter '${parameter}' is not allowed\",\n \"Error.ResourceNotFound\": \"The requested resource cannot be found\",\n \"Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch\": \"Password and password confirmation do not match.\",\n \"Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists\": \"A user with email address '${Email}' already exists\",\n \"Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists\": \"A user with username '${Username}' already exists\",\n \"Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists\": \"An organization with id '${ID}' already exists\"\n}\n","{\n \"Constraint.Attribute.IncorrectValue\": \"Ongeldige waarde\",\n \"Constraint.Boolean.InvalidValue\": \"Waarde voldoet niet aan het boolean formaat, alleen waarden 'true' en 'false' zijn toegestaan\",\n \"Constraint.BSN.InvalidFormat\": \"Moet een geldig BSN zijn\",\n \"Constraint.Captcha.InvalidToken\": \"Captcha is niet correct\",\n \"Constraint.Choice.ConflictingAnswer\": \"'${answer-option-key}' kan niet worden gekozen omdat dit geen relevante optie is, gegeven de andere antwoorden\",\n \"Constraint.Choice.ConflictingOptions\": \"'${answer-option-key1}' and '${answer-option-key2}' kunnen niet tegelijkertijd worden gekozen\",\n \"Constraint.Choice.InvalidOption\": \"Toegestane waarden zijn: ${options}\",\n \"Constraint.Choice.InvalidOption.General\": \"Waarde '${value}' is niet toegestaan\",\n \"Constraint.Choice.MultipleNotAllowed\": \"Meerdere opties selecteren is niet toegestaan\",\n \"Constraint.ConfirmCurrentPassword.Invalid\": \"Moet overeenkomen met het huidige wachtwoord\",\n \"Constraint.Date.AboveMaximum\": \"Moet op of voor ${max-date} liggen\",\n \"Constraint.Date.BelowMinimum\": \"Moet op of na ${min-date} liggen\",\n \"Constraint.Date.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.Date.NotOnDate\": \"Moet op ${date} liggen\",\n \"Constraint.Date.OutOfRange\": \"Moet tussen ${min-date} en ${max-date} liggen\",\n \"Constraint.DateRange.InvalidRange\": \"De begindatum dient voor de einddatum te liggen\",\n \"Constraint.DateRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of einddatum bevatten\",\n \"Constraint.DateTime.AboveMaximum\": \"Moet voor ${max-date-time} liggen\",\n \"Constraint.DateTime.BelowMinimum\": \"Moet op ${min-date-time} of later liggen\",\n \"Constraint.DateTime.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.DateTime.OutOfRange\": \"Moet tussen ${min-date-time} en ${max-date-time} liggen\",\n \"Constraint.DateTimeRange.InvalidRange\": \"De begindatumtijd dient voor de einddatumtijd te liggen\",\n \"Constraint.DateTimeRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of einddatumtijd bevatten\",\n \"Constraint.Document.MimeTypeNotAllowed\": \"Het document mime type voldoet niet aan het document type\",\n \"Constraint.Email.InvalidFormat\": \"Moet een geldig emailadres zijn\",\n \"Constraint.File.DataEmpty\": \"Bestand bestaat niet of heeft geen inhoud\",\n \"Constraint.File.InvalidExtension\": \"Toegestane extensies zijn: ${extensions}\",\n \"Constraint.File.InvalidFormat\": \"Voldoet niet aan de voorwaarden van een bestandsnaam\",\n \"Constraint.File.InvalidMimeType\": \"Toegestane mime-types zijn: ${mime-types}\",\n \"Constraint.File.MaxFileSizeExceeded\": \"De maximum file grootte voor upload is ${max-filesize}\",\n \"Constraint.File.OnlyAllowsOneFile\": \"Er is slechts één bestand toegestaan\",\n \"Constraint.IBAN.InvalidFormat\": \"Moet een geldig IBAN nummer zijn\",\n \"Constraint.InvalidLengthBetween\": \"Lengte moet tussen ${min-length} en ${max-length} karakters liggen\",\n \"Constraint.InvalidLengthExact\": \"Lengte moet precies ${length} karakters zijn\",\n \"Constraint.InvalidLengthTooLong\": \"Lengte mag niet langer dan ${max-length} karakters zijn\",\n \"Constraint.InvalidLengthTooShort\": \"Lengte moet tenminste ${min-length} karakters zijn\",\n \"Constraint.InvalidRegularExpression\": \"De waarde voldoet niet aan de reguliere expressie ${regexp}\",\n \"Constraint.Mandatory\": \"Veld is verplicht\",\n \"Constraint.Missing\": \"Veld is verplicht\",\n \"Constraint.Number.AboveMaximum\": \"Mag niet groter dan ${max-number} zijn\",\n \"Constraint.Number.BelowMinimum\": \"Moet minstens ${min-number} zijn\",\n \"Constraint.Number.InvalidDecimal\": \"Moet een getal zijn met maximaal ${max-digits} decimalen\",\n \"Constraint.Number.InvalidInteger\": \"Moet een geheel getal zijn\",\n \"Constraint.Number.InvalidLong\": \"Moet een geheel getal zijn\",\n \"Constraint.Number.OutOfRange\": \"Moet tussen ${min-number} en ${max-number} liggen\",\n \"Constraint.NumberRange.BothFieldsMandatory\": \"Moet zowel een begin- als een eindwaarde bevatten\",\n \"Constraint.NumberRange.InvalidRange\": \"De beginwaarde dient kleiner te zijn dan de eindwaarde\",\n \"Constraint.NumberRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten\",\n \"Constraint.Password.AlreadyUsed\": \"Mag niet eerder zijn gebruikt\",\n \"Constraint.Password.LowerAndUpperCaseMandatory\": \"Moet zowel hoofdletters als kleine letters bevatten\",\n \"Constraint.Password.MinNumericCharactersMandatory\": \"Moet ${min-numeric} of meer numerieke karakters bevatten\",\n \"Constraint.Password.MinSpecialCharactersMandatory\": \"Moet ${min-special} of meer speciale karakters bevatten\",\n \"Constraint.Password.ThreeConsecutiveCharactersNotAllowed\": \"Mag niet meer dan twee dezelfde karakters achter elkaar bevatten\",\n \"Constraint.Password.Unchanged\": \"Mag niet hetzelfde zijn als het oude wachtwoord\",\n \"Constraint.Password.UserNameSubstringNotAllowed\": \"Mag niet vijf opeenvolgende karakters van de gebruikersnaam bevatten\",\n \"Constraint.SortParameter.InvalidValue\": \"Ongeldige sorteerparameter. Toegestane waardes: veld+[asc|desc]\",\n \"Constraint.Time.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.TimeRange.InvalidRange\": \"De begintijd dient voor de eindtijd te liggen\",\n \"Constraint.TimeRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindtijd bevatten\",\n \"Constraint.TimeStamp.AboveMaximum\": \"Moet op of voor ${max-date} liggen\",\n \"Constraint.TimeStamp.BelowMinimum\": \"Moet op of na ${min-date} liggen\",\n \"Constraint.Timestamp.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.TimeStampRange.InvalidRange\": \"De beginwaarde dient voor de eindwaarde te liggen\",\n \"Constraint.TimeStampRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten\",\n \"Constraint.XML.InvalidFormat\": \"Moet geldige XML zijn\",\n \"Constraint.ZipCode.InvalidFormat\": \"Moet een geldige postcode zijn, bijvoorbeeld 1234AB\",\n \"Error.AcceptHeaderRequired\": \"De 'Accept' request-header moet worden meegegeven\",\n \"Error.Authentication.BlockedUser\": \"U bent uitgelogd omdat uw account geblokkeerd is\",\n \"Error.Authentication.ConcurrentUser\": \"U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.\",\n \"Error.Authentication.InvalidCredentials\": \"Inloggen is mislukt\",\n \"Error.Authentication.InvalidUsername\": \"U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is\",\n \"Error.Authentication.Required\": \"Autorisatie is vereist\",\n \"Error.Case.ConcurrentModification\": \"Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan\",\n \"Error.ChangePasswordRequired\": \"Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast\",\n \"Error.CodemapLookup.InvalidToken\": \"Token voor keuzelijst lookup is niet valide\",\n \"Error.DataStore.ConcurrentModification\": \"Een andere gebruiker heeft de rij in de datastore reeds aangepast\",\n \"Error.DataStore.RecordAlreadyExists\": \"\",\n \"Error.DataStore.RowCannotBeLocked\": \"Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.\",\n \"Error.Form.DataNotAvailableForId\": \"Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar\",\n \"Error.Form.ObjectNotAllowed\": \"Object '${objectid}' is niet toegestaan\",\n \"Error.Form.ReadOnlyElementId\": \"Element '${elementid}' is alleen lezen\",\n \"Error.Form.TooManyObjects\": \"Te veel objecten '${objectid}' aangeleverd\",\n \"Error.Form.UndefinedElementId\": \"Element '${elementid}' is ongedefinieerd\",\n \"Error.Form.UndefinedObject\": \"Object(en) '${objectid}' ongedefinieerd\",\n \"Error.GeneralError\": \"Er is een onverwachte fout opgetreden\",\n \"Error.MethodNotAllowed\": \"De opgegeven HTTP methode is niet toegestaan op deze resource\",\n \"Error.Parameter.InvalidValue\": \"De parameter bevat karakters die niet zijn toegestaan\",\n \"Error.Parameter.Mandatory\": \"De parameter ${parameter} is verplicht\",\n \"Error.Parameter.NotAllowed\": \"Parameter '${parameter}' is niet toegestaan\",\n \"Error.ResourceNotFound\": \"De opgevraagde resource kan niet worden gevonden\",\n \"Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch\": \"Het wachtwoord en de wachtwoordbevestiging komen niet overeen\",\n \"Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists\": \"Een gebruiker met e-mailadres '${Email}' bestaat al\",\n \"Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists\": \"Een gebruiker met gebruikersnaam '${Username}' bestaat al\",\n \"Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists\": \"Een organisatie met id '${ID}' bestaat al\"\n}\n","import { hideVisually } from \"polished\";\n\nimport { useMessage } from \"../../hooks/useI18n\";\n\nimport type { MessageParameters } from \"@beinformed/ui/types\";\n\ninterface Props {\n className?: string;\n id: string;\n defaultMessage?: string | null;\n children?: string;\n data?: MessageParameters | undefined;\n screenreaderOnly?: boolean;\n allowHTML?: boolean;\n}\n\n/**\n * Message React component\n */\nconst Message = ({\n className,\n id,\n defaultMessage,\n children,\n data,\n screenreaderOnly = false,\n allowHTML = false,\n}: Props) => {\n const translatedMessage = useMessage(id, defaultMessage || children, data);\n\n if (screenreaderOnly) {\n const styles = {\n ...hideVisually(),\n };\n\n return (\n <span className={className} style={styles}>\n {translatedMessage}\n </span>\n );\n }\n\n if (allowHTML) {\n return (\n <span\n className={className}\n dangerouslySetInnerHTML={{\n __html: translatedMessage,\n }}\n />\n );\n }\n\n return <span className={className}>{translatedMessage}</span>;\n};\n\nMessage.displayName = \"BI.Message\";\n\nexport default Message;\n","import memoize from \"lodash/memoize\";\nimport { createSelector } from \"reselect\";\n\nimport { useBEISelector } from \"../redux/hooks\";\nimport { getLocale, getLocales } from \"../redux/i18n/i18nSelectors\";\n\nimport type { MessageParameters } from \"@beinformed/ui/types\";\nimport type { RootState } from \"../redux/store\";\n\nconst getMessage = createSelector(\n [getLocales, getLocale],\n (locales, localeCode) =>\n memoize(\n (\n id: string,\n defaultMessage?: string,\n placeholders?: MessageParameters | undefined,\n ) =>\n locales\n .getLocale(localeCode)\n .getMessage(id, defaultMessage, placeholders),\n (...args) => JSON.stringify(args),\n ),\n);\n\nexport const useMessage = (\n id: string,\n defaultMessage?: string,\n placeholders?: MessageParameters | undefined,\n) => useBEISelector(getMessage)(id, defaultMessage, placeholders);\n\nexport const useTranslate = () => useBEISelector(getMessage);\n\nexport const useLocale = (): string => useBEISelector(getLocale);\n\nconst getLocaleCodes = createSelector(\n (state: RootState) => state.i18n.locales,\n (locales) => locales.map((locale: { code: string }) => locale.code),\n);\n\n/**\n * Retrieve all available locale codes\n */\nexport const useLocaleCodes = (): string[] => useBEISelector(getLocaleCodes);\n","// eslint-disable-next-line no-restricted-imports\nimport { useDispatch, useSelector, useStore } from \"react-redux\";\n\nimport type { BEIDispatch, BEIStore, RootState } from \"./store\";\n\n// Use throughout the library instead of plain `useDispatch` and `useSelector`\nexport const useBEIDispatch = useDispatch.withTypes<BEIDispatch>();\nexport const useBEISelector = useSelector.withTypes<RootState>();\nexport const useBEIStore = useStore.withTypes<BEIStore>();\n","import type { Locales } from \"../../i18n/Locales\";\nimport type { RootState } from \"../store\";\n\n/**\n * Retrieve the locale from state\n */\nexport const getLocale = (state: RootState) => {\n return state.i18n?.locale ?? \"en\";\n};\n\n/**\n * Retrieve all available locales in the store\n */\nexport const getLocales = (state: RootState): Locales => state.i18n.locales;\n","import { IllegalArgumentException } from \"@beinformed/ui/exceptions\";\nimport { getEnabledLocales } from \"@beinformed/ui/settings\";\nimport deepmerge from \"deepmerge\";\n\nimport { setLocales } from \"../redux/i18n/i18nReducer\";\nimport { getPreferredLocale } from \"../server/requestInformation\";\nimport { availableLocales, Locales } from \"./Locales\";\n\nimport type { BEIStore } from \"../redux/store\";\nimport type { HttpServletRequestJava } from \"../server/types\";\nimport type { LocaleConfiguration } from \"./types\";\n\nexport const setI18n = (\n store: BEIStore,\n locales: LocaleConfiguration[] = [],\n request: HttpServletRequestJava,\n) => {\n if (!Array.isArray(locales)) {\n throw new IllegalArgumentException(\"locales must be an array of objects\");\n }\n if (!request) {\n throw new IllegalArgumentException(\"missing request argument\");\n }\n\n const mergedLocales = availableLocales.map((locale) => {\n const code = locale.code;\n const customLocale = locales.find((custLocale) => custLocale.code === code);\n\n if (customLocale) {\n return deepmerge(locale, customLocale);\n }\n\n return locale;\n });\n\n locales.forEach((customLocale) => {\n if (!mergedLocales.some((locale) => locale.code === customLocale.code)) {\n mergedLocales.push(customLocale);\n }\n });\n\n const enabledLocales = mergedLocales.filter((locale: LocaleConfiguration) =>\n getEnabledLocales().includes(locale.code),\n );\n\n const localesInstance = new Locales(enabledLocales);\n const preferredLocale = getPreferredLocale(request, localesInstance);\n store.dispatch(setLocales(localesInstance, preferredLocale ?? \"en\"));\n};\n","import { Cache, clearCookie, setCookie } from \"@beinformed/ui/utils\";\nimport { createAction, createReducer } from \"@reduxjs/toolkit\";\n\nimport { Locales } from \"../../i18n/Locales\";\n\nexport interface I18nState {\n locales: Locales;\n locale: string;\n}\n\nexport const receiveLocale = (locale: string) => updateLocale(locale);\n\nexport const updateLocale = createAction(\"UPDATE_LOCALE\", (locale: string) => {\n return { payload: locale };\n});\n\nexport const setLocales = createAction(\n \"SET_LOCALES\",\n (locales: Locales, locale: string) => {\n return { payload: { locales, locale } };\n },\n);\n\nconst getDefaultLocale = () => {\n if (typeof navigator !== \"undefined\" && navigator?.language) {\n return navigator?.language.split(\"-\")[0] || \"en\";\n }\n return \"en\";\n};\n\nconst initialState = {\n locales: new Locales(),\n locale: getDefaultLocale(),\n};\n\nexport const i18nReducer = createReducer<I18nState>(initialState, (builder) => {\n builder\n .addCase(updateLocale, (state, action) => {\n if (state.locales?.length > 1) {\n setCookie(\"locale\", action.payload);\n } else {\n clearCookie(\"locale\");\n }\n\n // clear cache because of cached contributions\n Cache.clear();\n\n state.locale = action.payload;\n })\n .addCase(setLocales, (state, action) => {\n const { locale, locales } = action.payload;\n\n if (state.locales.length > 1) {\n setCookie(\"locale\", locale);\n } else {\n clearCookie(\"locale\");\n }\n\n state.locales = locales;\n if (locale) {\n state.locale = locale;\n }\n });\n});\n","import type { Locales } from \"../i18n/Locales\";\nimport type { RouterLocation } from \"../redux/router/routerReducer\";\nimport type { HttpServletRequestJava } from \"./types\";\n\nconst encodeQueryString = (queryString: string) => {\n if (!queryString) return \"\";\n\n const params: string[] = [];\n queryString.split(\"&\").forEach((part) => {\n const [key, value] = part.split(\"=\");\n if (key && value) {\n params.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);\n } else if (key) {\n params.push(encodeURIComponent(key));\n }\n });\n return params.join(\"&\");\n};\n\nexport const getFullRequestUrl = (request: HttpServletRequestJava): string => {\n let pathInfo = request.getPathInfo() || \"/\";\n const queryString = request.getQueryString();\n\n pathInfo = pathInfo\n .split(\"/\")\n .map((segment) => encodeURIComponent(segment))\n .join(\"/\");\n\n if (queryString) {\n return `${pathInfo}?${encodeQueryString(queryString)}`;\n }\n\n return pathInfo;\n};\n\nexport const getFullRequestLocation = (\n request: HttpServletRequestJava,\n): RouterLocation => {\n return {\n pathname: request.getPathInfo() || \"/\",\n search: request.getQueryString() || \"\",\n state: {},\n hash: \"\",\n };\n};\n\nexport const getCookieFromRequest = (\n request: HttpServletRequestJava,\n cookieName: string,\n): null | string => {\n return request.getCookieByName(cookieName);\n};\n\nexport const getPreferredLocale = (\n request: HttpServletRequestJava,\n locales: Locales,\n): void | string => {\n const languageFromCookie = getCookieFromRequest(request, \"locale\");\n const acceptLanguageHeader =\n languageFromCookie || request.getHeader(\"Accept-Language\");\n\n // when no accept language header or cookie present, get first locale code\n if (acceptLanguageHeader === null) {\n return locales.availableLocaleCodes[0];\n }\n\n return locales.getPreferredLocale(acceptLanguageHeader);\n};\n"],"mappings":"goBAAA,IAAAA,EAAAC,EAAA,CAAAC,GAAAC,IAAA,cACA,IAAIC,GAAa,OAAO,QAAU,UAAY,QAAU,OAAO,SAAW,QAAU,OAEpFD,EAAO,QAAUC,KCHjB,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,IAAA,kBAAIC,GAAa,IAGbC,GAAW,OAAO,MAAQ,UAAY,MAAQ,KAAK,SAAW,QAAU,KAGxEC,GAAOF,IAAcC,IAAY,SAAS,aAAa,EAAE,EAE7DF,EAAO,QAAUG,KCRjB,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,IAAA,kBAAIC,GAAO,IAGPC,GAASD,GAAK,OAElBD,EAAO,QAAUE,KCLjB,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,IAAA,kBAAIC,EAAS,IAGTC,EAAc,OAAO,UAGrBC,GAAiBD,EAAY,eAO7BE,GAAuBF,EAAY,SAGnCG,EAAiBJ,EAASA,EAAO,YAAc,OASnD,SAASK,GAAUC,EAAO,CACxB,IAAIC,EAAQL,GAAe,KAAKI,EAAOF,CAAc,EACjDI,EAAMF,EAAMF,CAAc,EAE9B,GAAI,CACFE,EAAMF,CAAc,EAAI,OACxB,IAAIK,EAAW,EACjB,MAAY,CAAC,CAEb,IAAIC,EAASP,GAAqB,KAAKG,CAAK,EAC5C,OAAIG,IACEF,EACFD,EAAMF,CAAc,EAAII,EAExB,OAAOF,EAAMF,CAAc,GAGxBM,CACT,CAEAX,EAAO,QAAUM,KC7CjB,IAAAM,GAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAc,OAAO,UAOrBC,GAAuBD,GAAY,SASvC,SAASE,GAAeC,EAAO,CAC7B,OAAOF,GAAqB,KAAKE,CAAK,CACxC,CAEAJ,GAAO,QAAUG,KCrBjB,IAAAE,GAAAC,EAAA,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EAAc,KAAKI,CAAY,CAEnC,CAAC,EAED,IAAMG,EAAiBP,EAAc,OAAQE,MAC3C,sBAAkB,EAAE,SAASA,EAAO,IAAI,CAC1C,EAEMM,EAAkB,IAAIC,EAAQF,CAAc,EAC5CG,EAAkBC,GAAmBZ,EAASS,CAAe,EACnEX,EAAM,SAASe,EAAWJ,EAAiBE,GAAmB,IAAI,CAAC,CACrE","names":["require_freeGlobal","__commonJSMin","exports","module","freeGlobal","require_root","__commonJSMin","exports","module","freeGlobal","freeSelf","root","require_Symbol","__commonJSMin","exports","module","root","Symbol","require_getRawTag","__commonJSMin","exports","module","Symbol","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","getRawTag","value","isOwn","tag","unmasked","result","require_objectToString","__commonJSMin","exports","module","objectProto","nativeObjectToString","objectToString","value","require_baseGetTag","__commonJSMin","exports","module","Symbol","getRawTag","objectToString","nullTag","undefinedTag","symToStringTag","baseGetTag","value","require_isObject","__commonJSMin","exports","module","isObject","value","type","require_isFunction","__commonJSMin","exports","module","baseGetTag","isObject","asyncTag","funcTag","genTag","proxyTag","isFunction","value","tag","require_coreJsData","__commonJSMin","exports","module","root","coreJsData","require_isMasked","__commonJSMin","exports","module","coreJsData","maskSrcKey","uid","isMasked","func","require_toSource","__commonJSMin","exports","module","funcProto","funcToString","toSource","func","require_baseIsNative","__commonJSMin","exports","module","isFunction","isMasked","isObject","toSource","reRegExpChar","reIsHostCtor","funcProto","objectProto","funcToString","hasOwnProperty","reIsNative","baseIsNative","value","pattern","require_getValue","__commonJSMin","exports","module","getValue","object","key","require_getNative","__commonJSMin","exports","module","baseIsNative","getValue","getNative","object","key","value","require_nativeCreate","__commonJSMin","exports","module","getNative","nativeCreate","require_hashClear","__commonJSMin","exports","module","nativeCreate","hashClear","require_hashDelete","__commonJSMin","exports","module","hashDelete","key","result","require_hashGet","__commonJSMin","exports","module","nativeCreate","HASH_UNDEFINED","objectProto","hasOwnProperty","hashGet","key","data","result","require_hashHas","__commonJSMin","exports","module","nativeCreate","objectProto","hasOwnProperty","hashHas","key","data","require_hashSet","__commonJSMin","exports","module","nativeCreate","HASH_UNDEFINED","hashSet","key","value","data","require_Hash","__commonJSMin","exports","module","hashClear","hashDelete","hashGet","hashHas","hashSet","Hash","entries","index","length","entry","require_listCacheClear","__commonJSMin","exports","module","listCacheClear","require_eq","__commonJSMin","exports","module","eq","value","other","require_assocIndexOf","__commonJSMin","exports","module","eq","assocIndexOf","array","key","length","require_listCacheDelete","__commonJSMin","exports","module","assocIndexOf","arrayProto","splice","listCacheDelete","key","data","index","lastIndex","require_listCacheGet","__commonJSMin","exports","module","assocIndexOf","listCacheGet","key","data","index","require_listCacheHas","__commonJSMin","exports","module","assocIndexOf","listCacheHas","key","require_listCacheSet","__commonJSMin","exports","module","assocIndexOf","listCacheSet","key","value","data","index","require_ListCache","__commonJSMin","exports","module","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","ListCache","entries","index","length","entry","require_Map","__commonJSMin","exports","module","getNative","root","Map","require_mapCacheClear","__commonJSMin","exports","module","Hash","ListCache","Map","mapCacheClear","require_isKeyable","__commonJSMin","exports","module","isKeyable","value","type","require_getMapData","__commonJSMin","exports","module","isKeyable","getMapData","map","key","data","require_mapCacheDelete","__commonJSMin","exports","module","getMapData","mapCacheDelete","key","result","require_mapCacheGet","__commonJSMin","exports","module","getMapData","mapCacheGet","key","require_mapCacheHas","__commonJSMin","exports","module","getMapData","mapCacheHas","key","require_mapCacheSet","__commonJSMin","exports","module","getMapData","mapCacheSet","key","value","data","size","require_MapCache","__commonJSMin","exports","module","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache","entries","index","length","entry","require_memoize","__commonJSMin","exports","module","MapCache","FUNC_ERROR_TEXT","memoize","func","resolver","memoized","args","key","cache","result","i18n_exports","__export","Locale","Locales","availableLocales","createLocalesWithConfiguredErrors","languages","setI18n","__toCommonJS","languages","import_exceptions","import_settings","import_format_message","import_immer","Locale","#code","#messages","#errors","#nativeName","locale","formatMessage","languageCode","language","languages","message","messages","id","defaultMessage","messageFromLocale","parameters","errors","import_exceptions","import_models","beinformed_error_messages_en_nl_default","beinformed_error_messages_nl_nl_default","availableLocales","beinformed_error_messages_en_nl_default","beinformed_error_messages_nl_nl_default","createLocalesWithConfiguredErrors","configuredErrors","availableLocale","Locales","_Locales","locales","locale","Locale","hydatedLocales","localeCode","item","acceptLanguageHeader","preferredLocales","messages","errors","import_polished","import_memoize","import_reselect","import_react_redux","useBEIDispatch","useBEISelector","useBEIStore","getLocale","state","getLocales","getMessage","getLocales","getLocale","locales","localeCode","memoize","id","defaultMessage","placeholders","args","useMessage","useBEISelector","getLocaleCodes","state","locales","locale","import_jsx_runtime","Message","className","id","defaultMessage","children","data","screenreaderOnly","allowHTML","translatedMessage","useMessage","styles","import_exceptions","import_settings","import_deepmerge","import_utils","import_toolkit","updateLocale","locale","setLocales","locales","getDefaultLocale","initialState","Locales","i18nReducer","builder","state","action","getCookieFromRequest","request","cookieName","getPreferredLocale","locales","acceptLanguageHeader","setI18n","store","locales","request","mergedLocales","availableLocales","locale","code","customLocale","custLocale","deepmerge","enabledLocales","localesInstance","Locales","preferredLocale","getPreferredLocale","setLocales"]}
@@ -0,0 +1,26 @@
1
+ import { _ as BEIStore, d as LocaleConfiguration } from '../styled-components.d-CrkOxzv5.cjs';
2
+ export { L as Locale, b as Locales, M as MessageObject, a as availableLocales, c as createLocalesWithConfiguredErrors } from '../styled-components.d-CrkOxzv5.cjs';
3
+ import { H as HttpServletRequestJava } from '../types-CGXygEPz.cjs';
4
+ import '@reduxjs/toolkit';
5
+ import 'history';
6
+ import 'redux';
7
+ import '@beinformed/ui/models';
8
+ import '@beinformed/ui/types';
9
+ import 'immer';
10
+ import '@beinformed/ui/utils';
11
+ import '@beinformed/ui/settings';
12
+ import 'styled-components';
13
+
14
+ interface LanguagesObject {
15
+ attribute: {
16
+ name: number;
17
+ nativeName: number;
18
+ };
19
+ rtl: Record<string, number>;
20
+ lang: Record<string, string[]>;
21
+ }
22
+ declare const languages: LanguagesObject;
23
+
24
+ declare const setI18n: (store: BEIStore, locales: LocaleConfiguration[] | undefined, request: HttpServletRequestJava) => void;
25
+
26
+ export { LocaleConfiguration, languages, setI18n };
@@ -0,0 +1,26 @@
1
+ import { _ as BEIStore, d as LocaleConfiguration } from '../styled-components.d-CrkOxzv5.js';
2
+ export { L as Locale, b as Locales, M as MessageObject, a as availableLocales, c as createLocalesWithConfiguredErrors } from '../styled-components.d-CrkOxzv5.js';
3
+ import { H as HttpServletRequestJava } from '../types-CGXygEPz.js';
4
+ import '@reduxjs/toolkit';
5
+ import 'history';
6
+ import 'redux';
7
+ import '@beinformed/ui/models';
8
+ import '@beinformed/ui/types';
9
+ import 'immer';
10
+ import '@beinformed/ui/utils';
11
+ import '@beinformed/ui/settings';
12
+ import 'styled-components';
13
+
14
+ interface LanguagesObject {
15
+ attribute: {
16
+ name: number;
17
+ nativeName: number;
18
+ };
19
+ rtl: Record<string, number>;
20
+ lang: Record<string, string[]>;
21
+ }
22
+ declare const languages: LanguagesObject;
23
+
24
+ declare const setI18n: (store: BEIStore, locales: LocaleConfiguration[] | undefined, request: HttpServletRequestJava) => void;
25
+
26
+ export { LocaleConfiguration, languages, setI18n };
@@ -0,0 +1,2 @@
1
+ import"../chunk-X3N2NQVZ.js";import"../chunk-RKGGCIUD.js";import{e as f}from"../chunk-HDOILTJ2.js";import{a,b,c,d,e}from"../chunk-YG7XDCNV.js";import"../chunk-JYAETKRB.js";import"../chunk-6KRECIRI.js";import"../chunk-FW4363Y4.js";export{b as Locale,e as Locales,c as availableLocales,d as createLocalesWithConfiguredErrors,a as languages,f as setI18n};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}