Ajax Search for WooCommerce - Version 1.12.0

Version Description

Download this release

Release Info

Developer damian-gora
Plugin Icon 128x128 Ajax Search for WooCommerce
Version 1.12.0
Comparing to
See all releases

Code changes from version 1.11.0 to 1.12.0

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.11.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.3
14
  *
15
  */
16
  // Exit if accessed directly
@@ -37,6 +37,9 @@ if ( !class_exists( 'DGWT_WC_Ajax_Search' ) && !function_exists( 'dgoraAsfwFs' )
37
  * @var \DgoraWcas\Integrations\Themes\ThemesCompatibility
38
  */
39
  public $themeCompatibility ;
 
 
 
40
  public $brands ;
41
  /**
42
  * @var \DgoraWcas\Integrations\Marketplace\Marketplace
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.12.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.4
14
  *
15
  */
16
  // Exit if accessed directly
37
  * @var \DgoraWcas\Integrations\Themes\ThemesCompatibility
38
  */
39
  public $themeCompatibility ;
40
+ /**
41
+ * @var \DgoraWcas\Integrations\Brands
42
+ */
43
  public $brands ;
44
  /**
45
  * @var \DgoraWcas\Integrations\Marketplace\Marketplace
assets/css/admin-style.css CHANGED
@@ -1605,6 +1605,24 @@ h3.dgwt-wcas-troubleshooting-issue-title {
1605
  font-family: monospace;
1606
  }
1607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1608
  /* Settings - Filters rules */
1609
  #dgwt-wcas-settings-filters-rules .dgwt-wcas-select-group {
1610
  margin-right: 10px;
1605
  font-family: monospace;
1606
  }
1607
 
1608
+ .dgwt-wcas-troubleshooting-wrapper .dgwt-wcas-ajax-loader {
1609
+ -moz-transition: opacity 0.2s;
1610
+ -webkit-transition: opacity 0.2s;
1611
+ transition: opacity 0.2s;
1612
+ display: inline-block;
1613
+ width: 20px;
1614
+ height: 20px;
1615
+ background: url(../img/preloader.gif);
1616
+ background-size: 20px 20px;
1617
+ opacity: 0;
1618
+ margin-bottom: -5px;
1619
+ margin-left: 5px;
1620
+ }
1621
+
1622
+ .dgwt-wcas-troubleshooting-wrapper .dgwt-wcas-ajax-loader.loading {
1623
+ opacity: 1;
1624
+ }
1625
+
1626
  /* Settings - Filters rules */
1627
  #dgwt-wcas-settings-filters-rules .dgwt-wcas-select-group {
1628
  margin-right: 10px;
assets/css/style.css CHANGED
@@ -1228,6 +1228,10 @@ body:not(.dgwt-wcas-is-details) .dgwt-wcas-suggestion:last-child {
1228
  min-height: 100vh;
1229
  }
1230
 
 
 
 
 
1231
  .dgwt-wcas-om-bar {
1232
  display: flex;
1233
  height: 45px;
1228
  min-height: 100vh;
1229
  }
1230
 
1231
+ html.dgwt-wcas-overlay-mobile-on {
1232
+ scroll-behavior: unset;
1233
+ }
1234
+
1235
  .dgwt-wcas-om-bar {
1236
  display: flex;
1237
  height: 45px;
assets/css/style.min.css CHANGED
@@ -1 +1 @@
1
- .dgwt-wcas-block-scroll{overflow:hidden}.dgwt-wcas-search-wrapp{position:relative;line-height:100%;display:block;color:#444;min-width:230px;width:100%;text-align:left;margin:0 auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dgwt-wcas-tpd-image img{margin:0 15px 0 0!important;display:block}.rtl .dgwt-wcas-tpd-image img{margin:0 0 0 15px!important}.dgwt-wcas-preloader-wrapp img{margin:10px auto 0 auto;display:block;max-width:200px}.dgwt-wcas-preloader-wrapp img.dgwt-wcas-placeholder-preloader{display:block;width:100%;height:auto;max-width:300px;margin:0}.dgwt-wcas-suggestions-wrapp{background:#fff none repeat scroll 0 0;border:1px solid #ddd;border-top:none;padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.dgwt-wcas-details-wrapp *,.dgwt-wcas-search-wrapp *,.dgwt-wcas-suggestions-wrapp *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dgwt-wcas-details-wrapp a:focus,.dgwt-wcas-suggestions-wrapp a:focus{outline:0}.dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp--top{border:1px solid #ddd;border-bottom:none}.dgwt-wcas-is-detail-box .dgwt-wcas-suggestions-wrapp{max-width:550px}.dgwt-wcas-full-width.dgwt-wcas-is-detail-box .dgwt-wcas-suggestion{padding:8px 15px}.dgwt-wcas-details-left .dgwt-wcas-suggestions-wrapp{border-radius:0 0 5px 0;border-left-color:#eee}.dgwt-wcas-details-right .dgwt-wcas-suggestions-wrapp{border-radius:0 0 0 5px;border-right-color:#eee}.dgwt-wcas-suggestion{cursor:pointer;font-size:12px;line-height:110%;text-align:left;padding:7px 10px;position:relative;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:row;justify-content:space-between;align-items:center;resize:vertical;width:100%}.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more{justify-content:center;color:#6d6d6d}a.dgwt-wcas-details-more-products{padding:15px 0 10px 0;display:block;border-top:1px solid #eee;text-align:center;font-size:12px;text-transform:uppercase;color:#6d6d6d;transition:all .2s ease-in-out}a.dgwt-wcas-details-more-products:hover{text-decoration:underline}a.dgwt-wcas-product-details-readmore{display:block;text-align:right;margin-top:15px;color:#6d6d6d;text-transform:uppercase;letter-spacing:1px;font-weight:400;font-size:12px}a.dgwt-wcas-product-details-readmore:hover{text-decoration:underline}.dgwt-wcas-suggestion.dgwt-wcas-suggestion-no-border-bottom{border-bottom:none}.dgwt-wcas-suggestion:after{clear:both;display:block;content:''}.dgwt-wcas-suggestion.dgwt-wcas-nores{cursor:default;opacity:.5}.dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{padding-top:8px;padding-bottom:8px;min-height:60px}.dgwt-wcas-is-details .dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-more,.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more{min-height:30px;text-transform:uppercase}.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more .dgwt-wcas-st-more{padding:0 10px;text-align:center}.dgwt-wcas-st{display:block;color:#444;font-size:15px;width:100%;line-height:110%}.dgwt-wcas-st>span{display:inline-block;vertical-align:middle}.dgwt-wcas-has-sku .dgwt-wcas-st-title{margin-right:6px}.dgwt-wcas-st>span.dgwt-wcas-st--direct-headline{display:block;font-style:italic;font-size:10px;text-transform:uppercase;opacity:.4;line-height:10px;margin-bottom:1px;letter-spacing:2px}.dgwt-wcas-st-breadcrumbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:80%;text-align:left;opacity:.6;width:100%;padding-right:10px}.rtl .dgwt-wcas-st-breadcrumbs{padding-right:0;padding-left:10px;text-align:right}.dgwt-wcas-sku{font-size:80%}.dgwt-wcas-si{width:50px;display:block;height:100%}.dgwt-wcas-si img{background:#fff none repeat scroll 0 0;border:1px solid #e8e8e8;border-radius:3px;display:block;margin:auto;padding:2px;height:auto;width:auto;max-height:90%;max-width:100%}.dgwt-wcas-content-wrapp{display:flex;height:100%;width:100%;justify-content:space-between;align-items:center;resize:vertical;padding-left:10px}.rtl .dgwt-wcas-content-wrapp{padding-left:0;padding-right:10px}.dgwt-wcas-sp{color:#555;font-size:14px;line-height:120%;text-align:right;line-height:4px;padding-left:10px}.dgwt-wcas-sp *{line-height:130%}.dgwt-wcas-search-form{margin:0;padding:0;width:100%}.dgwt-wcas-sp del{opacity:.5;font-size:12px}.dgwt-wcas-sd{color:#777;display:block;line-height:14px;width:100%;margin-top:5px;font-size:.8em}.dgwt-wcas-vendor-city{margin-left:5px;font-size:.8em}.dgwt-wcas-st>.dgwt-wcas-product-vendor{font-size:12px;margin-top:5px;display:block}.dgwt-wcas-suggestion-selected{background-color:#eee}.dgwt-wcas-suggestion-selected:first-child{border-top:none}.rtl .dgwt-wcas-suggestion{padding-left:0;padding-right:15px;text-align:right}.dgwt-wcas-details-wrapp{background:#fff none repeat scroll 0 0;border:1px solid #ddd;border-top:none;border-left:none;padding:0;width:300px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;z-index:100;min-height:340px}.rtl .dgwt-wcas-details-wrapp{border-left:1px solid #ddd;border-right:none}.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp{margin-top:-1px;border-top:1px solid #ddd}.dgwt-wcas-details-outside.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{margin-top:-1px;border-top:1px solid #ddd}.dgwt-wcas-details-right .dgwt-wcas-details-wrapp{border-left:none;border-right:1px solid #ddd;border-radius:0 5px 5px 0}.dgwt-wcas-details-left .dgwt-wcas-details-wrapp{border-right:none;border-left:1px solid #ddd;border-radius:5px 0 0 5px}.dgwt-wcas-details-notfit .dgwt-wcas-details-wrapp{display:none}.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{border-radius:0 0 0 5px}.dgwt-wcas-full-width .dgwt-wcas-details-wrapp{border-radius:0 0 5px 0}.rtl.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{border-radius:0 0 5px 0}.rtl.dgwt-wcas-full-width .dgwt-wcas-details-wrapp{border-radius:0 0 0 5px}.dgwt-wcas-details-inner{display:none}.dgwt-wcas-details-inner.dgwt-wcas-details-inner-active{display:block}.dgwt-wcas-details-inner-taxonomy{margin-top:11px}.woocommerce .dgwt-wcas-pd-rating .star-rating{float:left;margin-right:5px;font-size:12px;color:#ccae72}.rtl .dgwt-wcas-pd-rating .star-rating{float:right;margin-left:5px;margin-right:0}.dgwt-wcas-datails-title{border-bottom:1px dashed #eee;display:block;margin-bottom:15px;padding-bottom:5px;font-size:14px}.dgwt-wcas-pd-title{border-bottom:1px dashed #eee;margin-bottom:15px;padding-bottom:5px;display:block;color:#202020;text-decoration:none}.dgwt-wcas-pd-title .product-title{font-weight:900;color:#202020;text-transform:uppercase;letter-spacing:-1px;margin:0}.dgwt-wcas-details-title-tax{text-transform:uppercase;font-weight:900;letter-spacing:-1px;margin-right:3px}.dgwt-wcas-tax-product-details{text-decoration:none;display:flex;align-items:center;justify-content:left;transition:all .2s ease-in-out;padding:5px;margin:0 -5px 15px -5px}.dgwt-wcas-tax-product-details:after{content:'';clear:both;display:block}.dgwt-wcas-tax-product-details:hover{box-shadow:0 0 11px 2px rgba(0,0,0,.05)}.dgwt-wcas-details-wrapp .dgwt-wcas-pd-title{margin-bottom:8px}.dgwt-wcas-tpd-image{width:60px;margin-right:15px}.dgwt-wcas-pd-rest .product-title{display:block;line-height:100%;font-weight:500;margin-bottom:5px}.dgwt-wcas-tpd-rest{max-width:200px}.dgwt-wcas-tpd-rest-title{display:block;line-height:125%;font-size:14px;font-weight:500;letter-spacing:0;margin:0 0 8px;overflow:hidden;color:#000}.dgwt-wcas-suggestion-nores{pointer-events:none;opacity:.45}.dgwt-wcas-pd-price,.dgwt-wcas-tpd-price{font-size:14px;line-height:120%;overflow:hidden;color:#000;margin-top:15px;font-weight:700;font-size:18px}.dgwt-wcas-tpd-price{font-size:12px;color:#777}.dgwt-wcas-pd-price .woocommerce-price-suffix,.dgwt-wcas-tpd-price .woocommerce-price-suffix{font-size:12px;font-weight:lighter;color:#999;margin-left:4px;display:inline-block}.dgwt-wcas-pd-price del .amount,.dgwt-wcas-tpd-price del .amount{font-weight:lighter;background:0 0;font-size:90%;opacity:.6}.dgwt-wcas-pd-price ins,.dgwt-wcas-tpd-price ins{background:0 0;text-decoration:none}.dgwt-wcas-pd-rating{font-size:13px;line-height:13px}.dgwt-wcas-pd-rating:after{content:'';clear:both;display:block}.dgwt-wcas-pd-review{color:#777;font-size:11px;line-height:11px}.dgwt-wcas-datails-title{border-bottom:1px dashed #eee;display:block;margin:5px 0 15px 0;padding-bottom:5px}.dgwt-wcas-pd-title{border-bottom:1px dashed #eee;margin-bottom:15px;padding-bottom:5px;display:block;text-decoration:none}.dgwt-wcas-pd-title .product-title{font-weight:900;text-transform:uppercase;letter-spacing:-1px}.dgwt-wcas-details-title-tax{text-transform:uppercase;font-weight:900;letter-spacing:-1px;margin-right:3px}.rtl .dgwt-wcas-details-title-tax{margin:0 0 0 3px;float:right}.dgwt-wcas-tpd-image{width:70px;padding:4px;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;display:flex;flex-direction:column;justify-content:center}.dgwt-wcas-details-space{padding:0 15px 15px 15px}.dgwt-wcas-details-main-image{border-bottom:1px solid #eee;min-height:200px;display:flex}.dgwt-wcas-details-main-image img{width:auto;height:auto;display:block;max-height:250px;max-width:100%;margin:0 auto;padding:0;border:none;align-self:center}.dgwt-wcas-details-right .dgwt-wcas-details-main-image img{border-radius:0 3px 0 0}.dgwt-wcas-details-left .dgwt-wcas-details-main-image img{border-radius:3px 0 0 0}a.dgwt-wcas-details-post-title,a.dgwt-wcas-details-product-title{color:#333;display:block;line-height:120%;margin:10px 0 0 0;font-size:21px;font-weight:400;text-decoration:none;text-transform:none}a.dgwt-wcas-details-post-title:hover,a.dgwt-wcas-details-product-title:hover{text-decoration:underline}a.dgwt-wcas-details-post-title{margin-bottom:15px}.dgwt-wcas-details-product-sku{display:block;font-size:12px;line-height:110%;color:#999}.dgwt-wcas-tpd-image img{display:block;max-width:100%;width:100%;height:auto}.dgwt-wcas-details-hr{height:1px;width:100%;border-bottom:1px solid #eee;margin:15px 0}.rtl .dgwt-wcas-tpd-image{float:right;margin-right:0;margin-left:15px}.rtl .dgwt-wcas-tpd-rest{float:right;max-width:190px}.rtl input[type=search].dgwt-wcas-search-input{text-align:right}input[type=search].dgwt-wcas-search-input,input[type=text].dgwt-cas-search-input{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;-webkit-box-shadow:none;box-shadow:none;margin:0;-webkit-appearance:textfield;text-align:left}[type=search].dgwt-wcas-search-input::-ms-clear{display:none}[type=search].dgwt-wcas-search-input::-webkit-search-decoration{-webkit-appearance:none}[type=search].dgwt-wcas-search-input::-webkit-search-cancel-button{display:none}.dgwt-wcas-details-desc{font-size:13px;line-height:157%}.dgwt-wcas-details-desc b,.dgwt-wcas-details-desc strong{font-weight:400;color:#000;margin:0;padding:0}.dgwt-wcas-pd-addtc-form{margin:10px 0;display:flex;align-items:center;justify-content:flex-end}.dgwt-wcas-pd-addtc-form>.quantity{margin-right:10px}.dgwt-wcas-pd-addtc-form .add_to_cart_inline,.dgwt-wcas-pd-addtc-form .quantity input.qty{margin-bottom:0;margin-top:0}.dgwt-wcas-stock{display:block;text-align:right;font-size:14px;line-height:14px;margin-bottom:14px}.dgwt-wcas-stock.in-stock{color:#0f834d}.dgwt-wcas-stock.out-of-stock{color:#e2401c}.dgwt-wcas-pd-addtc .add_to_cart_button,.dgwt-wcas-pd-addtc .add_to_cart_inline{margin:0}.dgwt-wcas-pd-addtc .add_to_cart_button.added{display:none}button.dgwt-wcas-search-submit,input[type=submit].dgwt-wcas-search-submit{position:relative}.dgwt-wcas-ico-magnifier{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;height:65%;display:block}.dgwt-wcas-preloader{height:100%;position:absolute;right:0;top:0;width:40px;z-index:1;background-repeat:no-repeat;background-position:right 15px center;background-size:auto 44%}.rtl .dgwt-wcas-preloader{right:auto;left:5px}.dgwt-wcas-inner-preloader{background-repeat:no-repeat;background-position:right 8px center;background-size:auto 22px;display:flex;align-items:center;justify-content:center}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.dgwt-wcas-inner-preloader{background-image:url(../img/preloader.gif)}}.dgwt-wcas-loader-circular{height:24px;width:24px;-webkit-animation:2s linear infinite rotate;-moz-animation:2s linear infinite rotate;animation:2s linear infinite rotate}.dgwt-wcas-loader-circular-path{fill:transparent;stroke-linecap:round;stroke-width:4px;stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-transform-origin:50% 50%;-moz-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-animation:1s ease-in-out infinite dash;-moz-animation:1s ease-in-out infinite dash;animation:1s ease-in-out infinite dash}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes rotate{100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@-moz-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.dgwt-wcas-close:not(.dgwt-wcas-inner-preloader){cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-transition:all 160ms ease-in-out;-moz-transition:all 160ms ease-in-out;-ms-transition:all 160ms ease-in-out;-o-transition:all 160ms ease-in-out;transition:all 160ms ease-in-out}.dgwt-wcas-close:hover{opacity:.3}@media screen and (max-width:992px){.dgwt-wcas-is-detail-box .dgwt-wcas-suggestions-wrapp{max-width:none}}.dgwt-wcas-suggestion strong{font-weight:700}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.dgwt-wcas-sf-wrapp:after,.dgwt-wcas-sf-wrapp:before{content:"";display:table}.dgwt-wcas-sf-wrapp:after{clear:both}.dgwt-wcas-sf-wrapp{zoom:1;width:100%;max-width:100vw;margin:0;position:relative;background:0 0}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{width:100%;height:40px;font-size:14px;line-height:100%;padding:10px 15px;margin:0;background:#fff;border:1px solid #ddd;border-radius:3px;-webkit-border-radius:3px;-webkit-appearance:none;box-sizing:border-box}.dgwt-wcas-open .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-radius:3px 3px 0 0}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp{display:none!important}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-details-outside .dgwt-wcas-suggestions-wrapp{min-height:0!important;border-radius:0 0 5px 5px;border-right-color:#ddd}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-details-wrapp,.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{min-height:41px!important}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width:not(.rtl):not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestions-wrapp{border-right-color:transparent}.dgwt-wcas-open.dgwt-wcas-nores .dgwt-wcas-details-wrapp .dgwt-wcas-preloader-wrapp{display:none!important}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-is-details:not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestion-nores{margin-top:5px}.rtl.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width:not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestions-wrapp{border-left-color:transparent}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus{outline:0;background:#fff;box-shadow:0 0 9px 1px rgba(0,0,0,.06);-webkit-transition:all 150ms ease-in;-moz-transition:all 150ms ease-in;-ms-transition:all 150ms ease-in;-o-transition:all 150ms ease-in;transition:all 150ms ease-in}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::-webkit-input-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:-moz-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::-moz-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:-ms-input-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{overflow:visible;position:absolute;border:0;padding:0;margin:0;cursor:pointer;height:40px;min-width:50px;width:auto;line-height:100%;min-height:100%;right:0;left:auto;top:0;bottom:auto;padding:0 15px;color:#fff;-webkit-transition:all 250ms ease-in-out;-moz-transition:all 250ms ease-in-out;-ms-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out;text-transform:uppercase;background-color:#333;border-radius:0 2px 2px 0;-webkit-border-radius:0 2px 2px 0;text-shadow:0 -1px 0 rgba(0,0,0,.3);-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none}.rtl .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{left:0;right:auto}.dgwt-wcas-open .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit{border-radius:0 2px 0 0}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover{opacity:.7}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:active,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus{opacity:.7;outline:0}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:before{content:'';position:absolute;border-width:8px 8px 8px 0;border-style:solid solid solid none;border-color:transparent #333 transparent;top:12px;left:-6px;-webkit-transition:all 250ms ease-in-out;-moz-transition:all 250ms ease-in-out;-ms-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out}.rtl .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:before{left:auto;right:-6px;border-width:8px 0 8px 8px;border-style:solid none solid solid}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover:before{border-right-color:#333}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:active:before,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus:before{border-right-color:#333}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::-moz-focus-inner{border:0;padding:0}.dgwt-wcas-details-wrapp .added_to_cart{display:block}.dgwt-wcas-has-desc .dgwt-wcas-sp>*,.dgwt-wcas-has-img .dgwt-wcas-sp>*{display:block}.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{min-height:340px}body:not(.dgwt-wcas-is-details) .dgwt-wcas-suggestion:last-child{border-bottom:none}.dgwt-wcas-is-details .dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{min-height:40px}.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{overflow:visible}.dgwt-wcas-is-details .dgwt-wcas-si{width:30px;max-width:100%;box-sizing:border-box}.dgwt-wcas-is-details .dgwt-wcas-sp{display:flex;top:0;flex-direction:column;height:100%;justify-content:center;resize:vertical}.dgwt-wcas-is-details .dgwt-wcas-sd{font-size:11px;line-height:100%}.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_cat],.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_tag]{padding-left:15px;min-height:0}.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_cat] .dgwt-wcas-st,.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_tag] .dgwt-wcas-st{padding-left:0}.dgwt-wcas-ico-magnifier,.dgwt-wcas-ico-magnifier-handler{max-width:20px}.dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier{height:50%;margin:auto;max-height:20px;width:100%;max-width:20px;left:12px;right:auto;opacity:.5;fill:#000}.rtl .dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier{left:auto;right:12px}.dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding:10px 15px 10px 40px}.rtl .dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding:10px 40px 10px 15px}.dgwt-wcas-overlay-mobile-on,.dgwt-wcas-overlay-mobile-on body{overflow:hidden;min-width:100vw;min-height:100vh}.dgwt-wcas-om-bar{display:flex;height:45px;width:100%}.dgwt-wcas-om-bar button.dgwt-wcas-om-return,.dgwt-wcas-om-bar button.dgwt-wcas-om-return:active,.dgwt-wcas-om-bar button.dgwt-wcas-om-return:focus,.dgwt-wcas-om-bar button.dgwt-wcas-om-return:hover{width:45px;height:100%;display:block;background:#ccc;cursor:pointer;position:relative;margin:0;padding:0;box-shadow:none;outline:0;border:medium none;border-spacing:0;border-radius:0}.dgwt-wcas-om-bar .dgwt-wcas-om-return svg{width:23px;height:23px;position:absolute;left:12px;top:12px}.rtl .dgwt-wcas-om-bar .dgwt-wcas-om-return svg{left:11px;top:9px;-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path{fill:#fff}.dgwt-wcas-om-bar .dgwt-wcas-has-submit-off .dgwt-wcas-preloader{right:0!important}.rtl .dgwt-wcas-om-bar .dgwt-wcas-has-submit-off .dgwt-wcas-preloader{left:4px!important;right:auto!important}@keyframes dgwt-wcas-preloader-price-anim{0%{background:rgba(128,128,128,.03)}50%{background:rgba(128,128,128,.1)}100%{background:rgba(128,128,128,.03)}}.dgwt-wcas-preloader-price-inner div:nth-child(1){left:0;animation-delay:-.1s}.dgwt-wcas-preloader-price-inner div:nth-child(2){left:13px;animation-delay:-.2s}.dgwt-wcas-preloader-price-inner div:nth-child(3){left:26px;animation-delay:-.3s}.dgwt-wcas-preloader-price{width:34px;height:10px;display:inline-block;overflow:hidden;background:0 0}.dgwt-wcas-preloader-price-inner{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.dgwt-wcas-preloader-price-inner div{position:absolute;width:8px;height:8px;background:rgba(128,128,128,.05);animation:dgwt-wcas-preloader-price-anim .8s cubic-bezier(0,.5,.5,1) infinite;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dgwt-wcas-om-bar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{display:none}.dgwt-wcas-om-bar .dgwt-wcas-search-wrapp-mobile{width:calc(100% - 45px);max-width:none;margin:0}.dgwt-wcas-overlay-mobile .dgwt-wcas-search-form{width:100%}.dgwt-wcas-overlay-mobile{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;background:#fff}.dgwt-wcas-overlay-mobile *{box-sizing:border-box}.dgwt-wcas-search-wrapp-mobile input[type=search].dgwt-wcas-search-input{height:45px!important;border-top:none;border-right:none;border-left:none;border-radius:0;font-size:16px!important}.dgwt-wcas-search-wrapp-mobile input[type=search].dgwt-wcas-search-input:focus{font-size:16px!important}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp{left:0!important;top:45px!important;width:100%!important;height:calc(100% - 45px)!important;position:absolute;overflow-y:auto;border:none;margin:0;display:block}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion{width:100%}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-enable-mobile-form{display:none}.dgwt-wcas-enable-mobile-form{position:absolute;z-index:100;left:0;top:0;width:100%;height:100%;cursor:pointer}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-icon-mobile .dgwt-wcas-search-form{display:none;position:relative}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-icon-mobile{min-width:0;display:inline-block;width:28px;height:28px}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-icon-handler{height:100%;width:100%}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-icon-handler .dgwt-wcas-ico-magnifier{opacity:1;position:static;max-width:none;max-height:none}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-icon-handler{display:none}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios .dgwt-wcas-suggestions-wrapp{height:calc(100% - 45px)!important}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios{overflow:visible}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios .dgwt-wcas-suggestions-wrapp{max-height:none!important;height:auto!important}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios body:not(.dgwt-wcas-theme-flatsome)>:not(.dgwt-wcas-overlay-mobile){display:none}body .dgwt-wcas-content-wrapp .rood,body .dgwt-wcas-content-wrapp .zwave{display:none}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon{min-width:unset}.dgwt-wcas-layout-icon-flexible .dgwt-wcas-search-form{opacity:0}.dgwt-wcas-layout-icon-flexible-loaded .dgwt-wcas-search-form{opacity:1}.dgwt-wcas-search-icon-arrow{display:none}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon .dgwt-wcas-search-form{opacity:0;display:none;position:absolute;left:0;top:calc(100% + 8px);min-width:500px;z-index:1000}.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon,.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon-arrow{display:none}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open .dgwt-wcas-search-form{display:block;opacity:1}.dgwt-wcas-search-icon{width:20px;height:auto;cursor:pointer}.dgwt-wcas-ico-magnifier-handler{margin-bottom:-.2em;width:100%}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open .dgwt-wcas-search-icon{opacity:.6}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open:not(.dgwt-wcas-has-submit) .dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier{display:none}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open.dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding-left:15px}.dgwt-wcas-layout-icon-open .dgwt-wcas-search-icon-arrow{display:block;position:absolute;top:calc(100% + 2px);left:0;z-index:5;width:15px;height:15px;background:#fff;border:1px solid #ddd;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.dgwt-wcas-layout-icon-flexible:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon,.dgwt-wcas-layout-icon-flexible:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon-arrow{display:none}.dgwt-wcas-has-headings .dgwt-wcas-suggestion{border-bottom:none}.dgwt-wcas-has-headings .dgwt-wcas-st>span.dgwt-wcas-st--direct-headline{display:none}.dgwt-wcas-has-headings .dgwt-wcas-suggestion-headline{pointer-events:none;display:block;font-weight:500;white-space:nowrap}.dgwt-wcas-has-headings .dgwt-wcas-suggestion-headline .dgwt-wcas-st{border-bottom:1px solid #ddd;padding-bottom:3px;text-transform:uppercase;margin-top:16px;font-size:12px}.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-headline,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax{border-bottom:none}.dgwt-wcas-has-headings .dgwt-wcas-suggestion-tax .dgwt-wcas-st{padding:0}.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax.dgwt-wcas-suggestion-selected,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax:hover{background:0 0;text-decoration:underline}.dgwt-wcas-is-details .dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax{min-height:30px}
1
+ .dgwt-wcas-block-scroll{overflow:hidden}.dgwt-wcas-search-wrapp{position:relative;line-height:100%;display:block;color:#444;min-width:230px;width:100%;text-align:left;margin:0 auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dgwt-wcas-tpd-image img{margin:0 15px 0 0!important;display:block}.rtl .dgwt-wcas-tpd-image img{margin:0 0 0 15px!important}.dgwt-wcas-preloader-wrapp img{margin:10px auto 0 auto;display:block;max-width:200px}.dgwt-wcas-preloader-wrapp img.dgwt-wcas-placeholder-preloader{display:block;width:100%;height:auto;max-width:300px;margin:0}.dgwt-wcas-suggestions-wrapp{background:#fff none repeat scroll 0 0;border:1px solid #ddd;border-top:none;padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.dgwt-wcas-details-wrapp *,.dgwt-wcas-search-wrapp *,.dgwt-wcas-suggestions-wrapp *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dgwt-wcas-details-wrapp a:focus,.dgwt-wcas-suggestions-wrapp a:focus{outline:0}.dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp--top{border:1px solid #ddd;border-bottom:none}.dgwt-wcas-is-detail-box .dgwt-wcas-suggestions-wrapp{max-width:550px}.dgwt-wcas-full-width.dgwt-wcas-is-detail-box .dgwt-wcas-suggestion{padding:8px 15px}.dgwt-wcas-details-left .dgwt-wcas-suggestions-wrapp{border-radius:0 0 5px 0;border-left-color:#eee}.dgwt-wcas-details-right .dgwt-wcas-suggestions-wrapp{border-radius:0 0 0 5px;border-right-color:#eee}.dgwt-wcas-suggestion{cursor:pointer;font-size:12px;line-height:110%;text-align:left;padding:7px 10px;position:relative;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:row;justify-content:space-between;align-items:center;resize:vertical;width:100%}.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more{justify-content:center;color:#6d6d6d}a.dgwt-wcas-details-more-products{padding:15px 0 10px 0;display:block;border-top:1px solid #eee;text-align:center;font-size:12px;text-transform:uppercase;color:#6d6d6d;transition:all .2s ease-in-out}a.dgwt-wcas-details-more-products:hover{text-decoration:underline}a.dgwt-wcas-product-details-readmore{display:block;text-align:right;margin-top:15px;color:#6d6d6d;text-transform:uppercase;letter-spacing:1px;font-weight:400;font-size:12px}a.dgwt-wcas-product-details-readmore:hover{text-decoration:underline}.dgwt-wcas-suggestion.dgwt-wcas-suggestion-no-border-bottom{border-bottom:none}.dgwt-wcas-suggestion:after{clear:both;display:block;content:''}.dgwt-wcas-suggestion.dgwt-wcas-nores{cursor:default;opacity:.5}.dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{padding-top:8px;padding-bottom:8px;min-height:60px}.dgwt-wcas-is-details .dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-more,.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more{min-height:30px;text-transform:uppercase}.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more .dgwt-wcas-st-more{padding:0 10px;text-align:center}.dgwt-wcas-st{display:block;color:#444;font-size:15px;width:100%;line-height:110%}.dgwt-wcas-st>span{display:inline-block;vertical-align:middle}.dgwt-wcas-has-sku .dgwt-wcas-st-title{margin-right:6px}.dgwt-wcas-st>span.dgwt-wcas-st--direct-headline{display:block;font-style:italic;font-size:10px;text-transform:uppercase;opacity:.4;line-height:10px;margin-bottom:1px;letter-spacing:2px}.dgwt-wcas-st-breadcrumbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:80%;text-align:left;opacity:.6;width:100%;padding-right:10px}.rtl .dgwt-wcas-st-breadcrumbs{padding-right:0;padding-left:10px;text-align:right}.dgwt-wcas-sku{font-size:80%}.dgwt-wcas-si{width:50px;display:block;height:100%}.dgwt-wcas-si img{background:#fff none repeat scroll 0 0;border:1px solid #e8e8e8;border-radius:3px;display:block;margin:auto;padding:2px;height:auto;width:auto;max-height:90%;max-width:100%}.dgwt-wcas-content-wrapp{display:flex;height:100%;width:100%;justify-content:space-between;align-items:center;resize:vertical;padding-left:10px}.rtl .dgwt-wcas-content-wrapp{padding-left:0;padding-right:10px}.dgwt-wcas-sp{color:#555;font-size:14px;line-height:120%;text-align:right;line-height:4px;padding-left:10px}.dgwt-wcas-sp *{line-height:130%}.dgwt-wcas-search-form{margin:0;padding:0;width:100%}.dgwt-wcas-sp del{opacity:.5;font-size:12px}.dgwt-wcas-sd{color:#777;display:block;line-height:14px;width:100%;margin-top:5px;font-size:.8em}.dgwt-wcas-vendor-city{margin-left:5px;font-size:.8em}.dgwt-wcas-st>.dgwt-wcas-product-vendor{font-size:12px;margin-top:5px;display:block}.dgwt-wcas-suggestion-selected{background-color:#eee}.dgwt-wcas-suggestion-selected:first-child{border-top:none}.rtl .dgwt-wcas-suggestion{padding-left:0;padding-right:15px;text-align:right}.dgwt-wcas-details-wrapp{background:#fff none repeat scroll 0 0;border:1px solid #ddd;border-top:none;border-left:none;padding:0;width:300px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;z-index:100;min-height:340px}.rtl .dgwt-wcas-details-wrapp{border-left:1px solid #ddd;border-right:none}.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp{margin-top:-1px;border-top:1px solid #ddd}.dgwt-wcas-details-outside.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{margin-top:-1px;border-top:1px solid #ddd}.dgwt-wcas-details-right .dgwt-wcas-details-wrapp{border-left:none;border-right:1px solid #ddd;border-radius:0 5px 5px 0}.dgwt-wcas-details-left .dgwt-wcas-details-wrapp{border-right:none;border-left:1px solid #ddd;border-radius:5px 0 0 5px}.dgwt-wcas-details-notfit .dgwt-wcas-details-wrapp{display:none}.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{border-radius:0 0 0 5px}.dgwt-wcas-full-width .dgwt-wcas-details-wrapp{border-radius:0 0 5px 0}.rtl.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{border-radius:0 0 5px 0}.rtl.dgwt-wcas-full-width .dgwt-wcas-details-wrapp{border-radius:0 0 0 5px}.dgwt-wcas-details-inner{display:none}.dgwt-wcas-details-inner.dgwt-wcas-details-inner-active{display:block}.dgwt-wcas-details-inner-taxonomy{margin-top:11px}.woocommerce .dgwt-wcas-pd-rating .star-rating{float:left;margin-right:5px;font-size:12px;color:#ccae72}.rtl .dgwt-wcas-pd-rating .star-rating{float:right;margin-left:5px;margin-right:0}.dgwt-wcas-datails-title{border-bottom:1px dashed #eee;display:block;margin-bottom:15px;padding-bottom:5px;font-size:14px}.dgwt-wcas-pd-title{border-bottom:1px dashed #eee;margin-bottom:15px;padding-bottom:5px;display:block;color:#202020;text-decoration:none}.dgwt-wcas-pd-title .product-title{font-weight:900;color:#202020;text-transform:uppercase;letter-spacing:-1px;margin:0}.dgwt-wcas-details-title-tax{text-transform:uppercase;font-weight:900;letter-spacing:-1px;margin-right:3px}.dgwt-wcas-tax-product-details{text-decoration:none;display:flex;align-items:center;justify-content:left;transition:all .2s ease-in-out;padding:5px;margin:0 -5px 15px -5px}.dgwt-wcas-tax-product-details:after{content:'';clear:both;display:block}.dgwt-wcas-tax-product-details:hover{box-shadow:0 0 11px 2px rgba(0,0,0,.05)}.dgwt-wcas-details-wrapp .dgwt-wcas-pd-title{margin-bottom:8px}.dgwt-wcas-tpd-image{width:60px;margin-right:15px}.dgwt-wcas-pd-rest .product-title{display:block;line-height:100%;font-weight:500;margin-bottom:5px}.dgwt-wcas-tpd-rest{max-width:200px}.dgwt-wcas-tpd-rest-title{display:block;line-height:125%;font-size:14px;font-weight:500;letter-spacing:0;margin:0 0 8px;overflow:hidden;color:#000}.dgwt-wcas-suggestion-nores{pointer-events:none;opacity:.45}.dgwt-wcas-pd-price,.dgwt-wcas-tpd-price{font-size:14px;line-height:120%;overflow:hidden;color:#000;margin-top:15px;font-weight:700;font-size:18px}.dgwt-wcas-tpd-price{font-size:12px;color:#777}.dgwt-wcas-pd-price .woocommerce-price-suffix,.dgwt-wcas-tpd-price .woocommerce-price-suffix{font-size:12px;font-weight:lighter;color:#999;margin-left:4px;display:inline-block}.dgwt-wcas-pd-price del .amount,.dgwt-wcas-tpd-price del .amount{font-weight:lighter;background:0 0;font-size:90%;opacity:.6}.dgwt-wcas-pd-price ins,.dgwt-wcas-tpd-price ins{background:0 0;text-decoration:none}.dgwt-wcas-pd-rating{font-size:13px;line-height:13px}.dgwt-wcas-pd-rating:after{content:'';clear:both;display:block}.dgwt-wcas-pd-review{color:#777;font-size:11px;line-height:11px}.dgwt-wcas-datails-title{border-bottom:1px dashed #eee;display:block;margin:5px 0 15px 0;padding-bottom:5px}.dgwt-wcas-pd-title{border-bottom:1px dashed #eee;margin-bottom:15px;padding-bottom:5px;display:block;text-decoration:none}.dgwt-wcas-pd-title .product-title{font-weight:900;text-transform:uppercase;letter-spacing:-1px}.dgwt-wcas-details-title-tax{text-transform:uppercase;font-weight:900;letter-spacing:-1px;margin-right:3px}.rtl .dgwt-wcas-details-title-tax{margin:0 0 0 3px;float:right}.dgwt-wcas-tpd-image{width:70px;padding:4px;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;display:flex;flex-direction:column;justify-content:center}.dgwt-wcas-details-space{padding:0 15px 15px 15px}.dgwt-wcas-details-main-image{border-bottom:1px solid #eee;min-height:200px;display:flex}.dgwt-wcas-details-main-image img{width:auto;height:auto;display:block;max-height:250px;max-width:100%;margin:0 auto;padding:0;border:none;align-self:center}.dgwt-wcas-details-right .dgwt-wcas-details-main-image img{border-radius:0 3px 0 0}.dgwt-wcas-details-left .dgwt-wcas-details-main-image img{border-radius:3px 0 0 0}a.dgwt-wcas-details-post-title,a.dgwt-wcas-details-product-title{color:#333;display:block;line-height:120%;margin:10px 0 0 0;font-size:21px;font-weight:400;text-decoration:none;text-transform:none}a.dgwt-wcas-details-post-title:hover,a.dgwt-wcas-details-product-title:hover{text-decoration:underline}a.dgwt-wcas-details-post-title{margin-bottom:15px}.dgwt-wcas-details-product-sku{display:block;font-size:12px;line-height:110%;color:#999}.dgwt-wcas-tpd-image img{display:block;max-width:100%;width:100%;height:auto}.dgwt-wcas-details-hr{height:1px;width:100%;border-bottom:1px solid #eee;margin:15px 0}.rtl .dgwt-wcas-tpd-image{float:right;margin-right:0;margin-left:15px}.rtl .dgwt-wcas-tpd-rest{float:right;max-width:190px}.rtl input[type=search].dgwt-wcas-search-input{text-align:right}input[type=search].dgwt-wcas-search-input,input[type=text].dgwt-cas-search-input{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;-webkit-box-shadow:none;box-shadow:none;margin:0;-webkit-appearance:textfield;text-align:left}[type=search].dgwt-wcas-search-input::-ms-clear{display:none}[type=search].dgwt-wcas-search-input::-webkit-search-decoration{-webkit-appearance:none}[type=search].dgwt-wcas-search-input::-webkit-search-cancel-button{display:none}.dgwt-wcas-details-desc{font-size:13px;line-height:157%}.dgwt-wcas-details-desc b,.dgwt-wcas-details-desc strong{font-weight:400;color:#000;margin:0;padding:0}.dgwt-wcas-pd-addtc-form{margin:10px 0;display:flex;align-items:center;justify-content:flex-end}.dgwt-wcas-pd-addtc-form>.quantity{margin-right:10px}.dgwt-wcas-pd-addtc-form .add_to_cart_inline,.dgwt-wcas-pd-addtc-form .quantity input.qty{margin-bottom:0;margin-top:0}.dgwt-wcas-stock{display:block;text-align:right;font-size:14px;line-height:14px;margin-bottom:14px}.dgwt-wcas-stock.in-stock{color:#0f834d}.dgwt-wcas-stock.out-of-stock{color:#e2401c}.dgwt-wcas-pd-addtc .add_to_cart_button,.dgwt-wcas-pd-addtc .add_to_cart_inline{margin:0}.dgwt-wcas-pd-addtc .add_to_cart_button.added{display:none}button.dgwt-wcas-search-submit,input[type=submit].dgwt-wcas-search-submit{position:relative}.dgwt-wcas-ico-magnifier{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;height:65%;display:block}.dgwt-wcas-preloader{height:100%;position:absolute;right:0;top:0;width:40px;z-index:1;background-repeat:no-repeat;background-position:right 15px center;background-size:auto 44%}.rtl .dgwt-wcas-preloader{right:auto;left:5px}.dgwt-wcas-inner-preloader{background-repeat:no-repeat;background-position:right 8px center;background-size:auto 22px;display:flex;align-items:center;justify-content:center}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.dgwt-wcas-inner-preloader{background-image:url(../img/preloader.gif)}}.dgwt-wcas-loader-circular{height:24px;width:24px;-webkit-animation:2s linear infinite rotate;-moz-animation:2s linear infinite rotate;animation:2s linear infinite rotate}.dgwt-wcas-loader-circular-path{fill:transparent;stroke-linecap:round;stroke-width:4px;stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-transform-origin:50% 50%;-moz-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-animation:1s ease-in-out infinite dash;-moz-animation:1s ease-in-out infinite dash;animation:1s ease-in-out infinite dash}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes rotate{100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@-moz-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.dgwt-wcas-close:not(.dgwt-wcas-inner-preloader){cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-transition:all 160ms ease-in-out;-moz-transition:all 160ms ease-in-out;-ms-transition:all 160ms ease-in-out;-o-transition:all 160ms ease-in-out;transition:all 160ms ease-in-out}.dgwt-wcas-close:hover{opacity:.3}@media screen and (max-width:992px){.dgwt-wcas-is-detail-box .dgwt-wcas-suggestions-wrapp{max-width:none}}.dgwt-wcas-suggestion strong{font-weight:700}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.dgwt-wcas-sf-wrapp:after,.dgwt-wcas-sf-wrapp:before{content:"";display:table}.dgwt-wcas-sf-wrapp:after{clear:both}.dgwt-wcas-sf-wrapp{zoom:1;width:100%;max-width:100vw;margin:0;position:relative;background:0 0}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{width:100%;height:40px;font-size:14px;line-height:100%;padding:10px 15px;margin:0;background:#fff;border:1px solid #ddd;border-radius:3px;-webkit-border-radius:3px;-webkit-appearance:none;box-sizing:border-box}.dgwt-wcas-open .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-radius:3px 3px 0 0}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp{display:none!important}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-details-outside .dgwt-wcas-suggestions-wrapp{min-height:0!important;border-radius:0 0 5px 5px;border-right-color:#ddd}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-details-wrapp,.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{min-height:41px!important}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width:not(.rtl):not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestions-wrapp{border-right-color:transparent}.dgwt-wcas-open.dgwt-wcas-nores .dgwt-wcas-details-wrapp .dgwt-wcas-preloader-wrapp{display:none!important}.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-is-details:not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestion-nores{margin-top:5px}.rtl.dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width:not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestions-wrapp{border-left-color:transparent}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus{outline:0;background:#fff;box-shadow:0 0 9px 1px rgba(0,0,0,.06);-webkit-transition:all 150ms ease-in;-moz-transition:all 150ms ease-in;-ms-transition:all 150ms ease-in;-o-transition:all 150ms ease-in;transition:all 150ms ease-in}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::-webkit-input-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:-moz-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::-moz-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:-ms-input-placeholder{color:#999;font-weight:400;font-style:italic;line-height:normal}.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{overflow:visible;position:absolute;border:0;padding:0;margin:0;cursor:pointer;height:40px;min-width:50px;width:auto;line-height:100%;min-height:100%;right:0;left:auto;top:0;bottom:auto;padding:0 15px;color:#fff;-webkit-transition:all 250ms ease-in-out;-moz-transition:all 250ms ease-in-out;-ms-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out;text-transform:uppercase;background-color:#333;border-radius:0 2px 2px 0;-webkit-border-radius:0 2px 2px 0;text-shadow:0 -1px 0 rgba(0,0,0,.3);-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none}.rtl .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{left:0;right:auto}.dgwt-wcas-open .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit{border-radius:0 2px 0 0}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover{opacity:.7}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:active,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus{opacity:.7;outline:0}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:before{content:'';position:absolute;border-width:8px 8px 8px 0;border-style:solid solid solid none;border-color:transparent #333 transparent;top:12px;left:-6px;-webkit-transition:all 250ms ease-in-out;-moz-transition:all 250ms ease-in-out;-ms-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out}.rtl .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:before{left:auto;right:-6px;border-width:8px 0 8px 8px;border-style:solid none solid solid}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover:before{border-right-color:#333}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:active:before,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus:before{border-right-color:#333}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::-moz-focus-inner{border:0;padding:0}.dgwt-wcas-details-wrapp .added_to_cart{display:block}.dgwt-wcas-has-desc .dgwt-wcas-sp>*,.dgwt-wcas-has-img .dgwt-wcas-sp>*{display:block}.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{min-height:340px}body:not(.dgwt-wcas-is-details) .dgwt-wcas-suggestion:last-child{border-bottom:none}.dgwt-wcas-is-details .dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{min-height:40px}.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{overflow:visible}.dgwt-wcas-is-details .dgwt-wcas-si{width:30px;max-width:100%;box-sizing:border-box}.dgwt-wcas-is-details .dgwt-wcas-sp{display:flex;top:0;flex-direction:column;height:100%;justify-content:center;resize:vertical}.dgwt-wcas-is-details .dgwt-wcas-sd{font-size:11px;line-height:100%}.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_cat],.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_tag]{padding-left:15px;min-height:0}.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_cat] .dgwt-wcas-st,.dgwt-wcas-has-img .dgwt-wcas-suggestion[data-taxonomy=product_tag] .dgwt-wcas-st{padding-left:0}.dgwt-wcas-ico-magnifier,.dgwt-wcas-ico-magnifier-handler{max-width:20px}.dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier{height:50%;margin:auto;max-height:20px;width:100%;max-width:20px;left:12px;right:auto;opacity:.5;fill:#000}.rtl .dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier{left:auto;right:12px}.dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding:10px 15px 10px 40px}.rtl .dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding:10px 40px 10px 15px}.dgwt-wcas-overlay-mobile-on,.dgwt-wcas-overlay-mobile-on body{overflow:hidden;min-width:100vw;min-height:100vh}html.dgwt-wcas-overlay-mobile-on{scroll-behavior:unset}.dgwt-wcas-om-bar{display:flex;height:45px;width:100%}.dgwt-wcas-om-bar button.dgwt-wcas-om-return,.dgwt-wcas-om-bar button.dgwt-wcas-om-return:active,.dgwt-wcas-om-bar button.dgwt-wcas-om-return:focus,.dgwt-wcas-om-bar button.dgwt-wcas-om-return:hover{width:45px;height:100%;display:block;background:#ccc;cursor:pointer;position:relative;margin:0;padding:0;box-shadow:none;outline:0;border:medium none;border-spacing:0;border-radius:0}.dgwt-wcas-om-bar .dgwt-wcas-om-return svg{width:23px;height:23px;position:absolute;left:12px;top:12px}.rtl .dgwt-wcas-om-bar .dgwt-wcas-om-return svg{left:11px;top:9px;-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path{fill:#fff}.dgwt-wcas-om-bar .dgwt-wcas-has-submit-off .dgwt-wcas-preloader{right:0!important}.rtl .dgwt-wcas-om-bar .dgwt-wcas-has-submit-off .dgwt-wcas-preloader{left:4px!important;right:auto!important}@keyframes dgwt-wcas-preloader-price-anim{0%{background:rgba(128,128,128,.03)}50%{background:rgba(128,128,128,.1)}100%{background:rgba(128,128,128,.03)}}.dgwt-wcas-preloader-price-inner div:nth-child(1){left:0;animation-delay:-.1s}.dgwt-wcas-preloader-price-inner div:nth-child(2){left:13px;animation-delay:-.2s}.dgwt-wcas-preloader-price-inner div:nth-child(3){left:26px;animation-delay:-.3s}.dgwt-wcas-preloader-price{width:34px;height:10px;display:inline-block;overflow:hidden;background:0 0}.dgwt-wcas-preloader-price-inner{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.dgwt-wcas-preloader-price-inner div{position:absolute;width:8px;height:8px;background:rgba(128,128,128,.05);animation:dgwt-wcas-preloader-price-anim .8s cubic-bezier(0,.5,.5,1) infinite;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dgwt-wcas-om-bar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{display:none}.dgwt-wcas-om-bar .dgwt-wcas-search-wrapp-mobile{width:calc(100% - 45px);max-width:none;margin:0}.dgwt-wcas-overlay-mobile .dgwt-wcas-search-form{width:100%}.dgwt-wcas-overlay-mobile{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;background:#fff}.dgwt-wcas-overlay-mobile *{box-sizing:border-box}.dgwt-wcas-search-wrapp-mobile input[type=search].dgwt-wcas-search-input{height:45px!important;border-top:none;border-right:none;border-left:none;border-radius:0;font-size:16px!important}.dgwt-wcas-search-wrapp-mobile input[type=search].dgwt-wcas-search-input:focus{font-size:16px!important}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp{left:0!important;top:45px!important;width:100%!important;height:calc(100% - 45px)!important;position:absolute;overflow-y:auto;border:none;margin:0;display:block}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion{width:100%}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-enable-mobile-form{display:none}.dgwt-wcas-enable-mobile-form{position:absolute;z-index:100;left:0;top:0;width:100%;height:100%;cursor:pointer}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-icon-mobile .dgwt-wcas-search-form{display:none;position:relative}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-icon-mobile{min-width:0;display:inline-block;width:28px;height:28px}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-icon-handler{height:100%;width:100%}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-icon-handler .dgwt-wcas-ico-magnifier{opacity:1;position:static;max-width:none;max-height:none}.dgwt-wcas-overlay-mobile-on .dgwt-wcas-icon-handler{display:none}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios .dgwt-wcas-suggestions-wrapp{height:calc(100% - 45px)!important}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios{overflow:visible}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios .dgwt-wcas-suggestions-wrapp{max-height:none!important;height:auto!important}.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios body:not(.dgwt-wcas-theme-flatsome)>:not(.dgwt-wcas-overlay-mobile){display:none}body .dgwt-wcas-content-wrapp .rood,body .dgwt-wcas-content-wrapp .zwave{display:none}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon{min-width:unset}.dgwt-wcas-layout-icon-flexible .dgwt-wcas-search-form{opacity:0}.dgwt-wcas-layout-icon-flexible-loaded .dgwt-wcas-search-form{opacity:1}.dgwt-wcas-search-icon-arrow{display:none}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon .dgwt-wcas-search-form{opacity:0;display:none;position:absolute;left:0;top:calc(100% + 8px);min-width:500px;z-index:1000}.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon,.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon-arrow{display:none}html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open .dgwt-wcas-search-form{display:block;opacity:1}.dgwt-wcas-search-icon{width:20px;height:auto;cursor:pointer}.dgwt-wcas-ico-magnifier-handler{margin-bottom:-.2em;width:100%}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open .dgwt-wcas-search-icon{opacity:.6}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open:not(.dgwt-wcas-has-submit) .dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier{display:none}.dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.dgwt-wcas-layout-icon-open.dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding-left:15px}.dgwt-wcas-layout-icon-open .dgwt-wcas-search-icon-arrow{display:block;position:absolute;top:calc(100% + 2px);left:0;z-index:5;width:15px;height:15px;background:#fff;border:1px solid #ddd;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.dgwt-wcas-layout-icon-flexible:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon,.dgwt-wcas-layout-icon-flexible:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon-arrow{display:none}.dgwt-wcas-has-headings .dgwt-wcas-suggestion{border-bottom:none}.dgwt-wcas-has-headings .dgwt-wcas-st>span.dgwt-wcas-st--direct-headline{display:none}.dgwt-wcas-has-headings .dgwt-wcas-suggestion-headline{pointer-events:none;display:block;font-weight:500;white-space:nowrap}.dgwt-wcas-has-headings .dgwt-wcas-suggestion-headline .dgwt-wcas-st{border-bottom:1px solid #ddd;padding-bottom:3px;text-transform:uppercase;margin-top:16px;font-size:12px}.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-headline,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax{border-bottom:none}.dgwt-wcas-has-headings .dgwt-wcas-suggestion-tax .dgwt-wcas-st{padding:0}.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax.dgwt-wcas-suggestion-selected,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax:hover{background:0 0;text-decoration:underline}.dgwt-wcas-is-details .dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax{min-height:30px}
assets/js/admin.js CHANGED
@@ -1434,6 +1434,8 @@
1434
  progressBar: '.dgwt-wcas-troubleshooting-wrapper .progress_bar',
1435
  progressBarInner: '.dgwt-wcas-troubleshooting-wrapper .progress-bar-inner',
1436
  resetButtonName: 'dgwt-wcas-reset-async-tests',
 
 
1437
  init: function () {
1438
  var _this = this;
1439
  if (typeof dgwt_wcas['troubleshooting'] === 'undefined') {
@@ -1477,6 +1479,38 @@
1477
  );
1478
  return false;
1479
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1480
  },
1481
  appendIssue: function (issue, incrementCounter) {
1482
  var _this = this;
1434
  progressBar: '.dgwt-wcas-troubleshooting-wrapper .progress_bar',
1435
  progressBarInner: '.dgwt-wcas-troubleshooting-wrapper .progress-bar-inner',
1436
  resetButtonName: 'dgwt-wcas-reset-async-tests',
1437
+ fixOutofstockButtonName: 'dgwt-wcas-fix-out-of-stock-relationships',
1438
+ dismissElementorTemplateButtonName: 'dgwt-wcas-dismiss-elementor-template',
1439
  init: function () {
1440
  var _this = this;
1441
  if (typeof dgwt_wcas['troubleshooting'] === 'undefined') {
1479
  );
1480
  return false;
1481
  });
1482
+
1483
+ $(document).on('click', 'input[name="' + _this.fixOutofstockButtonName + '"]', function (e) {
1484
+ $('input[name="' + _this.fixOutofstockButtonName + '"]').attr('disabled', 'disabled').next().addClass('loading');
1485
+ var data = {
1486
+ 'action': 'dgwt_wcas_troubleshooting_fix_outofstock',
1487
+ '_wpnonce': dgwt_wcas.troubleshooting.nonce.troubleshooting_fix_outofstock
1488
+ };
1489
+ $.post(
1490
+ ajaxurl,
1491
+ data,
1492
+ function () {
1493
+ location.reload();
1494
+ }
1495
+ );
1496
+ return false;
1497
+ });
1498
+
1499
+ $(document).on('click', 'input[name="' + _this.dismissElementorTemplateButtonName + '"]', function (e) {
1500
+ $('input[name="' + _this.dismissElementorTemplateButtonName + '"]').attr('disabled', 'disabled');
1501
+ var data = {
1502
+ 'action': 'dgwt_wcas_troubleshooting_dismiss_elementor_template',
1503
+ '_wpnonce': dgwt_wcas.troubleshooting.nonce.troubleshooting_dismiss_elementor_template
1504
+ };
1505
+ $.post(
1506
+ ajaxurl,
1507
+ data,
1508
+ function () {
1509
+ location.reload();
1510
+ }
1511
+ );
1512
+ return false;
1513
+ });
1514
  },
1515
  appendIssue: function (issue, incrementCounter) {
1516
  var _this = this;
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(s){var t={inputSel:"dgwt-wcas-options-toggle input[type=radio]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(t){var e=s('[name="'+t+'"]').closest("."+this.groupSel),a=s('[name="'+t+'"]:checked').val(),i="";this.hideAll(e),(a=a.replace("_","-")).length>0&&(i="wcas-opt-"+a),s("."+i).length>0&&s("."+i).fadeIn()},hideAll:function(s){s.find('tr[class*="wcas-opt-"]').hide()},registerListeners:function(){var t=this;s("."+t.inputSel).on("change",function(){t.reloadChoices(s(this).attr("name"))})},init:function(){var t=this,e=s("."+t.inputSel+":checked");e.length>0&&(t.registerListeners(),e.each(function(){t.reloadChoices(s(this).attr("name"))}))}},e={inputSel:"dgwt-wcas-options-cb-toggle input[type=checkbox]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(t){var e=t.is(":checked"),a=this.getGroupSelector(t);s("."+a+":not(.dgwt-wcas-options-cb-toggle)").hide(),e&&s("."+a).each(function(){s(this).hasClass("js-dgwt-wcas-adv-settings")&&s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")||s(this).fadeIn()})},getGroupSelector(t){var e=t.closest(".dgwt-wcas-options-cb-toggle"),a="",i=e.attr("class").split(/\s+/);return s.each(i,function(s,t){-1!==t.indexOf("js-dgwt-wcas-cbtgroup-")&&(a=t)}),a},registerListeners:function(){var t=this;s(document).on("change","."+t.inputSel,function(){t.reloadChoices(s(this))})},refresh:function(){var t=this,e=s("."+t.inputSel);e.length>0&&e.each(function(){var e=s(this).is(":checked"),a=t.getGroupSelector(s(this));e?s("."+a).fadeIn():s("."+a+":not(.dgwt-wcas-options-cb-toggle)").hide()})},init:function(){var t=this,e=s("."+t.inputSel);e.length>0&&(t.registerListeners(),e.each(function(){t.reloadChoices(s(this))}))}},a={inputSel:"js-dgwt-wcas-options-toggle-sibling input[type=checkbox]",toogleSibling:function(s){s.is(":checked")?s.closest("label").next().fadeIn():s.closest("label").next().hide()},registerListeners:function(){var t=this;s(document).on("change","."+t.inputSel,function(){t.toogleSibling(s(this))})},init:function(){var t=this,e=s("."+t.inputSel);e.length>0&&(t.registerListeners(),e.each(function(){t.toogleSibling(s(this))}))}},i={layoutSelect:"select[id*='search_layout']",overlayMobile:"input[id*='enable_mobile_overlay']",mobileBreakpoint:"input[id*='mobile_breakpoint']",searchIconColor:"input[id*='search_icon_color']",$select:null,$overlayMobileEl:null,$mobileBreakpointEl:null,$searchIconColorEl:null,setConditions:function(){var t=this.$select.find("option:selected").val(),e=s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled");switch(this.hideOption(this.$overlayMobileEl),this.hideOption(this.$mobileBreakpointEl),this.hideOption(this.$searchIconColorEl),s("input[id*='bg_search_icon_color']").closest("tr").show(),t){case"icon":e&&this.showOption(this.$searchIconColorEl);break;case"icon-flexible":e&&(this.showOption(this.$mobileBreakpointEl),this.showOption(this.$searchIconColorEl));break;default:e&&(this.showOption(this.$overlayMobileEl),s("input[id*='bg_search_icon_color']").closest("tr").hide(),this.$overlayMobileEl.is(":checked")&&this.showOption(this.$mobileBreakpointEl))}},hideOption:function(s){s.closest("tr").hide()},showOption:function(s){s.closest("tr").show()},registerListeners:function(){var s=this;s.$select.on("change",function(){s.setConditions()}),s.$overlayMobileEl.on("change",function(){s.setConditions()})},init:function(){var t=this,e=s(t.layoutSelect);e.length>0&&(t.$select=e,t.$overlayMobileEl=s(t.overlayMobile),t.$mobileBreakpointEl=s(t.mobileBreakpoint),t.$searchIconColorEl=s(t.searchIconColor),t.registerListeners(),setTimeout(function(){t.setConditions()},400))}},o={actionTriggerClass:"js-ajax-build-index",actionStopTriggerClass:"js-ajax-stop-build-index",indexingWrappoerClass:"js-dgwt-wcas-indexing-wrapper",getWrapper:function(){return s("."+this.indexingWrappoerClass).closest(".dgwt-wcas-settings-info")},registerListeners:function(){var t=this;s(document).on("click","."+t.actionTriggerClass,function(e){e.preventDefault();var a=s(this);a.attr("disabled","disabled"),s(".dgwt-wcas-settings-info").addClass("wcas-ajax-build-index-wait");var i=!!a.hasClass("js-ajax-build-index-emergency");i&&(s(".dgwt-wcas-indexing-header__title").text("[Emergency mode] Wait... Indexing in progress"),s(".dgwt-wcas-indexing-header__troubleshooting, .dgwt-wcas-indexing-header__actions, .js-dgwt-wcas-indexer-details").hide()),s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index",emergency:i,_wpnonce:dgwt_wcas.nonces.build_index},success:function(s){void 0!==s&&s.success&&(t.getWrapper().html(s.data.html),t.heartbeat())},complete:function(){a.removeAttr("disabled"),s(".dgwt-wcas-settings-info").removeClass("wcas-ajax-build-index-wait"),i&&window.location.reload()}})}),s(document).on("click","."+t.actionStopTriggerClass,function(e){e.preventDefault();var a=s(this);a.attr("disabled","disabled"),s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_stop_build_index",_wpnonce:dgwt_wcas.nonces.stop_build_index},success:function(s){void 0!==s&&s.success&&(t.getWrapper().html(s.data.html),t.heartbeat())},complete:function(){a.removeAttr("disabled")}})})},heartbeat:function(){var t=this;setTimeout(function(){s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index_heartbeat",_wpnonce:dgwt_wcas.nonces.build_index_heartbeat},success:function(e){void 0!==e&&e.success&&(t.getWrapper().html(e.data.html),e.data.loop?t.heartbeat():e.data.refresh_once.length>0&&(document.cookie.split(";").some(function(s){return 0===s.trim().indexOf("dgwt_wcas_refresh_once="+e.data.refresh_once)})||"none"!==s("#dgwt_wcas_troubleshooting-tab").css("display")||(document.cookie="dgwt_wcas_refresh_once="+e.data.refresh_once,location.reload())))}})},1e3)},detailsToggle:function(){var t;s(document).on("click",".js-dgwt-wcas-indexing-details-trigger",function(e){e.preventDefault();var a=s(".js-dgwt-wcas-indexer-details");a.hasClass("show")?(a.removeClass("show"),a.addClass("hide"),s(".js-dgwt-wcas-indexing__showd").addClass("show").removeClass("hide"),s(".js-dgwt-wcas-indexing__hided").addClass("hide").removeClass("show"),t=!1):(a.addClass("show"),a.removeClass("hide"),s(".js-dgwt-wcas-indexing__showd").addClass("hide").removeClass("show"),s(".js-dgwt-wcas-indexing__hided").addClass("show").removeClass("hide"),t=!0),s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_index_details_toggle",display:t}})})},init:function(){this.registerListeners(),s("."+this.indexingWrappoerClass).length>0&&this.heartbeat(),this.detailsToggle()}},n={init:function(){var t=this;s(".dgwt-wcas-selectize").length>0&&s.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:s(".dgwt-wcas-selectize").data("security")},success:function(s){void 0!==s&&void 0!==s.data&&t.initSelectize(s.data)}})},initSelectize:function(t){var e=s(".dgwt-wcas-selectize");e.length>0&&e.each(function(){var e=s(this),a=e.data("options"),i=t;if(a.length>0){a=JSON.parse('["'+decodeURI(a.replace(/&/g,'","').replace(/=/g,'","'))+'"]');var o="";a.forEach(function(s,t){if((t+1)%2==0){var e={value:s,label:o};i.push(e),o=""}o=s})}s(this).selectize({persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["value","label"],options:i,create:function(s){return{value:s.key,label:s.label}},load:function(t,a){if(!t.length)return a();s.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:e.data("security")},error:function(){a()},success:function(s){a(s.data)}})}})})}},c={init:function(){var t=s(".js-dgwt-wcas-tooltip");t.length>0&&t.each(function(){var t=s(this)[0],e=s(this).data("tooltip-html-el"),a=s(this).data("tooltip-placement");if(e){new DgwtWcasTooltip(t,{title:s("."+e+" > .dgwt-wcas-tooltip-wrapper")[0],placement:a,trigger:"hover",html:!0})}})}},r={advClass:"js-dgwt-wcas-adv-settings",highlightClass:"dgwt-wcas-opt-highlight",transClass:"dgwt-wcas-opt-transition",init:function(){this.clickListener(),this.setStartingState()},clickListener:function(){var t=this;s(document).on("click",".js-dgwt-wcas-settings__advanced",function(){var e;e=s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")?"show":"hide",t.saveChoice(e)})},setStartingState:function(){var t=s("."+this.advClass);t.length>0&&(s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled")?(t.show(),e.refresh()):t.hide())},saveChoice:function(t){s(".js-dgwt-wcas-settings__advanced").append('<span class="dgwt-wcas-adv-settings-saving">saving...</span>'),s.ajax({url:ajaxurl,data:{action:"dgwt_wcas_adv_settings",adv_settings_value:t}}).done(function(t){s(".dgwt-wcas-adv-settings-saving").remove()});var e=s(".js-dgwt-wcas-adv-settings-toggle");"show"===t&&(e.removeClass("woocommerce-input-toggle--disabled"),e.addClass("woocommerce-input-toggle--enabled")),"hide"===t&&(e.removeClass("woocommerce-input-toggle--enabled"),e.addClass("woocommerce-input-toggle--disabled")),this.toggleAdvancedOpt(t)},toggleAdvancedOpt:function(t){var a=this,o=s("."+a.advClass);o.length>0&&(o.addClass(a.highlightClass),o.addClass(a.transClass),"show"===t&&o.fadeIn(500,function(){setTimeout(function(){o.removeClass(a.highlightClass),setTimeout(function(){o.removeClass(a.transClass),e.refresh(),i.setConditions()},500)},500)}),"hide"===t&&setTimeout(function(){o.removeClass(a.transClass),o.fadeOut(500,function(){o.removeClass(a.highlightClass)})},500))}};window.DGWT_WCAS_SEARCH_PREVIEW={previewWrapper:{},searchWrapp:{},suggestionWrapp:{},searchInput:{},init:function(){this.previewWrapper=s(".js-dgwt-wcas-preview"),this.searchWrapp=s(".js-dgwt-wcas-search-wrapp"),this.suggestionWrapp=s(".js-dgwt-wcas-suggestions-wrapp"),this.detailsWrapp=s(".js-dgwt-wcas-details-wrapp"),this.searchInput=s(".js-dgwt-wcas-search-input"),this.onChangeHandler(),this.onColorHandler(),this.onTypeHandler(),this.disableSubmit(),this.noResultsHandler(),this.fixSizesInit()},isChecked:function(s){return!!(s.length>0&&s.is(":checked"))},isColor:function(s){return"string"==typeof s&&7===s.length&&"#"===s.charAt(0)},camelCase:function(s){for(var t=s.split("_"),e="",a=0;a<t.length;a++)e+=t[a].charAt(0).toUpperCase()+t[a].slice(1);return e},disableSubmit:function(){var t,e;s(".js-dgwt-wcas-preview-source").on("click",function(a){a.preventDefault();var i=a.pageX-100,o=a.pageY+10;void 0!==t&&(clearTimeout(t),e&&e.remove()),s("body").append('<div class="dgwt-wcas-click-alert">No interaction! This is only a preview.</div>'),(e=s(".dgwt-wcas-click-alert")).css({left:i,top:o}),s(".dgwt-wcas-preview-source").addClass("dgwt-wcas-preview-source-no-click"),t=setTimeout(function(){e.fadeOut(500,function(){s(this).remove(),s(".dgwt-wcas-preview-source").removeClass("dgwt-wcas-preview-source-no-click")})},2e3)})},noResultsHandler:function(){var t=this,e=".js-dgwt-wcas-preview .dgwt-wcas-suggestion:not(.js-dgwt-wcas-suggestion-nores)",a="input[id*='search_no_results_text']";s(document).on("focus",a,function(){s(e).addClass("dgwt-wcas-hide"),s(".js-dgwt-wcas-suggestion-nores").removeClass("dgwt-wcas-hide"),t.detailsWrapp.addClass("dgwt-wcas-hide"),t.suggestionWrapp.addClass("dgwt-wcas-preview-nores")}),s(document).on("blur",a,function(){s(e).removeClass("dgwt-wcas-hide"),s(".js-dgwt-wcas-suggestion-nores").addClass("dgwt-wcas-hide"),t.detailsWrapp.removeClass("dgwt-wcas-hide"),t.suggestionWrapp.removeClass("dgwt-wcas-preview-nores")})},onChangeHandler:function(){for(var t=this,e=["show_submit_button","max_form_width","show_product_image","show_product_sku","show_product_desc","show_product_price","show_matching_categories","show_categories_images","show_matching_tags","show_matching_brands","show_brands_images","show_matching_posts","show_matching_pages","show_grouped_results","suggestions_limit","show_details_box"],a=0;a<e.length;a++){var i="input[id='dgwt_wcas_settings\\["+e[a]+"\\]']",o=s(i),n="onChange"+t.camelCase(e[a]);"function"==typeof t[n]&&t[n](o,o.val()),s(document).on("change",i,function(){n=s(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),n="onChange"+t.camelCase(n),"function"==typeof t[n]&&t[n](s(this),this.value)})}},onColorHandler:function(){for(var t=this,e=["search_icon_color","bg_input_color","text_input_color","border_input_color","bg_submit_color","text_submit_color","sug_bg_color","sug_hover_color","sug_text_color","sug_highlight_color","sug_border_color"],a=0;a<e.length;a++){var i="input[id*='"+e[a]+"']",o=s(i),n="onColor"+t.camelCase(e[a]);t[n](o,o.val()),s(document).on("change",i,function(e){n=s(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),n="onColor"+t.camelCase(n),t[n](s(this),this.value)})}},onColorChangeHandler:function(s,t){var e=s.attr("id").replace("]","").replace("dgwt_wcas_settings[","");this[e="onColor"+this.camelCase(e)](s,t)},onTypeHandler:function(){for(var t=this,e=["search_submit_text","search_placeholder","search_no_results_text","search_see_all_results_text"],a=0;a<e.length;a++){var i="input[id*='"+e[a]+"']",o=s(i),n="onType"+t.camelCase(e[a]);t[n](o,o.val()),s(document).on("input",i,function(e){n=s(e.target).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),n="onType"+t.camelCase(n),t[n](s(e.target),this.value)})}},onChangeMaxFormWidth:function(t,e){e.length>0&&"0"!=e?(this.searchWrapp.css("max-width",e+"px"),this.suggestionWrapp.css("max-width",e+"px")):(this.searchWrapp.css("max-width","100%"),this.suggestionWrapp.css("max-width","100%")),this.onChangeShowDetailsBox(s("input[id*='show_details_box']"))},onChangeShowSubmitButton:function(t,e){var a=s(".js-dgwt-wcas-search-submit");if(this.isChecked(t)){this.searchWrapp.addClass("dgwt-wcas-has-submit"),this.searchWrapp.removeClass("dgwt-wcas-no-submit"),a.show(),s(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").hide();var i=s("input[id*='bg_submit_color']"),o=s("input[id*='text_submit_color']");this.onColorBgSubmitColor(i,i.val()),this.onColorTextSubmitColor(o,o.val())}else this.searchWrapp.addClass("dgwt-wcas-no-submit"),this.searchWrapp.removeClass("dgwt-wcas-has-submit"),a.hide(),s(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").show()},onChangeShowProductImage:function(t,e){var a=s(".js-dgwt-wcas-si"),i=s(".js-dgwt-wcas-content-wrapp");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-img"),s(".dgwt-wcas-suggestion-product > .dgwt-wcas-st").remove(),s(".dgwt-wcas-suggestion-product > .dgwt-wcas-sp").remove(),i.show(),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-img"),i.each(function(){s(this).closest(".dgwt-wcas-suggestion-product").append(s(this).html())}),i.hide(),a.hide())},onChangeShowProductSku:function(t,e){var a=s(".js-dgwt-wcas-sku");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-sku"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-sku"),a.hide())},onChangeShowProductDesc:function(t,e){var a=s(".js-dgwt-wcas-sd");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-desc"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-desc"),a.hide())},onChangeShowProductPrice:function(t,e){var a=s(".js-dgwt-wcas-sp");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-price"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-price"),a.hide())},onChangeShowMatchingCategories:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-cat"),i=s(".dgwt-wcas-suggestion-cat");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowCategoriesImages:function(t,e){var a=s(".js-dgwt-wcas-suggestion-cat");this.isChecked(t)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingTags:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-tag"),i=s(".dgwt-wcas-suggestion-tag");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowMatchingBrands:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-brand"),i=s(".dgwt-wcas-suggestion-brand");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowBrandsImages:function(t,e){var a=s(".js-dgwt-wcas-suggestion-brand");this.isChecked(t)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingPosts:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-post"),i=s(".dgwt-wcas-suggestion-post");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowMatchingPages:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-page"),i=s(".dgwt-wcas-suggestion-page");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowGroupedResults:function(t,e){var a=s(".dgwt-wcas-st--direct-headline"),i=s(".dgwt-wcas-suggestion-headline");this.isChecked(t)?(a.addClass("dgwt-wcas-hidden"),this.suggestionWrapp.addClass("dgwt-wcas-has-headings"),s(".dgwt-wcas-suggestion-headline").show(),this.isChecked(s("input[id*='show_matching_categories']"))||s(".dgwt-wcas-suggestion-headline-cat").hide(),this.isChecked(s("input[id*='show_matching_tags']"))||s(".dgwt-wcas-suggestion-headline-tag").hide(),this.isChecked(s("input[id*='show_matching_brands']"))||s(".dgwt-wcas-suggestion-headline-brand").hide(),this.isChecked(s("input[id*='show_matching_posts']"))||s(".dgwt-wcas-suggestion-headline-post").hide(),this.isChecked(s("input[id*='show_matching_pages']"))||s(".dgwt-wcas-suggestion-headline-page").hide()):(a.removeClass("dgwt-wcas-hidden"),i.hide(),this.suggestionWrapp.removeClass("dgwt-wcas-has-headings"))},onChangeSuggestionsLimit:function(t,e){setTimeout(function(){var a=0,i=7,o=s(".dgwt-wcas-suggestion-duplicated"),n=["brand","cat","tag","post","page","product"];e.length>0&&"0"!=e&&(i=Math.abs(e)),o.length>0&&o.remove();var c=[];for(a=0;a<n.length;a++){var r=s(".dgwt-wcas-suggestion-"+n[a]+":not(.js-dgwt-wcas-suggestion-hidden)");r.length>0&&c.push(r)}var d=c.length;if(c.length>0)for(var l=i-c.length,g=c.length-1;l>0;){var h=c[g].clone();h.addClass("dgwt-wcas-suggestion-duplicated"),h.removeClass("dgwt-wcas-suggestion-selected"),c[g].after(h),d++,--g<0&&(g=c.length-1),l--}d>i&&t.val(d)},10)},onChangeShowDetailsBox:function(t,e){var a=this;a.isChecked(t)?(a.detailsWrapp.show(),a.searchWrapp.addClass("dgwt-wcas-is-detail-box"),a.previewWrapper.addClass("dgwt-wcas-is-details"),a.previewWrapper.addClass("dgwt-wcas-details-right"),setTimeout(function(){if(s(".dgwt-wcas-suggestion-product:not(.dgwt-wcas-suggestion-duplicated)").addClass("dgwt-wcas-suggestion-selected"),a.searchWrapp.width()>=550){a.previewWrapper.addClass("dgwt-wcas-full-width");var t=getComputedStyle(a.searchWrapp[0]).width;(t=Math.round(parseFloat(t.replace("px",""))))%2==0?(a.suggestionWrapp.css("width",Math.round(t/2)),a.detailsWrapp.css("width",Math.round(t/2))):(a.suggestionWrapp.css("width",Math.floor(t/2)),a.detailsWrapp.css("width",Math.ceil(t/2)))}else a.suggestionWrapp.width(a.searchWrapp.width())},10)):(a.detailsWrapp.hide(),a.searchWrapp.removeClass("dgwt-wcas-is-detail-box"),a.previewWrapper.removeClass("dgwt-wcas-is-details"),a.previewWrapper.removeClass("dgwt-wcas-details-right"),a.previewWrapper.removeClass("dgwt-wcas-full-width"),s(".dgwt-wcas-suggestion-product").removeClass("dgwt-wcas-suggestion-selected"),a.suggestionWrapp.css("width",""),a.detailsWrapp.css("width",""))},onColorSearchIconColor:function(s,t){},onColorBgInputColor:function(s,t){this.isColor(t)?this.searchInput.css("background-color",t):this.searchInput.css("background-color","")},onColorTextInputColor:function(t,e){var a="dgwt-wcas-preview-placeholder-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-search-input::placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input::-webkit-input-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input:-moz-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input::-moz-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input:-ms-input-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-ico-magnifier path {fill:"+e+"}",i+="</style>",s("head").append(i),this.searchInput.css("color",e)}else{this.searchInput.css("color","");var o=s("."+a);o.length>0&&o.remove()}},onColorBorderInputColor:function(s,t){this.isColor(t)?this.searchInput.css("border-color",t):this.searchInput.css("border-color","")},onColorBgSubmitColor:function(t,e){if(this.isChecked(s("input[id*='show_submit_button']"))&&this.isColor(e)){var a='<style class="dgwt-wcas-preview-submit-style">';a+=".dgwt-wcas-search-submit::before{border-color: transparent "+e+"!important;}",a+=".dgwt-wcas-search-submit:hover::before{border-right-color: "+e+"!important;}",a+=".dgwt-wcas-search-submit:focus::before{border-right-color: "+e+"!important;}",a+=".dgwt-wcas-search-submit{background-color: "+e+"!important;}",a+=".dgwt-wcas-om-bar .dgwt-wcas-om-return{background-color: "+e+"!important;}",a+="</style>",s("head").append(a)}else{var i=s(".dgwt-wcas-preview-submit-style");i.length>0&&i.remove()}},onColorTextSubmitColor:function(t,e){this.isChecked(s("input[id*='show_submit_button']"))&&this.isColor(e)?(s(".js-dgwt-wcas-search-submit").css("color",e),s(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",e)):(this.searchInput.css("background-color",""),s(".js-dgwt-wcas-search-submit").css("color",""),s(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",""))},onColorSugBgColor:function(t,e){var a="dgwt-wcas-preview-sugbgcol-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-suggestions-wrapp,",i+=".dgwt-wcas-details-wrapp",i+="{background-color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onColorSugHoverColor:function(t,e){this.isColor(e)?setTimeout(function(){s(".dgwt-wcas-suggestion-selected").css("background-color",e)},50):s(".dgwt-wcas-suggestion-selected").css("background-color","")},onColorSugTextColor:function(t,e){var a="dgwt-wcas-preview-sugtextcol-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-suggestions-wrapp *,",i+=".dgwt-wcas-details-wrapp *,",i+=".dgwt-wcas-sd,",i+=".dgwt-wcas-suggestion *",i+="{color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onColorSugHighlightColor:function(t,e){var a="dgwt-wcas-preview-sughighlight-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-st strong,",i+=".dgwt-wcas-sd strong",i+="{color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onColorSugBorderColor:function(t,e){var a="dgwt-wcas-preview-sugborder-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-suggestions-wrapp,",i+=".dgwt-wcas-details-wrapp,",i+=".dgwt-wcas-suggestion,",i+=".dgwt-wcas-datails-title,",i+=".dgwt-wcas-details-more-products",i+="{border-color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onTypeSearchSubmitText:function(t,e){var a=s(".js-dgwt-wcas-search-submit-l"),i=s(".js-dgwt-wcas-search-submit-m");e.length>0?(a.text(e),a.show(),i.hide()):(a.text(""),a.hide(),i.show())},onTypeSearchPlaceholder:function(s,t){0==t.length&&(t=dgwt_wcas.labels.search_placeholder),this.searchInput.attr("placeholder",t)},onTypeSearchNoResultsText:function(t,e){0==e.length&&(e=dgwt_wcas.labels.no_results),s(".js-dgwt-wcas-suggestion-nores span").text(e)},onTypeSearchSeeAllResultsText:function(t,e){0==e.length&&(e=dgwt_wcas.labels.show_more),s(".js-dgwt-wcas-st-more-label").text(e)},fixSizesInit:function(){var t=this;s(document).on("click","#dgwt_wcas_autocomplete-tab",function(){t.onChangeShowDetailsBox(s("input[id*='show_details_box']"))})}};var d={settingsTab:"#dgwt_wcas_troubleshooting-tab",noIssuesClass:".js-dgwt-wcas-troubleshooting-no-issues",counterClass:".js-dgwt-wcas-troubleshooting-count",issuesListClass:".js-dgwt-wcas-troubleshooting-issues",progressBar:".dgwt-wcas-troubleshooting-wrapper .progress_bar",progressBarInner:".dgwt-wcas-troubleshooting-wrapper .progress-bar-inner",resetButtonName:"dgwt-wcas-reset-async-tests",init:function(){var t=this;if(void 0===dgwt_wcas.troubleshooting)return;const e=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended;e>0&&(s(t.counterClass).text(e),s(t.settingsTab).addClass("enabled")),dgwt_wcas.troubleshooting.tests.results_async.length>0&&s.each(dgwt_wcas.troubleshooting.tests.results_async,function(){t.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.direct.length>0&&s.each(dgwt_wcas.troubleshooting.tests.direct,function(){t.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.async.length>0&&t.maybeRunNextAsyncTest(),s(document).on("click",'input[name="'+t.resetButtonName+'"]',function(e){s('input[name="'+t.resetButtonName+'"]').attr("disabled","disabled");var a={action:"dgwt_wcas_troubleshooting_reset_async_tests",_wpnonce:dgwt_wcas.troubleshooting.nonce.troubleshooting_reset_async_tests};return s.post(ajaxurl,a,function(){location.reload()}),!1})},appendIssue:function(t,e){var a,i=wp.template("dgwt-wcas-troubleshooting-issue"),o=s(this.issuesListClass+"-"+t.status);"good"!==t.status&&(s(this.noIssuesClass).hide(),e&&dgwt_wcas.troubleshooting.tests.issues[t.status]++,(a=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended)>0&&(s(this.counterClass).text(a),s(this.settingsTab).addClass("enabled")),s(o).append(i(t)))},maybeRunNextAsyncTest:function(){var t=this;dgwt_wcas.troubleshooting.tests.async.length>0&&s.each(dgwt_wcas.troubleshooting.tests.async,function(){var e={action:"dgwt_wcas_troubleshooting_test",test:this.test,_wpnonce:dgwt_wcas.troubleshooting.nonce.troubleshooting_async_test};return!!this.completed||(this.completed=!0,s(t.progressBar).show(),s.post(ajaxurl,e,function(s){s.success&&t.appendIssue(s.data,!0),t.maybeRunNextAsyncTest()}),!1)}),t.recalculateProgression()},recalculateProgression:function(){var t=this,e=dgwt_wcas.troubleshooting.tests.async.length,a=0;s.each(dgwt_wcas.troubleshooting.tests.async,function(){this.completed&&a++});var i=Math.ceil(a/e*100);s(t.progressBarInner).css("width",i+"%"),100===i&&setTimeout(function(){s(t.progressBar).slideUp()},2e3)}},l={moveOptionClass:".js-dgwt-wcas-move-option",init:function(){var t=s(this.moveOptionClass);t.length>0&&s.each(t,function(t,e){var a=s("#"+s(e).data("move-dest").replace(/(:|\.|\[|\])/g,"\\$1"));a.length>0&&(s(e).closest("tr").hasClass("dgwt-wcas-premium-only")&&s(e).addClass("dgwt-wcas-premium-only"),s(e).clone().appendTo(a.closest("td fieldset"))),s(e).closest("tr").remove()})}},g=function(){if("undefined"!=typeof Vue){Vue.component("dgwt-wcas-rule",{template:"#dgwt-wcas-settings-filters-rules-rule",components:{Selectize:Selectize},props:["nonce","rule","rules","index"],data:()=>({isSelectActive:!0}),computed:{ruleValue(s){return this.rule.group}},watch:{rule:{handler:function(){this.$emit("update:rule",this.index)},deep:!0},ruleValue(){var s=this;this.$emit("change:group",this.index),this.isSelectActive=!1,setTimeout(function(){s.isSelectActive=!0},0)}},methods:{deleteRule(){this.$emit("delete:rule",this.index)},getSelectizeSettings(t){var e=void 0===dgwt_wcas_filters_rules_selected_options[t]?[]:dgwt_wcas_filters_rules_selected_options[t];return function({nonce:t,options:e,type:a}){return{persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["label"],options:e,preload:!0,create:function(s){return{value:s.key,label:s.label}},load:function(e,i){s.ajax({url:ajaxurl,method:"POST",data:{action:"dgwt_wcas_settings_search_terms",query:e,type:a,_wpnonce:t},error:function(){i()},success:function(s){i(s.data)}})}}}({nonce:this.nonce,type:t,options:e})}}});new Vue({el:"#dgwt-wcas-settings-filters-rules",components:{Selectize:Selectize},data:()=>({rules:[]}),mounted(){try{const t=JSON.parse(this.$refs["dgwt-wcas-settings-filters-rules-ref"].value);s.each(t,function(s,e){t[s].key=Math.random()}),this.rules=t}catch(s){}this.updateInput()},methods:{addRule(){this.rules.push({group:"",values:[],key:Math.random()}),this.updateInput()},changeGroup(s){this.rules[s].values=[],this.updateInput()},deleteRule(s){this.rules=this.rules.filter(function(t,e){return e!==s}),this.updateInput()},updateInput(){const s=JSON.parse(JSON.stringify(this.rules));this.$refs["dgwt-wcas-settings-filters-rules-ref"].value=JSON.stringify(s.map(function(s){return s.key,delete s.key,s}))}}})}};s(document).ready(function(){var h,w;(h=s(".js-dgwt-wcas-settings-margin-nob")).length>0&&h.each(function(){var t=s(this).find("td .dgwt-wcas-fieldset");if(t.length>0){var e=s(this).prev(".js-dgwt-wcas-settings-margin");if(e.length>0){var a=s(this).attr("class").split(/\s+/),i="";s.each(a,function(s,t){-1!==t.indexOf("js-dgwt-wcas-cbtgroup-")&&(i=t)});var o=t.clone(!0,!0);o.addClass("dgwt-wcas-settings-margin-nob"),i&&o.addClass(i),o.appendTo(e.find("td")),s(this).remove()}}}),t.init(),e.init(),i.init(),(w=s(".js-dgwt-wcas-sgs-autocolspan")).length>0&&w.find("td").attr("colspan",2),o.init(),n.init(),c.init(),r.init(),d.init(),l.init(),a.init(),g(),window.DGWT_WCAS_SEARCH_PREVIEW.init()})}(jQuery);
1
+ !function(s){var t={inputSel:"dgwt-wcas-options-toggle input[type=radio]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(t){var e=s('[name="'+t+'"]').closest("."+this.groupSel),a=s('[name="'+t+'"]:checked').val(),i="";this.hideAll(e),(a=a.replace("_","-")).length>0&&(i="wcas-opt-"+a),s("."+i).length>0&&s("."+i).fadeIn()},hideAll:function(s){s.find('tr[class*="wcas-opt-"]').hide()},registerListeners:function(){var t=this;s("."+t.inputSel).on("change",function(){t.reloadChoices(s(this).attr("name"))})},init:function(){var t=this,e=s("."+t.inputSel+":checked");e.length>0&&(t.registerListeners(),e.each(function(){t.reloadChoices(s(this).attr("name"))}))}},e={inputSel:"dgwt-wcas-options-cb-toggle input[type=checkbox]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(t){var e=t.is(":checked"),a=this.getGroupSelector(t);s("."+a+":not(.dgwt-wcas-options-cb-toggle)").hide(),e&&s("."+a).each(function(){s(this).hasClass("js-dgwt-wcas-adv-settings")&&s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")||s(this).fadeIn()})},getGroupSelector(t){var e=t.closest(".dgwt-wcas-options-cb-toggle"),a="",i=e.attr("class").split(/\s+/);return s.each(i,function(s,t){-1!==t.indexOf("js-dgwt-wcas-cbtgroup-")&&(a=t)}),a},registerListeners:function(){var t=this;s(document).on("change","."+t.inputSel,function(){t.reloadChoices(s(this))})},refresh:function(){var t=this,e=s("."+t.inputSel);e.length>0&&e.each(function(){var e=s(this).is(":checked"),a=t.getGroupSelector(s(this));e?s("."+a).fadeIn():s("."+a+":not(.dgwt-wcas-options-cb-toggle)").hide()})},init:function(){var t=this,e=s("."+t.inputSel);e.length>0&&(t.registerListeners(),e.each(function(){t.reloadChoices(s(this))}))}},a={inputSel:"js-dgwt-wcas-options-toggle-sibling input[type=checkbox]",toogleSibling:function(s){s.is(":checked")?s.closest("label").next().fadeIn():s.closest("label").next().hide()},registerListeners:function(){var t=this;s(document).on("change","."+t.inputSel,function(){t.toogleSibling(s(this))})},init:function(){var t=this,e=s("."+t.inputSel);e.length>0&&(t.registerListeners(),e.each(function(){t.toogleSibling(s(this))}))}},i={layoutSelect:"select[id*='search_layout']",overlayMobile:"input[id*='enable_mobile_overlay']",mobileBreakpoint:"input[id*='mobile_breakpoint']",searchIconColor:"input[id*='search_icon_color']",$select:null,$overlayMobileEl:null,$mobileBreakpointEl:null,$searchIconColorEl:null,setConditions:function(){var t=this.$select.find("option:selected").val(),e=s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled");switch(this.hideOption(this.$overlayMobileEl),this.hideOption(this.$mobileBreakpointEl),this.hideOption(this.$searchIconColorEl),s("input[id*='bg_search_icon_color']").closest("tr").show(),t){case"icon":e&&this.showOption(this.$searchIconColorEl);break;case"icon-flexible":e&&(this.showOption(this.$mobileBreakpointEl),this.showOption(this.$searchIconColorEl));break;default:e&&(this.showOption(this.$overlayMobileEl),s("input[id*='bg_search_icon_color']").closest("tr").hide(),this.$overlayMobileEl.is(":checked")&&this.showOption(this.$mobileBreakpointEl))}},hideOption:function(s){s.closest("tr").hide()},showOption:function(s){s.closest("tr").show()},registerListeners:function(){var s=this;s.$select.on("change",function(){s.setConditions()}),s.$overlayMobileEl.on("change",function(){s.setConditions()})},init:function(){var t=this,e=s(t.layoutSelect);e.length>0&&(t.$select=e,t.$overlayMobileEl=s(t.overlayMobile),t.$mobileBreakpointEl=s(t.mobileBreakpoint),t.$searchIconColorEl=s(t.searchIconColor),t.registerListeners(),setTimeout(function(){t.setConditions()},400))}},o={actionTriggerClass:"js-ajax-build-index",actionStopTriggerClass:"js-ajax-stop-build-index",indexingWrappoerClass:"js-dgwt-wcas-indexing-wrapper",getWrapper:function(){return s("."+this.indexingWrappoerClass).closest(".dgwt-wcas-settings-info")},registerListeners:function(){var t=this;s(document).on("click","."+t.actionTriggerClass,function(e){e.preventDefault();var a=s(this);a.attr("disabled","disabled"),s(".dgwt-wcas-settings-info").addClass("wcas-ajax-build-index-wait");var i=!!a.hasClass("js-ajax-build-index-emergency");i&&(s(".dgwt-wcas-indexing-header__title").text("[Emergency mode] Wait... Indexing in progress"),s(".dgwt-wcas-indexing-header__troubleshooting, .dgwt-wcas-indexing-header__actions, .js-dgwt-wcas-indexer-details").hide()),s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index",emergency:i,_wpnonce:dgwt_wcas.nonces.build_index},success:function(s){void 0!==s&&s.success&&(t.getWrapper().html(s.data.html),t.heartbeat())},complete:function(){a.removeAttr("disabled"),s(".dgwt-wcas-settings-info").removeClass("wcas-ajax-build-index-wait"),i&&window.location.reload()}})}),s(document).on("click","."+t.actionStopTriggerClass,function(e){e.preventDefault();var a=s(this);a.attr("disabled","disabled"),s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_stop_build_index",_wpnonce:dgwt_wcas.nonces.stop_build_index},success:function(s){void 0!==s&&s.success&&(t.getWrapper().html(s.data.html),t.heartbeat())},complete:function(){a.removeAttr("disabled")}})})},heartbeat:function(){var t=this;setTimeout(function(){s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index_heartbeat",_wpnonce:dgwt_wcas.nonces.build_index_heartbeat},success:function(e){void 0!==e&&e.success&&(t.getWrapper().html(e.data.html),e.data.loop?t.heartbeat():e.data.refresh_once.length>0&&(document.cookie.split(";").some(function(s){return 0===s.trim().indexOf("dgwt_wcas_refresh_once="+e.data.refresh_once)})||"none"!==s("#dgwt_wcas_troubleshooting-tab").css("display")||(document.cookie="dgwt_wcas_refresh_once="+e.data.refresh_once,location.reload())))}})},1e3)},detailsToggle:function(){var t;s(document).on("click",".js-dgwt-wcas-indexing-details-trigger",function(e){e.preventDefault();var a=s(".js-dgwt-wcas-indexer-details");a.hasClass("show")?(a.removeClass("show"),a.addClass("hide"),s(".js-dgwt-wcas-indexing__showd").addClass("show").removeClass("hide"),s(".js-dgwt-wcas-indexing__hided").addClass("hide").removeClass("show"),t=!1):(a.addClass("show"),a.removeClass("hide"),s(".js-dgwt-wcas-indexing__showd").addClass("hide").removeClass("show"),s(".js-dgwt-wcas-indexing__hided").addClass("show").removeClass("hide"),t=!0),s.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_index_details_toggle",display:t}})})},init:function(){this.registerListeners(),s("."+this.indexingWrappoerClass).length>0&&this.heartbeat(),this.detailsToggle()}},n={init:function(){var t=this;s(".dgwt-wcas-selectize").length>0&&s.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:s(".dgwt-wcas-selectize").data("security")},success:function(s){void 0!==s&&void 0!==s.data&&t.initSelectize(s.data)}})},initSelectize:function(t){var e=s(".dgwt-wcas-selectize");e.length>0&&e.each(function(){var e=s(this),a=e.data("options"),i=t;if(a.length>0){a=JSON.parse('["'+decodeURI(a.replace(/&/g,'","').replace(/=/g,'","'))+'"]');var o="";a.forEach(function(s,t){if((t+1)%2==0){var e={value:s,label:o};i.push(e),o=""}o=s})}s(this).selectize({persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["value","label"],options:i,create:function(s){return{value:s.key,label:s.label}},load:function(t,a){if(!t.length)return a();s.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:e.data("security")},error:function(){a()},success:function(s){a(s.data)}})}})})}},c={init:function(){var t=s(".js-dgwt-wcas-tooltip");t.length>0&&t.each(function(){var t=s(this)[0],e=s(this).data("tooltip-html-el"),a=s(this).data("tooltip-placement");if(e){new DgwtWcasTooltip(t,{title:s("."+e+" > .dgwt-wcas-tooltip-wrapper")[0],placement:a,trigger:"hover",html:!0})}})}},r={advClass:"js-dgwt-wcas-adv-settings",highlightClass:"dgwt-wcas-opt-highlight",transClass:"dgwt-wcas-opt-transition",init:function(){this.clickListener(),this.setStartingState()},clickListener:function(){var t=this;s(document).on("click",".js-dgwt-wcas-settings__advanced",function(){var e;e=s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")?"show":"hide",t.saveChoice(e)})},setStartingState:function(){var t=s("."+this.advClass);t.length>0&&(s(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled")?(t.show(),e.refresh()):t.hide())},saveChoice:function(t){s(".js-dgwt-wcas-settings__advanced").append('<span class="dgwt-wcas-adv-settings-saving">saving...</span>'),s.ajax({url:ajaxurl,data:{action:"dgwt_wcas_adv_settings",adv_settings_value:t}}).done(function(t){s(".dgwt-wcas-adv-settings-saving").remove()});var e=s(".js-dgwt-wcas-adv-settings-toggle");"show"===t&&(e.removeClass("woocommerce-input-toggle--disabled"),e.addClass("woocommerce-input-toggle--enabled")),"hide"===t&&(e.removeClass("woocommerce-input-toggle--enabled"),e.addClass("woocommerce-input-toggle--disabled")),this.toggleAdvancedOpt(t)},toggleAdvancedOpt:function(t){var a=this,o=s("."+a.advClass);o.length>0&&(o.addClass(a.highlightClass),o.addClass(a.transClass),"show"===t&&o.fadeIn(500,function(){setTimeout(function(){o.removeClass(a.highlightClass),setTimeout(function(){o.removeClass(a.transClass),e.refresh(),i.setConditions()},500)},500)}),"hide"===t&&setTimeout(function(){o.removeClass(a.transClass),o.fadeOut(500,function(){o.removeClass(a.highlightClass)})},500))}};window.DGWT_WCAS_SEARCH_PREVIEW={previewWrapper:{},searchWrapp:{},suggestionWrapp:{},searchInput:{},init:function(){this.previewWrapper=s(".js-dgwt-wcas-preview"),this.searchWrapp=s(".js-dgwt-wcas-search-wrapp"),this.suggestionWrapp=s(".js-dgwt-wcas-suggestions-wrapp"),this.detailsWrapp=s(".js-dgwt-wcas-details-wrapp"),this.searchInput=s(".js-dgwt-wcas-search-input"),this.onChangeHandler(),this.onColorHandler(),this.onTypeHandler(),this.disableSubmit(),this.noResultsHandler(),this.fixSizesInit()},isChecked:function(s){return!!(s.length>0&&s.is(":checked"))},isColor:function(s){return"string"==typeof s&&7===s.length&&"#"===s.charAt(0)},camelCase:function(s){for(var t=s.split("_"),e="",a=0;a<t.length;a++)e+=t[a].charAt(0).toUpperCase()+t[a].slice(1);return e},disableSubmit:function(){var t,e;s(".js-dgwt-wcas-preview-source").on("click",function(a){a.preventDefault();var i=a.pageX-100,o=a.pageY+10;void 0!==t&&(clearTimeout(t),e&&e.remove()),s("body").append('<div class="dgwt-wcas-click-alert">No interaction! This is only a preview.</div>'),(e=s(".dgwt-wcas-click-alert")).css({left:i,top:o}),s(".dgwt-wcas-preview-source").addClass("dgwt-wcas-preview-source-no-click"),t=setTimeout(function(){e.fadeOut(500,function(){s(this).remove(),s(".dgwt-wcas-preview-source").removeClass("dgwt-wcas-preview-source-no-click")})},2e3)})},noResultsHandler:function(){var t=this,e=".js-dgwt-wcas-preview .dgwt-wcas-suggestion:not(.js-dgwt-wcas-suggestion-nores)",a="input[id*='search_no_results_text']";s(document).on("focus",a,function(){s(e).addClass("dgwt-wcas-hide"),s(".js-dgwt-wcas-suggestion-nores").removeClass("dgwt-wcas-hide"),t.detailsWrapp.addClass("dgwt-wcas-hide"),t.suggestionWrapp.addClass("dgwt-wcas-preview-nores")}),s(document).on("blur",a,function(){s(e).removeClass("dgwt-wcas-hide"),s(".js-dgwt-wcas-suggestion-nores").addClass("dgwt-wcas-hide"),t.detailsWrapp.removeClass("dgwt-wcas-hide"),t.suggestionWrapp.removeClass("dgwt-wcas-preview-nores")})},onChangeHandler:function(){for(var t=this,e=["show_submit_button","max_form_width","show_product_image","show_product_sku","show_product_desc","show_product_price","show_matching_categories","show_categories_images","show_matching_tags","show_matching_brands","show_brands_images","show_matching_posts","show_matching_pages","show_grouped_results","suggestions_limit","show_details_box"],a=0;a<e.length;a++){var i="input[id='dgwt_wcas_settings\\["+e[a]+"\\]']",o=s(i),n="onChange"+t.camelCase(e[a]);"function"==typeof t[n]&&t[n](o,o.val()),s(document).on("change",i,function(){n=s(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),n="onChange"+t.camelCase(n),"function"==typeof t[n]&&t[n](s(this),this.value)})}},onColorHandler:function(){for(var t=this,e=["search_icon_color","bg_input_color","text_input_color","border_input_color","bg_submit_color","text_submit_color","sug_bg_color","sug_hover_color","sug_text_color","sug_highlight_color","sug_border_color"],a=0;a<e.length;a++){var i="input[id*='"+e[a]+"']",o=s(i),n="onColor"+t.camelCase(e[a]);t[n](o,o.val()),s(document).on("change",i,function(e){n=s(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),n="onColor"+t.camelCase(n),t[n](s(this),this.value)})}},onColorChangeHandler:function(s,t){var e=s.attr("id").replace("]","").replace("dgwt_wcas_settings[","");this[e="onColor"+this.camelCase(e)](s,t)},onTypeHandler:function(){for(var t=this,e=["search_submit_text","search_placeholder","search_no_results_text","search_see_all_results_text"],a=0;a<e.length;a++){var i="input[id*='"+e[a]+"']",o=s(i),n="onType"+t.camelCase(e[a]);t[n](o,o.val()),s(document).on("input",i,function(e){n=s(e.target).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),n="onType"+t.camelCase(n),t[n](s(e.target),this.value)})}},onChangeMaxFormWidth:function(t,e){e.length>0&&"0"!=e?(this.searchWrapp.css("max-width",e+"px"),this.suggestionWrapp.css("max-width",e+"px")):(this.searchWrapp.css("max-width","100%"),this.suggestionWrapp.css("max-width","100%")),this.onChangeShowDetailsBox(s("input[id*='show_details_box']"))},onChangeShowSubmitButton:function(t,e){var a=s(".js-dgwt-wcas-search-submit");if(this.isChecked(t)){this.searchWrapp.addClass("dgwt-wcas-has-submit"),this.searchWrapp.removeClass("dgwt-wcas-no-submit"),a.show(),s(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").hide();var i=s("input[id*='bg_submit_color']"),o=s("input[id*='text_submit_color']");this.onColorBgSubmitColor(i,i.val()),this.onColorTextSubmitColor(o,o.val())}else this.searchWrapp.addClass("dgwt-wcas-no-submit"),this.searchWrapp.removeClass("dgwt-wcas-has-submit"),a.hide(),s(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").show()},onChangeShowProductImage:function(t,e){var a=s(".js-dgwt-wcas-si"),i=s(".js-dgwt-wcas-content-wrapp");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-img"),s(".dgwt-wcas-suggestion-product > .dgwt-wcas-st").remove(),s(".dgwt-wcas-suggestion-product > .dgwt-wcas-sp").remove(),i.show(),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-img"),i.each(function(){s(this).closest(".dgwt-wcas-suggestion-product").append(s(this).html())}),i.hide(),a.hide())},onChangeShowProductSku:function(t,e){var a=s(".js-dgwt-wcas-sku");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-sku"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-sku"),a.hide())},onChangeShowProductDesc:function(t,e){var a=s(".js-dgwt-wcas-sd");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-desc"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-desc"),a.hide())},onChangeShowProductPrice:function(t,e){var a=s(".js-dgwt-wcas-sp");this.isChecked(t)?(this.suggestionWrapp.addClass("dgwt-wcas-has-price"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-price"),a.hide())},onChangeShowMatchingCategories:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-cat"),i=s(".dgwt-wcas-suggestion-cat");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowCategoriesImages:function(t,e){var a=s(".js-dgwt-wcas-suggestion-cat");this.isChecked(t)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingTags:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-tag"),i=s(".dgwt-wcas-suggestion-tag");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowMatchingBrands:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-brand"),i=s(".dgwt-wcas-suggestion-brand");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowBrandsImages:function(t,e){var a=s(".js-dgwt-wcas-suggestion-brand");this.isChecked(t)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingPosts:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-post"),i=s(".dgwt-wcas-suggestion-post");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowMatchingPages:function(t,e){var a=s(".dgwt-wcas-suggestion-headline-page"),i=s(".dgwt-wcas-suggestion-page");this.isChecked(t)?(a.show(),i.show(),i.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults(s("input[id*='show_grouped_results']"))):(a.hide(),i.hide(),i.addClass("js-dgwt-wcas-suggestion-hidden"));var o=s("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(o,o.val())},onChangeShowGroupedResults:function(t,e){var a=s(".dgwt-wcas-st--direct-headline"),i=s(".dgwt-wcas-suggestion-headline");this.isChecked(t)?(a.addClass("dgwt-wcas-hidden"),this.suggestionWrapp.addClass("dgwt-wcas-has-headings"),s(".dgwt-wcas-suggestion-headline").show(),this.isChecked(s("input[id*='show_matching_categories']"))||s(".dgwt-wcas-suggestion-headline-cat").hide(),this.isChecked(s("input[id*='show_matching_tags']"))||s(".dgwt-wcas-suggestion-headline-tag").hide(),this.isChecked(s("input[id*='show_matching_brands']"))||s(".dgwt-wcas-suggestion-headline-brand").hide(),this.isChecked(s("input[id*='show_matching_posts']"))||s(".dgwt-wcas-suggestion-headline-post").hide(),this.isChecked(s("input[id*='show_matching_pages']"))||s(".dgwt-wcas-suggestion-headline-page").hide()):(a.removeClass("dgwt-wcas-hidden"),i.hide(),this.suggestionWrapp.removeClass("dgwt-wcas-has-headings"))},onChangeSuggestionsLimit:function(t,e){setTimeout(function(){var a=0,i=7,o=s(".dgwt-wcas-suggestion-duplicated"),n=["brand","cat","tag","post","page","product"];e.length>0&&"0"!=e&&(i=Math.abs(e)),o.length>0&&o.remove();var c=[];for(a=0;a<n.length;a++){var r=s(".dgwt-wcas-suggestion-"+n[a]+":not(.js-dgwt-wcas-suggestion-hidden)");r.length>0&&c.push(r)}var d=c.length;if(c.length>0)for(var l=i-c.length,g=c.length-1;l>0;){var h=c[g].clone();h.addClass("dgwt-wcas-suggestion-duplicated"),h.removeClass("dgwt-wcas-suggestion-selected"),c[g].after(h),d++,--g<0&&(g=c.length-1),l--}d>i&&t.val(d)},10)},onChangeShowDetailsBox:function(t,e){var a=this;a.isChecked(t)?(a.detailsWrapp.show(),a.searchWrapp.addClass("dgwt-wcas-is-detail-box"),a.previewWrapper.addClass("dgwt-wcas-is-details"),a.previewWrapper.addClass("dgwt-wcas-details-right"),setTimeout(function(){if(s(".dgwt-wcas-suggestion-product:not(.dgwt-wcas-suggestion-duplicated)").addClass("dgwt-wcas-suggestion-selected"),a.searchWrapp.width()>=550){a.previewWrapper.addClass("dgwt-wcas-full-width");var t=getComputedStyle(a.searchWrapp[0]).width;(t=Math.round(parseFloat(t.replace("px",""))))%2==0?(a.suggestionWrapp.css("width",Math.round(t/2)),a.detailsWrapp.css("width",Math.round(t/2))):(a.suggestionWrapp.css("width",Math.floor(t/2)),a.detailsWrapp.css("width",Math.ceil(t/2)))}else a.suggestionWrapp.width(a.searchWrapp.width())},10)):(a.detailsWrapp.hide(),a.searchWrapp.removeClass("dgwt-wcas-is-detail-box"),a.previewWrapper.removeClass("dgwt-wcas-is-details"),a.previewWrapper.removeClass("dgwt-wcas-details-right"),a.previewWrapper.removeClass("dgwt-wcas-full-width"),s(".dgwt-wcas-suggestion-product").removeClass("dgwt-wcas-suggestion-selected"),a.suggestionWrapp.css("width",""),a.detailsWrapp.css("width",""))},onColorSearchIconColor:function(s,t){},onColorBgInputColor:function(s,t){this.isColor(t)?this.searchInput.css("background-color",t):this.searchInput.css("background-color","")},onColorTextInputColor:function(t,e){var a="dgwt-wcas-preview-placeholder-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-search-input::placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input::-webkit-input-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input:-moz-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input::-moz-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-search-input:-ms-input-placeholder{opacity: 0.3; color:"+e+"!important;}",i+=".dgwt-wcas-ico-magnifier path {fill:"+e+"}",i+="</style>",s("head").append(i),this.searchInput.css("color",e)}else{this.searchInput.css("color","");var o=s("."+a);o.length>0&&o.remove()}},onColorBorderInputColor:function(s,t){this.isColor(t)?this.searchInput.css("border-color",t):this.searchInput.css("border-color","")},onColorBgSubmitColor:function(t,e){if(this.isChecked(s("input[id*='show_submit_button']"))&&this.isColor(e)){var a='<style class="dgwt-wcas-preview-submit-style">';a+=".dgwt-wcas-search-submit::before{border-color: transparent "+e+"!important;}",a+=".dgwt-wcas-search-submit:hover::before{border-right-color: "+e+"!important;}",a+=".dgwt-wcas-search-submit:focus::before{border-right-color: "+e+"!important;}",a+=".dgwt-wcas-search-submit{background-color: "+e+"!important;}",a+=".dgwt-wcas-om-bar .dgwt-wcas-om-return{background-color: "+e+"!important;}",a+="</style>",s("head").append(a)}else{var i=s(".dgwt-wcas-preview-submit-style");i.length>0&&i.remove()}},onColorTextSubmitColor:function(t,e){this.isChecked(s("input[id*='show_submit_button']"))&&this.isColor(e)?(s(".js-dgwt-wcas-search-submit").css("color",e),s(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",e)):(this.searchInput.css("background-color",""),s(".js-dgwt-wcas-search-submit").css("color",""),s(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",""))},onColorSugBgColor:function(t,e){var a="dgwt-wcas-preview-sugbgcol-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-suggestions-wrapp,",i+=".dgwt-wcas-details-wrapp",i+="{background-color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onColorSugHoverColor:function(t,e){this.isColor(e)?setTimeout(function(){s(".dgwt-wcas-suggestion-selected").css("background-color",e)},50):s(".dgwt-wcas-suggestion-selected").css("background-color","")},onColorSugTextColor:function(t,e){var a="dgwt-wcas-preview-sugtextcol-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-suggestions-wrapp *,",i+=".dgwt-wcas-details-wrapp *,",i+=".dgwt-wcas-sd,",i+=".dgwt-wcas-suggestion *",i+="{color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onColorSugHighlightColor:function(t,e){var a="dgwt-wcas-preview-sughighlight-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-st strong,",i+=".dgwt-wcas-sd strong",i+="{color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onColorSugBorderColor:function(t,e){var a="dgwt-wcas-preview-sugborder-style";if(this.isColor(e)){var i='<style class="'+a+'">';i+=".dgwt-wcas-suggestions-wrapp,",i+=".dgwt-wcas-details-wrapp,",i+=".dgwt-wcas-suggestion,",i+=".dgwt-wcas-datails-title,",i+=".dgwt-wcas-details-more-products",i+="{border-color: "+e+"!important;}",i+="</style>",s("head").append(i)}else{var o=s("."+a);o.length>0&&o.remove()}},onTypeSearchSubmitText:function(t,e){var a=s(".js-dgwt-wcas-search-submit-l"),i=s(".js-dgwt-wcas-search-submit-m");e.length>0?(a.text(e),a.show(),i.hide()):(a.text(""),a.hide(),i.show())},onTypeSearchPlaceholder:function(s,t){0==t.length&&(t=dgwt_wcas.labels.search_placeholder),this.searchInput.attr("placeholder",t)},onTypeSearchNoResultsText:function(t,e){0==e.length&&(e=dgwt_wcas.labels.no_results),s(".js-dgwt-wcas-suggestion-nores span").text(e)},onTypeSearchSeeAllResultsText:function(t,e){0==e.length&&(e=dgwt_wcas.labels.show_more),s(".js-dgwt-wcas-st-more-label").text(e)},fixSizesInit:function(){var t=this;s(document).on("click","#dgwt_wcas_autocomplete-tab",function(){t.onChangeShowDetailsBox(s("input[id*='show_details_box']"))})}};var d={settingsTab:"#dgwt_wcas_troubleshooting-tab",noIssuesClass:".js-dgwt-wcas-troubleshooting-no-issues",counterClass:".js-dgwt-wcas-troubleshooting-count",issuesListClass:".js-dgwt-wcas-troubleshooting-issues",progressBar:".dgwt-wcas-troubleshooting-wrapper .progress_bar",progressBarInner:".dgwt-wcas-troubleshooting-wrapper .progress-bar-inner",resetButtonName:"dgwt-wcas-reset-async-tests",fixOutofstockButtonName:"dgwt-wcas-fix-out-of-stock-relationships",dismissElementorTemplateButtonName:"dgwt-wcas-dismiss-elementor-template",init:function(){var t=this;if(void 0===dgwt_wcas.troubleshooting)return;const e=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended;e>0&&(s(t.counterClass).text(e),s(t.settingsTab).addClass("enabled")),dgwt_wcas.troubleshooting.tests.results_async.length>0&&s.each(dgwt_wcas.troubleshooting.tests.results_async,function(){t.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.direct.length>0&&s.each(dgwt_wcas.troubleshooting.tests.direct,function(){t.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.async.length>0&&t.maybeRunNextAsyncTest(),s(document).on("click",'input[name="'+t.resetButtonName+'"]',function(e){s('input[name="'+t.resetButtonName+'"]').attr("disabled","disabled");var a={action:"dgwt_wcas_troubleshooting_reset_async_tests",_wpnonce:dgwt_wcas.troubleshooting.nonce.troubleshooting_reset_async_tests};return s.post(ajaxurl,a,function(){location.reload()}),!1}),s(document).on("click",'input[name="'+t.fixOutofstockButtonName+'"]',function(e){s('input[name="'+t.fixOutofstockButtonName+'"]').attr("disabled","disabled").next().addClass("loading");var a={action:"dgwt_wcas_troubleshooting_fix_outofstock",_wpnonce:dgwt_wcas.troubleshooting.nonce.troubleshooting_fix_outofstock};return s.post(ajaxurl,a,function(){location.reload()}),!1}),s(document).on("click",'input[name="'+t.dismissElementorTemplateButtonName+'"]',function(e){s('input[name="'+t.dismissElementorTemplateButtonName+'"]').attr("disabled","disabled");var a={action:"dgwt_wcas_troubleshooting_dismiss_elementor_template",_wpnonce:dgwt_wcas.troubleshooting.nonce.troubleshooting_dismiss_elementor_template};return s.post(ajaxurl,a,function(){location.reload()}),!1})},appendIssue:function(t,e){var a,i=wp.template("dgwt-wcas-troubleshooting-issue"),o=s(this.issuesListClass+"-"+t.status);"good"!==t.status&&(s(this.noIssuesClass).hide(),e&&dgwt_wcas.troubleshooting.tests.issues[t.status]++,(a=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended)>0&&(s(this.counterClass).text(a),s(this.settingsTab).addClass("enabled")),s(o).append(i(t)))},maybeRunNextAsyncTest:function(){var t=this;dgwt_wcas.troubleshooting.tests.async.length>0&&s.each(dgwt_wcas.troubleshooting.tests.async,function(){var e={action:"dgwt_wcas_troubleshooting_test",test:this.test,_wpnonce:dgwt_wcas.troubleshooting.nonce.troubleshooting_async_test};return!!this.completed||(this.completed=!0,s(t.progressBar).show(),s.post(ajaxurl,e,function(s){s.success&&t.appendIssue(s.data,!0),t.maybeRunNextAsyncTest()}),!1)}),t.recalculateProgression()},recalculateProgression:function(){var t=this,e=dgwt_wcas.troubleshooting.tests.async.length,a=0;s.each(dgwt_wcas.troubleshooting.tests.async,function(){this.completed&&a++});var i=Math.ceil(a/e*100);s(t.progressBarInner).css("width",i+"%"),100===i&&setTimeout(function(){s(t.progressBar).slideUp()},2e3)}},l={moveOptionClass:".js-dgwt-wcas-move-option",init:function(){var t=s(this.moveOptionClass);t.length>0&&s.each(t,function(t,e){var a=s("#"+s(e).data("move-dest").replace(/(:|\.|\[|\])/g,"\\$1"));a.length>0&&(s(e).closest("tr").hasClass("dgwt-wcas-premium-only")&&s(e).addClass("dgwt-wcas-premium-only"),s(e).clone().appendTo(a.closest("td fieldset"))),s(e).closest("tr").remove()})}},g=function(){if("undefined"!=typeof Vue){Vue.component("dgwt-wcas-rule",{template:"#dgwt-wcas-settings-filters-rules-rule",components:{Selectize:Selectize},props:["nonce","rule","rules","index"],data:()=>({isSelectActive:!0}),computed:{ruleValue(s){return this.rule.group}},watch:{rule:{handler:function(){this.$emit("update:rule",this.index)},deep:!0},ruleValue(){var s=this;this.$emit("change:group",this.index),this.isSelectActive=!1,setTimeout(function(){s.isSelectActive=!0},0)}},methods:{deleteRule(){this.$emit("delete:rule",this.index)},getSelectizeSettings(t){var e=void 0===dgwt_wcas_filters_rules_selected_options[t]?[]:dgwt_wcas_filters_rules_selected_options[t];return function({nonce:t,options:e,type:a}){return{persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["label"],options:e,preload:!0,create:function(s){return{value:s.key,label:s.label}},load:function(e,i){s.ajax({url:ajaxurl,method:"POST",data:{action:"dgwt_wcas_settings_search_terms",query:e,type:a,_wpnonce:t},error:function(){i()},success:function(s){i(s.data)}})}}}({nonce:this.nonce,type:t,options:e})}}});new Vue({el:"#dgwt-wcas-settings-filters-rules",components:{Selectize:Selectize},data:()=>({rules:[]}),mounted(){try{const t=JSON.parse(this.$refs["dgwt-wcas-settings-filters-rules-ref"].value);s.each(t,function(s,e){t[s].key=Math.random()}),this.rules=t}catch(s){}this.updateInput()},methods:{addRule(){this.rules.push({group:"",values:[],key:Math.random()}),this.updateInput()},changeGroup(s){this.rules[s].values=[],this.updateInput()},deleteRule(s){this.rules=this.rules.filter(function(t,e){return e!==s}),this.updateInput()},updateInput(){const s=JSON.parse(JSON.stringify(this.rules));this.$refs["dgwt-wcas-settings-filters-rules-ref"].value=JSON.stringify(s.map(function(s){return s.key,delete s.key,s}))}}})}};s(document).ready(function(){var h,u;(h=s(".js-dgwt-wcas-settings-margin-nob")).length>0&&h.each(function(){var t=s(this).find("td .dgwt-wcas-fieldset");if(t.length>0){var e=s(this).prev(".js-dgwt-wcas-settings-margin");if(e.length>0){var a=s(this).attr("class").split(/\s+/),i="";s.each(a,function(s,t){-1!==t.indexOf("js-dgwt-wcas-cbtgroup-")&&(i=t)});var o=t.clone(!0,!0);o.addClass("dgwt-wcas-settings-margin-nob"),i&&o.addClass(i),o.appendTo(e.find("td")),s(this).remove()}}}),t.init(),e.init(),i.init(),(u=s(".js-dgwt-wcas-sgs-autocolspan")).length>0&&u.find("td").attr("colspan",2),o.init(),n.init(),c.init(),r.init(),d.init(),l.init(),a.init(),g(),window.DGWT_WCAS_SEARCH_PREVIEW.init()})}(jQuery);
assets/js/search.js CHANGED
@@ -205,6 +205,7 @@
205
  that.hintValue = '';
206
  that.selection = null;
207
  that.overlayMobileState = 'off';
 
208
 
209
  // Initialize and set options:
210
  that.initialize();
@@ -549,11 +550,15 @@
549
  }
550
  });
551
 
552
- // Clear timeout - onBlur usage
553
- $(document).on('click.autocomplete', '.' + that.options.containerClass, function () {
554
- var that = utils.getActiveInstance();
555
- clearTimeout(that.blurTimeoutId);
556
- })
 
 
 
 
557
 
558
  },
559
  registerEventsDetailsPanel: function () {
@@ -564,18 +569,17 @@
564
  return;
565
  }
566
 
567
- // Clear timeout - onBlur usage
568
- $(document).on('click.autocomplete', '.' + that.options.containerDetailsClass, function () {
569
- var that = utils.getActiveInstance();
570
- clearTimeout(that.blurTimeoutId);
571
- })
572
-
573
  // Update quantity
574
  $(document).on('change.autocomplete', '[name="js-dgwt-wcas-quantity"]', function (e) {
575
  var $input = $(this).closest('.js-dgwt-wcas-pd-addtc').find('[data-quantity]');
576
  $input.attr('data-quantity', $(this).val());
577
  });
578
 
 
 
 
 
 
579
  },
580
  registerIconHandler: function () {
581
  var that = this,
@@ -735,15 +739,13 @@
735
  return;
736
  }
737
 
738
- // If user clicked on a suggestion, hide() will
739
- // be canceled, otherwise close suggestions
740
- that.blurTimeoutId = setTimeout(function () {
741
- that.hide();
742
 
743
- if (that.selection && that.currentValue !== query) {
744
- (options.onInvalidateSelection || $.noop).call(that.element);
745
- }
746
- }, 200);
747
  },
748
  abortAjax: function () {
749
  var that = this;
@@ -1364,7 +1366,7 @@
1364
  }
1365
 
1366
  // Disable on more product suggestion
1367
- if (typeof suggestion.more_products == 'string' && suggestion.more_products === 'more_products') {
1368
  return;
1369
  }
1370
 
@@ -1875,7 +1877,8 @@
1875
 
1876
  var parent = '',
1877
  dataAttrs = '',
1878
- is_img = false;
 
1879
 
1880
  if (groupBy) {
1881
  html += formatGroup(suggestion, value, i);
@@ -1883,8 +1886,7 @@
1883
 
1884
  if (typeof suggestion.type == 'undefined' || (suggestion.type != 'product') && suggestion.type != 'product_variation') {
1885
 
1886
- var dataUrl = '',
1887
- classes = className,
1888
  innerClass = 'dgwt-wcas-st',
1889
  prepend = '',
1890
  append = '',
@@ -1956,7 +1958,7 @@
1956
 
1957
  title = title.length > 0 ? ' title="' + title + '"' : '';
1958
 
1959
- html += '<div class="' + classes + '" data-index="' + i + '">';
1960
 
1961
  if(isImg) {
1962
  html += '<span class="dgwt-wcas-si"><img src="' + suggestion.image_src + '" /></span>';
@@ -1985,7 +1987,7 @@
1985
  html += '</span>';
1986
 
1987
  html += isImg ? '</div>' : '';
1988
- html += '</div>';
1989
  } else {
1990
 
1991
  // Image
@@ -1998,7 +2000,7 @@
1998
  dataAttrs += typeof suggestion.post_id != 'undefined' ? 'data-post-id="' + suggestion.post_id + '" ' : '';
1999
  dataAttrs += typeof suggestion.taxonomy != 'undefined' ? 'data-taxonomy="' + suggestion.taxonomy + '" ' : '';
2000
  dataAttrs += typeof suggestion.term_id != 'undefined' ? 'data-term-id="' + suggestion.term_id + '" ' : '';
2001
- html += '<div class="' + className + ' dgwt-wcas-suggestion-product' + sugVarClass + '" data-index="' + i + '" ' + dataAttrs + '>';
2002
 
2003
  // Image
2004
  if (is_img) {
@@ -2028,7 +2030,8 @@
2028
  var vendorBody = '<span class="dgwt-wcas-product-vendor"><span class="dgwt-wcas-product-vendor-label">' + dgwt_wcas.labels.vendor_sold_by + ' </span>' + suggestion.vendor + '</span>'
2029
 
2030
  if (typeof suggestion.vendor_url != 'undefined' && suggestion.vendor_url) {
2031
- html += '<a href="' + suggestion.vendor_url + '">' + vendorBody + '</a>';
 
2032
  } else {
2033
  html += vendorBody;
2034
  }
@@ -2073,6 +2076,9 @@
2073
  // Add class on show
2074
  $('body').addClass('dgwt-wcas-open');
2075
 
 
 
 
2076
  that.automaticAlignment();
2077
 
2078
  if (options.showDetailsPanel === true) {
205
  that.hintValue = '';
206
  that.selection = null;
207
  that.overlayMobileState = 'off';
208
+ that.isMouseDownOnSearchElements = false;
209
 
210
  // Initialize and set options:
211
  that.initialize();
550
  }
551
  });
552
 
553
+ // Use that.select(i) method instead of default browser events on <a> element
554
+ $(document).on('click.autocomplete', suggestionSelector, function (e) {
555
+ e.preventDefault();
556
+ });
557
+
558
+ // Mark cursor position for onBlur event
559
+ $('.' + that.options.containerClass).on('mousedown.autocomplete', function (e) {
560
+ that.isMouseDownOnSearchElements = true;
561
+ });
562
 
563
  },
564
  registerEventsDetailsPanel: function () {
569
  return;
570
  }
571
 
 
 
 
 
 
 
572
  // Update quantity
573
  $(document).on('change.autocomplete', '[name="js-dgwt-wcas-quantity"]', function (e) {
574
  var $input = $(this).closest('.js-dgwt-wcas-pd-addtc').find('[data-quantity]');
575
  $input.attr('data-quantity', $(this).val());
576
  });
577
 
578
+ // Mark cursor position for onBlur event
579
+ $('.' + that.options.containerDetailsClass).on('mousedown.autocomplete', function (e) {
580
+ that.isMouseDownOnSearchElements = true;
581
+ });
582
+
583
  },
584
  registerIconHandler: function () {
585
  var that = this,
739
  return;
740
  }
741
 
742
+ if (!that.isMouseDownOnSearchElements) {
743
+ that.hide();
 
 
744
 
745
+ if (that.selection && that.currentValue !== query) {
746
+ (options.onInvalidateSelection || $.noop).call(that.element);
747
+ }
748
+ }
749
  },
750
  abortAjax: function () {
751
  var that = this;
1366
  }
1367
 
1368
  // Disable on more product suggestion
1369
+ if (typeof suggestion.type == 'string' && suggestion.type === 'more_products') {
1370
  return;
1371
  }
1372
 
1877
 
1878
  var parent = '',
1879
  dataAttrs = '',
1880
+ is_img = false,
1881
+ url = typeof suggestion.url == 'string' && suggestion.url.length ? suggestion.url : '#';
1882
 
1883
  if (groupBy) {
1884
  html += formatGroup(suggestion, value, i);
1886
 
1887
  if (typeof suggestion.type == 'undefined' || (suggestion.type != 'product') && suggestion.type != 'product_variation') {
1888
 
1889
+ var classes = className,
 
1890
  innerClass = 'dgwt-wcas-st',
1891
  prepend = '',
1892
  append = '',
1958
 
1959
  title = title.length > 0 ? ' title="' + title + '"' : '';
1960
 
1961
+ html += '<a href="' + url + '" class="' + classes + '" data-index="' + i + '">';
1962
 
1963
  if(isImg) {
1964
  html += '<span class="dgwt-wcas-si"><img src="' + suggestion.image_src + '" /></span>';
1987
  html += '</span>';
1988
 
1989
  html += isImg ? '</div>' : '';
1990
+ html += '</a>';
1991
  } else {
1992
 
1993
  // Image
2000
  dataAttrs += typeof suggestion.post_id != 'undefined' ? 'data-post-id="' + suggestion.post_id + '" ' : '';
2001
  dataAttrs += typeof suggestion.taxonomy != 'undefined' ? 'data-taxonomy="' + suggestion.taxonomy + '" ' : '';
2002
  dataAttrs += typeof suggestion.term_id != 'undefined' ? 'data-term-id="' + suggestion.term_id + '" ' : '';
2003
+ html += '<a href="' + url + '" class="' + className + ' dgwt-wcas-suggestion-product' + sugVarClass + '" data-index="' + i + '" ' + dataAttrs + '>';
2004
 
2005
  // Image
2006
  if (is_img) {
2030
  var vendorBody = '<span class="dgwt-wcas-product-vendor"><span class="dgwt-wcas-product-vendor-label">' + dgwt_wcas.labels.vendor_sold_by + ' </span>' + suggestion.vendor + '</span>'
2031
 
2032
  if (typeof suggestion.vendor_url != 'undefined' && suggestion.vendor_url) {
2033
+ // Since version v1.12.0 suggestions tag was changed from <div> to <a> and vendor links are no longer supported.
2034
+ html += '<span class="dgwt-wcas-product-vendor-link" data-url="' + suggestion.vendor_url + '">' + vendorBody + '</span>';
2035
  } else {
2036
  html += vendorBody;
2037
  }
2076
  // Add class on show
2077
  $('body').addClass('dgwt-wcas-open');
2078
 
2079
+ // Reset the latest mousedown position
2080
+ that.isMouseDownOnSearchElements = false;
2081
+
2082
  that.automaticAlignment();
2083
 
2084
  if (options.showDetailsPanel === true) {
assets/js/search.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(t){"use strict";var e={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e.setAttribute("unselectable","on"),e},highlight:function(t,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(t,e){return e.length-t.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|^)"+e.escapeRegExChars(r.trim())+"\\s)";else l=1===r.trim().length&&o[i]===n?"((\\s|^)"+e.escapeRegExChars(r.trim())+")":"("+e.escapeRegExChars(r.trim())+")";t=t.replace(new RegExp(l,"gi"),"^^$1@@"),a=!0}}a&&(t=(t=t.replace(/\^\^/g,"<strong>")).replace(/@@/g,"</strong>"))}else l="("+e.escapeRegExChars(s)+")",t=t.replace(new RegExp(l,"gi"),"<strong>$1</strong>");return t},debounce:function(t,e){var i,o=(new Date).getUTCMilliseconds();if(0===s.id.length)return s.id=o,void t();s.id=o,i=setTimeout(function(){o===s.id?(t(),s.id=""):clearTimeout(i)},e)},mouseHoverDebounce:function(e,s,i){var o;o=setTimeout(function(){t(s+":hover").length>0?e():clearTimeout(o)},i)},getActiveInstance:function(){var e,s=t(".dgwt-wcas-search-wrapp.dgwt-wcas-active");return s.length>0&&s.each(function(){var s=t(this).find(".dgwt-wcas-search-input");if("object"==typeof s.data("autocomplete"))return e=s.data("autocomplete"),!1}),e},hashCode:function(t){for(var e=0,s=t.length;s>0;)e=(e<<5)-e+t.charCodeAt(--s)|0;return e<0?-1*e:e}},s={id:"",callback:null,ajaxSettings:null,object:null},i=27,o=9,a=13,n=38,r=39,l=40,c=t.noop;function d(e,s){this.element=e,this.el=t(e),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=t.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.initialize(),this.setOptions(s)}d.utils=e,t.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(t,s,i,o){if(!s)return t;i&&(t=e.highlight(t,s));if(!o.convertHtml)return t;return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/&lt;sup/g,"<sup").replace(/&lt;\/sup/g,"</sup").replace(/sup&gt;/g,"sup>").replace(/&lt;(\/?(strong|b|br))&gt;/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(t,e,s){return-1!==t.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},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()},t(window).on("resize.autocomplete",function(){var t=e.getActiveInstance();void 0!==t&&t.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(e){var s=this.options;0==t("."+s.containerClass).length?(this.suggestionsContainer=t(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=t("."+this.options.containerClass),this.canShowDetailsBox()&&(0==t("."+s.containerDetailsClass).length?(this.detailsContainer=t(d.utils.createNode(s.containerDetailsClass)),this.detailsContainer.appendTo(s.appendTo||"body"),this.detailsContainer.addClass("woocommerce")):this.detailsContainer=t("."+s.containerDetailsClass))},registerEventsSearchBar:function(){var s=this;t(document).on("click.autocomplete","."+s.options.closeTrigger,function(){e.getActiveInstance().close()}),s.el.closest("."+s.options.formClass).on("submit.autocomplete",function(e){if(s.options.disableSubmit)return e.preventDefault(),!1;var i=t(this).find("."+s.options.searchInputClass);if(i.length&&0===i.val().length)return e.preventDefault(),!1;s.suggestions.length>0&&t.each(s.suggestions,function(t,i){if(void 0!==i.type&&"product_variation"==i.type)return s.select(t),e.preventDefault(),!1})}),"complete"===document.readyState?s.positionPreloader():t(window).on("load",function(){s.positionPreloader()}),s.el.on("keydown.autocomplete",function(t){s.onKeyPress(t)}),s.el.on("keyup.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("blur.autocomplete",function(){s.onBlur()}),s.el.on("focus.autocomplete",function(){s.onFocus()}),s.el.on("change.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("input.autocomplete",function(t){s.onKeyUp(t)})},registerEventsSuggestions:function(){var s="."+this.classes.suggestion;if(!this.getSuggestionsContainer().hasClass("js-dgwt-wcas-initialized")){t(document).on("mouseenter.autocomplete",s,function(){var s=e.getActiveInstance();if(void 0!==s){var i=t(this).data("index"),o='.dgwt-wcas-suggestion[data-index="'+i+'"]',a=s.canShowDetailsBox()?100:1;s.selectedIndex!=i&&e.mouseHoverDebounce(function(){s.selectedIndex!==i&&(s.latestActivateSource="mouse",s.getDetails(s.suggestions[i]),s.activate(i))},o,a)}});var i=!1;t(document).on("click.autocomplete",s,function(){if(!i){var s=e.getActiveInstance();s.actionTriggerSource="click",i=!0,setTimeout(function(){i=!1},500),s.select(t(this).data("index"))}}),t(document).on("mousedown.autocomplete",s,function(e){"number"==typeof e.which&&1===e.which&&t(e.target)[0].click()}),t(document).on("click.autocomplete","."+this.options.containerClass,function(){var t=e.getActiveInstance();clearTimeout(t.blurTimeoutId)})}},registerEventsDetailsPanel:function(){var s=this.getDetailsContainer();this.canShowDetailsBox()&&!s.hasClass("js-dgwt-wcas-initialized")&&(t(document).on("click.autocomplete","."+this.options.containerDetailsClass,function(){var t=e.getActiveInstance();clearTimeout(t.blurTimeoutId)}),t(document).on("change.autocomplete",'[name="js-dgwt-wcas-quantity"]',function(e){t(this).closest(".js-dgwt-wcas-pd-addtc").find("[data-quantity]").attr("data-quantity",t(this).val())}))},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(t){var e=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),e.focus()})}}),0==t(".js-dgwt-wcas-initialized").length&&t(".js-dgwt-wcas-search-icon-handler").length>0&&t(document).on("click.autocomplete",function(i){if(t(".dgwt-wcas-layout-icon-open").length){var o=t(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=e.getActiveInstance();if(void 0!==a){var n=a.getFormWrapper().find("."+s.options.formClass);n.hide(),a.hide(!0),n.css({left:"0"})}s.hideIconModeSearch()}}}),t(window).on("resize.autocomplete",function(){s.applyFlexibleMode()}),"complete"==document.readyState?s.applyFlexibleMode():t(window).on("load.autocomplete",function(){s.applyFlexibleMode()})},registerEventsFixedMenu:function(){var e=this;t(window).on("scroll.autocomplete",function(){if(e.suggestions.length>0&&e.elementOrParentIsFixed(e.getFormWrapper()))if(0===t(window).scrollTop()){[1,10,20,30,40,50,60,70,80,90,120,140,170,200,250,400,700,1e3,2e3].forEach(function(t){setTimeout(function(){e.fixHeight(),e.fixPositionCapture()},t)})}else e.fixHeight(),e.fixPositionCapture()})},initMobileMode:function(){var t=this,e=t.getFormWrapper();e.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&t.isMobileMode()&&(e.prepend('<div class="js-dgwt-wcas-enable-mobile-form dgwt-wcas-enable-mobile-form"></div>'),e.find(".js-dgwt-wcas-enable-mobile-form").on("click.autocomplete",function(e){t.enableOverlayMobile()}))},applyFlexibleMode:function(){var e=t(".js-dgwt-wcas-layout-icon-flexible");e.length&&(this.isMobileMode()?(e.addClass("js-dgwt-wcas-layout-icon"),e.addClass("dgwt-wcas-layout-icon")):(e.removeClass("js-dgwt-wcas-layout-icon"),e.removeClass("dgwt-wcas-layout-icon")),e.addClass("dgwt-wcas-layout-icon-flexible-loaded"))},onFocus:function(){t("."+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 e=this,s=e.options,i=e.el.val(),o=e.getQuery(i);e.isMobileMode()||(e.blurTimeoutId=setTimeout(function(){e.hide(),e.selection&&e.currentValue!==o&&(s.onInvalidateSelection||t.noop).call(e.element)},200))},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var s=this,i=s.getSuggestionsContainer(),o=t.extend({},s.options,e);(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(t){t&&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 t=this.getFormOffset();this.getSuggestionsContainer().css(t),this.canShowDetailsBox()&&this.fixPositionDetailsBox()},fixPositionDetailsBox:function(){var e=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),e.width()>=550)return t("body").removeClass("dgwt-wcas-details-outside"),t("body").removeClass("dgwt-wcas-details-right"),t("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=t(window).width(),c=i.width(),d=i.offset();t("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,t("body").removeClass("dgwt-wcas-details-right"),t("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,t("body").removeClass("dgwt-wcas-details-left"),t("body").addClass("dgwt-wcas-details-right")),u&&g?(t("body").removeClass("dgwt-wcas-details-left"),t("body").removeClass("dgwt-wcas-details-right"),t("body").addClass("dgwt-wcas-details-notfit")):t("body").removeClass("dgwt-wcas-details-notfit")},fixHeight:function(){if(1!=this.options.showDetailsPanel)return!1;var t=this.getSuggestionsContainer(),e=this.getDetailsContainer();t.css("height","auto"),e.css("height","auto");var s=t.outerHeight(),i=e.outerHeight();return t.find(".dgwt-wcas-suggestion:last-child").removeClass("dgwt-wcas-suggestion-no-border-bottom"),!(s<=340&&i<=340)&&(t.find(".dgwt-wcas-suggestion:last-child").addClass("dgwt-wcas-suggestion-no-border-bottom"),i<s&&e.css("height",s+"px"),s<i&&t.css("height",i+"px"),!1)},automaticAlignment:function(){var t=this,e=t.getFormWrapper().find(".dgwt-wcas-search-input"),s=t.getSuggestionsContainer(),i=t.getDetailsContainer();if(null==t.autoAligmentprocess){var o=[e.width(),s.height()];t.options.showDetailsPanel&&(o[2]=i.height()),t.autoAligmentprocess=setInterval(function(){var a=[e.width(),s.height()];t.options.showDetailsPanel&&(a[2]=i.height());for(var n=0;n<o.length;n++)if(o[n]!=a[n]){t.fixHeight(),t.fixPositionCapture(),o=a;break}t.options.showDetailsPanel&&(i.find(".dgwt-wcas-details-inner").height()-i.height()>2&&t.fixHeight())},10)}},getFormOffset:function(){var e=this.getFormWrapper(),s=this.getSuggestionsContainer(),i=this.options.orientation,o=e.outerHeight(),a=this.el.outerHeight(),n=this.el.offset(),r={top:n.top,left:n.left};if("auto"===i){var l=t(window).height(),c=t(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=e[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 t("."+this.options.containerClass)},getDetailsContainer:function(){return t("."+this.options.containerDetailsClass)},scrollDownSuggestions:function(){var t=this.getSuggestionsContainer();t[0].scrollTop=t[0].scrollHeight},isCursorAtEnd:function(){var t,e=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||t.which!==l||!this.currentValue){if(!this.disabled&&this.visible){switch(t.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}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case n:case l:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeTimeout=setTimeout(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var e=this.options,s=this.el.val(),i=this.getQuery(s);this.selection&&this.currentValue!==i&&(this.selection=null,(e.onInvalidateSelection||t.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=s,this.selectedIndex=-1,e.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<e.minChars?(this.hideCloseButton(),this.hide()):this.getSuggestions(i)}},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},canShowDetailsBox:function(){return 1==this.options.showDetailsPanel&&!this.isMobileMode()},isMobileMode:function(){return t(window).width()<this.options.mobileBreakpoint},getQuery:function(e){var s,i=this.options.delimiter;return i?(s=e.split(i),t.trim(s[s.length-1])):e.trim()},getSuggestionsLocal:function(e){var s,i=this.options,o=e.toLowerCase(),a=i.lookupFilter,n=parseInt(i.lookupLimit,10);return s={suggestions:t.grep(i.lookup,function(t){return a(t,e,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,t.isFunction(c.lookup)?c.lookup(i,function(t){l.suggestions=t.suggestions,l.suggest(),l.selectFirstSuggestion(t.suggestions),c.onSearchComplete.call(l.element,i,t.suggestions)}):(l.isLocal?o=l.getSuggestionsLocal(i):(t.isFunction(d)&&(d=d.call(l.element,i)),n=d+"?"+t.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},t.extend(r,c.ajaxSettings),s.object=l,s.ajaxSettings=r,e.debounce(function(){var e=s.object,o=s.ajaxSettings;e.currentRequest=t.ajax(o).done(function(t){var s;e.currentRequest=null,void 0!==(s=e.options.transformResult(t,i)).suggestions&&(e.processResponse(s,i,n),e.selectFirstSuggestion(s.suggestions),1===s.suggestions.length&&void 0!==s.suggestions[0].type&&"no-results"===s.suggestions[0].type?e.gaEvent(i,"Autocomplete Search without results"):e.gaEvent(i,"Autocomplete Search with results")),e.fixPositionCapture(),e.options.onSearchComplete.call(e.element,i,s.suggestions),e.updatePrices()}).fail(function(t,s,o){e.options.onSearchError.call(e.element,i,t,s,o)})},c.debounceWaitMs))))},getDetails:function(e){var s=this;if(!s.canShowDetailsBox())return!1;if(null!=e&&void 0!==e.type&&("string"!=typeof e.more_products||"more_products"!==e.more_products)){s.fixHeight();s.getDetailsContainer();var i=s.prepareSuggestionObjectID(e);if(null!=s.cachedDetails[i])s.detailsPanelSetScene(i),s.fixHeight(),s.fixPositionCapture();else{var o={action:dgwt_wcas.action_result_details,items:[]};if(t.each(s.suggestions,function(t,e){if(void 0!==e.type&&"more_products"!=e.type&&"headline"!=e.type){var i={objectID:s.prepareSuggestionObjectID(e),value:null!=e.value?e.value:""};o.items.push(i)}}),s.detailsPanelClearScene(),s.preloader("show","details",""),-1!=t.inArray(i,s.detailsRequestsSent))return;s.detailsRequestsSent.push(i),t.ajax({data:o,type:"post",url:dgwt_wcas.ajax_details_endpoint,success:function(t){var e="string"==typeof t?jQuery.parseJSON(t):t;if(void 0!==e.items)for(var i=0;i<e.items.length;i++){var o=e.items[i].objectID;if(s.cachedDetails[o]={html:e.items[i].html},s.detailsPanelAddToScene(o),void 0!==e.items[i].price&&e.items[i].price.length>0&&(s.cachedPrices[o]=e.items[i].price),void 0!==e.items[i].imageSrc&&e.items[i].imageSrc.length>0)(new Image).src=e.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(t,e){s.preloader("hide","details",""),s.detailsPanelClearScene(),s.fixPositionCapture(),s.fixHeight()}})}t(document).trigger("dgwtWcasDetailsPanelLoaded",s)}},updatePrices:function(e){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(!e&&a.length>0){var r={action:void 0===dgwt_wcas.action_get_prices?"dgwt_wcas_get_prices":dgwt_wcas.action_get_prices,items:a};t.ajax({data:r,type:"post",url:dgwt_wcas.ajax_prices_endpoint,success:function(t){if(void 0!==t.success&&t.success&&t.data.length>0)for(s=0;s<t.data.length;s++){var e=t.data[s].id,a=t.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==e){var n="product__"+e;o.cachedPrices[n]=a,o.updatePrice(i,a)}}},error:function(t,e){}})}}},updatePrice:function(e,s){if(void 0!==this.suggestions[e]){this.suggestions[e].price=s;var i=t(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+e+'"] .dgwt-wcas-sp');i.length&&i.html(s)}},applyCustomParams:function(t){if("object"==typeof dgwt_wcas.custom_params){var e=dgwt_wcas.custom_params;for(var s in e)t[s]=e[s]}var i=this.el.data("custom-params");if("object"==typeof i)for(var s in i)t[s]=i[s];return t},applyPreloaderForPrice:function(e){if(void 0!==this.suggestions[e]){var s=t(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+e+'"] .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(t){var e="";return void 0!==t&&void 0!==t.type&&(null!=t.post_id&&(e=t.type+"__"+t.post_id,"product_variation"===t.type&&(e+="__"+t.variation_id),void 0!==t.post_type&&(e=t.type+"__"+t.post_id+"__"+t.post_type)),null!=t.term_id&&null!=t.taxonomy&&(e=t.type+"__"+t.term_id+"__"+t.taxonomy)),e},detailsPanelSetScene:function(t){var s=this.getDetailsContainer(),i=e.hashCode(t),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(t){var s=this.getDetailsContainer(),i=this.cachedDetails[t],o=e.hashCode(t),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 t=this.getDetailsContainer().find(".dgwt-wcas-details-inner");t.length&&t.removeClass("dgwt-wcas-details-inner-active")},selectFirstSuggestion:function(e){var s=0,i=!1;this.canShowDetailsBox()&&("undefined"!=e&&e.length>0&&t.each(this.suggestions,function(t,e){if(void 0!==e.type&&"more_products"!=e.type&&"headline"!=e.type&&"no-results"!=e.type)return s=t,!1;void 0!==e.type&&"no-results"!==e.type||(i=!0)}),i||(this.latestActivateSource="system",this.getDetails(e[s]),this.activate(s)))},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,s=e.length;s--;)if(0===t.indexOf(e[s]))return!0;return!1},hide:function(e){this.getFormWrapper();var s=this.getSuggestionsContainer(),i=this.getDetailsContainer();t.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(),t("body").removeClass("dgwt-wcas-open"),t("body").removeClass("dgwt-wcas-block-scroll"),t("body").removeClass("dgwt-wcas-is-details"),t("body").removeClass("dgwt-wcas-full-width"),t("body").removeClass("dgwt-wcas-nores"),t("body").removeClass("dgwt-wcas-details-outside"),t("body").removeClass("dgwt-wcas-details-right"),t("body").removeClass("dgwt-wcas-details-left"),null!=this.autoAligmentprocess&&(clearInterval(this.autoAligmentprocess),this.autoAligmentprocess=null),"boolean"==typeof e&&e&&(this.hideCloseButton(),this.currentValue="",this.suggestions=[]),this.signalHint(null)},positionIconSearchMode:function(e){var s=-20,i=e.find("."+this.options.formClass),o=i.width(),a=t(window).width(),n=e[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 e=t(".dgwt-wcas-layout-icon-open");e.length>0&&e.removeClass("dgwt-wcas-layout-icon-open")},hideAfterClickOutsideListener:function(){var e=this;e.isMobileMode()||t(document).mouseup(function(s){if(e.visible){e.getSuggestionsContainer(),e.getDetailsContainer();var i=!(t(s.target).closest("."+e.options.searchFormClass).length>0||t(s.target).hasClass(e.options.searchFormClass)),o=!(t(s.target).closest("."+e.options.containerClass).length>0||t(s.target).hasClass(e.options.containerClass));if(e.canShowDetailsBox()){var a=!(t(s.target).closest("."+e.options.containerDetailsClass).length>0||t(s.target).hasClass(e.options.containerDetailsClass));i&&o&&a&&e.hide()}else i&&o&&e.hide()}})},suggest:function(){if(this.suggestions.length){var e,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=t(s.noSuggestionsContainer),u=i.beforeRender,h="";i.triggerSelectOnValidInput&&s.isExactMatch(n)?s.select(0):(t("body").removeClass("dgwt-wcas-nores"),t.each(s.suggestions,function(l,c){var d="",g=!1;if(o&&(h+=function(t,s){var i=t.data[o];return e===i?"":'<div class="autocomplete-group"><strong>'+(e=i)+"</strong></div>"}(c,0)),void 0===c.type||"product"!=c.type&&"product_variation"!=c.type){var u,p=r,w="dgwt-wcas-st",f="",m="",v="",b=!0;"product_cat"===c.taxonomy?(p+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-cat",i.showHeadings||(f+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.category+"</span>"),void 0!==c.breadcrumbs&&c.breadcrumbs&&(v=c.breadcrumbs+" &gt; "+c.value,m+='<span class="dgwt-wcas-st-breadcrumbs">'+dgwt_wcas.labels.in+" "+c.breadcrumbs+"</span>")):"product_tag"===c.taxonomy?(p+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tag",i.showHeadings||(f+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.tag+"</span>")):i.isPremium&&c.taxonomy===i.taxonomyBrands?(p+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-brand",i.showHeadings||(f+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.brand+"</span>")):i.isPremium&&"vendor"===c.type?(p+=" dgwt-wcas-suggestion-vendor dgwt-wcas-suggestion-vendor",i.showHeadings||(f+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.vendor+"</span>")):i.isPremium&&"post"===c.type?(p+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-tp-post",i.showHeadings||(f+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.post+"</span>")):i.isPremium&&"page"===c.type?(p+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-page",i.showHeadings||(f+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.page+"</span>")):"more_products"===c.type?(p+=" js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more",w="dgwt-wcas-st-more",c.value=dgwt_wcas.labels.show_more+" ("+c.total+")",b=!1):i.showHeadings&&"headline"===c.type?(p+=" 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"]),b=!1):(p+=" dgwt-wcas-suggestion-nores",c.value=dgwt_wcas.labels.no_results,b=!1,!0===i.showDetailsPanel&&s.detailsPanelClearScene(),t("body").addClass("dgwt-wcas-nores")),void 0!==c.image_src&&c.image_src&&(u=!0),v=v.length>0?' title="'+v+'"':"",h+='<div class="'+p+'" data-index="'+l+'">',u&&(h+='<span class="dgwt-wcas-si"><img src="'+c.image_src+'" /></span>',h+='<div class="dgwt-wcas-content-wrapp">'),h+="<span"+v+' class="'+w+'">',"vendor"===c.type?(h+='<span class="dgwt-wcas-st-title">'+f+a(c.value,n,b,i)+m+"</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+=f+a(c.value,n,b,i)+m,h+="</span>",h+=u?"</div>":"",h+="</div>"}else{!0===i.showImage&&void 0!==c.thumb_html&&(g=!0);var C="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+='<div class="'+r+" dgwt-wcas-suggestion-product"+C+'" 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 y='<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+='<a href="'+c.vendor_url+'">'+y+"</a>":h+=y}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),t.isFunction(u)&&u.call(s.element,c,s.suggestions),c.show(),t("body").addClass("dgwt-wcas-open"),s.automaticAlignment(),!0===i.showDetailsPanel&&(t("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),t("body").addClass("dgwt-wcas-block-scroll"),setTimeout(function(){s.scrollDownSuggestions()},300)),s.findBestHint())}else this.hide()},adjustContainerWidth:function(){var e,s=this.options,i=t("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&&(e=this.el.outerWidth(),a.css("width",e+"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(e){var s="object"==typeof e?e.find(".dgwt-wcas-search-submit"):t(".dgwt-wcas-search-submit");s.length>0&&s.each(function(){var e=t(this).closest(".dgwt-wcas-search-wrapp").find(".dgwt-wcas-preloader");1==dgwt_wcas.is_rtl?e.css("left",6+t(this).outerWidth()+"px"):e.css("right",t(this).outerWidth()+"px")})},findBestHint:function(){var e=this.el.val().toLowerCase(),s=null;e&&(t.each(this.suggestions,function(t,i){var o=0===i.value.toLowerCase().indexOf(e);return o&&(s=i),!o}),this.signalHint(s))},signalHint:function(e){var s="";e&&(s=this.currentValue+e.value.substr(this.currentValue.length)),this.hintValue!==s&&(this.hintValue=s,this.hint=e,(this.options.onHint||t.noop)(s))},preloader:function(t,e,s){var i,o,a="dgwt-wcas-preloader-wrapp",n=null==s?a:a+" "+s;if("form"===e){if(1!=dgwt_wcas.show_preloader)return;o=this.getFormWrapper().find(".dgwt-wcas-preloader")}else"details"===e&&(o=this.getDetailsContainer());if(0!=o.length)if("form"!==e){var r=o.find("."+a);if("hide"!==t){if("show"===t){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"===t?(o.removeClass(s),o.html("")):(o.addClass(s),"string"==typeof dgwt_wcas.preloader_icon&&o.html(dgwt_wcas.preloader_icon))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,function(t){return{value:t,data:null}}):e},validateOrientation:function(e,s){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=s),e},processResponse:function(t,e,s){var i=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),i.noCache||(this.cachedResponse[s]=t,i.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&("top"===this.options.orientation&&t.suggestions.reverse(),this.suggestions=t.suggestions,this.suggest())},activate:function(e){var s,i=this.classes.selected,o=this.getSuggestionsContainer(),a=o.find("."+this.classes.suggestion);return o.find("."+i).removeClass(i),this.selectedIndex=e,-1!==this.selectedIndex&&a.length>this.selectedIndex?(s=a.get(this.selectedIndex),t(s).addClass(i),s):null},selectHint:function(){var e=t.inArray(this.hint,this.suggestions);this.select(e)},select:function(t){this.options.disableHits||(this.hide(),this.onSelect(t))},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(e,s){if("headline"===this.suggestions[e].type&&(e="down"===s?e+1:e-1),void 0!==this.suggestions[e]){var i=this.activate(e);if(this.getDetails(this.suggestions[e]),"more_products"!==this.suggestions[e].type&&i&&!this.canShowDetailsBox()){var o,a,n,r=this.getSuggestionsContainer(),l=t(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(e){var s=this.options.onSelect,i=this.suggestions[e];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,t.isFunction(s)&&s.call(this.element,i)):this.el.closest("form").trigger("submit")},getValue:function(t){var e,s,i=this.options.delimiter;return i?1===(s=(e=this.currentValue).split(i)).length?t:e.substr(0,e.length-s[s.length-1].length)+t:t},dispose:function(){var e=this.el,s=this.getFormWrapper(),i=this.getSuggestionsContainer(),o=(this.getDetailsContainer(),e.closest("."+this.options.formClass),s.find(".js-dgwt-wcas-enable-mobile-form"));s.length&&s.find("*").each(function(){t(this).off(".autocomplete")});e.removeData("autocomplete"),t(window).off("resize.autocomplete",this.fixPositionCapture),s.removeClass("dgwt-wcas-active"),this.close(),o.length&&o.remove(),i.length&&i.html("")},enableOverlayMobile:function(){var e=this;if("on"!==e.overlayMobileState){e.overlayMobileState="on";var s,i=e.getFormWrapper(),o=e.getSuggestionsContainer(),a="";t("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>",t(e.options.mobileOverlayWrapper).append(a),(s=t(".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("."+e.options.searchInputClass).focus(),t(document).on("click.autocomplete",".js-dgwt-wcas-om-return",function(t){e.disableOverlayMobile(s)})}},disableOverlayMobile:function(e){var s=this,i=s.getSuggestionsContainer(),o=t(".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"),t("html").removeClass("dgwt-wcas-overlay-mobile-on"),i.appendTo("body"),i.removeAttr("body-scroll-lock-ignore"),t(".js-dgwt-wcas-om-hook").after(o),t(".js-dgwt-wcas-overlay-mobile").remove(),t(".js-dgwt-wcas-om-hook").remove(),setTimeout(function(){o.find("."+s.options.searchInputClass).val("");var t=o.find(".dgwt-wcas-close");o.length>0&&(t.removeClass("dgwt-wcas-close"),t.html("")),s.hide()},150),s.overlayMobileState="off"},showCloseButton:function(){var t=void 0!==dgwt_wcas.close_icon?dgwt_wcas.close_icon:"",e=this.getFormWrapper().find("."+this.options.preloaderClass);e.addClass(this.options.closeTrigger),e.html(t)},hideCloseButton:function(){var t=this.getFormWrapper().find("."+this.options.closeTrigger);t.length&&(t.removeClass(this.options.closeTrigger),t.html(""))},elementOrParentIsFixed:function(e){var s=e.add(e.parents()),i=!1;return s.each(function(){if("fixed"===t(this).css("position"))return i=!0,!1}),i},gaEvent:function(t,e){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:t,event_category:e});else if(!1!==s){var i=s.getAll()[0];i&&i.send({hitType:"event",eventCategory:e,eventAction:"autocomplete_search",eventLabel:t})}}catch(t){}if(this.options.enableGASiteSearchModule)try{if("undefined"!=typeof gtag)gtag("event","page_view",{page_path:"/?s="+encodeURI(t)+"&post_type=product&dgwt_wcas=1"});else if(!1!==s){var o=s.getAll()[0];o&&(o.set("page","/?s="+encodeURI(t)+"&post_type=product&dgwt_wcas=1"),o.send("pageview"))}}catch(t){}}},t.fn.dgwtWcasAutocomplete=function(e,s){return arguments.length?this.each(function(){var i=t(this),o=i.data("autocomplete");"string"==typeof e?o&&"function"==typeof o[e]&&o[e](s):(o&&o.dispose&&o.dispose(),o=new d(this,e),i.data("autocomplete",o))}):this.first().data("autocomplete")},t.fn.autocomplete||(t.fn.autocomplete=t.fn.dgwtWcasAutocomplete),function(){function e(){var e=t(".dgwt-wcas-search-input"),s=[];e.length>1&&e.each(function(){var e=t(this).attr("id");if(-1==t.inArray(e,s))s.push(e);else{var i=Math.random().toString(36).substring(2,6);i="dgwt-wcas-search-input-"+i,t(this).attr("id",i),t(this).closest("form").find("label").attr("for",i)}})}function s(){var e=t(".dgwt-wcas-search-input");e.length>0&&e.each(function(){"object"!=typeof t(this).data("autocomplete")&&t(this).dgwtWcasAutocomplete(window.dgwt_wcas.config)})}navigator.userAgent.match(/Trident\/7\./)&&function(t,e){function s(t,e){var s=arguments.length>2?arguments[2]:[];if(!1===a(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,s)}function i(t,e,s){var i={value:s,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,i)}function o(t,e){return t[e]}function a(t){return"function"==typeof t}function n(t){if(null===t||t===e)throw TypeError();return Object(t)}function r(t,s){var i=function(t,e){return n(t)[e]}(t,s);if(null===i||i===e)return e;if(!1===a(i))throw new TypeError("Method not callable: "+s);return i}function l(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function c(s){if("object"!==l(s))return!1;var i="Symbol"in t&&"match"in t.Symbol?o(s,t.Symbol.match):e;if(i!==e)return Boolean(i);try{var a=s.lastIndex;return s.lastIndex=0,RegExp.prototype.exec.call(s),!0}catch(t){}finally{s.lastIndex=a}return!1}function d(t,e){return l(t)===l(e)&&("number"===l(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function g(t){if("symbol"===l(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function u(i){var n=arguments.length>1?arguments[1]:e;if("object"===l(i)){if(arguments.length<2)var c="default";else n===String?c="string":n===Number&&(c="number");var d="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?r(i,t.Symbol.toPrimitive):e;if(d!==e){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(t,e){if("string"===e)var i=["toString","valueOf"];else i=["valueOf","toString"];for(var n=0;n<i.length;++n){var r=o(t,i[n]);if(a(r)){var c=s(r,t);if("object"!==l(c))return c}}throw new TypeError("Cannot convert to primitive.")}(i,c)}return i}function h(t){switch(l(t)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return h(u(t,String));default:return String(t)}}i(Array.prototype,"includes",function(t){var e=n(this),s=function(t){var e=g(t);return e<=0?0:Math.min(e,Math.pow(2,53)-1)}(o(e,"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(t,o(e,h(a))))return!0;a+=1}return!1}),i(String.prototype,"includes",function(t){var s=arguments.length>1?arguments[1]:e,i=h(function(t){if(null===t||t===e)throw TypeError(Object.prototype.toString.call(t)+" is not coercible to Object.");return t}(this));if(c(t))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var o=h(t),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||{}),t(document).ready(function(){(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)&&t("html").addClass("dgwt-wcas-is-ios");var e=1==dgwt_wcas.show_details_box,s=dgwt_wcas.mobile_breakpoint;(jQuery(window).width()<s||"ontouchend"in document)&&(e=!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:e,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)},t(".dgwt-wcas-search-input").dgwtWcasAutocomplete(window.dgwt_wcas.config)}),t(window).on("load",function(){var e=0,s=setInterval(function(){var i=document.activeElement;if("object"==typeof i&&t(i).length&&t(i).hasClass("dgwt-wcas-search-input")){var o=t(i).closest(".dgwt-wcas-search-wrapp");o.length&&!o.hasClass("dgwt-wcas-active")&&(o.addClass("dgwt-wcas-active"),clearInterval(s))}e>10&&clearInterval(s),e++},500)}),t(document).ready(function(){setTimeout(function(){e(),s()},500)}),t(window).on("load",function(){setTimeout(function(){e(),s()},500),void 0!==window.elementorFrontend&&void 0!==window.elementorFrontend.documentsManager&&void 0!==window.elementorFrontend.documentsManager.documents&&t.each(elementorFrontend.documentsManager.documents,function(t,e){void 0!==e.getModal&&e.getModal&&e.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/&lt;sup/g,"<sup").replace(/&lt;\/sup/g,"</sup").replace(/sup&gt;/g,"sup>").replace(/&lt;(\/?(strong|b|br))&gt;/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+" &gt; "+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)})})})}()});
includes/Admin/Troubleshooting.php CHANGED
@@ -18,6 +18,8 @@ class Troubleshooting
18
  const TRANSIENT_TEST_KEY2 = 'dgwt_wcas_test_transients2' ;
19
  const ASYNC_TEST_NONCE = 'troubleshooting-async-test' ;
20
  const RESET_ASYNC_TESTS_NONCE = 'troubleshooting-reset-async-tests' ;
 
 
21
  public function __construct()
22
  {
23
  if ( !$this->checkRequirements() ) {
@@ -29,6 +31,8 @@ class Troubleshooting
29
  add_action( DGWT_WCAS_SETTINGS_KEY . '-form_bottom_' . self::SECTION_ID, array( $this, 'tabContent' ) );
30
  add_action( 'wp_ajax_dgwt_wcas_troubleshooting_test', array( $this, 'asyncTest' ) );
31
  add_action( 'wp_ajax_dgwt_wcas_troubleshooting_reset_async_tests', array( $this, 'resetAsyncTests' ) );
 
 
32
  }
33
 
34
  /**
@@ -103,6 +107,19 @@ class Troubleshooting
103
  wp_send_json_success();
104
  }
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  /**
107
  * Pass "troubleshooting" data to JavaScript on Settings page
108
  *
@@ -114,8 +131,10 @@ class Troubleshooting
114
  {
115
  $localize['troubleshooting'] = array(
116
  'nonce' => array(
117
- 'troubleshooting_async_test' => wp_create_nonce( self::ASYNC_TEST_NONCE ),
118
- 'troubleshooting_reset_async_tests' => wp_create_nonce( self::RESET_ASYNC_TESTS_NONCE ),
 
 
119
  ),
120
  'tests' => array(
121
  'direct' => array(),
@@ -433,6 +452,71 @@ class Troubleshooting
433
  return $result;
434
  }
435
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  /**
437
  * Return a set of tests
438
  *
@@ -461,6 +545,10 @@ class Troubleshooting
461
  array(
462
  'label' => __( 'Incompatible "Searching by Text" extension in WOOF - WooCommerce Products Filter', 'ajax-search-for-woocommerce' ),
463
  'test' => 'WoofSearchTextExtension',
 
 
 
 
464
  )
465
  ),
466
  'async' => array( array(
@@ -500,6 +588,38 @@ class Troubleshooting
500
  return false;
501
  }
502
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  /**
504
  * Check requirements
505
  *
18
  const TRANSIENT_TEST_KEY2 = 'dgwt_wcas_test_transients2' ;
19
  const ASYNC_TEST_NONCE = 'troubleshooting-async-test' ;
20
  const RESET_ASYNC_TESTS_NONCE = 'troubleshooting-reset-async-tests' ;
21
+ const FIX_OUTOFSTOCK_NONCE = 'troubleshooting-fix-outofstock' ;
22
+ const DISMIS_ELEMENTOR_TEMPLATE_NONCE = 'troubleshooting-dismiss-elementor-template' ;
23
  public function __construct()
24
  {
25
  if ( !$this->checkRequirements() ) {
31
  add_action( DGWT_WCAS_SETTINGS_KEY . '-form_bottom_' . self::SECTION_ID, array( $this, 'tabContent' ) );
32
  add_action( 'wp_ajax_dgwt_wcas_troubleshooting_test', array( $this, 'asyncTest' ) );
33
  add_action( 'wp_ajax_dgwt_wcas_troubleshooting_reset_async_tests', array( $this, 'resetAsyncTests' ) );
34
+ add_action( 'wp_ajax_dgwt_wcas_troubleshooting_fix_outofstock', array( $this, 'fixOutOfStock' ) );
35
+ add_action( 'wp_ajax_dgwt_wcas_troubleshooting_dismiss_elementor_template', array( $this, 'dismissElementorTemplate' ) );
36
  }
37
 
38
  /**
107
  wp_send_json_success();
108
  }
109
 
110
+ /**
111
+ * Dismiss Elementor template error
112
+ */
113
+ public function dismissElementorTemplate()
114
+ {
115
+ if ( !current_user_can( 'administrator' ) ) {
116
+ wp_die( -1, 403 );
117
+ }
118
+ check_ajax_referer( self::DISMIS_ELEMENTOR_TEMPLATE_NONCE );
119
+ update_option( 'dgwt_wcas_dismiss_elementor_template', '1' );
120
+ wp_send_json_success();
121
+ }
122
+
123
  /**
124
  * Pass "troubleshooting" data to JavaScript on Settings page
125
  *
131
  {
132
  $localize['troubleshooting'] = array(
133
  'nonce' => array(
134
+ 'troubleshooting_async_test' => wp_create_nonce( self::ASYNC_TEST_NONCE ),
135
+ 'troubleshooting_reset_async_tests' => wp_create_nonce( self::RESET_ASYNC_TESTS_NONCE ),
136
+ 'troubleshooting_fix_outofstock' => wp_create_nonce( self::FIX_OUTOFSTOCK_NONCE ),
137
+ 'troubleshooting_dismiss_elementor_template' => wp_create_nonce( self::DISMIS_ELEMENTOR_TEMPLATE_NONCE ),
138
  ),
139
  'tests' => array(
140
  'direct' => array(),
452
  return $result;
453
  }
454
 
455
+ /**
456
+ * Test if Elementor has defined correct template for search results
457
+ *
458
+ * @return array The test result.
459
+ */
460
+ public function getTestElementorSearchResultsTemplate()
461
+ {
462
+ global $wp_query ;
463
+ $result = array(
464
+ 'label' => '',
465
+ 'status' => 'good',
466
+ 'description' => '',
467
+ 'actions' => '',
468
+ 'test' => 'ElementorSearchTemplate',
469
+ );
470
+ if ( get_option( 'dgwt_wcas_dismiss_elementor_template' ) === '1' ) {
471
+ return $result;
472
+ }
473
+ if ( !defined( 'ELEMENTOR_VERSION' ) || !defined( 'ELEMENTOR_PRO_VERSION' ) ) {
474
+ return $result;
475
+ }
476
+ if ( version_compare( ELEMENTOR_VERSION, '2.9.0' ) < 0 || version_compare( ELEMENTOR_PRO_VERSION, '2.10.0' ) < 0 ) {
477
+ return $result;
478
+ }
479
+ $conditionsManager = \ElementorPro\Plugin::instance()->modules_manager->get_modules( 'theme-builder' )->get_conditions_manager();
480
+ // Prepare $wp_query so that the conditions for checking if there is a search page are true.
481
+ $wp_query->is_search = true;
482
+ $wp_query->is_post_type_archive = true;
483
+ set_query_var( 'post_type', 'product' );
484
+ $documents = $conditionsManager->get_documents_for_location( 'archive' );
485
+ // Reset $wp_query
486
+ $wp_query->is_search = false;
487
+ $wp_query->is_post_type_archive = false;
488
+ set_query_var( 'post_type', '' );
489
+ // Stop checking - a template from a theme or WooCommerce will be used
490
+ if ( empty($documents) ) {
491
+ return $result;
492
+ }
493
+ /**
494
+ * @var \ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document $document
495
+ */
496
+ $document = current( $documents );
497
+
498
+ if ( !$this->doesElementorElementsContainsWidget( $document->get_elements_data(), 'wc-archive-products' ) ) {
499
+ $linkToDocs = 'https://fibosearch.com/documentation/troubleshooting/the-search-results-page-created-in-elementor-doesnt-display-products/';
500
+ $dismissButton = get_submit_button(
501
+ __( 'Dismiss', 'ajax-search-for-woocommerce' ),
502
+ 'secondary',
503
+ 'dgwt-wcas-dismiss-elementor-template',
504
+ false
505
+ );
506
+ $templateLink = '<a target="_blank" href="' . admin_url( 'post.php?post=' . $document->get_post()->ID . '&action=elementor' ) . '">' . $document->get_post()->post_title . '</a>';
507
+ $result['label'] = __( 'There is no correct template in Elementor Theme Builder for the WooCommerce search results page.', 'ajax-search-for-woocommerce' );
508
+ $result['description'] = '<p>' . sprintf( __( 'You are using Elementor and we noticed that the template used in the search results page titled <strong>%s</strong> does not include the <strong>Archive Products</strong> widget.', 'ajax-search-for-woocommerce' ), $templateLink ) . '</p>';
509
+ $result['description'] .= '<p><b>' . __( 'Solution', 'ajax-search-for-woocommerce' ) . '</b></p>';
510
+ $result['description'] .= '<p>' . sprintf( __( 'Add <strong>Archive Products</strong> widget to the template <strong>%s</strong> or create a new template dedicated to the WooCommerce search results page. Learn how to do it in <a href="%s" target="_blank">our documentation</a>.', 'ajax-search-for-woocommerce' ), $templateLink, $linkToDocs ) . '</p>';
511
+ $result['description'] .= '<br/><hr/><br/>';
512
+ $result['description'] .= '<p>' . sprintf( __( 'If you think the search results page is displaying your products correctly, you can ignore and dismiss this message: %s', 'ajax-search-for-woocommerce' ), $dismissButton ) . '</p>';
513
+ $result['status'] = 'critical';
514
+ return $result;
515
+ }
516
+
517
+ return $result;
518
+ }
519
+
520
  /**
521
  * Return a set of tests
522
  *
545
  array(
546
  'label' => __( 'Incompatible "Searching by Text" extension in WOOF - WooCommerce Products Filter', 'ajax-search-for-woocommerce' ),
547
  'test' => 'WoofSearchTextExtension',
548
+ ),
549
+ array(
550
+ 'label' => __( 'Elementor search results template', 'ajax-search-for-woocommerce' ),
551
+ 'test' => 'ElementorSearchResultsTemplate',
552
  )
553
  ),
554
  'async' => array( array(
588
  return false;
589
  }
590
 
591
+ /**
592
+ * Check if Elementor elements contains specific widget type
593
+ *
594
+ * @param $elements
595
+ * @param $widget
596
+ *
597
+ * @return bool
598
+ */
599
+ private function doesElementorElementsContainsWidget( $elements, $widget )
600
+ {
601
+ $result = false;
602
+ if ( !is_array( $elements ) || empty($elements) || empty($widget) ) {
603
+ return false;
604
+ }
605
+ if ( isset( $elements['widgetType'] ) && $elements['widgetType'] === 'wc-archive-products' ) {
606
+ $result = true;
607
+ }
608
+ // Plain array of elements
609
+
610
+ if ( !isset( $elements['elements'] ) ) {
611
+ foreach ( $elements as $element ) {
612
+ $result = $result || $this->doesElementorElementsContainsWidget( $element, $widget );
613
+ }
614
+ } else {
615
+ if ( isset( $elements['elements'] ) && is_array( $elements['elements'] ) && !empty($elements['elements']) ) {
616
+ $result = $result || $this->doesElementorElementsContainsWidget( $elements['elements'], $widget );
617
+ }
618
+ }
619
+
620
+ return $result;
621
+ }
622
+
623
  /**
624
  * Check requirements
625
  *
includes/Helpers.php CHANGED
@@ -787,6 +787,9 @@ class Helpers
787
  if ( !empty($el) && is_numeric( $el ) ) {
788
  $allow = true;
789
  }
 
 
 
790
  return apply_filters( 'dgwt/wcas/search_in_variable_products', $allow );
791
  }
792
 
787
  if ( !empty($el) && is_numeric( $el ) ) {
788
  $allow = true;
789
  }
790
+ if ( DGWT_WCAS()->settings->getOption( 'search_in_product_content' ) !== 'on' ) {
791
+ $allow = false;
792
+ }
793
  return apply_filters( 'dgwt/wcas/search_in_variable_products', $allow );
794
  }
795
 
includes/Integrations/Plugins/WooCommerceProductsFilter/WooCommerceProductsFilter.php ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace DgoraWcas\Integrations\Plugins\WooCommerceProductsFilter;
4
+
5
+ use DgoraWcas\Helpers;
6
+
7
+ // Exit if accessed directly
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit;
10
+ }
11
+
12
+ /**
13
+ * Integration with WOOF – Products Filter for WooCommerce
14
+ *
15
+ * Plugin URL: https://wordpress.org/plugins/woocommerce-products-filter/
16
+ * Author: realmag777
17
+ */
18
+ class WooCommerceProductsFilter {
19
+ public function init() {
20
+ if ( ! defined( 'WOOF_VERSION' ) ) {
21
+ return;
22
+ }
23
+ if ( version_compare( WOOF_VERSION, '1.2.3' ) < 0 ) {
24
+ return;
25
+ }
26
+ if ( ! $this->is_search() ) {
27
+ return;
28
+ }
29
+
30
+ add_action( 'pre_get_posts', array( $this, 'search_products' ), 900000 );
31
+
32
+ add_filter( 'woof_print_content_before_search_form', array( $this, 'inject_search_filter' ) );
33
+
34
+ add_filter( 'woof_get_filtered_price_query', array( $this, 'get_filtered_price_query' ) );
35
+
36
+ add_filter( 'woof_get_terms_args', array( $this, 'get_terms_args' ) );
37
+
38
+ add_action( 'pre_get_posts', array( $this, 'pre_get_posts' ) );
39
+ }
40
+
41
+ /**
42
+ * Set search query var if our custom search param is present
43
+ *
44
+ * @param \WP_Query $query
45
+ */
46
+ public function search_products( $query ) {
47
+ if ( Helpers::is_running_inside_class( 'WP_QueryWoofCounter' ) ) {
48
+ return;
49
+ }
50
+ if ( ! $query->is_main_query() ) {
51
+ return;
52
+ }
53
+
54
+ $dgwt_wcas_s = isset( $_GET['dgwt_wcas_s'] ) && ! empty( trim( $_GET['dgwt_wcas_s'] ) ) ? trim( $_GET['dgwt_wcas_s'] ) : '';
55
+
56
+ if ( ! empty( $dgwt_wcas_s ) ) {
57
+ $query->set( 's', $dgwt_wcas_s );
58
+ $query->is_search = true;
59
+ }
60
+ }
61
+
62
+ /**
63
+ * Inject our custom search param to object with plugin's filters
64
+ *
65
+ * @param string $content
66
+ *
67
+ * @return string
68
+ */
69
+ public function inject_search_filter( $content = '' ) {
70
+ ob_start();
71
+ ?>
72
+ <script>
73
+ function dgwt_wcas_s_init() {
74
+ setTimeout(function () {
75
+ woof_current_values.dgwt_wcas_s = '<?php echo esc_js( get_search_query() ) ?>';
76
+ }, 100);
77
+ }
78
+
79
+ if (document.readyState !== 'loading') {
80
+ dgwt_wcas_s_init();
81
+ } else {
82
+ document.addEventListener('DOMContentLoaded', dgwt_wcas_s_init);
83
+ }
84
+ </script>
85
+ <?php
86
+ $content .= ob_get_clean();
87
+
88
+ return $content;
89
+ }
90
+
91
+ /**
92
+ * Passing our search results to plugin's price filter
93
+ *
94
+ * The plugin will use our products IDs to determine the values in the displayed filters.
95
+ *
96
+ * @param string $sql
97
+ *
98
+ * @return string
99
+ */
100
+ public function get_filtered_price_query( $sql ) {
101
+ global $wpdb;
102
+
103
+ $post_ids = apply_filters( 'dgwt/wcas/search_page/result_post_ids', array() );
104
+
105
+ if ( $post_ids ) {
106
+ $sql .= " AND $wpdb->posts.ID IN(" . implode( ',', $post_ids ) . ")";
107
+ }
108
+
109
+ return $sql;
110
+ }
111
+
112
+ /**
113
+ * Passing our search results to plugin's terms filters
114
+ *
115
+ * The plugin will use our products IDs to determine terms in the displayed filters.
116
+ *
117
+ * @param array $args
118
+ *
119
+ * @return array
120
+ */
121
+ public function get_terms_args( $args ) {
122
+ $post_ids = apply_filters( 'dgwt/wcas/search_page/result_post_ids', array() );
123
+
124
+ if ( $post_ids ) {
125
+ $args['object_ids'] = $post_ids;
126
+ }
127
+
128
+ return $args;
129
+ }
130
+
131
+ /**
132
+ * Check if it's search page
133
+ *
134
+ * @return bool
135
+ */
136
+ private function is_search() {
137
+ if (
138
+ isset( $_GET['dgwt_wcas'] ) && $_GET['dgwt_wcas'] === '1' &&
139
+ isset( $_GET['post_type'] ) && $_GET['post_type'] === 'product' &&
140
+ (
141
+ ( isset( $_GET['s'] ) && ! empty( $_GET['s'] ) ) ||
142
+ ( isset( $_GET['dgwt_wcas_s'] ) && ! empty( $_GET['dgwt_wcas_s'] ) )
143
+ )
144
+ ) {
145
+ return true;
146
+ }
147
+
148
+ return false;
149
+ }
150
+
151
+ /**
152
+ * Filter posts used to show counters next to the filters
153
+ *
154
+ * @param $query
155
+ *
156
+ * @return mixed
157
+ */
158
+ public function pre_get_posts( $query ) {
159
+ if ( $this->is_search() && Helpers::is_running_inside_class( 'WP_QueryWoofCounter' ) ) {
160
+ $post_ids = apply_filters( 'dgwt/wcas/search_page/result_post_ids', array() );
161
+ $query->set( 'post__in', $post_ids );
162
+ }
163
+
164
+ return $query;
165
+ }
166
+ }
includes/Integrations/Themes/Electro/Electro.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace DgoraWcas\Integrations\Themes\Electro;
4
+
5
+ use DgoraWcas\Abstracts\ThemeIntegration;
6
+
7
+ // Exit if accessed directly
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit;
10
+ }
11
+
12
+ class Electro extends ThemeIntegration {
13
+
14
+ public function __construct() {
15
+ $this->themeSlug = 'electro';
16
+ $this->themeName = 'Electro';
17
+
18
+ parent::__construct();
19
+ }
20
+ }
includes/Integrations/Themes/ShopIsle/ShopIsle.php CHANGED
@@ -2,146 +2,19 @@
2
 
3
  namespace DgoraWcas\Integrations\Themes\ShopIsle;
4
 
5
- use DgoraWcas\Helpers;
6
 
7
  // Exit if accessed directly
8
  if ( ! defined( 'ABSPATH' ) ) {
9
  exit;
10
  }
11
 
12
- class ShopIsle {
13
-
14
- private $themeSlug = 'shop-isle';
15
-
16
- private $themeName = 'Shop Isle';
17
 
18
  public function __construct() {
19
- $this->maybeOverwriteSearch();
20
-
21
- add_filter( 'dgwt/wcas/settings', array( $this, 'registerSettings' ) );
22
- }
23
-
24
- /**
25
- * Add settings
26
- *
27
- * @param array $settings
28
- *
29
- * @return array
30
- */
31
- public function registerSettings( $settings ) {
32
- $key = 'dgwt_wcas_basic';
33
-
34
- $settings[ $key ][10] = array(
35
- 'name' => $this->themeSlug . '_main_head',
36
- 'label' => sprintf( __( 'Replace %s search bar', 'ajax-search-for-woocommerce' ), $this->themeName ),
37
- 'type' => 'head',
38
- 'class' => 'dgwt-wcas-sgs-header'
39
- );
40
-
41
- $settings[ $key ][52] = array(
42
- 'name' => $this->themeSlug . '_settings_head',
43
- 'label' => sprintf( __( '%s Theme', 'ajax-search-for-woocommerce' ), $this->themeName ),
44
- 'type' => 'desc',
45
- 'desc' => Helpers::embeddingInThemeHtml(),
46
- 'class' => 'dgwt-wcas-sgs-themes-label',
47
- );
48
-
49
- $img = DGWT_WCAS()->themeCompatibility->getThemeImageSrc();
50
- if ( ! empty( $img ) ) {
51
- $settings[ $key ][52]['label'] = '<img src="' . $img . '">';
52
- }
53
-
54
- $settings[ $key ][55] = array(
55
- 'name' => $this->themeSlug . '_replace_search',
56
- 'label' => __( 'Replace', 'ajax-search-for-woocommerce' ),
57
- 'desc' => sprintf( __( 'Replace all %s search bars with the %s.', 'ajax-search-for-woocommerce' ), $this->themeName, DGWT_WCAS_NAME ),
58
- 'type' => 'checkbox',
59
- 'default' => 'off',
60
- );
61
-
62
- $settings[ $key ][90] = array(
63
- 'name' => $this->themeSlug . '_othersways__head',
64
- 'label' => __( 'Alternative ways to embed a search bar', 'ajax-search-for-woocommerce' ),
65
- 'type' => 'head',
66
- 'class' => 'dgwt-wcas-sgs-header'
67
- );
68
-
69
- return $settings;
70
- }
71
-
72
- /**
73
- * Check if can replace the native search form with the FiboSearch form.
74
- *
75
- * @return bool
76
- */
77
- private function canReplaceSearch() {
78
- $canIntegrate = false;
79
-
80
- if ( DGWT_WCAS()->settings->getOption( $this->themeSlug . '_replace_search', 'off' ) === 'on' ) {
81
- $canIntegrate = true;
82
- }
83
-
84
- return $canIntegrate;
85
- }
86
-
87
- /**
88
- * Overwrite search
89
- *
90
- * @return void
91
- */
92
- private function maybeOverwriteSearch() {
93
- if ( $this->canReplaceSearch() ) {
94
- $this->applyCSS();
95
-
96
- add_action( 'init', function () {
97
- remove_action( 'shop_isle_header', 'shop_isle_primary_navigation', 50 );
98
- } );
99
-
100
- add_action( 'shop_isle_header', array( $this, 'replaceSearchForm' ), 60 );
101
- }
102
- }
103
-
104
- /**
105
- * Apply custom CSS
106
- *
107
- * @return void
108
- */
109
- private function applyCSS() {
110
-
111
- add_action( 'wp_head', function () {
112
- ?>
113
- <style>
114
- .dgwt-wcas-ico-magnifier-handler {
115
- fill: #cbc7c2;
116
- max-width: 16px;
117
- margin-top: 3px;
118
- }
119
-
120
- .dgwt-wcas-ico-magnifier-handler:hover {
121
- fill: #ffffff;
122
- }
123
-
124
- .dgwt-wcas-is-mobile .dgwt-wcas-ico-magnifier-handler {
125
- max-width: 20px;
126
- }
127
- </style>
128
- <?php
129
- } );
130
-
131
- }
132
 
133
- /**
134
- * Replace search from
135
- */
136
- public function replaceSearchForm() {
137
- if ( function_exists( 'shop_isle_primary_navigation' ) ) {
138
- ob_start();
139
- shop_isle_primary_navigation();
140
- $html = ob_get_clean();
141
- // https://regex101.com/r/AvkuEr/1/
142
- $re = '/(.*<div class="header-search">)(.*<\/form>\s*<\/div>\s*)(<\/div>.*)/s';
143
- $subst = '$1' . do_shortcode( '[wcas-search-form layout="icon"]' ) . '$3';
144
- echo preg_replace( $re, $subst, $html );
145
- }
146
  }
147
  }
2
 
3
  namespace DgoraWcas\Integrations\Themes\ShopIsle;
4
 
5
+ use DgoraWcas\Abstracts\ThemeIntegration;
6
 
7
  // Exit if accessed directly
8
  if ( ! defined( 'ABSPATH' ) ) {
9
  exit;
10
  }
11
 
12
+ class ShopIsle extends ThemeIntegration {
 
 
 
 
13
 
14
  public function __construct() {
15
+ $this->themeSlug = 'shop-isle';
16
+ $this->themeName = 'Shop Isle';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
+ parent::__construct();
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
  }
includes/Integrations/Themes/ShopIslePro/ShopIslePro.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace DgoraWcas\Integrations\Themes\ShopIslePro;
4
+
5
+ use DgoraWcas\Abstracts\ThemeIntegration;
6
+
7
+ // Exit if accessed directly
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit;
10
+ }
11
+
12
+ class ShopIslePro extends ThemeIntegration {
13
+
14
+ public function __construct() {
15
+ $this->themeSlug = 'shop-isle-pro';
16
+ $this->themeName = 'ShopIsle 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/shop-isle.php';
29
+ if ( $this->canReplaceSearch() && file_exists( $partialPath ) ) {
30
+ require_once( $partialPath );
31
+ }
32
+ }
33
+ }
includes/Integrations/Themes/ThemesCompatibility.php CHANGED
@@ -100,7 +100,7 @@ class ThemesCompatibility {
100
  'slug' => 'shopical',
101
  'name' => 'Shopical',
102
  ),
103
- 'shopical-pro' => array(
104
  'slug' => 'shopical-pro',
105
  'name' => 'ShopicalPro',
106
  ),
@@ -168,14 +168,23 @@ class ThemesCompatibility {
168
  'slug' => 'top-store-pro',
169
  'name' => 'TopStorePro',
170
  ),
171
- 'top-store' => array(
172
  'slug' => 'top-store',
173
  'name' => 'TopStore',
174
  ),
175
- 'goya' => array(
176
  'slug' => 'goya',
177
  'name' => 'Goya',
178
  ),
 
 
 
 
 
 
 
 
 
179
  );
180
  }
181
 
100
  'slug' => 'shopical',
101
  'name' => 'Shopical',
102
  ),
103
+ 'shopical-pro' => array(
104
  'slug' => 'shopical-pro',
105
  'name' => 'ShopicalPro',
106
  ),
168
  'slug' => 'top-store-pro',
169
  'name' => 'TopStorePro',
170
  ),
171
+ 'top-store' => array(
172
  'slug' => 'top-store',
173
  'name' => 'TopStore',
174
  ),
175
+ 'goya' => array(
176
  'slug' => 'goya',
177
  'name' => 'Goya',
178
  ),
179
+ 'electro' => array(
180
+ 'slug' => 'electro',
181
+ 'name' => 'Electro',
182
+ ),
183
+ 'shopisle-pro' => array(
184
+ 'slug' => 'shopisle-pro',
185
+ 'className' => 'ShopIslePro',
186
+ 'name' => 'ShopIsle PRO',
187
+ ),
188
  );
189
  }
190
 
includes/Multilingual.php CHANGED
@@ -76,7 +76,7 @@ class Multilingual {
76
  * @return bool
77
  */
78
  public static function isLangCode( $lang ) {
79
- return ! empty( $lang ) && is_string( $lang ) && (bool) preg_match( '/^([a-z]{2,3})$|^([a-z]{2}\-[a-z]{4})$/', $lang );
80
  }
81
 
82
  /**
@@ -207,7 +207,7 @@ class Multilingual {
207
  $lang = pll_get_term_language($termID, 'slug');
208
  }
209
 
210
- // TranslatePress has no language relationship with the post, so we always return the default
211
  $lang = apply_filters( 'dgwt/wcas/multilingual/term-language', $lang, $termID, $taxonomy );
212
 
213
  return $lang;
@@ -249,9 +249,11 @@ class Multilingual {
249
  /**
250
  * Active languages
251
  *
 
 
252
  * @return array
253
  */
254
- public static function getLanguages() {
255
 
256
  $langs = array();
257
 
@@ -260,7 +262,7 @@ class Multilingual {
260
 
261
  if ( is_array( $wpmlLangs ) ) {
262
  foreach ( $wpmlLangs as $langCode => $details ) {
263
- if ( self::isLangCode( $langCode ) ) {
264
  $langs[] = strtolower( $langCode );
265
  }
266
  }
@@ -284,7 +286,7 @@ class Multilingual {
284
  $langs[] = self::getDefaultLanguage();
285
  }
286
 
287
- $langs = apply_filters( 'dgwt/wcas/multilingual/languages', $langs );
288
 
289
  return $langs;
290
 
76
  * @return bool
77
  */
78
  public static function isLangCode( $lang ) {
79
+ return ! empty( $lang ) && is_string( $lang ) && (bool) preg_match( '/^([a-z]{2,3})$|^([a-z]{2}\-[a-z]{2,4})$/', $lang );
80
  }
81
 
82
  /**
207
  $lang = pll_get_term_language($termID, 'slug');
208
  }
209
 
210
+ // TranslatePress/qTranslate-XT has no language relationship with the post, so we always return the default
211
  $lang = apply_filters( 'dgwt/wcas/multilingual/term-language', $lang, $termID, $taxonomy );
212
 
213
  return $lang;
249
  /**
250
  * Active languages
251
  *
252
+ * @param bool $includeInvalid Also return invalid languages
253
+ *
254
  * @return array
255
  */
256
+ public static function getLanguages( $includeInvalid = false ) {
257
 
258
  $langs = array();
259
 
262
 
263
  if ( is_array( $wpmlLangs ) ) {
264
  foreach ( $wpmlLangs as $langCode => $details ) {
265
+ if ( self::isLangCode( $langCode ) || $includeInvalid ) {
266
  $langs[] = strtolower( $langCode );
267
  }
268
  }
286
  $langs[] = self::getDefaultLanguage();
287
  }
288
 
289
+ $langs = apply_filters( 'dgwt/wcas/multilingual/languages', $langs, $includeInvalid );
290
 
291
  return $langs;
292
 
includes/Product.php CHANGED
@@ -392,7 +392,16 @@ class Product
392
  */
393
  public function getCustomField( $metaKey )
394
  {
395
- return get_post_meta( $this->productID, $metaKey, true );
 
 
 
 
 
 
 
 
 
396
  }
397
 
398
  /**
392
  */
393
  public function getCustomField( $metaKey )
394
  {
395
+ $result = apply_filters(
396
+ 'dgwt/wcas/product/custom_field',
397
+ false,
398
+ $metaKey,
399
+ $this->productID
400
+ );
401
+ if ( $result !== false ) {
402
+ return $result;
403
+ }
404
+ return get_post_meta( $this->productID, sanitize_key( $metaKey ), true );
405
  }
406
 
407
  /**
includes/Settings.php CHANGED
@@ -580,7 +580,7 @@ class Settings
580
  ),
581
  'type' => 'filters_rules_plug',
582
  'class' => 'js-dgwt-wcas-adv-settings dgwt-wcas-premium-only',
583
- 'default' => array(),
584
  ),
585
  ) ),
586
  'dgwt_wcas_performance' => apply_filters( 'dgwt/wcas/settings/section=performance', array(
580
  ),
581
  'type' => 'filters_rules_plug',
582
  'class' => 'js-dgwt-wcas-adv-settings dgwt-wcas-premium-only',
583
+ 'default' => '[]',
584
  ),
585
  ) ),
586
  'dgwt_wcas_performance' => apply_filters( 'dgwt/wcas/settings/section=performance', array(
languages/ajax-search-for-woocommerce-es_CO.mo ADDED
Binary file
languages/ajax-search-for-woocommerce-es_EC.mo ADDED
Binary file
languages/ajax-search-for-woocommerce-es_ES.mo CHANGED
Binary file
languages/ajax-search-for-woocommerce-es_VE.mo ADDED
Binary file
languages/ajax-search-for-woocommerce-nl_NL.mo CHANGED
Binary file
languages/ajax-search-for-woocommerce-vi.mo ADDED
Binary file
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-05-19 14:23+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,18 +14,21 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
 
 
 
 
17
  #: includes/Engines/TNTSearchMySQL/Indexer/Logger.php:36
18
  #, php-format
19
  msgid "%1$s was called with an invalid level \"%2$s\"."
20
  msgstr ""
21
 
22
- #: ajax-search-for-woocommerce.php:237
23
  #, php-format
24
  msgid "%s is enabled but not effective. It requires %s in order to work."
25
  msgstr ""
26
 
27
  #: includes/Abstracts/ThemeIntegration.php:49
28
- #: includes/Integrations/Themes/Shopical/Shopical.php:43
29
  #: includes/Integrations/Themes/Enfold/Enfold.php:50
30
  #: includes/Integrations/Themes/Sober/Sober.php:43
31
  #: includes/Integrations/Themes/The7/The7.php:46
@@ -33,7 +36,6 @@ msgstr ""
33
  #: includes/Integrations/Themes/DFDRonneby/DFDRonneby.php:43
34
  #: includes/Integrations/Themes/Bridge/Bridge.php:43
35
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:43
36
- #: includes/Integrations/Themes/ShopIsle/ShopIsle.php:43
37
  #: includes/Integrations/Themes/Avada/Avada.php:46
38
  #: includes/Integrations/Themes/Savoy/Savoy.php:43
39
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:43
@@ -52,7 +54,7 @@ msgid ""
52
  "/><br />You can do it by clicking %s or use an external plugin such as %s."
53
  msgstr ""
54
 
55
- #: ajax-search-for-woocommerce.php:215
56
  #, php-format
57
  msgid ""
58
  "%s: You need PHP version at least 7.0 to run this plugin. You are currently "
@@ -77,17 +79,26 @@ msgid ""
77
  "products "
78
  msgstr ""
79
 
80
- #: includes/Admin/Troubleshooting.php:641
81
  msgid ""
82
  "A real solution is to find the reason why the WP-Cron doesn’t work and fix "
83
  "it."
84
  msgstr ""
85
 
86
- #: includes/Admin/Troubleshooting.php:1145
87
  msgid "A search engine's AJAX call did not return valid results"
88
  msgstr ""
89
 
90
- #: includes/Admin/Troubleshooting.php:843
 
 
 
 
 
 
 
 
 
91
  #, php-format
92
  msgid ""
93
  "Add a constant <code>%s</code> to your <code>wp-config.phps</code> file."
@@ -110,11 +121,11 @@ msgstr ""
110
  msgid "Add new rule"
111
  msgstr ""
112
 
113
- #: includes/Admin/Troubleshooting.php:1308
114
  msgid "Add the following URL to the white list:"
115
  msgstr ""
116
 
117
- #: includes/Admin/Troubleshooting.php:1258
118
  msgid ""
119
  "Adding extra rules to <code>/usr/local/nginx/conf/wpsecure_${vhostname}."
120
  "conf</code>"
@@ -140,7 +151,6 @@ msgstr ""
140
  #: includes/Abstracts/ThemeIntegration.php:70
141
  #: includes/Integrations/Themes/TheGem/TheGem.php:100
142
  #: includes/Integrations/Themes/TheGem/TheGem.php:108
143
- #: includes/Integrations/Themes/Shopical/Shopical.php:64
144
  #: includes/Integrations/Themes/Enfold/Enfold.php:71
145
  #: includes/Integrations/Themes/Sober/Sober.php:64
146
  #: includes/Integrations/Themes/The7/The7.php:67
@@ -150,7 +160,6 @@ msgstr ""
150
  #: includes/Integrations/Themes/Storefront/Storefront.php:65
151
  #: includes/Integrations/Themes/Bridge/Bridge.php:64
152
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:64
153
- #: includes/Integrations/Themes/ShopIsle/ShopIsle.php:64
154
  #: includes/Integrations/Themes/Impreza/Impreza.php:60
155
  #: includes/Integrations/Themes/Avada/Avada.php:67
156
  #: includes/Integrations/Themes/Savoy/Savoy.php:64
@@ -161,7 +170,7 @@ msgstr ""
161
  msgid "Alternative ways to embed a search bar"
162
  msgstr ""
163
 
164
- #: includes/Admin/Troubleshooting.php:721
165
  #, php-format
166
  msgid ""
167
  "An error occurred while trying to connect to the database using a PDO_MYSQL "
@@ -213,7 +222,7 @@ msgstr ""
213
  msgid "Basic"
214
  msgstr ""
215
 
216
- #: includes/Admin/Troubleshooting.php:1404
217
  msgid "Blocked search endpoint test"
218
  msgstr ""
219
 
@@ -221,11 +230,11 @@ msgstr ""
221
  msgid "Border color"
222
  msgstr ""
223
 
224
- #: includes/Helpers.php:978
225
  msgid "Brand"
226
  msgstr ""
227
 
228
- #: includes/Helpers.php:985
229
  msgid "Brands"
230
  msgstr ""
231
 
@@ -234,11 +243,11 @@ msgid "Build ID"
234
  msgstr ""
235
 
236
  #: partials/admin/indexer-header-demo.php:15
237
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:675
238
  msgid "Build index"
239
  msgstr ""
240
 
241
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:624
242
  msgid "Canceling..."
243
  msgstr ""
244
 
@@ -246,6 +255,12 @@ msgstr ""
246
  msgid "Cancellation..."
247
  msgstr ""
248
 
 
 
 
 
 
 
249
  #: partials/admin/troubleshooting.php:22
250
  msgid "Check status again"
251
  msgstr ""
@@ -259,7 +274,7 @@ msgstr ""
259
  msgid "Colors"
260
  msgstr ""
261
 
262
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:634
263
  msgid "Completed. Works."
264
  msgstr ""
265
 
@@ -274,11 +289,11 @@ msgid ""
274
  "solve the problem."
275
  msgstr ""
276
 
277
- #: includes/Helpers.php:994
278
  msgid "continue reading"
279
  msgstr ""
280
 
281
- #: includes/Admin/Troubleshooting.php:601
282
  #, php-format
283
  msgid ""
284
  "Could not load <code>wp-load.php</code> from the locations it normally is. "
@@ -286,7 +301,7 @@ msgid ""
286
  "support</a>."
287
  msgstr ""
288
 
289
- #: includes/Admin/Troubleshooting.php:600
290
  msgid "Custom location of wp-load.php file"
291
  msgstr ""
292
 
@@ -302,7 +317,7 @@ msgstr ""
302
  msgid "Default"
303
  msgstr ""
304
 
305
- #: includes/Admin/Troubleshooting.php:1180
306
  msgid "Defender plugin by WPMU DEV blocks AJAX calls of the live search"
307
  msgstr ""
308
 
@@ -310,7 +325,11 @@ msgstr ""
310
  msgid "Details panel"
311
  msgstr ""
312
 
313
- #: includes/Admin/Troubleshooting.php:268
 
 
 
 
314
  #, php-format
315
  msgid ""
316
  "Due to the way the TranslatePress - Multilingual plugin works, we can only "
@@ -318,12 +337,16 @@ msgid ""
318
  "version</a>."
319
  msgstr ""
320
 
321
- #: includes/Admin/Troubleshooting.php:729
322
  msgid ""
323
  "Edit <code>wp-config.php</code> file, find the <code>DB_HOST</code> constant,"
324
  " and change its value from <code>localhost</code> to <code>127.0.0.1</code>."
325
  msgstr ""
326
 
 
 
 
 
327
  #: includes/Settings.php:679
328
  msgid "Enable Scheduler"
329
  msgstr ""
@@ -338,16 +361,16 @@ msgstr ""
338
  msgid "Error code %s"
339
  msgstr ""
340
 
341
- #: includes/Admin/Troubleshooting.php:720
342
  msgid "Error establishing a database connection"
343
  msgstr ""
344
 
345
- #: includes/Admin/Troubleshooting.php:920
346
  #, php-format
347
  msgid "Error type: <strong>%s</strong>"
348
  msgstr ""
349
 
350
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:639
351
  msgid "Errors"
352
  msgstr ""
353
 
@@ -369,7 +392,7 @@ msgstr ""
369
  msgid "Exclude/include products"
370
  msgstr ""
371
 
372
- #: includes/Admin/Troubleshooting.php:502
373
  msgid "Extensions should looks like the picture below:"
374
  msgstr ""
375
 
@@ -398,7 +421,7 @@ msgstr ""
398
  msgid "FiboSearch Team"
399
  msgstr ""
400
 
401
- #: includes/Admin/Troubleshooting.php:722
402
  msgid ""
403
  "FiboSearch uses a PDO_MYSQL driver in the search engine. A proper database "
404
  "connection is required."
@@ -423,10 +446,14 @@ msgstr ""
423
  msgid "Finalization... Wait a moment. (%s products)"
424
  msgstr ""
425
 
426
- #: includes/Admin/Troubleshooting.php:1307
427
  msgid "Find section <code>Access Control -> whitelist URL</code>"
428
  msgstr ""
429
 
 
 
 
 
430
  #: includes/Integrations/Themes/Flatsome/Flatsome.php:43
431
  msgid "Flatsome Theme"
432
  msgstr ""
@@ -443,7 +470,7 @@ msgstr ""
443
  msgid "Fuzzy search"
444
  msgstr ""
445
 
446
- #: includes/Admin/Troubleshooting.php:348
447
  #, php-format
448
  msgid ""
449
  "Go to <a href=\"%s\" target=\"_blank\">Tools -> Site Health</a> in your "
@@ -459,7 +486,7 @@ msgid ""
459
  "Header -> Search</code> and enable <code>Predictive Search</code>"
460
  msgstr ""
461
 
462
- #: includes/Admin/Troubleshooting.php:1182
463
  #, php-format
464
  msgid ""
465
  "Go to <code>Defender -> Security Tweaks -> <a href=\"%s\" target=\"_blank\">"
@@ -467,14 +494,14 @@ msgid ""
467
  "exceptions: <code>%s</code>"
468
  msgstr ""
469
 
470
- #: includes/Admin/Troubleshooting.php:544
471
  #, php-format
472
  msgid ""
473
  "Go to <code>Security -> Settings -> <a href=\"%s\" target=\"_blank\">System "
474
  "Tweaks</a></code> and uncheck <code>Disable PHP in Plugins</code> option."
475
  msgstr ""
476
 
477
- #: includes/Admin/Troubleshooting.php:451
478
  #, php-format
479
  msgid ""
480
  "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
@@ -482,7 +509,7 @@ msgid ""
482
  "option <code>%s</code>."
483
  msgstr ""
484
 
485
- #: includes/Admin/Troubleshooting.php:501
486
  #, php-format
487
  msgid ""
488
  "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
@@ -490,24 +517,32 @@ msgid ""
490
  "Searching by Text</code> extension and save changes."
491
  msgstr ""
492
 
493
- #: includes/Admin/Troubleshooting.php:762
494
  #, php-format
495
  msgid ""
496
  "Go to the <code>Jetpack settings page -> <a href=\"%s\" target=\"_blank\">"
497
  "Performance tab</a> -> disable the Search module</code>"
498
  msgstr ""
499
 
500
- #: includes/Admin/Troubleshooting.php:687
501
- #: includes/Admin/Troubleshooting.php:844
 
 
502
  #, php-format
503
  msgid "Go to the Indexer tab and click the button <i>%s</i>."
504
  msgstr ""
505
 
506
- #: includes/Admin/Troubleshooting.php:1306
 
 
 
 
 
 
507
  msgid "Go to the settings"
508
  msgstr ""
509
 
510
- #: includes/Admin/Troubleshooting.php:412
511
  msgid "Great! Our plugin works great with this version of WordPress."
512
  msgstr ""
513
 
@@ -525,7 +560,7 @@ msgstr ""
525
  msgid "Hard"
526
  msgstr ""
527
 
528
- #: includes/Admin/Troubleshooting.php:1257
529
  msgid "Here are few samples NGINX config which helps other users:"
530
  msgstr ""
531
 
@@ -570,7 +605,7 @@ msgstr ""
570
  msgid "Icon on mobile, search bar on desktop"
571
  msgstr ""
572
 
573
- #: includes/Admin/Troubleshooting.php:875
574
  #, php-format
575
  msgid ""
576
  "If the following errors are related to your theme or plugins, try to fix "
@@ -591,7 +626,7 @@ msgid ""
591
  "Help your customers to find the right products even <span>10× faster</span>."
592
  msgstr ""
593
 
594
- #: includes/Admin/Troubleshooting.php:921
595
  msgid ""
596
  "If you have an object caching plugin, turn it off or check its settings. "
597
  "Ideally, the transients should not be cached in any way and stored directly "
@@ -604,11 +639,18 @@ msgid ""
604
  "the issues mentioned there"
605
  msgstr ""
606
 
 
 
 
 
 
 
 
607
  #: includes/Integrations/Themes/Impreza/Impreza.php:46
608
  msgid "Impreza Theme"
609
  msgstr ""
610
 
611
- #: includes/Helpers.php:993
612
  msgctxt "in categories fe. in Books > Crime stories"
613
  msgid "in"
614
  msgstr ""
@@ -625,28 +667,32 @@ msgstr ""
625
  msgid "Include"
626
  msgstr ""
627
 
628
- #: includes/Admin/Troubleshooting.php:499
629
  msgid ""
630
  "Incompatible \"Searching by Text\" extension from WOOF - WooCommerce "
631
  "Products Filter plugin is active"
632
  msgstr ""
633
 
634
- #: includes/Admin/Troubleshooting.php:1341
635
  msgid ""
636
  "Incompatible \"Searching by Text\" extension in WOOF - WooCommerce Products "
637
  "Filter"
638
  msgstr ""
639
 
640
- #: includes/Admin/Troubleshooting.php:1333
 
 
 
 
641
  msgid "Incompatible plugins"
642
  msgstr ""
643
 
644
- #: includes/Admin/Troubleshooting.php:840
645
  msgid "Incompatible WPML Multilingual CMS plugin setting"
646
  msgstr ""
647
 
648
- #: includes/Admin/Troubleshooting.php:449
649
- #: includes/Admin/Troubleshooting.php:1337
650
  msgid "Incorrect \"Add to cart\" behaviour in WooCommerce settings"
651
  msgstr ""
652
 
@@ -666,7 +712,7 @@ msgstr ""
666
  msgid "Index build start"
667
  msgstr ""
668
 
669
- #: includes/Admin/Troubleshooting.php:1374
670
  msgid "Index completeness test"
671
  msgstr ""
672
 
@@ -697,7 +743,7 @@ msgstr ""
697
  msgid "Individual tips and support by FiboSearch team"
698
  msgstr ""
699
 
700
- #: includes/Admin/Troubleshooting.php:638
701
  msgid ""
702
  "Install the <a target=\"_blank\" href=\"https://wordpress."
703
  "org/plugins/advanced-cron-manager/\">Advanced Cron Manager</a> plugin to "
@@ -705,7 +751,7 @@ msgid ""
705
  "related to the Indexer:"
706
  msgstr ""
707
 
708
- #: includes/Admin/Troubleshooting.php:415
709
  msgid ""
710
  "Install the latest version of WordPress for our plugin to work as best it "
711
  "can!"
@@ -715,6 +761,13 @@ msgstr ""
715
  msgid "Interval"
716
  msgstr ""
717
 
 
 
 
 
 
 
 
718
  #: partials/admin/indexer-header.php:79
719
  #, php-format
720
  msgid ""
@@ -723,14 +776,14 @@ msgid ""
723
  "request</a>"
724
  msgstr ""
725
 
726
- #: includes/Admin/Troubleshooting.php:357
727
  #, php-format
728
  msgid ""
729
  "Is it still not working? Write a <a target=\"_blank\" href=\"%s\">support "
730
  "request</a>"
731
  msgstr ""
732
 
733
- #: includes/Admin/Troubleshooting.php:351
734
  msgid ""
735
  "Is your website publicly available only for whitelisted IPs? <b>Add your "
736
  "server IP to the whitelist</b>. That’s all. This is a common mistake when "
@@ -739,16 +792,16 @@ msgid ""
739
  "requests to itself."
740
  msgstr ""
741
 
742
- #: includes/Admin/Troubleshooting.php:615
743
- #: includes/Admin/Troubleshooting.php:1369
744
  msgid "Issue with WP-Cron"
745
  msgstr ""
746
 
747
- #: includes/Admin/Troubleshooting.php:542
748
  msgid "iThemes Security plugin blocks AJAX requests"
749
  msgstr ""
750
 
751
- #: includes/Admin/Troubleshooting.php:1384
752
  msgid "Jetpack search module"
753
  msgstr ""
754
 
@@ -770,7 +823,7 @@ msgstr ""
770
  msgid "Logs"
771
  msgstr ""
772
 
773
- #: includes/Admin/Troubleshooting.php:1347
774
  msgid "Loopback request"
775
  msgstr ""
776
 
@@ -797,7 +850,7 @@ msgstr ""
797
  msgid "maximum number of suggestions"
798
  msgstr ""
799
 
800
- #: includes/Admin/Troubleshooting.php:1075
801
  msgid ""
802
  "Maybe your server blocks it by Apache module <code>mod_security</code>. "
803
  "Contact your hosting provider and ask what can block the URL you see above."
@@ -815,7 +868,7 @@ msgstr ""
815
  msgid "Minimum characters"
816
  msgstr ""
817
 
818
- #: includes/Admin/Troubleshooting.php:796
819
  msgid "Missing plugin: WooCommerce Multilingual"
820
  msgstr ""
821
 
@@ -833,6 +886,10 @@ msgstr ""
833
  msgid "More results label"
834
  msgstr ""
835
 
 
 
 
 
836
  #: includes/Admin/SettingsAPI.php:730
837
  msgid "My Account"
838
  msgstr ""
@@ -845,11 +902,11 @@ msgstr ""
845
  msgid "News"
846
  msgstr ""
847
 
848
- #: includes/Admin/Troubleshooting.php:1254
849
  msgid "NGINX configuration may blocks search requests"
850
  msgstr ""
851
 
852
- #: includes/Settings.php:357 includes/Helpers.php:995
853
  msgid "No results"
854
  msgstr ""
855
 
@@ -861,7 +918,7 @@ msgstr ""
861
  msgid "No thanks"
862
  msgstr ""
863
 
864
- #: includes/Admin/Troubleshooting.php:1399
865
  msgid "Non Critical Indexer Errors"
866
  msgstr ""
867
 
@@ -873,7 +930,7 @@ msgstr ""
873
  msgid "Normal"
874
  msgstr ""
875
 
876
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:645
877
  msgid "Not exist"
878
  msgstr ""
879
 
@@ -881,7 +938,11 @@ msgstr ""
881
  msgid "Note: We currently only support the header type: \"Header 10\""
882
  msgstr ""
883
 
884
- #: includes/Admin/Troubleshooting.php:373
 
 
 
 
885
  msgid "One or more required PHP extensions are missing on your server"
886
  msgstr ""
887
 
@@ -889,11 +950,11 @@ msgstr ""
889
  msgid "Overlay on mobile"
890
  msgstr ""
891
 
892
- #: includes/Admin/Troubleshooting.php:1379
893
  msgid "PDO connection test"
894
  msgstr ""
895
 
896
- #: includes/Admin/Troubleshooting.php:1329
897
  msgid "PHP extensions"
898
  msgstr ""
899
 
@@ -917,7 +978,7 @@ msgstr ""
917
  msgid "Pro features"
918
  msgstr ""
919
 
920
- #: includes/Admin/Troubleshooting.php:913
921
  msgid "Problem with WordPress Transients API"
922
  msgstr ""
923
 
@@ -959,7 +1020,7 @@ msgstr ""
959
  msgid "Read more"
960
  msgstr ""
961
 
962
- #: includes/Admin/Troubleshooting.php:356
963
  #, php-format
964
  msgid ""
965
  "Read more about indexer issues on <a target=\"_blank\" href=\"%s\">our "
@@ -971,15 +1032,16 @@ msgstr ""
971
  msgid "Readable"
972
  msgstr ""
973
 
974
- #: includes/Admin/Troubleshooting.php:681
975
- #: includes/Admin/Troubleshooting.php:837
976
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:669
 
 
977
  msgid "Rebuild index"
978
  msgstr ""
979
 
980
  #: includes/Abstracts/ThemeIntegration.php:62
981
  #: includes/Integrations/Themes/TheGem/TheGem.php:92
982
- #: includes/Integrations/Themes/Shopical/Shopical.php:56
983
  #: includes/Integrations/Themes/Enfold/Enfold.php:63
984
  #: includes/Integrations/Themes/Sober/Sober.php:56
985
  #: includes/Integrations/Themes/The7/The7.php:59
@@ -989,7 +1051,6 @@ msgstr ""
989
  #: includes/Integrations/Themes/Storefront/Storefront.php:57
990
  #: includes/Integrations/Themes/Bridge/Bridge.php:56
991
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:56
992
- #: includes/Integrations/Themes/ShopIsle/ShopIsle.php:56
993
  #: includes/Integrations/Themes/Avada/Avada.php:59
994
  #: includes/Integrations/Themes/Savoy/Savoy.php:56
995
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:56
@@ -1000,7 +1061,6 @@ msgid "Replace"
1000
  msgstr ""
1001
 
1002
  #: includes/Abstracts/ThemeIntegration.php:42
1003
- #: includes/Integrations/Themes/Shopical/Shopical.php:36
1004
  #: includes/Integrations/Themes/Enfold/Enfold.php:43
1005
  #: includes/Integrations/Themes/Sober/Sober.php:36
1006
  #: includes/Integrations/Themes/The7/The7.php:39
@@ -1008,7 +1068,6 @@ msgstr ""
1008
  #: includes/Integrations/Themes/DFDRonneby/DFDRonneby.php:36
1009
  #: includes/Integrations/Themes/Bridge/Bridge.php:36
1010
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:36
1011
- #: includes/Integrations/Themes/ShopIsle/ShopIsle.php:36
1012
  #: includes/Integrations/Themes/Avada/Avada.php:39
1013
  #: includes/Integrations/Themes/Savoy/Savoy.php:36
1014
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:36
@@ -1024,7 +1083,6 @@ msgid "Replace a search bar in TheGem "
1024
  msgstr ""
1025
 
1026
  #: includes/Abstracts/ThemeIntegration.php:63
1027
- #: includes/Integrations/Themes/Shopical/Shopical.php:57
1028
  #: includes/Integrations/Themes/Enfold/Enfold.php:64
1029
  #: includes/Integrations/Themes/Sober/Sober.php:57
1030
  #: includes/Integrations/Themes/The7/The7.php:60
@@ -1034,7 +1092,6 @@ msgstr ""
1034
  #: includes/Integrations/Themes/Storefront/Storefront.php:58
1035
  #: includes/Integrations/Themes/Bridge/Bridge.php:57
1036
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:57
1037
- #: includes/Integrations/Themes/ShopIsle/ShopIsle.php:57
1038
  #: includes/Integrations/Themes/Avada/Avada.php:60
1039
  #: includes/Integrations/Themes/Savoy/Savoy.php:57
1040
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:57
@@ -1061,13 +1118,13 @@ msgstr ""
1061
  msgid "Replace the TheGem default search"
1062
  msgstr ""
1063
 
1064
- #: includes/Admin/Troubleshooting.php:383
1065
- #: includes/Admin/Troubleshooting.php:386
1066
  #, php-format
1067
  msgid "Required PHP extension: %s"
1068
  msgstr ""
1069
 
1070
- #: includes/Admin/Troubleshooting.php:1147
1071
  msgid "Response body"
1072
  msgstr ""
1073
 
@@ -1144,7 +1201,7 @@ msgstr ""
1144
  msgid "Search for posts and pages"
1145
  msgstr ""
1146
 
1147
- #: includes/Settings.php:224 includes/Helpers.php:998
1148
  msgid "Search for products..."
1149
  msgstr ""
1150
 
@@ -1245,7 +1302,8 @@ msgstr ""
1245
  msgid "See a comparison of all free and premium features!"
1246
  msgstr ""
1247
 
1248
- #: includes/Settings.php:406 includes/Helpers.php:996 includes/Helpers.php:997
 
1249
  msgid "See all products..."
1250
  msgstr ""
1251
 
@@ -1257,12 +1315,12 @@ msgstr ""
1257
  msgid "select the custom fields you want to add to the search scope"
1258
  msgstr ""
1259
 
1260
- #: includes/Admin/Troubleshooting.php:1510
1261
  msgid "Server environment"
1262
  msgstr ""
1263
 
1264
- #: includes/Admin/Troubleshooting.php:1068
1265
- #: includes/Admin/Troubleshooting.php:1146
1266
  #, php-format
1267
  msgid ""
1268
  "Server response with message <code>%s</code> and status code <code>%s</code>."
@@ -1347,31 +1405,33 @@ msgstr ""
1347
  msgid "Soft"
1348
  msgstr ""
1349
 
1350
- #: includes/Helpers.php:991
1351
  msgid "Sold by:"
1352
  msgstr ""
1353
 
1354
- #: includes/Admin/Troubleshooting.php:450
1355
- #: includes/Admin/Troubleshooting.php:500
1356
- #: includes/Admin/Troubleshooting.php:543
1357
- #: includes/Admin/Troubleshooting.php:637
1358
- #: includes/Admin/Troubleshooting.php:728
1359
- #: includes/Admin/Troubleshooting.php:842
1360
- #: includes/Admin/Troubleshooting.php:1181
1361
- #: includes/Admin/Troubleshooting.php:1228
1362
- #: includes/Admin/Troubleshooting.php:1304
 
 
1363
  msgid "Solution"
1364
  msgstr ""
1365
 
1366
- #: includes/Admin/Troubleshooting.php:1073
1367
  msgid "Solutions"
1368
  msgstr ""
1369
 
1370
- #: includes/Admin/Troubleshooting.php:344
1371
  msgid "Solutions:"
1372
  msgstr ""
1373
 
1374
- #: includes/Admin/Troubleshooting.php:1255
1375
  #, php-format
1376
  msgid ""
1377
  "Some NGINX configuration may block executing PHP files included directly in "
@@ -1401,7 +1461,7 @@ msgstr ""
1401
  msgid "Status"
1402
  msgstr ""
1403
 
1404
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:666
1405
  msgid "Stop process"
1406
  msgstr ""
1407
 
@@ -1413,7 +1473,7 @@ msgstr ""
1413
  msgid "Submit label"
1414
  msgstr ""
1415
 
1416
- #: includes/Admin/Troubleshooting.php:1303
1417
  msgid "Sucuri Security firewall may block AJAX calls of the live search"
1418
  msgstr ""
1419
 
@@ -1450,7 +1510,7 @@ msgstr ""
1450
  msgid "Text color"
1451
  msgstr ""
1452
 
1453
- #: includes/Admin/Troubleshooting.php:1227
1454
  msgid "The .htaccess file(s) may blocking AJAX calls of the live search"
1455
  msgstr ""
1456
 
@@ -1472,14 +1532,18 @@ msgstr ""
1472
  msgid "The following error caused the index to be canceled:"
1473
  msgstr ""
1474
 
1475
- #: includes/Admin/Troubleshooting.php:339
 
 
 
 
1476
  msgid ""
1477
  "The Indexer uses the WordPress function <code>wp_remote_post()</code> to "
1478
  "build the index in background. Sometimes the server can block this kind of "
1479
  "request and responses with HTTP 401 Unauthorized or 403 Forbidden errors."
1480
  msgstr ""
1481
 
1482
- #: includes/Admin/Troubleshooting.php:761
1483
  #, php-format
1484
  msgid "The Jetpack Search module is incompatible with the %s plugin."
1485
  msgstr ""
@@ -1495,37 +1559,37 @@ msgstr ""
1495
  msgid "the next index rebuild: %s"
1496
  msgstr ""
1497
 
1498
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:638
1499
  msgid "The search index could not be built."
1500
  msgstr ""
1501
 
1502
  #: partials/admin/indexer-header-demo.php:11
1503
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:644
1504
  msgid "The search index does not exist yet. Build it now."
1505
  msgstr ""
1506
 
1507
- #: includes/Admin/Troubleshooting.php:685
1508
  msgid "The search index structure isn't completely"
1509
  msgstr ""
1510
 
1511
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:632
1512
  msgid ""
1513
  "The search index was built successfully, but some non-critical errors "
1514
  "occurred."
1515
  msgstr ""
1516
 
1517
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:630
1518
  msgid "The search index was built successfully."
1519
  msgstr ""
1520
 
1521
- #: includes/Admin/Troubleshooting.php:874
1522
  msgid ""
1523
  "The search index was built, but some significant errors occurred during this "
1524
  "process. There is a risk that some products may not be available during the "
1525
  "search."
1526
  msgstr ""
1527
 
1528
- #: includes/Admin/Troubleshooting.php:1070
1529
  msgid ""
1530
  "The search uses a dedicated URL to makes queries. In your case, this URL is "
1531
  "blocked for some reason. Let visit it directly in your browser:"
@@ -1535,7 +1599,7 @@ msgstr ""
1535
  msgid "The search will open in overlay on mobile"
1536
  msgstr ""
1537
 
1538
- #: includes/Admin/Troubleshooting.php:1067
1539
  msgid ""
1540
  "The server returns an incorrect response for the search engine's AJAX calls"
1541
  msgstr ""
@@ -1547,11 +1611,11 @@ msgid ""
1547
  "adding synonyms."
1548
  msgstr ""
1549
 
1550
- #: includes/Admin/Troubleshooting.php:918
1551
  msgid "the transient value was cached and existed too long"
1552
  msgstr ""
1553
 
1554
- #: includes/Admin/Troubleshooting.php:916
1555
  msgid "the transient value was not returned"
1556
  msgstr ""
1557
 
@@ -1563,27 +1627,38 @@ msgstr ""
1563
  msgid "There are four easy ways to display the search bar in your theme"
1564
  msgstr ""
1565
 
1566
- #: includes/Admin/Troubleshooting.php:1074
 
 
 
 
 
 
 
 
 
 
 
1567
  msgid ""
1568
  "Think about what can block the execution of PHP scripts inside <code>wp-"
1569
  "content</code> or <code>wp-content/plugins</code> directory. Maybe you use "
1570
  "some security plugins or you have custom code that may block it."
1571
  msgstr ""
1572
 
1573
- #: includes/Admin/Troubleshooting.php:338
1574
  msgid ""
1575
  "This issue may affect the building of the search index. Indexer may stuck at "
1576
  "0%."
1577
  msgstr ""
1578
 
1579
- #: includes/Admin/Troubleshooting.php:334
1580
  msgid ""
1581
  "This issue may affect the search results page and e.g. display all products "
1582
  "every time"
1583
  msgstr ""
1584
 
1585
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:612
1586
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:618
1587
  msgid "This process will continue in the background. You can leave this page!"
1588
  msgstr ""
1589
 
@@ -1610,20 +1685,34 @@ msgstr ""
1610
  msgid "To set 100% width leave blank"
1611
  msgstr ""
1612
 
1613
- #: includes/Admin/Troubleshooting.php:1414
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1614
  msgid "Transients test"
1615
  msgstr ""
1616
 
1617
- #: includes/Admin/Troubleshooting.php:1356
1618
  msgid "TranslatePress"
1619
  msgstr ""
1620
 
1621
- #: includes/Admin/Troubleshooting.php:49 includes/Admin/Troubleshooting.php:68
1622
  #: partials/admin/indexer-header.php:38
1623
  msgid "Troubleshooting"
1624
  msgstr ""
1625
 
1626
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:672
1627
  msgid "Try to build the index again."
1628
  msgstr ""
1629
 
@@ -1661,27 +1750,27 @@ msgstr ""
1661
  msgid "Using PHP - %s"
1662
  msgstr ""
1663
 
1664
- #: includes/Admin/Troubleshooting.php:1409
1665
  msgid "Valid search results test"
1666
  msgstr ""
1667
 
1668
- #: includes/Helpers.php:981
1669
  msgid "Vendor"
1670
  msgstr ""
1671
 
1672
- #: includes/Helpers.php:988
1673
  msgid "Vendors"
1674
  msgstr ""
1675
 
1676
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:617
1677
  msgid "Wait... Indexing in progress"
1678
  msgstr ""
1679
 
1680
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:611
1681
  msgid "Wait... Preparing indexing in progress"
1682
  msgstr ""
1683
 
1684
- #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:623
1685
  msgid "Wait... The index build process is canceling"
1686
  msgstr ""
1687
 
@@ -1689,7 +1778,7 @@ msgstr ""
1689
  msgid "Warning!"
1690
  msgstr ""
1691
 
1692
- #: includes/Admin/Troubleshooting.php:1229
1693
  #, php-format
1694
  msgid ""
1695
  "We recommend contact your hosting provider and ask to check <code>%s</code> "
@@ -1705,11 +1794,19 @@ msgid ""
1705
  "We support this theme and you can easily replace all default search bars."
1706
  msgstr ""
1707
 
 
 
 
 
 
 
 
 
1708
  #: includes/Settings.php:693
1709
  msgid "weekly"
1710
  msgstr ""
1711
 
1712
- #: includes/Admin/Troubleshooting.php:1069
1713
  msgid "What's wrong?"
1714
  msgstr ""
1715
 
@@ -1721,56 +1818,76 @@ msgstr ""
1721
  msgid "with simple tricks"
1722
  msgstr ""
1723
 
1724
- #: includes/Admin/Troubleshooting.php:1389
1725
  msgid "WooCommerce Multilingual"
1726
  msgstr ""
1727
 
1728
- #: includes/Admin/Troubleshooting.php:801
1729
  msgid "WooCommerce Multilingual plugin is enabled but not effective"
1730
  msgstr ""
1731
 
1732
- #: includes/Admin/Troubleshooting.php:1364
1733
  msgid "WordPress loading problem"
1734
  msgstr ""
1735
 
1736
- #: includes/Admin/Troubleshooting.php:403
1737
- #: includes/Admin/Troubleshooting.php:1325
1738
  msgid "WordPress version"
1739
  msgstr ""
1740
 
1741
- #: includes/Admin/Troubleshooting.php:1394
1742
  msgid "WPML with disabled translations for products"
1743
  msgstr ""
1744
 
1745
- #: includes/Admin/Troubleshooting.php:216
 
 
 
 
 
 
 
 
1746
  msgid "You are using one or more incompatible plugins"
1747
  msgstr ""
1748
 
1749
- #: includes/Admin/Troubleshooting.php:257
 
 
 
 
 
 
 
1750
  msgid "You are using TranslatePress with Free version of our plugin"
1751
  msgstr ""
1752
 
1753
- #: includes/Admin/Troubleshooting.php:841
1754
  msgid ""
1755
  "You are using WPML Multilingual CMS, but you have product translations "
1756
  "disabled, so for the search engine to function properly, you must disable "
1757
  "its multi-language support feature."
1758
  msgstr ""
1759
 
1760
- #: includes/Admin/Troubleshooting.php:640
 
 
 
 
 
1761
  msgid ""
1762
  "You can run these actions manually via Advanced Cron Manager. Then the "
1763
  "Indexer should run. If the index stuck again, run these actions manually one "
1764
  "more time until the finished index."
1765
  msgstr ""
1766
 
1767
- #: includes/Admin/Troubleshooting.php:1305
1768
  msgid ""
1769
  "You need to log in to your <a href=\"https://login.sucuri.net\" "
1770
  "target=\"_blank\">Sucuri panel</a>."
1771
  msgstr ""
1772
 
1773
- #: includes/Admin/Troubleshooting.php:1072
1774
  msgid ""
1775
  "You should see <code>pong</code> word as a response. Probably you see "
1776
  "something else."
@@ -1781,16 +1898,16 @@ msgstr ""
1781
  msgid "You use %s plugin version %s"
1782
  msgstr ""
1783
 
1784
- #: includes/Admin/Troubleshooting.php:236
1785
- #: includes/Admin/Troubleshooting.php:238
1786
  #, php-format
1787
  msgid ""
1788
  "You use the %s plugin, which may cause errors in the search results returned "
1789
  "by our plugin."
1790
  msgstr ""
1791
 
1792
- #: includes/Admin/Troubleshooting.php:227
1793
- #: includes/Admin/Troubleshooting.php:231
1794
  #, php-format
1795
  msgid "You use the %s plugin. The %s does not support this plugin."
1796
  msgstr ""
@@ -1800,7 +1917,7 @@ msgstr ""
1800
  msgid "You use the <b>%s</b> theme%s. Fantastic!"
1801
  msgstr ""
1802
 
1803
- #: includes/Admin/Troubleshooting.php:802
1804
  #, php-format
1805
  msgid ""
1806
  "You use the WPML Multilingual CMS and WooCommerce Multilingual plugins, but "
@@ -1808,7 +1925,7 @@ msgid ""
1808
  "target=\"_blank\">WooCommerce Multilingual status</a>."
1809
  msgstr ""
1810
 
1811
- #: includes/Admin/Troubleshooting.php:797
1812
  #, php-format
1813
  msgid ""
1814
  "You use the WPML Multilingual CMS plugin and to correctly search for "
@@ -1816,18 +1933,18 @@ msgid ""
1816
  "target=\"_blank\">WooCommerce Multilingual</a> plugin."
1817
  msgstr ""
1818
 
1819
- #: includes/Admin/Troubleshooting.php:346
1820
  msgid "Your server can't send an HTTP request to itself"
1821
  msgstr ""
1822
 
1823
- #: includes/Admin/Troubleshooting.php:452
1824
  msgid "Your settings should looks like the picture below:"
1825
  msgstr ""
1826
 
1827
- #: includes/Admin/Troubleshooting.php:281
1828
  msgid "Your site can perform loopback requests"
1829
  msgstr ""
1830
 
1831
- #: includes/Admin/Troubleshooting.php:330
1832
  msgid "Your site could not complete a loopback request"
1833
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2021-06-17 11:42+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:1726
18
+ msgid "\"Out of stock\" relationships"
19
+ msgstr ""
20
+
21
  #: includes/Engines/TNTSearchMySQL/Indexer/Logger.php:36
22
  #, php-format
23
  msgid "%1$s was called with an invalid level \"%2$s\"."
24
  msgstr ""
25
 
26
+ #: ajax-search-for-woocommerce.php:240
27
  #, php-format
28
  msgid "%s is enabled but not effective. It requires %s in order to work."
29
  msgstr ""
30
 
31
  #: includes/Abstracts/ThemeIntegration.php:49
 
32
  #: includes/Integrations/Themes/Enfold/Enfold.php:50
33
  #: includes/Integrations/Themes/Sober/Sober.php:43
34
  #: includes/Integrations/Themes/The7/The7.php:46
36
  #: includes/Integrations/Themes/DFDRonneby/DFDRonneby.php:43
37
  #: includes/Integrations/Themes/Bridge/Bridge.php:43
38
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:43
 
39
  #: includes/Integrations/Themes/Avada/Avada.php:46
40
  #: includes/Integrations/Themes/Savoy/Savoy.php:43
41
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:43
54
  "/><br />You can do it by clicking %s or use an external plugin such as %s."
55
  msgstr ""
56
 
57
+ #: ajax-search-for-woocommerce.php:218
58
  #, php-format
59
  msgid ""
60
  "%s: You need PHP version at least 7.0 to run this plugin. You are currently "
79
  "products "
80
  msgstr ""
81
 
82
+ #: includes/Admin/Troubleshooting.php:791
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:1443
89
  msgid "A search engine's AJAX call did not return valid results"
90
  msgstr ""
91
 
92
+ #: includes/Admin/Troubleshooting.php:649
93
+ #, php-format
94
+ msgid ""
95
+ "Add <strong>Archive Products</strong> widget to the template <strong>"
96
+ "%s</strong> or create a new template dedicated to the WooCommerce search "
97
+ "results page. Learn how to do it in <a href=\"%s\" target=\"_blank\">our "
98
+ "documentation</a>."
99
+ msgstr ""
100
+
101
+ #: includes/Admin/Troubleshooting.php:993
102
  #, php-format
103
  msgid ""
104
  "Add a constant <code>%s</code> to your <code>wp-config.phps</code> file."
121
  msgid "Add new rule"
122
  msgstr ""
123
 
124
+ #: includes/Admin/Troubleshooting.php:1606
125
  msgid "Add the following URL to the white list:"
126
  msgstr ""
127
 
128
+ #: includes/Admin/Troubleshooting.php:1556
129
  msgid ""
130
  "Adding extra rules to <code>/usr/local/nginx/conf/wpsecure_${vhostname}."
131
  "conf</code>"
151
  #: includes/Abstracts/ThemeIntegration.php:70
152
  #: includes/Integrations/Themes/TheGem/TheGem.php:100
153
  #: includes/Integrations/Themes/TheGem/TheGem.php:108
 
154
  #: includes/Integrations/Themes/Enfold/Enfold.php:71
155
  #: includes/Integrations/Themes/Sober/Sober.php:64
156
  #: includes/Integrations/Themes/The7/The7.php:67
160
  #: includes/Integrations/Themes/Storefront/Storefront.php:65
161
  #: includes/Integrations/Themes/Bridge/Bridge.php:64
162
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:64
 
163
  #: includes/Integrations/Themes/Impreza/Impreza.php:60
164
  #: includes/Integrations/Themes/Avada/Avada.php:67
165
  #: includes/Integrations/Themes/Savoy/Savoy.php:64
170
  msgid "Alternative ways to embed a search bar"
171
  msgstr ""
172
 
173
+ #: includes/Admin/Troubleshooting.php:871
174
  #, php-format
175
  msgid ""
176
  "An error occurred while trying to connect to the database using a PDO_MYSQL "
222
  msgid "Basic"
223
  msgstr ""
224
 
225
+ #: includes/Admin/Troubleshooting.php:1716
226
  msgid "Blocked search endpoint test"
227
  msgstr ""
228
 
230
  msgid "Border color"
231
  msgstr ""
232
 
233
+ #: includes/Helpers.php:982
234
  msgid "Brand"
235
  msgstr ""
236
 
237
+ #: includes/Helpers.php:989
238
  msgid "Brands"
239
  msgstr ""
240
 
243
  msgstr ""
244
 
245
  #: partials/admin/indexer-header-demo.php:15
246
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:678
247
  msgid "Build index"
248
  msgstr ""
249
 
250
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:627
251
  msgid "Canceling..."
252
  msgstr ""
253
 
255
  msgid "Cancellation..."
256
  msgstr ""
257
 
258
+ #: includes/Admin/Troubleshooting.php:1078
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>."
262
+ msgstr ""
263
+
264
  #: partials/admin/troubleshooting.php:22
265
  msgid "Check status again"
266
  msgstr ""
274
  msgid "Colors"
275
  msgstr ""
276
 
277
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:637
278
  msgid "Completed. Works."
279
  msgstr ""
280
 
289
  "solve the problem."
290
  msgstr ""
291
 
292
+ #: includes/Helpers.php:998
293
  msgid "continue reading"
294
  msgstr ""
295
 
296
+ #: includes/Admin/Troubleshooting.php:751
297
  #, php-format
298
  msgid ""
299
  "Could not load <code>wp-load.php</code> from the locations it normally is. "
301
  "support</a>."
302
  msgstr ""
303
 
304
+ #: includes/Admin/Troubleshooting.php:750
305
  msgid "Custom location of wp-load.php file"
306
  msgstr ""
307
 
317
  msgid "Default"
318
  msgstr ""
319
 
320
+ #: includes/Admin/Troubleshooting.php:1478
321
  msgid "Defender plugin by WPMU DEV blocks AJAX calls of the live search"
322
  msgstr ""
323
 
325
  msgid "Details panel"
326
  msgstr ""
327
 
328
+ #: includes/Admin/Troubleshooting.php:642
329
+ msgid "Dismiss"
330
+ msgstr ""
331
+
332
+ #: includes/Admin/Troubleshooting.php:348
333
  #, php-format
334
  msgid ""
335
  "Due to the way the TranslatePress - Multilingual plugin works, we can only "
337
  "version</a>."
338
  msgstr ""
339
 
340
+ #: includes/Admin/Troubleshooting.php:879
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:1643
347
+ msgid "Elementor search results template"
348
+ msgstr ""
349
+
350
  #: includes/Settings.php:679
351
  msgid "Enable Scheduler"
352
  msgstr ""
361
  msgid "Error code %s"
362
  msgstr ""
363
 
364
+ #: includes/Admin/Troubleshooting.php:870
365
  msgid "Error establishing a database connection"
366
  msgstr ""
367
 
368
+ #: includes/Admin/Troubleshooting.php:1218
369
  #, php-format
370
  msgid "Error type: <strong>%s</strong>"
371
  msgstr ""
372
 
373
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:642
374
  msgid "Errors"
375
  msgstr ""
376
 
392
  msgid "Exclude/include products"
393
  msgstr ""
394
 
395
+ #: includes/Admin/Troubleshooting.php:582
396
  msgid "Extensions should looks like the picture below:"
397
  msgstr ""
398
 
421
  msgid "FiboSearch Team"
422
  msgstr ""
423
 
424
+ #: includes/Admin/Troubleshooting.php:872
425
  msgid ""
426
  "FiboSearch uses a PDO_MYSQL driver in the search engine. A proper database "
427
  "connection is required."
446
  msgid "Finalization... Wait a moment. (%s products)"
447
  msgstr ""
448
 
449
+ #: includes/Admin/Troubleshooting.php:1605
450
  msgid "Find section <code>Access Control -> whitelist URL</code>"
451
  msgstr ""
452
 
453
+ #: includes/Admin/Troubleshooting.php:1168
454
+ msgid "Fix “Out of stock“ relationships"
455
+ msgstr ""
456
+
457
  #: includes/Integrations/Themes/Flatsome/Flatsome.php:43
458
  msgid "Flatsome Theme"
459
  msgstr ""
470
  msgid "Fuzzy search"
471
  msgstr ""
472
 
473
+ #: includes/Admin/Troubleshooting.php:428
474
  #, php-format
475
  msgid ""
476
  "Go to <a href=\"%s\" target=\"_blank\">Tools -> Site Health</a> in your "
486
  "Header -> Search</code> and enable <code>Predictive Search</code>"
487
  msgstr ""
488
 
489
+ #: includes/Admin/Troubleshooting.php:1480
490
  #, php-format
491
  msgid ""
492
  "Go to <code>Defender -> Security Tweaks -> <a href=\"%s\" target=\"_blank\">"
494
  "exceptions: <code>%s</code>"
495
  msgstr ""
496
 
497
+ #: includes/Admin/Troubleshooting.php:694
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:531
505
  #, php-format
506
  msgid ""
507
  "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
509
  "option <code>%s</code>."
510
  msgstr ""
511
 
512
+ #: includes/Admin/Troubleshooting.php:581
513
  #, php-format
514
  msgid ""
515
  "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">"
517
  "Searching by Text</code> extension and save changes."
518
  msgstr ""
519
 
520
+ #: includes/Admin/Troubleshooting.php:912
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:837
528
+ #: includes/Admin/Troubleshooting.php:994
529
+ #: includes/Admin/Troubleshooting.php:1079
530
+ #: includes/Admin/Troubleshooting.php:1112
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:1077
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:1604
542
  msgid "Go to the settings"
543
  msgstr ""
544
 
545
+ #: includes/Admin/Troubleshooting.php:492
546
  msgid "Great! Our plugin works great with this version of WordPress."
547
  msgstr ""
548
 
560
  msgid "Hard"
561
  msgstr ""
562
 
563
+ #: includes/Admin/Troubleshooting.php:1555
564
  msgid "Here are few samples NGINX config which helps other users:"
565
  msgstr ""
566
 
605
  msgid "Icon on mobile, search bar on desktop"
606
  msgstr ""
607
 
608
+ #: includes/Admin/Troubleshooting.php:1025
609
  #, php-format
610
  msgid ""
611
  "If the following errors are related to your theme or plugins, try to fix "
626
  "Help your customers to find the right products even <span>10× faster</span>."
627
  msgstr ""
628
 
629
+ #: includes/Admin/Troubleshooting.php:1219
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 "
639
  "the issues mentioned there"
640
  msgstr ""
641
 
642
+ #: includes/Admin/Troubleshooting.php:651
643
+ #, php-format
644
+ msgid ""
645
+ "If you think the search results page is displaying your products correctly, "
646
+ "you can ignore and dismiss this message: %s"
647
+ msgstr ""
648
+
649
  #: includes/Integrations/Themes/Impreza/Impreza.php:46
650
  msgid "Impreza Theme"
651
  msgstr ""
652
 
653
+ #: includes/Helpers.php:997
654
  msgctxt "in categories fe. in Books > Crime stories"
655
  msgid "in"
656
  msgstr ""
667
  msgid "Include"
668
  msgstr ""
669
 
670
+ #: includes/Admin/Troubleshooting.php:579
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:1639
677
  msgid ""
678
  "Incompatible \"Searching by Text\" extension in WOOF - WooCommerce Products "
679
  "Filter"
680
  msgstr ""
681
 
682
+ #: includes/Admin/Troubleshooting.php:1073
683
+ msgid "Incompatible multilingual plugin setting"
684
+ msgstr ""
685
+
686
+ #: includes/Admin/Troubleshooting.php:1631
687
  msgid "Incompatible plugins"
688
  msgstr ""
689
 
690
+ #: includes/Admin/Troubleshooting.php:990
691
  msgid "Incompatible WPML Multilingual CMS plugin setting"
692
  msgstr ""
693
 
694
+ #: includes/Admin/Troubleshooting.php:529
695
+ #: includes/Admin/Troubleshooting.php:1635
696
  msgid "Incorrect \"Add to cart\" behaviour in WooCommerce settings"
697
  msgstr ""
698
 
712
  msgid "Index build start"
713
  msgstr ""
714
 
715
+ #: includes/Admin/Troubleshooting.php:1676
716
  msgid "Index completeness test"
717
  msgstr ""
718
 
743
  msgid "Individual tips and support by FiboSearch team"
744
  msgstr ""
745
 
746
+ #: includes/Admin/Troubleshooting.php:788
747
  msgid ""
748
  "Install the <a target=\"_blank\" href=\"https://wordpress."
749
  "org/plugins/advanced-cron-manager/\">Advanced Cron Manager</a> plugin to "
751
  "related to the Indexer:"
752
  msgstr ""
753
 
754
+ #: includes/Admin/Troubleshooting.php:495
755
  msgid ""
756
  "Install the latest version of WordPress for our plugin to work as best it "
757
  "can!"
761
  msgid "Interval"
762
  msgstr ""
763
 
764
+ #: includes/Admin/Troubleshooting.php:1075
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:79
772
  #, php-format
773
  msgid ""
776
  "request</a>"
777
  msgstr ""
778
 
779
+ #: includes/Admin/Troubleshooting.php:437
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:431
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
  "requests to itself."
793
  msgstr ""
794
 
795
+ #: includes/Admin/Troubleshooting.php:765
796
+ #: includes/Admin/Troubleshooting.php:1671
797
  msgid "Issue with WP-Cron"
798
  msgstr ""
799
 
800
+ #: includes/Admin/Troubleshooting.php:692
801
  msgid "iThemes Security plugin blocks AJAX requests"
802
  msgstr ""
803
 
804
+ #: includes/Admin/Troubleshooting.php:1686
805
  msgid "Jetpack search module"
806
  msgstr ""
807
 
823
  msgid "Logs"
824
  msgstr ""
825
 
826
+ #: includes/Admin/Troubleshooting.php:1649
827
  msgid "Loopback request"
828
  msgstr ""
829
 
850
  msgid "maximum number of suggestions"
851
  msgstr ""
852
 
853
+ #: includes/Admin/Troubleshooting.php:1373
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
  msgid "Minimum characters"
869
  msgstr ""
870
 
871
+ #: includes/Admin/Troubleshooting.php:946
872
  msgid "Missing plugin: WooCommerce Multilingual"
873
  msgstr ""
874
 
886
  msgid "More results label"
887
  msgstr ""
888
 
889
+ #: includes/Admin/Troubleshooting.php:1706
890
+ msgid "Multilingual slugs"
891
+ msgstr ""
892
+
893
  #: includes/Admin/SettingsAPI.php:730
894
  msgid "My Account"
895
  msgstr ""
902
  msgid "News"
903
  msgstr ""
904
 
905
+ #: includes/Admin/Troubleshooting.php:1552
906
  msgid "NGINX configuration may blocks search requests"
907
  msgstr ""
908
 
909
+ #: includes/Settings.php:357 includes/Helpers.php:999
910
  msgid "No results"
911
  msgstr ""
912
 
918
  msgid "No thanks"
919
  msgstr ""
920
 
921
+ #: includes/Admin/Troubleshooting.php:1701
922
  msgid "Non Critical Indexer Errors"
923
  msgstr ""
924
 
930
  msgid "Normal"
931
  msgstr ""
932
 
933
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:648
934
  msgid "Not exist"
935
  msgstr ""
936
 
938
  msgid "Note: We currently only support the header type: \"Header 10\""
939
  msgstr ""
940
 
941
+ #: includes/Admin/Troubleshooting.php:1711
942
+ msgid "Old index"
943
+ msgstr ""
944
+
945
+ #: includes/Admin/Troubleshooting.php:453
946
  msgid "One or more required PHP extensions are missing on your server"
947
  msgstr ""
948
 
950
  msgid "Overlay on mobile"
951
  msgstr ""
952
 
953
+ #: includes/Admin/Troubleshooting.php:1681
954
  msgid "PDO connection test"
955
  msgstr ""
956
 
957
+ #: includes/Admin/Troubleshooting.php:1627
958
  msgid "PHP extensions"
959
  msgstr ""
960
 
978
  msgid "Pro features"
979
  msgstr ""
980
 
981
+ #: includes/Admin/Troubleshooting.php:1211
982
  msgid "Problem with WordPress Transients API"
983
  msgstr ""
984
 
1020
  msgid "Read more"
1021
  msgstr ""
1022
 
1023
+ #: includes/Admin/Troubleshooting.php:436
1024
  #, php-format
1025
  msgid ""
1026
  "Read more about indexer issues on <a target=\"_blank\" href=\"%s\">our "
1032
  msgid "Readable"
1033
  msgstr ""
1034
 
1035
+ #: includes/Admin/Troubleshooting.php:831
1036
+ #: includes/Admin/Troubleshooting.php:987
1037
+ #: includes/Admin/Troubleshooting.php:1070
1038
+ #: includes/Admin/Troubleshooting.php:1108
1039
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:672
1040
  msgid "Rebuild index"
1041
  msgstr ""
1042
 
1043
  #: includes/Abstracts/ThemeIntegration.php:62
1044
  #: includes/Integrations/Themes/TheGem/TheGem.php:92
 
1045
  #: includes/Integrations/Themes/Enfold/Enfold.php:63
1046
  #: includes/Integrations/Themes/Sober/Sober.php:56
1047
  #: includes/Integrations/Themes/The7/The7.php:59
1051
  #: includes/Integrations/Themes/Storefront/Storefront.php:57
1052
  #: includes/Integrations/Themes/Bridge/Bridge.php:56
1053
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:56
 
1054
  #: includes/Integrations/Themes/Avada/Avada.php:59
1055
  #: includes/Integrations/Themes/Savoy/Savoy.php:56
1056
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:56
1061
  msgstr ""
1062
 
1063
  #: includes/Abstracts/ThemeIntegration.php:42
 
1064
  #: includes/Integrations/Themes/Enfold/Enfold.php:43
1065
  #: includes/Integrations/Themes/Sober/Sober.php:36
1066
  #: includes/Integrations/Themes/The7/The7.php:39
1068
  #: includes/Integrations/Themes/DFDRonneby/DFDRonneby.php:36
1069
  #: includes/Integrations/Themes/Bridge/Bridge.php:36
1070
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:36
 
1071
  #: includes/Integrations/Themes/Avada/Avada.php:39
1072
  #: includes/Integrations/Themes/Savoy/Savoy.php:36
1073
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:36
1083
  msgstr ""
1084
 
1085
  #: includes/Abstracts/ThemeIntegration.php:63
 
1086
  #: includes/Integrations/Themes/Enfold/Enfold.php:64
1087
  #: includes/Integrations/Themes/Sober/Sober.php:57
1088
  #: includes/Integrations/Themes/The7/The7.php:60
1092
  #: includes/Integrations/Themes/Storefront/Storefront.php:58
1093
  #: includes/Integrations/Themes/Bridge/Bridge.php:57
1094
  #: includes/Integrations/Themes/BlockShop/BlockShop.php:57
 
1095
  #: includes/Integrations/Themes/Avada/Avada.php:60
1096
  #: includes/Integrations/Themes/Savoy/Savoy.php:57
1097
  #: includes/Integrations/Themes/Ekommart/Ekommart.php:57
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:1445
1128
  msgid "Response body"
1129
  msgstr ""
1130
 
1201
  msgid "Search for posts and pages"
1202
  msgstr ""
1203
 
1204
+ #: includes/Settings.php:224 includes/Helpers.php:1002
1205
  msgid "Search for products..."
1206
  msgstr ""
1207
 
1302
  msgid "See a comparison of all free and premium features!"
1303
  msgstr ""
1304
 
1305
+ #: includes/Settings.php:406 includes/Helpers.php:1000
1306
+ #: includes/Helpers.php:1001
1307
  msgid "See all products..."
1308
  msgstr ""
1309
 
1315
  msgid "select the custom fields you want to add to the search scope"
1316
  msgstr ""
1317
 
1318
+ #: includes/Admin/Troubleshooting.php:1859
1319
  msgid "Server environment"
1320
  msgstr ""
1321
 
1322
+ #: includes/Admin/Troubleshooting.php:1366
1323
+ #: includes/Admin/Troubleshooting.php:1444
1324
  #, php-format
1325
  msgid ""
1326
  "Server response with message <code>%s</code> and status code <code>%s</code>."
1405
  msgid "Soft"
1406
  msgstr ""
1407
 
1408
+ #: includes/Helpers.php:995
1409
  msgid "Sold by:"
1410
  msgstr ""
1411
 
1412
+ #: includes/Admin/Troubleshooting.php:530
1413
+ #: includes/Admin/Troubleshooting.php:580
1414
+ #: includes/Admin/Troubleshooting.php:648
1415
+ #: includes/Admin/Troubleshooting.php:693
1416
+ #: includes/Admin/Troubleshooting.php:787
1417
+ #: includes/Admin/Troubleshooting.php:878
1418
+ #: includes/Admin/Troubleshooting.php:992
1419
+ #: includes/Admin/Troubleshooting.php:1076
1420
+ #: includes/Admin/Troubleshooting.php:1479
1421
+ #: includes/Admin/Troubleshooting.php:1526
1422
+ #: includes/Admin/Troubleshooting.php:1602
1423
  msgid "Solution"
1424
  msgstr ""
1425
 
1426
+ #: includes/Admin/Troubleshooting.php:1371
1427
  msgid "Solutions"
1428
  msgstr ""
1429
 
1430
+ #: includes/Admin/Troubleshooting.php:424
1431
  msgid "Solutions:"
1432
  msgstr ""
1433
 
1434
+ #: includes/Admin/Troubleshooting.php:1553
1435
  #, php-format
1436
  msgid ""
1437
  "Some NGINX configuration may block executing PHP files included directly in "
1461
  msgid "Status"
1462
  msgstr ""
1463
 
1464
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:669
1465
  msgid "Stop process"
1466
  msgstr ""
1467
 
1473
  msgid "Submit label"
1474
  msgstr ""
1475
 
1476
+ #: includes/Admin/Troubleshooting.php:1601
1477
  msgid "Sucuri Security firewall may block AJAX calls of the live search"
1478
  msgstr ""
1479
 
1510
  msgid "Text color"
1511
  msgstr ""
1512
 
1513
+ #: includes/Admin/Troubleshooting.php:1525
1514
  msgid "The .htaccess file(s) may blocking AJAX calls of the live search"
1515
  msgstr ""
1516
 
1532
  msgid "The following error caused the index to be canceled:"
1533
  msgstr ""
1534
 
1535
+ #: includes/Admin/Troubleshooting.php:1111
1536
+ msgid "The index was built by the previous plugin version"
1537
+ msgstr ""
1538
+
1539
+ #: includes/Admin/Troubleshooting.php:419
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:911
1547
  #, php-format
1548
  msgid "The Jetpack Search module is incompatible with the %s plugin."
1549
  msgstr ""
1559
  msgid "the next index rebuild: %s"
1560
  msgstr ""
1561
 
1562
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:641
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:647
1568
  msgid "The search index does not exist yet. Build it now."
1569
  msgstr ""
1570
 
1571
+ #: includes/Admin/Troubleshooting.php:835
1572
  msgid "The search index structure isn't completely"
1573
  msgstr ""
1574
 
1575
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:635
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:633
1582
  msgid "The search index was built successfully."
1583
  msgstr ""
1584
 
1585
+ #: includes/Admin/Troubleshooting.php:1024
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:1368
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
  msgid "The search will open in overlay on mobile"
1600
  msgstr ""
1601
 
1602
+ #: includes/Admin/Troubleshooting.php:1365
1603
  msgid ""
1604
  "The server returns an incorrect response for the search engine's AJAX calls"
1605
  msgstr ""
1611
  "adding synonyms."
1612
  msgstr ""
1613
 
1614
+ #: includes/Admin/Troubleshooting.php:1216
1615
  msgid "the transient value was cached and existed too long"
1616
  msgstr ""
1617
 
1618
+ #: includes/Admin/Troubleshooting.php:1214
1619
  msgid "the transient value was not returned"
1620
  msgstr ""
1621
 
1627
  msgid "There are four easy ways to display the search bar in your theme"
1628
  msgstr ""
1629
 
1630
+ #: includes/Admin/Troubleshooting.php:1170
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:646
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:1372
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:418
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:414
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:615
1661
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:621
1662
  msgid "This process will continue in the background. You can leave this page!"
1663
  msgstr ""
1664
 
1685
  msgid "To set 100% width leave blank"
1686
  msgstr ""
1687
 
1688
+ #: includes/Admin/Troubleshooting.php:1172
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:1173
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:1731
1703
  msgid "Transients test"
1704
  msgstr ""
1705
 
1706
+ #: includes/Admin/Troubleshooting.php:1658
1707
  msgid "TranslatePress"
1708
  msgstr ""
1709
 
1710
+ #: includes/Admin/Troubleshooting.php:59 includes/Admin/Troubleshooting.php:78
1711
  #: partials/admin/indexer-header.php:38
1712
  msgid "Troubleshooting"
1713
  msgstr ""
1714
 
1715
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:675
1716
  msgid "Try to build the index again."
1717
  msgstr ""
1718
 
1750
  msgid "Using PHP - %s"
1751
  msgstr ""
1752
 
1753
+ #: includes/Admin/Troubleshooting.php:1721
1754
  msgid "Valid search results test"
1755
  msgstr ""
1756
 
1757
+ #: includes/Helpers.php:985
1758
  msgid "Vendor"
1759
  msgstr ""
1760
 
1761
+ #: includes/Helpers.php:992
1762
  msgid "Vendors"
1763
  msgstr ""
1764
 
1765
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:620
1766
  msgid "Wait... Indexing in progress"
1767
  msgstr ""
1768
 
1769
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:614
1770
  msgid "Wait... Preparing indexing in progress"
1771
  msgstr ""
1772
 
1773
+ #: includes/Engines/TNTSearchMySQL/Indexer/Builder.php:626
1774
  msgid "Wait... The index build process is canceling"
1775
  msgstr ""
1776
 
1778
  msgid "Warning!"
1779
  msgstr ""
1780
 
1781
+ #: includes/Admin/Troubleshooting.php:1527
1782
  #, php-format
1783
  msgid ""
1784
  "We recommend contact your hosting provider and ask to check <code>%s</code> "
1794
  "We support this theme and you can easily replace all default search bars."
1795
  msgstr ""
1796
 
1797
+ #: includes/Admin/Troubleshooting.php:1171
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 "
1801
+ "products in the search engine. This error is often the result of migrating "
1802
+ "from a different WordPress."
1803
+ msgstr ""
1804
+
1805
  #: includes/Settings.php:693
1806
  msgid "weekly"
1807
  msgstr ""
1808
 
1809
+ #: includes/Admin/Troubleshooting.php:1367
1810
  msgid "What's wrong?"
1811
  msgstr ""
1812
 
1818
  msgid "with simple tricks"
1819
  msgstr ""
1820
 
1821
+ #: includes/Admin/Troubleshooting.php:1691
1822
  msgid "WooCommerce Multilingual"
1823
  msgstr ""
1824
 
1825
+ #: includes/Admin/Troubleshooting.php:951
1826
  msgid "WooCommerce Multilingual plugin is enabled but not effective"
1827
  msgstr ""
1828
 
1829
+ #: includes/Admin/Troubleshooting.php:1666
1830
  msgid "WordPress loading problem"
1831
  msgstr ""
1832
 
1833
+ #: includes/Admin/Troubleshooting.php:483
1834
+ #: includes/Admin/Troubleshooting.php:1623
1835
  msgid "WordPress version"
1836
  msgstr ""
1837
 
1838
+ #: includes/Admin/Troubleshooting.php:1696
1839
  msgid "WPML with disabled translations for products"
1840
  msgstr ""
1841
 
1842
+ #: includes/Admin/Troubleshooting.php:647
1843
+ #, php-format
1844
+ msgid ""
1845
+ "You are using Elementor and we noticed that the template used in the search "
1846
+ "results page titled <strong>%s</strong> does not include the <strong>Archive "
1847
+ "Products</strong> widget."
1848
+ msgstr ""
1849
+
1850
+ #: includes/Admin/Troubleshooting.php:296
1851
  msgid "You are using one or more incompatible plugins"
1852
  msgstr ""
1853
 
1854
+ #: includes/Admin/Troubleshooting.php:1074
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:337
1862
  msgid "You are using TranslatePress with Free version of our plugin"
1863
  msgstr ""
1864
 
1865
+ #: includes/Admin/Troubleshooting.php:991
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:1174
1873
+ #, php-format
1874
+ msgid "You can fix it by clicking on this button: %s"
1875
+ msgstr ""
1876
+
1877
+ #: includes/Admin/Troubleshooting.php:790
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:1603
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:1370
1891
  msgid ""
1892
  "You should see <code>pong</code> word as a response. Probably you see "
1893
  "something else."
1898
  msgid "You use %s plugin version %s"
1899
  msgstr ""
1900
 
1901
+ #: includes/Admin/Troubleshooting.php:316
1902
+ #: includes/Admin/Troubleshooting.php:318
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:307
1910
+ #: includes/Admin/Troubleshooting.php:311
1911
  #, php-format
1912
  msgid "You use the %s plugin. The %s does not support this plugin."
1913
  msgstr ""
1917
  msgid "You use the <b>%s</b> theme%s. Fantastic!"
1918
  msgstr ""
1919
 
1920
+ #: includes/Admin/Troubleshooting.php:952
1921
  #, php-format
1922
  msgid ""
1923
  "You use the WPML Multilingual CMS and WooCommerce Multilingual plugins, but "
1925
  "target=\"_blank\">WooCommerce Multilingual status</a>."
1926
  msgstr ""
1927
 
1928
+ #: includes/Admin/Troubleshooting.php:947
1929
  #, php-format
1930
  msgid ""
1931
  "You use the WPML Multilingual CMS plugin and to correctly search for "
1933
  "target=\"_blank\">WooCommerce Multilingual</a> plugin."
1934
  msgstr ""
1935
 
1936
+ #: includes/Admin/Troubleshooting.php:426
1937
  msgid "Your server can't send an HTTP request to itself"
1938
  msgstr ""
1939
 
1940
+ #: includes/Admin/Troubleshooting.php:532
1941
  msgid "Your settings should looks like the picture below:"
1942
  msgstr ""
1943
 
1944
+ #: includes/Admin/Troubleshooting.php:361
1945
  msgid "Your site can perform loopback requests"
1946
  msgstr ""
1947
 
1948
+ #: includes/Admin/Troubleshooting.php:410
1949
  msgid "Your site could not complete a loopback request"
1950
  msgstr ""
partials/search-form.php CHANGED
@@ -12,7 +12,7 @@ $layout = Helpers::getLayoutSettings();
12
 
13
  $submitText = Helpers::getLabel( 'submit' );
14
  $hasSubmit = DGWT_WCAS()->settings->getOption( 'show_submit_button' );
15
- $uniqueID = ++ DGWT_WCAS()->searchInstances . substr( uniqid(), 10, 3 );
16
  $layoutType = !empty($args['layout']) ? $args['layout'] : $layout->layout;
17
 
18
  $customParams = apply_filters( 'dgwt/wcas/search_bar/custom_params', array(), DGWT_WCAS()->searchInstances );
12
 
13
  $submitText = Helpers::getLabel( 'submit' );
14
  $hasSubmit = DGWT_WCAS()->settings->getOption( 'show_submit_button' );
15
+ $uniqueID = ++ DGWT_WCAS()->searchInstances;
16
  $layoutType = !empty($args['layout']) ? $args['layout'] : $layout->layout;
17
 
18
  $customParams = apply_filters( 'dgwt/wcas/search_bar/custom_params', array(), DGWT_WCAS()->searchInstances );
partials/themes/electro.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
4
+ exit;
5
+ }
6
+
7
+ add_filter( 'electro_use_third_party_navbar_search', '__return_true' );
8
+
9
+ add_action( 'electro_navbar_search_third_party', function () {
10
+ ?>
11
+ <div class="navbar-search">
12
+ <?php echo do_shortcode( '[wcas-search-form layout="classic"]' ) ?>
13
+ </div>
14
+ <?php
15
+ } );
16
+
17
+ if ( ! function_exists( 'electro_product_search' ) ) {
18
+ function electro_product_search() {
19
+ ?>
20
+ <div class="site-search">
21
+ <?php echo do_shortcode( '[wcas-search-form layout="classic"]' ) ?>
22
+ </div>
23
+ <?php
24
+ }
25
+ }
26
+
27
+ add_action( 'wp_footer', function () {
28
+ $breakpoint = DGWT_WCAS()->settings->getOption( 'mobile_breakpoint', 992 );
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) {
36
+ var $handler = $('.handheld-header-links .site-search .js-dgwt-wcas-enable-mobile-form');
37
+ if ($handler.length) {
38
+ $handler[0].click();
39
+ }
40
+ e.preventDefault();
41
+ });
42
+ } else {
43
+ // Search icon - almost desktop
44
+ $('.handheld-header-links .search > a').on('click', function (e) {
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>
56
+ <style>
57
+ /** Desktop */
58
+ .navbar-search .dgwt-wcas-search-wrapp {
59
+ max-width: 800px;
60
+ }
61
+
62
+ /** Mobile: Default Handled Header */
63
+ .handheld-header-links .site-search .dgwt-wcas-search-wrapp {
64
+ max-width: 100%;
65
+ }
66
+
67
+ /** Mobile: Mobile Header v1 */
68
+ .mobile-header-v1 .site-search .dgwt-wcas-search-wrapp {
69
+ max-width: 100%;
70
+ }
71
+
72
+ /** Mobile: Mobile Header v2 */
73
+ .mobile-header-v2 .mobile-header-v2-inner > .site-search .dgwt-wcas-search-wrapp {
74
+ max-width: 100%;
75
+ }
76
+ </style>
77
+ <?php
78
+ } );
partials/themes/shop-isle.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
4
+ exit;
5
+ }
6
+
7
+ add_action( 'init', function () {
8
+ remove_action( 'shop_isle_header', 'shop_isle_primary_navigation', 50 );
9
+ } );
10
+
11
+ add_action( 'shop_isle_header', function () {
12
+ if ( function_exists( 'shop_isle_primary_navigation' ) ) {
13
+ ob_start();
14
+ shop_isle_primary_navigation();
15
+ $html = ob_get_clean();
16
+ // https://regex101.com/r/AvkuEr/1/
17
+ $re = '/(.*<div class="header-search">)(.*<\/form>\s*<\/div>\s*)(<\/div>.*)/s';
18
+ $subst = '$1' . do_shortcode( '[wcas-search-form layout="icon"]' ) . '$3';
19
+ echo preg_replace( $re, $subst, $html );
20
+ }
21
+ }, 60 );
22
+
23
+ add_action( 'wp_footer', function () {
24
+ $menuItemsColor = empty( get_theme_mod( 'shop_isle_menu_items_color' ) ) ? '#cbc7c2' : get_theme_mod( 'shop_isle_menu_items_color' );
25
+ $menuItemsHoverColor = empty( get_theme_mod( 'shop_isle_menu_items_hover_color' ) ) ? '#ffffff' : get_theme_mod( 'shop_isle_menu_items_hover_color' );
26
+ ?>
27
+ <style>
28
+ .dgwt-wcas-ico-magnifier-handler {
29
+ max-width: 16px;
30
+ margin-top: 3px;
31
+ }
32
+
33
+ .dgwt-wcas-search-icon path {
34
+ fill: <?php echo esc_attr($menuItemsColor); ?>;
35
+ max-width: 16px;
36
+ margin-top: 4px;
37
+ }
38
+
39
+ .dgwt-wcas-search-icon:hover path {
40
+ fill: <?php echo esc_attr($menuItemsHoverColor); ?>;
41
+ }
42
+
43
+ .dgwt-wcas-is-mobile .dgwt-wcas-ico-magnifier-handler {
44
+ max-width: 20px;
45
+ }
46
+ </style>
47
+ <?php
48
+ } );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce search, ajax search, search by sku, product search, woocommerc
4
  Requires at least: 5.0
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
- Stable tag: 1.11.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -35,8 +35,7 @@ Who doesn’t love instant, as-you-type suggestions? In 2021, customers expect s
35
  &#9989; **Support for WooCommerce search results page** - after typing enter, users get the same results as in FiboSearch bar
36
  &#9989; **Grouping instant search results by type** – displaying e.g. first matching categories, then matching products
37
  &#9989; **Google Analytics** support
38
- &#9989; **WPML** compatible
39
- &#9989; **Polylang** compatible
40
  &#9989; **Personalization** of search bar and autocomplete suggestions - labels, colors, preloader, image and more
41
 
42
  = Try the PRO version =
@@ -48,7 +47,7 @@ FiboSearch also comes in a Pro version, with a modern, inverted index-based sear
48
 
49
  &#9989; **Ultra-fast search engine** based on the inverted index – works very fast, even with 100,000+ products
50
  &#9989; **Fuzzy search** – works even with minor typos
51
- &#9989; **Search in custom fields**
52
  &#9989; **Search in attributes**
53
  &#9989; **Search in categories**. Supports category thumbnails.
54
  &#9989; **Search in tags**
@@ -143,11 +142,23 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
143
 
144
  == Changelog ==
145
 
146
- = 1.11.0, May 26, 2021 =
 
 
 
 
 
 
 
 
 
 
 
147
  * ADD: Integration with Goya theme
148
  * ADD: Integration with Top and Top Store Pro theme
149
  * ADD: Keep the state of a details panel in memory instead of replacing it every time using jQuery.html() method. Doesn't clear quantity and "add to cart" states.
150
- * ADD: Prevent submit empty form
 
151
  * FIX: W3 validator warning: The type attribute for the style element is not needed and should be omitted.
152
  * FIX: Search terms with apostrophes
153
  * FIX: Synchronization with the native WooCommerce option "Out of stock visibility"
@@ -167,6 +178,7 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
167
  = 1.10.0, April 22, 2021 =
168
  * ADD: Possibility to disable select event on suggestions (click and hit the Enter key)
169
  * ADD: Possibility to disable submit a search form via a filter
 
170
  * FIX: Not working click event on suggestions after using “back arrow” on a Safari browser
171
  * FIX: Allow to recognize Chinese lang codes such as zh-hant and zh-hans
172
  * FIX: Error on PHP 8. Wrong format for printf function
@@ -178,6 +190,7 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
178
 
179
  = 1.9.0, March 15, 2021 =
180
  * ADD: Support for WooCommerce Private Store plugin
 
181
  * CHANGE: Plugin rebranding - Replace the plugin name AJAX Search for WooCommerce with new name FiboSearch
182
  * CHANGE: Plugin rebranding - Replace the old domain ajaxsearch.pro with new fibosearch.com
183
  * CHANGE: Plugin rebranding - Update visual assets
@@ -188,6 +201,7 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
188
  * FIX: Missing of dgwt-wcas-active class when the search was focused too early
189
  * FIX: Grammar and spelling errors in texts
190
  * FIX: Not firing jQuery onLoad event for some browsers
 
191
  * REMOVE: Removed useless dgwt-wcas-search-submit name attribute
192
  * REMOVE: Removed unused search forms from a Avada theme
193
 
4
  Requires at least: 5.0
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
+ Stable tag: 1.12.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
  &#9989; **Support for WooCommerce search results page** - after typing enter, users get the same results as in FiboSearch bar
36
  &#9989; **Grouping instant search results by type** – displaying e.g. first matching categories, then matching products
37
  &#9989; **Google Analytics** support
38
+ &#9989; Multilingual support including **WPML**, **Polylang** and **qTranslate-XT**
 
39
  &#9989; **Personalization** of search bar and autocomplete suggestions - labels, colors, preloader, image and more
40
 
41
  = Try the PRO version =
47
 
48
  &#9989; **Ultra-fast search engine** based on the inverted index – works very fast, even with 100,000+ products
49
  &#9989; **Fuzzy search** – works even with minor typos
50
+ &#9989; **Search in custom fields** with dedicated support for ACF
51
  &#9989; **Search in attributes**
52
  &#9989; **Search in categories**. Supports category thumbnails.
53
  &#9989; **Search in tags**
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
148
+ * ADD: New test for the troubleshooting module - check if the Elementor Pro has defined correct template for search results
149
+
150
+ * FIX: “WOOF – Products Filter for WooCommerce” - disappearing filters if “Dynamic recount” and “Hide empty terms” was enabled and other issues
151
+ * FIX: Remove unnecessary AJAX request on select “See all products ... (X)”
152
+ * FIX: The search form is now generated without random ID, to be compatible with the LiteSpeed Cache plugin
153
+
154
+ * REFACTOR: Change .dgwt-wcas-suggestion element from &lt;div&gt; to &lt;a&gt; to allow open a suggestion in a new tab
155
+
156
+ = 1.11.0, May 24, 2021 =
157
  * ADD: Integration with Goya theme
158
  * ADD: Integration with Top and Top Store Pro theme
159
  * ADD: Keep the state of a details panel in memory instead of replacing it every time using jQuery.html() method. Doesn't clear quantity and "add to cart" states.
160
+ * ADD: Prevent submit empty form
161
+
162
  * FIX: W3 validator warning: The type attribute for the style element is not needed and should be omitted.
163
  * FIX: Search terms with apostrophes
164
  * FIX: Synchronization with the native WooCommerce option "Out of stock visibility"
178
  = 1.10.0, April 22, 2021 =
179
  * ADD: Possibility to disable select event on suggestions (click and hit the Enter key)
180
  * ADD: Possibility to disable submit a search form via a filter
181
+
182
  * FIX: Not working click event on suggestions after using “back arrow” on a Safari browser
183
  * FIX: Allow to recognize Chinese lang codes such as zh-hant and zh-hans
184
  * FIX: Error on PHP 8. Wrong format for printf function
190
 
191
  = 1.9.0, March 15, 2021 =
192
  * ADD: Support for WooCommerce Private Store plugin
193
+
194
  * CHANGE: Plugin rebranding - Replace the plugin name AJAX Search for WooCommerce with new name FiboSearch
195
  * CHANGE: Plugin rebranding - Replace the old domain ajaxsearch.pro with new fibosearch.com
196
  * CHANGE: Plugin rebranding - Update visual assets
201
  * FIX: Missing of dgwt-wcas-active class when the search was focused too early
202
  * FIX: Grammar and spelling errors in texts
203
  * FIX: Not firing jQuery onLoad event for some browsers
204
+
205
  * REMOVE: Removed useless dgwt-wcas-search-submit name attribute
206
  * REMOVE: Removed unused search forms from a Avada theme
207