@icap-ethiopia/esm-ethiohri-intake 1.0.0-pre.9 → 1.0.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 (95) hide show
  1. package/LICENSE +400 -400
  2. package/README.md +46 -46
  3. package/dist/main.js +4914 -1
  4. package/dist/main.js.map +1 -1
  5. package/dist/node_modules_dayjs_dayjs_min_js.js +14 -0
  6. package/dist/node_modules_dayjs_dayjs_min_js.js.map +1 -0
  7. package/dist/openmrs-esm-ethio-template-app.js +4696 -1
  8. package/dist/openmrs-esm-ethio-template-app.js.buildmanifest.json +233 -249
  9. package/dist/openmrs-esm-ethio-template-app.js.map +1 -1
  10. package/dist/routes.json +1 -1
  11. package/dist/src_forms_family-information_tsx.js +934 -0
  12. package/dist/src_forms_family-information_tsx.js.map +1 -0
  13. package/dist/src_forms_intake-a-form_tsx.js +2367 -0
  14. package/dist/src_forms_intake-a-form_tsx.js.map +1 -0
  15. package/dist/src_forms_intake-b-form_tsx.js +2684 -0
  16. package/dist/src_forms_intake-b-form_tsx.js.map +1 -0
  17. package/dist/src_forms_intake-form_scss-src_forms_hooks_createEncounter_ts-src_forms_hooks_defaultValuesFr-54076e.js +2871 -0
  18. package/dist/src_forms_intake-form_scss-src_forms_hooks_createEncounter_ts-src_forms_hooks_defaultValuesFr-54076e.js.map +1 -0
  19. package/dist/src_forms_phdp-form_tsx.js +470 -0
  20. package/dist/src_forms_phdp-form_tsx.js.map +1 -0
  21. package/dist/src_index_ts.js +255 -0
  22. package/dist/src_index_ts.js.map +1 -0
  23. package/dist/src_intake_index_tsx.js +2738 -0
  24. package/dist/src_intake_index_tsx.js.map +1 -0
  25. package/dist/src_root_component_tsx.js +615 -0
  26. package/dist/src_root_component_tsx.js.map +1 -0
  27. package/dist/src_utils_Delete-Encounter_modal_tsx.js +396 -0
  28. package/dist/src_utils_Delete-Encounter_modal_tsx.js.map +1 -0
  29. package/dist/translations_am_json.js +14 -0
  30. package/dist/translations_en_json.js +14 -0
  31. package/dist/translations_es_json.js +14 -0
  32. package/dist/translations_fr_json.js +14 -0
  33. package/dist/translations_he_json.js +14 -0
  34. package/dist/translations_km_json.js +14 -0
  35. package/dist/vendors-node_modules_carbon_react_es_index_js-node_modules_swr_dist_core_index_mjs.js +132608 -0
  36. package/dist/vendors-node_modules_carbon_react_es_index_js-node_modules_swr_dist_core_index_mjs.js.map +1 -0
  37. package/dist/vendors-node_modules_openmrs_esm-framework_src_internal_ts.js +35952 -0
  38. package/dist/vendors-node_modules_openmrs_esm-framework_src_internal_ts.js.map +1 -0
  39. package/dist/vendors-node_modules_openmrs_esm-patient-common-lib_src_index_ts-node_modules_openmrs_esm-pat-24e5c8.js +4695 -0
  40. package/dist/vendors-node_modules_openmrs_esm-patient-common-lib_src_index_ts-node_modules_openmrs_esm-pat-24e5c8.js.map +1 -0
  41. package/dist/vendors-node_modules_openmrs_node_modules_css-loader_dist_runtime_api_js-node_modules_openmrs-205702.js +3059 -0
  42. package/dist/vendors-node_modules_openmrs_node_modules_css-loader_dist_runtime_api_js-node_modules_openmrs-205702.js.map +1 -0
  43. package/dist/vendors-node_modules_react-i18next_dist_es_index_js.js +1424 -0
  44. package/dist/vendors-node_modules_react-i18next_dist_es_index_js.js.map +1 -0
  45. package/dist/vendors-node_modules_react-router-dom_dist_index_js.js +6574 -0
  46. package/dist/vendors-node_modules_react-router-dom_dist_index_js.js.map +1 -0
  47. package/dist/vendors-node_modules_react_index_js.js +2770 -0
  48. package/dist/vendors-node_modules_react_index_js.js.map +1 -0
  49. package/package.json +121 -121
  50. package/src/index.ts +34 -34
  51. package/dist/151.js +0 -2
  52. package/dist/151.js.LICENSE.txt +0 -3
  53. package/dist/151.js.map +0 -1
  54. package/dist/159.js +0 -1
  55. package/dist/159.js.map +0 -1
  56. package/dist/197.js +0 -1
  57. package/dist/222.js +0 -2
  58. package/dist/222.js.LICENSE.txt +0 -5
  59. package/dist/222.js.map +0 -1
  60. package/dist/282.js +0 -2
  61. package/dist/282.js.LICENSE.txt +0 -32
  62. package/dist/282.js.map +0 -1
  63. package/dist/300.js +0 -1
  64. package/dist/319.js +0 -1
  65. package/dist/319.js.map +0 -1
  66. package/dist/335.js +0 -1
  67. package/dist/353.js +0 -1
  68. package/dist/353.js.map +0 -1
  69. package/dist/404.js +0 -2
  70. package/dist/404.js.LICENSE.txt +0 -45
  71. package/dist/404.js.map +0 -1
  72. package/dist/410.js +0 -1
  73. package/dist/410.js.map +0 -1
  74. package/dist/475.js +0 -1
  75. package/dist/475.js.map +0 -1
  76. package/dist/540.js +0 -2
  77. package/dist/540.js.LICENSE.txt +0 -9
  78. package/dist/540.js.map +0 -1
  79. package/dist/55.js +0 -1
  80. package/dist/652.js +0 -1
  81. package/dist/692.js +0 -1
  82. package/dist/692.js.map +0 -1
  83. package/dist/712.js +0 -1
  84. package/dist/712.js.map +0 -1
  85. package/dist/912.js +0 -1
  86. package/dist/912.js.map +0 -1
  87. package/dist/917.js +0 -1
  88. package/dist/917.js.map +0 -1
  89. package/dist/937.js +0 -1
  90. package/dist/937.js.map +0 -1
  91. package/dist/940.js +0 -1
  92. package/dist/940.js.map +0 -1
  93. package/dist/979.js +0 -1
  94. package/dist/979.js.map +0 -1
  95. package/dist/99.js +0 -1
@@ -0,0 +1,1424 @@
1
+ (globalThis["webpackChunk_icap_ethiopia_esm_ethiohri_intake"] = globalThis["webpackChunk_icap_ethiopia_esm_ethiohri_intake"] || []).push([["vendors-node_modules_react-i18next_dist_es_index_js"],{
2
+
3
+ /***/ "./node_modules/html-parse-stringify/dist/html-parse-stringify.module.js":
4
+ /*!*******************************************************************************!*\
5
+ !*** ./node_modules/html-parse-stringify/dist/html-parse-stringify.module.js ***!
6
+ \*******************************************************************************/
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+ "use strict";
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
13
+ /* harmony export */ });
14
+ /* harmony import */ var void_elements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! void-elements */ "./node_modules/void-elements/index.js");
15
+ /* harmony import */ var void_elements__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(void_elements__WEBPACK_IMPORTED_MODULE_0__);
16
+ var t=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],((void_elements__WEBPACK_IMPORTED_MODULE_0___default())[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return{type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i=/^\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var c={parse:function(e,t){t||(t={}),t.components||(t.components=s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf("<")){var u=e.indexOf("<");c.push({type:"text",content:-1===u?e:e.substring(0,u)})}return e.replace(r,function(r,s){if(m){if(r!=="</"+a.name+">")return;m=!1}var u,f="/"!==r.charAt(1),h=r.startsWith("\x3c!--"),p=s+r.length,d=e.charAt(p);if(h){var v=n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,"tag"===(a=n(r)).type&&t.components[a.name]&&(a.type="component",m=!0),a.voidElement||m||!d||"<"===d||a.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&"<"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf("<",p),g=e.slice(p,-1===x?void 0:x);i.test(g)&&(g=" "),(x>-1&&l+u.length>=0||" "!==g)&&u.push({type:"text",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a("",t)},"")}};/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c);
17
+ //# sourceMappingURL=html-parse-stringify.module.js.map
18
+
19
+
20
+ /***/ }),
21
+
22
+ /***/ "./node_modules/react-i18next/dist/es/I18nextProvider.js":
23
+ /*!***************************************************************!*\
24
+ !*** ./node_modules/react-i18next/dist/es/I18nextProvider.js ***!
25
+ \***************************************************************/
26
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
27
+
28
+ "use strict";
29
+ __webpack_require__.r(__webpack_exports__);
30
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
31
+ /* harmony export */ I18nextProvider: () => (/* binding */ I18nextProvider)
32
+ /* harmony export */ });
33
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
34
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
35
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/react-i18next/dist/es/context.js");
36
+
37
+
38
+ function I18nextProvider(_ref) {
39
+ var i18n = _ref.i18n,
40
+ defaultNS = _ref.defaultNS,
41
+ children = _ref.children;
42
+ var value = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
43
+ return {
44
+ i18n: i18n,
45
+ defaultNS: defaultNS
46
+ };
47
+ }, [i18n, defaultNS]);
48
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_context__WEBPACK_IMPORTED_MODULE_1__.I18nContext.Provider, {
49
+ value: value
50
+ }, children);
51
+ }
52
+
53
+ /***/ }),
54
+
55
+ /***/ "./node_modules/react-i18next/dist/es/Trans.js":
56
+ /*!*****************************************************!*\
57
+ !*** ./node_modules/react-i18next/dist/es/Trans.js ***!
58
+ \*****************************************************/
59
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
60
+
61
+ "use strict";
62
+ __webpack_require__.r(__webpack_exports__);
63
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
64
+ /* harmony export */ Trans: () => (/* binding */ Trans),
65
+ /* harmony export */ nodesToString: () => (/* binding */ nodesToString)
66
+ /* harmony export */ });
67
+ /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
68
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
69
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
70
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
71
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
72
+ /* harmony import */ var html_parse_stringify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! html-parse-stringify */ "./node_modules/html-parse-stringify/dist/html-parse-stringify.module.js");
73
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./node_modules/react-i18next/dist/es/context.js");
74
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./node_modules/react-i18next/dist/es/utils.js");
75
+
76
+
77
+
78
+ var _excluded = ["format"],
79
+ _excluded2 = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
80
+
81
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
82
+
83
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
84
+
85
+
86
+
87
+
88
+
89
+
90
+ function hasChildren(node, checkLength) {
91
+ if (!node) return false;
92
+ var base = node.props ? node.props.children : node.children;
93
+ if (checkLength) return base.length > 0;
94
+ return !!base;
95
+ }
96
+
97
+ function getChildren(node) {
98
+ if (!node) return [];
99
+ return node.props ? node.props.children : node.children;
100
+ }
101
+
102
+ function hasValidReactChildren(children) {
103
+ if (Object.prototype.toString.call(children) !== '[object Array]') return false;
104
+ return children.every(function (child) {
105
+ return (0,react__WEBPACK_IMPORTED_MODULE_3__.isValidElement)(child);
106
+ });
107
+ }
108
+
109
+ function getAsArray(data) {
110
+ return Array.isArray(data) ? data : [data];
111
+ }
112
+
113
+ function mergeProps(source, target) {
114
+ var newTarget = _objectSpread({}, target);
115
+
116
+ newTarget.props = Object.assign(source.props, target.props);
117
+ return newTarget;
118
+ }
119
+
120
+ function nodesToString(children, i18nOptions) {
121
+ if (!children) return '';
122
+ var stringNode = '';
123
+ var childrenArray = getAsArray(children);
124
+ var keepArray = i18nOptions.transSupportBasicHtmlNodes && i18nOptions.transKeepBasicHtmlNodesFor ? i18nOptions.transKeepBasicHtmlNodesFor : [];
125
+ childrenArray.forEach(function (child, childIndex) {
126
+ if (typeof child === 'string') {
127
+ stringNode += "".concat(child);
128
+ } else if ((0,react__WEBPACK_IMPORTED_MODULE_3__.isValidElement)(child)) {
129
+ var childPropsCount = Object.keys(child.props).length;
130
+ var shouldKeepChild = keepArray.indexOf(child.type) > -1;
131
+ var childChildren = child.props.children;
132
+
133
+ if (!childChildren && shouldKeepChild && childPropsCount === 0) {
134
+ stringNode += "<".concat(child.type, "/>");
135
+ } else if (!childChildren && (!shouldKeepChild || childPropsCount !== 0)) {
136
+ stringNode += "<".concat(childIndex, "></").concat(childIndex, ">");
137
+ } else if (child.props.i18nIsDynamicList) {
138
+ stringNode += "<".concat(childIndex, "></").concat(childIndex, ">");
139
+ } else if (shouldKeepChild && childPropsCount === 1 && typeof childChildren === 'string') {
140
+ stringNode += "<".concat(child.type, ">").concat(childChildren, "</").concat(child.type, ">");
141
+ } else {
142
+ var content = nodesToString(childChildren, i18nOptions);
143
+ stringNode += "<".concat(childIndex, ">").concat(content, "</").concat(childIndex, ">");
144
+ }
145
+ } else if (child === null) {
146
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.warn)("Trans: the passed in value is invalid - seems you passed in a null child.");
147
+ } else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(child) === 'object') {
148
+ var format = child.format,
149
+ clone = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(child, _excluded);
150
+
151
+ var keys = Object.keys(clone);
152
+
153
+ if (keys.length === 1) {
154
+ var value = format ? "".concat(keys[0], ", ").concat(format) : keys[0];
155
+ stringNode += "{{".concat(value, "}}");
156
+ } else {
157
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.warn)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", child);
158
+ }
159
+ } else {
160
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.warn)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", child);
161
+ }
162
+ });
163
+ return stringNode;
164
+ }
165
+
166
+ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) {
167
+ if (targetString === '') return [];
168
+ var keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
169
+ var emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.join('|')).test(targetString);
170
+ if (!children && !emptyChildrenButNeedsHandling) return [targetString];
171
+ var data = {};
172
+
173
+ function getData(childs) {
174
+ var childrenArray = getAsArray(childs);
175
+ childrenArray.forEach(function (child) {
176
+ if (typeof child === 'string') return;
177
+ if (hasChildren(child)) getData(getChildren(child));else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(child) === 'object' && !(0,react__WEBPACK_IMPORTED_MODULE_3__.isValidElement)(child)) Object.assign(data, child);
178
+ });
179
+ }
180
+
181
+ getData(children);
182
+ var ast = html_parse_stringify__WEBPACK_IMPORTED_MODULE_4__["default"].parse("<0>".concat(targetString, "</0>"));
183
+
184
+ var opts = _objectSpread(_objectSpread({}, data), combinedTOpts);
185
+
186
+ function renderInner(child, node, rootReactNode) {
187
+ var childs = getChildren(child);
188
+ var mappedChildren = mapAST(childs, node.children, rootReactNode);
189
+ return hasValidReactChildren(childs) && mappedChildren.length === 0 ? childs : mappedChildren;
190
+ }
191
+
192
+ function pushTranslatedJSX(child, inner, mem, i, isVoid) {
193
+ if (child.dummy) child.children = inner;
194
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.cloneElement)(child, _objectSpread(_objectSpread({}, child.props), {}, {
195
+ key: i
196
+ }), isVoid ? undefined : inner));
197
+ }
198
+
199
+ function mapAST(reactNode, astNode, rootReactNode) {
200
+ var reactNodes = getAsArray(reactNode);
201
+ var astNodes = getAsArray(astNode);
202
+ return astNodes.reduce(function (mem, node, i) {
203
+ var translationContent = node.children && node.children[0] && node.children[0].content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
204
+
205
+ if (node.type === 'tag') {
206
+ var tmp = reactNodes[parseInt(node.name, 10)];
207
+ if (!tmp && rootReactNode.length === 1 && rootReactNode[0][node.name]) tmp = rootReactNode[0][node.name];
208
+ if (!tmp) tmp = {};
209
+ var child = Object.keys(node.attrs).length !== 0 ? mergeProps({
210
+ props: node.attrs
211
+ }, tmp) : tmp;
212
+ var isElement = (0,react__WEBPACK_IMPORTED_MODULE_3__.isValidElement)(child);
213
+ var isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
214
+ var isEmptyTransWithHTML = emptyChildrenButNeedsHandling && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(child) === 'object' && child.dummy && !isElement;
215
+ var isKnownComponent = (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(children) === 'object' && children !== null && Object.hasOwnProperty.call(children, node.name);
216
+
217
+ if (typeof child === 'string') {
218
+ var value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
219
+ mem.push(value);
220
+ } else if (hasChildren(child) || isValidTranslationWithChildren) {
221
+ var inner = renderInner(child, node, rootReactNode);
222
+ pushTranslatedJSX(child, inner, mem, i);
223
+ } else if (isEmptyTransWithHTML) {
224
+ var _inner = mapAST(reactNodes, node.children, rootReactNode);
225
+
226
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.cloneElement)(child, _objectSpread(_objectSpread({}, child.props), {}, {
227
+ key: i
228
+ }), _inner));
229
+ } else if (Number.isNaN(parseFloat(node.name))) {
230
+ if (isKnownComponent) {
231
+ var _inner2 = renderInner(child, node, rootReactNode);
232
+
233
+ pushTranslatedJSX(child, _inner2, mem, i, node.voidElement);
234
+ } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
235
+ if (node.voidElement) {
236
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(node.name, {
237
+ key: "".concat(node.name, "-").concat(i)
238
+ }));
239
+ } else {
240
+ var _inner3 = mapAST(reactNodes, node.children, rootReactNode);
241
+
242
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(node.name, {
243
+ key: "".concat(node.name, "-").concat(i)
244
+ }, _inner3));
245
+ }
246
+ } else if (node.voidElement) {
247
+ mem.push("<".concat(node.name, " />"));
248
+ } else {
249
+ var _inner4 = mapAST(reactNodes, node.children, rootReactNode);
250
+
251
+ mem.push("<".concat(node.name, ">").concat(_inner4, "</").concat(node.name, ">"));
252
+ }
253
+ } else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(child) === 'object' && !isElement) {
254
+ var content = node.children[0] ? translationContent : null;
255
+ if (content) mem.push(content);
256
+ } else if (node.children.length === 1 && translationContent) {
257
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.cloneElement)(child, _objectSpread(_objectSpread({}, child.props), {}, {
258
+ key: i
259
+ }), translationContent));
260
+ } else {
261
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.cloneElement)(child, _objectSpread(_objectSpread({}, child.props), {}, {
262
+ key: i
263
+ })));
264
+ }
265
+ } else if (node.type === 'text') {
266
+ var wrapTextNodes = i18nOptions.transWrapTextNodes;
267
+
268
+ var _content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
269
+
270
+ if (wrapTextNodes) {
271
+ mem.push((0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(wrapTextNodes, {
272
+ key: "".concat(node.name, "-").concat(i)
273
+ }, _content));
274
+ } else {
275
+ mem.push(_content);
276
+ }
277
+ }
278
+
279
+ return mem;
280
+ }, []);
281
+ }
282
+
283
+ var result = mapAST([{
284
+ dummy: true,
285
+ children: children || []
286
+ }], ast, getAsArray(children || []));
287
+ return getChildren(result[0]);
288
+ }
289
+
290
+ function Trans(_ref) {
291
+ var children = _ref.children,
292
+ count = _ref.count,
293
+ parent = _ref.parent,
294
+ i18nKey = _ref.i18nKey,
295
+ context = _ref.context,
296
+ _ref$tOptions = _ref.tOptions,
297
+ tOptions = _ref$tOptions === void 0 ? {} : _ref$tOptions,
298
+ values = _ref.values,
299
+ defaults = _ref.defaults,
300
+ components = _ref.components,
301
+ ns = _ref.ns,
302
+ i18nFromProps = _ref.i18n,
303
+ tFromProps = _ref.t,
304
+ shouldUnescape = _ref.shouldUnescape,
305
+ additionalProps = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, _excluded2);
306
+
307
+ var _ref2 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useContext)(_context__WEBPACK_IMPORTED_MODULE_6__.I18nContext) || {},
308
+ i18nFromContext = _ref2.i18n,
309
+ defaultNSFromContext = _ref2.defaultNS;
310
+
311
+ var i18n = i18nFromProps || i18nFromContext || (0,_context__WEBPACK_IMPORTED_MODULE_6__.getI18n)();
312
+
313
+ if (!i18n) {
314
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.warnOnce)('You will need to pass in an i18next instance by using i18nextReactModule');
315
+ return children;
316
+ }
317
+
318
+ var t = tFromProps || i18n.t.bind(i18n) || function (k) {
319
+ return k;
320
+ };
321
+
322
+ if (context) tOptions.context = context;
323
+
324
+ var reactI18nextOptions = _objectSpread(_objectSpread({}, (0,_context__WEBPACK_IMPORTED_MODULE_6__.getDefaults)()), i18n.options && i18n.options.react);
325
+
326
+ var namespaces = ns || t.ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
327
+ namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
328
+ var defaultValue = defaults || nodesToString(children, reactI18nextOptions) || reactI18nextOptions.transEmptyNodeValue || i18nKey;
329
+ var hashTransKey = reactI18nextOptions.hashTransKey;
330
+ var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);
331
+ var interpolationOverride = values ? tOptions.interpolation : {
332
+ interpolation: _objectSpread(_objectSpread({}, tOptions.interpolation), {}, {
333
+ prefix: '#$?',
334
+ suffix: '?$#'
335
+ })
336
+ };
337
+
338
+ var combinedTOpts = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, tOptions), {}, {
339
+ count: count
340
+ }, values), interpolationOverride), {}, {
341
+ defaultValue: defaultValue,
342
+ ns: namespaces
343
+ });
344
+
345
+ var translation = key ? t(key, combinedTOpts) : defaultValue;
346
+ var content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
347
+ var useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;
348
+ return useAsParent ? (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(useAsParent, additionalProps, content) : content;
349
+ }
350
+
351
+ /***/ }),
352
+
353
+ /***/ "./node_modules/react-i18next/dist/es/Translation.js":
354
+ /*!***********************************************************!*\
355
+ !*** ./node_modules/react-i18next/dist/es/Translation.js ***!
356
+ \***********************************************************/
357
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
358
+
359
+ "use strict";
360
+ __webpack_require__.r(__webpack_exports__);
361
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
362
+ /* harmony export */ Translation: () => (/* binding */ Translation)
363
+ /* harmony export */ });
364
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
365
+ /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
366
+ /* harmony import */ var _useTranslation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useTranslation */ "./node_modules/react-i18next/dist/es/useTranslation.js");
367
+
368
+
369
+ var _excluded = ["ns", "children"];
370
+
371
+ function Translation(props) {
372
+ var ns = props.ns,
373
+ children = props.children,
374
+ options = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, _excluded);
375
+
376
+ var _useTranslation = (0,_useTranslation__WEBPACK_IMPORTED_MODULE_2__.useTranslation)(ns, options),
377
+ _useTranslation2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useTranslation, 3),
378
+ t = _useTranslation2[0],
379
+ i18n = _useTranslation2[1],
380
+ ready = _useTranslation2[2];
381
+
382
+ return children(t, {
383
+ i18n: i18n,
384
+ lng: i18n.language
385
+ }, ready);
386
+ }
387
+
388
+ /***/ }),
389
+
390
+ /***/ "./node_modules/react-i18next/dist/es/context.js":
391
+ /*!*******************************************************!*\
392
+ !*** ./node_modules/react-i18next/dist/es/context.js ***!
393
+ \*******************************************************/
394
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
395
+
396
+ "use strict";
397
+ __webpack_require__.r(__webpack_exports__);
398
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
399
+ /* harmony export */ I18nContext: () => (/* binding */ I18nContext),
400
+ /* harmony export */ ReportNamespaces: () => (/* binding */ ReportNamespaces),
401
+ /* harmony export */ composeInitialProps: () => (/* binding */ composeInitialProps),
402
+ /* harmony export */ getDefaults: () => (/* binding */ getDefaults),
403
+ /* harmony export */ getI18n: () => (/* binding */ getI18n),
404
+ /* harmony export */ getInitialProps: () => (/* binding */ getInitialProps),
405
+ /* harmony export */ initReactI18next: () => (/* binding */ initReactI18next),
406
+ /* harmony export */ setDefaults: () => (/* binding */ setDefaults),
407
+ /* harmony export */ setI18n: () => (/* binding */ setI18n)
408
+ /* harmony export */ });
409
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
410
+ /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
411
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
412
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
413
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
414
+ /* harmony import */ var _unescape__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./unescape */ "./node_modules/react-i18next/dist/es/unescape.js");
415
+
416
+
417
+
418
+
419
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
420
+
421
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
422
+
423
+
424
+
425
+ var defaultOptions = {
426
+ bindI18n: 'languageChanged',
427
+ bindI18nStore: '',
428
+ transEmptyNodeValue: '',
429
+ transSupportBasicHtmlNodes: true,
430
+ transWrapTextNodes: '',
431
+ transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
432
+ useSuspense: true,
433
+ unescape: _unescape__WEBPACK_IMPORTED_MODULE_4__.unescape
434
+ };
435
+ var i18nInstance;
436
+ var I18nContext = (0,react__WEBPACK_IMPORTED_MODULE_3__.createContext)();
437
+ function setDefaults() {
438
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
439
+ defaultOptions = _objectSpread(_objectSpread({}, defaultOptions), options);
440
+ }
441
+ function getDefaults() {
442
+ return defaultOptions;
443
+ }
444
+ var ReportNamespaces = function () {
445
+ function ReportNamespaces() {
446
+ (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ReportNamespaces);
447
+
448
+ this.usedNamespaces = {};
449
+ }
450
+
451
+ (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(ReportNamespaces, [{
452
+ key: "addUsedNamespaces",
453
+ value: function addUsedNamespaces(namespaces) {
454
+ var _this = this;
455
+
456
+ namespaces.forEach(function (ns) {
457
+ if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;
458
+ });
459
+ }
460
+ }, {
461
+ key: "getUsedNamespaces",
462
+ value: function getUsedNamespaces() {
463
+ return Object.keys(this.usedNamespaces);
464
+ }
465
+ }]);
466
+
467
+ return ReportNamespaces;
468
+ }();
469
+ function setI18n(instance) {
470
+ i18nInstance = instance;
471
+ }
472
+ function getI18n() {
473
+ return i18nInstance;
474
+ }
475
+ var initReactI18next = {
476
+ type: '3rdParty',
477
+ init: function init(instance) {
478
+ setDefaults(instance.options.react);
479
+ setI18n(instance);
480
+ }
481
+ };
482
+ function composeInitialProps(ForComponent) {
483
+ return function (ctx) {
484
+ return new Promise(function (resolve) {
485
+ var i18nInitialProps = getInitialProps();
486
+
487
+ if (ForComponent.getInitialProps) {
488
+ ForComponent.getInitialProps(ctx).then(function (componentsInitialProps) {
489
+ resolve(_objectSpread(_objectSpread({}, componentsInitialProps), i18nInitialProps));
490
+ });
491
+ } else {
492
+ resolve(i18nInitialProps);
493
+ }
494
+ });
495
+ };
496
+ }
497
+ function getInitialProps() {
498
+ var i18n = getI18n();
499
+ var namespaces = i18n.reportNamespaces ? i18n.reportNamespaces.getUsedNamespaces() : [];
500
+ var ret = {};
501
+ var initialI18nStore = {};
502
+ i18n.languages.forEach(function (l) {
503
+ initialI18nStore[l] = {};
504
+ namespaces.forEach(function (ns) {
505
+ initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};
506
+ });
507
+ });
508
+ ret.initialI18nStore = initialI18nStore;
509
+ ret.initialLanguage = i18n.language;
510
+ return ret;
511
+ }
512
+
513
+ /***/ }),
514
+
515
+ /***/ "./node_modules/react-i18next/dist/es/index.js":
516
+ /*!*****************************************************!*\
517
+ !*** ./node_modules/react-i18next/dist/es/index.js ***!
518
+ \*****************************************************/
519
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
520
+
521
+ "use strict";
522
+ __webpack_require__.r(__webpack_exports__);
523
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
524
+ /* harmony export */ I18nContext: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.I18nContext),
525
+ /* harmony export */ I18nextProvider: () => (/* reexport safe */ _I18nextProvider__WEBPACK_IMPORTED_MODULE_4__.I18nextProvider),
526
+ /* harmony export */ Trans: () => (/* reexport safe */ _Trans__WEBPACK_IMPORTED_MODULE_0__.Trans),
527
+ /* harmony export */ Translation: () => (/* reexport safe */ _Translation__WEBPACK_IMPORTED_MODULE_3__.Translation),
528
+ /* harmony export */ composeInitialProps: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.composeInitialProps),
529
+ /* harmony export */ date: () => (/* binding */ date),
530
+ /* harmony export */ getDefaults: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.getDefaults),
531
+ /* harmony export */ getI18n: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.getI18n),
532
+ /* harmony export */ getInitialProps: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.getInitialProps),
533
+ /* harmony export */ initReactI18next: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.initReactI18next),
534
+ /* harmony export */ number: () => (/* binding */ number),
535
+ /* harmony export */ plural: () => (/* binding */ plural),
536
+ /* harmony export */ select: () => (/* binding */ select),
537
+ /* harmony export */ selectOrdinal: () => (/* binding */ selectOrdinal),
538
+ /* harmony export */ setDefaults: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.setDefaults),
539
+ /* harmony export */ setI18n: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_7__.setI18n),
540
+ /* harmony export */ time: () => (/* binding */ time),
541
+ /* harmony export */ useSSR: () => (/* reexport safe */ _useSSR__WEBPACK_IMPORTED_MODULE_6__.useSSR),
542
+ /* harmony export */ useTranslation: () => (/* reexport safe */ _useTranslation__WEBPACK_IMPORTED_MODULE_1__.useTranslation),
543
+ /* harmony export */ withSSR: () => (/* reexport safe */ _withSSR__WEBPACK_IMPORTED_MODULE_5__.withSSR),
544
+ /* harmony export */ withTranslation: () => (/* reexport safe */ _withTranslation__WEBPACK_IMPORTED_MODULE_2__.withTranslation)
545
+ /* harmony export */ });
546
+ /* harmony import */ var _Trans__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Trans */ "./node_modules/react-i18next/dist/es/Trans.js");
547
+ /* harmony import */ var _useTranslation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useTranslation */ "./node_modules/react-i18next/dist/es/useTranslation.js");
548
+ /* harmony import */ var _withTranslation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./withTranslation */ "./node_modules/react-i18next/dist/es/withTranslation.js");
549
+ /* harmony import */ var _Translation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Translation */ "./node_modules/react-i18next/dist/es/Translation.js");
550
+ /* harmony import */ var _I18nextProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./I18nextProvider */ "./node_modules/react-i18next/dist/es/I18nextProvider.js");
551
+ /* harmony import */ var _withSSR__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./withSSR */ "./node_modules/react-i18next/dist/es/withSSR.js");
552
+ /* harmony import */ var _useSSR__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useSSR */ "./node_modules/react-i18next/dist/es/useSSR.js");
553
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./node_modules/react-i18next/dist/es/context.js");
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+ var date = function date() {
563
+ return '';
564
+ };
565
+ var time = function time() {
566
+ return '';
567
+ };
568
+ var number = function number() {
569
+ return '';
570
+ };
571
+ var select = function select() {
572
+ return '';
573
+ };
574
+ var plural = function plural() {
575
+ return '';
576
+ };
577
+ var selectOrdinal = function selectOrdinal() {
578
+ return '';
579
+ };
580
+
581
+ /***/ }),
582
+
583
+ /***/ "./node_modules/react-i18next/dist/es/unescape.js":
584
+ /*!********************************************************!*\
585
+ !*** ./node_modules/react-i18next/dist/es/unescape.js ***!
586
+ \********************************************************/
587
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
588
+
589
+ "use strict";
590
+ __webpack_require__.r(__webpack_exports__);
591
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
592
+ /* harmony export */ unescape: () => (/* binding */ unescape)
593
+ /* harmony export */ });
594
+ var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
595
+ var htmlEntities = {
596
+ '&amp;': '&',
597
+ '&#38;': '&',
598
+ '&lt;': '<',
599
+ '&#60;': '<',
600
+ '&gt;': '>',
601
+ '&#62;': '>',
602
+ '&apos;': "'",
603
+ '&#39;': "'",
604
+ '&quot;': '"',
605
+ '&#34;': '"',
606
+ '&nbsp;': ' ',
607
+ '&#160;': ' ',
608
+ '&copy;': '©',
609
+ '&#169;': '©',
610
+ '&reg;': '®',
611
+ '&#174;': '®',
612
+ '&hellip;': '…',
613
+ '&#8230;': '…',
614
+ '&#x2F;': '/',
615
+ '&#47;': '/'
616
+ };
617
+
618
+ var unescapeHtmlEntity = function unescapeHtmlEntity(m) {
619
+ return htmlEntities[m];
620
+ };
621
+
622
+ var unescape = function unescape(text) {
623
+ return text.replace(matchHtmlEntity, unescapeHtmlEntity);
624
+ };
625
+
626
+ /***/ }),
627
+
628
+ /***/ "./node_modules/react-i18next/dist/es/useSSR.js":
629
+ /*!******************************************************!*\
630
+ !*** ./node_modules/react-i18next/dist/es/useSSR.js ***!
631
+ \******************************************************/
632
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
633
+
634
+ "use strict";
635
+ __webpack_require__.r(__webpack_exports__);
636
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
637
+ /* harmony export */ useSSR: () => (/* binding */ useSSR)
638
+ /* harmony export */ });
639
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
640
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
641
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/react-i18next/dist/es/context.js");
642
+
643
+
644
+ function useSSR(initialI18nStore, initialLanguage) {
645
+ var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
646
+ var i18nFromProps = props.i18n;
647
+
648
+ var _ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.I18nContext) || {},
649
+ i18nFromContext = _ref.i18n;
650
+
651
+ var i18n = i18nFromProps || i18nFromContext || (0,_context__WEBPACK_IMPORTED_MODULE_1__.getI18n)();
652
+ if (i18n.options && i18n.options.isClone) return;
653
+
654
+ if (initialI18nStore && !i18n.initializedStoreOnce) {
655
+ i18n.services.resourceStore.data = initialI18nStore;
656
+ i18n.options.ns = Object.values(initialI18nStore).reduce(function (mem, lngResources) {
657
+ Object.keys(lngResources).forEach(function (ns) {
658
+ if (mem.indexOf(ns) < 0) mem.push(ns);
659
+ });
660
+ return mem;
661
+ }, i18n.options.ns);
662
+ i18n.initializedStoreOnce = true;
663
+ i18n.isInitialized = true;
664
+ }
665
+
666
+ if (initialLanguage && !i18n.initializedLanguageOnce) {
667
+ i18n.changeLanguage(initialLanguage);
668
+ i18n.initializedLanguageOnce = true;
669
+ }
670
+ }
671
+
672
+ /***/ }),
673
+
674
+ /***/ "./node_modules/react-i18next/dist/es/useTranslation.js":
675
+ /*!**************************************************************!*\
676
+ !*** ./node_modules/react-i18next/dist/es/useTranslation.js ***!
677
+ \**************************************************************/
678
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
679
+
680
+ "use strict";
681
+ __webpack_require__.r(__webpack_exports__);
682
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
683
+ /* harmony export */ useTranslation: () => (/* binding */ useTranslation)
684
+ /* harmony export */ });
685
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
686
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
687
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
688
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
689
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ "./node_modules/react-i18next/dist/es/context.js");
690
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./node_modules/react-i18next/dist/es/utils.js");
691
+
692
+
693
+
694
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
695
+
696
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
697
+
698
+
699
+
700
+
701
+
702
+ var usePrevious = function usePrevious(value, ignore) {
703
+ var ref = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
704
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
705
+ ref.current = ignore ? ref.current : value;
706
+ }, [value, ignore]);
707
+ return ref.current;
708
+ };
709
+
710
+ function useTranslation(ns) {
711
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
712
+ var i18nFromProps = props.i18n;
713
+
714
+ var _ref = (0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_context__WEBPACK_IMPORTED_MODULE_3__.I18nContext) || {},
715
+ i18nFromContext = _ref.i18n,
716
+ defaultNSFromContext = _ref.defaultNS;
717
+
718
+ var i18n = i18nFromProps || i18nFromContext || (0,_context__WEBPACK_IMPORTED_MODULE_3__.getI18n)();
719
+ if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new _context__WEBPACK_IMPORTED_MODULE_3__.ReportNamespaces();
720
+
721
+ if (!i18n) {
722
+ (0,_utils__WEBPACK_IMPORTED_MODULE_4__.warnOnce)('You will need to pass in an i18next instance by using initReactI18next');
723
+
724
+ var notReadyT = function notReadyT(k) {
725
+ return Array.isArray(k) ? k[k.length - 1] : k;
726
+ };
727
+
728
+ var retNotReady = [notReadyT, {}, false];
729
+ retNotReady.t = notReadyT;
730
+ retNotReady.i18n = {};
731
+ retNotReady.ready = false;
732
+ return retNotReady;
733
+ }
734
+
735
+ if (i18n.options.react && i18n.options.react.wait !== undefined) (0,_utils__WEBPACK_IMPORTED_MODULE_4__.warnOnce)('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
736
+
737
+ var i18nOptions = _objectSpread(_objectSpread(_objectSpread({}, (0,_context__WEBPACK_IMPORTED_MODULE_3__.getDefaults)()), i18n.options.react), props);
738
+
739
+ var useSuspense = i18nOptions.useSuspense,
740
+ keyPrefix = i18nOptions.keyPrefix;
741
+ var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
742
+ namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
743
+ if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
744
+ var ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(function (n) {
745
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.hasLoadedNamespace)(n, i18n, i18nOptions);
746
+ });
747
+
748
+ function getT() {
749
+ return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
750
+ }
751
+
752
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(getT),
753
+ _useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useState, 2),
754
+ t = _useState2[0],
755
+ setT = _useState2[1];
756
+
757
+ var joinedNS = namespaces.join();
758
+ var previousJoinedNS = usePrevious(joinedNS);
759
+ var isMounted = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(true);
760
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
761
+ var bindI18n = i18nOptions.bindI18n,
762
+ bindI18nStore = i18nOptions.bindI18nStore;
763
+ isMounted.current = true;
764
+
765
+ if (!ready && !useSuspense) {
766
+ (0,_utils__WEBPACK_IMPORTED_MODULE_4__.loadNamespaces)(i18n, namespaces, function () {
767
+ if (isMounted.current) setT(getT);
768
+ });
769
+ }
770
+
771
+ if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
772
+ setT(getT);
773
+ }
774
+
775
+ function boundReset() {
776
+ if (isMounted.current) setT(getT);
777
+ }
778
+
779
+ if (bindI18n && i18n) i18n.on(bindI18n, boundReset);
780
+ if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);
781
+ return function () {
782
+ isMounted.current = false;
783
+ if (bindI18n && i18n) bindI18n.split(' ').forEach(function (e) {
784
+ return i18n.off(e, boundReset);
785
+ });
786
+ if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(function (e) {
787
+ return i18n.store.off(e, boundReset);
788
+ });
789
+ };
790
+ }, [i18n, joinedNS]);
791
+ var isInitial = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(true);
792
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
793
+ if (isMounted.current && !isInitial.current) {
794
+ setT(getT);
795
+ }
796
+
797
+ isInitial.current = false;
798
+ }, [i18n, keyPrefix]);
799
+ var ret = [t, i18n, ready];
800
+ ret.t = t;
801
+ ret.i18n = i18n;
802
+ ret.ready = ready;
803
+ if (ready) return ret;
804
+ if (!ready && !useSuspense) return ret;
805
+ throw new Promise(function (resolve) {
806
+ (0,_utils__WEBPACK_IMPORTED_MODULE_4__.loadNamespaces)(i18n, namespaces, function () {
807
+ resolve();
808
+ });
809
+ });
810
+ }
811
+
812
+ /***/ }),
813
+
814
+ /***/ "./node_modules/react-i18next/dist/es/utils.js":
815
+ /*!*****************************************************!*\
816
+ !*** ./node_modules/react-i18next/dist/es/utils.js ***!
817
+ \*****************************************************/
818
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
819
+
820
+ "use strict";
821
+ __webpack_require__.r(__webpack_exports__);
822
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
823
+ /* harmony export */ getDisplayName: () => (/* binding */ getDisplayName),
824
+ /* harmony export */ hasLoadedNamespace: () => (/* binding */ hasLoadedNamespace),
825
+ /* harmony export */ loadNamespaces: () => (/* binding */ loadNamespaces),
826
+ /* harmony export */ warn: () => (/* binding */ warn),
827
+ /* harmony export */ warnOnce: () => (/* binding */ warnOnce)
828
+ /* harmony export */ });
829
+ function warn() {
830
+ if (console && console.warn) {
831
+ var _console;
832
+
833
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
834
+ args[_key] = arguments[_key];
835
+ }
836
+
837
+ if (typeof args[0] === 'string') args[0] = "react-i18next:: ".concat(args[0]);
838
+
839
+ (_console = console).warn.apply(_console, args);
840
+ }
841
+ }
842
+ var alreadyWarned = {};
843
+ function warnOnce() {
844
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
845
+ args[_key2] = arguments[_key2];
846
+ }
847
+
848
+ if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;
849
+ if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();
850
+ warn.apply(void 0, args);
851
+ }
852
+ function loadNamespaces(i18n, ns, cb) {
853
+ i18n.loadNamespaces(ns, function () {
854
+ if (i18n.isInitialized) {
855
+ cb();
856
+ } else {
857
+ var initialized = function initialized() {
858
+ setTimeout(function () {
859
+ i18n.off('initialized', initialized);
860
+ }, 0);
861
+ cb();
862
+ };
863
+
864
+ i18n.on('initialized', initialized);
865
+ }
866
+ });
867
+ }
868
+
869
+ function oldI18nextHasLoadedNamespace(ns, i18n) {
870
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
871
+ var lng = i18n.languages[0];
872
+ var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;
873
+ var lastLng = i18n.languages[i18n.languages.length - 1];
874
+ if (lng.toLowerCase() === 'cimode') return true;
875
+
876
+ var loadNotPending = function loadNotPending(l, n) {
877
+ var loadState = i18n.services.backendConnector.state["".concat(l, "|").concat(n)];
878
+ return loadState === -1 || loadState === 2;
879
+ };
880
+
881
+ if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;
882
+ if (i18n.hasResourceBundle(lng, ns)) return true;
883
+ if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;
884
+ if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
885
+ return false;
886
+ }
887
+
888
+ function hasLoadedNamespace(ns, i18n) {
889
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
890
+
891
+ if (!i18n.languages || !i18n.languages.length) {
892
+ warnOnce('i18n.languages were undefined or empty', i18n.languages);
893
+ return true;
894
+ }
895
+
896
+ var isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;
897
+
898
+ if (!isNewerI18next) {
899
+ return oldI18nextHasLoadedNamespace(ns, i18n, options);
900
+ }
901
+
902
+ return i18n.hasLoadedNamespace(ns, {
903
+ precheck: function precheck(i18nInstance, loadNotPending) {
904
+ if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;
905
+ }
906
+ });
907
+ }
908
+ function getDisplayName(Component) {
909
+ return Component.displayName || Component.name || (typeof Component === 'string' && Component.length > 0 ? Component : 'Unknown');
910
+ }
911
+
912
+ /***/ }),
913
+
914
+ /***/ "./node_modules/react-i18next/dist/es/withSSR.js":
915
+ /*!*******************************************************!*\
916
+ !*** ./node_modules/react-i18next/dist/es/withSSR.js ***!
917
+ \*******************************************************/
918
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
919
+
920
+ "use strict";
921
+ __webpack_require__.r(__webpack_exports__);
922
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
923
+ /* harmony export */ withSSR: () => (/* binding */ withSSR)
924
+ /* harmony export */ });
925
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
926
+ /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
927
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
928
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
929
+ /* harmony import */ var _useSSR__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useSSR */ "./node_modules/react-i18next/dist/es/useSSR.js");
930
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./node_modules/react-i18next/dist/es/context.js");
931
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./node_modules/react-i18next/dist/es/utils.js");
932
+
933
+
934
+ var _excluded = ["initialI18nStore", "initialLanguage"];
935
+
936
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
937
+
938
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
939
+
940
+
941
+
942
+
943
+
944
+ function withSSR() {
945
+ return function Extend(WrappedComponent) {
946
+ function I18nextWithSSR(_ref) {
947
+ var initialI18nStore = _ref.initialI18nStore,
948
+ initialLanguage = _ref.initialLanguage,
949
+ rest = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, _excluded);
950
+
951
+ (0,_useSSR__WEBPACK_IMPORTED_MODULE_3__.useSSR)(initialI18nStore, initialLanguage);
952
+ return (0,react__WEBPACK_IMPORTED_MODULE_2__.createElement)(WrappedComponent, _objectSpread({}, rest));
953
+ }
954
+
955
+ I18nextWithSSR.getInitialProps = (0,_context__WEBPACK_IMPORTED_MODULE_4__.composeInitialProps)(WrappedComponent);
956
+ I18nextWithSSR.displayName = "withI18nextSSR(".concat((0,_utils__WEBPACK_IMPORTED_MODULE_5__.getDisplayName)(WrappedComponent), ")");
957
+ I18nextWithSSR.WrappedComponent = WrappedComponent;
958
+ return I18nextWithSSR;
959
+ };
960
+ }
961
+
962
+ /***/ }),
963
+
964
+ /***/ "./node_modules/react-i18next/dist/es/withTranslation.js":
965
+ /*!***************************************************************!*\
966
+ !*** ./node_modules/react-i18next/dist/es/withTranslation.js ***!
967
+ \***************************************************************/
968
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
969
+
970
+ "use strict";
971
+ __webpack_require__.r(__webpack_exports__);
972
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
973
+ /* harmony export */ withTranslation: () => (/* binding */ withTranslation)
974
+ /* harmony export */ });
975
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
976
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
977
+ /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
978
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
979
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
980
+ /* harmony import */ var _useTranslation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useTranslation */ "./node_modules/react-i18next/dist/es/useTranslation.js");
981
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./node_modules/react-i18next/dist/es/utils.js");
982
+
983
+
984
+
985
+ var _excluded = ["forwardedRef"];
986
+
987
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
988
+
989
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
990
+
991
+
992
+
993
+
994
+ function withTranslation(ns) {
995
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
996
+ return function Extend(WrappedComponent) {
997
+ function I18nextWithTranslation(_ref) {
998
+ var forwardedRef = _ref.forwardedRef,
999
+ rest = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, _excluded);
1000
+
1001
+ var _useTranslation = (0,_useTranslation__WEBPACK_IMPORTED_MODULE_4__.useTranslation)(ns, _objectSpread(_objectSpread({}, rest), {}, {
1002
+ keyPrefix: options.keyPrefix
1003
+ })),
1004
+ _useTranslation2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useTranslation, 3),
1005
+ t = _useTranslation2[0],
1006
+ i18n = _useTranslation2[1],
1007
+ ready = _useTranslation2[2];
1008
+
1009
+ var passDownProps = _objectSpread(_objectSpread({}, rest), {}, {
1010
+ t: t,
1011
+ i18n: i18n,
1012
+ tReady: ready
1013
+ });
1014
+
1015
+ if (options.withRef && forwardedRef) {
1016
+ passDownProps.ref = forwardedRef;
1017
+ } else if (!options.withRef && forwardedRef) {
1018
+ passDownProps.forwardedRef = forwardedRef;
1019
+ }
1020
+
1021
+ return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(WrappedComponent, passDownProps);
1022
+ }
1023
+
1024
+ I18nextWithTranslation.displayName = "withI18nextTranslation(".concat((0,_utils__WEBPACK_IMPORTED_MODULE_5__.getDisplayName)(WrappedComponent), ")");
1025
+ I18nextWithTranslation.WrappedComponent = WrappedComponent;
1026
+
1027
+ var forwardRef = function forwardRef(props, ref) {
1028
+ return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(I18nextWithTranslation, Object.assign({}, props, {
1029
+ forwardedRef: ref
1030
+ }));
1031
+ };
1032
+
1033
+ return options.withRef ? (0,react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)(forwardRef) : I18nextWithTranslation;
1034
+ };
1035
+ }
1036
+
1037
+ /***/ }),
1038
+
1039
+ /***/ "./node_modules/void-elements/index.js":
1040
+ /*!*********************************************!*\
1041
+ !*** ./node_modules/void-elements/index.js ***!
1042
+ \*********************************************/
1043
+ /***/ ((module) => {
1044
+
1045
+ /**
1046
+ * This file automatically generated from `pre-publish.js`.
1047
+ * Do not manually edit.
1048
+ */
1049
+
1050
+ module.exports = {
1051
+ "area": true,
1052
+ "base": true,
1053
+ "br": true,
1054
+ "col": true,
1055
+ "embed": true,
1056
+ "hr": true,
1057
+ "img": true,
1058
+ "input": true,
1059
+ "link": true,
1060
+ "meta": true,
1061
+ "param": true,
1062
+ "source": true,
1063
+ "track": true,
1064
+ "wbr": true
1065
+ };
1066
+
1067
+
1068
+ /***/ }),
1069
+
1070
+ /***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
1071
+ /*!*********************************************************************!*\
1072
+ !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
1073
+ \*********************************************************************/
1074
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1075
+
1076
+ "use strict";
1077
+ __webpack_require__.r(__webpack_exports__);
1078
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1079
+ /* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
1080
+ /* harmony export */ });
1081
+ function _arrayLikeToArray(arr, len) {
1082
+ if (len == null || len > arr.length) len = arr.length;
1083
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1084
+ return arr2;
1085
+ }
1086
+
1087
+ /***/ }),
1088
+
1089
+ /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
1090
+ /*!*******************************************************************!*\
1091
+ !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
1092
+ \*******************************************************************/
1093
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1094
+
1095
+ "use strict";
1096
+ __webpack_require__.r(__webpack_exports__);
1097
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1098
+ /* harmony export */ "default": () => (/* binding */ _arrayWithHoles)
1099
+ /* harmony export */ });
1100
+ function _arrayWithHoles(arr) {
1101
+ if (Array.isArray(arr)) return arr;
1102
+ }
1103
+
1104
+ /***/ }),
1105
+
1106
+ /***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
1107
+ /*!*******************************************************************!*\
1108
+ !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
1109
+ \*******************************************************************/
1110
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1111
+
1112
+ "use strict";
1113
+ __webpack_require__.r(__webpack_exports__);
1114
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1115
+ /* harmony export */ "default": () => (/* binding */ _classCallCheck)
1116
+ /* harmony export */ });
1117
+ function _classCallCheck(instance, Constructor) {
1118
+ if (!(instance instanceof Constructor)) {
1119
+ throw new TypeError("Cannot call a class as a function");
1120
+ }
1121
+ }
1122
+
1123
+ /***/ }),
1124
+
1125
+ /***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js":
1126
+ /*!****************************************************************!*\
1127
+ !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***!
1128
+ \****************************************************************/
1129
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1130
+
1131
+ "use strict";
1132
+ __webpack_require__.r(__webpack_exports__);
1133
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1134
+ /* harmony export */ "default": () => (/* binding */ _createClass)
1135
+ /* harmony export */ });
1136
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
1137
+
1138
+ function _defineProperties(target, props) {
1139
+ for (var i = 0; i < props.length; i++) {
1140
+ var descriptor = props[i];
1141
+ descriptor.enumerable = descriptor.enumerable || false;
1142
+ descriptor.configurable = true;
1143
+ if ("value" in descriptor) descriptor.writable = true;
1144
+ Object.defineProperty(target, (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(descriptor.key), descriptor);
1145
+ }
1146
+ }
1147
+ function _createClass(Constructor, protoProps, staticProps) {
1148
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1149
+ if (staticProps) _defineProperties(Constructor, staticProps);
1150
+ Object.defineProperty(Constructor, "prototype", {
1151
+ writable: false
1152
+ });
1153
+ return Constructor;
1154
+ }
1155
+
1156
+ /***/ }),
1157
+
1158
+ /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
1159
+ /*!*******************************************************************!*\
1160
+ !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
1161
+ \*******************************************************************/
1162
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1163
+
1164
+ "use strict";
1165
+ __webpack_require__.r(__webpack_exports__);
1166
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1167
+ /* harmony export */ "default": () => (/* binding */ _defineProperty)
1168
+ /* harmony export */ });
1169
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
1170
+
1171
+ function _defineProperty(obj, key, value) {
1172
+ key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
1173
+ if (key in obj) {
1174
+ Object.defineProperty(obj, key, {
1175
+ value: value,
1176
+ enumerable: true,
1177
+ configurable: true,
1178
+ writable: true
1179
+ });
1180
+ } else {
1181
+ obj[key] = value;
1182
+ }
1183
+ return obj;
1184
+ }
1185
+
1186
+ /***/ }),
1187
+
1188
+ /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
1189
+ /*!*************************************************************************!*\
1190
+ !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
1191
+ \*************************************************************************/
1192
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1193
+
1194
+ "use strict";
1195
+ __webpack_require__.r(__webpack_exports__);
1196
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1197
+ /* harmony export */ "default": () => (/* binding */ _iterableToArrayLimit)
1198
+ /* harmony export */ });
1199
+ function _iterableToArrayLimit(r, l) {
1200
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1201
+ if (null != t) {
1202
+ var e,
1203
+ n,
1204
+ i,
1205
+ u,
1206
+ a = [],
1207
+ f = !0,
1208
+ o = !1;
1209
+ try {
1210
+ if (i = (t = t.call(r)).next, 0 === l) {
1211
+ if (Object(t) !== t) return;
1212
+ f = !1;
1213
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1214
+ } catch (r) {
1215
+ o = !0, n = r;
1216
+ } finally {
1217
+ try {
1218
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1219
+ } finally {
1220
+ if (o) throw n;
1221
+ }
1222
+ }
1223
+ return a;
1224
+ }
1225
+ }
1226
+
1227
+ /***/ }),
1228
+
1229
+ /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
1230
+ /*!********************************************************************!*\
1231
+ !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
1232
+ \********************************************************************/
1233
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1234
+
1235
+ "use strict";
1236
+ __webpack_require__.r(__webpack_exports__);
1237
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1238
+ /* harmony export */ "default": () => (/* binding */ _nonIterableRest)
1239
+ /* harmony export */ });
1240
+ function _nonIterableRest() {
1241
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1242
+ }
1243
+
1244
+ /***/ }),
1245
+
1246
+ /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":
1247
+ /*!****************************************************************************!*\
1248
+ !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***!
1249
+ \****************************************************************************/
1250
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1251
+
1252
+ "use strict";
1253
+ __webpack_require__.r(__webpack_exports__);
1254
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1255
+ /* harmony export */ "default": () => (/* binding */ _objectWithoutProperties)
1256
+ /* harmony export */ });
1257
+ /* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
1258
+
1259
+ function _objectWithoutProperties(source, excluded) {
1260
+ if (source == null) return {};
1261
+ var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(source, excluded);
1262
+ var key, i;
1263
+ if (Object.getOwnPropertySymbols) {
1264
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1265
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
1266
+ key = sourceSymbolKeys[i];
1267
+ if (excluded.indexOf(key) >= 0) continue;
1268
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1269
+ target[key] = source[key];
1270
+ }
1271
+ }
1272
+ return target;
1273
+ }
1274
+
1275
+ /***/ }),
1276
+
1277
+ /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
1278
+ /*!*********************************************************************************!*\
1279
+ !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
1280
+ \*********************************************************************************/
1281
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1282
+
1283
+ "use strict";
1284
+ __webpack_require__.r(__webpack_exports__);
1285
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1286
+ /* harmony export */ "default": () => (/* binding */ _objectWithoutPropertiesLoose)
1287
+ /* harmony export */ });
1288
+ function _objectWithoutPropertiesLoose(source, excluded) {
1289
+ if (source == null) return {};
1290
+ var target = {};
1291
+ var sourceKeys = Object.keys(source);
1292
+ var key, i;
1293
+ for (i = 0; i < sourceKeys.length; i++) {
1294
+ key = sourceKeys[i];
1295
+ if (excluded.indexOf(key) >= 0) continue;
1296
+ target[key] = source[key];
1297
+ }
1298
+ return target;
1299
+ }
1300
+
1301
+ /***/ }),
1302
+
1303
+ /***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
1304
+ /*!******************************************************************!*\
1305
+ !*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
1306
+ \******************************************************************/
1307
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1308
+
1309
+ "use strict";
1310
+ __webpack_require__.r(__webpack_exports__);
1311
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1312
+ /* harmony export */ "default": () => (/* binding */ _slicedToArray)
1313
+ /* harmony export */ });
1314
+ /* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
1315
+ /* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
1316
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
1317
+ /* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
1318
+
1319
+
1320
+
1321
+
1322
+ function _slicedToArray(arr, i) {
1323
+ return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
1324
+ }
1325
+
1326
+ /***/ }),
1327
+
1328
+ /***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
1329
+ /*!****************************************************************!*\
1330
+ !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
1331
+ \****************************************************************/
1332
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1333
+
1334
+ "use strict";
1335
+ __webpack_require__.r(__webpack_exports__);
1336
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1337
+ /* harmony export */ "default": () => (/* binding */ toPrimitive)
1338
+ /* harmony export */ });
1339
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
1340
+
1341
+ function toPrimitive(t, r) {
1342
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
1343
+ var e = t[Symbol.toPrimitive];
1344
+ if (void 0 !== e) {
1345
+ var i = e.call(t, r || "default");
1346
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
1347
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1348
+ }
1349
+ return ("string" === r ? String : Number)(t);
1350
+ }
1351
+
1352
+ /***/ }),
1353
+
1354
+ /***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
1355
+ /*!******************************************************************!*\
1356
+ !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
1357
+ \******************************************************************/
1358
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1359
+
1360
+ "use strict";
1361
+ __webpack_require__.r(__webpack_exports__);
1362
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1363
+ /* harmony export */ "default": () => (/* binding */ toPropertyKey)
1364
+ /* harmony export */ });
1365
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
1366
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
1367
+
1368
+
1369
+ function toPropertyKey(t) {
1370
+ var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
1371
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : String(i);
1372
+ }
1373
+
1374
+ /***/ }),
1375
+
1376
+ /***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
1377
+ /*!***********************************************************!*\
1378
+ !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
1379
+ \***********************************************************/
1380
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1381
+
1382
+ "use strict";
1383
+ __webpack_require__.r(__webpack_exports__);
1384
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1385
+ /* harmony export */ "default": () => (/* binding */ _typeof)
1386
+ /* harmony export */ });
1387
+ function _typeof(o) {
1388
+ "@babel/helpers - typeof";
1389
+
1390
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1391
+ return typeof o;
1392
+ } : function (o) {
1393
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1394
+ }, _typeof(o);
1395
+ }
1396
+
1397
+ /***/ }),
1398
+
1399
+ /***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
1400
+ /*!*******************************************************************************!*\
1401
+ !*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
1402
+ \*******************************************************************************/
1403
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1404
+
1405
+ "use strict";
1406
+ __webpack_require__.r(__webpack_exports__);
1407
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1408
+ /* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
1409
+ /* harmony export */ });
1410
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
1411
+
1412
+ function _unsupportedIterableToArray(o, minLen) {
1413
+ if (!o) return;
1414
+ if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1415
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1416
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1417
+ if (n === "Map" || n === "Set") return Array.from(o);
1418
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1419
+ }
1420
+
1421
+ /***/ })
1422
+
1423
+ }]);
1424
+ //# sourceMappingURL=vendors-node_modules_react-i18next_dist_es_index_js.js.map