<?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;

/* @PdirContaoKlaroConsentManager/fe_klaro_config_services.js.twig */
class __TwigTemplate_5467bb92d5cfa66ba0c4e3ce32d92cfcfb7266f059d7cdc2a93415786d7fc8ad extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["services"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
            // line 2
            yield "    {
        name: '";
            // line 3
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 3);
            yield "',
        default: ";
            // line 4
            yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["service"], "default", [], "any", false, false, false, 4), "js", null, true);
            yield ",

        translations: {
            ";
            // line 7
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "translations", [], "any", false, false, false, 7);
            yield "
        },

        purposes: [";
            // line 10
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "purposes", [], "any", false, false, false, 10);
            yield "],

        cookies: [";
            // line 12
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "cookies", [], "any", false, false, false, 12);
            yield "],

        callback: function (consent, service) {
            ";
            // line 15
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "callback", [], "any", false, false, false, 15);
            yield "
        },

        required: ";
            // line 18
            yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["service"], "required", [], "any", false, false, false, 18), "js", null, true);
            yield ",

        optOut: ";
            // line 20
            yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["service"], "optOut", [], "any", false, false, false, 20), "js", null, true);
            yield ",

        onlyOnce: ";
            // line 22
            yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["service"], "onlyOnce", [], "any", false, false, false, 22), "js", null, true);
            yield ",

        contextualConsentOnly: ";
            // line 24
            yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["service"], "contextualConsentOnly", [], "any", false, false, false, 24), "js", null, true);
            yield ",

        onAccept: `
            ";
            // line 27
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "onAccept", [], "any", false, false, false, 27);
            yield "
        `,

        onInit: `
            ";
            // line 31
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "onInit", [], "any", false, false, false, 31);
            yield "
        `,

        onDecline: `
            ";
            // line 35
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "onDecline", [], "any", false, false, false, 35);
            yield "
        `,

        vars: {
            ";
            // line 39
            yield CoreExtension::getAttribute($this->env, $this->source, $context["service"], "vars", [], "any", false, false, false, 39);
            yield "
        }
    },
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PdirContaoKlaroConsentManager/fe_klaro_config_services.js.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  120 => 39,  113 => 35,  106 => 31,  99 => 27,  93 => 24,  88 => 22,  83 => 20,  78 => 18,  72 => 15,  66 => 12,  61 => 10,  55 => 7,  49 => 4,  45 => 3,  42 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@PdirContaoKlaroConsentManager/fe_klaro_config_services.js.twig", "/var/www/contao-4.13/vendor/pdir/klaro-consent-manager/src/Resources/views/fe_klaro_config_services.js.twig");
    }
}
