import * as plugins from './infohtml.plugins.js';
import {} from './index.js';
export const simpleInfo = async (smartntmlInstanceArg, optionsArg) => {
    const html = plugins.smartntml.deesElement.html;
    const htmlTemplate = await plugins.smartntml.deesElement.html `
    <html lang="en">
      <head>
        <title>${optionsArg.title}</title>
        <script>
          setTimeout(() => {
            const redirectUrl = '${optionsArg.redirectTo}';
            if (redirectUrl) {
              window.location = redirectUrl;
            }
          }, 5000);
        </script>
        <style>
          body {
            margin: 0px;
            background: #000000;
            font-family: 'Roboto Mono', monospace;
            min-height: 100vh;
            min-width: 100vw;
            border: 1px solid #e4002b;
          }

          * {
            box-sizing: border-box;
          }

          .logo {
            width: 150px;
            padding-top: 70px;
            margin: 0px auto 30px auto;
          }

          .content {
            text-align: center;
            max-width: 800px;
            margin: auto;
          }

          .content .maintext {
            margin: 10px;
            color: #ffffff;
            background: #333;
            display: block;
            border-radius: 3px;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
            padding: 20px;
          }

          .content .maintext h1 {
            margin: 0px;
          }

          .content .addontext {
            margin: 10px;
            color: #ffffff;
            background: #222;
            display: block;
            padding: 10px 15px;
            border-radius: 3px;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
            padding: 10px;
          }

          .content .text h1 {
            margin: 0px;
            font-weight: 100;
            font-size: 40px;
          }

          .content .text ul {
            text-align: left;
          }

          a {
            color: #ffffff;
          }

          .legal {
            color: #fff;
            position: fixed;
            bottom: 0px;
            width: 100vw;
            text-align: center;
            padding: 10px;
          }
        </style>
        <meta
          name="viewport"
          content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi"
        />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      </head>
      <body>
        <div class="content">
          ${(() => {
        const returnArray = [];
        if (optionsArg.heading) {
            returnArray.push(html `
                <div class="maintext">
                  <h1>${optionsArg.heading}</h1>
                  ${optionsArg.text}
                </div>
              `);
        }
        else {
            returnArray.push(html ` <div class="maintext">${optionsArg.text}</div> `);
        }
        if (optionsArg.redirectTo) {
            returnArray.push(html `<div class="addontext">
                  We will redirect you to ${optionsArg.redirectTo} in a few seconds.
                </div>`);
        }
        return returnArray;
    })()}
        </div>
        <div class="legal">
          <a href="https://foss.global">learn more about foss.global</a> / &copy 2014-${new Date().getFullYear()} Task Venture Capital GmbH
        </div>
      </body>
    </html>
  `;
    return smartntmlInstanceArg.renderTemplateResult(htmlTemplate);
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi90cy9pbmZvaHRtbC90ZW1wbGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLHVCQUF1QixDQUFDO0FBQ2pELE9BQU8sRUFBeUIsTUFBTSxZQUFZLENBQUM7QUFFbkQsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHLEtBQUssRUFDN0Isb0JBQWlELEVBQ2pELFVBQTRCLEVBQzVCLEVBQUU7SUFDRixNQUFNLElBQUksR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUM7SUFDaEQsTUFBTSxZQUFZLEdBQUcsTUFBTSxPQUFPLENBQUMsU0FBUyxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUE7OztpQkFHOUMsVUFBVSxDQUFDLEtBQUs7OzttQ0FHRSxVQUFVLENBQUMsVUFBVTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztZQXdGNUMsQ0FBQyxHQUFHLEVBQUU7UUFDTixNQUFNLFdBQVcsR0FBbUQsRU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