Edit File: themify.font-icons-select.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var f=a[d];if(c.call(b,f,d,a))return{i:d,v:f}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){a!=Array.prototype&&a!=Object.prototype&&(a[c]=b.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,c,b,e){if(c){b=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];d in b||(b[d]={});b=b[d]}a=a[a.length-1];e=b[a];c=c(e);c!=e&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6-impl","es3");var Themify_Icons={}; (function(a){Themify_Icons={target:"",ajaxurl:tfIconPicker.ajaxurl,top:window.top!=window.self?a(window.top.document):a(document),init:function(){var c=Themify_Icons;c.top.on("click",".themify_fa_toggle",function(b){b.preventDefault();b.stopPropagation();b=a(this);c.target=b.attr("data-target")?a(b.attr("data-target"),c.top):b.prev();c.showLightbox(c.target.val())}).on("click","#themify_lightbox_fa .lightbox_container a:not(.external-link)",function(b){b.preventDefault();b.stopPropagation();c.setIcon(a(this).data("icon"))}).on("click", "#themify_lightbox_overlay, #themify_lightbox_fa .close_lightbox",function(a){a.preventDefault();a.stopPropagation();c.closeLightbox()}).on("change",".tf-icon-group-select input",function(b){b=a(this).val();a("#themify_lightbox_fa .tf-font-group",c.top).hide().filter('[data-group="'+b+'"]').show()});c.Category();c.Search()},showLightbox:function(c){var b=Themify_Icons;b.loadIconsList(function(){var e=b.top.scrollTop()+80,d=a("#themify_lightbox_fa",b.top),f=a("#themify_lightbox_overlay",b.top);c&& a("a",d).removeClass("selected").filter('[data-icon="'+c+'"]').addClass("selected");0===f.length&&a("body",b.top).hasClass("themify_builder_active")&&a("body",b.top).append(f);if(0<d.find("a.selected").length){var g=d.find("a.selected").closest(".tf-font-group").data("group");d.find('.tf-icon-group-select input[value="'+g+'"]').click()}else d.find(".tf-icon-group-select input:first").click();a("#themify-search-icon-input",d).val("").trigger("keyup");a(".themify-lightbox-icon".$lightbox).find(".selected").trigger("click"); f.show();d.css("top",b.top.height()).show().animate({top:e},600)})},loadIconsList:function(c){0<a("#themify_lightbox_fa",Themify_Icons.top).length?c():a.ajax({url:Themify_Icons.ajaxurl,data:{action:"tf_icon_picker"},type:"POST",success:function(b){a("body",Themify_Icons.top).append(b);c()}})},setIcon:function(c){Themify_Icons.target.val(c).trigger("change");"undefined"!==typeof Themify&&Themify.triggerEvent(Themify_Icons.target[0],"change");var b=a(".fa:not(.icon-close)",Themify_Icons.target.parent().parent()); 0>=b.length&&(b=a(".font-icon-preview i",Themify_Icons.target.parent().parent()));0<b.length&&a.ajax({url:Themify_Icons.ajaxurl,data:{action:"tf_get_icon",tf_icon:c},success:function(a){b.removeClass().addClass(a)}});Themify_Icons.closeLightbox()},closeLightbox:function(){a("#themify_lightbox_fa",Themify_Icons.top).animate({top:Themify_Icons.top.height()},400,function(){a("#themify_lightbox_overlay",Themify_Icons.top).hide();a(this).hide()})},Category:function(){Themify_Icons.top.on("click",".themify-lightbox-icon li", function(c){c.preventDefault();c.stopPropagation();c=a(this).hasClass("selected");a(this).closest(".themify-lightbox-icon").find(".selected").removeClass("selected");if(c)a(this).closest(".lightbox_container").find("section").fadeIn("fast",function(){a("#themify-search-icon-input",Themify_Icons.top).trigger("keyup")});else{c=a(this).data("id");var b=a("#"+c,Themify_Icons.top);a(this).addClass("selected");0<b.length&&a(this).closest(".lightbox_container").find("section").not("#"+c).fadeOut("fast", function(){b.fadeIn("normal")})}})},Search:function(){a.expr[":"].contains=a.expr.createPseudo(function(c){return function(b){return 0<=a(b).text().toUpperCase().indexOf(c.toUpperCase())}});Themify_Icons.top.on("keyup","#themify-search-icon-input",function(){var c=a.trim(a(this).val()),b=a("#themify_lightbox_fa",Themify_Icons.top).find(".tf-font-group a"),e=a("#themify_lightbox_fa",Themify_Icons.top).find("section");c?(b.hide(),e.hide(),b.filter(":contains("+c.toUpperCase()+")").show().each(function(){a(this).closest("section").show()})): (e.show(),b.show())})}};a(document).ready(Themify_Icons.init)})(jQuery);
Back to File Manager