<?php

/* app/atualiza_loja.tpl */
class __TwigTemplate_00224a4eb12b532671d6bb66409d9709 extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<style>
  #loading-msg {
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #6e8cd7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease;
}

#loading-msg.show {
  visibility: visible;
  opacity: 1;
}

#loading-msg p {
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
}

#loading-bar {
  width: 0%;
  height: 10px;
  background-color: #6e8cd7;
}
</style>

<div class=\"row\">
  <div style=\"display: ";
        // line 36
        echo twig_safe_filter((isset($context['ERROR_hide']) ? $context['ERROR_hide'] : null));
        echo ";\">
    <div class=\"alert alert-danger\" role=\"alert\" >
      <center><strong>Erro: ";
        // line 38
        echo twig_safe_filter((isset($context['ERROR']) ? $context['ERROR'] : null));
        echo " - Entre em contato com o suporte.</strong></center><br>
      
    </div>
  </div>
  <div class=\"col-sm-12\">
    <h4 class=\"page-title\">Seja Bem vindo ao assistente de atualizações da loja</h4>
  </div>
</div>
<div class=\"panel panel-default form-horizontal\">
  <div class=\"panel-heading\"> 
    <h3 class=\"panel-title\">
      Atualizações do sistema
      <a href=\"index.php?ToDo=appalteracoes\" class=\"pull-right btn btn-primary btn-sm\"><strong>Changelog</strong></a>
    </h3> 
  </div> 

  <div class=\"panel-body \" style=\"padding: 0\">
    <table class=\"table\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
      ";
        // line 56
        if (twig_safe_filter((isset($context['Productedicao']) ? $context['Productedicao'] : null)) >= "11") {
            echo "        <tr id=\"alertav11\" style=\"display: none;\">
          <th style=\"width: 10%;\">
            Mensagem Importante:
          </th>
          <td>
            <div id=\"aviso-content\"></div>
          </td>
        </tr>
      ";
        }
        // line 65
        echo "      <tr>
        <th style=\"width: 10%;\">
          Edição do produto:
        </th>
        <td>
          ";
        // line 71
        echo twig_safe_filter((isset($context['Productedicao']) ? $context['Productedicao'] : null));
        echo "
        </td>
      </tr>
      <tr>
        <th>
          Atualizações:
        </th>
        <td>
          ";
        // line 79
        echo twig_safe_filter((isset($context['EdicaoAtual']) ? $context['EdicaoAtual'] : null));
        echo "
        </td>
      </tr>
    </table>
  </div>
</div>

<script>
    function carregarAvisos() {
        var avisoContainer = document.getElementById('aviso-content');
        var avisoFiles = ['11.html','12.html'];
        avisoFiles.forEach(function(avisoFile) {
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function() {
                if (xhr.readyState === 4 && xhr.status === 200) {
                    var avisoDiv = document.createElement('div');
                    avisoDiv.innerHTML = xhr.responseText;
                    avisoContainer.appendChild(avisoDiv);
                    document.getElementById('alertav11').style.display = 'table-row';
                }
            };

            xhr.open('GET', 'avisos/' + avisoFile, true);
            xhr.send();
        });
    }
    carregarAvisos();
</script>";
    }

}
