<?php
/**
 * Copyright 2020 Adobe
 * All Rights Reserved.
 *
 * NOTICE: Adobe permits you to use, modify, and distribute this file in
 * accordance with the terms of the Adobe license agreement accompanying
 * it.
 */
declare(strict_types=1);
/** @var Sut\Domain\Compatibility\Data\AnalysisResult $analysisResult */
/** @var Sut\Domain\Compatibility\Output\Html\Render $this */
/** @var string $documentationLink */
?>
<!DOCTYPE html>

<html lang="en">
<head>
    <title>Upgrade Compatibility Tool Results</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.20/c3.min.css"
          integrity="sha512-cznfNokevSG7QPA5dZepud8taylLdvgr0lDqw/FEZIhluFsSwyvS81CMnRdrNSKwbsmc43LtRd2/WMQV+Z85AQ=="
          crossorigin="anonymous" referrerpolicy="no-referrer"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css"
          integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w=="
          crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.8.1/font/bootstrap-icons.min.css" />
    <style>
        .critical-bg {
            background-color: #FF0000;
        }
        .error-bg {
            background-color: #FF9300;
        }
        .warning-bg {
            background-color: #FBFF00;
        }
        .no-issue-bg {
            background-color: #49FF00;
        }
        .min-issue-level .badge {
            cursor: pointer;
        }
        main {
            margin-top: 180px;
        }
        a.top-anchor {
            display: block;
            position: relative;
            top: -180px;
            visibility: hidden;
        }
        .dropdown-item {
            cursor: pointer;
        }
        .nav-pills .nav-link.outlined {
            border: 1px solid;
        }
    </style>
</head>
<body>
    <div class="fixed-top">
        <header class="d-flex flex-wrap justify-content-center py-3 bm-4 bg-dark text-white">
            <div class="container">
                <h1>Upgrade Compatibility Tool: Results</h1>
            </div>
        </header>
        <nav class="d-flex flex-wrap justify-content-center bg-white border-bottom py-3">
            <?php if (!empty($analysisResult->getIssues())): ?>
                <div class="container">
                    <div class="row">
                        <div class="col-sm-8 me-lg-auto mb-2 justify-content-center">
                            <?php // phpcs:ignore ?>
                            <?php include 'section/navigation.phtml' ?>
                        </div>
                        <div class="col-sm-4 col-lg-auto me-lg-auto mb-2">
                            <?php // phpcs:ignore ?>
                            <?php include 'section/minIssueLevelSelector.phtml' ?>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        </nav>
    </div>
    <main>
        <div class="container">
            <?php // phpcs:disable ?>
            <?php include 'section/summary.phtml' ?>
            <?php include 'section/diagrams.phtml' ?>
            <?php include 'section/modules.phtml' ?>
            <?php // phpcs:enable ?>
        </div>
    </main>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.slim.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.bundle.min.js"
            integrity="sha512-pax4MlgXjHEPfCwcJLQhigY7+N8rt6bVvWLFyUMuxShv170X53TRzGPmPkZmGBhk+jikR8WBM4yl7A9WMHHqvg=="
            crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.16.0/d3.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.20/c3.min.js"
            integrity="sha512-+IpCthlNahOuERYUSnKFjzjdKXIbJ/7Dd6xvUp+7bEw0Jp2dg6tluyxLs+zq9BMzZgrLv8886T4cBSqnKiVgUw=="
            crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <?php // phpcs:disable ?>
    <?php // phpcs:ignore ?>
    <?php include 'scripts/charts.phtml' ?>
    <?php include 'scripts/custom.phtml' ?>
</body>
</html>
