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

/* _layouts/components/tag.twig */
class __TwigTemplate_d7b31d9cc97c0e95df675da5d251a9a1d219a24a3dc736dcac5db1781eb16a5c 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;
        craft\helpers\Template::beginProfile("template", "_layouts/components/tag.twig");
        // line 1
        $context["attributes"] = $this->extensions['craft\web\twig\Extension']->mergeFilter((($context["attributes"]) ?? ([])), ["style" => twig_array_map($this->env, $this->extensions['craft\web\twig\Extension']->mergeFilter($this->extensions['craft\web\twig\Extension']->mergeFilter(["bottom" => "auto", "display" => "inline", "filter" => "none", "height" => "auto", "left" => "auto", "max-height" => "none", "max-width" => "none", "opacity" => "1", "position" => "static", "right" => "auto", "top" => "auto", "transform" => "none", "width" => "auto"], ((        // line 18
$context["style"]) ?? ([]))), craft\helpers\Html::explodeStyle((((craft\helpers\Template::attribute($this->env, $this->source,         // line 19
($context["attribtes"] ?? null), "style", [], "any", true, true) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, ($context["attribtes"] ?? null), "style", [])))) ? (craft\helpers\Template::attribute($this->env, $this->source, ($context["attribtes"] ?? null), "style", [])) : ([])))),         // line 20
function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return ((isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 20, $this->source); })()) . " !important"); })]);
        // line 24
        echo $this->extensions['craft\web\twig\Extension']->tagFunction((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 24, $this->source); })()), $this->extensions['craft\web\twig\Extension']->mergeFilter((isset($context["attributes"]) || array_key_exists("attributes", $context) ? $context["attributes"] : (function () { throw new RuntimeError('Variable "attributes" does not exist.', 24, $this->source); })()), ["html" => ((        // line 25
$context["content"]) ?? (((        $this->hasBlock("content", $context, $blocks)) ? (        $this->renderBlock("content", $context, $blocks)) : (""))))]));
        // line 26
        echo "
";
        craft\helpers\Template::endProfile("template", "_layouts/components/tag.twig");
    }

    public function getTemplateName()
    {
        return "_layouts/components/tag.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  46 => 26,  44 => 25,  43 => 24,  41 => 20,  40 => 19,  39 => 18,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% set attributes = (attributes ?? {})
  |merge({
    style: {
      'bottom': 'auto',
      'display': 'inline',
      'filter': 'none',
      'height': 'auto',
      'left': 'auto',
      'max-height': 'none',
      'max-width': 'none',
      'opacity': '1',
      'position': 'static',
      'right': 'auto',
      'top': 'auto',
      'transform': 'none',
      'width': 'auto',
    }
      |merge(style ?? {})
      |merge((attribtes.style ?? {})|explodeStyle)
      |map(v => \"#{v} !important\")
  })
%}

{{- tag(type, attributes|merge({
  html: content ?? block('content') ?? ''
})) }}
", "_layouts/components/tag.twig", "/home/addons/atweb.space/sub/craft-demo/cms/vendor/craftcms/cms/src/templates/_layouts/components/tag.twig");
    }
}
