Sindbad~EG File Manager
!function i(o,a,r){function s(t,e){if(!a[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=a[t]={exports:{}},o[t][0].call(n.exports,function(e){return s(o[t][1][e]||e)},n,n.exports,i,o,a,r)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;e<r.length;e++)s(r[e]);return s}({1:[function(e,t,n){(function(i){(function(){"use strict";var e,o=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e},a="undefined"!=typeof window?window._:void 0!==i?i._:null,r="undefined"!=typeof window?window.peepso:void 0!==i?i.peepso:null,t="undefined"!=typeof window?window.peepsodata:void 0!==i?i.peepsodata:null;function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var c=t.rest_url,u=t.site_url,l=+t.search.show_images,d=+t.search.show_empty_sections,h=t.search.text_no_results,p=0,n=function(){function n(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.uniqueId=++p,this.$container=(0,o.default)(e),this.$query=this.$container.find("input.ps-js-query"),this.$loading=this.$container.find(".ps-js-loading").hide(),this.$results=this.$container.find(".ps-js-result").hide(),this.$query.on("input",function(e){t.$query.val().trim()?(t.$results.hide(),t.$loading.show(),t.searchWithDelay()):(t.$results.hide(),t.$loading.hide())}),this.$query.val().trim()&&this.$query.triggerHandler("input")}var e,t,i;return e=n,(t=[{key:"search",value:function(){var t=this,e=this.$query.val().trim(),n="".concat(c,"search"),i="".concat(n,"_shortcode_").concat(this.uniqueId),o={query:e};if(!e)return this.$loading.hide(),void this.$results.hide();r.modules.request.get(i,n,o).then(function(e){t.render(e),t.$loading.hide(),t.$results.show()}).catch(function(){t.$loading.hide()})}},{key:"searchWithDelay",value:function(){this.searchWithDelay=(0,a.debounce)(this.search,1e3),this.searchWithDelay()}},{key:"render",value:function(e){var t=e.results,n=e.meta.sections,s=!!d,c="";if(t)for(var i in t)!function(r){var e=n[r];c+='<div data-type="'.concat(r,'">'),c+='<div><h3><a href="'.concat(e.url,'">').concat(e.title,"</a></h3></div>"),t.hasOwnProperty(r)&&t[r].length?(c+='<ul style="padding: 0px 0px 30px 10px; margin: 0px 0px 20px 0px; clear: both;">',t[r].forEach(function(e){var t,n;if(s=!0,c+='<li data-type="'.concat(r,'" data-id="').concat(e.id,'" style="list-style: none; margin-bottom: 15px; clear: both;">'),l&&(n=1,(t=e.image)||(t="".concat(u,"/wp-content/plugins/peepso-core/assets/images/embeds/no_preview_available.png"),n=.1),c+="<div style=\"background: url('".concat(t,"'); width: ").concat(100,"px; height: ").concat(100,"px; opacity: ").concat(n,";")+' float: left; margin: 0px 10px 10px 0px; background-size: cover; background-position: center center;"></div>'),c+='<a href="'.concat(e.url,'"><strong>').concat(e.title,"</strong></a>"),e.meta){var i,o,a="";for(i in e.meta)e.meta.hasOwnProperty(i)&&(o=e.meta[i],a+='<span style="margin-right: 5px"><i class="'.concat(o.icon,'"></i> ').concat(o.title,"</span>"));a&&(c+='<small style="font-size:12px;opacity:0.5"><br/>'.concat(a,"</small>"))}e.text&&(c+='<br/><span style="font-size: 14px">'.concat(e.text,"</span>")),c+="</li>"}),c+="</ul>"):c+="<p>".concat(h,"<br/><br/></p>"),c+="</div>"}(i);s||(c="<p>".concat(h,"<br/><br/></p>")),this.$results.html(c)}}])&&s(e.prototype,t),i&&s(e,i),n}();(0,o.default)(function(){(0,o.default)(".ps-js-page-search").each(function(){new n(this)})})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists