var/cache/dev/twig/a7/a72a5ad92763618124f6fad645a31b4f.php line 51

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @WebProfiler/Collector/mailer.html.twig */
  14. class __TwigTemplate_c56cd0df5563092db3f8c6b4ba595fe6 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'toolbar' => [$this'block_toolbar'],
  24.             'menu' => [$this'block_menu'],
  25.             'panel' => [$this'block_panel'],
  26.         ];
  27.         $macros["_self"] = $this->macros["_self"] = $this;
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@WebProfiler/Profiler/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/mailer.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/mailer.html.twig"));
  41.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/mailer.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_toolbar($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  56.         // line 4
  57.         echo "    ";
  58.         $context["events"] = twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'4$this->source); })()), "events", [], "any"falsefalsefalse4);
  59.         // line 5
  60.         echo "
  61.     ";
  62.         // line 6
  63.         if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'6$this->source); })()), "messages", [], "any"falsefalsefalse6))) {
  64.             // line 7
  65.             echo "        ";
  66.             ob_start();
  67.             // line 8
  68.             echo "            ";
  69.             echo twig_source($this->env"@WebProfiler/Icon/mailer.svg");
  70.             echo "
  71.             <span class=\"sf-toolbar-value\">";
  72.             // line 9
  73.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'9$this->source); })()), "messages", [], "any"falsefalsefalse9)), "html"nulltrue);
  74.             echo "</span>
  75.         ";
  76.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  77.             // line 11
  78.             echo "
  79.         ";
  80.             // line 12
  81.             ob_start();
  82.             // line 13
  83.             echo "            <div class=\"sf-toolbar-info-piece\">
  84.                 <b>Queued messages</b>
  85.                 <span class=\"sf-toolbar-status\">";
  86.             // line 15
  87.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_array_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'15$this->source); })()), "events", [], "any"falsefalsefalse15), function ($__e__) use ($context$macros) { $context["e"] = $__e__; return twig_get_attribute($this->env$this->source, (isset($context["e"]) || array_key_exists("e"$context) ? $context["e"] : (function () { throw new RuntimeError('Variable "e" does not exist.'15$this->source); })()), "isQueued", [], "method"falsefalsefalse15); })), "html"nulltrue);
  88.             echo "</span>
  89.             </div>
  90.             <div class=\"sf-toolbar-info-piece\">
  91.                 <b>Sent messages</b>
  92.                 <span class=\"sf-toolbar-status\">";
  93.             // line 19
  94.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_array_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'19$this->source); })()), "events", [], "any"falsefalsefalse19), function ($__e__) use ($context$macros) { $context["e"] = $__e__; return  !twig_get_attribute($this->env$this->source, (isset($context["e"]) || array_key_exists("e"$context) ? $context["e"] : (function () { throw new RuntimeError('Variable "e" does not exist.'19$this->source); })()), "isQueued", [], "method"falsefalsefalse19); })), "html"nulltrue);
  95.             echo "</span>
  96.             </div>
  97.         ";
  98.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  99.             // line 22
  100.             echo "
  101.         ";
  102.             // line 23
  103.             echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url"$context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.'23$this->source); })())]);
  104.             echo "
  105.     ";
  106.         }
  107.         
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.     }
  112.     // line 27
  113.     public function block_menu($context, array $blocks = [])
  114.     {
  115.         $macros $this->macros;
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  120.         // line 28
  121.         echo "    ";
  122.         $context["events"] = twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'28$this->source); })()), "events", [], "any"falsefalsefalse28);
  123.         // line 29
  124.         echo "
  125.     <span class=\"label ";
  126.         // line 30
  127.         echo ((twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'30$this->source); })()), "messages", [], "any"falsefalsefalse30))) ? ("disabled") : (""));
  128.         echo "\">
  129.         <span class=\"icon\">";
  130.         // line 31
  131.         echo twig_source($this->env"@WebProfiler/Icon/mailer.svg");
  132.         echo "</span>
  133.         <strong>E-mails</strong>
  134.         ";
  135.         // line 34
  136.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'34$this->source); })()), "messages", [], "any"falsefalsefalse34)) > 0)) {
  137.             // line 35
  138.             echo "            <span class=\"count\">
  139.                 <span>";
  140.             // line 36
  141.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'36$this->source); })()), "messages", [], "any"falsefalsefalse36)), "html"nulltrue);
  142.             echo "</span>
  143.             </span>
  144.         ";
  145.         }
  146.         // line 39
  147.         echo "    </span>
  148. ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.     }
  154.     // line 42
  155.     public function block_panel($context, array $blocks = [])
  156.     {
  157.         $macros $this->macros;
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  162.         // line 43
  163.         echo "    ";
  164.         $context["events"] = twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'43$this->source); })()), "events", [], "any"falsefalsefalse43);
  165.         // line 44
  166.         echo "    <h2>Emails</h2>
  167.     ";
  168.         // line 46
  169.         if ( !twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'46$this->source); })()), "messages", [], "any"falsefalsefalse46))) {
  170.             // line 47
  171.             echo "        <div class=\"empty empty-panel\">
  172.             <p>No emails were sent.</p>
  173.         </div>
  174.     ";
  175.         } else {
  176.             // line 51
  177.             echo "        <div class=\"metrics\">
  178.             <div class=\"metric-group\">
  179.                 <div class=\"metric\">
  180.                     <span class=\"value\">";
  181.             // line 54
  182.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_array_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'54$this->source); })()), "events", [], "any"falsefalsefalse54), function ($__e__) use ($context$macros) { $context["e"] = $__e__; return twig_get_attribute($this->env$this->source, (isset($context["e"]) || array_key_exists("e"$context) ? $context["e"] : (function () { throw new RuntimeError('Variable "e" does not exist.'54$this->source); })()), "isQueued", [], "method"falsefalsefalse54); })), "html"nulltrue);
  183.             echo "</span>
  184.                     <span class=\"label\">Queued</span>
  185.                 </div>
  186.                 <div class=\"metric\">
  187.                     <span class=\"value\">";
  188.             // line 59
  189.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_array_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'59$this->source); })()), "events", [], "any"falsefalsefalse59), function ($__e__) use ($context$macros) { $context["e"] = $__e__; return  !twig_get_attribute($this->env$this->source, (isset($context["e"]) || array_key_exists("e"$context) ? $context["e"] : (function () { throw new RuntimeError('Variable "e" does not exist.'59$this->source); })()), "isQueued", [], "method"falsefalsefalse59); })), "html"nulltrue);
  190.             echo "</span>
  191.                     <span class=\"label\">Sent</span>
  192.                 </div>
  193.             </div>
  194.         </div>
  195.     ";
  196.         }
  197.         // line 65
  198.         echo "
  199.     ";
  200.         // line 66
  201.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'66$this->source); })()), "transports", [], "any"falsefalsefalse66)) > 1)) {
  202.             // line 67
  203.             echo "        ";
  204.             $context['_parent'] = $context;
  205.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'67$this->source); })()), "transports", [], "any"falsefalsefalse67));
  206.             foreach ($context['_seq'] as $context["_key"] => $context["transport"]) {
  207.                 // line 68
  208.                 echo "            <h2><code>";
  209.                 echo twig_escape_filter($this->env$context["transport"], "html"nulltrue);
  210.                 echo "</code> transport</h2>
  211.             ";
  212.                 // line 69
  213.                 echo twig_call_macro($macros["_self"], "macro_render_transport_details", [(isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'69$this->source); })()), $context["transport"]], 69$context$this->getSourceContext());
  214.                 echo "
  215.         ";
  216.             }
  217.             $_parent $context['_parent'];
  218.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['transport'], $context['_parent'], $context['loop']);
  219.             $context array_intersect_key($context$_parent) + $_parent;
  220.             // line 71
  221.             echo "    ";
  222.         } elseif ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'71$this->source); })()), "transports", [], "any"falsefalsefalse71))) {
  223.             // line 72
  224.             echo "        ";
  225.             echo twig_call_macro($macros["_self"], "macro_render_transport_details", [(isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'72$this->source); })()), twig_first($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'72$this->source); })()), "transports", [], "any"falsefalsefalse72)), true], 72$context$this->getSourceContext());
  226.             echo "
  227.     ";
  228.         }
  229.         // line 74
  230.         echo "
  231.     ";
  232.         // line 115
  233.         echo "
  234.     ";
  235.         // line 254
  236.         echo "
  237.     ";
  238.         
  239.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  240.         
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  242.     }
  243.     // line 75
  244.     public function macro_render_transport_details($__collector__ null$__transport__ null$__show_transport_name__ false, ...$__varargs__)
  245.     {
  246.         $macros $this->macros;
  247.         $context $this->env->mergeGlobals([
  248.             "collector" => $__collector__,
  249.             "transport" => $__transport__,
  250.             "show_transport_name" => $__show_transport_name__,
  251.             "varargs" => $__varargs__,
  252.         ]);
  253.         $blocks = [];
  254.         ob_start();
  255.         try {
  256.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  257.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_transport_details"));
  258.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  259.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_transport_details"));
  260.             // line 76
  261.             echo "        <div class=\"card\">
  262.             ";
  263.             // line 77
  264.             $context["num_emails"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'77$this->source); })()), "events", [], "any"falsefalsefalse77), "events", [=> (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'77$this->source); })())], "method"falsefalsefalse77));
  265.             // line 78
  266.             echo "            ";
  267.             if (((isset($context["num_emails"]) || array_key_exists("num_emails"$context) ? $context["num_emails"] : (function () { throw new RuntimeError('Variable "num_emails" does not exist.'78$this->source); })()) > 1)) {
  268.                 // line 79
  269.                 echo "                <div class=\"mailer-email-summary-table-wrapper\">
  270.                     <table class=\"mailer-email-summary-table\">
  271.                         <thead>
  272.                             <tr>
  273.                                 <th>#</th>
  274.                                 <th>Subject</th>
  275.                                 <th>To</th>
  276.                                 <th class=\"visually-hidden\">Actions</th>
  277.                             </tr>
  278.                         </thead>
  279.                         <tbody>
  280.                             ";
  281.                 // line 90
  282.                 $context['_parent'] = $context;
  283.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'90$this->source); })()), "events", [], "any"falsefalsefalse90), "events", [=> (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'90$this->source); })())], "method"falsefalsefalse90));
  284.                 $context['loop'] = [
  285.                   'parent' => $context['_parent'],
  286.                   'index0' => 0,
  287.                   'index'  => 1,
  288.                   'first'  => true,
  289.                 ];
  290.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  291.                     $length count($context['_seq']);
  292.                     $context['loop']['revindex0'] = $length 1;
  293.                     $context['loop']['revindex'] = $length;
  294.                     $context['loop']['length'] = $length;
  295.                     $context['loop']['last'] = === $length;
  296.                 }
  297.                 foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
  298.                     // line 91
  299.                     echo "                                <tr class=\"mailer-email-summary-table-row ";
  300.                     echo ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse91)) ? ("active") : (""));
  301.                     echo "\" data-target=\"#email-";
  302.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse91), "html"nulltrue);
  303.                     echo "\">
  304.                                     <td>";
  305.                     // line 92
  306.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse92), "html"nulltrue);
  307.                     echo "</td>
  308.                                     <td>";
  309.                     // line 93
  310.                     (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsetruefalse93), "headers", [], "any"falsetruefalse93), "get", [=> "subject"], "method"falsetruefalse93), "bodyAsString", [], "method"truetruefalse93) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsetruefalse93), "headers", [], "any"falsetruefalse93), "get", [=> "subject"], "method"falsetruefalse93), "bodyAsString", [], "method"falsefalsefalse93)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsetruefalse93), "headers", [], "any"falsetruefalse93), "get", [=> "subject"], "method"falsetruefalse93), "bodyAsString", [], "method"falsefalsefalse93), "html"nulltrue))) : (print ("(No subject)")));
  311.                     echo "</td>
  312.                                     <td>";
  313.                     // line 94
  314.                     echo twig_escape_filter($this->envtwig_replace_filter((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsetruefalse94), "headers", [], "any"falsetruefalse94), "get", [=> "to"], "method"falsetruefalse94), "bodyAsString", [], "method"truetruefalse94) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsetruefalse94), "headers", [], "any"falsetruefalse94), "get", [=> "to"], "method"falsetruefalse94), "bodyAsString", [], "method"falsefalsefalse94)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsetruefalse94), "headers", [], "any"falsetruefalse94), "get", [=> "to"], "method"falsetruefalse94), "bodyAsString", [], "method"falsefalsefalse94)) : ("(empty)")), ["To:" => ""]), "html"nulltrue);
  315.                     echo "</td>
  316.                                     <td class=\"visually-hidden\"><button class=\"mailer-email-summary-table-row-button\" data-target=\"#email-";
  317.                     // line 95
  318.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse95), "html"nulltrue);
  319.                     echo "\">View email details</button></td>
  320.                                 </tr>
  321.                             ";
  322.                     ++$context['loop']['index0'];
  323.                     ++$context['loop']['index'];
  324.                     $context['loop']['first'] = false;
  325.                     if (isset($context['loop']['length'])) {
  326.                         --$context['loop']['revindex0'];
  327.                         --$context['loop']['revindex'];
  328.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  329.                     }
  330.                 }
  331.                 $_parent $context['_parent'];
  332.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
  333.                 $context array_intersect_key($context$_parent) + $_parent;
  334.                 // line 98
  335.                 echo "                        </tbody>
  336.                     </table>
  337.                 </div>
  338.                 ";
  339.                 // line 102
  340.                 $context['_parent'] = $context;
  341.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'102$this->source); })()), "events", [], "any"falsefalsefalse102), "events", [=> (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'102$this->source); })())], "method"falsefalsefalse102));
  342.                 $context['loop'] = [
  343.                   'parent' => $context['_parent'],
  344.                   'index0' => 0,
  345.                   'index'  => 1,
  346.                   'first'  => true,
  347.                 ];
  348.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  349.                     $length count($context['_seq']);
  350.                     $context['loop']['revindex0'] = $length 1;
  351.                     $context['loop']['revindex'] = $length;
  352.                     $context['loop']['length'] = $length;
  353.                     $context['loop']['last'] = === $length;
  354.                 }
  355.                 foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
  356.                     // line 103
  357.                     echo "                    <div class=\"mailer-email-details ";
  358.                     echo ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse103)) ? ("active") : (""));
  359.                     echo "\" id=\"email-";
  360.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse103), "html"nulltrue);
  361.                     echo "\">
  362.                         ";
  363.                     // line 104
  364.                     echo twig_call_macro($macros["_self"], "macro_render_email_details", [(isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'104$this->source); })()), (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'104$this->source); })()), twig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsefalsefalse104), twig_get_attribute($this->env$this->source$context["event"], "isQueued", [], "any"falsefalsefalse104), (isset($context["show_transport_name"]) || array_key_exists("show_transport_name"$context) ? $context["show_transport_name"] : (function () { throw new RuntimeError('Variable "show_transport_name" does not exist.'104$this->source); })())], 104$context$this->getSourceContext());
  365.                     echo "
  366.                     </div>
  367.                 ";
  368.                     ++$context['loop']['index0'];
  369.                     ++$context['loop']['index'];
  370.                     $context['loop']['first'] = false;
  371.                     if (isset($context['loop']['length'])) {
  372.                         --$context['loop']['revindex0'];
  373.                         --$context['loop']['revindex'];
  374.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  375.                     }
  376.                 }
  377.                 $_parent $context['_parent'];
  378.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
  379.                 $context array_intersect_key($context$_parent) + $_parent;
  380.                 // line 107
  381.                 echo "
  382.                 <script>Sfjs.initializeMailerTable();</script>
  383.             ";
  384.             } else {
  385.                 // line 110
  386.                 echo "                ";
  387.                 $context["event"] = twig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'110$this->source); })()), "events", [], "any"falsefalsefalse110), "events", [=> (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'110$this->source); })())], "method"falsefalsefalse110));
  388.                 // line 111
  389.                 echo "                ";
  390.                 echo twig_call_macro($macros["_self"], "macro_render_email_details", [(isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'111$this->source); })()), (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'111$this->source); })()), twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'111$this->source); })()), "message", [], "any"falsefalsefalse111), twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'111$this->source); })()), "isQueued", [], "any"falsefalsefalse111), (isset($context["show_transport_name"]) || array_key_exists("show_transport_name"$context) ? $context["show_transport_name"] : (function () { throw new RuntimeError('Variable "show_transport_name" does not exist.'111$this->source); })())], 111$context$this->getSourceContext());
  391.                 echo "
  392.             ";
  393.             }
  394.             // line 113
  395.             echo "        </div>
  396.     ";
  397.             
  398.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  399.             
  400.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  401.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  402.         } finally {
  403.             ob_end_clean();
  404.         }
  405.     }
  406.     // line 116
  407.     public function macro_render_email_details($__collector__ null$__transport__ null$__message__ null$__message_is_queued__ null$__show_transport_name__ false, ...$__varargs__)
  408.     {
  409.         $macros $this->macros;
  410.         $context $this->env->mergeGlobals([
  411.             "collector" => $__collector__,
  412.             "transport" => $__transport__,
  413.             "message" => $__message__,
  414.             "message_is_queued" => $__message_is_queued__,
  415.             "show_transport_name" => $__show_transport_name__,
  416.             "varargs" => $__varargs__,
  417.         ]);
  418.         $blocks = [];
  419.         ob_start();
  420.         try {
  421.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  422.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_email_details"));
  423.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  424.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_email_details"));
  425.             // line 117
  426.             echo "        ";
  427.             if ((isset($context["show_transport_name"]) || array_key_exists("show_transport_name"$context) ? $context["show_transport_name"] : (function () { throw new RuntimeError('Variable "show_transport_name" does not exist.'117$this->source); })())) {
  428.                 // line 118
  429.                 echo "            <p class=\"mailer-transport-information\">
  430.                 <strong>Status:</strong> <span class=\"badge badge-";
  431.                 // line 119
  432.                 echo (((isset($context["message_is_queued"]) || array_key_exists("message_is_queued"$context) ? $context["message_is_queued"] : (function () { throw new RuntimeError('Variable "message_is_queued" does not exist.'119$this->source); })())) ? ("warning") : ("success"));
  433.                 echo "\">";
  434.                 echo (((isset($context["message_is_queued"]) || array_key_exists("message_is_queued"$context) ? $context["message_is_queued"] : (function () { throw new RuntimeError('Variable "message_is_queued" does not exist.'119$this->source); })())) ? ("Queued") : ("Sent"));
  435.                 echo "</span>
  436.                 &bull;
  437.                 <strong>Transport:</strong> <code>";
  438.                 // line 121
  439.                 echo twig_escape_filter($this->env, (isset($context["transport"]) || array_key_exists("transport"$context) ? $context["transport"] : (function () { throw new RuntimeError('Variable "transport" does not exist.'121$this->source); })()), "html"nulltrue);
  440.                 echo "</code>
  441.             </p>
  442.         ";
  443.             }
  444.             // line 124
  445.             echo "
  446.         ";
  447.             // line 125
  448.             if ( !twig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"truetruefalse125)) {
  449.                 // line 126
  450.                 echo "            ";
  451.                 // line 127
  452.                 echo "            <a class=\"mailer-message-download-raw\" href=\"data:application/octet-stream;base64,";
  453.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'127$this->source); })()), "base64Encode", [=> twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'127$this->source); })()), "toString", [], "method"falsefalsefalse127)], "method"falsefalsefalse127), "html"nulltrue);
  454.                 echo "\" download=\"email.eml\">
  455.                 ";
  456.                 // line 128
  457.                 echo twig_source($this->env"@WebProfiler/Icon/download.svg");
  458.                 echo "
  459.                 Download as EML file
  460.             </a>
  461.             <pre class=\"prewrap\" style=\"max-height: 600px; margin-left: 5px\">";
  462.                 // line 132
  463.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'132$this->source); })()), "toString", [], "method"falsefalsefalse132), "html"nulltrue);
  464.                 echo "</pre>
  465.         ";
  466.             } else {
  467.                 // line 134
  468.                 echo "            <div class=\"sf-tabs\">
  469.                 <div class=\"tab\">
  470.                     <h3 class=\"tab-title\">Email contents</h3>
  471.                     <div class=\"tab-content\">
  472.                         <div class=\"card-block\">
  473.                             <p class=\"mailer-message-subject\">
  474.                                 ";
  475.                 // line 140
  476.                 (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse140), "get", [=> "subject"], "method"falsetruefalse140), "bodyAsString", [], "method"truetruefalse140) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse140), "get", [=> "subject"], "method"falsetruefalse140), "bodyAsString", [], "method"falsefalsefalse140)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse140), "get", [=> "subject"], "method"falsetruefalse140), "bodyAsString", [], "method"falsefalsefalse140), "html"nulltrue))) : (print ("(No subject)")));
  477.                 echo "
  478.                             </p>
  479.                             <div class=\"mailer-message-headers\">
  480.                                 <p><strong>From:</strong> ";
  481.                 // line 143
  482.                 echo twig_escape_filter($this->envtwig_replace_filter((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse143), "get", [=> "from"], "method"falsetruefalse143), "bodyAsString", [], "method"truetruefalse143) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse143), "get", [=> "from"], "method"falsetruefalse143), "bodyAsString", [], "method"falsefalsefalse143)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse143), "get", [=> "from"], "method"falsetruefalse143), "bodyAsString", [], "method"falsefalsefalse143)) : ("(empty)")), ["From:" => ""]), "html"nulltrue);
  483.                 echo "</p>
  484.                                 <p><strong>To:</strong> ";
  485.                 // line 144
  486.                 echo twig_escape_filter($this->envtwig_replace_filter((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse144), "get", [=> "to"], "method"falsetruefalse144), "bodyAsString", [], "method"truetruefalse144) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse144), "get", [=> "to"], "method"falsetruefalse144), "bodyAsString", [], "method"falsefalsefalse144)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "headers", [], "any"falsetruefalse144), "get", [=> "to"], "method"falsetruefalse144), "bodyAsString", [], "method"falsefalsefalse144)) : ("(empty)")), ["To:" => ""]), "html"nulltrue);
  487.                 echo "</p>
  488.                                 ";
  489.                 // line 145
  490.                 $context['_parent'] = $context;
  491.                 $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'145$this->source); })()), "headers", [], "any"falsefalsefalse145), "all", [], "any"falsefalsefalse145), function ($__header__) use ($context$macros) { $context["header"] = $__header__; return !twig_in_filter((((twig_get_attribute($this->env$this->source$context["header"], "name", [], "any"truetruefalse145) &&  !(null === twig_get_attribute($this->env$this->source$context["header"], "name", [], "any"falsefalsefalse145)))) ? (twig_get_attribute($this->env$this->source$context["header"], "name", [], "any"falsefalsefalse145)) : ("")), [=> "Subject"=> "From"=> "To"]); }));
  492.                 foreach ($context['_seq'] as $context["_key"] => $context["header"]) {
  493.                     // line 146
  494.                     echo "                                    <p class=\"mailer-message-header-secondary\">";
  495.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["header"], "toString", [], "any"falsefalsefalse146), "html"nulltrue);
  496.                     echo "</p>
  497.                                 ";
  498.                 }
  499.                 $_parent $context['_parent'];
  500.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']);
  501.                 $context array_intersect_key($context$_parent) + $_parent;
  502.                 // line 148
  503.                 echo "                            </div>
  504.                         </div>
  505.                         ";
  506.                 // line 151
  507.                 if (twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'151$this->source); })()), "attachments", [], "any"falsefalsefalse151)) {
  508.                     // line 152
  509.                     echo "                            <div class=\"card-block\">
  510.                                 ";
  511.                     // line 153
  512.                     $context["num_of_attachments"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'153$this->source); })()), "attachments", [], "any"falsefalsefalse153));
  513.                     // line 154
  514.                     echo "                                ";
  515.                     $context["total_attachments_size_in_bytes"] = twig_array_reduce($this->envtwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'154$this->source); })()), "attachments", [], "any"falsefalsefalse154), function ($__total_size__$__attachment__) use ($context$macros) { $context["total_size"] = $__total_size__$context["attachment"] = $__attachment__; return ((isset($context["total_size"]) || array_key_exists("total_size"$context) ? $context["total_size"] : (function () { throw new RuntimeError('Variable "total_size" does not exist.'154$this->source); })()) + twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["attachment"]) || array_key_exists("attachment"$context) ? $context["attachment"] : (function () { throw new RuntimeError('Variable "attachment" does not exist.'154$this->source); })()), "body", [], "any"falsefalsefalse154))); });
  516.                     // line 155
  517.                     echo "                                <p class=\"mailer-message-attachments-title\">
  518.                                     ";
  519.                     // line 156
  520.                     echo twig_source($this->env"@WebProfiler/Icon/attachment.svg");
  521.                     echo "
  522.                                     Attachments <span>(";
  523.                     // line 157
  524.                     echo twig_escape_filter($this->env, (isset($context["num_of_attachments"]) || array_key_exists("num_of_attachments"$context) ? $context["num_of_attachments"] : (function () { throw new RuntimeError('Variable "num_of_attachments" does not exist.'157$this->source); })()), "html"nulltrue);
  525.                     echo " file";
  526.                     echo ((((isset($context["num_of_attachments"]) || array_key_exists("num_of_attachments"$context) ? $context["num_of_attachments"] : (function () { throw new RuntimeError('Variable "num_of_attachments" does not exist.'157$this->source); })()) > 1)) ? ("s") : (""));
  527.                     echo " / ";
  528.                     echo twig_call_macro($macros["_self"], "macro_render_file_size_humanized", [(isset($context["total_attachments_size_in_bytes"]) || array_key_exists("total_attachments_size_in_bytes"$context) ? $context["total_attachments_size_in_bytes"] : (function () { throw new RuntimeError('Variable "total_attachments_size_in_bytes" does not exist.'157$this->source); })())], 157$context$this->getSourceContext());
  529.                     echo ")</span>
  530.                                 </p>
  531.                                 <ul class=\"mailer-message-attachments-list\">
  532.                                     ";
  533.                     // line 161
  534.                     $context['_parent'] = $context;
  535.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'161$this->source); })()), "attachments", [], "any"falsefalsefalse161));
  536.                     foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
  537.                         // line 162
  538.                         echo "                                        <li>
  539.                                             ";
  540.                         // line 163
  541.                         echo twig_source($this->env"@WebProfiler/Icon/file.svg");
  542.                         echo "
  543.                                             ";
  544.                         // line 165
  545.                         if (((twig_get_attribute($this->env$this->source$context["attachment"], "filename", [], "any"truetruefalse165)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["attachment"], "filename", [], "any"falsefalsefalse165))) : (""))) {
  546.                             // line 166
  547.                             echo "                                                ";
  548.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attachment"], "filename", [], "any"falsefalsefalse166), "html"nulltrue);
  549.                             echo "
  550.                                             ";
  551.                         } else {
  552.                             // line 168
  553.                             echo "                                                <em>(no filename)</em>
  554.                                             ";
  555.                         }
  556.                         // line 170
  557.                         echo "
  558.                                             (";
  559.                         // line 171
  560.                         echo twig_call_macro($macros["_self"], "macro_render_file_size_humanized", [twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["attachment"], "body", [], "any"falsefalsefalse171))], 171$context$this->getSourceContext());
  561.                         echo ")
  562.                                             <a href=\"data:";
  563.                         // line 173
  564.                         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["attachment"], "contentType", [], "any"truetruefalse173)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["attachment"], "contentType", [], "any"falsefalsefalse173), "application/octet-stream")) : ("application/octet-stream")), "html"nulltrue);
  565.                         echo ";base64,";
  566.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'173$this->source); })()), "base64Encode", [=> twig_get_attribute($this->env$this->source$context["attachment"], "body", [], "any"falsefalsefalse173)], "method"falsefalsefalse173), "html"nulltrue);
  567.                         echo "\" download=\"";
  568.                         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["attachment"], "filename", [], "any"truetruefalse173)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["attachment"], "filename", [], "any"falsefalsefalse173), "attachment")) : ("attachment")), "html"nulltrue);
  569.                         echo "\">Download</a>
  570.                                         </li>
  571.                                     ";
  572.                     }
  573.                     $_parent $context['_parent'];
  574.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attachment'], $context['_parent'], $context['loop']);
  575.                     $context array_intersect_key($context$_parent) + $_parent;
  576.                     // line 176
  577.                     echo "                                </ul>
  578.                             </div>
  579.                         ";
  580.                 }
  581.                 // line 179
  582.                 echo "
  583.                         ";
  584.                 // line 180
  585.                 if ((twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'180$this->source); })()), "htmlBody", [], "any"falsefalsefalse180) || twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'180$this->source); })()), "textBody", [], "any"falsefalsefalse180))) {
  586.                     // line 181
  587.                     echo "                            <div class=\"card-block\">
  588.                                 <div class=\"sf-tabs sf-tabs-sm\">
  589.                                     ";
  590.                     // line 183
  591.                     if (twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'183$this->source); })()), "htmlBody", [], "any"falsefalsefalse183)) {
  592.                         // line 184
  593.                         echo "                                        ";
  594.                         $context["htmlBody"] = twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'184$this->source); })()), "htmlBody", [], "method"falsefalsefalse184);
  595.                         // line 185
  596.                         echo "                                        <div class=\"tab\">
  597.                                             <h3 class=\"tab-title\">HTML content</h3>
  598.                                             <div class=\"tab-content\">
  599.                                                 <pre class=\"prewrap\" style=\"max-height: 600px\">";
  600.                         // line 189
  601.                         if (twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'189$this->source); })()), "htmlCharset", [], "method"falsefalsefalse189)) {
  602.                             // line 190
  603.                             echo twig_escape_filter($this->envtwig_convert_encoding((isset($context["htmlBody"]) || array_key_exists("htmlBody"$context) ? $context["htmlBody"] : (function () { throw new RuntimeError('Variable "htmlBody" does not exist.'190$this->source); })()), "UTF-8"twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'190$this->source); })()), "htmlCharset", [], "method"falsefalsefalse190)), "html"nulltrue);
  604.                         } else {
  605.                             // line 192
  606.                             echo twig_escape_filter($this->env, (isset($context["htmlBody"]) || array_key_exists("htmlBody"$context) ? $context["htmlBody"] : (function () { throw new RuntimeError('Variable "htmlBody" does not exist.'192$this->source); })()), "html"nulltrue);
  607.                         }
  608.                         // line 194
  609.                         echo "</pre>
  610.                                             </div>
  611.                                         </div>
  612.                                         <div class=\"tab\">
  613.                                             <h3 class=\"tab-title\">HTML preview</h3>
  614.                                             <div class=\"tab-content\">
  615.                                                 <pre class=\"prewrap\" style=\"max-height: 600px\">
  616.                                                     <iframe
  617.                                                         src=\"data:text/html;charset=utf-8;base64,";
  618.                         // line 203
  619.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'203$this->source); })()), "base64Encode", [=> (isset($context["htmlBody"]) || array_key_exists("htmlBody"$context) ? $context["htmlBody"] : (function () { throw new RuntimeError('Variable "htmlBody" does not exist.'203$this->source); })())], "method"falsefalsefalse203), "html"nulltrue);
  620.                         echo "\"
  621.                                                         style=\"height: 80vh;width: 100%;\"
  622.                                                     >
  623.                                                     </iframe>
  624.                                                 </pre>
  625.                                             </div>
  626.                                         </div>
  627.                                     ";
  628.                     }
  629.                     // line 211
  630.                     echo "
  631.                                     ";
  632.                     // line 212
  633.                     if (twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'212$this->source); })()), "textBody", [], "any"falsefalsefalse212)) {
  634.                         // line 213
  635.                         echo "                                        ";
  636.                         $context["textBody"] = twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'213$this->source); })()), "textBody", [], "method"falsefalsefalse213);
  637.                         // line 214
  638.                         echo "                                        <div class=\"tab\">
  639.                                             <h3 class=\"tab-title\">Text content</h3>
  640.                                             <div class=\"tab-content\">
  641.                                                 <pre class=\"prewrap\" style=\"max-height: 600px\">";
  642.                         // line 218
  643.                         if (twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'218$this->source); })()), "textCharset", [], "method"falsefalsefalse218)) {
  644.                             // line 219
  645.                             echo twig_escape_filter($this->envtwig_convert_encoding((isset($context["textBody"]) || array_key_exists("textBody"$context) ? $context["textBody"] : (function () { throw new RuntimeError('Variable "textBody" does not exist.'219$this->source); })()), "UTF-8"twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'219$this->source); })()), "textCharset", [], "method"falsefalsefalse219)), "html"nulltrue);
  646.                         } else {
  647.                             // line 221
  648.                             echo twig_escape_filter($this->env, (isset($context["textBody"]) || array_key_exists("textBody"$context) ? $context["textBody"] : (function () { throw new RuntimeError('Variable "textBody" does not exist.'221$this->source); })()), "html"nulltrue);
  649.                         }
  650.                         // line 223
  651.                         echo "</pre>
  652.                                             </div>
  653.                                         </div>
  654.                                     ";
  655.                     }
  656.                     // line 227
  657.                     echo "                                </div>
  658.                             </div>
  659.                         ";
  660.                 }
  661.                 // line 230
  662.                 echo "                    </div>
  663.                 </div>
  664.                 <div class=\"tab\">
  665.                     <h3 class=\"tab-title\">MIME parts</h3>
  666.                     <div class=\"tab-content\">
  667.                         <pre class=\"prewrap\" style=\"max-height: 600px; margin-left: 5px\">";
  668.                 // line 236
  669.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'236$this->source); })()), "body", [], "method"falsefalsefalse236), "asDebugString", [], "method"falsefalsefalse236), "html"nulltrue);
  670.                 echo "</pre>
  671.                     </div>
  672.                 </div>
  673.                 <div class=\"tab\">
  674.                     <h3 class=\"tab-title\">Raw Message</h3>
  675.                     <div class=\"tab-content\">
  676.                         <a class=\"mailer-message-download-raw\" href=\"data:application/octet-stream;base64,";
  677.                 // line 243
  678.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'243$this->source); })()), "base64Encode", [=> twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'243$this->source); })()), "toString", [], "method"falsefalsefalse243)], "method"falsefalsefalse243), "html"nulltrue);
  679.                 echo "\" download=\"email.eml\">
  680.                             ";
  681.                 // line 244
  682.                 echo twig_source($this->env"@WebProfiler/Icon/download.svg");
  683.                 echo "
  684.                             Download as EML file
  685.                         </a>
  686.                         <pre class=\"prewrap\" style=\"max-height: 600px; margin-left: 5px\">";
  687.                 // line 248
  688.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'248$this->source); })()), "toString", [], "method"falsefalsefalse248), "html"nulltrue);
  689.                 echo "</pre>
  690.                     </div>
  691.                 </div>
  692.             </div>
  693.         ";
  694.             }
  695.             // line 253
  696.             echo "    ";
  697.             
  698.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  699.             
  700.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  701.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  702.         } finally {
  703.             ob_end_clean();
  704.         }
  705.     }
  706.     // line 255
  707.     public function macro_render_file_size_humanized($__bytes__ null, ...$__varargs__)
  708.     {
  709.         $macros $this->macros;
  710.         $context $this->env->mergeGlobals([
  711.             "bytes" => $__bytes__,
  712.             "varargs" => $__varargs__,
  713.         ]);
  714.         $blocks = [];
  715.         ob_start();
  716.         try {
  717.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  718.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_file_size_humanized"));
  719.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  720.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_file_size_humanized"));
  721.             // line 256
  722.             if (((isset($context["bytes"]) || array_key_exists("bytes"$context) ? $context["bytes"] : (function () { throw new RuntimeError('Variable "bytes" does not exist.'256$this->source); })()) < 1000)) {
  723.                 // line 257
  724.                 echo twig_escape_filter($this->env, ((isset($context["bytes"]) || array_key_exists("bytes"$context) ? $context["bytes"] : (function () { throw new RuntimeError('Variable "bytes" does not exist.'257$this->source); })()) . " bytes"), "html"nulltrue);
  725.             } elseif ((            // line 258
  726. (isset($context["bytes"]) || array_key_exists("bytes"$context) ? $context["bytes"] : (function () { throw new RuntimeError('Variable "bytes" does not exist.'258$this->source); })()) < (1000 ** 2))) {
  727.                 // line 259
  728.                 echo twig_escape_filter($this->env, (twig_number_format_filter($this->env, ((isset($context["bytes"]) || array_key_exists("bytes"$context) ? $context["bytes"] : (function () { throw new RuntimeError('Variable "bytes" does not exist.'259$this->source); })()) / 1000), 2) . " kB"), "html"nulltrue);
  729.             } else {
  730.                 // line 261
  731.                 echo twig_escape_filter($this->env, (twig_number_format_filter($this->env, ((isset($context["bytes"]) || array_key_exists("bytes"$context) ? $context["bytes"] : (function () { throw new RuntimeError('Variable "bytes" does not exist.'261$this->source); })()) / (1000 ** 2)), 2) . " MB"), "html"nulltrue);
  732.             }
  733.             
  734.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  735.             
  736.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  737.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  738.         } finally {
  739.             ob_end_clean();
  740.         }
  741.     }
  742.     public function getTemplateName()
  743.     {
  744.         return "@WebProfiler/Collector/mailer.html.twig";
  745.     }
  746.     public function isTraitable()
  747.     {
  748.         return false;
  749.     }
  750.     public function getDebugInfo()
  751.     {
  752.         return array (  791 => 261,  788 => 259,  786 => 258,  784 => 257,  782 => 256,  763 => 255,  748 => 253,  740 => 248,  733 => 244,  729 => 243,  719 => 236,  711 => 230,  706 => 227,  700 => 223,  697 => 221,  694 => 219,  692 => 218,  687 => 214,  684 => 213,  682 => 212,  679 => 211,  668 => 203,  657 => 194,  654 => 192,  651 => 190,  649 => 189,  644 => 185,  641 => 184,  639 => 183,  635 => 181,  633 => 180,  630 => 179,  625 => 176,  612 => 173,  607 => 171,  604 => 170,  600 => 168,  594 => 166,  592 => 165,  587 => 163,  584 => 162,  580 => 161,  569 => 157,  565 => 156,  562 => 155,  559 => 154,  557 => 153,  554 => 152,  552 => 151,  547 => 148,  538 => 146,  534 => 145,  530 => 144,  526 => 143,  520 => 140,  512 => 134,  507 => 132,  500 => 128,  495 => 127,  493 => 126,  491 => 125,  488 => 124,  482 => 121,  475 => 119,  472 => 118,  469 => 117,  446 => 116,  430 => 113,  424 => 111,  421 => 110,  416 => 107,  399 => 104,  392 => 103,  375 => 102,  369 => 98,  352 => 95,  348 => 94,  344 => 93,  340 => 92,  333 => 91,  316 => 90,  303 => 79,  300 => 78,  298 => 77,  295 => 76,  274 => 75,  263 => 254,  260 => 115,  257 => 74,  251 => 72,  248 => 71,  240 => 69,  235 => 68,  230 => 67,  228 => 66,  225 => 65,  216 => 59,  208 => 54,  203 => 51,  197 => 47,  195 => 46,  191 => 44,  188 => 43,  178 => 42,  167 => 39,  161 => 36,  158 => 35,  156 => 34,  150 => 31,  146 => 30,  143 => 29,  140 => 28,  130 => 27,  117 => 23,  114 => 22,  108 => 19,  101 => 15,  97 => 13,  95 => 12,  92 => 11,  87 => 9,  82 => 8,  79 => 7,  77 => 6,  74 => 5,  71 => 4,  61 => 3,  38 => 1,);
  753.     }
  754.     public function getSourceContext()
  755.     {
  756.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  757. {% block toolbar %}
  758.     {% set events = collector.events %}
  759.     {% if events.messages|length %}
  760.         {% set icon %}
  761.             {{ source('@WebProfiler/Icon/mailer.svg') }}
  762.             <span class=\"sf-toolbar-value\">{{ events.messages|length }}</span>
  763.         {% endset %}
  764.         {% set text %}
  765.             <div class=\"sf-toolbar-info-piece\">
  766.                 <b>Queued messages</b>
  767.                 <span class=\"sf-toolbar-status\">{{ events.events|filter(e => e.isQueued())|length }}</span>
  768.             </div>
  769.             <div class=\"sf-toolbar-info-piece\">
  770.                 <b>Sent messages</b>
  771.                 <span class=\"sf-toolbar-status\">{{ events.events|filter(e => not e.isQueued())|length }}</span>
  772.             </div>
  773.         {% endset %}
  774.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }}
  775.     {% endif %}
  776. {% endblock %}
  777. {% block menu %}
  778.     {% set events = collector.events %}
  779.     <span class=\"label {{ events.messages is empty ? 'disabled' }}\">
  780.         <span class=\"icon\">{{ source('@WebProfiler/Icon/mailer.svg') }}</span>
  781.         <strong>E-mails</strong>
  782.         {% if events.messages|length > 0 %}
  783.             <span class=\"count\">
  784.                 <span>{{ events.messages|length }}</span>
  785.             </span>
  786.         {% endif %}
  787.     </span>
  788. {% endblock %}
  789. {% block panel %}
  790.     {% set events = collector.events %}
  791.     <h2>Emails</h2>
  792.     {% if not events.messages|length %}
  793.         <div class=\"empty empty-panel\">
  794.             <p>No emails were sent.</p>
  795.         </div>
  796.     {% else %}
  797.         <div class=\"metrics\">
  798.             <div class=\"metric-group\">
  799.                 <div class=\"metric\">
  800.                     <span class=\"value\">{{ events.events|filter(e => e.isQueued())|length }}</span>
  801.                     <span class=\"label\">Queued</span>
  802.                 </div>
  803.                 <div class=\"metric\">
  804.                     <span class=\"value\">{{ events.events|filter(e => not e.isQueued())|length }}</span>
  805.                     <span class=\"label\">Sent</span>
  806.                 </div>
  807.             </div>
  808.         </div>
  809.     {% endif %}
  810.     {% if events.transports|length > 1 %}
  811.         {% for transport in events.transports %}
  812.             <h2><code>{{ transport }}</code> transport</h2>
  813.             {{ _self.render_transport_details(collector, transport) }}
  814.         {% endfor %}
  815.     {% elseif events.transports is not empty %}
  816.         {{ _self.render_transport_details(collector, events.transports|first, true) }}
  817.     {% endif %}
  818.     {% macro render_transport_details(collector, transport, show_transport_name = false) %}
  819.         <div class=\"card\">
  820.             {% set num_emails = collector.events.events(transport)|length %}
  821.             {% if num_emails > 1 %}
  822.                 <div class=\"mailer-email-summary-table-wrapper\">
  823.                     <table class=\"mailer-email-summary-table\">
  824.                         <thead>
  825.                             <tr>
  826.                                 <th>#</th>
  827.                                 <th>Subject</th>
  828.                                 <th>To</th>
  829.                                 <th class=\"visually-hidden\">Actions</th>
  830.                             </tr>
  831.                         </thead>
  832.                         <tbody>
  833.                             {% for event in collector.events.events(transport) %}
  834.                                 <tr class=\"mailer-email-summary-table-row {{ loop.first ? 'active' }}\" data-target=\"#email-{{ loop.index }}\">
  835.                                     <td>{{ loop.index }}</td>
  836.                                     <td>{{ event.message.headers.get('subject').bodyAsString() ?? '(No subject)' }}</td>
  837.                                     <td>{{ (event.message.headers.get('to').bodyAsString() ?? '(empty)')|replace({'To:': ''}) }}</td>
  838.                                     <td class=\"visually-hidden\"><button class=\"mailer-email-summary-table-row-button\" data-target=\"#email-{{ loop.index }}\">View email details</button></td>
  839.                                 </tr>
  840.                             {% endfor %}
  841.                         </tbody>
  842.                     </table>
  843.                 </div>
  844.                 {% for event in collector.events.events(transport) %}
  845.                     <div class=\"mailer-email-details {{ loop.first ? 'active' }}\" id=\"email-{{ loop.index }}\">
  846.                         {{ _self.render_email_details(collector, transport, event.message, event.isQueued, show_transport_name) }}
  847.                     </div>
  848.                 {% endfor %}
  849.                 <script>Sfjs.initializeMailerTable();</script>
  850.             {% else %}
  851.                 {% set event = (collector.events.events(transport)|first) %}
  852.                 {{ _self.render_email_details(collector, transport, event.message, event.isQueued, show_transport_name) }}
  853.             {% endif %}
  854.         </div>
  855.     {% endmacro %}
  856.     {% macro render_email_details(collector, transport, message, message_is_queued, show_transport_name = false) %}
  857.         {% if show_transport_name %}
  858.             <p class=\"mailer-transport-information\">
  859.                 <strong>Status:</strong> <span class=\"badge badge-{{ message_is_queued ? 'warning' : 'success' }}\">{{ message_is_queued ? 'Queued' : 'Sent' }}</span>
  860.                 &bull;
  861.                 <strong>Transport:</strong> <code>{{ transport }}</code>
  862.             </p>
  863.         {% endif %}
  864.         {% if message.headers is not defined %}
  865.             {# render the raw message contents #}
  866.             <a class=\"mailer-message-download-raw\" href=\"data:application/octet-stream;base64,{{ collector.base64Encode(message.toString()) }}\" download=\"email.eml\">
  867.                 {{ source('@WebProfiler/Icon/download.svg') }}
  868.                 Download as EML file
  869.             </a>
  870.             <pre class=\"prewrap\" style=\"max-height: 600px; margin-left: 5px\">{{ message.toString() }}</pre>
  871.         {% else %}
  872.             <div class=\"sf-tabs\">
  873.                 <div class=\"tab\">
  874.                     <h3 class=\"tab-title\">Email contents</h3>
  875.                     <div class=\"tab-content\">
  876.                         <div class=\"card-block\">
  877.                             <p class=\"mailer-message-subject\">
  878.                                 {{ message.headers.get('subject').bodyAsString() ?? '(No subject)' }}
  879.                             </p>
  880.                             <div class=\"mailer-message-headers\">
  881.                                 <p><strong>From:</strong> {{ (message.headers.get('from').bodyAsString() ?? '(empty)')|replace({'From:': ''}) }}</p>
  882.                                 <p><strong>To:</strong> {{ (message.headers.get('to').bodyAsString() ?? '(empty)')|replace({'To:': ''}) }}</p>
  883.                                 {% for header in message.headers.all|filter(header => (header.name ?? '') not in ['Subject', 'From', 'To']) %}
  884.                                     <p class=\"mailer-message-header-secondary\">{{ header.toString }}</p>
  885.                                 {% endfor %}
  886.                             </div>
  887.                         </div>
  888.                         {% if message.attachments %}
  889.                             <div class=\"card-block\">
  890.                                 {% set num_of_attachments = message.attachments|length %}
  891.                                 {% set total_attachments_size_in_bytes = message.attachments|reduce((total_size, attachment) => total_size + attachment.body|length) %}
  892.                                 <p class=\"mailer-message-attachments-title\">
  893.                                     {{ source('@WebProfiler/Icon/attachment.svg') }}
  894.                                     Attachments <span>({{ num_of_attachments }} file{{ num_of_attachments > 1 ? 's' }} / {{ _self.render_file_size_humanized(total_attachments_size_in_bytes) }})</span>
  895.                                 </p>
  896.                                 <ul class=\"mailer-message-attachments-list\">
  897.                                     {% for attachment in message.attachments %}
  898.                                         <li>
  899.                                             {{ source('@WebProfiler/Icon/file.svg') }}
  900.                                             {% if attachment.filename|default %}
  901.                                                 {{ attachment.filename }}
  902.                                             {% else %}
  903.                                                 <em>(no filename)</em>
  904.                                             {% endif %}
  905.                                             ({{ _self.render_file_size_humanized(attachment.body|length) }})
  906.                                             <a href=\"data:{{ attachment.contentType|default('application/octet-stream') }};base64,{{ collector.base64Encode(attachment.body) }}\" download=\"{{ attachment.filename|default('attachment') }}\">Download</a>
  907.                                         </li>
  908.                                     {% endfor %}
  909.                                 </ul>
  910.                             </div>
  911.                         {% endif %}
  912.                         {% if message.htmlBody or message.textBody %}
  913.                             <div class=\"card-block\">
  914.                                 <div class=\"sf-tabs sf-tabs-sm\">
  915.                                     {% if message.htmlBody %}
  916.                                         {% set htmlBody = message.htmlBody() %}
  917.                                         <div class=\"tab\">
  918.                                             <h3 class=\"tab-title\">HTML content</h3>
  919.                                             <div class=\"tab-content\">
  920.                                                 <pre class=\"prewrap\" style=\"max-height: 600px\">
  921.                                                     {%- if message.htmlCharset() %}
  922.                                                         {{- htmlBody|convert_encoding('UTF-8', message.htmlCharset()) }}
  923.                                                     {%- else %}
  924.                                                         {{- htmlBody }}
  925.                                                     {%- endif -%}
  926.                                                 </pre>
  927.                                             </div>
  928.                                         </div>
  929.                                         <div class=\"tab\">
  930.                                             <h3 class=\"tab-title\">HTML preview</h3>
  931.                                             <div class=\"tab-content\">
  932.                                                 <pre class=\"prewrap\" style=\"max-height: 600px\">
  933.                                                     <iframe
  934.                                                         src=\"data:text/html;charset=utf-8;base64,{{ collector.base64Encode(htmlBody) }}\"
  935.                                                         style=\"height: 80vh;width: 100%;\"
  936.                                                     >
  937.                                                     </iframe>
  938.                                                 </pre>
  939.                                             </div>
  940.                                         </div>
  941.                                     {% endif %}
  942.                                     {% if message.textBody %}
  943.                                         {% set textBody = message.textBody() %}
  944.                                         <div class=\"tab\">
  945.                                             <h3 class=\"tab-title\">Text content</h3>
  946.                                             <div class=\"tab-content\">
  947.                                                 <pre class=\"prewrap\" style=\"max-height: 600px\">
  948.                                                     {%- if message.textCharset() %}
  949.                                                         {{- textBody|convert_encoding('UTF-8', message.textCharset()) }}
  950.                                                     {%- else %}
  951.                                                         {{- textBody }}
  952.                                                     {%- endif -%}
  953.                                                 </pre>
  954.                                             </div>
  955.                                         </div>
  956.                                     {% endif %}
  957.                                 </div>
  958.                             </div>
  959.                         {% endif %}
  960.                     </div>
  961.                 </div>
  962.                 <div class=\"tab\">
  963.                     <h3 class=\"tab-title\">MIME parts</h3>
  964.                     <div class=\"tab-content\">
  965.                         <pre class=\"prewrap\" style=\"max-height: 600px; margin-left: 5px\">{{ message.body().asDebugString() }}</pre>
  966.                     </div>
  967.                 </div>
  968.                 <div class=\"tab\">
  969.                     <h3 class=\"tab-title\">Raw Message</h3>
  970.                     <div class=\"tab-content\">
  971.                         <a class=\"mailer-message-download-raw\" href=\"data:application/octet-stream;base64,{{ collector.base64Encode(message.toString()) }}\" download=\"email.eml\">
  972.                             {{ source('@WebProfiler/Icon/download.svg') }}
  973.                             Download as EML file
  974.                         </a>
  975.                         <pre class=\"prewrap\" style=\"max-height: 600px; margin-left: 5px\">{{ message.toString() }}</pre>
  976.                     </div>
  977.                 </div>
  978.             </div>
  979.         {% endif %}
  980.     {% endmacro %}
  981.     {% macro render_file_size_humanized(bytes) %}
  982.         {%- if bytes < 1000 -%}
  983.             {{- bytes ~ ' bytes' -}}
  984.         {%- elseif bytes < 1000 ** 2 -%}
  985.             {{- (bytes / 1000)|number_format(2) ~ ' kB' -}}
  986.         {%- else -%}
  987.             {{- (bytes / 1000 ** 2)|number_format(2) ~ ' MB' -}}
  988.         {%- endif -%}
  989.     {% endmacro %}
  990. {% endblock %}
  991. ""@WebProfiler/Collector/mailer.html.twig""/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/mailer.html.twig");
  992.     }
  993. }