<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* @SuluPage/Export/Webspace/1.2.xliff.twig */
class __TwigTemplate_3aa7cb750c7d25978c0ec490b4d48e8fb9034cd6fb32530459480c4275a4d193 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'main' => [$this, 'block_main'],
            'page' => [$this, 'block_page'],
            'view' => [$this, 'block_view'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@SuluPage/Export/Webspace/base.export.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SuluPage/Export/Webspace/1.2.xliff.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SuluPage/Export/Webspace/1.2.xliff.twig"));

        $this->parent = $this->loadTemplate("@SuluPage/Export/Webspace/base.export.twig", "@SuluPage/Export/Webspace/1.2.xliff.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        // line 4
        echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<xliff xmlns=\"urn:oasis:names:tc:xliff:document:1.2\" version=\"1.2\">
    <!-- WebspaceKey: ";
        // line 6
        echo twig_escape_filter($this->env, (isset($context["webspaceKey"]) || array_key_exists("webspaceKey", $context) ? $context["webspaceKey"] : (function () { throw new RuntimeError('Variable "webspaceKey" does not exist.', 6, $this->source); })()), "html", null, true);
        echo " -->
";
        // line 7
        $this->displayParentBlock("main", $context, $blocks);
        echo "
</xliff>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 12
    public function block_page($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page"));

        // line 13
        echo "    <file source-language=\"";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 13, $this->source); })()), "locale", [], "any", false, false, false, 13), "html", null, true);
        echo "\" datatype=\"plaintext\" original=\"";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 13, $this->source); })()), "uuid", [], "any", false, false, false, 13), "html", null, true);
        echo "\">
        <body>";
        // line 15
        $this->displayParentBlock("page", $context, $blocks);
        // line 16
        echo "</body>
    </file>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 21
    public function block_view($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "view"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "view"));

        // line 22
        ob_start();
        // line 23
        echo "    ";
        $context["attributes"] = "";
        // line 24
        echo "    ";
        $context["target"] = "";
        // line 25
        if ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translate", [], "any", true, true, false, 25) &&  !twig_get_attribute($this->env, $this->source, (isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 25, $this->source); })()), "translate", [], "any", false, false, false, 25))) {
            // line 26
            $context["attributes"] = ((isset($context["attributes"]) || array_key_exists("attributes", $context) ? $context["attributes"] : (function () { throw new RuntimeError('Variable "attributes" does not exist.', 26, $this->source); })()) . " translate=\"no\"");
            // line 27
            echo "        ";
            $context["target"] = (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 27, $this->source); })());
        }
        // line 29
        if ((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 29, $this->source); })()), "text_editor"))) {
            // line 30
            echo "        ";
            $context["attributes"] = ((isset($context["attributes"]) || array_key_exists("attributes", $context) ? $context["attributes"] : (function () { throw new RuntimeError('Variable "attributes" does not exist.', 30, $this->source); })()) . " datatype=\"html\"");
            // line 31
            echo "    ";
        }
        // line 32
        echo "    ";
        $___internal_b96269d52834554dfc835f0a705a4a5fe359821ebf1efbd942a2d1e8f8251ddd_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 22
        echo twig_spaceless($___internal_b96269d52834554dfc835f0a705a4a5fe359821ebf1efbd942a2d1e8f8251ddd_);
        // line 33
        echo "    ";
        // line 34
        echo "
            <!-- ";
        // line 35
        echo (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 35, $this->source); })());
        echo ": ";
        echo (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 35, $this->source); })());
        echo " -->
            <trans-unit id=\"";
        // line 36
        echo $this->extensions['Sulu\Bundle\PageBundle\Twig\ExportTwigExtension']->counter();
        echo "\" resname=\"";
        echo (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 36, $this->source); })());
        echo "\"";
        echo (isset($context["attributes"]) || array_key_exists("attributes", $context) ? $context["attributes"] : (function () { throw new RuntimeError('Variable "attributes" does not exist.', 36, $this->source); })());
        echo ">
                <source>";
        // line 37
        echo $this->extensions['Sulu\Bundle\PageBundle\Twig\ExportTwigExtension']->escapeXmlContent((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 37, $this->source); })()));
        echo "</source>
                <target>";
        // line 38
        echo $this->extensions['Sulu\Bundle\PageBundle\Twig\ExportTwigExtension']->escapeXmlContent((isset($context["target"]) || array_key_exists("target", $context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.', 38, $this->source); })()));
        echo "</target>
            </trans-unit>
    ";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "@SuluPage/Export/Webspace/1.2.xliff.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  184 => 38,  180 => 37,  172 => 36,  166 => 35,  163 => 34,  161 => 33,  159 => 22,  156 => 32,  153 => 31,  150 => 30,  148 => 29,  144 => 27,  142 => 26,  140 => 25,  137 => 24,  134 => 23,  132 => 22,  122 => 21,  110 => 16,  108 => 15,  101 => 13,  91 => 12,  78 => 7,  74 => 6,  70 => 4,  60 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends \"@SuluPage/Export/Webspace/base.export.twig\" %}

{% block main %}
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<xliff xmlns=\"urn:oasis:names:tc:xliff:document:1.2\" version=\"1.2\">
    <!-- WebspaceKey: {{ webspaceKey }} -->
{{ parent() }}
</xliff>
{% endblock main %}

{# Output page #}
{% block page %}
    <file source-language=\"{{ document.locale }}\" datatype=\"plaintext\" original=\"{{ document.uuid }}\">
        <body>
        {{- parent() -}}
        </body>
    </file>
{% endblock page %}

{# view #}
{%- block view -%}
    {% apply spaceless %}
    {% set attributes = '' %}
    {% set target = '' %}
    {%- if options.translate is defined and not options.translate -%}
        {% set attributes = attributes  ~ ' translate=\"no\"' %}
        {% set target = value %}
    {%- endif -%}
    {% if type == 'text_editor' %}
        {% set attributes = attributes ~ ' datatype=\"html\"' %}
    {% endif %}
    {% endapply %}
    {% autoescape false %}

            <!-- {{ name }}: {{ type }} -->
            <trans-unit id=\"{{ sulu_content_type_export_counter() }}\" resname=\"{{ name }}\"{{ attributes }}>
                <source>{{ sulu_content_type_export_escape(value) }}</source>
                <target>{{ sulu_content_type_export_escape(target) }}</target>
            </trans-unit>
    {% endautoescape %}
{%- endblock view -%}
", "@SuluPage/Export/Webspace/1.2.xliff.twig", "/home/lepronl/project/opizzicato/vendor/sulu/sulu/src/Sulu/Bundle/PageBundle/Resources/views/Export/Webspace/1.2.xliff.twig");
    }
}
