<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* bootstrap_barrio:container */
class __TwigTemplate_23e7102681841a0be78aa7105558ff17 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
        $this->sandbox = $this->extensions[SandboxExtension::class];
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\Core\Template\TwigExtension']->attachLibrary("core/components.bootstrap_barrio--container"));
        yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\Core\Template\ComponentsTwigExtension']->addAdditionalContext($context, "bootstrap_barrio:container"));
        yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\Core\Template\ComponentsTwigExtension']->validateProps($context, "bootstrap_barrio:container"));
        $context["classes"] = (((($tmp = ($context["full_width"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("full-width") : ((((($tmp = ($context["container"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("container") : (""))));
        // line 2
        yield "
";
        // line 3
        $context["style"] = (((($tmp = ($context["background_image"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((("background-image:url(\"" . ($context["background_image"] ?? null)) . "\");background-size: cover;")) : (""));
        // line 4
        $context["style"] = (((($tmp = ($context["background_color"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((((($context["style"] ?? null) . "background-color:") . ($context["background_color"] ?? null)) . ";")) : (($context["style"] ?? null)));
        // line 5
        $context["html_tag"] = (((array_key_exists("html_tag", $context) &&  !(null === $context["html_tag"]))) ? ($context["html_tag"]) : ("section"));
        // line 6
        yield "
<";
        // line 7
        yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["html_tag"] ?? null), "html", null, true);
        yield " ";
        yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 7), "setAttribute", ["style", ($context["style"] ?? null)], "method", false, false, true, 7), "html", null, true);
        yield ">
  ";
        // line 8
        if ((($context["full_width"] ?? null) && ($context["container"] ?? null))) {
            // line 9
            yield "    <div class=\"container\">
  ";
        }
        // line 11
        yield "    ";
        yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
        // line 12
        yield "  ";
        if ((($context["full_width"] ?? null) && ($context["container"] ?? null))) {
            // line 13
            yield "    </div>
  ";
        }
        // line 15
        yield "</";
        yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["html_tag"] ?? null), "html", null, true);
        yield ">
";
        $this->env->getExtension('\Drupal\Core\Template\TwigExtension')
            ->checkDeprecations($context, ["full_width", "container", "background_image", "background_color", "attributes"]);        yield from [];
    }

    // line 11
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "bootstrap_barrio:container";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  93 => 11,  84 => 15,  80 => 13,  77 => 12,  74 => 11,  70 => 9,  68 => 8,  62 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  50 => 2,  45 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "bootstrap_barrio:container", "themes/contrib/bootstrap_barrio/components/container/container.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = ["set" => 1, "if" => 8, "block" => 11];
        static $filters = ["escape" => 7];
        static $functions = [];

        try {
            $this->sandbox->checkSecurity(
                ['set', 'if', 'block'],
                ['escape'],
                [],
                $this->source
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
