"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.makeHtmlWithMeta = void 0;

var _react = _interopRequireDefault(require("react"));

var _jsxFileName = "/Users/tannerlinsley/GitHub/react-static/src/static/components/HtmlWithMeta.js";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(function () {
  var enterModule = require('react-hot-loader').enterModule;

  enterModule && enterModule(module);
})();

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

// Instead of using the default components, we need to hard code meta
// from react-helmet into the components
var makeHtmlWithMeta = function makeHtmlWithMeta(_ref) {
  var head = _ref.head;
  return function (_ref2) {
    var children = _ref2.children,
        rest = _objectWithoutProperties(_ref2, ["children"]);

    return _react.default.createElement("html", _extends({
      lang: "en"
    }, head.htmlProps, rest, {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 6
      },
      __self: this
    }), children);
  };
};

exports.makeHtmlWithMeta = makeHtmlWithMeta;
;

(function () {
  var reactHotLoader = require('react-hot-loader').default;

  var leaveModule = require('react-hot-loader').leaveModule;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(makeHtmlWithMeta, "makeHtmlWithMeta", "/Users/tannerlinsley/GitHub/react-static/src/static/components/HtmlWithMeta.js");
  leaveModule(module);
})();

;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdGF0aWMvY29tcG9uZW50cy9IdG1sV2l0aE1ldGEuanMiXSwibmFtZXMiOlsibWFrZUh0bWxXaXRoTWV0YSIsImhlYWQiLCJjaGlsZHJlbiIsInJlc3QiLCJodG1sUHJvcHMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUE7QUFDQTtBQUNPLElBQU1BLGdCQUFnQixHQUFHLFNBQW5CQSxnQkFBbUI7QUFBQSxNQUFHQyxJQUFILFFBQUdBLElBQUg7QUFBQSxTQUFjO0FBQUEsUUFBR0MsUUFBSCxTQUFHQSxRQUFIO0FBQUEsUUFBZ0JDLElBQWhCOztBQUFBLFdBQzVDO0FBQU0sTUFBQSxJQUFJLEVBQUM7QUFBWCxPQUFvQkYsSUFBSSxDQUFDRyxTQUF6QixFQUF3Q0QsSUFBeEM7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsUUFDR0QsUUFESCxDQUQ0QztBQUFBLEdBQWQ7QUFBQSxDQUF6Qjs7Ozs7Ozs7Ozs7Ozs7MEJBQU1GLGdCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuXG4vLyBJbnN0ZWFkIG9mIHVzaW5nIHRoZSBkZWZhdWx0IGNvbXBvbmVudHMsIHdlIG5lZWQgdG8gaGFyZCBjb2RlIG1ldGFcbi8vIGZyb20gcmVhY3QtaGVsbWV0IGludG8gdGhlIGNvbXBvbmVudHNcbmV4cG9ydCBjb25zdCBtYWtlSHRtbFdpdGhNZXRhID0gKHsgaGVhZCB9KSA9PiAoeyBjaGlsZHJlbiwgLi4ucmVzdCB9KSA9PiAoXG4gIDxodG1sIGxhbmc9XCJlblwiIHsuLi5oZWFkLmh0bWxQcm9wc30gey4uLnJlc3R9PlxuICAgIHtjaGlsZHJlbn1cbiAgPC9odG1sPlxuKVxuIl19