<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* Block/modal.twig */
class __TwigTemplate_322def3fb21c2cce31e49f3c3b7e6d3ca0aad34d70fe97bdd26e72f9371ca2f1 extends \Eccube\Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<!-- モーダル -->
<div id=\"Modal\" class=\"modal\">
  <div class=\"modal-content\">
    <img src=\"";
        // line 4
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/newpackage-message.jpg"), "html", null, true);
        echo "\"></img>
    <div id=\"closeModal\"><i class=\"bi bi-x-circle\"></i></div>
  </div>
</div>

<script>
  document.addEventListener(\"DOMContentLoaded\", function() {
    if (!sessionStorage.getItem(\"pdf_shown\")) {
      document.getElementById(\"Modal\").style.display = \"block\";
      sessionStorage.setItem(\"pdf_shown\", \"true\");
    }

    document.getElementById(\"closeModal\").addEventListener(\"click\", function() {
      document.getElementById(\"Modal\").style.display = \"none\";
    });
  });
</script>";
    }

    public function getTemplateName()
    {
        return "Block/modal.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  42 => 4,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "Block/modal.twig", "/home/probiotech2/www/mamebio/app/template/default/Block/modal.twig");
    }
}
