var/cache/dev/twig/65/659855e7aa499a38b14031dd1b584a0c.php line 40
<?phpuse 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;/* base.html.twig */class __TwigTemplate_46b4763f2098506424e96e444f4f9464 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->parent = false;$this->blocks = ['title' => [$this, 'block_title'],'head' => [$this, 'block_head'],'stylesheet' => [$this, 'block_stylesheet'],'altri_nav' => [$this, 'block_altri_nav'],'body' => [$this, 'block_body'],'javascript' => [$this, 'block_javascript'],'footer' => [$this, 'block_footer'],];}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));// line 2echo "<!DOCTYPE html><html lang=\"";// line 4echo 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "getLocale", [], "method", false, false, false, 4), "html", null, true);echo "\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"author\" content=\"Fogazzi Mirko\" /><meta name=\"copyright\" content=\"Fogazzi Mirko\" />";// line 10echo twig_include($this->env, $context, "seo_metatag.html.twig");echo "";// line 12echo twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 12, $this->source); })()), "ritornaImpostazioneDaNome", ["HeaderGeneraleTuttePagine"], "method", false, false, false, 12);echo "";// line 13echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 13, $this->source); })()), "CaricaTraduzioniDaFamiglie", [["agenti_dialog_principale", "dialog_ricerca_cliente", "agenti_crea_offerta_da_carrello_dialog"], 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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "locale", [], "any", false, false, false, 13)], "method", false, false, false, 13), "html", null, true);echo "";// line 15echo twig_include($this->env, $context, "ZZ_front_end/stili_base.html.twig");echo "<title>";// line 17$this->displayBlock('title', $context, $blocks);echo "</title><link rel=\"stylesheet\" href=\"";// line 19echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/sm-core-css.css"), "html", null, true);echo "\"><link rel=\"stylesheet\" href=\"";// line 20echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/simple-sidebar.css"), "html", null, true);echo "\"><!-- Bootstrap core CSS --><link href=\"";// line 22echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/bootstrap.min.css"), "html", null, true);echo "\" rel=\"stylesheet\"><link href=\"//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css\" rel=\"stylesheet\"><link href=\"";// line 24echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/dropdown-css-style.css"), "html", null, true);echo "\" rel=\"stylesheet\">";// line 27echo "<link href=\"";// line 28echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/jquery-ui-1.12.0/jquery-ui.min.css"), "html", null, true);echo "\" rel=\"stylesheet\">";// line 30if ((((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || 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.', 30, $this->source); })()), "user", [], "any", false, false, false, 30)) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FORNITORE"))) {// line 31echo " ";// line 32echo " <link href=\"https://unpkg.com/tabulator-tables@5.2.3/dist/css/tabulator.min.css\" rel=\"stylesheet\"><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\" integrity=\"sha256-aa0xaJgmK/X74WM224KMQeNQC2xYKwlAt08oZqjeF0E=\" crossorigin=\"anonymous\" />";}// line 35echo "<!-- FONT AWSOME --><link href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\" rel=\"stylesheet\"><!-- SLICK CAROUSEL --><link rel=\"stylesheet\" type=\"text/css\" href=\"";// line 41echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/slick-1.8.1/slick/slick.css"), "html", null, true);echo "\"/><link rel=\"stylesheet\" type=\"text/css\" href=\"";// line 42echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/slick-1.8.1/slick/slick-theme.css"), "html", null, true);echo "\"/><!-- TINY SLIDER --><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/tiny-slider.css\"><!-- CORE NAV --><link rel=\"stylesheet\" type=\"text/css\" href=\"";// line 47echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/custom_mf_sidebar/mf_sidebar.css"), "html", null, true);echo "\" /><style type=\"text/css\">#modalZoomImg * {box-sizing: border-box;}div#modalDettaglioCliente.modal.fade.in{visibility: visible;}div#modalDettaglioCliente.modal.fade{display: block;visibility: hidden;}.tb-numeri-tranne-1 td:not(:first-child), .tb-numeri-tranne-1 th:not(:first-child){text-align: right;}.tb-numeri-tranne-2 td:not(:first-child):not(:nth-child(2)), .tb-numeri-tranne-1 th:not(:first-child):not(:nth-child(2)){text-align: right;}.bottone-risorse-articoli{position: absolute;border: solid 1px green;border-radius: 10px;padding: 5px;float: right;width: 40px;z-index: 99;cursor: pointer;background: white;top: 0px;right: 0px;height: 40px;}.bottone-risorse-articoli img{height: 100%;width: 100%;/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+0,0+100;White+to+Transparent */background: transparent;}.img-zoom-container {position: relative;}.centra-flex-tutto{display: flex;flex-direction: row;align-content: center;align-items: center;justify-content: center;}.img-zoom-lens {position: absolute;border: 1px solid #d4d4d4;/*set the size of the lens:*/width: 250px;height: 250px;}.img-zoom-result {border: 1px solid #d4d4d4;/*set the size of the result div:*/width: 300px;height: 300px;}";// line 118if ((twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 118, $this->source); })()), "ritornaImpostazioneDaNome", ["NascondiFrecceSuGiuInInputNumber"], "method", false, false, false, 118) == "1")) {// line 119echo " /* Chrome, Safari, Edge, Opera */input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {-webkit-appearance: none;margin: 0;}/* Firefox */input[type=number] {-moz-appearance: textfield;}";}// line 131echo " /* The snackbar - position it at the bottom and in the middle of the screen */#snackbar {visibility: hidden; /* Hidden by default. Visible on click */min-width: 350px; /* Set a default minimum width */margin-left: -125px; /* Divide value of min-width by 2 */background-color: #333; /* Black background color */color: #fff; /* White text color */text-align: center; /* Centered text */border-radius: 2px; /* Rounded borders */padding: 16px; /* Padding */position: fixed; /* Sit on top of the screen */z-index: 1; /* Add a z-index if needed */left: 50%; /* Center the snackbar */bottom: 80px; /* 30px from the bottom */font-size: 15pt;}.attiva-tiny-slider{display: none;}.attiva-slick{display: none;}#bodyTabellaRicercaCliente tr:hover{background-color: yellow;cursor: pointer;}.cercaCliente:hover{cursor: pointer;}.modal { overflow: auto !important; }/* Show the snackbar when clicking on a button (class added with JavaScript) */#snackbar.show {visibility: visible; /* Show the snackbar *//* Add animation: Take 0.5 seconds to fade in and out the snackbar.However, delay the fade out process for 2.5 seconds */-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;animation: fadein 0.5s, fadeout 0.5s 2.5s;}/* Animations to fade the snackbar in and out */@-webkit-keyframes fadein {from {bottom: 0; opacity: 0;}to {bottom: 80px; opacity: 1;}}@keyframes fadein {from {bottom: 0; opacity: 0;}to {bottom: 80px; opacity: 1;}}@-webkit-keyframes fadeout {from {bottom: 80px; opacity: 1;}to {bottom: 0; opacity: 0;}}@keyframes fadeout {from {bottom: 80px; opacity: 1;}to {bottom: 0; opacity: 0;}}</style>";// line 198$this->displayBlock('head', $context, $blocks);// line 199echo " ";$this->displayBlock('stylesheet', $context, $blocks);// line 200echo "";// line 201$this->displayBlock('altri_nav', $context, $blocks);// line 202echo "<!-- jQuery Core --><script type=\"text/javascript\" src=\"";// line 204echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/jquery-2.2.4.min.js"), "html", null, true);echo "\"></script><script type=\"text/javascript\" src=\"";// line 205echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/jquery-ui-1.12.0/jquery-ui.min.js"), "html", null, true);echo "\"></script><script type=\"text/javascript\" src=\"";// line 206echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/bootstrap.min.js"), "html", null, true);echo "\"></script>";// line 208echo "</head><body><div id=\"snackbar\"></div><div class=\"loading\" id=\"loadingMaster\">Loading…</div>";// line 215if ((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.', 215, $this->source); })()), "request", [], "any", false, false, false, 215), "get", ["_route"], "method", false, false, false, 215) == "admin_pagine_e_componenti_editor")) {// line 216echo " ";$context["mostraTopBar"] = 0;}// line 218echo "";// line 219if (((array_key_exists("mostraTopBar", $context) && ((isset($context["mostraTopBar"]) || array_key_exists("mostraTopBar", $context) ? $context["mostraTopBar"] : (function () { throw new RuntimeError('Variable "mostraTopBar" does not exist.', 219, $this->source); })()) == 1)) || !array_key_exists("mostraTopBar", $context))) {// line 220echo " ";echo twig_include($this->env, $context, "ZZ_front_end/top_bar/top_bar.html.twig");echo "";}// line 222echo "";// line 223if ((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.', 223, $this->source); })()), "request", [], "any", false, false, false, 223), "get", ["_route"], "method", false, false, false, 223) == "home_shop")) {// line 224echo " <div class=\"modal fade\" role=\"dialog\" tabindex=\"-1\" style=\"z-index: 999999;\" id=\"modal-cerca-filtro-avanzato-dialog\"><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\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">";// line 229echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 229, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_title", "top_bar"], "method", false, false, false, 229), "valoreUscita", [], "any", false, false, false, 229), "html", null, true);echo "</h4></div><div class=\"modal-body\"><form id=\"form-filtro-avanzato\"><div class=\"form-group\"><label for=\"filtro-avanzato-codice\">";// line 234echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 234, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_codice_label", "top_bar"], "method", false, false, false, 234), "valoreUscita", [], "any", false, false, false, 234), "html", null, true);echo "</label><input type=\"text\" class=\"form-control\" name=\"articolo.codice\" id=\"filtro-avanzato-codice\"></div><div class=\"form-group\"><label for=\"filtro-avanzato-nome\">";// line 238echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 238, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_descrizione_label", "top_bar"], "method", false, false, false, 238), "valoreUscita", [], "any", false, false, false, 238), "html", null, true);echo "</label><input type=\"text\" class=\"form-control\" name=\"articolo.nome\" id=\"filtro-avanzato-nome\"></div><div class=\"form-group\"><label for=\"filtro-avanzato-marca\">";// line 242echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 242, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_marca_label", "top_bar"], "method", false, false, false, 242), "valoreUscita", [], "any", false, false, false, 242), "html", null, true);echo "</label><input type=\"text\" class=\"form-control\" name=\"mappa.marca\" id=\"filtro-avanzato-marca\"></div><div class=\"checkbox\"><label><input type=\"checkbox\" name=\"filtro-avanzato-solo-disponibile\"> ";// line 247echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 247, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_mostra_solo_disponibili", "top_bar"], "method", false, false, false, 247), "valoreUscita", [], "any", false, false, false, 247), "html", null, true);echo "</label></div><div class=\"checkbox\"><label><input type=\"checkbox\" name=\"filtro-avanzato-cerca-solo-in-categorie-selezionate\"> ";// line 252echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 252, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_cerca_solo_in_albero_categorie_corrente", "top_bar"], "method", false, false, false, 252), "valoreUscita", [], "any", false, false, false, 252), "html", null, true);echo "</label></div></form></div><div class=\"modal-footer\"><button type=\"button\" onclick=\"ResetRicerca();\" class=\"btn btn-danger\" data-dismiss=\"modal\">";// line 258echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 258, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_reset_btn", "top_bar"], "method", false, false, false, 258), "valoreUscita", [], "any", false, false, false, 258), "html", null, true);echo "</button><button type=\"button\" onclick=\"\$('#form-filtro-avanzato').submit();\" class=\"btn btn-primary\" data-dismiss=\"modal\">";// line 259echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 259, $this->source); })()), "OttieniElementoDizionario", ["top_bar_filtro_avanzato_applica_btn", "top_bar"], "method", false, false, false, 259), "valoreUscita", [], "any", false, false, false, 259), "html", null, true);echo "</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->";}// line 265echo "<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalZoomImg\" style=\"z-index: 9999;\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-body\" style=\"overflow-y: auto;\"><div class=\"col-md-12 nascondiStampa\"><div class=\"img-zoom-container\"><div class=\"col-md-6 col-xs-12\"><img id=\"zoomImgImg\" src=\"\" style=\"max-height: 90vh; width: auto;\"></div><div class=\"col-md-6 col-xs-12\" style=\"max-height: 90vh;\"><div id=\"zoomImgResult\" class=\"img-zoom-result\" style=\"width: 100%; height: 90vh;\"></div></div></div></div></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Chiudi</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"risorseCatArtDialog\" style=\"z-index: 99999;\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">Risorse</h4></div><div class=\"modal-body\" id=\"risorseCatArtDialog-body\" style=\"overflow-y: auto;\"></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Chiudi</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->";// line 305if ((( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE"))) {// line 306echo "<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalDettaglioClienteLoggato\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\" id=\"modalTitleDettaglioClienteLoggato\"><button class=\"btn btn-danger\" style=\"margin-right: 10px;\" data-dismiss=\"modal\" aria-label=\"Close\">";// line 312echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 312, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_indietro_btn", "agenti_dialog_principale"], "method", false, false, false, 312), "valoreUscita", [], "any", false, false, false, 312), "html", null, true);echo "</button>";// line 313echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 313, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_dettaglio_cliente", "agenti_dialog_principale"], "method", false, false, false, 313), "valoreUscita", [], "any", false, false, false, 313), "html", null, true);echo " <span id=\"modalDettaglioClienteLoggato-title2\" style=\"color:red;\"></span></h4></div><div class=\"modal-body\" id=\"modalDettaglioClienteLoggato-body\" style=\"overflow-y: auto;\"></div></div></div></div>";}// line 322echo "";// line 324if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE"))) {// line 325echo "<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalDettaglioCliente\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\" id=\"modalTitleDettaglioCliente\"><button class=\"btn btn-danger\" style=\"margin-right: 10px;\" data-dismiss=\"modal\" aria-label=\"Close\">";// line 332echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 332, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_indietro_btn", "agenti_dialog_principale"], "method", false, false, false, 332), "valoreUscita", [], "any", false, false, false, 332), "html", null, true);echo "</button>";// line 333echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 333, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_dettaglio_cliente", "agenti_dialog_principale"], "method", false, false, false, 333), "valoreUscita", [], "any", false, false, false, 333), "html", null, true);echo " <span id=\"modalDettaglioCliente-title2\" style=\"color:red;\"></span><button href=\"\" style=\"float:right; margin-right: 20px;\" id=\"modalDettaglioClienteCreaOffertaDaCarrelloBtn\" data-toggle=\"modal\" data-target=\"#modalCreaOffertaDaCarrello\" class=\"btn btn-sm btn-primary\">";// line 334echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 334, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_crea_offerta_da_carrello_btn", "agenti_dialog_principale"], "method", false, false, false, 334), "valoreUscita", [], "any", false, false, false, 334), "html", null, true);echo "</button><button href=\"\" style=\"float: right; margin-right: 20px;\" id=\"modalDettaglioClienteSpostaCarrelloBtn\" class=\"btn btn-sm btn-warning\">";// line 335echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 335, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_sposta_carrello_btn", "agenti_dialog_principale"], "method", false, false, false, 335), "valoreUscita", [], "any", false, false, false, 335), "html", null, true);echo "</button>";// line 336$context["attivaTipoOrdine"] = twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 336, $this->source); })()), "ritornaImpostazioneDaNome", ["AbilitaTipoOrdine"], "method", false, false, false, 336);// line 337echo " <div class=\"form-inline\" style=\"float:right; margin-right:20px;";if (((isset($context["attivaTipoOrdine"]) || array_key_exists("attivaTipoOrdine", $context) ? $context["attivaTipoOrdine"] : (function () { throw new RuntimeError('Variable "attivaTipoOrdine" does not exist.', 337, $this->source); })()) != "1")) {echo "display:none;";}echo "\"><div class=\"form-group\"><label for=\"tipo-ordine-input\">";// line 339echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 339, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_tipo_ordine", "agenti_dialog_principale"], "method", false, false, false, 339), "valoreUscita", [], "any", false, false, false, 339), "html", null, true);echo "</label><select id=\"tipo-ordine-input\" class=\"form-control\" style=\"width:auto;\">";// line 341if (((isset($context["attivaTipoOrdine"]) || array_key_exists("attivaTipoOrdine", $context) ? $context["attivaTipoOrdine"] : (function () { throw new RuntimeError('Variable "attivaTipoOrdine" does not exist.', 341, $this->source); })()) == "1")) {// line 342echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["servizi"]) || array_key_exists("servizi", $context) ? $context["servizi"] : (function () { throw new RuntimeError('Variable "servizi" does not exist.', 342, $this->source); })()), "RitornaTipiOrdine", [], "method", false, false, false, 342));$context['loop'] = ['parent' => $context['_parent'],'index0' => 0,'index' => 1,'first' => true,];if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {$length = count($context['_seq']);$context['loop']['revindex0'] = $length - 1;$context['loop']['revindex'] = $length;$context['loop']['length'] = $length;$context['loop']['last'] = 1 === $length;}foreach ($context['_seq'] as $context["_key"] => $context["tipoOrdine"]) {// line 343echo " <option ";if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 343)) {echo " selected=\"selected\"";}echo " value=\"";echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["tipoOrdine"], "id", [], "any", true, true, false, 343)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["tipoOrdine"], "id", [], "any", false, false, false, 343), "")) : ("")), "html", null, true);echo "\">";echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["tipoOrdine"], "testoVisualizzato", [], "any", true, true, false, 343)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["tipoOrdine"], "testoVisualizzato", [], "any", false, false, false, 343), "")) : ("")), "html", null, true);echo "</option>";++$context['loop']['index0'];++$context['loop']['index'];$context['loop']['first'] = false;if (isset($context['loop']['length'])) {--$context['loop']['revindex0'];--$context['loop']['revindex'];$context['loop']['last'] = 0 === $context['loop']['revindex0'];}}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tipoOrdine'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 345echo " ";}// line 346echo " ";if (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["servizi"]) || array_key_exists("servizi", $context) ? $context["servizi"] : (function () { throw new RuntimeError('Variable "servizi" does not exist.', 346, $this->source); })()), "RitornaTipiOrdine", [], "method", false, false, false, 346)) <= 0) || ((isset($context["attivaTipoOrdine"]) || array_key_exists("attivaTipoOrdine", $context) ? $context["attivaTipoOrdine"] : (function () { throw new RuntimeError('Variable "attivaTipoOrdine" does not exist.', 346, $this->source); })()) == "0"))) {// line 347echo " <option value=\"\"></option>";}// line 349echo " </select></div></div></h4></div><div class=\"modal-body\" style=\"overflow-y: auto;\"><div class=\"col-md-12 nascondiStampa\"><div class=\"form-inline center\"><div class=\"input-group\" style=\"width: 100%;\"><span style=\"font-weight: bold;width: 10%;min-width: 200px;\" class=\"input-group-addon cercaCliente\" id=\"basic-addon1\">";// line 358echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 358, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_seleziona_cliente", "agenti_dialog_principale"], "method", false, false, false, 358), "valoreUscita", [], "any", false, false, false, 358), "html", null, true);echo "</span><input type=\"text\" style=\"width: 10%;min-width: 150px;\" class=\"form-control cercaCliente\" id=\"codiceClienteTxt\" readonly placeholder=\"";// line 359echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 359, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_cliente_codice", "agenti_dialog_principale"], "method", false, false, false, 359), "valoreUscita", [], "any", false, false, false, 359), "html", null, true);echo "\"><input type=\"text\" style=\"width: 60%;\" class=\"form-control cercaCliente\" id=\"ragioneSocialeText\" readonly placeholder=\"";// line 360echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 360, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_cliente_ragione_sociale", "agenti_dialog_principale"], "method", false, false, false, 360), "valoreUscita", [], "any", false, false, false, 360), "html", null, true);echo "\"><button class=\"btn btn-small btn-danger pulisci-selezione-cliente\" style=\"margin-left: 10px;\" onclick=\"PulisciSelezioneCliente();\"><i class=\"fa fa-trash\" aria-hidden=\"true\"></i></button><button class=\"btn btn-default\" data-valore=\"";// line 362if ((twig_get_attribute($this->env, $this->source, (isset($context["servizi"]) || array_key_exists("servizi", $context) ? $context["servizi"] : (function () { throw new RuntimeError('Variable "servizi" does not exist.', 362, $this->source); })()), "RitornaAltriDatiUtente", [], "method", false, false, false, 362) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["servizi"]) || array_key_exists("servizi", $context) ? $context["servizi"] : (function () { throw new RuntimeError('Variable "servizi" does not exist.', 362, $this->source); })()), "RitornaAltriDatiUtente", [], "method", false, false, false, 362), "nascondiPrezzi", [], "any", false, false, false, 362))) {echo "1";} else {echo "0";}echo "\" id=\"nascondiPrzBtnDettCliente\" onclick=\"VariaStatoBottoneNascondiPrezzi();\" style=\"margin-left: 10px;";if ((twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 362, $this->source); })()), "ritornaImpostazioneDaNome", ["MostraPulsanteNascondiPrezzi"], "method", false, false, false, 362) != "1")) {echo "display:none;";}echo "\">Nascondi prezzi</button></div></div><hr><div class=\"moda-dettaglio-cliente-body\"></div></div></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">";// line 372echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 372, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_chiudi_btn", "agenti_dialog_principale"], "method", false, false, false, 372), "valoreUscita", [], "any", false, false, false, 372), "html", null, true);echo "</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalCreaOffertaDaCarrello\"><div class=\"modal-dialog panel-warning\" role=\"document\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">";// line 384echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 384, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_crea_offerta_da_carrello_btn", "agenti_dialog_principale"], "method", false, false, false, 384), "valoreUscita", [], "any", false, false, false, 384), "html", null, true);echo "</h4></div><div class=\"modal-body\" id=\"modalCreaOffertaDaCarrelloBody\" style=\"overflow-y: auto;\"><form id=\"creaOffertaDaCarrelloForm\" action=\"";// line 388echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("offerte_crea_da_carrello");echo "\"><div class=\"form-group\"><label for=\"modal-crea-offerta-carrello-note\">";// line 390echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 390, $this->source); })()), "OttieniElementoDizionario", ["agenti_crea_offerta_da_carrello_dialog_note", "agenti_crea_offerta_da_carrello_dialog"], "method", false, false, false, 390), "valoreUscita", [], "any", false, false, false, 390), "html", null, true);echo "</label><textarea class=\"form-control\" id=\"modal-crea-offerta-carrello-note\" name=\"modal-crea-offerta-carrello-note\"></textarea></div><div class=\"form-group\"><label for=\"modal-crea-offerta-carrello-note-aziendali\">";// line 394echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 394, $this->source); })()), "OttieniElementoDizionario", ["agenti_crea_offerta_da_carrello_dialog_note_aziendali", "agenti_crea_offerta_da_carrello_dialog"], "method", false, false, false, 394), "valoreUscita", [], "any", false, false, false, 394), "html", null, true);echo "</label><textarea class=\"form-control\" id=\"modal-crea-offerta-carrello-note\" name=\"modal-crea-offerta-carrello-note-aziendali\"></textarea></div><div class=\"form-group\"><label for=\"modal-crea-offerta-carrello-riferimento-offerta\">";// line 398echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 398, $this->source); })()), "OttieniElementoDizionario", ["agenti_crea_offerta_da_carrello_dialog_note_riferimento_offerta", "agenti_crea_offerta_da_carrello_dialog"], "method", false, false, false, 398), "valoreUscita", [], "any", false, false, false, 398), "html", null, true);echo "</label><input type=\"text\" class=\"form-control\" id=\"modal-crea-offerta-carrello-riferimento-offerta\" name=\"modal-crea-offerta-carrello-riferimento-offerta\"></div><div class=\"checkbox\"><label><input type=\"checkbox\" id=\"modal-crea-offerta-carrello-invia-mail\" name=\"modal-crea-offerta-carrello-invia-mail\" checked=\"checked\">";// line 403echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 403, $this->source); })()), "OttieniElementoDizionario", ["agenti_crea_offerta_da_carrello_dialog_invia_offerta_mail_checkbox", "agenti_crea_offerta_da_carrello_dialog"], "method", false, false, false, 403), "valoreUscita", [], "any", false, false, false, 403), "html", null, true);echo "</label></div></form></div><div class=\"modal-footer\"><button href=\"\" style=\"float:right; margin-right: 20px;\" id=\"modalCreaOfferteDaCarrello_creaBtn\" class=\"btn btn-sm btn-success\">";// line 409echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 409, $this->source); })()), "OttieniElementoDizionario", ["agenti_dialog_principale_crea_offerta_da_carrello_btn", "agenti_dialog_principale"], "method", false, false, false, 409), "valoreUscita", [], "any", false, false, false, 409), "html", null, true);echo "</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->";}// line 416echo "<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalRichiestaPrezzo\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">";// line 423echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 423, $this->source); })()), "CaricaTraduzioniDaFamiglia", ["richiesta_prezzo", 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.', 423, $this->source); })()), "request", [], "any", false, false, false, 423), "locale", [], "any", false, false, false, 423), false], "method", false, false, false, 423), "html", null, true);echo "";// line 424echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 424, $this->source); })()), "OttieniElementoDizionario", ["richiesta_prezzo_title", "richiesta_prezzo"], "method", false, false, false, 424), "valoreUscita", [], "any", false, false, false, 424), "html", null, true);echo "</h4></div><div class=\"modal-body\" id=\"modalRichiestaPrezzoBody\" style=\"overflow-y: auto;\"></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalMagazziniSecondari\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">";// line 440echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 440, $this->source); })()), "CaricaTraduzioniDaFamiglia", ["modal_magazzini_secondari", 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.', 440, $this->source); })()), "request", [], "any", false, false, false, 440), "locale", [], "any", false, false, false, 440), false], "method", false, false, false, 440), "html", null, true);echo "";// line 441echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 441, $this->source); })()), "OttieniElementoDizionario", ["modal_magazzini_secondari_title_main_modal", "modal_magazzini_secondari"], "method", false, false, false, 441), "valoreUscita", [], "any", false, false, false, 441), "html", null, true);echo "</h4></div><div class=\"modal-body\" id=\"modalMagazziniSecondariBody\" style=\"overflow-y: auto;\"></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->";// line 451if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE"))) {// line 452echo "<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalCercaCliente\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\" id=\"modalTitle\">";// line 458echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 458, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_title", "dialog_ricerca_cliente"], "method", false, false, false, 458), "valoreUscita", [], "any", false, false, false, 458), "html", null, true);echo "</h4></div><div class=\"modal-body\" style=\"overflow-y: auto;\"><div class=\"col-md-12\"><div class=\"col-md-4\"><div class=\"form-inline center has-success\"><div class=\"input-group\" style=\"width: 100%;\"><span class=\"input-group-addon\" id=\"basic-addon1\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span></span><input type=\"text\" class=\"form-control\" id=\"ricercaClienteTxt\" placeholder=\"";// line 466echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 466, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_inizia_a_scrivere", "dialog_ricerca_cliente"], "method", false, false, false, 466), "valoreUscita", [], "any", false, false, false, 466), "html", null, true);echo "\"></div></div></div><div class=\"col-md-4\"><div class=\"form-inline center has-success\"><div class=\"input-group\" style=\"width: 100%;\"><span class=\"input-group-addon\" id=\"basic-addon1\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span></span><input type=\"text\" class=\"form-control\" id=\"ricercaCittaTxt\" placeholder=\"";// line 474echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 474, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_filtro_citta", "dialog_ricerca_cliente"], "method", false, false, false, 474), "valoreUscita", [], "any", false, false, false, 474), "html", null, true);echo "\"></div></div></div><div class=\"col-md-4\"><div class=\"form-inline center has-success\"><div class=\"input-group\" style=\"width: 100%;\"><span class=\"input-group-addon\" id=\"basic-addon1\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span></span><input type=\"text\" class=\"form-control\" id=\"ricercaProvinciaTxt\" placeholder=\"";// line 482echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 482, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_filtro_provincia", "dialog_ricerca_cliente"], "method", false, false, false, 482), "valoreUscita", [], "any", false, false, false, 482), "html", null, true);echo "\"></div></div></div></div><table class=\"table table-striped table-responsive\"><thead><tr><th>";// line 492echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 492, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col1_a", "dialog_ricerca_cliente"], "method", false, false, false, 492), "valoreUscita", [], "any", false, false, false, 492), "html", null, true);echo "<br>";// line 494echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 494, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col1_b", "dialog_ricerca_cliente"], "method", false, false, false, 494), "valoreUscita", [], "any", false, false, false, 494), "html", null, true);echo "<br>";// line 496echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 496, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col1_c", "dialog_ricerca_cliente"], "method", false, false, false, 496), "valoreUscita", [], "any", false, false, false, 496), "html", null, true);echo "</th><th>";// line 499echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 499, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col2_a", "dialog_ricerca_cliente"], "method", false, false, false, 499), "valoreUscita", [], "any", false, false, false, 499), "html", null, true);echo "<br>";// line 501echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 501, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col2_b", "dialog_ricerca_cliente"], "method", false, false, false, 501), "valoreUscita", [], "any", false, false, false, 501), "html", null, true);echo "<br>";// line 503echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 503, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col2_c", "dialog_ricerca_cliente"], "method", false, false, false, 503), "valoreUscita", [], "any", false, false, false, 503), "html", null, true);echo "</th><th>";// line 505echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 505, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col3_a", "dialog_ricerca_cliente"], "method", false, false, false, 505), "valoreUscita", [], "any", false, false, false, 505), "html", null, true);echo "<br>";// line 507echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 507, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col3_b", "dialog_ricerca_cliente"], "method", false, false, false, 507), "valoreUscita", [], "any", false, false, false, 507), "html", null, true);echo "<br>";// line 509echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 509, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_tab_col3_c", "dialog_ricerca_cliente"], "method", false, false, false, 509), "valoreUscita", [], "any", false, false, false, 509), "html", null, true);echo "</th></tr></thead><tbody id=\"bodyTabellaRicercaCliente\"></tbody></table></div><div class=\"modal-footer\"><button type=\"button\" id=\"chiudiModalCercaCliente\" class=\"btn btn-danger\" data-dismiss=\"modal\">";// line 520echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 520, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_chiudi_btn", "dialog_ricerca_cliente"], "method", false, false, false, 520), "valoreUscita", [], "any", false, false, false, 520), "html", null, true);echo "</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->";}// line 526echo "<div class=\"container-fluid contenitore_generale_body\" ><div class=\"row master-row-body\"><div class=\"col-md-12 master-col-body\">";// line 530$this->displayBlock('body', $context, $blocks);// line 531echo " </div></div></div><!-- /.container --><script src=\"https://www.google.com/recaptcha/api.js?render=";// line 535echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 535, $this->source); })()), "ritornaImpostazioneDaNome", ["ReCaptchaSiteKey"], "method", false, false, false, 535), "html", null, true);echo "\"></script><script>grecaptcha.ready(function() {grecaptcha.execute('";// line 538echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 538, $this->source); })()), "ritornaImpostazioneDaNome", ["ReCaptchaSiteKey"], "method", false, false, false, 538), "html", null, true);echo "', {action: 'homepage'}).then(function(token) {\$('.re-captcha-v3').val = token;});});</script><!-- FOSJsRoutingBundle --><script src=\"";// line 545echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.js"), "html", null, true);echo "\"></script><script src=\"";// line 546echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);echo "\"></script><!-- jQuery smartmenus plugin --><script src=\"";// line 549echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/jquery.smartmenus.min.js"), "html", null, true);echo "\"></script><script src=\"";// line 550echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/jquery.smartmenus.bootstrap.min.js"), "html", null, true);echo "\"></script><script src=\"";// line 552echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/jquery.stickytableheaders.min.js"), "html", null, true);echo "\" type=\"text/javascript\"></script><!-- SLICK CAROUSEL --><script type=\"text/javascript\" src=\"";// line 555echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/slick-1.8.1/slick/slick.min.js"), "html", null, true);echo "\"></script><!-- TINY SLIDER --><script src=\"https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js\"></script><!-- CORE NAV --><script type=\"text/javascript\" src=\"";// line 560echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("java_lib/custom_mf_sidebar/mf_sidebar.js"), "html", null, true);echo "\"></script>";// line 563echo "<script type=\"text/javascript\" src=\"https://unpkg.com/tabulator-tables@5.2.3/dist/js/tabulator.min.js\"></script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\" integrity=\"sha256-xKeoJ50pzbUGkpQxDYHD7o7hxe0LaOGeguUidbq6vis=\" crossorigin=\"anonymous\"></script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js\" integrity=\"sha256-Uv9BNBucvCPipKQ2NS9wYpJmi8DTOEfTA/nH2aoJALw=\" crossorigin=\"anonymous\"></script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/luxon/3.0.1/luxon.min.js\" integrity=\"sha512-6ZJuab/UnRq1muTChgrVxJhSgygmL2GMLVmSJN7pcBEqJ1dWPbqN9CiZ6U3HrcApTIJsLnMgXYBYgtVkJ8fWiw==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script><script type=\"text/javascript\">";// line 572echo " let idCarrelloAttuale = '';let stadioSostituzione = 0; ";// line 574echo " ";// line 575echo "var memorizzazioneAltriDatiUtente = {}var lens = null;var img = null;";// line 582echo " function imageZoom(imgID, resultID) {if (lens != null){lens.removeEventListener(\"mousemove\", moveLens);img.removeEventListener(\"mousemove\", moveLens);lens.removeEventListener(\"touchmove\", moveLens);img.removeEventListener(\"touchmove\", moveLens);lens.remove();lens = null;}var result, cx, cy;img = document.getElementById(imgID);result = document.getElementById(resultID);/* Create lens: */lens = document.createElement(\"DIV\");lens.setAttribute(\"class\", \"img-zoom-lens\");/* Insert lens: */img.parentElement.insertBefore(lens, img);/* Calculate the ratio between result DIV and lens: */cx = result.offsetWidth / lens.offsetWidth;cy = result.offsetHeight / lens.offsetHeight;/* Set background properties for the result DIV */result.style.backgroundImage = \"url('\" + img.src + \"')\";result.style.backgroundSize = (img.width * cx) + \"px \" + (img.height * cy) + \"px\";/* Execute a function when someone moves the cursor over the image, or the lens: */lens.addEventListener(\"mousemove\", moveLens);img.addEventListener(\"mousemove\", moveLens);/* And also for touch screens: */lens.addEventListener(\"touchmove\", moveLens);img.addEventListener(\"touchmove\", moveLens);function moveLens(e) {var pos, x, y;/* Prevent any other actions that may occur when moving over the image */e.preventDefault();/* Get the cursor's x and y positions: */pos = getCursorPos(e);/* Calculate the position of the lens: */x = pos.x - (lens.offsetWidth / 2);y = pos.y - (lens.offsetHeight / 2);/* Prevent the lens from being positioned outside the image: */if (x > img.width - lens.offsetWidth) {x = img.width - lens.offsetWidth;}if (x < 0) {x = 0;}if (y > img.height - lens.offsetHeight) {y = img.height - lens.offsetHeight;}if (y < 0) {y = 0;}/* Set the position of the lens: */lens.style.left = x + \"px\";lens.style.top = y + \"px\";/* Display what the lens \"sees\": */result.style.backgroundPosition = \"-\" + (x * cx) + \"px -\" + (y * cy) + \"px\";}function getCursorPos(e) {var a, x = 0, y = 0;e = e || window.event;/* Get the x and y positions of the image: */a = img.getBoundingClientRect();/* Calculate the cursor's x and y coordinates, relative to the image: */x = e.pageX - a.left;y = e.pageY - a.top;/* Consider any page scrolling: */x = x - window.pageXOffset;y = y - window.pageYOffset;return {x : x, y : y};}}var randomRgbColor = function() {var r = Math.floor(Math.random() * 255);var g = Math.floor(Math.random() * 255);var b = Math.floor(Math.random() * 255);return \"rgb(\" + r + \",\" + g + \",\" + b + \")\";}function toastMessage(messaggio, rosso = false) {// Get the snackbar DIVvar x = document.getElementById(\"snackbar\");\$(x).text(messaggio);if (rosso){\$(x).css('background-color', 'red');\$(x).css('color', 'black');}else{\$(x).css('background-color', 'black');\$(x).css('color', 'white');}// Add the \"show\" class to DIVx.className = \"show\";// After 3 seconds, remove the show class from DIVsetTimeout(function(){ x.className = x.className.replace(\"show\", \"\"); }, 3000);}function ApriModalRichiestaPrezzo(idMappa){\$('#loadingMaster').show();\$.ajax({dataType: 'html',url: Routing.generate('richiesta_prezzo_modal', {'idMappa' : (idMappa) }),async: true, //you won't need that if nothing in your following code is dependend of the resultsuccess: function (response) {\$('#modalRichiestaPrezzoBody').html(response);\$('#modalRichiestaPrezzo').modal('toggle');\$('#loadingMaster').hide();},error: function(XMLHttpRequest, textStatus, errorThrown) {\$('#loadingMaster').hide();alert(\"Status: \" + textStatus); alert(\"Error: \" + errorThrown);}});}function ApriModalMagazziniSecondari(idMappa, qta){\$('#loadingMaster').show();\$.ajax({dataType: 'html',url: Routing.generate('magazzini_secondari_modal', {'idMappa' : (idMappa), 'qta' : (qta) }),async: true, //you won't need that if nothing in your following code is dependend of the resultsuccess: function (response) {\$('#modalMagazziniSecondariBody').html(response);\$('#modalMagazziniSecondari').modal('toggle');\$('#loadingMaster').hide();},error: function(XMLHttpRequest, textStatus, errorThrown) {\$('#loadingMaster').hide();alert(\"Status: \" + textStatus); alert(\"Error: \" + errorThrown);}});}function CountArticoliCarrello(){\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('carrello_conta_articoli'),async: true //you won't need that if nothing in your following code is dependend of the result}).done(function (response) {let js = JSON.parse(response);idCarrelloAttuale = js.idCarrello;if(idCarrelloAttuale != ''){\$('#modalDettaglioClienteSpostaCarrelloBtn').show();}else{\$('#modalDettaglioClienteSpostaCarrelloBtn').hide();}if (js.count == '0')\$('#badgeArticoliCarello').html(\" \");else\$('#badgeArticoliCarello').html(js.count);})DettaglioCarrelloJson();}function DettaglioCarrelloJson(){\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('carrello_dettagli_json'),async: true //you won't need that if nothing in your following code is dependend of the result}).done(function (response) {let js = JSON.parse(response);\$(\"#badgeTotaleImponibileCarrello\").html(\" - € \" + js.imponibile)})}";// line 746if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE"))) {// line 747echo "function CambioTabRisorseCategorieSelect(altezza=350) {let categoriaSelezionata = \$('#tab-risorse-categorie-select').find('option:selected').val();\$.ajax({type: \"POST\",dataType: 'json',data: {'tab': 'dati_da_categoria', 'categoria': (categoriaSelezionata)},async: true,url: Routing.generate('agente_dettaglio_carica_tab_anagrafica', {idAnagrafica: \$(\"#id-anagrafica-da-utilizzare\").val()}),success: function (response) {var tableRisorseAnag = new Tabulator(\"#tabella-risorse\", {height: (altezza + \"px\"),data:response.data, //load row data from arraylayout:\"fitDataFill\", //fit columns to width of tableresponsiveLayout:\"collapse\", //hide columns that dont fit on the tablecolumns: response.colonne,});tableRisorseAnag.on(\"rowClick\", function(e, row){//e - the click event object//row - row componentvar valore = row.getCell('idRisorsa').getValue();var url = Routing.generate('agente_recupera_risorsa_anagrafica') + '?idRisorsa=' + valore;var win = window.open(url, '_blank');win.focus();});if('sorting' in response){let sort = [];for (const [key, value] of Object.entries(response.sorting)) {//value => {'field' => '', 'direction' => ''}sort.push({'column': value.field, 'dir': value.direction});}if(sort.length > 0){tableRisorseAnag.setSort(sort);}}}});}";} else {// line 789echo "function CambioTabRisorseCategorieSelect() {let categoriaSelezionata = \$('#tab-risorse-categorie-select').find('option:selected').val();\$.ajax({type: \"POST\",dataType: 'json',data: {'categoria': (categoriaSelezionata)},async: true,url: Routing.generate('storico_carica_risorse_anagrafiche'),success: function (response) {var tableRisorseAnag = new Tabulator(\"#tabella-risorse\", {height: \"350px\",data:response.data, //load row data from arraylayout:\"fitDataFill\", //fit columns to width of tableresponsiveLayout:\"collapse\", //hide columns that dont fit on the tablecolumns: response.colonne,});tableRisorseAnag.on(\"rowClick\", function(e, row){//e - the click event object//row - row componentvar valore = row.getCell('idRisorsa').getValue();var url = Routing.generate('recupera_risorsa_anagrafica') + '?idRisorsa=' + valore;var win = window.open(url, '_blank');win.focus();});}});}";}// line 820echo "function ResetRicercaFiltroAvanzato(){\$(\"#cerca-filtro-btn\").removeAttr(\"style\")filtroAvanzato = \"\";document.getElementById('form-filtro-avanzato').reset();}function ResetRicerca(){\$(\"#ricercaVeloceTxt\").val(\"\");}";// line 831if ( !(($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 832echo "function ApriDettaglioClienteLoggato(){\$('#loadingMaster').show();\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('utente_dettaglio_anagrafica'),async: true,success: function (response) {\$('#loadingMaster').hide();\$('#modalDettaglioClienteLoggato-body').html(response);\$(\"#modalDettaglioClienteLoggato\").modal('toggle');},error: function (xhr, ajaxOptions, thrownError) {\$('#loadingMaster').hide();alert(xhr.status);alert(thrownError);}});}";}// line 853echo "";// line 854if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 855echo "function ApriDettaglioClienteDialog(){aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;\$(\".pulisci-selezione-cliente\").hide();if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);\$(\".pulisci-selezione-cliente\").show();\$(\"#codiceClienteTxt\").val(json.codice);\$(\"#ragioneSocialeText\").val(json.ragioneSociale);let tipoOrdine = json.hasOwnProperty(\"tipoOrdine\") ? json.tipoOrdine : '';\$(\"#tipo-ordine-input > option\").each(function() {if(\$(this).val() ==tipoOrdine){\$(this).attr(\"selected\", \"selected\");} else {\$(this).removeAttr(\"selected\");}});\$('#navbar-dettaglio-cliente').text(json.codice + ' - ' + json.ragioneSociale);\$('#selezionaVariantiModalCliente').text('Cliente: ' + json.codice + ' - ' + json.ragioneSociale);memorizzazioneAltriDatiUtente = json;CaricaDettaglioCliente(json.id);}});AggiornaStatoSelezioneCliente();\$(\"#modalDettaglioCliente\").modal('show');}function SpostaCarrello(idAnagraficaDestinazione){stadioSostituzione = 0;\$('#loadingMaster').show();\$.ajax({type: \"POST\",dataType: 'json',url: Routing.generate('agente_sposta_carrello', {idCarrelloOrigine: (idCarrelloAttuale),idAnagraficaDestinazione: (idAnagraficaDestinazione)}),async: true,success: function (response) {\$('#loadingMaster').hide();let js = JSON.parse(response);if(js.successo == 'SI'){toastMessage(js.messaggio);CountArticoliCarrello();}else{toastMessage(js.messaggio, true);}},error: function(XMLHttpRequest, textStatus, errorThrown) {\$('#loadingMaster').hide();alert(\"Status: \" + textStatus); alert(\"Error: \" + errorThrown);}});}function CaricaTabellaGeneraleClienti(rigaInizio) {var str_ric = \$(\"#ricercaClienteTxt\").val();var citta = \$(\"#ricercaCittaTxt\").val();var provincia = \$(\"#ricercaProvinciaTxt\").val();\$.ajax({type: \"POST\",dataType: 'html',data: {\"data\": {'ricerca': str_ric,'citta' : citta,'provincia' : provincia}},url: Routing.generate('agente_lista_clienti_ricerca', {rigaInzio: rigaInizio}),async: true,success: function (response) {\$('#bodyTabellaRicercaCliente').html(response);},error: function (xhr, ajaxOptions, thrownError) {alert(xhr.status);alert(thrownError);}});}function CaricaDettaglioCliente(id) {\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('agente_dettaglio_anagrafica', {id: (id), soloDati: 1}),async: true,success: function (response) {\$('.moda-dettaglio-cliente-body').html(response);\$('a[data-toggle=\"tab\"]').on('shown.bs.tab', function (e) {let tabAperto = e.target; // newly activated tablet identificativo = tabAperto.hash.substring(1);let contenitore = \$('#' + identificativo);if(identificativo != 'tab-home') {\$(contenitore).html('');\$.ajax({type: \"POST\",dataType: 'html',data: {'tab': (identificativo)},async: true,url: Routing.generate('agente_dettaglio_carica_tab_anagrafica', {idAnagrafica: id}),success: function (response) {\$(contenitore).html(response);},error: function (xhr, ajaxOptions, thrownError) {alert(xhr.status);alert(thrownError);}});}});}});}function VerificaStileBottoneNascondiPrezzi(){if (\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\") == '0'){\$(\"#nascondiPrzBtnDettCliente\").css(\"background-color\", \"#fff\");}else{\$(\"#nascondiPrzBtnDettCliente\").css(\"background-color\", \"yellow\");}}function VariaStatoBottoneNascondiPrezzi(){if (\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\") == '0'){\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\", '1')VerificaStileBottoneNascondiPrezzi();}else{\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\", '0')VerificaStileBottoneNascondiPrezzi();}let datiCliente = {'codice' : memorizzazioneAltriDatiUtente.codice,'ragioneSociale': memorizzazioneAltriDatiUtente.ragioneSociale,'id' : memorizzazioneAltriDatiUtente.id,'tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {memorizzazioneAltriDatiUtente = datiCliente;});}function PulisciSelezioneCliente(dati){aggiornaVisualizzaAltriDatiUtente('E', '', function (response) {if(response.esito == 'OK') {AggiornaStatoSelezioneCliente();\$(\"#codiceClienteTxt\").val(\"\");\$(\"#ragioneSocialeText\").val(\"\");CountArticoliCarrello();memorizzazioneAltriDatiUtente = {}\$('.moda-dettaglio-cliente-body').html(\"\");}else{alert('";// line 1017echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 1017, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_errore_pulisci_cliente", "dialog_ricerca_cliente"], "method", false, false, false, 1017), "valoreUscita", [], "any", false, false, false, 1017), "html", null, true);echo "');}});}function AggiornaStatoSelezioneCliente() {aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cck = response;if (cck != \"\" && cck && cck.length > 0) {\$(\".pulisci-selezione-cliente\").show();\$(\".top-bar-seleziona-cliente\").css(\"background-color\", \"yellow\");memorizzazioneAltriDatiUtente = JSON.parse(cck);} else {\$(\".pulisci-selezione-cliente\").hide();\$(\".top-bar-seleziona-cliente\").css(\"background-color\", \"transparent\");\$('#navbar-dettaglio-cliente').text(\"\");\$('#selezionaVariantiModalCliente').text('');}});}";}// line 1037echo "function aggiornaVisualizzaAltriDatiUtente(operazione, valore, callback = null){\$.ajax({type: \"POST\",dataType: 'json',data: {'valore' : (valore)},async: true,url: Routing.generate(";// line 1044if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE")) {echo "'agente_altro_dato'";} else {echo "'utente_altro_dato'";}echo ", {operazione: (operazione)}),success: function (response){memorizzazioneAltriDatiUtente = valore;callback(response);},error: function (xhr, ajaxOptions, thrownError) {alert(xhr.status);alert(thrownError);}});}function adattaContenutoABarraSuperiore(){\$(\".contenitore_generale_body\").css(\"padding-top\", \$(\".navbar-fixed-top\").height() + \"px\")\$(\".nav-side-menu\").css(\"padding-top\", \$(\".navbar-fixed-top\").height() + \"px\")}\$(document).ready(function () {\$(window).resize(function() {adattaContenutoABarraSuperiore();});\$(document).on(\"click\", \".attiva-img-zoom\", function (event){event.stopImmediatePropagation();event.stopPropagation();\$(\"#zoomImgImg\").attr(\"src\", \$(this).attr(\"src\"));\$(\"#modalZoomImg\").modal('show');});\$('#modalZoomImg').on(\"shown.bs.modal\", function (){imageZoom(\"zoomImgImg\", \"zoomImgResult\");});\$('.attiva-slick').on('init', function(slick) {\$('.attiva-slick').fadeIn(3000);}).slick();\$('.attiva-tiny-slider').each(function (index, item) {let arrConfig = \$(item).data('configurazione');tns(arrConfig);\$(item).css({ display: \"block\" });});\$('.form-ordinazione-articolo').on(\"submit\", function (e) {let disponibilita = \$(this).find('input[name=\"disponibilita\"]').val();let disponibilitaMagSecondari = \$(this).find('input[name=\"disponibilita-mag-secondari\"]').val();if(disponibilita && disponibilita <= 0 ) {if(disponibilitaMagSecondari > 0) {e.preventDefault();ApriModalMagazziniSecondari(\$(this).find('input[name=\"id-mappa\"]').val(), \$(this).find('input[name=\"qta\"]').val());}}});\$('[data-toggle=\"popover\"]').popover();\$(\"#set_min_width\").css(\"min-width\", \$(window).width() / 2);\$(\"#form_news\").mouseleave(function () {\$(\"#set_min_width\").css(\"display\", \"none\");});\$(\"#set_min_width\").mouseenter(function () {\$(\"#set_min_width\").css(\"display\", \"inline-block\");});\$(\"#set_min_width\").mouseleave(function () {\$(\"#set_min_width\").css(\"display\", \"none\");});\$('#cerca-btn-top').on('click', function () {ResetRicercaFiltroAvanzato();RicercaVeloce(\$(\"#ricercaVeloceTxt\").val());});\$(\"#ricercaVeloceTxt\").on(\"keypress\", function(e) {if(e.which == 13) {ResetRicercaFiltroAvanzato();RicercaVeloce(\$(\"#ricercaVeloceTxt\").val());}});var errori_validazione = [";// line 1132if (array_key_exists("errori_validazione", $context)) {// line 1133echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["errori_validazione"]) || array_key_exists("errori_validazione", $context) ? $context["errori_validazione"] : (function () { throw new RuntimeError('Variable "errori_validazione" does not exist.', 1133, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["err"]) {// line 1134echo " \"";echo twig_escape_filter($this->env, $context["err"], "html", null, true);echo "\",";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['err'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 1136echo " ";}// line 1137echo " ];\$.each(errori_validazione, function (item) {\$(\"#form_\" + errori_validazione[item]).addClass(\"dato-invalido\");});CountArticoliCarrello();adattaContenutoABarraSuperiore();";// line 1146if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1147echo " \$(\"#ricercaClienteTxt, #ricercaCittaTxt, #ricercaProvinciaTxt\").on(\"change paste keyup\", function () {CaricaTabellaGeneraleClienti(\$(\"#inizioRiga\").data('valore'));});\$(\".cercaCliente\").on(\"focus, click\", function () {stadioSostituzione = 0;\$(\"#modalCercaCliente\").modal('show');});\$(\"#tipo-ordine-input\").on(\"change\", function (){aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);let datiCliente = {'codice' : json.codice,'ragioneSociale': json.ragioneSociale,'id' : json.id,'tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};";// line 1169if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1170echo " VerificaStileBottoneNascondiPrezzi();";}// line 1172echo "aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {CountArticoliCarrello();location.reload(); //Ricarico la pagina});}});});\$(\"#bodyTabellaRicercaCliente\").on(\"click\", \"tr\", function () {\$(\"#codiceClienteTxt\").val(\$(this).data(\"codice\"));\$(\"#ragioneSocialeText\").val(\$(this).data(\"ragione-sociale\"));let datiCliente = {'codice' : \$(this).data(\"codice\"),'ragioneSociale': \$(this).data(\"ragione-sociale\"),'id' : \$(this).data(\"identificativo\"),'tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};\$('#navbar-dettaglio-cliente').text(datiCliente.codice + ' - ' + datiCliente.ragioneSociale);\$('#selezionaVariantiModalCliente').text('Cliente: ' + datiCliente.codice + ' - ' + datiCliente.ragioneSociale);\$(\"#modalCercaCliente\").modal('toggle');aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {AggiornaStatoSelezioneCliente();CountArticoliCarrello();CaricaDettaglioCliente(datiCliente.id);";// line 1199if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1200echo " VerificaStileBottoneNascondiPrezzi();";}// line 1202echo " });if(stadioSostituzione == 1){if(confirm('";// line 1205echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 1205, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_conferma_spostamento_carrello", "dialog_ricerca_cliente"], "method", false, false, false, 1205), "valoreUscita", [], "any", false, false, false, 1205), "html", null, true);echo "')) {SpostaCarrello(\$(this).data(\"identificativo\"));}}});\$('#modalDettaglioClienteSpostaCarrelloBtn').on('click', function (event) {if(stadioSostituzione == 0){event.preventDefault();event.stopPropagation();stadioSostituzione = 1;\$(\"#modalCercaCliente\").modal('show');}});\$('#modalCreaOfferteDaCarrello_creaBtn').on(\"click\", function (event) {if(confirm(\"";// line 1221echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 1221, $this->source); })()), "OttieniElementoDizionario", ["dialog_ricerca_cliente_conferma_generazione_offerta", "dialog_ricerca_cliente"], "method", false, false, false, 1221), "valoreUscita", [], "any", false, false, false, 1221), "html", null, true);echo "\")){\$(\"#creaOffertaDaCarrelloForm\").submit();}});aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;\$(\".pulisci-selezione-cliente\").hide();if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);\$(\".pulisci-selezione-cliente\").show();\$(\"#codiceClienteTxt\").val(json.codice);\$(\"#ragioneSocialeText\").val(json.ragioneSociale);\$(\"#nascondiPrzBtnDettCliente\").data('valore', json.nascondiPrezzi)let tipoOrdine = json.hasOwnProperty(\"tipoOrdine\") ? json.tipoOrdine : '';\$(\"#tipo-ordine-input > option\").each(function() {if(\$(this).val() ==tipoOrdine){\$(this).attr(\"selected\", \"selected\");}else{\$(this).removeAttr(\"selected\");}});\$('#navbar-dettaglio-cliente').text(json.codice + ' - ' + json.ragioneSociale);\$('#selezionaVariantiModalCliente').text('Cliente: ' + json.codice + ' - ' + json.ragioneSociale);memorizzazioneAltriDatiUtente = json;";// line 1245if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1246echo " VerificaStileBottoneNascondiPrezzi();";}// line 1248echo " CaricaQuadratiAlbero(\"\");}});AggiornaStatoSelezioneCliente();";// line 1252if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1253echo " VerificaStileBottoneNascondiPrezzi();";}// line 1255echo " CaricaTabellaGeneraleClienti(0);";// line 1258echo " ";} elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {// line 1259echo "aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;\$(\".pulisci-selezione-cliente\").hide();if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);\$(\".pulisci-selezione-cliente\").show();\$(\"#codiceClienteTxt\").val(json.codice);\$(\"#ragioneSocialeText\").val(json.ragioneSociale);let tipoOrdine = json.hasOwnProperty(\"tipoOrdine\") ? json.tipoOrdine : '';\$(\"#tipo-ordine-input > option\").each(function() {if(\$(this).val() ==tipoOrdine){\$(this).attr(\"selected\", \"selected\");}else{\$(this).removeAttr(\"selected\");}});";// line 1276if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1277echo " \$('#navbar-dettaglio-cliente').text(json.codice + ' - ' + json.ragioneSociale);";}// line 1279echo " \$('#selezionaVariantiModalCliente').text('Cliente: ' + json.codice + ' - ' + json.ragioneSociale);\$(\"#nascondiPrzBtnDettCliente\").data('valore', json.nascondiPrezzi)memorizzazioneAltriDatiUtente = json;";// line 1282if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1283echo " VerificaStileBottoneNascondiPrezzi();";}// line 1285echo " CaricaQuadratiAlbero(\"\");}});\$(\"#tipo-ordine-input\").on(\"change\", function (){aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let datiCliente = {'codice' : '','ragioneSociale': '','id' : '','tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};";// line 1298if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COMMERCIALE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AGENTE"))) {// line 1299echo " VerificaStileBottoneNascondiPrezzi();";}// line 1301echo "aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {CountArticoliCarrello();location.reload(); //Ricarico la pagina});});});";}// line 1310echo "";// line 1311$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(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.', 1311, $this->source); })()), "session", [], "any", false, false, false, 1311), "flashbag", [], "any", false, false, false, 1311), "get", ["notice"], "method", false, false, false, 1311));foreach ($context['_seq'] as $context["_key"] => $context["flash_message"]) {// line 1312echo " toastMessage(\"";echo twig_escape_filter($this->env, $context["flash_message"], "html", null, true);echo "\");";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash_message'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 1314echo "";// line 1315$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(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.', 1315, $this->source); })()), "session", [], "any", false, false, false, 1315), "flashbag", [], "any", false, false, false, 1315), "get", ["error"], "method", false, false, false, 1315));foreach ($context['_seq'] as $context["_key"] => $context["flash_message"]) {// line 1316echo " toastMessage(\"";echo twig_escape_filter($this->env, $context["flash_message"], "html", null, true);echo "\", true);";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash_message'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 1318echo " });</script>";// line 1322$this->displayBlock('javascript', $context, $blocks);// line 1323echo "<div class=\"pushContent\"></div></body>";// line 1328if ((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.', 1328, $this->source); })()), "request", [], "any", false, false, false, 1328), "get", ["_route"], "method", false, false, false, 1328) != "admin_pagine_e_componenti_editor")) {// line 1329echo " ";if ((twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 1329, $this->source); })()), "ritornaImpostazioneDaNome", ["MostraFooterSviluppatoDa"], "method", false, false, false, 1329) == "1")) {// line 1330echo " <footer class=\"navbar navbar-default navbar-fixed-bottom\"><div style=\"margin-top: 15px;\" class=\"container\"><span style=\"vertical-align: middle;\"><a href=\"http://www.fogazzimirko.it\">Sviluppato da Fogazzi Mirko © ";// line 1332echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);$this->displayBlock('footer', $context, $blocks);echo "</a></span></div></footer>";}}// line 1337echo "</html>";$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 17public function block_title($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));echo twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 17, $this->source); })()), "ritornaImpostazioneDaNome", ["TitleGenerico"], "method", false, false, false, 17);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 198public function block_head($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 199public function block_stylesheet($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 201public function block_altri_nav($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "altri_nav"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "altri_nav"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 530public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 1322public function block_javascript($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 1332public function block_footer($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "base.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 1972 => 1332, 1954 => 1322, 1936 => 530, 1918 => 201, 1900 => 199, 1882 => 198, 1863 => 17, 1851 => 1337, 1842 => 1332, 1838 => 1330, 1835 => 1329, 1833 => 1328, 1826 => 1323, 1824 => 1322, 1818 => 1318, 1809 => 1316, 1805 => 1315, 1802 => 1314, 1793 => 1312, 1789 => 1311, 1786 => 1310, 1775 => 1301, 1771 => 1299, 1769 => 1298, 1754 => 1285, 1750 => 1283, 1748 => 1282, 1743 => 1279, 1739 => 1277, 1737 => 1276, 1718 => 1259, 1715 => 1258, 1711 => 1255, 1707 => 1253, 1705 => 1252, 1699 => 1248, 1695 => 1246, 1693 => 1245, 1666 => 1221, 1647 => 1205, 1642 => 1202, 1638 => 1200, 1636 => 1199, 1607 => 1172, 1603 => 1170, 1601 => 1169, 1577 => 1147, 1575 => 1146, 1564 => 1137, 1561 => 1136, 1552 => 1134, 1547 => 1133, 1545 => 1132, 1450 => 1044, 1441 => 1037, 1418 => 1017, 1254 => 855, 1252 => 854, 1249 => 853, 1226 => 832, 1224 => 831, 1211 => 820, 1178 => 789, 1134 => 747, 1132 => 746, 966 => 582, 958 => 575, 956 => 574, 953 => 572, 943 => 563, 938 => 560, 930 => 555, 924 => 552, 919 => 550, 915 => 549, 909 => 546, 905 => 545, 895 => 538, 889 => 535, 883 => 531, 881 => 530, 875 => 526, 866 => 520, 852 => 509, 847 => 507, 842 => 505, 837 => 503, 832 => 501, 827 => 499, 821 => 496, 816 => 494, 811 => 492, 798 => 482, 787 => 474, 776 => 466, 765 => 458, 757 => 452, 755 => 451, 742 => 441, 738 => 440, 719 => 424, 715 => 423, 706 => 416, 696 => 409, 687 => 403, 679 => 398, 672 => 394, 665 => 390, 660 => 388, 653 => 384, 638 => 372, 617 => 362, 612 => 360, 608 => 359, 604 => 358, 593 => 349, 589 => 347, 586 => 346, 583 => 345, 560 => 343, 542 => 342, 540 => 341, 535 => 339, 527 => 337, 525 => 336, 521 => 335, 517 => 334, 513 => 333, 509 => 332, 500 => 325, 498 => 324, 494 => 322, 482 => 313, 478 => 312, 470 => 306, 468 => 305, 426 => 265, 417 => 259, 413 => 258, 404 => 252, 396 => 247, 388 => 242, 381 => 238, 374 => 234, 366 => 229, 359 => 224, 357 => 223, 354 => 222, 348 => 220, 346 => 219, 343 => 218, 339 => 216, 337 => 215, 328 => 208, 324 => 206, 320 => 205, 316 => 204, 312 => 202, 310 => 201, 307 => 200, 304 => 199, 302 => 198, 233 => 131, 219 => 119, 217 => 118, 143 => 47, 135 => 42, 131 => 41, 123 => 35, 118 => 32, 116 => 31, 114 => 30, 109 => 28, 106 => 27, 101 => 24, 96 => 22, 91 => 20, 87 => 19, 82 => 17, 77 => 15, 72 => 13, 68 => 12, 63 => 10, 54 => 4, 50 => 2,);}public function getSourceContext(){return new Source("{% trans_default_domain \"top_bar\" %}<!DOCTYPE html><html lang=\"{{ app.request.getLocale() }}\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"author\" content=\"Fogazzi Mirko\" /><meta name=\"copyright\" content=\"Fogazzi Mirko\" />{{ include('seo_metatag.html.twig') }}{{ impostazioni.ritornaImpostazioneDaNome(\"HeaderGeneraleTuttePagine\")|raw }}{{ traduzione.CaricaTraduzioniDaFamiglie([\"agenti_dialog_principale\", \"dialog_ricerca_cliente\", \"agenti_crea_offerta_da_carrello_dialog\"], app.request.locale) }}{{ include('ZZ_front_end/stili_base.html.twig') }}<title>{% block title %}{{ impostazioni.ritornaImpostazioneDaNome(\"TitleGenerico\")|raw }}{% endblock %}</title><link rel=\"stylesheet\" href=\"{{ asset('css/sm-core-css.css') }}\"><link rel=\"stylesheet\" href=\"{{ asset('css/simple-sidebar.css') }}\"><!-- Bootstrap core CSS --><link href=\"{{ asset('css/bootstrap.min.css') }}\" rel=\"stylesheet\"><link href=\"//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css\" rel=\"stylesheet\"><link href=\"{{ asset('css/dropdown-css-style.css') }}\" rel=\"stylesheet\">{# <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css\"> #}<link href=\"{{ asset('java_lib/jquery-ui-1.12.0/jquery-ui.min.css') }}\" rel=\"stylesheet\">{% if is_granted('ROLE_ADMIN') or app.user or is_granted('ROLE_AGENTE') or is_granted('ROLE_COMMERCIALE') or is_granted(\"ROLE_FORNITORE\") %}{#<link href=\"https://unpkg.com/tabulator-tables@4.2.7/dist/css/tabulator.min.css\" rel=\"stylesheet\">#}<link href=\"https://unpkg.com/tabulator-tables@5.2.3/dist/css/tabulator.min.css\" rel=\"stylesheet\"><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\" integrity=\"sha256-aa0xaJgmK/X74WM224KMQeNQC2xYKwlAt08oZqjeF0E=\" crossorigin=\"anonymous\" />{% endif %}<!-- FONT AWSOME --><link href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\" rel=\"stylesheet\"><!-- SLICK CAROUSEL --><link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('java_lib/slick-1.8.1/slick/slick.css') }}\"/><link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('java_lib/slick-1.8.1/slick/slick-theme.css') }}\"/><!-- TINY SLIDER --><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/tiny-slider.css\"><!-- CORE NAV --><link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('java_lib/custom_mf_sidebar/mf_sidebar.css') }}\" /><style type=\"text/css\">#modalZoomImg * {box-sizing: border-box;}div#modalDettaglioCliente.modal.fade.in{visibility: visible;}div#modalDettaglioCliente.modal.fade{display: block;visibility: hidden;}.tb-numeri-tranne-1 td:not(:first-child), .tb-numeri-tranne-1 th:not(:first-child){text-align: right;}.tb-numeri-tranne-2 td:not(:first-child):not(:nth-child(2)), .tb-numeri-tranne-1 th:not(:first-child):not(:nth-child(2)){text-align: right;}.bottone-risorse-articoli{position: absolute;border: solid 1px green;border-radius: 10px;padding: 5px;float: right;width: 40px;z-index: 99;cursor: pointer;background: white;top: 0px;right: 0px;height: 40px;}.bottone-risorse-articoli img{height: 100%;width: 100%;/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+0,0+100;White+to+Transparent */background: transparent;}.img-zoom-container {position: relative;}.centra-flex-tutto{display: flex;flex-direction: row;align-content: center;align-items: center;justify-content: center;}.img-zoom-lens {position: absolute;border: 1px solid #d4d4d4;/*set the size of the lens:*/width: 250px;height: 250px;}.img-zoom-result {border: 1px solid #d4d4d4;/*set the size of the result div:*/width: 300px;height: 300px;}{% if impostazioni.ritornaImpostazioneDaNome('NascondiFrecceSuGiuInInputNumber') == '1' %}/* Chrome, Safari, Edge, Opera */input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {-webkit-appearance: none;margin: 0;}/* Firefox */input[type=number] {-moz-appearance: textfield;}{% endif %}/* The snackbar - position it at the bottom and in the middle of the screen */#snackbar {visibility: hidden; /* Hidden by default. Visible on click */min-width: 350px; /* Set a default minimum width */margin-left: -125px; /* Divide value of min-width by 2 */background-color: #333; /* Black background color */color: #fff; /* White text color */text-align: center; /* Centered text */border-radius: 2px; /* Rounded borders */padding: 16px; /* Padding */position: fixed; /* Sit on top of the screen */z-index: 1; /* Add a z-index if needed */left: 50%; /* Center the snackbar */bottom: 80px; /* 30px from the bottom */font-size: 15pt;}.attiva-tiny-slider{display: none;}.attiva-slick{display: none;}#bodyTabellaRicercaCliente tr:hover{background-color: yellow;cursor: pointer;}.cercaCliente:hover{cursor: pointer;}.modal { overflow: auto !important; }/* Show the snackbar when clicking on a button (class added with JavaScript) */#snackbar.show {visibility: visible; /* Show the snackbar *//* Add animation: Take 0.5 seconds to fade in and out the snackbar.However, delay the fade out process for 2.5 seconds */-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;animation: fadein 0.5s, fadeout 0.5s 2.5s;}/* Animations to fade the snackbar in and out */@-webkit-keyframes fadein {from {bottom: 0; opacity: 0;}to {bottom: 80px; opacity: 1;}}@keyframes fadein {from {bottom: 0; opacity: 0;}to {bottom: 80px; opacity: 1;}}@-webkit-keyframes fadeout {from {bottom: 80px; opacity: 1;}to {bottom: 0; opacity: 0;}}@keyframes fadeout {from {bottom: 80px; opacity: 1;}to {bottom: 0; opacity: 0;}}</style>{% block head %}{% endblock %}{% block stylesheet %}{% endblock %}{% block altri_nav %}{% endblock %}<!-- jQuery Core --><script type=\"text/javascript\" src=\"{{ asset('java_lib/jquery-2.2.4.min.js') }}\"></script><script type=\"text/javascript\" src=\"{{ asset('java_lib/jquery-ui-1.12.0/jquery-ui.min.js') }}\"></script><script type=\"text/javascript\" src=\"{{ asset('java_lib/bootstrap.min.js') }}\"></script>{# <script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js\"></script> #}</head><body><div id=\"snackbar\"></div><div class=\"loading\" id=\"loadingMaster\">Loading…</div>{% if app.request.get(\"_route\") == 'admin_pagine_e_componenti_editor' %}{% set mostraTopBar = 0 %}{% endif %}{% if (mostraTopBar is defined and mostraTopBar == 1) or mostraTopBar is not defined %}{{ include('ZZ_front_end/top_bar/top_bar.html.twig') }}{% endif %}{% if app.request.get(\"_route\") == 'home_shop' %}<div class=\"modal fade\" role=\"dialog\" tabindex=\"-1\" style=\"z-index: 999999;\" id=\"modal-cerca-filtro-avanzato-dialog\"><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\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">{{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_title\", \"top_bar\").valoreUscita }}</h4></div><div class=\"modal-body\"><form id=\"form-filtro-avanzato\"><div class=\"form-group\"><label for=\"filtro-avanzato-codice\">{{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_codice_label\", \"top_bar\").valoreUscita }}</label><input type=\"text\" class=\"form-control\" name=\"articolo.codice\" id=\"filtro-avanzato-codice\"></div><div class=\"form-group\"><label for=\"filtro-avanzato-nome\">{{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_descrizione_label\", \"top_bar\").valoreUscita }}</label><input type=\"text\" class=\"form-control\" name=\"articolo.nome\" id=\"filtro-avanzato-nome\"></div><div class=\"form-group\"><label for=\"filtro-avanzato-marca\">{{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_marca_label\", \"top_bar\").valoreUscita }}</label><input type=\"text\" class=\"form-control\" name=\"mappa.marca\" id=\"filtro-avanzato-marca\"></div><div class=\"checkbox\"><label><input type=\"checkbox\" name=\"filtro-avanzato-solo-disponibile\"> {{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_mostra_solo_disponibili\", \"top_bar\").valoreUscita }}</label></div><div class=\"checkbox\"><label><input type=\"checkbox\" name=\"filtro-avanzato-cerca-solo-in-categorie-selezionate\"> {{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_cerca_solo_in_albero_categorie_corrente\", \"top_bar\").valoreUscita }}</label></div></form></div><div class=\"modal-footer\"><button type=\"button\" onclick=\"ResetRicerca();\" class=\"btn btn-danger\" data-dismiss=\"modal\">{{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_reset_btn\", \"top_bar\").valoreUscita }}</button><button type=\"button\" onclick=\"\$('#form-filtro-avanzato').submit();\" class=\"btn btn-primary\" data-dismiss=\"modal\">{{ traduzione.OttieniElementoDizionario(\"top_bar_filtro_avanzato_applica_btn\", \"top_bar\").valoreUscita }}</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->{% endif %}<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalZoomImg\" style=\"z-index: 9999;\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-body\" style=\"overflow-y: auto;\"><div class=\"col-md-12 nascondiStampa\"><div class=\"img-zoom-container\"><div class=\"col-md-6 col-xs-12\"><img id=\"zoomImgImg\" src=\"\" style=\"max-height: 90vh; width: auto;\"></div><div class=\"col-md-6 col-xs-12\" style=\"max-height: 90vh;\"><div id=\"zoomImgResult\" class=\"img-zoom-result\" style=\"width: 100%; height: 90vh;\"></div></div></div></div></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Chiudi</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"risorseCatArtDialog\" style=\"z-index: 99999;\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">Risorse</h4></div><div class=\"modal-body\" id=\"risorseCatArtDialog-body\" style=\"overflow-y: auto;\"></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Chiudi</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->{% if not is_granted('ROLE_ADMIN') or is_granted('ROLE_AGENTE') or is_granted('ROLE_COMMERCIALE') %}<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalDettaglioClienteLoggato\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\" id=\"modalTitleDettaglioClienteLoggato\"><button class=\"btn btn-danger\" style=\"margin-right: 10px;\" data-dismiss=\"modal\" aria-label=\"Close\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_indietro_btn\", \"agenti_dialog_principale\").valoreUscita }}</button>{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_dettaglio_cliente\", \"agenti_dialog_principale\").valoreUscita }} <span id=\"modalDettaglioClienteLoggato-title2\" style=\"color:red;\"></span></h4></div><div class=\"modal-body\" id=\"modalDettaglioClienteLoggato-body\" style=\"overflow-y: auto;\"></div></div></div></div>{% endif %}{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_AGENTE') or is_granted('ROLE_COMMERCIALE') %}<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalDettaglioCliente\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\" id=\"modalTitleDettaglioCliente\"><button class=\"btn btn-danger\" style=\"margin-right: 10px;\" data-dismiss=\"modal\" aria-label=\"Close\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_indietro_btn\", \"agenti_dialog_principale\").valoreUscita }}</button>{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_dettaglio_cliente\", \"agenti_dialog_principale\").valoreUscita }} <span id=\"modalDettaglioCliente-title2\" style=\"color:red;\"></span><button href=\"\" style=\"float:right; margin-right: 20px;\" id=\"modalDettaglioClienteCreaOffertaDaCarrelloBtn\" data-toggle=\"modal\" data-target=\"#modalCreaOffertaDaCarrello\" class=\"btn btn-sm btn-primary\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_crea_offerta_da_carrello_btn\", \"agenti_dialog_principale\").valoreUscita }}</button><button href=\"\" style=\"float: right; margin-right: 20px;\" id=\"modalDettaglioClienteSpostaCarrelloBtn\" class=\"btn btn-sm btn-warning\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_sposta_carrello_btn\", \"agenti_dialog_principale\").valoreUscita }}</button>{% set attivaTipoOrdine = impostazioni.ritornaImpostazioneDaNome(\"AbilitaTipoOrdine\") %}<div class=\"form-inline\" style=\"float:right; margin-right:20px;{% if attivaTipoOrdine != '1' %}display:none;{% endif %}\"><div class=\"form-group\"><label for=\"tipo-ordine-input\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_tipo_ordine\", \"agenti_dialog_principale\").valoreUscita }}</label><select id=\"tipo-ordine-input\" class=\"form-control\" style=\"width:auto;\">{% if attivaTipoOrdine == '1' %}{% for tipoOrdine in servizi.RitornaTipiOrdine() %}<option {% if loop.first %} selected=\"selected\"{% endif %} value=\"{{ tipoOrdine.id|default(\"\") }}\">{{ tipoOrdine.testoVisualizzato|default(\"\") }}</option>{% endfor %}{% endif %}{% if servizi.RitornaTipiOrdine()|length <= 0 or attivaTipoOrdine == '0' %}<option value=\"\"></option>{% endif %}</select></div></div></h4></div><div class=\"modal-body\" style=\"overflow-y: auto;\"><div class=\"col-md-12 nascondiStampa\"><div class=\"form-inline center\"><div class=\"input-group\" style=\"width: 100%;\"><span style=\"font-weight: bold;width: 10%;min-width: 200px;\" class=\"input-group-addon cercaCliente\" id=\"basic-addon1\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_seleziona_cliente\", \"agenti_dialog_principale\").valoreUscita }}</span><input type=\"text\" style=\"width: 10%;min-width: 150px;\" class=\"form-control cercaCliente\" id=\"codiceClienteTxt\" readonly placeholder=\"{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_cliente_codice\", \"agenti_dialog_principale\").valoreUscita }}\"><input type=\"text\" style=\"width: 60%;\" class=\"form-control cercaCliente\" id=\"ragioneSocialeText\" readonly placeholder=\"{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_cliente_ragione_sociale\", \"agenti_dialog_principale\").valoreUscita }}\"><button class=\"btn btn-small btn-danger pulisci-selezione-cliente\" style=\"margin-left: 10px;\" onclick=\"PulisciSelezioneCliente();\"><i class=\"fa fa-trash\" aria-hidden=\"true\"></i></button><button class=\"btn btn-default\" data-valore=\"{% if servizi.RitornaAltriDatiUtente() and servizi.RitornaAltriDatiUtente().nascondiPrezzi %}1{% else %}0{% endif %}\" id=\"nascondiPrzBtnDettCliente\" onclick=\"VariaStatoBottoneNascondiPrezzi();\" style=\"margin-left: 10px;{% if impostazioni.ritornaImpostazioneDaNome('MostraPulsanteNascondiPrezzi') != '1' %}display:none;{% endif %}\">Nascondi prezzi</button></div></div><hr><div class=\"moda-dettaglio-cliente-body\"></div></div></div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_chiudi_btn\", \"agenti_dialog_principale\").valoreUscita }}</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalCreaOffertaDaCarrello\"><div class=\"modal-dialog panel-warning\" role=\"document\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_crea_offerta_da_carrello_btn\", \"agenti_dialog_principale\").valoreUscita }}</h4></div><div class=\"modal-body\" id=\"modalCreaOffertaDaCarrelloBody\" style=\"overflow-y: auto;\"><form id=\"creaOffertaDaCarrelloForm\" action=\"{{ path('offerte_crea_da_carrello') }}\"><div class=\"form-group\"><label for=\"modal-crea-offerta-carrello-note\">{{ traduzione.OttieniElementoDizionario(\"agenti_crea_offerta_da_carrello_dialog_note\", \"agenti_crea_offerta_da_carrello_dialog\").valoreUscita }}</label><textarea class=\"form-control\" id=\"modal-crea-offerta-carrello-note\" name=\"modal-crea-offerta-carrello-note\"></textarea></div><div class=\"form-group\"><label for=\"modal-crea-offerta-carrello-note-aziendali\">{{ traduzione.OttieniElementoDizionario(\"agenti_crea_offerta_da_carrello_dialog_note_aziendali\", \"agenti_crea_offerta_da_carrello_dialog\").valoreUscita }}</label><textarea class=\"form-control\" id=\"modal-crea-offerta-carrello-note\" name=\"modal-crea-offerta-carrello-note-aziendali\"></textarea></div><div class=\"form-group\"><label for=\"modal-crea-offerta-carrello-riferimento-offerta\">{{ traduzione.OttieniElementoDizionario(\"agenti_crea_offerta_da_carrello_dialog_note_riferimento_offerta\", \"agenti_crea_offerta_da_carrello_dialog\").valoreUscita }}</label><input type=\"text\" class=\"form-control\" id=\"modal-crea-offerta-carrello-riferimento-offerta\" name=\"modal-crea-offerta-carrello-riferimento-offerta\"></div><div class=\"checkbox\"><label><input type=\"checkbox\" id=\"modal-crea-offerta-carrello-invia-mail\" name=\"modal-crea-offerta-carrello-invia-mail\" checked=\"checked\">{{ traduzione.OttieniElementoDizionario(\"agenti_crea_offerta_da_carrello_dialog_invia_offerta_mail_checkbox\", \"agenti_crea_offerta_da_carrello_dialog\").valoreUscita }}</label></div></form></div><div class=\"modal-footer\"><button href=\"\" style=\"float:right; margin-right: 20px;\" id=\"modalCreaOfferteDaCarrello_creaBtn\" class=\"btn btn-sm btn-success\">{{ traduzione.OttieniElementoDizionario(\"agenti_dialog_principale_crea_offerta_da_carrello_btn\", \"agenti_dialog_principale\").valoreUscita }}</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->{% endif %}<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalRichiestaPrezzo\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">{{ traduzione.CaricaTraduzioniDaFamiglia(\"richiesta_prezzo\", app.request.locale, false) }}{{ traduzione.OttieniElementoDizionario(\"richiesta_prezzo_title\", \"richiesta_prezzo\").valoreUscita }}</h4></div><div class=\"modal-body\" id=\"modalRichiestaPrezzoBody\" style=\"overflow-y: auto;\"></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalMagazziniSecondari\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\">{{ traduzione.CaricaTraduzioniDaFamiglia(\"modal_magazzini_secondari\", app.request.locale, false) }}{{ traduzione.OttieniElementoDizionario(\"modal_magazzini_secondari_title_main_modal\", \"modal_magazzini_secondari\").valoreUscita }}</h4></div><div class=\"modal-body\" id=\"modalMagazziniSecondariBody\" style=\"overflow-y: auto;\"></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_AGENTE') or is_granted('ROLE_COMMERCIALE') %}<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" id=\"modalCercaCliente\"><div class=\"modal-dialog panel-warning\" role=\"document\" style=\"width: 80%;\"><div class=\"modal-content panel-warning\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button><h4 class=\"modal-title\" id=\"modalTitle\">{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_title\", \"dialog_ricerca_cliente\").valoreUscita }}</h4></div><div class=\"modal-body\" style=\"overflow-y: auto;\"><div class=\"col-md-12\"><div class=\"col-md-4\"><div class=\"form-inline center has-success\"><div class=\"input-group\" style=\"width: 100%;\"><span class=\"input-group-addon\" id=\"basic-addon1\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span></span><input type=\"text\" class=\"form-control\" id=\"ricercaClienteTxt\" placeholder=\"{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_inizia_a_scrivere\", \"dialog_ricerca_cliente\").valoreUscita }}\"></div></div></div><div class=\"col-md-4\"><div class=\"form-inline center has-success\"><div class=\"input-group\" style=\"width: 100%;\"><span class=\"input-group-addon\" id=\"basic-addon1\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span></span><input type=\"text\" class=\"form-control\" id=\"ricercaCittaTxt\" placeholder=\"{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_filtro_citta\", \"dialog_ricerca_cliente\").valoreUscita }}\"></div></div></div><div class=\"col-md-4\"><div class=\"form-inline center has-success\"><div class=\"input-group\" style=\"width: 100%;\"><span class=\"input-group-addon\" id=\"basic-addon1\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span></span><input type=\"text\" class=\"form-control\" id=\"ricercaProvinciaTxt\" placeholder=\"{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_filtro_provincia\", \"dialog_ricerca_cliente\").valoreUscita }}\"></div></div></div></div><table class=\"table table-striped table-responsive\"><thead><tr><th>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col1_a\", \"dialog_ricerca_cliente\").valoreUscita }}<br>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col1_b\", \"dialog_ricerca_cliente\").valoreUscita }}<br>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col1_c\", \"dialog_ricerca_cliente\").valoreUscita }}</th><th>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col2_a\", \"dialog_ricerca_cliente\").valoreUscita }}<br>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col2_b\", \"dialog_ricerca_cliente\").valoreUscita }}<br>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col2_c\", \"dialog_ricerca_cliente\").valoreUscita }}</th><th>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col3_a\", \"dialog_ricerca_cliente\").valoreUscita }}<br>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col3_b\", \"dialog_ricerca_cliente\").valoreUscita }}<br>{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_tab_col3_c\", \"dialog_ricerca_cliente\").valoreUscita }}</th></tr></thead><tbody id=\"bodyTabellaRicercaCliente\"></tbody></table></div><div class=\"modal-footer\"><button type=\"button\" id=\"chiudiModalCercaCliente\" class=\"btn btn-danger\" data-dismiss=\"modal\">{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_chiudi_btn\", \"dialog_ricerca_cliente\").valoreUscita }}</button></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal -->{% endif %}<div class=\"container-fluid contenitore_generale_body\" ><div class=\"row master-row-body\"><div class=\"col-md-12 master-col-body\">{% block body %}{% endblock %}</div></div></div><!-- /.container --><script src=\"https://www.google.com/recaptcha/api.js?render={{ impostazioni.ritornaImpostazioneDaNome('ReCaptchaSiteKey') }}\"></script><script>grecaptcha.ready(function() {grecaptcha.execute('{{ impostazioni.ritornaImpostazioneDaNome('ReCaptchaSiteKey') }}', {action: 'homepage'}).then(function(token) {\$('.re-captcha-v3').val = token;});});</script><!-- FOSJsRoutingBundle --><script src=\"{{ asset('bundles/fosjsrouting/js/router.js') }}\"></script><script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script><!-- jQuery smartmenus plugin --><script src=\"{{ asset('java_lib/jquery.smartmenus.min.js') }}\"></script><script src=\"{{ asset('java_lib/jquery.smartmenus.bootstrap.min.js') }}\"></script><script src=\"{{ asset('java_lib/jquery.stickytableheaders.min.js') }}\" type=\"text/javascript\"></script><!-- SLICK CAROUSEL --><script type=\"text/javascript\" src=\"{{ asset('java_lib/slick-1.8.1/slick/slick.min.js') }}\"></script><!-- TINY SLIDER --><script src=\"https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js\"></script><!-- CORE NAV --><script type=\"text/javascript\" src=\"{{ asset('java_lib/custom_mf_sidebar/mf_sidebar.js') }}\"></script>{# <script type=\"text/javascript\" src=\"https://unpkg.com/tabulator-tables@4.2.7/dist/js/tabulator.min.js\"></script>#}<script type=\"text/javascript\" src=\"https://unpkg.com/tabulator-tables@5.2.3/dist/js/tabulator.min.js\"></script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\" integrity=\"sha256-xKeoJ50pzbUGkpQxDYHD7o7hxe0LaOGeguUidbq6vis=\" crossorigin=\"anonymous\"></script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js\" integrity=\"sha256-Uv9BNBucvCPipKQ2NS9wYpJmi8DTOEfTA/nH2aoJALw=\" crossorigin=\"anonymous\"></script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/luxon/3.0.1/luxon.min.js\" integrity=\"sha512-6ZJuab/UnRq1muTChgrVxJhSgygmL2GMLVmSJN7pcBEqJ1dWPbqN9CiZ6U3HrcApTIJsLnMgXYBYgtVkJ8fWiw==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script><script type=\"text/javascript\">{# Variabili utile per la sostituzione del carrello #}let idCarrelloAttuale = '';let stadioSostituzione = 0; {# Quando lo stadio è 1 allora ho già in memoria i due salti #}{# FINE #}var memorizzazioneAltriDatiUtente = {}var lens = null;var img = null;{# Codice per zoom immagine #}function imageZoom(imgID, resultID) {if (lens != null){lens.removeEventListener(\"mousemove\", moveLens);img.removeEventListener(\"mousemove\", moveLens);lens.removeEventListener(\"touchmove\", moveLens);img.removeEventListener(\"touchmove\", moveLens);lens.remove();lens = null;}var result, cx, cy;img = document.getElementById(imgID);result = document.getElementById(resultID);/* Create lens: */lens = document.createElement(\"DIV\");lens.setAttribute(\"class\", \"img-zoom-lens\");/* Insert lens: */img.parentElement.insertBefore(lens, img);/* Calculate the ratio between result DIV and lens: */cx = result.offsetWidth / lens.offsetWidth;cy = result.offsetHeight / lens.offsetHeight;/* Set background properties for the result DIV */result.style.backgroundImage = \"url('\" + img.src + \"')\";result.style.backgroundSize = (img.width * cx) + \"px \" + (img.height * cy) + \"px\";/* Execute a function when someone moves the cursor over the image, or the lens: */lens.addEventListener(\"mousemove\", moveLens);img.addEventListener(\"mousemove\", moveLens);/* And also for touch screens: */lens.addEventListener(\"touchmove\", moveLens);img.addEventListener(\"touchmove\", moveLens);function moveLens(e) {var pos, x, y;/* Prevent any other actions that may occur when moving over the image */e.preventDefault();/* Get the cursor's x and y positions: */pos = getCursorPos(e);/* Calculate the position of the lens: */x = pos.x - (lens.offsetWidth / 2);y = pos.y - (lens.offsetHeight / 2);/* Prevent the lens from being positioned outside the image: */if (x > img.width - lens.offsetWidth) {x = img.width - lens.offsetWidth;}if (x < 0) {x = 0;}if (y > img.height - lens.offsetHeight) {y = img.height - lens.offsetHeight;}if (y < 0) {y = 0;}/* Set the position of the lens: */lens.style.left = x + \"px\";lens.style.top = y + \"px\";/* Display what the lens \"sees\": */result.style.backgroundPosition = \"-\" + (x * cx) + \"px -\" + (y * cy) + \"px\";}function getCursorPos(e) {var a, x = 0, y = 0;e = e || window.event;/* Get the x and y positions of the image: */a = img.getBoundingClientRect();/* Calculate the cursor's x and y coordinates, relative to the image: */x = e.pageX - a.left;y = e.pageY - a.top;/* Consider any page scrolling: */x = x - window.pageXOffset;y = y - window.pageYOffset;return {x : x, y : y};}}var randomRgbColor = function() {var r = Math.floor(Math.random() * 255);var g = Math.floor(Math.random() * 255);var b = Math.floor(Math.random() * 255);return \"rgb(\" + r + \",\" + g + \",\" + b + \")\";}function toastMessage(messaggio, rosso = false) {// Get the snackbar DIVvar x = document.getElementById(\"snackbar\");\$(x).text(messaggio);if (rosso){\$(x).css('background-color', 'red');\$(x).css('color', 'black');}else{\$(x).css('background-color', 'black');\$(x).css('color', 'white');}// Add the \"show\" class to DIVx.className = \"show\";// After 3 seconds, remove the show class from DIVsetTimeout(function(){ x.className = x.className.replace(\"show\", \"\"); }, 3000);}function ApriModalRichiestaPrezzo(idMappa){\$('#loadingMaster').show();\$.ajax({dataType: 'html',url: Routing.generate('richiesta_prezzo_modal', {'idMappa' : (idMappa) }),async: true, //you won't need that if nothing in your following code is dependend of the resultsuccess: function (response) {\$('#modalRichiestaPrezzoBody').html(response);\$('#modalRichiestaPrezzo').modal('toggle');\$('#loadingMaster').hide();},error: function(XMLHttpRequest, textStatus, errorThrown) {\$('#loadingMaster').hide();alert(\"Status: \" + textStatus); alert(\"Error: \" + errorThrown);}});}function ApriModalMagazziniSecondari(idMappa, qta){\$('#loadingMaster').show();\$.ajax({dataType: 'html',url: Routing.generate('magazzini_secondari_modal', {'idMappa' : (idMappa), 'qta' : (qta) }),async: true, //you won't need that if nothing in your following code is dependend of the resultsuccess: function (response) {\$('#modalMagazziniSecondariBody').html(response);\$('#modalMagazziniSecondari').modal('toggle');\$('#loadingMaster').hide();},error: function(XMLHttpRequest, textStatus, errorThrown) {\$('#loadingMaster').hide();alert(\"Status: \" + textStatus); alert(\"Error: \" + errorThrown);}});}function CountArticoliCarrello(){\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('carrello_conta_articoli'),async: true //you won't need that if nothing in your following code is dependend of the result}).done(function (response) {let js = JSON.parse(response);idCarrelloAttuale = js.idCarrello;if(idCarrelloAttuale != ''){\$('#modalDettaglioClienteSpostaCarrelloBtn').show();}else{\$('#modalDettaglioClienteSpostaCarrelloBtn').hide();}if (js.count == '0')\$('#badgeArticoliCarello').html(\" \");else\$('#badgeArticoliCarello').html(js.count);})DettaglioCarrelloJson();}function DettaglioCarrelloJson(){\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('carrello_dettagli_json'),async: true //you won't need that if nothing in your following code is dependend of the result}).done(function (response) {let js = JSON.parse(response);\$(\"#badgeTotaleImponibileCarrello\").html(\" - € \" + js.imponibile)})}{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_AGENTE') or is_granted('ROLE_COMMERCIALE') %}function CambioTabRisorseCategorieSelect(altezza=350) {let categoriaSelezionata = \$('#tab-risorse-categorie-select').find('option:selected').val();\$.ajax({type: \"POST\",dataType: 'json',data: {'tab': 'dati_da_categoria', 'categoria': (categoriaSelezionata)},async: true,url: Routing.generate('agente_dettaglio_carica_tab_anagrafica', {idAnagrafica: \$(\"#id-anagrafica-da-utilizzare\").val()}),success: function (response) {var tableRisorseAnag = new Tabulator(\"#tabella-risorse\", {height: (altezza + \"px\"),data:response.data, //load row data from arraylayout:\"fitDataFill\", //fit columns to width of tableresponsiveLayout:\"collapse\", //hide columns that dont fit on the tablecolumns: response.colonne,});tableRisorseAnag.on(\"rowClick\", function(e, row){//e - the click event object//row - row componentvar valore = row.getCell('idRisorsa').getValue();var url = Routing.generate('agente_recupera_risorsa_anagrafica') + '?idRisorsa=' + valore;var win = window.open(url, '_blank');win.focus();});if('sorting' in response){let sort = [];for (const [key, value] of Object.entries(response.sorting)) {//value => {'field' => '', 'direction' => ''}sort.push({'column': value.field, 'dir': value.direction});}if(sort.length > 0){tableRisorseAnag.setSort(sort);}}}});}{% else %}function CambioTabRisorseCategorieSelect() {let categoriaSelezionata = \$('#tab-risorse-categorie-select').find('option:selected').val();\$.ajax({type: \"POST\",dataType: 'json',data: {'categoria': (categoriaSelezionata)},async: true,url: Routing.generate('storico_carica_risorse_anagrafiche'),success: function (response) {var tableRisorseAnag = new Tabulator(\"#tabella-risorse\", {height: \"350px\",data:response.data, //load row data from arraylayout:\"fitDataFill\", //fit columns to width of tableresponsiveLayout:\"collapse\", //hide columns that dont fit on the tablecolumns: response.colonne,});tableRisorseAnag.on(\"rowClick\", function(e, row){//e - the click event object//row - row componentvar valore = row.getCell('idRisorsa').getValue();var url = Routing.generate('recupera_risorsa_anagrafica') + '?idRisorsa=' + valore;var win = window.open(url, '_blank');win.focus();});}});}{% endif %}function ResetRicercaFiltroAvanzato(){\$(\"#cerca-filtro-btn\").removeAttr(\"style\")filtroAvanzato = \"\";document.getElementById('form-filtro-avanzato').reset();}function ResetRicerca(){\$(\"#ricercaVeloceTxt\").val(\"\");}{% if not (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}function ApriDettaglioClienteLoggato(){\$('#loadingMaster').show();\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('utente_dettaglio_anagrafica'),async: true,success: function (response) {\$('#loadingMaster').hide();\$('#modalDettaglioClienteLoggato-body').html(response);\$(\"#modalDettaglioClienteLoggato\").modal('toggle');},error: function (xhr, ajaxOptions, thrownError) {\$('#loadingMaster').hide();alert(xhr.status);alert(thrownError);}});}{% endif %}{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}function ApriDettaglioClienteDialog(){aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;\$(\".pulisci-selezione-cliente\").hide();if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);\$(\".pulisci-selezione-cliente\").show();\$(\"#codiceClienteTxt\").val(json.codice);\$(\"#ragioneSocialeText\").val(json.ragioneSociale);let tipoOrdine = json.hasOwnProperty(\"tipoOrdine\") ? json.tipoOrdine : '';\$(\"#tipo-ordine-input > option\").each(function() {if(\$(this).val() ==tipoOrdine){\$(this).attr(\"selected\", \"selected\");} else {\$(this).removeAttr(\"selected\");}});\$('#navbar-dettaglio-cliente').text(json.codice + ' - ' + json.ragioneSociale);\$('#selezionaVariantiModalCliente').text('Cliente: ' + json.codice + ' - ' + json.ragioneSociale);memorizzazioneAltriDatiUtente = json;CaricaDettaglioCliente(json.id);}});AggiornaStatoSelezioneCliente();\$(\"#modalDettaglioCliente\").modal('show');}function SpostaCarrello(idAnagraficaDestinazione){stadioSostituzione = 0;\$('#loadingMaster').show();\$.ajax({type: \"POST\",dataType: 'json',url: Routing.generate('agente_sposta_carrello', {idCarrelloOrigine: (idCarrelloAttuale),idAnagraficaDestinazione: (idAnagraficaDestinazione)}),async: true,success: function (response) {\$('#loadingMaster').hide();let js = JSON.parse(response);if(js.successo == 'SI'){toastMessage(js.messaggio);CountArticoliCarrello();}else{toastMessage(js.messaggio, true);}},error: function(XMLHttpRequest, textStatus, errorThrown) {\$('#loadingMaster').hide();alert(\"Status: \" + textStatus); alert(\"Error: \" + errorThrown);}});}function CaricaTabellaGeneraleClienti(rigaInizio) {var str_ric = \$(\"#ricercaClienteTxt\").val();var citta = \$(\"#ricercaCittaTxt\").val();var provincia = \$(\"#ricercaProvinciaTxt\").val();\$.ajax({type: \"POST\",dataType: 'html',data: {\"data\": {'ricerca': str_ric,'citta' : citta,'provincia' : provincia}},url: Routing.generate('agente_lista_clienti_ricerca', {rigaInzio: rigaInizio}),async: true,success: function (response) {\$('#bodyTabellaRicercaCliente').html(response);},error: function (xhr, ajaxOptions, thrownError) {alert(xhr.status);alert(thrownError);}});}function CaricaDettaglioCliente(id) {\$.ajax({type: \"POST\",dataType: 'html',url: Routing.generate('agente_dettaglio_anagrafica', {id: (id), soloDati: 1}),async: true,success: function (response) {\$('.moda-dettaglio-cliente-body').html(response);\$('a[data-toggle=\"tab\"]').on('shown.bs.tab', function (e) {let tabAperto = e.target; // newly activated tablet identificativo = tabAperto.hash.substring(1);let contenitore = \$('#' + identificativo);if(identificativo != 'tab-home') {\$(contenitore).html('');\$.ajax({type: \"POST\",dataType: 'html',data: {'tab': (identificativo)},async: true,url: Routing.generate('agente_dettaglio_carica_tab_anagrafica', {idAnagrafica: id}),success: function (response) {\$(contenitore).html(response);},error: function (xhr, ajaxOptions, thrownError) {alert(xhr.status);alert(thrownError);}});}});}});}function VerificaStileBottoneNascondiPrezzi(){if (\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\") == '0'){\$(\"#nascondiPrzBtnDettCliente\").css(\"background-color\", \"#fff\");}else{\$(\"#nascondiPrzBtnDettCliente\").css(\"background-color\", \"yellow\");}}function VariaStatoBottoneNascondiPrezzi(){if (\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\") == '0'){\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\", '1')VerificaStileBottoneNascondiPrezzi();}else{\$(\"#nascondiPrzBtnDettCliente\").data(\"valore\", '0')VerificaStileBottoneNascondiPrezzi();}let datiCliente = {'codice' : memorizzazioneAltriDatiUtente.codice,'ragioneSociale': memorizzazioneAltriDatiUtente.ragioneSociale,'id' : memorizzazioneAltriDatiUtente.id,'tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {memorizzazioneAltriDatiUtente = datiCliente;});}function PulisciSelezioneCliente(dati){aggiornaVisualizzaAltriDatiUtente('E', '', function (response) {if(response.esito == 'OK') {AggiornaStatoSelezioneCliente();\$(\"#codiceClienteTxt\").val(\"\");\$(\"#ragioneSocialeText\").val(\"\");CountArticoliCarrello();memorizzazioneAltriDatiUtente = {}\$('.moda-dettaglio-cliente-body').html(\"\");}else{alert('{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_errore_pulisci_cliente\", \"dialog_ricerca_cliente\").valoreUscita }}');}});}function AggiornaStatoSelezioneCliente() {aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cck = response;if (cck != \"\" && cck && cck.length > 0) {\$(\".pulisci-selezione-cliente\").show();\$(\".top-bar-seleziona-cliente\").css(\"background-color\", \"yellow\");memorizzazioneAltriDatiUtente = JSON.parse(cck);} else {\$(\".pulisci-selezione-cliente\").hide();\$(\".top-bar-seleziona-cliente\").css(\"background-color\", \"transparent\");\$('#navbar-dettaglio-cliente').text(\"\");\$('#selezionaVariantiModalCliente').text('');}});}{% endif %}function aggiornaVisualizzaAltriDatiUtente(operazione, valore, callback = null){\$.ajax({type: \"POST\",dataType: 'json',data: {'valore' : (valore)},async: true,url: Routing.generate({% if is_granted(\"ROLE_AGENTE\") %}'agente_altro_dato'{% else %}'utente_altro_dato'{% endif %}, {operazione: (operazione)}),success: function (response){memorizzazioneAltriDatiUtente = valore;callback(response);},error: function (xhr, ajaxOptions, thrownError) {alert(xhr.status);alert(thrownError);}});}function adattaContenutoABarraSuperiore(){\$(\".contenitore_generale_body\").css(\"padding-top\", \$(\".navbar-fixed-top\").height() + \"px\")\$(\".nav-side-menu\").css(\"padding-top\", \$(\".navbar-fixed-top\").height() + \"px\")}\$(document).ready(function () {\$(window).resize(function() {adattaContenutoABarraSuperiore();});\$(document).on(\"click\", \".attiva-img-zoom\", function (event){event.stopImmediatePropagation();event.stopPropagation();\$(\"#zoomImgImg\").attr(\"src\", \$(this).attr(\"src\"));\$(\"#modalZoomImg\").modal('show');});\$('#modalZoomImg').on(\"shown.bs.modal\", function (){imageZoom(\"zoomImgImg\", \"zoomImgResult\");});\$('.attiva-slick').on('init', function(slick) {\$('.attiva-slick').fadeIn(3000);}).slick();\$('.attiva-tiny-slider').each(function (index, item) {let arrConfig = \$(item).data('configurazione');tns(arrConfig);\$(item).css({ display: \"block\" });});\$('.form-ordinazione-articolo').on(\"submit\", function (e) {let disponibilita = \$(this).find('input[name=\"disponibilita\"]').val();let disponibilitaMagSecondari = \$(this).find('input[name=\"disponibilita-mag-secondari\"]').val();if(disponibilita && disponibilita <= 0 ) {if(disponibilitaMagSecondari > 0) {e.preventDefault();ApriModalMagazziniSecondari(\$(this).find('input[name=\"id-mappa\"]').val(), \$(this).find('input[name=\"qta\"]').val());}}});\$('[data-toggle=\"popover\"]').popover();\$(\"#set_min_width\").css(\"min-width\", \$(window).width() / 2);\$(\"#form_news\").mouseleave(function () {\$(\"#set_min_width\").css(\"display\", \"none\");});\$(\"#set_min_width\").mouseenter(function () {\$(\"#set_min_width\").css(\"display\", \"inline-block\");});\$(\"#set_min_width\").mouseleave(function () {\$(\"#set_min_width\").css(\"display\", \"none\");});\$('#cerca-btn-top').on('click', function () {ResetRicercaFiltroAvanzato();RicercaVeloce(\$(\"#ricercaVeloceTxt\").val());});\$(\"#ricercaVeloceTxt\").on(\"keypress\", function(e) {if(e.which == 13) {ResetRicercaFiltroAvanzato();RicercaVeloce(\$(\"#ricercaVeloceTxt\").val());}});var errori_validazione = [{% if errori_validazione is defined %}{% for err in errori_validazione %}\"{{ err }}\",{% endfor %}{% endif %}];\$.each(errori_validazione, function (item) {\$(\"#form_\" + errori_validazione[item]).addClass(\"dato-invalido\");});CountArticoliCarrello();adattaContenutoABarraSuperiore();{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}\$(\"#ricercaClienteTxt, #ricercaCittaTxt, #ricercaProvinciaTxt\").on(\"change paste keyup\", function () {CaricaTabellaGeneraleClienti(\$(\"#inizioRiga\").data('valore'));});\$(\".cercaCliente\").on(\"focus, click\", function () {stadioSostituzione = 0;\$(\"#modalCercaCliente\").modal('show');});\$(\"#tipo-ordine-input\").on(\"change\", function (){aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);let datiCliente = {'codice' : json.codice,'ragioneSociale': json.ragioneSociale,'id' : json.id,'tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}VerificaStileBottoneNascondiPrezzi();{% endif %}aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {CountArticoliCarrello();location.reload(); //Ricarico la pagina});}});});\$(\"#bodyTabellaRicercaCliente\").on(\"click\", \"tr\", function () {\$(\"#codiceClienteTxt\").val(\$(this).data(\"codice\"));\$(\"#ragioneSocialeText\").val(\$(this).data(\"ragione-sociale\"));let datiCliente = {'codice' : \$(this).data(\"codice\"),'ragioneSociale': \$(this).data(\"ragione-sociale\"),'id' : \$(this).data(\"identificativo\"),'tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};\$('#navbar-dettaglio-cliente').text(datiCliente.codice + ' - ' + datiCliente.ragioneSociale);\$('#selezionaVariantiModalCliente').text('Cliente: ' + datiCliente.codice + ' - ' + datiCliente.ragioneSociale);\$(\"#modalCercaCliente\").modal('toggle');aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {AggiornaStatoSelezioneCliente();CountArticoliCarrello();CaricaDettaglioCliente(datiCliente.id);{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}VerificaStileBottoneNascondiPrezzi();{% endif %}});if(stadioSostituzione == 1){if(confirm('{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_conferma_spostamento_carrello\", \"dialog_ricerca_cliente\").valoreUscita }}')) {SpostaCarrello(\$(this).data(\"identificativo\"));}}});\$('#modalDettaglioClienteSpostaCarrelloBtn').on('click', function (event) {if(stadioSostituzione == 0){event.preventDefault();event.stopPropagation();stadioSostituzione = 1;\$(\"#modalCercaCliente\").modal('show');}});\$('#modalCreaOfferteDaCarrello_creaBtn').on(\"click\", function (event) {if(confirm(\"{{ traduzione.OttieniElementoDizionario(\"dialog_ricerca_cliente_conferma_generazione_offerta\", \"dialog_ricerca_cliente\").valoreUscita }}\")){\$(\"#creaOffertaDaCarrelloForm\").submit();}});aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;\$(\".pulisci-selezione-cliente\").hide();if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);\$(\".pulisci-selezione-cliente\").show();\$(\"#codiceClienteTxt\").val(json.codice);\$(\"#ragioneSocialeText\").val(json.ragioneSociale);\$(\"#nascondiPrzBtnDettCliente\").data('valore', json.nascondiPrezzi)let tipoOrdine = json.hasOwnProperty(\"tipoOrdine\") ? json.tipoOrdine : '';\$(\"#tipo-ordine-input > option\").each(function() {if(\$(this).val() ==tipoOrdine){\$(this).attr(\"selected\", \"selected\");}else{\$(this).removeAttr(\"selected\");}});\$('#navbar-dettaglio-cliente').text(json.codice + ' - ' + json.ragioneSociale);\$('#selezionaVariantiModalCliente').text('Cliente: ' + json.codice + ' - ' + json.ragioneSociale);memorizzazioneAltriDatiUtente = json;{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}VerificaStileBottoneNascondiPrezzi();{% endif %}CaricaQuadratiAlbero(\"\");}});AggiornaStatoSelezioneCliente();{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}VerificaStileBottoneNascondiPrezzi();{% endif %}CaricaTabellaGeneraleClienti(0);{# Verifico se l'utente ha effettuato il LOGIN #}{% elseif is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let cookie = response;\$(\".pulisci-selezione-cliente\").hide();if (cookie != \"\" && cookie && cookie.length > 0){let json = JSON.parse(cookie);\$(\".pulisci-selezione-cliente\").show();\$(\"#codiceClienteTxt\").val(json.codice);\$(\"#ragioneSocialeText\").val(json.ragioneSociale);let tipoOrdine = json.hasOwnProperty(\"tipoOrdine\") ? json.tipoOrdine : '';\$(\"#tipo-ordine-input > option\").each(function() {if(\$(this).val() ==tipoOrdine){\$(this).attr(\"selected\", \"selected\");}else{\$(this).removeAttr(\"selected\");}});{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}\$('#navbar-dettaglio-cliente').text(json.codice + ' - ' + json.ragioneSociale);{% endif %}\$('#selezionaVariantiModalCliente').text('Cliente: ' + json.codice + ' - ' + json.ragioneSociale);\$(\"#nascondiPrzBtnDettCliente\").data('valore', json.nascondiPrezzi)memorizzazioneAltriDatiUtente = json;{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}VerificaStileBottoneNascondiPrezzi();{% endif %}CaricaQuadratiAlbero(\"\");}});\$(\"#tipo-ordine-input\").on(\"change\", function (){aggiornaVisualizzaAltriDatiUtente('V', '', function (response) {let datiCliente = {'codice' : '','ragioneSociale': '','id' : '','tipoOrdine' : \$(\"#tipo-ordine-input\").find(\":selected\").val(),'nascondiPrezzi': \$(\"#nascondiPrzBtnDettCliente\").data('valore')};{% if (is_granted(\"ROLE_ADMIN\") or is_granted(\"ROLE_COMMERCIALE\") or is_granted(\"ROLE_AGENTE\")) %}VerificaStileBottoneNascondiPrezzi();{% endif %}aggiornaVisualizzaAltriDatiUtente('M', JSON.stringify(datiCliente), function (response) {CountArticoliCarrello();location.reload(); //Ricarico la pagina});});});{% endif %}{% for flash_message in app.session.flashbag.get('notice')%}toastMessage(\"{{ flash_message }}\");{% endfor %}{% for flash_message in app.session.flashbag.get('error')%}toastMessage(\"{{ flash_message }}\", true);{% endfor %}});</script>{% block javascript %}{% endblock %}<div class=\"pushContent\"></div></body>{% if app.request.get(\"_route\") != 'admin_pagine_e_componenti_editor' %}{% if impostazioni.ritornaImpostazioneDaNome('MostraFooterSviluppatoDa') == '1' %}<footer class=\"navbar navbar-default navbar-fixed-bottom\"><div style=\"margin-top: 15px;\" class=\"container\"><span style=\"vertical-align: middle;\"><a href=\"http://www.fogazzimirko.it\">Sviluppato da Fogazzi Mirko © {{ \"now\"|date(\"Y\") }}{% block footer %}{% endblock %}</a></span></div></footer>{% endif %}{% endif %}</html>", "base.html.twig", "/var/www/webshop_testindustria/templates/base.html.twig");}}