<?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;
/* front/liseuse-papier/index.html.twig */
class __TwigTemplate_e75a08c25e38ac027097a8fdfbc4e0b18703ed75454ac74e6eb06c8947fbeb81 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'googleTagManagerDataLayer' => [$this, 'block_googleTagManagerDataLayer'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/liseuse-papier/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/liseuse-papier/index.html.twig"));
$this->parent = $this->loadTemplate("front/layout.html.twig", "front/liseuse-papier/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_googleTagManagerDataLayer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "googleTagManagerDataLayer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "googleTagManagerDataLayer"));
// line 3
echo " ";
$this->loadTemplate("google_tag.html.twig", "front/liseuse-papier/index.html.twig", 3)->display(twig_array_merge($context, ["titlePage" => "liseuse", "categoryPage" => "product-details", "navigation_category1" => "", "navigation_category2" => "", "navigation_category3" => ""]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo " ";
$this->loadTemplate("front/header.html.twig", "front/liseuse-papier/index.html.twig", 6)->display($context);
// line 7
echo " ";
$context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "attributes", [], "any", false, false, false, 7), "get", [0 => "_route"], "method", false, false, false, 7), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "attributes", [], "any", false, false, false, 7), "get", [0 => "_route_params"], "method", false, false, false, 7));
// line 8
echo " <script>
var isMobile = \"";
// line 9
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "get", [0 => "isMobile"], "method", false, false, false, 9), "html", null, true);
echo "\";
if(\$( window ).width() > 1100 ) {
if(isMobile == '1'){
window.location.replace(\"";
// line 12
echo twig_escape_filter($this->env, (isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 12, $this->source); })()), "html", null, true);
echo "?isMobile=0\");
}
}else {
if(isMobile != '1') {
window.location.replace(\"";
// line 17
echo twig_escape_filter($this->env, (isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 17, $this->source); })()), "html", null, true);
echo "?isMobile=1\");
}
}
</script>
";
// line 21
if (($this->extensions['App\Twig\AppExtension']->getDisponibiliteProductPapierPerCountrySession(twig_constant("App\\Entity\\Product::PAPIER")) == false)) {
// line 22
echo " <div class=\"mt-4 p-5\">
<div class=\"alert alert-danger\" role=\"alert\">
<p class=\"p-2\">";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("la liseuse est actuellement indisponible dans", [], "productTranslate"), "html", null, true);
echo " \"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->getCountrySession(), "html", null, true);
echo "\"</p>
</div>
</div>
";
} else {
// line 28
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "request", [], "any", false, false, false, 28), "get", [0 => "isMobile"], "method", false, false, false, 28) == "1")) {
// line 29
echo " ";
$this->loadTemplate("front/liseuse-papier/index-mobile.html.twig", "front/liseuse-papier/index.html.twig", 29)->display($context);
// line 30
echo " ";
} else {
// line 31
echo " ";
$this->loadTemplate("front/liseuse-papier/index-desktop.html.twig", "front/liseuse-papier/index.html.twig", 31)->display($context);
// line 32
echo " ";
}
// line 33
echo " ";
}
// line 34
echo " <input type=\"hidden\" id=\"catLiseuseConfig\" value=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->catLiseuseConfig(), "html", null, true);
echo "\">
<div class=\"modal fade\" id=\"contunueMesAchat\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<img src=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/modalContinueAchatLiseuse.png"), "html", null, true);
echo "\">
</button>
</div>
<div class=\"modal-body contunueMesAchatBody\" style=\"padding-bottom: 5px;\">
<h2>";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Finalisez votre commande", [], "productTranslate"), "html", null, true);
echo "</h2>
<div class=\"\">
<p>
";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Souhaitez vous ajouter un de nos <span>300 produits</span> personnalisables <span>livrés le jour même</span> sur un créneau de <span>30 mn dans plus de 15 villes ?", [], "productTranslate");
echo "</span>
</p>
</div>
</div>
<div class=\"modal-body contunueMesAchatHeader\" style=\"\">
<div class=\"row \">
<div class=\"col-4 col-sm-4 col-md-4\">
<a class=\"\" href=\"";
// line 54
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 54, $this->source); })())) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 54, $this->source); })()), "product", [], "any", false, false, false, 54), "lienBlocModalLiseuse1", [], "any", false, false, false, 54), "html", null, true);
}
echo "\">
<div class=\"\" style=\"\">
<img src=\"";
// line 56
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 56, $this->source); })())) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/imageSite/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 56, $this->source); })()), "product", [], "any", false, false, false, 56), "imageBlocModalLiseuse1", [], "any", false, false, false, 56))), "html", null, true);
}
echo "\">
</div>
</a>
</div>
<div class=\"col-4 col-sm-4 col-md-4 \">
<a class=\"\" href=\"";
// line 61
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 61, $this->source); })())) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 61, $this->source); })()), "product", [], "any", false, false, false, 61), "lienBlocModalLiseuse2", [], "any", false, false, false, 61), "html", null, true);
}
echo "\">
<div class=\"\" style=\"\">
<img src=\"";
// line 63
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 63, $this->source); })())) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/imageSite/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 63, $this->source); })()), "product", [], "any", false, false, false, 63), "imageBlocModalLiseuse2", [], "any", false, false, false, 63))), "html", null, true);
}
echo "\">
</div>
</a>
</div>
<div class=\"col-4 col-sm-4 col-md-4 \">
<a class=\"\" href=\"";
// line 68
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 68, $this->source); })())) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 68, $this->source); })()), "product", [], "any", false, false, false, 68), "lienBlocModalLiseuse3", [], "any", false, false, false, 68), "html", null, true);
}
echo "\">
<div class=\"\" style=\"\">
<img src=\"";
// line 70
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 70, $this->source); })())) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/imageSite/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 70, $this->source); })()), "product", [], "any", false, false, false, 70), "imageBlocModalLiseuse3", [], "any", false, false, false, 70))), "html", null, true);
}
echo "\">
</div>
</a>
</div>
</div>
</div>
<div class=\"modal-body contunueMesAchatBody\" style=\"\">
<div class=\"\">
<div class=\"searchProductMenuLiseuseBloc\" style=\"position: relative;\" >
<input class=\"inputstyletopLiseuse\" type=\"text\" id=\"searchProductMenuLiseuse\" style=\"cursor: pointer;\" placeholder=\"";
// line 79
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Trouvez votre produit livré");
echo "\">
<div class=\"close_result_head\" id=\"close_result_product\" style=\"cursor: pointer;position: absolute;right: 17px;top: 3px;display: none\">
<img src=\"";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/bg_closeh.png"), "html", null, true);
echo "\">
</div>
</div>
<div class=\"collapse ipstresl \" id=\"collapseProductMenuLiseuse\" style=\"width: 94%;\">
<div class=\"divSearchProductMenu\">
<div id=\"divSearchProductMenuLiseuse\" style=\"min-height: 300px; display: none;max-height: 461px;overflow: auto;\">
</div>
</div>
</div>
<div class=\"btnModalAchatLiseuse\" style=\"\">
<a href=\"";
// line 92
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("besoin_produits");
echo "\" class=\"nav-link continueLinck1 btn btn-primary\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Continuer mes achats", [], "productTranslate"), "html", null, true);
echo "</a>
<a href=\"";
// line 93
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("checkout");
echo "\" class=\"nav-link continueLinck2 btn btn-primary\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Payer", [], "productTranslate"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"pspdfkitLiseuse\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\" style=\"width: 100%!important;max-width: 100%!important;margin-top: 1vw !important;\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\" style=\"margin-top:-25px!important;\">
<div id=\"pspdfkit\" style=\"width: 100%; height: 720px;\"></div>
";
// line 110
$this->loadTemplate("front/liseuse-papier/menu_plus_pspdf.html.twig", "front/liseuse-papier/index.html.twig", 110)->display($context);
// line 111
echo " </div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"pspdfkitLiseuseSpinner\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" >
<div class=\"modal-content nb_des\">
<div class=\"modal-body\" style=\"margin-top: 0px!important;text-align: center;!important;\">
<span class='spinner-border'></span>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"pspdfkitLiseuseAction\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" style=\"\">
<div class=\"modal-content\">
<div class=\"modal-body pspdfkitLiseuseActionContent\" style=\"margin-top: 0px!important;text-align: center;!important;\">
<span class='spinner-border'></span>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"reluireCheckmodal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" style=\"\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" style=\"z-index: 9999;\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\" style=\"\">
<div id=\"reluireCheckContent\">
</div>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"modalLoginLiseuse\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" style=\"\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\" style=\"\">
<div id=\"modalLoginLiseuseContent\">
";
// line 159
$this->loadTemplate("front/liseuse-papier/login-modal-liseuse.html.twig", "front/liseuse-papier/index.html.twig", 159)->display($context);
// line 160
echo " <input type=\"hidden\" id=\"typeFunction\" value=\"\">
</div>
</div>
</div>
</div>
</div>
<style>
.ajax-file-upload{
display: none!important;
}
.ajax-file-upload-error{
margin-top:10px;
}
.ajax-file-upload-filename{
font-size: 11px!important;
margin-left: 4px!important;
margin-bottom : 0px!important;
width: 100%!important;
text-align: left;
}
.ajax-file-upload-progress{
width: 100%!important;
border-radius: 0px!important;
background-color: #eeeeee!important;
margin-left: 0px!important;
margin-top: 0px!important;
border: 0px!important;
font-size: 11px!important;
}
.ajax-file-upload-bar{
height: 13px!important;
background-color: #007bff!important;
}
.ajax-file-upload-statusbar{
border: 0 !important;
width: 100%!important;
margin: 0 !important;
padding: 5px 15px 5px 15px!important;
}
.progress{
height: 13px!important;
}
.reluireCheckContentP{
text-align: left!important;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 207
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 208
echo " <script src=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 208, $this->source); })()), "request", [], "any", false, false, false, 208), "scheme", [], "any", false, false, false, 208) . "://") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 208, $this->source); })()), "request", [], "any", false, false, false, 208), "httpHost", [], "any", false, false, false, 208)), "html", null, true);
echo "/assets/pdf.js\"></script>
<script>
// Loaded via <script> tag, create shortcut to access PDF.js exports.
var pdfjsLib = window['pdfjs-dist/build/pdf'];
// The workerSrc property shall be specified.
pdfjsLib.GlobalWorkerOptions.workerSrc = \"";
// line 214
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 214, $this->source); })()), "request", [], "any", false, false, false, 214), "scheme", [], "any", false, false, false, 214) . "://") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 214, $this->source); })()), "request", [], "any", false, false, false, 214), "httpHost", [], "any", false, false, false, 214)), "html", null, true);
echo "/assets/pdf.worker.js\";
</script>
<script type=\"text/javascript\">
var nameFile = \"";
// line 217
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 217, $this->source); })())) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 217, $this->source); })()), "filePapier", [], "any", false, false, false, 217), "html", null, true);
}
echo "\";
var url = \"";
// line 218
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 218, $this->source); })())) {
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 218, $this->source); })()), "isTopImp", [], "any", false, false, false, 218)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("productPdf/" . twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 218, $this->source); })()), "filePapier", [], "any", false, false, false, 218))), "html", null, true);
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 218, $this->source); })()), "isModif", [], "any", false, false, false, 218)) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("modifPdf/" . twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 218, $this->source); })()), "filePapier", [], "any", false, false, false, 218))), "html", null, true);
echo " ";
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" . twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 218, $this->source); })()), "filePapier", [], "any", false, false, false, 218))), "html", null, true);
echo " ";
}
}
echo "\";
var token = \"";
// line 219
if ((isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 219, $this->source); })())) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["papierCourant"]) || array_key_exists("papierCourant", $context) ? $context["papierCourant"] : (function () { throw new RuntimeError('Variable "papierCourant" does not exist.', 219, $this->source); })()), "token", [], "any", false, false, false, 219), "html", null, true);
} else {
}
echo "\";
var editPspdfkit = \"";
// line 220
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 220, $this->source); })()), "request", [], "any", false, false, false, 220), "get", [0 => "editPspdfkit"], "method", false, false, false, 220), "html", null, true);
echo "\";
var cssPspdfkitSuppliment = \"";
// line 221
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 221, $this->source); })()), "request", [], "any", false, false, false, 221), "scheme", [], "any", false, false, false, 221) . "://") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 221, $this->source); })()), "request", [], "any", false, false, false, 221), "httpHost", [], "any", false, false, false, 221)), "html", null, true);
echo "/assets/pspdfkit_suppliment1.css\";
var souhaite_str = \"";
// line 222
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 222, $this->source); })()), "request", [], "any", false, false, false, 222), "get", [0 => "souhaite_str"], "method", false, false, false, 222), "html", null, true);
echo "\";
</script>
";
// line 224
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 225
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("uploadfileCustom");
echo "
";
// line 226
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("pdf_viewer_liseuse");
echo "
";
// line 227
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("block_option_liseuse");
echo "
<script src=\"";
// line 228
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/admin/liveIcon/productPdfLiseuse.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 229
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/dist2/pspdfkit.js"), "html", null, true);
echo "\"></script>
";
// line 230
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("pspdfkit_liseuse");
echo "
<script>
window.___gcfg = {
parsetags: 'explicit'
};
</script>
<script src=\"https://apis.google.com/js/platform.js\" async defer></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/liseuse-papier/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 492 => 230, 488 => 229, 484 => 228, 480 => 227, 476 => 226, 472 => 225, 468 => 224, 463 => 222, 459 => 221, 455 => 220, 448 => 219, 431 => 218, 425 => 217, 419 => 214, 409 => 208, 399 => 207, 343 => 160, 341 => 159, 291 => 111, 289 => 110, 267 => 93, 261 => 92, 247 => 81, 242 => 79, 228 => 70, 221 => 68, 211 => 63, 204 => 61, 194 => 56, 187 => 54, 177 => 47, 171 => 44, 164 => 40, 154 => 34, 151 => 33, 148 => 32, 145 => 31, 142 => 30, 139 => 29, 136 => 28, 127 => 24, 123 => 22, 121 => 21, 114 => 17, 106 => 12, 100 => 9, 97 => 8, 94 => 7, 91 => 6, 81 => 5, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front/layout.html.twig' %}
{% block googleTagManagerDataLayer %}
{% include 'google_tag.html.twig' with {'titlePage':'liseuse','categoryPage':'product-details','navigation_category1':'','navigation_category2':'','navigation_category3':'' } %}
{% endblock %}
{% block body %}
{% include 'front/header.html.twig' %}
{% set currentPath = path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) %}
<script>
var isMobile = \"{{ app.request.get('isMobile') }}\";
if(\$( window ).width() > 1100 ) {
if(isMobile == '1'){
window.location.replace(\"{{ currentPath }}?isMobile=0\");
}
}else {
if(isMobile != '1') {
window.location.replace(\"{{ currentPath }}?isMobile=1\");
}
}
</script>
{% if getDisponibiliteProductPapierPerCountrySession(constant('App\\\\Entity\\\\Product::PAPIER')) == false %}
<div class=\"mt-4 p-5\">
<div class=\"alert alert-danger\" role=\"alert\">
<p class=\"p-2\">{{ 'la liseuse est actuellement indisponible dans' | trans({}, \"productTranslate\") }} \"{{ getCountrySession() }}\"</p>
</div>
</div>
{% else %}
{% if app.request.get('isMobile') == '1' %}
{% include 'front/liseuse-papier/index-mobile.html.twig' %}
{% else %}
{% include 'front/liseuse-papier/index-desktop.html.twig' %}
{% endif %}
{% endif %}
<input type=\"hidden\" id=\"catLiseuseConfig\" value=\"{{ catLiseuseConfig() }}\">
<div class=\"modal fade\" id=\"contunueMesAchat\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<img src=\"{{ asset('/images/modalContinueAchatLiseuse.png') }}\">
</button>
</div>
<div class=\"modal-body contunueMesAchatBody\" style=\"padding-bottom: 5px;\">
<h2>{{ 'Finalisez votre commande' | trans({}, \"productTranslate\") }}</h2>
<div class=\"\">
<p>
{{ 'Souhaitez vous ajouter un de nos <span>300 produits</span> personnalisables <span>livrés le jour même</span> sur un créneau de <span>30 mn dans plus de 15 villes ?' | trans({}, \"productTranslate\") |raw }}</span>
</p>
</div>
</div>
<div class=\"modal-body contunueMesAchatHeader\" style=\"\">
<div class=\"row \">
<div class=\"col-4 col-sm-4 col-md-4\">
<a class=\"\" href=\"{% if papierCourant %}{{ papierCourant.product.lienBlocModalLiseuse1 }}{% endif %}\">
<div class=\"\" style=\"\">
<img src=\"{% if papierCourant %}{{ asset('/imageSite/'~papierCourant.product.imageBlocModalLiseuse1) }}{% endif %}\">
</div>
</a>
</div>
<div class=\"col-4 col-sm-4 col-md-4 \">
<a class=\"\" href=\"{% if papierCourant %}{{ papierCourant.product.lienBlocModalLiseuse2 }}{% endif %}\">
<div class=\"\" style=\"\">
<img src=\"{% if papierCourant %}{{ asset('/imageSite/'~papierCourant.product.imageBlocModalLiseuse2) }}{% endif %}\">
</div>
</a>
</div>
<div class=\"col-4 col-sm-4 col-md-4 \">
<a class=\"\" href=\"{% if papierCourant %}{{ papierCourant.product.lienBlocModalLiseuse3 }}{% endif %}\">
<div class=\"\" style=\"\">
<img src=\"{% if papierCourant %}{{ asset('/imageSite/'~papierCourant.product.imageBlocModalLiseuse3) }}{% endif %}\">
</div>
</a>
</div>
</div>
</div>
<div class=\"modal-body contunueMesAchatBody\" style=\"\">
<div class=\"\">
<div class=\"searchProductMenuLiseuseBloc\" style=\"position: relative;\" >
<input class=\"inputstyletopLiseuse\" type=\"text\" id=\"searchProductMenuLiseuse\" style=\"cursor: pointer;\" placeholder=\"{{ 'Trouvez votre produit livré'|trans|raw }}\">
<div class=\"close_result_head\" id=\"close_result_product\" style=\"cursor: pointer;position: absolute;right: 17px;top: 3px;display: none\">
<img src=\"{{ asset('images/bg_closeh.png') }}\">
</div>
</div>
<div class=\"collapse ipstresl \" id=\"collapseProductMenuLiseuse\" style=\"width: 94%;\">
<div class=\"divSearchProductMenu\">
<div id=\"divSearchProductMenuLiseuse\" style=\"min-height: 300px; display: none;max-height: 461px;overflow: auto;\">
</div>
</div>
</div>
<div class=\"btnModalAchatLiseuse\" style=\"\">
<a href=\"{{ path('besoin_produits') }}\" class=\"nav-link continueLinck1 btn btn-primary\">{{ 'Continuer mes achats' | trans({}, \"productTranslate\") }}</a>
<a href=\"{{ path('checkout') }}\" class=\"nav-link continueLinck2 btn btn-primary\">{{ 'Payer' | trans({}, \"productTranslate\") }}</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"pspdfkitLiseuse\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\" style=\"width: 100%!important;max-width: 100%!important;margin-top: 1vw !important;\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\" style=\"margin-top:-25px!important;\">
<div id=\"pspdfkit\" style=\"width: 100%; height: 720px;\"></div>
{% include 'front/liseuse-papier/menu_plus_pspdf.html.twig' %}
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"pspdfkitLiseuseSpinner\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" >
<div class=\"modal-content nb_des\">
<div class=\"modal-body\" style=\"margin-top: 0px!important;text-align: center;!important;\">
<span class='spinner-border'></span>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"pspdfkitLiseuseAction\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" style=\"\">
<div class=\"modal-content\">
<div class=\"modal-body pspdfkitLiseuseActionContent\" style=\"margin-top: 0px!important;text-align: center;!important;\">
<span class='spinner-border'></span>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"reluireCheckmodal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" style=\"\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" style=\"z-index: 9999;\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\" style=\"\">
<div id=\"reluireCheckContent\">
</div>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"modalLoginLiseuse\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" style=\"display: none;\" aria-hidden=\"true\">
<div class=\"modal-dialog \" role=\"document\" style=\"\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\" style=\"\">
<div id=\"modalLoginLiseuseContent\">
{% include 'front/liseuse-papier/login-modal-liseuse.html.twig' %}
<input type=\"hidden\" id=\"typeFunction\" value=\"\">
</div>
</div>
</div>
</div>
</div>
<style>
.ajax-file-upload{
display: none!important;
}
.ajax-file-upload-error{
margin-top:10px;
}
.ajax-file-upload-filename{
font-size: 11px!important;
margin-left: 4px!important;
margin-bottom : 0px!important;
width: 100%!important;
text-align: left;
}
.ajax-file-upload-progress{
width: 100%!important;
border-radius: 0px!important;
background-color: #eeeeee!important;
margin-left: 0px!important;
margin-top: 0px!important;
border: 0px!important;
font-size: 11px!important;
}
.ajax-file-upload-bar{
height: 13px!important;
background-color: #007bff!important;
}
.ajax-file-upload-statusbar{
border: 0 !important;
width: 100%!important;
margin: 0 !important;
padding: 5px 15px 5px 15px!important;
}
.progress{
height: 13px!important;
}
.reluireCheckContentP{
text-align: left!important;
}
</style>
{% endblock %}
{% block javascripts %}
<script src=\"{{ app.request.scheme ~'://' ~ app.request.httpHost}}/assets/pdf.js\"></script>
<script>
// Loaded via <script> tag, create shortcut to access PDF.js exports.
var pdfjsLib = window['pdfjs-dist/build/pdf'];
// The workerSrc property shall be specified.
pdfjsLib.GlobalWorkerOptions.workerSrc = \"{{ app.request.scheme ~'://' ~ app.request.httpHost}}/assets/pdf.worker.js\";
</script>
<script type=\"text/javascript\">
var nameFile = \"{% if papierCourant %}{{ papierCourant.filePapier }}{% endif %}\";
var url = \"{% if papierCourant %} {% if papierCourant.isTopImp %} {{ asset('productPdf/'~papierCourant.filePapier) }} {% elseif papierCourant.isModif %}{{ asset('modifPdf/'~papierCourant.filePapier) }} {% else %}{{ asset('uploads/'~papierCourant.filePapier) }} {% endif %}{% endif %}\";
var token = \"{% if papierCourant %}{{ papierCourant.token }}{% else %}{% endif %}\";
var editPspdfkit = \"{{ app.request.get('editPspdfkit') }}\";
var cssPspdfkitSuppliment = \"{{ app.request.scheme ~'://' ~ app.request.httpHost}}/assets/pspdfkit_suppliment1.css\";
var souhaite_str = \"{{ app.request.get('souhaite_str') }}\";
</script>
{{ parent() }}
{{ encore_entry_script_tags('uploadfileCustom') }}
{{ encore_entry_script_tags('pdf_viewer_liseuse') }}
{{ encore_entry_script_tags('block_option_liseuse') }}
<script src=\"{{ asset('assets/admin/liveIcon/productPdfLiseuse.js') }}\"></script>
<script src=\"{{ asset('assets/dist2/pspdfkit.js') }}\"></script>
{{ encore_entry_script_tags('pspdfkit_liseuse') }}
<script>
window.___gcfg = {
parsetags: 'explicit'
};
</script>
<script src=\"https://apis.google.com/js/platform.js\" async defer></script>
{% endblock %}
", "front/liseuse-papier/index.html.twig", "/home/preprodcopees/www/copees-sf/templates/front/liseuse-papier/index.html.twig");
}
}