o&&t(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+a),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[e].value))),this.onHint(null)}},onSelect:function(e){var s=this.options.onSelect,i=this.suggestions[e];this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.onHint(null),this.suggestions=[],this.selection=i,t.isFunction(s)&&s.call(this.element,i)},getValue:function(t){var e,s,i=this.options.delimiter;return i?1===(s=(e=this.currentValue).split(i)).length?t:e.substr(0,e.length-s[s.length-1].length)+t:t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),t(window).off("resize.autocomplete",this.fixPositionCapture),t(this.suggestionsContainer).remove()}},t.fn.devbridgeAutocomplete=function(e,s){return arguments.length?this.each(function(){var i=t(this),n=i.data("autocomplete");"string"==typeof e?n&&"function"==typeof n[e]&&n[e](s):(n&&n.dispose&&n.dispose(),n=new r(this,e),i.data("autocomplete",n))}):this.first().data("autocomplete")},t.fn.autocomplete||(t.fn.autocomplete=t.fn.devbridgeAutocomplete)});jQuery(document).ready(function($){"use strict";$('.searchform').each(function(){var append=$(this).find('.live-search-results');var search_categories=$(this).find('.search_categories');var serviceUrl=flatsomeVars.ajaxurl+'?action=flatsome_ajax_search_products';var product_cat='';if(search_categories.length&&search_categories.val()!==''){serviceUrl+='&product_cat='+search_categories.val()}
$(this).find('.search-field').devbridgeAutocomplete({minChars:3,appendTo:append,triggerSelectOnValidInput:!1,serviceUrl:serviceUrl,deferRequestBy:parseInt(flatsomeVars.options.search_result_latency),onSearchStart:function(){$('.submit-button').removeClass('loading');$('.submit-button').addClass('loading')},onSelect:function(suggestion){if(suggestion.id!=-1){window.location.href=suggestion.url}},onSearchComplete:function(){$('.submit-button').removeClass('loading')},beforeRender:function(container){$(container).removeAttr('style')},formatResult:function(suggestion,currentValue){var pattern='('+$.Autocomplete.utils.escapeRegExChars(currentValue)+')';var html='';if(suggestion.img)html+='
';html+=''+suggestion.value.replace(new RegExp(pattern,'gi'),'$1<\/strong>')+'
';if(suggestion.price)html+=''+suggestion.price+'';return html}});if(search_categories.length){var searchForm=$(this).find('.search-field').devbridgeAutocomplete();search_categories.on('change',function(e){if(search_categories.val()!=''){searchForm.setOptions({serviceUrl:flatsomeVars.ajaxurl+'?action=flatsome_ajax_search_products&product_cat='+search_categories.val()})}else{searchForm.setOptions({serviceUrl:flatsomeVars.ajaxurl+'?action=flatsome_ajax_search_products'})}
searchForm.hide();searchForm.onValueChange()})}})}) wp-content/themes/flatsome/inc/extensions/flatsome-live-search/flatsome-live-search.js.gz 0000755 00000011052 14763706505 0025731 0 ustar 00 � �[ms�8��>��f�$�D1�d��
�J2�nvg�\������h���
:���� )�3[�1�F�_�n����\J��P����DȊ-e0� M����INW�����g�|�Ë��o5�n��H�$�W_)�hқ����V���Ut!C�ZZ�$2����L��AF��ꄦwT,��Hׯo^m�J$ʺ*Od\�]�-i����˗�}H.�\���,�˧�(����( �hY�L�w<�=UΗ���2ֽ^�Aή27S�xYdB�˶4����-h��!�4Ȯ/jI��]��v�%/�y��D��F,�!*ӳgO��W���~���/��He\r��[O��F���
1�\�42?SR��z������R�]e9J�ѶI �����2�7��L�.����5�̙*��&�I�-�|��e]f`����#;�6l��y �U��g=�`�8ML�ėY����V�2]���%�t��i)Ș�HZ���,ƪ�:�)@��{�MΝ�Jd��K��Tҩm���n��E`־a��`������82(A����NC��T�� �Wq-Y!p����i�+�˾f7����\��~Rӽa�� �8��@&�y\��VF�k��?WE��)8����g^�����`-����F�"�����ym���Q�����lc�� $��6�E��ʶ�������sDUg��T�ƺ�*��� &4�z�$ ��Ҹ��~;Q�w!��5H<G�������O�c@ZG2B�1ʶ����\��k+�$�m�d�G/���R�/��Xnf�!+�0�e��Qk�V�\���i�N�N!n���'�
��"X%H��
P�.z�$Б��J�{���f�g�ډ�!A����;�P������q ��")���;�� rX%H[{�+.%��DK���|0Q ���U\r�"�k}M˲ ����@x
�`�8H�%C�r���(ָ�y;���� �+��� A��
�;��am/��vϵI���"tC@ܗ ��T�3�y0�G�`!䱯�$
!H����������^{[�<�e���X���@�a�~���f�%�r@E��V�/>9['����P����)������j١���!`pÊ�1D�(ѡm�'%��l�/���8���Clr�,�AZ�6\���6G""^���*ہ)��c� �g4�`�2���oD1�f��d�