403Webshell
Server IP : 192.241.186.36  /  Your IP : 216.73.216.164
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64
User : root ( 0)
PHP Version : 7.4.32
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/elegant-ads-bak/old-file/wp-content/themes/xstore/js/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/elegant-ads-bak/old-file/wp-content/themes/xstore/js/modules/ethemeSearch.min.js
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(h){"use strict";var n={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},s=27,i=9,o=13,a=38,l=39,r=40,e=h.noop;function u(e,t){var n=this;n.element=e,n.el=h(e),n.suggestions=[],n.badQueries=[],n.selectedIndex=-1,n.currentValue=n.element.value,n.timeoutId=null,n.cachedResponse={},n.onChangeTimeout=null,n.onChange=null,n.isLocal=!1,n.suggestionsContainer=null,n.noSuggestionsContainer=null,n.options=h.extend(!0,{},u.defaults,t),n.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},n.hint=null,n.hintValue="",n.selection=null,n.initialize(),n.setOptions(t)}u.utils=n,(h.Autocomplete=u).defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,onHint:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(e,t){return t?(t="("+n.escapeRegExChars(t)+")",e.value.replace(new RegExp(t,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")):e.value},formatGroup:function(e,t){return'<div class="autocomplete-group">'+t+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:e,onSearchComplete:e,onSearchError:e,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,closeOnOutside:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?h.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},u.prototype={initialize:function(){var e,t=this,n="."+t.classes.suggestion,s=t.classes.selected,i=t.options;t.element.setAttribute("autocomplete","off"),t.noSuggestionsContainer=h('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=u.utils.createNode(i.containerClass),(e=h(t.suggestionsContainer)).appendTo(i.appendTo||"body"),"auto"!==i.width&&e.css("width",i.width),e.on("mouseover.autocomplete",n,function(){t.activate(h(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.children("."+s).removeClass(s)}),e.on("click.autocomplete",n,function(){t.select(h(this).data("index"))}),e.on("click.autocomplete",function(){clearTimeout(t.blurTimeoutId)}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},h(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){var e=this;e.disabled||(e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange())},onBlur:function(){var e=this,t=e.options,n=e.el.val(),s=e.getQuery(n);e.blurTimeoutId=setTimeout(function(){t.closeOnOutside&&e.hide(),e.selection&&e.currentValue!==s&&(t.onInvalidateSelection||h.noop).call(e.element)},200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(e){var t=this,e=h.extend({},t.options,e);t.isLocal=Array.isArray(e.lookup),t.isLocal&&(e.lookup=t.verifySuggestionsFormat(e.lookup)),e.orientation=t.validateOrientation(e.orientation,"bottom"),h(t.suggestionsContainer).css({"max-height":e.maxHeight+"px",width:e.width+"px","z-index":e.zIndex}),this.options=e},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,n,s,i,o,a,l,r=this,u=h(r.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!r.options.forceFixPosition||(o=r.options.orientation,e=u.outerHeight(),t=r.el.outerHeight(),n={top:(l=r.el.offset()).top,left:l.left},"auto"===o&&(a=h(window).height(),s=-(i=h(window).scrollTop())+l.top-e,i=i+a-(l.top+t+e),o=Math.max(s,i)===s?"top":"bottom"),n.top+="top"===o?-e:t,c!==document.body&&(a=u.css("opacity"),r.visible||u.css("opacity",0).show(),l=u.offsetParent().offset(),n.top-=l.top,n.top+=c.scrollTop,n.left-=l.left,r.visible||u.css("opacity",a).hide()),"auto"===r.options.width&&(n.width=r.el.outerWidth()+"px"),u.css(n))},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==r||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case s:t.el.val(t.currentValue),t.hide();break;case l:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case i:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case o:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case r:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case r:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),0<t.options.deferRequestBy?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var e,t,n,s;this.ignoreValueChange?this.ignoreValueChange=!1:(t=(e=this).options,n=e.el.val(),s=e.getQuery(n),e.selection&&e.currentValue!==s&&(e.selection=null,(t.onInvalidateSelection||h.noop).call(e.element)),clearTimeout(e.onChangeTimeout),e.currentValue=n,e.selectedIndex=-1,t.triggerSelectOnValidInput&&e.isExactMatch(s)?e.select(0):s.length<t.minChars?e.hide():e.getSuggestions(s))},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t=this.options.delimiter;return t?(t=e.split(t))[t.length-1].trim():e},getSuggestionsLocal:function(t){var e=this.options,n=t.toLowerCase(),s=e.lookupFilter,i=parseInt(e.lookupLimit,10),e={suggestions:h.grep(e.lookup,function(e){return s(e,t,n)})};return i&&e.suggestions.length>i&&(e.suggestions=e.suggestions.slice(0,i)),e},getSuggestions:function(s){var e,t,n,i=this,o=i.options,a=o.serviceUrl;o.params[o.paramName]=s,!1!==o.onSearchStart.call(i.element,o.params)&&(e=o.ignoreParams?null:o.params,h.isFunction(o.lookup)?o.lookup(s,function(e){i.suggestions=e.suggestions,i.suggest(),o.onSearchComplete.call(i.element,s,e.suggestions)}):(n=i.isLocal?i.getSuggestionsLocal(s):(h.isFunction(a)&&(a=a.call(i.element,s)),t=a+"?"+h.param(e||{}),i.cachedResponse[t]))&&Array.isArray(n.suggestions)?(i.suggestions=n.suggestions,i.suggest(),o.onSearchComplete.call(i.element,s,n.suggestions)):i.isBadQuery(s)?o.onSearchComplete.call(i.element,s,[]):(i.abortAjax(),n={url:a,data:e,type:o.type,dataType:o.dataType},h.extend(n,o.ajaxSettings),i.currentRequest=h.ajax(n).done(function(e){i.currentRequest=null,e=o.transformResult(e,s),i.processResponse(e,s,t),o.onSearchComplete.call(i.element,s,e.suggestions)}).fail(function(e,t,n){o.onSearchError.call(i.element,s,e,t,n)})))},isBadQuery:function(e){if(this.options.preventBadQueries)for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var e=this,t=h(e.suggestionsContainer);h.isFunction(e.options.onHide)&&e.visible&&e.options.onHide.call(e.element,t),e.visible=!1,e.selectedIndex=-1,clearTimeout(e.onChangeTimeout),h(e.suggestionsContainer).hide(),e.onHint(null)},suggest:function(){var e,i,o,a,l,r,t,n,s,u,c,g;this.suggestions.length?(i=(e=this).options,o=i.groupBy,a=i.formatResult,l=e.getQuery(e.currentValue),r=e.classes.suggestion,t=e.classes.selected,n=h(e.suggestionsContainer),s=h(e.noSuggestionsContainer),u=i.beforeRender,c="",i.triggerSelectOnValidInput&&e.isExactMatch(l)?e.select(0):(h.each(e.suggestions,function(e,t){var n,s;o&&(c+=(s=(n=t).data[o],g===s?"":(g=s,i.formatGroup(n,g)))),c+='<div class="'+r+'" data-index="'+e+'">'+a(t,l,e)+"</div>"}),this.adjustContainerWidth(),s.detach(),n.html(c),h.isFunction(u)&&u.call(e.element,n,e.suggestions),e.fixPosition(),n.show(),i.autoSelectFirst&&(e.selectedIndex=0,n.scrollTop(0),n.children("."+r).first().addClass(t)),e.visible=!0,e.findBestHint())):this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this,t=e.options.beforeRender,n=h(e.suggestionsContainer),s=h(e.noSuggestionsContainer);this.adjustContainerWidth(),s.detach(),n.empty(),n.append(s),h.isFunction(t)&&t.call(e.element,n,e.suggestions),e.fixPosition(),n.show(),e.visible=!0},adjustContainerWidth:function(){var e,t=this.options,n=h(this.suggestionsContainer);"auto"===t.width?(e=this.el.outerWidth(),n.css("width",0<e?e:300)):"flex"===t.width&&n.css("width","")},findBestHint:function(){var s=this.el.val().toLowerCase(),i=null;s&&(h.each(this.suggestions,function(e,t){var n=0===t.value.toLowerCase().indexOf(s);return n&&(i=t),!n}),this.onHint(i))},onHint:function(e){var t=this,n=t.options.onHint,s="";e&&(s=t.currentValue+e.value.substr(t.currentValue.length)),t.hintValue!==s&&(t.hintValue=s,t.hint=e,h.isFunction(n))&&n.call(t.element,s)},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?h.map(e,function(e){return{value:e,data:null}}):e},validateOrientation:function(e,t){return e=(e||"").trim().toLowerCase(),e=-1===h.inArray(e,["auto","bottom","top"])?t:e},processResponse:function(e,t,n){var s=this,i=s.options;e.suggestions=s.verifySuggestionsFormat(e.suggestions),i.noCache||(s.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&s.badQueries.push(t)),t===s.getQuery(s.currentValue)&&(s.suggestions=e.suggestions,s.suggest())},activate:function(e){var t=this,n=t.classes.selected,s=h(t.suggestionsContainer),i=s.find("."+t.classes.suggestion);return s.find("."+n).removeClass(n),t.selectedIndex=e,-1!==t.selectedIndex&&i.length>t.selectedIndex?(s=i.get(t.selectedIndex),h(s).addClass(n),s):null},selectHint:function(){var e=h.inArray(this.hint,this.suggestions);this.select(e)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var e=this;-1!==e.selectedIndex&&(0===e.selectedIndex?(h(e.suggestionsContainer).children("."+e.classes.suggestion).first().removeClass(e.classes.selected),e.selectedIndex=-1,e.ignoreValueChange=!1,e.el.val(e.currentValue),e.findBestHint()):e.adjustScroll(e.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,n,s,i=this,o=i.activate(e);o&&(t=h(o).outerHeight(),o=o.offsetTop,s=(n=h(i.suggestionsContainer).scrollTop())+i.options.maxHeight-t,o<n?h(i.suggestionsContainer).scrollTop(o):s<o&&h(i.suggestionsContainer).scrollTop(o-i.options.maxHeight+t),i.options.preserveInput||(i.ignoreValueChange=!0,i.el.val(i.getValue(i.suggestions[e].value))),i.onHint(null))},onSelect:function(e){var t=this,n=t.options.onSelect,e=t.suggestions[e];t.currentValue=t.getValue(e.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.onHint(null),t.selection=e,h.isFunction(n)&&n.call(t.element,e)},getValue:function(e){var t,n=this.options.delimiter;return!n||1===(n=(t=this.currentValue).split(n)).length?e:t.substr(0,t.length-n[n.length-1].length)+e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),h(window).off("resize.autocomplete",this.fixPositionCapture),h(this.suggestionsContainer).remove()}},h.fn.devbridgeAutocomplete=function(n,s){var i="autocomplete";return arguments.length?this.each(function(){var e=h(this),t=e.data(i);"string"==typeof n?t&&"function"==typeof t[n]&&t[n](s):(t&&t.dispose&&t.dispose(),t=new u(this,n),e.data(i,t))}):this.first().data(i)},h.fn.autocomplete||(h.fn.autocomplete=h.fn.devbridgeAutocomplete)}),function(r){"use strict";r(window).on("elementor/frontend/init",function(){var t=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},getDefaultSettings:function(){return{selectors:{form:".etheme-search-form",results:".etheme-search-ajax-results",input:".etheme-search-form-input",button:".etheme-search-form-submit",clear:".etheme-search-form-clear",select:".etheme-search-form-select",suggestionsContainer:".autocomplete-suggestions",suggestion:".autocomplete-suggestion",langInput:"input[name=lang]"},classes:{tabsWrapper:"etheme-search-form-tabs",tab:"etheme-search-form-tab",tabContent:"etheme-search-form-tab-content",itemsTitle:"etheme-search-form-title",itemsViewMore:"etheme-search-form-more",itemLink:"etheme-search-form-item-link",itemInfo:"etheme-search-form-item-info",itemTitle:"etheme-search-form-item-title",itemDate:"etheme-search-form-item-date",itemSku:"sku_wrapper",itemPrice:"price etheme-search-form-item-price",itemImg:"attachment-post-thumbnail size-post-thumbnail wp-post-image"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$form:this.$element.find(e.form),$results:this.$element.find(e.results),$input:this.$element.find(e.input),$button:this.$element.find(e.button),$clear:this.$element.find(e.clear),$select:this.$element.find(e.select),$suggestionsContainer:this.$element.find(e.suggestionsContainer),$suggestion:this.$element.find(e.suggestion),$langInput:this.$element.find(e.langInput)}},onElementChange:function(e){},run:function(){var i,e,n,o,s,a,l=this.getElementSettings();l.ajax_search&&(e=(i=this).elements.$results,n=etConfig.ajaxurl+"?action=etheme_ajax_search",this.elements.$input.val(),o=this.getSettings("classes"),s=this.getSettings("selectors"),n=(n+="&shortcode=yes")+"&custom_post_types="+l.post_types.join(","),l.post_limit.size&&(n+="&custom_post_limits="+l.post_limit.size),n+="&show_count=true",l.posts_per_page.size&&(n+="&posts_per_page="+l.posts_per_page.size),this.elements.$select.length&&(this.elements.$select.on("change",function(){var e=this.options[this.selectedIndex].text;r(this).find("option:selected").html(r(this).find("option:selected").html().replace(/&nbsp;/g,"")),r(this).css("max-width","calc("+(10+8*e.trim().length)+"px + 45px)")}),""!==this.elements.$select.val())&&(n+="&product_cat="+this.elements.$select.val()),this.elements.$langInput&&this.elements.$langInput.val()&&(n+="&lang="+this.elements.$langInput.val()),this.elements.$input.devbridgeAutocomplete({minChars:l.min_chars.size||3,appendTo:e,triggerSelectOnValidInput:!1,serviceUrl:n,width:"flex",maxHeight:l.results_max_height.size||300,showNoSuggestionNotice:!0,noSuggestionNotice:etheme_search_config.noResults,closeOnOutside:!elementorFrontend.isEditMode(),onSearchStart:function(){i.elements.$form.addClass("searching loading")},onHide:function(){i.elements.$form.removeClass("searching loading")},onSearchComplete:function(e,t){i.elements.$input.val();var n=0;if(i.elements.$form.removeClass("loading"),i.elements.$form.find(".ajax-results-title, .ajax-results-more").remove(),t.length&&r.each(l.post_types,function(){var e,t=i.$element.find(s.suggestion).find('[data-type="'+this+'"]').first();t.length&&(e=parseInt(t.attr("data-count-all")),n+=e,"headings"==l.ajax_search_results_heading_type)&&t.parent().before('<h3 class="'+o.itemsTitle+'" data-title-type="'+this+'">'+(etheme_search_config[this]??this)+"<span>"+etheme_search_config[1<e?"items_found":"item_found"].replace("{{count}}",e)+"</span></h3>")}),"tabs"==l.ajax_search_results_heading_type){let e=[];r.each(t,function(){e.push(i.validatePostType(this.type))}),1<(e=e.filter(function(e,t,n){return n.indexOf(e)===t})).length&&(i.$element.find(s.suggestionsContainer).prepend('<div class="'+o.tabsWrapper+'"></div>'),r.each(e,function(){var e=etheme_search_config[this]??this;i.elements.$form.find("."+o.tabsWrapper).append('<span class="'+o.tab+'" data-tab="'+this+'">'+e+"</span>")}),r.each(i.$element.find(s.suggestion),function(){r(this).addClass(o.tabContent).attr("data-tab-name",r(this).find("."+o.itemLink).attr("data-type"))}),i.initTabs(),i.$element.find("."+o.tab).first().trigger("click"))}t.length<n&&i.$element.find(s.suggestionsContainer).append('<div class="'+o.itemsViewMore+'"><button type="submit">'+etheme_search_config.show_all+"</button></div>")},beforeRender:function(e){},formatResult:function(e,t){let n="",s="("+r.Autocomplete.utils.escapeRegExChars(t)+")";return n+='<a href="'+e.url+'" title="'+e.value+'" class="'+o.itemLink+'" data-type="'+i.validatePostType(e.type)+'" data-count-all="'+e.all_count+'">',e.img&&(n+='<img width="270" height="160" src="'+e.img+'" class="'+o.itemImg+'" alt="'+e.value+'">'),n=(n+='<div class="'+o.itemInfo+'">')+('<p class="'+o.itemTitle+'">'+e.value.replace(new RegExp(s,"gi"),"<strong>$1</strong>")+"</p>"),l.product_stock&&e.stock&&(n+=e.stock),l.product_sku&&e.sku&&(n+='<span class="'+o.itemSku+'">'+e.sku+"</span>"),n+="</div>",l.product_price&&e.price&&(n+='<div class="'+o.itemPrice+'">'+e.price+"</div>"),l.global_post_type_date&&e.date&&(n+='<div class="'+o.itemDate+'">'+e.date+"</div>"),e.arrow,n+="</a>"}}),a=i.elements.$input.devbridgeAutocomplete(),i.elements.$select.length&&i.elements.$select.on("change",function(e){var t=i.elements.$select.val();a.setOptions({serviceUrl:n+(t?"&product_cat="+t:"")}),a.hide(),a.onValueChange()}),this.elements.$clear.on("click",function(e){i.elements.$input.attr("value","").val(""),a.hide(),a.onValueChange(),i.elements.$form.removeClass("searching loading")}))},initTabs:function(){var e=this.getSettings("classes");this.$element.find("."+e.tab).on("click",function(){r(this).parent().find("."+e.tab).removeClass("active").end().parent().find("[data-tab-name]").removeClass("active").end().find('[data-tab-name="'+r(this).attr("data-tab")+'"]').addClass("active"),r(this).addClass("active")})},validatePostType:function(e){return e.toLowerCase().replace("pages","page").replace("portfolio","etheme_portfolio")}});elementorFrontend.hooks.addAction("frontend/element_ready/etheme_ajax_search.default",function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})})})}(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit