var/cache/dev/twig/fa/fa6b21f1f1e161bc46154e67ca6fdf03.php line 44
<?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;/* default/divisas.html.twig */class __TwigTemplate_1daa09a07b07917c0c1f822cf9467b7b extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['title' => [$this, 'block_title'],'metadescription' => [$this, 'block_metadescription'],'metakeywords' => [$this, 'block_metakeywords'],'idiomas' => [$this, 'block_idiomas'],'bodyId' => [$this, 'block_bodyId'],'body' => [$this, 'block_body'],'funciones_eventos' => [$this, 'block_funciones_eventos'],];}protected function doGetParent(array $context){// line 2return "base.html.twig";}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", "default/divisas.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/divisas.html.twig"));$this->parent = $this->loadTemplate("base.html.twig", "default/divisas.html.twig", 2);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 5public 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"));if ((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 5, $this->source); })())) {echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 5, $this->source); })()), "metaTitle", [], "any", false, false, false, 5), ["| Eurochange.es" => ""]), "html", null, true);} else {echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 5, $this->source); })()), "metaTitle", [], "any", false, false, false, 5), ["| Eurochange.es" => ""]), "html", null, true);}$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 6public function block_metadescription($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", "metadescription"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));if ((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 6, $this->source); })())) {echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 6, $this->source); })()), "metaDescription", [], "any", false, false, false, 6), "html", null, true);} else {echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 6, $this->source); })()), "metaDescription", [], "any", false, false, false, 6), "html", null, true);}$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 7public function block_metakeywords($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", "metakeywords"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metakeywords"));if ((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 7, $this->source); })())) {echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 7, $this->source); })()), "metaKeywords", [], "any", false, false, false, 7), "html", null, true);} else {echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 7, $this->source); })()), "metaKeywords", [], "any", false, false, false, 7), "html", null, true);}$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 9public function block_idiomas($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", "idiomas"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "idiomas"));// line 10echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["locales"]) || array_key_exists("locales", $context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.', 10, $this->source); })()));foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {// line 11echo " ";if (($context["k"] == 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.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "locale", [], "any", false, false, false, 11))) {echo "<option selected value=\"";// line 12echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 12), twig_array_merge(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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 12), ["_locale" => $context["k"]])), "html", null, true);echo "\" title=\"";echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);echo "</option>";} elseif (( // line 13(isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 13, $this->source); })()) != null)) {// line 14echo " <option value=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 14), twig_array_merge(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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 14), ["_locale" => $context["k"], "nombre" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 14, $this->source); })()), "translate", [0 => $context["k"]], "method", false, false, false, 14), "slug", [], "any", false, false, false, 14)])), "html", null, true);echo "\" title=\"";echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);echo "</option>";} elseif (( // line 15(isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 15, $this->source); })()) != null)) {// line 16echo " <option value=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 16), twig_array_merge(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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 16), ["_locale" => $context["k"], "nombre" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 16, $this->source); })()), "translate", [0 => $context["k"]], "method", false, false, false, 16), "slug", [], "any", false, false, false, 16)])), "html", null, true);echo "\" title=\"";echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);echo "</option>";}// line 18echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 21public function block_bodyId($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", "bodyId"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));echo "divisas";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 23public 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"));// line 24echo " <div class=\"title container\">";// line 25if (((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 25, $this->source); })()) != null)) {// line 26echo " <h1>";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 26, $this->source); })()), "altBanner", [], "any", false, false, false, 26), "html", null, true);echo "</h1>";} elseif (( // line 27(isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 27, $this->source); })()) != null)) {// line 28echo " <h1>";echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 28, $this->source); })()), "metaTitle", [], "any", false, false, false, 28), ["| Eurochange.es" => ""]), "html", null, true);echo "</h1>";}// line 30echo " </div><div id=\"cab-divisa\" class=\"container\"><div class=\"row\"><div class=\"col-12 col-lg-7 cambio\">";// line 39echo " <div class=\"sticky-top\"><div id=\"cont_camb\"><ul class=\"nav nav-tabs\" id=\"myTab\" role=\"tablist\"><li class=\"nav-item\" id=\"calc\" role=\"presentation\"><button class=\"nav-link active\" id=\"calcular-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#calcular_cambio\" type=\"button\" role=\"tab\" aria-controls=\"profile\" aria-selected=\"true\"><i class=\"fa-solid fa-calculator\"></i></button></li><li class=\"nav-item\" role=\"presentation\"><button class=\"nav-link\" id=\"comprar-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#calcular_cambio\" type=\"button\" role=\"tab\" aria-controls=\"profile\" aria-selected=\"false\">";// line 47echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Comprar_online"), "html", null, true);echo "</button></li></ul><div class=\"tab-content\" id=\"myTabContent\"><div class=\"tab-pane fade show active\" id=\"calcular_cambio\" role=\"tabpanel\" aria-labelledby=\"profile-tab\">";// line 53echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::oficinaAction", ["select_id" => "select_ofi2"]));echo "";// line 56echo "</div></div></div>";// line 61echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CotizacionesController::alerta"));echo "</div></div><div class=\"col-12 col-lg-5 colum-der\"><div id=\"cotizacionesJsonG\" style=\"display:none\">";// line 65echo twig_escape_filter($this->env, (isset($context["cotizacionesJsonG"]) || array_key_exists("cotizacionesJsonG", $context) ? $context["cotizacionesJsonG"] : (function () { throw new RuntimeError('Variable "cotizacionesJsonG" does not exist.', 65, $this->source); })()), "html", null, true);echo "</div><script src=\"https://cdn.amcharts.com/lib/3/amcharts.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/serial.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/themes/light.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/plugins/dataloader/dataloader.min.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/maps/js/worldLow.js\"></script>";// line 72if (((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 72, $this->source); })()) != null)) {// line 73echo " <p style=\"font-weight: bold;\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("EVOLUCIÓN DEL PRECIO DE VENTA DE"), "html", null, true);echo " ";echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 73, $this->source); })()), "nombre", [], "any", false, false, false, 73)), "html", null, true);echo "</p><div id=\"\" class=\"chartcontainer p5\" style=\"width:100%; height:300px; margin-bottom:30px;\"><div id=\"chartdiv-precioVenta\" style=\"width:100%;height:100%;\"></div></div><p style=\"font-weight: bold;\">";// line 80echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("EVOLUCIÓN DEL PRECIO DE COMPRA DE"), "html", null, true);echo " ";echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 80, $this->source); })()), "nombre", [], "any", false, false, false, 80)), "html", null, true);echo "</p><div id=\"\" class=\"chartcontainer p5\" style=\"width:100%; height:300px; margin-bottom:30px;\"><div id=\"chartdiv-precioCompra\" style=\"width:100%;height:100%;\"></div></div>";// line 84echo twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 84, $this->source); })()), "texto2", [], "any", false, false, false, 84);echo "";// line 85echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::principalesCambios"));echo "";} elseif (( // line 86(isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 86, $this->source); })()) != null)) {// line 87echo " <p style=\"font-weight: bold;\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("EVOLUCIÓN DEL PRECIO DE COMPRA DE"), "html", null, true);echo " ";if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 87, $this->source); })()), "divisaOrigen", [], "any", false, false, false, 87), "id", [], "any", false, false, false, 87) == 10)) {echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 87, $this->source); })()), "divisaDestino", [], "any", false, false, false, 87), "nombre", [], "any", false, false, false, 87)), "html", null, true);} else {echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 87, $this->source); })()), "divisaOrigen", [], "any", false, false, false, 87), "nombre", [], "any", false, false, false, 87)), "html", null, true);}echo "</p><div id=\"\" class=\"chartcontainer p5\" style=\"width:100%; height:300px; margin-bottom:30px;\"><div id=\"chartdiv-precioCompra\" style=\"width:100%;height:100%;\"></div></div>";// line 91if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 91, $this->source); })()), "divisaOrigen", [], "any", false, false, false, 91), "id", [], "any", false, false, false, 91) == 10)) {echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 91, $this->source); })()), "divisaOrigen", [], "any", false, false, false, 91), "texto2", [], "any", false, false, false, 91);} else {echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 91, $this->source); })()), "divisaDestino", [], "any", false, false, false, 91), "texto2", [], "any", false, false, false, 91);}// line 92echo " ";echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::principalesCambios"));echo "";}// line 94echo " ";if (((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 94, $this->source); })()) != null)) {// line 95echo " ";echo twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 95, $this->source); })()), "texto1", [], "any", false, false, false, 95);echo "<a id=\"bus\" href=\"/oficinas\">";// line 96echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Busca tu oficina de cambio mas cercana"), "html", null, true);echo "</a>";}// line 98echo " </div></div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 107public function block_funciones_eventos($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", "funciones_eventos"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "funciones_eventos"));// line 108echo "";// line 109$this->displayParentBlock("funciones_eventos", $context, $blocks);echo "<script>\$(document).ready(function() {var contenido = \$('#contenedorInv #contenedorMover').clone();if (\$('#calcular_cambio .parte-repetida').length === 0) {\$('#calcular_cambio').append(contenido);\$('#contenedorInv #contenedorMover').remove();}";// line 120if (((isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 120, $this->source); })()) != null)) {// line 121echo " \$('#selectQuieres').val(";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["divisa"]) || array_key_exists("divisa", $context) ? $context["divisa"] : (function () { throw new RuntimeError('Variable "divisa" does not exist.', 121, $this->source); })()), "id", [], "any", false, false, false, 121), "html", null, true);echo ").change();\$('#inputQuieres').trigger('change');";}// line 124echo "";// line 125if (((isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 125, $this->source); })()) != null)) {// line 126echo "";// line 127if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 127, $this->source); })()), "divisaOrigen", [], "any", false, false, false, 127), "id", [], "any", false, false, false, 127) != 10)) {echo "\$('#selectTienes').val(";// line 128echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 128, $this->source); })()), "divisaOrigen", [], "any", false, false, false, 128), "id", [], "any", false, false, false, 128), "html", null, true);echo ").change();\$('#inputTienes').trigger('change');";} else {// line 131echo " \$('#selectQuieres').val(";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["conversion"]) || array_key_exists("conversion", $context) ? $context["conversion"] : (function () { throw new RuntimeError('Variable "conversion" does not exist.', 131, $this->source); })()), "divisaDestino", [], "any", false, false, false, 131), "id", [], "any", false, false, false, 131), "html", null, true);echo ").change();\$('#inputQuieres').trigger('change');";}// line 134echo "";}// line 136echo "});\$(document).ready(function() {console.log(\"JS_JSN\");var idioma = \$('html').attr('lang');function loadCurrencies(jSONCurrencies,tipo) {var chartData = [];var cotizacion = \$.parseJSON(jSONCurrencies);for(var i in cotizacion){var newDate = new Date(cotizacion[i].dia);if(tipo=='precioVenta'){var precio = cotizacion[i].precioVenta;}else{var precio = cotizacion[i].precioCompra;}chartData.push({date: newDate,cotizaciones: precio});}return chartData;}var chart = AmCharts.makeChart(\"chartdiv-precioVenta\", {\"type\": \"serial\",\"dataProvider\": [{ \"country\": \"USA\", \"visits\": 3025 },{ \"country\": \"China\", \"visits\": 1882 },{ \"country\": \"Japan\", \"visits\": 1809 },{ \"country\": \"Germany\", \"visits\": 1322 },{ \"country\": \"UK\", \"visits\": 1122 },{ \"country\": \"France\", \"visits\": 1114 },{ \"country\": \"India\", \"visits\": 984 },{ \"country\": \"Spain\", \"visits\": 711 },{ \"country\": \"Netherlands\", \"visits\": 665 },{ \"country\": \"Russia\", \"visits\": 580 }],\"valueAxes\": [{\"title\": \"Visits\"}],\"graphs\": [{\"balloonText\": \"[[category]]: <b>[[value]]</b>\",\"fillColorsField\": \"color\",\"fillAlphas\": 0.9,\"lineAlpha\": 0.2,\"type\": \"column\",\"valueField\": \"visits\"}],\"categoryField\": \"country\",\"categoryAxis\": {\"gridPosition\": \"start\",\"labelRotation\": 45}});function loadChart(chartData,tipo){if(idioma == \"es\"){decimalSeparator=\",\",text=\"Cotizacion\"}else{decimalSeparator=\".\",text=\"Exchange rate\"}var chart = AmCharts.makeChart(\"chartdiv-\"+tipo, {\"language\": idioma,\"type\": \"serial\",\"theme\": \"light\",\"labelsEnabled\": false,\"autoMargins\": true,\"marginTop\": 5,\"dataProvider\": chartData,\"valueAxes\": [{\"position\": \"left\",\"title\": \"\"}],\"graphs\": [{\"id\": \"g1\",\"fillAlphas\": 0.4,\"valueField\": \"cotizaciones\",\"balloonText\": \"<div style='margin:5px; font-size:19px;'>\"+text+\":<b>[[value]]</b></div>\"}],\"chartScrollbar\": {\"graph\": \"g1\",\"scrollbarHeight\": 40,\"backgroundAlpha\": 0,\"selectedBackgroundAlpha\": 0.1,\"selectedBackgroundColor\": \"#888888\",\"graphFillAlpha\": 0,\"graphLineAlpha\": 0.5,\"selectedGraphFillAlpha\": 0,\"selectedGraphLineAlpha\": 1,\"autoGridCount\": true,\"color\": \"#AAAAAA\",\"offset\": 5,\"autoHide\": true},\"chartCursor\": {\"categoryBalloonDateFormat\": \"DD/MM\",\"cursorPosition\": \"mouse\"},\"categoryField\": \"date\",\"categoryAxis\": {\"minPeriod\": \"mm\",\"parseDates\": true},\"export\": {\"enabled\": true,\"dateFormat\": \"YYYY-MM-DD\"},\"numberFormatter\": {\"decimalSeparator\": decimalSeparator,},\"responsive\": {\"enabled\": true}});chart.addListener(\"dataUpdated\", zoomChart);// when we apply theme, the dataUpdated event is fired even before we add listener, so// we need to call zoomChart herezoomChart();// this method is called when chart is first inited as we listen for \"dataUpdated\" eventfunction zoomChart() {// different zoom methods can be used - zoomToIndexes, zoomToDates, zoomToCategoryValueschart.zoomToIndexes(chartData.length - 30, chartData.length);}AmCharts.addInitHandler(function(chart) {// check if scrollbar auto-hide is enabledif (chart.chartScrollbar === undefined || !chart.chartScrollbar.autoHide)return;// add zoomed eventschart.addListener(\"zoomed\", function(event) {// check if the chart is completely zoomed outvar enabled = true;if (event.startIndex === 0 && event.endIndex === (chart.dataProvider.length - 1))enabled = false;// show or hide the scrollbarif (event.chart.chartScrollbar.enabled === enabled)return;event.chart.chartScrollbar.enabled = enabledevent.chart.validateNow(false, true);});}, [\"serial\"]);}\$('body').on('change','.ticker-item .cambio_divisa_check', function () {var parent = \$(this).closest('.ticker-item');parent.find('.pVenta').toggle();parent.find('.pCompra').toggle();});\$('body').on('change','#widget-change .cambio_divisa_check', function () {var parent = \$(this).closest('#widget-change');parent.find('.pVenta').toggle();parent.find('.pCompra').toggle();\$('.chart-box').toggle();});if(\$(\".chartcontainer\").length != 0) {var jSONCurrencies = \$(\"#cotizacionesJsonG\").html();var chartData = loadCurrencies(jSONCurrencies,'precioVenta');loadChart(chartData,'precioVenta');var chartData = loadCurrencies(jSONCurrencies,'precioCompra');loadChart(chartData,'precioCompra');}});</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "default/divisas.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 452 => 136, 448 => 134, 441 => 131, 435 => 128, 431 => 127, 428 => 126, 426 => 125, 423 => 124, 416 => 121, 414 => 120, 400 => 109, 397 => 108, 387 => 107, 373 => 98, 368 => 96, 363 => 95, 360 => 94, 354 => 92, 348 => 91, 334 => 87, 332 => 86, 328 => 85, 324 => 84, 315 => 80, 302 => 73, 300 => 72, 290 => 65, 283 => 61, 276 => 56, 271 => 53, 262 => 47, 252 => 39, 245 => 30, 239 => 28, 237 => 27, 232 => 26, 230 => 25, 227 => 24, 217 => 23, 198 => 21, 184 => 18, 174 => 16, 172 => 15, 163 => 14, 161 => 13, 153 => 12, 148 => 11, 143 => 10, 133 => 9, 110 => 7, 87 => 6, 64 => 5, 41 => 2,);}public function getSourceContext(){return new Source("{# {% extends 'default/contenido.html.twig' %} #}{% extends 'base.html.twig' %}{% block title %}{% if divisa %}{{ divisa.metaTitle| replace({'| Eurochange.es':''}) }}{%else%}{{ conversion.metaTitle| replace({'| Eurochange.es':''}) }}{%endif%}{% endblock %}{% block metadescription %}{% if divisa %}{{ divisa.metaDescription }}{%else%}{{ conversion.metaDescription }}{%endif%}{% endblock %}{% block metakeywords %}{% if divisa %}{{ divisa.metaKeywords }}{%else%}{{ conversion.metaKeywords }}{%endif%}{% endblock %}{% block idiomas %}{% for k,idioma in locales %}{% if k == app.request.locale %}<option selected value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k})) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>{% elseif divisa != null %}<option value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k, nombre: divisa.translate(k).slug })) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>{% elseif conversion != null %}<option value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k, nombre: conversion.translate(k).slug })) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>{% endif %}{% endfor %}{% endblock %}{% block bodyId %}divisas{% endblock %}{% block body %}<div class=\"title container\">{% if divisa != null %}<h1>{{ divisa.altBanner }}</h1>{% elseif conversion != null %}<h1>{{ conversion.metaTitle| replace({'| Eurochange.es':''}) }}</h1>{% endif %}</div><div id=\"cab-divisa\" class=\"container\"><div class=\"row\"><div class=\"col-12 col-lg-7 cambio\">{#{% if ofi_var != 0 %}{% set currentDate = date() | date(\"Y-m-d\") %}<p id=\"precio\">{{ 'Precios para' | trans}} {{ oficina.nombre }} {{ currentDate }}</p>{% endif %}#}<div class=\"sticky-top\"><div id=\"cont_camb\"><ul class=\"nav nav-tabs\" id=\"myTab\" role=\"tablist\"><li class=\"nav-item\" id=\"calc\" role=\"presentation\"><button class=\"nav-link active\" id=\"calcular-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#calcular_cambio\" type=\"button\" role=\"tab\" aria-controls=\"profile\" aria-selected=\"true\"><i class=\"fa-solid fa-calculator\"></i></button></li><li class=\"nav-item\" role=\"presentation\"><button class=\"nav-link\" id=\"comprar-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#calcular_cambio\" type=\"button\" role=\"tab\" aria-controls=\"profile\" aria-selected=\"false\">{{ 'Comprar_online' | trans}}</button></li></ul><div class=\"tab-content\" id=\"myTabContent\"><div class=\"tab-pane fade show active\" id=\"calcular_cambio\" role=\"tabpanel\" aria-labelledby=\"profile-tab\">{{ render(controller('App\\\\Controller\\\\DefaultController::oficinaAction', { select_id: 'select_ofi2' } )) }}{#<p class=\"info-select\">{{ '* La tienda online solo permite la compra de divisas extranjeras (no Euros)' | trans}}</p>#}</div></div></div>{{ render(controller('App\\\\Controller\\\\CotizacionesController::alerta' )) }}</div></div><div class=\"col-12 col-lg-5 colum-der\"><div id=\"cotizacionesJsonG\" style=\"display:none\">{{cotizacionesJsonG}}</div><script src=\"https://cdn.amcharts.com/lib/3/amcharts.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/serial.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/themes/light.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/plugins/dataloader/dataloader.min.js\"></script><script src=\"https://cdn.amcharts.com/lib/3/maps/js/worldLow.js\"></script>{% if divisa != null %}<p style=\"font-weight: bold;\">{{ 'EVOLUCIÓN DEL PRECIO DE VENTA DE' | trans}} {{ divisa.nombre|upper }}</p><div id=\"\" class=\"chartcontainer p5\" style=\"width:100%; height:300px; margin-bottom:30px;\"><div id=\"chartdiv-precioVenta\" style=\"width:100%;height:100%;\"></div></div><p style=\"font-weight: bold;\">{{ 'EVOLUCIÓN DEL PRECIO DE COMPRA DE' | trans}} {{ divisa.nombre|upper }}</p><div id=\"\" class=\"chartcontainer p5\" style=\"width:100%; height:300px; margin-bottom:30px;\"><div id=\"chartdiv-precioCompra\" style=\"width:100%;height:100%;\"></div></div>{{ divisa.texto2|raw }}{{ render(controller('App\\\\Controller\\\\DefaultController::principalesCambios' )) }}{% elseif conversion != null %}<p style=\"font-weight: bold;\">{{ 'EVOLUCIÓN DEL PRECIO DE COMPRA DE' | trans}} {% if conversion.divisaOrigen.id == 10 %}{{ conversion.divisaDestino.nombre|upper }}{% else %}{{ conversion.divisaOrigen.nombre|upper }}{% endif %}</p><div id=\"\" class=\"chartcontainer p5\" style=\"width:100%; height:300px; margin-bottom:30px;\"><div id=\"chartdiv-precioCompra\" style=\"width:100%;height:100%;\"></div></div>{% if conversion.divisaOrigen.id == 10 %}{{ conversion.divisaOrigen.texto2|raw }}{% else %}{{ conversion.divisaDestino.texto2|raw }}{% endif %}{{ render(controller('App\\\\Controller\\\\DefaultController::principalesCambios' )) }}{% endif %}{% if divisa != null %}{{ divisa.texto1|raw }}<a id=\"bus\" href=\"/oficinas\">{{ 'Busca tu oficina de cambio mas cercana' | trans}}</a>{% endif %}</div></div></div>{% endblock %}{% block funciones_eventos %}{{ parent() }}<script>\$(document).ready(function() {var contenido = \$('#contenedorInv #contenedorMover').clone();if (\$('#calcular_cambio .parte-repetida').length === 0) {\$('#calcular_cambio').append(contenido);\$('#contenedorInv #contenedorMover').remove();}{% if divisa != null %}\$('#selectQuieres').val({{ divisa.id }}).change();\$('#inputQuieres').trigger('change');{% endif %}{% if conversion != null %}{% if conversion.divisaOrigen.id != 10 %}\$('#selectTienes').val({{conversion.divisaOrigen.id}}).change();\$('#inputTienes').trigger('change');{% else %}\$('#selectQuieres').val({{conversion.divisaDestino.id}}).change();\$('#inputQuieres').trigger('change');{% endif %}{% endif %}});\$(document).ready(function() {console.log(\"JS_JSN\");var idioma = \$('html').attr('lang');function loadCurrencies(jSONCurrencies,tipo) {var chartData = [];var cotizacion = \$.parseJSON(jSONCurrencies);for(var i in cotizacion){var newDate = new Date(cotizacion[i].dia);if(tipo=='precioVenta'){var precio = cotizacion[i].precioVenta;}else{var precio = cotizacion[i].precioCompra;}chartData.push({date: newDate,cotizaciones: precio});}return chartData;}var chart = AmCharts.makeChart(\"chartdiv-precioVenta\", {\"type\": \"serial\",\"dataProvider\": [{ \"country\": \"USA\", \"visits\": 3025 },{ \"country\": \"China\", \"visits\": 1882 },{ \"country\": \"Japan\", \"visits\": 1809 },{ \"country\": \"Germany\", \"visits\": 1322 },{ \"country\": \"UK\", \"visits\": 1122 },{ \"country\": \"France\", \"visits\": 1114 },{ \"country\": \"India\", \"visits\": 984 },{ \"country\": \"Spain\", \"visits\": 711 },{ \"country\": \"Netherlands\", \"visits\": 665 },{ \"country\": \"Russia\", \"visits\": 580 }],\"valueAxes\": [{\"title\": \"Visits\"}],\"graphs\": [{\"balloonText\": \"[[category]]: <b>[[value]]</b>\",\"fillColorsField\": \"color\",\"fillAlphas\": 0.9,\"lineAlpha\": 0.2,\"type\": \"column\",\"valueField\": \"visits\"}],\"categoryField\": \"country\",\"categoryAxis\": {\"gridPosition\": \"start\",\"labelRotation\": 45}});function loadChart(chartData,tipo){if(idioma == \"es\"){decimalSeparator=\",\",text=\"Cotizacion\"}else{decimalSeparator=\".\",text=\"Exchange rate\"}var chart = AmCharts.makeChart(\"chartdiv-\"+tipo, {\"language\": idioma,\"type\": \"serial\",\"theme\": \"light\",\"labelsEnabled\": false,\"autoMargins\": true,\"marginTop\": 5,\"dataProvider\": chartData,\"valueAxes\": [{\"position\": \"left\",\"title\": \"\"}],\"graphs\": [{\"id\": \"g1\",\"fillAlphas\": 0.4,\"valueField\": \"cotizaciones\",\"balloonText\": \"<div style='margin:5px; font-size:19px;'>\"+text+\":<b>[[value]]</b></div>\"}],\"chartScrollbar\": {\"graph\": \"g1\",\"scrollbarHeight\": 40,\"backgroundAlpha\": 0,\"selectedBackgroundAlpha\": 0.1,\"selectedBackgroundColor\": \"#888888\",\"graphFillAlpha\": 0,\"graphLineAlpha\": 0.5,\"selectedGraphFillAlpha\": 0,\"selectedGraphLineAlpha\": 1,\"autoGridCount\": true,\"color\": \"#AAAAAA\",\"offset\": 5,\"autoHide\": true},\"chartCursor\": {\"categoryBalloonDateFormat\": \"DD/MM\",\"cursorPosition\": \"mouse\"},\"categoryField\": \"date\",\"categoryAxis\": {\"minPeriod\": \"mm\",\"parseDates\": true},\"export\": {\"enabled\": true,\"dateFormat\": \"YYYY-MM-DD\"},\"numberFormatter\": {\"decimalSeparator\": decimalSeparator,},\"responsive\": {\"enabled\": true}});chart.addListener(\"dataUpdated\", zoomChart);// when we apply theme, the dataUpdated event is fired even before we add listener, so// we need to call zoomChart herezoomChart();// this method is called when chart is first inited as we listen for \"dataUpdated\" eventfunction zoomChart() {// different zoom methods can be used - zoomToIndexes, zoomToDates, zoomToCategoryValueschart.zoomToIndexes(chartData.length - 30, chartData.length);}AmCharts.addInitHandler(function(chart) {// check if scrollbar auto-hide is enabledif (chart.chartScrollbar === undefined || !chart.chartScrollbar.autoHide)return;// add zoomed eventschart.addListener(\"zoomed\", function(event) {// check if the chart is completely zoomed outvar enabled = true;if (event.startIndex === 0 && event.endIndex === (chart.dataProvider.length - 1))enabled = false;// show or hide the scrollbarif (event.chart.chartScrollbar.enabled === enabled)return;event.chart.chartScrollbar.enabled = enabledevent.chart.validateNow(false, true);});}, [\"serial\"]);}\$('body').on('change','.ticker-item .cambio_divisa_check', function () {var parent = \$(this).closest('.ticker-item');parent.find('.pVenta').toggle();parent.find('.pCompra').toggle();});\$('body').on('change','#widget-change .cambio_divisa_check', function () {var parent = \$(this).closest('#widget-change');parent.find('.pVenta').toggle();parent.find('.pCompra').toggle();\$('.chart-box').toggle();});if(\$(\".chartcontainer\").length != 0) {var jSONCurrencies = \$(\"#cotizacionesJsonG\").html();var chartData = loadCurrencies(jSONCurrencies,'precioVenta');loadChart(chartData,'precioVenta');var chartData = loadCurrencies(jSONCurrencies,'precioCompra');loadChart(chartData,'precioCompra');}});</script>{% endblock %}", "default/divisas.html.twig", "/home/alien/www/eurochange/templates/default/divisas.html.twig");}}