var/cache/dev/twig/e8/e801fb2dea2dacc7ab62b8d8b8ae8114.php line 213

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig */
  14. class __TwigTemplate_9624b65a66549dd48b09c9c635e8e5cc extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig"));
  33.         // line 13
  34.         echo "
  35. ";
  36.         // line 14
  37.         if (( !array_key_exists("searchParam"$context) || twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'14$this->source); })()), "getDateFrom", [], "method"falsefalsefalse14)))) {
  38.             // line 15
  39.             echo "    ";
  40.             $context["fromDate"] = null;
  41.         } else {
  42.             // line 17
  43.             echo "    ";
  44.             $context["fromDate"] = $this->env->getFunction('demi_getSearchFrom')->getCallable()();
  45.         }
  46.         // line 19
  47.         echo "
  48. ";
  49.         // line 20
  50.         if (((twig_test_iterable((isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'20$this->source); })())) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["productData"] ?? null), "roomRow", [], "any"falsetruefalse20), 0, [], "array"truetruefalse20)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["productData"] ?? null), "products", [], "any"falsetruefalse20), 0, [], "array"truetruefalse20))) {
  51.             // line 21
  52.             echo "
  53.     ";
  54.             // line 22
  55.             $context["possibleIndices"] = twig_get_array_keys_filter(twig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'22$this->source); })()), "roomRow", [], "any"falsefalsefalse22));
  56.             // line 23
  57.             echo "    ";
  58.             $context["i"] = twig_first($this->env, (isset($context["possibleIndices"]) || array_key_exists("possibleIndices"$context) ? $context["possibleIndices"] : (function () { throw new RuntimeError('Variable "possibleIndices" does not exist.'23$this->source); })()));
  59.             // line 24
  60.             echo "    ";
  61.             $context["roomRow"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'24$this->source); })()), "roomRow", [], "any"falsefalsefalse24), (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'24$this->source); })()), [], "array"falsefalsefalse24), "getRowObject", [], "method"falsefalsefalse24);
  62.             // line 25
  63.             echo "    ";
  64.             $context["product"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'25$this->source); })()), "products", [], "any"falsefalsefalse25), (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'25$this->source); })()), [], "array"falsefalsefalse25);
  65.             // line 26
  66.             echo "    ";
  67.             $context["accommodationProduct"] = Pimcore\Model\DataObject::getById(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'26$this->source); })()), "getProductId", [], "method"falsefalsefalse26));
  68.             // line 27
  69.             echo "    ";
  70.             if (((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'27$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'27$this->source); })()), "isPublished", [], "method"falsefalsefalse27))) {
  71.                 // line 28
  72.                 echo "        <li>
  73.             ";
  74.                 // line 29
  75.                 $context["id"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'29$this->source); })()), "getProductId", [], "method"falsefalsefalse29);
  76.                 // line 30
  77.                 echo "            ";
  78.                 $context["title"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'30$this->source); })()), "getName", [], "method"falsefalsefalse30);
  79.                 // line 31
  80.                 echo "
  81.             ";
  82.                 // line 32
  83.                 if (( !(null === (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'32$this->source); })())) &&  !(null === (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'32$this->source); })())))) {
  84.                     // line 33
  85.                     echo "                ";
  86.                     $context["priceData"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'33$this->source); })()), "getPriceData", [], "method"falsefalsefalse33);
  87.                     // line 34
  88.                     echo "                ";
  89.                     $context["price"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'34$this->source); })()), "getPrice", [], "method"falsefalsefalse34);
  90.                     // line 35
  91.                     echo "                ";
  92.                     $context["showVacancy"] = true;
  93.                     // line 36
  94.                     echo "                ";
  95.                     $context["showSelection"] = true;
  96.                     // line 37
  97.                     echo "                ";
  98.                     $context["vacancyCount"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'37$this->source); })()), "getUnits", [], "method"falsefalsefalse37);
  99.                     // line 38
  100.                     echo "
  101.                 ";
  102.                     // line 39
  103.                     $context["promotionText"] = null;
  104.                     // line 40
  105.                     echo "                ";
  106.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'40$this->source); })()), "getCancellationInformation", [], "method"falsefalsefalse40))) {
  107.                         // line 41
  108.                         echo "                    ";
  109.                         $context["cancellationInformation"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'41$this->source); })()), "getCancellationInformation", [], "method"falsefalsefalse41);
  110.                         // line 42
  111.                         echo "                    ";
  112.                         $context["displayInfo"] = $this->env->getFunction('demi_getCancellationDisplayInfo')->getCallable()((isset($context["cancellationInformation"]) || array_key_exists("cancellationInformation"$context) ? $context["cancellationInformation"] : (function () { throw new RuntimeError('Variable "cancellationInformation" does not exist.'42$this->source); })()), twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'42$this->source); })()), "getDateFrom", [], "method"falsefalsefalse42));
  113.                         // line 43
  114.                         echo "                    ";
  115.                         $context["freeCancelText"] = twig_get_attribute($this->env$this->source, (isset($context["displayInfo"]) || array_key_exists("displayInfo"$context) ? $context["displayInfo"] : (function () { throw new RuntimeError('Variable "displayInfo" does not exist.'43$this->source); })()), "getFreeCancellationText", [], "method"falsefalsefalse43);
  116.                         // line 44
  117.                         echo "                    ";
  118.                         $context["promotionText"] = ((((isset($context["freeCancelText"]) || array_key_exists("freeCancelText"$context) ? $context["freeCancelText"] : (function () { throw new RuntimeError('Variable "freeCancelText" does not exist.'44$this->source); })()) == "")) ? (null) : ((isset($context["freeCancelText"]) || array_key_exists("freeCancelText"$context) ? $context["freeCancelText"] : (function () { throw new RuntimeError('Variable "freeCancelText" does not exist.'44$this->source); })())));
  119.                         // line 45
  120.                         echo "                ";
  121.                     }
  122.                     // line 46
  123.                     echo "
  124.             ";
  125.                 } elseif ( !(null ===                 // line 48
  126. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'48$this->source); })()))) {
  127.                     // line 49
  128.                     echo "                ";
  129.                     $context["price"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'49$this->source); })()), "getBasePrice", [], "method"falsefalsefalse49);
  130.                     // line 50
  131.                     echo "                ";
  132.                     $context["showVacancy"] = false;
  133.                     // line 51
  134.                     echo "                ";
  135.                     $context["showSelection"] = false;
  136.                     // line 52
  137.                     echo "                ";
  138.                     $context["vacancyCount"] = 0;
  139.                     // line 53
  140.                     echo "
  141.                 ";
  142.                     // line 54
  143.                     $context["priceInfo"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'54$this->source); })()), "getPriceInfo", [], "method"falsefalsefalse54);
  144.                     // line 55
  145.                     echo "                ";
  146.                     if ( !twig_test_empty((isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'55$this->source); })()))) {
  147.                         // line 56
  148.                         echo "                    ";
  149.                         $context["priceInfoText"] = twig_include($this->env$context"@ElementsDemiFrontend/Includes/priceInfoStr.html.twig", ["type" => twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'56$this->source); })()), "type", [], "array"falsefalsefalse56), "nights" => twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'56$this->source); })()), "nights", [], "array"falsefalsefalse56)]);
  150.                         // line 57
  151.                         echo "                ";
  152.                     }
  153.                     // line 58
  154.                     echo "            ";
  155.                 }
  156.                 // line 59
  157.                 echo "
  158.             ";
  159.                 // line 61
  160.                 if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'61$this->source); })()), "getDateFrom", [], "method"falsefalsefalse61))) {
  161.                     // line 62
  162.                     echo "                ";
  163.                     if ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'62$this->source); })()), "ElementsDemiLtsAccommodationSearchParameter")) {
  164.                         // line 63
  165.                         echo "                    ";
  166.                         $context["mealArray"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'63$this->source); })()), "getPossibleMealCodes", [], "method"falsefalsefalse63);
  167.                         // line 64
  168.                         echo "                ";
  169.                     } elseif ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'64$this->source); })()), "ElementsDemiPackageSearchParameter")) {
  170.                         // line 65
  171.                         echo "                    ";
  172.                         $context["mealArray"] = [];
  173.                         // line 66
  174.                         echo "                ";
  175.                     } else {
  176.                         // line 67
  177.                         echo "                    ";
  178.                         $context["mealArray"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'67$this->source); })()), "getValidMeals", [=> twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'67$this->source); })()), "getPeriod", [], "method"falsefalsefalse67), => twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'67$this->source); })()), "getDateFrom", [], "method"falsefalsefalse67)], "method"falsefalsefalse67);
  179.                         // line 68
  180.                         echo "                ";
  181.                     }
  182.                     // line 69
  183.                     echo "                ";
  184.                     $context["liveMeal"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'69$this->source); })()), "getMealCode", [], "method"falsefalsefalse69);
  185.                     // line 70
  186.                     echo "                ";
  187.                     $context["liveMealObj"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getClassByStringAndIdentifier("\\Elements\\Demi\\Model\\MealType""getByFid", (isset($context["liveMeal"]) || array_key_exists("liveMeal"$context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.'70$this->source); })()));
  188.                     // line 71
  189.                     echo "                ";
  190.                     if (!twig_in_filter((isset($context["liveMeal"]) || array_key_exists("liveMeal"$context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.'71$this->source); })()), twig_get_array_keys_filter((isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'71$this->source); })())))) {
  191.                         // line 72
  192.                         echo "                    ";
  193.                         $context["mealArray"] = twig_array_merge((isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'72$this->source); })()), [=> (isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'72$this->source); })())]);
  194.                         // line 73
  195.                         echo "                ";
  196.                     }
  197.                     // line 74
  198.                     echo "            ";
  199.                 } else {
  200.                     // line 75
  201.                     echo "                ";
  202.                     $context["mealArray"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'75$this->source); })()), "getValidMeals", [=> 0], "method"falsefalsefalse75);
  203.                     // line 76
  204.                     echo "            ";
  205.                 }
  206.                 // line 77
  207.                 echo "
  208.             ";
  209.                 // line 78
  210.                 $context["images"] = (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'78$this->source); })()))) ? ($this->env->getFunction('demi_getRoomPictures')->getCallable()((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'78$this->source); })()), (isset($context["fromDate"]) || array_key_exists("fromDate"$context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.'78$this->source); })()))) : ([]));
  211.                 // line 79
  212.                 echo "
  213.             <div id=\"room-row-collapse-parent-";
  214.                 // line 80
  215.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'80$this->source); })()), "getProductId", [], "method"falsefalsefalse80), "html"nulltrue);
  216.                 echo "\"
  217.                 class=\"js-room-selection__room\"
  218.                  data-availability-reference-id=\"";
  219.                 // line 82
  220.                 echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'82$this->source); })()), "getAvailabilityReference", [], "method"falsefalsefalse82) === "Service")) ? (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'82$this->source); })()), "getServiceId", [], "method"falsefalsefalse82)) : (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'82$this->source); })()), "getProductId", [], "method"falsefalsefalse82))), "html"nulltrue);
  221.                 echo "\"
  222.                  data-room-id=\"";
  223.                 // line 83
  224.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'83$this->source); })()), "getProductId", [], "method"falsefalsefalse83), "html"nulltrue);
  225.                 echo "\"
  226.                  data-tracking-variant=\"";
  227.                 // line 84
  228.                 echo $this->env->getFunction('demi_impressionVariant')->getCallable()((((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'84$this->source); })())) ? ((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'84$this->source); })())) : ((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'84$this->source); })()))), (isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'84$this->source); })()));
  229.                 echo "\"
  230.                  data-tracking-variant-id=\"";
  231.                 // line 85
  232.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'85$this->source); })()), "getProductId", [], "method"falsefalsefalse85), "html"nulltrue);
  233.                 echo "\"
  234.                  data-settler-code=\"";
  235.                 // line 86
  236.                 echo twig_escape_filter($this->env, (isset($context["settlerCode"]) || array_key_exists("settlerCode"$context) ? $context["settlerCode"] : (function () { throw new RuntimeError('Variable "settlerCode" does not exist.'86$this->source); })()), "html"nulltrue);
  237.                 echo "\"
  238.                  data-booking-type=\"";
  239.                 // line 87
  240.                 echo ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'87$this->source); })()), "getBookable", [], "method"falsefalsefalse87)) ? ("bookable") : ("onrequest"));
  241.                 echo "\">
  242.                 <div class=\"card box-shadow mt-3 ";
  243.                 // line 88
  244.                 echo (((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow"$context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.'88$this->source); })())) ? ("js-room-selection__room-row") : ("z-1"));
  245.                 echo "\"
  246.                         ";
  247.                 // line 89
  248.                 if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow"$context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.'89$this->source); })())) {
  249.                     // line 90
  250.                     echo "                            ";
  251.                     if (((twig_test_iterable((isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'90$this->source); })())) && twig_test_iterable(twig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'90$this->source); })()), "products", [], "array"falsefalsefalse90))) && twig_test_iterable(twig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'90$this->source); })()), "roomRow", [], "array"falsefalsefalse90)))) {
  252.                         // line 91
  253.                         echo "                                ";
  254.                         $context["done"] = false;
  255.                         // line 92
  256.                         echo "                                ";
  257.                         $context['_parent'] = $context;
  258.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'92$this->source); })()), "products", [], "array"falsefalsefalse92));
  259.                         foreach ($context['_seq'] as $context["productIndex"] => $context["product"]) {
  260.                             // line 93
  261.                             echo "                                    ";
  262.                             if ( !(isset($context["done"]) || array_key_exists("done"$context) ? $context["done"] : (function () { throw new RuntimeError('Variable "done" does not exist.'93$this->source); })())) {
  263.                                 // line 94
  264.                                 echo "                                        ";
  265.                                 $context["roomRowIndexSingleRoom"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'94$this->source); })()), "roomRow", [], "array"falsefalsefalse94), $context["productIndex"], [], "array"falsefalsefalse94), "getIndex", [], "method"falsefalsefalse94);
  266.                                 // line 95
  267.                                 echo "                                        ";
  268.                                 $context["done"] = true;
  269.                                 // line 96
  270.                                 echo "                                    ";
  271.                             }
  272.                             // line 97
  273.                             echo "                                ";
  274.                         }
  275.                         $_parent $context['_parent'];
  276.                         unset($context['_seq'], $context['_iterated'], $context['productIndex'], $context['product'], $context['_parent'], $context['loop']);
  277.                         $context array_intersect_key($context$_parent) + $_parent;
  278.                         // line 98
  279.                         echo "                            ";
  280.                     } else {
  281.                         // line 99
  282.                         echo "                                ";
  283.                         $context["roomRowIndexSingleRoom"] = 0;
  284.                         // line 100
  285.                         echo "                            ";
  286.                     }
  287.                     // line 101
  288.                     echo "                            data-room-row-id=\"";
  289.                     ((array_key_exists("roomRowIndexSingleRoom"$context)) ? (print (twig_escape_filter($this->env, (isset($context["roomRowIndexSingleRoom"]) || array_key_exists("roomRowIndexSingleRoom"$context) ? $context["roomRowIndexSingleRoom"] : (function () { throw new RuntimeError('Variable "roomRowIndexSingleRoom" does not exist.'101$this->source); })()), "html"nulltrue))) : (print (0)));
  290.                     echo "\"
  291.                             data-initial-price=\"";
  292.                     // line 102
  293.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env, (isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'102$this->source); })()), 2"."""), "html"nulltrue);
  294.                     echo "\"
  295.                             ";
  296.                     // line 103
  297.                     if (((array_key_exists("priceData"$context) &&  !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'103$this->source); })()))) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'103$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse103) > twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'103$this->source); })()), "getPrice", [], "method"falsefalsefalse103)))) {
  298.                         // line 104
  299.                         echo "                                data-initial-price-before-special=\"";
  300.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'104$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse104), 2"."""), "html"nulltrue);
  301.                         echo "\"
  302.                             ";
  303.                     }
  304.                     // line 106
  305.                     echo "                            data-room-row-title=\"";
  306.                     echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'106$this->source); })()));
  307.                     echo "\"
  308.                         ";
  309.                 }
  310.                 // line 108
  311.                 echo "                >
  312.                     <section class=\"teaser teaser--body-padding\">
  313.                         <div class=\"row row--gutter-width-10\">
  314.                             <div class=\"col-4 d-flex flex-column\">
  315.                                 ";
  316.                 // line 115
  317.                 if ((((array_key_exists("priceData"$context) &&  !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'115$this->source); })()))) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'115$this->source); })()), "getSpecialPriceType", [], "method"falsefalsefalse115) === "None")) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'115$this->source); })()), "getSpecialPriceName", [], "method"falsefalsefalse115)))) {
  318.                     // line 116
  319.                     echo "                                    <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
  320.                                         ";
  321.                     // line 117
  322.                     if (((twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'117$this->source); })()), "getSplitPay", [], "method"falsefalsefalse117) && twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'117$this->source); })()), "getSplitStay", [], "method"falsefalsefalse117)) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'117$this->source); })()), "getSplitPay", [], "method"falsefalsefalse117) != twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'117$this->source); })()), "getSplitStay", [], "method"falsefalsefalse117)))) {
  323.                         // line 118
  324.                         echo "                                            ";
  325.                         echo $this->env->getFunction('demi_fillTranslation')->getCallable()(["[STAY]" => twig_get_attribute($this->env$this->source,                         // line 119
  326. (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'119$this->source); })()), "getSplitStay", [], "method"falsefalsefalse119), "[PAY]" => twig_get_attribute($this->env$this->source,                         // line 120
  327. (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'120$this->source); })()), "getSplitPay", [], "method"falsefalsefalse120)], "demi.price-special-type.splitpay");
  328.                         // line 121
  329.                         echo "
  330.                                         ";
  331.                     } else {
  332.                         // line 123
  333.                         echo "                                            ";
  334.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'123$this->source); })()), "getSpecialPriceName", [], "method"falsefalsefalse123), "html"nulltrue);
  335.                         echo "
  336.                                         ";
  337.                     }
  338.                     // line 125
  339.                     echo "                                    </div>
  340.                                 ";
  341.                 }
  342.                 // line 127
  343.                 echo "
  344.                                 ";
  345.                 // line 128
  346.                 if (((((array_key_exists("priceData"$context) &&  !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'128$this->source); })()))) && twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'128$this->source); })()), "getSpecialPriceType", [], "method"falsefalsefalse128)) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'128$this->source); })()), "getSpecialPriceType", [], "method"falsefalsefalse128) != twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'128$this->source); })()), "getSpecialPriceName", [], "method"falsefalsefalse128))) &&  !(twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'128$this->source); })()), "getSpecialPriceType", [], "method"falsefalsefalse128) === "None"))) {
  347.                     // line 129
  348.                     echo "                                    <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
  349.                                         ";
  350.                     // line 130
  351.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("demi.price-special-type." twig_lower_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'130$this->source); })()), "getSpecialPriceType", [], "method"falsefalsefalse130)))), "html"nulltrue);
  352.                     echo "
  353.                                     </div>
  354.                                 ";
  355.                 }
  356.                 // line 133
  357.                 echo "
  358.                                 ";
  359.                 // line 134
  360.                 $context["galUrl"] = (("#" . (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'134$this->source); })()))) ? (twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'134$this->source); })()), "getId", [], "method"falsefalsefalse134)) : (""))) . "-imgs-overlay");
  361.                 // line 135
  362.                 echo "                                ";
  363.                 if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'135$this->source); })())) == 0)) {
  364.                     // line 136
  365.                     echo "                                    ";
  366.                     $context["images"] = [=> $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getTeaserFallbackImage", [])];
  367.                     // line 137
  368.                     echo "                                    ";
  369.                     $context["galUrl"] = "";
  370.                     // line 138
  371.                     echo "                                ";
  372.                 }
  373.                 // line 139
  374.                 echo "
  375.                                 <button type=\"button\" class=\"teaser__img btn-no-styling js-overlay__toggle figure js-tracking--click-piwik\"
  376.                                         data-target=\"";
  377.                 // line 141
  378.                 echo twig_escape_filter($this->env, (isset($context["galUrl"]) || array_key_exists("galUrl"$context) ? $context["galUrl"] : (function () { throw new RuntimeError('Variable "galUrl" does not exist.'141$this->source); })()), "html"nulltrue);
  379.                 echo "\"
  380.                                         data-tracking-category=\"Gallery\"
  381.                                         data-tracking-action=\"open\"
  382.                                         ";
  383.                 // line 144
  384.                 if (twig_get_attribute($this->env$this->source, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'144$this->source); })()), 0, [], "array"falsefalsefalse144)) {
  385.                     // line 145
  386.                     echo "                                        style=\"background-image:url(";
  387.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'145$this->source); })()), 0, [], "array"falsefalsefalse145), "getThumbnail", [=> "demi-mobile-room-teaser"], "method"falsefalsefalse145), "html"nulltrue);
  388.                     echo ");\">
  389.                                     ";
  390.                     // line 146
  391.                     echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'146$this->source); })()), 0, [], "array"falsefalsefalse146), "getThumbnail", [=> "demi-mobile-room-teaser"], "method"falsefalsefalse146), "getHTML", [=> ["imgAttributes" => ["class" => "sr-only""alt" => (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.image-alt-prefix") . " ") . (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'146$this->source); })()))) ? (twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'146$this->source); })()), "getName", [], "method"falsefalsefalse146)) : (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'146$this->source); })()), "getDescription", [], "method"falsefalsefalse146))))]]], "method"falsefalsefalse146);
  392.                     echo "
  393.                                     ";
  394.                     // line 147
  395.                     if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'147$this->source); })())) > 1)) {
  396.                         // line 148
  397.                         echo "                                        <span class=\"figure__overlay p-1\">1/";
  398.                         echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'148$this->source); })())), "html"nulltrue);
  399.                         echo "</span>
  400.                                     ";
  401.                     }
  402.                     // line 150
  403.                     echo "                                    ";
  404.                 }
  405.                 // line 151
  406.                 echo "                                </button>
  407.                             </div>
  408.                             <div class=\"col-8 teaser__body collapsed js-tracking--click-piwik\"
  409.                                  data-toggle=\"collapse\"
  410.                                  data-target=\"#detail-";
  411.                 // line 156
  412.                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'156$this->source); })()), "html"nulltrue);
  413.                 echo "\"
  414.                                  data-tracking-category=\"Product\"
  415.                                  data-tracking-action=\"click detail\"
  416.                                  data-tracking-label=\"";
  417.                 // line 159
  418.                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'159$this->source); })()), "html"nulltrue);
  419.                 echo "\"
  420.                             >
  421.                                 <div class=\"teaser__main-body\">
  422.                                     <h3 class=\"mb-1 text-primary\">
  423.                                         <a href=\"#detail-";
  424.                 // line 165
  425.                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'165$this->source); })()), "html"nulltrue);
  426.                 echo "\"
  427.                                            aria-controls=\"detail-";
  428.                 // line 166
  429.                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'166$this->source); })()), "html"nulltrue);
  430.                 echo "\"
  431.                                            aria-expanded=\"false\"
  432.                                            data-toggle=\"collapse\"
  433.                                            class=\"collapsed\"
  434.                                         >";
  435.                 // line 170
  436.                 echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'170$this->source); })()), "html"nulltrue);
  437.                 echo "</a>
  438.                                     </h3>
  439.                                     ";
  440.                 // line 173
  441.                 if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow"$context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.'173$this->source); })())) {
  442.                     // line 174
  443.                     echo "
  444.                                             <div class=\"mb-1 small text-muted\">
  445.                                                 <div class=\"media\">
  446.                                                     <div class=\"demi-icon demi-icon-person mr-1 icon-in-text\"
  447.                                                          aria-hidden=\"true\"></div>
  448.                                                     <div class=\"media-body\">
  449.                                                         ";
  450.                     // line 181
  451.                     if ( !(null === (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'181$this->source); })()))) {
  452.                         // line 182
  453.                         echo "                                                            ";
  454.                         $context["adults"] = twig_get_attribute($this->env$this->source, (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'182$this->source); })()), "getAdults", [], "method"falsefalsefalse182);
  455.                         // line 183
  456.                         echo "                                                            ";
  457.                         $context["children"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'183$this->source); })()), "getChildAges", [], "method"falsefalsefalse183));
  458.                         // line 184
  459.                         echo "                                                            ";
  460.                         $context["adultsStr"] = ((((isset($context["adults"]) || array_key_exists("adults"$context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.'184$this->source); })()) > 1)) ? ((((isset($context["adults"]) || array_key_exists("adults"$context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.'184$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adults"))) : ((((isset($context["adults"]) || array_key_exists("adults"$context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.'184$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adult"))));
  461.                         // line 185
  462.                         echo "                                                            ";
  463.                         $context["childrenStr"] = ((((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'185$this->source); })()) > 1)) ? ((((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'185$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.children"))) : ((((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'185$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.child"))));
  464.                         // line 186
  465.                         echo "
  466.                                                         ";
  467.                     } else {
  468.                         // line 188
  469.                         echo "                                                            ";
  470.                         $context["adultsStr"] = ((((twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'188$this->source); })()), "getBedsMin", [], "method"falsefalsefalse188) . "-") . twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'188$this->source); })()), "getBedsMax", [], "method"falsefalsefalse188)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.persons"));
  471.                         // line 189
  472.                         echo "                                                        ";
  473.                     }
  474.                     // line 190
  475.                     echo "                                                        ";
  476.                     echo twig_escape_filter($this->env, (isset($context["adultsStr"]) || array_key_exists("adultsStr"$context) ? $context["adultsStr"] : (function () { throw new RuntimeError('Variable "adultsStr" does not exist.'190$this->source); })()), "html"nulltrue);
  477.                     echo "
  478.                                                         ";
  479.                     // line 191
  480.                     if ((array_key_exists("children"$context) && (twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'191$this->source); })())) > 0))) {
  481.                         // line 192
  482.                         echo "                                                            , ";
  483.                         echo twig_escape_filter($this->env, (isset($context["childrenStr"]) || array_key_exists("childrenStr"$context) ? $context["childrenStr"] : (function () { throw new RuntimeError('Variable "childrenStr" does not exist.'192$this->source); })()), "html"nulltrue);
  484.                         echo "
  485.                                                         ";
  486.                     }
  487.                     // line 194
  488.                     echo "                                                    </div>
  489.                                                 </div>
  490.                                             </div>
  491.                                     ";
  492.                 }
  493.                 // line 199
  494.                 echo "
  495.                                     ";
  496.                 // line 200
  497.                 if ((isset($context["showVacancy"]) || array_key_exists("showVacancy"$context) ? $context["showVacancy"] : (function () { throw new RuntimeError('Variable "showVacancy" does not exist.'200$this->source); })())) {
  498.                     // line 201
  499.                     echo "                                        ";
  500.                     echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/elements/vacancy-info.html.twig", ["vacancyCount" => (isset($context["vacancyCount"]) || array_key_exists("vacancyCount"$context) ? $context["vacancyCount"] : (function () { throw new RuntimeError('Variable "vacancyCount" does not exist.'201$this->source); })()), "tvbPackage" => (isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'201$this->source); })())]);
  501.                     echo "
  502.                                     ";
  503.                 }
  504.                 // line 203
  505.                 echo "                                </div>
  506.                                 ";
  507.                 // line 205
  508.                 if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow"$context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.'205$this->source); })())) {
  509.                     // line 206
  510.                     echo "                                    <hr class=\"my-1\">
  511.                                     <div>
  512.                                         ";
  513.                     // line 209
  514.                     if ((array_key_exists("liveMealObj"$context) &&  !twig_test_empty((isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'209$this->source); })())))) {
  515.                         // line 210
  516.                         echo "                                            <div class=\"mb-1 small text-muted\">
  517.                                                 <span class=\"js-room-selection__meal-text\">
  518.                                                     ";
  519.                         // line 212
  520.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'212$this->source); })()), "getText", [], "method"falsefalsefalse212), "html"nulltrue);
  521.                         echo "
  522.                                                 </span>
  523.                                                 ";
  524.                         // line 215
  525.                         if ((twig_length_filter($this->env, (isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'215$this->source); })())) > 1)) {
  526.                             // line 216
  527.                             echo "                                                    <label for=\"meal-selector-";
  528.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'216$this->source); })()), "getProductId", [], "method"falsefalsefalse216), "html"nulltrue);
  529.                             echo "\" tabindex=\"0\"
  530.                                                            class=\"btn-no-styling increased-click-area js-room-selection__add\">
  531.                                                         <span class=\"demi-icon demi-icon-edit icon-in-text\"
  532.                                                               title=\"";
  533.                             // line 219
  534.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html"nulltrue);
  535.                             echo "\"
  536.                                                               aria-label=\"";
  537.                             // line 220
  538.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html"nulltrue);
  539.                             echo "\"></span>
  540.                                                     </label>
  541.                                                 ";
  542.                         }
  543.                         // line 223
  544.                         echo "                                            </div>
  545.                                         ";
  546.                     }
  547.                     // line 225
  548.                     echo "
  549.                                         <div class=\"row align-items-baseline\">
  550.                                             <div class=\"col\">
  551.                                                 ";
  552.                     // line 228
  553.                     if (((array_key_exists("priceData"$context) &&  !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'228$this->source); })()))) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'228$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse228) > twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'228$this->source); })()), "getPrice", [], "method"falsefalsefalse228)))) {
  554.                         // line 229
  555.                         echo "                                                    <span class=\"sr-only\">";
  556.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.old-price"), "html"nulltrue);
  557.                         echo "</span>
  558.                                                     <s class=\"text-muted js-room-selection__price-before-special\">";
  559.                         // line 230
  560.                         echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()(twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'230$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse230), (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'230$this->source); })()));
  561.                         echo "</s>
  562.                                                 ";
  563.                     }
  564.                     // line 232
  565.                     echo "
  566.                                                 ";
  567.                     // line 233
  568.                     if (array_key_exists("priceInfoText"$context)) {
  569.                         // line 234
  570.                         echo "                                                    <div class=\"small text-muted\">
  571.                                                         ";
  572.                         // line 235
  573.                         echo twig_escape_filter($this->env, (isset($context["priceInfoText"]) || array_key_exists("priceInfoText"$context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.'235$this->source); })()), "html"nulltrue);
  574.                         echo "
  575.                                                     </div>
  576.                                                 ";
  577.                     }
  578.                     // line 238
  579.                     echo "                                            </div>
  580.                                             ";
  581.                     // line 240
  582.                     if (( !(null === (isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'240$this->source); })())) && ((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'240$this->source); })()) > 0))) {
  583.                         // line 241
  584.                         echo "                                                <strong class=\"col col-auto mr-auto\">
  585.                                                 <span class=\"price text-success\" aria-live=\"polite\">
  586.                                                     <span class=\"js-room-selection__price\">
  587.                                                         ";
  588.                         // line 244
  589.                         if (twig_test_empty((isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'244$this->source); })()))) {
  590.                             // line 245
  591.                             echo "                                                            ";
  592.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.price-from-short"), "html"nulltrue);
  593.                             echo "
  594.                                                         ";
  595.                         }
  596.                         // line 246
  597.                         echo " ";
  598.                         echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'246$this->source); })()), (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'246$this->source); })()));
  599.                         echo "
  600.                                                     </span>
  601.                                                     <span class=\"js-room-selection__price-loading\" hidden>
  602.                                                         <span class=\"circle-spinner circle-spinner--small float-left mr-1\"
  603.                                                               aria-label=\"";
  604.                         // line 250
  605.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html"nulltrue);
  606.                         echo "\"
  607.                                                               title=\"";
  608.                         // line 251
  609.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html"nulltrue);
  610.                         echo "\"></span>
  611.                                                     </span>
  612.                                                 </span>
  613.                                                     ";
  614.                         // line 255
  615.                         if ((array_key_exists("priceData"$context) &&  !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'255$this->source); })())))) {
  616.                             // line 256
  617.                             echo "                                                        <button type=\"button\" data-target=\"#price-info-";
  618.                             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'256$this->source); })()), "html"nulltrue);
  619.                             echo "-room-row-0\"
  620.                                                                 class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium js-tracking--click-piwik\"
  621.                                                                 data-tracking-category=\"Product\"
  622.                                                                 data-tracking-action=\"click price\"
  623.                                                                 data-tracking-label=\"";
  624.                             // line 260
  625.                             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'260$this->source); })()), "html"nulltrue);
  626.                             echo "\"
  627.                                                         >
  628.                                                     <span class=\"demi-icon demi-icon-info-circle icon-in-text\"
  629.                                                           title=\"";
  630.                             // line 263
  631.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html"nulltrue);
  632.                             echo "\"
  633.                                                           aria-label=\"";
  634.                             // line 264
  635.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html"nulltrue);
  636.                             echo "\"></span>
  637.                                                         </button>
  638.                                                     ";
  639.                         }
  640.                         // line 267
  641.                         echo "                                                </strong>
  642.                                             ";
  643.                     }
  644.                     // line 269
  645.                     echo "                                        </div>
  646.                                     </div>
  647.                                 ";
  648.                 }
  649.                 // line 272
  650.                 echo "                                <a class=\"teaser__collapse-arrow collapsed demi-icon demi-icon-chevron-down\"
  651.                                    aria-expanded=\"false\"
  652.                                    aria-controls=\"detail-";
  653.                 // line 274
  654.                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'274$this->source); })()), "html"nulltrue);
  655.                 echo "\"
  656.                                    href=\"#detail-";
  657.                 // line 275
  658.                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'275$this->source); })()), "html"nulltrue);
  659.                 echo "\"
  660.                                    data-toggle=\"collapse\"
  661.                                    title=\"";
  662.                 // line 277
  663.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.show-details"), "html"nulltrue);
  664.                 echo "\"
  665.                                    aria-label=\"";
  666.                 // line 278
  667.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.show-details"), "html"nulltrue);
  668.                 echo "\"></a>
  669.                             </div>
  670.                         </div>
  671.                     </section>
  672.                         ";
  673.                 // line 285
  674.                 echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/teaser/room-details.html.twig", ["accommodationProduct" =>                 // line 286
  675. (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'286$this->source); })()), "images" =>                 // line 287
  676. (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'287$this->source); })()), "availabilityIsChecked" =>                 // line 288
  677. (isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'288$this->source); })()), "dateFrom" => twig_get_attribute($this->env$this->source,                 // line 289
  678. (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'289$this->source); })()), "getDateFrom", [], "method"falsefalsefalse289)]);
  679.                 // line 290
  680.                 echo "
  681.                     ";
  682.                 // line 293
  683.                 if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow"$context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.'293$this->source); })())) {
  684.                     // line 294
  685.                     echo "                    <div class=\"card-body\">
  686.                         ";
  687.                     // line 295
  688.                     echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig", ["accommodationProduct" =>                     // line 296
  689. (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'296$this->source); })()), "product" =>                     // line 297
  690. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'297$this->source); })()), "mealArray" =>                     // line 298
  691. (isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'298$this->source); })()), "liveMealObj" => ((                    // line 299
  692. array_key_exists("liveMealObj"$context)) ? ((isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'299$this->source); })())) : (null)), "availabilityIsChecked" =>                     // line 300
  693. (isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'300$this->source); })()), "promotionText" => ((                    // line 301
  694. array_key_exists("promotionText"$context)) ? ((isset($context["promotionText"]) || array_key_exists("promotionText"$context) ? $context["promotionText"] : (function () { throw new RuntimeError('Variable "promotionText" does not exist.'301$this->source); })())) : (null))]);
  695.                     // line 302
  696.                     echo "
  697.                     </div>
  698.                     ";
  699.                     // line 305
  700.                     if ((array_key_exists("priceData"$context) &&  !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'305$this->source); })())))) {
  701.                         // line 306
  702.                         echo "                    ";
  703.                         echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/overlays/price-info.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "id" => (("price-info-" .                         // line 308
  704. (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'308$this->source); })())) . "-room-row-0"), "priceData" =>                         // line 309
  705. (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'309$this->source); })()), "accommodationProduct" =>                         // line 310
  706. (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'310$this->source); })()), "roomRow" =>                         // line 311
  707. (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'311$this->source); })()), "roomRowIndex" => 0"productSet" =>                         // line 313
  708. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'313$this->source); })())]);
  709.                         // line 314
  710.                         echo "
  711.                     <script>
  712.                     _config.ajaxOverlay = true;
  713.                     </script>
  714.                     ";
  715.                     }
  716.                     // line 320
  717.                     echo "                    ";
  718.                 }
  719.                 // line 321
  720.                 echo "
  721.                 </div>
  722.                 ";
  723.                 // line 326
  724.                 if ( !(isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow"$context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.'326$this->source); })())) {
  725.                     // line 327
  726.                     echo "                    <div class=\"teaser-detail mx-2\">
  727.                         <div class=\"card box-shadow\">
  728.                             ";
  729.                     // line 329
  730.                     $context['_parent'] = $context;
  731.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'329$this->source); })()), "products", [], "array"falsefalsefalse329));
  732.                     $context['loop'] = [
  733.                       'parent' => $context['_parent'],
  734.                       'index0' => 0,
  735.                       'index'  => 1,
  736.                       'first'  => true,
  737.                     ];
  738.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  739.                         $length count($context['_seq']);
  740.                         $context['loop']['revindex0'] = $length 1;
  741.                         $context['loop']['revindex'] = $length;
  742.                         $context['loop']['length'] = $length;
  743.                         $context['loop']['last'] = === $length;
  744.                     }
  745.                     foreach ($context['_seq'] as $context["productIndex"] => $context["product"]) {
  746.                         // line 330
  747.                         echo "                                ";
  748.                         $context["roomRow"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["productData"]) || array_key_exists("productData"$context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.'330$this->source); })()), "roomRow", [], "array"falsefalsefalse330), $context["productIndex"], [], "array"falsefalsefalse330), "getRowObject", [], "method"falsefalsefalse330);
  749.                         // line 331
  750.                         echo "                                ";
  751.                         $context["accommodationProduct"] = Pimcore\Model\DataObject::getById(twig_get_attribute($this->env$this->source$context["product"], "getProductId", [], "method"falsefalsefalse331));
  752.                         // line 332
  753.                         echo "                                ";
  754.                         $context["id"] = (((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'332$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'332$this->source); })()), "getId", [], "method"falsefalsefalse332)) : (twig_get_attribute($this->env$this->source$context["product"], "getProductId", [], "method"falsefalsefalse332)));
  755.                         // line 333
  756.                         echo "                                ";
  757.                         $context["title"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'333$this->source); })()), "getName", [], "method"falsefalsefalse333);
  758.                         // line 334
  759.                         echo "                                ";
  760.                         if (( !(null === $context["product"]) &&  !(null === (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'334$this->source); })())))) {
  761.                             // line 335
  762.                             echo "                                    ";
  763.                             $context["priceData"] = twig_get_attribute($this->env$this->source$context["product"], "getPriceData", [], "method"falsefalsefalse335);
  764.                             // line 336
  765.                             echo "                                    ";
  766.                             $context["price"] = twig_get_attribute($this->env$this->source$context["product"], "getPrice", [], "method"falsefalsefalse336);
  767.                             // line 337
  768.                             echo "                                    ";
  769.                             $context["showVacancy"] = true;
  770.                             // line 338
  771.                             echo "                                    ";
  772.                             $context["showSelection"] = true;
  773.                             // line 339
  774.                             echo "                                    ";
  775.                             $context["vacancyCount"] = twig_get_attribute($this->env$this->source$context["product"], "getUnits", [], "method"falsefalsefalse339);
  776.                             // line 340
  777.                             echo "
  778.                                 ";
  779.                         } elseif ( !(null ===                         // line 341
  780. $context["product"])) {
  781.                             // line 342
  782.                             echo "                                    ";
  783.                             $context["price"] = twig_get_attribute($this->env$this->source$context["product"], "getBasePrice", [], "method"falsefalsefalse342);
  784.                             // line 343
  785.                             echo "                                    ";
  786.                             $context["showVacancy"] = false;
  787.                             // line 344
  788.                             echo "                                    ";
  789.                             $context["showSelection"] = false;
  790.                             // line 345
  791.                             echo "                                    ";
  792.                             $context["vacancyCount"] = 0;
  793.                             // line 346
  794.                             echo "
  795.                                     ";
  796.                             // line 347
  797.                             $context["priceInfo"] = twig_get_attribute($this->env$this->source$context["product"], "getPriceInfo", [], "method"falsefalsefalse347);
  798.                             // line 348
  799.                             echo "                                    ";
  800.                             $context["priceInfoText"] = twig_include($this->env$context"@ElementsDemiFrontend/Includes/priceInfoStr.html.twig", ["type" => twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'348$this->source); })()), "type", [], "array"falsefalsefalse348), "nights" => twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'348$this->source); })()), "nights", [], "array"falsefalsefalse348)]);
  801.                             // line 349
  802.                             echo "                                ";
  803.                         }
  804.                         // line 350
  805.                         echo "
  806.                                 ";
  807.                         // line 352
  808.                         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'352$this->source); })()), "getDateFrom", [], "method"falsefalsefalse352))) {
  809.                             // line 353
  810.                             echo "                                    ";
  811.                             if ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'353$this->source); })()), "ElementsDemiPackageSearchParameter")) {
  812.                                 // line 354
  813.                                 echo "                                        ";
  814.                                 $context["mealArray"] = [];
  815.                                 // line 355
  816.                                 echo "                                    ";
  817.                             } else {
  818.                                 // line 356
  819.                                 echo "                                        ";
  820.                                 $context["mealArray"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'356$this->source); })()), "getValidMeals", [=> twig_get_attribute($this->env$this->source, (isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'356$this->source); })()), "getPeriod", [], "method"falsefalsefalse356), => (isset($context["fromDate"]) || array_key_exists("fromDate"$context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.'356$this->source); })())], "method"falsefalsefalse356);
  821.                                 // line 357
  822.                                 echo "                                    ";
  823.                             }
  824.                             // line 358
  825.                             echo "                                    ";
  826.                             $context["liveMeal"] = twig_get_attribute($this->env$this->source$context["product"], "getMealCode", [], "method"falsefalsefalse358);
  827.                             // line 359
  828.                             echo "                                    ";
  829.                             $context["liveMealObj"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getClassByStringAndIdentifier("\\Elements\\Demi\\Model\\MealType""getByFid", (isset($context["liveMeal"]) || array_key_exists("liveMeal"$context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.'359$this->source); })()));
  830.                             // line 360
  831.                             echo "                                    ";
  832.                             if (!twig_in_filter((isset($context["liveMeal"]) || array_key_exists("liveMeal"$context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.'360$this->source); })()), twig_get_array_keys_filter((isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'360$this->source); })())))) {
  833.                                 // line 361
  834.                                 echo "                                        ";
  835.                                 $context["mealArray"] = twig_array_merge((isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'361$this->source); })()), [=> (isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'361$this->source); })())]);
  836.                                 // line 362
  837.                                 echo "                                    ";
  838.                             }
  839.                             // line 363
  840.                             echo "                                ";
  841.                         } else {
  842.                             // line 364
  843.                             echo "                                    ";
  844.                             $context["mealArray"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'364$this->source); })()), "getValidMeals", [=> 0=> (isset($context["fromDate"]) || array_key_exists("fromDate"$context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.'364$this->source); })())], "method"falsefalsefalse364);
  845.                             // line 365
  846.                             echo "                                ";
  847.                         }
  848.                         // line 366
  849.                         echo "
  850.                                     ";
  851.                         // line 368
  852.                         $context["serviceImages"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'368$this->source); })()), "getService", [], "method"falsefalsefalse368), "getImages", [=> null=> (isset($context["fromDate"]) || array_key_exists("fromDate"$context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.'368$this->source); })())], "method"falsefalsefalse368);
  853.                         // line 369
  854.                         echo "                                    ";
  855.                         $context["productImages"] = twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'369$this->source); })()), "getImages", [=> null=> (isset($context["fromDate"]) || array_key_exists("fromDate"$context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.'369$this->source); })())], "method"falsefalsefalse369);
  856.                         // line 370
  857.                         echo "                                    ";
  858.                         $context["images"] = twig_array_merge((isset($context["productImages"]) || array_key_exists("productImages"$context) ? $context["productImages"] : (function () { throw new RuntimeError('Variable "productImages" does not exist.'370$this->source); })()), (isset($context["serviceImages"]) || array_key_exists("serviceImages"$context) ? $context["serviceImages"] : (function () { throw new RuntimeError('Variable "serviceImages" does not exist.'370$this->source); })()));
  859.                         // line 371
  860.                         echo "
  861.                                 <div class=\"js-room-selection__room-row\"
  862.                                      data-room-row-id=\"";
  863.                         // line 373
  864.                         echo twig_escape_filter($this->env$context["productIndex"], "html"nulltrue);
  865.                         echo "\"
  866.                                      data-initial-price=\"";
  867.                         // line 374
  868.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "getPrice", [], "method"falsefalsefalse374), 2"."""), "html"nulltrue);
  869.                         echo "\"
  870.                                         ";
  871.                         // line 375
  872.                         if (((isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'375$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'375$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse375) > twig_get_attribute($this->env$this->source$context["product"], "getPrice", [], "method"falsefalsefalse375)))) {
  873.                             // line 376
  874.                             echo "                                            data-initial-price-before-special=\"";
  875.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'376$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse376), 2"."""), "html"nulltrue);
  876.                             echo "\"
  877.                                         ";
  878.                         }
  879.                         // line 378
  880.                         echo "                                     data-room-row-title=\"";
  881.                         echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'378$this->source); })()));
  882.                         echo "\">
  883.                                     ";
  884.                         // line 379
  885.                         if ($context["productIndex"]) {
  886.                             // line 380
  887.                             echo "                                        <hr class=\"m-0\">
  888.                                     ";
  889.                         }
  890.                         // line 382
  891.                         echo "
  892.                                     <div class=\"card-body p-2\">
  893.                                         ";
  894.                         // line 384
  895.                         $context["translation"] = ("demi.detail.room.select-headline-" twig_lower_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'384$this->source); })()), "getAccommodationType", [], "method"falsefalsefalse384)));
  896.                         // line 385
  897.                         echo "                                        <h4 class=\"h3 font-medium\">";
  898.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation"$context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.'385$this->source); })())), "html"nulltrue);
  899.                         echo " ";
  900.                         echo twig_escape_filter($this->env, ($context["productIndex"] + 1), "html"nulltrue);
  901.                         echo "</h4>
  902.                                             <div class=\"mb-1 small text-muted\">
  903.                                                 <div class=\"media\">
  904.                                                     <div class=\"demi-icon demi-icon-person mr-1 icon-in-text\" aria-hidden=\"true\"></div>
  905.                                                     <div class=\"media-body\">
  906.                                                         ";
  907.                         // line 392
  908.                         if ( !(null === (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'392$this->source); })()))) {
  909.                             // line 393
  910.                             echo "                                                            ";
  911.                             $context["adults"] = twig_get_attribute($this->env$this->source, (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'393$this->source); })()), "getAdults", [], "method"falsefalsefalse393);
  912.                             // line 394
  913.                             echo "                                                            ";
  914.                             $context["children"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'394$this->source); })()), "getChildAges", [], "method"falsefalsefalse394));
  915.                             // line 395
  916.                             echo "                                                            ";
  917.                             $context["adultsStr"] = ((((isset($context["adults"]) || array_key_exists("adults"$context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.'395$this->source); })()) > 1)) ? ((((isset($context["adults"]) || array_key_exists("adults"$context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.'395$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adults"))) : ((((isset($context["adults"]) || array_key_exists("adults"$context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.'395$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adult"))));
  918.                             // line 396
  919.                             echo "                                                            ";
  920.                             $context["childrenStr"] = ((((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'396$this->source); })()) > 1)) ? ((((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'396$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.children"))) : ((((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'396$this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.child"))));
  921.                             // line 397
  922.                             echo "
  923.                                                         ";
  924.                         } else {
  925.                             // line 399
  926.                             echo "                                                            ";
  927.                             $context["adultsStr"] = (((twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'399$this->source); })()), "getBedsMin", [], "method"falsefalsefalse399) . "-") . twig_get_attribute($this->env$this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'399$this->source); })()), "getBedsMax", [], "method"falsefalsefalse399)) . twig_get_attribute($this->env$this->source" ""translate", [=> "demi.detail.room.occupancy.persons"], "method"falsefalsefalse399));
  928.                             // line 400
  929.                             echo "                                                        ";
  930.                         }
  931.                         // line 401
  932.                         echo "
  933.                                                         ";
  934.                         // line 402
  935.                         echo twig_escape_filter($this->env, (isset($context["adultsStr"]) || array_key_exists("adultsStr"$context) ? $context["adultsStr"] : (function () { throw new RuntimeError('Variable "adultsStr" does not exist.'402$this->source); })()), "html"nulltrue);
  936.                         echo "
  937.                                                         ";
  938.                         // line 403
  939.                         if (((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'403$this->source); })()) > 0)) {
  940.                             // line 404
  941.                             echo "                                                            , ";
  942.                             echo twig_escape_filter($this->env, (isset($context["childrenStr"]) || array_key_exists("childrenStr"$context) ? $context["childrenStr"] : (function () { throw new RuntimeError('Variable "childrenStr" does not exist.'404$this->source); })()), "html"nulltrue);
  943.                             echo "
  944.                                                         ";
  945.                         }
  946.                         // line 406
  947.                         echo "                                                    </div>
  948.                                                 </div>
  949.                                             </div>
  950.                                         ";
  951.                         // line 411
  952.                         if ((isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'411$this->source); })())) {
  953.                             // line 412
  954.                             echo "                                        <div class=\"mb-1 small text-muted\">
  955.                                                 <span class=\"js-room-selection__meal-text\">
  956.                                                     ";
  957.                             // line 414
  958.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'414$this->source); })()), "getText", [], "method"falsefalsefalse414), "html"nulltrue);
  959.                             echo "
  960.                                                 </span>
  961.                                             ";
  962.                             // line 417
  963.                             if ((twig_length_filter($this->env, (isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'417$this->source); })())) > 1)) {
  964.                                 // line 418
  965.                                 echo "                                            <label for=\"meal-selector-";
  966.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "getProductId", [], "method"falsefalsefalse418), "html"nulltrue);
  967.                                 echo "\" tabindex=\"0\"
  968.                                                            class=\"btn-no-styling increased-click-area js-room-selection__add\">
  969.                                                         <span class=\"demi-icon demi-icon-edit icon-in-text\"
  970.                                                               title=\"";
  971.                                 // line 421
  972.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html"nulltrue);
  973.                                 echo "\"
  974.                                                               aria-label=\"";
  975.                                 // line 422
  976.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html"nulltrue);
  977.                                 echo "\"></span>
  978.                                                     </label>
  979.                                                 ";
  980.                             }
  981.                             // line 425
  982.                             echo "                                            </div>
  983.                                         ";
  984.                         }
  985.                         // line 427
  986.                         echo "
  987.                                         <div class=\"row align-items-baseline\">
  988.                                             <div class=\"col\">
  989.                                                 ";
  990.                         // line 430
  991.                         if (( !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'430$this->source); })())) && (twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'430$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse430) > twig_get_attribute($this->env$this->source$context["product"], "getPrice", [], "method"falsefalsefalse430)))) {
  992.                             // line 431
  993.                             echo "                                                    <span class=\"sr-only\">";
  994.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.old-price"), "html"nulltrue);
  995.                             echo "</span>
  996.                                                     <s class=\"text-muted js-room-selection__price-before-special\">";
  997.                             // line 432
  998.                             echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()(twig_get_attribute($this->env$this->source, (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'432$this->source); })()), "getPriceBeforeSpecial", [], "method"falsefalsefalse432), (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'432$this->source); })()));
  999.                             echo "</s>
  1000.                                                 ";
  1001.                         }
  1002.                         // line 434
  1003.                         echo "
  1004.                                                 ";
  1005.                         // line 435
  1006.                         if ( !twig_test_empty((isset($context["priceInfoText"]) || array_key_exists("priceInfoText"$context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.'435$this->source); })()))) {
  1007.                             // line 436
  1008.                             echo "                                                    <div class=\"small text-muted\">
  1009.                                                         ";
  1010.                             // line 437
  1011.                             echo twig_escape_filter($this->env, (isset($context["priceInfoText"]) || array_key_exists("priceInfoText"$context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.'437$this->source); })()), "html"nulltrue);
  1012.                             echo "
  1013.                                                     </div>
  1014.                                                 ";
  1015.                         }
  1016.                         // line 440
  1017.                         echo "                                            </div>
  1018.                                             ";
  1019.                         // line 442
  1020.                         if ((array_key_exists("price"$context) && ((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'442$this->source); })()) > 0))) {
  1021.                             // line 443
  1022.                             echo "                                            <strong class=\"col col-auto mr-auto\">
  1023.                                                 <span class=\"price text-success\" aria-live=\"polite\">
  1024.                                                     <span class=\"js-room-selection__price\">
  1025.                                                         ";
  1026.                             // line 446
  1027.                             if ((null === (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'446$this->source); })()))) {
  1028.                                 // line 447
  1029.                                 echo "                                                            ";
  1030.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.price-from-short"), "html"nulltrue);
  1031.                                 echo "
  1032.                                                         ";
  1033.                             }
  1034.                             // line 448
  1035.                             echo " ";
  1036.                             echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'448$this->source); })()), (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'448$this->source); })()));
  1037.                             echo "
  1038.                                                     </span>
  1039.                                                     <span class=\"js-room-selection__price-loading\" hidden>
  1040.                                                         <span class=\"circle-spinner circle-spinner--small float-left mr-1\"
  1041.                                                               aria-label=\"";
  1042.                             // line 452
  1043.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html"nulltrue);
  1044.                             echo "\"
  1045.                                                               title=\"";
  1046.                             // line 453
  1047.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html"nulltrue);
  1048.                             echo "\"></span>
  1049.                                                     </span>
  1050.                                                 </span>
  1051.                                                 ";
  1052.                             // line 457
  1053.                             if ( !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'457$this->source); })()))) {
  1054.                                 // line 458
  1055.                                 echo "                                                <button type=\"button\" data-target=\"#price-info-";
  1056.                                 echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'458$this->source); })()), "html"nulltrue);
  1057.                                 echo "-room-row-";
  1058.                                 echo twig_escape_filter($this->env$context["productIndex"], "html"nulltrue);
  1059.                                 echo "\"
  1060.                                                         class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium\">
  1061.                                                     <span class=\"demi-icon demi-icon-info-circle icon-in-text\"
  1062.                                                           title=\"";
  1063.                                 // line 461
  1064.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html"nulltrue);
  1065.                                 echo "\"
  1066.                                                           aria-label=\"";
  1067.                                 // line 462
  1068.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html"nulltrue);
  1069.                                 echo "\"></span>
  1070.                                                 </button>
  1071.                                                 ";
  1072.                             }
  1073.                             // line 465
  1074.                             echo "                                            </strong>
  1075.                                             ";
  1076.                         }
  1077.                         // line 467
  1078.                         echo "                                        </div>
  1079.                                             <div class=\"mt-2\">
  1080.                                                 ";
  1081.                         // line 470
  1082.                         echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig", ["accommodationProduct" =>                         // line 471
  1083. (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'471$this->source); })()), "product" =>                         // line 472
  1084. $context["product"], "mealArray" =>                         // line 473
  1085. (isset($context["mealArray"]) || array_key_exists("mealArray"$context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.'473$this->source); })()), "liveMealObj" =>                         // line 474
  1086. (isset($context["liveMealObj"]) || array_key_exists("liveMealObj"$context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.'474$this->source); })()), "availabilityIsChecked" =>                         // line 475
  1087. (isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'475$this->source); })()), "showSelection" =>                         // line 476
  1088. (isset($context["showSelection"]) || array_key_exists("showSelection"$context) ? $context["showSelection"] : (function () { throw new RuntimeError('Variable "showSelection" does not exist.'476$this->source); })()), "promotionText" =>                         // line 477
  1089. (isset($context["promotionText"]) || array_key_exists("promotionText"$context) ? $context["promotionText"] : (function () { throw new RuntimeError('Variable "promotionText" does not exist.'477$this->source); })())]);
  1090.                         // line 478
  1091.                         echo "
  1092.                                             </div>
  1093.                                     </div>
  1094.                                     ";
  1095.                         // line 482
  1096.                         if ( !(null === (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'482$this->source); })()))) {
  1097.                             // line 483
  1098.                             echo "                                        ";
  1099.                             echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/overlays/price-info.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "id" => ((("price-info-" .                             // line 486
  1100. (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'486$this->source); })())) . "-room-row-") . $context["productIndex"]), "priceData" =>                             // line 487
  1101. (isset($context["priceData"]) || array_key_exists("priceData"$context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.'487$this->source); })()), "accommodationProduct" =>                             // line 488
  1102. (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'488$this->source); })()), "roomRow" =>                             // line 489
  1103. (isset($context["roomRow"]) || array_key_exists("roomRow"$context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.'489$this->source); })()), "roomRowIndex" =>                             // line 490
  1104. $context["productIndex"], "productSet" =>                             // line 491
  1105. $context["product"]]);
  1106.                             // line 492
  1107.                             echo "
  1108.                                     ";
  1109.                         }
  1110.                         // line 494
  1111.                         echo "
  1112.                                 </div>
  1113.                             ";
  1114.                         ++$context['loop']['index0'];
  1115.                         ++$context['loop']['index'];
  1116.                         $context['loop']['first'] = false;
  1117.                         if (isset($context['loop']['length'])) {
  1118.                             --$context['loop']['revindex0'];
  1119.                             --$context['loop']['revindex'];
  1120.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  1121.                         }
  1122.                     }
  1123.                     $_parent $context['_parent'];
  1124.                     unset($context['_seq'], $context['_iterated'], $context['productIndex'], $context['product'], $context['_parent'], $context['loop']);
  1125.                     $context array_intersect_key($context$_parent) + $_parent;
  1126.                     // line 498
  1127.                     echo "                        </div>
  1128.                     </div>
  1129.                 ";
  1130.                 }
  1131.                 // line 501
  1132.                 echo "
  1133.                     ";
  1134.                 // line 502
  1135.                 echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig", ["imagesTypes" => [=> "Service"=> "Product"], "accommodation" =>                 // line 504
  1136. (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'504$this->source); })()), "accommodationProduct" =>                 // line 505
  1137. (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct"$context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.'505$this->source); })()), "lazyLoadAll" => true]);
  1138.                 // line 507
  1139.                 echo "
  1140.             </div>
  1141.         </li>
  1142.     ";
  1143.             }
  1144.         }
  1145.         
  1146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1147.         
  1148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1149.     }
  1150.     public function getTemplateName()
  1151.     {
  1152.         return "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig";
  1153.     }
  1154.     public function isTraitable()
  1155.     {
  1156.         return false;
  1157.     }
  1158.     public function getDebugInfo()
  1159.     {
  1160.         return array (  1186 => 507,  1184 => 505,  1183 => 504,  1182 => 502,  1179 => 501,  1174 => 498,  1157 => 494,  1153 => 492,  1151 => 491,  1150 => 490,  1149 => 489,  1148 => 488,  1147 => 487,  1146 => 486,  1144 => 483,  1142 => 482,  1136 => 478,  1134 => 477,  1133 => 476,  1132 => 475,  1131 => 474,  1130 => 473,  1129 => 472,  1128 => 471,  1127 => 470,  1122 => 467,  1118 => 465,  1112 => 462,  1108 => 461,  1099 => 458,  1097 => 457,  1090 => 453,  1086 => 452,  1078 => 448,  1072 => 447,  1070 => 446,  1065 => 443,  1063 => 442,  1059 => 440,  1053 => 437,  1050 => 436,  1048 => 435,  1045 => 434,  1040 => 432,  1035 => 431,  1033 => 430,  1028 => 427,  1024 => 425,  1018 => 422,  1014 => 421,  1007 => 418,  1005 => 417,  999 => 414,  995 => 412,  993 => 411,  986 => 406,  980 => 404,  978 => 403,  974 => 402,  971 => 401,  968 => 400,  965 => 399,  961 => 397,  958 => 396,  955 => 395,  952 => 394,  949 => 393,  947 => 392,  934 => 385,  932 => 384,  928 => 382,  924 => 380,  922 => 379,  917 => 378,  911 => 376,  909 => 375,  905 => 374,  901 => 373,  897 => 371,  894 => 370,  891 => 369,  889 => 368,  885 => 366,  882 => 365,  879 => 364,  876 => 363,  873 => 362,  870 => 361,  867 => 360,  864 => 359,  861 => 358,  858 => 357,  855 => 356,  852 => 355,  849 => 354,  846 => 353,  844 => 352,  840 => 350,  837 => 349,  834 => 348,  832 => 347,  829 => 346,  826 => 345,  823 => 344,  820 => 343,  817 => 342,  815 => 341,  812 => 340,  809 => 339,  806 => 338,  803 => 337,  800 => 336,  797 => 335,  794 => 334,  791 => 333,  788 => 332,  785 => 331,  782 => 330,  765 => 329,  761 => 327,  759 => 326,  752 => 321,  749 => 320,  741 => 314,  739 => 313,  738 => 311,  737 => 310,  736 => 309,  735 => 308,  733 => 306,  731 => 305,  726 => 302,  724 => 301,  723 => 300,  722 => 299,  721 => 298,  720 => 297,  719 => 296,  718 => 295,  715 => 294,  713 => 293,  708 => 290,  706 => 289,  705 => 288,  704 => 287,  703 => 286,  702 => 285,  692 => 278,  688 => 277,  683 => 275,  679 => 274,  675 => 272,  670 => 269,  666 => 267,  660 => 264,  656 => 263,  650 => 260,  642 => 256,  640 => 255,  633 => 251,  629 => 250,  621 => 246,  615 => 245,  613 => 244,  608 => 241,  606 => 240,  602 => 238,  596 => 235,  593 => 234,  591 => 233,  588 => 232,  583 => 230,  578 => 229,  576 => 228,  571 => 225,  567 => 223,  561 => 220,  557 => 219,  550 => 216,  548 => 215,  542 => 212,  538 => 210,  536 => 209,  531 => 206,  529 => 205,  525 => 203,  519 => 201,  517 => 200,  514 => 199,  507 => 194,  501 => 192,  499 => 191,  494 => 190,  491 => 189,  488 => 188,  484 => 186,  481 => 185,  478 => 184,  475 => 183,  472 => 182,  470 => 181,  461 => 174,  459 => 173,  453 => 170,  446 => 166,  442 => 165,  433 => 159,  427 => 156,  420 => 151,  417 => 150,  411 => 148,  409 => 147,  405 => 146,  400 => 145,  398 => 144,  392 => 141,  388 => 139,  385 => 138,  382 => 137,  379 => 136,  376 => 135,  374 => 134,  371 => 133,  365 => 130,  362 => 129,  360 => 128,  357 => 127,  353 => 125,  347 => 123,  343 => 121,  341 => 120,  340 => 119,  338 => 118,  336 => 117,  333 => 116,  331 => 115,  322 => 108,  316 => 106,  310 => 104,  308 => 103,  304 => 102,  299 => 101,  296 => 100,  293 => 99,  290 => 98,  284 => 97,  281 => 96,  278 => 95,  275 => 94,  272 => 93,  267 => 92,  264 => 91,  261 => 90,  259 => 89,  255 => 88,  251 => 87,  247 => 86,  243 => 85,  239 => 84,  235 => 83,  231 => 82,  226 => 80,  223 => 79,  221 => 78,  218 => 77,  215 => 76,  212 => 75,  209 => 74,  206 => 73,  203 => 72,  200 => 71,  197 => 70,  194 => 69,  191 => 68,  188 => 67,  185 => 66,  182 => 65,  179 => 64,  176 => 63,  173 => 62,  171 => 61,  167 => 59,  164 => 58,  161 => 57,  158 => 56,  155 => 55,  153 => 54,  150 => 53,  147 => 52,  144 => 51,  141 => 50,  138 => 49,  136 => 48,  132 => 46,  129 => 45,  126 => 44,  123 => 43,  120 => 42,  117 => 41,  114 => 40,  112 => 39,  109 => 38,  106 => 37,  103 => 36,  100 => 35,  97 => 34,  94 => 33,  92 => 32,  89 => 31,  86 => 30,  84 => 29,  81 => 28,  78 => 27,  75 => 26,  72 => 25,  69 => 24,  66 => 23,  64 => 22,  61 => 21,  59 => 20,  56 => 19,  52 => 17,  48 => 15,  46 => 14,  43 => 13,);
  1161.     }
  1162.     public function getSourceContext()
  1163.     {
  1164.         return new Source("{#
  1165. /**
  1166.  * @var \\\\Pimcore\\\\Templating\\\\GlobalVariables app
  1167.  * #
  1168.  * @var productData array
  1169.  * @var accommodation \\\\Elements\\\\Demi\\\\Model\\\\AccommodationServiceProvider
  1170.  * @var settlerCode string
  1171.  * @var bookOnRequest bool
  1172.  * @var availabilityIsChecked bool
  1173.  * @var hasSingleRoomRow bool
  1174.  * @var searchParam \\\\Elements\\\\Demi\\\\Accommodation\\\\Search\\\\Parameter
  1175.  */ #}
  1176. {% if searchParam is not defined or searchParam.getDateFrom() is empty %}
  1177.     {% set fromDate = null %}
  1178. {% else %}
  1179.     {% set fromDate = demi_getSearchFrom() %}
  1180. {% endif %}
  1181. {% if productData is iterable and productData.roomRow[0] is defined and productData.products[0] is defined %}
  1182.     {% set possibleIndices = productData.roomRow | keys %}
  1183.     {% set i = possibleIndices | first %}
  1184.     {% set roomRow = productData.roomRow[i].getRowObject() %}
  1185.     {% set product = productData.products[i] %}
  1186.     {% set accommodationProduct = pimcore_object(product.getProductId()) %}
  1187.     {% if accommodationProduct and accommodationProduct.isPublished() %}
  1188.         <li>
  1189.             {% set id = product.getProductId() %}
  1190.             {% set title = accommodationProduct.getName() %}
  1191.             {% if product is not null and roomRow is not null %}
  1192.                 {% set priceData = product.getPriceData() %}
  1193.                 {% set price = product.getPrice() %}
  1194.                 {% set showVacancy = true %}
  1195.                 {% set showSelection = true %}
  1196.                 {% set vacancyCount = product.getUnits() %}
  1197.                 {% set promotionText = null %}
  1198.                 {% if product.getCancellationInformation() is not empty %}
  1199.                     {% set cancellationInformation = product.getCancellationInformation() %}
  1200.                     {% set displayInfo = demi_getCancellationDisplayInfo(cancellationInformation,searchParam.getDateFrom()) %}
  1201.                     {% set freeCancelText = displayInfo.getFreeCancellationText() %}
  1202.                     {% set promotionText = freeCancelText == \"\"  ? null : freeCancelText %}
  1203.                 {% endif %}
  1204.             {% elseif product is not null %}
  1205.                 {% set price = product.getBasePrice() %}
  1206.                 {% set showVacancy = false %}
  1207.                 {% set showSelection = false %}
  1208.                 {% set vacancyCount = 0 %}
  1209.                 {% set priceInfo = product.getPriceInfo() %}
  1210.                 {% if priceInfo is not empty %}
  1211.                     {% set priceInfoText = include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig', {'type': priceInfo['type'], 'nights': priceInfo['nights']}) %}
  1212.                 {% endif %}
  1213.             {% endif %}
  1214.             {% if searchParam.getDateFrom() is not null %}
  1215.                 {%  if searchParam is instanceof('\\Elements\\Demi\\Lts\\Accommodation\\Search\\Parameter') %}
  1216.                     {% set mealArray =  product.getPossibleMealCodes() %}
  1217.                 {% elseif searchParam is instanceof('\\Elements\\Demi\\Package\\Search\\Parameter') %}
  1218.                     {% set  mealArray =  [] %}
  1219.                 {% else %}
  1220.                     {% set mealArray = accommodationProduct.getValidMeals(searchParam.getPeriod(), searchParam.getDateFrom()) %}
  1221.                 {% endif %}
  1222.                 {% set liveMeal = product.getMealCode() %}
  1223.                 {% set liveMealObj = demi_getClassByStringAndIdentifier(\"\\\\Elements\\\\Demi\\\\Model\\\\MealType\", \"getByFid\", liveMeal) %}
  1224.                 {% if liveMeal not in mealArray|keys %}
  1225.                     {% set mealArray = mealArray|merge([liveMealObj]) %}
  1226.                 {% endif %}
  1227.             {% else %}
  1228.                 {% set mealArray = accommodationProduct.getValidMeals(0) %}
  1229.             {% endif %}
  1230.             {% set images = accommodationProduct is not null ? demi_getRoomPictures(accommodationProduct,fromDate) : [] %}
  1231.             <div id=\"room-row-collapse-parent-{{ product.getProductId() }}\"
  1232.                 class=\"js-room-selection__room\"
  1233.                  data-availability-reference-id=\"{{ product.getAvailabilityReference() is same as \"Service\" ? product.getServiceId() : product.getProductId() }}\"
  1234.                  data-room-id=\"{{ product.getProductId() }}\"
  1235.                  data-tracking-variant=\"{{ demi_impressionVariant(accommodationProduct ?: product, tvbPackage) }}\"
  1236.                  data-tracking-variant-id=\"{{ product.getProductId() }}\"
  1237.                  data-settler-code=\"{{ settlerCode }}\"
  1238.                  data-booking-type=\"{{ product.getBookable() ? 'bookable' : 'onrequest' }}\">
  1239.                 <div class=\"card box-shadow mt-3 {{ hasSingleRoomRow ? 'js-room-selection__room-row' : 'z-1' }}\"
  1240.                         {% if hasSingleRoomRow %}
  1241.                             {% if productData is iterable and  productData['products'] is iterable and productData['roomRow'] is iterable %}
  1242.                                 {% set done = false %}
  1243.                                 {% for productIndex, product in productData['products'] %}
  1244.                                     {% if not done %}
  1245.                                         {% set roomRowIndexSingleRoom = productData['roomRow'][productIndex].getIndex() %}
  1246.                                         {% set done = true %}
  1247.                                     {% endif %}
  1248.                                 {% endfor %}
  1249.                             {% else %}
  1250.                                 {% set roomRowIndexSingleRoom = 0 %}
  1251.                             {% endif %}
  1252.                             data-room-row-id=\"{{ roomRowIndexSingleRoom is defined ? roomRowIndexSingleRoom : 0 }}\"
  1253.                             data-initial-price=\"{{ price | number_format(2, '.', '') }}\"
  1254.                             {% if priceData is defined and priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
  1255.                                 data-initial-price-before-special=\"{{ priceData.getPriceBeforeSpecial() | number_format(2, '.', '') }}\"
  1256.                             {% endif %}
  1257.                             data-room-row-title=\"{{ title|escape }}\"
  1258.                         {% endif %}
  1259.                 >
  1260.                     <section class=\"teaser teaser--body-padding\">
  1261.                         <div class=\"row row--gutter-width-10\">
  1262.                             <div class=\"col-4 d-flex flex-column\">
  1263.                                 {% if priceData is defined and priceData is not null and priceData.getSpecialPriceType() is same as \"None\" and priceData.getSpecialPriceName() is not empty %}
  1264.                                     <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
  1265.                                         {% if priceData.getSplitPay() and priceData.getSplitStay()  and priceData.getSplitPay() != priceData.getSplitStay() %}
  1266.                                             {{ demi_fillTranslation({
  1267.                                                 '[STAY]' : priceData.getSplitStay(),
  1268.                                                 '[PAY]' : priceData.getSplitPay()
  1269.                                             }, 'demi.price-special-type.splitpay') }}
  1270.                                         {% else %}
  1271.                                             {{ priceData.getSpecialPriceName() }}
  1272.                                         {% endif %}
  1273.                                     </div>
  1274.                                 {% endif %}
  1275.                                 {% if priceData is defined and priceData is not null and priceData.getSpecialPriceType() and priceData.getSpecialPriceType()!= priceData.getSpecialPriceName() and priceData.getSpecialPriceType() is not same as \"None\" %}
  1276.                                     <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
  1277.                                         {{ (\"demi.price-special-type.\" ~ priceData.getSpecialPriceType() | lower) | trans }}
  1278.                                     </div>
  1279.                                 {% endif %}
  1280.                                 {% set galUrl = '#' ~ (accommodationProduct is not null ? accommodationProduct.getId() : '') ~ '-imgs-overlay' %}
  1281.                                 {% if images|length == 0 %}
  1282.                                     {% set images = [demi_core_configuration('getTeaserFallbackImage',[])] %}
  1283.                                     {% set galUrl = '' %}
  1284.                                 {% endif %}
  1285.                                 <button type=\"button\" class=\"teaser__img btn-no-styling js-overlay__toggle figure js-tracking--click-piwik\"
  1286.                                         data-target=\"{{ galUrl }}\"
  1287.                                         data-tracking-category=\"Gallery\"
  1288.                                         data-tracking-action=\"open\"
  1289.                                         {% if  (images[0]) %}
  1290.                                         style=\"background-image:url({{ images[0].getThumbnail('demi-mobile-room-teaser') }});\">
  1291.                                     {{ images[0].getThumbnail('demi-mobile-room-teaser').getHTML({ 'imgAttributes': {'class': 'sr-only', 'alt': 'demi.image-alt-prefix'|trans ~ ' '~  (accommodationProduct is not null ? accommodationProduct.getName() : product.getDescription()) }})|raw }}
  1292.                                     {% if images|length > 1 %}
  1293.                                         <span class=\"figure__overlay p-1\">1/{{ images|length }}</span>
  1294.                                     {% endif %}
  1295.                                     {% endif %}
  1296.                                 </button>
  1297.                             </div>
  1298.                             <div class=\"col-8 teaser__body collapsed js-tracking--click-piwik\"
  1299.                                  data-toggle=\"collapse\"
  1300.                                  data-target=\"#detail-{{ id }}\"
  1301.                                  data-tracking-category=\"Product\"
  1302.                                  data-tracking-action=\"click detail\"
  1303.                                  data-tracking-label=\"{{ id }}\"
  1304.                             >
  1305.                                 <div class=\"teaser__main-body\">
  1306.                                     <h3 class=\"mb-1 text-primary\">
  1307.                                         <a href=\"#detail-{{ id }}\"
  1308.                                            aria-controls=\"detail-{{ id }}\"
  1309.                                            aria-expanded=\"false\"
  1310.                                            data-toggle=\"collapse\"
  1311.                                            class=\"collapsed\"
  1312.                                         >{{ title }}</a>
  1313.                                     </h3>
  1314.                                     {% if hasSingleRoomRow %}
  1315.                                             <div class=\"mb-1 small text-muted\">
  1316.                                                 <div class=\"media\">
  1317.                                                     <div class=\"demi-icon demi-icon-person mr-1 icon-in-text\"
  1318.                                                          aria-hidden=\"true\"></div>
  1319.                                                     <div class=\"media-body\">
  1320.                                                         {% if roomRow is not null %}
  1321.                                                             {% set adults = roomRow.getAdults() %}
  1322.                                                             {% set children = roomRow.getChildAges()|length %}
  1323.                                                             {% set adultsStr = adults > 1 ? adults ~ \" \" ~ 'demi.detail.room.occupancy.adults'|trans : adults ~ \" \" ~ 'demi.detail.room.occupancy.adult'|trans %}
  1324.                                                             {% set childrenStr = children > 1 ? children ~ \" \" ~ 'demi.detail.room.occupancy.children'|trans : children ~ \" \" ~ 'demi.detail.room.occupancy.child'|trans %}
  1325.                                                         {% else %}
  1326.                                                             {% set adultsStr = accommodationProduct.getBedsMin() ~ \"-\" ~ accommodationProduct.getBedsMax() ~ \" \" ~ 'demi.detail.room.occupancy.persons'|trans %}
  1327.                                                         {% endif %}
  1328.                                                         {{ adultsStr }}
  1329.                                                         {% if children is defined and children|length > 0 %}
  1330.                                                             , {{ childrenStr }}
  1331.                                                         {% endif %}
  1332.                                                     </div>
  1333.                                                 </div>
  1334.                                             </div>
  1335.                                     {% endif %}
  1336.                                     {% if showVacancy %}
  1337.                                         {{  include('@ElementsDemiFrontend/Includes/elements/vacancy-info.html.twig', {'vacancyCount':vacancyCount, 'tvbPackage':tvbPackage}) }}
  1338.                                     {% endif %}
  1339.                                 </div>
  1340.                                 {% if hasSingleRoomRow %}
  1341.                                     <hr class=\"my-1\">
  1342.                                     <div>
  1343.                                         {% if liveMealObj is defined and liveMealObj is not empty %}
  1344.                                             <div class=\"mb-1 small text-muted\">
  1345.                                                 <span class=\"js-room-selection__meal-text\">
  1346.                                                     {{ liveMealObj.getText() }}
  1347.                                                 </span>
  1348.                                                 {% if mealArray|length > 1 %}
  1349.                                                     <label for=\"meal-selector-{{ product.getProductId() }}\" tabindex=\"0\"
  1350.                                                            class=\"btn-no-styling increased-click-area js-room-selection__add\">
  1351.                                                         <span class=\"demi-icon demi-icon-edit icon-in-text\"
  1352.                                                               title=\"{{ \"demi.detail.change-meal\"|trans }}\"
  1353.                                                               aria-label=\"{{ \"demi.detail.change-meal\"|trans }}\"></span>
  1354.                                                     </label>
  1355.                                                 {% endif %}
  1356.                                             </div>
  1357.                                         {% endif %}
  1358.                                         <div class=\"row align-items-baseline\">
  1359.                                             <div class=\"col\">
  1360.                                                 {% if priceData is defined and priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
  1361.                                                     <span class=\"sr-only\">{{ 'demi.detail.room.old-price'|trans }}</span>
  1362.                                                     <s class=\"text-muted js-room-selection__price-before-special\">{{ demi_paymentGetPriceObject(priceData.getPriceBeforeSpecial(), accommodation) }}</s>
  1363.                                                 {% endif %}
  1364.                                                 {% if priceInfoText is defined %}
  1365.                                                     <div class=\"small text-muted\">
  1366.                                                         {{ priceInfoText }}
  1367.                                                     </div>
  1368.                                                 {% endif %}
  1369.                                             </div>
  1370.                                             {% if (price is not null and price > 0) %}
  1371.                                                 <strong class=\"col col-auto mr-auto\">
  1372.                                                 <span class=\"price text-success\" aria-live=\"polite\">
  1373.                                                     <span class=\"js-room-selection__price\">
  1374.                                                         {% if roomRow is empty %}
  1375.                                                             {{ 'demi.price-from-short'|trans }}
  1376.                                                         {% endif %} {{ demi_paymentGetPriceObject(price, accommodation) }}
  1377.                                                     </span>
  1378.                                                     <span class=\"js-room-selection__price-loading\" hidden>
  1379.                                                         <span class=\"circle-spinner circle-spinner--small float-left mr-1\"
  1380.                                                               aria-label=\"{{ 'demi.content-loading'|trans }}\"
  1381.                                                               title=\"{{ 'demi.content-loading'|trans }}\"></span>
  1382.                                                     </span>
  1383.                                                 </span>
  1384.                                                     {% if  priceData is defined and priceData is not null %}
  1385.                                                         <button type=\"button\" data-target=\"#price-info-{{ id }}-room-row-0\"
  1386.                                                                 class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium js-tracking--click-piwik\"
  1387.                                                                 data-tracking-category=\"Product\"
  1388.                                                                 data-tracking-action=\"click price\"
  1389.                                                                 data-tracking-label=\"{{ id }}\"
  1390.                                                         >
  1391.                                                     <span class=\"demi-icon demi-icon-info-circle icon-in-text\"
  1392.                                                           title=\"{{ 'demi.detail.room.price-info'|trans }}\"
  1393.                                                           aria-label=\"{{ 'demi.detail.room.price-info'|trans }}\"></span>
  1394.                                                         </button>
  1395.                                                     {% endif %}
  1396.                                                 </strong>
  1397.                                             {% endif %}
  1398.                                         </div>
  1399.                                     </div>
  1400.                                 {% endif %}
  1401.                                 <a class=\"teaser__collapse-arrow collapsed demi-icon demi-icon-chevron-down\"
  1402.                                    aria-expanded=\"false\"
  1403.                                    aria-controls=\"detail-{{ id }}\"
  1404.                                    href=\"#detail-{{ id }}\"
  1405.                                    data-toggle=\"collapse\"
  1406.                                    title=\"{{ 'demi.detail.room.show-details'|trans }}\"
  1407.                                    aria-label=\"{{ 'demi.detail.room.show-details'|trans }}\"></a>
  1408.                             </div>
  1409.                         </div>
  1410.                     </section>
  1411.                         {{ include(\"@ElementsDemiFrontend/Includes/teaser/room-details.html.twig\", {
  1412.                             \"accommodationProduct\": accommodationProduct,
  1413.                             \"images\": images,
  1414.                             \"availabilityIsChecked\": availabilityIsChecked,
  1415.                             \"dateFrom\": searchParam.getDateFrom()
  1416.                         }) }}
  1417.                     {% if hasSingleRoomRow %}
  1418.                     <div class=\"card-body\">
  1419.                         {{ include(\"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig\", {
  1420.                             'accommodationProduct': accommodationProduct,
  1421.                             'product': product,
  1422.                             'mealArray': mealArray,
  1423.                             'liveMealObj': liveMealObj is defined ? liveMealObj : null,
  1424.                             'availabilityIsChecked': availabilityIsChecked,
  1425.                             'promotionText': promotionText is defined ? promotionText : null
  1426.                         }) }}
  1427.                     </div>
  1428.                     {% if priceData is defined and priceData is not null %}
  1429.                     {{ include('@ElementsDemiFrontend/Includes/overlays/price-info.html.twig', {
  1430.                         'title': 'demi.detail.room.price-info'|trans ,
  1431.                         'id': 'price-info-' ~ id ~ '-room-row-0',
  1432.                         'priceData': priceData,
  1433.                         'accommodationProduct': accommodationProduct,
  1434.                         'roomRow': roomRow,
  1435.                         'roomRowIndex': 0,
  1436.                         'productSet': product,
  1437.                     }) }}
  1438.                     <script>
  1439.                     _config.ajaxOverlay = true;
  1440.                     </script>
  1441.                     {% endif %}
  1442.                     {% endif %}
  1443.                 </div>
  1444.                 {% if not hasSingleRoomRow %}
  1445.                     <div class=\"teaser-detail mx-2\">
  1446.                         <div class=\"card box-shadow\">
  1447.                             {% for productIndex, product in productData['products'] %}
  1448.                                 {% set roomRow = productData['roomRow'][productIndex].getRowObject() %}
  1449.                                 {% set accommodationProduct = pimcore_object(product.getProductId()) %}
  1450.                                 {% set id = accommodationProduct ? accommodationProduct.getId() : product.getProductId() %}
  1451.                                 {% set title = accommodationProduct.getName() %}
  1452.                                 {% if product is not null and roomRow is not null %}
  1453.                                     {% set priceData = product.getPriceData() %}
  1454.                                     {% set price = product.getPrice() %}
  1455.                                     {% set showVacancy = true %}
  1456.                                     {% set showSelection = true %}
  1457.                                     {% set vacancyCount = product.getUnits() %}
  1458.                                 {% elseif product is not null %}
  1459.                                     {% set price = product.getBasePrice() %}
  1460.                                     {% set showVacancy = false %}
  1461.                                     {% set showSelection = false %}
  1462.                                     {% set vacancyCount = 0 %}
  1463.                                     {% set priceInfo = product.getPriceInfo() %}
  1464.                                     {% set priceInfoText = include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig', {'type': priceInfo['type'], 'nights': priceInfo['nights']}) %}
  1465.                                 {% endif %}
  1466.                                 {% if searchParam.getDateFrom() is not null %}
  1467.                                     {% if searchParam is instanceof('\\Elements\\Demi\\Package\\Search\\Parameter') %}
  1468.                                         {% set mealArray =  [] %}
  1469.                                     {% else %}
  1470.                                         {% set mealArray = accommodationProduct.getValidMeals(searchParam.getPeriod(), fromDate) %}
  1471.                                     {% endif %}
  1472.                                     {% set liveMeal = product.getMealCode() %}
  1473.                                     {% set liveMealObj = demi_getClassByStringAndIdentifier(\"\\\\Elements\\\\Demi\\\\Model\\\\MealType\", \"getByFid\", liveMeal) %}
  1474.                                     {% if liveMeal not in mealArray|keys %}
  1475.                                         {% set mealArray = mealArray|merge([liveMealObj]) %}
  1476.                                     {% endif %}
  1477.                                 {% else %}
  1478.                                     {% set mealArray = accommodationProduct.getValidMeals(0, fromDate) %}
  1479.                                 {% endif %}
  1480.                                     {% set serviceImages = accommodationProduct.getService().getImages(null, fromDate) %}
  1481.                                     {% set productImages = accommodationProduct.getImages(null, fromDate) %}
  1482.                                     {% set images = productImages|merge(serviceImages) %}
  1483.                                 <div class=\"js-room-selection__room-row\"
  1484.                                      data-room-row-id=\"{{ productIndex }}\"
  1485.                                      data-initial-price=\"{{ product.getPrice() | number_format(2, '.', '') }}\"
  1486.                                         {% if  (priceData and priceData.getPriceBeforeSpecial() > product.getPrice()) %}
  1487.                                             data-initial-price-before-special=\"{{ priceData.getPriceBeforeSpecial() | number_format(2, '.', '') }}\"
  1488.                                         {% endif %}
  1489.                                      data-room-row-title=\"{{ title|escape }}\">
  1490.                                     {% if  (productIndex) %}
  1491.                                         <hr class=\"m-0\">
  1492.                                     {% endif %}
  1493.                                     <div class=\"card-body p-2\">
  1494.                                         {% set translation = 'demi.detail.room.select-headline-'~ (accommodationProduct.getAccommodationType()|lower) %}
  1495.                                         <h4 class=\"h3 font-medium\">{{ translation|trans }} {{ productIndex + 1 }}</h4>
  1496.                                             <div class=\"mb-1 small text-muted\">
  1497.                                                 <div class=\"media\">
  1498.                                                     <div class=\"demi-icon demi-icon-person mr-1 icon-in-text\" aria-hidden=\"true\"></div>
  1499.                                                     <div class=\"media-body\">
  1500.                                                         {% if roomRow is not null %}
  1501.                                                             {% set adults = roomRow.getAdults() %}
  1502.                                                             {% set children = roomRow.getChildAges()|length %}
  1503.                                                             {% set adultsStr = adults > 1 ? adults ~ \" \" ~ 'demi.detail.room.occupancy.adults'|trans : adults ~ \" \" ~ 'demi.detail.room.occupancy.adult'|trans %}
  1504.                                                             {% set childrenStr = children > 1 ? children ~ \" \" ~ 'demi.detail.room.occupancy.children'|trans : children ~ \" \" ~ 'demi.detail.room.occupancy.child'|trans %}
  1505.                                                         {% else %}
  1506.                                                             {% set adultsStr = accommodationProduct.getBedsMin() ~ \"-\" ~ accommodationProduct.getBedsMax()~ \" \".translate('demi.detail.room.occupancy.persons') %}
  1507.                                                         {% endif %}
  1508.                                                         {{ adultsStr }}
  1509.                                                         {% if  (children > 0) %}
  1510.                                                             , {{ childrenStr }}
  1511.                                                         {% endif %}
  1512.                                                     </div>
  1513.                                                 </div>
  1514.                                             </div>
  1515.                                         {% if  (liveMealObj) %}
  1516.                                         <div class=\"mb-1 small text-muted\">
  1517.                                                 <span class=\"js-room-selection__meal-text\">
  1518.                                                     {{ liveMealObj.getText() }}
  1519.                                                 </span>
  1520.                                             {% if  mealArray|length > 1 %}
  1521.                                             <label for=\"meal-selector-{{ product.getProductId() }}\" tabindex=\"0\"
  1522.                                                            class=\"btn-no-styling increased-click-area js-room-selection__add\">
  1523.                                                         <span class=\"demi-icon demi-icon-edit icon-in-text\"
  1524.                                                               title=\"{{ 'demi.detail.change-meal'|trans }}\"
  1525.                                                               aria-label=\"{{ 'demi.detail.change-meal'|trans }}\"></span>
  1526.                                                     </label>
  1527.                                                 {% endif %}
  1528.                                             </div>
  1529.                                         {% endif %}
  1530.                                         <div class=\"row align-items-baseline\">
  1531.                                             <div class=\"col\">
  1532.                                                 {% if priceData is not null  and priceData.getPriceBeforeSpecial() > product.getPrice() %}
  1533.                                                     <span class=\"sr-only\">{{ 'demi.detail.room.old-price'|trans }}</span>
  1534.                                                     <s class=\"text-muted js-room-selection__price-before-special\">{{ demi_paymentGetPriceObject(priceData.getPriceBeforeSpecial(), accommodation) }}</s>
  1535.                                                 {% endif %}
  1536.                                                 {% if priceInfoText is not empty %}
  1537.                                                     <div class=\"small text-muted\">
  1538.                                                         {{ priceInfoText }}
  1539.                                                     </div>
  1540.                                                 {% endif %}
  1541.                                             </div>
  1542.                                             {% if  price is defined and price > 0 %}
  1543.                                             <strong class=\"col col-auto mr-auto\">
  1544.                                                 <span class=\"price text-success\" aria-live=\"polite\">
  1545.                                                     <span class=\"js-room-selection__price\">
  1546.                                                         {% if roomRow is null %}
  1547.                                                             {{ 'demi.price-from-short'|trans }}
  1548.                                                         {% endif %} {{ demi_paymentGetPriceObject(price, accommodation) }}
  1549.                                                     </span>
  1550.                                                     <span class=\"js-room-selection__price-loading\" hidden>
  1551.                                                         <span class=\"circle-spinner circle-spinner--small float-left mr-1\"
  1552.                                                               aria-label=\"{{ 'demi.content-loading'|trans }}\"
  1553.                                                               title=\"{{ 'demi.content-loading'|trans }}\"></span>
  1554.                                                     </span>
  1555.                                                 </span>
  1556.                                                 {% if priceData is not null %}
  1557.                                                 <button type=\"button\" data-target=\"#price-info-{{ id }}-room-row-{{ productIndex }}\"
  1558.                                                         class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium\">
  1559.                                                     <span class=\"demi-icon demi-icon-info-circle icon-in-text\"
  1560.                                                           title=\"{{ 'demi.detail.room.price-info'|trans }}\"
  1561.                                                           aria-label=\"{{ 'demi.detail.room.price-info'|trans }}\"></span>
  1562.                                                 </button>
  1563.                                                 {% endif %}
  1564.                                             </strong>
  1565.                                             {% endif %}
  1566.                                         </div>
  1567.                                             <div class=\"mt-2\">
  1568.                                                 {{ include(\"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig\", {
  1569.                                                     'accommodationProduct': accommodationProduct,
  1570.                                                     'product': product,
  1571.                                                     'mealArray': mealArray,
  1572.                                                     'liveMealObj': liveMealObj,
  1573.                                                     'availabilityIsChecked': availabilityIsChecked,
  1574.                                                     'showSelection': showSelection,
  1575.                                                     'promotionText': promotionText
  1576.                                                 }) }}
  1577.                                             </div>
  1578.                                     </div>
  1579.                                     {% if priceData is not null %}
  1580.                                         {{  include('@ElementsDemiFrontend/Includes/overlays/price-info.html.twig',
  1581.                                             {
  1582.                                                 'title': 'demi.detail.room.price-info'|trans,
  1583.                                                 'id': 'price-info-' ~ id ~ '-room-row-' ~ productIndex,
  1584.                                                 'priceData': priceData,
  1585.                                                 'accommodationProduct': accommodationProduct,
  1586.                                                 'roomRow': roomRow,
  1587.                                                 'roomRowIndex': productIndex,
  1588.                                                 'productSet': product
  1589.                                             }) }}
  1590.                                     {% endif %}
  1591.                                 </div>
  1592.                             {% endfor %}
  1593.                         </div>
  1594.                     </div>
  1595.                 {% endif %}
  1596.                     {{ include('@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig', {
  1597.                         'imagesTypes': ['Service', 'Product'],
  1598.                         'accommodation': accommodation,
  1599.                         'accommodationProduct': accommodationProduct,
  1600.                         'lazyLoadAll': true
  1601.                     }) }}
  1602.             </div>
  1603.         </li>
  1604.     {% endif %}
  1605. {% endif %}
  1606. ""@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig""/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/teaser/room-teaser.mobile.html.twig");
  1607.     }
  1608. }