<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* Product/public_cart_order_checkout.html.twig */
class __TwigTemplate_9620903b6822df8897c3c805a118cd1a extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'classBody' => [$this, 'block_classBody'],
'ogTitle' => [$this, 'block_ogTitle'],
'javascripts' => [$this, 'block_javascripts'],
'stylesheets' => [$this, 'block_stylesheets'],
'contents' => [$this, 'block_contents'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "Common/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "Product/public_cart_order_checkout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/public_cart_order_checkout.html.twig"));
// line 2
$macros["function"] = $this->macros["function"] = $this->loadTemplate("Common/parts/functions.html.twig", "Product/public_cart_order_checkout.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("Common/base.html.twig", "Product/public_cart_order_checkout.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$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"));
yield "Formulario de compra";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_classBody(array $context, array $blocks = []): iterable
{
$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", "classBody"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "classBody"));
yield "product ";
yield from $this->yieldParentBlock("classBody", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_ogTitle(array $context, array $blocks = []): iterable
{
$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", "ogTitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogTitle"));
yield "Formulario de compra";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 10
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"https://js.stripe.com/v3/\"></script>
";
// line 12
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("select2_js");
yield "
";
// line 13
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("public_cart_order_checkout");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 16
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 17
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 18
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("select2_styles");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 21
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_contents(array $context, array $blocks = []): iterable
{
$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", "contents"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contents"));
// line 22
yield "
";
// line 23
$context["stripeIntentClientSecret"] = "";
// line 24
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["cartOrder"] ?? null), "stripePaymentIntent", [], "any", true, true, false, 24) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 24, $this->source); })()), "stripePaymentIntent", [], "any", false, false, false, 24))) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cartOrder"] ?? null), "stripePaymentIntent", [], "any", false, true, false, 24), "client_secret", [], "any", true, true, false, 24))) {
// line 25
yield " ";
$context["stripeIntentClientSecret"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 25, $this->source); })()), "stripePaymentIntent", [], "any", false, false, false, 25), "client_secret", [], "any", false, false, false, 25);
}
// line 27
yield "
<div id=\"public_cart_order_checkout_page\" ng-controller=\"cartOrderCheckoutCtrl\"
data-cart-order-id=\"";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 30, $this->source); })()), "id", [], "any", false, false, false, 30), "html", null, true);
yield "\"
";
// line 31
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 32
yield " data-grantuser-username=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "user", [], "any", false, false, false, 32), "user", [], "any", false, false, false, 32), "firstName", [], "any", false, false, false, 32), "html", null, true);
yield "\"
data-grantuser-id=\"";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "user", [], "any", false, false, false, 33), "user", [], "any", false, false, false, 33), "id", [], "any", false, false, false, 33), "html", null, true);
yield "\"
";
}
// line 35
yield " class=\"container pt-5 pb-9\">
<section class=\"py-0\">
<div class=\"container-small\">
<nav class=\"mb-3\" aria-label=\"breadcrumb\">
<ol class=\"breadcrumb mb-0\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 41
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("web_init");
yield "\">Inicio</a></li>
";
// line 42
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 43
yield " <li class=\"breadcrumb-item\"><a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("web_app_user_dashboard");
yield "\">Mi cuenta</a></li>
";
}
// line 45
yield " <li class=\"breadcrumb-item active\" aria-current=\"page\">Formulario de compra</li>
</ol>
</nav>
<h2 class=\"mb-5\">Compra</h2>
<div class=\"row justify-content-between\">
<div class=\"col-lg-7 col-xl-7\">
";
// line 53
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 53, $this->source); })()), "status", [], "any", false, false, false, 53) == "PAID")) {
// line 54
yield " <div class=\"card theme-wizard mb-5\" >
<div class=\"card-header bg-100 pt-3 pb-2 border-bottom-0\">
<ul class=\"nav justify-content-between nav-wizard\">
<li class=\"nav-item\">
<div class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-lock\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Cuenta</span>
</div>
</div>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-wallet\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Pago</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<div class=\"nav-link active fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-check\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Finalizado2</span>
</div>
</div>
</li>
</ul>
</div>
<div class=\"card-body pt-4 pb-0\">
<div class=\"tab-content\">
<div class=\"tab-pane active\" role=\"tabpanel\" >
";
// line 98
yield $macros["function"]->getTemplateForMacro("macro_showFlashes", $context, 98, $this->getSourceContext())->macro_showFlashes(...[]);
yield "
<div class=\"alert alert-soft-success\" role=\"alert\">Compra finalizada!</div>
<div class=\"row gx-4 gy-6 g-xl-7 justify-content-sm-center justify-content-xl-start mb-4\">
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Cuenta</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"user\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Nombre</h6>
</div>
<div class=\"fs--1 ms-4\">";
// line 109
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 109, $this->source); })()), "user", [], "any", false, false, false, 109), "fullName", [], "any", false, false, false, 109), "html", null, true);
yield "</div>
</div>
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"mail\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Email</h6>
</div>
<div class=\"fs--1 ms-4\">";
// line 116
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 116, $this->source); })()), "user", [], "any", false, false, false, 116), "email", [], "any", false, false, false, 116), "html", null, true);
yield "</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Pago</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"file\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">#Pedido</h6>
</div>
<div class=\"fs--1 ms-4\" >";
// line 128
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 128, $this->source); })()), "cartOrderNumber", [], "any", false, false, false, 128), "html", null, true);
yield "</div>
</div>
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"credit-card\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Tipo de pago</h6>
</div>
<div class=\"fs--1 ms-4\" >
";
// line 136
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 136, $this->source); })()), "cartOrderType", [], "any", false, false, false, 136) == "ORDER_TYPE_LICENSE")) {
// line 137
yield " ";
if (CoreExtension::inFilter("payment_plan", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 137, $this->source); })()), "cartItem", [0], "method", false, false, false, 137), "meta", [], "any", false, false, false, 137))) {
// line 138
yield " Suscripción
";
// line 139
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 139, $this->source); })()), "cartItem", [0], "method", false, false, false, 139), "meta", [], "any", false, false, false, 139), "payment_plan", [], "array", false, false, false, 139) == "LICENSE_PAYMENT_PLAN_ANNUAL")) {
// line 140
yield " anual renovable
";
} else {
// line 142
yield " mensual renovable
";
}
// line 144
yield " ";
}
// line 145
yield " ";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 145, $this->source); })()), "totalEuros", [], "any", false, false, false, 145) > 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 145, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 145) == 0))) {
// line 146
yield " Tarjeta
";
// line 147
if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 147, $this->source); })()), "user", [], "any", false, false, false, 147), "user", [], "any", false, false, false, 147), "hasRole", ["ROLE_ADMIN"], "method", false, false, false, 147)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cartOrder"] ?? null), "stripePaymentIntent", [], "any", false, true, false, 147), "id", [], "any", true, true, false, 147))) {
// line 148
yield " (<a href=\"https://dashboard.stripe.com/test/payments/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 148, $this->source); })()), "stripePaymentIntent", [], "any", false, false, false, 148), "id", [], "any", false, false, false, 148), "html", null, true);
yield "\" target=\"_blank\">Ver detalles en sStripe</a>)
";
}
// line 150
yield " ";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 150, $this->source); })()), "totalEuros", [], "any", false, false, false, 150) == 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 150, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 150) > 0))) {
// line 151
yield " Whatercoins
";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, // line 152
(isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 152, $this->source); })()), "totalEuros", [], "any", false, false, false, 152) > 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 152, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 152) > 0))) {
// line 153
yield " Tarjeta y Whatercoins
";
}
// line 155
yield " </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
} elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 168
yield " ";
yield $macros["function"]->getTemplateForMacro("macro_showFlashes", $context, 168, $this->getSourceContext())->macro_showFlashes(...[]);
yield "
";
// line 169
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 169, $this->source); })()), ["Form/bootstrap_5_layout.html.twig"], true);
// line 170
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 170, $this->source); })()), 'form_start', ["attr" => ["class" => "needs-validation", "id" => "complete-cart-order-form", "method" => "POST", "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("web_public_cart_order_checkout", ["cartOrderId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 170, $this->source); })()), "id", [], "any", false, false, false, 170)])]]);
yield "
";
// line 171
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 171, $this->source); })()), 'errors');
yield "
<div class=\"card theme-wizard mb-5\" >
<div class=\"card-header bg-100 pt-3 pb-2 border-bottom-0\">
<ul class=\"nav justify-content-between nav-wizard\">
<li class=\"nav-item\">
<a class=\"nav-link active fw-semi-bold step-button\" href=\"#\" id=\"wizard-tab-1\" data-step-number=\"1\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-lock\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Cuenta</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold step-button\" href=\"#\" id=\"wizard-tab-2\" data-step-number=\"2\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-file-alt\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Envio</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold step-button\" href=\"#\" id=\"wizard-tab-3\" data-step-number=\"2\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-wallet\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Pago</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold step-button pending-press-pay\" href=\"#\" id=\"wizard-tab-4\" data-step-number=\"3\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-check\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Finalizado</span>
</div>
</a>
</li>
</ul>
</div>
<div class=\"card-body pt-4 pb-0\">
<div class=\"tab-content\">
<div class=\"tab-pane active\" role=\"tabpanel\" id=\"wizard-content-1\">
<div class=\"row g-3 mb-3\">
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
";
// line 231
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 231, $this->source); })()), "firstName", [], "any", false, false, false, 231), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.first_name"]);
yield "
";
// line 232
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 232, $this->source); })()), "firstName", [], "any", false, false, false, 232), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "firstName"]]);
yield "
";
// line 233
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 233, $this->source); })()), "firstName", [], "any", false, false, false, 233), 'errors');
yield "
</div>
</div>
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
";
// line 238
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 238, $this->source); })()), "lastName", [], "any", false, false, false, 238), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.last_name"]);
yield "
";
// line 239
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 239, $this->source); })()), "lastName", [], "any", false, false, false, 239), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "lastName"]]);
yield "
";
// line 240
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 240, $this->source); })()), "lastName", [], "any", false, false, false, 240), 'errors');
yield "
</div>
</div>
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
";
// line 245
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 245, $this->source); })()), "email", [], "any", false, false, false, 245), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.email"]);
yield "
";
// line 246
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 246, $this->source); })()), "email", [], "any", false, false, false, 246), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "email"]]);
yield "
";
// line 247
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 247, $this->source); })()), "email", [], "any", false, false, false, 247), 'errors');
yield "
</div>
</div>
</div>
</div>
<div class=\"tab-pane\" role=\"tabpanel\" id=\"wizard-content-2\">
<div class=\"row g-3 mb-3\">
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
";
// line 257
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 257, $this->source); })()), "shippingAddress", [], "any", false, false, false, 257), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.shipping_address"]);
yield "
";
// line 258
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 258, $this->source); })()), "shippingAddress", [], "any", false, false, false, 258), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 259
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 259, $this->source); })()), "shippingAddress", [], "any", false, false, false, 259), 'errors');
yield "
</div>
</div>
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
";
// line 264
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 264, $this->source); })()), "shippingTown", [], "any", false, false, false, 264), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.shipping_town"]);
yield "
";
// line 265
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 265, $this->source); })()), "shippingTown", [], "any", false, false, false, 265), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 266
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 266, $this->source); })()), "shippingTown", [], "any", false, false, false, 266), 'errors');
yield "
</div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 271
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 271, $this->source); })()), "shippingPostalCode", [], "any", false, false, false, 271), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.shipping_postal_code"]);
yield "
";
// line 272
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 272, $this->source); })()), "shippingPostalCode", [], "any", false, false, false, 272), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 273
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 273, $this->source); })()), "shippingPostalCode", [], "any", false, false, false, 273), 'errors');
yield "
</div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 278
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 278, $this->source); })()), "shippingCountry", [], "any", false, false, false, 278), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "cart_order.app.complete_order.fields.shipping_country"]);
yield "
";
// line 279
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 279, $this->source); })()), "shippingCountry", [], "any", false, false, false, 279), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 280
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 280, $this->source); })()), "shippingCountry", [], "any", false, false, false, 280), 'errors');
yield "
</div>
</div>
</div>
</div>
<div class=\"tab-pane\" role=\"tabpanel\" id=\"wizard-content-3\">
";
// line 287
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 287, $this->source); })()), "totalEuros", [], "any", false, false, false, 287) > 0)) {
// line 288
yield " <div class=\"row g-3 mb-3 mt-3\" id=\"stripe-payment-element\" ng-init=\"initCartOrder('";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 288, $this->source); })()), "id", [], "any", false, false, false, 288), "html", null, true);
yield "','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 288, $this->source); })()), "totalEuros", [], "any", false, false, false, 288), "html", null, true);
yield "','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::urlencode(json_encode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 288, $this->source); })()), "shippingItems", [], "any", false, false, false, 288))), "html", null, true);
yield "','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["stripe_public_key"]) || array_key_exists("stripe_public_key", $context) ? $context["stripe_public_key"] : (function () { throw new RuntimeError('Variable "stripe_public_key" does not exist.', 288, $this->source); })()), "html", null, true);
yield "','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["stripeIntentClientSecret"]) || array_key_exists("stripeIntentClientSecret", $context) ? $context["stripeIntentClientSecret"] : (function () { throw new RuntimeError('Variable "stripeIntentClientSecret" does not exist.', 288, $this->source); })()), "html", null, true);
yield "')\">
<div class=\"col\">
<div class=\"mb-2 mb-sm-0\">
<label class=\"form-label text-900 required\" >Tarjeta de credito</label>
<div id=\"card-element\" class=\"form-control\">
</div>
</div>
</div>
</div>
";
} else {
// line 298
yield " <div ng-init=\"initCartOrder('";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 298, $this->source); })()), "id", [], "any", false, false, false, 298), "html", null, true);
yield "')\"></div>
";
}
// line 300
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 300, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 300) > 0)) {
// line 301
yield " <div class=\"row g-3 mb-3 mt-3\" id=\"stripe-payment-element\">
<div class=\"col\">
<div class=\"mb-2 mb-sm-0\">
<label class=\"form-label text-900 required\" >Whatercoins</label>
<div class=\"form-check\">
<input type=\"checkbox\" checked class=\"form-check-input\" id=\"accept-whatercoinf-checkbox\"/>
<label class=\"form-check-label text-900 required\" >El pago incluye ";
// line 307
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 307, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 307), "html", null, true);
yield " wc de mi cuenta.</label>
</div>
</div>
</div>
</div>
";
}
// line 313
yield " </div>
<div class=\"tab-pane\" role=\"tabpanel\" id=\"wizard-content-4\">
<div class=\"row flex-center pb-8 pt-4 gx-3 gy-4\">
<div class=\"col-12 \">
<div class=\"text-center text-sm-start\">
<h3 class=\"mb-3 text-center\">Resumen</h3>
<div class=\"row gx-4 gy-6 g-xl-7 justify-content-sm-center justify-content-xl-start mb-4 pt-3\">
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Cuenta</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"user\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Nombre</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-fullname\">";
// line 328
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 328, $this->source); })()), "user", [], "any", false, false, false, 328), "fullName", [], "any", false, false, false, 328), "html", null, true);
yield "</div>
</div>
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"mail\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Email</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-email\">";
// line 335
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 335, $this->source); })()), "user", [], "any", false, false, false, 335), "email", [], "any", false, false, false, 335), "html", null, true);
yield "</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Pago</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"credit-card\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Tipo de pago</h6>
</div>
";
// line 348
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 348, $this->source); })()), "cartOrderType", [], "any", false, false, false, 348) == "ORDER_TYPE_LICENSE")) {
// line 349
yield " ";
if (CoreExtension::inFilter("payment_plan", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 349, $this->source); })()), "cartItem", [0], "method", false, false, false, 349), "meta", [], "any", false, false, false, 349))) {
// line 350
yield " Suscripción
";
// line 351
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 351, $this->source); })()), "cartItem", [0], "method", false, false, false, 351), "meta", [], "any", false, false, false, 351), "payment_plan", [], "array", false, false, false, 351) == "LICENSE_PAYMENT_PLAN_ANNUAL")) {
// line 352
yield " anual renovable
";
} else {
// line 354
yield " mensual renovable
";
}
// line 356
yield " ";
}
// line 357
yield " ";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 357, $this->source); })()), "totalEuros", [], "any", false, false, false, 357) > 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 357, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 357) == 0))) {
// line 358
yield " Tarjeta
";
// line 359
if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 359, $this->source); })()), "user", [], "any", false, false, false, 359), "user", [], "any", false, false, false, 359), "hasRole", ["ROLE_ADMIN"], "method", false, false, false, 359)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cartOrder"] ?? null), "stripePaymentIntent", [], "any", false, true, false, 359), "id", [], "any", true, true, false, 359))) {
// line 360
yield " (<a href=\"https://dashboard.stripe.com/test/payments/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 360, $this->source); })()), "stripePaymentIntent", [], "any", false, false, false, 360), "id", [], "any", false, false, false, 360), "html", null, true);
yield "\" target=\"_blank\">Ver detalles en sStripe</a>)
";
}
// line 362
yield " ";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 362, $this->source); })()), "totalEuros", [], "any", false, false, false, 362) == 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 362, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 362) > 0))) {
// line 363
yield " Whatercoins
";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, // line 364
(isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 364, $this->source); })()), "totalEuros", [], "any", false, false, false, 364) > 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 364, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 364) > 0))) {
// line 365
yield " Tarjeta y Whatercoins
";
}
// line 367
yield "
</div>
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"file\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">#Pedido</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-number\">Pendiente</div>
</div>
</div>
</div>
<div class=\"col-12\">
<h4 class=\"mb-5\">Dirección de envío</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"credit-card\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Dirección</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-shipping-address\"></div>
</div>
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"file\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Método de envío</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-shipping-method\"></div>
</div>
</div>
</div>
</div>
<div class=\"col-12\">
<div class=\"text-center\">
<div class=\"alert alert-soft-warning\" role=\"alert\" id=\"payment-info-message\">
Solo queda un paso, pulse el botón para confirmar el pedido.
</div>
<button class=\"btn btn-success px-6\" type=\"button\" id=\"payment-button\" ng-click=\"clickPayment()\">
";
// line 406
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 406, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 406) > 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 406, $this->source); })()), "totalEuros", [], "any", false, false, false, 406) == 0))) {
// line 407
yield " Confirmar pedido por <span id=\"resume-order-price\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 407, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 407), 2, ",", "."), "html", null, true);
yield " whatercoins</span>
";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, // line 408
(isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 408, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 408) > 0) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 408, $this->source); })()), "totalEuros", [], "any", false, false, false, 408) > 0))) {
// line 409
yield " Confirmar pedido por <span id=\"resume-order-price\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 409, $this->source); })()), "totalEuros", [], "any", false, false, false, 409), 2, ",", "."), "html", null, true);
yield "€ y ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 409, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 409), 2, ",", "."), "html", null, true);
yield " whatercoins</span>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 410
(isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 410, $this->source); })()), "totalEuros", [], "any", false, false, false, 410) > 0)) {
// line 411
yield " Confirmar pedido por <span id=\"resume-order-price\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 411, $this->source); })()), "totalEuros", [], "any", false, false, false, 411), 2, ",", "."), "html", null, true);
yield "€</span>
";
}
// line 413
yield " </button>
<a href=\"";
// line 414
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("web_public_cart_order_details", ["cartOrderId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 414, $this->source); })()), "id", [], "any", false, false, false, 414)]), "html", null, true);
yield "\" class=\"btn btn-primary px-6 d-none\" type=\"button\" id=\"go-details-button\" >
Continuar
</a>
<div class=\"mt-3\">
<span class=\"spinner-border spinner-border-sm d-none\" role=\"status\" aria-hidden=\"true\" id=\"payment-spinner\"></span>
</div>
<div class=\"alert alert-soft-danger d-none mt-3\" id=\"payment-error-message\" role=\"alert\"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"card-footer border-top-0\" >
<div class=\"d-flex pager wizard list-inline mb-0\">
<button class=\"d-none btn btn-link ps-0\" type=\"button\" >
<span class=\"fas fa-chevron-left me-1\" data-fa-transform=\"shrink-3\"></span>
Previous
</button>
<div class=\"flex-1 text-end\">
<button class=\"btn btn-primary px-6 px-sm-6\"
type=\"button\" id=\"wizart-next-button\">
Siguiente
<span class=\"fas fa-chevron-right ms-1\" data-fa-transform=\"shrink-3\"> </span>
</button>
</div>
</div>
</div>
</div>
";
// line 447
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 447, $this->source); })()), 'rest');
yield "
";
// line 448
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["appUserConfirmCartOrderForm"]) || array_key_exists("appUserConfirmCartOrderForm", $context) ? $context["appUserConfirmCartOrderForm"] : (function () { throw new RuntimeError('Variable "appUserConfirmCartOrderForm" does not exist.', 448, $this->source); })()), 'form_end');
yield "
";
} else {
// line 451
yield " <div class=\"card theme-wizard mb-5\" >
<div class=\"card-header bg-100 pt-3 pb-2 border-bottom-0\">
<ul class=\"nav justify-content-between nav-wizard\">
<li class=\"nav-item\">
<div class=\"nav-link active fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-lock\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Cuenta</span>
</div>
</div>
</li>
<li class=\"nav-item\">
<div class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-file-alt\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Facturación</span>
</div>
</div>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-wallet\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Pago</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<div class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-check\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Finalizado</span>
</div>
</div>
</li>
</ul>
</div>
<div class=\"card-body pt-4 pb-0\">
<div class=\"tab-content\">
<div class=\"tab-pane active\" role=\"tabpanel\" >
";
// line 507
yield $macros["function"]->getTemplateForMacro("macro_showFlashes", $context, 507, $this->getSourceContext())->macro_showFlashes(...[]);
yield "
<div class=\"fw-bolder mb-3\">Identifícate en whater...</div>
";
// line 509
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 509, $this->source); })()), ["Form/bootstrap_5_layout.html.twig"], true);
// line 510
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 510, $this->source); })()), 'form_start', ["attr" => ["class" => "needs-validation"]]);
yield "
";
// line 511
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 511, $this->source); })()), 'errors');
yield "
<div class=\"row g-3 mb-3\">
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 515
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 515, $this->source); })()), "username", [], "any", false, false, false, 515), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.login.username"]);
yield "
";
// line 516
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 516, $this->source); })()), "username", [], "any", false, false, false, 516), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "username"]]);
yield "
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2\">
";
// line 521
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 521, $this->source); })()), "password", [], "any", false, false, false, 521), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.login.password"]);
yield "
";
// line 522
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 522, $this->source); })()), "password", [], "any", false, false, false, 522), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "current-password"]]);
yield "
</div>
</div>
<div class=\"row flex-between-center mb-2\">
<div class=\"col-auto\">
";
// line 527
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 527, $this->source); })()), "remember_me", [], "any", false, false, false, 527), 'widget', ["attr" => ["class" => "form-check-input"]]);
yield "
<label class=\"form-label fs--1 text-none\" for=\"login_remember_me\">";
// line 528
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("web.security.login.rememberme"), "html", null, true);
yield "</label>
</div>
<div class=\"col-auto\">
<a class=\"fs--1 fw-semi-bold\" href=\"";
// line 531
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("web_forgot_password");
yield "\">
¿Olvidaste la contraseña?
</a>
</div>
</div>
</div>
<div class=\"d-flex pager wizard list-inline mb-4\">
<button class=\"d-none btn btn-link ps-0\" type=\"button\">
<span class=\"fas fa-chevron-left me-1\" data-fa-transform=\"shrink-3\"></span>
Previous
</button>
<div class=\"flex-1 text-end\">
<button class=\"btn btn-primary px-6 px-sm-6\" type=\"submit\" >
Entrar
</button>
</div>
</div>
";
// line 548
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 548, $this->source); })()), 'rest');
yield "
";
// line 549
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 549, $this->source); })()), 'form_end');
yield "
</div>
<hr class=\"solid\"></hr>
<div class=\"fw-bolder mb-3\">...ó crea una nueva cuenta.</div>
";
// line 555
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 555, $this->source); })()), ["Form/bootstrap_5_layout.html.twig"], true);
// line 556
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 556, $this->source); })()), 'form_start', ["attr" => ["class" => "needs-validation"]]);
yield "
";
// line 557
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 557, $this->source); })()), 'errors');
yield "
<div class=\"row g-3 mb-3\">
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 561
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 561, $this->source); })()), "firstName", [], "any", false, false, false, 561), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.signup.fields.first_name"]);
yield "
";
// line 562
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 562, $this->source); })()), "firstName", [], "any", false, false, false, 562), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "firstName"]]);
yield "
";
// line 563
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 563, $this->source); })()), "firstName", [], "any", false, false, false, 563), 'errors');
yield "
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 568
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 568, $this->source); })()), "lastName", [], "any", false, false, false, 568), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.signup.fields.last_name"]);
yield "
";
// line 569
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 569, $this->source); })()), "lastName", [], "any", false, false, false, 569), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "lastName"]]);
yield "
";
// line 570
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 570, $this->source); })()), "lastName", [], "any", false, false, false, 570), 'errors');
yield "
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 575
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 575, $this->source); })()), "email", [], "any", false, false, false, 575), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.signup.fields.email"]);
yield "
";
// line 576
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 576, $this->source); })()), "email", [], "any", false, false, false, 576), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "email"]]);
yield "
";
// line 577
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 577, $this->source); })()), "email", [], "any", false, false, false, 577), 'errors');
yield "
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
";
// line 582
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 582, $this->source); })()), "password", [], "any", false, false, false, 582), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.signup.fields.password"]);
yield "
";
// line 583
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 583, $this->source); })()), "password", [], "any", false, false, false, 583), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "password"]]);
yield "
";
// line 584
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 584, $this->source); })()), "password", [], "any", false, false, false, 584), 'errors');
yield "
</div>
</div>
<div class=\"col-sm-6\" ng-init=\"initSelectCountry()\">
<label class=\"form-label text-900 required\">País</label>
<select class=\"form-select country-field\" aria-label=\"Tu país\"
id=\"select_country\"
data-country-search-url=\"";
// line 591
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("web_api_public_zones_country_list");
yield "\">
<option value=\"216abc6f-594d-49ea-8977-8976ca33e92c\" selected=\"selected\">España</option>
</select>
</div>
<div class=\"col-sm-6\" ng-init=\"initSelectTowns()\">
<div class=\"mb-2 mb-sm-0\" >
";
// line 597
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 597, $this->source); })()), "town", [], "any", false, false, false, 597), 'label', ["label_attr" => ["class" => "form-label text-900"], "label" => "web.security.signup.fields.town"]);
yield "
";
// line 598
CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 598, $this->source); })()), "town", [], "any", false, false, false, 598), "setRendered", [], "any", false, false, false, 598);
// line 599
yield " <select class=\"form-select clinics-field\" aria-label=\"Tu localidad\"
id=\"select_town\"
name=\"";
// line 601
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 601, $this->source); })()), "town", [], "any", false, false, false, 601), "vars", [], "any", false, false, false, 601), "full_name", [], "any", false, false, false, 601), "html", null, true);
yield "\"
required=\"required\"
data-town-search-url=\"";
// line 603
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("web_api_public_zones_town_list");
yield "\">
</select>
";
// line 605
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 605, $this->source); })()), "town", [], "any", false, false, false, 605), 'errors');
yield "
</div>
</div>
";
// line 608
CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 608, $this->source); })()), "phone", [], "any", false, false, false, 608), "setRendered", [], "any", false, false, false, 608);
// line 609
yield " ";
CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 609, $this->source); })()), "publicComments", [], "any", false, false, false, 609), "setRendered", [], "any", false, false, false, 609);
// line 610
yield " ";
CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 610, $this->source); })()), "selectedTypes", [], "any", false, false, false, 610), "setRendered", [], "any", false, false, false, 610);
// line 611
yield " <div class=\"form-check mb-3 ms-3\">
";
// line 612
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 612, $this->source); })()), "terms", [], "any", false, false, false, 612), 'errors');
yield "
<input class=\"form-check-input\" id=\"termsService\" type=\"checkbox\"
required=\"required\"
name=\"";
// line 615
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 615, $this->source); })()), "terms", [], "any", false, false, false, 615)), "html", null, true);
yield "\">
<label class=\"form-label fs--1 text-none\" for=\"termsService\">Acepta nuestros <a href=\"";
// line 616
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("web_terms");
yield "\" target=\"_blank\">términos y condiciones</a>.</label>
</div>
<div class=\"g-3 mb-3\">
";
// line 619
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 619, $this->source); })()), "recaptcha", [], "any", false, false, false, 619), 'widget', ["attr" => ["class" => "my-3"]]);
yield "
</div>
</div>
<div class=\"d-flex pager wizard list-inline mb-4\">
<button class=\"d-none btn btn-link ps-0\" type=\"button\" >
<span class=\"fas fa-chevron-left me-1\" data-fa-transform=\"shrink-3\"></span>
Previous
</button>
<div class=\"flex-1 text-end\">
<button class=\"btn btn-primary px-6 px-sm-6\" type=\"submit\">
Registrarse
</button>
</div>
</div>
";
// line 633
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 633, $this->source); })()), 'rest');
yield "
";
// line 634
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["signupForm"]) || array_key_exists("signupForm", $context) ? $context["signupForm"] : (function () { throw new RuntimeError('Variable "signupForm" does not exist.', 634, $this->source); })()), 'form_end');
yield "
</div>
</div>
</div>
";
}
// line 641
yield " </div>
<div class=\"col-lg-5 col-xl-5\">
<div class=\"card mt-3 mt-lg-0\">
<div class=\"card-body\">
<div class=\"d-flex align-items-center justify-content-between\">
<h3 class=\"mb-0\">Pedido</h3>
</div>
<div class=\"border-dashed border-bottom mt-4\">
<div class=\"ms-n2\">
";
// line 651
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 651, $this->source); })()), "cartOrderItems", [], "any", false, false, false, 651));
foreach ($context['_seq'] as $context["_key"] => $context["cartOrderItem"]) {
yield "
<div class=\"row align-items-center mb-2 g-3\">
<div class=\"col-8 col-md-7 col-lg-8\">
<div class=\"d-flex align-items-center\">
<img class=\"me-2 ms-1 img-thumbnail\" src=\"";
// line 655
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/logo_v3.png"), "whaterpoint_simple_logo_40"), "html", null, true);
yield "\" width=\"40\" alt=\"\">
<div class=\"\">
<div class=\"fs--1 lh-base\">
<span class=\"fw-semi-bold text-1000\">";
// line 658
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cartOrderItem"], "itemDescription", [], "any", false, false, false, 658), "html", null, true);
yield "</span>
<br/>
<i>Proveedor: ";
// line 660
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["cartOrderItem"], "product", [], "any", false, false, false, 660), "whaterOrganization", [], "any", false, false, false, 660), "publicName", [], "any", false, false, false, 660), "html", null, true);
yield "</i>
</div>
";
// line 662
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 662, $this->source); })()), "cartOrderType", [], "any", false, false, false, 662) == "ORDER_TYPE_LICENSE") && CoreExtension::inFilter("payment_plan", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 662, $this->source); })()), "cartItem", [0], "method", false, false, false, 662), "meta", [], "any", false, false, false, 662)))) {
// line 663
yield " <div class=\"text-muted fs--1\">
Suscripción
";
// line 665
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 665, $this->source); })()), "cartItem", [0], "method", false, false, false, 665), "meta", [], "any", false, false, false, 665), "payment_plan", [], "array", false, false, false, 665) == "LICENSE_PAYMENT_PLAN_ANNUAL")) {
// line 666
yield " anual renovable desde el ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 666, $this->source); })()), "organizationLicense", [], "any", false, false, false, 666), "startDate", [], "any", false, false, false, 666), "d-m-Y"), "html", null, true);
yield "
";
} else {
// line 668
yield " mensual renovable desde el ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 668, $this->source); })()), "organizationLicense", [], "any", false, false, false, 668), "startDate", [], "any", false, false, false, 668), "d-m-Y"), "html", null, true);
yield "
";
}
// line 670
yield " </div>
";
}
// line 672
yield " </div>
</div>
</div>
<div class=\"col-1\">
<h6 class=\"fs--2 mb-0\">
x";
// line 677
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cartOrderItem"], "units", [], "any", false, false, false, 677), "html", null, true);
yield "
</h6>
</div>
<div class=\"col-3 ps-0\">
<h5 class=\"mb-0 fw-semi-bold text-end\">
";
// line 682
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env, $this->source, $context["cartOrderItem"], "units", [], "any", false, false, false, 682) * CoreExtension::getAttribute($this->env, $this->source, $context["cartOrderItem"], "pricePerUnit", [], "any", false, false, false, 682)), 2, ",", "."), "html", null, true);
yield " €
</h5>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['cartOrderItem'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 686
yield "
</div>
</div>
<div class=\"border-dashed border-bottom mt-4\">
";
// line 690
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 690, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 690) > 0)) {
// line 691
yield " <div class=\"d-flex justify-content-between mb-2\">
<h5 class=\"text-900 fw-semi-bold text-success\">Whatercoins: </h5>
<h5 class=\"text-900 fw-semi-bold text-success\" id=\"summary-whatercoins\" data-summary-whatercoins=\"";
// line 693
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 693, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 693), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 693, $this->source); })()), "totalWhatercoins", [], "any", false, false, false, 693), 2, ",", "."), "html", null, true);
yield "</h5>
</div>
";
}
// line 696
yield " <div class=\"d-flex justify-content-between mb-2\">
<h5 class=\"text-900 fw-semi-bold\">Gastos de envío: </h5>
<h5 class=\"text-900 fw-semi-bold\" id=\"summary-shipping-costs\" >-- €</h5>
</div>
</div>
";
// line 701
$context["shippingCostTaxes"] = Twig\Extension\CoreExtension::round(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 701, $this->source); })()), "totalShippingCost", [], "any", false, false, false, 701) * (isset($context["shipping_taxes_percent"]) || array_key_exists("shipping_taxes_percent", $context) ? $context["shipping_taxes_percent"] : (function () { throw new RuntimeError('Variable "shipping_taxes_percent" does not exist.', 701, $this->source); })())) / 100), 2, "floor");
// line 702
yield " <div class=\"d-flex justify-content-between border-dashed-y pt-3\">
<h4 class=\"mb-0\">Total :</h4>
<h4 class=\"mb-0\" id=\"summary-total\" data-summary-total=\"";
// line 704
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 704, $this->source); })()), "totalEuros", [], "any", false, false, false, 704) + CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 704, $this->source); })()), "totalShippingCost", [], "any", false, false, false, 704)), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 704, $this->source); })()), "totalEuros", [], "any", false, false, false, 704) + CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartOrder"]) || array_key_exists("cartOrder", $context) ? $context["cartOrder"] : (function () { throw new RuntimeError('Variable "cartOrder" does not exist.', 704, $this->source); })()), "totalShippingCost", [], "any", false, false, false, 704)), 2, ",", "."), "html", null, true);
yield " €</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Product/public_cart_order_checkout.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1328 => 704, 1324 => 702, 1322 => 701, 1315 => 696, 1307 => 693, 1303 => 691, 1301 => 690, 1295 => 686, 1284 => 682, 1276 => 677, 1269 => 672, 1265 => 670, 1259 => 668, 1253 => 666, 1251 => 665, 1247 => 663, 1245 => 662, 1240 => 660, 1235 => 658, 1229 => 655, 1220 => 651, 1208 => 641, 1198 => 634, 1194 => 633, 1177 => 619, 1171 => 616, 1167 => 615, 1161 => 612, 1158 => 611, 1155 => 610, 1152 => 609, 1150 => 608, 1144 => 605, 1139 => 603, 1134 => 601, 1130 => 599, 1128 => 598, 1124 => 597, 1115 => 591, 1105 => 584, 1101 => 583, 1097 => 582, 1089 => 577, 1085 => 576, 1081 => 575, 1073 => 570, 1069 => 569, 1065 => 568, 1057 => 563, 1053 => 562, 1049 => 561, 1042 => 557, 1037 => 556, 1035 => 555, 1026 => 549, 1022 => 548, 1002 => 531, 996 => 528, 992 => 527, 984 => 522, 980 => 521, 972 => 516, 968 => 515, 961 => 511, 956 => 510, 954 => 509, 949 => 507, 891 => 451, 885 => 448, 881 => 447, 845 => 414, 842 => 413, 836 => 411, 834 => 410, 827 => 409, 825 => 408, 820 => 407, 818 => 406, 777 => 367, 773 => 365, 771 => 364, 768 => 363, 765 => 362, 759 => 360, 757 => 359, 754 => 358, 751 => 357, 748 => 356, 744 => 354, 740 => 352, 738 => 351, 735 => 350, 732 => 349, 730 => 348, 714 => 335, 704 => 328, 687 => 313, 678 => 307, 670 => 301, 667 => 300, 661 => 298, 639 => 288, 637 => 287, 627 => 280, 623 => 279, 619 => 278, 611 => 273, 607 => 272, 603 => 271, 595 => 266, 591 => 265, 587 => 264, 579 => 259, 575 => 258, 571 => 257, 558 => 247, 554 => 246, 550 => 245, 542 => 240, 538 => 239, 534 => 238, 526 => 233, 522 => 232, 518 => 231, 455 => 171, 450 => 170, 448 => 169, 443 => 168, 428 => 155, 424 => 153, 422 => 152, 419 => 151, 416 => 150, 410 => 148, 408 => 147, 405 => 146, 402 => 145, 399 => 144, 395 => 142, 391 => 140, 389 => 139, 386 => 138, 383 => 137, 381 => 136, 370 => 128, 355 => 116, 345 => 109, 331 => 98, 285 => 54, 283 => 53, 273 => 45, 267 => 43, 265 => 42, 261 => 41, 253 => 35, 248 => 33, 243 => 32, 241 => 31, 237 => 30, 232 => 27, 228 => 25, 226 => 24, 224 => 23, 221 => 22, 208 => 21, 195 => 18, 190 => 17, 177 => 16, 164 => 13, 160 => 12, 154 => 10, 141 => 9, 118 => 7, 94 => 5, 71 => 4, 60 => 1, 58 => 2, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'Common/base.html.twig' %}
{% import 'Common/parts/functions.html.twig' as function %}
{% block title %}Formulario de compra{% endblock %}
{% block classBody %}product {{ parent() }}{% endblock %}
{% block ogTitle %}Formulario de compra{% endblock ogTitle %}
{% block javascripts %}
{{ parent() }}
<script src=\"https://js.stripe.com/v3/\"></script>
{{ encore_entry_script_tags('select2_js') }}
{{ encore_entry_script_tags('public_cart_order_checkout') }}
{% endblock javascripts %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('select2_styles') }}
{% endblock stylesheets %}
{% block contents %}
{% set stripeIntentClientSecret = '' %}
{% if cartOrder.stripePaymentIntent is defined and cartOrder.stripePaymentIntent is not none and cartOrder.stripePaymentIntent.client_secret is defined %}
{% set stripeIntentClientSecret = cartOrder.stripePaymentIntent.client_secret %}
{% endif %}
<div id=\"public_cart_order_checkout_page\" ng-controller=\"cartOrderCheckoutCtrl\"
data-cart-order-id=\"{{ cartOrder.id }}\"
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
data-grantuser-username=\"{{ app.user.user.firstName }}\"
data-grantuser-id=\"{{ app.user.user.id }}\"
{% endif %}
class=\"container pt-5 pb-9\">
<section class=\"py-0\">
<div class=\"container-small\">
<nav class=\"mb-3\" aria-label=\"breadcrumb\">
<ol class=\"breadcrumb mb-0\">
<li class=\"breadcrumb-item\"><a href=\"{{path('web_init')}}\">Inicio</a></li>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<li class=\"breadcrumb-item\"><a href=\"{{path('web_app_user_dashboard')}}\">Mi cuenta</a></li>
{% endif %}
<li class=\"breadcrumb-item active\" aria-current=\"page\">Formulario de compra</li>
</ol>
</nav>
<h2 class=\"mb-5\">Compra</h2>
<div class=\"row justify-content-between\">
<div class=\"col-lg-7 col-xl-7\">
{% if cartOrder.status == 'PAID' %}
<div class=\"card theme-wizard mb-5\" >
<div class=\"card-header bg-100 pt-3 pb-2 border-bottom-0\">
<ul class=\"nav justify-content-between nav-wizard\">
<li class=\"nav-item\">
<div class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-lock\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Cuenta</span>
</div>
</div>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-wallet\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Pago</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<div class=\"nav-link active fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-check\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Finalizado2</span>
</div>
</div>
</li>
</ul>
</div>
<div class=\"card-body pt-4 pb-0\">
<div class=\"tab-content\">
<div class=\"tab-pane active\" role=\"tabpanel\" >
{{ function.showFlashes() }}
<div class=\"alert alert-soft-success\" role=\"alert\">Compra finalizada!</div>
<div class=\"row gx-4 gy-6 g-xl-7 justify-content-sm-center justify-content-xl-start mb-4\">
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Cuenta</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"user\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Nombre</h6>
</div>
<div class=\"fs--1 ms-4\">{{ cartOrder.user.fullName }}</div>
</div>
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"mail\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Email</h6>
</div>
<div class=\"fs--1 ms-4\">{{ cartOrder.user.email }}</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Pago</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"file\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">#Pedido</h6>
</div>
<div class=\"fs--1 ms-4\" >{{cartOrder.cartOrderNumber}}</div>
</div>
<div class=\"col-6 col-sm-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"credit-card\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Tipo de pago</h6>
</div>
<div class=\"fs--1 ms-4\" >
{% if cartOrder.cartOrderType == 'ORDER_TYPE_LICENSE' %}
{% if 'payment_plan' in cartOrder.cartItem(0).meta%}
Suscripción
{% if cartOrder.cartItem(0).meta['payment_plan'] == 'LICENSE_PAYMENT_PLAN_ANNUAL' %}
anual renovable
{% else %}
mensual renovable
{% endif %}
{% endif %}
{% elseif cartOrder.totalEuros > 0 and cartOrder.totalWhatercoins == 0 %}
Tarjeta
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') and app.user.user.hasRole('ROLE_ADMIN') and cartOrder.stripePaymentIntent.id is defined %}
(<a href=\"https://dashboard.stripe.com/test/payments/{{cartOrder.stripePaymentIntent.id}}\" target=\"_blank\">Ver detalles en sStripe</a>)
{% endif %}
{% elseif cartOrder.totalEuros == 0 and cartOrder.totalWhatercoins > 0 %}
Whatercoins
{% elseif cartOrder.totalEuros > 0 and cartOrder.totalWhatercoins > 0 %}
Tarjeta y Whatercoins
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% elseif is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{{ function.showFlashes() }}
{% form_theme appUserConfirmCartOrderForm 'Form/bootstrap_5_layout.html.twig' %}
{{ form_start(appUserConfirmCartOrderForm, {'attr': {'class': 'needs-validation' , 'id':'complete-cart-order-form', 'method':'POST', 'action': path('web_public_cart_order_checkout', {'cartOrderId': cartOrder.id })}}) }}
{{ form_errors(appUserConfirmCartOrderForm) }}
<div class=\"card theme-wizard mb-5\" >
<div class=\"card-header bg-100 pt-3 pb-2 border-bottom-0\">
<ul class=\"nav justify-content-between nav-wizard\">
<li class=\"nav-item\">
<a class=\"nav-link active fw-semi-bold step-button\" href=\"#\" id=\"wizard-tab-1\" data-step-number=\"1\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-lock\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Cuenta</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold step-button\" href=\"#\" id=\"wizard-tab-2\" data-step-number=\"2\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-file-alt\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Envio</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold step-button\" href=\"#\" id=\"wizard-tab-3\" data-step-number=\"2\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-wallet\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Pago</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold step-button pending-press-pay\" href=\"#\" id=\"wizard-tab-4\" data-step-number=\"3\">
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-check\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Finalizado</span>
</div>
</a>
</li>
</ul>
</div>
<div class=\"card-body pt-4 pb-0\">
<div class=\"tab-content\">
<div class=\"tab-pane active\" role=\"tabpanel\" id=\"wizard-content-1\">
<div class=\"row g-3 mb-3\">
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.firstName, 'cart_order.app.complete_order.fields.first_name', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.firstName, {'attr': {'class': 'form-control' , 'autocomplete': 'firstName'}}) }}
{{ form_errors(appUserConfirmCartOrderForm.firstName) }}
</div>
</div>
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.lastName, 'cart_order.app.complete_order.fields.last_name', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.lastName, {'attr': {'class': 'form-control' , 'autocomplete': 'lastName'}}) }}
{{ form_errors(appUserConfirmCartOrderForm.lastName) }}
</div>
</div>
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.email, 'cart_order.app.complete_order.fields.email', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.email, {'attr': {'class': 'form-control' , 'autocomplete': 'email'}}) }}
{{ form_errors(appUserConfirmCartOrderForm.email) }}
</div>
</div>
</div>
</div>
<div class=\"tab-pane\" role=\"tabpanel\" id=\"wizard-content-2\">
<div class=\"row g-3 mb-3\">
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.shippingAddress, 'cart_order.app.complete_order.fields.shipping_address', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.shippingAddress, {'attr': {'class': 'form-control' }}) }}
{{ form_errors(appUserConfirmCartOrderForm.shippingAddress) }}
</div>
</div>
<div class=\"col-12\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.shippingTown, 'cart_order.app.complete_order.fields.shipping_town', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.shippingTown, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(appUserConfirmCartOrderForm.shippingTown) }}
</div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.shippingPostalCode, 'cart_order.app.complete_order.fields.shipping_postal_code', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.shippingPostalCode, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(appUserConfirmCartOrderForm.shippingPostalCode) }}
</div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(appUserConfirmCartOrderForm.shippingCountry, 'cart_order.app.complete_order.fields.shipping_country', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(appUserConfirmCartOrderForm.shippingCountry, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(appUserConfirmCartOrderForm.shippingCountry) }}
</div>
</div>
</div>
</div>
<div class=\"tab-pane\" role=\"tabpanel\" id=\"wizard-content-3\">
{% if cartOrder.totalEuros > 0 %}
<div class=\"row g-3 mb-3 mt-3\" id=\"stripe-payment-element\" ng-init=\"initCartOrder('{{cartOrder.id}}','{{cartOrder.totalEuros}}','{{cartOrder.shippingItems | json_encode() | url_encode }}','{{stripe_public_key}}','{{stripeIntentClientSecret}}')\">
<div class=\"col\">
<div class=\"mb-2 mb-sm-0\">
<label class=\"form-label text-900 required\" >Tarjeta de credito</label>
<div id=\"card-element\" class=\"form-control\">
</div>
</div>
</div>
</div>
{% else %}
<div ng-init=\"initCartOrder('{{cartOrder.id}}')\"></div>
{% endif %}
{% if cartOrder.totalWhatercoins > 0 %}
<div class=\"row g-3 mb-3 mt-3\" id=\"stripe-payment-element\">
<div class=\"col\">
<div class=\"mb-2 mb-sm-0\">
<label class=\"form-label text-900 required\" >Whatercoins</label>
<div class=\"form-check\">
<input type=\"checkbox\" checked class=\"form-check-input\" id=\"accept-whatercoinf-checkbox\"/>
<label class=\"form-check-label text-900 required\" >El pago incluye {{ cartOrder.totalWhatercoins }} wc de mi cuenta.</label>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<div class=\"tab-pane\" role=\"tabpanel\" id=\"wizard-content-4\">
<div class=\"row flex-center pb-8 pt-4 gx-3 gy-4\">
<div class=\"col-12 \">
<div class=\"text-center text-sm-start\">
<h3 class=\"mb-3 text-center\">Resumen</h3>
<div class=\"row gx-4 gy-6 g-xl-7 justify-content-sm-center justify-content-xl-start mb-4 pt-3\">
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Cuenta</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"user\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Nombre</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-fullname\">{{ cartOrder.user.fullName }}</div>
</div>
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"mail\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Email</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-email\">{{ cartOrder.user.email }}</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-6 \">
<h4 class=\"mb-5\">Pago</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"credit-card\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Tipo de pago</h6>
</div>
{% if cartOrder.cartOrderType == 'ORDER_TYPE_LICENSE' %}
{% if 'payment_plan' in cartOrder.cartItem(0).meta%}
Suscripción
{% if cartOrder.cartItem(0).meta['payment_plan'] == 'LICENSE_PAYMENT_PLAN_ANNUAL' %}
anual renovable
{% else %}
mensual renovable
{% endif %}
{% endif %}
{% elseif cartOrder.totalEuros > 0 and cartOrder.totalWhatercoins == 0 %}
Tarjeta
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') and app.user.user.hasRole('ROLE_ADMIN') and cartOrder.stripePaymentIntent.id is defined %}
(<a href=\"https://dashboard.stripe.com/test/payments/{{cartOrder.stripePaymentIntent.id}}\" target=\"_blank\">Ver detalles en sStripe</a>)
{% endif %}
{% elseif cartOrder.totalEuros == 0 and cartOrder.totalWhatercoins > 0 %}
Whatercoins
{% elseif cartOrder.totalEuros > 0 and cartOrder.totalWhatercoins > 0 %}
Tarjeta y Whatercoins
{% endif %}
</div>
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"file\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">#Pedido</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-number\">Pendiente</div>
</div>
</div>
</div>
<div class=\"col-12\">
<h4 class=\"mb-5\">Dirección de envío</h4>
<div class=\"row g-4 flex-sm-column\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"credit-card\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Dirección</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-shipping-address\"></div>
</div>
<div class=\"col-12\">
<div class=\"d-flex align-items-center mb-1\">
<span class=\"me-2\" data-feather=\"file\" style=\"stroke-width:2.5;\"></span>
<h6 class=\"mb-0\">Método de envío</h6>
</div>
<div class=\"fs--1 ms-4\" id=\"resume-order-shipping-method\"></div>
</div>
</div>
</div>
</div>
<div class=\"col-12\">
<div class=\"text-center\">
<div class=\"alert alert-soft-warning\" role=\"alert\" id=\"payment-info-message\">
Solo queda un paso, pulse el botón para confirmar el pedido.
</div>
<button class=\"btn btn-success px-6\" type=\"button\" id=\"payment-button\" ng-click=\"clickPayment()\">
{% if cartOrder.totalWhatercoins > 0 and cartOrder.totalEuros == 0 %}
Confirmar pedido por <span id=\"resume-order-price\">{{ cartOrder.totalWhatercoins | number_format(2, ',', '.') }} whatercoins</span>
{% elseif cartOrder.totalWhatercoins > 0 and cartOrder.totalEuros > 0 %}
Confirmar pedido por <span id=\"resume-order-price\">{{ cartOrder.totalEuros | number_format(2, ',', '.') }}€ y {{ cartOrder.totalWhatercoins | number_format(2, ',', '.') }} whatercoins</span>
{% elseif cartOrder.totalEuros > 0 %}
Confirmar pedido por <span id=\"resume-order-price\">{{ cartOrder.totalEuros | number_format(2, ',', '.') }}€</span>
{% endif %}
</button>
<a href=\"{{ url('web_public_cart_order_details',{'cartOrderId': cartOrder.id})}}\" class=\"btn btn-primary px-6 d-none\" type=\"button\" id=\"go-details-button\" >
Continuar
</a>
<div class=\"mt-3\">
<span class=\"spinner-border spinner-border-sm d-none\" role=\"status\" aria-hidden=\"true\" id=\"payment-spinner\"></span>
</div>
<div class=\"alert alert-soft-danger d-none mt-3\" id=\"payment-error-message\" role=\"alert\"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"card-footer border-top-0\" >
<div class=\"d-flex pager wizard list-inline mb-0\">
<button class=\"d-none btn btn-link ps-0\" type=\"button\" >
<span class=\"fas fa-chevron-left me-1\" data-fa-transform=\"shrink-3\"></span>
Previous
</button>
<div class=\"flex-1 text-end\">
<button class=\"btn btn-primary px-6 px-sm-6\"
type=\"button\" id=\"wizart-next-button\">
Siguiente
<span class=\"fas fa-chevron-right ms-1\" data-fa-transform=\"shrink-3\"> </span>
</button>
</div>
</div>
</div>
</div>
{{ form_rest(appUserConfirmCartOrderForm) }}
{{ form_end(appUserConfirmCartOrderForm) }}
{% else %}
<div class=\"card theme-wizard mb-5\" >
<div class=\"card-header bg-100 pt-3 pb-2 border-bottom-0\">
<ul class=\"nav justify-content-between nav-wizard\">
<li class=\"nav-item\">
<div class=\"nav-link active fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-lock\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Cuenta</span>
</div>
</div>
</li>
<li class=\"nav-item\">
<div class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-file-alt\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Facturación</span>
</div>
</div>
</li>
<li class=\"nav-item\">
<a class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-wallet\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Pago</span>
</div>
</a>
</li>
<li class=\"nav-item\">
<div class=\"nav-link fw-semi-bold\" >
<div class=\"text-center d-inline-block\">
<span class=\"nav-item-circle-parent\">
<span class=\"nav-item-circle\">
<span class=\"fas fa-check\"></span>
</span>
</span>
<span class=\"d-none d-md-block mt-1 fs--1\">Finalizado</span>
</div>
</div>
</li>
</ul>
</div>
<div class=\"card-body pt-4 pb-0\">
<div class=\"tab-content\">
<div class=\"tab-pane active\" role=\"tabpanel\" >
{{ function.showFlashes() }}
<div class=\"fw-bolder mb-3\">Identifícate en whater...</div>
{% form_theme loginForm 'Form/bootstrap_5_layout.html.twig' %}
{{ form_start(loginForm, {'attr': {'class': 'needs-validation' }}) }}
{{ form_errors(loginForm) }}
<div class=\"row g-3 mb-3\">
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(loginForm.username, 'web.security.login.username', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(loginForm.username, {'attr': {'class': 'form-control' , 'autocomplete': 'username'}}) }}
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2\">
{{ form_label(loginForm.password, 'web.security.login.password', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(loginForm.password, {'attr': {'class': 'form-control', 'autocomplete': 'current-password' }}) }}
</div>
</div>
<div class=\"row flex-between-center mb-2\">
<div class=\"col-auto\">
{{ form_widget(loginForm.remember_me, {'attr': {'class': 'form-check-input' }}) }}
<label class=\"form-label fs--1 text-none\" for=\"login_remember_me\">{{'web.security.login.rememberme'|trans}}</label>
</div>
<div class=\"col-auto\">
<a class=\"fs--1 fw-semi-bold\" href=\"{{ path('web_forgot_password')}}\">
¿Olvidaste la contraseña?
</a>
</div>
</div>
</div>
<div class=\"d-flex pager wizard list-inline mb-4\">
<button class=\"d-none btn btn-link ps-0\" type=\"button\">
<span class=\"fas fa-chevron-left me-1\" data-fa-transform=\"shrink-3\"></span>
Previous
</button>
<div class=\"flex-1 text-end\">
<button class=\"btn btn-primary px-6 px-sm-6\" type=\"submit\" >
Entrar
</button>
</div>
</div>
{{ form_rest(loginForm) }}
{{ form_end(loginForm) }}
</div>
<hr class=\"solid\"></hr>
<div class=\"fw-bolder mb-3\">...ó crea una nueva cuenta.</div>
{% form_theme signupForm 'Form/bootstrap_5_layout.html.twig' %}
{{ form_start(signupForm, {'attr': {'class': 'needs-validation' }}) }}
{{ form_errors(signupForm) }}
<div class=\"row g-3 mb-3\">
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(signupForm.firstName, 'web.security.signup.fields.first_name', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(signupForm.firstName, {'attr': {'class': 'form-control' , 'autocomplete': 'firstName'}}) }}
{{ form_errors(signupForm.firstName)}}
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(signupForm.lastName, 'web.security.signup.fields.last_name', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(signupForm.lastName, {'attr': {'class': 'form-control' , 'autocomplete': 'lastName'}}) }}
{{ form_errors(signupForm.lastName)}}
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(signupForm.email, 'web.security.signup.fields.email', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(signupForm.email, {'attr': {'class': 'form-control' , 'autocomplete': 'email'}}) }}
{{ form_errors(signupForm.email)}}
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"mb-2 mb-sm-0\">
{{ form_label(signupForm.password, 'web.security.signup.fields.password', {'label_attr': { 'class': 'form-label text-900'}}) }}
{{ form_widget(signupForm.password, {'attr': {'class': 'form-control' , 'autocomplete': 'password'}}) }}
{{ form_errors(signupForm.password)}}
</div>
</div>
<div class=\"col-sm-6\" ng-init=\"initSelectCountry()\">
<label class=\"form-label text-900 required\">País</label>
<select class=\"form-select country-field\" aria-label=\"Tu país\"
id=\"select_country\"
data-country-search-url=\"{{ url('web_api_public_zones_country_list') }}\">
<option value=\"216abc6f-594d-49ea-8977-8976ca33e92c\" selected=\"selected\">España</option>
</select>
</div>
<div class=\"col-sm-6\" ng-init=\"initSelectTowns()\">
<div class=\"mb-2 mb-sm-0\" >
{{ form_label(signupForm.town, 'web.security.signup.fields.town', {'label_attr': { 'class': 'form-label text-900'}}) }}
{% do signupForm.town.setRendered %}
<select class=\"form-select clinics-field\" aria-label=\"Tu localidad\"
id=\"select_town\"
name=\"{{ signupForm.town.vars.full_name }}\"
required=\"required\"
data-town-search-url=\"{{ url('web_api_public_zones_town_list') }}\">
</select>
{{ form_errors(signupForm.town) }}
</div>
</div>
{% do signupForm.phone.setRendered %}
{% do signupForm.publicComments.setRendered %}
{% do signupForm.selectedTypes.setRendered %}
<div class=\"form-check mb-3 ms-3\">
{{ form_errors(signupForm.terms) }}
<input class=\"form-check-input\" id=\"termsService\" type=\"checkbox\"
required=\"required\"
name=\"{{field_name(signupForm.terms)}}\">
<label class=\"form-label fs--1 text-none\" for=\"termsService\">Acepta nuestros <a href=\"{{path('web_terms')}}\" target=\"_blank\">términos y condiciones</a>.</label>
</div>
<div class=\"g-3 mb-3\">
{{ form_widget(signupForm.recaptcha, {'attr': {'class': 'my-3' }}) }}
</div>
</div>
<div class=\"d-flex pager wizard list-inline mb-4\">
<button class=\"d-none btn btn-link ps-0\" type=\"button\" >
<span class=\"fas fa-chevron-left me-1\" data-fa-transform=\"shrink-3\"></span>
Previous
</button>
<div class=\"flex-1 text-end\">
<button class=\"btn btn-primary px-6 px-sm-6\" type=\"submit\">
Registrarse
</button>
</div>
</div>
{{ form_rest(signupForm) }}
{{ form_end(signupForm) }}
</div>
</div>
</div>
{% endif %}
</div>
<div class=\"col-lg-5 col-xl-5\">
<div class=\"card mt-3 mt-lg-0\">
<div class=\"card-body\">
<div class=\"d-flex align-items-center justify-content-between\">
<h3 class=\"mb-0\">Pedido</h3>
</div>
<div class=\"border-dashed border-bottom mt-4\">
<div class=\"ms-n2\">
{% for cartOrderItem in cartOrder.cartOrderItems %}
<div class=\"row align-items-center mb-2 g-3\">
<div class=\"col-8 col-md-7 col-lg-8\">
<div class=\"d-flex align-items-center\">
<img class=\"me-2 ms-1 img-thumbnail\" src=\"{{ asset('/assets/images/logo_v3.png') | imagine_filter('whaterpoint_simple_logo_40') }}\" width=\"40\" alt=\"\">
<div class=\"\">
<div class=\"fs--1 lh-base\">
<span class=\"fw-semi-bold text-1000\">{{ cartOrderItem.itemDescription }}</span>
<br/>
<i>Proveedor: {{ cartOrderItem.product.whaterOrganization.publicName }}</i>
</div>
{% if cartOrder.cartOrderType == 'ORDER_TYPE_LICENSE' and 'payment_plan' in cartOrder.cartItem(0).meta %}
<div class=\"text-muted fs--1\">
Suscripción
{% if cartOrder.cartItem(0).meta['payment_plan'] == 'LICENSE_PAYMENT_PLAN_ANNUAL' %}
anual renovable desde el {{cartOrder.organizationLicense.startDate | date('d-m-Y') }}
{% else %}
mensual renovable desde el {{cartOrder.organizationLicense.startDate | date('d-m-Y') }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
<div class=\"col-1\">
<h6 class=\"fs--2 mb-0\">
x{{ cartOrderItem.units }}
</h6>
</div>
<div class=\"col-3 ps-0\">
<h5 class=\"mb-0 fw-semi-bold text-end\">
{{ ( cartOrderItem.units * cartOrderItem.pricePerUnit) | number_format(2, ',', '.') }} €
</h5>
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"border-dashed border-bottom mt-4\">
{% if cartOrder.totalWhatercoins > 0 %}
<div class=\"d-flex justify-content-between mb-2\">
<h5 class=\"text-900 fw-semi-bold text-success\">Whatercoins: </h5>
<h5 class=\"text-900 fw-semi-bold text-success\" id=\"summary-whatercoins\" data-summary-whatercoins=\"{{ cartOrder.totalWhatercoins }}\">{{ (cartOrder.totalWhatercoins) | number_format(2, ',', '.') }}</h5>
</div>
{% endif %}
<div class=\"d-flex justify-content-between mb-2\">
<h5 class=\"text-900 fw-semi-bold\">Gastos de envío: </h5>
<h5 class=\"text-900 fw-semi-bold\" id=\"summary-shipping-costs\" >-- €</h5>
</div>
</div>
{% set shippingCostTaxes = (cartOrder.totalShippingCost * shipping_taxes_percent / 100 ) |round(2, 'floor') %}
<div class=\"d-flex justify-content-between border-dashed-y pt-3\">
<h4 class=\"mb-0\">Total :</h4>
<h4 class=\"mb-0\" id=\"summary-total\" data-summary-total=\"{{ (cartOrder.totalEuros + cartOrder.totalShippingCost) }}\">{{ (cartOrder.totalEuros + cartOrder.totalShippingCost) | number_format(2, ',', '.') }} €</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock contents %}", "Product/public_cart_order_checkout.html.twig", "/var/www/whater-server-pre/src/UI/WebBundle/Resources/views/Product/public_cart_order_checkout.html.twig");
}
}