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