<?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;
/* @component/_template/_atom_wrapper.html.twig */
class __TwigTemplate_9d6fe23a5ec13db97d1a5f373d4c8369 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 = [
'atom' => [$this, 'block_atom'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/_template/_atom_wrapper.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/_template/_atom_wrapper.html.twig"));
// line 1
$macros["͜macros"] = $this->macros["͜macros"] = $this->load("@component/_template/_html_macro.html.twig", 1)->unwrap();
// line 2
if ((($tmp = !array_key_exists("atom_key", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 3
yield " ";
$context["atom_key"] = "";
}
// line 5
yield "
";
// line 6
$context["atom_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateAtomOptions((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 6, $this->source); })()), (isset($context["atom_key"]) || array_key_exists("atom_key", $context) ? $context["atom_key"] : (function () { throw new RuntimeError('Variable "atom_key" does not exist.', 6, $this->source); })()));
// line 7
yield "
";
// line 8
if ((($tmp = $this->env->getRuntime('App\Twig\Runtime\AclRuntime')->canDisplayComponentByAcl((isset($context["atom_config"]) || array_key_exists("atom_config", $context) ? $context["atom_config"] : (function () { throw new RuntimeError('Variable "atom_config" does not exist.', 8, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 9
yield "
";
// line 10
yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentStart", $context, 10, $this->getSourceContext())->macro_generateHtmlComponentStart(...[(isset($context["atom_config"]) || array_key_exists("atom_config", $context) ? $context["atom_config"] : (function () { throw new RuntimeError('Variable "atom_config" does not exist.', 10, $this->source); })())]);
yield "
";
// line 11
yield from $this->unwrap()->yieldBlock('atom', $context, $blocks);
// line 12
yield " ";
yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentEnd", $context, 12, $this->getSourceContext())->macro_generateHtmlComponentEnd(...[(isset($context["atom_config"]) || array_key_exists("atom_config", $context) ? $context["atom_config"] : (function () { throw new RuntimeError('Variable "atom_config" does not exist.', 12, $this->source); })())]);
yield "
";
}
// line 15
yield "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_atom(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/_template/_atom_wrapper.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 95 => 11, 83 => 15, 76 => 12, 74 => 11, 70 => 10, 67 => 9, 65 => 8, 62 => 7, 60 => 6, 57 => 5, 53 => 3, 51 => 2, 49 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% import \"@component/_template/_html_macro.html.twig\" as macros %}
{% if atom_key is not defined %}
{% set atom_key = '' %}
{% endif %}
{% set atom_config = generateAtomOptions(value, atom_key) %}
{% if canDisplayComponentByAcl( atom_config) %}
{{ macros.generateHtmlComponentStart(atom_config) }}
{% block atom %}{% endblock atom %}
{{ macros.generateHtmlComponentEnd(atom_config) }}
{% endif %}
", "@component/_template/_atom_wrapper.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/_template/_atom_wrapper.html.twig");
}
}