"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var React = _interopRequireWildcard(require("react"));

var _data = require("../data");

/* eslint-disable react/no-danger */
const Html = ({
  root,
  helmet,
  styles,
  preloadable,
  loadable,
  themeId,
  localeId
}) => React.createElement("html", (0, _extends2.default)({}, helmet.htmlAttributes.toComponent(), {
  lang: localeId
}), React.createElement("head", null, helmet.title.toComponent(), helmet.meta.toComponent(), helmet.link.toComponent(), helmet.script.toComponent(), helmet.style.toComponent(), React.createElement("link", {
  href: process.env.API_URL,
  rel: "preconnect"
}), React.createElement("link", {
  rel: "preload",
  href: `/generated/themes/${_data.themeMap[themeId]}`,
  as: "script"
}), React.createElement("link", {
  rel: "preload",
  href: `/generated/locales/${_data.localeMap[localeId]}`,
  as: "script"
}), preloadable, styles), React.createElement("body", helmet.bodyAttributes.toComponent(), React.createElement("div", {
  id: "react",
  dangerouslySetInnerHTML: {
    __html: root
  }
}), React.createElement("script", {
  src: `/generated/themes/${_data.themeMap[themeId]}`
}), React.createElement("script", {
  src: `/generated/locales/${_data.localeMap[localeId]}`
}), loadable));

var _default = Html;
exports.default = _default;