{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar __jsx = React.createElement;\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\nexport var withInternals = function withInternals(WrappedComponent, config) {\n  var WithInternals = /*#__PURE__*/function (_React$Component) {\n    _inherits(WithInternals, _React$Component);\n\n    var _super = _createSuper(WithInternals);\n\n    function WithInternals() {\n      _classCallCheck(this, WithInternals);\n\n      return _super.apply(this, arguments);\n    }\n\n    _createClass(WithInternals, [{\n      key: \"render\",\n      value: function render() {\n        return __jsx(WrappedComponent, _extends({}, this.props, {\n          nextI18NextInternals: config\n        }));\n      }\n    }]);\n\n    return WithInternals;\n  }(React.Component);\n\n  _defineProperty(WithInternals, \"displayName\", \"withNextI18NextInternals(\".concat(WrappedComponent.displayName || WrappedComponent.name || 'Component', \")\"));\n\n  return WithInternals;\n};","map":null,"metadata":{},"sourceType":"module"}