import{withPathPrefix as l}from"@redocly/theme/core/utils";import{DEFAULT_LOCALE_PLACEHOLDER as p}from"../../constants/index.js";import{RUNTIME_RESOURCES_DIR as s}from"../constants/common.js";import{INIT_BROWSER_HOOKS_SCRIPT as c}from"./init-browser-hooks-script.js";const y="";function O({bodyHtml:o,linkTags:r,title:i,favicon:e,preload:m,headScriptTags:n,postBodyScriptTags:$,preBodyScriptTags:a,lang:t,fonts:d=y,runtimeCss:h}){return`<!doctype html>
  <html${t&&t!=p?` lang="${t}"`:""}>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="UTF-8">
    ${i||""}
    ${e&&`<link rel="icon" href="${e}" />`||""}
    ${c}
    ${m?.join(`
`)||""}
    <style>
      body { margin: 0 }
    </style>
    ${d||""}
    ${r||""}
    ${n||""}
    ${h||""}
  </head>
  <body>
    ${a||""}
    <div id="app_root">${o}</div>
    <script async type="module" src="${l(s)}/browser-entry.js"></script>
    ${$||""}
  </body>
  </html>`}export{O as htmlTemplate};
