<?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_ed65d4696f830436b426afa756d39c5a 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 = []): iterable
    {
        $macros = $this->macros;
        $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));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Mailbox Settings";
        yield from [];
    }

    // line 5
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_templateCSS(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // 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>
";
        yield from [];
    }

    // line 118
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_pageContent(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // 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, ($context["uvdesk_extensibles"] ?? null), "getRegisteredComponent", [($context["asideTemplate"] ?? null)], "method", false, false, false, 124), "renderSidebar", [($context["asideSidebarReference"] ?? null)], "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, ($context["app"] ?? null), "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, ($context["app"] ?? null), "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>
";
        yield from [];
    }

    // line 143
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_footer(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // 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=\"mailer_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<% if (isDefault) { %>
\t\t\t\t<span class=\"uv-app-list-flag-active\">Default</span>
\t\t\t<% } %>
\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<p style=\"line-height: 1.4em; margin-bottom: 10px;\">
\t\t\t\t<% if (isEmailDeliveryDisabled) { %>
\t\t\t\t\t<span class=\"uv-app-list-flag-inactive\">Delivery 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 184
        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 185
        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 188
        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 195
        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 206
        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(\$(\"#mailer_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 261
        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>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  387 => 261,  329 => 206,  315 => 195,  305 => 188,  299 => 185,  295 => 184,  258 => 150,  254 => 149,  245 => 144,  238 => 143,  222 => 133,  215 => 129,  207 => 126,  202 => 124,  199 => 123,  196 => 122,  193 => 121,  190 => 119,  183 => 118,  166 => 104,  72 => 6,  65 => 5,  54 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@UVDeskMailbox/listConfigurations.html.twig", "/home/bmdranzo/public_html/vendor/uvdesk/mailbox-component/Resources/views/listConfigurations.html.twig");
    }
}
