{% 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 %}