MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/help.cafsindia.com/var/cache/dev/twig/db/db4be35000dc357a8a63548515bbdd65.php
<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* @UVDeskMailbox/listConfigurations.html.twig */
class __TwigTemplate_459825783dfd4df671b0ba2e536632eb extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->blocks = [
            'title' => [$this, 'block_title'],
            'templateCSS' => [$this, 'block_templateCSS'],
            'pageContent' => [$this, 'block_pageContent'],
            'footer' => [$this, 'block_footer'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@UVDeskCoreFramework/Templates/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskMailbox/listConfigurations.html.twig"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskMailbox/listConfigurations.html.twig"));

        $this->parent = $this->loadTemplate("@UVDeskCoreFramework/Templates/layout.html.twig", "@UVDeskMailbox/listConfigurations.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

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

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

        yield "Mailbox Settings";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        return; yield '';
    }

    // line 5
    public function block_templateCSS($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "templateCSS"));

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

        // line 6
        yield "    <style>
\t\t.uv-action-bar {
\t\t\tborder-bottom: 1px solid #d3d3d3;
\t\t\tpadding-bottom: 10px;
\t\t}

\t\t.mailer-id {
\t\t\tfont-weight: 600;
\t\t\tborder: 1px solid #333;
\t\t\tbackground: #cecece;
\t\t\tpadding: 2px 4px 2px;
\t\t\tborder-radius: 2px;
\t\t}

\t\t.uv-app-list-brick {
\t\t\twidth: 310px;
\t\t\tmax-width: 100%;
\t\t\tfont-size: 0;
\t\t\tmargin: 15px 20px 0px 0px;
\t\t\tdisplay: inline-block;
\t\t\tborder-radius: 3px;
\t\t\tborder: solid 1px #7C70F4;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-lt {
\t\t\tdisplay: inline-block;
\t\t\tvertical-align: middle;
\t\t\twidth: 35%;
\t\t\theight: 100%;
\t\t\ttext-align: center;
\t\t\tbackground-color: #7C70F4;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-lt span {
\t\t\tfont-size: 24px;
\t\t\tcolor: #FFFFFF;
\t\t\tpadding: 24px 0px;
\t\t\tdisplay: inline-block;
\t\t\tline-height: 40px;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt {
\t\t\twidth: 65%;
\t\t\tpadding: 10px 15px 9px 15px;
\t\t\tdisplay: inline-block;
\t\t\tvertical-align: middle;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt p {
\t\t\twidth: 100%;
\t\t\tmargin: 0px;
\t\t\tmargin-bottom: 3px;
\t\t\toverflow: hidden;
\t\t\twhite-space: nowrap;
\t\t\ttext-overflow: ellipsis;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt span.uv-app-list-flag-active {
\t\t\tfont-size: 15px;
\t\t\tcolor: #FFFFFF;
\t\t\tbackground-color: #2ED04C;
\t\t\tdisplay: inline-block;
\t\t\tpadding: 0px 7px 1px 7px;
\t\t\tmargin-bottom: 2px;
\t\t\tborder-radius: 3px;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt span.uv-app-list-flag-inactive {
\t\t\tfont-size: 15px;
\t\t\tcolor: #FFFFFF;
\t\t\tbackground-color: #FF5656;
\t\t\tdisplay: inline-block;
\t\t\tpadding: 0px 7px 1px 7px;
\t\t\tmargin-bottom: 2px;
\t\t\tborder-radius: 3px;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt a:link,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:focus,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:hover,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:active,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:visited {
\t\t\tfont-size: 15px;
\t\t\tcolor: #2750C4;
\t\t\tmargin-right: 10px;
\t\t\tdisplay: inline-block;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt a.uv-delete {
\t\t\tcolor: #FF5656;
\t\t}

\t\t";
        // line 104
        yield "
\t\t.mailbox-del-button {
\t\t    padding: 8px 10px;
    \t\tborder-radius: 3px;
\t\t\tcursor: pointer;
\t\t\t/* vertical-align: middle; */
\t\t\tfont-size: 15px;
\t\t\tdisplay: inline-block;
\t\t\tmargin: 5px 0px;
\t\t\tcolor: #e00d0d;
\t\t}
\t</style>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        return; yield '';
    }

    // line 118
    public function block_pageContent($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageContent"));

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

        // line 119
        yield "\t<div class=\"uv-inner-section\">
        ";
        // line 121
        yield "\t\t";
        $context["asideTemplate"] = "Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\AsideTemplate";
        // line 122
        yield "\t\t";
        $context["asideSidebarReference"] = "Webkul\\UVDesk\\CoreFrameworkBundle\\UIComponents\\Dashboard\\Panel\\Sidebars\\Settings";
        // line 123
        yield "
\t\t";
        // line 124
        yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_extensibles"]) || array_key_exists("uvdesk_extensibles", $context) ? $context["uvdesk_extensibles"] : (function () { throw new RuntimeError('Variable "uvdesk_extensibles" does not exist.', 124, $this->source); })()), "getRegisteredComponent", [(isset($context["asideTemplate"]) || array_key_exists("asideTemplate", $context) ? $context["asideTemplate"] : (function () { throw new RuntimeError('Variable "asideTemplate" does not exist.', 124, $this->source); })())], "method", false, false, false, 124), "renderSidebar", [(isset($context["asideSidebarReference"]) || array_key_exists("asideSidebarReference", $context) ? $context["asideSidebarReference"] : (function () { throw new RuntimeError('Variable "asideSidebarReference" does not exist.', 124, $this->source); })())], "method", false, false, false, 124);
        yield "

\t\t<div class=\"uv-view ";
        // line 126
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 126, $this->source); })()), "request", [], "any", false, false, false, 126), "cookies", [], "any", false, false, false, 126) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 126, $this->source); })()), "request", [], "any", false, false, false, 126), "cookies", [], "any", false, false, false, 126), "get", ["uv-asideView"], "method", false, false, false, 126))) {
            yield "uv-aside-view";
        }
        yield "\">
\t\t\t<div class=\"uv-action-bar\">
                <div class=\"uv-action-bar-col-lt\" style=\"vertical-align: middle;\">
\t\t\t\t\t<h1>";
        // line 129
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mailbox Settings"), "html", null, true);
        yield "</h1>
                </div>

\t\t\t\t<div class=\"uv-action-bar-col-rt\" style=\"vertical-align: middle;\">
\t\t\t\t\t<a href=\"";
        // line 133
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_mailbox_create_configuration");
        yield "\" type=\"button\" class=\"uv-btn-action\" style=\"margin: unset;\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("New Mailbox"), "html", null, true);
        yield "</a>
\t\t\t\t</div>
            </div>

            <div id=\"mailbox-collection\" class=\"mailbox-collection uv-app-list-channels\">
            </div>
\t\t</div>
\t</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        return; yield '';
    }

    // line 143
    public function block_footer($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));

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

        // line 144
        yield "\t";
        yield from $this->yieldParentBlock("footer", $context, $blocks);
        yield "
\t
\t<script type=\"text/template\" id=\"no_mailers_template\">
        <div class=\"uv-app-screen\">
            <div class=\"uv-app-splash\" style=\"text-align: center;\">
                <img class=\"uv-app-splash-image\" src=\"";
        // line 149
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/images/splash/mailbox.png"), "html", null, true);
        yield "\" alt=\"Tasks\">
                <h2 class=\"uv-margin-top-10\">";
        // line 150
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No mailbox configurations found"), "html", null, true);
        yield "</h2>
            </div>
        </div>\t
\t</script>

\t<script id=\"swiftmailer_configuration_item_template\" type=\"text/template\">
\t\t<div class=\"uv-app-list-brick-rt\" title=\"<%- id %>\" style=\"width: 100%;\">
\t\t\t<p style=\"line-height: 1.4em; margin: unset; margin-bottom: 4px;\">
\t\t\t\t<span style=\"font-weight: 700; text-transform: uppercase;\"><%- id %></span>
\t\t\t</p>
\t\t\t
\t\t\t<p style=\"line-height: 1.4em; margin-bottom: 10px;\">
\t\t\t\t<%- name %> 
\t\t\t</p>
\t\t\t
\t\t\t<p style=\"line-height: 1.4em; margin-bottom: 10px;\">
\t\t\t\t<% if (isEnabled) { %>
\t\t\t\t\t<span class=\"uv-app-list-flag-active\">Enabled</span>
\t\t\t\t<% } else { %>
\t\t\t\t\t<span class=\"uv-app-list-flag-inactive\">Disabled</span>
\t\t\t\t<% } %>
\t\t\t</p>

\t\t\t<div class=\"uv-app-list-actions\">
\t\t\t\t<a href=\"";
        // line 174
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_mailbox_update_configuration", ["id" => ""]);
        yield "/<%- id %>\"  class=\"edit-mailbox\">
\t\t\t\t\t";
        // line 175
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit"), "html", null, true);
        yield "
\t\t\t\t</a>
\t\t\t\t<div class=\"mailbox-del-button delete-type\">
\t\t\t\t\t";
        // line 178
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Delete"), "html", null, true);
        yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
    </script>

\t<script type=\"text/javascript\">
\t\tvar path = \"";
        // line 185
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_mailbox_update_configuration", ["id" => "replaceId"]);
        yield "\";

\t\t\$(function () {
\t\t\tvar globalMessageResponse = \"\";

\t\t\tvar ConfigurationModel = Backbone.Model.extend({
\t\t\t\tidAttribute : \"id\"
\t\t\t});

\t\t\tvar ConfigurationCollection = AppCollection.extend({
\t\t\t\tmodel: ConfigurationModel,
\t\t\t\turl: \"";
        // line 196
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_mailbox_load_configurations_xhr");
        yield "\",
\t\t\t\tfilterParameters : {
\t\t\t\t\t\"isActive\" : \"\",
\t\t\t\t\t\"search\" : \"\"
\t\t\t\t},
\t\t\t\tparseRecords: function (resp, options) {
\t\t\t\t\treturn resp.types;
\t\t\t\t},
\t\t\t\tinitialize: function() {
\t\t\t\t\tthis.syncData();
\t\t\t\t},
\t\t\t\tsyncData: function() {
\t\t\t\t\tapp.appView.showLoader();

\t\t\t\t\tthis.fetch({
\t\t\t\t\t\tdata: this.getValidParameters(),
\t\t\t\t\t\treset: true,
\t\t\t\t\t\tsuccess: function(model,response) {
\t\t\t\t\t\t\tapp.appView.hideLoader();
\t\t\t\t\t\t\tvar configurationListView = new ConfigurationList(response);

\t\t\t\t\t\t\tif (globalMessageResponse) {
\t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(globalMessageResponse);
\t\t\t\t\t\t\t}

\t\t\t\t\t\t\tglobalMessageResponse = null;
\t\t\t\t\t\t},
\t\t\t\t\t\terror: function (model, xhr, options) {
\t\t\t\t\t\t\tif(url = xhr.getResponseHeader('Location'))
\t\t\t\t\t\t\t\twindow.location = url;
\t\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t}
\t\t\t});

\t\t\tvar ConfigurationView = Backbone.View.extend({
\t\t\t\ttagName: \"div\",
\t\t\t\tclassName: \"uv-app-list-brick\",
\t\t\t\ttemplate: _.template(\$(\"#swiftmailer_configuration_item_template\").html()),
\t\t\t\tevents: {
\t\t\t\t\t'click .delete-type' : \"confirmRemove\"
\t\t\t\t},
\t\t\t\trender: function() {
\t\t\t\t\tthis.\$el.html(this.template(this.model));
\t\t\t\t\treturn this;
\t\t\t\t},
\t\t\t\tconfirmRemove: function(e) {
\t\t\t\t\te.preventDefault();
\t\t\t\t\tapp.appView.openConfirmModal(this)
\t\t\t\t},
\t\t\t\tremoveItem: function (e) {
\t\t\t\t\tapp.appView.showLoader();
\t\t\t\t\tself = this;
\t\t\t\t
\t\t\t\t\t\$.ajax({
\t\t\t\t\t\turl: \"";
        // line 251
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_mailbox_remove_configuration_xhr");
        yield "/\" + this.model.id,
\t\t\t\t\t\t\tsuccess: function (response) {
\t\t\t\t\t\t\tapp.appView.hideLoader();
\t\t\t\t\t\t\tglobalMessageResponse = response;
\t\t\t\t\t\t\tconfigurationCollection.syncData();
\t\t\t\t\t\t}, 
\t\t\t\t\t\terror: function (model, xhr, options) {
\t\t\t\t\t\t\tif (url = xhr.getResponseHeader('Location')) {
\t\t\t\t\t\t\t\twindow.location = url;
\t\t\t\t\t\t\t}

\t\t\t\t\t\t\tvar response = warningResponse;
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tif (xhr.responseJSON) {
\t\t\t\t\t\t\t\tresponse = xhr.responseJSON;
\t\t\t\t\t\t\t}

\t\t\t\t\t\t\tapp.appView.hideLoader();
\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
\t\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t}
\t\t\t});

\t\t\tvar ConfigurationList = Backbone.View.extend({
\t\t\t\tel: \$(\".mailbox-collection\"),
\t\t\t\ttemplate: _.template(\$(\"#no_mailers_template\").html()),
\t\t\t\tinitialize : function(listItems) {
\t\t\t\t\tthis.render(listItems);
\t\t\t\t},
\t\t\t\trender : function (items) {
\t\t\t\t\tthis.\$el.find(\"div\").remove();
\t\t\t\t\t
\t\t\t\t\tif (items.length > 0) {
\t\t\t\t\t\t_.each(items, function (item) {
\t\t\t\t\t\t\tthis.renderType(item);
\t\t\t\t\t\t}, this);
\t\t\t\t\t} else {
\t\t\t\t\t\tthis.\$el.html(this.template());
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\trenderType : function (item) {
\t\t\t\t\tvar configuration = new ConfigurationView({
\t\t\t\t\t\tmodel: item
\t\t\t\t\t});

\t\t\t\t\tthis.\$el.append(configuration.render().el);
\t\t\t\t}
\t\t\t});

\t\t\tvar configurationCollection = new ConfigurationCollection();
\t\t});
\t</script>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@UVDeskMailbox/listConfigurations.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  419 => 251,  361 => 196,  347 => 185,  337 => 178,  331 => 175,  327 => 174,  300 => 150,  296 => 149,  287 => 144,  277 => 143,  255 => 133,  248 => 129,  240 => 126,  235 => 124,  232 => 123,  229 => 122,  226 => 121,  223 => 119,  213 => 118,  190 => 104,  96 => 6,  86 => 5,  66 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends \"@UVDeskCoreFramework/Templates/layout.html.twig\" %}

{% block title %}Mailbox Settings{% endblock %}

{% block templateCSS %}
    <style>
\t\t.uv-action-bar {
\t\t\tborder-bottom: 1px solid #d3d3d3;
\t\t\tpadding-bottom: 10px;
\t\t}

\t\t.mailer-id {
\t\t\tfont-weight: 600;
\t\t\tborder: 1px solid #333;
\t\t\tbackground: #cecece;
\t\t\tpadding: 2px 4px 2px;
\t\t\tborder-radius: 2px;
\t\t}

\t\t.uv-app-list-brick {
\t\t\twidth: 310px;
\t\t\tmax-width: 100%;
\t\t\tfont-size: 0;
\t\t\tmargin: 15px 20px 0px 0px;
\t\t\tdisplay: inline-block;
\t\t\tborder-radius: 3px;
\t\t\tborder: solid 1px #7C70F4;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-lt {
\t\t\tdisplay: inline-block;
\t\t\tvertical-align: middle;
\t\t\twidth: 35%;
\t\t\theight: 100%;
\t\t\ttext-align: center;
\t\t\tbackground-color: #7C70F4;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-lt span {
\t\t\tfont-size: 24px;
\t\t\tcolor: #FFFFFF;
\t\t\tpadding: 24px 0px;
\t\t\tdisplay: inline-block;
\t\t\tline-height: 40px;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt {
\t\t\twidth: 65%;
\t\t\tpadding: 10px 15px 9px 15px;
\t\t\tdisplay: inline-block;
\t\t\tvertical-align: middle;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt p {
\t\t\twidth: 100%;
\t\t\tmargin: 0px;
\t\t\tmargin-bottom: 3px;
\t\t\toverflow: hidden;
\t\t\twhite-space: nowrap;
\t\t\ttext-overflow: ellipsis;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt span.uv-app-list-flag-active {
\t\t\tfont-size: 15px;
\t\t\tcolor: #FFFFFF;
\t\t\tbackground-color: #2ED04C;
\t\t\tdisplay: inline-block;
\t\t\tpadding: 0px 7px 1px 7px;
\t\t\tmargin-bottom: 2px;
\t\t\tborder-radius: 3px;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt span.uv-app-list-flag-inactive {
\t\t\tfont-size: 15px;
\t\t\tcolor: #FFFFFF;
\t\t\tbackground-color: #FF5656;
\t\t\tdisplay: inline-block;
\t\t\tpadding: 0px 7px 1px 7px;
\t\t\tmargin-bottom: 2px;
\t\t\tborder-radius: 3px;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt a:link,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:focus,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:hover,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:active,
\t\t.uv-app-list-brick .uv-app-list-brick-rt a:visited {
\t\t\tfont-size: 15px;
\t\t\tcolor: #2750C4;
\t\t\tmargin-right: 10px;
\t\t\tdisplay: inline-block;
\t\t}

\t\t.uv-app-list-brick .uv-app-list-brick-rt a.uv-delete {
\t\t\tcolor: #FF5656;
\t\t}

\t\t{# .uv-app-list-brick-template {
\t\t\twidth: 100%;
\t\t\tpadding: 10px 15px 9px 15px;
\t\t\tdisplay: inline-block;
\t\t\tvertical-align: middle;
\t\t} #}

\t\t.mailbox-del-button {
\t\t    padding: 8px 10px;
    \t\tborder-radius: 3px;
\t\t\tcursor: pointer;
\t\t\t/* vertical-align: middle; */
\t\t\tfont-size: 15px;
\t\t\tdisplay: inline-block;
\t\t\tmargin: 5px 0px;
\t\t\tcolor: #e00d0d;
\t\t}
\t</style>
{% endblock %}

{% block pageContent %}
\t<div class=\"uv-inner-section\">
        {# Append Panel Aside #}
\t\t{% set asideTemplate = 'Webkul\\\\UVDesk\\\\CoreFrameworkBundle\\\\Dashboard\\\\AsideTemplate' %}
\t\t{% set asideSidebarReference = 'Webkul\\\\UVDesk\\\\CoreFrameworkBundle\\\\UIComponents\\\\Dashboard\\\\Panel\\\\Sidebars\\\\Settings' %}

\t\t{{ uvdesk_extensibles.getRegisteredComponent(asideTemplate).renderSidebar(asideSidebarReference) | raw }}

\t\t<div class=\"uv-view {% if app.request.cookies and app.request.cookies.get('uv-asideView') %}uv-aside-view{% endif %}\">
\t\t\t<div class=\"uv-action-bar\">
                <div class=\"uv-action-bar-col-lt\" style=\"vertical-align: middle;\">
\t\t\t\t\t<h1>{{ 'Mailbox Settings'|trans }}</h1>
                </div>

\t\t\t\t<div class=\"uv-action-bar-col-rt\" style=\"vertical-align: middle;\">
\t\t\t\t\t<a href=\"{{ path('helpdesk_member_mailbox_create_configuration') }}\" type=\"button\" class=\"uv-btn-action\" style=\"margin: unset;\">{{ 'New Mailbox'|trans }}</a>
\t\t\t\t</div>
            </div>

            <div id=\"mailbox-collection\" class=\"mailbox-collection uv-app-list-channels\">
            </div>
\t\t</div>
\t</div>
{% endblock %}

{% block footer %}
\t{{ parent() }}
\t
\t<script type=\"text/template\" id=\"no_mailers_template\">
        <div class=\"uv-app-screen\">
            <div class=\"uv-app-splash\" style=\"text-align: center;\">
                <img class=\"uv-app-splash-image\" src=\"{{ asset('bundles/uvdeskcoreframework/images/splash/mailbox.png') }}\" alt=\"Tasks\">
                <h2 class=\"uv-margin-top-10\">{{ 'No mailbox configurations found'|trans }}</h2>
            </div>
        </div>\t
\t</script>

\t<script id=\"swiftmailer_configuration_item_template\" type=\"text/template\">
\t\t<div class=\"uv-app-list-brick-rt\" title=\"<%- id %>\" style=\"width: 100%;\">
\t\t\t<p style=\"line-height: 1.4em; margin: unset; margin-bottom: 4px;\">
\t\t\t\t<span style=\"font-weight: 700; text-transform: uppercase;\"><%- id %></span>
\t\t\t</p>
\t\t\t
\t\t\t<p style=\"line-height: 1.4em; margin-bottom: 10px;\">
\t\t\t\t<%- name %> 
\t\t\t</p>
\t\t\t
\t\t\t<p style=\"line-height: 1.4em; margin-bottom: 10px;\">
\t\t\t\t<% if (isEnabled) { %>
\t\t\t\t\t<span class=\"uv-app-list-flag-active\">Enabled</span>
\t\t\t\t<% } else { %>
\t\t\t\t\t<span class=\"uv-app-list-flag-inactive\">Disabled</span>
\t\t\t\t<% } %>
\t\t\t</p>

\t\t\t<div class=\"uv-app-list-actions\">
\t\t\t\t<a href=\"{{ path('helpdesk_member_mailbox_update_configuration', {'id': '' }) }}/<%- id %>\"  class=\"edit-mailbox\">
\t\t\t\t\t{{ \"Edit\"|trans }}
\t\t\t\t</a>
\t\t\t\t<div class=\"mailbox-del-button delete-type\">
\t\t\t\t\t{{ \"Delete\"|trans }}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
    </script>

\t<script type=\"text/javascript\">
\t\tvar path = \"{{ path('helpdesk_member_mailbox_update_configuration', {'id': 'replaceId' }) }}\";

\t\t\$(function () {
\t\t\tvar globalMessageResponse = \"\";

\t\t\tvar ConfigurationModel = Backbone.Model.extend({
\t\t\t\tidAttribute : \"id\"
\t\t\t});

\t\t\tvar ConfigurationCollection = AppCollection.extend({
\t\t\t\tmodel: ConfigurationModel,
\t\t\t\turl: \"{{ path('helpdesk_member_mailbox_load_configurations_xhr') }}\",
\t\t\t\tfilterParameters : {
\t\t\t\t\t\"isActive\" : \"\",
\t\t\t\t\t\"search\" : \"\"
\t\t\t\t},
\t\t\t\tparseRecords: function (resp, options) {
\t\t\t\t\treturn resp.types;
\t\t\t\t},
\t\t\t\tinitialize: function() {
\t\t\t\t\tthis.syncData();
\t\t\t\t},
\t\t\t\tsyncData: function() {
\t\t\t\t\tapp.appView.showLoader();

\t\t\t\t\tthis.fetch({
\t\t\t\t\t\tdata: this.getValidParameters(),
\t\t\t\t\t\treset: true,
\t\t\t\t\t\tsuccess: function(model,response) {
\t\t\t\t\t\t\tapp.appView.hideLoader();
\t\t\t\t\t\t\tvar configurationListView = new ConfigurationList(response);

\t\t\t\t\t\t\tif (globalMessageResponse) {
\t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(globalMessageResponse);
\t\t\t\t\t\t\t}

\t\t\t\t\t\t\tglobalMessageResponse = null;
\t\t\t\t\t\t},
\t\t\t\t\t\terror: function (model, xhr, options) {
\t\t\t\t\t\t\tif(url = xhr.getResponseHeader('Location'))
\t\t\t\t\t\t\t\twindow.location = url;
\t\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t}
\t\t\t});

\t\t\tvar ConfigurationView = Backbone.View.extend({
\t\t\t\ttagName: \"div\",
\t\t\t\tclassName: \"uv-app-list-brick\",
\t\t\t\ttemplate: _.template(\$(\"#swiftmailer_configuration_item_template\").html()),
\t\t\t\tevents: {
\t\t\t\t\t'click .delete-type' : \"confirmRemove\"
\t\t\t\t},
\t\t\t\trender: function() {
\t\t\t\t\tthis.\$el.html(this.template(this.model));
\t\t\t\t\treturn this;
\t\t\t\t},
\t\t\t\tconfirmRemove: function(e) {
\t\t\t\t\te.preventDefault();
\t\t\t\t\tapp.appView.openConfirmModal(this)
\t\t\t\t},
\t\t\t\tremoveItem: function (e) {
\t\t\t\t\tapp.appView.showLoader();
\t\t\t\t\tself = this;
\t\t\t\t
\t\t\t\t\t\$.ajax({
\t\t\t\t\t\turl: \"{{ path('helpdesk_member_mailbox_remove_configuration_xhr') }}/\" + this.model.id,
\t\t\t\t\t\t\tsuccess: function (response) {
\t\t\t\t\t\t\tapp.appView.hideLoader();
\t\t\t\t\t\t\tglobalMessageResponse = response;
\t\t\t\t\t\t\tconfigurationCollection.syncData();
\t\t\t\t\t\t}, 
\t\t\t\t\t\terror: function (model, xhr, options) {
\t\t\t\t\t\t\tif (url = xhr.getResponseHeader('Location')) {
\t\t\t\t\t\t\t\twindow.location = url;
\t\t\t\t\t\t\t}

\t\t\t\t\t\t\tvar response = warningResponse;
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tif (xhr.responseJSON) {
\t\t\t\t\t\t\t\tresponse = xhr.responseJSON;
\t\t\t\t\t\t\t}

\t\t\t\t\t\t\tapp.appView.hideLoader();
\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
\t\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t}
\t\t\t});

\t\t\tvar ConfigurationList = Backbone.View.extend({
\t\t\t\tel: \$(\".mailbox-collection\"),
\t\t\t\ttemplate: _.template(\$(\"#no_mailers_template\").html()),
\t\t\t\tinitialize : function(listItems) {
\t\t\t\t\tthis.render(listItems);
\t\t\t\t},
\t\t\t\trender : function (items) {
\t\t\t\t\tthis.\$el.find(\"div\").remove();
\t\t\t\t\t
\t\t\t\t\tif (items.length > 0) {
\t\t\t\t\t\t_.each(items, function (item) {
\t\t\t\t\t\t\tthis.renderType(item);
\t\t\t\t\t\t}, this);
\t\t\t\t\t} else {
\t\t\t\t\t\tthis.\$el.html(this.template());
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\trenderType : function (item) {
\t\t\t\t\tvar configuration = new ConfigurationView({
\t\t\t\t\t\tmodel: item
\t\t\t\t\t});

\t\t\t\t\tthis.\$el.append(configuration.render().el);
\t\t\t\t}
\t\t\t});

\t\t\tvar configurationCollection = new ConfigurationCollection();
\t\t});
\t</script>
{% endblock %}", "@UVDeskMailbox/listConfigurations.html.twig", "/home/users/sanjeev.papnoi/www/html/uvdesk-community-v1.1.6/vendor/uvdesk/mailbox-component/Resources/views/listConfigurations.html.twig");
    }
}