<?php

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

/* @bundles/CoreBundle/Assets/js/libraries/froala/plugins/lists.min.js */
class __TwigTemplate_aceee5681cc93ef487940ac4004014ddcbe66e9d00307e3b122d396f3dde1e0c extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "/*!
 * froala_editor v2.4.2 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2017 Froala Labs
 */

!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):\"object\"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c=\"undefined\"!=typeof window?require(\"jquery\"):require(\"jquery\")(b)),a(c),c}:a(jQuery)}(function(a){a.FE.PLUGINS.lists=function(b){function c(a){return'<span class=\"fr-open-'+a.toLowerCase()+'\"></span>'}function d(a){return'<span class=\"fr-close-'+a.toLowerCase()+'\"></span>'}function e(b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e].parentNode;\"LI\"==b[e].tagName&&f.tagName!=c&&d.indexOf(f)<0&&d.push(f)}for(e=d.length-1;e>=0;e--){var g=a(d[e]);g.replaceWith(\"<\"+c.toLowerCase()+\">\"+g.html()+\"</\"+c.toLowerCase()+\">\")}}function f(c,d){e(c,d);for(var f=b.html.defaultTag(),g=0;g<c.length;g++)\"LI\"!=c[g].tagName&&(f&&c[g].tagName.toLowerCase()==f?a(c[g]).replaceWith(\"<\"+d+\"><li\"+b.node.attributes(c[g])+\">\"+a(c[g]).html()+\"</li></\"+d+\">\"):a(c[g]).wrap(\"<\"+d+\"><li></li></\"+d+\">\"));b.clean.lists()}function g(e){var f,g;for(f=e.length-1;f>=0;f--)for(g=f-1;g>=0;g--)if(a(e[g]).find(e[f]).length||e[g]==e[f]){e.splice(f,1);break}var h=[];for(f=0;f<e.length;f++){var i=a(e[f]),j=e[f].parentNode;i.before(d(j.tagName)),\"LI\"==j.parentNode.tagName?(i.before(d(\"LI\")),i.after(c(\"LI\"))):(b.node.isEmpty(i.get(0),!0)||0!==i.find(b.html.blockTagsQuery()).length||i.append(\"<br>\"),i.append(c(\"LI\")),i.prepend(d(\"LI\"))),i.after(c(j.tagName)),\"LI\"==j.parentNode.tagName&&(j=j.parentNode.parentNode),h.indexOf(j)<0&&h.push(j)}for(f=0;f<h.length;f++){var k=a(h[f]),l=k.html();l=l.replace(/<span class=\"fr-close-([a-z]*)\"><\\/span>/g,\"</\$1>\"),l=l.replace(/<span class=\"fr-open-([a-z]*)\"><\\/span>/g,\"<\$1>\"),k.replaceWith(b.node.openTagString(k.get(0))+l+b.node.closeTagString(k.get(0)))}b.\$el.find(\"li:empty\").remove(),b.\$el.find(\"ul:empty, ol:empty\").remove(),b.clean.lists(),b.html.wrap()}function h(a,b){for(var c=!0,d=0;d<a.length;d++){if(\"LI\"!=a[d].tagName)return!1;a[d].parentNode.tagName!=b&&(c=!1)}return c}function i(a){b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();for(var c=b.selection.blocks(),d=0;d<c.length;d++)\"LI\"!=c[d].tagName&&\"LI\"==c[d].parentNode.tagName&&(c[d]=c[d].parentNode);b.selection.save(),h(c,a)?g(c):f(c,a),b.html.unwrap(),b.selection.restore()}function j(c,d){var e=a(b.selection.element());if(e.get(0)!=b.el){var f=e.get(0);\"LI\"!=f.tagName&&(f=e.parents(\"li\").get(0)),f&&f.parentNode.tagName==d&&b.el.contains(f.parentNode)&&c.addClass(\"fr-active\")}}function k(c){b.selection.save();for(var d=0;d<c.length;d++){var e=c[d].previousSibling;if(e){var f=a(c[d]).find(\"> ul, > ol\").last().get(0);if(f){for(var g=a(\"<li>\").prependTo(a(f)),h=b.node.contents(c[d])[0];h&&!b.node.isList(h);){var i=h.nextSibling;g.append(h),h=i}a(e).append(a(f)),a(c[d]).remove()}else{var j=a(e).find(\"> ul, > ol\").last().get(0);if(j)a(j).append(a(c[d]));else{var k=a(\"<\"+c[d].parentNode.tagName+\">\");a(e).append(k),k.append(a(c[d]))}}}}b.clean.lists(),b.selection.restore()}function l(a){b.selection.save(),g(a),b.selection.restore()}function m(a){if(\"indent\"==a||\"outdent\"==a){for(var c=!1,d=b.selection.blocks(),e=[],f=0;f<d.length;f++)\"LI\"==d[f].tagName?(c=!0,e.push(d[f])):\"LI\"==d[f].parentNode.tagName&&(c=!0,e.push(d[f].parentNode));c&&(\"indent\"==a?k(e):l(e))}}function n(){b.events.on(\"commands.after\",m),b.events.on(\"keydown\",function(c){if(c.which==a.FE.KEYCODE.TAB){for(var d=b.selection.blocks(),e=[],f=0;f<d.length;f++)\"LI\"==d[f].tagName?e.push(d[f]):\"LI\"==d[f].parentNode.tagName&&e.push(d[f].parentNode);if(e.length>1||e.length&&(b.selection.info(e[0]).atStart||b.node.isEmpty(e[0])))return c.preventDefault(),c.stopPropagation(),c.shiftKey?l(e):k(e),!1}},!0)}return{_init:n,format:i,refresh:j}},a.FE.RegisterCommand(\"formatUL\",{title:\"Unordered List\",refresh:function(a){this.lists.refresh(a,\"UL\")},callback:function(){this.lists.format(\"UL\")},plugin:\"lists\"}),a.FE.RegisterCommand(\"formatOL\",{title:\"Ordered List\",refresh:function(a){this.lists.refresh(a,\"OL\")},callback:function(){this.lists.format(\"OL\")},plugin:\"lists\"}),a.FE.DefineIcon(\"formatUL\",{NAME:\"list-ul\"}),a.FE.DefineIcon(\"formatOL\",{NAME:\"list-ol\"})});";
    }

    public function getTemplateName()
    {
        return "@bundles/CoreBundle/Assets/js/libraries/froala/plugins/lists.min.js";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/CoreBundle/Assets/js/libraries/froala/plugins/lists.min.js", "/var/www/mautic/app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/lists.min.js");
    }
}
