<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/_includes/details/_other-departures-pricing-fragment.html.twig */
class __TwigTemplate_36b27922954d271a959396bf59b9b4f7 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->parent = false;
$this->blocks = [
];
}
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", "pages/_includes/details/_other-departures-pricing-fragment.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/details/_other-departures-pricing-fragment.html.twig"));
// line 1
$context["allDepartures"] = Twig\Extension\CoreExtension::default($this->extensions['App\Twig\Itinerary\ItineraryExtension']->getPricingDepartures((isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 1, $this->source); })())), []);
// line 2
$context["subTypes"] = Twig\Extension\CoreExtension::default($this->extensions['App\Twig\Cabin\CabinSubTypeExtension']->getCabinSubTypesForPricing((isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 2, $this->source); })()), (isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 2, $this->source); })())), []);
// line 3
$context["subtypeCabinTypeMap"] = $this->extensions['App\Twig\Cabin\CabinSubTypeExtension']->getCabinSubTypesMap((isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 3, $this->source); })()));
// line 4
yield "
";
// line 5
if ((Twig\Extension\CoreExtension::testEmpty((isset($context["subTypes"]) || array_key_exists("subTypes", $context) ? $context["subTypes"] : (function () { throw new RuntimeError('Variable "subTypes" does not exist.', 5, $this->source); })())) || Twig\Extension\CoreExtension::testEmpty((isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 5, $this->source); })())))) {
// line 6
yield "\t<div class=\"other-departures-pricing-empty text-sm-md color-grey-text\" data-pricing-empty>
\t\t";
// line 7
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::default($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details.cabin_choice.pricing_unavailable"), "Aucun tarif disponible pour le moment."), "html", null, true);
yield "
\t</div>
";
} elseif (( // line 9
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 9, $this->source); })()) == "detailed")) {
// line 10
yield "\t";
yield from $this->load("pages/_includes/details/_other-departures-detailed.html.twig", 10)->unwrap()->yield(CoreExtension::toArray(["allDepartures" => // line 11
(isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 11, $this->source); })()), "currentCruise" => // line 12
(isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 12, $this->source); })()), "subtypeCabinTypeMap" => // line 13
(isset($context["subtypeCabinTypeMap"]) || array_key_exists("subtypeCabinTypeMap", $context) ? $context["subtypeCabinTypeMap"] : (function () { throw new RuntimeError('Variable "subtypeCabinTypeMap" does not exist.', 13, $this->source); })())]));
} else {
// line 16
yield "\t";
yield from $this->load("pages/_includes/details/_other-departures-table.html.twig", 16)->unwrap()->yield(CoreExtension::toArray(["allDepartures" => // line 17
(isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 17, $this->source); })()), "currentCruise" => // line 18
(isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 18, $this->source); })()), "subTypes" => // line 19
(isset($context["subTypes"]) || array_key_exists("subTypes", $context) ? $context["subTypes"] : (function () { throw new RuntimeError('Variable "subTypes" does not exist.', 19, $this->source); })()), "subtypeCabinTypeMap" => // line 20
(isset($context["subtypeCabinTypeMap"]) || array_key_exists("subtypeCabinTypeMap", $context) ? $context["subtypeCabinTypeMap"] : (function () { throw new RuntimeError('Variable "subtypeCabinTypeMap" does not exist.', 20, $this->source); })()), "bestUpComingPrice" => // line 21
(isset($context["bestUpComingPrice"]) || array_key_exists("bestUpComingPrice", $context) ? $context["bestUpComingPrice"] : (function () { throw new RuntimeError('Variable "bestUpComingPrice" does not exist.', 21, $this->source); })())]));
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/_includes/details/_other-departures-pricing-fragment.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 83 => 21, 82 => 20, 81 => 19, 80 => 18, 79 => 17, 77 => 16, 74 => 13, 73 => 12, 72 => 11, 70 => 10, 68 => 9, 63 => 7, 60 => 6, 58 => 5, 55 => 4, 53 => 3, 51 => 2, 49 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set allDepartures = get_pricing_departures(currentCruise)|default([]) %}
{% set subTypes = getCabinSubTypesForPricing(currentCruise, allDepartures)|default([]) %}
{% set subtypeCabinTypeMap = getCabinSubTypesMap(currentCruise) %}
{% if subTypes is empty or allDepartures is empty %}
\t<div class=\"other-departures-pricing-empty text-sm-md color-grey-text\" data-pricing-empty>
\t\t{{ \x27details.cabin_choice.pricing_unavailable\x27|trans|default(\x27Aucun tarif disponible pour le moment.\x27) }}
\t</div>
{% elseif view == \x27detailed\x27 %}
\t{% include \x27pages/_includes/details/_other-departures-detailed.html.twig\x27 with {
\t\tallDepartures: allDepartures,
\t\tcurrentCruise: currentCruise,
\t\tsubtypeCabinTypeMap: subtypeCabinTypeMap,
\t} only %}
{% else %}
\t{% include \x27pages/_includes/details/_other-departures-table.html.twig\x27 with {
\t\tallDepartures: allDepartures,
\t\tcurrentCruise: currentCruise,
\t\tsubTypes: subTypes,
\t\tsubtypeCabinTypeMap: subtypeCabinTypeMap,
\t\tbestUpComingPrice: bestUpComingPrice,
\t} only %}
{% endif %}
", "pages/_includes/details/_other-departures-pricing-fragment.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/details/_other-departures-pricing-fragment.html.twig");
}
}