Version Description
Download this release
Release Info
Developer | damian-gora |
Plugin | Ajax Search for WooCommerce |
Version | 1.13.0 |
Comparing to | |
See all releases |
Code changes from version 1.12.0 to 1.13.0
- ajax-search-for-woocommerce.php +4 -5
- assets/css/admin-style.css +2 -1
- assets/js/search.js +22 -13
- assets/js/search.min.js +1 -1
- composer/composer.json +0 -12
- composer/composer.lock +0 -20
- includes/Helpers.php +7 -1
- includes/Integrations/Brands.php +14 -3
- includes/Integrations/Themes/Avada/Avada.php +39 -10
- includes/Integrations/Themes/Estore/Estore.php +20 -0
- includes/Integrations/Themes/EstorePro/EstorePro.php +33 -0
- includes/Integrations/Themes/ThemesCompatibility.php +11 -2
- includes/Settings.php +11 -0
- languages/ajax-search-for-woocommerce.pot +206 -175
- partials/themes/electro.php +27 -9
- partials/themes/estore.php +44 -0
- partials/themes/rehub-theme.php +17 -1
- readme.txt +14 -2
- vendor/composer/InstalledVersions.php +6 -6
- vendor/composer/autoload_classmap.php +1 -1
- vendor/composer/autoload_namespaces.php +1 -1
- vendor/composer/autoload_psr4.php +2 -2
- vendor/composer/autoload_static.php +1 -1
- vendor/composer/installed.json +1 -1
- vendor/composer/installed.php +6 -6
ajax-search-for-woocommerce.php
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
* Plugin Name: FiboSearch - AJAX Search for WooCommerce
|
5 |
* Plugin URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
|
6 |
* Description: The most popular WooCommerce product search. Gives your users a well-designed advanced AJAX search bar with live search suggestions.
|
7 |
-
* Version: 1.
|
8 |
* Author: FiboSearch Team
|
9 |
* Author URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
|
10 |
* Text Domain: ajax-search-for-woocommerce
|
11 |
* Domain Path: /languages
|
12 |
* WC requires at least: 3.3
|
13 |
-
* WC tested up to: 5.
|
14 |
*
|
15 |
*/
|
16 |
// Exit if accessed directly
|
@@ -229,9 +229,8 @@ if ( !class_exists( 'DGWT_WC_Ajax_Search' ) && !function_exists( 'dgoraAsfwFs' )
|
|
229 |
*/
|
230 |
public function autoload()
|
231 |
{
|
232 |
-
|
233 |
-
|
234 |
-
require_once DGWT_WCAS_DIR . 'vendor' . $suffix . '/autoload.php';
|
235 |
}
|
236 |
require_once DGWT_WCAS_DIR . 'widget.php';
|
237 |
}
|
4 |
* Plugin Name: FiboSearch - AJAX Search for WooCommerce
|
5 |
* Plugin URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
|
6 |
* Description: The most popular WooCommerce product search. Gives your users a well-designed advanced AJAX search bar with live search suggestions.
|
7 |
+
* Version: 1.13.0
|
8 |
* Author: FiboSearch Team
|
9 |
* Author URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
|
10 |
* Text Domain: ajax-search-for-woocommerce
|
11 |
* Domain Path: /languages
|
12 |
* WC requires at least: 3.3
|
13 |
+
* WC tested up to: 5.5
|
14 |
*
|
15 |
*/
|
16 |
// Exit if accessed directly
|
229 |
*/
|
230 |
public function autoload()
|
231 |
{
|
232 |
+
if ( file_exists( DGWT_WCAS_DIR . 'vendor/autoload.php' ) ) {
|
233 |
+
require_once DGWT_WCAS_DIR . 'vendor/autoload.php';
|
|
|
234 |
}
|
235 |
require_once DGWT_WCAS_DIR . 'widget.php';
|
236 |
}
|
assets/css/admin-style.css
CHANGED
@@ -39,7 +39,8 @@
|
|
39 |
.woocommerce_page_dgwt_wcas_settings .update-nag,
|
40 |
.woocommerce_page_dgwt_wcas_settings .dup-updated,
|
41 |
.woocommerce_page_dgwt_wcas_settings .sbi_notice,
|
42 |
-
.dgwt-wcas-settings > .updated:not(.fs-slug-ajax-search-for-woocommerce)
|
|
|
43 |
display: none!important;
|
44 |
}
|
45 |
|
39 |
.woocommerce_page_dgwt_wcas_settings .update-nag,
|
40 |
.woocommerce_page_dgwt_wcas_settings .dup-updated,
|
41 |
.woocommerce_page_dgwt_wcas_settings .sbi_notice,
|
42 |
+
.dgwt-wcas-settings > .updated:not(.fs-slug-ajax-search-for-woocommerce),
|
43 |
+
.woocommerce_page_dgwt_wcas_settings .sp-eafree-review-notice {
|
44 |
display: none!important;
|
45 |
}
|
46 |
|
assets/js/search.js
CHANGED
@@ -530,33 +530,41 @@
|
|
530 |
|
531 |
var alreadyClicked = false;
|
532 |
// Redirect to the new URL after click a suggestions
|
533 |
-
|
534 |
-
|
535 |
var that = utils.getActiveInstance();
|
536 |
that.actionTriggerSource = 'click';
|
537 |
|
538 |
alreadyClicked = true;
|
539 |
-
setTimeout(function(){
|
540 |
alreadyClicked = false;
|
541 |
}, 500);
|
542 |
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
$(e.target)[0].click();
|
550 |
}
|
551 |
});
|
552 |
|
553 |
-
//
|
554 |
-
$(document).on('
|
555 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
556 |
});
|
557 |
|
558 |
// Mark cursor position for onBlur event
|
559 |
$('.' + that.options.containerClass).on('mousedown.autocomplete', function (e) {
|
|
|
560 |
that.isMouseDownOnSearchElements = true;
|
561 |
});
|
562 |
|
@@ -577,6 +585,7 @@
|
|
577 |
|
578 |
// Mark cursor position for onBlur event
|
579 |
$('.' + that.options.containerDetailsClass).on('mousedown.autocomplete', function (e) {
|
|
|
580 |
that.isMouseDownOnSearchElements = true;
|
581 |
});
|
582 |
|
530 |
|
531 |
var alreadyClicked = false;
|
532 |
// Redirect to the new URL after click a suggestions
|
533 |
+
$(document).on('click.autocomplete', suggestionSelector, function (e) {
|
534 |
+
if (!alreadyClicked) {
|
535 |
var that = utils.getActiveInstance();
|
536 |
that.actionTriggerSource = 'click';
|
537 |
|
538 |
alreadyClicked = true;
|
539 |
+
setTimeout(function () {
|
540 |
alreadyClicked = false;
|
541 |
}, 500);
|
542 |
|
543 |
+
if (typeof e.ctrlKey === 'undefined' || e.ctrlKey === false) {
|
544 |
+
that.select($(this).data('index'));
|
545 |
+
e.preventDefault();
|
546 |
+
}
|
547 |
+
} else {
|
548 |
+
e.preventDefault();
|
|
|
549 |
}
|
550 |
});
|
551 |
|
552 |
+
// FIX issue with touchpads for some laptops (marginal cases)
|
553 |
+
$(document).on('mousedown.autocomplete', suggestionSelector, function (e) {
|
554 |
+
var _this = this;
|
555 |
+
if (e.button === 0) {
|
556 |
+
setTimeout(function () {
|
557 |
+
if (!alreadyClicked) {
|
558 |
+
var that = utils.getActiveInstance();
|
559 |
+
that.select($(_this).data('index'));
|
560 |
+
}
|
561 |
+
}, 250);
|
562 |
+
}
|
563 |
});
|
564 |
|
565 |
// Mark cursor position for onBlur event
|
566 |
$('.' + that.options.containerClass).on('mousedown.autocomplete', function (e) {
|
567 |
+
var that = utils.getActiveInstance();
|
568 |
that.isMouseDownOnSearchElements = true;
|
569 |
});
|
570 |
|
585 |
|
586 |
// Mark cursor position for onBlur event
|
587 |
$('.' + that.options.containerDetailsClass).on('mousedown.autocomplete', function (e) {
|
588 |
+
var that = utils.getActiveInstance();
|
589 |
that.isMouseDownOnSearchElements = true;
|
590 |
});
|
591 |
|
assets/js/search.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(e){"use strict";var t={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.setAttribute("unselectable","on"),t},highlight:function(e,s){if(dgwt_wcas.is_premium){var i,o=s.split(/ /),a=!1,n="";if(o)for(n=o[o.length-1],o=o.sort(function(e,t){return t.length-e.length}),i=0;i<o.length;i++)if(o[i]&&o[i].length>=1){var r=o[i].replace(/[\^\@]/g,"");if(r.length>0){if(1===r.trim().length&&o[i]!==n)var l="((\\s|^)"+t.escapeRegExChars(r.trim())+"\\s)";else l=1===r.trim().length&&o[i]===n?"((\\s|^)"+t.escapeRegExChars(r.trim())+")":"("+t.escapeRegExChars(r.trim())+")";e=e.replace(new RegExp(l,"gi"),"^^$1@@"),a=!0}}a&&(e=(e=e.replace(/\^\^/g,"<strong>")).replace(/@@/g,"</strong>"))}else l="("+t.escapeRegExChars(s)+")",e=e.replace(new RegExp(l,"gi"),"<strong>$1</strong>");return e},debounce:function(e,t){var i,o=(new Date).getUTCMilliseconds();if(0===s.id.length)return s.id=o,void e();s.id=o,i=setTimeout(function(){o===s.id?(e(),s.id=""):clearTimeout(i)},t)},mouseHoverDebounce:function(t,s,i){var o;o=setTimeout(function(){e(s+":hover").length>0?t():clearTimeout(o)},i)},getActiveInstance:function(){var t,s=e(".dgwt-wcas-search-wrapp.dgwt-wcas-active");return s.length>0&&s.each(function(){var s=e(this).find(".dgwt-wcas-search-input");if("object"==typeof s.data("autocomplete"))return t=s.data("autocomplete"),!1}),t},hashCode:function(e){for(var t=0,s=e.length;s>0;)t=(t<<5)-t+e.charCodeAt(--s)|0;return t<0?-1*t:t}},s={id:"",callback:null,ajaxSettings:null,object:null},i=27,o=9,a=13,n=38,r=39,l=40,c=e.noop;function d(t,s){this.element=t,this.el=e(t),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.detailsRequestsSent=[],this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.detailsContainer=null,this.autoAligmentprocess=null,this.noSuggestionsContainer=null,this.latestActivateSource="",this.actionTriggerSource="",this.options=e.extend(!0,{},d.defaults,s),this.classes={selected:"dgwt-wcas-suggestion-selected",suggestion:"dgwt-wcas-suggestion",suggestionsContainerOrientTop:"dgwt-wcas-suggestions-wrapp--top"},this.hint=null,this.hintValue="",this.selection=null,this.overlayMobileState="off",this.isMouseDownOnSearchElements=!1,this.initialize(),this.setOptions(s)}d.utils=t,e.DgwtWcasAutocompleteSearch=d,d.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",containerDetailsWidth:"auto",showDetailsPanel:!1,showImage:!1,showPrice:!1,showSKU:!1,showDescription:!1,showSaleBadge:!1,showFeaturedBadge:!1,dynamicPrices:!1,saleBadgeText:"sale",featuredBadgeText:"featured",minChars:3,maxHeight:600,deferRequestBy:0,params:{},formatResult:function(e,s,i,o){if(!s)return e;i&&(e=t.highlight(e,s));if(!o.convertHtml)return e;return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/<sup/g,"<sup").replace(/<\/sup/g,"</sup").replace(/sup>/g,"sup>").replace(/<(\/?(strong|b|br))>/g,"<$1>")},delimiter:null,zIndex:999999999,type:"GET",noCache:!1,isRtl:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,preserveInput:!1,searchFormClass:"dgwt-wcas-search-wrapp",containerClass:"dgwt-wcas-suggestions-wrapp",containerDetailsClass:"dgwt-wcas-details-wrapp",searchInputClass:"dgwt-wcas-search-input",preloaderClass:"dgwt-wcas-preloader",closeTrigger:"dgwt-wcas-close",formClass:"dgwt-wcas-search-form",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,isPremium:!1,overlayMobile:!1,preventBadQueries:!0,lookupFilter:function(e,t,s){return-1!==e.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(t){return"string"==typeof t?e.parseJSON(t):t},noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1,positionFixed:!1,debounceWaitMs:400,sendGAEvents:!0,enableGASiteSearchModule:!1,showProductVendor:!1,disableHits:!1,disableSubmit:!1},d.prototype={initialize:function(){var s=this;s.element.setAttribute("autocomplete","off"),s.createContainers(),s.registerEventsSearchBar(),s.registerEventsSuggestions(),s.registerEventsDetailsPanel(),s.registerIconHandler(),s.registerEventsFixedMenu(),s.fixPositionCapture=function(){s.adjustContainerWidth(),s.visible&&s.fixPosition()},e(window).on("resize.autocomplete",function(){var e=t.getActiveInstance();void 0!==e&&e.fixPositionCapture()}),s.initMobileMode(),s.hideAfterClickOutsideListener(),s.suggestionsContainer.addClass("js-dgwt-wcas-initialized"),s.detailsContainer&&s.detailsContainer.length>0&&s.detailsContainer.addClass("js-dgwt-wcas-initialized")},createContainers:function(t){var s=this.options;0==e("."+s.containerClass).length?(this.suggestionsContainer=e(d.utils.createNode(s.containerClass)),this.suggestionsContainer.appendTo(s.appendTo||"body"),this.suggestionsContainer.addClass("woocommerce"),!0===s.showImage&&this.suggestionsContainer.addClass("dgwt-wcas-has-img"),!0===s.showPrice&&this.suggestionsContainer.addClass("dgwt-wcas-has-price"),!0===s.showDescription&&this.suggestionsContainer.addClass("dgwt-wcas-has-desc"),!0===s.showSKU&&this.suggestionsContainer.addClass("dgwt-wcas-has-sku"),!0===s.showHeadings&&this.suggestionsContainer.addClass("dgwt-wcas-has-headings"),"auto"!==s.width&&this.suggestionsContainer.width(s.width)):this.suggestionsContainer=e("."+this.options.containerClass),this.canShowDetailsBox()&&(0==e("."+s.containerDetailsClass).length?(this.detailsContainer=e(d.utils.createNode(s.containerDetailsClass)),this.detailsContainer.appendTo(s.appendTo||"body"),this.detailsContainer.addClass("woocommerce")):this.detailsContainer=e("."+s.containerDetailsClass))},registerEventsSearchBar:function(){var s=this;e(document).on("click.autocomplete","."+s.options.closeTrigger,function(){t.getActiveInstance().close()}),s.el.closest("."+s.options.formClass).on("submit.autocomplete",function(t){if(s.options.disableSubmit)return t.preventDefault(),!1;var i=e(this).find("."+s.options.searchInputClass);if(i.length&&0===i.val().length)return t.preventDefault(),!1;s.suggestions.length>0&&e.each(s.suggestions,function(e,i){if(void 0!==i.type&&"product_variation"==i.type)return s.select(e),t.preventDefault(),!1})}),"complete"===document.readyState?s.positionPreloader():e(window).on("load",function(){s.positionPreloader()}),s.el.on("keydown.autocomplete",function(e){s.onKeyPress(e)}),s.el.on("keyup.autocomplete",function(e){s.onKeyUp(e)}),s.el.on("blur.autocomplete",function(){s.onBlur()}),s.el.on("focus.autocomplete",function(){s.onFocus()}),s.el.on("change.autocomplete",function(e){s.onKeyUp(e)}),s.el.on("input.autocomplete",function(e){s.onKeyUp(e)})},registerEventsSuggestions:function(){var s=this,i="."+s.classes.suggestion;if(!s.getSuggestionsContainer().hasClass("js-dgwt-wcas-initialized")){e(document).on("mouseenter.autocomplete",i,function(){var s=t.getActiveInstance();if(void 0!==s){var i=e(this).data("index"),o='.dgwt-wcas-suggestion[data-index="'+i+'"]',a=s.canShowDetailsBox()?100:1;s.selectedIndex!=i&&t.mouseHoverDebounce(function(){s.selectedIndex!==i&&(s.latestActivateSource="mouse",s.getDetails(s.suggestions[i]),s.activate(i))},o,a)}});var o=!1;e(document).on("click.autocomplete",i,function(){if(!o){var s=t.getActiveInstance();s.actionTriggerSource="click",o=!0,setTimeout(function(){o=!1},500),s.select(e(this).data("index"))}}),e(document).on("mousedown.autocomplete",i,function(t){"number"==typeof t.which&&1===t.which&&e(t.target)[0].click()}),e(document).on("click.autocomplete",i,function(e){e.preventDefault()}),e("."+s.options.containerClass).on("mousedown.autocomplete",function(e){s.isMouseDownOnSearchElements=!0})}},registerEventsDetailsPanel:function(){var t=this,s=t.getDetailsContainer();t.canShowDetailsBox()&&!s.hasClass("js-dgwt-wcas-initialized")&&(e(document).on("change.autocomplete",'[name="js-dgwt-wcas-quantity"]',function(t){e(this).closest(".js-dgwt-wcas-pd-addtc").find("[data-quantity]").attr("data-quantity",e(this).val())}),e("."+t.options.containerDetailsClass).on("mousedown.autocomplete",function(e){t.isMouseDownOnSearchElements=!0}))},registerIconHandler:function(){var s=this,i=s.getFormWrapper(),o=i.find("."+s.options.formClass);i.on("click.autocomplete",".js-dgwt-wcas-search-icon-handler",function(e){var t=i.find("."+s.options.searchInputClass);if(i.hasClass("dgwt-wcas-layout-icon-open"))s.hide(),o.hide(!0),i.removeClass("dgwt-wcas-layout-icon-open");else{var a=i.find(".dgwt-wcas-search-icon-arrow");o.hide(),a.hide(),i.addClass("dgwt-wcas-layout-icon-open"),s.positionIconSearchMode(i),o.fadeIn(200,function(){a.show(),s.positionPreloader(i),t.focus()})}}),0==e(".js-dgwt-wcas-initialized").length&&e(".js-dgwt-wcas-search-icon-handler").length>0&&e(document).on("click.autocomplete",function(i){if(e(".dgwt-wcas-layout-icon-open").length){var o=e(i.target);if(!(o.closest("."+s.options.searchFormClass).length>0||o.closest("."+s.options.containerClass).length>0||o.closest("."+s.options.containerDetailsClass).length>0)){var a=t.getActiveInstance();if(void 0!==a){var n=a.getFormWrapper().find("."+s.options.formClass);n.hide(),a.hide(!0),n.css({left:"0"})}s.hideIconModeSearch()}}}),e(window).on("resize.autocomplete",function(){s.applyFlexibleMode()}),"complete"==document.readyState?s.applyFlexibleMode():e(window).on("load.autocomplete",function(){s.applyFlexibleMode()})},registerEventsFixedMenu:function(){var t=this;e(window).on("scroll.autocomplete",function(){if(t.suggestions.length>0&&t.elementOrParentIsFixed(t.getFormWrapper()))if(0===e(window).scrollTop()){[1,10,20,30,40,50,60,70,80,90,120,140,170,200,250,400,700,1e3,2e3].forEach(function(e){setTimeout(function(){t.fixHeight(),t.fixPositionCapture()},e)})}else t.fixHeight(),t.fixPositionCapture()})},initMobileMode:function(){var e=this,t=e.getFormWrapper();t.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&e.isMobileMode()&&(t.prepend('<div class="js-dgwt-wcas-enable-mobile-form dgwt-wcas-enable-mobile-form"></div>'),t.find(".js-dgwt-wcas-enable-mobile-form").on("click.autocomplete",function(t){e.enableOverlayMobile()}))},applyFlexibleMode:function(){var t=e(".js-dgwt-wcas-layout-icon-flexible");t.length&&(this.isMobileMode()?(t.addClass("js-dgwt-wcas-layout-icon"),t.addClass("dgwt-wcas-layout-icon")):(t.removeClass("js-dgwt-wcas-layout-icon"),t.removeClass("dgwt-wcas-layout-icon")),t.addClass("dgwt-wcas-layout-icon-flexible-loaded"))},onFocus:function(){e("."+this.options.searchFormClass).removeClass("dgwt-wcas-active"),this.getFormWrapper().addClass("dgwt-wcas-active"),this.fixPositionCapture(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var t=this.options,s=this.el.val(),i=this.getQuery(s);this.isMobileMode()||this.isMouseDownOnSearchElements||(this.hide(),this.selection&&this.currentValue!==i&&(t.onInvalidateSelection||e.noop).call(this.element))},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(t){var s=this,i=s.getSuggestionsContainer(),o=e.extend({},s.options,t);(s.isLocal=Array.isArray(o.lookup),s.isLocal&&(o.lookup=s.verifySuggestionsFormat(o.lookup)),o.orientation=s.validateOrientation(o.orientation,"bottom"),i.css({"max-height":s.canShowDetailsBox()?"none":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex}),!0===o.showDetailsPanel)&&s.getDetailsContainer().css({"z-index":o.zIndex-1});o.onSearchComplete=function(){s.getFormWrapper().removeClass("dgwt-wcas-processing"),s.preloader("hide","form","dgwt-wcas-inner-preloader"),s.showCloseButton()},this.options=o},clearCache:function(){this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.badQueries=[]},clear:function(e){e&&this.clearCache(),this.currentValue="",this.suggestions=[]},close:function(){this.hide(),this.clear(!1),this.hideCloseButton(),this.el.closest("."+this.options.searchFormClass).find("."+this.options.searchInputClass).val("").focus()},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=this.getFormOffset();this.getSuggestionsContainer().css(e),this.canShowDetailsBox()&&this.fixPositionDetailsBox()},fixPositionDetailsBox:function(){var t=this.getFormWrapper(),s=this.getSuggestionsContainer(),i=this.getDetailsContainer(),o=this.getFormOffset(),a=o.left;if(0==i.length)return!1;var n=!0===this.options.isRtl?1:2,r=Math.round(o.left);if(o.left=r+Math.round(s.width()+n),i.css(o),t.width()>=550)return e("body").removeClass("dgwt-wcas-details-outside"),e("body").removeClass("dgwt-wcas-details-right"),e("body").removeClass("dgwt-wcas-details-left"),void(!0===this.options.isRtl&&(s.css("left",r+Math.round(i.width()+n)+"px"),i.css("left",a+"px")));var l=e(window).width(),c=i.width(),d=i.offset();e("body").addClass("dgwt-wcas-details-outside"),!0===this.options.isRtl&&(o.left=o.left+1);var g=!1,u=!1;l<d.left+c&&(g=!0,e("body").removeClass("dgwt-wcas-details-right"),e("body").addClass("dgwt-wcas-details-left"),i.css("left",Math.round(parseFloat(s.css("left").replace("px","")))-i.outerWidth()+"px")),(d=i.offset()).left<1&&(u=!0,e("body").removeClass("dgwt-wcas-details-left"),e("body").addClass("dgwt-wcas-details-right")),u&&g?(e("body").removeClass("dgwt-wcas-details-left"),e("body").removeClass("dgwt-wcas-details-right"),e("body").addClass("dgwt-wcas-details-notfit")):e("body").removeClass("dgwt-wcas-details-notfit")},fixHeight:function(){if(1!=this.options.showDetailsPanel)return!1;var e=this.getSuggestionsContainer(),t=this.getDetailsContainer();e.css("height","auto"),t.css("height","auto");var s=e.outerHeight(),i=t.outerHeight();return e.find(".dgwt-wcas-suggestion:last-child").removeClass("dgwt-wcas-suggestion-no-border-bottom"),!(s<=340&&i<=340)&&(e.find(".dgwt-wcas-suggestion:last-child").addClass("dgwt-wcas-suggestion-no-border-bottom"),i<s&&t.css("height",s+"px"),s<i&&e.css("height",i+"px"),!1)},automaticAlignment:function(){var e=this,t=e.getFormWrapper().find(".dgwt-wcas-search-input"),s=e.getSuggestionsContainer(),i=e.getDetailsContainer();if(null==e.autoAligmentprocess){var o=[t.width(),s.height()];e.options.showDetailsPanel&&(o[2]=i.height()),e.autoAligmentprocess=setInterval(function(){var a=[t.width(),s.height()];e.options.showDetailsPanel&&(a[2]=i.height());for(var n=0;n<o.length;n++)if(o[n]!=a[n]){e.fixHeight(),e.fixPositionCapture(),o=a;break}e.options.showDetailsPanel&&(i.find(".dgwt-wcas-details-inner").height()-i.height()>2&&e.fixHeight())},10)}},getFormOffset:function(){var t=this.getFormWrapper(),s=this.getSuggestionsContainer(),i=this.options.orientation,o=t.outerHeight(),a=this.el.outerHeight(),n=this.el.offset(),r={top:n.top,left:n.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),d=-c+n.top-o,g=c+l-(n.top+a+o);i=Math.max(d,g)===d?"top":"bottom"}if("top"===i){s[0].getBoundingClientRect().top;var u=t[0].getBoundingClientRect().top;s.css("height","auto"),u<s.height()&&s.height(u-10),r.top+=-s.outerHeight()}else r.top+=a;return r},getFormWrapper:function(){return this.el.closest("."+this.options.searchFormClass)},getSuggestionsContainer:function(){return e("."+this.options.containerClass)},getDetailsContainer:function(){return e("."+this.options.containerDetailsClass)},scrollDownSuggestions:function(){var e=this.getSuggestionsContainer();e[0].scrollTop=e[0].scrollHeight},isCursorAtEnd:function(){var e,t=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){if(this.disabled||this.visible||e.which!==l||!this.currentValue){if(!this.disabled&&this.visible){switch(e.which){case i:this.el.val(this.currentValue),this.hide();break;case r:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case o:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case a:if(-1===this.selectedIndex)return void this.hide();this.actionTriggerSource="enter",this.select(this.selectedIndex);break;case n:this.moveUp();break;case l:this.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else this.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case n:case l:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var t=this.options,s=this.el.val(),i=this.getQuery(s);this.selection&&this.currentValue!==i&&(this.selection=null,(t.onInvalidateSelection||e.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=s,this.selectedIndex=-1,t.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<t.minChars?(this.hideCloseButton(),this.hide()):this.getSuggestions(i)}},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},canShowDetailsBox:function(){return 1==this.options.showDetailsPanel&&!this.isMobileMode()},isMobileMode:function(){return e(window).width()<this.options.mobileBreakpoint},getQuery:function(t){var s,i=this.options.delimiter;return i?(s=t.split(i),e.trim(s[s.length-1])):t.trim()},getSuggestionsLocal:function(t){var s,i=this.options,o=t.toLowerCase(),a=i.lookupFilter,n=parseInt(i.lookupLimit,10);return s={suggestions:e.grep(i.lookup,function(e){return a(e,t,o)})},n&&s.suggestions.length>n&&(s.suggestions=s.suggestions.slice(0,n)),s},getSuggestions:function(i){var o,a,n,r,l=this,c=l.options,d=c.serviceUrl,g=l.getFormWrapper();c.params[c.paramName]=i,void 0!==dgwt_wcas.current_lang&&(c.params.l=dgwt_wcas.current_lang),c.params=l.applyCustomParams(c.params),l.preloader("show","form","dgwt-wcas-inner-preloader"),g.addClass("dgwt-wcas-processing"),!1!==c.onSearchStart.call(l.element,c.params)&&(a=c.ignoreParams?null:c.params,e.isFunction(c.lookup)?c.lookup(i,function(e){l.suggestions=e.suggestions,l.suggest(),l.selectFirstSuggestion(e.suggestions),c.onSearchComplete.call(l.element,i,e.suggestions)}):(l.isLocal?o=l.getSuggestionsLocal(i):(e.isFunction(d)&&(d=d.call(l.element,i)),n=d+"?"+e.param(a||{}),o=l.cachedResponse[n]),o&&Array.isArray(o.suggestions)?(l.suggestions=o.suggestions,l.suggest(),l.selectFirstSuggestion(o.suggestions),c.onSearchComplete.call(l.element,i,o.suggestions)):l.isBadQuery(i)?c.onSearchComplete.call(l.element,i,[]):(l.abortAjax(),r={url:d,data:a,type:c.type,dataType:c.dataType},e.extend(r,c.ajaxSettings),s.object=l,s.ajaxSettings=r,t.debounce(function(){var t=s.object,o=s.ajaxSettings;t.currentRequest=e.ajax(o).done(function(e){var s;t.currentRequest=null,void 0!==(s=t.options.transformResult(e,i)).suggestions&&(t.processResponse(s,i,n),t.selectFirstSuggestion(s.suggestions),1===s.suggestions.length&&void 0!==s.suggestions[0].type&&"no-results"===s.suggestions[0].type?t.gaEvent(i,"Autocomplete Search without results"):t.gaEvent(i,"Autocomplete Search with results")),t.fixPositionCapture(),t.options.onSearchComplete.call(t.element,i,s.suggestions),t.updatePrices()}).fail(function(e,s,o){t.options.onSearchError.call(t.element,i,e,s,o)})},c.debounceWaitMs))))},getDetails:function(t){var s=this;if(!s.canShowDetailsBox())return!1;if(null!=t&&void 0!==t.type&&("string"!=typeof t.more_products||"more_products"!==t.more_products)){s.fixHeight();s.getDetailsContainer();var i=s.prepareSuggestionObjectID(t);if(null!=s.cachedDetails[i])s.detailsPanelSetScene(i),s.fixHeight(),s.fixPositionCapture();else{var o={action:dgwt_wcas.action_result_details,items:[]};if(e.each(s.suggestions,function(e,t){if(void 0!==t.type&&"more_products"!=t.type&&"headline"!=t.type){var i={objectID:s.prepareSuggestionObjectID(t),value:null!=t.value?t.value:""};o.items.push(i)}}),s.detailsPanelClearScene(),s.preloader("show","details",""),-1!=e.inArray(i,s.detailsRequestsSent))return;s.detailsRequestsSent.push(i),e.ajax({data:o,type:"post",url:dgwt_wcas.ajax_details_endpoint,success:function(e){var t="string"==typeof e?jQuery.parseJSON(e):e;if(void 0!==t.items)for(var i=0;i<t.items.length;i++){var o=t.items[i].objectID;if(s.cachedDetails[o]={html:t.items[i].html},s.detailsPanelAddToScene(o),void 0!==t.items[i].price&&t.items[i].price.length>0&&(s.cachedPrices[o]=t.items[i].price),void 0!==t.items[i].imageSrc&&t.items[i].imageSrc.length>0)(new Image).src=t.items[i].imageSrc}s.preloader("hide","details","");var a=s.prepareSuggestionObjectID(s.suggestions[s.selectedIndex]);null!=s.cachedDetails[a]?s.detailsPanelSetScene(a):s.detailsPanelClearScene(),s.fixPositionCapture(),s.fixHeight(),s.updatePrices(!0)},error:function(e,t){s.preloader("hide","details",""),s.detailsPanelClearScene(),s.fixPositionCapture(),s.fixHeight()}})}e(document).trigger("dgwtWcasDetailsPanelLoaded",s)}},updatePrices:function(t){var s,i,o=this,a=[];if(o.options.showPrice&&o.options.dynamicPrices&&0!=o.suggestions.length){for(s=0;s<o.suggestions.length;s++)if(void 0!==o.suggestions[s].type&&("product"==o.suggestions[s].type||"product_variation"==o.suggestions[s].type)){var n="product__"+o.suggestions[s].post_id;void 0!==o.cachedPrices[n]?o.updatePrice(s,o.cachedPrices[n]):(o.applyPreloaderForPrice(s),a.push(o.suggestions[s].post_id))}if(!t&&a.length>0){var r={action:void 0===dgwt_wcas.action_get_prices?"dgwt_wcas_get_prices":dgwt_wcas.action_get_prices,items:a};e.ajax({data:r,type:"post",url:dgwt_wcas.ajax_prices_endpoint,success:function(e){if(void 0!==e.success&&e.success&&e.data.length>0)for(s=0;s<e.data.length;s++){var t=e.data[s].id,a=e.data[s].price;if(o.suggestions.length>0)for(i=0;i<o.suggestions.length;i++)if(void 0!==o.suggestions[i].type&&("product"==o.suggestions[i].type||"product_variation"==o.suggestions[i].type)&&o.suggestions[i].post_id==t){var n="product__"+t;o.cachedPrices[n]=a,o.updatePrice(i,a)}}},error:function(e,t){}})}}},updatePrice:function(t,s){if(void 0!==this.suggestions[t]){this.suggestions[t].price=s;var i=e(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+t+'"] .dgwt-wcas-sp');i.length&&i.html(s)}},applyCustomParams:function(e){if("object"==typeof dgwt_wcas.custom_params){var t=dgwt_wcas.custom_params;for(var s in t)e[s]=t[s]}var i=this.el.data("custom-params");if("object"==typeof i)for(var s in i)e[s]=i[s];return e},applyPreloaderForPrice:function(t){if(void 0!==this.suggestions[t]){var s=e(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+t+'"] .dgwt-wcas-sp');s.length&&s.html('<div class="dgwt-wcas-preloader-price"><div class="dgwt-wcas-preloader-price-inner"> <div></div><div></div><div></div></div></div>')}},prepareSuggestionObjectID:function(e){var t="";return void 0!==e&&void 0!==e.type&&(null!=e.post_id&&(t=e.type+"__"+e.post_id,"product_variation"===e.type&&(t+="__"+e.variation_id),void 0!==e.post_type&&(t=e.type+"__"+e.post_id+"__"+e.post_type)),null!=e.term_id&&null!=e.taxonomy&&(t=e.type+"__"+e.term_id+"__"+e.taxonomy)),t},detailsPanelSetScene:function(e){var s=this.getDetailsContainer(),i=t.hashCode(e),o=s.find('.dgwt-wcas-details-inner[data-object="'+i+'"]');o.length&&(this.preloader("hide","details",""),this.detailsPanelClearScene(),o.addClass("dgwt-wcas-details-inner-active"))},detailsPanelAddToScene:function(e){var s=this.getDetailsContainer(),i=this.cachedDetails[e],o=t.hashCode(e),a="";void 0!==i&&"string"==typeof i.html&&(a=i.html.replace("<div ",'<div data-object="'+o+'" ')),0==s.find('.dgwt-wcas-details-inner[data-object="'+o+'"]').length&&s.append(a)},detailsPanelClearScene:function(){var e=this.getDetailsContainer().find(".dgwt-wcas-details-inner");e.length&&e.removeClass("dgwt-wcas-details-inner-active")},selectFirstSuggestion:function(t){var s=0,i=!1;this.canShowDetailsBox()&&("undefined"!=t&&t.length>0&&e.each(this.suggestions,function(e,t){if(void 0!==t.type&&"more_products"!=t.type&&"headline"!=t.type&&"no-results"!=t.type)return s=e,!1;void 0!==t.type&&"no-results"!==t.type||(i=!0)}),i||(this.latestActivateSource="system",this.getDetails(t[s]),this.activate(s)))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,s=t.length;s--;)if(0===e.indexOf(t[s]))return!0;return!1},hide:function(t){this.getFormWrapper();var s=this.getSuggestionsContainer(),i=this.getDetailsContainer();e.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,container),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),s.hide(),s.removeClass(this.classes.suggestionsContainerOrientTop),i.hide(),e("body").removeClass("dgwt-wcas-open"),e("body").removeClass("dgwt-wcas-block-scroll"),e("body").removeClass("dgwt-wcas-is-details"),e("body").removeClass("dgwt-wcas-full-width"),e("body").removeClass("dgwt-wcas-nores"),e("body").removeClass("dgwt-wcas-details-outside"),e("body").removeClass("dgwt-wcas-details-right"),e("body").removeClass("dgwt-wcas-details-left"),null!=this.autoAligmentprocess&&(clearInterval(this.autoAligmentprocess),this.autoAligmentprocess=null),"boolean"==typeof t&&t&&(this.hideCloseButton(),this.currentValue="",this.suggestions=[]),this.signalHint(null)},positionIconSearchMode:function(t){var s=-20,i=t.find("."+this.options.formClass),o=i.width(),a=e(window).width(),n=t[0].getBoundingClientRect().left;i[0].getBoundingClientRect().left;var r=(n+10)/a;s=Math.floor(o*r*-1),s=Math.max(s,-1*n),i.css({left:s+"px"})},hideIconModeSearch:function(){var t=e(".dgwt-wcas-layout-icon-open");t.length>0&&t.removeClass("dgwt-wcas-layout-icon-open")},hideAfterClickOutsideListener:function(){var t=this;t.isMobileMode()||e(document).mouseup(function(s){if(t.visible){t.getSuggestionsContainer(),t.getDetailsContainer();var i=!(e(s.target).closest("."+t.options.searchFormClass).length>0||e(s.target).hasClass(t.options.searchFormClass)),o=!(e(s.target).closest("."+t.options.containerClass).length>0||e(s.target).hasClass(t.options.containerClass));if(t.canShowDetailsBox()){var a=!(e(s.target).closest("."+t.options.containerDetailsClass).length>0||e(s.target).hasClass(t.options.containerDetailsClass));i&&o&&a&&t.hide()}else i&&o&&t.hide()}})},suggest:function(){if(this.suggestions.length){var t,s=this,i=s.options,o=i.groupBy,a=i.formatResult,n=s.getQuery(s.currentValue),r=s.classes.suggestion,l=s.classes.selected,c=s.getSuggestionsContainer(),d=s.getDetailsContainer(),g=e(s.noSuggestionsContainer),u=i.beforeRender,h="";i.triggerSelectOnValidInput&&s.isExactMatch(n)?s.select(0):(e("body").removeClass("dgwt-wcas-nores"),e.each(s.suggestions,function(l,c){var d="",g=!1,u="string"==typeof c.url&&c.url.length?c.url:"#";if(o&&(h+=function(e,s){var i=e.data[o];return t===i?"":'<div class="autocomplete-group"><strong>'+(t=i)+"</strong></div>"}(c,0)),void 0===c.type||"product"!=c.type&&"product_variation"!=c.type){var p,w=r,f="dgwt-wcas-st",m="",v="",b="",C=!0;"product_cat"===c.taxonomy?(w+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-cat",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.category+"</span>"),void 0!==c.breadcrumbs&&c.breadcrumbs&&(b=c.breadcrumbs+" > "+c.value,v+='<span class="dgwt-wcas-st-breadcrumbs">'+dgwt_wcas.labels.in+" "+c.breadcrumbs+"</span>")):"product_tag"===c.taxonomy?(w+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tag",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.tag+"</span>")):i.isPremium&&c.taxonomy===i.taxonomyBrands?(w+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-brand",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.brand+"</span>")):i.isPremium&&"vendor"===c.type?(w+=" dgwt-wcas-suggestion-vendor dgwt-wcas-suggestion-vendor",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.vendor+"</span>")):i.isPremium&&"post"===c.type?(w+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-tp-post",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.post+"</span>")):i.isPremium&&"page"===c.type?(w+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-page",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.page+"</span>")):"more_products"===c.type?(w+=" js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more",f="dgwt-wcas-st-more",c.value=dgwt_wcas.labels.show_more+" ("+c.total+")",C=!1):i.showHeadings&&"headline"===c.type?(w+=" js-dgwt-wcas-suggestion-headline dgwt-wcas-suggestion-headline",void 0!==dgwt_wcas.labels[c.value+"_plu"]&&(c.value=dgwt_wcas.labels[c.value+"_plu"]),C=!1):(w+=" dgwt-wcas-suggestion-nores",c.value=dgwt_wcas.labels.no_results,C=!1,!0===i.showDetailsPanel&&s.detailsPanelClearScene(),e("body").addClass("dgwt-wcas-nores")),void 0!==c.image_src&&c.image_src&&(p=!0),b=b.length>0?' title="'+b+'"':"",h+='<a href="'+u+'" class="'+w+'" data-index="'+l+'">',p&&(h+='<span class="dgwt-wcas-si"><img src="'+c.image_src+'" /></span>',h+='<div class="dgwt-wcas-content-wrapp">'),h+="<span"+b+' class="'+f+'">',"vendor"===c.type?(h+='<span class="dgwt-wcas-st-title">'+m+a(c.value,n,C,i)+v+"</span>",c.shop_city&&(h+='<span class="dgwt-wcas-vendor-city"><span> - </span>'+a(c.shop_city,n,!0,i)+"</span>"),void 0!==c.desc&&c.desc&&(h+='<span class="dgwt-wcas-sd">'+a(c.desc,n,!0,i)+"</span>")):h+=m+a(c.value,n,C,i)+v,h+="</span>",h+=p?"</div>":"",h+="</a>"}else{!0===i.showImage&&void 0!==c.thumb_html&&(g=!0);var y="product_variation"===c.type?" dgwt-wcas-suggestion-product-var":"";if(d+=void 0!==c.post_id?'data-post-id="'+c.post_id+'" ':"",d+=void 0!==c.taxonomy?'data-taxonomy="'+c.taxonomy+'" ':"",d+=void 0!==c.term_id?'data-term-id="'+c.term_id+'" ':"",h+='<a href="'+u+'" class="'+r+" dgwt-wcas-suggestion-product"+y+'" data-index="'+l+'" '+d+">",g&&(h+='<span class="dgwt-wcas-si">'+c.thumb_html+"</span>"),h+=g?'<div class="dgwt-wcas-content-wrapp">':"",h+='<span class="dgwt-wcas-st">',h+='<span class="dgwt-wcas-st-title">'+a(c.value,n,!0,i)+"</span>",!0===i.showSKU&&void 0!==c.sku&&c.sku.length>0&&(h+='<span class="dgwt-wcas-sku">('+dgwt_wcas.labels.sku_label+" "+a(c.sku,n,!0,i)+")</span>"),!0===i.showDescription&&void 0!==c.desc&&c.desc&&(h+='<span class="dgwt-wcas-sd">'+a(c.desc,n,!0,i)+"</span>"),!0===i.showProductVendor&&void 0!==c.vendor&&c.vendor){var _='<span class="dgwt-wcas-product-vendor"><span class="dgwt-wcas-product-vendor-label">'+dgwt_wcas.labels.vendor_sold_by+" </span>"+c.vendor+"</span>";void 0!==c.vendor_url&&c.vendor_url?h+='<span class="dgwt-wcas-product-vendor-link" data-url="'+c.vendor_url+'">'+_+"</span>":h+=_}h+="</span>",!0===i.showPrice&&void 0!==c.price&&(h+='<span class="dgwt-wcas-sp">'+c.price+"</span>"),!0===i.showFeaturedBadge&&!0===c.on_sale&&(h+='<span class="dgwt-wcas-badge dgwt-wcas-badge-os">'+i.saleBadgeText+"</span>"),!0===i.showFeaturedBadge&&!0===c.featured&&(h+='<span class="dgwt-wcas-badge dgwt-wcas-badge-f">'+i.featuredBadgeText+"</span>"),h+=g?"</div>":"",h+="</div>"}}),this.adjustContainerWidth(),g.detach(),c.html(h),e.isFunction(u)&&u.call(s.element,c,s.suggestions),c.show(),e("body").addClass("dgwt-wcas-open"),s.isMouseDownOnSearchElements=!1,s.automaticAlignment(),!0===i.showDetailsPanel&&(e("body").addClass("dgwt-wcas-is-details"),d.show(),s.fixHeight()),i.autoSelectFirst&&(s.selectedIndex=0,c.scrollTop(0),c.children("."+r).first().addClass(l)),s.visible=!0,s.fixPositionCapture(),"top"===s.options.orientation&&(s.getSuggestionsContainer().addClass(s.classes.suggestionsContainerOrientTop),e("body").addClass("dgwt-wcas-block-scroll"),setTimeout(function(){s.scrollDownSuggestions()},300)),s.findBestHint())}else this.hide()},adjustContainerWidth:function(){var t,s=this.options,i=e("body"),o=this.getFormWrapper(),a=this.getSuggestionsContainer(),n=this.getDetailsContainer(),r=this.getFormOffset();if(o.length){var l=getComputedStyle(o[0]).width;if(l=Math.round(parseFloat(l.replace("px",""))),"auto"===s.width&&(t=this.el.outerWidth(),a.css("width",t+"px")),this.canShowDetailsBox()){if(o.width()>=550)return i.addClass("dgwt-wcas-full-width"),l%2==0?(a.css("width",Math.round(l/2)),n.css("width",Math.round(l/2))):(a.css("width",Math.floor(l/2)),n.css("width",Math.ceil(l/2))),i.removeClass("dgwt-wcas-details-left"),i.removeClass("dgwt-wcas-details-right"),void(!0===s.isRtl?n.css("left","0"):a.css("left",l/2+r.left+"px"));i.addClass("dgwt-wcas-details-right")}}},positionPreloader:function(t){var s="object"==typeof t?t.find(".dgwt-wcas-search-submit"):e(".dgwt-wcas-search-submit");s.length>0&&s.each(function(){var t=e(this).closest(".dgwt-wcas-search-wrapp").find(".dgwt-wcas-preloader");1==dgwt_wcas.is_rtl?t.css("left",6+e(this).outerWidth()+"px"):t.css("right",e(this).outerWidth()+"px")})},findBestHint:function(){var t=this.el.val().toLowerCase(),s=null;t&&(e.each(this.suggestions,function(e,i){var o=0===i.value.toLowerCase().indexOf(t);return o&&(s=i),!o}),this.signalHint(s))},signalHint:function(t){var s="";t&&(s=this.currentValue+t.value.substr(this.currentValue.length)),this.hintValue!==s&&(this.hintValue=s,this.hint=t,(this.options.onHint||e.noop)(s))},preloader:function(e,t,s){var i,o,a="dgwt-wcas-preloader-wrapp",n=null==s?a:a+" "+s;if("form"===t){if(1!=dgwt_wcas.show_preloader)return;o=this.getFormWrapper().find(".dgwt-wcas-preloader")}else"details"===t&&(o=this.getDetailsContainer());if(0!=o.length)if("form"!==t){var r=o.find("."+a);if("hide"!==e){if("show"===e){var l=this.options.isRtl?"-rtl":"";i='<div class="'+n+'"><img class="dgwt-wcas-placeholder-preloader" src="'+dgwt_wcas.img_url+"placeholder"+l+'.png" /></div>',this.detailsPanelClearScene(),r.length&&r.remove(),o.prepend(i)}}else r.length&&r.remove()}else"hide"===e?(o.removeClass(s),o.html("")):(o.addClass(s),"string"==typeof dgwt_wcas.preloader_icon&&o.html(dgwt_wcas.preloader_icon))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,s){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=s),t},processResponse:function(e,t,s){var i=this.options;e.suggestions=this.verifySuggestionsFormat(e.suggestions),i.noCache||(this.cachedResponse[s]=e,i.preventBadQueries&&!e.suggestions.length&&this.badQueries.push(t)),t===this.getQuery(this.currentValue)&&("top"===this.options.orientation&&e.suggestions.reverse(),this.suggestions=e.suggestions,this.suggest())},activate:function(t){var s,i=this.classes.selected,o=this.getSuggestionsContainer(),a=o.find("."+this.classes.suggestion);return o.find("."+i).removeClass(i),this.selectedIndex=t,-1!==this.selectedIndex&&a.length>this.selectedIndex?(s=a.get(this.selectedIndex),e(s).addClass(i),s):null},selectHint:function(){var t=e.inArray(this.hint,this.suggestions);this.select(t)},select:function(e){this.options.disableHits||(this.hide(),this.onSelect(e))},moveUp:function(){if(-1!==this.selectedIndex){if(this.latestActivateSource="key",0===this.selectedIndex)return this.getSuggestionsContainer().children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint();this.adjustScroll(this.selectedIndex-1,"up")}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&(this.latestActivateSource="key",this.adjustScroll(this.selectedIndex+1,"down"))},adjustScroll:function(t,s){if("headline"===this.suggestions[t].type&&(t="down"===s?t+1:t-1),void 0!==this.suggestions[t]){var i=this.activate(t);if(this.getDetails(this.suggestions[t]),"more_products"!==this.suggestions[t].type&&i&&!this.canShowDetailsBox()){var o,a,n,r=this.getSuggestionsContainer(),l=e(i).outerHeight();o=i.offsetTop,n=(a=r.scrollTop())+this.options.maxHeight-l,o<a?r.scrollTop(o):o>n&&r.scrollTop(o-this.options.maxHeight+l),this.options.preserveInput||(this.ignoreValueChange=!0),this.signalHint(null)}}},onSelect:function(t){var s=this.options.onSelect,i=this.suggestions[t];void 0===i.type||"more_products"!==i.type&&("enter"!==this.actionTriggerSource||"key"==this.latestActivateSource||"product_variation"==i.type)?(this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),i.url.length>0&&(window.location.href=i.url),this.signalHint(null),this.suggestions=[],this.selection=i,e.isFunction(s)&&s.call(this.element,i)):this.el.closest("form").trigger("submit")},getValue:function(e){var t,s,i=this.options.delimiter;return i?1===(s=(t=this.currentValue).split(i)).length?e:t.substr(0,t.length-s[s.length-1].length)+e:e},dispose:function(){var t=this.el,s=this.getFormWrapper(),i=this.getSuggestionsContainer(),o=(this.getDetailsContainer(),t.closest("."+this.options.formClass),s.find(".js-dgwt-wcas-enable-mobile-form"));s.length&&s.find("*").each(function(){e(this).off(".autocomplete")});t.removeData("autocomplete"),e(window).off("resize.autocomplete",this.fixPositionCapture),s.removeClass("dgwt-wcas-active"),this.close(),o.length&&o.remove(),i.length&&i.html("")},enableOverlayMobile:function(){var t=this;if("on"!==t.overlayMobileState){t.overlayMobileState="on";var s,i=t.getFormWrapper(),o=t.getSuggestionsContainer(),a="";e("html").addClass("dgwt-wcas-overlay-mobile-on"),a+='<div class="js-dgwt-wcas-overlay-mobile dgwt-wcas-overlay-mobile">',a+='<div class="dgwt-wcas-om-bar js-dgwt-wcas-om-bar">',a+='<button class="dgwt-wcas-om-return js-dgwt-wcas-om-return">',"string"==typeof dgwt_wcas.back_icon&&(a+=dgwt_wcas.back_icon),a+="</button>",a+="</div>",a+="</div>",e(t.options.mobileOverlayWrapper).append(a),(s=e(".js-dgwt-wcas-overlay-mobile")).css("zIndex",99999999999),i.after('<span class="js-dgwt-wcas-om-hook"></span>'),i.appendTo(".js-dgwt-wcas-om-bar"),o.appendTo(".js-dgwt-wcas-om-bar"),i.addClass("dgwt-wcas-search-wrapp-mobile"),i.hasClass("dgwt-wcas-has-submit")&&(i.addClass("dgwt-wcas-has-submit-off"),i.removeClass("dgwt-wcas-has-submit")),i.find("."+t.options.searchInputClass).focus(),e(document).on("click.autocomplete",".js-dgwt-wcas-om-return",function(e){t.disableOverlayMobile(s)})}},disableOverlayMobile:function(t){var s=this,i=s.getSuggestionsContainer(),o=e(".js-dgwt-wcas-om-bar").find("."+s.options.searchFormClass);o.hasClass("dgwt-wcas-has-submit-off")&&(o.removeClass("dgwt-wcas-has-submit-off"),o.addClass("dgwt-wcas-has-submit")),o.removeClass("dgwt-wcas-search-wrapp-mobile"),e("html").removeClass("dgwt-wcas-overlay-mobile-on"),i.appendTo("body"),i.removeAttr("body-scroll-lock-ignore"),e(".js-dgwt-wcas-om-hook").after(o),e(".js-dgwt-wcas-overlay-mobile").remove(),e(".js-dgwt-wcas-om-hook").remove(),setTimeout(function(){o.find("."+s.options.searchInputClass).val("");var e=o.find(".dgwt-wcas-close");o.length>0&&(e.removeClass("dgwt-wcas-close"),e.html("")),s.hide()},150),s.overlayMobileState="off"},showCloseButton:function(){var e=void 0!==dgwt_wcas.close_icon?dgwt_wcas.close_icon:"",t=this.getFormWrapper().find("."+this.options.preloaderClass);t.addClass(this.options.closeTrigger),t.html(e)},hideCloseButton:function(){var e=this.getFormWrapper().find("."+this.options.closeTrigger);e.length&&(e.removeClass(this.options.closeTrigger),e.html(""))},elementOrParentIsFixed:function(t){var s=t.add(t.parents()),i=!1;return s.each(function(){if("fixed"===e(this).css("position"))return i=!0,!1}),i},gaEvent:function(e,t){var s=!(!window.hasOwnProperty("GoogleAnalyticsObject")||!window.hasOwnProperty(window.GoogleAnalyticsObject))&&window[window.GoogleAnalyticsObject];if(this.options.sendGAEvents)try{if("undefined"!=typeof gtag)gtag("event","autocomplete_search",{event_label:e,event_category:t});else if(!1!==s){var i=s.getAll()[0];i&&i.send({hitType:"event",eventCategory:t,eventAction:"autocomplete_search",eventLabel:e})}}catch(e){}if(this.options.enableGASiteSearchModule)try{if("undefined"!=typeof gtag)gtag("event","page_view",{page_path:"/?s="+encodeURI(e)+"&post_type=product&dgwt_wcas=1"});else if(!1!==s){var o=s.getAll()[0];o&&(o.set("page","/?s="+encodeURI(e)+"&post_type=product&dgwt_wcas=1"),o.send("pageview"))}}catch(e){}}},e.fn.dgwtWcasAutocomplete=function(t,s){return arguments.length?this.each(function(){var i=e(this),o=i.data("autocomplete");"string"==typeof t?o&&"function"==typeof o[t]&&o[t](s):(o&&o.dispose&&o.dispose(),o=new d(this,t),i.data("autocomplete",o))}):this.first().data("autocomplete")},e.fn.autocomplete||(e.fn.autocomplete=e.fn.dgwtWcasAutocomplete),function(){function t(){var t=e(".dgwt-wcas-search-input"),s=[];t.length>1&&t.each(function(){var t=e(this).attr("id");if(-1==e.inArray(t,s))s.push(t);else{var i=Math.random().toString(36).substring(2,6);i="dgwt-wcas-search-input-"+i,e(this).attr("id",i),e(this).closest("form").find("label").attr("for",i)}})}function s(){var t=e(".dgwt-wcas-search-input");t.length>0&&t.each(function(){"object"!=typeof e(this).data("autocomplete")&&e(this).dgwtWcasAutocomplete(window.dgwt_wcas.config)})}navigator.userAgent.match(/Trident\/7\./)&&function(e,t){function s(e,t){var s=arguments.length>2?arguments[2]:[];if(!1===a(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,s)}function i(e,t,s){var i={value:s,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(e,t,i)}function o(e,t){return e[t]}function a(e){return"function"==typeof e}function n(e){if(null===e||e===t)throw TypeError();return Object(e)}function r(e,s){var i=function(e,t){return n(e)[t]}(e,s);if(null===i||i===t)return t;if(!1===a(i))throw new TypeError("Method not callable: "+s);return i}function l(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function c(s){if("object"!==l(s))return!1;var i="Symbol"in e&&"match"in e.Symbol?o(s,e.Symbol.match):t;if(i!==t)return Boolean(i);try{var a=s.lastIndex;return s.lastIndex=0,RegExp.prototype.exec.call(s),!0}catch(e){}finally{s.lastIndex=a}return!1}function d(e,t){return l(e)===l(t)&&("number"===l(e)?!(!isNaN(e)||!isNaN(t))||1/e==1/0&&1/t==-1/0||1/e==-1/0&&1/t==1/0||e===t:function(e,t){return e===t}(e,t))}function g(e){if("symbol"===l(e))throw new TypeError("Cannot convert a Symbol value to a number");var t=Number(e);return isNaN(t)?0:1/t==1/0||1/t==-1/0||t===1/0||t===-1/0?t:(t<0?-1:1)*Math.floor(Math.abs(t))}function u(i){var n=arguments.length>1?arguments[1]:t;if("object"===l(i)){if(arguments.length<2)var c="default";else n===String?c="string":n===Number&&(c="number");var d="function"==typeof e.Symbol&&"symbol"==typeof e.Symbol.toPrimitive?r(i,e.Symbol.toPrimitive):t;if(d!==t){var g=s(d,i,[c]);if("object"!==l(g))return g;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===c&&(c="number"),function(e,t){if("string"===t)var i=["toString","valueOf"];else i=["valueOf","toString"];for(var n=0;n<i.length;++n){var r=o(e,i[n]);if(a(r)){var c=s(r,e);if("object"!==l(c))return c}}throw new TypeError("Cannot convert to primitive.")}(i,c)}return i}function h(e){switch(l(e)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return h(u(e,String));default:return String(e)}}i(Array.prototype,"includes",function(e){var t=n(this),s=function(e){var t=g(e);return t<=0?0:Math.min(t,Math.pow(2,53)-1)}(o(t,"length"));if(0===s)return!1;var i=g(arguments[1]);if(i>=0)var a=i;else(a=s+i)<0&&(a=0);for(;a<s;){if(d(e,o(t,h(a))))return!0;a+=1}return!1}),i(String.prototype,"includes",function(e){var s=arguments.length>1?arguments[1]:t,i=h(function(e){if(null===e||e===t)throw TypeError(Object.prototype.toString.call(e)+" is not coercible to Object.");return e}(this));if(c(e))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var o=h(e),a=g(s),n=i.length,r=Math.min(Math.max(a,0),n);return-1!==String.prototype.indexOf.call(i,o,r)})}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),e(document).ready(function(){(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)&&e("html").addClass("dgwt-wcas-is-ios");var t=1==dgwt_wcas.show_details_box,s=dgwt_wcas.mobile_breakpoint;(jQuery(window).width()<s||"ontouchend"in document)&&(t=!1),window.dgwt_wcas.config={minChars:dgwt_wcas.min_chars,width:dgwt_wcas.sug_width,autoSelectFirst:!1,triggerSelectOnValidInput:!1,serviceUrl:dgwt_wcas.ajax_search_endpoint,paramName:"s",showDetailsPanel:t,showImage:1==dgwt_wcas.show_images,showPrice:1==dgwt_wcas.show_price,showDescription:1==dgwt_wcas.show_desc,showSKU:1==dgwt_wcas.show_sku,showSaleBadge:1==dgwt_wcas.show_sale_badge,showFeaturedBadge:1==dgwt_wcas.show_featured_badge,dynamicPrices:!(void 0===dgwt_wcas.dynamic_prices||!dgwt_wcas.dynamic_prices),saleBadgeText:dgwt_wcas.labels.sale_badge,featuredBadgeText:dgwt_wcas.labels.featured_badge,isRtl:1==dgwt_wcas.is_rtl,showHeadings:1==dgwt_wcas.show_headings,isPremium:1==dgwt_wcas.is_premium,taxonomyBrands:dgwt_wcas.taxonomy_brands,mobileBreakpoint:s,mobileOverlayWrapper:dgwt_wcas.mobile_overlay_wrapper,debounceWaitMs:dgwt_wcas.debounce_wait_ms,sendGAEvents:dgwt_wcas.send_ga_events,convertHtml:dgwt_wcas.convert_html,enableGASiteSearchModule:dgwt_wcas.enable_ga_site_search_module,appendTo:void 0!==dgwt_wcas.suggestions_wrapper?dgwt_wcas.suggestions_wrapper:"body",showProductVendor:!(void 0===dgwt_wcas.show_product_vendor||!dgwt_wcas.show_product_vendor),disableHits:!(void 0===dgwt_wcas.disable_hits||!dgwt_wcas.disable_hits),disableSubmit:!(void 0===dgwt_wcas.disable_submit||!dgwt_wcas.disable_submit)},e(".dgwt-wcas-search-input").dgwtWcasAutocomplete(window.dgwt_wcas.config)}),e(window).on("load",function(){var t=0,s=setInterval(function(){var i=document.activeElement;if("object"==typeof i&&e(i).length&&e(i).hasClass("dgwt-wcas-search-input")){var o=e(i).closest(".dgwt-wcas-search-wrapp");o.length&&!o.hasClass("dgwt-wcas-active")&&(o.addClass("dgwt-wcas-active"),clearInterval(s))}t>10&&clearInterval(s),t++},500)}),e(document).ready(function(){setTimeout(function(){t(),s()},500)}),e(window).on("load",function(){setTimeout(function(){t(),s()},500),void 0!==window.elementorFrontend&&void 0!==window.elementorFrontend.documentsManager&&void 0!==window.elementorFrontend.documentsManager.documents&&e.each(elementorFrontend.documentsManager.documents,function(e,t){void 0!==t.getModal&&t.getModal&&t.getModal().on("show",function(){setTimeout(function(){s()},300)})})})}()});
|
1 |
+
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(e){"use strict";var t={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.setAttribute("unselectable","on"),t},highlight:function(e,s){if(dgwt_wcas.is_premium){var i,o=s.split(/ /),a=!1,n="";if(o)for(n=o[o.length-1],o=o.sort(function(e,t){return t.length-e.length}),i=0;i<o.length;i++)if(o[i]&&o[i].length>=1){var r=o[i].replace(/[\^\@]/g,"");if(r.length>0){if(1===r.trim().length&&o[i]!==n)var l="((\\s|^)"+t.escapeRegExChars(r.trim())+"\\s)";else l=1===r.trim().length&&o[i]===n?"((\\s|^)"+t.escapeRegExChars(r.trim())+")":"("+t.escapeRegExChars(r.trim())+")";e=e.replace(new RegExp(l,"gi"),"^^$1@@"),a=!0}}a&&(e=(e=e.replace(/\^\^/g,"<strong>")).replace(/@@/g,"</strong>"))}else l="("+t.escapeRegExChars(s)+")",e=e.replace(new RegExp(l,"gi"),"<strong>$1</strong>");return e},debounce:function(e,t){var i,o=(new Date).getUTCMilliseconds();if(0===s.id.length)return s.id=o,void e();s.id=o,i=setTimeout(function(){o===s.id?(e(),s.id=""):clearTimeout(i)},t)},mouseHoverDebounce:function(t,s,i){var o;o=setTimeout(function(){e(s+":hover").length>0?t():clearTimeout(o)},i)},getActiveInstance:function(){var t,s=e(".dgwt-wcas-search-wrapp.dgwt-wcas-active");return s.length>0&&s.each(function(){var s=e(this).find(".dgwt-wcas-search-input");if("object"==typeof s.data("autocomplete"))return t=s.data("autocomplete"),!1}),t},hashCode:function(e){for(var t=0,s=e.length;s>0;)t=(t<<5)-t+e.charCodeAt(--s)|0;return t<0?-1*t:t}},s={id:"",callback:null,ajaxSettings:null,object:null},i=27,o=9,a=13,n=38,r=39,l=40,c=e.noop;function d(t,s){this.element=t,this.el=e(t),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.detailsRequestsSent=[],this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.detailsContainer=null,this.autoAligmentprocess=null,this.noSuggestionsContainer=null,this.latestActivateSource="",this.actionTriggerSource="",this.options=e.extend(!0,{},d.defaults,s),this.classes={selected:"dgwt-wcas-suggestion-selected",suggestion:"dgwt-wcas-suggestion",suggestionsContainerOrientTop:"dgwt-wcas-suggestions-wrapp--top"},this.hint=null,this.hintValue="",this.selection=null,this.overlayMobileState="off",this.isMouseDownOnSearchElements=!1,this.initialize(),this.setOptions(s)}d.utils=t,e.DgwtWcasAutocompleteSearch=d,d.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",containerDetailsWidth:"auto",showDetailsPanel:!1,showImage:!1,showPrice:!1,showSKU:!1,showDescription:!1,showSaleBadge:!1,showFeaturedBadge:!1,dynamicPrices:!1,saleBadgeText:"sale",featuredBadgeText:"featured",minChars:3,maxHeight:600,deferRequestBy:0,params:{},formatResult:function(e,s,i,o){if(!s)return e;i&&(e=t.highlight(e,s));if(!o.convertHtml)return e;return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/<sup/g,"<sup").replace(/<\/sup/g,"</sup").replace(/sup>/g,"sup>").replace(/<(\/?(strong|b|br))>/g,"<$1>")},delimiter:null,zIndex:999999999,type:"GET",noCache:!1,isRtl:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,preserveInput:!1,searchFormClass:"dgwt-wcas-search-wrapp",containerClass:"dgwt-wcas-suggestions-wrapp",containerDetailsClass:"dgwt-wcas-details-wrapp",searchInputClass:"dgwt-wcas-search-input",preloaderClass:"dgwt-wcas-preloader",closeTrigger:"dgwt-wcas-close",formClass:"dgwt-wcas-search-form",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,isPremium:!1,overlayMobile:!1,preventBadQueries:!0,lookupFilter:function(e,t,s){return-1!==e.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(t){return"string"==typeof t?e.parseJSON(t):t},noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1,positionFixed:!1,debounceWaitMs:400,sendGAEvents:!0,enableGASiteSearchModule:!1,showProductVendor:!1,disableHits:!1,disableSubmit:!1},d.prototype={initialize:function(){var s=this;s.element.setAttribute("autocomplete","off"),s.createContainers(),s.registerEventsSearchBar(),s.registerEventsSuggestions(),s.registerEventsDetailsPanel(),s.registerIconHandler(),s.registerEventsFixedMenu(),s.fixPositionCapture=function(){s.adjustContainerWidth(),s.visible&&s.fixPosition()},e(window).on("resize.autocomplete",function(){var e=t.getActiveInstance();void 0!==e&&e.fixPositionCapture()}),s.initMobileMode(),s.hideAfterClickOutsideListener(),s.suggestionsContainer.addClass("js-dgwt-wcas-initialized"),s.detailsContainer&&s.detailsContainer.length>0&&s.detailsContainer.addClass("js-dgwt-wcas-initialized")},createContainers:function(t){var s=this.options;0==e("."+s.containerClass).length?(this.suggestionsContainer=e(d.utils.createNode(s.containerClass)),this.suggestionsContainer.appendTo(s.appendTo||"body"),this.suggestionsContainer.addClass("woocommerce"),!0===s.showImage&&this.suggestionsContainer.addClass("dgwt-wcas-has-img"),!0===s.showPrice&&this.suggestionsContainer.addClass("dgwt-wcas-has-price"),!0===s.showDescription&&this.suggestionsContainer.addClass("dgwt-wcas-has-desc"),!0===s.showSKU&&this.suggestionsContainer.addClass("dgwt-wcas-has-sku"),!0===s.showHeadings&&this.suggestionsContainer.addClass("dgwt-wcas-has-headings"),"auto"!==s.width&&this.suggestionsContainer.width(s.width)):this.suggestionsContainer=e("."+this.options.containerClass),this.canShowDetailsBox()&&(0==e("."+s.containerDetailsClass).length?(this.detailsContainer=e(d.utils.createNode(s.containerDetailsClass)),this.detailsContainer.appendTo(s.appendTo||"body"),this.detailsContainer.addClass("woocommerce")):this.detailsContainer=e("."+s.containerDetailsClass))},registerEventsSearchBar:function(){var s=this;e(document).on("click.autocomplete","."+s.options.closeTrigger,function(){t.getActiveInstance().close()}),s.el.closest("."+s.options.formClass).on("submit.autocomplete",function(t){if(s.options.disableSubmit)return t.preventDefault(),!1;var i=e(this).find("."+s.options.searchInputClass);if(i.length&&0===i.val().length)return t.preventDefault(),!1;s.suggestions.length>0&&e.each(s.suggestions,function(e,i){if(void 0!==i.type&&"product_variation"==i.type)return s.select(e),t.preventDefault(),!1})}),"complete"===document.readyState?s.positionPreloader():e(window).on("load",function(){s.positionPreloader()}),s.el.on("keydown.autocomplete",function(e){s.onKeyPress(e)}),s.el.on("keyup.autocomplete",function(e){s.onKeyUp(e)}),s.el.on("blur.autocomplete",function(){s.onBlur()}),s.el.on("focus.autocomplete",function(){s.onFocus()}),s.el.on("change.autocomplete",function(e){s.onKeyUp(e)}),s.el.on("input.autocomplete",function(e){s.onKeyUp(e)})},registerEventsSuggestions:function(){var s="."+this.classes.suggestion;if(!this.getSuggestionsContainer().hasClass("js-dgwt-wcas-initialized")){e(document).on("mouseenter.autocomplete",s,function(){var s=t.getActiveInstance();if(void 0!==s){var i=e(this).data("index"),o='.dgwt-wcas-suggestion[data-index="'+i+'"]',a=s.canShowDetailsBox()?100:1;s.selectedIndex!=i&&t.mouseHoverDebounce(function(){s.selectedIndex!==i&&(s.latestActivateSource="mouse",s.getDetails(s.suggestions[i]),s.activate(i))},o,a)}});var i=!1;e(document).on("click.autocomplete",s,function(s){if(i)s.preventDefault();else{var o=t.getActiveInstance();o.actionTriggerSource="click",i=!0,setTimeout(function(){i=!1},500),void 0!==s.ctrlKey&&!1!==s.ctrlKey||(o.select(e(this).data("index")),s.preventDefault())}}),e(document).on("mousedown.autocomplete",s,function(s){var o=this;0===s.button&&setTimeout(function(){i||t.getActiveInstance().select(e(o).data("index"))},250)}),e("."+this.options.containerClass).on("mousedown.autocomplete",function(e){t.getActiveInstance().isMouseDownOnSearchElements=!0})}},registerEventsDetailsPanel:function(){var s=this.getDetailsContainer();this.canShowDetailsBox()&&!s.hasClass("js-dgwt-wcas-initialized")&&(e(document).on("change.autocomplete",'[name="js-dgwt-wcas-quantity"]',function(t){e(this).closest(".js-dgwt-wcas-pd-addtc").find("[data-quantity]").attr("data-quantity",e(this).val())}),e("."+this.options.containerDetailsClass).on("mousedown.autocomplete",function(e){t.getActiveInstance().isMouseDownOnSearchElements=!0}))},registerIconHandler:function(){var s=this,i=s.getFormWrapper(),o=i.find("."+s.options.formClass);i.on("click.autocomplete",".js-dgwt-wcas-search-icon-handler",function(e){var t=i.find("."+s.options.searchInputClass);if(i.hasClass("dgwt-wcas-layout-icon-open"))s.hide(),o.hide(!0),i.removeClass("dgwt-wcas-layout-icon-open");else{var a=i.find(".dgwt-wcas-search-icon-arrow");o.hide(),a.hide(),i.addClass("dgwt-wcas-layout-icon-open"),s.positionIconSearchMode(i),o.fadeIn(200,function(){a.show(),s.positionPreloader(i),t.focus()})}}),0==e(".js-dgwt-wcas-initialized").length&&e(".js-dgwt-wcas-search-icon-handler").length>0&&e(document).on("click.autocomplete",function(i){if(e(".dgwt-wcas-layout-icon-open").length){var o=e(i.target);if(!(o.closest("."+s.options.searchFormClass).length>0||o.closest("."+s.options.containerClass).length>0||o.closest("."+s.options.containerDetailsClass).length>0)){var a=t.getActiveInstance();if(void 0!==a){var n=a.getFormWrapper().find("."+s.options.formClass);n.hide(),a.hide(!0),n.css({left:"0"})}s.hideIconModeSearch()}}}),e(window).on("resize.autocomplete",function(){s.applyFlexibleMode()}),"complete"==document.readyState?s.applyFlexibleMode():e(window).on("load.autocomplete",function(){s.applyFlexibleMode()})},registerEventsFixedMenu:function(){var t=this;e(window).on("scroll.autocomplete",function(){if(t.suggestions.length>0&&t.elementOrParentIsFixed(t.getFormWrapper()))if(0===e(window).scrollTop()){[1,10,20,30,40,50,60,70,80,90,120,140,170,200,250,400,700,1e3,2e3].forEach(function(e){setTimeout(function(){t.fixHeight(),t.fixPositionCapture()},e)})}else t.fixHeight(),t.fixPositionCapture()})},initMobileMode:function(){var e=this,t=e.getFormWrapper();t.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&e.isMobileMode()&&(t.prepend('<div class="js-dgwt-wcas-enable-mobile-form dgwt-wcas-enable-mobile-form"></div>'),t.find(".js-dgwt-wcas-enable-mobile-form").on("click.autocomplete",function(t){e.enableOverlayMobile()}))},applyFlexibleMode:function(){var t=e(".js-dgwt-wcas-layout-icon-flexible");t.length&&(this.isMobileMode()?(t.addClass("js-dgwt-wcas-layout-icon"),t.addClass("dgwt-wcas-layout-icon")):(t.removeClass("js-dgwt-wcas-layout-icon"),t.removeClass("dgwt-wcas-layout-icon")),t.addClass("dgwt-wcas-layout-icon-flexible-loaded"))},onFocus:function(){e("."+this.options.searchFormClass).removeClass("dgwt-wcas-active"),this.getFormWrapper().addClass("dgwt-wcas-active"),this.fixPositionCapture(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var t=this.options,s=this.el.val(),i=this.getQuery(s);this.isMobileMode()||this.isMouseDownOnSearchElements||(this.hide(),this.selection&&this.currentValue!==i&&(t.onInvalidateSelection||e.noop).call(this.element))},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(t){var s=this,i=s.getSuggestionsContainer(),o=e.extend({},s.options,t);(s.isLocal=Array.isArray(o.lookup),s.isLocal&&(o.lookup=s.verifySuggestionsFormat(o.lookup)),o.orientation=s.validateOrientation(o.orientation,"bottom"),i.css({"max-height":s.canShowDetailsBox()?"none":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex}),!0===o.showDetailsPanel)&&s.getDetailsContainer().css({"z-index":o.zIndex-1});o.onSearchComplete=function(){s.getFormWrapper().removeClass("dgwt-wcas-processing"),s.preloader("hide","form","dgwt-wcas-inner-preloader"),s.showCloseButton()},this.options=o},clearCache:function(){this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.badQueries=[]},clear:function(e){e&&this.clearCache(),this.currentValue="",this.suggestions=[]},close:function(){this.hide(),this.clear(!1),this.hideCloseButton(),this.el.closest("."+this.options.searchFormClass).find("."+this.options.searchInputClass).val("").focus()},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=this.getFormOffset();this.getSuggestionsContainer().css(e),this.canShowDetailsBox()&&this.fixPositionDetailsBox()},fixPositionDetailsBox:function(){var t=this.getFormWrapper(),s=this.getSuggestionsContainer(),i=this.getDetailsContainer(),o=this.getFormOffset(),a=o.left;if(0==i.length)return!1;var n=!0===this.options.isRtl?1:2,r=Math.round(o.left);if(o.left=r+Math.round(s.width()+n),i.css(o),t.width()>=550)return e("body").removeClass("dgwt-wcas-details-outside"),e("body").removeClass("dgwt-wcas-details-right"),e("body").removeClass("dgwt-wcas-details-left"),void(!0===this.options.isRtl&&(s.css("left",r+Math.round(i.width()+n)+"px"),i.css("left",a+"px")));var l=e(window).width(),c=i.width(),d=i.offset();e("body").addClass("dgwt-wcas-details-outside"),!0===this.options.isRtl&&(o.left=o.left+1);var g=!1,u=!1;l<d.left+c&&(g=!0,e("body").removeClass("dgwt-wcas-details-right"),e("body").addClass("dgwt-wcas-details-left"),i.css("left",Math.round(parseFloat(s.css("left").replace("px","")))-i.outerWidth()+"px")),(d=i.offset()).left<1&&(u=!0,e("body").removeClass("dgwt-wcas-details-left"),e("body").addClass("dgwt-wcas-details-right")),u&&g?(e("body").removeClass("dgwt-wcas-details-left"),e("body").removeClass("dgwt-wcas-details-right"),e("body").addClass("dgwt-wcas-details-notfit")):e("body").removeClass("dgwt-wcas-details-notfit")},fixHeight:function(){if(1!=this.options.showDetailsPanel)return!1;var e=this.getSuggestionsContainer(),t=this.getDetailsContainer();e.css("height","auto"),t.css("height","auto");var s=e.outerHeight(),i=t.outerHeight();return e.find(".dgwt-wcas-suggestion:last-child").removeClass("dgwt-wcas-suggestion-no-border-bottom"),!(s<=340&&i<=340)&&(e.find(".dgwt-wcas-suggestion:last-child").addClass("dgwt-wcas-suggestion-no-border-bottom"),i<s&&t.css("height",s+"px"),s<i&&e.css("height",i+"px"),!1)},automaticAlignment:function(){var e=this,t=e.getFormWrapper().find(".dgwt-wcas-search-input"),s=e.getSuggestionsContainer(),i=e.getDetailsContainer();if(null==e.autoAligmentprocess){var o=[t.width(),s.height()];e.options.showDetailsPanel&&(o[2]=i.height()),e.autoAligmentprocess=setInterval(function(){var a=[t.width(),s.height()];e.options.showDetailsPanel&&(a[2]=i.height());for(var n=0;n<o.length;n++)if(o[n]!=a[n]){e.fixHeight(),e.fixPositionCapture(),o=a;break}e.options.showDetailsPanel&&(i.find(".dgwt-wcas-details-inner").height()-i.height()>2&&e.fixHeight())},10)}},getFormOffset:function(){var t=this.getFormWrapper(),s=this.getSuggestionsContainer(),i=this.options.orientation,o=t.outerHeight(),a=this.el.outerHeight(),n=this.el.offset(),r={top:n.top,left:n.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),d=-c+n.top-o,g=c+l-(n.top+a+o);i=Math.max(d,g)===d?"top":"bottom"}if("top"===i){s[0].getBoundingClientRect().top;var u=t[0].getBoundingClientRect().top;s.css("height","auto"),u<s.height()&&s.height(u-10),r.top+=-s.outerHeight()}else r.top+=a;return r},getFormWrapper:function(){return this.el.closest("."+this.options.searchFormClass)},getSuggestionsContainer:function(){return e("."+this.options.containerClass)},getDetailsContainer:function(){return e("."+this.options.containerDetailsClass)},scrollDownSuggestions:function(){var e=this.getSuggestionsContainer();e[0].scrollTop=e[0].scrollHeight},isCursorAtEnd:function(){var e,t=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){if(this.disabled||this.visible||e.which!==l||!this.currentValue){if(!this.disabled&&this.visible){switch(e.which){case i:this.el.val(this.currentValue),this.hide();break;case r:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case o:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case a:if(-1===this.selectedIndex)return void this.hide();this.actionTriggerSource="enter",this.select(this.selectedIndex);break;case n:this.moveUp();break;case l:this.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else this.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case n:case l:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var t=this.options,s=this.el.val(),i=this.getQuery(s);this.selection&&this.currentValue!==i&&(this.selection=null,(t.onInvalidateSelection||e.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=s,this.selectedIndex=-1,t.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<t.minChars?(this.hideCloseButton(),this.hide()):this.getSuggestions(i)}},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},canShowDetailsBox:function(){return 1==this.options.showDetailsPanel&&!this.isMobileMode()},isMobileMode:function(){return e(window).width()<this.options.mobileBreakpoint},getQuery:function(t){var s,i=this.options.delimiter;return i?(s=t.split(i),e.trim(s[s.length-1])):t.trim()},getSuggestionsLocal:function(t){var s,i=this.options,o=t.toLowerCase(),a=i.lookupFilter,n=parseInt(i.lookupLimit,10);return s={suggestions:e.grep(i.lookup,function(e){return a(e,t,o)})},n&&s.suggestions.length>n&&(s.suggestions=s.suggestions.slice(0,n)),s},getSuggestions:function(i){var o,a,n,r,l=this,c=l.options,d=c.serviceUrl,g=l.getFormWrapper();c.params[c.paramName]=i,void 0!==dgwt_wcas.current_lang&&(c.params.l=dgwt_wcas.current_lang),c.params=l.applyCustomParams(c.params),l.preloader("show","form","dgwt-wcas-inner-preloader"),g.addClass("dgwt-wcas-processing"),!1!==c.onSearchStart.call(l.element,c.params)&&(a=c.ignoreParams?null:c.params,e.isFunction(c.lookup)?c.lookup(i,function(e){l.suggestions=e.suggestions,l.suggest(),l.selectFirstSuggestion(e.suggestions),c.onSearchComplete.call(l.element,i,e.suggestions)}):(l.isLocal?o=l.getSuggestionsLocal(i):(e.isFunction(d)&&(d=d.call(l.element,i)),n=d+"?"+e.param(a||{}),o=l.cachedResponse[n]),o&&Array.isArray(o.suggestions)?(l.suggestions=o.suggestions,l.suggest(),l.selectFirstSuggestion(o.suggestions),c.onSearchComplete.call(l.element,i,o.suggestions)):l.isBadQuery(i)?c.onSearchComplete.call(l.element,i,[]):(l.abortAjax(),r={url:d,data:a,type:c.type,dataType:c.dataType},e.extend(r,c.ajaxSettings),s.object=l,s.ajaxSettings=r,t.debounce(function(){var t=s.object,o=s.ajaxSettings;t.currentRequest=e.ajax(o).done(function(e){var s;t.currentRequest=null,void 0!==(s=t.options.transformResult(e,i)).suggestions&&(t.processResponse(s,i,n),t.selectFirstSuggestion(s.suggestions),1===s.suggestions.length&&void 0!==s.suggestions[0].type&&"no-results"===s.suggestions[0].type?t.gaEvent(i,"Autocomplete Search without results"):t.gaEvent(i,"Autocomplete Search with results")),t.fixPositionCapture(),t.options.onSearchComplete.call(t.element,i,s.suggestions),t.updatePrices()}).fail(function(e,s,o){t.options.onSearchError.call(t.element,i,e,s,o)})},c.debounceWaitMs))))},getDetails:function(t){var s=this;if(!s.canShowDetailsBox())return!1;if(null!=t&&void 0!==t.type&&("string"!=typeof t.type||"more_products"!==t.type)){s.fixHeight();s.getDetailsContainer();var i=s.prepareSuggestionObjectID(t);if(null!=s.cachedDetails[i])s.detailsPanelSetScene(i),s.fixHeight(),s.fixPositionCapture();else{var o={action:dgwt_wcas.action_result_details,items:[]};if(e.each(s.suggestions,function(e,t){if(void 0!==t.type&&"more_products"!=t.type&&"headline"!=t.type){var i={objectID:s.prepareSuggestionObjectID(t),value:null!=t.value?t.value:""};o.items.push(i)}}),s.detailsPanelClearScene(),s.preloader("show","details",""),-1!=e.inArray(i,s.detailsRequestsSent))return;s.detailsRequestsSent.push(i),e.ajax({data:o,type:"post",url:dgwt_wcas.ajax_details_endpoint,success:function(e){var t="string"==typeof e?jQuery.parseJSON(e):e;if(void 0!==t.items)for(var i=0;i<t.items.length;i++){var o=t.items[i].objectID;if(s.cachedDetails[o]={html:t.items[i].html},s.detailsPanelAddToScene(o),void 0!==t.items[i].price&&t.items[i].price.length>0&&(s.cachedPrices[o]=t.items[i].price),void 0!==t.items[i].imageSrc&&t.items[i].imageSrc.length>0)(new Image).src=t.items[i].imageSrc}s.preloader("hide","details","");var a=s.prepareSuggestionObjectID(s.suggestions[s.selectedIndex]);null!=s.cachedDetails[a]?s.detailsPanelSetScene(a):s.detailsPanelClearScene(),s.fixPositionCapture(),s.fixHeight(),s.updatePrices(!0)},error:function(e,t){s.preloader("hide","details",""),s.detailsPanelClearScene(),s.fixPositionCapture(),s.fixHeight()}})}e(document).trigger("dgwtWcasDetailsPanelLoaded",s)}},updatePrices:function(t){var s,i,o=this,a=[];if(o.options.showPrice&&o.options.dynamicPrices&&0!=o.suggestions.length){for(s=0;s<o.suggestions.length;s++)if(void 0!==o.suggestions[s].type&&("product"==o.suggestions[s].type||"product_variation"==o.suggestions[s].type)){var n="product__"+o.suggestions[s].post_id;void 0!==o.cachedPrices[n]?o.updatePrice(s,o.cachedPrices[n]):(o.applyPreloaderForPrice(s),a.push(o.suggestions[s].post_id))}if(!t&&a.length>0){var r={action:void 0===dgwt_wcas.action_get_prices?"dgwt_wcas_get_prices":dgwt_wcas.action_get_prices,items:a};e.ajax({data:r,type:"post",url:dgwt_wcas.ajax_prices_endpoint,success:function(e){if(void 0!==e.success&&e.success&&e.data.length>0)for(s=0;s<e.data.length;s++){var t=e.data[s].id,a=e.data[s].price;if(o.suggestions.length>0)for(i=0;i<o.suggestions.length;i++)if(void 0!==o.suggestions[i].type&&("product"==o.suggestions[i].type||"product_variation"==o.suggestions[i].type)&&o.suggestions[i].post_id==t){var n="product__"+t;o.cachedPrices[n]=a,o.updatePrice(i,a)}}},error:function(e,t){}})}}},updatePrice:function(t,s){if(void 0!==this.suggestions[t]){this.suggestions[t].price=s;var i=e(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+t+'"] .dgwt-wcas-sp');i.length&&i.html(s)}},applyCustomParams:function(e){if("object"==typeof dgwt_wcas.custom_params){var t=dgwt_wcas.custom_params;for(var s in t)e[s]=t[s]}var i=this.el.data("custom-params");if("object"==typeof i)for(var s in i)e[s]=i[s];return e},applyPreloaderForPrice:function(t){if(void 0!==this.suggestions[t]){var s=e(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+t+'"] .dgwt-wcas-sp');s.length&&s.html('<div class="dgwt-wcas-preloader-price"><div class="dgwt-wcas-preloader-price-inner"> <div></div><div></div><div></div></div></div>')}},prepareSuggestionObjectID:function(e){var t="";return void 0!==e&&void 0!==e.type&&(null!=e.post_id&&(t=e.type+"__"+e.post_id,"product_variation"===e.type&&(t+="__"+e.variation_id),void 0!==e.post_type&&(t=e.type+"__"+e.post_id+"__"+e.post_type)),null!=e.term_id&&null!=e.taxonomy&&(t=e.type+"__"+e.term_id+"__"+e.taxonomy)),t},detailsPanelSetScene:function(e){var s=this.getDetailsContainer(),i=t.hashCode(e),o=s.find('.dgwt-wcas-details-inner[data-object="'+i+'"]');o.length&&(this.preloader("hide","details",""),this.detailsPanelClearScene(),o.addClass("dgwt-wcas-details-inner-active"))},detailsPanelAddToScene:function(e){var s=this.getDetailsContainer(),i=this.cachedDetails[e],o=t.hashCode(e),a="";void 0!==i&&"string"==typeof i.html&&(a=i.html.replace("<div ",'<div data-object="'+o+'" ')),0==s.find('.dgwt-wcas-details-inner[data-object="'+o+'"]').length&&s.append(a)},detailsPanelClearScene:function(){var e=this.getDetailsContainer().find(".dgwt-wcas-details-inner");e.length&&e.removeClass("dgwt-wcas-details-inner-active")},selectFirstSuggestion:function(t){var s=0,i=!1;this.canShowDetailsBox()&&("undefined"!=t&&t.length>0&&e.each(this.suggestions,function(e,t){if(void 0!==t.type&&"more_products"!=t.type&&"headline"!=t.type&&"no-results"!=t.type)return s=e,!1;void 0!==t.type&&"no-results"!==t.type||(i=!0)}),i||(this.latestActivateSource="system",this.getDetails(t[s]),this.activate(s)))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,s=t.length;s--;)if(0===e.indexOf(t[s]))return!0;return!1},hide:function(t){this.getFormWrapper();var s=this.getSuggestionsContainer(),i=this.getDetailsContainer();e.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,container),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),s.hide(),s.removeClass(this.classes.suggestionsContainerOrientTop),i.hide(),e("body").removeClass("dgwt-wcas-open"),e("body").removeClass("dgwt-wcas-block-scroll"),e("body").removeClass("dgwt-wcas-is-details"),e("body").removeClass("dgwt-wcas-full-width"),e("body").removeClass("dgwt-wcas-nores"),e("body").removeClass("dgwt-wcas-details-outside"),e("body").removeClass("dgwt-wcas-details-right"),e("body").removeClass("dgwt-wcas-details-left"),null!=this.autoAligmentprocess&&(clearInterval(this.autoAligmentprocess),this.autoAligmentprocess=null),"boolean"==typeof t&&t&&(this.hideCloseButton(),this.currentValue="",this.suggestions=[]),this.signalHint(null)},positionIconSearchMode:function(t){var s=-20,i=t.find("."+this.options.formClass),o=i.width(),a=e(window).width(),n=t[0].getBoundingClientRect().left;i[0].getBoundingClientRect().left;var r=(n+10)/a;s=Math.floor(o*r*-1),s=Math.max(s,-1*n),i.css({left:s+"px"})},hideIconModeSearch:function(){var t=e(".dgwt-wcas-layout-icon-open");t.length>0&&t.removeClass("dgwt-wcas-layout-icon-open")},hideAfterClickOutsideListener:function(){var t=this;t.isMobileMode()||e(document).mouseup(function(s){if(t.visible){t.getSuggestionsContainer(),t.getDetailsContainer();var i=!(e(s.target).closest("."+t.options.searchFormClass).length>0||e(s.target).hasClass(t.options.searchFormClass)),o=!(e(s.target).closest("."+t.options.containerClass).length>0||e(s.target).hasClass(t.options.containerClass));if(t.canShowDetailsBox()){var a=!(e(s.target).closest("."+t.options.containerDetailsClass).length>0||e(s.target).hasClass(t.options.containerDetailsClass));i&&o&&a&&t.hide()}else i&&o&&t.hide()}})},suggest:function(){if(this.suggestions.length){var t,s=this,i=s.options,o=i.groupBy,a=i.formatResult,n=s.getQuery(s.currentValue),r=s.classes.suggestion,l=s.classes.selected,c=s.getSuggestionsContainer(),d=s.getDetailsContainer(),g=e(s.noSuggestionsContainer),u=i.beforeRender,h="";i.triggerSelectOnValidInput&&s.isExactMatch(n)?s.select(0):(e("body").removeClass("dgwt-wcas-nores"),e.each(s.suggestions,function(l,c){var d="",g=!1,u="string"==typeof c.url&&c.url.length?c.url:"#";if(o&&(h+=function(e,s){var i=e.data[o];return t===i?"":'<div class="autocomplete-group"><strong>'+(t=i)+"</strong></div>"}(c,0)),void 0===c.type||"product"!=c.type&&"product_variation"!=c.type){var p,w=r,f="dgwt-wcas-st",m="",v="",b="",C=!0;"product_cat"===c.taxonomy?(w+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-cat",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.category+"</span>"),void 0!==c.breadcrumbs&&c.breadcrumbs&&(b=c.breadcrumbs+" > "+c.value,v+='<span class="dgwt-wcas-st-breadcrumbs">'+dgwt_wcas.labels.in+" "+c.breadcrumbs+"</span>")):"product_tag"===c.taxonomy?(w+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tag",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.tag+"</span>")):i.isPremium&&c.taxonomy===i.taxonomyBrands?(w+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-brand",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.brand+"</span>")):i.isPremium&&"vendor"===c.type?(w+=" dgwt-wcas-suggestion-vendor dgwt-wcas-suggestion-vendor",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.vendor+"</span>")):i.isPremium&&"post"===c.type?(w+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-tp-post",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.post+"</span>")):i.isPremium&&"page"===c.type?(w+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-page",i.showHeadings||(m+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.page+"</span>")):"more_products"===c.type?(w+=" js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more",f="dgwt-wcas-st-more",c.value=dgwt_wcas.labels.show_more+" ("+c.total+")",C=!1):i.showHeadings&&"headline"===c.type?(w+=" js-dgwt-wcas-suggestion-headline dgwt-wcas-suggestion-headline",void 0!==dgwt_wcas.labels[c.value+"_plu"]&&(c.value=dgwt_wcas.labels[c.value+"_plu"]),C=!1):(w+=" dgwt-wcas-suggestion-nores",c.value=dgwt_wcas.labels.no_results,C=!1,!0===i.showDetailsPanel&&s.detailsPanelClearScene(),e("body").addClass("dgwt-wcas-nores")),void 0!==c.image_src&&c.image_src&&(p=!0),b=b.length>0?' title="'+b+'"':"",h+='<a href="'+u+'" class="'+w+'" data-index="'+l+'">',p&&(h+='<span class="dgwt-wcas-si"><img src="'+c.image_src+'" /></span>',h+='<div class="dgwt-wcas-content-wrapp">'),h+="<span"+b+' class="'+f+'">',"vendor"===c.type?(h+='<span class="dgwt-wcas-st-title">'+m+a(c.value,n,C,i)+v+"</span>",c.shop_city&&(h+='<span class="dgwt-wcas-vendor-city"><span> - </span>'+a(c.shop_city,n,!0,i)+"</span>"),void 0!==c.desc&&c.desc&&(h+='<span class="dgwt-wcas-sd">'+a(c.desc,n,!0,i)+"</span>")):h+=m+a(c.value,n,C,i)+v,h+="</span>",h+=p?"</div>":"",h+="</a>"}else{!0===i.showImage&&void 0!==c.thumb_html&&(g=!0);var y="product_variation"===c.type?" dgwt-wcas-suggestion-product-var":"";if(d+=void 0!==c.post_id?'data-post-id="'+c.post_id+'" ':"",d+=void 0!==c.taxonomy?'data-taxonomy="'+c.taxonomy+'" ':"",d+=void 0!==c.term_id?'data-term-id="'+c.term_id+'" ':"",h+='<a href="'+u+'" class="'+r+" dgwt-wcas-suggestion-product"+y+'" data-index="'+l+'" '+d+">",g&&(h+='<span class="dgwt-wcas-si">'+c.thumb_html+"</span>"),h+=g?'<div class="dgwt-wcas-content-wrapp">':"",h+='<span class="dgwt-wcas-st">',h+='<span class="dgwt-wcas-st-title">'+a(c.value,n,!0,i)+"</span>",!0===i.showSKU&&void 0!==c.sku&&c.sku.length>0&&(h+='<span class="dgwt-wcas-sku">('+dgwt_wcas.labels.sku_label+" "+a(c.sku,n,!0,i)+")</span>"),!0===i.showDescription&&void 0!==c.desc&&c.desc&&(h+='<span class="dgwt-wcas-sd">'+a(c.desc,n,!0,i)+"</span>"),!0===i.showProductVendor&&void 0!==c.vendor&&c.vendor){var _='<span class="dgwt-wcas-product-vendor"><span class="dgwt-wcas-product-vendor-label">'+dgwt_wcas.labels.vendor_sold_by+" </span>"+c.vendor+"</span>";void 0!==c.vendor_url&&c.vendor_url?h+='<span class="dgwt-wcas-product-vendor-link" data-url="'+c.vendor_url+'">'+_+"</span>":h+=_}h+="</span>",!0===i.showPrice&&void 0!==c.price&&(h+='<span class="dgwt-wcas-sp">'+c.price+"</span>"),!0===i.showFeaturedBadge&&!0===c.on_sale&&(h+='<span class="dgwt-wcas-badge dgwt-wcas-badge-os">'+i.saleBadgeText+"</span>"),!0===i.showFeaturedBadge&&!0===c.featured&&(h+='<span class="dgwt-wcas-badge dgwt-wcas-badge-f">'+i.featuredBadgeText+"</span>"),h+=g?"</div>":"",h+="</div>"}}),this.adjustContainerWidth(),g.detach(),c.html(h),e.isFunction(u)&&u.call(s.element,c,s.suggestions),c.show(),e("body").addClass("dgwt-wcas-open"),s.isMouseDownOnSearchElements=!1,s.automaticAlignment(),!0===i.showDetailsPanel&&(e("body").addClass("dgwt-wcas-is-details"),d.show(),s.fixHeight()),i.autoSelectFirst&&(s.selectedIndex=0,c.scrollTop(0),c.children("."+r).first().addClass(l)),s.visible=!0,s.fixPositionCapture(),"top"===s.options.orientation&&(s.getSuggestionsContainer().addClass(s.classes.suggestionsContainerOrientTop),e("body").addClass("dgwt-wcas-block-scroll"),setTimeout(function(){s.scrollDownSuggestions()},300)),s.findBestHint())}else this.hide()},adjustContainerWidth:function(){var t,s=this.options,i=e("body"),o=this.getFormWrapper(),a=this.getSuggestionsContainer(),n=this.getDetailsContainer(),r=this.getFormOffset();if(o.length){var l=getComputedStyle(o[0]).width;if(l=Math.round(parseFloat(l.replace("px",""))),"auto"===s.width&&(t=this.el.outerWidth(),a.css("width",t+"px")),this.canShowDetailsBox()){if(o.width()>=550)return i.addClass("dgwt-wcas-full-width"),l%2==0?(a.css("width",Math.round(l/2)),n.css("width",Math.round(l/2))):(a.css("width",Math.floor(l/2)),n.css("width",Math.ceil(l/2))),i.removeClass("dgwt-wcas-details-left"),i.removeClass("dgwt-wcas-details-right"),void(!0===s.isRtl?n.css("left","0"):a.css("left",l/2+r.left+"px"));i.addClass("dgwt-wcas-details-right")}}},positionPreloader:function(t){var s="object"==typeof t?t.find(".dgwt-wcas-search-submit"):e(".dgwt-wcas-search-submit");s.length>0&&s.each(function(){var t=e(this).closest(".dgwt-wcas-search-wrapp").find(".dgwt-wcas-preloader");1==dgwt_wcas.is_rtl?t.css("left",6+e(this).outerWidth()+"px"):t.css("right",e(this).outerWidth()+"px")})},findBestHint:function(){var t=this.el.val().toLowerCase(),s=null;t&&(e.each(this.suggestions,function(e,i){var o=0===i.value.toLowerCase().indexOf(t);return o&&(s=i),!o}),this.signalHint(s))},signalHint:function(t){var s="";t&&(s=this.currentValue+t.value.substr(this.currentValue.length)),this.hintValue!==s&&(this.hintValue=s,this.hint=t,(this.options.onHint||e.noop)(s))},preloader:function(e,t,s){var i,o,a="dgwt-wcas-preloader-wrapp",n=null==s?a:a+" "+s;if("form"===t){if(1!=dgwt_wcas.show_preloader)return;o=this.getFormWrapper().find(".dgwt-wcas-preloader")}else"details"===t&&(o=this.getDetailsContainer());if(0!=o.length)if("form"!==t){var r=o.find("."+a);if("hide"!==e){if("show"===e){var l=this.options.isRtl?"-rtl":"";i='<div class="'+n+'"><img class="dgwt-wcas-placeholder-preloader" src="'+dgwt_wcas.img_url+"placeholder"+l+'.png" /></div>',this.detailsPanelClearScene(),r.length&&r.remove(),o.prepend(i)}}else r.length&&r.remove()}else"hide"===e?(o.removeClass(s),o.html("")):(o.addClass(s),"string"==typeof dgwt_wcas.preloader_icon&&o.html(dgwt_wcas.preloader_icon))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,s){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=s),t},processResponse:function(e,t,s){var i=this.options;e.suggestions=this.verifySuggestionsFormat(e.suggestions),i.noCache||(this.cachedResponse[s]=e,i.preventBadQueries&&!e.suggestions.length&&this.badQueries.push(t)),t===this.getQuery(this.currentValue)&&("top"===this.options.orientation&&e.suggestions.reverse(),this.suggestions=e.suggestions,this.suggest())},activate:function(t){var s,i=this.classes.selected,o=this.getSuggestionsContainer(),a=o.find("."+this.classes.suggestion);return o.find("."+i).removeClass(i),this.selectedIndex=t,-1!==this.selectedIndex&&a.length>this.selectedIndex?(s=a.get(this.selectedIndex),e(s).addClass(i),s):null},selectHint:function(){var t=e.inArray(this.hint,this.suggestions);this.select(t)},select:function(e){this.options.disableHits||(this.hide(),this.onSelect(e))},moveUp:function(){if(-1!==this.selectedIndex){if(this.latestActivateSource="key",0===this.selectedIndex)return this.getSuggestionsContainer().children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint();this.adjustScroll(this.selectedIndex-1,"up")}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&(this.latestActivateSource="key",this.adjustScroll(this.selectedIndex+1,"down"))},adjustScroll:function(t,s){if("headline"===this.suggestions[t].type&&(t="down"===s?t+1:t-1),void 0!==this.suggestions[t]){var i=this.activate(t);if(this.getDetails(this.suggestions[t]),"more_products"!==this.suggestions[t].type&&i&&!this.canShowDetailsBox()){var o,a,n,r=this.getSuggestionsContainer(),l=e(i).outerHeight();o=i.offsetTop,n=(a=r.scrollTop())+this.options.maxHeight-l,o<a?r.scrollTop(o):o>n&&r.scrollTop(o-this.options.maxHeight+l),this.options.preserveInput||(this.ignoreValueChange=!0),this.signalHint(null)}}},onSelect:function(t){var s=this.options.onSelect,i=this.suggestions[t];void 0===i.type||"more_products"!==i.type&&("enter"!==this.actionTriggerSource||"key"==this.latestActivateSource||"product_variation"==i.type)?(this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),i.url.length>0&&(window.location.href=i.url),this.signalHint(null),this.suggestions=[],this.selection=i,e.isFunction(s)&&s.call(this.element,i)):this.el.closest("form").trigger("submit")},getValue:function(e){var t,s,i=this.options.delimiter;return i?1===(s=(t=this.currentValue).split(i)).length?e:t.substr(0,t.length-s[s.length-1].length)+e:e},dispose:function(){var t=this.el,s=this.getFormWrapper(),i=this.getSuggestionsContainer(),o=(this.getDetailsContainer(),t.closest("."+this.options.formClass),s.find(".js-dgwt-wcas-enable-mobile-form"));s.length&&s.find("*").each(function(){e(this).off(".autocomplete")});t.removeData("autocomplete"),e(window).off("resize.autocomplete",this.fixPositionCapture),s.removeClass("dgwt-wcas-active"),this.close(),o.length&&o.remove(),i.length&&i.html("")},enableOverlayMobile:function(){var t=this;if("on"!==t.overlayMobileState){t.overlayMobileState="on";var s,i=t.getFormWrapper(),o=t.getSuggestionsContainer(),a="";e("html").addClass("dgwt-wcas-overlay-mobile-on"),a+='<div class="js-dgwt-wcas-overlay-mobile dgwt-wcas-overlay-mobile">',a+='<div class="dgwt-wcas-om-bar js-dgwt-wcas-om-bar">',a+='<button class="dgwt-wcas-om-return js-dgwt-wcas-om-return">',"string"==typeof dgwt_wcas.back_icon&&(a+=dgwt_wcas.back_icon),a+="</button>",a+="</div>",a+="</div>",e(t.options.mobileOverlayWrapper).append(a),(s=e(".js-dgwt-wcas-overlay-mobile")).css("zIndex",99999999999),i.after('<span class="js-dgwt-wcas-om-hook"></span>'),i.appendTo(".js-dgwt-wcas-om-bar"),o.appendTo(".js-dgwt-wcas-om-bar"),i.addClass("dgwt-wcas-search-wrapp-mobile"),i.hasClass("dgwt-wcas-has-submit")&&(i.addClass("dgwt-wcas-has-submit-off"),i.removeClass("dgwt-wcas-has-submit")),i.find("."+t.options.searchInputClass).focus(),e(document).on("click.autocomplete",".js-dgwt-wcas-om-return",function(e){t.disableOverlayMobile(s)})}},disableOverlayMobile:function(t){var s=this,i=s.getSuggestionsContainer(),o=e(".js-dgwt-wcas-om-bar").find("."+s.options.searchFormClass);o.hasClass("dgwt-wcas-has-submit-off")&&(o.removeClass("dgwt-wcas-has-submit-off"),o.addClass("dgwt-wcas-has-submit")),o.removeClass("dgwt-wcas-search-wrapp-mobile"),e("html").removeClass("dgwt-wcas-overlay-mobile-on"),i.appendTo("body"),i.removeAttr("body-scroll-lock-ignore"),e(".js-dgwt-wcas-om-hook").after(o),e(".js-dgwt-wcas-overlay-mobile").remove(),e(".js-dgwt-wcas-om-hook").remove(),setTimeout(function(){o.find("."+s.options.searchInputClass).val("");var e=o.find(".dgwt-wcas-close");o.length>0&&(e.removeClass("dgwt-wcas-close"),e.html("")),s.hide()},150),s.overlayMobileState="off"},showCloseButton:function(){var e=void 0!==dgwt_wcas.close_icon?dgwt_wcas.close_icon:"",t=this.getFormWrapper().find("."+this.options.preloaderClass);t.addClass(this.options.closeTrigger),t.html(e)},hideCloseButton:function(){var e=this.getFormWrapper().find("."+this.options.closeTrigger);e.length&&(e.removeClass(this.options.closeTrigger),e.html(""))},elementOrParentIsFixed:function(t){var s=t.add(t.parents()),i=!1;return s.each(function(){if("fixed"===e(this).css("position"))return i=!0,!1}),i},gaEvent:function(e,t){var s=!(!window.hasOwnProperty("GoogleAnalyticsObject")||!window.hasOwnProperty(window.GoogleAnalyticsObject))&&window[window.GoogleAnalyticsObject];if(this.options.sendGAEvents)try{if("undefined"!=typeof gtag)gtag("event","autocomplete_search",{event_label:e,event_category:t});else if(!1!==s){var i=s.getAll()[0];i&&i.send({hitType:"event",eventCategory:t,eventAction:"autocomplete_search",eventLabel:e})}}catch(e){}if(this.options.enableGASiteSearchModule)try{if("undefined"!=typeof gtag)gtag("event","page_view",{page_path:"/?s="+encodeURI(e)+"&post_type=product&dgwt_wcas=1"});else if(!1!==s){var o=s.getAll()[0];o&&(o.set("page","/?s="+encodeURI(e)+"&post_type=product&dgwt_wcas=1"),o.send("pageview"))}}catch(e){}}},e.fn.dgwtWcasAutocomplete=function(t,s){return arguments.length?this.each(function(){var i=e(this),o=i.data("autocomplete");"string"==typeof t?o&&"function"==typeof o[t]&&o[t](s):(o&&o.dispose&&o.dispose(),o=new d(this,t),i.data("autocomplete",o))}):this.first().data("autocomplete")},e.fn.autocomplete||(e.fn.autocomplete=e.fn.dgwtWcasAutocomplete),function(){function t(){var t=e(".dgwt-wcas-search-input"),s=[];t.length>1&&t.each(function(){var t=e(this).attr("id");if(-1==e.inArray(t,s))s.push(t);else{var i=Math.random().toString(36).substring(2,6);i="dgwt-wcas-search-input-"+i,e(this).attr("id",i),e(this).closest("form").find("label").attr("for",i)}})}function s(){var t=e(".dgwt-wcas-search-input");t.length>0&&t.each(function(){"object"!=typeof e(this).data("autocomplete")&&e(this).dgwtWcasAutocomplete(window.dgwt_wcas.config)})}navigator.userAgent.match(/Trident\/7\./)&&function(e,t){function s(e,t){var s=arguments.length>2?arguments[2]:[];if(!1===a(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,s)}function i(e,t,s){var i={value:s,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(e,t,i)}function o(e,t){return e[t]}function a(e){return"function"==typeof e}function n(e){if(null===e||e===t)throw TypeError();return Object(e)}function r(e,s){var i=function(e,t){return n(e)[t]}(e,s);if(null===i||i===t)return t;if(!1===a(i))throw new TypeError("Method not callable: "+s);return i}function l(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function c(s){if("object"!==l(s))return!1;var i="Symbol"in e&&"match"in e.Symbol?o(s,e.Symbol.match):t;if(i!==t)return Boolean(i);try{var a=s.lastIndex;return s.lastIndex=0,RegExp.prototype.exec.call(s),!0}catch(e){}finally{s.lastIndex=a}return!1}function d(e,t){return l(e)===l(t)&&("number"===l(e)?!(!isNaN(e)||!isNaN(t))||1/e==1/0&&1/t==-1/0||1/e==-1/0&&1/t==1/0||e===t:function(e,t){return e===t}(e,t))}function g(e){if("symbol"===l(e))throw new TypeError("Cannot convert a Symbol value to a number");var t=Number(e);return isNaN(t)?0:1/t==1/0||1/t==-1/0||t===1/0||t===-1/0?t:(t<0?-1:1)*Math.floor(Math.abs(t))}function u(i){var n=arguments.length>1?arguments[1]:t;if("object"===l(i)){if(arguments.length<2)var c="default";else n===String?c="string":n===Number&&(c="number");var d="function"==typeof e.Symbol&&"symbol"==typeof e.Symbol.toPrimitive?r(i,e.Symbol.toPrimitive):t;if(d!==t){var g=s(d,i,[c]);if("object"!==l(g))return g;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===c&&(c="number"),function(e,t){if("string"===t)var i=["toString","valueOf"];else i=["valueOf","toString"];for(var n=0;n<i.length;++n){var r=o(e,i[n]);if(a(r)){var c=s(r,e);if("object"!==l(c))return c}}throw new TypeError("Cannot convert to primitive.")}(i,c)}return i}function h(e){switch(l(e)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return h(u(e,String));default:return String(e)}}i(Array.prototype,"includes",function(e){var t=n(this),s=function(e){var t=g(e);return t<=0?0:Math.min(t,Math.pow(2,53)-1)}(o(t,"length"));if(0===s)return!1;var i=g(arguments[1]);if(i>=0)var a=i;else(a=s+i)<0&&(a=0);for(;a<s;){if(d(e,o(t,h(a))))return!0;a+=1}return!1}),i(String.prototype,"includes",function(e){var s=arguments.length>1?arguments[1]:t,i=h(function(e){if(null===e||e===t)throw TypeError(Object.prototype.toString.call(e)+" is not coercible to Object.");return e}(this));if(c(e))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var o=h(e),a=g(s),n=i.length,r=Math.min(Math.max(a,0),n);return-1!==String.prototype.indexOf.call(i,o,r)})}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),e(document).ready(function(){(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)&&e("html").addClass("dgwt-wcas-is-ios");var t=1==dgwt_wcas.show_details_box,s=dgwt_wcas.mobile_breakpoint;(jQuery(window).width()<s||"ontouchend"in document)&&(t=!1),window.dgwt_wcas.config={minChars:dgwt_wcas.min_chars,width:dgwt_wcas.sug_width,autoSelectFirst:!1,triggerSelectOnValidInput:!1,serviceUrl:dgwt_wcas.ajax_search_endpoint,paramName:"s",showDetailsPanel:t,showImage:1==dgwt_wcas.show_images,showPrice:1==dgwt_wcas.show_price,showDescription:1==dgwt_wcas.show_desc,showSKU:1==dgwt_wcas.show_sku,showSaleBadge:1==dgwt_wcas.show_sale_badge,showFeaturedBadge:1==dgwt_wcas.show_featured_badge,dynamicPrices:!(void 0===dgwt_wcas.dynamic_prices||!dgwt_wcas.dynamic_prices),saleBadgeText:dgwt_wcas.labels.sale_badge,featuredBadgeText:dgwt_wcas.labels.featured_badge,isRtl:1==dgwt_wcas.is_rtl,showHeadings:1==dgwt_wcas.show_headings,isPremium:1==dgwt_wcas.is_premium,taxonomyBrands:dgwt_wcas.taxonomy_brands,mobileBreakpoint:s,mobileOverlayWrapper:dgwt_wcas.mobile_overlay_wrapper,debounceWaitMs:dgwt_wcas.debounce_wait_ms,sendGAEvents:dgwt_wcas.send_ga_events,convertHtml:dgwt_wcas.convert_html,enableGASiteSearchModule:dgwt_wcas.enable_ga_site_search_module,appendTo:void 0!==dgwt_wcas.suggestions_wrapper?dgwt_wcas.suggestions_wrapper:"body",showProductVendor:!(void 0===dgwt_wcas.show_product_vendor||!dgwt_wcas.show_product_vendor),disableHits:!(void 0===dgwt_wcas.disable_hits||!dgwt_wcas.disable_hits),disableSubmit:!(void 0===dgwt_wcas.disable_submit||!dgwt_wcas.disable_submit)},e(".dgwt-wcas-search-input").dgwtWcasAutocomplete(window.dgwt_wcas.config)}),e(window).on("load",function(){var t=0,s=setInterval(function(){var i=document.activeElement;if("object"==typeof i&&e(i).length&&e(i).hasClass("dgwt-wcas-search-input")){var o=e(i).closest(".dgwt-wcas-search-wrapp");o.length&&!o.hasClass("dgwt-wcas-active")&&(o.addClass("dgwt-wcas-active"),clearInterval(s))}t>10&&clearInterval(s),t++},500)}),e(document).ready(function(){setTimeout(function(){t(),s()},500)}),e(window).on("load",function(){setTimeout(function(){t(),s()},500),void 0!==window.elementorFrontend&&void 0!==window.elementorFrontend.documentsManager&&void 0!==window.elementorFrontend.documentsManager.documents&&e.each(elementorFrontend.documentsManager.documents,function(e,t){void 0!==t.getModal&&t.getModal&&t.getModal().on("show",function(){setTimeout(function(){s()},300)})})})}()});
|
composer/composer.json
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "dgora/ajax-search-for-woocommerce",
|
3 |
-
"description": "Help users easily find and discover products in the store",
|
4 |
-
"autoload": {
|
5 |
-
"psr-4": {
|
6 |
-
"DgoraWcas\\": "../includes/"
|
7 |
-
}
|
8 |
-
},
|
9 |
-
"config": {
|
10 |
-
"vendor-dir": "../vendor"
|
11 |
-
}
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
composer/composer.lock
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"_readme": [
|
3 |
-
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
-
"This file is @generated automatically"
|
6 |
-
],
|
7 |
-
"content-hash": "5c9c989cf6593d916f8d8741c5ea0f43",
|
8 |
-
"packages": [],
|
9 |
-
"packages-dev": [],
|
10 |
-
"aliases": [],
|
11 |
-
"minimum-stability": "stable",
|
12 |
-
"stability-flags": [],
|
13 |
-
"prefer-stable": false,
|
14 |
-
"prefer-lowest": false,
|
15 |
-
"platform": {
|
16 |
-
"php": "~5.5|~7.0"
|
17 |
-
},
|
18 |
-
"platform-dev": [],
|
19 |
-
"plugin-api-version": "2.0.0"
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/Helpers.php
CHANGED
@@ -182,7 +182,13 @@ class Helpers
|
|
182 |
break;
|
183 |
}
|
184 |
$svg .= ob_get_clean();
|
185 |
-
return apply_filters(
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
}
|
187 |
|
188 |
/**
|
182 |
break;
|
183 |
}
|
184 |
$svg .= ob_get_clean();
|
185 |
+
return apply_filters(
|
186 |
+
'dgwt/wcas/icon',
|
187 |
+
$svg,
|
188 |
+
$name,
|
189 |
+
$class,
|
190 |
+
$color
|
191 |
+
);
|
192 |
}
|
193 |
|
194 |
/**
|
includes/Integrations/Brands.php
CHANGED
@@ -21,6 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
* 4. Martfury Addons since v2.2.2 by drfuri.com
|
22 |
* 5. Brands for WooCommerce since v3.5.2 by BeRocket
|
23 |
* 6. WP Bingo by wpbingo
|
|
|
24 |
*/
|
25 |
class Brands {
|
26 |
/**
|
@@ -48,9 +49,12 @@ class Brands {
|
|
48 |
}
|
49 |
|
50 |
public function init() {
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
54 |
|
55 |
add_filter( 'dgwt/wcas/suggestion_details/taxonomy/headline', array( $this, 'rebuildDetailsHeader' ), 10, 4 );
|
56 |
add_filter( 'dgwt/wcas/taxonomies_with_images', array( $this, 'taxonomiesWithImages' ) );
|
@@ -102,6 +106,9 @@ class Brands {
|
|
102 |
case 'wpbingo/wpbingo.php':
|
103 |
$brandTaxonomy = 'product_brand';
|
104 |
break;
|
|
|
|
|
|
|
105 |
}
|
106 |
}
|
107 |
|
@@ -125,6 +132,7 @@ class Brands {
|
|
125 |
'martfury-addons/martfury-addons.php',
|
126 |
'brands-for-woocommerce/woocommerce-brand.php',
|
127 |
'wpbingo/wpbingo.php',
|
|
|
128 |
);
|
129 |
}
|
130 |
|
@@ -327,6 +335,9 @@ class Brands {
|
|
327 |
case 'brands-for-woocommerce/woocommerce-brand.php':
|
328 |
$result = true;
|
329 |
break;
|
|
|
|
|
|
|
330 |
}
|
331 |
|
332 |
return apply_filters( 'dgwt/wcas/brands/image_support', $result );
|
21 |
* 4. Martfury Addons since v2.2.2 by drfuri.com
|
22 |
* 5. Brands for WooCommerce since v3.5.2 by BeRocket
|
23 |
* 6. WP Bingo by wpbingo
|
24 |
+
* 7. Premmerce Brands for WooCommerce since v1.2.11 by premmerce
|
25 |
*/
|
26 |
class Brands {
|
27 |
/**
|
49 |
}
|
50 |
|
51 |
public function init() {
|
52 |
+
// Init brand stuff after theme is ready (to allow apply filters)
|
53 |
+
add_action( 'after_setup_theme', function () {
|
54 |
+
$this->setPluginInfo();
|
55 |
+
$this->setBrandTaxonomy();
|
56 |
+
$this->addSettings();
|
57 |
+
} );
|
58 |
|
59 |
add_filter( 'dgwt/wcas/suggestion_details/taxonomy/headline', array( $this, 'rebuildDetailsHeader' ), 10, 4 );
|
60 |
add_filter( 'dgwt/wcas/taxonomies_with_images', array( $this, 'taxonomiesWithImages' ) );
|
106 |
case 'wpbingo/wpbingo.php':
|
107 |
$brandTaxonomy = 'product_brand';
|
108 |
break;
|
109 |
+
case 'premmerce-woocommerce-brands/premmerce-brands.php':
|
110 |
+
$brandTaxonomy = 'product_brand';
|
111 |
+
break;
|
112 |
}
|
113 |
}
|
114 |
|
132 |
'martfury-addons/martfury-addons.php',
|
133 |
'brands-for-woocommerce/woocommerce-brand.php',
|
134 |
'wpbingo/wpbingo.php',
|
135 |
+
'premmerce-woocommerce-brands/premmerce-brands.php',
|
136 |
);
|
137 |
}
|
138 |
|
335 |
case 'brands-for-woocommerce/woocommerce-brand.php':
|
336 |
$result = true;
|
337 |
break;
|
338 |
+
case 'premmerce-woocommerce-brands/premmerce-brands.php':
|
339 |
+
$result = true;
|
340 |
+
break;
|
341 |
}
|
342 |
|
343 |
return apply_filters( 'dgwt/wcas/brands/image_support', $result );
|
includes/Integrations/Themes/Avada/Avada.php
CHANGED
@@ -123,6 +123,21 @@ class Avada {
|
|
123 |
return $args;
|
124 |
} );
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
}
|
128 |
|
@@ -141,8 +156,6 @@ class Avada {
|
|
141 |
if ( 'v6' !== Avada()->settings->get( 'header_layout' ) && false === $ubermenu ) {
|
142 |
if ( 'main_navigation' === $args->theme_location || 'sticky_navigation' === $args->theme_location ) {
|
143 |
if ( Avada()->settings->get( 'main_nav_search_icon' ) ) {
|
144 |
-
|
145 |
-
|
146 |
$items .= '<li class="fusion-custom-menu-item fusion-main-menu-search">';
|
147 |
$items .= do_shortcode( '[wcas-search-form layout="icon"]' );
|
148 |
$items .= '</li>';
|
@@ -175,18 +188,34 @@ class Avada {
|
|
175 |
width: auto;
|
176 |
}
|
177 |
|
178 |
-
.fusion-main-menu-search .dgwt-wcas-search-
|
179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
}
|
181 |
|
182 |
-
.fusion-
|
183 |
-
|
184 |
}
|
185 |
|
186 |
-
.fusion-
|
187 |
-
|
188 |
-
font-size: 15px;
|
189 |
-
line-height: 40px;
|
190 |
}
|
191 |
|
192 |
.fusion-header-v4 .fusion-main-menu {
|
123 |
return $args;
|
124 |
} );
|
125 |
|
126 |
+
add_filter( 'dgwt/wcas/icon', function ( $svg, $name, $class, $color ) {
|
127 |
+
if ( $name === 'magnifier-thin' ) {
|
128 |
+
ob_start();
|
129 |
+
?>
|
130 |
+
<svg version="1.1" class="<?php echo $class; ?>" xmlns="http://www.w3.org/2000/svg"
|
131 |
+
viewBox="0 0 30 32">
|
132 |
+
<path
|
133 |
+
d="M20.571 15.143q0-3.304-2.348-5.652t-5.652-2.348-5.652 2.348-2.348 5.652 2.348 5.652 5.652 2.348 5.652-2.348 2.348-5.652zM29.714 30q0 0.929-0.679 1.607t-1.607 0.679q-0.964 0-1.607-0.679l-6.125-6.107q-3.196 2.214-7.125 2.214-2.554 0-4.884-0.991t-4.018-2.679-2.679-4.018-0.991-4.884 0.991-4.884 2.679-4.018 4.018-2.679 4.884-0.991 4.884 0.991 4.018 2.679 2.679 4.018 0.991 4.884q0 3.929-2.214 7.125l6.125 6.125q0.661 0.661 0.661 1.607z"></path>
|
134 |
+
</svg>
|
135 |
+
<?php
|
136 |
+
$svg = ob_get_clean();
|
137 |
+
}
|
138 |
+
|
139 |
+
return $svg;
|
140 |
+
}, 10, 4 );
|
141 |
}
|
142 |
}
|
143 |
|
156 |
if ( 'v6' !== Avada()->settings->get( 'header_layout' ) && false === $ubermenu ) {
|
157 |
if ( 'main_navigation' === $args->theme_location || 'sticky_navigation' === $args->theme_location ) {
|
158 |
if ( Avada()->settings->get( 'main_nav_search_icon' ) ) {
|
|
|
|
|
159 |
$items .= '<li class="fusion-custom-menu-item fusion-main-menu-search">';
|
160 |
$items .= do_shortcode( '[wcas-search-form layout="icon"]' );
|
161 |
$items .= '</li>';
|
188 |
width: auto;
|
189 |
}
|
190 |
|
191 |
+
.fusion-main-menu-search .dgwt-wcas-search-wrapp {
|
192 |
+
margin-top: calc((var(--nav_height) / 2) - (var(--nav_typography-font-size) / 2));
|
193 |
+
}
|
194 |
+
|
195 |
+
.fusion-header-v7 .fusion-main-menu-search .dgwt-wcas-search-wrapp {
|
196 |
+
margin-top: 0;
|
197 |
+
}
|
198 |
+
|
199 |
+
.dgwt-wcas-ico-magnifier, .dgwt-wcas-ico-magnifier-handler {
|
200 |
+
max-width: none;
|
201 |
+
fill: var(--nav_typography-color);
|
202 |
+
max-height: var(--nav_typography-font-size);
|
203 |
+
}
|
204 |
+
|
205 |
+
.dgwt-wcas-ico-magnifier:hover, .dgwt-wcas-ico-magnifier-handler:hover {
|
206 |
+
fill: var(--menu_hover_first_color);
|
207 |
+
}
|
208 |
+
.dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier:hover {
|
209 |
+
fill: currentColor;
|
210 |
+
opacity: 0.7;
|
211 |
}
|
212 |
|
213 |
+
.fusion-is-sticky .dgwt-wcas-ico-magnifier, .fusion-is-sticky .dgwt-wcas-ico-magnifier-handler {
|
214 |
+
fill: var(--header_sticky_menu_color);
|
215 |
}
|
216 |
|
217 |
+
.fusion-is-sticky .dgwt-wcas-ico-magnifier:hover, .fusion-is-sticky .dgwt-wcas-ico-magnifier-handler:hover {
|
218 |
+
fill: var(--menu_hover_first_color);
|
|
|
|
|
219 |
}
|
220 |
|
221 |
.fusion-header-v4 .fusion-main-menu {
|
includes/Integrations/Themes/Estore/Estore.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace DgoraWcas\Integrations\Themes\Estore;
|
4 |
+
|
5 |
+
use DgoraWcas\Abstracts\ThemeIntegration;
|
6 |
+
|
7 |
+
// Exit if accessed directly
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
class Estore extends ThemeIntegration {
|
13 |
+
|
14 |
+
public function __construct() {
|
15 |
+
$this->themeSlug = 'estore';
|
16 |
+
$this->themeName = 'eStore';
|
17 |
+
|
18 |
+
parent::__construct();
|
19 |
+
}
|
20 |
+
}
|
includes/Integrations/Themes/EstorePro/EstorePro.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace DgoraWcas\Integrations\Themes\EstorePro;
|
4 |
+
|
5 |
+
use DgoraWcas\Abstracts\ThemeIntegration;
|
6 |
+
|
7 |
+
// Exit if accessed directly
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
class EstorePro extends ThemeIntegration {
|
13 |
+
|
14 |
+
public function __construct() {
|
15 |
+
$this->themeSlug = 'estore-pro';
|
16 |
+
$this->themeName = 'eStore Pro';
|
17 |
+
|
18 |
+
parent::__construct();
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Overwrite search
|
23 |
+
*
|
24 |
+
* @return void
|
25 |
+
*/
|
26 |
+
protected function maybeOverwriteSearch() {
|
27 |
+
// We load partial from free version of theme
|
28 |
+
$partialPath = DGWT_WCAS_DIR . 'partials/themes/estore.php';
|
29 |
+
if ( $this->canReplaceSearch() && file_exists( $partialPath ) ) {
|
30 |
+
require_once( $partialPath );
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|
includes/Integrations/Themes/ThemesCompatibility.php
CHANGED
@@ -180,11 +180,21 @@ class ThemesCompatibility {
|
|
180 |
'slug' => 'electro',
|
181 |
'name' => 'Electro',
|
182 |
),
|
183 |
-
'shopisle-pro'
|
184 |
'slug' => 'shopisle-pro',
|
185 |
'className' => 'ShopIslePro',
|
186 |
'name' => 'ShopIsle PRO',
|
187 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
);
|
189 |
}
|
190 |
|
@@ -194,7 +204,6 @@ class ThemesCompatibility {
|
|
194 |
* @return void
|
195 |
*/
|
196 |
private function loadCompatibilities() {
|
197 |
-
|
198 |
foreach ( $this->supportedThemes() as $theme ) {
|
199 |
if ( $theme['slug'] === $this->themeName ) {
|
200 |
|
180 |
'slug' => 'electro',
|
181 |
'name' => 'Electro',
|
182 |
),
|
183 |
+
'shopisle-pro' => array(
|
184 |
'slug' => 'shopisle-pro',
|
185 |
'className' => 'ShopIslePro',
|
186 |
'name' => 'ShopIsle PRO',
|
187 |
),
|
188 |
+
'estore' => array(
|
189 |
+
'slug' => 'estore',
|
190 |
+
'className' => 'Estore',
|
191 |
+
'name' => 'eStore',
|
192 |
+
),
|
193 |
+
'estore-pro' => array(
|
194 |
+
'slug' => 'estore-pro',
|
195 |
+
'className' => 'EstorePro',
|
196 |
+
'name' => 'eStore Pro',
|
197 |
+
),
|
198 |
);
|
199 |
}
|
200 |
|
204 |
* @return void
|
205 |
*/
|
206 |
private function loadCompatibilities() {
|
|
|
207 |
foreach ( $this->supportedThemes() as $theme ) {
|
208 |
if ( $theme['slug'] === $this->themeName ) {
|
209 |
|
includes/Settings.php
CHANGED
@@ -780,9 +780,12 @@ class Settings
|
|
780 |
$canUpdate = true;
|
781 |
}
|
782 |
|
|
|
783 |
if ( $canUpdate ) {
|
784 |
$updated = update_option( $this->settingSlug, $settings );
|
|
|
785 |
}
|
|
|
786 |
}
|
787 |
|
788 |
return $updated;
|
@@ -877,5 +880,13 @@ class Settings
|
|
877 |
}
|
878 |
return $is_premium;
|
879 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
|
881 |
}
|
780 |
$canUpdate = true;
|
781 |
}
|
782 |
|
783 |
+
|
784 |
if ( $canUpdate ) {
|
785 |
$updated = update_option( $this->settingSlug, $settings );
|
786 |
+
$this->settingsCache = array();
|
787 |
}
|
788 |
+
|
789 |
}
|
790 |
|
791 |
return $updated;
|
880 |
}
|
881 |
return $is_premium;
|
882 |
}
|
883 |
+
|
884 |
+
/**
|
885 |
+
* Clear settings cache
|
886 |
+
*/
|
887 |
+
public function clearCache()
|
888 |
+
{
|
889 |
+
$this->settingsCache = array();
|
890 |
+
}
|
891 |
|
892 |
}
|
languages/ajax-search-for-woocommerce.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: PACKAGE VERSION\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: Damian Góra <support@fibosearch.com>\n"
|
9 |
"Language-Team: \n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/"
|
16 |
|
17 |
-
#: includes/Admin/Troubleshooting.php:
|
18 |
msgid "\"Out of stock\" relationships"
|
19 |
msgstr ""
|
20 |
|
@@ -65,7 +65,7 @@ msgstr ""
|
|
65 |
msgid "-- Disabled"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: partials/admin/indexer-header.php:
|
69 |
#, php-format
|
70 |
msgid ""
|
71 |
"<b>Maybe your server can’t send an HTTP requests to itself</b>. Visit the "
|
@@ -79,17 +79,17 @@ msgid ""
|
|
79 |
"products "
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: includes/Admin/Troubleshooting.php:
|
83 |
msgid ""
|
84 |
"A real solution is to find the reason why the WP-Cron doesn’t work and fix "
|
85 |
"it."
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: includes/Admin/Troubleshooting.php:
|
89 |
msgid "A search engine's AJAX call did not return valid results"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/Admin/Troubleshooting.php:
|
93 |
#, php-format
|
94 |
msgid ""
|
95 |
"Add <strong>Archive Products</strong> widget to the template <strong>"
|
@@ -98,13 +98,21 @@ msgid ""
|
|
98 |
"documentation</a>."
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/Admin/Troubleshooting.php:
|
102 |
#, php-format
|
103 |
msgid ""
|
104 |
"Add a constant <code>%s</code> to your <code>wp-config.phps</code> file."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: partials/admin/indexer-header.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
msgid ""
|
109 |
"Add below code to your child theme’s <em>functions.php</em> file or via a "
|
110 |
"plugin that allows custom functions to be added, such as the <a href=\"https:"
|
@@ -121,11 +129,11 @@ msgstr ""
|
|
121 |
msgid "Add new rule"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: includes/Admin/Troubleshooting.php:
|
125 |
msgid "Add the following URL to the white list:"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/Admin/Troubleshooting.php:
|
129 |
msgid ""
|
130 |
"Adding extra rules to <code>/usr/local/nginx/conf/wpsecure_${vhostname}."
|
131 |
"conf</code>"
|
@@ -170,7 +178,7 @@ msgstr ""
|
|
170 |
msgid "Alternative ways to embed a search bar"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: includes/Admin/Troubleshooting.php:
|
174 |
#, php-format
|
175 |
msgid ""
|
176 |
"An error occurred while trying to connect to the database using a PDO_MYSQL "
|
@@ -213,7 +221,7 @@ msgstr ""
|
|
213 |
msgid "Autocomplete"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: includes/Integrations/Brands.php:
|
217 |
#, php-format
|
218 |
msgid "Based on the plugin %s"
|
219 |
msgstr ""
|
@@ -222,7 +230,7 @@ msgstr ""
|
|
222 |
msgid "Basic"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: includes/Admin/Troubleshooting.php:
|
226 |
msgid "Blocked search endpoint test"
|
227 |
msgstr ""
|
228 |
|
@@ -243,11 +251,11 @@ msgid "Build ID"
|
|
243 |
msgstr ""
|
244 |
|
245 |
#: partials/admin/indexer-header-demo.php:15
|
246 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
247 |
msgid "Build index"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
251 |
msgid "Canceling..."
|
252 |
msgstr ""
|
253 |
|
@@ -255,7 +263,7 @@ msgstr ""
|
|
255 |
msgid "Cancellation..."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: includes/Admin/Troubleshooting.php:
|
259 |
msgid ""
|
260 |
"Change the above-mentioned language codes to the correct format: <code>"
|
261 |
"xx</code>, <code>xxx</code>, <code>xx-xx</code> or <code>xx-xxxx</code>."
|
@@ -274,7 +282,7 @@ msgstr ""
|
|
274 |
msgid "Colors"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
278 |
msgid "Completed. Works."
|
279 |
msgstr ""
|
280 |
|
@@ -282,18 +290,26 @@ msgstr ""
|
|
282 |
msgid "Contact"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: partials/admin/indexer-header.php:
|
286 |
msgid ""
|
287 |
"Contact your hosting provider and ask for increasing the value of the <code>"
|
288 |
"max_connections</code> variable in your MySQL server. It will definitely "
|
289 |
"solve the problem."
|
290 |
msgstr ""
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
#: includes/Helpers.php:998
|
293 |
msgid "continue reading"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: includes/Admin/Troubleshooting.php:
|
297 |
#, php-format
|
298 |
msgid ""
|
299 |
"Could not load <code>wp-load.php</code> from the locations it normally is. "
|
@@ -301,7 +317,7 @@ msgid ""
|
|
301 |
"support</a>."
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: includes/Admin/Troubleshooting.php:
|
305 |
msgid "Custom location of wp-load.php file"
|
306 |
msgstr ""
|
307 |
|
@@ -317,7 +333,7 @@ msgstr ""
|
|
317 |
msgid "Default"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: includes/Admin/Troubleshooting.php:
|
321 |
msgid "Defender plugin by WPMU DEV blocks AJAX calls of the live search"
|
322 |
msgstr ""
|
323 |
|
@@ -325,11 +341,11 @@ msgstr ""
|
|
325 |
msgid "Details panel"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: includes/Admin/Troubleshooting.php:
|
329 |
msgid "Dismiss"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: includes/Admin/Troubleshooting.php:
|
333 |
#, php-format
|
334 |
msgid ""
|
335 |
"Due to the way the TranslatePress - Multilingual plugin works, we can only "
|
@@ -337,13 +353,13 @@ msgid ""
|
|
337 |
"version</a>."
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: includes/Admin/Troubleshooting.php:
|
341 |
msgid ""
|
342 |
"Edit <code>wp-config.php</code> file, find the <code>DB_HOST</code> constant,"
|
343 |
" and change its value from <code>localhost</code> to <code>127.0.0.1</code>."
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: includes/Admin/Troubleshooting.php:
|
347 |
msgid "Elementor search results template"
|
348 |
msgstr ""
|
349 |
|
@@ -356,21 +372,21 @@ msgstr ""
|
|
356 |
msgid "End"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: partials/admin/indexer-header.php:
|
360 |
#, php-format
|
361 |
msgid "Error code %s"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: includes/Admin/Troubleshooting.php:
|
365 |
msgid "Error establishing a database connection"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: includes/Admin/Troubleshooting.php:
|
369 |
#, php-format
|
370 |
msgid "Error type: <strong>%s</strong>"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
374 |
msgid "Errors"
|
375 |
msgstr ""
|
376 |
|
@@ -392,7 +408,7 @@ msgstr ""
|
|
392 |
msgid "Exclude/include products"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/Admin/Troubleshooting.php:
|
396 |
msgid "Extensions should looks like the picture below:"
|
397 |
msgstr ""
|
398 |
|
@@ -421,7 +437,7 @@ msgstr ""
|
|
421 |
msgid "FiboSearch Team"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: includes/Admin/Troubleshooting.php:
|
425 |
msgid ""
|
426 |
"FiboSearch uses a PDO_MYSQL driver in the search engine. A proper database "
|
427 |
"connection is required."
|
@@ -446,11 +462,11 @@ msgstr ""
|
|
446 |
msgid "Finalization... Wait a moment. (%s products)"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/Admin/Troubleshooting.php:
|
450 |
msgid "Find section <code>Access Control -> whitelist URL</code>"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/Admin/Troubleshooting.php:
|
454 |
msgid "Fix “Out of stock“ relationships"
|
455 |
msgstr ""
|
456 |
|
@@ -470,7 +486,7 @@ msgstr ""
|
|
470 |
msgid "Fuzzy search"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: includes/Admin/Troubleshooting.php:
|
474 |
#, php-format
|
475 |
msgid ""
|
476 |
"Go to <a href=\"%s\" target=\"_blank\">Tools -> Site Health</a> in your "
|
@@ -486,7 +502,7 @@ msgid ""
|
|
486 |
"Header -> Search</code> and enable <code>Predictive Search</code>"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: includes/Admin/Troubleshooting.php:
|
490 |
#, php-format
|
491 |
msgid ""
|
492 |
"Go to <code>Defender -> Security Tweaks -> <a href=\"%s\" target=\"_blank\">"
|
@@ -494,14 +510,14 @@ msgid ""
|
|
494 |
"exceptions: <code>%s</code>"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: includes/Admin/Troubleshooting.php:
|
498 |
#, php-format
|
499 |
msgid ""
|
500 |
"Go to <code>Security -> Settings -> <a href=\"%s\" target=\"_blank\">System "
|
501 |
"Tweaks</a></code> and uncheck <code>Disable PHP in Plugins</code> option."
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: includes/Admin/Troubleshooting.php:
|
505 |
#, php-format
|
506 |
msgid ""
|
507 |
"Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
|
@@ -509,7 +525,7 @@ msgid ""
|
|
509 |
"option <code>%s</code>."
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: includes/Admin/Troubleshooting.php:
|
513 |
#, php-format
|
514 |
msgid ""
|
515 |
"Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
|
@@ -517,32 +533,32 @@ msgid ""
|
|
517 |
"Searching by Text</code> extension and save changes."
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: includes/Admin/Troubleshooting.php:
|
521 |
#, php-format
|
522 |
msgid ""
|
523 |
"Go to the <code>Jetpack settings page -> <a href=\"%s\" target=\"_blank\">"
|
524 |
"Performance tab</a> -> disable the Search module</code>"
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: includes/Admin/Troubleshooting.php:
|
528 |
-
#: includes/Admin/Troubleshooting.php:
|
529 |
-
#: includes/Admin/Troubleshooting.php:
|
530 |
-
#: includes/Admin/Troubleshooting.php:
|
531 |
#, php-format
|
532 |
msgid "Go to the Indexer tab and click the button <i>%s</i>."
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: includes/Admin/Troubleshooting.php:
|
536 |
msgid ""
|
537 |
"Go to the multilingual plugin settings page and find the section where you "
|
538 |
"can edit the available languages."
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: includes/Admin/Troubleshooting.php:
|
542 |
msgid "Go to the settings"
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: includes/Admin/Troubleshooting.php:
|
546 |
msgid "Great! Our plugin works great with this version of WordPress."
|
547 |
msgstr ""
|
548 |
|
@@ -560,7 +576,7 @@ msgstr ""
|
|
560 |
msgid "Hard"
|
561 |
msgstr ""
|
562 |
|
563 |
-
#: includes/Admin/Troubleshooting.php:
|
564 |
msgid "Here are few samples NGINX config which helps other users:"
|
565 |
msgstr ""
|
566 |
|
@@ -578,7 +594,7 @@ msgid ""
|
|
578 |
"time now, and I hope you like it!"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: partials/admin/indexer-header.php:
|
582 |
msgid "Hide details"
|
583 |
msgstr ""
|
584 |
|
@@ -605,7 +621,7 @@ msgstr ""
|
|
605 |
msgid "Icon on mobile, search bar on desktop"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: includes/Admin/Troubleshooting.php:
|
609 |
#, php-format
|
610 |
msgid ""
|
611 |
"If the following errors are related to your theme or plugins, try to fix "
|
@@ -613,7 +629,7 @@ msgid ""
|
|
613 |
"target=\"_blank\">create a support ticket</a>."
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: partials/admin/indexer-header.php:
|
617 |
msgid ""
|
618 |
"If the indexer still doesn't work, add a constant <code>"
|
619 |
"define('DGWT_WCAS_INDEXER_MODE', 'sync');</code> to your <code>wp-config."
|
@@ -626,20 +642,20 @@ msgid ""
|
|
626 |
"Help your customers to find the right products even <span>10× faster</span>."
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: includes/Admin/Troubleshooting.php:
|
630 |
msgid ""
|
631 |
"If you have an object caching plugin, turn it off or check its settings. "
|
632 |
"Ideally, the transients should not be cached in any way and stored directly "
|
633 |
"in the database."
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: partials/admin/indexer-header.php:
|
637 |
msgid ""
|
638 |
"If you see the <b>Troubleshooting tab</b> above, click it and try to solve "
|
639 |
"the issues mentioned there"
|
640 |
msgstr ""
|
641 |
|
642 |
-
#: includes/Admin/Troubleshooting.php:
|
643 |
#, php-format
|
644 |
msgid ""
|
645 |
"If you think the search results page is displaying your products correctly, "
|
@@ -667,32 +683,32 @@ msgstr ""
|
|
667 |
msgid "Include"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: includes/Admin/Troubleshooting.php:
|
671 |
msgid ""
|
672 |
"Incompatible \"Searching by Text\" extension from WOOF - WooCommerce "
|
673 |
"Products Filter plugin is active"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: includes/Admin/Troubleshooting.php:
|
677 |
msgid ""
|
678 |
"Incompatible \"Searching by Text\" extension in WOOF - WooCommerce Products "
|
679 |
"Filter"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: includes/Admin/Troubleshooting.php:
|
683 |
msgid "Incompatible multilingual plugin setting"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: includes/Admin/Troubleshooting.php:
|
687 |
msgid "Incompatible plugins"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: includes/Admin/Troubleshooting.php:
|
691 |
msgid "Incompatible WPML Multilingual CMS plugin setting"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: includes/Admin/Troubleshooting.php:
|
695 |
-
#: includes/Admin/Troubleshooting.php:
|
696 |
msgid "Incorrect \"Add to cart\" behaviour in WooCommerce settings"
|
697 |
msgstr ""
|
698 |
|
@@ -712,7 +728,7 @@ msgstr ""
|
|
712 |
msgid "Index build start"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: includes/Admin/Troubleshooting.php:
|
716 |
msgid "Index completeness test"
|
717 |
msgstr ""
|
718 |
|
@@ -743,7 +759,11 @@ msgstr ""
|
|
743 |
msgid "Individual tips and support by FiboSearch team"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: includes/Admin/Troubleshooting.php:
|
|
|
|
|
|
|
|
|
747 |
msgid ""
|
748 |
"Install the <a target=\"_blank\" href=\"https://wordpress."
|
749 |
"org/plugins/advanced-cron-manager/\">Advanced Cron Manager</a> plugin to "
|
@@ -751,7 +771,7 @@ msgid ""
|
|
751 |
"related to the Indexer:"
|
752 |
msgstr ""
|
753 |
|
754 |
-
#: includes/Admin/Troubleshooting.php:
|
755 |
msgid ""
|
756 |
"Install the latest version of WordPress for our plugin to work as best it "
|
757 |
"can!"
|
@@ -761,14 +781,14 @@ msgstr ""
|
|
761 |
msgid "Interval"
|
762 |
msgstr ""
|
763 |
|
764 |
-
#: includes/Admin/Troubleshooting.php:
|
765 |
#, php-format
|
766 |
msgid "Invalid language code: <code>%s</code>"
|
767 |
msgid_plural "Invalid language codes: <code>%s</code>"
|
768 |
msgstr[0] ""
|
769 |
msgstr[1] ""
|
770 |
|
771 |
-
#: partials/admin/indexer-header.php:
|
772 |
#, php-format
|
773 |
msgid ""
|
774 |
"Is it still not working? Visit the <a target=\"_blank\" href=\"%s\">"
|
@@ -776,14 +796,14 @@ msgid ""
|
|
776 |
"request</a>"
|
777 |
msgstr ""
|
778 |
|
779 |
-
#: includes/Admin/Troubleshooting.php:
|
780 |
#, php-format
|
781 |
msgid ""
|
782 |
"Is it still not working? Write a <a target=\"_blank\" href=\"%s\">support "
|
783 |
"request</a>"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: includes/Admin/Troubleshooting.php:
|
787 |
msgid ""
|
788 |
"Is your website publicly available only for whitelisted IPs? <b>Add your "
|
789 |
"server IP to the whitelist</b>. That’s all. This is a common mistake when "
|
@@ -792,16 +812,16 @@ msgid ""
|
|
792 |
"requests to itself."
|
793 |
msgstr ""
|
794 |
|
795 |
-
#: includes/Admin/Troubleshooting.php:
|
796 |
-
#: includes/Admin/Troubleshooting.php:
|
797 |
msgid "Issue with WP-Cron"
|
798 |
msgstr ""
|
799 |
|
800 |
-
#: includes/Admin/Troubleshooting.php:
|
801 |
msgid "iThemes Security plugin blocks AJAX requests"
|
802 |
msgstr ""
|
803 |
|
804 |
-
#: includes/Admin/Troubleshooting.php:
|
805 |
msgid "Jetpack search module"
|
806 |
msgstr ""
|
807 |
|
@@ -823,7 +843,7 @@ msgstr ""
|
|
823 |
msgid "Logs"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: includes/Admin/Troubleshooting.php:
|
827 |
msgid "Loopback request"
|
828 |
msgstr ""
|
829 |
|
@@ -850,7 +870,7 @@ msgstr ""
|
|
850 |
msgid "maximum number of suggestions"
|
851 |
msgstr ""
|
852 |
|
853 |
-
#: includes/Admin/Troubleshooting.php:
|
854 |
msgid ""
|
855 |
"Maybe your server blocks it by Apache module <code>mod_security</code>. "
|
856 |
"Contact your hosting provider and ask what can block the URL you see above."
|
@@ -868,7 +888,7 @@ msgstr ""
|
|
868 |
msgid "Minimum characters"
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: includes/Admin/Troubleshooting.php:
|
872 |
msgid "Missing plugin: WooCommerce Multilingual"
|
873 |
msgstr ""
|
874 |
|
@@ -886,7 +906,7 @@ msgstr ""
|
|
886 |
msgid "More results label"
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: includes/Admin/Troubleshooting.php:
|
890 |
msgid "Multilingual slugs"
|
891 |
msgstr ""
|
892 |
|
@@ -902,7 +922,7 @@ msgstr ""
|
|
902 |
msgid "News"
|
903 |
msgstr ""
|
904 |
|
905 |
-
#: includes/Admin/Troubleshooting.php:
|
906 |
msgid "NGINX configuration may blocks search requests"
|
907 |
msgstr ""
|
908 |
|
@@ -918,7 +938,7 @@ msgstr ""
|
|
918 |
msgid "No thanks"
|
919 |
msgstr ""
|
920 |
|
921 |
-
#: includes/Admin/Troubleshooting.php:
|
922 |
msgid "Non Critical Indexer Errors"
|
923 |
msgstr ""
|
924 |
|
@@ -930,7 +950,7 @@ msgstr ""
|
|
930 |
msgid "Normal"
|
931 |
msgstr ""
|
932 |
|
933 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
934 |
msgid "Not exist"
|
935 |
msgstr ""
|
936 |
|
@@ -938,11 +958,11 @@ msgstr ""
|
|
938 |
msgid "Note: We currently only support the header type: \"Header 10\""
|
939 |
msgstr ""
|
940 |
|
941 |
-
#: includes/Admin/Troubleshooting.php:
|
942 |
msgid "Old index"
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: includes/Admin/Troubleshooting.php:
|
946 |
msgid "One or more required PHP extensions are missing on your server"
|
947 |
msgstr ""
|
948 |
|
@@ -950,11 +970,11 @@ msgstr ""
|
|
950 |
msgid "Overlay on mobile"
|
951 |
msgstr ""
|
952 |
|
953 |
-
#: includes/Admin/Troubleshooting.php:
|
954 |
msgid "PDO connection test"
|
955 |
msgstr ""
|
956 |
|
957 |
-
#: includes/Admin/Troubleshooting.php:
|
958 |
msgid "PHP extensions"
|
959 |
msgstr ""
|
960 |
|
@@ -978,7 +998,7 @@ msgstr ""
|
|
978 |
msgid "Pro features"
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: includes/Admin/Troubleshooting.php:
|
982 |
msgid "Problem with WordPress Transients API"
|
983 |
msgstr ""
|
984 |
|
@@ -1020,7 +1040,7 @@ msgstr ""
|
|
1020 |
msgid "Read more"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
-
#: includes/Admin/Troubleshooting.php:
|
1024 |
#, php-format
|
1025 |
msgid ""
|
1026 |
"Read more about indexer issues on <a target=\"_blank\" href=\"%s\">our "
|
@@ -1032,11 +1052,11 @@ msgstr ""
|
|
1032 |
msgid "Readable"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
-
#: includes/Admin/Troubleshooting.php:
|
1036 |
-
#: includes/Admin/Troubleshooting.php:
|
1037 |
-
#: includes/Admin/Troubleshooting.php:
|
1038 |
-
#: includes/Admin/Troubleshooting.php:
|
1039 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1040 |
msgid "Rebuild index"
|
1041 |
msgstr ""
|
1042 |
|
@@ -1118,13 +1138,13 @@ msgstr ""
|
|
1118 |
msgid "Replace the TheGem default search"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
-
#: includes/Admin/Troubleshooting.php:463
|
1122 |
#: includes/Admin/Troubleshooting.php:466
|
|
|
1123 |
#, php-format
|
1124 |
msgid "Required PHP extension: %s"
|
1125 |
msgstr ""
|
1126 |
|
1127 |
-
#: includes/Admin/Troubleshooting.php:
|
1128 |
msgid "Response body"
|
1129 |
msgstr ""
|
1130 |
|
@@ -1222,7 +1242,7 @@ msgstr ""
|
|
1222 |
msgid "Search in attributes and variation products SKUs (option)"
|
1223 |
msgstr ""
|
1224 |
|
1225 |
-
#: includes/Integrations/Brands.php:
|
1226 |
msgid "Search in brands"
|
1227 |
msgstr ""
|
1228 |
|
@@ -1315,12 +1335,12 @@ msgstr ""
|
|
1315 |
msgid "select the custom fields you want to add to the search scope"
|
1316 |
msgstr ""
|
1317 |
|
1318 |
-
#: includes/Admin/Troubleshooting.php:
|
1319 |
msgid "Server environment"
|
1320 |
msgstr ""
|
1321 |
|
1322 |
-
#: includes/Admin/Troubleshooting.php:
|
1323 |
-
#: includes/Admin/Troubleshooting.php:
|
1324 |
#, php-format
|
1325 |
msgid ""
|
1326 |
"Server response with message <code>%s</code> and status code <code>%s</code>."
|
@@ -1335,7 +1355,7 @@ msgstr ""
|
|
1335 |
msgid "Show advanced settings"
|
1336 |
msgstr ""
|
1337 |
|
1338 |
-
#: includes/Integrations/Brands.php:
|
1339 |
msgid "Show brands"
|
1340 |
msgstr ""
|
1341 |
|
@@ -1344,7 +1364,7 @@ msgid "Show categories"
|
|
1344 |
msgstr ""
|
1345 |
|
1346 |
#: partials/admin/indexer-header-demo.php:16
|
1347 |
-
#: partials/admin/indexer-header.php:
|
1348 |
msgid "Show details"
|
1349 |
msgstr ""
|
1350 |
|
@@ -1353,7 +1373,7 @@ msgid "Show Details panel"
|
|
1353 |
msgstr ""
|
1354 |
|
1355 |
#: includes/Settings.php:423 includes/Settings.php:427
|
1356 |
-
#: includes/Integrations/Brands.php:
|
1357 |
msgid "show images"
|
1358 |
msgstr ""
|
1359 |
|
@@ -1409,29 +1429,29 @@ msgstr ""
|
|
1409 |
msgid "Sold by:"
|
1410 |
msgstr ""
|
1411 |
|
1412 |
-
#: includes/Admin/Troubleshooting.php:
|
1413 |
-
#: includes/Admin/Troubleshooting.php:
|
1414 |
-
#: includes/Admin/Troubleshooting.php:
|
1415 |
-
#: includes/Admin/Troubleshooting.php:
|
1416 |
-
#: includes/Admin/Troubleshooting.php:
|
1417 |
-
#: includes/Admin/Troubleshooting.php:
|
1418 |
-
#: includes/Admin/Troubleshooting.php:
|
1419 |
-
#: includes/Admin/Troubleshooting.php:
|
1420 |
-
#: includes/Admin/Troubleshooting.php:
|
1421 |
-
#: includes/Admin/Troubleshooting.php:
|
1422 |
-
#: includes/Admin/Troubleshooting.php:
|
1423 |
msgid "Solution"
|
1424 |
msgstr ""
|
1425 |
|
1426 |
-
#: includes/Admin/Troubleshooting.php:
|
1427 |
msgid "Solutions"
|
1428 |
msgstr ""
|
1429 |
|
1430 |
-
#: includes/Admin/Troubleshooting.php:
|
1431 |
msgid "Solutions:"
|
1432 |
msgstr ""
|
1433 |
|
1434 |
-
#: includes/Admin/Troubleshooting.php:
|
1435 |
#, php-format
|
1436 |
msgid ""
|
1437 |
"Some NGINX configuration may block executing PHP files included directly in "
|
@@ -1461,7 +1481,7 @@ msgstr ""
|
|
1461 |
msgid "Status"
|
1462 |
msgstr ""
|
1463 |
|
1464 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1465 |
msgid "Stop process"
|
1466 |
msgstr ""
|
1467 |
|
@@ -1473,7 +1493,7 @@ msgstr ""
|
|
1473 |
msgid "Submit label"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
-
#: includes/Admin/Troubleshooting.php:
|
1477 |
msgid "Sucuri Security firewall may block AJAX calls of the live search"
|
1478 |
msgstr ""
|
1479 |
|
@@ -1510,7 +1530,7 @@ msgstr ""
|
|
1510 |
msgid "Text color"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
-
#: includes/Admin/Troubleshooting.php:
|
1514 |
msgid "The .htaccess file(s) may blocking AJAX calls of the live search"
|
1515 |
msgstr ""
|
1516 |
|
@@ -1528,22 +1548,29 @@ msgid ""
|
|
1528 |
"mean a lot to me if you %ssupport it with a quick review on WordPress.org.%s"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
-
#: partials/admin/indexer-header.php:
|
1532 |
msgid "The following error caused the index to be canceled:"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
-
#: includes/Admin/Troubleshooting.php:
|
1536 |
msgid "The index was built by the previous plugin version"
|
1537 |
msgstr ""
|
1538 |
|
1539 |
-
#: includes/Admin/Troubleshooting.php:
|
1540 |
msgid ""
|
1541 |
"The Indexer uses the WordPress function <code>wp_remote_post()</code> to "
|
1542 |
"build the index in background. Sometimes the server can block this kind of "
|
1543 |
"request and responses with HTTP 401 Unauthorized or 403 Forbidden errors."
|
1544 |
msgstr ""
|
1545 |
|
1546 |
-
#: includes/Admin/Troubleshooting.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1547 |
#, php-format
|
1548 |
msgid "The Jetpack Search module is incompatible with the %s plugin."
|
1549 |
msgstr ""
|
@@ -1554,42 +1581,46 @@ msgid ""
|
|
1554 |
"designed advanced AJAX search bar with live search suggestions."
|
1555 |
msgstr ""
|
1556 |
|
|
|
|
|
|
|
|
|
1557 |
#: includes/Engines/TNTSearchMySQL/Indexer/Scheduler.php:281
|
1558 |
#, php-format
|
1559 |
msgid "the next index rebuild: %s"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1563 |
msgid "The search index could not be built."
|
1564 |
msgstr ""
|
1565 |
|
1566 |
#: partials/admin/indexer-header-demo.php:11
|
1567 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1568 |
msgid "The search index does not exist yet. Build it now."
|
1569 |
msgstr ""
|
1570 |
|
1571 |
-
#: includes/Admin/Troubleshooting.php:
|
1572 |
msgid "The search index structure isn't completely"
|
1573 |
msgstr ""
|
1574 |
|
1575 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1576 |
msgid ""
|
1577 |
"The search index was built successfully, but some non-critical errors "
|
1578 |
"occurred."
|
1579 |
msgstr ""
|
1580 |
|
1581 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1582 |
msgid "The search index was built successfully."
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: includes/Admin/Troubleshooting.php:
|
1586 |
msgid ""
|
1587 |
"The search index was built, but some significant errors occurred during this "
|
1588 |
"process. There is a risk that some products may not be available during the "
|
1589 |
"search."
|
1590 |
msgstr ""
|
1591 |
|
1592 |
-
#: includes/Admin/Troubleshooting.php:
|
1593 |
msgid ""
|
1594 |
"The search uses a dedicated URL to makes queries. In your case, this URL is "
|
1595 |
"blocked for some reason. Let visit it directly in your browser:"
|
@@ -1599,7 +1630,7 @@ msgstr ""
|
|
1599 |
msgid "The search will open in overlay on mobile"
|
1600 |
msgstr ""
|
1601 |
|
1602 |
-
#: includes/Admin/Troubleshooting.php:
|
1603 |
msgid ""
|
1604 |
"The server returns an incorrect response for the search engine's AJAX calls"
|
1605 |
msgstr ""
|
@@ -1611,11 +1642,11 @@ msgid ""
|
|
1611 |
"adding synonyms."
|
1612 |
msgstr ""
|
1613 |
|
1614 |
-
#: includes/Admin/Troubleshooting.php:
|
1615 |
msgid "the transient value was cached and existed too long"
|
1616 |
msgstr ""
|
1617 |
|
1618 |
-
#: includes/Admin/Troubleshooting.php:
|
1619 |
msgid "the transient value was not returned"
|
1620 |
msgstr ""
|
1621 |
|
@@ -1627,38 +1658,38 @@ msgstr ""
|
|
1627 |
msgid "There are four easy ways to display the search bar in your theme"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
-
#: includes/Admin/Troubleshooting.php:
|
1631 |
msgid ""
|
1632 |
"There is a problem with the visibility of products with “Out of stock“ status"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
-
#: includes/Admin/Troubleshooting.php:
|
1636 |
msgid ""
|
1637 |
"There is no correct template in Elementor Theme Builder for the WooCommerce "
|
1638 |
"search results page."
|
1639 |
msgstr ""
|
1640 |
|
1641 |
-
#: includes/Admin/Troubleshooting.php:
|
1642 |
msgid ""
|
1643 |
"Think about what can block the execution of PHP scripts inside <code>wp-"
|
1644 |
"content</code> or <code>wp-content/plugins</code> directory. Maybe you use "
|
1645 |
"some security plugins or you have custom code that may block it."
|
1646 |
msgstr ""
|
1647 |
|
1648 |
-
#: includes/Admin/Troubleshooting.php:
|
1649 |
msgid ""
|
1650 |
"This issue may affect the building of the search index. Indexer may stuck at "
|
1651 |
"0%."
|
1652 |
msgstr ""
|
1653 |
|
1654 |
-
#: includes/Admin/Troubleshooting.php:
|
1655 |
msgid ""
|
1656 |
"This issue may affect the search results page and e.g. display all products "
|
1657 |
"every time"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1661 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1662 |
msgid "This process will continue in the background. You can leave this page!"
|
1663 |
msgstr ""
|
1664 |
|
@@ -1685,34 +1716,34 @@ msgstr ""
|
|
1685 |
msgid "To set 100% width leave blank"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
-
#: includes/Admin/Troubleshooting.php:
|
1689 |
#, php-format
|
1690 |
msgid ""
|
1691 |
"Total “out of stock“ products calculated by <code>wc_get_products()</code> "
|
1692 |
"function: <b>%d</b>"
|
1693 |
msgstr ""
|
1694 |
|
1695 |
-
#: includes/Admin/Troubleshooting.php:
|
1696 |
#, php-format
|
1697 |
msgid ""
|
1698 |
"Total “out of stock“ products calculated by SQL query on <code>%s</code>: <b>"
|
1699 |
"%d</b>"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
-
#: includes/Admin/Troubleshooting.php:
|
1703 |
msgid "Transients test"
|
1704 |
msgstr ""
|
1705 |
|
1706 |
-
#: includes/Admin/Troubleshooting.php:
|
1707 |
msgid "TranslatePress"
|
1708 |
msgstr ""
|
1709 |
|
1710 |
-
#: includes/Admin/Troubleshooting.php:
|
1711 |
-
#: partials/admin/indexer-header.php:
|
1712 |
msgid "Troubleshooting"
|
1713 |
msgstr ""
|
1714 |
|
1715 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1716 |
msgid "Try to build the index again."
|
1717 |
msgstr ""
|
1718 |
|
@@ -1750,7 +1781,7 @@ msgstr ""
|
|
1750 |
msgid "Using PHP - %s"
|
1751 |
msgstr ""
|
1752 |
|
1753 |
-
#: includes/Admin/Troubleshooting.php:
|
1754 |
msgid "Valid search results test"
|
1755 |
msgstr ""
|
1756 |
|
@@ -1762,15 +1793,15 @@ msgstr ""
|
|
1762 |
msgid "Vendors"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1766 |
msgid "Wait... Indexing in progress"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1770 |
msgid "Wait... Preparing indexing in progress"
|
1771 |
msgstr ""
|
1772 |
|
1773 |
-
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:
|
1774 |
msgid "Wait... The index build process is canceling"
|
1775 |
msgstr ""
|
1776 |
|
@@ -1778,7 +1809,7 @@ msgstr ""
|
|
1778 |
msgid "Warning!"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
-
#: includes/Admin/Troubleshooting.php:
|
1782 |
#, php-format
|
1783 |
msgid ""
|
1784 |
"We recommend contact your hosting provider and ask to check <code>%s</code> "
|
@@ -1794,7 +1825,7 @@ msgid ""
|
|
1794 |
"We support this theme and you can easily replace all default search bars."
|
1795 |
msgstr ""
|
1796 |
|
1797 |
-
#: includes/Admin/Troubleshooting.php:
|
1798 |
msgid ""
|
1799 |
"We've detected that some products with a status “Out of Stock“ may have "
|
1800 |
"something wrong with relationships in the database. It affects visibility of "
|
@@ -1806,7 +1837,7 @@ msgstr ""
|
|
1806 |
msgid "weekly"
|
1807 |
msgstr ""
|
1808 |
|
1809 |
-
#: includes/Admin/Troubleshooting.php:
|
1810 |
msgid "What's wrong?"
|
1811 |
msgstr ""
|
1812 |
|
@@ -1818,28 +1849,28 @@ msgstr ""
|
|
1818 |
msgid "with simple tricks"
|
1819 |
msgstr ""
|
1820 |
|
1821 |
-
#: includes/Admin/Troubleshooting.php:
|
1822 |
msgid "WooCommerce Multilingual"
|
1823 |
msgstr ""
|
1824 |
|
1825 |
-
#: includes/Admin/Troubleshooting.php:
|
1826 |
msgid "WooCommerce Multilingual plugin is enabled but not effective"
|
1827 |
msgstr ""
|
1828 |
|
1829 |
-
#: includes/Admin/Troubleshooting.php:
|
1830 |
msgid "WordPress loading problem"
|
1831 |
msgstr ""
|
1832 |
|
1833 |
-
#: includes/Admin/Troubleshooting.php:
|
1834 |
-
#: includes/Admin/Troubleshooting.php:
|
1835 |
msgid "WordPress version"
|
1836 |
msgstr ""
|
1837 |
|
1838 |
-
#: includes/Admin/Troubleshooting.php:
|
1839 |
msgid "WPML with disabled translations for products"
|
1840 |
msgstr ""
|
1841 |
|
1842 |
-
#: includes/Admin/Troubleshooting.php:
|
1843 |
#, php-format
|
1844 |
msgid ""
|
1845 |
"You are using Elementor and we noticed that the template used in the search "
|
@@ -1847,47 +1878,47 @@ msgid ""
|
|
1847 |
"Products</strong> widget."
|
1848 |
msgstr ""
|
1849 |
|
1850 |
-
#: includes/Admin/Troubleshooting.php:
|
1851 |
msgid "You are using one or more incompatible plugins"
|
1852 |
msgstr ""
|
1853 |
|
1854 |
-
#: includes/Admin/Troubleshooting.php:
|
1855 |
msgid ""
|
1856 |
"You are using the multilingual plugin, but one or more of the language codes "
|
1857 |
"has wrong format. This needs to be corrected or the index will not be able "
|
1858 |
"to build properly."
|
1859 |
msgstr ""
|
1860 |
|
1861 |
-
#: includes/Admin/Troubleshooting.php:
|
1862 |
msgid "You are using TranslatePress with Free version of our plugin"
|
1863 |
msgstr ""
|
1864 |
|
1865 |
-
#: includes/Admin/Troubleshooting.php:
|
1866 |
msgid ""
|
1867 |
"You are using WPML Multilingual CMS, but you have product translations "
|
1868 |
"disabled, so for the search engine to function properly, you must disable "
|
1869 |
"its multi-language support feature."
|
1870 |
msgstr ""
|
1871 |
|
1872 |
-
#: includes/Admin/Troubleshooting.php:
|
1873 |
#, php-format
|
1874 |
msgid "You can fix it by clicking on this button: %s"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
-
#: includes/Admin/Troubleshooting.php:
|
1878 |
msgid ""
|
1879 |
"You can run these actions manually via Advanced Cron Manager. Then the "
|
1880 |
"Indexer should run. If the index stuck again, run these actions manually one "
|
1881 |
"more time until the finished index."
|
1882 |
msgstr ""
|
1883 |
|
1884 |
-
#: includes/Admin/Troubleshooting.php:
|
1885 |
msgid ""
|
1886 |
"You need to log in to your <a href=\"https://login.sucuri.net\" "
|
1887 |
"target=\"_blank\">Sucuri panel</a>."
|
1888 |
msgstr ""
|
1889 |
|
1890 |
-
#: includes/Admin/Troubleshooting.php:
|
1891 |
msgid ""
|
1892 |
"You should see <code>pong</code> word as a response. Probably you see "
|
1893 |
"something else."
|
@@ -1898,16 +1929,16 @@ msgstr ""
|
|
1898 |
msgid "You use %s plugin version %s"
|
1899 |
msgstr ""
|
1900 |
|
1901 |
-
#: includes/Admin/Troubleshooting.php:
|
1902 |
-
#: includes/Admin/Troubleshooting.php:
|
1903 |
#, php-format
|
1904 |
msgid ""
|
1905 |
"You use the %s plugin, which may cause errors in the search results returned "
|
1906 |
"by our plugin."
|
1907 |
msgstr ""
|
1908 |
|
1909 |
-
#: includes/Admin/Troubleshooting.php:
|
1910 |
-
#: includes/Admin/Troubleshooting.php:
|
1911 |
#, php-format
|
1912 |
msgid "You use the %s plugin. The %s does not support this plugin."
|
1913 |
msgstr ""
|
@@ -1917,7 +1948,7 @@ msgstr ""
|
|
1917 |
msgid "You use the <b>%s</b> theme%s. Fantastic!"
|
1918 |
msgstr ""
|
1919 |
|
1920 |
-
#: includes/Admin/Troubleshooting.php:
|
1921 |
#, php-format
|
1922 |
msgid ""
|
1923 |
"You use the WPML Multilingual CMS and WooCommerce Multilingual plugins, but "
|
@@ -1925,7 +1956,7 @@ msgid ""
|
|
1925 |
"target=\"_blank\">WooCommerce Multilingual status</a>."
|
1926 |
msgstr ""
|
1927 |
|
1928 |
-
#: includes/Admin/Troubleshooting.php:
|
1929 |
#, php-format
|
1930 |
msgid ""
|
1931 |
"You use the WPML Multilingual CMS plugin and to correctly search for "
|
@@ -1933,18 +1964,18 @@ msgid ""
|
|
1933 |
"target=\"_blank\">WooCommerce Multilingual</a> plugin."
|
1934 |
msgstr ""
|
1935 |
|
1936 |
-
#: includes/Admin/Troubleshooting.php:
|
1937 |
msgid "Your server can't send an HTTP request to itself"
|
1938 |
msgstr ""
|
1939 |
|
1940 |
-
#: includes/Admin/Troubleshooting.php:
|
1941 |
msgid "Your settings should looks like the picture below:"
|
1942 |
msgstr ""
|
1943 |
|
1944 |
-
#: includes/Admin/Troubleshooting.php:
|
1945 |
msgid "Your site can perform loopback requests"
|
1946 |
msgstr ""
|
1947 |
|
1948 |
-
#: includes/Admin/Troubleshooting.php:
|
1949 |
msgid "Your site could not complete a loopback request"
|
1950 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: PACKAGE VERSION\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2021-07-19 13:08+0000\n"
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: Damian Góra <support@fibosearch.com>\n"
|
9 |
"Language-Team: \n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/"
|
16 |
|
17 |
+
#: includes/Admin/Troubleshooting.php:1772
|
18 |
msgid "\"Out of stock\" relationships"
|
19 |
msgstr ""
|
20 |
|
65 |
msgid "-- Disabled"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: partials/admin/indexer-header.php:83
|
69 |
#, php-format
|
70 |
msgid ""
|
71 |
"<b>Maybe your server can’t send an HTTP requests to itself</b>. Visit the "
|
79 |
"products "
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: includes/Admin/Troubleshooting.php:802
|
83 |
msgid ""
|
84 |
"A real solution is to find the reason why the WP-Cron doesn’t work and fix "
|
85 |
"it."
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: includes/Admin/Troubleshooting.php:1484
|
89 |
msgid "A search engine's AJAX call did not return valid results"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/Admin/Troubleshooting.php:652
|
93 |
#, php-format
|
94 |
msgid ""
|
95 |
"Add <strong>Archive Products</strong> widget to the template <strong>"
|
98 |
"documentation</a>."
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/Admin/Troubleshooting.php:1004
|
102 |
#, php-format
|
103 |
msgid ""
|
104 |
"Add a constant <code>%s</code> to your <code>wp-config.phps</code> file."
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: partials/admin/indexer-header.php:54
|
108 |
+
msgid ""
|
109 |
+
"Add below code to your child theme’s <em>functions.php</em> file or via a "
|
110 |
+
"plugin that allows custom functions to be added, such as the <a href=\"https:"
|
111 |
+
"//wordpress.org/plugins/code-snippets/\" target=\"_blank\">Code snippets</a> "
|
112 |
+
"plugin."
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: partials/admin/indexer-header.php:68
|
116 |
msgid ""
|
117 |
"Add below code to your child theme’s <em>functions.php</em> file or via a "
|
118 |
"plugin that allows custom functions to be added, such as the <a href=\"https:"
|
129 |
msgid "Add new rule"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: includes/Admin/Troubleshooting.php:1647
|
133 |
msgid "Add the following URL to the white list:"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: includes/Admin/Troubleshooting.php:1597
|
137 |
msgid ""
|
138 |
"Adding extra rules to <code>/usr/local/nginx/conf/wpsecure_${vhostname}."
|
139 |
"conf</code>"
|
178 |
msgid "Alternative ways to embed a search bar"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/Admin/Troubleshooting.php:882
|
182 |
#, php-format
|
183 |
msgid ""
|
184 |
"An error occurred while trying to connect to the database using a PDO_MYSQL "
|
221 |
msgid "Autocomplete"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: includes/Integrations/Brands.php:190 includes/Integrations/Brands.php:212
|
225 |
#, php-format
|
226 |
msgid "Based on the plugin %s"
|
227 |
msgstr ""
|
230 |
msgid "Basic"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: includes/Admin/Troubleshooting.php:1762
|
234 |
msgid "Blocked search endpoint test"
|
235 |
msgstr ""
|
236 |
|
251 |
msgstr ""
|
252 |
|
253 |
#: partials/admin/indexer-header-demo.php:15
|
254 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:682
|
255 |
msgid "Build index"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:631
|
259 |
msgid "Canceling..."
|
260 |
msgstr ""
|
261 |
|
263 |
msgid "Cancellation..."
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: includes/Admin/Troubleshooting.php:1089
|
267 |
msgid ""
|
268 |
"Change the above-mentioned language codes to the correct format: <code>"
|
269 |
"xx</code>, <code>xxx</code>, <code>xx-xx</code> or <code>xx-xxxx</code>."
|
282 |
msgid "Colors"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:641
|
286 |
msgid "Completed. Works."
|
287 |
msgstr ""
|
288 |
|
290 |
msgid "Contact"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: partials/admin/indexer-header.php:61
|
294 |
msgid ""
|
295 |
"Contact your hosting provider and ask for increasing the value of the <code>"
|
296 |
"max_connections</code> variable in your MySQL server. It will definitely "
|
297 |
"solve the problem."
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: partials/admin/indexer-header.php:52
|
301 |
+
msgid ""
|
302 |
+
"Contact your hosting provider and ask for increasing the value of the <code>"
|
303 |
+
"wait_timeout</code> variable in your MySQL server. It should solve the "
|
304 |
+
"source of the problem. If your hosting provider isn't able to change MySQL "
|
305 |
+
"variables, try to solve it in an alternative way. Follow steps below:"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
#: includes/Helpers.php:998
|
309 |
msgid "continue reading"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: includes/Admin/Troubleshooting.php:762
|
313 |
#, php-format
|
314 |
msgid ""
|
315 |
"Could not load <code>wp-load.php</code> from the locations it normally is. "
|
317 |
"support</a>."
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: includes/Admin/Troubleshooting.php:761
|
321 |
msgid "Custom location of wp-load.php file"
|
322 |
msgstr ""
|
323 |
|
333 |
msgid "Default"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: includes/Admin/Troubleshooting.php:1519
|
337 |
msgid "Defender plugin by WPMU DEV blocks AJAX calls of the live search"
|
338 |
msgstr ""
|
339 |
|
341 |
msgid "Details panel"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: includes/Admin/Troubleshooting.php:645
|
345 |
msgid "Dismiss"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: includes/Admin/Troubleshooting.php:351
|
349 |
#, php-format
|
350 |
msgid ""
|
351 |
"Due to the way the TranslatePress - Multilingual plugin works, we can only "
|
353 |
"version</a>."
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: includes/Admin/Troubleshooting.php:890
|
357 |
msgid ""
|
358 |
"Edit <code>wp-config.php</code> file, find the <code>DB_HOST</code> constant,"
|
359 |
" and change its value from <code>localhost</code> to <code>127.0.0.1</code>."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/Admin/Troubleshooting.php:1684
|
363 |
msgid "Elementor search results template"
|
364 |
msgstr ""
|
365 |
|
372 |
msgid "End"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: partials/admin/indexer-header.php:44
|
376 |
#, php-format
|
377 |
msgid "Error code %s"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: includes/Admin/Troubleshooting.php:881
|
381 |
msgid "Error establishing a database connection"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: includes/Admin/Troubleshooting.php:1259
|
385 |
#, php-format
|
386 |
msgid "Error type: <strong>%s</strong>"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:646
|
390 |
msgid "Errors"
|
391 |
msgstr ""
|
392 |
|
408 |
msgid "Exclude/include products"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: includes/Admin/Troubleshooting.php:585
|
412 |
msgid "Extensions should looks like the picture below:"
|
413 |
msgstr ""
|
414 |
|
437 |
msgid "FiboSearch Team"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: includes/Admin/Troubleshooting.php:883
|
441 |
msgid ""
|
442 |
"FiboSearch uses a PDO_MYSQL driver in the search engine. A proper database "
|
443 |
"connection is required."
|
462 |
msgid "Finalization... Wait a moment. (%s products)"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: includes/Admin/Troubleshooting.php:1646
|
466 |
msgid "Find section <code>Access Control -> whitelist URL</code>"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: includes/Admin/Troubleshooting.php:1209
|
470 |
msgid "Fix “Out of stock“ relationships"
|
471 |
msgstr ""
|
472 |
|
486 |
msgid "Fuzzy search"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: includes/Admin/Troubleshooting.php:431
|
490 |
#, php-format
|
491 |
msgid ""
|
492 |
"Go to <a href=\"%s\" target=\"_blank\">Tools -> Site Health</a> in your "
|
502 |
"Header -> Search</code> and enable <code>Predictive Search</code>"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: includes/Admin/Troubleshooting.php:1521
|
506 |
#, php-format
|
507 |
msgid ""
|
508 |
"Go to <code>Defender -> Security Tweaks -> <a href=\"%s\" target=\"_blank\">"
|
510 |
"exceptions: <code>%s</code>"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: includes/Admin/Troubleshooting.php:697
|
514 |
#, php-format
|
515 |
msgid ""
|
516 |
"Go to <code>Security -> Settings -> <a href=\"%s\" target=\"_blank\">System "
|
517 |
"Tweaks</a></code> and uncheck <code>Disable PHP in Plugins</code> option."
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: includes/Admin/Troubleshooting.php:534
|
521 |
#, php-format
|
522 |
msgid ""
|
523 |
"Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
|
525 |
"option <code>%s</code>."
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: includes/Admin/Troubleshooting.php:584
|
529 |
#, php-format
|
530 |
msgid ""
|
531 |
"Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
|
533 |
"Searching by Text</code> extension and save changes."
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: includes/Admin/Troubleshooting.php:923
|
537 |
#, php-format
|
538 |
msgid ""
|
539 |
"Go to the <code>Jetpack settings page -> <a href=\"%s\" target=\"_blank\">"
|
540 |
"Performance tab</a> -> disable the Search module</code>"
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: includes/Admin/Troubleshooting.php:848
|
544 |
+
#: includes/Admin/Troubleshooting.php:1005
|
545 |
+
#: includes/Admin/Troubleshooting.php:1090
|
546 |
+
#: includes/Admin/Troubleshooting.php:1123
|
547 |
#, php-format
|
548 |
msgid "Go to the Indexer tab and click the button <i>%s</i>."
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: includes/Admin/Troubleshooting.php:1088
|
552 |
msgid ""
|
553 |
"Go to the multilingual plugin settings page and find the section where you "
|
554 |
"can edit the available languages."
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: includes/Admin/Troubleshooting.php:1645
|
558 |
msgid "Go to the settings"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: includes/Admin/Troubleshooting.php:495
|
562 |
msgid "Great! Our plugin works great with this version of WordPress."
|
563 |
msgstr ""
|
564 |
|
576 |
msgid "Hard"
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: includes/Admin/Troubleshooting.php:1596
|
580 |
msgid "Here are few samples NGINX config which helps other users:"
|
581 |
msgstr ""
|
582 |
|
594 |
"time now, and I hope you like it!"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: partials/admin/indexer-header.php:100
|
598 |
msgid "Hide details"
|
599 |
msgstr ""
|
600 |
|
621 |
msgid "Icon on mobile, search bar on desktop"
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: includes/Admin/Troubleshooting.php:1036
|
625 |
#, php-format
|
626 |
msgid ""
|
627 |
"If the following errors are related to your theme or plugins, try to fix "
|
629 |
"target=\"_blank\">create a support ticket</a>."
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: partials/admin/indexer-header.php:86
|
633 |
msgid ""
|
634 |
"If the indexer still doesn't work, add a constant <code>"
|
635 |
"define('DGWT_WCAS_INDEXER_MODE', 'sync');</code> to your <code>wp-config."
|
642 |
"Help your customers to find the right products even <span>10× faster</span>."
|
643 |
msgstr ""
|
644 |
|
645 |
+
#: includes/Admin/Troubleshooting.php:1260
|
646 |
msgid ""
|
647 |
"If you have an object caching plugin, turn it off or check its settings. "
|
648 |
"Ideally, the transients should not be cached in any way and stored directly "
|
649 |
"in the database."
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: partials/admin/indexer-header.php:63
|
653 |
msgid ""
|
654 |
"If you see the <b>Troubleshooting tab</b> above, click it and try to solve "
|
655 |
"the issues mentioned there"
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: includes/Admin/Troubleshooting.php:654
|
659 |
#, php-format
|
660 |
msgid ""
|
661 |
"If you think the search results page is displaying your products correctly, "
|
683 |
msgid "Include"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: includes/Admin/Troubleshooting.php:582
|
687 |
msgid ""
|
688 |
"Incompatible \"Searching by Text\" extension from WOOF - WooCommerce "
|
689 |
"Products Filter plugin is active"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/Admin/Troubleshooting.php:1680
|
693 |
msgid ""
|
694 |
"Incompatible \"Searching by Text\" extension in WOOF - WooCommerce Products "
|
695 |
"Filter"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: includes/Admin/Troubleshooting.php:1084
|
699 |
msgid "Incompatible multilingual plugin setting"
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: includes/Admin/Troubleshooting.php:1672
|
703 |
msgid "Incompatible plugins"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: includes/Admin/Troubleshooting.php:1001
|
707 |
msgid "Incompatible WPML Multilingual CMS plugin setting"
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: includes/Admin/Troubleshooting.php:532
|
711 |
+
#: includes/Admin/Troubleshooting.php:1676
|
712 |
msgid "Incorrect \"Add to cart\" behaviour in WooCommerce settings"
|
713 |
msgstr ""
|
714 |
|
728 |
msgid "Index build start"
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: includes/Admin/Troubleshooting.php:1717
|
732 |
msgid "Index completeness test"
|
733 |
msgstr ""
|
734 |
|
759 |
msgid "Individual tips and support by FiboSearch team"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: includes/Admin/Troubleshooting.php:1757
|
763 |
+
msgid "InnoDB support"
|
764 |
+
msgstr ""
|
765 |
+
|
766 |
+
#: includes/Admin/Troubleshooting.php:799
|
767 |
msgid ""
|
768 |
"Install the <a target=\"_blank\" href=\"https://wordpress."
|
769 |
"org/plugins/advanced-cron-manager/\">Advanced Cron Manager</a> plugin to "
|
771 |
"related to the Indexer:"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: includes/Admin/Troubleshooting.php:498
|
775 |
msgid ""
|
776 |
"Install the latest version of WordPress for our plugin to work as best it "
|
777 |
"can!"
|
781 |
msgid "Interval"
|
782 |
msgstr ""
|
783 |
|
784 |
+
#: includes/Admin/Troubleshooting.php:1086
|
785 |
#, php-format
|
786 |
msgid "Invalid language code: <code>%s</code>"
|
787 |
msgid_plural "Invalid language codes: <code>%s</code>"
|
788 |
msgstr[0] ""
|
789 |
msgstr[1] ""
|
790 |
|
791 |
+
#: partials/admin/indexer-header.php:89
|
792 |
#, php-format
|
793 |
msgid ""
|
794 |
"Is it still not working? Visit the <a target=\"_blank\" href=\"%s\">"
|
796 |
"request</a>"
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: includes/Admin/Troubleshooting.php:440
|
800 |
#, php-format
|
801 |
msgid ""
|
802 |
"Is it still not working? Write a <a target=\"_blank\" href=\"%s\">support "
|
803 |
"request</a>"
|
804 |
msgstr ""
|
805 |
|
806 |
+
#: includes/Admin/Troubleshooting.php:434
|
807 |
msgid ""
|
808 |
"Is your website publicly available only for whitelisted IPs? <b>Add your "
|
809 |
"server IP to the whitelist</b>. That’s all. This is a common mistake when "
|
812 |
"requests to itself."
|
813 |
msgstr ""
|
814 |
|
815 |
+
#: includes/Admin/Troubleshooting.php:776
|
816 |
+
#: includes/Admin/Troubleshooting.php:1712
|
817 |
msgid "Issue with WP-Cron"
|
818 |
msgstr ""
|
819 |
|
820 |
+
#: includes/Admin/Troubleshooting.php:695
|
821 |
msgid "iThemes Security plugin blocks AJAX requests"
|
822 |
msgstr ""
|
823 |
|
824 |
+
#: includes/Admin/Troubleshooting.php:1727
|
825 |
msgid "Jetpack search module"
|
826 |
msgstr ""
|
827 |
|
843 |
msgid "Logs"
|
844 |
msgstr ""
|
845 |
|
846 |
+
#: includes/Admin/Troubleshooting.php:1690
|
847 |
msgid "Loopback request"
|
848 |
msgstr ""
|
849 |
|
870 |
msgid "maximum number of suggestions"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: includes/Admin/Troubleshooting.php:1414
|
874 |
msgid ""
|
875 |
"Maybe your server blocks it by Apache module <code>mod_security</code>. "
|
876 |
"Contact your hosting provider and ask what can block the URL you see above."
|
888 |
msgid "Minimum characters"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: includes/Admin/Troubleshooting.php:957
|
892 |
msgid "Missing plugin: WooCommerce Multilingual"
|
893 |
msgstr ""
|
894 |
|
906 |
msgid "More results label"
|
907 |
msgstr ""
|
908 |
|
909 |
+
#: includes/Admin/Troubleshooting.php:1747
|
910 |
msgid "Multilingual slugs"
|
911 |
msgstr ""
|
912 |
|
922 |
msgid "News"
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: includes/Admin/Troubleshooting.php:1593
|
926 |
msgid "NGINX configuration may blocks search requests"
|
927 |
msgstr ""
|
928 |
|
938 |
msgid "No thanks"
|
939 |
msgstr ""
|
940 |
|
941 |
+
#: includes/Admin/Troubleshooting.php:1742
|
942 |
msgid "Non Critical Indexer Errors"
|
943 |
msgstr ""
|
944 |
|
950 |
msgid "Normal"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:652
|
954 |
msgid "Not exist"
|
955 |
msgstr ""
|
956 |
|
958 |
msgid "Note: We currently only support the header type: \"Header 10\""
|
959 |
msgstr ""
|
960 |
|
961 |
+
#: includes/Admin/Troubleshooting.php:1752
|
962 |
msgid "Old index"
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: includes/Admin/Troubleshooting.php:456
|
966 |
msgid "One or more required PHP extensions are missing on your server"
|
967 |
msgstr ""
|
968 |
|
970 |
msgid "Overlay on mobile"
|
971 |
msgstr ""
|
972 |
|
973 |
+
#: includes/Admin/Troubleshooting.php:1722
|
974 |
msgid "PDO connection test"
|
975 |
msgstr ""
|
976 |
|
977 |
+
#: includes/Admin/Troubleshooting.php:1668
|
978 |
msgid "PHP extensions"
|
979 |
msgstr ""
|
980 |
|
998 |
msgid "Pro features"
|
999 |
msgstr ""
|
1000 |
|
1001 |
+
#: includes/Admin/Troubleshooting.php:1252
|
1002 |
msgid "Problem with WordPress Transients API"
|
1003 |
msgstr ""
|
1004 |
|
1040 |
msgid "Read more"
|
1041 |
msgstr ""
|
1042 |
|
1043 |
+
#: includes/Admin/Troubleshooting.php:439
|
1044 |
#, php-format
|
1045 |
msgid ""
|
1046 |
"Read more about indexer issues on <a target=\"_blank\" href=\"%s\">our "
|
1052 |
msgid "Readable"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: includes/Admin/Troubleshooting.php:842
|
1056 |
+
#: includes/Admin/Troubleshooting.php:998
|
1057 |
+
#: includes/Admin/Troubleshooting.php:1081
|
1058 |
+
#: includes/Admin/Troubleshooting.php:1119
|
1059 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:676
|
1060 |
msgid "Rebuild index"
|
1061 |
msgstr ""
|
1062 |
|
1138 |
msgid "Replace the TheGem default search"
|
1139 |
msgstr ""
|
1140 |
|
|
|
1141 |
#: includes/Admin/Troubleshooting.php:466
|
1142 |
+
#: includes/Admin/Troubleshooting.php:469
|
1143 |
#, php-format
|
1144 |
msgid "Required PHP extension: %s"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
+
#: includes/Admin/Troubleshooting.php:1486
|
1148 |
msgid "Response body"
|
1149 |
msgstr ""
|
1150 |
|
1242 |
msgid "Search in attributes and variation products SKUs (option)"
|
1243 |
msgstr ""
|
1244 |
|
1245 |
+
#: includes/Integrations/Brands.php:195
|
1246 |
msgid "Search in brands"
|
1247 |
msgstr ""
|
1248 |
|
1335 |
msgid "select the custom fields you want to add to the search scope"
|
1336 |
msgstr ""
|
1337 |
|
1338 |
+
#: includes/Admin/Troubleshooting.php:1905
|
1339 |
msgid "Server environment"
|
1340 |
msgstr ""
|
1341 |
|
1342 |
+
#: includes/Admin/Troubleshooting.php:1407
|
1343 |
+
#: includes/Admin/Troubleshooting.php:1485
|
1344 |
#, php-format
|
1345 |
msgid ""
|
1346 |
"Server response with message <code>%s</code> and status code <code>%s</code>."
|
1355 |
msgid "Show advanced settings"
|
1356 |
msgstr ""
|
1357 |
|
1358 |
+
#: includes/Integrations/Brands.php:217
|
1359 |
msgid "Show brands"
|
1360 |
msgstr ""
|
1361 |
|
1364 |
msgstr ""
|
1365 |
|
1366 |
#: partials/admin/indexer-header-demo.php:16
|
1367 |
+
#: partials/admin/indexer-header.php:99
|
1368 |
msgid "Show details"
|
1369 |
msgstr ""
|
1370 |
|
1373 |
msgstr ""
|
1374 |
|
1375 |
#: includes/Settings.php:423 includes/Settings.php:427
|
1376 |
+
#: includes/Integrations/Brands.php:226 includes/Integrations/Brands.php:230
|
1377 |
msgid "show images"
|
1378 |
msgstr ""
|
1379 |
|
1429 |
msgid "Sold by:"
|
1430 |
msgstr ""
|
1431 |
|
1432 |
+
#: includes/Admin/Troubleshooting.php:533
|
1433 |
+
#: includes/Admin/Troubleshooting.php:583
|
1434 |
+
#: includes/Admin/Troubleshooting.php:651
|
1435 |
+
#: includes/Admin/Troubleshooting.php:696
|
1436 |
+
#: includes/Admin/Troubleshooting.php:798
|
1437 |
+
#: includes/Admin/Troubleshooting.php:889
|
1438 |
+
#: includes/Admin/Troubleshooting.php:1003
|
1439 |
+
#: includes/Admin/Troubleshooting.php:1087
|
1440 |
+
#: includes/Admin/Troubleshooting.php:1520
|
1441 |
+
#: includes/Admin/Troubleshooting.php:1567
|
1442 |
+
#: includes/Admin/Troubleshooting.php:1643
|
1443 |
msgid "Solution"
|
1444 |
msgstr ""
|
1445 |
|
1446 |
+
#: includes/Admin/Troubleshooting.php:1412
|
1447 |
msgid "Solutions"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
+
#: includes/Admin/Troubleshooting.php:427
|
1451 |
msgid "Solutions:"
|
1452 |
msgstr ""
|
1453 |
|
1454 |
+
#: includes/Admin/Troubleshooting.php:1594
|
1455 |
#, php-format
|
1456 |
msgid ""
|
1457 |
"Some NGINX configuration may block executing PHP files included directly in "
|
1481 |
msgid "Status"
|
1482 |
msgstr ""
|
1483 |
|
1484 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:673
|
1485 |
msgid "Stop process"
|
1486 |
msgstr ""
|
1487 |
|
1493 |
msgid "Submit label"
|
1494 |
msgstr ""
|
1495 |
|
1496 |
+
#: includes/Admin/Troubleshooting.php:1642
|
1497 |
msgid "Sucuri Security firewall may block AJAX calls of the live search"
|
1498 |
msgstr ""
|
1499 |
|
1530 |
msgid "Text color"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
+
#: includes/Admin/Troubleshooting.php:1566
|
1534 |
msgid "The .htaccess file(s) may blocking AJAX calls of the live search"
|
1535 |
msgstr ""
|
1536 |
|
1548 |
"mean a lot to me if you %ssupport it with a quick review on WordPress.org.%s"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: partials/admin/indexer-header.php:42
|
1552 |
msgid "The following error caused the index to be canceled:"
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: includes/Admin/Troubleshooting.php:1122
|
1556 |
msgid "The index was built by the previous plugin version"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
+
#: includes/Admin/Troubleshooting.php:422
|
1560 |
msgid ""
|
1561 |
"The Indexer uses the WordPress function <code>wp_remote_post()</code> to "
|
1562 |
"build the index in background. Sometimes the server can block this kind of "
|
1563 |
"request and responses with HTTP 401 Unauthorized or 403 Forbidden errors."
|
1564 |
msgstr ""
|
1565 |
|
1566 |
+
#: includes/Admin/Troubleshooting.php:1152
|
1567 |
+
msgid ""
|
1568 |
+
"The InnoDB engine within the MySQL server must be enabled for our plugin to "
|
1569 |
+
"work properly. Contact your hosting provider and ask for enabling InnoDB "
|
1570 |
+
"engine in your MySQL server."
|
1571 |
+
msgstr ""
|
1572 |
+
|
1573 |
+
#: includes/Admin/Troubleshooting.php:922
|
1574 |
#, php-format
|
1575 |
msgid "The Jetpack Search module is incompatible with the %s plugin."
|
1576 |
msgstr ""
|
1581 |
"designed advanced AJAX search bar with live search suggestions."
|
1582 |
msgstr ""
|
1583 |
|
1584 |
+
#: includes/Admin/Troubleshooting.php:1151
|
1585 |
+
msgid "The MySQL server has the InnoDB engine turned off"
|
1586 |
+
msgstr ""
|
1587 |
+
|
1588 |
#: includes/Engines/TNTSearchMySQL/Indexer/Scheduler.php:281
|
1589 |
#, php-format
|
1590 |
msgid "the next index rebuild: %s"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:645
|
1594 |
msgid "The search index could not be built."
|
1595 |
msgstr ""
|
1596 |
|
1597 |
#: partials/admin/indexer-header-demo.php:11
|
1598 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:651
|
1599 |
msgid "The search index does not exist yet. Build it now."
|
1600 |
msgstr ""
|
1601 |
|
1602 |
+
#: includes/Admin/Troubleshooting.php:846
|
1603 |
msgid "The search index structure isn't completely"
|
1604 |
msgstr ""
|
1605 |
|
1606 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:639
|
1607 |
msgid ""
|
1608 |
"The search index was built successfully, but some non-critical errors "
|
1609 |
"occurred."
|
1610 |
msgstr ""
|
1611 |
|
1612 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:637
|
1613 |
msgid "The search index was built successfully."
|
1614 |
msgstr ""
|
1615 |
|
1616 |
+
#: includes/Admin/Troubleshooting.php:1035
|
1617 |
msgid ""
|
1618 |
"The search index was built, but some significant errors occurred during this "
|
1619 |
"process. There is a risk that some products may not be available during the "
|
1620 |
"search."
|
1621 |
msgstr ""
|
1622 |
|
1623 |
+
#: includes/Admin/Troubleshooting.php:1409
|
1624 |
msgid ""
|
1625 |
"The search uses a dedicated URL to makes queries. In your case, this URL is "
|
1626 |
"blocked for some reason. Let visit it directly in your browser:"
|
1630 |
msgid "The search will open in overlay on mobile"
|
1631 |
msgstr ""
|
1632 |
|
1633 |
+
#: includes/Admin/Troubleshooting.php:1406
|
1634 |
msgid ""
|
1635 |
"The server returns an incorrect response for the search engine's AJAX calls"
|
1636 |
msgstr ""
|
1642 |
"adding synonyms."
|
1643 |
msgstr ""
|
1644 |
|
1645 |
+
#: includes/Admin/Troubleshooting.php:1257
|
1646 |
msgid "the transient value was cached and existed too long"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
+
#: includes/Admin/Troubleshooting.php:1255
|
1650 |
msgid "the transient value was not returned"
|
1651 |
msgstr ""
|
1652 |
|
1658 |
msgid "There are four easy ways to display the search bar in your theme"
|
1659 |
msgstr ""
|
1660 |
|
1661 |
+
#: includes/Admin/Troubleshooting.php:1211
|
1662 |
msgid ""
|
1663 |
"There is a problem with the visibility of products with “Out of stock“ status"
|
1664 |
msgstr ""
|
1665 |
|
1666 |
+
#: includes/Admin/Troubleshooting.php:649
|
1667 |
msgid ""
|
1668 |
"There is no correct template in Elementor Theme Builder for the WooCommerce "
|
1669 |
"search results page."
|
1670 |
msgstr ""
|
1671 |
|
1672 |
+
#: includes/Admin/Troubleshooting.php:1413
|
1673 |
msgid ""
|
1674 |
"Think about what can block the execution of PHP scripts inside <code>wp-"
|
1675 |
"content</code> or <code>wp-content/plugins</code> directory. Maybe you use "
|
1676 |
"some security plugins or you have custom code that may block it."
|
1677 |
msgstr ""
|
1678 |
|
1679 |
+
#: includes/Admin/Troubleshooting.php:421
|
1680 |
msgid ""
|
1681 |
"This issue may affect the building of the search index. Indexer may stuck at "
|
1682 |
"0%."
|
1683 |
msgstr ""
|
1684 |
|
1685 |
+
#: includes/Admin/Troubleshooting.php:417
|
1686 |
msgid ""
|
1687 |
"This issue may affect the search results page and e.g. display all products "
|
1688 |
"every time"
|
1689 |
msgstr ""
|
1690 |
|
1691 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:619
|
1692 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:625
|
1693 |
msgid "This process will continue in the background. You can leave this page!"
|
1694 |
msgstr ""
|
1695 |
|
1716 |
msgid "To set 100% width leave blank"
|
1717 |
msgstr ""
|
1718 |
|
1719 |
+
#: includes/Admin/Troubleshooting.php:1213
|
1720 |
#, php-format
|
1721 |
msgid ""
|
1722 |
"Total “out of stock“ products calculated by <code>wc_get_products()</code> "
|
1723 |
"function: <b>%d</b>"
|
1724 |
msgstr ""
|
1725 |
|
1726 |
+
#: includes/Admin/Troubleshooting.php:1214
|
1727 |
#, php-format
|
1728 |
msgid ""
|
1729 |
"Total “out of stock“ products calculated by SQL query on <code>%s</code>: <b>"
|
1730 |
"%d</b>"
|
1731 |
msgstr ""
|
1732 |
|
1733 |
+
#: includes/Admin/Troubleshooting.php:1777
|
1734 |
msgid "Transients test"
|
1735 |
msgstr ""
|
1736 |
|
1737 |
+
#: includes/Admin/Troubleshooting.php:1699
|
1738 |
msgid "TranslatePress"
|
1739 |
msgstr ""
|
1740 |
|
1741 |
+
#: includes/Admin/Troubleshooting.php:62 includes/Admin/Troubleshooting.php:81
|
1742 |
+
#: partials/admin/indexer-header.php:39
|
1743 |
msgid "Troubleshooting"
|
1744 |
msgstr ""
|
1745 |
|
1746 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:679
|
1747 |
msgid "Try to build the index again."
|
1748 |
msgstr ""
|
1749 |
|
1781 |
msgid "Using PHP - %s"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#: includes/Admin/Troubleshooting.php:1767
|
1785 |
msgid "Valid search results test"
|
1786 |
msgstr ""
|
1787 |
|
1793 |
msgid "Vendors"
|
1794 |
msgstr ""
|
1795 |
|
1796 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:624
|
1797 |
msgid "Wait... Indexing in progress"
|
1798 |
msgstr ""
|
1799 |
|
1800 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:618
|
1801 |
msgid "Wait... Preparing indexing in progress"
|
1802 |
msgstr ""
|
1803 |
|
1804 |
+
#: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:630
|
1805 |
msgid "Wait... The index build process is canceling"
|
1806 |
msgstr ""
|
1807 |
|
1809 |
msgid "Warning!"
|
1810 |
msgstr ""
|
1811 |
|
1812 |
+
#: includes/Admin/Troubleshooting.php:1568
|
1813 |
#, php-format
|
1814 |
msgid ""
|
1815 |
"We recommend contact your hosting provider and ask to check <code>%s</code> "
|
1825 |
"We support this theme and you can easily replace all default search bars."
|
1826 |
msgstr ""
|
1827 |
|
1828 |
+
#: includes/Admin/Troubleshooting.php:1212
|
1829 |
msgid ""
|
1830 |
"We've detected that some products with a status “Out of Stock“ may have "
|
1831 |
"something wrong with relationships in the database. It affects visibility of "
|
1837 |
msgid "weekly"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
+
#: includes/Admin/Troubleshooting.php:1408
|
1841 |
msgid "What's wrong?"
|
1842 |
msgstr ""
|
1843 |
|
1849 |
msgid "with simple tricks"
|
1850 |
msgstr ""
|
1851 |
|
1852 |
+
#: includes/Admin/Troubleshooting.php:1732
|
1853 |
msgid "WooCommerce Multilingual"
|
1854 |
msgstr ""
|
1855 |
|
1856 |
+
#: includes/Admin/Troubleshooting.php:962
|
1857 |
msgid "WooCommerce Multilingual plugin is enabled but not effective"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
+
#: includes/Admin/Troubleshooting.php:1707
|
1861 |
msgid "WordPress loading problem"
|
1862 |
msgstr ""
|
1863 |
|
1864 |
+
#: includes/Admin/Troubleshooting.php:486
|
1865 |
+
#: includes/Admin/Troubleshooting.php:1664
|
1866 |
msgid "WordPress version"
|
1867 |
msgstr ""
|
1868 |
|
1869 |
+
#: includes/Admin/Troubleshooting.php:1737
|
1870 |
msgid "WPML with disabled translations for products"
|
1871 |
msgstr ""
|
1872 |
|
1873 |
+
#: includes/Admin/Troubleshooting.php:650
|
1874 |
#, php-format
|
1875 |
msgid ""
|
1876 |
"You are using Elementor and we noticed that the template used in the search "
|
1878 |
"Products</strong> widget."
|
1879 |
msgstr ""
|
1880 |
|
1881 |
+
#: includes/Admin/Troubleshooting.php:299
|
1882 |
msgid "You are using one or more incompatible plugins"
|
1883 |
msgstr ""
|
1884 |
|
1885 |
+
#: includes/Admin/Troubleshooting.php:1085
|
1886 |
msgid ""
|
1887 |
"You are using the multilingual plugin, but one or more of the language codes "
|
1888 |
"has wrong format. This needs to be corrected or the index will not be able "
|
1889 |
"to build properly."
|
1890 |
msgstr ""
|
1891 |
|
1892 |
+
#: includes/Admin/Troubleshooting.php:340
|
1893 |
msgid "You are using TranslatePress with Free version of our plugin"
|
1894 |
msgstr ""
|
1895 |
|
1896 |
+
#: includes/Admin/Troubleshooting.php:1002
|
1897 |
msgid ""
|
1898 |
"You are using WPML Multilingual CMS, but you have product translations "
|
1899 |
"disabled, so for the search engine to function properly, you must disable "
|
1900 |
"its multi-language support feature."
|
1901 |
msgstr ""
|
1902 |
|
1903 |
+
#: includes/Admin/Troubleshooting.php:1215
|
1904 |
#, php-format
|
1905 |
msgid "You can fix it by clicking on this button: %s"
|
1906 |
msgstr ""
|
1907 |
|
1908 |
+
#: includes/Admin/Troubleshooting.php:801
|
1909 |
msgid ""
|
1910 |
"You can run these actions manually via Advanced Cron Manager. Then the "
|
1911 |
"Indexer should run. If the index stuck again, run these actions manually one "
|
1912 |
"more time until the finished index."
|
1913 |
msgstr ""
|
1914 |
|
1915 |
+
#: includes/Admin/Troubleshooting.php:1644
|
1916 |
msgid ""
|
1917 |
"You need to log in to your <a href=\"https://login.sucuri.net\" "
|
1918 |
"target=\"_blank\">Sucuri panel</a>."
|
1919 |
msgstr ""
|
1920 |
|
1921 |
+
#: includes/Admin/Troubleshooting.php:1411
|
1922 |
msgid ""
|
1923 |
"You should see <code>pong</code> word as a response. Probably you see "
|
1924 |
"something else."
|
1929 |
msgid "You use %s plugin version %s"
|
1930 |
msgstr ""
|
1931 |
|
1932 |
+
#: includes/Admin/Troubleshooting.php:319
|
1933 |
+
#: includes/Admin/Troubleshooting.php:321
|
1934 |
#, php-format
|
1935 |
msgid ""
|
1936 |
"You use the %s plugin, which may cause errors in the search results returned "
|
1937 |
"by our plugin."
|
1938 |
msgstr ""
|
1939 |
|
1940 |
+
#: includes/Admin/Troubleshooting.php:310
|
1941 |
+
#: includes/Admin/Troubleshooting.php:314
|
1942 |
#, php-format
|
1943 |
msgid "You use the %s plugin. The %s does not support this plugin."
|
1944 |
msgstr ""
|
1948 |
msgid "You use the <b>%s</b> theme%s. Fantastic!"
|
1949 |
msgstr ""
|
1950 |
|
1951 |
+
#: includes/Admin/Troubleshooting.php:963
|
1952 |
#, php-format
|
1953 |
msgid ""
|
1954 |
"You use the WPML Multilingual CMS and WooCommerce Multilingual plugins, but "
|
1956 |
"target=\"_blank\">WooCommerce Multilingual status</a>."
|
1957 |
msgstr ""
|
1958 |
|
1959 |
+
#: includes/Admin/Troubleshooting.php:958
|
1960 |
#, php-format
|
1961 |
msgid ""
|
1962 |
"You use the WPML Multilingual CMS plugin and to correctly search for "
|
1964 |
"target=\"_blank\">WooCommerce Multilingual</a> plugin."
|
1965 |
msgstr ""
|
1966 |
|
1967 |
+
#: includes/Admin/Troubleshooting.php:429
|
1968 |
msgid "Your server can't send an HTTP request to itself"
|
1969 |
msgstr ""
|
1970 |
|
1971 |
+
#: includes/Admin/Troubleshooting.php:535
|
1972 |
msgid "Your settings should looks like the picture below:"
|
1973 |
msgstr ""
|
1974 |
|
1975 |
+
#: includes/Admin/Troubleshooting.php:364
|
1976 |
msgid "Your site can perform loopback requests"
|
1977 |
msgstr ""
|
1978 |
|
1979 |
+
#: includes/Admin/Troubleshooting.php:413
|
1980 |
msgid "Your site could not complete a loopback request"
|
1981 |
msgstr ""
|
partials/themes/electro.php
CHANGED
@@ -25,11 +25,35 @@ if ( ! function_exists( 'electro_product_search' ) ) {
|
|
25 |
}
|
26 |
|
27 |
add_action( 'wp_footer', function () {
|
28 |
-
$breakpoint
|
|
|
29 |
?>
|
30 |
<script>
|
31 |
(function ($) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
$(window).on('load', function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
// Search icon - mobile
|
34 |
if ($(window).width() <= <?php echo $breakpoint; ?>) {
|
35 |
$('.handheld-header-links .search > a').off('click').on('click', function (e) {
|
@@ -41,15 +65,9 @@ add_action( 'wp_footer', function () {
|
|
41 |
});
|
42 |
} else {
|
43 |
// Search icon - almost desktop
|
44 |
-
|
45 |
-
setTimeout(function () {
|
46 |
-
var $input = $('.handheld-header-links .site-search .dgwt-wcas-search-input');
|
47 |
-
if ($input.length > 0 && $input.val().length === 0) {
|
48 |
-
$input.focus();
|
49 |
-
}
|
50 |
-
}, 500);
|
51 |
-
});
|
52 |
}
|
|
|
53 |
});
|
54 |
}(jQuery));
|
55 |
</script>
|
25 |
}
|
26 |
|
27 |
add_action( 'wp_footer', function () {
|
28 |
+
$breakpoint = DGWT_WCAS()->settings->getOption( 'mobile_breakpoint', 992 );
|
29 |
+
$mobileOverlay = DGWT_WCAS()->settings->getOption( 'enable_mobile_overlay' ) === 'on';
|
30 |
?>
|
31 |
<script>
|
32 |
(function ($) {
|
33 |
+
|
34 |
+
function fiboEletroThemeFocusInput() {
|
35 |
+
$('.handheld-header-links .search > a').on('click', function (e) {
|
36 |
+
setTimeout(function () {
|
37 |
+
var $input = $('.handheld-header-links .site-search .dgwt-wcas-search-input');
|
38 |
+
if ($input.length > 0 && $input.val().length === 0) {
|
39 |
+
$input.focus();
|
40 |
+
}
|
41 |
+
}, 500);
|
42 |
+
});
|
43 |
+
}
|
44 |
+
|
45 |
$(window).on('load', function () {
|
46 |
+
<?php if(! $mobileOverlay): ?>
|
47 |
+
|
48 |
+
fiboEletroThemeFocusInput();
|
49 |
+
|
50 |
+
$('.handheld-header-links .search.active > a').on('click', function (e) {
|
51 |
+
var $input = $('.handheld-header-links .site-search .dgwt-wcas-close');
|
52 |
+
if ($input.length > 0) {
|
53 |
+
$input[0].click();
|
54 |
+
}
|
55 |
+
});
|
56 |
+
<?php else: ?>
|
57 |
// Search icon - mobile
|
58 |
if ($(window).width() <= <?php echo $breakpoint; ?>) {
|
59 |
$('.handheld-header-links .search > a').off('click').on('click', function (e) {
|
65 |
});
|
66 |
} else {
|
67 |
// Search icon - almost desktop
|
68 |
+
fiboEletroThemeFocusInput();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
+
<?php endif; ?>
|
71 |
});
|
72 |
}(jQuery));
|
73 |
</script>
|
partials/themes/estore.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
// Default search form
|
8 |
+
add_filter( 'get_search_form', function ( $form, $args ) {
|
9 |
+
return do_shortcode( '[wcas-search-form layout="classic"]' );
|
10 |
+
}, 10, 2 );
|
11 |
+
|
12 |
+
// WooCommerce search form
|
13 |
+
add_filter( 'get_product_search_form', function ( $form ) {
|
14 |
+
return do_shortcode( '[wcas-search-form layout="classic"]' );
|
15 |
+
} );
|
16 |
+
|
17 |
+
add_action( 'wp_footer', function () {
|
18 |
+
?>
|
19 |
+
<script>
|
20 |
+
(function ($) {
|
21 |
+
$(window).on('load', function () {
|
22 |
+
// Search icon - mobile
|
23 |
+
if ($(window).width() <= 768) {
|
24 |
+
$('.search-wrapper .search-icon').off('click').on('click', function (e) {
|
25 |
+
var $handler = $('.search-wrapper .header-search-box .js-dgwt-wcas-enable-mobile-form');
|
26 |
+
if ($handler.length) {
|
27 |
+
$handler[0].click();
|
28 |
+
}
|
29 |
+
});
|
30 |
+
}
|
31 |
+
});
|
32 |
+
}(jQuery));
|
33 |
+
</script>
|
34 |
+
<style>
|
35 |
+
.admin-bar .dgwt-wcas-suggestions-wrapp {
|
36 |
+
margin-top: -32px !important;
|
37 |
+
}
|
38 |
+
|
39 |
+
.admin-bar .dgwt-wcas-details-wrapp {
|
40 |
+
margin-top: -32px !important;
|
41 |
+
}
|
42 |
+
</style>
|
43 |
+
<?php
|
44 |
+
}, 100 );
|
partials/themes/rehub-theme.php
CHANGED
@@ -43,11 +43,27 @@ add_action( 'wp_footer', function () {
|
|
43 |
var $mobile = $('.search-header-contents .js-dgwt-wcas-enable-mobile-form');
|
44 |
if ($mobile.length > 0) {
|
45 |
$mobile.click();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
}
|
48 |
});
|
49 |
});
|
50 |
}(jQuery));
|
51 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
<?php
|
53 |
-
} );
|
43 |
var $mobile = $('.search-header-contents .js-dgwt-wcas-enable-mobile-form');
|
44 |
if ($mobile.length > 0) {
|
45 |
$mobile.click();
|
46 |
+
|
47 |
+
// Support for new version of search popup (version >= v16.2)
|
48 |
+
if (document.querySelector('#rhSplashSearch') !== null) {
|
49 |
+
setTimeout(function () {
|
50 |
+
document.getElementById('rhSplashSearch').classList.remove('top-search-onclick-open');
|
51 |
+
document.querySelector('.rh-outer-wrap').classList.remove('rh-outer-wrap-move');
|
52 |
+
}, 100);
|
53 |
+
}
|
54 |
}
|
55 |
}
|
56 |
});
|
57 |
});
|
58 |
}(jQuery));
|
59 |
</script>
|
60 |
+
<style>
|
61 |
+
/* Fix for iPhone sticky header */
|
62 |
+
@media (max-width: 1024px) {
|
63 |
+
.sticky-wrapper.re-stickyheader .rh-stickme {
|
64 |
+
width: 100% !important;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
</style>
|
68 |
<?php
|
69 |
+
}, 15 );
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: damian-gora, matczar
|
3 |
Tags: woocommerce search, ajax search, search by sku, product search, woocommerce
|
4 |
Requires at least: 5.0
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -142,6 +142,18 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
|
|
142 |
|
143 |
== Changelog ==
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
= 1.12.0, June 22, 2021 =
|
146 |
* ADD: Integration with Electro theme
|
147 |
* ADD: New test for the troubleshooting module - test language codes
|
2 |
Contributors: damian-gora, matczar
|
3 |
Tags: woocommerce search, ajax search, search by sku, product search, woocommerce
|
4 |
Requires at least: 5.0
|
5 |
+
Tested up to: 5.8
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 1.13.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
142 |
|
143 |
== Changelog ==
|
144 |
|
145 |
+
= 1.13.0, July 27, 2021 =
|
146 |
+
* ADD: Integration with "eStore" theme
|
147 |
+
* ADD: Allow to open search result in new tab with Ctrl+left mouse key
|
148 |
+
|
149 |
+
* FIX: Disappearing suggestions and details panel on click when there were more search bars.
|
150 |
+
* FIX: Improved integration with "Avada" theme
|
151 |
+
* FIX: Improved mobile search in new version of "Rehub" theme
|
152 |
+
* FIX: Unable to use context menu and middle mouse button on search results
|
153 |
+
* FIX: "Eletro" theme - Support cases when the search overlay is disabled
|
154 |
+
|
155 |
+
* REFACTOR: Clean up composer files
|
156 |
+
|
157 |
= 1.12.0, June 22, 2021 =
|
158 |
* ADD: Integration with Electro theme
|
159 |
* ADD: New test for the troubleshooting module - test language codes
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -14,24 +14,24 @@ class InstalledVersions
|
|
14 |
private static $installed = array (
|
15 |
'root' =>
|
16 |
array (
|
17 |
-
'pretty_version' => '
|
18 |
-
'version' => '
|
19 |
'aliases' =>
|
20 |
array (
|
21 |
),
|
22 |
-
'reference' =>
|
23 |
'name' => 'dgora/ajax-search-for-woocommerce',
|
24 |
),
|
25 |
'versions' =>
|
26 |
array (
|
27 |
'dgora/ajax-search-for-woocommerce' =>
|
28 |
array (
|
29 |
-
'pretty_version' => '
|
30 |
-
'version' => '
|
31 |
'aliases' =>
|
32 |
array (
|
33 |
),
|
34 |
-
'reference' =>
|
35 |
),
|
36 |
),
|
37 |
);
|
14 |
private static $installed = array (
|
15 |
'root' =>
|
16 |
array (
|
17 |
+
'pretty_version' => 'dev-master',
|
18 |
+
'version' => 'dev-master',
|
19 |
'aliases' =>
|
20 |
array (
|
21 |
),
|
22 |
+
'reference' => '788a635bbcc44531640bd5c2fbff4002a09e0282',
|
23 |
'name' => 'dgora/ajax-search-for-woocommerce',
|
24 |
),
|
25 |
'versions' =>
|
26 |
array (
|
27 |
'dgora/ajax-search-for-woocommerce' =>
|
28 |
array (
|
29 |
+
'pretty_version' => 'dev-master',
|
30 |
+
'version' => 'dev-master',
|
31 |
'aliases' =>
|
32 |
array (
|
33 |
),
|
34 |
+
'reference' => '788a635bbcc44531640bd5c2fbff4002a09e0282',
|
35 |
),
|
36 |
),
|
37 |
);
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// autoload_classmap.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname($vendorDir)
|
7 |
|
8 |
return array(
|
9 |
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
3 |
// autoload_classmap.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
vendor/composer/autoload_namespaces.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// autoload_namespaces.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname($vendorDir)
|
7 |
|
8 |
return array(
|
9 |
);
|
3 |
// autoload_namespaces.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
);
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
// autoload_psr4.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname($vendorDir)
|
7 |
|
8 |
return array(
|
9 |
-
'DgoraWcas\\' => array($baseDir . '
|
10 |
);
|
3 |
// autoload_psr4.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'DgoraWcas\\' => array($baseDir . '/includes'),
|
10 |
);
|
vendor/composer/autoload_static.php
CHANGED
@@ -16,7 +16,7 @@ class ComposerStaticInit765647f7aee7e9065fbac560f20a7f60
|
|
16 |
public static $prefixDirsPsr4 = array (
|
17 |
'DgoraWcas\\' =>
|
18 |
array (
|
19 |
-
0 => __DIR__ . '/../..'
|
20 |
),
|
21 |
);
|
22 |
|
16 |
public static $prefixDirsPsr4 = array (
|
17 |
'DgoraWcas\\' =>
|
18 |
array (
|
19 |
+
0 => __DIR__ . '/../..' . '/includes',
|
20 |
),
|
21 |
);
|
22 |
|
vendor/composer/installed.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
"packages": [],
|
3 |
-
"dev":
|
4 |
"dev-package-names": []
|
5 |
}
|
1 |
{
|
2 |
"packages": [],
|
3 |
+
"dev": false,
|
4 |
"dev-package-names": []
|
5 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
-
'pretty_version' => '
|
5 |
-
'version' => '
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' =>
|
10 |
'name' => 'dgora/ajax-search-for-woocommerce',
|
11 |
),
|
12 |
'versions' =>
|
13 |
array (
|
14 |
'dgora/ajax-search-for-woocommerce' =>
|
15 |
array (
|
16 |
-
'pretty_version' => '
|
17 |
-
'version' => '
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
-
'reference' =>
|
22 |
),
|
23 |
),
|
24 |
);
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
+
'pretty_version' => 'dev-master',
|
5 |
+
'version' => 'dev-master',
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '788a635bbcc44531640bd5c2fbff4002a09e0282',
|
10 |
'name' => 'dgora/ajax-search-for-woocommerce',
|
11 |
),
|
12 |
'versions' =>
|
13 |
array (
|
14 |
'dgora/ajax-search-for-woocommerce' =>
|
15 |
array (
|
16 |
+
'pretty_version' => 'dev-master',
|
17 |
+
'version' => 'dev-master',
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
+
'reference' => '788a635bbcc44531640bd5c2fbff4002a09e0282',
|
22 |
),
|
23 |
),
|
24 |
);
|