PHP 8.1.33
Preview: autocomplete.min.js Size: 8.34 KB
/home/jambtst2015/public_html/qasandra.com/wp-includes/js/jquery/ui/autocomplete.min.js

/*!
 * jQuery UI Autocomplete 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});

Directory Contents

Dirs: 0 × Files: 74

Name Size Perms Modified Actions
15.76 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
8.65 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
17.12 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
8.34 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
11.43 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
6.01 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
7.41 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
4.25 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
8.42 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
4.30 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
48.72 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
20.96 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
80.59 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
35.89 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
23.34 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
12.79 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
34.71 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
17.99 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
12.60 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
6.51 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.61 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
880 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.60 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
991 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.54 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
796 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.56 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
753 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.86 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.10 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
968 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
525 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.13 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1020 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.21 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
648 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
995 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
510 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.53 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
688 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.34 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
723 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.84 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
846 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
5.29 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.43 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.92 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
917 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
888 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
442 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
24.04 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
10.09 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
18.52 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
9.96 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
6.08 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
3.35 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
4.14 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.50 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
29.78 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
18.38 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
7.94 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
4.40 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
15.96 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
9.28 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
19.14 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
10.51 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
46.52 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
24.91 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
14.10 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
7.50 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
23.11 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
11.73 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
14.14 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
6.10 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).