File: /storage/v4513/tepnot/public_html/wp-content/plugins/echo-knowledge-base/js/admin-ui.min.js
"use strict";(function(e){function t(e,t){t=parseFloat(t);if(t>100){t=100}if(t<0){t=0}e.find(".epkb-progress__bar div").css({width:t+"%"});e.find(".epkb-progress__percentage").text(t+"%")}function s(e,t){if(typeof t!=="object"){return}if(typeof t.type=="undefined"){t.type="in-progress"}if(typeof t.message=="undefined"){t.message=""}e.find(".epkb-export-progress__row--in-progress").remove();let s=e.find(".epkb-progress__log").html();if(t.type=="in-progress"){s+=`\n\t\t\t\t\t<div class="epkb-export-progress__row epkb-export-progress__row--in-progress">\n\t\t\t\t\t\t<div class="epkb-export__title">${t.message}</div>\n\t\t\t\t\t\t<div class="epkb-export__icon"><i class="epkbfa epkbfa-spinner"></i></div>\n\t\t\t\t\t</div>`}if(t.type=="error"){s+=`\n\t\t\t\t\t<div class="epkb-export-progress__row epkb-export-progress__row--error">\n\t\t\t\t\t\t<div class="epkb-export__title">${t.message}</div>\n\t\t\t\t\t\t<div class="epkb-export__icon"><i class="epkbfa epkbfa-exclamation-circle"></i></div>\n\t\t\t\t\t</div>`}if(t.type=="success"){s+=`\n\t\t\t\t\t<div class="epkb-export-progress__row epkb-export-progress__row--success">\n\t\t\t\t\t\t<div class="epkb-export__title">${t.message}</div>\n\t\t\t\t\t\t<div class="epkb-export__icon"><i class="epkbfa epkbfa-check-circle"></i></div>\n\t\t\t\t\t</div>`}e.find(".epkb-progress__log").html(s)}function o(t){e(".eckb-bottom-notice-message").remove();e("body").append(t).removeClass("fadeOutDown");let s=e(".eckb-bottom-notice-message");setTimeout((function(){s.addClass("fadeOutDown")}),1e4)}function r(t){let s="";if(typeof t.title!="undefined"&&t.title){s="<h4>"+s+"</h4>"}if(typeof t.message=="undefined"){t.message=""}if(typeof t.type=="undefined"){t.type="success"}let o=`\n\t\t<div class="eckb-bottom-notice-message">\n\t\t\t<div class="contents">\n\t\t\t\t<span class="${t.type}">\n\t\t\t\t\t${s}\n\t\t\t\t\t<p>${t.message}</p>\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t<div class='epkb-close-notice epkbfa epkbfa-window-close'></div>\n\t\t</div>`;e(".eckb-bottom-notice-message").remove();e("body").append(o).removeClass("fadeOutDown");let r=e(".eckb-bottom-notice-message");setTimeout((function(){r.addClass("fadeOutDown")}),1e4)}e.fn.epkb=function(i,p){switch(i){case"tools/hide_panels":e(document).trigger("epkb_hide_export_import_panels");break;case"progress/set":t(e(this),p);break;case"progress/show":break;case"progress/hide":break;case"progress/add_log":s(e(this),p);break;case"progress/clear_log":e(this).find(".epkb-progress__log").html("");break;case"progress/add_status":e(this).find(".epkb-data-status-log").html(p);break;case"ajax/error_message":o(p);break;case"notice/show":r(p);break}return this}})(jQuery);