Ajax Search for WooCommerce - Version 1.20.0

Version Description

Download this release

Release Info

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

Code changes from version 1.19.0 to 1.20.0

Files changed (70) hide show
  1. ajax-search-for-woocommerce.php +17 -4
  2. assets/css/admin-style.css +17 -2
  3. assets/css/style.css +16 -1
  4. assets/css/style.min.css +1 -1
  5. assets/js/admin.js +27 -1
  6. assets/js/admin.min.js +1 -1
  7. assets/js/search.js +21 -6
  8. assets/js/search.min.js +1 -1
  9. build/blocks/search-nav/block.json +57 -0
  10. build/blocks/search-nav/index.asset.php +1 -0
  11. build/blocks/search-nav/index.css +1 -0
  12. build/blocks/search-nav/index.js +1 -0
  13. build/blocks/search/block.json +47 -0
  14. build/blocks/search/index.asset.php +1 -0
  15. build/blocks/search/index.css +1 -0
  16. build/blocks/search/index.js +1 -0
  17. fs/lib/languages/freemius-cs_CZ.mo +0 -0
  18. fs/lib/languages/freemius-da_DK.mo +0 -0
  19. fs/lib/languages/freemius-de_DE.mo +0 -0
  20. fs/lib/languages/freemius-en.mo +0 -0
  21. fs/lib/languages/freemius-es_ES.mo +0 -0
  22. fs/lib/languages/freemius-fr_FR.mo +0 -0
  23. fs/lib/languages/freemius-he_IL.mo +0 -0
  24. fs/lib/languages/freemius-hu_HU.mo +0 -0
  25. fs/lib/languages/freemius-it_IT.mo +0 -0
  26. fs/lib/languages/freemius-ja.mo +0 -0
  27. fs/lib/languages/freemius-nl_NL.mo +0 -0
  28. fs/lib/languages/freemius-ru_RU.mo +0 -0
  29. fs/lib/languages/freemius-ta.mo +0 -0
  30. fs/lib/languages/freemius-zh_CN.mo +0 -0
  31. fs/lib/languages/freemius.pot +584 -1172
  32. fs/lib/start.php +1 -1
  33. includes/Analytics/Database.php +9 -0
  34. includes/Analytics/UserInterface.php +23 -0
  35. includes/Blocks.php +112 -0
  36. includes/Engines/WordPressNative/Search.php +18 -1
  37. includes/Helpers.php +98 -65
  38. includes/Integrations/Plugins/WPRocket/WPRocket.php +42 -0
  39. includes/Integrations/Plugins/WooCommerceProductsFilter/WooCommerceProductsFilter.php +11 -8
  40. includes/Integrations/Themes/Enfold/Enfold.php +2 -2
  41. includes/Integrations/Themes/Impreza/Impreza.php +2 -2
  42. includes/Integrations/Themes/ThemesCompatibility.php +8 -0
  43. includes/Multilingual.php +11 -6
  44. includes/Personalization.php +160 -154
  45. includes/Scripts.php +0 -5
  46. includes/Settings.php +3 -3
  47. includes/Shortcode.php +2 -1
  48. languages/ajax-search-for-woocommerce.pot +0 -1279
  49. loco.xml +21 -0
  50. partials/admin/stats/stats.php +18 -4
  51. partials/search-form.php +2 -1
  52. partials/themes/neve.php +11 -0
  53. partials/themes/neve/components/component-search-responsive.php +7 -0
  54. partials/themes/neve/components/component-search.php +11 -0
  55. partials/themes/woostify.php +73 -0
  56. readme.txt +20 -3
  57. src/blocks/search-nav/block.json +57 -0
  58. src/blocks/search-nav/edit.js +201 -0
  59. src/blocks/search-nav/editor.scss +29 -0
  60. src/blocks/search-nav/index.js +24 -0
  61. src/blocks/search-nav/transforms.js +51 -0
  62. src/blocks/search/block.json +47 -0
  63. src/blocks/search/edit.js +185 -0
  64. src/blocks/search/editor.scss +22 -0
  65. src/blocks/search/index.js +24 -0
  66. src/blocks/search/transforms.js +76 -0
  67. src/icons/fibosearch.js +40 -0
  68. vendor/autoload.php +1 -1
  69. vendor/composer/autoload_real.php +4 -4
  70. vendor/composer/autoload_static.php +4 -4
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.19.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: 5.5
13
- * WC tested up to: 6.8
14
  *
15
  */
16
  // Exit if accessed directly
@@ -103,6 +103,13 @@ if ( !class_exists( 'DGWT_WC_Ajax_Search' ) && !function_exists( 'dgoraAsfwFs' )
103
  }
104
 
105
  new \DgoraWcas\Integrations\Solver();
 
 
 
 
 
 
 
106
  }
107
 
108
  self::$instance->tnow = time();
@@ -170,8 +177,7 @@ if ( !class_exists( 'DGWT_WC_Ajax_Search' ) && !function_exists( 'dgoraAsfwFs' )
170
  <div class="notice notice-error dgwt-wcas-notice">
171
  <p>
172
  <?php
173
- printf( __( '%s: You need PHP version at least 7.0 to run this plugin. You are currently using PHP version ', 'ajax-search-for-woocommerce' ), '<b>' . DGWT_WCAS_NAME . '</b>' );
174
- echo PHP_VERSION . '.' ;
175
  ?>
176
  </p>
177
  </div>
@@ -288,6 +294,13 @@ if ( !class_exists( 'DGWT_WC_Ajax_Search' ) && !function_exists( 'dgoraAsfwFs' )
288
  array(),
289
  DGWT_WCAS_VERSION
290
  );
 
 
 
 
 
 
 
291
  // Register JS
292
  wp_register_script(
293
  'dgwt-wcas-admin-js',
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.20.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: 5.5
13
+ * WC tested up to: 6.9
14
  *
15
  */
16
  // Exit if accessed directly
103
  }
104
 
105
  new \DgoraWcas\Integrations\Solver();
106
+ global $wp_version ;
107
+
108
+ if ( version_compare( $wp_version, '5.9' ) >= 0 ) {
109
+ $blocks = new \DgoraWcas\Blocks();
110
+ $blocks->init();
111
+ }
112
+
113
  }
114
 
115
  self::$instance->tnow = time();
177
  <div class="notice notice-error dgwt-wcas-notice">
178
  <p>
179
  <?php
180
+ printf( __( '%s: You need PHP version at least 7.0 to run this plugin. You are currently using PHP version %s.', 'ajax-search-for-woocommerce' ), '<b>' . DGWT_WCAS_NAME . '</b>', PHP_VERSION );
 
181
  ?>
182
  </p>
183
  </div>
294
  array(),
295
  DGWT_WCAS_VERSION
296
  );
297
+ // Register front styles for block editor
298
+ wp_register_style(
299
+ 'dgwt-wcas-style',
300
+ apply_filters( 'dgwt/wcas/scripts/css_style_url', DGWT_WCAS_URL . 'assets/css/style' . $min . '.css' ),
301
+ array(),
302
+ DGWT_WCAS_VERSION
303
+ );
304
  // Register JS
305
  wp_register_script(
306
  'dgwt-wcas-admin-js',
assets/css/admin-style.css CHANGED
@@ -402,6 +402,10 @@
402
  transition: all 150ms ease-in-out;
403
  }
404
 
 
 
 
 
405
  .dgwt_wcas_settings-group .form-table td {
406
  margin-bottom: 0;
407
  }
@@ -1830,7 +1834,8 @@ h3.dgwt-wcas-troubleshooting-issue-title {
1830
  }
1831
 
1832
  .dgwt-wcas-tab-progress,
1833
- .dgwt-wcas-troubleshooting-wrapper .dgwt-wcas-ajax-loader {
 
1834
  -moz-transition: opacity 0.2s;
1835
  -webkit-transition: opacity 0.2s;
1836
  transition: opacity 0.2s;
@@ -1844,7 +1849,17 @@ h3.dgwt-wcas-troubleshooting-issue-title {
1844
  margin-left: 5px;
1845
  }
1846
 
1847
- .dgwt-wcas-troubleshooting-wrapper .dgwt-wcas-ajax-loader.loading {
 
 
 
 
 
 
 
 
 
 
1848
  opacity: 1;
1849
  }
1850
 
402
  transition: all 150ms ease-in-out;
403
  }
404
 
405
+ [data-dgwt-wcas-active="autocomplete"] .dgwt-wcas-preview .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
406
+ border-radius: 10px 10px 0 0;
407
+ }
408
+
409
  .dgwt_wcas_settings-group .form-table td {
410
  margin-bottom: 0;
411
  }
1834
  }
1835
 
1836
  .dgwt-wcas-tab-progress,
1837
+ .dgwt-wcas-troubleshooting-wrapper .dgwt-wcas-ajax-loader,
1838
+ .dgwt-wcas-analytics-body .dgwt-wcas-ajax-loader {
1839
  -moz-transition: opacity 0.2s;
1840
  -webkit-transition: opacity 0.2s;
1841
  transition: opacity 0.2s;
1849
  margin-left: 5px;
1850
  }
1851
 
1852
+ .dgwt-wcas-troubleshooting-wrapper .dgwt-wcas-ajax-loader.loading,
1853
+ .dgwt-wcas-analytics-body .dgwt-wcas-ajax-loader.loading {
1854
+ opacity: 1;
1855
+ }
1856
+
1857
+ .dgwt-wcas-analytics-body .dgwt-wcas-ajax-loader {
1858
+ display: none;
1859
+ }
1860
+
1861
+ .dgwt-wcas-analytics-body .dgwt-wcas-ajax-loader.loading {
1862
+ display: inline-block;
1863
  opacity: 1;
1864
  }
1865
 
assets/css/style.css CHANGED
@@ -822,6 +822,10 @@ input[type="submit"].dgwt-wcas-search-submit, button.dgwt-wcas-search-submit {
822
  opacity: 0.3;
823
  }
824
 
 
 
 
 
825
  .dgwt-wcas-voice-search-supported .dgwt-wcas-voice-search {
826
  display: flex;
827
  }
@@ -886,6 +890,7 @@ input[type="submit"].dgwt-wcas-search-submit, button.dgwt-wcas-search-submit {
886
  -webkit-animation: 1s ease-in-out infinite dash;
887
  -moz-animation: 1s ease-in-out infinite dash;
888
  animation: 1s ease-in-out infinite dash;
 
889
  }
890
 
891
  @-webkit-keyframes rotate {
@@ -990,6 +995,10 @@ https://stackoverflow.com/questions/33672395/use-within-svg-not-finding-closest-
990
  opacity: 0.3;
991
  }
992
 
 
 
 
 
993
  @media screen and (max-width: 992px) {
994
  .dgwt-wcas-is-detail-box .dgwt-wcas-suggestions-wrapp {
995
  max-width: none;
@@ -1288,7 +1297,7 @@ body:not(.dgwt-wcas-is-details) .dgwt-wcas-suggestion:last-child {
1288
  left: 12px;
1289
  right: auto;
1290
  opacity: 0.5;
1291
- fill: #000;
1292
  }
1293
 
1294
  .rtl .dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier {
@@ -1346,6 +1355,7 @@ html.dgwt-wcas-overlay-mobile-on {
1346
  position: absolute;
1347
  left: 12px;
1348
  top: 12px;
 
1349
  }
1350
 
1351
  .rtl .dgwt-wcas-om-bar .dgwt-wcas-om-return svg {
@@ -1559,6 +1569,10 @@ body .dgwt-wcas-content-wrapp .rood {
1559
  min-width: unset;
1560
  }
1561
 
 
 
 
 
1562
  .dgwt-wcas-layout-icon-flexible .dgwt-wcas-search-form,
1563
  .dgwt-wcas-layout-icon-flexible-inv .dgwt-wcas-search-form{
1564
  opacity: 0;
@@ -1745,6 +1759,7 @@ html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-
1745
  .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
1746
  background: transparent;
1747
  border-radius: 100%;
 
1748
  display: flex;
1749
  align-items: center;
1750
  justify-content: center;
822
  opacity: 0.3;
823
  }
824
 
825
+ .dgwt-wcas-voice-search path {
826
+ fill: #444;
827
+ }
828
+
829
  .dgwt-wcas-voice-search-supported .dgwt-wcas-voice-search {
830
  display: flex;
831
  }
890
  -webkit-animation: 1s ease-in-out infinite dash;
891
  -moz-animation: 1s ease-in-out infinite dash;
892
  animation: 1s ease-in-out infinite dash;
893
+ stroke: #ddd;
894
  }
895
 
896
  @-webkit-keyframes rotate {
995
  opacity: 0.3;
996
  }
997
 
998
+ .dgwt-wcas-close path {
999
+ fill: #ccc;
1000
+ }
1001
+
1002
  @media screen and (max-width: 992px) {
1003
  .dgwt-wcas-is-detail-box .dgwt-wcas-suggestions-wrapp {
1004
  max-width: none;
1297
  left: 12px;
1298
  right: auto;
1299
  opacity: 0.5;
1300
+ fill: #444;
1301
  }
1302
 
1303
  .rtl .dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier {
1355
  position: absolute;
1356
  left: 12px;
1357
  top: 12px;
1358
+ fill: #fff;
1359
  }
1360
 
1361
  .rtl .dgwt-wcas-om-bar .dgwt-wcas-om-return svg {
1569
  min-width: unset;
1570
  }
1571
 
1572
+ html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon {
1573
+ max-width: 20px;
1574
+ }
1575
+
1576
  .dgwt-wcas-layout-icon-flexible .dgwt-wcas-search-form,
1577
  .dgwt-wcas-layout-icon-flexible-inv .dgwt-wcas-search-form{
1578
  opacity: 0;
1759
  .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
1760
  background: transparent;
1761
  border-radius: 100%;
1762
+ border: 0;
1763
  display: flex;
1764
  align-items: center;
1765
  justify-content: center;
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}.rtl .dgwt-wcas-tpd-image img{margin:0 0 0 15px!important}.dgwt-wcas-preloader-wrapp img{margin:10px auto 0;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;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;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;display:block;border-top:1px solid #eee;text-align:center;font-size:12px;text-transform:uppercase;color:#6d6d6d;transition:.2s ease-in-out}a.dgwt-wcas-details-more-products:hover,a.dgwt-wcas-details-post-title:hover,a.dgwt-wcas-details-product-title:hover,a.dgwt-wcas-product-details-readmore: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}.dgwt-wcas-has-headings .dgwt-wcas-suggestion,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-headline,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax,.dgwt-wcas-suggestion.dgwt-wcas-suggestion-no-border-bottom,body:not(.dgwt-wcas-is-details) .dgwt-wcas-suggestion:last-child{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;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;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-open.dgwt-wcas-nores.dgwt-wcas-is-details:not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestion-nores,.dgwt-wcas-sd{margin-top:5px}.dgwt-wcas-sp del{opacity:.5;font-size:12px}.dgwt-wcas-sd{color:#777;display:block;line-height:14px;width:100%;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-style-pirx.dgwt-wcas-search-wrapp.dgwt-wcas-search-focused input[type=search].dgwt-wcas-search-input:hover,.dgwt-wcas-tpd-image{background-color:#fff}.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;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}.dgwt-wcas-datails-title,.dgwt-wcas-pd-title{border-bottom:1px dashed #eee;padding-bottom:5px}.rtl .dgwt-wcas-details-wrapp{border-left:1px solid #ddd;border-right:none}.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp,.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-inner,.dgwt-wcas-details-notfit .dgwt-wcas-details-wrapp{display:none}.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp,.rtl.dgwt-wcas-full-width .dgwt-wcas-details-wrapp{border-radius:0 0 0 5px}.dgwt-wcas-full-width .dgwt-wcas-details-wrapp,.rtl.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{border-radius:0 0 5px}.dgwt-wcas-details-inner.dgwt-wcas-details-inner-active,.dgwt-wcas-details-wrapp .added_to_cart,.dgwt-wcas-has-desc .dgwt-wcas-sp>*,.dgwt-wcas-has-img .dgwt-wcas-sp>*{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{font-size:14px}.dgwt-wcas-pd-title{color:#202020}.dgwt-wcas-pd-title .product-title{color:#202020;text-transform:uppercase;margin:0}.dgwt-wcas-tax-product-details{text-decoration:none;display:flex;align-items:center;justify-content:left;transition:.2s ease-in-out;padding:5px;margin:0 -5px 15px}.dgwt-wcas-pd-rating:after,.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)}.rtl .dgwt-wcas-tax-product-details{justify-content:right}.dgwt-wcas-details-wrapp .dgwt-wcas-pd-title{margin-bottom:8px}.dgwt-wcas-tpd-image{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{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-details-title-tax,.dgwt-wcas-pd-title .product-title{font-weight:900;letter-spacing:-1px;text-transform:uppercase}.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-review{color:#777;font-size:11px;line-height:11px}.dgwt-wcas-datails-title{display:block;margin:5px 0 15px}.dgwt-wcas-pd-title{margin-bottom:15px;display:block;text-decoration:none}.dgwt-wcas-details-title-tax{margin-right:3px}.rtl .dgwt-wcas-details-title-tax{margin:0 0 0 3px;float:right}.dgwt-wcas-tpd-image{width:70px;padding:4px;border:1px solid #e8e8e8;border-radius:4px;display:flex;flex-direction:column;justify-content:center}.dgwt-wcas-details-space{padding:0 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}a.dgwt-wcas-details-post-title,a.dgwt-wcas-details-product-title{color:#333;display:block;line-height:120%;margin:10px 0 0;font-size:21px;font-weight:400;text-decoration:none;text-transform:none}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-has-headings .dgwt-wcas-st>span.dgwt-wcas-st--direct-headline,.dgwt-wcas-layout-icon-flexible-inv:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon,.dgwt-wcas-layout-icon-flexible-inv:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon-arrow,.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,.dgwt-wcas-om-bar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon,.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon-arrow,.dgwt-wcas-overlay-mobile-on .dgwt-wcas-enable-mobile-form,.dgwt-wcas-overlay-mobile-on .dgwt-wcas-icon-handler,.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios body:not(.dgwt-wcas-theme-flatsome)>:not(.dgwt-wcas-overlay-mobile),.dgwt-wcas-pd-addtc .add_to_cart_button.added,.dgwt-wcas-search-icon-arrow,.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,.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:before,body .dgwt-wcas-content-wrapp .rood,body .dgwt-wcas-content-wrapp .zwave{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%}.dgwt-wcas-voice-search{position:absolute;right:0;top:0;height:100%;width:40px;z-index:1;opacity:.5;cursor:pointer;align-items:center;justify-content:center;display:none;-webkit-transition:160ms ease-in-out;-moz-transition:160ms ease-in-out;-ms-transition:160ms ease-in-out;-o-transition:160ms ease-in-out;transition:160ms ease-in-out}.dgwt-wcas-close:hover,.dgwt-wcas-style-pirx .dgwt-wcas-voice-search:hover,.dgwt-wcas-voice-search:hover{opacity:.3}.dgwt-wcas-voice-search-supported .dgwt-wcas-voice-search{display:flex}.dgwt-wcas-voice-search-supported .dgwt-wcas-preloader{right:40px}.rtl .dgwt-wcas-preloader,.rtl .dgwt-wcas-voice-search{right:auto;left:5px}.dgwt-wcas-mobile-overlay-trigger-active .dgwt-wcas-voice-search{z-index:105}.rtl .dgwt-wcas-voice-search-supported .dgwt-wcas-preloader{right:auto;left:45px}.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;z-index:1}@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:160ms ease-in-out;-moz-transition:160ms ease-in-out;-ms-transition:160ms ease-in-out;-o-transition:160ms ease-in-out;transition:160ms ease-in-out;z-index:1}.dgwt-wcas-close:not(.dgwt-wcas-inner-preloader):before{content:'';display:block;position:absolute;background:0 0;height:100%;width:100%;left:0;bottom:0;top:0;right:0;margin:auto}@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-wrapp .dgwt-wcas-preloader-wrapp,.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}.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:150ms ease-in;-moz-transition:150ms ease-in;-ms-transition:150ms ease-in;-o-transition:150ms ease-in;transition: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 15px;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;color:#fff;-webkit-transition:250ms ease-in-out;-moz-transition:250ms ease-in-out;-ms-transition:250ms ease-in-out;-o-transition:250ms ease-in-out;transition: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;top:12px;left:-6px;-webkit-transition:250ms ease-in-out;-moz-transition:250ms ease-in-out;-ms-transition:250ms ease-in-out;-o-transition:250ms ease-in-out;transition: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:active:before,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus:before,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover:before{border-right-color:#333}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::-moz-focus-inner{border:0;padding:0}.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{min-height:340px;overflow:visible}.dgwt-wcas-is-details .dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{min-height:40px}.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: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%,100%{background:rgba(128,128,128,.03)}50%{background:rgba(128,128,128,.1)}}.dgwt-wcas-preloader-price-inner div:first-child{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:.8s cubic-bezier(0,.5,.5,1) infinite dgwt-wcas-preloader-price-anim;-webkit-transition:.2s ease-in-out;-moz-transition:.2s ease-in-out;-ms-transition:.2s ease-in-out;-o-transition:.2s ease-in-out;transition:.2s ease-in-out}.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,.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion{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-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-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-search-wrapp.dgwt-wcas-layout-icon{min-width:unset}.dgwt-wcas-layout-icon-flexible .dgwt-wcas-search-form,.dgwt-wcas-layout-icon-flexible-inv .dgwt-wcas-search-form{opacity:0}.dgwt-wcas-layout-icon-flexible-loaded .dgwt-wcas-search-form{opacity:1}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}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.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-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-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}.dgwt-wcas-darkened-overlay{display:block;position:absolute;opacity:.15;z-index:100000;left:0;top:0}.dgwt-wcas-darkened-overlay>div{background:#111;position:absolute}.dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form{background-color:rgba(17,17,17,.15);border:none;border-radius:0}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp{background:#fff;padding:10px;border-radius:10px}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp{padding-top:0;padding-bottom:0}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding:13px 24px 13px 48px;line-height:24px;font-size:17px;border:2px solid transparent;border-radius:30px;height:auto;font-family:Roboto,sans-serif;background-color:#eee}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus{box-shadow:none;transition:30ms ease-in}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:hover{background-color:#dfdfdf}.dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-color:#333}.dgwt-wcas-open .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-radius:30px}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{background:0 0;border-radius:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0;position:absolute;min-height:33px;min-width:33px;height:33px;width:33px;left:23px;top:21px;pointer-events:none;transition:none}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg{width:18px;height:18px}.dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{left:auto;right:28px;pointer-events:auto;animation:.3s fadeIn}.dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding-left:24px;padding-right:48px;transition:none!important}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover{opacity:1;background:#e4e4e4;box-shadow:0 0 0 2px #e4e4e4;border-radius:100%}.dgwt-wcas-style-pirx .dgwt-wcas-preloader{margin-right:35px}.dgwt-wcas-style-pirx .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader){transition:none;width:18px}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return path,.dgwt-wcas-style-pirx .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) path,.dgwt-wcas-style-pirx .dgwt-wcas-voice-search svg path,.dgwt-wcas-style-pirx.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path{fill:#111}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder{opacity:1;font-style:normal;font-weight:300;color:#777}.dgwt-wcas-open-pirx .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp{border-color:#fff;padding-top:10px;padding-bottom:10px}.dgwt-wcas-open-pirx .dgwt-wcas-details-inner,.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp>.dgwt-wcas-suggestion{padding-left:20px;padding-right:20px}.dgwt-wcas-open-pirx .dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp>.dgwt-wcas-suggestion,.dgwt-wcas-open-pirx body.dgwt-wcas-details-left .dgwt-wcas-details-wrapp{border-right:1px solid #ddd}.dgwt-wcas-open-pirx .dgwt-wcas-details-outside .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-details-outside.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{margin-top:0;border-top:none}.dgwt-wcas-open-pirx body.dgwt-wcas-details-right .dgwt-wcas-suggestions-wrapp{border-right:none}.dgwt-wcas-open-pirx body.dgwt-wcas-details-right .dgwt-wcas-details-wrapp{border-left:1px solid #ddd}.dgwt-wcas-open-pirx body.dgwt-wcas-details-left .dgwt-wcas-suggestions-wrapp{border-left:none}.dgwt-wcas-open-pirx .dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{min-height:70px!important}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-radius:0;background:0 0;padding:0 10px}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-color:transparent}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding-left:10px}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:hover{background-color:transparent}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp{border-top:1px solid #e0e2e5}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return{background:#fff}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return svg{left:17px;top:16px;width:17px;height:17px}.dgwt-wcas-style-pirx .dgwt-wcas-voice-search{right:15px;top:2px;opacity:1}.dgwt-wcas-style-pirx.dgwt-wcas-search-filled.dgwt-wcas-voice-search-supported .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{right:47px}.dgwt-wcas-style-pirx.dgwt-wcas-voice-search-supported .dgwt-wcas-preloader{margin-right:50px}.dgwt-wcas-suggestions-wrapp-fixed{position:fixed!important}
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}.rtl .dgwt-wcas-tpd-image img{margin:0 0 0 15px!important}.dgwt-wcas-preloader-wrapp img{margin:10px auto 0;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;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;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;display:block;border-top:1px solid #eee;text-align:center;font-size:12px;text-transform:uppercase;color:#6d6d6d;transition:.2s ease-in-out}a.dgwt-wcas-details-more-products:hover,a.dgwt-wcas-details-post-title:hover,a.dgwt-wcas-details-product-title:hover,a.dgwt-wcas-product-details-readmore: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}.dgwt-wcas-has-headings .dgwt-wcas-suggestion,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-headline,.dgwt-wcas-has-headings .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax,.dgwt-wcas-suggestion.dgwt-wcas-suggestion-no-border-bottom,body:not(.dgwt-wcas-is-details) .dgwt-wcas-suggestion:last-child{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;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;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-open.dgwt-wcas-nores.dgwt-wcas-is-details:not(.dgwt-wcas-details-outside) .dgwt-wcas-suggestion-nores,.dgwt-wcas-sd{margin-top:5px}.dgwt-wcas-sp del{opacity:.5;font-size:12px}.dgwt-wcas-sd{color:#777;display:block;line-height:14px;width:100%;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-style-pirx.dgwt-wcas-search-wrapp.dgwt-wcas-search-focused input[type=search].dgwt-wcas-search-input:hover,.dgwt-wcas-tpd-image{background-color:#fff}.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;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}.dgwt-wcas-datails-title,.dgwt-wcas-pd-title{border-bottom:1px dashed #eee;padding-bottom:5px}.rtl .dgwt-wcas-details-wrapp{border-left:1px solid #ddd;border-right:none}.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp,.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-inner,.dgwt-wcas-details-notfit .dgwt-wcas-details-wrapp{display:none}.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp,.rtl.dgwt-wcas-full-width .dgwt-wcas-details-wrapp{border-radius:0 0 0 5px}.dgwt-wcas-full-width .dgwt-wcas-details-wrapp,.rtl.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{border-radius:0 0 5px}.dgwt-wcas-details-inner.dgwt-wcas-details-inner-active,.dgwt-wcas-details-wrapp .added_to_cart,.dgwt-wcas-has-desc .dgwt-wcas-sp>*,.dgwt-wcas-has-img .dgwt-wcas-sp>*{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{font-size:14px}.dgwt-wcas-pd-title{color:#202020}.dgwt-wcas-pd-title .product-title{color:#202020;text-transform:uppercase;margin:0}.dgwt-wcas-tax-product-details{text-decoration:none;display:flex;align-items:center;justify-content:left;transition:.2s ease-in-out;padding:5px;margin:0 -5px 15px}.dgwt-wcas-pd-rating:after,.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)}.rtl .dgwt-wcas-tax-product-details{justify-content:right}.dgwt-wcas-details-wrapp .dgwt-wcas-pd-title{margin-bottom:8px}.dgwt-wcas-tpd-image{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{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-details-title-tax,.dgwt-wcas-pd-title .product-title{font-weight:900;letter-spacing:-1px;text-transform:uppercase}.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-review{color:#777;font-size:11px;line-height:11px}.dgwt-wcas-datails-title{display:block;margin:5px 0 15px}.dgwt-wcas-pd-title{margin-bottom:15px;display:block;text-decoration:none}.dgwt-wcas-details-title-tax{margin-right:3px}.rtl .dgwt-wcas-details-title-tax{margin:0 0 0 3px;float:right}.dgwt-wcas-tpd-image{width:70px;padding:4px;border:1px solid #e8e8e8;border-radius:4px;display:flex;flex-direction:column;justify-content:center}.dgwt-wcas-details-space{padding:0 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}a.dgwt-wcas-details-post-title,a.dgwt-wcas-details-product-title{color:#333;display:block;line-height:120%;margin:10px 0 0;font-size:21px;font-weight:400;text-decoration:none;text-transform:none}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-has-headings .dgwt-wcas-st>span.dgwt-wcas-st--direct-headline,.dgwt-wcas-layout-icon-flexible-inv:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon,.dgwt-wcas-layout-icon-flexible-inv:not(.dgwt-wcas-layout-icon) .dgwt-wcas-search-icon-arrow,.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,.dgwt-wcas-om-bar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon,.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon-arrow,.dgwt-wcas-overlay-mobile-on .dgwt-wcas-enable-mobile-form,.dgwt-wcas-overlay-mobile-on .dgwt-wcas-icon-handler,.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios body:not(.dgwt-wcas-theme-flatsome)>:not(.dgwt-wcas-overlay-mobile),.dgwt-wcas-pd-addtc .add_to_cart_button.added,.dgwt-wcas-search-icon-arrow,.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,.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:before,body .dgwt-wcas-content-wrapp .rood,body .dgwt-wcas-content-wrapp .zwave{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%}.dgwt-wcas-voice-search{position:absolute;right:0;top:0;height:100%;width:40px;z-index:1;opacity:.5;cursor:pointer;align-items:center;justify-content:center;display:none;-webkit-transition:160ms ease-in-out;-moz-transition:160ms ease-in-out;-ms-transition:160ms ease-in-out;-o-transition:160ms ease-in-out;transition:160ms ease-in-out}.dgwt-wcas-close:hover,.dgwt-wcas-style-pirx .dgwt-wcas-voice-search:hover,.dgwt-wcas-voice-search:hover{opacity:.3}.dgwt-wcas-voice-search path{fill:#444}.dgwt-wcas-voice-search-supported .dgwt-wcas-voice-search{display:flex}.dgwt-wcas-voice-search-supported .dgwt-wcas-preloader{right:40px}.rtl .dgwt-wcas-preloader,.rtl .dgwt-wcas-voice-search{right:auto;left:5px}.dgwt-wcas-mobile-overlay-trigger-active .dgwt-wcas-voice-search{z-index:105}.rtl .dgwt-wcas-voice-search-supported .dgwt-wcas-preloader{right:auto;left:45px}.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;z-index:1}@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;stroke:#ddd}@-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:160ms ease-in-out;-moz-transition:160ms ease-in-out;-ms-transition:160ms ease-in-out;-o-transition:160ms ease-in-out;transition:160ms ease-in-out;z-index:1}.dgwt-wcas-close:not(.dgwt-wcas-inner-preloader):before{content:'';display:block;position:absolute;background:0 0;height:100%;width:100%;left:0;bottom:0;top:0;right:0;margin:auto}.dgwt-wcas-close path{fill:#ccc}@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-wrapp .dgwt-wcas-preloader-wrapp,.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}.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:150ms ease-in;-moz-transition:150ms ease-in;-ms-transition:150ms ease-in;-o-transition:150ms ease-in;transition: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 15px;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;color:#fff;-webkit-transition:250ms ease-in-out;-moz-transition:250ms ease-in-out;-ms-transition:250ms ease-in-out;-o-transition:250ms ease-in-out;transition: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;top:12px;left:-6px;-webkit-transition:250ms ease-in-out;-moz-transition:250ms ease-in-out;-ms-transition:250ms ease-in-out;-o-transition:250ms ease-in-out;transition: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:active:before,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus:before,.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover:before{border-right-color:#333}.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::-moz-focus-inner{border:0;padding:0}.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{min-height:340px;overflow:visible}.dgwt-wcas-is-details .dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{min-height:40px}.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,html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon{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:#444}.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: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;fill:#fff}.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%,100%{background:rgba(128,128,128,.03)}50%{background:rgba(128,128,128,.1)}}.dgwt-wcas-preloader-price-inner div:first-child{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:.8s cubic-bezier(0,.5,.5,1) infinite dgwt-wcas-preloader-price-anim;-webkit-transition:.2s ease-in-out;-moz-transition:.2s ease-in-out;-ms-transition:.2s ease-in-out;-o-transition:.2s ease-in-out;transition:.2s ease-in-out}.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,.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion{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-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-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-search-wrapp.dgwt-wcas-layout-icon{min-width:unset}.dgwt-wcas-layout-icon-flexible .dgwt-wcas-search-form,.dgwt-wcas-layout-icon-flexible-inv .dgwt-wcas-search-form{opacity:0}.dgwt-wcas-layout-icon-flexible-loaded .dgwt-wcas-search-form{opacity:1}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}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.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-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-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}.dgwt-wcas-darkened-overlay{display:block;position:absolute;opacity:.15;z-index:100000;left:0;top:0}.dgwt-wcas-darkened-overlay>div{background:#111;position:absolute}.dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form{background-color:rgba(17,17,17,.15);border:none;border-radius:0}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp{background:#fff;padding:10px;border-radius:10px}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp{padding-top:0;padding-bottom:0}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding:13px 24px 13px 48px;line-height:24px;font-size:17px;border:2px solid transparent;border-radius:30px;height:auto;font-family:Roboto,sans-serif;background-color:#eee}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus{box-shadow:none;transition:30ms ease-in}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:hover{background-color:#dfdfdf}.dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-color:#333}.dgwt-wcas-open .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-radius:30px}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{background:0 0;border-radius:100%;border:0;display:flex;align-items:center;justify-content:center;padding:0;margin:0;position:absolute;min-height:33px;min-width:33px;height:33px;width:33px;left:23px;top:21px;pointer-events:none;transition:none}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg{width:18px;height:18px}.dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{left:auto;right:28px;pointer-events:auto;animation:.3s fadeIn}.dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding-left:24px;padding-right:48px;transition:none!important}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover{opacity:1;background:#e4e4e4;box-shadow:0 0 0 2px #e4e4e4;border-radius:100%}.dgwt-wcas-style-pirx .dgwt-wcas-preloader{margin-right:35px}.dgwt-wcas-style-pirx .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader){transition:none;width:18px}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return path,.dgwt-wcas-style-pirx .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) path,.dgwt-wcas-style-pirx .dgwt-wcas-voice-search svg path,.dgwt-wcas-style-pirx.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path{fill:#111}.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder{opacity:1;font-style:normal;font-weight:300;color:#777}.dgwt-wcas-open-pirx .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp{border-color:#fff;padding-top:10px;padding-bottom:10px}.dgwt-wcas-open-pirx .dgwt-wcas-details-inner,.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp>.dgwt-wcas-suggestion{padding-left:20px;padding-right:20px}.dgwt-wcas-open-pirx .dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp>.dgwt-wcas-suggestion,.dgwt-wcas-open-pirx body.dgwt-wcas-details-left .dgwt-wcas-details-wrapp{border-right:1px solid #ddd}.dgwt-wcas-open-pirx .dgwt-wcas-details-outside .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-details-outside.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp{margin-top:0;border-top:none}.dgwt-wcas-open-pirx body.dgwt-wcas-details-right .dgwt-wcas-suggestions-wrapp{border-right:none}.dgwt-wcas-open-pirx body.dgwt-wcas-details-right .dgwt-wcas-details-wrapp{border-left:1px solid #ddd}.dgwt-wcas-open-pirx body.dgwt-wcas-details-left .dgwt-wcas-suggestions-wrapp{border-left:none}.dgwt-wcas-open-pirx .dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-open.dgwt-wcas-nores.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp{min-height:70px!important}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-radius:0;background:0 0;padding:0 10px}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{border-color:transparent}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{padding-left:10px}.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:hover{background-color:transparent}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp{border-top:1px solid #e0e2e5}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return{background:#fff}.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return svg{left:17px;top:16px;width:17px;height:17px}.dgwt-wcas-style-pirx .dgwt-wcas-voice-search{right:15px;top:2px;opacity:1}.dgwt-wcas-style-pirx.dgwt-wcas-search-filled.dgwt-wcas-voice-search-supported .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{right:47px}.dgwt-wcas-style-pirx.dgwt-wcas-voice-search-supported .dgwt-wcas-preloader{margin-right:50px}.dgwt-wcas-suggestions-wrapp-fixed{position:fixed!important}
assets/js/admin.js CHANGED
@@ -680,6 +680,7 @@
680
  languageSwitcherClass: 'js-dgwt-wcas-analytics-lang',
681
  excludePhraseClass: 'js-dgwt-wcas-analytics-exclude-phrase',
682
  checkIndexerAction: 'js-dgwt-wcas-analytics-check-indexer',
 
683
  init: function () {
684
  var _this = this;
685
 
@@ -751,6 +752,7 @@
751
  $el.html(response.data.html);
752
  _this.loadCheckCriticalSearchesListeners();
753
  _this.loadMoreListeners();
 
754
  }
755
  }
756
  );
@@ -795,6 +797,30 @@
795
  })
796
 
797
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798
  },
799
  checkPhraseStatus: function ($el) {
800
  var _this = this,
@@ -902,10 +928,10 @@
902
  $loadMoreRow.removeClass(_this.rowLoadingClass);
903
  $loadMoreRow.find('img').remove();
904
  $('.' + _this.criticalSearchesLoadMoreClass + ' span:first-child').text(response.data.more_label);
905
- _this.loadCheckCriticalSearchesListeners();
906
  } else {
907
  $loadMoreRow.remove();
908
  }
 
909
  }
910
  }
911
  );
680
  languageSwitcherClass: 'js-dgwt-wcas-analytics-lang',
681
  excludePhraseClass: 'js-dgwt-wcas-analytics-exclude-phrase',
682
  checkIndexerAction: 'js-dgwt-wcas-analytics-check-indexer',
683
+ resetAnalyticsAction: 'js-dgwt-wcas-analytics-reset',
684
  init: function () {
685
  var _this = this;
686
 
752
  $el.html(response.data.html);
753
  _this.loadCheckCriticalSearchesListeners();
754
  _this.loadMoreListeners();
755
+ _this.resetStatsListener();
756
  }
757
  }
758
  );
797
  })
798
 
799
 
800
+ },
801
+ resetStatsListener: function () {
802
+ var _this = this;
803
+
804
+ $('.' + _this.resetAnalyticsAction).on('click', function (e) {
805
+ var $el = $(this);
806
+ e.preventDefault();
807
+ if (confirm(dgwt_wcas.analytics.labels.reset_stats_confirm)) {
808
+ var data = {
809
+ 'action': 'dgwt_wcas_reset_stats',
810
+ '_wpnonce': dgwt_wcas.analytics.nonce.reset_stats
811
+ };
812
+
813
+ $el.next().addClass('loading');
814
+
815
+ $.post(
816
+ ajaxurl,
817
+ data,
818
+ function (response) {
819
+ location.reload();
820
+ }
821
+ );
822
+ }
823
+ })
824
  },
825
  checkPhraseStatus: function ($el) {
826
  var _this = this,
928
  $loadMoreRow.removeClass(_this.rowLoadingClass);
929
  $loadMoreRow.find('img').remove();
930
  $('.' + _this.criticalSearchesLoadMoreClass + ' span:first-child').text(response.data.more_label);
 
931
  } else {
932
  $loadMoreRow.remove();
933
  }
934
+ _this.loadCheckCriticalSearchesListeners();
935
  }
936
  }
937
  );
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function($){var a={inputSel:"dgwt-wcas-options-toggle input[type=radio]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(c){var d=this,e=$('[name="'+c+'"]').closest("."+d.groupSel),a=$('[name="'+c+'"]:checked').val(),b="";d.hideAll(e),(a=a.replace("_","-")).length>0&&(b="wcas-opt-"+a),$("."+b).length>0&&$("."+b).fadeIn()},hideAll:function(a){a.find('tr[class*="wcas-opt-"]').hide()},registerListeners:function(){var a=this;$("."+a.inputSel).on("change",function(){a.reloadChoices($(this).attr("name"))})},init:function(){var a=this,b=$("."+a.inputSel+":checked");b.length>0&&(a.registerListeners(),b.each(function(){a.reloadChoices($(this).attr("name"))}))}},b={inputSel:"dgwt-wcas-options-cb-toggle input[type=checkbox]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(a){var c=a.is(":checked"),b=this.getGroupSelector(a);$("."+b+":not(.dgwt-wcas-options-cb-toggle)").hide(),c&&$("."+b).each(function(){$(this).hasClass("js-dgwt-wcas-adv-settings")&&$(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")||$(this).fadeIn()})},getGroupSelector(a){var b=a.closest(".dgwt-wcas-options-cb-toggle"),c="",d=b.attr("class").split(/\s+/);return $.each(d,function(b,a){-1!==a.indexOf("js-dgwt-wcas-cbtgroup-")&&(c=a)}),c},registerListeners:function(){var a=this;$(document).on("change","."+a.inputSel,function(){a.reloadChoices($(this))})},refresh:function(){var b=this,a=$("."+b.inputSel);a.length>0&&a.each(function(){var c=$(this).is(":checked"),a=b.getGroupSelector($(this));c?$("."+a).fadeIn():$("."+a+":not(.dgwt-wcas-options-cb-toggle)").hide()})},init:function(){var a=this,b=$("."+a.inputSel);b.length>0&&(a.registerListeners(),b.each(function(){a.reloadChoices($(this))}))}},c={inputSel:"js-dgwt-wcas-options-toggle-sibling input[type=checkbox]",toogleSibling:function(a){a.is(":checked")?a.closest("label").next().fadeIn():a.closest("label").next().hide()},registerListeners:function(){var a=this;$(document).on("change","."+a.inputSel,function(){a.toogleSibling($(this))})},init:function(){var a=this,b=$("."+a.inputSel);b.length>0&&(a.registerListeners(),b.each(function(){a.toogleSibling($(this))}))}},d={layoutSelect:"select[id*='search_layout']",overlayMobile:"input[id*='enable_mobile_overlay']",switchLayoutBreakpoint:"input[id*='mobile_breakpoint']",mobileOverlayBreakpoint:"input[id*='mobile_overlay_breakpoint']",searchIconColor:"input[id*='search_icon_color']",$layoutSelectEl:null,$overlayMobileEl:null,$switchLayoutBreakpointEl:null,$mobileOverlayBreakpointEl:null,$searchIconColorEl:null,setConditions:function(){var b=this.$layoutSelectEl.find("option:selected").val(),c=this.$overlayMobileEl.is(":checked"),a=$(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled");switch(this.hideOption(this.$switchLayoutBreakpointEl),this.hideOption(this.$mobileOverlayBreakpointEl),this.hideOption(this.$searchIconColorEl),$("input[id*='bg_search_icon_color']").closest("tr").show(),b){case"icon":a&&this.showOption(this.$searchIconColorEl);break;case"icon-flexible":case"icon-flexible-inv":a&&(this.showOption(this.$switchLayoutBreakpointEl),this.showOption(this.$searchIconColorEl));break;default:a&&$("input[id*='bg_search_icon_color']").closest("tr").hide()}c&&this.showOption(this.$mobileOverlayBreakpointEl)},hideOption:function(a){a.closest("tr").hide()},showOption:function(a){a.closest("tr").show()},registerListeners:function(){var a=this;a.$layoutSelectEl.on("change",function(){a.setConditions()}),a.$overlayMobileEl.on("change",function(){a.setConditions()})},init:function(){var a=this,b=$(a.layoutSelect);b.length>0&&(a.$layoutSelectEl=b,a.$overlayMobileEl=$(a.overlayMobile),a.$switchLayoutBreakpointEl=$(a.switchLayoutBreakpoint),a.$mobileOverlayBreakpointEl=$(a.mobileOverlayBreakpoint),a.$searchIconColorEl=$(a.searchIconColor),a.registerListeners(),setTimeout(function(){a.setConditions()},400))}},e={actionTriggerClass:"js-ajax-build-index",actionStopTriggerClass:"js-ajax-stop-build-index",indexingWrappoerClass:"js-dgwt-wcas-indexing-wrapper",indexerTabProgressClass:"js-dgwt-wcas-indexer-tab-progress",indexerTabErrorClass:"js-dgwt-wcas-indexer-tab-error",indexerMenuErrorClass:"dgwt-wcas-menu-warning-icon",getWrapper:function(){return $("."+this.indexingWrappoerClass).closest(".dgwt-wcas-settings-info")},registerListeners:function(){var a=this;$(document).on("click","."+a.actionTriggerClass,function(d){d.preventDefault();var b=$(this);b.attr("disabled","disabled"),$(".dgwt-wcas-settings-info").addClass("wcas-ajax-build-index-wait"),$("."+a.indexerTabErrorClass).removeClass("active"),$("."+a.indexerTabProgressClass).addClass("active");var c=!!b.hasClass("js-ajax-build-index-emergency");c&&($(".dgwt-wcas-indexing-header__title").text("[Emergency mode] Wait... Indexing in progress"),$(".dgwt-wcas-indexing-header__troubleshooting, .dgwt-wcas-indexing-header__actions, .js-dgwt-wcas-indexer-details").hide()),$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index",emergency:c,_wpnonce:dgwt_wcas.nonces.build_index},success:function(b){void 0!==b&&b.success&&(a.getWrapper().html(b.data.html),a.heartbeat())},complete:function(){b.removeAttr("disabled"),$(".dgwt-wcas-settings-info").removeClass("wcas-ajax-build-index-wait"),c&&window.location.reload()}})}),$(document).on("click","."+a.actionStopTriggerClass,function(b){b.preventDefault(),$(this).attr("disabled","disabled"),a.getWrapper().attr("data-stopping","1"),$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_stop_build_index",_wpnonce:dgwt_wcas.nonces.stop_build_index},success:function(b){void 0!==b&&b.success&&(a.getWrapper().html(b.data.html),a.heartbeat())},complete:function(){a.getWrapper().attr("data-stopping","0")}})})},heartbeat:function(){var a=this;setTimeout(function(){$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index_heartbeat",_wpnonce:dgwt_wcas.nonces.build_index_heartbeat},success:function(b){void 0!==b&&b.success&&"1"!==a.getWrapper().attr("data-stopping")&&(a.getWrapper().html(b.data.html),b.data.loop?a.heartbeat():($("."+a.indexerTabProgressClass).removeClass("active"),"error"===b.data.status?$("."+a.indexerTabErrorClass).addClass("active"):"completed"===b.data.status&&$("."+a.indexerMenuErrorClass).remove()),b.data.loop||!(b.data.refresh_once.length>0)||document.cookie.split(";").some(function(a){return 0===a.trim().indexOf("dgwt_wcas_refresh_once="+b.data.refresh_once)})||"none"!==$("#dgwt_wcas_troubleshooting-tab").css("display")||(document.cookie="dgwt_wcas_refresh_once="+b.data.refresh_once,location.reload()))}})},1e3)},detailsToggle:function(){var a;$(document).on("click",".js-dgwt-wcas-indexing-details-trigger",function(c){c.preventDefault();var b=$(".js-dgwt-wcas-indexer-details");b.hasClass("show")?(b.removeClass("show"),b.addClass("hide"),$(".js-dgwt-wcas-indexing__showd").addClass("show").removeClass("hide"),$(".js-dgwt-wcas-indexing__hided").addClass("hide").removeClass("show"),a=!1):(b.addClass("show"),b.removeClass("hide"),$(".js-dgwt-wcas-indexing__showd").addClass("hide").removeClass("show"),$(".js-dgwt-wcas-indexing__hided").addClass("show").removeClass("hide"),a=!0),$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_index_details_toggle",display:a}})})},init:function(){this.registerListeners(),$("."+this.indexingWrappoerClass).length>0&&this.heartbeat(),this.detailsToggle()}},f={init:function(){var a=this;$(".dgwt-wcas-selectize").length>0&&$.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:$(".dgwt-wcas-selectize").data("security")},success:function(b){void 0!==b&& void 0!==b.data&&a.initSelectize(b.data)}})},initSelectize:function(b){var a=$(".dgwt-wcas-selectize");a.length>0&&a.each(function(){var c=$(this),a=c.data("options"),d=b;if(a.length>0){a=JSON.parse('["'+decodeURI(a.replace(/&/g,'","').replace(/=/g,'","'))+'"]');var e="";a.forEach(function(a,b){if((b+1)%2==0){var c={value:a,label:e};d.push(c),e=""}e=a})}$(this).selectize({persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["value","label"],options:d,create:function(a){return{value:a.key,label:a.label}},load:function(a,b){if(!a.length)return b();$.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:c.data("security")},error:function(){b()},success:function(a){b(a.data)}})}})})}},g={init:function(){var a=$(".js-dgwt-wcas-tooltip");a.length>0&&a.each(function(){var b=$(this)[0],a=$(this).data("tooltip-html-el"),c=$(this).data("tooltip-placement");a&&new DgwtWcasTooltip(b,{title:$("."+a+" > .dgwt-wcas-tooltip-wrapper")[0],placement:c,trigger:"hover",html:!0})})}},h={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 a=this;$(document).on("click",".js-dgwt-wcas-settings__advanced",function(){var b;b=$(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")?"show":"hide",a.saveChoice(b)})},setStartingState:function(){var a=$("."+this.advClass);a.length>0&&($(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled")?(a.show(),b.refresh()):a.hide())},saveChoice:function(a){$(".js-dgwt-wcas-settings__advanced").append('<span class="dgwt-wcas-adv-settings-saving">saving...</span>'),$.ajax({url:ajaxurl,data:{_wpnonce:dgwt_wcas.nonces.advanced_options_switch,action:"dgwt_wcas_adv_settings",adv_settings_value:a}}).done(function(a){$(".dgwt-wcas-adv-settings-saving").remove()});var b=$(".js-dgwt-wcas-adv-settings-toggle");"show"===a&&(b.removeClass("woocommerce-input-toggle--disabled"),b.addClass("woocommerce-input-toggle--enabled")),"hide"===a&&(b.removeClass("woocommerce-input-toggle--enabled"),b.addClass("woocommerce-input-toggle--disabled")),this.toggleAdvancedOpt(a)},toggleAdvancedOpt:function(e){var c=this,a=$("."+c.advClass);a.length>0&&(a.addClass(c.highlightClass),a.addClass(c.transClass),"show"===e&&a.fadeIn(500,function(){setTimeout(function(){a.removeClass(c.highlightClass),setTimeout(function(){a.removeClass(c.transClass),b.refresh(),d.setConditions()},500)},500)}),"hide"===e&&setTimeout(function(){a.removeClass(c.transClass),a.fadeOut(500,function(){a.removeClass(c.highlightClass)})},500))}},i={placeholderClass:"js-dgwt-wcas-stats-placeholder",placeholderClassLoaded:"js-dgwt-wcas-stats-placeholder-loaded",preloaderClass:"dgwt-wcas-stats-preloader",settingsGroupSel:"#dgwt_wcas_analytics",criticalSearchesLoadMoreClass:"js-dgwt-wcas-critical-searches-load-more",autocompleteWithResultsLoadMoreClass:"js-dgwt-wcas-autocomplete-with-results-load-more",searchPageWithResultsLoadMoreClass:"js-dgwt-wcas-search-page-with-results-load-more",checkPhraseStatusClass:"js-dgwt-wcas-stats-critical-check",checkPhraseStatusInitClass:"js-dgwt-wcas-stats-critical-check-init",rowLoadingClass:"dgwt-wcas-analytics-row-loading",languageSwitcherClass:"js-dgwt-wcas-analytics-lang",excludePhraseClass:"js-dgwt-wcas-analytics-exclude-phrase",checkIndexerAction:"js-dgwt-wcas-analytics-check-indexer",init:function(){void 0!==dgwt_wcas.analytics&&dgwt_wcas.analytics.enabled&&this.interfaceLoaderListener()},interfaceLoaderListener:function(){var b=this,a=$("."+b.languageSwitcherClass);$(document).on("dgwt_wcas_settings_group_active",function(c,a){$(a).length>0&&"dgwt_wcas_analytics"===a.id&&(b.isLoaded()||b.loadInterface())}),a.length>0&&a.on("change",function(){var a=$("."+b.placeholderClass);a.length>0&&(a.html(""),b.loadInterface())})},isLoaded:function(){return $("."+this.placeholderClassLoaded).length>0},showPreloader:function(){var a=$("."+this.placeholderClass),b='<img class="'+this.preloaderClass+'" src="'+dgwt_wcas.analytics.images.placeholder+'" />';a.length&&a.append(b)},loadInterface:function(){var a=this,b=$("."+a.languageSwitcherClass+" option:selected");a.showPreloader();var c={action:"dgwt_wcas_load_stats_interface","_wpnonce":dgwt_wcas.analytics.nonce.analytics_load_interface};b.length>0&&(c.lang=b.val()),$.post(ajaxurl,c,function(b){var c=$("."+a.placeholderClass);"object"==typeof b&&b.success&&c.length>0&&(c.addClass(a.placeholderClassLoaded),c.html(b.data.html),a.loadCheckCriticalSearchesListeners(),a.loadMoreListeners())})},loadCheckCriticalSearchesListeners:function(){var a=this,b=$("."+a.checkPhraseStatusClass+":not(."+a.checkPhraseStatusInitClass+")");b.on("click",function(b){b.preventDefault(),$(b.target).after('<img src="'+dgwt_wcas.images.admin_preloader_url+'" />'),a.checkPhraseStatus($(b.target))}),b.each(function(){$(this).addClass(a.checkPhraseStatusInitClass)})},loadMoreListeners:function(){var a=this;$("."+a.criticalSearchesLoadMoreClass).on("click",function(b){b.preventDefault(),$(this).before('<img src="'+dgwt_wcas.images.admin_preloader_url+'" />'),$(this).closest("tr").addClass(a.rowLoadingClass),a.loadMoreCriticalSearches()}),$("."+a.autocompleteWithResultsLoadMoreClass).on("click",function(b){b.preventDefault(),a.loadMorePhrases("autocomplete",$(b.target))}),$("."+a.searchPageWithResultsLoadMoreClass).on("click",function(b){b.preventDefault(),a.loadMorePhrases("search-page",$(b.target))})},checkPhraseStatus:function(c){var d=this,a=$("."+d.languageSwitcherClass+" option:selected"),b={action:"dgwt_wcas_check_critical_phrase",phrase:c.closest("tr").find("td:nth-child(2)").text(),"_wpnonce":dgwt_wcas.analytics.nonce.check_critical_phrase};a.length>0&&(b.lang=a.val()),$.post(ajaxurl,b,function(a){if("object"==typeof a&&a.success){var b=c.closest("tr");c.closest("td").html(a.data.html);var e=b.find("."+d.excludePhraseClass),f=b.find("."+d.checkIndexerAction);e.length>0&&e.on("click",function(a){a.preventDefault();var c="<p>Processing...</p>";$(a.target).closest("td").html(c),d.excludePhrase(b)}),f.length>0&&$("."+d.checkIndexerAction).on("click",function(b){b.preventDefault();var a=$("#dgwt_wcas_performance-tab");a.length>0&&(a[0].click(),$([document.documentElement,document.body]).animate({scrollTop:0},1e3))})}})},excludePhrase:function(c){var a=$("."+this.languageSwitcherClass+" option:selected"),b={action:"dgwt_wcas_exclude_critical_phrase",phrase:c.find("td:nth-child(2)").text(),"_wpnonce":dgwt_wcas.analytics.nonce.exclude_critical_phrase};a.length>0&&(b.lang=a.val()),$.post(ajaxurl,b,function(a){"object"==typeof a&&a.success&&(c.addClass("dgwt-wcas-analytics-disable-row"),c.find("td:last-child").html(a.data))})},loadMoreCriticalSearches:function(){var c=this,a=$("."+c.languageSwitcherClass+" option:selected"),b={action:"dgwt_wcas_laod_more_critical_searches",loaded:$(".js-dgwt-wcas-critical-searches-row").length,"_wpnonce":dgwt_wcas.analytics.nonce.load_more_critical_searches};a.length>0&&(b.lang=a.val()),$.post(ajaxurl,b,function(a){if("object"==typeof a&&a.success){var b=$("."+c.criticalSearchesLoadMoreClass).closest("tr");a.data.html.length>0&&b.before(a.data.html),a.data.more>0?(b.removeClass(c.rowLoadingClass),b.find("img").remove(),$("."+c.criticalSearchesLoadMoreClass+" span:first-child").text(a.data.more_label),c.loadCheckCriticalSearchesListeners()):b.remove()}})},loadMorePhrases:function(d,b){var c=$("."+this.languageSwitcherClass+" option:selected");if(b.before('<img src="'+dgwt_wcas.images.admin_preloader_url+'" />'),b.closest("tr").addClass(this.rowLoadingClass),"autocomplete"===d)var a={action:"dgwt_wcas_laod_more_autocomplete",loaded:$(".js-dgwt-wcas-autocomplete-row").length,"_wpnonce":dgwt_wcas.analytics.nonce.load_more_autocomplete};else var a={action:"dgwt_wcas_laod_more_search_page",loaded:$(".js-dgwt-wcas-search-page-row").length,"_wpnonce":dgwt_wcas.analytics.nonce.load_more_search_page};c.length>0&&(a.lang=c.val()),$.post(ajaxurl,a,function(a){"object"==typeof a&&a.success&&b.closest("tbody").html(a.data.html)})}};window.DGWT_WCAS_SEARCH_PREVIEW={previewWrapper:{},searchWrapp:{},suggestionWrapp:{},searchInput:{},animateTypingInterval:null,init:function(){var a=this;a.previewWrapper=$(".js-dgwt-wcas-preview"),a.searchWrapp=$(".js-dgwt-wcas-search-wrapp"),a.suggestionWrapp=$(".js-dgwt-wcas-suggestions-wrapp"),a.detailsWrapp=$(".js-dgwt-wcas-details-wrapp"),a.searchInput=$(".js-dgwt-wcas-search-input"),a.onChangeHandler(),a.onColorHandler(),a.onTypeHandler(),a.disableSubmit(),a.noResultsHandler(),a.fixSizesInit(),a.keepPreviewVisible(),a.animationController()},isChecked:function(a){return!!(a.length>0&&a.is(":checked"))},isColor:function(a){return"string"==typeof a&&7===a.length&&"#"===a.charAt(0)},camelCase:function(d){for(var b=d.split("_"),c="",a=0;a<b.length;a++)c+=b[a].charAt(0).toUpperCase()+b[a].slice(1);return c},disableSubmit:function(){var a,b;$(".js-dgwt-wcas-preview-source").on("click",function(c){c.preventDefault();var d=c.pageX-100,e=c.pageY+10;void 0!==a&&(clearTimeout(a),b&&b.remove()),$("body").append('<div class="dgwt-wcas-click-alert">No interaction! This is only a preview.</div>'),(b=$(".dgwt-wcas-click-alert")).css({left:d,top:e}),$(".dgwt-wcas-preview-source").addClass("dgwt-wcas-preview-source-no-click"),a=setTimeout(function(){b.fadeOut(500,function(){$(this).remove(),$(".dgwt-wcas-preview-source").removeClass("dgwt-wcas-preview-source-no-click")})},2e3)})},noResultsHandler:function(){var b=this,c=".js-dgwt-wcas-preview .dgwt-wcas-suggestion:not(.js-dgwt-wcas-suggestion-nores)",d=".js-dgwt-wcas-suggestion-nores",a="input[id*='search_no_results_text']";$(document).on("focus",a,function(){$(c).addClass("dgwt-wcas-hide"),$(d).removeClass("dgwt-wcas-hide"),b.detailsWrapp.addClass("dgwt-wcas-hide"),b.suggestionWrapp.addClass("dgwt-wcas-preview-nores")}),$(document).on("blur",a,function(){$(c).removeClass("dgwt-wcas-hide"),$(d).addClass("dgwt-wcas-hide"),b.detailsWrapp.removeClass("dgwt-wcas-hide"),b.suggestionWrapp.removeClass("dgwt-wcas-preview-nores")})},onChangeHandler:function(){for(var a=this,c=["show_submit_button","max_form_width","search_style","search_layout","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"],b=0;b<c.length;b++){var g=["search_style","search_layout"].includes(c[b])?"select":"input",h=g+"[id='dgwt_wcas_settings\\["+c[b]+"\\]']",i=g+"[id^='dgwt_wcas_settings'][data-option-trigger='"+c[b]+"']",e=$(h),f=$(i),d="onChange"+a.camelCase(c[b]);"function"==typeof a[d]&&e.length>0?(a[d](e,e.val()),$(document).on("change",h,function(){d=$(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),d="onChange"+a.camelCase(d),"function"==typeof a[d]&&a[d]($(this),this.value)})):"function"==typeof a[d]&&f.length>0?(a[d](f,f.val()),$(document).on("change",i,function(){d=$(this).data("option-trigger"),d="onChange"+a.camelCase(d),"function"==typeof a[d]&&a[d]($(this),this.value)})):a[d]("","")}},onColorHandler:function(){for(var c=this,b=["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<b.length;a++){var d="input[id*='"+b[a]+"']",e=$(d),f="onColor"+c.camelCase(b[a]);c[f](e,e.val()),$(document).on("change",d,function(){f=$(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),f="onColor"+c.camelCase(f),c[f]($(this),this.value)})}},onColorChangeHandler:function(a,c){var b=a.attr("id").replace("]","").replace("dgwt_wcas_settings[","");this[b="onColor"+this.camelCase(b)](a,c)},onTypeHandler:function(){for(var c=this,b=["search_submit_text","search_placeholder","search_no_results_text","search_see_all_results_text"],a=0;a<b.length;a++){var d="input[id*='"+b[a]+"']",e=$(d),f="onType"+c.camelCase(b[a]);c[f](e,e.val()),$(document).on("input",d,function(a){f=$(a.target).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),f="onType"+c.camelCase(f),c[f]($(a.target),this.value)})}},onChangeMaxFormWidth:function(b,a){a.length>0&&"0"!=a?(this.searchWrapp.css("max-width",a+"px"),this.suggestionWrapp.css("max-width",a+"px")):(this.searchWrapp.css("max-width","100%"),this.suggestionWrapp.css("max-width","100%")),this.onChangeShowDetailsBox($("input[id*='show_details_box']"))},onChangeShowSubmitButton:function(e,f){var a=this,b=$(".js-dgwt-wcas-search-submit");if(a.isChecked(e)){a.searchWrapp.addClass("dgwt-wcas-has-submit"),a.searchWrapp.removeClass("dgwt-wcas-no-submit"),b.show(),$(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").hide();var c=$("input[id*='bg_submit_color']"),d=$("input[id*='text_submit_color']");a.onColorBgSubmitColor(c,c.val()),a.onColorTextSubmitColor(d,d.val()),setTimeout(function(){a.positionPreloader()},10)}else a.searchWrapp.addClass("dgwt-wcas-no-submit"),a.searchWrapp.removeClass("dgwt-wcas-has-submit"),b.hide(),$(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").show(),a.positionPreloader()},onChangeShowProductImage:function(c,d){var b=$(".js-dgwt-wcas-si"),a=$(".js-dgwt-wcas-content-wrapp");this.isChecked(c)?(this.suggestionWrapp.addClass("dgwt-wcas-has-img"),$(".dgwt-wcas-suggestion-product > .dgwt-wcas-st").remove(),$(".dgwt-wcas-suggestion-product > .dgwt-wcas-sp").remove(),a.show(),b.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-img"),a.each(function(){$(this).closest(".dgwt-wcas-suggestion-product").append($(this).html())}),a.hide(),b.hide())},onChangeShowProductSku:function(b,c){var a=$(".js-dgwt-wcas-sku");this.isChecked(b)?(this.suggestionWrapp.addClass("dgwt-wcas-has-sku"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-sku"),a.hide())},onChangeShowProductDesc:function(b,c){var a=$(".js-dgwt-wcas-sd");this.isChecked(b)?(this.suggestionWrapp.addClass("dgwt-wcas-has-desc"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-desc"),a.hide())},onChangeShowProductPrice:function(b,c){var a=$(".js-dgwt-wcas-sp");this.isChecked(b)?(this.suggestionWrapp.addClass("dgwt-wcas-has-price"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-price"),a.hide())},onChangeShowMatchingCategories:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-cat"),a=$(".dgwt-wcas-suggestion-cat");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowCategoriesImages:function(b,c){var a=$(".js-dgwt-wcas-suggestion-cat");this.isChecked(b)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingTags:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-tag"),a=$(".dgwt-wcas-suggestion-tag");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowMatchingBrands:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-brand"),a=$(".dgwt-wcas-suggestion-brand");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowBrandsImages:function(b,c){var a=$(".js-dgwt-wcas-suggestion-brand");this.isChecked(b)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingPosts:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-post"),a=$(".dgwt-wcas-suggestion-post");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowMatchingPages:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-page"),a=$(".dgwt-wcas-suggestion-page");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowGroupedResults:function(b,d){var a=$(".dgwt-wcas-st--direct-headline"),c=$(".dgwt-wcas-suggestion-headline");this.isChecked(b)?(a.addClass("dgwt-wcas-hidden"),this.suggestionWrapp.addClass("dgwt-wcas-has-headings"),$(".dgwt-wcas-suggestion-headline").show(),this.isChecked($("input[data-option-trigger='show_matching_categories']"))||$(".dgwt-wcas-suggestion-headline-cat").hide(),this.isChecked($("input[data-option-trigger='show_matching_tags']"))||$(".dgwt-wcas-suggestion-headline-tag").hide(),this.isChecked($("input[data-option-trigger='show_matching_brands']"))||$(".dgwt-wcas-suggestion-headline-brand").hide(),this.isChecked($("input[id*='show_matching_posts']"))||$(".dgwt-wcas-suggestion-headline-post").hide(),this.isChecked($("input[id*='show_matching_pages']"))||$(".dgwt-wcas-suggestion-headline-page").hide()):(a.removeClass("dgwt-wcas-hidden"),c.hide(),this.suggestionWrapp.removeClass("dgwt-wcas-has-headings"))},onChangeSuggestionsLimit:function(a,b){setTimeout(function(){var d=0,f=7,i=$(".dgwt-wcas-suggestion-duplicated"),j=["brand","cat","tag","post","page","product"];b.length>0&&"0"!=b&&(f=Math.abs(b)),i.length>0&&i.remove();var c=[];for(d=0;d<j.length;d++){var k=$(".dgwt-wcas-suggestion-"+j[d]+":not(.js-dgwt-wcas-suggestion-hidden)");k.length>0&&c.push(k)}var g=c.length;if(c.length>0)for(var l=f-c.length,e=c.length-1;l>0;){var h=c[e].clone();h.addClass("dgwt-wcas-suggestion-duplicated"),h.removeClass("dgwt-wcas-suggestion-selected"),c[e].after(h),g++,--e<0&&(e=c.length-1),l--}g>f&&a.val(g)},10)},onChangeShowDetailsBox:function(b,c){var a=this;a.isChecked(b)?(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(){$(".dgwt-wcas-suggestion-product:not(.dgwt-wcas-suggestion-duplicated)").addClass("dgwt-wcas-suggestion-selected");var c=$(".js-dgwt-wcas-preview-bar-example");if(c.width()>=550){a.previewWrapper.addClass("dgwt-wcas-full-width");var b=getComputedStyle(c[0]).width;(b=Math.round(parseFloat(b.replace("px",""))))%2==0?(a.suggestionWrapp.css("width",Math.round(b/2)),a.detailsWrapp.css("width",Math.round(b/2))):(a.suggestionWrapp.css("width",Math.floor(b/2)),a.detailsWrapp.css("width",Math.ceil(b/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"),$(".dgwt-wcas-suggestion-product").removeClass("dgwt-wcas-suggestion-selected"),a.suggestionWrapp.css("width",""),a.detailsWrapp.css("width",""))},onChangeSearchStyle:function(h,a){var b,e=this,d=["solaris","pirx"],c=$('input[id*="show_submit_button"]'),f=$('label[for*="bg_submit_color"]');for($(".dgwt-wcas-ico-magnifier").addClass("dgwt-wcas-hidden"),b=0;b<d.length;b++)$(".js-dgwt-wcas-preview").removeClass("dgwt-wcas-open-"+d[b]),$(".js-dgwt-wcas-search-wrapp").removeClass("dgwt-wcas-style-"+d[b]);if($(".js-dgwt-wcas-ico-magnifier-"+a).removeClass("dgwt-wcas-hidden"),$(".js-dgwt-wcas-preview").addClass("dgwt-wcas-open-"+a),$(".js-dgwt-wcas-search-wrapp").addClass("dgwt-wcas-style-"+a),"solaris"===a&&($('label[for*="show_submit_button"] .js-dgwt-wcas-tooltip').addClass("dgwt-wcas-hidden"),$('label[for*="search_submit_text"]').closest("tr").removeClass("dgwt-wcas-hidden"),$('input[id*="search_submit_text"]').prop("disabled",!1),f.closest("tr").removeClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(1)').removeClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(2)').addClass("dgwt-wcas-hidden"),c.prop("disabled",!1),$(".js-dgwt-wcas-submit-button-pirx-tooltip").removeClass("dgwt-wcas-hidden"),setTimeout(function(){e.positionPreloader()},300)),"pirx"===a){$('label[for*="show_submit_button"] .js-dgwt-wcas-tooltip').removeClass("dgwt-wcas-hidden"),$('label[for*="search_submit_text"]').closest("tr").addClass("dgwt-wcas-hidden"),$('input[id*="search_submit_text"]').prop("disabled",!0),$('label[for*="bg_submit_color"]').closest("tr").addClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(2)').removeClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(1)').addClass("dgwt-wcas-hidden"),$('input[id*="search_submit_text"]').val("");var g=f.closest("tr").find(".wp-picker-clear");g.length>0&&g[0].click(),e.onColorBgSubmitColor(),c.is(":checked")||c[0].click(),c.prop("disabled",!0),e.onTypeSearchSubmitText($('input[id*="search_submit_text"]'),""),setTimeout(function(){e.positionPreloader()},10)}},onChangeSearchLayout:function(e,d){var b=$(".js-dgwt-wcas-preview-device-info"),c=$(".js-dgwt-wcas-preview-bar-example"),a=$(".js-dgwt-wcas-preview-icon-example");switch($(".js-dgwt-wcas-preview-device-info > span").addClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-preview-icon-only"),d){case"classic":b.addClass("dgwt-wcas-hidden"),c.removeClass("dgwt-wcas-hidden"),a.addClass("dgwt-wcas-hidden");break;case"icon":b.addClass("dgwt-wcas-hidden"),c.addClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-hidden"),$(".dgwt-wcas-search-form").removeClass("dgwt-wcas-hidden"),$(".dgwt-wcas-search-icon-arrow").removeClass("dgwt-wcas-hidden"),a.addClass("dgwt-wcas-preview-icon-only");break;case"icon-flexible":b.removeClass("dgwt-wcas-hidden"),c.removeClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-form").addClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-icon-arrow").addClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="desktop"] span:nth-child(2)').removeClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="mobile"] span:nth-child(1)').removeClass("dgwt-wcas-hidden");break;case"icon-flexible-inv":b.removeClass("dgwt-wcas-hidden"),c.removeClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-form").addClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-icon-arrow").addClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="desktop"] span:nth-child(1)').removeClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="mobile"] span:nth-child(2)').removeClass("dgwt-wcas-hidden")}},onColorSearchIconColor:function(b,a){this.isColor(a)?this.searchWrapp.find(".dgwt-wcas-ico-magnifier-handler path").css("fill",a):this.searchWrapp.find(".dgwt-wcas-ico-magnifier-handler path").css("fill","")},onColorBgInputColor:function(b,a){this.isColor(a)?this.searchInput.css("background-color",a):this.searchInput.css("background-color","")},onColorTextInputColor:function(e,a){var c="dgwt-wcas-preview-placeholder-style";if(this.isColor(a)){var b='<style class="'+c+'">';b+=".dgwt-wcas-search-input {color:"+a+"!important;}",b+=".dgwt-wcas-ico-magnifier path {fill:"+a+"}",b+="</style>",$("head").append(b),this.searchInput.css("color",a)}else{this.searchInput.css("color","");var d=$("."+c);d.length>0&&d.remove()}},onColorBorderInputColor:function(b,a){this.isColor(a)?this.searchInput.css("border-color",a):this.searchInput.css("border-color","")},onColorBgSubmitColor:function(e,b){var c="dgwt-wcas-preview-submit-style";if(this.isChecked($("input[id*='show_submit_button']"))&&this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-search-submit::before{border-color: transparent "+b+"!important;}",a+=".dgwt-wcas-search-submit:hover::before{border-right-color: "+b+"!important;}",a+=".dgwt-wcas-search-submit:focus::before{border-right-color: "+b+"!important;}",a+=".dgwt-wcas-search-submit{background-color: "+b+"!important;}",a+=".dgwt-wcas-om-bar .dgwt-wcas-om-return{background-color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorTextSubmitColor:function(b,a){this.isChecked($("input[id*='show_submit_button']"))&&this.isColor(a)?($(".js-dgwt-wcas-search-submit").css("color",a),$(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",a)):(this.searchInput.css("background-color",""),$(".js-dgwt-wcas-search-submit").css("color",""),$(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",""))},onColorSugBgColor:function(e,b){var c="dgwt-wcas-preview-sugbgcol-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-suggestions-wrapp,",a+=".dgwt-wcas-details-wrapp",a+="{background-color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorSugHoverColor:function(b,a){this.isColor(a)?setTimeout(function(){$(".dgwt-wcas-suggestion-selected").css("background-color",a)},50):$(".dgwt-wcas-suggestion-selected").css("background-color","")},onColorSugTextColor:function(e,b){var c="dgwt-wcas-preview-sugtextcol-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-suggestions-wrapp *,",a+=".dgwt-wcas-details-wrapp *,",a+=".dgwt-wcas-sd,",a+=".dgwt-wcas-suggestion *",a+="{color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorSugHighlightColor:function(e,b){var c="dgwt-wcas-preview-sughighlight-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-st strong,",a+=".dgwt-wcas-sd strong",a+="{color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorSugBorderColor:function(e,b){var c="dgwt-wcas-preview-sugborder-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-suggestions-wrapp,",a+=".dgwt-wcas-details-wrapp,",a+=".dgwt-wcas-suggestion,",a+=".dgwt-wcas-datails-title,",a+=".dgwt-wcas-details-more-products",a+="{border-color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onTypeSearchSubmitText:function(d,b){var a=$(".js-dgwt-wcas-search-submit-l"),c=$(".js-dgwt-wcas-search-submit-m");b.length>0?(a.text(b),a.show(),c.hide()):(a.text(""),a.hide(),c.show()),this.positionPreloader()},onTypeSearchPlaceholder:function(b,a){0==a.length&&(a=dgwt_wcas.labels.search_placeholder),this.searchInput.attr("placeholder",a)},onTypeSearchNoResultsText:function(b,a){0==a.length&&(a=dgwt_wcas.labels.no_results),$(".js-dgwt-wcas-suggestion-nores span").text(a)},onTypeSearchSeeAllResultsText:function(b,a){0==a.length&&(a=dgwt_wcas.labels.show_more),$(".js-dgwt-wcas-st-more-label").text(a)},positionPreloader:function(){var b=$(".js-dgwt-wcas-search-wrapp:not(.dgwt-wcas-hidden) .js-dgwt-wcas-search-submit"),d=b.is(":visible"),c=$("select[id*='search_style'] option:selected").val(),a=b.width()+35;"pirx"==c&&(a=38),d||"solaris"!=c||(a=7),$(".dgwt-wcas-preloader").css("right",a+"px")},fixSizesInit:function(){var a=this;$(document).on("click","#dgwt_wcas_autocomplete-tab",function(){a.onChangeShowDetailsBox($("input[id*='show_details_box']"))})},keepPreviewVisible:function(){var a=$(".js-dgwt-wcas-preview-inner"),b=$(".js-dgwt-wcas-preview"),c=$(".js-dgwt-wcas-preview-source"),d=$(".dgwt-eq-settings-form");$(window).on("scroll.autocomplete",function(){var f=$(document).scrollTop(),e=b[0].getBoundingClientRect().top-40;if(e<0){var g=-1*e<1?0:-1*e;if(c.offset().top+c.outerHeight(!1)<=Math.floor(d.offset().top+d.outerHeight(!1))-90)a.css("top",g+"px");else if(f+40<a.offset().top){var h=a.css("top").replace(/px/i,"")-10;a.css("top",h+"px")}}else a.css("top",0)})},animationController:function(){var a=this;$(window).on("load",function(){var b=$("#dgwt_wcas_form_body-tab");b.length&&b.hasClass("nav-tab-active")&&a.startAnimateTyping()}),$(".dgwt_wcas_settings-nav-tab-wrapper > a").on("click",function(){"dgwt_wcas_form_body-tab"===$(this).attr("id")?(a.stopAnimateTyping(),a.startAnimateTyping()):a.stopAnimateTyping()}),$(".dgwt_wcas_settings-nav-tab-wrapper > a").on("click",function(){"dgwt_wcas_form_body-tab"===$(this).attr("id")?(a.stopAnimateTyping(),a.startAnimateTyping()):a.stopAnimateTyping()}),$('input[id*="search_placeholder"]').on("focus",function(){a.stopAnimateTyping(),_this.searchInput.val("")}),$('input[id*="search_placeholder"]').on("blur",function(){a.startAnimateTyping()})},startAnimateTyping:function(){var a=this,b=0,c=$(".js-dgwt-wcas-search-wrapp"),d=$(".js-dgwt-wcas-search-input"),e=$(".dgwt-wcas-preloader"),f=$(".js-dgwt-wcas-preview-elements-close").html();a.animateTypingInterval=setInterval(function(){10== ++b&&(d.val("f"),c.addClass("dgwt-wcas-search-filled"),c.addClass("dgwt-wcas-search-focused"),e.addClass("dgwt-wcas-close")),11===b&&d.val("fi"),12===b&&(d.val("fib"),e.append(f),a.positionPreloader()),13===b&&d.val("fibo"),14===b&&d.val("fibo "),15===b&&d.val("fibo s"),16===b&&d.val("fibo se"),17===b&&d.val("fibo sea"),18===b&&d.val("fibo sear"),19===b&&d.val("fibo searc"),20===b&&d.val("fibo search"),30===b&&d.val("fibo searc"),31===b&&d.val("fibo sear"),32===b&&d.val("fibo sea"),33===b&&d.val("fibo se"),34===b&&d.val("fibo s"),35===b&&d.val("fibo "),36===b&&d.val("fibo"),37===b&&d.val("fib"),38===b&&(d.val("fi"),e.removeClass("dgwt-wcas-close")),39===b&&d.val("f"),40===b&&(d.val(""),e.html(""),c.removeClass("dgwt-wcas-search-filled")),45===b&&(b=0)},200)},stopAnimateTyping(){var b=$(".js-dgwt-wcas-search-wrapp"),c=$(".js-dgwt-wcas-search-input"),a=$(".dgwt-wcas-preloader");a.removeClass("dgwt-wcas-close"),c.val(""),a.html(""),b.removeClass("dgwt-wcas-search-filled"),clearInterval(this.animateTypingInterval)}};var j={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",maintenanceAnalyticsButtonName:"dgwt-wcas-maintenance-analytics",switchAlternativeEndpoint:"dgwt-wcas-switch-alternative-endpoint",dismissElementorTemplateButtonName:"dgwt-wcas-dismiss-elementor-template",init:function(){var a=this;if(void 0===dgwt_wcas.troubleshooting)return;let b=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended;b>0&&($(a.counterClass).text(b).addClass("active"),$(a.settingsTab).addClass("enabled")),dgwt_wcas.troubleshooting.tests.results_async.length>0&&$.each(dgwt_wcas.troubleshooting.tests.results_async,function(){a.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.direct.length>0&&$.each(dgwt_wcas.troubleshooting.tests.direct,function(){a.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.async.length>0&&a.maybeRunNextAsyncTest(),$(document).on("click",'input[name="'+a.resetButtonName+'"]',function(c){$('input[name="'+a.resetButtonName+'"]').attr("disabled","disabled");var b={action:"dgwt_wcas_troubleshooting_reset_async_tests","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_reset_async_tests};return $.post(ajaxurl,b,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.fixOutofstockButtonName+'"]',function(c){$('input[name="'+a.fixOutofstockButtonName+'"]').attr("disabled","disabled").next().addClass("loading");var b={action:"dgwt_wcas_troubleshooting_fix_outofstock","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_fix_outofstock};return $.post(ajaxurl,b,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.maintenanceAnalyticsButtonName+'"]',function(c){$('input[name="'+a.maintenanceAnalyticsButtonName+'"]').attr("disabled","disabled").next().addClass("loading");var b={action:"dgwt_wcas_troubleshooting_maintenance_analytics","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_maintenance_analytics};return $.post(ajaxurl,b,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.switchAlternativeEndpoint+'"]',function(d){var b=1===parseInt($(this).data("switch"))?"enable":"disable";$('input[name="'+a.switchAlternativeEndpoint+'"]').attr("disabled","disabled").next().addClass("loading");var c={action:"dgwt_wcas_troubleshooting_switch_alternative_endpoint","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_switch_alternative_endpoint,switch:b};return $.post(ajaxurl,c,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.dismissElementorTemplateButtonName+'"]',function(c){$('input[name="'+a.dismissElementorTemplateButtonName+'"]').attr("disabled","disabled");var b={action:"dgwt_wcas_troubleshooting_dismiss_elementor_template","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_dismiss_elementor_template};return $.post(ajaxurl,b,function(){location.reload()}),!1})},appendIssue:function(a,c){var b,d=wp.template("dgwt-wcas-troubleshooting-issue"),e=$(this.issuesListClass+"-"+a.status);"good"!==a.status&&($(this.noIssuesClass).hide(),c&&dgwt_wcas.troubleshooting.tests.issues[a.status]++,(b=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended)>0&&($(this.counterClass).text(b).addClass("active"),$(this.settingsTab).addClass("enabled")),$(e).append(d(a)))},maybeRunNextAsyncTest:function(){var a=this;dgwt_wcas.troubleshooting.tests.async.length>0&&$.each(dgwt_wcas.troubleshooting.tests.async,function(){var b={action:"dgwt_wcas_troubleshooting_test",test:this.test,"_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_async_test};return!!this.completed||(this.completed=!0,$(a.progressBar).show(),$.post(ajaxurl,b,function(b){b.success&&a.appendIssue(b.data,!0),a.maybeRunNextAsyncTest()}),!1)}),a.recalculateProgression()},recalculateProgression:function(){var b=this,c=dgwt_wcas.troubleshooting.tests.async.length,d=0;$.each(dgwt_wcas.troubleshooting.tests.async,function(){this.completed&&d++});var a=Math.ceil(d/c*100);$(b.progressBarInner).css("width",a+"%"),100===a&&setTimeout(function(){$(b.progressBar).slideUp()},2e3)}},k={moveOptionClass:".js-dgwt-wcas-move-option",init:function(){var a=$(this.moveOptionClass);a.length>0&&$.each(a,function(c,a){var b=$("#"+$(a).data("move-dest").replace(/(:|\.|\[|\])/g,"\\$1"));b.length>0&&($(a).closest("tr").hasClass("dgwt-wcas-premium-only")&&$(a).addClass("dgwt-wcas-premium-only"),$(a).clone().appendTo(b.closest("td fieldset"))),$(a).closest("tr").remove()})}},l={init:function(){"undefined"!=typeof Vue&&(Vue.component("dgwt-wcas-rule",{template:"#dgwt-wcas-settings-filters-rules-rule",components:{Selectize},props:["nonce","rule","rules","index"],data:()=>({isSelectActive:!0}),computed:{ruleValue(a){return this.rule.group}},watch:{rule:{handler:function(){this.$emit("update:rule",this.index)},deep:!0},ruleValue(){var a=this;this.$emit("change:group",this.index),this.isSelectActive=!1,setTimeout(function(){a.isSelectActive=!0},0)}},methods:{deleteRule(){this.$emit("delete:rule",this.index)},getSelectizeSettings(a){var b=void 0===dgwt_wcas_filters_rules_selected_options[a]?[]:dgwt_wcas_filters_rules_selected_options[a];return function({nonce:b,options:a,type:c}){return{persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["label"],options:a,preload:!0,create:function(a){return{value:a.key,label:a.label}},load:function(a,d){$.ajax({url:ajaxurl,method:"POST",data:{action:"dgwt_wcas_settings_search_terms",query:a,type:c,_wpnonce:b},error:function(){d()},success:function(a){d(a.data)}})}}}({nonce:this.nonce,type:a,options:b})}}}),new Vue({el:"#dgwt-wcas-settings-filters-rules",components:{Selectize},data:()=>({rules:[]}),mounted(){try{let a=JSON.parse(this.$refs["dgwt-wcas-settings-filters-rules-ref"].value);$.each(a,function(b,c){a[b].key=Math.random()}),this.rules=a}catch(b){}this.updateInput()},methods:{addRule(){this.rules.push({group:"",values:[],key:Math.random()}),this.updateInput()},changeGroup(a){this.rules[a].values=[],this.updateInput()},deleteRule(a){this.rules=this.rules.filter(function(c,b){return b!==a}),this.updateInput()},updateInput(){let a=JSON.parse(JSON.stringify(this.rules));this.$refs["dgwt-wcas-settings-filters-rules-ref"].value=JSON.stringify(a.map(function(a){return a.key,delete a.key,a}))}}}))}};$(document).ready(function(){var m,n;(m=$(".js-dgwt-wcas-settings-margin-nob")).length>0&&m.each(function(){var b=$(this).find("td .dgwt-wcas-fieldset");if(b.length>0){var c=$(this).prev(".js-dgwt-wcas-settings-margin");if(c.length>0){var e=$(this).attr("class").split(/\s+/),d="";$.each(e,function(b,a){-1!==a.indexOf("js-dgwt-wcas-cbtgroup-")&&(d=a)});var a=b.clone(!0,!0);a.addClass("dgwt-wcas-settings-margin-nob"),d&&a.addClass(d),a.appendTo(c.find("td")),$(this).remove()}}}),a.init(),b.init(),d.init(),(n=$(".js-dgwt-wcas-sgs-autocolspan")).length>0&&n.find("td").attr("colspan",2),e.init(),f.init(),g.init(),h.init(),j.init(),k.init(),c.init(),i.init(),l.init(),window.DGWT_WCAS_SEARCH_PREVIEW.init()})}(jQuery)
1
+ !function($){var a={inputSel:"dgwt-wcas-options-toggle input[type=radio]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(c){var d=this,e=$('[name="'+c+'"]').closest("."+d.groupSel),a=$('[name="'+c+'"]:checked').val(),b="";d.hideAll(e),(a=a.replace("_","-")).length>0&&(b="wcas-opt-"+a),$("."+b).length>0&&$("."+b).fadeIn()},hideAll:function(a){a.find('tr[class*="wcas-opt-"]').hide()},registerListeners:function(){var a=this;$("."+a.inputSel).on("change",function(){a.reloadChoices($(this).attr("name"))})},init:function(){var a=this,b=$("."+a.inputSel+":checked");b.length>0&&(a.registerListeners(),b.each(function(){a.reloadChoices($(this).attr("name"))}))}},b={inputSel:"dgwt-wcas-options-cb-toggle input[type=checkbox]",groupSel:"dgwt_wcas_settings-group",reloadChoices:function(a){var c=a.is(":checked"),b=this.getGroupSelector(a);$("."+b+":not(.dgwt-wcas-options-cb-toggle)").hide(),c&&$("."+b).each(function(){$(this).hasClass("js-dgwt-wcas-adv-settings")&&$(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")||$(this).fadeIn()})},getGroupSelector(a){var b=a.closest(".dgwt-wcas-options-cb-toggle"),c="",d=b.attr("class").split(/\s+/);return $.each(d,function(b,a){-1!==a.indexOf("js-dgwt-wcas-cbtgroup-")&&(c=a)}),c},registerListeners:function(){var a=this;$(document).on("change","."+a.inputSel,function(){a.reloadChoices($(this))})},refresh:function(){var b=this,a=$("."+b.inputSel);a.length>0&&a.each(function(){var c=$(this).is(":checked"),a=b.getGroupSelector($(this));c?$("."+a).fadeIn():$("."+a+":not(.dgwt-wcas-options-cb-toggle)").hide()})},init:function(){var a=this,b=$("."+a.inputSel);b.length>0&&(a.registerListeners(),b.each(function(){a.reloadChoices($(this))}))}},c={inputSel:"js-dgwt-wcas-options-toggle-sibling input[type=checkbox]",toogleSibling:function(a){a.is(":checked")?a.closest("label").next().fadeIn():a.closest("label").next().hide()},registerListeners:function(){var a=this;$(document).on("change","."+a.inputSel,function(){a.toogleSibling($(this))})},init:function(){var a=this,b=$("."+a.inputSel);b.length>0&&(a.registerListeners(),b.each(function(){a.toogleSibling($(this))}))}},d={layoutSelect:"select[id*='search_layout']",overlayMobile:"input[id*='enable_mobile_overlay']",switchLayoutBreakpoint:"input[id*='mobile_breakpoint']",mobileOverlayBreakpoint:"input[id*='mobile_overlay_breakpoint']",searchIconColor:"input[id*='search_icon_color']",$layoutSelectEl:null,$overlayMobileEl:null,$switchLayoutBreakpointEl:null,$mobileOverlayBreakpointEl:null,$searchIconColorEl:null,setConditions:function(){var b=this.$layoutSelectEl.find("option:selected").val(),c=this.$overlayMobileEl.is(":checked"),a=$(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled");switch(this.hideOption(this.$switchLayoutBreakpointEl),this.hideOption(this.$mobileOverlayBreakpointEl),this.hideOption(this.$searchIconColorEl),$("input[id*='bg_search_icon_color']").closest("tr").show(),b){case"icon":a&&this.showOption(this.$searchIconColorEl);break;case"icon-flexible":case"icon-flexible-inv":a&&(this.showOption(this.$switchLayoutBreakpointEl),this.showOption(this.$searchIconColorEl));break;default:a&&$("input[id*='bg_search_icon_color']").closest("tr").hide()}c&&this.showOption(this.$mobileOverlayBreakpointEl)},hideOption:function(a){a.closest("tr").hide()},showOption:function(a){a.closest("tr").show()},registerListeners:function(){var a=this;a.$layoutSelectEl.on("change",function(){a.setConditions()}),a.$overlayMobileEl.on("change",function(){a.setConditions()})},init:function(){var a=this,b=$(a.layoutSelect);b.length>0&&(a.$layoutSelectEl=b,a.$overlayMobileEl=$(a.overlayMobile),a.$switchLayoutBreakpointEl=$(a.switchLayoutBreakpoint),a.$mobileOverlayBreakpointEl=$(a.mobileOverlayBreakpoint),a.$searchIconColorEl=$(a.searchIconColor),a.registerListeners(),setTimeout(function(){a.setConditions()},400))}},e={actionTriggerClass:"js-ajax-build-index",actionStopTriggerClass:"js-ajax-stop-build-index",indexingWrappoerClass:"js-dgwt-wcas-indexing-wrapper",indexerTabProgressClass:"js-dgwt-wcas-indexer-tab-progress",indexerTabErrorClass:"js-dgwt-wcas-indexer-tab-error",indexerMenuErrorClass:"dgwt-wcas-menu-warning-icon",getWrapper:function(){return $("."+this.indexingWrappoerClass).closest(".dgwt-wcas-settings-info")},registerListeners:function(){var a=this;$(document).on("click","."+a.actionTriggerClass,function(d){d.preventDefault();var b=$(this);b.attr("disabled","disabled"),$(".dgwt-wcas-settings-info").addClass("wcas-ajax-build-index-wait"),$("."+a.indexerTabErrorClass).removeClass("active"),$("."+a.indexerTabProgressClass).addClass("active");var c=!!b.hasClass("js-ajax-build-index-emergency");c&&($(".dgwt-wcas-indexing-header__title").text("[Emergency mode] Wait... Indexing in progress"),$(".dgwt-wcas-indexing-header__troubleshooting, .dgwt-wcas-indexing-header__actions, .js-dgwt-wcas-indexer-details").hide()),$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index",emergency:c,_wpnonce:dgwt_wcas.nonces.build_index},success:function(b){void 0!==b&&b.success&&(a.getWrapper().html(b.data.html),a.heartbeat())},complete:function(){b.removeAttr("disabled"),$(".dgwt-wcas-settings-info").removeClass("wcas-ajax-build-index-wait"),c&&window.location.reload()}})}),$(document).on("click","."+a.actionStopTriggerClass,function(b){b.preventDefault(),$(this).attr("disabled","disabled"),a.getWrapper().attr("data-stopping","1"),$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_stop_build_index",_wpnonce:dgwt_wcas.nonces.stop_build_index},success:function(b){void 0!==b&&b.success&&(a.getWrapper().html(b.data.html),a.heartbeat())},complete:function(){a.getWrapper().attr("data-stopping","0")}})})},heartbeat:function(){var a=this;setTimeout(function(){$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_build_index_heartbeat",_wpnonce:dgwt_wcas.nonces.build_index_heartbeat},success:function(b){void 0!==b&&b.success&&"1"!==a.getWrapper().attr("data-stopping")&&(a.getWrapper().html(b.data.html),b.data.loop?a.heartbeat():($("."+a.indexerTabProgressClass).removeClass("active"),"error"===b.data.status?$("."+a.indexerTabErrorClass).addClass("active"):"completed"===b.data.status&&$("."+a.indexerMenuErrorClass).remove()),b.data.loop||!(b.data.refresh_once.length>0)||document.cookie.split(";").some(function(a){return 0===a.trim().indexOf("dgwt_wcas_refresh_once="+b.data.refresh_once)})||"none"!==$("#dgwt_wcas_troubleshooting-tab").css("display")||(document.cookie="dgwt_wcas_refresh_once="+b.data.refresh_once,location.reload()))}})},1e3)},detailsToggle:function(){var a;$(document).on("click",".js-dgwt-wcas-indexing-details-trigger",function(c){c.preventDefault();var b=$(".js-dgwt-wcas-indexer-details");b.hasClass("show")?(b.removeClass("show"),b.addClass("hide"),$(".js-dgwt-wcas-indexing__showd").addClass("show").removeClass("hide"),$(".js-dgwt-wcas-indexing__hided").addClass("hide").removeClass("show"),a=!1):(b.addClass("show"),b.removeClass("hide"),$(".js-dgwt-wcas-indexing__showd").addClass("hide").removeClass("show"),$(".js-dgwt-wcas-indexing__hided").addClass("show").removeClass("hide"),a=!0),$.ajax({url:ajaxurl,type:"post",data:{action:"dgwt_wcas_index_details_toggle",display:a}})})},init:function(){this.registerListeners(),$("."+this.indexingWrappoerClass).length>0&&this.heartbeat(),this.detailsToggle()}},f={init:function(){var a=this;$(".dgwt-wcas-selectize").length>0&&$.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:$(".dgwt-wcas-selectize").data("security")},success:function(b){void 0!==b&& void 0!==b.data&&a.initSelectize(b.data)}})},initSelectize:function(b){var a=$(".dgwt-wcas-selectize");a.length>0&&a.each(function(){var c=$(this),a=c.data("options"),d=b;if(a.length>0){a=JSON.parse('["'+decodeURI(a.replace(/&/g,'","').replace(/=/g,'","'))+'"]');var e="";a.forEach(function(a,b){if((b+1)%2==0){var c={value:a,label:e};d.push(c),e=""}e=a})}$(this).selectize({persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["value","label"],options:d,create:function(a){return{value:a.key,label:a.label}},load:function(a,b){if(!a.length)return b();$.ajax({url:ajaxurl,data:{action:"dgwt_wcas_settings_list_custom_fields",_wpnonce:c.data("security")},error:function(){b()},success:function(a){b(a.data)}})}})})}},g={init:function(){var a=$(".js-dgwt-wcas-tooltip");a.length>0&&a.each(function(){var b=$(this)[0],a=$(this).data("tooltip-html-el"),c=$(this).data("tooltip-placement");a&&new DgwtWcasTooltip(b,{title:$("."+a+" > .dgwt-wcas-tooltip-wrapper")[0],placement:c,trigger:"hover",html:!0})})}},h={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 a=this;$(document).on("click",".js-dgwt-wcas-settings__advanced",function(){var b;b=$(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--disabled")?"show":"hide",a.saveChoice(b)})},setStartingState:function(){var a=$("."+this.advClass);a.length>0&&($(".js-dgwt-wcas-adv-settings-toggle").hasClass("woocommerce-input-toggle--enabled")?(a.show(),b.refresh()):a.hide())},saveChoice:function(a){$(".js-dgwt-wcas-settings__advanced").append('<span class="dgwt-wcas-adv-settings-saving">saving...</span>'),$.ajax({url:ajaxurl,data:{_wpnonce:dgwt_wcas.nonces.advanced_options_switch,action:"dgwt_wcas_adv_settings",adv_settings_value:a}}).done(function(a){$(".dgwt-wcas-adv-settings-saving").remove()});var b=$(".js-dgwt-wcas-adv-settings-toggle");"show"===a&&(b.removeClass("woocommerce-input-toggle--disabled"),b.addClass("woocommerce-input-toggle--enabled")),"hide"===a&&(b.removeClass("woocommerce-input-toggle--enabled"),b.addClass("woocommerce-input-toggle--disabled")),this.toggleAdvancedOpt(a)},toggleAdvancedOpt:function(e){var c=this,a=$("."+c.advClass);a.length>0&&(a.addClass(c.highlightClass),a.addClass(c.transClass),"show"===e&&a.fadeIn(500,function(){setTimeout(function(){a.removeClass(c.highlightClass),setTimeout(function(){a.removeClass(c.transClass),b.refresh(),d.setConditions()},500)},500)}),"hide"===e&&setTimeout(function(){a.removeClass(c.transClass),a.fadeOut(500,function(){a.removeClass(c.highlightClass)})},500))}},i={placeholderClass:"js-dgwt-wcas-stats-placeholder",placeholderClassLoaded:"js-dgwt-wcas-stats-placeholder-loaded",preloaderClass:"dgwt-wcas-stats-preloader",settingsGroupSel:"#dgwt_wcas_analytics",criticalSearchesLoadMoreClass:"js-dgwt-wcas-critical-searches-load-more",autocompleteWithResultsLoadMoreClass:"js-dgwt-wcas-autocomplete-with-results-load-more",searchPageWithResultsLoadMoreClass:"js-dgwt-wcas-search-page-with-results-load-more",checkPhraseStatusClass:"js-dgwt-wcas-stats-critical-check",checkPhraseStatusInitClass:"js-dgwt-wcas-stats-critical-check-init",rowLoadingClass:"dgwt-wcas-analytics-row-loading",languageSwitcherClass:"js-dgwt-wcas-analytics-lang",excludePhraseClass:"js-dgwt-wcas-analytics-exclude-phrase",checkIndexerAction:"js-dgwt-wcas-analytics-check-indexer",resetAnalyticsAction:"js-dgwt-wcas-analytics-reset",init:function(){void 0!==dgwt_wcas.analytics&&dgwt_wcas.analytics.enabled&&this.interfaceLoaderListener()},interfaceLoaderListener:function(){var b=this,a=$("."+b.languageSwitcherClass);$(document).on("dgwt_wcas_settings_group_active",function(c,a){$(a).length>0&&"dgwt_wcas_analytics"===a.id&&(b.isLoaded()||b.loadInterface())}),a.length>0&&a.on("change",function(){var a=$("."+b.placeholderClass);a.length>0&&(a.html(""),b.loadInterface())})},isLoaded:function(){return $("."+this.placeholderClassLoaded).length>0},showPreloader:function(){var a=$("."+this.placeholderClass),b='<img class="'+this.preloaderClass+'" src="'+dgwt_wcas.analytics.images.placeholder+'" />';a.length&&a.append(b)},loadInterface:function(){var a=this,b=$("."+a.languageSwitcherClass+" option:selected");a.showPreloader();var c={action:"dgwt_wcas_load_stats_interface","_wpnonce":dgwt_wcas.analytics.nonce.analytics_load_interface};b.length>0&&(c.lang=b.val()),$.post(ajaxurl,c,function(b){var c=$("."+a.placeholderClass);"object"==typeof b&&b.success&&c.length>0&&(c.addClass(a.placeholderClassLoaded),c.html(b.data.html),a.loadCheckCriticalSearchesListeners(),a.loadMoreListeners(),a.resetStatsListener())})},loadCheckCriticalSearchesListeners:function(){var a=this,b=$("."+a.checkPhraseStatusClass+":not(."+a.checkPhraseStatusInitClass+")");b.on("click",function(b){b.preventDefault(),$(b.target).after('<img src="'+dgwt_wcas.images.admin_preloader_url+'" />'),a.checkPhraseStatus($(b.target))}),b.each(function(){$(this).addClass(a.checkPhraseStatusInitClass)})},loadMoreListeners:function(){var a=this;$("."+a.criticalSearchesLoadMoreClass).on("click",function(b){b.preventDefault(),$(this).before('<img src="'+dgwt_wcas.images.admin_preloader_url+'" />'),$(this).closest("tr").addClass(a.rowLoadingClass),a.loadMoreCriticalSearches()}),$("."+a.autocompleteWithResultsLoadMoreClass).on("click",function(b){b.preventDefault(),a.loadMorePhrases("autocomplete",$(b.target))}),$("."+a.searchPageWithResultsLoadMoreClass).on("click",function(b){b.preventDefault(),a.loadMorePhrases("search-page",$(b.target))})},resetStatsListener:function(){$("."+this.resetAnalyticsAction).on("click",function(a){var b=$(this);if(a.preventDefault(),confirm(dgwt_wcas.analytics.labels.reset_stats_confirm)){var c={action:"dgwt_wcas_reset_stats","_wpnonce":dgwt_wcas.analytics.nonce.reset_stats};b.next().addClass("loading"),$.post(ajaxurl,c,function(a){location.reload()})}})},checkPhraseStatus:function(c){var d=this,a=$("."+d.languageSwitcherClass+" option:selected"),b={action:"dgwt_wcas_check_critical_phrase",phrase:c.closest("tr").find("td:nth-child(2)").text(),"_wpnonce":dgwt_wcas.analytics.nonce.check_critical_phrase};a.length>0&&(b.lang=a.val()),$.post(ajaxurl,b,function(a){if("object"==typeof a&&a.success){var b=c.closest("tr");c.closest("td").html(a.data.html);var e=b.find("."+d.excludePhraseClass),f=b.find("."+d.checkIndexerAction);e.length>0&&e.on("click",function(a){a.preventDefault();var c="<p>Processing...</p>";$(a.target).closest("td").html(c),d.excludePhrase(b)}),f.length>0&&$("."+d.checkIndexerAction).on("click",function(b){b.preventDefault();var a=$("#dgwt_wcas_performance-tab");a.length>0&&(a[0].click(),$([document.documentElement,document.body]).animate({scrollTop:0},1e3))})}})},excludePhrase:function(c){var a=$("."+this.languageSwitcherClass+" option:selected"),b={action:"dgwt_wcas_exclude_critical_phrase",phrase:c.find("td:nth-child(2)").text(),"_wpnonce":dgwt_wcas.analytics.nonce.exclude_critical_phrase};a.length>0&&(b.lang=a.val()),$.post(ajaxurl,b,function(a){"object"==typeof a&&a.success&&(c.addClass("dgwt-wcas-analytics-disable-row"),c.find("td:last-child").html(a.data))})},loadMoreCriticalSearches:function(){var c=this,a=$("."+c.languageSwitcherClass+" option:selected"),b={action:"dgwt_wcas_laod_more_critical_searches",loaded:$(".js-dgwt-wcas-critical-searches-row").length,"_wpnonce":dgwt_wcas.analytics.nonce.load_more_critical_searches};a.length>0&&(b.lang=a.val()),$.post(ajaxurl,b,function(a){if("object"==typeof a&&a.success){var b=$("."+c.criticalSearchesLoadMoreClass).closest("tr");a.data.html.length>0&&b.before(a.data.html),a.data.more>0?(b.removeClass(c.rowLoadingClass),b.find("img").remove(),$("."+c.criticalSearchesLoadMoreClass+" span:first-child").text(a.data.more_label)):b.remove(),c.loadCheckCriticalSearchesListeners()}})},loadMorePhrases:function(d,b){var c=$("."+this.languageSwitcherClass+" option:selected");if(b.before('<img src="'+dgwt_wcas.images.admin_preloader_url+'" />'),b.closest("tr").addClass(this.rowLoadingClass),"autocomplete"===d)var a={action:"dgwt_wcas_laod_more_autocomplete",loaded:$(".js-dgwt-wcas-autocomplete-row").length,"_wpnonce":dgwt_wcas.analytics.nonce.load_more_autocomplete};else var a={action:"dgwt_wcas_laod_more_search_page",loaded:$(".js-dgwt-wcas-search-page-row").length,"_wpnonce":dgwt_wcas.analytics.nonce.load_more_search_page};c.length>0&&(a.lang=c.val()),$.post(ajaxurl,a,function(a){"object"==typeof a&&a.success&&b.closest("tbody").html(a.data.html)})}};window.DGWT_WCAS_SEARCH_PREVIEW={previewWrapper:{},searchWrapp:{},suggestionWrapp:{},searchInput:{},animateTypingInterval:null,init:function(){var a=this;a.previewWrapper=$(".js-dgwt-wcas-preview"),a.searchWrapp=$(".js-dgwt-wcas-search-wrapp"),a.suggestionWrapp=$(".js-dgwt-wcas-suggestions-wrapp"),a.detailsWrapp=$(".js-dgwt-wcas-details-wrapp"),a.searchInput=$(".js-dgwt-wcas-search-input"),a.onChangeHandler(),a.onColorHandler(),a.onTypeHandler(),a.disableSubmit(),a.noResultsHandler(),a.fixSizesInit(),a.keepPreviewVisible(),a.animationController()},isChecked:function(a){return!!(a.length>0&&a.is(":checked"))},isColor:function(a){return"string"==typeof a&&7===a.length&&"#"===a.charAt(0)},camelCase:function(d){for(var b=d.split("_"),c="",a=0;a<b.length;a++)c+=b[a].charAt(0).toUpperCase()+b[a].slice(1);return c},disableSubmit:function(){var a,b;$(".js-dgwt-wcas-preview-source").on("click",function(c){c.preventDefault();var d=c.pageX-100,e=c.pageY+10;void 0!==a&&(clearTimeout(a),b&&b.remove()),$("body").append('<div class="dgwt-wcas-click-alert">No interaction! This is only a preview.</div>'),(b=$(".dgwt-wcas-click-alert")).css({left:d,top:e}),$(".dgwt-wcas-preview-source").addClass("dgwt-wcas-preview-source-no-click"),a=setTimeout(function(){b.fadeOut(500,function(){$(this).remove(),$(".dgwt-wcas-preview-source").removeClass("dgwt-wcas-preview-source-no-click")})},2e3)})},noResultsHandler:function(){var b=this,c=".js-dgwt-wcas-preview .dgwt-wcas-suggestion:not(.js-dgwt-wcas-suggestion-nores)",d=".js-dgwt-wcas-suggestion-nores",a="input[id*='search_no_results_text']";$(document).on("focus",a,function(){$(c).addClass("dgwt-wcas-hide"),$(d).removeClass("dgwt-wcas-hide"),b.detailsWrapp.addClass("dgwt-wcas-hide"),b.suggestionWrapp.addClass("dgwt-wcas-preview-nores")}),$(document).on("blur",a,function(){$(c).removeClass("dgwt-wcas-hide"),$(d).addClass("dgwt-wcas-hide"),b.detailsWrapp.removeClass("dgwt-wcas-hide"),b.suggestionWrapp.removeClass("dgwt-wcas-preview-nores")})},onChangeHandler:function(){for(var a=this,c=["show_submit_button","max_form_width","search_style","search_layout","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"],b=0;b<c.length;b++){var g=["search_style","search_layout"].includes(c[b])?"select":"input",h=g+"[id='dgwt_wcas_settings\\["+c[b]+"\\]']",i=g+"[id^='dgwt_wcas_settings'][data-option-trigger='"+c[b]+"']",e=$(h),f=$(i),d="onChange"+a.camelCase(c[b]);"function"==typeof a[d]&&e.length>0?(a[d](e,e.val()),$(document).on("change",h,function(){d=$(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),d="onChange"+a.camelCase(d),"function"==typeof a[d]&&a[d]($(this),this.value)})):"function"==typeof a[d]&&f.length>0?(a[d](f,f.val()),$(document).on("change",i,function(){d=$(this).data("option-trigger"),d="onChange"+a.camelCase(d),"function"==typeof a[d]&&a[d]($(this),this.value)})):a[d]("","")}},onColorHandler:function(){for(var c=this,b=["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<b.length;a++){var d="input[id*='"+b[a]+"']",e=$(d),f="onColor"+c.camelCase(b[a]);c[f](e,e.val()),$(document).on("change",d,function(){f=$(this).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),f="onColor"+c.camelCase(f),c[f]($(this),this.value)})}},onColorChangeHandler:function(a,c){var b=a.attr("id").replace("]","").replace("dgwt_wcas_settings[","");this[b="onColor"+this.camelCase(b)](a,c)},onTypeHandler:function(){for(var c=this,b=["search_submit_text","search_placeholder","search_no_results_text","search_see_all_results_text"],a=0;a<b.length;a++){var d="input[id*='"+b[a]+"']",e=$(d),f="onType"+c.camelCase(b[a]);c[f](e,e.val()),$(document).on("input",d,function(a){f=$(a.target).attr("id").replace("]","").replace("dgwt_wcas_settings[",""),f="onType"+c.camelCase(f),c[f]($(a.target),this.value)})}},onChangeMaxFormWidth:function(b,a){a.length>0&&"0"!=a?(this.searchWrapp.css("max-width",a+"px"),this.suggestionWrapp.css("max-width",a+"px")):(this.searchWrapp.css("max-width","100%"),this.suggestionWrapp.css("max-width","100%")),this.onChangeShowDetailsBox($("input[id*='show_details_box']"))},onChangeShowSubmitButton:function(e,f){var a=this,b=$(".js-dgwt-wcas-search-submit");if(a.isChecked(e)){a.searchWrapp.addClass("dgwt-wcas-has-submit"),a.searchWrapp.removeClass("dgwt-wcas-no-submit"),b.show(),$(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").hide();var c=$("input[id*='bg_submit_color']"),d=$("input[id*='text_submit_color']");a.onColorBgSubmitColor(c,c.val()),a.onColorTextSubmitColor(d,d.val()),setTimeout(function(){a.positionPreloader()},10)}else a.searchWrapp.addClass("dgwt-wcas-no-submit"),a.searchWrapp.removeClass("dgwt-wcas-has-submit"),b.hide(),$(".dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier").show(),a.positionPreloader()},onChangeShowProductImage:function(c,d){var b=$(".js-dgwt-wcas-si"),a=$(".js-dgwt-wcas-content-wrapp");this.isChecked(c)?(this.suggestionWrapp.addClass("dgwt-wcas-has-img"),$(".dgwt-wcas-suggestion-product > .dgwt-wcas-st").remove(),$(".dgwt-wcas-suggestion-product > .dgwt-wcas-sp").remove(),a.show(),b.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-img"),a.each(function(){$(this).closest(".dgwt-wcas-suggestion-product").append($(this).html())}),a.hide(),b.hide())},onChangeShowProductSku:function(b,c){var a=$(".js-dgwt-wcas-sku");this.isChecked(b)?(this.suggestionWrapp.addClass("dgwt-wcas-has-sku"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-sku"),a.hide())},onChangeShowProductDesc:function(b,c){var a=$(".js-dgwt-wcas-sd");this.isChecked(b)?(this.suggestionWrapp.addClass("dgwt-wcas-has-desc"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-desc"),a.hide())},onChangeShowProductPrice:function(b,c){var a=$(".js-dgwt-wcas-sp");this.isChecked(b)?(this.suggestionWrapp.addClass("dgwt-wcas-has-price"),a.show()):(this.suggestionWrapp.removeClass("dgwt-wcas-has-price"),a.hide())},onChangeShowMatchingCategories:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-cat"),a=$(".dgwt-wcas-suggestion-cat");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowCategoriesImages:function(b,c){var a=$(".js-dgwt-wcas-suggestion-cat");this.isChecked(b)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingTags:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-tag"),a=$(".dgwt-wcas-suggestion-tag");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowMatchingBrands:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-brand"),a=$(".dgwt-wcas-suggestion-brand");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowBrandsImages:function(b,c){var a=$(".js-dgwt-wcas-suggestion-brand");this.isChecked(b)?a.addClass("dgwt-wcas-has-img"):a.removeClass("dgwt-wcas-has-img")},onChangeShowMatchingPosts:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-post"),a=$(".dgwt-wcas-suggestion-post");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowMatchingPages:function(d,e){var b=$(".dgwt-wcas-suggestion-headline-page"),a=$(".dgwt-wcas-suggestion-page");this.isChecked(d)?(b.show(),a.show(),a.removeClass("js-dgwt-wcas-suggestion-hidden"),this.onChangeShowGroupedResults($("input[id*='show_grouped_results']"))):(b.hide(),a.hide(),a.addClass("js-dgwt-wcas-suggestion-hidden"));var c=$("input[id*='suggestions_limit']");this.onChangeSuggestionsLimit(c,c.val())},onChangeShowGroupedResults:function(b,d){var a=$(".dgwt-wcas-st--direct-headline"),c=$(".dgwt-wcas-suggestion-headline");this.isChecked(b)?(a.addClass("dgwt-wcas-hidden"),this.suggestionWrapp.addClass("dgwt-wcas-has-headings"),$(".dgwt-wcas-suggestion-headline").show(),this.isChecked($("input[data-option-trigger='show_matching_categories']"))||$(".dgwt-wcas-suggestion-headline-cat").hide(),this.isChecked($("input[data-option-trigger='show_matching_tags']"))||$(".dgwt-wcas-suggestion-headline-tag").hide(),this.isChecked($("input[data-option-trigger='show_matching_brands']"))||$(".dgwt-wcas-suggestion-headline-brand").hide(),this.isChecked($("input[id*='show_matching_posts']"))||$(".dgwt-wcas-suggestion-headline-post").hide(),this.isChecked($("input[id*='show_matching_pages']"))||$(".dgwt-wcas-suggestion-headline-page").hide()):(a.removeClass("dgwt-wcas-hidden"),c.hide(),this.suggestionWrapp.removeClass("dgwt-wcas-has-headings"))},onChangeSuggestionsLimit:function(a,b){setTimeout(function(){var d=0,f=7,i=$(".dgwt-wcas-suggestion-duplicated"),j=["brand","cat","tag","post","page","product"];b.length>0&&"0"!=b&&(f=Math.abs(b)),i.length>0&&i.remove();var c=[];for(d=0;d<j.length;d++){var k=$(".dgwt-wcas-suggestion-"+j[d]+":not(.js-dgwt-wcas-suggestion-hidden)");k.length>0&&c.push(k)}var g=c.length;if(c.length>0)for(var l=f-c.length,e=c.length-1;l>0;){var h=c[e].clone();h.addClass("dgwt-wcas-suggestion-duplicated"),h.removeClass("dgwt-wcas-suggestion-selected"),c[e].after(h),g++,--e<0&&(e=c.length-1),l--}g>f&&a.val(g)},10)},onChangeShowDetailsBox:function(b,c){var a=this;a.isChecked(b)?(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(){$(".dgwt-wcas-suggestion-product:not(.dgwt-wcas-suggestion-duplicated)").addClass("dgwt-wcas-suggestion-selected");var c=$(".js-dgwt-wcas-preview-bar-example");if(c.width()>=550){a.previewWrapper.addClass("dgwt-wcas-full-width");var b=getComputedStyle(c[0]).width;(b=Math.round(parseFloat(b.replace("px",""))))%2==0?(a.suggestionWrapp.css("width",Math.round(b/2)),a.detailsWrapp.css("width",Math.round(b/2))):(a.suggestionWrapp.css("width",Math.floor(b/2)),a.detailsWrapp.css("width",Math.ceil(b/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"),$(".dgwt-wcas-suggestion-product").removeClass("dgwt-wcas-suggestion-selected"),a.suggestionWrapp.css("width",""),a.detailsWrapp.css("width",""))},onChangeSearchStyle:function(h,a){var b,e=this,d=["solaris","pirx"],c=$('input[id*="show_submit_button"]'),f=$('label[for*="bg_submit_color"]');for($(".dgwt-wcas-ico-magnifier").addClass("dgwt-wcas-hidden"),b=0;b<d.length;b++)$(".js-dgwt-wcas-preview").removeClass("dgwt-wcas-open-"+d[b]),$(".js-dgwt-wcas-search-wrapp").removeClass("dgwt-wcas-style-"+d[b]);if($(".js-dgwt-wcas-ico-magnifier-"+a).removeClass("dgwt-wcas-hidden"),$(".js-dgwt-wcas-preview").addClass("dgwt-wcas-open-"+a),$(".js-dgwt-wcas-search-wrapp").addClass("dgwt-wcas-style-"+a),"solaris"===a&&($('label[for*="show_submit_button"] .js-dgwt-wcas-tooltip').addClass("dgwt-wcas-hidden"),$('label[for*="search_submit_text"]').closest("tr").removeClass("dgwt-wcas-hidden"),$('input[id*="search_submit_text"]').prop("disabled",!1),f.closest("tr").removeClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(1)').removeClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(2)').addClass("dgwt-wcas-hidden"),c.prop("disabled",!1),$(".js-dgwt-wcas-submit-button-pirx-tooltip").removeClass("dgwt-wcas-hidden"),setTimeout(function(){e.positionPreloader()},300)),"pirx"===a){$('label[for*="show_submit_button"] .js-dgwt-wcas-tooltip').removeClass("dgwt-wcas-hidden"),$('label[for*="search_submit_text"]').closest("tr").addClass("dgwt-wcas-hidden"),$('input[id*="search_submit_text"]').prop("disabled",!0),$('label[for*="bg_submit_color"]').closest("tr").addClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(2)').removeClass("dgwt-wcas-hidden"),$('label[for*="text_submit_color"] > span:nth-child(1)').addClass("dgwt-wcas-hidden"),$('input[id*="search_submit_text"]').val("");var g=f.closest("tr").find(".wp-picker-clear");g.length>0&&g[0].click(),e.onColorBgSubmitColor(),c.is(":checked")||c[0].click(),c.prop("disabled",!0),e.onTypeSearchSubmitText($('input[id*="search_submit_text"]'),""),setTimeout(function(){e.positionPreloader()},10)}},onChangeSearchLayout:function(e,d){var b=$(".js-dgwt-wcas-preview-device-info"),c=$(".js-dgwt-wcas-preview-bar-example"),a=$(".js-dgwt-wcas-preview-icon-example");switch($(".js-dgwt-wcas-preview-device-info > span").addClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-preview-icon-only"),d){case"classic":b.addClass("dgwt-wcas-hidden"),c.removeClass("dgwt-wcas-hidden"),a.addClass("dgwt-wcas-hidden");break;case"icon":b.addClass("dgwt-wcas-hidden"),c.addClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-hidden"),$(".dgwt-wcas-search-form").removeClass("dgwt-wcas-hidden"),$(".dgwt-wcas-search-icon-arrow").removeClass("dgwt-wcas-hidden"),a.addClass("dgwt-wcas-preview-icon-only");break;case"icon-flexible":b.removeClass("dgwt-wcas-hidden"),c.removeClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-form").addClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-icon-arrow").addClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="desktop"] span:nth-child(2)').removeClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="mobile"] span:nth-child(1)').removeClass("dgwt-wcas-hidden");break;case"icon-flexible-inv":b.removeClass("dgwt-wcas-hidden"),c.removeClass("dgwt-wcas-hidden"),a.removeClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-form").addClass("dgwt-wcas-hidden"),a.find(".dgwt-wcas-search-icon-arrow").addClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="desktop"] span:nth-child(1)').removeClass("dgwt-wcas-hidden"),$('.js-dgwt-wcas-preview-device-info[data-device="mobile"] span:nth-child(2)').removeClass("dgwt-wcas-hidden")}},onColorSearchIconColor:function(b,a){this.isColor(a)?this.searchWrapp.find(".dgwt-wcas-ico-magnifier-handler path").css("fill",a):this.searchWrapp.find(".dgwt-wcas-ico-magnifier-handler path").css("fill","")},onColorBgInputColor:function(b,a){this.isColor(a)?this.searchInput.css("background-color",a):this.searchInput.css("background-color","")},onColorTextInputColor:function(e,a){var c="dgwt-wcas-preview-placeholder-style";if(this.isColor(a)){var b='<style class="'+c+'">';b+=".dgwt-wcas-search-input {color:"+a+"!important;}",b+=".dgwt-wcas-ico-magnifier path {fill:"+a+"}",b+="</style>",$("head").append(b),this.searchInput.css("color",a)}else{this.searchInput.css("color","");var d=$("."+c);d.length>0&&d.remove()}},onColorBorderInputColor:function(b,a){this.isColor(a)?this.searchInput.css("border-color",a):this.searchInput.css("border-color","")},onColorBgSubmitColor:function(e,b){var c="dgwt-wcas-preview-submit-style";if(this.isChecked($("input[id*='show_submit_button']"))&&this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-search-submit::before{border-color: transparent "+b+"!important;}",a+=".dgwt-wcas-search-submit:hover::before{border-right-color: "+b+"!important;}",a+=".dgwt-wcas-search-submit:focus::before{border-right-color: "+b+"!important;}",a+=".dgwt-wcas-search-submit{background-color: "+b+"!important;}",a+=".dgwt-wcas-om-bar .dgwt-wcas-om-return{background-color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorTextSubmitColor:function(b,a){this.isChecked($("input[id*='show_submit_button']"))&&this.isColor(a)?($(".js-dgwt-wcas-search-submit").css("color",a),$(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",a)):(this.searchInput.css("background-color",""),$(".js-dgwt-wcas-search-submit").css("color",""),$(".dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path").css("fill",""))},onColorSugBgColor:function(e,b){var c="dgwt-wcas-preview-sugbgcol-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-suggestions-wrapp,",a+=".dgwt-wcas-details-wrapp",a+="{background-color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorSugHoverColor:function(b,a){this.isColor(a)?setTimeout(function(){$(".dgwt-wcas-suggestion-selected").css("background-color",a)},50):$(".dgwt-wcas-suggestion-selected").css("background-color","")},onColorSugTextColor:function(e,b){var c="dgwt-wcas-preview-sugtextcol-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-suggestions-wrapp *,",a+=".dgwt-wcas-details-wrapp *,",a+=".dgwt-wcas-sd,",a+=".dgwt-wcas-suggestion *",a+="{color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorSugHighlightColor:function(e,b){var c="dgwt-wcas-preview-sughighlight-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-st strong,",a+=".dgwt-wcas-sd strong",a+="{color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onColorSugBorderColor:function(e,b){var c="dgwt-wcas-preview-sugborder-style";if(this.isColor(b)){var a='<style class="'+c+'">';a+=".dgwt-wcas-suggestions-wrapp,",a+=".dgwt-wcas-details-wrapp,",a+=".dgwt-wcas-suggestion,",a+=".dgwt-wcas-datails-title,",a+=".dgwt-wcas-details-more-products",a+="{border-color: "+b+"!important;}",a+="</style>",$("head").append(a)}else{var d=$("."+c);d.length>0&&d.remove()}},onTypeSearchSubmitText:function(d,b){var a=$(".js-dgwt-wcas-search-submit-l"),c=$(".js-dgwt-wcas-search-submit-m");b.length>0?(a.text(b),a.show(),c.hide()):(a.text(""),a.hide(),c.show()),this.positionPreloader()},onTypeSearchPlaceholder:function(b,a){0==a.length&&(a=dgwt_wcas.labels.search_placeholder),this.searchInput.attr("placeholder",a)},onTypeSearchNoResultsText:function(b,a){0==a.length&&(a=dgwt_wcas.labels.no_results),$(".js-dgwt-wcas-suggestion-nores span").text(a)},onTypeSearchSeeAllResultsText:function(b,a){0==a.length&&(a=dgwt_wcas.labels.show_more),$(".js-dgwt-wcas-st-more-label").text(a)},positionPreloader:function(){var b=$(".js-dgwt-wcas-search-wrapp:not(.dgwt-wcas-hidden) .js-dgwt-wcas-search-submit"),d=b.is(":visible"),c=$("select[id*='search_style'] option:selected").val(),a=b.width()+35;"pirx"==c&&(a=38),d||"solaris"!=c||(a=7),$(".dgwt-wcas-preloader").css("right",a+"px")},fixSizesInit:function(){var a=this;$(document).on("click","#dgwt_wcas_autocomplete-tab",function(){a.onChangeShowDetailsBox($("input[id*='show_details_box']"))})},keepPreviewVisible:function(){var a=$(".js-dgwt-wcas-preview-inner"),b=$(".js-dgwt-wcas-preview"),c=$(".js-dgwt-wcas-preview-source"),d=$(".dgwt-eq-settings-form");$(window).on("scroll.autocomplete",function(){var f=$(document).scrollTop(),e=b[0].getBoundingClientRect().top-40;if(e<0){var g=-1*e<1?0:-1*e;if(c.offset().top+c.outerHeight(!1)<=Math.floor(d.offset().top+d.outerHeight(!1))-90)a.css("top",g+"px");else if(f+40<a.offset().top){var h=a.css("top").replace(/px/i,"")-10;a.css("top",h+"px")}}else a.css("top",0)})},animationController:function(){var a=this;$(window).on("load",function(){var b=$("#dgwt_wcas_form_body-tab");b.length&&b.hasClass("nav-tab-active")&&a.startAnimateTyping()}),$(".dgwt_wcas_settings-nav-tab-wrapper > a").on("click",function(){"dgwt_wcas_form_body-tab"===$(this).attr("id")?(a.stopAnimateTyping(),a.startAnimateTyping()):a.stopAnimateTyping()}),$(".dgwt_wcas_settings-nav-tab-wrapper > a").on("click",function(){"dgwt_wcas_form_body-tab"===$(this).attr("id")?(a.stopAnimateTyping(),a.startAnimateTyping()):a.stopAnimateTyping()}),$('input[id*="search_placeholder"]').on("focus",function(){a.stopAnimateTyping(),_this.searchInput.val("")}),$('input[id*="search_placeholder"]').on("blur",function(){a.startAnimateTyping()})},startAnimateTyping:function(){var a=this,b=0,c=$(".js-dgwt-wcas-search-wrapp"),d=$(".js-dgwt-wcas-search-input"),e=$(".dgwt-wcas-preloader"),f=$(".js-dgwt-wcas-preview-elements-close").html();a.animateTypingInterval=setInterval(function(){10== ++b&&(d.val("f"),c.addClass("dgwt-wcas-search-filled"),c.addClass("dgwt-wcas-search-focused"),e.addClass("dgwt-wcas-close")),11===b&&d.val("fi"),12===b&&(d.val("fib"),e.append(f),a.positionPreloader()),13===b&&d.val("fibo"),14===b&&d.val("fibo "),15===b&&d.val("fibo s"),16===b&&d.val("fibo se"),17===b&&d.val("fibo sea"),18===b&&d.val("fibo sear"),19===b&&d.val("fibo searc"),20===b&&d.val("fibo search"),30===b&&d.val("fibo searc"),31===b&&d.val("fibo sear"),32===b&&d.val("fibo sea"),33===b&&d.val("fibo se"),34===b&&d.val("fibo s"),35===b&&d.val("fibo "),36===b&&d.val("fibo"),37===b&&d.val("fib"),38===b&&(d.val("fi"),e.removeClass("dgwt-wcas-close")),39===b&&d.val("f"),40===b&&(d.val(""),e.html(""),c.removeClass("dgwt-wcas-search-filled")),45===b&&(b=0)},200)},stopAnimateTyping(){var b=$(".js-dgwt-wcas-search-wrapp"),c=$(".js-dgwt-wcas-search-input"),a=$(".dgwt-wcas-preloader");a.removeClass("dgwt-wcas-close"),c.val(""),a.html(""),b.removeClass("dgwt-wcas-search-filled"),clearInterval(this.animateTypingInterval)}};var j={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",maintenanceAnalyticsButtonName:"dgwt-wcas-maintenance-analytics",switchAlternativeEndpoint:"dgwt-wcas-switch-alternative-endpoint",dismissElementorTemplateButtonName:"dgwt-wcas-dismiss-elementor-template",init:function(){var a=this;if(void 0===dgwt_wcas.troubleshooting)return;let b=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended;b>0&&($(a.counterClass).text(b).addClass("active"),$(a.settingsTab).addClass("enabled")),dgwt_wcas.troubleshooting.tests.results_async.length>0&&$.each(dgwt_wcas.troubleshooting.tests.results_async,function(){a.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.direct.length>0&&$.each(dgwt_wcas.troubleshooting.tests.direct,function(){a.appendIssue(this,!1)}),dgwt_wcas.troubleshooting.tests.async.length>0&&a.maybeRunNextAsyncTest(),$(document).on("click",'input[name="'+a.resetButtonName+'"]',function(c){$('input[name="'+a.resetButtonName+'"]').attr("disabled","disabled");var b={action:"dgwt_wcas_troubleshooting_reset_async_tests","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_reset_async_tests};return $.post(ajaxurl,b,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.fixOutofstockButtonName+'"]',function(c){$('input[name="'+a.fixOutofstockButtonName+'"]').attr("disabled","disabled").next().addClass("loading");var b={action:"dgwt_wcas_troubleshooting_fix_outofstock","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_fix_outofstock};return $.post(ajaxurl,b,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.maintenanceAnalyticsButtonName+'"]',function(c){$('input[name="'+a.maintenanceAnalyticsButtonName+'"]').attr("disabled","disabled").next().addClass("loading");var b={action:"dgwt_wcas_troubleshooting_maintenance_analytics","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_maintenance_analytics};return $.post(ajaxurl,b,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.switchAlternativeEndpoint+'"]',function(d){var b=1===parseInt($(this).data("switch"))?"enable":"disable";$('input[name="'+a.switchAlternativeEndpoint+'"]').attr("disabled","disabled").next().addClass("loading");var c={action:"dgwt_wcas_troubleshooting_switch_alternative_endpoint","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_switch_alternative_endpoint,switch:b};return $.post(ajaxurl,c,function(){location.reload()}),!1}),$(document).on("click",'input[name="'+a.dismissElementorTemplateButtonName+'"]',function(c){$('input[name="'+a.dismissElementorTemplateButtonName+'"]').attr("disabled","disabled");var b={action:"dgwt_wcas_troubleshooting_dismiss_elementor_template","_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_dismiss_elementor_template};return $.post(ajaxurl,b,function(){location.reload()}),!1})},appendIssue:function(a,c){var b,d=wp.template("dgwt-wcas-troubleshooting-issue"),e=$(this.issuesListClass+"-"+a.status);"good"!==a.status&&($(this.noIssuesClass).hide(),c&&dgwt_wcas.troubleshooting.tests.issues[a.status]++,(b=dgwt_wcas.troubleshooting.tests.issues.critical+dgwt_wcas.troubleshooting.tests.issues.recommended)>0&&($(this.counterClass).text(b).addClass("active"),$(this.settingsTab).addClass("enabled")),$(e).append(d(a)))},maybeRunNextAsyncTest:function(){var a=this;dgwt_wcas.troubleshooting.tests.async.length>0&&$.each(dgwt_wcas.troubleshooting.tests.async,function(){var b={action:"dgwt_wcas_troubleshooting_test",test:this.test,"_wpnonce":dgwt_wcas.troubleshooting.nonce.troubleshooting_async_test};return!!this.completed||(this.completed=!0,$(a.progressBar).show(),$.post(ajaxurl,b,function(b){b.success&&a.appendIssue(b.data,!0),a.maybeRunNextAsyncTest()}),!1)}),a.recalculateProgression()},recalculateProgression:function(){var b=this,c=dgwt_wcas.troubleshooting.tests.async.length,d=0;$.each(dgwt_wcas.troubleshooting.tests.async,function(){this.completed&&d++});var a=Math.ceil(d/c*100);$(b.progressBarInner).css("width",a+"%"),100===a&&setTimeout(function(){$(b.progressBar).slideUp()},2e3)}},k={moveOptionClass:".js-dgwt-wcas-move-option",init:function(){var a=$(this.moveOptionClass);a.length>0&&$.each(a,function(c,a){var b=$("#"+$(a).data("move-dest").replace(/(:|\.|\[|\])/g,"\\$1"));b.length>0&&($(a).closest("tr").hasClass("dgwt-wcas-premium-only")&&$(a).addClass("dgwt-wcas-premium-only"),$(a).clone().appendTo(b.closest("td fieldset"))),$(a).closest("tr").remove()})}},l={init:function(){"undefined"!=typeof Vue&&(Vue.component("dgwt-wcas-rule",{template:"#dgwt-wcas-settings-filters-rules-rule",components:{Selectize},props:["nonce","rule","rules","index"],data:()=>({isSelectActive:!0}),computed:{ruleValue(a){return this.rule.group}},watch:{rule:{handler:function(){this.$emit("update:rule",this.index)},deep:!0},ruleValue(){var a=this;this.$emit("change:group",this.index),this.isSelectActive=!1,setTimeout(function(){a.isSelectActive=!0},0)}},methods:{deleteRule(){this.$emit("delete:rule",this.index)},getSelectizeSettings(a){var b=void 0===dgwt_wcas_filters_rules_selected_options[a]?[]:dgwt_wcas_filters_rules_selected_options[a];return function({nonce:b,options:a,type:c}){return{persist:!1,maxItems:null,valueField:"key",labelField:"label",searchField:["label"],options:a,preload:!0,create:function(a){return{value:a.key,label:a.label}},load:function(a,d){$.ajax({url:ajaxurl,method:"POST",data:{action:"dgwt_wcas_settings_search_terms",query:a,type:c,_wpnonce:b},error:function(){d()},success:function(a){d(a.data)}})}}}({nonce:this.nonce,type:a,options:b})}}}),new Vue({el:"#dgwt-wcas-settings-filters-rules",components:{Selectize},data:()=>({rules:[]}),mounted(){try{let a=JSON.parse(this.$refs["dgwt-wcas-settings-filters-rules-ref"].value);$.each(a,function(b,c){a[b].key=Math.random()}),this.rules=a}catch(b){}this.updateInput()},methods:{addRule(){this.rules.push({group:"",values:[],key:Math.random()}),this.updateInput()},changeGroup(a){this.rules[a].values=[],this.updateInput()},deleteRule(a){this.rules=this.rules.filter(function(c,b){return b!==a}),this.updateInput()},updateInput(){let a=JSON.parse(JSON.stringify(this.rules));this.$refs["dgwt-wcas-settings-filters-rules-ref"].value=JSON.stringify(a.map(function(a){return a.key,delete a.key,a}))}}}))}};$(document).ready(function(){var m,n;(m=$(".js-dgwt-wcas-settings-margin-nob")).length>0&&m.each(function(){var b=$(this).find("td .dgwt-wcas-fieldset");if(b.length>0){var c=$(this).prev(".js-dgwt-wcas-settings-margin");if(c.length>0){var e=$(this).attr("class").split(/\s+/),d="";$.each(e,function(b,a){-1!==a.indexOf("js-dgwt-wcas-cbtgroup-")&&(d=a)});var a=b.clone(!0,!0);a.addClass("dgwt-wcas-settings-margin-nob"),d&&a.addClass(d),a.appendTo(c.find("td")),$(this).remove()}}}),a.init(),b.init(),d.init(),(n=$(".js-dgwt-wcas-sgs-autocolspan")).length>0&&n.find("td").attr("colspan",2),e.init(),f.init(),g.init(),h.init(),j.init(),k.init(),c.init(),i.init(),l.init(),window.DGWT_WCAS_SEARCH_PREVIEW.init()})}(jQuery)
assets/js/search.js CHANGED
@@ -334,9 +334,11 @@
334
  .replace(/&lt;sup/g, '<sup')
335
  .replace(/&lt;\/sup/g, '</sup')
336
  .replace(/sup&gt;/g, 'sup>')
 
 
 
337
  .replace(/&lt;(\/?(strong|b|br|span))&gt;/g, '<$1>')
338
  .replace(/&lt;(strong|span)\s+class\s*=\s*&quot;([^&]+)&quot;&gt;/g, '<$1 class="$2">');
339
-
340
  }
341
 
342
  DgwtWcasAutocompleteSearch.prototype = {
@@ -665,6 +667,12 @@
665
  $form.fadeIn(50, function () {
666
  $arrow.show();
667
  that.positionPreloaderAndMic($formWrapper);
 
 
 
 
 
 
668
  $input.focus();
669
  });
670
 
@@ -2141,7 +2149,7 @@
2141
  }
2142
  if (typeof suggestion.breadcrumbs != 'undefined' && suggestion.breadcrumbs) {
2143
  title = suggestion.breadcrumbs + ' &gt; ' + suggestion.value;
2144
- append += '<span class="dgwt-wcas-st-breadcrumbs">' + dgwt_wcas.labels.in + ' ' + suggestion.breadcrumbs + '</span>';
2145
  //@TODO RTL support
2146
  }
2147
 
@@ -2178,7 +2186,7 @@
2178
  } else if (suggestion.type === 'more_products') {
2179
  classes += ' js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more';
2180
  innerClass = 'dgwt-wcas-st-more';
2181
- suggestion.value = dgwt_wcas.labels.show_more + ' (' + suggestion.total + ')';
2182
  highlight = false;
2183
  } else if (options.showHeadings && suggestion.type === 'headline') {
2184
  classes += ' js-dgwt-wcas-suggestion-headline dgwt-wcas-suggestion-headline';
@@ -2769,6 +2777,8 @@
2769
  });
2770
  }
2771
 
 
 
2772
  $el.removeData('autocomplete');
2773
  $(window).off('resize.autocomplete', that.fixPosition);
2774
 
@@ -3041,16 +3051,21 @@
3041
  var $formWrapper = that.getFormWrapper();
3042
  var $input = $formWrapper.find('.' + that.options.searchInputClass);
3043
  var $voiceSearch = $formWrapper.find('.' + that.options.voiceSearchClass);
3044
- var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
3045
 
3046
- if (!SpeechRecognition) {
 
 
 
 
 
 
3047
  return false;
3048
  }
3049
 
3050
  that.voiceSearchSetState('inactive', $voiceSearch);
3051
  $formWrapper.addClass(that.options.voiceSearchSupportedClass);
3052
 
3053
- that.voiceSearchRecognition = new SpeechRecognition();
3054
  that.voiceSearchRecognition.lang = that.options.voiceSearchLang;
3055
  that.voiceSearchRecognition.continuous = false;
3056
  that.voiceSearchRecognition.interimResults = true;
334
  .replace(/&lt;sup/g, '<sup')
335
  .replace(/&lt;\/sup/g, '</sup')
336
  .replace(/sup&gt;/g, 'sup>')
337
+ .replace(/&lt;sub/g, '<sub')
338
+ .replace(/&lt;\/sub/g, '</sub')
339
+ .replace(/sub&gt;/g, 'sub>')
340
  .replace(/&lt;(\/?(strong|b|br|span))&gt;/g, '<$1>')
341
  .replace(/&lt;(strong|span)\s+class\s*=\s*&quot;([^&]+)&quot;&gt;/g, '<$1 class="$2">');
 
342
  }
343
 
344
  DgwtWcasAutocompleteSearch.prototype = {
667
  $form.fadeIn(50, function () {
668
  $arrow.show();
669
  that.positionPreloaderAndMic($formWrapper);
670
+
671
+ var textEnd = that.currentValue.length;
672
+ if (textEnd > 0) {
673
+ $input[0].setSelectionRange(textEnd, textEnd);
674
+ }
675
+
676
  $input.focus();
677
  });
678
 
2149
  }
2150
  if (typeof suggestion.breadcrumbs != 'undefined' && suggestion.breadcrumbs) {
2151
  title = suggestion.breadcrumbs + ' &gt; ' + suggestion.value;
2152
+ append += '<span class="dgwt-wcas-st-breadcrumbs"><span class="dgwt-wcas-st-label-in">' + dgwt_wcas.labels.in + ' </span>' + suggestion.breadcrumbs + '</span>';
2153
  //@TODO RTL support
2154
  }
2155
 
2186
  } else if (suggestion.type === 'more_products') {
2187
  classes += ' js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more';
2188
  innerClass = 'dgwt-wcas-st-more';
2189
+ suggestion.value = dgwt_wcas.labels.show_more + '<span class="dgwt-wcas-st-more-total"> (' + suggestion.total + ')</span>';
2190
  highlight = false;
2191
  } else if (options.showHeadings && suggestion.type === 'headline') {
2192
  classes += ' js-dgwt-wcas-suggestion-headline dgwt-wcas-suggestion-headline';
2777
  });
2778
  }
2779
 
2780
+ $formWrapper.off('click.autocomplete', '.js-dgwt-wcas-search-icon-handler');
2781
+
2782
  $el.removeData('autocomplete');
2783
  $(window).off('resize.autocomplete', that.fixPosition);
2784
 
3051
  var $formWrapper = that.getFormWrapper();
3052
  var $input = $formWrapper.find('.' + that.options.searchInputClass);
3053
  var $voiceSearch = $formWrapper.find('.' + that.options.voiceSearchClass);
 
3054
 
3055
+ var speechRecognition = false;
3056
+ if (typeof SpeechRecognition === "function") {
3057
+ speechRecognition = SpeechRecognition;
3058
+ } else if (typeof webkitSpeechRecognition === "function") {
3059
+ speechRecognition = webkitSpeechRecognition;
3060
+ }
3061
+ if (!speechRecognition) {
3062
  return false;
3063
  }
3064
 
3065
  that.voiceSearchSetState('inactive', $voiceSearch);
3066
  $formWrapper.addClass(that.options.voiceSearchSupportedClass);
3067
 
3068
+ that.voiceSearchRecognition = new speechRecognition();
3069
  that.voiceSearchRecognition.lang = that.options.voiceSearchLang;
3070
  that.voiceSearchRecognition.continuous = false;
3071
  that.voiceSearchRecognition.interimResults = true;
assets/js/search.min.js CHANGED
@@ -1 +1 @@
1
- !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function($){"use strict";var c={escapeRegExChars:function(a){return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(b){var a=document.createElement("div");return a.className=b,a.style.position="absolute",a.style.display="none",a.setAttribute("unselectable","on"),a},highlight:function(b,h){if(dgwt_wcas.is_premium){var d,a=h.split(/ /),i=!1,g="";if(a){for(d=0,g=a[a.length-1],a=a.sort(function(a,b){return b.length-a.length});d<a.length;d++)if(a[d]&&a[d].length>=1){var e=a[d].replace(/[\^\@]/g,"");if(e.length>0){if(1===e.trim().length&&a[d]!==g)var f="((\\s|^)"+c.escapeRegExChars(e.trim())+"\\s)";else if(1===e.trim().length&&a[d]===g)var f="((\\s|^)"+c.escapeRegExChars(e.trim())+")";else var f="("+c.escapeRegExChars(e.trim())+")";b=b.replace(new RegExp(f,"gi"),"^^$1@@"),i=!0}}}i&&(b=(b=b.replace(/\^\^/g,"<strong>")).replace(/@@/g,"</strong>"))}else{var f="("+c.escapeRegExChars(h)+")";b=b.replace(new RegExp(f,"gi"),"<strong>$1</strong>")}return b},debounce:function(b,c){var e,a=new Date().getUTCMilliseconds();if(0===d.id.length){d.id=a,b();return}d.id=a,e=setTimeout(function(){if(a!==d.id){clearTimeout(e);return}b(),d.id=""},c)},mouseHoverDebounce:function(c,d,a){var b;b=setTimeout(function(){if($(d+":hover").length>0)c();else{clearTimeout(b);return}},a)},isTextSelected:function(){var a=!1,b=document.getSelection();return"object"==typeof b&&b.toString().length>0&&(a=!0),a},getActiveInstance:function(){var b,a=$(".dgwt-wcas-search-wrapp.dgwt-wcas-active");return a.length>0&&a.each(function(){var a=$(this).find(".dgwt-wcas-search-input");if("object"==typeof a.data("autocomplete"))return b=a.data("autocomplete"),!1}),b},hashCode:function(b){for(var a=0,c=b.length;c>0;)a=(a<<5)-a+b.charCodeAt(--c)|0;return a<0?-1*a:a}},d={id:"",callback:null,ajaxSettings:null,object:null},e={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},b=$.noop;function a(c,d){var b=this;b.element=c,b.el=$(c),b.suggestions=[],b.badQueries=[],b.selectedIndex=-1,b.currentValue=b.element.value,b.timeoutId=null,b.cachedResponse={},b.cachedDetails={},b.cachedPrices={},b.detailsRequestsSent=[],b.onChangeTimeout=null,b.onChange=null,b.isLocal=!1,b.suggestionsContainer=null,b.detailsContainer=null,b.autoAligmentprocess=null,b.noSuggestionsContainer=null,b.latestActivateSource="",b.actionTriggerSource="",b.options=$.extend(!0,{},a.defaults,d),b.classes={selected:"dgwt-wcas-suggestion-selected",suggestion:"dgwt-wcas-suggestion",suggestionsContainerOrientTop:"dgwt-wcas-suggestions-wrapp--top",inputFilled:"dgwt-wcas-search-filled",darkenOverlayMounted:"js-dgwt-wcas-search-darkoverl-mounted",fixed:"dgwt-wcas-suggestions-wrapp-fixed"},b.hint=null,b.hintValue="",b.selection=null,b.overlayMobileState="off",b.overlayDarkenedState="off",b.isMouseDownOnSearchElements=!1,b.voiceSearchRecognition=null,b.voiceSearchStarted=null,b.initialize(),b.setOptions(d)}a.utils=c,$.DgwtWcasAutocompleteSearch=a,a.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,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,dpusbBreakpoint:550,deferRequestBy:0,params:{},formatResult:function(a,b,d,e){return b&&(d&&(a=c.highlight(a,b)),e.convertHtml)?a.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|span))&gt;/g,"<$1>").replace(/&lt;(strong|span)\s+class\s*=\s*&quot;([^&]+)&quot;&gt;/g,'<$1 class="$2">'):a},delimiter:null,zIndex:999999999,type:"GET",noCache:!1,isRtl:!1,onSearchStart:b,onSearchComplete:b,onSearchError:b,preserveInput:!1,searchFormClass:"dgwt-wcas-search-wrapp",containerClass:"dgwt-wcas-suggestions-wrapp",containerDetailsClass:"dgwt-wcas-details-wrapp",darkenedOverlayClass:"dgwt-wcas-darkened-overlay",searchInputClass:"dgwt-wcas-search-input",preloaderClass:"dgwt-wcas-preloader",closeTrigger:"dgwt-wcas-close",formClass:"dgwt-wcas-search-form",voiceSearchClass:"dgwt-wcas-voice-search",voiceSearchSupportedClass:"dgwt-wcas-voice-search-supported",voiceSearchActiveClass:"dgwt-wcas-voice-search-active",voiceSearchDisabledClass:"dgwt-wcas-voice-search-disabled",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,isPremium:!1,overlayMobile:!1,preventBadQueries:!0,lookupFilter:function(a,c,b){return -1!==a.value.toLowerCase().indexOf(b)},paramName:"query",transformResult:function(a){return"string"==typeof a?JSON.parse(a):a},noSuggestionNotice:"No results",forceFixPosition:!1,positionFixed:!1,debounceWaitMs:400,sendGAEvents:!0,enableGASiteSearchModule:!1,showProductVendor:!1,disableHits:!1,disableSubmit:!1,voiceSearchEnabled:!1,voiceSearchLang:""},a.prototype={initialize:function(){var a=this;a.element.setAttribute("autocomplete","off"),a.options.params=a.applyCustomParams(a.options.params),a.createContainers(),a.registerEventsSearchBar(),a.registerEventsSuggestions(),a.registerEventsDetailsPanel(),a.registerIconHandler(),a.registerFlexibleLayout(),a.initVoiceSearch(),a.fixPosition=function(){a.adjustContainerWidth(),a.visible&&(a.fixPositionSuggestions(),a.canShowDetailsPanel()&&a.fixPositionDetailsPanel()),a.positionOverlayDarkened()},$(window).on("resize.autocomplete",function(){var a=c.getActiveInstance();clearTimeout(window.dgwt_wcas.resizeOnlyOnce),void 0!==a&&(window.dgwt_wcas.resizeOnlyOnce=setTimeout(function(){a.fixPosition()},100))}),$(window).on("scroll.autocomplete",function(){var a=c.getActiveInstance();clearTimeout(window.dgwt_wcas.scrollOnlyOnce),void 0!==a&&(window.dgwt_wcas.scrollOnlyOnce=setTimeout(function(){a.fixPosition()},100))});var b=$(window).width();$(window).on("resize.autocomplete",function(){var c=$(window).width();c!=b&&(a.toggleMobileOverlayMode(),b=c)}),a.isBreakpointReached("mobile-overlay")&&a.activateMobileOverlayMode(),a.hideAfterClickOutsideListener(),a.suggestionsContainer.addClass("js-dgwt-wcas-initialized"),a.detailsContainer&&a.detailsContainer.length>0&&a.detailsContainer.addClass("js-dgwt-wcas-initialized")},createContainers:function(d){var b=this,c=b.options;0==$("."+c.containerClass).length?(b.suggestionsContainer=$(a.utils.createNode(c.containerClass)),b.suggestionsContainer.appendTo(c.appendTo||"body"),b.suggestionsContainer.addClass("woocommerce"),!0===c.showImage&&b.suggestionsContainer.addClass("dgwt-wcas-has-img"),!0===c.showPrice&&b.suggestionsContainer.addClass("dgwt-wcas-has-price"),!0===c.showDescription&&b.suggestionsContainer.addClass("dgwt-wcas-has-desc"),!0===c.showSKU&&b.suggestionsContainer.addClass("dgwt-wcas-has-sku"),!0===c.showHeadings&&b.suggestionsContainer.addClass("dgwt-wcas-has-headings")):b.suggestionsContainer=$("."+b.options.containerClass),b.canShowDetailsPanel()&&(0==$("."+c.containerDetailsClass).length?(b.detailsContainer=$(a.utils.createNode(c.containerDetailsClass)),b.detailsContainer.appendTo(c.appendTo||"body"),b.detailsContainer.addClass("woocommerce")):b.detailsContainer=$("."+c.containerDetailsClass))},registerEventsSearchBar:function(){var a=this;a.getForm().on("submit.autocomplete",function(b){if(a.options.disableSubmit)return b.preventDefault(),!1;var c=$(this).find("."+a.options.searchInputClass);if(c.length&&0===c.val().length)return b.preventDefault(),!1;a.suggestions.length>0&&$.each(a.suggestions,function(d,c){if(void 0!==c.type&&"product_variation"==c.type)return a.select(d),b.preventDefault(),!1}),a.closeOverlayMobile()}),"complete"===document.readyState?a.positionPreloaderAndMic():$(window).on("load",function(){a.positionPreloaderAndMic()}),a.el.on("keydown.autocomplete",function(b){a.onKeyPress(b)}),a.el.on("keyup.autocomplete",function(b){a.onKeyUp(b)}),a.el.on("blur.autocomplete",function(){a.onBlur()}),a.el.on("focus.autocomplete",function(b){a.onFocus(b)}),a.el.on("change.autocomplete",function(b){a.onKeyUp(b)}),a.el.on("input.autocomplete",function(b){a.onKeyUp(b)})},registerEventsSuggestions:function(){var a="."+this.classes.suggestion;if(!this.getSuggestionsContainer().hasClass("js-dgwt-wcas-initialized")){$(document).on("mouseenter.autocomplete",a,function(){var a=c.getActiveInstance();if(void 0!==a){var b=$(this).data("index"),d=a.canShowDetailsPanel()?100:1;a.selectedIndex!=b&&c.mouseHoverDebounce(function(){a.selectedIndex!==b&&(a.latestActivateSource="mouse",a.getDetails(a.suggestions[b]),a.activate(b))},'.dgwt-wcas-suggestion[data-index="'+b+'"]',d)}});var b=!1;$(document).on("click.autocomplete",a,function(a){if(b)a.preventDefault();else{var d=c.getActiveInstance();d.actionTriggerSource="click",b=!0,setTimeout(function(){b=!1},500),(void 0===a.ctrlKey|| !1===a.ctrlKey)&&(d.select($(this).data("index")),a.preventDefault())}}),$(document).on("mousedown.autocomplete",a,function(a){var d=this;0===a.button&&setTimeout(function(){b||c.getActiveInstance().select($(d).data("index"))},250)}),$("."+this.options.containerClass).on("mousedown.autocomplete",function(a){c.getActiveInstance().isMouseDownOnSearchElements=!0})}},registerEventsDetailsPanel:function(){var a=this.getDetailsContainer();!this.canShowDetailsPanel()||a.hasClass("js-dgwt-wcas-initialized")||($(document).on("change.autocomplete",'[name="js-dgwt-wcas-quantity"]',function(a){$(this).closest(".js-dgwt-wcas-pd-addtc").find("[data-quantity]").attr("data-quantity",$(this).val())}),$("."+this.options.containerDetailsClass).on("mousedown.autocomplete",function(a){c.getActiveInstance().isMouseDownOnSearchElements=!0}))},registerIconHandler:function(){var a=this,b=a.getFormWrapper(),c=a.getForm();b.on("click.autocomplete",".js-dgwt-wcas-search-icon-handler",function(e){var f=b.find("."+a.options.searchInputClass);if(b.hasClass("dgwt-wcas-layout-icon-open"))a.hide(),c.hide(!0),b.removeClass("dgwt-wcas-layout-icon-open");else{var d=b.find(".dgwt-wcas-search-icon-arrow");c.hide(),d.hide(),b.addClass("dgwt-wcas-layout-icon-open"),a.positionIconSearchMode(b),c.fadeIn(50,function(){d.show(),a.positionPreloaderAndMic(b),f.focus()}),setTimeout(function(){a.fixPosition()},110)}}),0==$(".js-dgwt-wcas-initialized").length&&$(".js-dgwt-wcas-search-icon-handler").length>0&&$(document).on("click.autocomplete",function(c){if($(".dgwt-wcas-layout-icon-open").length){var b=$(c.target);b.closest("."+a.options.searchFormClass).length>0||b.closest("."+a.options.containerClass).length>0||b.closest("."+a.options.containerDetailsClass).length>0||a.hideIconModeSearch()}})},registerFlexibleLayout:function(){var a=this,b=$(window).width();$(window).on("resize.autocomplete",function(){var c=$(window).width();c!=b&&(a.reloadFlexibleLayout(),b=c)}),"complete"==document.readyState?a.reloadFlexibleLayout():$(window).on("load.autocomplete",function(){a.reloadFlexibleLayout()})},activateMobileOverlayMode:function(){var b=this,a=b.getFormWrapper();a.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&!a.find(".js-dgwt-wcas-enable-mobile-form").length&&(a.prepend('<div class="js-dgwt-wcas-enable-mobile-form dgwt-wcas-enable-mobile-form"></div>'),a.addClass("dgwt-wcas-mobile-overlay-trigger-active"),a.find(".js-dgwt-wcas-enable-mobile-form").on("click.autocomplete",function(a){b.options.mobileOverlayDelay>0?setTimeout(function(){b.showMobileOverlay()},b.options.mobileOverlayDelay):b.showMobileOverlay()}))},deactivateMobileOverlayMode:function(){var a=this.getFormWrapper();this.getSuggestionsContainer();var b=a.find(".js-dgwt-wcas-enable-mobile-form");a.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&b.length&&(this.closeOverlayMobile(),b.remove(),a.removeClass("dgwt-wcas-mobile-overlay-trigger-active"))},toggleMobileOverlayMode:function(){var b=this.getFormWrapper(),a=!1;if(b.hasClass("js-dgwt-wcas-mobile-overlay-enabled")){if(b.find(".js-dgwt-wcas-enable-mobile-form").length&&(a=!0),!a&&this.isBreakpointReached("mobile-overlay")||a&&!this.isBreakpointReached("mobile-overlay")){var c=this.getSuggestionsContainer();this.close(!1),c.length&&c.html(""),this.hideIconModeSearch()}!a&&this.isBreakpointReached("mobile-overlay")&&this.activateMobileOverlayMode(),a&&!this.isBreakpointReached("mobile-overlay")&&this.deactivateMobileOverlayMode()}},showMobileOverlay:function(){var b=this;if("on"!==b.overlayMobileState){b.overlayMobileState="on";var d,c=b.getFormWrapper(),e=b.getSuggestionsContainer(),a="";$("html").addClass("dgwt-wcas-overlay-mobile-on"),$("html").addClass("dgwt-wcas-open-"+b.getSearchStyle()),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>",$(b.options.mobileOverlayWrapper).append(a),(d=$(".js-dgwt-wcas-overlay-mobile")).css("zIndex",99999999999),c.after('<span class="js-dgwt-wcas-om-hook"></span>'),c.appendTo(".js-dgwt-wcas-om-bar"),e.appendTo(".js-dgwt-wcas-om-bar"),c.addClass("dgwt-wcas-search-wrapp-mobile"),c.hasClass("dgwt-wcas-has-submit")&&(c.addClass("dgwt-wcas-has-submit-off"),c.removeClass("dgwt-wcas-has-submit")),c.find("."+b.options.searchInputClass).focus(),$(document).on("click.autocomplete",".js-dgwt-wcas-om-return",function(a){b.closeOverlayMobile(d)})}},closeOverlayMobile:function(d){var a=this;if(!$("html").hasClass("dgwt-wcas-overlay-mobile-on")){a.overlayMobileState="off";return}var c=a.getSuggestionsContainer(),b=$(".js-dgwt-wcas-om-bar").find("."+a.options.searchFormClass);b.hasClass("dgwt-wcas-has-submit-off")&&(b.removeClass("dgwt-wcas-has-submit-off"),b.addClass("dgwt-wcas-has-submit")),b.removeClass("dgwt-wcas-search-wrapp-mobile"),$("html").removeClass("dgwt-wcas-overlay-mobile-on"),$("html").removeClass("dgwt-wcas-open-"+a.getSearchStyle()),c.appendTo("body"),c.removeAttr("body-scroll-lock-ignore"),$(".js-dgwt-wcas-om-hook").after(b),$(".js-dgwt-wcas-overlay-mobile").remove(),$(".js-dgwt-wcas-om-hook").remove(),setTimeout(function(){b.find("."+a.options.searchInputClass).val("");var c=b.find(".dgwt-wcas-close");b.length>0&&(c.removeClass("dgwt-wcas-close"),c.html("")),a.hide()},150),a.overlayMobileState="off"},reloadFlexibleLayout:function(){var a=this.getFormWrapper(),b=0;a.hasClass("js-dgwt-wcas-layout-icon-flexible")&&(b=1),a.hasClass("js-dgwt-wcas-layout-icon-flexible-inv")&&(b=2),b>0&&(1===b&&this.isBreakpointReached("search-layout")||2===b&&!this.isBreakpointReached("search-layout")?(a.addClass("js-dgwt-wcas-layout-icon"),a.addClass("dgwt-wcas-layout-icon")):(a.removeClass("js-dgwt-wcas-layout-icon"),a.removeClass("dgwt-wcas-layout-icon")),a.addClass("dgwt-wcas-layout-icon-flexible-loaded"))},onFocus:function(b){var a=this.getFormWrapper();$("."+this.options.searchFormClass).removeClass("dgwt-wcas-active"),a.addClass("dgwt-wcas-active"),$("body").addClass("dgwt-wcas-focused"),a.addClass("dgwt-wcas-search-focused"),0==$(b.target).closest(".dgwt-wcas-search-wrapp-mobile").length&&this.enableOverlayDarkened(),this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var a=this.options,b=this.el.val(),c=this.getQuery(b);$("body").removeClass("dgwt-wcas-focused"),$("."+a.searchFormClass).removeClass("dgwt-wcas-search-focused"),!this.isMouseDownOnSearchElements&&(this.hide(),this.selection&&this.currentValue!==c&&(a.onInvalidateSelection||$.noop).call(this.element))},abortAjax:function(){var a=this;a.currentRequest&&(a.currentRequest.abort(),a.currentRequest=null)},setOptions:function(c){var a=this,d=a.getSuggestionsContainer(),b=$.extend({},a.options,c);a.isLocal=Array.isArray(b.lookup),a.isLocal&&(b.lookup=a.verifySuggestionsFormat(b.lookup)),d.css({"max-height":a.canShowDetailsPanel()?"none":b.maxHeight+"px","z-index":b.zIndex}),a.canShowDetailsPanel()&&a.getDetailsContainer().css({"z-index":b.zIndex-1}),b.onSearchComplete=function(){a.getFormWrapper().removeClass("dgwt-wcas-processing"),a.preloader("hide","form","dgwt-wcas-inner-preloader"),a.showCloseButton()},this.options=b},clearCache:function(){this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.badQueries=[]},clear:function(a){a&&this.clearCache(),this.currentValue="",this.suggestions=[]},close:function(b){var a=this.el.closest("."+this.options.searchFormClass).find("."+this.options.searchInputClass),c=this.getFormWrapper();this.hide(),this.clear(!1),this.hideCloseButton(),a.val(""),c.removeClass(this.classes.inputFilled),b&&a.focus()},fixPositionSuggestions:function(){var b=this.getSuggestionsContainer(),c=this.getForm(),e=this.el,f=this.getElementInfo(c),a=this.getElementInfo(e),d={top:a.top+a.height,left:f.left};this.ancestorHasPositionFixed(c)?(d.top=a.topViewPort+a.height,b.addClass(this.classes.fixed)):b.removeClass(this.classes.fixed),this.getSuggestionsContainer().css(d)},fixPositionDetailsPanel:function(){var g=this.getFormWrapper(),d=this.getSuggestionsContainer(),a=this.getDetailsContainer(),h=this.getForm(),i=this.el,e=this.getElementInfo(h),c=this.getElementInfo(i),b={top:c.top+c.height,left:e.left+d.outerWidth(!1)};if(this.ancestorHasPositionFixed(g)?(b.top=c.topViewPort+c.height,a.addClass(this.classes.fixed)):a.removeClass(this.classes.fixed),a.css(b),$("body").removeClass("dgwt-wcas-full-width dgwt-wcas-details-outside dgwt-wcas-details-right dgwt-wcas-details-left dgwt-wcas-details-notfit"),g.outerWidth()>=this.options.dpusbBreakpoint){$("body").addClass("dgwt-wcas-full-width"),!0===this.options.isRtl&&(b.left=e.left+a.outerWidth(!1),d.css("left",b.left),a.css("left",e.left));return}var j=$(window).width(),k=a.outerWidth(),f=a.offset();$("body").addClass("dgwt-wcas-details-outside dgwt-wcas-details-right"),j<f.left+k&&($("body").removeClass("dgwt-wcas-details-right"),$("body").addClass("dgwt-wcas-details-left"),b.left=d.offset().left-a.outerWidth(!1),a.css("left",b.left),f=a.offset()),f.left<1&&($("body").removeClass("dgwt-wcas-details-left dgwt-wcas-details-right"),$("body").addClass("dgwt-wcas-details-notfit"))},fixHeight:function(){if(!this.canShowDetailsPanel())return!1;var a=this.getSuggestionsContainer(),d=this.getDetailsContainer();a.css("height","auto"),d.css("height","auto");var b=a.outerHeight(!1),c=d.outerHeight(!1);return a.find(".dgwt-wcas-suggestion:last-child").removeClass("dgwt-wcas-suggestion-no-border-bottom"),(!(b<=340)||!(c<=340))&&(a.find(".dgwt-wcas-suggestion:last-child").addClass("dgwt-wcas-suggestion-no-border-bottom"),c<b&&d.css("height",b+"px"),b<c&&a.css("height",c+"px"),!1)},automaticAlignment:function(){var a=this,b=a.getFormWrapper().find(".dgwt-wcas-search-input"),c=a.getSuggestionsContainer(),d=a.getDetailsContainer();if(null==a.autoAligmentprocess){var e=[b.width(),c.height()];a.canShowDetailsPanel()&&(e[2]=d.height()),a.autoAligmentprocess=setInterval(function(){var g=[b.width(),c.height()];a.canShowDetailsPanel()&&(g[2]=d.height());for(var f=0;f<e.length;f++)if(e[f]!=g[f]){a.fixHeight(),a.fixPosition(),e=g;break}a.canShowDetailsPanel()&&d.find(".dgwt-wcas-details-inner").height()-d.height()>2&&a.fixHeight()},10)}},getElementInfo:function(b){var c,d,a={};return c=b[0].getBoundingClientRect(),d=b.offset(),a.left=d.left,a.top=d.top,a.width=b.outerWidth(!1),a.height=b.outerHeight(!1),a.right=a.left+a.width,a.bottom=a.top+a.height,a.topViewPort=c.top,a.bottomViewPort=c.top+a.height,a},getFormWrapper:function(){return this.el.closest("."+this.options.searchFormClass)},getForm:function(){return this.el.closest("."+this.options.formClass)},getSuggestionsContainer:function(){return $("."+this.options.containerClass)},getDetailsContainer:function(){return $("."+this.options.containerDetailsClass)},scrollDownSuggestions:function(){var a=this.getSuggestionsContainer();a[0].scrollTop=a[0].scrollHeight},isCursorAtEnd:function(){var b,a=this.el.val().length,c=this.element.selectionStart;return"number"==typeof c?c===a:!document.selection||((b=document.selection.createRange()).moveStart("character",-a),a===b.text.length)},onKeyPress:function(b){var a=this,c=a.getFormWrapper();if(a.addActiveClassIfMissing(),!a.visible&&b.keyCode===e.DOWN&&a.currentValue){a.suggest();return}if(!a.visible){b.keyCode===e.ESC&&c.hasClass("dgwt-wcas-layout-icon-open")&&a.hideIconModeSearch(),b.keyCode===e.ESC&&a.isMountedOverlayDarkened()&&(a.disableOverlayDarkened(),a.el.blur());return}if((b.ctrlKey||b.metaKey)&&b.keyCode===e.RETURN){a.selectedIndex> -1&&a.openInNewTab(a.selectedIndex);return}switch(b.keyCode){case e.ESC:a.close();break;case e.RIGHT:if(a.hint&&a.options.onHint&&a.isCursorAtEnd()){a.selectHint();break}return;case e.TAB:break;case e.RETURN:if(-1===a.selectedIndex){if(a.options.disableSubmit)return!1;a.hide();return}a.actionTriggerSource="enter",a.select(a.selectedIndex);break;case e.UP:a.moveUp();break;case e.DOWN:a.moveDown();break;default:return}b.stopImmediatePropagation(),b.preventDefault()},onKeyUp:function(b){var a=this;switch(b.keyCode){case e.UP:case e.DOWN:return}clearTimeout(a.onChangeTimeout),a.currentValue!==a.el.val()&&(a.findBestHint(),a.options.deferRequestBy>0?a.onChangeTimeout=setTimeout(function(){a.onValueChange()},a.options.deferRequestBy):a.onValueChange())},onValueChange:function(){if(this.ignoreValueChange){this.ignoreValueChange=!1;return}var a=this,c=a.options,e=a.el.val(),b=a.getQuery(e),d=a.getFormWrapper();if(a.selection&&a.currentValue!==b&&(a.selection=null,(c.onInvalidateSelection||$.noop).call(a.element)),clearTimeout(a.onChangeTimeout),a.currentValue=e,a.selectedIndex=-1,c.triggerSelectOnValidInput&&a.isExactMatch(b)){a.select(0);return}b.length>0?d.hasClass(a.classes.inputFilled)||d.addClass(a.classes.inputFilled):d.removeClass(a.classes.inputFilled),b.length<c.minChars?(a.hideCloseButton(),a.hide()):a.getSuggestions(b)},isExactMatch:function(b){var a=this.suggestions;return 1===a.length&&a[0].value.toLowerCase()===b.toLowerCase()},canShowDetailsPanel:function(){var a=this.options.showDetailsPanel;return(768>$(window).width()||"ontouchend"in document)&&(a=!1),a},isBreakpointReached:function(b){var a=0;switch(b){case"search-layout":a=this.options.layoutBreakpoint,this.isSetParam("layout_breakpoint")&&(a=Number.parseInt(this.getParam("layout_breakpoint")));break;case"mobile-overlay":a=this.options.mobileOverlayBreakpoint,this.isSetParam("mobile_overlay_breakpoint")&&(a=Number.parseInt(this.getParam("mobile_overlay_breakpoint")))}return $(window).width()<=a},getQuery:function(b){var a,c=this.options.delimiter;return c?(a=b.split(c),$.trim(a[a.length-1])):b.trim()},getSuggestionsLocal:function(d){var a,b=this.options,e=d.toLowerCase(),f=b.lookupFilter,c=parseInt(b.lookupLimit,10);return a={suggestions:$.grep(b.lookup,function(a){return f(a,d,e)})},c&&a.suggestions.length>c&&(a.suggestions=a.suggestions.slice(0,c)),a},getSuggestions:function(e){var f,h,j,i,a=this,b=a.options,g=b.serviceUrl,k=a.getFormWrapper(),l=a.isActiveIconModeSearch();if(b.params[b.paramName]=e,void 0!==dgwt_wcas.current_lang&&(b.params.l=dgwt_wcas.current_lang),a.preloader("show","form","dgwt-wcas-inner-preloader"),k.addClass("dgwt-wcas-processing"),!1!==b.onSearchStart.call(a.element,b.params)){if(h=b.ignoreParams?null:b.params,$.isFunction(b.lookup)){b.lookup(e,function(c){a.suggestions=c.suggestions,a.suggest(),a.selectFirstSuggestion(c.suggestions),b.onSearchComplete.call(a.element,e,c.suggestions)});return}a.isLocal?f=a.getSuggestionsLocal(e):($.isFunction(g)&&(g=g.call(a.element,e)),j=g+"?"+$.param(h||{}),f=a.cachedResponse[j]),f&&Array.isArray(f.suggestions)?(a.suggestions=f.suggestions,a.suggest(),a.selectFirstSuggestion(f.suggestions),b.onSearchComplete.call(a.element,e,f.suggestions)):a.isBadQuery(e)?b.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),i={url:g,data:h,type:b.type,dataType:b.dataType},$.extend(i,b.ajaxSettings),d.object=a,d.ajaxSettings=i,c.debounce(function(){var a=d.object,b=d.ajaxSettings;a.currentRequest=$.ajax(b).done(function(c){var b;(!l||a.isActiveIconModeSearch())&&(a.currentRequest=null,void 0!==(b=a.options.transformResult(c,e)).suggestions&&(a.processResponse(b,e,j),a.selectFirstSuggestion(b.suggestions),1===b.suggestions.length&& void 0!==b.suggestions[0].type&&"no-results"===b.suggestions[0].type?a.gaEvent(e,"Autocomplete Search without results"):a.gaEvent(e,"Autocomplete Search with results")),a.fixPosition(),a.options.onSearchComplete.call(a.element,e,b.suggestions),a.updatePrices())}).fail(function(b,c,d){a.options.onSearchError.call(a.element,e,b,c,d)})},b.debounceWaitMs))}},getDetails:function(b){var a=this;if(!a.canShowDetailsPanel())return!1;if(null!=b&& void 0!==b.type&&("string"!=typeof b.type||"more_products"!==b.type)){a.fixHeight(),a.getDetailsContainer();var c=a.prepareSuggestionObjectID(b);if(null!=a.cachedDetails[c])a.detailsPanelSetScene(c),a.fixHeight(),a.fixPosition();else{var d={action:dgwt_wcas.action_result_details,items:[]};if($.each(a.suggestions,function(e,b){if(void 0!==b.type&&"more_products"!=b.type&&"headline"!=b.type){var c={objectID:a.prepareSuggestionObjectID(b),value:null!=b.value?b.value:""};d.items.push(c)}}),a.detailsPanelClearScene(),a.preloader("show","details",""),-1!=$.inArray(c,a.detailsRequestsSent))return;a.detailsRequestsSent.push(c),$.ajax({data:d,type:"post",url:dgwt_wcas.ajax_details_endpoint,success:function(d){var b="string"==typeof d?JSON.parse(d):d;if(void 0!==b.items)for(var c=0;c<b.items.length;c++){var e=b.items[c].objectID;a.cachedDetails[e]={html:b.items[c].html},a.detailsPanelAddToScene(e),void 0!==b.items[c].price&&b.items[c].price.length>0&&(a.cachedPrices[e]=b.items[c].price)}a.preloader("hide","details","");var f=a.prepareSuggestionObjectID(a.suggestions[a.selectedIndex]);null!=a.cachedDetails[f]?a.detailsPanelSetScene(f):a.detailsPanelClearScene(),a.fixPosition(),a.fixHeight(),a.updatePrices(!0)},error:function(b,c){a.preloader("hide","details",""),a.detailsPanelClearScene(),a.fixPosition(),a.fixHeight()}})}$(document).trigger("dgwtWcasDetailsPanelLoaded",a)}},updatePrices:function(e){var b,g,a=this,c=[];if(a.options.showPrice&&a.options.dynamicPrices&&0!=a.suggestions.length){for(b=0;b<a.suggestions.length;b++)if(void 0!==a.suggestions[b].type&&("product"==a.suggestions[b].type||"product_variation"==a.suggestions[b].type)){var d="product__"+a.suggestions[b].post_id;void 0!==a.cachedPrices[d]?a.updatePrice(b,a.cachedPrices[d]):(a.applyPreloaderForPrice(b),c.push(a.suggestions[b].post_id))}if(!e&&c.length>0){var f={action:void 0===dgwt_wcas.action_get_prices?"dgwt_wcas_get_prices":dgwt_wcas.action_get_prices,items:c};$.ajax({data:f,type:"post",url:dgwt_wcas.ajax_prices_endpoint,success:function(c){if(void 0!==c.success&&c.success&&c.data.length>0)for(b=0;b<c.data.length;b++){var d=c.data[b].id,e=c.data[b].price;if(a.suggestions.length>0){for(g=0;g<a.suggestions.length;g++)if(void 0!==a.suggestions[g].type&&("product"==a.suggestions[g].type||"product_variation"==a.suggestions[g].type)&&a.suggestions[g].post_id==d){var f="product__"+d;a.cachedPrices[f]=e,a.updatePrice(g,e)}}}},error:function(a,b){}})}}},updatePrice:function(a,b){var c=this;if(void 0!==c.suggestions[a]){c.suggestions[a].price=b;var d=$(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+a+'"] .dgwt-wcas-sp');d.length&&d.html(b)}},applyCustomParams:function(b){if("object"==typeof dgwt_wcas.custom_params){var d=dgwt_wcas.custom_params;for(var a in d)b[a]=d[a]}var c=this.el.data("custom-params");if("object"==typeof c)for(var a in c)b[a]=c[a];return b},isSetParam:function(a){return void 0!==this.options.params[a]},getParam:function(a){return this.isSetParam(a)?this.options.params[a]:""},applyPreloaderForPrice:function(a){if(void 0!==this.suggestions[a]){var b=$(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+a+'"] .dgwt-wcas-sp');b.length&&b.html('<div class="dgwt-wcas-preloader-price"><div class="dgwt-wcas-preloader-price-inner"> <div></div><div></div><div></div></div></div>')}},prepareSuggestionObjectID:function(a){var b="";return void 0!==a&& void 0!==a.type&&(null!=a.post_id&&(b=a.type+"__"+a.post_id,"product_variation"===a.type&&(b+="__"+a.variation_id),void 0!==a.post_type&&(b=a.type+"__"+a.post_id+"__"+a.post_type)),null!=a.term_id&&null!=a.taxonomy&&(b=a.type+"__"+a.term_id+"__"+a.taxonomy)),b},detailsPanelSetScene:function(b){var d=this.getDetailsContainer(),e=c.hashCode(b),a=d.find('.dgwt-wcas-details-inner[data-object="'+e+'"]');a.length&&(this.preloader("hide","details",""),this.detailsPanelClearScene(),a.addClass("dgwt-wcas-details-inner-active"))},detailsPanelAddToScene:function(b){var d=this.getDetailsContainer(),a=this.cachedDetails[b],e=c.hashCode(b),f="";void 0!==a&&"string"==typeof a.html&&(f=a.html.replace("<div ",'<div data-object="'+e+'" ')),0==d.find('.dgwt-wcas-details-inner[data-object="'+e+'"]').length&&d.append(f)},detailsPanelClearScene:function(){var a=this.getDetailsContainer().find(".dgwt-wcas-details-inner");a.length&&a.removeClass("dgwt-wcas-details-inner-active")},selectFirstSuggestion:function(b){var a=this,c=0,d=!1;a.canShowDetailsPanel()&&("undefined"!=b&&b.length>0&&$.each(a.suggestions,function(b,a){if(void 0!==a.type&&"more_products"!=a.type&&"headline"!=a.type&&"no-results"!=a.type)return c=b,!1;(void 0===a.type||"no-results"===a.type)&&(d=!0)}),d||(a.latestActivateSource="system",a.getDetails(b[c]),a.activate(c)))},isBadQuery:function(c){if(!this.options.preventBadQueries)return!1;for(var a=this.badQueries,b=a.length;b--;)if(0===c.indexOf(a[b]))return!0;return!1},hide:function(c){var a=this,b=a.getSuggestionsContainer(),d=a.getDetailsContainer();$.isFunction(a.options.onHide)&&a.visible&&a.options.onHide.call(a.element,container),a.visible=!1,a.selectedIndex=-1,clearTimeout(a.onChangeTimeout),b.hide(),b.removeClass(a.classes.suggestionsContainerOrientTop),b.removeClass(a.classes.fixed),a.canShowDetailsPanel()&&(d.hide(),d.removeClass(a.classes.fixed)),$("body").removeClass("dgwt-wcas-open"),$("html").hasClass("dgwt-wcas-overlay-mobile-on")||$("html").removeClass("dgwt-wcas-open-"+a.getSearchStyle()),$("body").removeClass("dgwt-wcas-block-scroll"),$("body").removeClass("dgwt-wcas-is-details"),$("body").removeClass("dgwt-wcas-full-width"),$("body").removeClass("dgwt-wcas-nores"),$("body").removeClass("dgwt-wcas-details-outside"),$("body").removeClass("dgwt-wcas-details-right"),$("body").removeClass("dgwt-wcas-details-left"),null!=a.autoAligmentprocess&&(clearInterval(a.autoAligmentprocess),a.autoAligmentprocess=null),a.isMouseDownOnSearchElements=!1,"boolean"==typeof c&&c&&(a.hideCloseButton(),a.currentValue="",a.suggestions=[]),a.signalHint(null)},positionIconSearchMode:function(d){var a=-20,b=this.getForm(),e=b.width(),f=$(window).width(),c=d[0].getBoundingClientRect().left;a=Math.floor(-1*(e*((c+10)/f))),a=Math.max(a,-1*c),b.css({left:a+"px"})},isActiveIconModeSearch:function(){var a=!1;return $(".dgwt-wcas-layout-icon-open").length>0&&(a=!0),a},hideIconModeSearch:function(){this.isActiveIconModeSearch()&&!c.isTextSelected()&&$(".dgwt-wcas-layout-icon-open").removeClass("dgwt-wcas-layout-icon-open")},hideAfterClickOutsideListener:function(){var a=this;"ontouchend"in document||$(document).mouseup(function(b){if(a.visible){var c=!($(b.target).closest("."+a.options.searchFormClass).length>0||$(b.target).hasClass(a.options.searchFormClass)),d=!($(b.target).closest("."+a.options.containerClass).length>0||$(b.target).hasClass(a.options.containerClass));if(a.canShowDetailsPanel()){var e=!($(b.target).closest("."+a.options.containerDetailsClass).length>0||$(b.target).hasClass(a.options.containerDetailsClass));c&&d&&e&&a.hide()}else c&&d&&a.hide()}})},suggest:function(){if(!this.suggestions.length){this.hide();return}var k,a=this,b=a.options,l=b.groupBy,m=b.formatResult,e=a.getQuery(a.currentValue),f=a.classes.suggestion,g=a.classes.selected,c=a.getSuggestionsContainer(),h=a.getDetailsContainer(),i=$(a.noSuggestionsContainer),d=b.beforeRender,j="",n=function(b,c){var a=b.data[l];return k===a?"":'<div class="autocomplete-group"><strong>'+(k=a)+"</strong></div>"};if(b.triggerSelectOnValidInput&&a.isExactMatch(e)){a.select(0);return}$("body").removeClass("dgwt-wcas-nores"),$.each(a.suggestions,function(p,c){var k="",o=!1,s="string"==typeof c.url&&c.url.length?c.url:"#";if(l&&(j+=n(c,e,p)),void 0===c.type||"product"!=c.type&&"product_variation"!=c.type){var q,d=f,t="dgwt-wcas-st",g="",r="",h="",i=!0;"product_cat"===c.taxonomy?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-cat",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>"),void 0!==c.breadcrumbs&&c.breadcrumbs&&(h=c.breadcrumbs+" &gt; "+c.value,r+='<span class="dgwt-wcas-st-breadcrumbs">'+dgwt_wcas.labels.in+" "+c.breadcrumbs+"</span>")):"product_tag"===c.taxonomy?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tag",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>")):b.isPremium&&c.taxonomy===b.taxonomyBrands?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-brand",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>")):b.isPremium&&"taxonomy"===c.type?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tax-"+c.taxonomy,b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>")):b.isPremium&&"vendor"===c.type?(d+=" dgwt-wcas-suggestion-vendor dgwt-wcas-suggestion-vendor",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.vendor+"</span>")):b.isPremium&&"post"===c.type&& void 0!==c.post_type&&"post"===c.post_type?(d+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-post",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.post+"</span>")):b.isPremium&&"post"===c.type&& void 0!==c.post_type&&"page"===c.post_type?(d+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-page",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.page+"</span>")):"more_products"===c.type?(d+=" js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more",t="dgwt-wcas-st-more",c.value=dgwt_wcas.labels.show_more+" ("+c.total+")",i=!1):b.showHeadings&&"headline"===c.type?(d+=" 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"]),i=!1):(d+=" dgwt-wcas-suggestion-nores",c.value=dgwt_wcas.labels.no_results,i=!1,a.canShowDetailsPanel()&&a.detailsPanelClearScene(),$("body").addClass("dgwt-wcas-nores")),void 0!==c.image_src&&c.image_src&&(q=!0),h=h.length>0?' title="'+h+'"':"",j+='<a href="'+s+'" class="'+d+'" data-index="'+p+'">',q&&(j+='<span class="dgwt-wcas-si"><img src="'+c.image_src+'" /></span>',j+='<div class="dgwt-wcas-content-wrapp">'),j+="<span"+h+' class="'+t+'">',"vendor"===c.type?(j+='<span class="dgwt-wcas-st-title">'+g+m(c.value,e,i,b)+r+"</span>",c.shop_city&&(j+='<span class="dgwt-wcas-vendor-city"><span> - </span>'+m(c.shop_city,e,!0,b)+"</span>"),void 0!==c.desc&&c.desc&&(j+='<span class="dgwt-wcas-sd">'+m(c.desc,e,!0,b)+"</span>")):j+=g+m(c.value,e,i,b)+r,j+="</span>",j+=q?"</div>":"",j+="</a>"}else{!0===b.showImage&& void 0!==c.thumb_html&&(o=!0);var z="product_variation"===c.type?" dgwt-wcas-suggestion-product-var":"";if(k+=void 0!==c.post_id?'data-post-id="'+c.post_id+'" ':"",k+=void 0!==c.taxonomy?'data-taxonomy="'+c.taxonomy+'" ':"",k+=void 0!==c.term_id?'data-term-id="'+c.term_id+'" ':"",j+='<a href="'+s+'" class="'+f+" dgwt-wcas-suggestion-product"+z+'" data-index="'+p+'" '+k+">",o&&(j+='<span class="dgwt-wcas-si">'+c.thumb_html+"</span>"),j+=o?'<div class="dgwt-wcas-content-wrapp">':"",j+='<div class="dgwt-wcas-st">',void 0!==c.title_before&&c.title_before&&(j+=c.title_before),j+='<span class="dgwt-wcas-st-title">'+m(c.value,e,!0,b)+"</span>",void 0!==c.title_after&&c.title_after&&(j+=c.title_after),!0===b.showSKU&& void 0!==c.sku&&c.sku.length>0&&(j+='<span class="dgwt-wcas-sku">('+dgwt_wcas.labels.sku_label+" "+m(c.sku,e,!0,b)+")</span>"),!0===b.showDescription&& void 0!==c.desc&&c.desc&&(j+='<span class="dgwt-wcas-sd">'+m(c.desc,e,!0,b)+"</span>"),!0===b.showProductVendor&& void 0!==c.vendor&&c.vendor){var u='<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?j+='<span class="dgwt-wcas-product-vendor-link" data-url="'+c.vendor_url+'">'+u+"</span>":j+=u}void 0!==c.content_after&&c.content_after&&(j+=c.content_after),j+="</div>";var v=!0===b.showPrice&& void 0!==c.price,w=void 0!==c.meta_before,x=void 0!==c.meta_after,y=v||w||x;j+=y?'<div class="dgwt-wcas-meta">':"",w&&(j+=c.meta_before),v&&(j+='<span class="dgwt-wcas-sp">'+c.price+"</span>"),x&&(j+=c.meta_after),j+=y?"</div>":"",j+=o?"</div>":"",j+="</a>"}}),this.adjustContainerWidth(),i.detach(),c.html(j),$.isFunction(d)&&d.call(a.element,c,a.suggestions),c.show(),$("body").addClass("dgwt-wcas-open"),$("html").addClass("dgwt-wcas-open-"+a.getSearchStyle()),a.isMouseDownOnSearchElements=!1,a.automaticAlignment(),a.canShowDetailsPanel()&&($("body").addClass("dgwt-wcas-is-details"),h.show(),a.fixHeight()),b.autoSelectFirst&&(a.selectedIndex=0,c.scrollTop(0),c.children("."+f).first().addClass(g)),a.visible=!0,a.fixPosition(),a.findBestHint()},getSearchStyle(){var a=this.getFormWrapper(),b="solaris";return $(a.attr("class").split(/\s+/)).each(function(a){/dgwt-wcas-style-/i.test(this)&&(b=this.replace(/dgwt-wcas-style-/i,""))}),b},adjustContainerWidth:function(){var e=this.getFormWrapper(),c=this.getSuggestionsContainer(),b=this.getDetailsContainer(),a=this.getForm().outerWidth();if(e.length&&(c.css("width",a+"px"),this.canShowDetailsPanel()&&a>=this.options.dpusbBreakpoint)){var d=0;c.css("width",a/2),b.css("width",a/2),0!=(d=a-(c.outerWidth()+b.outerWidth()))&&b.css("width",b.outerWidth()+d)}},positionPreloaderAndMic:function(a){var c=this,b="object"==typeof a?a.find(".dgwt-wcas-search-submit"):$(".dgwt-wcas-search-submit");b.length>0&&b.each(function(){var a=$(this).closest(".dgwt-wcas-search-wrapp").find(".dgwt-wcas-preloader"),d=$(this).closest(".dgwt-wcas-search-wrapp").hasClass(c.options.voiceSearchSupportedClass),b=$(this).closest(".dgwt-wcas-search-wrapp").find("."+c.options.voiceSearchClass);d?1==dgwt_wcas.is_rtl?(b.css("left",6+$(this).outerWidth()+"px"),a.css("left",46+$(this).outerWidth()+"px")):(b.css("right",$(this).outerWidth()+"px"),a.css("right",40+$(this).outerWidth()+"px")):1==dgwt_wcas.is_rtl?a.css("left",6+$(this).outerWidth()+"px"):a.css("right",$(this).outerWidth()+"px")})},findBestHint:function(){var a=this.el.val().toLowerCase(),b=null;a&&($.each(this.suggestions,function(e,c){var d=0===c.value.toLowerCase().indexOf(a);return d&&(b=c),!d}),this.signalHint(b))},signalHint:function(c){var b="",a=this;c&&(b=a.currentValue+c.value.substr(a.currentValue.length)),a.hintValue!==b&&(a.hintValue=b,a.hint=c,(this.options.onHint||$.noop)(b))},preloader:function(d,e,b){var g,a,f="dgwt-wcas-preloader-wrapp";if("form"===e){if(1!=dgwt_wcas.show_preloader)return;a=this.getFormWrapper().find(".dgwt-wcas-preloader")}else"details"===e&&(a=this.getDetailsContainer());if(0!=a.length){if("form"===e){"hide"===d?(a.removeClass(b),a.html("")):(a.addClass(b),"string"==typeof dgwt_wcas.preloader_icon&&a.html(dgwt_wcas.preloader_icon));return}var c=a.find("."+f);if("hide"===d){c.length&&c.remove();return}if("show"===d){var h=this.options.isRtl?"-rtl":"";g='<div class="'+(null==b?f:f+" "+b)+'"><img class="dgwt-wcas-placeholder-preloader" src="'+dgwt_wcas.img_url+"placeholder"+h+'.png" /></div>',this.detailsPanelClearScene(),c.length&&c.remove(),a.prepend(g)}}},verifySuggestionsFormat:function(a){return a.length&&"string"==typeof a[0]?$.map(a,function(a){return{value:a,data:null}}):a},processResponse:function(b,c,e){var a=this,d=a.options;b.suggestions=a.verifySuggestionsFormat(b.suggestions),d.noCache||(a.cachedResponse[e]=b,d.preventBadQueries&&!b.suggestions.length&&a.badQueries.push(c)),c===a.getQuery(a.currentValue)&&(a.suggestions=b.suggestions,a.suggest())},activate:function(f){var c,a=this,b=a.classes.selected,d=a.getSuggestionsContainer(),e=d.find("."+a.classes.suggestion);return(d.find("."+b).removeClass(b),a.selectedIndex=f,-1!==a.selectedIndex&&e.length>a.selectedIndex)?($(c=e.get(a.selectedIndex)).addClass(b),c):null},selectHint:function(){var a=$.inArray(this.hint,this.suggestions);this.select(a)},select:function(a){this.options.disableHits||(this.closeOverlayMobile(),this.hide(),this.onSelect(a))},moveUp:function(){var a=this;if(-1!==a.selectedIndex){if(a.latestActivateSource="key",0===a.selectedIndex){a.getSuggestionsContainer().children("."+a.classes.suggestion).first().removeClass(a.classes.selected),a.selectedIndex=-1,a.ignoreValueChange=!1,a.el.val(a.currentValue),a.findBestHint();return}a.adjustScroll(a.selectedIndex-1,"up")}},moveDown:function(){var a=this;a.selectedIndex!==a.suggestions.length-1&&(a.latestActivateSource="key",a.adjustScroll(a.selectedIndex+1,"down"))},adjustScroll:function(b,i){var a=this;if("headline"===a.suggestions[b].type&&(b="down"===i?b+1:b-1),void 0!==a.suggestions[b]){var d=a.activate(b);if(a.getDetails(a.suggestions[b]),!("more_products"===a.suggestions[b].type|| !d||a.canShowDetailsPanel())){var c,f,g,e=a.getSuggestionsContainer(),h=$(d).outerHeight(!1);c=d.offsetTop,g=(f=e.scrollTop())+a.options.maxHeight-h,c<f?e.scrollTop(c):c>g&&e.scrollTop(c-a.options.maxHeight+h),a.options.preserveInput||(a.ignoreValueChange=!0),a.signalHint(null)}}},onSelect:function(d){var a=this,c=a.options.onSelect,b=a.suggestions[d];if(void 0!==b.type&&("more_products"===b.type||"enter"===a.actionTriggerSource&&"key"!=a.latestActivateSource&&"product_variation"!=b.type)){a.el.closest("form").trigger("submit");return}a.currentValue=a.getValue(b.value),a.currentValue===a.el.val()||a.options.preserveInput||a.el.val(a.currentValue.replace(/(<([^>]+)>)/gi," ").replace(/\s\s+/g," ")),b.url.length>0&&(window.location.href=b.url),a.signalHint(null),a.suggestions=[],a.selection=b,$.isFunction(c)&&c.call(a.element,b)},openInNewTab:function(b){var a=this.suggestions[b];a.url.length>0&&window.open(a.url,"_blank").focus()},getValue:function(c){var a,b,d=this.options.delimiter;return d&&1!==(b=(a=this.currentValue).split(d)).length?a.substr(0,a.length-b[b.length-1].length)+c:c},dispose:function(){var d=this.el,a=this.getFormWrapper(),b=this.getSuggestionsContainer(),c=a.find(".js-dgwt-wcas-enable-mobile-form");a.length&&a.find("*").each(function(){$(this).off(".autocomplete")}),d.removeData("autocomplete"),$(window).off("resize.autocomplete",this.fixPosition),a.removeClass("dgwt-wcas-active"),this.close(!1),c.length&&c.remove(),b.length&&b.html("")},isMountedOverlayDarkened:function(){var b=this.getFormWrapper(),a=!1;return b.hasClass(this.classes.darkenOverlayMounted)&&(a=!0),a},enableOverlayDarkened:function(){var a=this,b=a.options;if(a.isMountedOverlayDarkened()){if(a.getFormWrapper().addClass("dgwt-wcas-search-darkoverl-on"),$("body").addClass("dgwt-wcas-darkoverl-on"),0==$("."+b.darkenedOverlayClass).length){var c='<div class="'+b.darkenedOverlayClass+'"><div></div><div></div><div></div><div></div></div>';$("body").append(c);var d=$("."+a.options.darkenedOverlayClass);a.positionOverlayDarkened(),d.on("click.autocomplete",function(b){a.disableOverlayDarkened()})}a.overlayDarkenedState="on"}},disableOverlayDarkened:function(){var b,a=this,d=a.options;if(a.isMountedOverlayDarkened()){(b=$(".dgwt-wcas-search-darkoverl-on")).length&&b.removeClass("dgwt-wcas-search-darkoverl-on"),$("body").removeClass("dgwt-wcas-darkoverl-on");var c=$("."+d.darkenedOverlayClass);c.length>0&&(c.remove(),a.overlayDarkenedState="off")}},positionOverlayDarkened:function(){var b=this,c=!1,a=$("."+b.options.darkenedOverlayClass);a.length>0&&(b.ancestorHasPositionFixed(b.getFormWrapper())?(c=!0,a.addClass("dgwt-wcas-suggestions-wrapp-fixed")):a.removeClass("dgwt-wcas-suggestions-wrapp-fixed"),a.children("div").each(function(a){b.positionOverlayDarkenedDiv($(this),a+1,c)}))},positionOverlayDarkenedDiv:function(f,g,e){var a,b,c=this.getFormWrapper();switch(c.hasClass("js-dgwt-wcas-layout-icon")&&(c=this.getForm()),a=this.getElementInfo(c),g){case 1:b={left:"-200px",top:"-200px",width:a.left+200+"px",height:$(document).outerHeight(!1)+200-1+"px"};break;case 2:var d=e?a.topViewPort:a.top;b={left:"-200px",top:"-200px",width:$(window).outerWidth(!1)+200+"px",height:d+200+"px"};break;case 3:b={left:a.left+a.width+"px",top:"-200px",width:$(window).outerWidth(!1)-a.right+"px",height:$(document).outerHeight(!1)+200-1+"px"};break;case 4:var d=e?a.topViewPort:a.top;b={left:"-200px",top:d+a.height+"px",width:$(window).outerWidth(!1)+200+"px",height:$(document).outerHeight(!1)-a.bottom-1+"px"}}b&&f.css(b)},showCloseButton:function(){var a=this,c=void 0!==dgwt_wcas.close_icon?dgwt_wcas.close_icon:"",b=a.getFormWrapper().find("."+a.options.preloaderClass);a.el.val().length<a.options.minChars||(b.hasClass(a.options.closeTrigger)||b.on("click.autocomplete",function(){a.close(!0)}),b.addClass(a.options.closeTrigger),b.html(c))},hideCloseButton:function(){var a=this.getFormWrapper().find("."+this.options.closeTrigger);a.length&&(a.removeClass(this.options.closeTrigger),a.html("")),a.off("click.autocomplete")},addActiveClassIfMissing:function(){var a=document.activeElement;if("object"==typeof a&&$(a).length&&$(a).hasClass("dgwt-wcas-search-input")){var b=$(a).closest(".dgwt-wcas-search-wrapp");b.length&&!b.hasClass("dgwt-wcas-active")&&b.addClass("dgwt-wcas-active")}},ancestorHasPositionFixed:function(a){var b=a.add(a.parents()),c=!1;return b.each(function(){if("fixed"===$(this).css("position"))return c=!0,!1}),c},gaEvent:function(a,c){var b=!!(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:a,event_category:c});else if(!1!==b){var e=b.getAll()[0];e&&e.send({hitType:"event",eventCategory:c,eventAction:"autocomplete_search",eventLabel:a})}}catch(f){}if(this.options.enableGASiteSearchModule)try{if("undefined"!=typeof gtag)gtag("event","page_view",{page_path:"/?s="+encodeURI(a)+"&post_type=product&dgwt_wcas=1"});else if(!1!==b){var d=b.getAll()[0];d&&(d.set("page","/?s="+encodeURI(a)+"&post_type=product&dgwt_wcas=1"),d.send("pageview"))}}catch(g){}$(document).trigger("dgwtWcasGAEvent",{term:a,category:c})},initVoiceSearch:function(){var a=this;if(!a.options.voiceSearchEnabled)return!1;var b=a.getFormWrapper(),e=b.find("."+a.options.searchInputClass),d=b.find("."+a.options.voiceSearchClass),c=c||webkitSpeechRecognition;if(!c)return!1;a.voiceSearchSetState("inactive",d),b.addClass(a.options.voiceSearchSupportedClass),a.voiceSearchRecognition=new c,a.voiceSearchRecognition.lang=a.options.voiceSearchLang,a.voiceSearchRecognition.continuous=!1,a.voiceSearchRecognition.interimResults=!0,a.voiceSearchRecognition.maxAlternatives=1,d.on("click",function(){if(b.hasClass("dgwt-wcas-mobile-overlay-trigger-active")&&!$("html").hasClass("dgwt-wcas-overlay-mobile-on")&&(b.find(".js-dgwt-wcas-enable-mobile-form").click(),b.find("."+a.options.searchInputClass).blur()),a.voiceSearchStarted){a.voiceSearchAbort();return}a.voiceSearchIsInitialized()&&a.voiceSearchAbort(),a.voiceSearchRecognition.start()}),a.voiceSearchRecognition.onstart=function(b){a.voiceSearchSetState("active",d)},a.voiceSearchRecognition.onresult=function(c){let b=c.results[0],f=b[0].transcript;e.val(f),b.isFinal&&(e.trigger("change"),!1 in document&&e.focus(),a.voiceSearchSetState("inactive",d))},a.voiceSearchRecognition.onspeechend=function(){a.voiceSearchSetState("inactive",d),a.voiceSearchRecognition.stop()},a.voiceSearchRecognition.onnomatch=function(b){a.voiceSearchSetState("inactive",d)},a.voiceSearchRecognition.onerror=function(b){switch(b.error){case"aborted":case"no-speech":a.voiceSearchSetState("inactive",d);break;case"network":break;case"not-allowed":case"service-not-allowed":a.voiceSearchSetState("off",d)}}},voiceSearchAbort:function(){var a=this;a.voiceSearchIsInitialized()&&(a.voiceSearchRecognition.abort(),a.voiceSearchStarted=!1)},voiceSearchIsInitialized:function(){return null!==this.voiceSearchRecognition},voiceSearchSetState:function(c,a){var b=this;switch(c){case"active":b.voiceSearchStarted=!0,"string"==typeof dgwt_wcas.voice_search_active_icon&&a.html(dgwt_wcas.voice_search_active_icon);break;case"inactive":b.voiceSearchStarted=!1,"string"==typeof dgwt_wcas.voice_search_inactive_icon&&a.html(dgwt_wcas.voice_search_inactive_icon);break;case"off":b.voiceSearchStarted=!1,"string"==typeof dgwt_wcas.voice_search_disabled_icon&&a.html(dgwt_wcas.voice_search_disabled_icon)}}},$.fn.dgwtWcasAutocomplete=function(c,d){var b="autocomplete";return arguments.length?this.each(function(){var f=$(this),e=f.data(b);"string"==typeof c?e&&"function"==typeof e[c]&&e[c](d):(e&&e.dispose&&e.dispose(),e=new a(this,c),f.data(b,e))}):this.first().data(b)},$.fn.autocomplete||($.fn.autocomplete=$.fn.dgwtWcasAutocomplete),navigator.userAgent.match(/Trident\/7\./)&&function(b,c){function d(a,b){var c=arguments.length>2?arguments[2]:[];if(!1===f(a))throw new TypeError(Object.prototype.toString.call(a)+"is not a function.");return a.apply(b,c)}function a(a,b,c){Object.defineProperty(a,b,{value:c,writable:!0,enumerable:!1,configurable:!0})}function e(a,b){return a[b]}function f(a){return"function"==typeof a}function g(a){if(null===a||a===c)throw TypeError();return Object(a)}function h(a){switch(typeof a){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===a?"null":"Symbol"in b&&(a instanceof b.Symbol||a.constructor===b.Symbol)?"symbol":"object"}}function i(a,b){var c,d;return h(a)===h(b)&&("number"===h(a)?!(!isNaN(a)||!isNaN(b))||1/a==1/0&&1/b== -1/0||1/a== -1/0&&1/b==1/0||a===b:(c=a)===b)}function j(b){if("symbol"===h(b))throw new TypeError("Cannot convert a Symbol value to a number");var a=Number(b);return isNaN(a)?0:1/a==1/0||1/a== -1/0||a===1/0||a=== -1/0?a:(a<0?-1:1)*Math.floor(Math.abs(a))}function k(a){switch(h(a)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return k(function(i){var j=arguments.length>1?arguments[1]:c;if("object"===h(i)){if(arguments.length<2)var a="default";else j===String?a="string":j===Number&&(a="number");var k="function"==typeof b.Symbol&&"symbol"==typeof b.Symbol.toPrimitive?function(h,b){var d,e,a=(d=h,e=b,g(d)[e]);if(null!==a&&a!==c){if(!1===f(a))throw new TypeError("Method not callable: "+b);return a}}(i,b.Symbol.toPrimitive):c;if(k!==c){var l=d(k,i,[a]);if("object"!==h(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===a&&(a="number"),function(c,j){if("string"===j)var a=["toString","valueOf"];else a=["valueOf","toString"];for(var b=0;b<a.length;++b){var g=e(c,a[b]);if(f(g)){var i=d(g,c);if("object"!==h(i))return i}}throw new TypeError("Cannot convert to primitive.")}(i,a)}return i}(a,String));default:return String(a)}}a(Array.prototype,"includes",function(l){var d,f,h=g(this),b=(d=e(h,"length"),(f=j(d))<=0?0:Math.min(f,9007199254740991));if(0===b)return!1;var c=j(arguments[1]);if(c>=0)var a=c;else(a=b+c)<0&&(a=0);for(;a<b;){if(i(l,e(h,k(a))))return!0;a+=1}return!1}),a(String.prototype,"includes",function(a){var f=arguments.length>1?arguments[1]:c,d=k(function(a){if(null===a||a===c)throw TypeError(Object.prototype.toString.call(a)+" is not coercible to Object.");return a}(this));if(function(a){if("object"!==h(a))return!1;var g,d="Symbol"in b&&"match"in b.Symbol?e(a,b.Symbol.match):c;if(d!==c)return Boolean(d);try{var f=a.lastIndex;return a.lastIndex=0,RegExp.prototype.exec.call(a),!0}catch(i){}finally{a.lastIndex=f}return!1}(a))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var g=k(a),i=Math.min(Math.max(j(f),0),d.length);return -1!==String.prototype.indexOf.call(d,g,i)})}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),$(document).ready(function(){(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)&&$("html").addClass("dgwt-wcas-is-ios"),window.dgwt_wcas.resizeOnlyOnce=null,window.dgwt_wcas.scrollOnlyOnce=null,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:1==dgwt_wcas.show_details_panel,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,layoutBreakpoint:dgwt_wcas.layout_breakpoint,mobileOverlayBreakpoint:dgwt_wcas.mobile_overlay_breakpoint,mobileOverlayWrapper:dgwt_wcas.mobile_overlay_wrapper,mobileOverlayDelay:dgwt_wcas.mobile_overlay_delay,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,voiceSearchEnabled:void 0!==dgwt_wcas.voice_search_enabled&&!!dgwt_wcas.voice_search_enabled,voiceSearchLang:void 0!==dgwt_wcas.voice_search_lang?dgwt_wcas.voice_search_lang:""},$(".dgwt-wcas-search-input").dgwtWcasAutocomplete(window.dgwt_wcas.config)}),({brokenSearchUi:void 0!==dgwt_wcas.fixer.broken_search_ui&&!!dgwt_wcas.fixer.broken_search_ui,brokenSearchUiAjax:void 0!==dgwt_wcas.fixer.broken_search_ui_ajax&&!!dgwt_wcas.fixer.broken_search_ui_ajax,brokenSearchUiHard:void 0!==dgwt_wcas.fixer.broken_search_ui_hard&&!!dgwt_wcas.fixer.broken_search_ui_hard,brokenSearchElementorPopups:void 0!==dgwt_wcas.fixer.broken_search_elementor_popups&&!!dgwt_wcas.fixer.broken_search_elementor_popups,brokenSearchBrowserBackArrow:void 0!==dgwt_wcas.fixer.broken_search_browsers_back_arrow&&!!dgwt_wcas.fixer.broken_search_browsers_back_arrow,forceRefreshCheckout:void 0!==dgwt_wcas.fixer.force_refresh_checkout&&!!dgwt_wcas.fixer.force_refresh_checkout,searchBars:[],init:function(){var a=this;a.brokenSearchUi&&$(document).ready(function(){a.fixBrokenSearchUi()}),a.brokenSearchUiAjax&&a.fixBrokenSearchUiAjax(),a.brokenSearchUiHard&&a.fixBrokenSearchUiHard(),a.brokenSearchElementorPopups&&$(document).ready(function(){a.fixBrokenSearchOnElementorPopupsV1(),a.fixBrokenSearchOnElementorPopupsV2()}),a.brokenSearchBrowserBackArrow&&a.fixbrokenSearchBrowserBackArrow(),a.forceRefreshCheckout&&a.fixforceRefreshCheckout()},fixBrokenSearchUi:function(){var a=this;$(document).ready(function(){setTimeout(function(){a.pullAndReconditionSearchBars()},50)}),$(window).on("load",function(){setTimeout(function(){a.pullAndReconditionSearchBars()},500)})},fixBrokenSearchUiAjax:function(){var a=this;$(document).ajaxSuccess(function(d,b,c){!("string"==typeof c.url&&new RegExp("search.php|wc-ajax").test(c.url))&&"string"==typeof b.responseText&&b.responseText.includes("dgwt-wcas-search-input")&&setTimeout(function(){a.pullAndReconditionSearchBars()},500)})},fixBrokenSearchUiHard:function(){var a=this;$(document).ready(function(){0===a.searchBars.length&&a.pullAndReconditionSearchBars(),setInterval(function(){a.pullAndReconditionSearchBars()},1e3)})},fixBrokenSearchOnElementorPopupsV1:function(){var a=this;$(document).on("elementor/popup/show",()=>{setTimeout(function(){a.pullAndReconditionSearchBars()},500)})},fixBrokenSearchOnElementorPopupsV2:function(){var a=this;$(document).ready(function(){void 0!==window.elementorFrontend&& void 0!==window.elementorFrontend.documentsManager&& void 0!==window.elementorFrontend.documentsManager.documents&&$.each(elementorFrontend.documentsManager.documents,function(c,b){void 0!==b.getModal&&b.getModal&&b.getModal().on("show",function(){setTimeout(function(){a.pullAndReconditionSearchBars()},500)})})})},fixforceRefreshCheckout:function(){$(document.body).on("added_to_cart",function(){$(document.body).hasClass("woocommerce-checkout")&&$(".dgwt-wcas-search-input").length>0&&$(document.body).trigger("update_checkout")})},fixbrokenSearchBrowserBackArrow:function(){$(window).on("load",function(){var a=0,b=setInterval(function(){var c=document.activeElement;if("object"==typeof c&&$(c).length&&$(c).hasClass("dgwt-wcas-search-input")){var d=$(c).closest(".dgwt-wcas-search-wrapp");d.length&&!d.hasClass("dgwt-wcas-active")&&(d.addClass("dgwt-wcas-active"),clearInterval(b))}a>10&&clearInterval(b),a++},500)})},pullAndReconditionSearchBars:function(){var b=this,a=$(".dgwt-wcas-search-input"),c=0==b.searchBars.length;a.length>0&&a.each(function(){var d,a=$(this),e=!0;if(b.searchBars.length>0){for(d=0;d<b.searchBars.length;d++)if(a[0]===b.searchBars[d][0]){e=!1;break}}if(e){var f=!1;b.hasUniqueId(a)||(b.makeUniqueID(a),f=!0),c&&b.isInitialized(a)&&!f||b.reinitSearchBar(a),b.searchBars.push(a)}})},isInitialized:function(a){return"object"==typeof a.data("autocomplete")},hasUniqueId:function(c){var b=!0;if(this.searchBars.length>0)for(var a=0;a<this.searchBars.length;a++)c.attr("id")===this.searchBars[a].attr("id")&&(b=!1);return b},reinitSearchBar:function(a){"object"==typeof a.data("autocomplete")&&a.data("autocomplete").dispose(),a.dgwtWcasAutocomplete(window.dgwt_wcas.config)},makeUniqueID:function(b){var a=Math.random().toString(36).substring(2,6);a="dgwt-wcas-search-input-"+a,b.attr("id",a),b.closest("form").find("label").attr("for",a)}}).init()})
1
+ !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function($){"use strict";var c={escapeRegExChars:function(a){return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(b){var a=document.createElement("div");return a.className=b,a.style.position="absolute",a.style.display="none",a.setAttribute("unselectable","on"),a},highlight:function(b,h){if(dgwt_wcas.is_premium){var d,a=h.split(/ /),i=!1,g="";if(a){for(d=0,g=a[a.length-1],a=a.sort(function(a,b){return b.length-a.length});d<a.length;d++)if(a[d]&&a[d].length>=1){var e=a[d].replace(/[\^\@]/g,"");if(e.length>0){if(1===e.trim().length&&a[d]!==g)var f="((\\s|^)"+c.escapeRegExChars(e.trim())+"\\s)";else if(1===e.trim().length&&a[d]===g)var f="((\\s|^)"+c.escapeRegExChars(e.trim())+")";else var f="("+c.escapeRegExChars(e.trim())+")";b=b.replace(new RegExp(f,"gi"),"^^$1@@"),i=!0}}}i&&(b=(b=b.replace(/\^\^/g,"<strong>")).replace(/@@/g,"</strong>"))}else{var f="("+c.escapeRegExChars(h)+")";b=b.replace(new RegExp(f,"gi"),"<strong>$1</strong>")}return b},debounce:function(b,c){var e,a=new Date().getUTCMilliseconds();if(0===d.id.length){d.id=a,b();return}d.id=a,e=setTimeout(function(){if(a!==d.id){clearTimeout(e);return}b(),d.id=""},c)},mouseHoverDebounce:function(c,d,a){var b;b=setTimeout(function(){if($(d+":hover").length>0)c();else{clearTimeout(b);return}},a)},isTextSelected:function(){var a=!1,b=document.getSelection();return"object"==typeof b&&b.toString().length>0&&(a=!0),a},getActiveInstance:function(){var b,a=$(".dgwt-wcas-search-wrapp.dgwt-wcas-active");return a.length>0&&a.each(function(){var a=$(this).find(".dgwt-wcas-search-input");if("object"==typeof a.data("autocomplete"))return b=a.data("autocomplete"),!1}),b},hashCode:function(b){for(var a=0,c=b.length;c>0;)a=(a<<5)-a+b.charCodeAt(--c)|0;return a<0?-1*a:a}},d={id:"",callback:null,ajaxSettings:null,object:null},e={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},b=$.noop;function a(c,d){var b=this;b.element=c,b.el=$(c),b.suggestions=[],b.badQueries=[],b.selectedIndex=-1,b.currentValue=b.element.value,b.timeoutId=null,b.cachedResponse={},b.cachedDetails={},b.cachedPrices={},b.detailsRequestsSent=[],b.onChangeTimeout=null,b.onChange=null,b.isLocal=!1,b.suggestionsContainer=null,b.detailsContainer=null,b.autoAligmentprocess=null,b.noSuggestionsContainer=null,b.latestActivateSource="",b.actionTriggerSource="",b.options=$.extend(!0,{},a.defaults,d),b.classes={selected:"dgwt-wcas-suggestion-selected",suggestion:"dgwt-wcas-suggestion",suggestionsContainerOrientTop:"dgwt-wcas-suggestions-wrapp--top",inputFilled:"dgwt-wcas-search-filled",darkenOverlayMounted:"js-dgwt-wcas-search-darkoverl-mounted",fixed:"dgwt-wcas-suggestions-wrapp-fixed"},b.hint=null,b.hintValue="",b.selection=null,b.overlayMobileState="off",b.overlayDarkenedState="off",b.isMouseDownOnSearchElements=!1,b.voiceSearchRecognition=null,b.voiceSearchStarted=null,b.initialize(),b.setOptions(d)}a.utils=c,$.DgwtWcasAutocompleteSearch=a,a.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,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,dpusbBreakpoint:550,deferRequestBy:0,params:{},formatResult:function(a,b,d,e){return b&&(d&&(a=c.highlight(a,b)),e.convertHtml)?a.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;sub/g,"<sub").replace(/&lt;\/sub/g,"</sub").replace(/sub&gt;/g,"sub>").replace(/&lt;(\/?(strong|b|br|span))&gt;/g,"<$1>").replace(/&lt;(strong|span)\s+class\s*=\s*&quot;([^&]+)&quot;&gt;/g,'<$1 class="$2">'):a},delimiter:null,zIndex:999999999,type:"GET",noCache:!1,isRtl:!1,onSearchStart:b,onSearchComplete:b,onSearchError:b,preserveInput:!1,searchFormClass:"dgwt-wcas-search-wrapp",containerClass:"dgwt-wcas-suggestions-wrapp",containerDetailsClass:"dgwt-wcas-details-wrapp",darkenedOverlayClass:"dgwt-wcas-darkened-overlay",searchInputClass:"dgwt-wcas-search-input",preloaderClass:"dgwt-wcas-preloader",closeTrigger:"dgwt-wcas-close",formClass:"dgwt-wcas-search-form",voiceSearchClass:"dgwt-wcas-voice-search",voiceSearchSupportedClass:"dgwt-wcas-voice-search-supported",voiceSearchActiveClass:"dgwt-wcas-voice-search-active",voiceSearchDisabledClass:"dgwt-wcas-voice-search-disabled",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,isPremium:!1,overlayMobile:!1,preventBadQueries:!0,lookupFilter:function(a,c,b){return -1!==a.value.toLowerCase().indexOf(b)},paramName:"query",transformResult:function(a){return"string"==typeof a?JSON.parse(a):a},noSuggestionNotice:"No results",forceFixPosition:!1,positionFixed:!1,debounceWaitMs:400,sendGAEvents:!0,enableGASiteSearchModule:!1,showProductVendor:!1,disableHits:!1,disableSubmit:!1,voiceSearchEnabled:!1,voiceSearchLang:""},a.prototype={initialize:function(){var a=this;a.element.setAttribute("autocomplete","off"),a.options.params=a.applyCustomParams(a.options.params),a.createContainers(),a.registerEventsSearchBar(),a.registerEventsSuggestions(),a.registerEventsDetailsPanel(),a.registerIconHandler(),a.registerFlexibleLayout(),a.initVoiceSearch(),a.fixPosition=function(){a.adjustContainerWidth(),a.visible&&(a.fixPositionSuggestions(),a.canShowDetailsPanel()&&a.fixPositionDetailsPanel()),a.positionOverlayDarkened()},$(window).on("resize.autocomplete",function(){var a=c.getActiveInstance();clearTimeout(window.dgwt_wcas.resizeOnlyOnce),void 0!==a&&(window.dgwt_wcas.resizeOnlyOnce=setTimeout(function(){a.fixPosition()},100))}),$(window).on("scroll.autocomplete",function(){var a=c.getActiveInstance();clearTimeout(window.dgwt_wcas.scrollOnlyOnce),void 0!==a&&(window.dgwt_wcas.scrollOnlyOnce=setTimeout(function(){a.fixPosition()},100))});var b=$(window).width();$(window).on("resize.autocomplete",function(){var c=$(window).width();c!=b&&(a.toggleMobileOverlayMode(),b=c)}),a.isBreakpointReached("mobile-overlay")&&a.activateMobileOverlayMode(),a.hideAfterClickOutsideListener(),a.suggestionsContainer.addClass("js-dgwt-wcas-initialized"),a.detailsContainer&&a.detailsContainer.length>0&&a.detailsContainer.addClass("js-dgwt-wcas-initialized")},createContainers:function(d){var b=this,c=b.options;0==$("."+c.containerClass).length?(b.suggestionsContainer=$(a.utils.createNode(c.containerClass)),b.suggestionsContainer.appendTo(c.appendTo||"body"),b.suggestionsContainer.addClass("woocommerce"),!0===c.showImage&&b.suggestionsContainer.addClass("dgwt-wcas-has-img"),!0===c.showPrice&&b.suggestionsContainer.addClass("dgwt-wcas-has-price"),!0===c.showDescription&&b.suggestionsContainer.addClass("dgwt-wcas-has-desc"),!0===c.showSKU&&b.suggestionsContainer.addClass("dgwt-wcas-has-sku"),!0===c.showHeadings&&b.suggestionsContainer.addClass("dgwt-wcas-has-headings")):b.suggestionsContainer=$("."+b.options.containerClass),b.canShowDetailsPanel()&&(0==$("."+c.containerDetailsClass).length?(b.detailsContainer=$(a.utils.createNode(c.containerDetailsClass)),b.detailsContainer.appendTo(c.appendTo||"body"),b.detailsContainer.addClass("woocommerce")):b.detailsContainer=$("."+c.containerDetailsClass))},registerEventsSearchBar:function(){var a=this;a.getForm().on("submit.autocomplete",function(b){if(a.options.disableSubmit)return b.preventDefault(),!1;var c=$(this).find("."+a.options.searchInputClass);if(c.length&&0===c.val().length)return b.preventDefault(),!1;a.suggestions.length>0&&$.each(a.suggestions,function(d,c){if(void 0!==c.type&&"product_variation"==c.type)return a.select(d),b.preventDefault(),!1}),a.closeOverlayMobile()}),"complete"===document.readyState?a.positionPreloaderAndMic():$(window).on("load",function(){a.positionPreloaderAndMic()}),a.el.on("keydown.autocomplete",function(b){a.onKeyPress(b)}),a.el.on("keyup.autocomplete",function(b){a.onKeyUp(b)}),a.el.on("blur.autocomplete",function(){a.onBlur()}),a.el.on("focus.autocomplete",function(b){a.onFocus(b)}),a.el.on("change.autocomplete",function(b){a.onKeyUp(b)}),a.el.on("input.autocomplete",function(b){a.onKeyUp(b)})},registerEventsSuggestions:function(){var a="."+this.classes.suggestion;if(!this.getSuggestionsContainer().hasClass("js-dgwt-wcas-initialized")){$(document).on("mouseenter.autocomplete",a,function(){var a=c.getActiveInstance();if(void 0!==a){var b=$(this).data("index"),d=a.canShowDetailsPanel()?100:1;a.selectedIndex!=b&&c.mouseHoverDebounce(function(){a.selectedIndex!==b&&(a.latestActivateSource="mouse",a.getDetails(a.suggestions[b]),a.activate(b))},'.dgwt-wcas-suggestion[data-index="'+b+'"]',d)}});var b=!1;$(document).on("click.autocomplete",a,function(a){if(b)a.preventDefault();else{var d=c.getActiveInstance();d.actionTriggerSource="click",b=!0,setTimeout(function(){b=!1},500),(void 0===a.ctrlKey|| !1===a.ctrlKey)&&(d.select($(this).data("index")),a.preventDefault())}}),$(document).on("mousedown.autocomplete",a,function(a){var d=this;0===a.button&&setTimeout(function(){b||c.getActiveInstance().select($(d).data("index"))},250)}),$("."+this.options.containerClass).on("mousedown.autocomplete",function(a){c.getActiveInstance().isMouseDownOnSearchElements=!0})}},registerEventsDetailsPanel:function(){var a=this.getDetailsContainer();!this.canShowDetailsPanel()||a.hasClass("js-dgwt-wcas-initialized")||($(document).on("change.autocomplete",'[name="js-dgwt-wcas-quantity"]',function(a){$(this).closest(".js-dgwt-wcas-pd-addtc").find("[data-quantity]").attr("data-quantity",$(this).val())}),$("."+this.options.containerDetailsClass).on("mousedown.autocomplete",function(a){c.getActiveInstance().isMouseDownOnSearchElements=!0}))},registerIconHandler:function(){var a=this,b=a.getFormWrapper(),c=a.getForm();b.on("click.autocomplete",".js-dgwt-wcas-search-icon-handler",function(e){var f=b.find("."+a.options.searchInputClass);if(b.hasClass("dgwt-wcas-layout-icon-open"))a.hide(),c.hide(!0),b.removeClass("dgwt-wcas-layout-icon-open");else{var d=b.find(".dgwt-wcas-search-icon-arrow");c.hide(),d.hide(),b.addClass("dgwt-wcas-layout-icon-open"),a.positionIconSearchMode(b),c.fadeIn(50,function(){d.show(),a.positionPreloaderAndMic(b);var c=a.currentValue.length;c>0&&f[0].setSelectionRange(c,c),f.focus()}),setTimeout(function(){a.fixPosition()},110)}}),0==$(".js-dgwt-wcas-initialized").length&&$(".js-dgwt-wcas-search-icon-handler").length>0&&$(document).on("click.autocomplete",function(c){if($(".dgwt-wcas-layout-icon-open").length){var b=$(c.target);b.closest("."+a.options.searchFormClass).length>0||b.closest("."+a.options.containerClass).length>0||b.closest("."+a.options.containerDetailsClass).length>0||a.hideIconModeSearch()}})},registerFlexibleLayout:function(){var a=this,b=$(window).width();$(window).on("resize.autocomplete",function(){var c=$(window).width();c!=b&&(a.reloadFlexibleLayout(),b=c)}),"complete"==document.readyState?a.reloadFlexibleLayout():$(window).on("load.autocomplete",function(){a.reloadFlexibleLayout()})},activateMobileOverlayMode:function(){var b=this,a=b.getFormWrapper();a.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&!a.find(".js-dgwt-wcas-enable-mobile-form").length&&(a.prepend('<div class="js-dgwt-wcas-enable-mobile-form dgwt-wcas-enable-mobile-form"></div>'),a.addClass("dgwt-wcas-mobile-overlay-trigger-active"),a.find(".js-dgwt-wcas-enable-mobile-form").on("click.autocomplete",function(a){b.options.mobileOverlayDelay>0?setTimeout(function(){b.showMobileOverlay()},b.options.mobileOverlayDelay):b.showMobileOverlay()}))},deactivateMobileOverlayMode:function(){var a=this.getFormWrapper();this.getSuggestionsContainer();var b=a.find(".js-dgwt-wcas-enable-mobile-form");a.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&b.length&&(this.closeOverlayMobile(),b.remove(),a.removeClass("dgwt-wcas-mobile-overlay-trigger-active"))},toggleMobileOverlayMode:function(){var b=this.getFormWrapper(),a=!1;if(b.hasClass("js-dgwt-wcas-mobile-overlay-enabled")){if(b.find(".js-dgwt-wcas-enable-mobile-form").length&&(a=!0),!a&&this.isBreakpointReached("mobile-overlay")||a&&!this.isBreakpointReached("mobile-overlay")){var c=this.getSuggestionsContainer();this.close(!1),c.length&&c.html(""),this.hideIconModeSearch()}!a&&this.isBreakpointReached("mobile-overlay")&&this.activateMobileOverlayMode(),a&&!this.isBreakpointReached("mobile-overlay")&&this.deactivateMobileOverlayMode()}},showMobileOverlay:function(){var b=this;if("on"!==b.overlayMobileState){b.overlayMobileState="on";var d,c=b.getFormWrapper(),e=b.getSuggestionsContainer(),a="";$("html").addClass("dgwt-wcas-overlay-mobile-on"),$("html").addClass("dgwt-wcas-open-"+b.getSearchStyle()),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>",$(b.options.mobileOverlayWrapper).append(a),(d=$(".js-dgwt-wcas-overlay-mobile")).css("zIndex",99999999999),c.after('<span class="js-dgwt-wcas-om-hook"></span>'),c.appendTo(".js-dgwt-wcas-om-bar"),e.appendTo(".js-dgwt-wcas-om-bar"),c.addClass("dgwt-wcas-search-wrapp-mobile"),c.hasClass("dgwt-wcas-has-submit")&&(c.addClass("dgwt-wcas-has-submit-off"),c.removeClass("dgwt-wcas-has-submit")),c.find("."+b.options.searchInputClass).focus(),$(document).on("click.autocomplete",".js-dgwt-wcas-om-return",function(a){b.closeOverlayMobile(d)})}},closeOverlayMobile:function(d){var a=this;if(!$("html").hasClass("dgwt-wcas-overlay-mobile-on")){a.overlayMobileState="off";return}var c=a.getSuggestionsContainer(),b=$(".js-dgwt-wcas-om-bar").find("."+a.options.searchFormClass);b.hasClass("dgwt-wcas-has-submit-off")&&(b.removeClass("dgwt-wcas-has-submit-off"),b.addClass("dgwt-wcas-has-submit")),b.removeClass("dgwt-wcas-search-wrapp-mobile"),$("html").removeClass("dgwt-wcas-overlay-mobile-on"),$("html").removeClass("dgwt-wcas-open-"+a.getSearchStyle()),c.appendTo("body"),c.removeAttr("body-scroll-lock-ignore"),$(".js-dgwt-wcas-om-hook").after(b),$(".js-dgwt-wcas-overlay-mobile").remove(),$(".js-dgwt-wcas-om-hook").remove(),setTimeout(function(){b.find("."+a.options.searchInputClass).val("");var c=b.find(".dgwt-wcas-close");b.length>0&&(c.removeClass("dgwt-wcas-close"),c.html("")),a.hide()},150),a.overlayMobileState="off"},reloadFlexibleLayout:function(){var a=this.getFormWrapper(),b=0;a.hasClass("js-dgwt-wcas-layout-icon-flexible")&&(b=1),a.hasClass("js-dgwt-wcas-layout-icon-flexible-inv")&&(b=2),b>0&&(1===b&&this.isBreakpointReached("search-layout")||2===b&&!this.isBreakpointReached("search-layout")?(a.addClass("js-dgwt-wcas-layout-icon"),a.addClass("dgwt-wcas-layout-icon")):(a.removeClass("js-dgwt-wcas-layout-icon"),a.removeClass("dgwt-wcas-layout-icon")),a.addClass("dgwt-wcas-layout-icon-flexible-loaded"))},onFocus:function(b){var a=this.getFormWrapper();$("."+this.options.searchFormClass).removeClass("dgwt-wcas-active"),a.addClass("dgwt-wcas-active"),$("body").addClass("dgwt-wcas-focused"),a.addClass("dgwt-wcas-search-focused"),0==$(b.target).closest(".dgwt-wcas-search-wrapp-mobile").length&&this.enableOverlayDarkened(),this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var a=this.options,b=this.el.val(),c=this.getQuery(b);$("body").removeClass("dgwt-wcas-focused"),$("."+a.searchFormClass).removeClass("dgwt-wcas-search-focused"),!this.isMouseDownOnSearchElements&&(this.hide(),this.selection&&this.currentValue!==c&&(a.onInvalidateSelection||$.noop).call(this.element))},abortAjax:function(){var a=this;a.currentRequest&&(a.currentRequest.abort(),a.currentRequest=null)},setOptions:function(c){var a=this,d=a.getSuggestionsContainer(),b=$.extend({},a.options,c);a.isLocal=Array.isArray(b.lookup),a.isLocal&&(b.lookup=a.verifySuggestionsFormat(b.lookup)),d.css({"max-height":a.canShowDetailsPanel()?"none":b.maxHeight+"px","z-index":b.zIndex}),a.canShowDetailsPanel()&&a.getDetailsContainer().css({"z-index":b.zIndex-1}),b.onSearchComplete=function(){a.getFormWrapper().removeClass("dgwt-wcas-processing"),a.preloader("hide","form","dgwt-wcas-inner-preloader"),a.showCloseButton()},this.options=b},clearCache:function(){this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.badQueries=[]},clear:function(a){a&&this.clearCache(),this.currentValue="",this.suggestions=[]},close:function(b){var a=this.el.closest("."+this.options.searchFormClass).find("."+this.options.searchInputClass),c=this.getFormWrapper();this.hide(),this.clear(!1),this.hideCloseButton(),a.val(""),c.removeClass(this.classes.inputFilled),b&&a.focus()},fixPositionSuggestions:function(){var b=this.getSuggestionsContainer(),c=this.getForm(),e=this.el,f=this.getElementInfo(c),a=this.getElementInfo(e),d={top:a.top+a.height,left:f.left};this.ancestorHasPositionFixed(c)?(d.top=a.topViewPort+a.height,b.addClass(this.classes.fixed)):b.removeClass(this.classes.fixed),this.getSuggestionsContainer().css(d)},fixPositionDetailsPanel:function(){var g=this.getFormWrapper(),d=this.getSuggestionsContainer(),a=this.getDetailsContainer(),h=this.getForm(),i=this.el,e=this.getElementInfo(h),c=this.getElementInfo(i),b={top:c.top+c.height,left:e.left+d.outerWidth(!1)};if(this.ancestorHasPositionFixed(g)?(b.top=c.topViewPort+c.height,a.addClass(this.classes.fixed)):a.removeClass(this.classes.fixed),a.css(b),$("body").removeClass("dgwt-wcas-full-width dgwt-wcas-details-outside dgwt-wcas-details-right dgwt-wcas-details-left dgwt-wcas-details-notfit"),g.outerWidth()>=this.options.dpusbBreakpoint){$("body").addClass("dgwt-wcas-full-width"),!0===this.options.isRtl&&(b.left=e.left+a.outerWidth(!1),d.css("left",b.left),a.css("left",e.left));return}var j=$(window).width(),k=a.outerWidth(),f=a.offset();$("body").addClass("dgwt-wcas-details-outside dgwt-wcas-details-right"),j<f.left+k&&($("body").removeClass("dgwt-wcas-details-right"),$("body").addClass("dgwt-wcas-details-left"),b.left=d.offset().left-a.outerWidth(!1),a.css("left",b.left),f=a.offset()),f.left<1&&($("body").removeClass("dgwt-wcas-details-left dgwt-wcas-details-right"),$("body").addClass("dgwt-wcas-details-notfit"))},fixHeight:function(){if(!this.canShowDetailsPanel())return!1;var a=this.getSuggestionsContainer(),d=this.getDetailsContainer();a.css("height","auto"),d.css("height","auto");var b=a.outerHeight(!1),c=d.outerHeight(!1);return a.find(".dgwt-wcas-suggestion:last-child").removeClass("dgwt-wcas-suggestion-no-border-bottom"),(!(b<=340)||!(c<=340))&&(a.find(".dgwt-wcas-suggestion:last-child").addClass("dgwt-wcas-suggestion-no-border-bottom"),c<b&&d.css("height",b+"px"),b<c&&a.css("height",c+"px"),!1)},automaticAlignment:function(){var a=this,b=a.getFormWrapper().find(".dgwt-wcas-search-input"),c=a.getSuggestionsContainer(),d=a.getDetailsContainer();if(null==a.autoAligmentprocess){var e=[b.width(),c.height()];a.canShowDetailsPanel()&&(e[2]=d.height()),a.autoAligmentprocess=setInterval(function(){var g=[b.width(),c.height()];a.canShowDetailsPanel()&&(g[2]=d.height());for(var f=0;f<e.length;f++)if(e[f]!=g[f]){a.fixHeight(),a.fixPosition(),e=g;break}a.canShowDetailsPanel()&&d.find(".dgwt-wcas-details-inner").height()-d.height()>2&&a.fixHeight()},10)}},getElementInfo:function(b){var c,d,a={};return c=b[0].getBoundingClientRect(),d=b.offset(),a.left=d.left,a.top=d.top,a.width=b.outerWidth(!1),a.height=b.outerHeight(!1),a.right=a.left+a.width,a.bottom=a.top+a.height,a.topViewPort=c.top,a.bottomViewPort=c.top+a.height,a},getFormWrapper:function(){return this.el.closest("."+this.options.searchFormClass)},getForm:function(){return this.el.closest("."+this.options.formClass)},getSuggestionsContainer:function(){return $("."+this.options.containerClass)},getDetailsContainer:function(){return $("."+this.options.containerDetailsClass)},scrollDownSuggestions:function(){var a=this.getSuggestionsContainer();a[0].scrollTop=a[0].scrollHeight},isCursorAtEnd:function(){var b,a=this.el.val().length,c=this.element.selectionStart;return"number"==typeof c?c===a:!document.selection||((b=document.selection.createRange()).moveStart("character",-a),a===b.text.length)},onKeyPress:function(b){var a=this,c=a.getFormWrapper();if(a.addActiveClassIfMissing(),!a.visible&&b.keyCode===e.DOWN&&a.currentValue){a.suggest();return}if(!a.visible){b.keyCode===e.ESC&&c.hasClass("dgwt-wcas-layout-icon-open")&&a.hideIconModeSearch(),b.keyCode===e.ESC&&a.isMountedOverlayDarkened()&&(a.disableOverlayDarkened(),a.el.blur());return}if((b.ctrlKey||b.metaKey)&&b.keyCode===e.RETURN){a.selectedIndex> -1&&a.openInNewTab(a.selectedIndex);return}switch(b.keyCode){case e.ESC:a.close();break;case e.RIGHT:if(a.hint&&a.options.onHint&&a.isCursorAtEnd()){a.selectHint();break}return;case e.TAB:break;case e.RETURN:if(-1===a.selectedIndex){if(a.options.disableSubmit)return!1;a.hide();return}a.actionTriggerSource="enter",a.select(a.selectedIndex);break;case e.UP:a.moveUp();break;case e.DOWN:a.moveDown();break;default:return}b.stopImmediatePropagation(),b.preventDefault()},onKeyUp:function(b){var a=this;switch(b.keyCode){case e.UP:case e.DOWN:return}clearTimeout(a.onChangeTimeout),a.currentValue!==a.el.val()&&(a.findBestHint(),a.options.deferRequestBy>0?a.onChangeTimeout=setTimeout(function(){a.onValueChange()},a.options.deferRequestBy):a.onValueChange())},onValueChange:function(){if(this.ignoreValueChange){this.ignoreValueChange=!1;return}var a=this,c=a.options,e=a.el.val(),b=a.getQuery(e),d=a.getFormWrapper();if(a.selection&&a.currentValue!==b&&(a.selection=null,(c.onInvalidateSelection||$.noop).call(a.element)),clearTimeout(a.onChangeTimeout),a.currentValue=e,a.selectedIndex=-1,c.triggerSelectOnValidInput&&a.isExactMatch(b)){a.select(0);return}b.length>0?d.hasClass(a.classes.inputFilled)||d.addClass(a.classes.inputFilled):d.removeClass(a.classes.inputFilled),b.length<c.minChars?(a.hideCloseButton(),a.hide()):a.getSuggestions(b)},isExactMatch:function(b){var a=this.suggestions;return 1===a.length&&a[0].value.toLowerCase()===b.toLowerCase()},canShowDetailsPanel:function(){var a=this.options.showDetailsPanel;return(768>$(window).width()||"ontouchend"in document)&&(a=!1),a},isBreakpointReached:function(b){var a=0;switch(b){case"search-layout":a=this.options.layoutBreakpoint,this.isSetParam("layout_breakpoint")&&(a=Number.parseInt(this.getParam("layout_breakpoint")));break;case"mobile-overlay":a=this.options.mobileOverlayBreakpoint,this.isSetParam("mobile_overlay_breakpoint")&&(a=Number.parseInt(this.getParam("mobile_overlay_breakpoint")))}return $(window).width()<=a},getQuery:function(b){var a,c=this.options.delimiter;return c?(a=b.split(c),$.trim(a[a.length-1])):b.trim()},getSuggestionsLocal:function(d){var a,b=this.options,e=d.toLowerCase(),f=b.lookupFilter,c=parseInt(b.lookupLimit,10);return a={suggestions:$.grep(b.lookup,function(a){return f(a,d,e)})},c&&a.suggestions.length>c&&(a.suggestions=a.suggestions.slice(0,c)),a},getSuggestions:function(e){var f,h,j,i,a=this,b=a.options,g=b.serviceUrl,k=a.getFormWrapper(),l=a.isActiveIconModeSearch();if(b.params[b.paramName]=e,void 0!==dgwt_wcas.current_lang&&(b.params.l=dgwt_wcas.current_lang),a.preloader("show","form","dgwt-wcas-inner-preloader"),k.addClass("dgwt-wcas-processing"),!1!==b.onSearchStart.call(a.element,b.params)){if(h=b.ignoreParams?null:b.params,$.isFunction(b.lookup)){b.lookup(e,function(c){a.suggestions=c.suggestions,a.suggest(),a.selectFirstSuggestion(c.suggestions),b.onSearchComplete.call(a.element,e,c.suggestions)});return}a.isLocal?f=a.getSuggestionsLocal(e):($.isFunction(g)&&(g=g.call(a.element,e)),j=g+"?"+$.param(h||{}),f=a.cachedResponse[j]),f&&Array.isArray(f.suggestions)?(a.suggestions=f.suggestions,a.suggest(),a.selectFirstSuggestion(f.suggestions),b.onSearchComplete.call(a.element,e,f.suggestions)):a.isBadQuery(e)?b.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),i={url:g,data:h,type:b.type,dataType:b.dataType},$.extend(i,b.ajaxSettings),d.object=a,d.ajaxSettings=i,c.debounce(function(){var a=d.object,b=d.ajaxSettings;a.currentRequest=$.ajax(b).done(function(c){var b;(!l||a.isActiveIconModeSearch())&&(a.currentRequest=null,void 0!==(b=a.options.transformResult(c,e)).suggestions&&(a.processResponse(b,e,j),a.selectFirstSuggestion(b.suggestions),1===b.suggestions.length&& void 0!==b.suggestions[0].type&&"no-results"===b.suggestions[0].type?a.gaEvent(e,"Autocomplete Search without results"):a.gaEvent(e,"Autocomplete Search with results")),a.fixPosition(),a.options.onSearchComplete.call(a.element,e,b.suggestions),a.updatePrices())}).fail(function(b,c,d){a.options.onSearchError.call(a.element,e,b,c,d)})},b.debounceWaitMs))}},getDetails:function(b){var a=this;if(!a.canShowDetailsPanel())return!1;if(null!=b&& void 0!==b.type&&("string"!=typeof b.type||"more_products"!==b.type)){a.fixHeight(),a.getDetailsContainer();var c=a.prepareSuggestionObjectID(b);if(null!=a.cachedDetails[c])a.detailsPanelSetScene(c),a.fixHeight(),a.fixPosition();else{var d={action:dgwt_wcas.action_result_details,items:[]};if($.each(a.suggestions,function(e,b){if(void 0!==b.type&&"more_products"!=b.type&&"headline"!=b.type){var c={objectID:a.prepareSuggestionObjectID(b),value:null!=b.value?b.value:""};d.items.push(c)}}),a.detailsPanelClearScene(),a.preloader("show","details",""),-1!=$.inArray(c,a.detailsRequestsSent))return;a.detailsRequestsSent.push(c),$.ajax({data:d,type:"post",url:dgwt_wcas.ajax_details_endpoint,success:function(d){var b="string"==typeof d?JSON.parse(d):d;if(void 0!==b.items)for(var c=0;c<b.items.length;c++){var e=b.items[c].objectID;a.cachedDetails[e]={html:b.items[c].html},a.detailsPanelAddToScene(e),void 0!==b.items[c].price&&b.items[c].price.length>0&&(a.cachedPrices[e]=b.items[c].price)}a.preloader("hide","details","");var f=a.prepareSuggestionObjectID(a.suggestions[a.selectedIndex]);null!=a.cachedDetails[f]?a.detailsPanelSetScene(f):a.detailsPanelClearScene(),a.fixPosition(),a.fixHeight(),a.updatePrices(!0)},error:function(b,c){a.preloader("hide","details",""),a.detailsPanelClearScene(),a.fixPosition(),a.fixHeight()}})}$(document).trigger("dgwtWcasDetailsPanelLoaded",a)}},updatePrices:function(e){var b,g,a=this,c=[];if(a.options.showPrice&&a.options.dynamicPrices&&0!=a.suggestions.length){for(b=0;b<a.suggestions.length;b++)if(void 0!==a.suggestions[b].type&&("product"==a.suggestions[b].type||"product_variation"==a.suggestions[b].type)){var d="product__"+a.suggestions[b].post_id;void 0!==a.cachedPrices[d]?a.updatePrice(b,a.cachedPrices[d]):(a.applyPreloaderForPrice(b),c.push(a.suggestions[b].post_id))}if(!e&&c.length>0){var f={action:void 0===dgwt_wcas.action_get_prices?"dgwt_wcas_get_prices":dgwt_wcas.action_get_prices,items:c};$.ajax({data:f,type:"post",url:dgwt_wcas.ajax_prices_endpoint,success:function(c){if(void 0!==c.success&&c.success&&c.data.length>0)for(b=0;b<c.data.length;b++){var d=c.data[b].id,e=c.data[b].price;if(a.suggestions.length>0){for(g=0;g<a.suggestions.length;g++)if(void 0!==a.suggestions[g].type&&("product"==a.suggestions[g].type||"product_variation"==a.suggestions[g].type)&&a.suggestions[g].post_id==d){var f="product__"+d;a.cachedPrices[f]=e,a.updatePrice(g,e)}}}},error:function(a,b){}})}}},updatePrice:function(a,b){var c=this;if(void 0!==c.suggestions[a]){c.suggestions[a].price=b;var d=$(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+a+'"] .dgwt-wcas-sp');d.length&&d.html(b)}},applyCustomParams:function(b){if("object"==typeof dgwt_wcas.custom_params){var d=dgwt_wcas.custom_params;for(var a in d)b[a]=d[a]}var c=this.el.data("custom-params");if("object"==typeof c)for(var a in c)b[a]=c[a];return b},isSetParam:function(a){return void 0!==this.options.params[a]},getParam:function(a){return this.isSetParam(a)?this.options.params[a]:""},applyPreloaderForPrice:function(a){if(void 0!==this.suggestions[a]){var b=$(".dgwt-wcas-suggestions-wrapp").find('[data-index="'+a+'"] .dgwt-wcas-sp');b.length&&b.html('<div class="dgwt-wcas-preloader-price"><div class="dgwt-wcas-preloader-price-inner"> <div></div><div></div><div></div></div></div>')}},prepareSuggestionObjectID:function(a){var b="";return void 0!==a&& void 0!==a.type&&(null!=a.post_id&&(b=a.type+"__"+a.post_id,"product_variation"===a.type&&(b+="__"+a.variation_id),void 0!==a.post_type&&(b=a.type+"__"+a.post_id+"__"+a.post_type)),null!=a.term_id&&null!=a.taxonomy&&(b=a.type+"__"+a.term_id+"__"+a.taxonomy)),b},detailsPanelSetScene:function(b){var d=this.getDetailsContainer(),e=c.hashCode(b),a=d.find('.dgwt-wcas-details-inner[data-object="'+e+'"]');a.length&&(this.preloader("hide","details",""),this.detailsPanelClearScene(),a.addClass("dgwt-wcas-details-inner-active"))},detailsPanelAddToScene:function(b){var d=this.getDetailsContainer(),a=this.cachedDetails[b],e=c.hashCode(b),f="";void 0!==a&&"string"==typeof a.html&&(f=a.html.replace("<div ",'<div data-object="'+e+'" ')),0==d.find('.dgwt-wcas-details-inner[data-object="'+e+'"]').length&&d.append(f)},detailsPanelClearScene:function(){var a=this.getDetailsContainer().find(".dgwt-wcas-details-inner");a.length&&a.removeClass("dgwt-wcas-details-inner-active")},selectFirstSuggestion:function(b){var a=this,c=0,d=!1;a.canShowDetailsPanel()&&("undefined"!=b&&b.length>0&&$.each(a.suggestions,function(b,a){if(void 0!==a.type&&"more_products"!=a.type&&"headline"!=a.type&&"no-results"!=a.type)return c=b,!1;(void 0===a.type||"no-results"===a.type)&&(d=!0)}),d||(a.latestActivateSource="system",a.getDetails(b[c]),a.activate(c)))},isBadQuery:function(c){if(!this.options.preventBadQueries)return!1;for(var a=this.badQueries,b=a.length;b--;)if(0===c.indexOf(a[b]))return!0;return!1},hide:function(c){var a=this,b=a.getSuggestionsContainer(),d=a.getDetailsContainer();$.isFunction(a.options.onHide)&&a.visible&&a.options.onHide.call(a.element,container),a.visible=!1,a.selectedIndex=-1,clearTimeout(a.onChangeTimeout),b.hide(),b.removeClass(a.classes.suggestionsContainerOrientTop),b.removeClass(a.classes.fixed),a.canShowDetailsPanel()&&(d.hide(),d.removeClass(a.classes.fixed)),$("body").removeClass("dgwt-wcas-open"),$("html").hasClass("dgwt-wcas-overlay-mobile-on")||$("html").removeClass("dgwt-wcas-open-"+a.getSearchStyle()),$("body").removeClass("dgwt-wcas-block-scroll"),$("body").removeClass("dgwt-wcas-is-details"),$("body").removeClass("dgwt-wcas-full-width"),$("body").removeClass("dgwt-wcas-nores"),$("body").removeClass("dgwt-wcas-details-outside"),$("body").removeClass("dgwt-wcas-details-right"),$("body").removeClass("dgwt-wcas-details-left"),null!=a.autoAligmentprocess&&(clearInterval(a.autoAligmentprocess),a.autoAligmentprocess=null),a.isMouseDownOnSearchElements=!1,"boolean"==typeof c&&c&&(a.hideCloseButton(),a.currentValue="",a.suggestions=[]),a.signalHint(null)},positionIconSearchMode:function(d){var a=-20,b=this.getForm(),e=b.width(),f=$(window).width(),c=d[0].getBoundingClientRect().left;a=Math.floor(-1*(e*((c+10)/f))),a=Math.max(a,-1*c),b.css({left:a+"px"})},isActiveIconModeSearch:function(){var a=!1;return $(".dgwt-wcas-layout-icon-open").length>0&&(a=!0),a},hideIconModeSearch:function(){this.isActiveIconModeSearch()&&!c.isTextSelected()&&$(".dgwt-wcas-layout-icon-open").removeClass("dgwt-wcas-layout-icon-open")},hideAfterClickOutsideListener:function(){var a=this;"ontouchend"in document||$(document).mouseup(function(b){if(a.visible){var c=!($(b.target).closest("."+a.options.searchFormClass).length>0||$(b.target).hasClass(a.options.searchFormClass)),d=!($(b.target).closest("."+a.options.containerClass).length>0||$(b.target).hasClass(a.options.containerClass));if(a.canShowDetailsPanel()){var e=!($(b.target).closest("."+a.options.containerDetailsClass).length>0||$(b.target).hasClass(a.options.containerDetailsClass));c&&d&&e&&a.hide()}else c&&d&&a.hide()}})},suggest:function(){if(!this.suggestions.length){this.hide();return}var k,a=this,b=a.options,l=b.groupBy,m=b.formatResult,e=a.getQuery(a.currentValue),f=a.classes.suggestion,g=a.classes.selected,c=a.getSuggestionsContainer(),h=a.getDetailsContainer(),i=$(a.noSuggestionsContainer),d=b.beforeRender,j="",n=function(b,c){var a=b.data[l];return k===a?"":'<div class="autocomplete-group"><strong>'+(k=a)+"</strong></div>"};if(b.triggerSelectOnValidInput&&a.isExactMatch(e)){a.select(0);return}$("body").removeClass("dgwt-wcas-nores"),$.each(a.suggestions,function(p,c){var k="",o=!1,s="string"==typeof c.url&&c.url.length?c.url:"#";if(l&&(j+=n(c,e,p)),void 0===c.type||"product"!=c.type&&"product_variation"!=c.type){var q,d=f,t="dgwt-wcas-st",g="",r="",h="",i=!0;"product_cat"===c.taxonomy?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-cat",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>"),void 0!==c.breadcrumbs&&c.breadcrumbs&&(h=c.breadcrumbs+" &gt; "+c.value,r+='<span class="dgwt-wcas-st-breadcrumbs"><span class="dgwt-wcas-st-label-in">'+dgwt_wcas.labels.in+" </span>"+c.breadcrumbs+"</span>")):"product_tag"===c.taxonomy?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tag",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>")):b.isPremium&&c.taxonomy===b.taxonomyBrands?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-brand",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>")):b.isPremium&&"taxonomy"===c.type?(d+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tax-"+c.taxonomy,b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels["tax_"+c.taxonomy]+"</span>")):b.isPremium&&"vendor"===c.type?(d+=" dgwt-wcas-suggestion-vendor dgwt-wcas-suggestion-vendor",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.vendor+"</span>")):b.isPremium&&"post"===c.type&& void 0!==c.post_type&&"post"===c.post_type?(d+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-post",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.post+"</span>")):b.isPremium&&"post"===c.type&& void 0!==c.post_type&&"page"===c.post_type?(d+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-page",b.showHeadings||(g+='<span class="dgwt-wcas-st--direct-headline">'+dgwt_wcas.labels.page+"</span>")):"more_products"===c.type?(d+=" js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more",t="dgwt-wcas-st-more",c.value=dgwt_wcas.labels.show_more+'<span class="dgwt-wcas-st-more-total"> ('+c.total+")</span>",i=!1):b.showHeadings&&"headline"===c.type?(d+=" 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"]),i=!1):(d+=" dgwt-wcas-suggestion-nores",c.value=dgwt_wcas.labels.no_results,i=!1,a.canShowDetailsPanel()&&a.detailsPanelClearScene(),$("body").addClass("dgwt-wcas-nores")),void 0!==c.image_src&&c.image_src&&(q=!0),h=h.length>0?' title="'+h+'"':"",j+='<a href="'+s+'" class="'+d+'" data-index="'+p+'">',q&&(j+='<span class="dgwt-wcas-si"><img src="'+c.image_src+'" /></span>',j+='<div class="dgwt-wcas-content-wrapp">'),j+="<span"+h+' class="'+t+'">',"vendor"===c.type?(j+='<span class="dgwt-wcas-st-title">'+g+m(c.value,e,i,b)+r+"</span>",c.shop_city&&(j+='<span class="dgwt-wcas-vendor-city"><span> - </span>'+m(c.shop_city,e,!0,b)+"</span>"),void 0!==c.desc&&c.desc&&(j+='<span class="dgwt-wcas-sd">'+m(c.desc,e,!0,b)+"</span>")):j+=g+m(c.value,e,i,b)+r,j+="</span>",j+=q?"</div>":"",j+="</a>"}else{!0===b.showImage&& void 0!==c.thumb_html&&(o=!0);var z="product_variation"===c.type?" dgwt-wcas-suggestion-product-var":"";if(k+=void 0!==c.post_id?'data-post-id="'+c.post_id+'" ':"",k+=void 0!==c.taxonomy?'data-taxonomy="'+c.taxonomy+'" ':"",k+=void 0!==c.term_id?'data-term-id="'+c.term_id+'" ':"",j+='<a href="'+s+'" class="'+f+" dgwt-wcas-suggestion-product"+z+'" data-index="'+p+'" '+k+">",o&&(j+='<span class="dgwt-wcas-si">'+c.thumb_html+"</span>"),j+=o?'<div class="dgwt-wcas-content-wrapp">':"",j+='<div class="dgwt-wcas-st">',void 0!==c.title_before&&c.title_before&&(j+=c.title_before),j+='<span class="dgwt-wcas-st-title">'+m(c.value,e,!0,b)+"</span>",void 0!==c.title_after&&c.title_after&&(j+=c.title_after),!0===b.showSKU&& void 0!==c.sku&&c.sku.length>0&&(j+='<span class="dgwt-wcas-sku">('+dgwt_wcas.labels.sku_label+" "+m(c.sku,e,!0,b)+")</span>"),!0===b.showDescription&& void 0!==c.desc&&c.desc&&(j+='<span class="dgwt-wcas-sd">'+m(c.desc,e,!0,b)+"</span>"),!0===b.showProductVendor&& void 0!==c.vendor&&c.vendor){var u='<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?j+='<span class="dgwt-wcas-product-vendor-link" data-url="'+c.vendor_url+'">'+u+"</span>":j+=u}void 0!==c.content_after&&c.content_after&&(j+=c.content_after),j+="</div>";var v=!0===b.showPrice&& void 0!==c.price,w=void 0!==c.meta_before,x=void 0!==c.meta_after,y=v||w||x;j+=y?'<div class="dgwt-wcas-meta">':"",w&&(j+=c.meta_before),v&&(j+='<span class="dgwt-wcas-sp">'+c.price+"</span>"),x&&(j+=c.meta_after),j+=y?"</div>":"",j+=o?"</div>":"",j+="</a>"}}),this.adjustContainerWidth(),i.detach(),c.html(j),$.isFunction(d)&&d.call(a.element,c,a.suggestions),c.show(),$("body").addClass("dgwt-wcas-open"),$("html").addClass("dgwt-wcas-open-"+a.getSearchStyle()),a.isMouseDownOnSearchElements=!1,a.automaticAlignment(),a.canShowDetailsPanel()&&($("body").addClass("dgwt-wcas-is-details"),h.show(),a.fixHeight()),b.autoSelectFirst&&(a.selectedIndex=0,c.scrollTop(0),c.children("."+f).first().addClass(g)),a.visible=!0,a.fixPosition(),a.findBestHint()},getSearchStyle(){var a=this.getFormWrapper(),b="solaris";return $(a.attr("class").split(/\s+/)).each(function(a){/dgwt-wcas-style-/i.test(this)&&(b=this.replace(/dgwt-wcas-style-/i,""))}),b},adjustContainerWidth:function(){var e=this.getFormWrapper(),c=this.getSuggestionsContainer(),b=this.getDetailsContainer(),a=this.getForm().outerWidth();if(e.length&&(c.css("width",a+"px"),this.canShowDetailsPanel()&&a>=this.options.dpusbBreakpoint)){var d=0;c.css("width",a/2),b.css("width",a/2),0!=(d=a-(c.outerWidth()+b.outerWidth()))&&b.css("width",b.outerWidth()+d)}},positionPreloaderAndMic:function(a){var c=this,b="object"==typeof a?a.find(".dgwt-wcas-search-submit"):$(".dgwt-wcas-search-submit");b.length>0&&b.each(function(){var a=$(this).closest(".dgwt-wcas-search-wrapp").find(".dgwt-wcas-preloader"),d=$(this).closest(".dgwt-wcas-search-wrapp").hasClass(c.options.voiceSearchSupportedClass),b=$(this).closest(".dgwt-wcas-search-wrapp").find("."+c.options.voiceSearchClass);d?1==dgwt_wcas.is_rtl?(b.css("left",6+$(this).outerWidth()+"px"),a.css("left",46+$(this).outerWidth()+"px")):(b.css("right",$(this).outerWidth()+"px"),a.css("right",40+$(this).outerWidth()+"px")):1==dgwt_wcas.is_rtl?a.css("left",6+$(this).outerWidth()+"px"):a.css("right",$(this).outerWidth()+"px")})},findBestHint:function(){var a=this.el.val().toLowerCase(),b=null;a&&($.each(this.suggestions,function(e,c){var d=0===c.value.toLowerCase().indexOf(a);return d&&(b=c),!d}),this.signalHint(b))},signalHint:function(c){var b="",a=this;c&&(b=a.currentValue+c.value.substr(a.currentValue.length)),a.hintValue!==b&&(a.hintValue=b,a.hint=c,(this.options.onHint||$.noop)(b))},preloader:function(d,e,b){var g,a,f="dgwt-wcas-preloader-wrapp";if("form"===e){if(1!=dgwt_wcas.show_preloader)return;a=this.getFormWrapper().find(".dgwt-wcas-preloader")}else"details"===e&&(a=this.getDetailsContainer());if(0!=a.length){if("form"===e){"hide"===d?(a.removeClass(b),a.html("")):(a.addClass(b),"string"==typeof dgwt_wcas.preloader_icon&&a.html(dgwt_wcas.preloader_icon));return}var c=a.find("."+f);if("hide"===d){c.length&&c.remove();return}if("show"===d){var h=this.options.isRtl?"-rtl":"";g='<div class="'+(null==b?f:f+" "+b)+'"><img class="dgwt-wcas-placeholder-preloader" src="'+dgwt_wcas.img_url+"placeholder"+h+'.png" /></div>',this.detailsPanelClearScene(),c.length&&c.remove(),a.prepend(g)}}},verifySuggestionsFormat:function(a){return a.length&&"string"==typeof a[0]?$.map(a,function(a){return{value:a,data:null}}):a},processResponse:function(b,c,e){var a=this,d=a.options;b.suggestions=a.verifySuggestionsFormat(b.suggestions),d.noCache||(a.cachedResponse[e]=b,d.preventBadQueries&&!b.suggestions.length&&a.badQueries.push(c)),c===a.getQuery(a.currentValue)&&(a.suggestions=b.suggestions,a.suggest())},activate:function(f){var c,a=this,b=a.classes.selected,d=a.getSuggestionsContainer(),e=d.find("."+a.classes.suggestion);return(d.find("."+b).removeClass(b),a.selectedIndex=f,-1!==a.selectedIndex&&e.length>a.selectedIndex)?($(c=e.get(a.selectedIndex)).addClass(b),c):null},selectHint:function(){var a=$.inArray(this.hint,this.suggestions);this.select(a)},select:function(a){this.options.disableHits||(this.closeOverlayMobile(),this.hide(),this.onSelect(a))},moveUp:function(){var a=this;if(-1!==a.selectedIndex){if(a.latestActivateSource="key",0===a.selectedIndex){a.getSuggestionsContainer().children("."+a.classes.suggestion).first().removeClass(a.classes.selected),a.selectedIndex=-1,a.ignoreValueChange=!1,a.el.val(a.currentValue),a.findBestHint();return}a.adjustScroll(a.selectedIndex-1,"up")}},moveDown:function(){var a=this;a.selectedIndex!==a.suggestions.length-1&&(a.latestActivateSource="key",a.adjustScroll(a.selectedIndex+1,"down"))},adjustScroll:function(b,i){var a=this;if("headline"===a.suggestions[b].type&&(b="down"===i?b+1:b-1),void 0!==a.suggestions[b]){var d=a.activate(b);if(a.getDetails(a.suggestions[b]),!("more_products"===a.suggestions[b].type|| !d||a.canShowDetailsPanel())){var c,f,g,e=a.getSuggestionsContainer(),h=$(d).outerHeight(!1);c=d.offsetTop,g=(f=e.scrollTop())+a.options.maxHeight-h,c<f?e.scrollTop(c):c>g&&e.scrollTop(c-a.options.maxHeight+h),a.options.preserveInput||(a.ignoreValueChange=!0),a.signalHint(null)}}},onSelect:function(d){var a=this,c=a.options.onSelect,b=a.suggestions[d];if(void 0!==b.type&&("more_products"===b.type||"enter"===a.actionTriggerSource&&"key"!=a.latestActivateSource&&"product_variation"!=b.type)){a.el.closest("form").trigger("submit");return}a.currentValue=a.getValue(b.value),a.currentValue===a.el.val()||a.options.preserveInput||a.el.val(a.currentValue.replace(/(<([^>]+)>)/gi," ").replace(/\s\s+/g," ")),b.url.length>0&&(window.location.href=b.url),a.signalHint(null),a.suggestions=[],a.selection=b,$.isFunction(c)&&c.call(a.element,b)},openInNewTab:function(b){var a=this.suggestions[b];a.url.length>0&&window.open(a.url,"_blank").focus()},getValue:function(c){var a,b,d=this.options.delimiter;return d&&1!==(b=(a=this.currentValue).split(d)).length?a.substr(0,a.length-b[b.length-1].length)+c:c},dispose:function(){var d=this.el,a=this.getFormWrapper(),b=this.getSuggestionsContainer(),c=a.find(".js-dgwt-wcas-enable-mobile-form");a.length&&a.find("*").each(function(){$(this).off(".autocomplete")}),a.off("click.autocomplete",".js-dgwt-wcas-search-icon-handler"),d.removeData("autocomplete"),$(window).off("resize.autocomplete",this.fixPosition),a.removeClass("dgwt-wcas-active"),this.close(!1),c.length&&c.remove(),b.length&&b.html("")},isMountedOverlayDarkened:function(){var b=this.getFormWrapper(),a=!1;return b.hasClass(this.classes.darkenOverlayMounted)&&(a=!0),a},enableOverlayDarkened:function(){var a=this,b=a.options;if(a.isMountedOverlayDarkened()){if(a.getFormWrapper().addClass("dgwt-wcas-search-darkoverl-on"),$("body").addClass("dgwt-wcas-darkoverl-on"),0==$("."+b.darkenedOverlayClass).length){var c='<div class="'+b.darkenedOverlayClass+'"><div></div><div></div><div></div><div></div></div>';$("body").append(c);var d=$("."+a.options.darkenedOverlayClass);a.positionOverlayDarkened(),d.on("click.autocomplete",function(b){a.disableOverlayDarkened()})}a.overlayDarkenedState="on"}},disableOverlayDarkened:function(){var b,a=this,d=a.options;if(a.isMountedOverlayDarkened()){(b=$(".dgwt-wcas-search-darkoverl-on")).length&&b.removeClass("dgwt-wcas-search-darkoverl-on"),$("body").removeClass("dgwt-wcas-darkoverl-on");var c=$("."+d.darkenedOverlayClass);c.length>0&&(c.remove(),a.overlayDarkenedState="off")}},positionOverlayDarkened:function(){var b=this,c=!1,a=$("."+b.options.darkenedOverlayClass);a.length>0&&(b.ancestorHasPositionFixed(b.getFormWrapper())?(c=!0,a.addClass("dgwt-wcas-suggestions-wrapp-fixed")):a.removeClass("dgwt-wcas-suggestions-wrapp-fixed"),a.children("div").each(function(a){b.positionOverlayDarkenedDiv($(this),a+1,c)}))},positionOverlayDarkenedDiv:function(f,g,e){var a,b,c=this.getFormWrapper();switch(c.hasClass("js-dgwt-wcas-layout-icon")&&(c=this.getForm()),a=this.getElementInfo(c),g){case 1:b={left:"-200px",top:"-200px",width:a.left+200+"px",height:$(document).outerHeight(!1)+200-1+"px"};break;case 2:var d=e?a.topViewPort:a.top;b={left:"-200px",top:"-200px",width:$(window).outerWidth(!1)+200+"px",height:d+200+"px"};break;case 3:b={left:a.left+a.width+"px",top:"-200px",width:$(window).outerWidth(!1)-a.right+"px",height:$(document).outerHeight(!1)+200-1+"px"};break;case 4:var d=e?a.topViewPort:a.top;b={left:"-200px",top:d+a.height+"px",width:$(window).outerWidth(!1)+200+"px",height:$(document).outerHeight(!1)-a.bottom-1+"px"}}b&&f.css(b)},showCloseButton:function(){var a=this,c=void 0!==dgwt_wcas.close_icon?dgwt_wcas.close_icon:"",b=a.getFormWrapper().find("."+a.options.preloaderClass);a.el.val().length<a.options.minChars||(b.hasClass(a.options.closeTrigger)||b.on("click.autocomplete",function(){a.close(!0)}),b.addClass(a.options.closeTrigger),b.html(c))},hideCloseButton:function(){var a=this.getFormWrapper().find("."+this.options.closeTrigger);a.length&&(a.removeClass(this.options.closeTrigger),a.html("")),a.off("click.autocomplete")},addActiveClassIfMissing:function(){var a=document.activeElement;if("object"==typeof a&&$(a).length&&$(a).hasClass("dgwt-wcas-search-input")){var b=$(a).closest(".dgwt-wcas-search-wrapp");b.length&&!b.hasClass("dgwt-wcas-active")&&b.addClass("dgwt-wcas-active")}},ancestorHasPositionFixed:function(a){var b=a.add(a.parents()),c=!1;return b.each(function(){if("fixed"===$(this).css("position"))return c=!0,!1}),c},gaEvent:function(a,c){var b=!!(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:a,event_category:c});else if(!1!==b){var e=b.getAll()[0];e&&e.send({hitType:"event",eventCategory:c,eventAction:"autocomplete_search",eventLabel:a})}}catch(f){}if(this.options.enableGASiteSearchModule)try{if("undefined"!=typeof gtag)gtag("event","page_view",{page_path:"/?s="+encodeURI(a)+"&post_type=product&dgwt_wcas=1"});else if(!1!==b){var d=b.getAll()[0];d&&(d.set("page","/?s="+encodeURI(a)+"&post_type=product&dgwt_wcas=1"),d.send("pageview"))}}catch(g){}$(document).trigger("dgwtWcasGAEvent",{term:a,category:c})},initVoiceSearch:function(){var a=this;if(!a.options.voiceSearchEnabled)return!1;var c=a.getFormWrapper(),e=c.find("."+a.options.searchInputClass),d=c.find("."+a.options.voiceSearchClass),b=!1;if("function"==typeof SpeechRecognition?b=SpeechRecognition:"function"==typeof webkitSpeechRecognition&&(b=webkitSpeechRecognition),!b)return!1;a.voiceSearchSetState("inactive",d),c.addClass(a.options.voiceSearchSupportedClass),a.voiceSearchRecognition=new b,a.voiceSearchRecognition.lang=a.options.voiceSearchLang,a.voiceSearchRecognition.continuous=!1,a.voiceSearchRecognition.interimResults=!0,a.voiceSearchRecognition.maxAlternatives=1,d.on("click",function(){if(c.hasClass("dgwt-wcas-mobile-overlay-trigger-active")&&!$("html").hasClass("dgwt-wcas-overlay-mobile-on")&&(c.find(".js-dgwt-wcas-enable-mobile-form").click(),c.find("."+a.options.searchInputClass).blur()),a.voiceSearchStarted){a.voiceSearchAbort();return}a.voiceSearchIsInitialized()&&a.voiceSearchAbort(),a.voiceSearchRecognition.start()}),a.voiceSearchRecognition.onstart=function(b){a.voiceSearchSetState("active",d)},a.voiceSearchRecognition.onresult=function(c){let b=c.results[0],f=b[0].transcript;e.val(f),b.isFinal&&(e.trigger("change"),!1 in document&&e.focus(),a.voiceSearchSetState("inactive",d))},a.voiceSearchRecognition.onspeechend=function(){a.voiceSearchSetState("inactive",d),a.voiceSearchRecognition.stop()},a.voiceSearchRecognition.onnomatch=function(b){a.voiceSearchSetState("inactive",d)},a.voiceSearchRecognition.onerror=function(b){switch(b.error){case"aborted":case"no-speech":a.voiceSearchSetState("inactive",d);break;case"network":break;case"not-allowed":case"service-not-allowed":a.voiceSearchSetState("off",d)}}},voiceSearchAbort:function(){var a=this;a.voiceSearchIsInitialized()&&(a.voiceSearchRecognition.abort(),a.voiceSearchStarted=!1)},voiceSearchIsInitialized:function(){return null!==this.voiceSearchRecognition},voiceSearchSetState:function(c,a){var b=this;switch(c){case"active":b.voiceSearchStarted=!0,"string"==typeof dgwt_wcas.voice_search_active_icon&&a.html(dgwt_wcas.voice_search_active_icon);break;case"inactive":b.voiceSearchStarted=!1,"string"==typeof dgwt_wcas.voice_search_inactive_icon&&a.html(dgwt_wcas.voice_search_inactive_icon);break;case"off":b.voiceSearchStarted=!1,"string"==typeof dgwt_wcas.voice_search_disabled_icon&&a.html(dgwt_wcas.voice_search_disabled_icon)}}},$.fn.dgwtWcasAutocomplete=function(c,d){var b="autocomplete";return arguments.length?this.each(function(){var f=$(this),e=f.data(b);"string"==typeof c?e&&"function"==typeof e[c]&&e[c](d):(e&&e.dispose&&e.dispose(),e=new a(this,c),f.data(b,e))}):this.first().data(b)},$.fn.autocomplete||($.fn.autocomplete=$.fn.dgwtWcasAutocomplete),navigator.userAgent.match(/Trident\/7\./)&&function(b,c){function d(a,b){var c=arguments.length>2?arguments[2]:[];if(!1===f(a))throw new TypeError(Object.prototype.toString.call(a)+"is not a function.");return a.apply(b,c)}function a(a,b,c){Object.defineProperty(a,b,{value:c,writable:!0,enumerable:!1,configurable:!0})}function e(a,b){return a[b]}function f(a){return"function"==typeof a}function g(a){if(null===a||a===c)throw TypeError();return Object(a)}function h(a){switch(typeof a){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===a?"null":"Symbol"in b&&(a instanceof b.Symbol||a.constructor===b.Symbol)?"symbol":"object"}}function i(a,b){var c,d;return h(a)===h(b)&&("number"===h(a)?!(!isNaN(a)||!isNaN(b))||1/a==1/0&&1/b== -1/0||1/a== -1/0&&1/b==1/0||a===b:(c=a)===b)}function j(b){if("symbol"===h(b))throw new TypeError("Cannot convert a Symbol value to a number");var a=Number(b);return isNaN(a)?0:1/a==1/0||1/a== -1/0||a===1/0||a=== -1/0?a:(a<0?-1:1)*Math.floor(Math.abs(a))}function k(a){switch(h(a)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return k(function(i){var j=arguments.length>1?arguments[1]:c;if("object"===h(i)){if(arguments.length<2)var a="default";else j===String?a="string":j===Number&&(a="number");var k="function"==typeof b.Symbol&&"symbol"==typeof b.Symbol.toPrimitive?function(h,b){var d,e,a=(d=h,e=b,g(d)[e]);if(null!==a&&a!==c){if(!1===f(a))throw new TypeError("Method not callable: "+b);return a}}(i,b.Symbol.toPrimitive):c;if(k!==c){var l=d(k,i,[a]);if("object"!==h(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===a&&(a="number"),function(c,j){if("string"===j)var a=["toString","valueOf"];else a=["valueOf","toString"];for(var b=0;b<a.length;++b){var g=e(c,a[b]);if(f(g)){var i=d(g,c);if("object"!==h(i))return i}}throw new TypeError("Cannot convert to primitive.")}(i,a)}return i}(a,String));default:return String(a)}}a(Array.prototype,"includes",function(l){var d,f,h=g(this),b=(d=e(h,"length"),(f=j(d))<=0?0:Math.min(f,9007199254740991));if(0===b)return!1;var c=j(arguments[1]);if(c>=0)var a=c;else(a=b+c)<0&&(a=0);for(;a<b;){if(i(l,e(h,k(a))))return!0;a+=1}return!1}),a(String.prototype,"includes",function(a){var f=arguments.length>1?arguments[1]:c,d=k(function(a){if(null===a||a===c)throw TypeError(Object.prototype.toString.call(a)+" is not coercible to Object.");return a}(this));if(function(a){if("object"!==h(a))return!1;var g,d="Symbol"in b&&"match"in b.Symbol?e(a,b.Symbol.match):c;if(d!==c)return Boolean(d);try{var f=a.lastIndex;return a.lastIndex=0,RegExp.prototype.exec.call(a),!0}catch(i){}finally{a.lastIndex=f}return!1}(a))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var g=k(a),i=Math.min(Math.max(j(f),0),d.length);return -1!==String.prototype.indexOf.call(d,g,i)})}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),$(document).ready(function(){(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)&&$("html").addClass("dgwt-wcas-is-ios"),window.dgwt_wcas.resizeOnlyOnce=null,window.dgwt_wcas.scrollOnlyOnce=null,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:1==dgwt_wcas.show_details_panel,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,layoutBreakpoint:dgwt_wcas.layout_breakpoint,mobileOverlayBreakpoint:dgwt_wcas.mobile_overlay_breakpoint,mobileOverlayWrapper:dgwt_wcas.mobile_overlay_wrapper,mobileOverlayDelay:dgwt_wcas.mobile_overlay_delay,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,voiceSearchEnabled:void 0!==dgwt_wcas.voice_search_enabled&&!!dgwt_wcas.voice_search_enabled,voiceSearchLang:void 0!==dgwt_wcas.voice_search_lang?dgwt_wcas.voice_search_lang:""},$(".dgwt-wcas-search-input").dgwtWcasAutocomplete(window.dgwt_wcas.config)}),({brokenSearchUi:void 0!==dgwt_wcas.fixer.broken_search_ui&&!!dgwt_wcas.fixer.broken_search_ui,brokenSearchUiAjax:void 0!==dgwt_wcas.fixer.broken_search_ui_ajax&&!!dgwt_wcas.fixer.broken_search_ui_ajax,brokenSearchUiHard:void 0!==dgwt_wcas.fixer.broken_search_ui_hard&&!!dgwt_wcas.fixer.broken_search_ui_hard,brokenSearchElementorPopups:void 0!==dgwt_wcas.fixer.broken_search_elementor_popups&&!!dgwt_wcas.fixer.broken_search_elementor_popups,brokenSearchBrowserBackArrow:void 0!==dgwt_wcas.fixer.broken_search_browsers_back_arrow&&!!dgwt_wcas.fixer.broken_search_browsers_back_arrow,forceRefreshCheckout:void 0!==dgwt_wcas.fixer.force_refresh_checkout&&!!dgwt_wcas.fixer.force_refresh_checkout,searchBars:[],init:function(){var a=this;a.brokenSearchUi&&$(document).ready(function(){a.fixBrokenSearchUi()}),a.brokenSearchUiAjax&&a.fixBrokenSearchUiAjax(),a.brokenSearchUiHard&&a.fixBrokenSearchUiHard(),a.brokenSearchElementorPopups&&$(document).ready(function(){a.fixBrokenSearchOnElementorPopupsV1(),a.fixBrokenSearchOnElementorPopupsV2()}),a.brokenSearchBrowserBackArrow&&a.fixbrokenSearchBrowserBackArrow(),a.forceRefreshCheckout&&a.fixforceRefreshCheckout()},fixBrokenSearchUi:function(){var a=this;$(document).ready(function(){setTimeout(function(){a.pullAndReconditionSearchBars()},50)}),$(window).on("load",function(){setTimeout(function(){a.pullAndReconditionSearchBars()},500)})},fixBrokenSearchUiAjax:function(){var a=this;$(document).ajaxSuccess(function(d,b,c){!("string"==typeof c.url&&new RegExp("search.php|wc-ajax").test(c.url))&&"string"==typeof b.responseText&&b.responseText.includes("dgwt-wcas-search-input")&&setTimeout(function(){a.pullAndReconditionSearchBars()},500)})},fixBrokenSearchUiHard:function(){var a=this;$(document).ready(function(){0===a.searchBars.length&&a.pullAndReconditionSearchBars(),setInterval(function(){a.pullAndReconditionSearchBars()},1e3)})},fixBrokenSearchOnElementorPopupsV1:function(){var a=this;$(document).on("elementor/popup/show",()=>{setTimeout(function(){a.pullAndReconditionSearchBars()},500)})},fixBrokenSearchOnElementorPopupsV2:function(){var a=this;$(document).ready(function(){void 0!==window.elementorFrontend&& void 0!==window.elementorFrontend.documentsManager&& void 0!==window.elementorFrontend.documentsManager.documents&&$.each(elementorFrontend.documentsManager.documents,function(c,b){void 0!==b.getModal&&b.getModal&&b.getModal().on("show",function(){setTimeout(function(){a.pullAndReconditionSearchBars()},500)})})})},fixforceRefreshCheckout:function(){$(document.body).on("added_to_cart",function(){$(document.body).hasClass("woocommerce-checkout")&&$(".dgwt-wcas-search-input").length>0&&$(document.body).trigger("update_checkout")})},fixbrokenSearchBrowserBackArrow:function(){$(window).on("load",function(){var a=0,b=setInterval(function(){var c=document.activeElement;if("object"==typeof c&&$(c).length&&$(c).hasClass("dgwt-wcas-search-input")){var d=$(c).closest(".dgwt-wcas-search-wrapp");d.length&&!d.hasClass("dgwt-wcas-active")&&(d.addClass("dgwt-wcas-active"),clearInterval(b))}a>10&&clearInterval(b),a++},500)})},pullAndReconditionSearchBars:function(){var b=this,a=$(".dgwt-wcas-search-input"),c=0==b.searchBars.length;a.length>0&&a.each(function(){var d,a=$(this),e=!0;if(b.searchBars.length>0){for(d=0;d<b.searchBars.length;d++)if(a[0]===b.searchBars[d][0]){e=!1;break}}if(e){var f=!1;b.hasUniqueId(a)||(b.makeUniqueID(a),f=!0),c&&b.isInitialized(a)&&!f||b.reinitSearchBar(a),b.searchBars.push(a)}})},isInitialized:function(a){return"object"==typeof a.data("autocomplete")},hasUniqueId:function(c){var b=!0;if(this.searchBars.length>0)for(var a=0;a<this.searchBars.length;a++)c.attr("id")===this.searchBars[a].attr("id")&&(b=!1);return b},reinitSearchBar:function(a){"object"==typeof a.data("autocomplete")&&a.data("autocomplete").dispose(),a.dgwtWcasAutocomplete(window.dgwt_wcas.config)},makeUniqueID:function(b){var a=Math.random().toString(36).substring(2,6);a="dgwt-wcas-search-input-"+a,b.attr("id",a),b.closest("form").find("label").attr("for",a)}}).init()})
build/blocks/search-nav/block.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "fibosearch/search-nav",
5
+ "version": "1.0.0",
6
+ "title": "FiboSearch navigation item",
7
+ "category": "widgets",
8
+ "description": "AJAX (live) search form for WooCommerce",
9
+ "keywords": [
10
+ "search",
11
+ "product"
12
+ ],
13
+ "supports": {
14
+ "html": false
15
+ },
16
+ "usesContext": [
17
+ "textColor"
18
+ ],
19
+ "parent": [
20
+ "core/navigation"
21
+ ],
22
+ "attributes": {
23
+ "inheritPluginSettings": {
24
+ "type": "boolean",
25
+ "default": false
26
+ },
27
+ "layout": {
28
+ "enum": [
29
+ "classic",
30
+ "icon",
31
+ "icon-flexible",
32
+ "icon-flexible-inv"
33
+ ],
34
+ "type": "string",
35
+ "default": "icon"
36
+ },
37
+ "darkenedBackground": {
38
+ "type": "boolean",
39
+ "default": false
40
+ },
41
+ "mobileOverlay": {
42
+ "type": "boolean",
43
+ "default": true
44
+ },
45
+ "iconColor": {
46
+ "type": "string",
47
+ "default": ""
48
+ }
49
+ },
50
+ "textdomain": "ajax-search-for-woocommerce",
51
+ "editorScript": "file:./index.js",
52
+ "editorStyle": [
53
+ "dgwt-wcas-style",
54
+ "dgwt-wcas-style-personalization",
55
+ "file:./index.css"
56
+ ]
57
+ }
build/blocks/search-nav/index.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '240a155b27442f4409a3');
build/blocks/search-nav/index.css ADDED
@@ -0,0 +1 @@
 
1
+ .wp-block-navigation.has-child-selected .wp-block-fibosearch-search-nav,.wp-block-navigation.is-selected .wp-block-fibosearch-search-nav{margin-right:25px}.wp-block-fibosearch-search-nav__device-preview-desktop .dgwt-wcas-show-on-preview-desktop{display:block}.wp-block-fibosearch-search-nav__device-preview-desktop .dgwt-wcas-show-on-preview-mobile,.wp-block-fibosearch-search-nav__device-preview-desktop .dgwt-wcas-show-on-preview-tablet,.wp-block-fibosearch-search-nav__device-preview-mobile .dgwt-wcas-show-on-preview-desktop,.wp-block-fibosearch-search-nav__device-preview-tablet .dgwt-wcas-show-on-preview-desktop{display:none}.wp-block-fibosearch-search-nav__device-preview-mobile .dgwt-wcas-show-on-preview-mobile,.wp-block-fibosearch-search-nav__device-preview-mobile .dgwt-wcas-show-on-preview-tablet,.wp-block-fibosearch-search-nav__device-preview-tablet .dgwt-wcas-show-on-preview-mobile,.wp-block-fibosearch-search-nav__device-preview-tablet .dgwt-wcas-show-on-preview-tablet{display:block}
build/blocks/search-nav/index.js ADDED
@@ -0,0 +1 @@
 
1
+ (()=>{"use strict";var e={n:o=>{var n=o&&o.__esModule?()=>o.default:()=>o;return e.d(n,{a:n}),n},d:(o,n)=>{for(var l in n)e.o(n,l)&&!e.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:n[l]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.element,n=window.wp.blocks,l=window.wp.components,r=window.wp.serverSideRender;var a=e.n(r);const c=window.wp.i18n,t=window.wp.blockEditor,i=window.wp.data,s={from:[{type:"block",blocks:["core/navigation-link"],transform:()=>(0,n.createBlock)("fibosearch/search-nav",{inheritPluginSettings:!1,layout:"icon"})},{type:"block",blocks:["core/search"],transform:()=>(0,n.createBlock)("fibosearch/search-nav",{inheritPluginSettings:!1,layout:"icon"})}],to:[{type:"block",blocks:["core/search"],transform:()=>(0,n.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/navigation-link"],transform:()=>(0,n.createBlock)("core/navigation-link")}]},m=window.wp.primitives,b=(0,o.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88.000000 88.000000",fill:"none"},(0,o.createElement)("g",{transform:"translate(0.000000,88.000000) scale(0.100000,-0.100000)"},(0,o.createElement)("path",{stroke:"none",fill:"#040404",fillRule:"evenodd",d:"M434 840 c-22 -5 -58 -16 -80 -26 l-39 -17 66 -8 c153 -17 271 -131\n286 -277 l6 -55 15 29 c24 45 28 165 8 219 -22 57 -92 119 -151 134 -49 12\n-53 12 -111 1z"}),(0,o.createElement)("path",{stroke:"none",fill:"#7c3b7c",fillRule:"evenodd",d:"M766 725 c4 -11 18 -49 31 -85 61 -162 4 -334 -132 -400 -61 -30\n-168 -25 -238 9 l-49 24 -99 -99 c-54 -54 -97 -99 -95 -101 2 -2 39 12 82 30\n74 31 81 32 117 20 176 -60 367 19 451 185 54 106 54 215 2 326 -25 53 -84\n129 -70 91z"}),(0,o.createElement)("path",{stroke:"none",fill:"#7c3b7c",fillRule:"evenodd",d:"M265 711 c-62 -29 -102 -77 -119 -146 -20 -75 -20 -113 0 -191 l15\n-62 -46 -84 c-26 -46 -58 -103 -72 -128 -21 -37 -1 -21 120 100 l146 144 -6\n58 c-7 71 8 111 52 138 53 33 98 27 149 -20 23 -22 51 -58 61 -80 10 -22 21\n-40 25 -40 14 0 20 80 10 126 -15 65 -33 97 -81 137 -75 65 -177 84 -254 48z"})));(0,n.registerBlockType)("fibosearch/search-nav",{edit:function(e){const{deviceType:n}=(0,i.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:o}=e("core/edit-post");return{deviceType:o()}}),[]),r=(0,t.useBlockProps)({className:`wp-block-fibosearch-search__device-preview-${n.toLowerCase()}`}),{attributes:s}=e,{attributes:{darkenedBackground:m,mobileOverlay:b,inheritPluginSettings:d,layout:h,iconColor:w},name:u,setAttributes:p}=e;return(0,o.createElement)("div",r,(0,o.createElement)(t.InspectorControls,{key:"inspector"},(0,o.createElement)(l.PanelBody,{title:(0,c.__)("Settings","ajax-search-for-woocommerce"),initialOpen:!1},(0,o.createElement)(l.ToggleControl,{label:(0,c.__)("Inherit global plugin settings","ajax-search-for-woocommerce"),checked:d,onChange:()=>p({inheritPluginSettings:!d})}),d?null:(0,o.createElement)(l.SelectControl,{label:(0,c.__)("Layout","ajax-search-for-woocommerce"),value:h,options:[{label:(0,c.__)("Search bar","ajax-search-for-woocommerce"),value:"classic"},{label:(0,c.__)("Search icon","ajax-search-for-woocommerce"),value:"icon"},{label:(0,c.__)("Icon on mobile, search bar on desktop","ajax-search-for-woocommerce"),value:"icon-flexible"},{label:(0,c.__)("Icon on desktop, search bar on mobile","ajax-search-for-woocommerce"),value:"icon-flexible-inv"}],onChange:e=>{p({layout:e}),"icon"!==e&&"icon-flexible"!==e&&"icon-flexible-inv"!==e||p({mobileOverlay:!0})}}),d?null:(0,o.createElement)(l.ToggleControl,{label:(0,c.__)("Darkened background","ajax-search-for-woocommerce"),checked:m,onChange:()=>p({darkenedBackground:!m})}),d?null:(0,o.createElement)(l.ToggleControl,{label:(0,c.__)("Overlay on mobile","ajax-search-for-woocommerce"),checked:b,onChange:()=>p({mobileOverlay:!b}),help:b?(0,c.__)("The search will open in overlay on mobile","ajax-search-for-woocommerce"):""}),d||"classic"===h?null:(0,o.createElement)(t.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,title:(0,c.__)("Color","ajax-search-for-woocommerce"),initialOpen:!1,colorSettings:[{value:w,onChange:e=>{p({iconColor:e})},label:(0,c.__)("Icon","ajax-search-for-woocommerce")}]}))),(0,o.createElement)(l.Disabled,null,(0,o.createElement)(a(),{block:u,attributes:s})))},icon:{src:(0,o.createElement)((function(e){let{icon:n,size:l=24,...r}=e;return(0,o.cloneElement)(n,{width:l,height:l,...r})}),{icon:b})},save:()=>{},transforms:s})})();
build/blocks/search/block.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "fibosearch/search",
5
+ "version": "1.0.0",
6
+ "title": "FiboSearch",
7
+ "category": "widgets",
8
+ "description": "AJAX (live) search form for WooCommerce",
9
+ "keywords": [
10
+ "search",
11
+ "product"
12
+ ],
13
+ "supports": {
14
+ "html": false
15
+ },
16
+ "attributes": {
17
+ "inheritPluginSettings": {
18
+ "type": "boolean",
19
+ "default": true
20
+ },
21
+ "layout": {
22
+ "enum": [
23
+ "classic",
24
+ "icon",
25
+ "icon-flexible",
26
+ "icon-flexible-inv"
27
+ ],
28
+ "type": "string",
29
+ "default": "classic"
30
+ },
31
+ "darkenedBackground": {
32
+ "type": "boolean",
33
+ "default": false
34
+ },
35
+ "mobileOverlay": {
36
+ "type": "boolean",
37
+ "default": true
38
+ }
39
+ },
40
+ "textdomain": "ajax-search-for-woocommerce",
41
+ "editorScript": "file:./index.js",
42
+ "editorStyle": [
43
+ "dgwt-wcas-style",
44
+ "dgwt-wcas-style-personalization",
45
+ "file:./index.css"
46
+ ]
47
+ }
build/blocks/search/index.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-shortcode'), 'version' => '9e809ca05861d82e1f3a');
build/blocks/search/index.css ADDED
@@ -0,0 +1 @@
 
1
+ .wp-block-fibosearch-search__device-preview-desktop .dgwt-wcas-show-on-preview-desktop{display:block}.wp-block-fibosearch-search__device-preview-desktop .dgwt-wcas-show-on-preview-mobile,.wp-block-fibosearch-search__device-preview-desktop .dgwt-wcas-show-on-preview-tablet,.wp-block-fibosearch-search__device-preview-mobile .dgwt-wcas-show-on-preview-desktop,.wp-block-fibosearch-search__device-preview-tablet .dgwt-wcas-show-on-preview-desktop{display:none}.wp-block-fibosearch-search__device-preview-mobile .dgwt-wcas-show-on-preview-mobile,.wp-block-fibosearch-search__device-preview-mobile .dgwt-wcas-show-on-preview-tablet,.wp-block-fibosearch-search__device-preview-tablet .dgwt-wcas-show-on-preview-mobile,.wp-block-fibosearch-search__device-preview-tablet .dgwt-wcas-show-on-preview-tablet{display:block}
build/blocks/search/index.js ADDED
@@ -0,0 +1 @@
 
1
+ (()=>{var e={184:(e,o)=>{var r;!function(){"use strict";var t={}.hasOwnProperty;function c(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var n=typeof r;if("string"===n||"number"===n)e.push(r);else if(Array.isArray(r)){if(r.length){var a=c.apply(null,r);a&&e.push(a)}}else if("object"===n)if(r.toString===Object.prototype.toString)for(var l in r)t.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(o,[]))||(e.exports=r)}()}},o={};function r(t){var c=o[t];if(void 0!==c)return c.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,r),n.exports}r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";const e=window.wp.element,o=window.wp.blocks;var t=r(184),c=r.n(t);const n=window.wp.components,a=window.wp.serverSideRender;var l=r.n(a);const i=window.wp.i18n,s=window.wp.blockEditor,h=window.wp.data,u=window.wp.shortcode,p={from:[{type:"block",blocks:["core/search"],transform:()=>(0,o.createBlock)("fibosearch/search")},{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:o,instance:r}=e;return!!r?.raw&&"dgwt_wcas_ajax_search"===o},transform:e=>{let{instance:r}=e;const t=r.raw.layout,c={};return"default"!==t&&(c.inheritPluginSettings=!1,c.layout=t),(0,o.createBlock)("fibosearch/search",c)}},{type:"block",blocks:["core/shortcode"],transform:()=>(0,o.createBlock)("fibosearch/search"),isMatch:e=>{let{text:o}=e;const r=(0,u.regexp)("fibosearch").exec(o);return Array.isArray(r)&&"fibosearch"===r[2]}},{type:"block",blocks:["core/shortcode"],transform:()=>(0,o.createBlock)("fibosearch/search"),isMatch:e=>{let{text:o}=e;const r=(0,u.regexp)("wcas-search-form").exec(o);return Array.isArray(r)&&"wcas-search-form"===r[2]}}],to:[{type:"block",blocks:["core/search"],transform:()=>(0,o.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})}]},b=window.wp.primitives,f=(0,e.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88.000000 88.000000",fill:"none"},(0,e.createElement)("g",{transform:"translate(0.000000,88.000000) scale(0.100000,-0.100000)"},(0,e.createElement)("path",{stroke:"none",fill:"#040404",fillRule:"evenodd",d:"M434 840 c-22 -5 -58 -16 -80 -26 l-39 -17 66 -8 c153 -17 271 -131\n286 -277 l6 -55 15 29 c24 45 28 165 8 219 -22 57 -92 119 -151 134 -49 12\n-53 12 -111 1z"}),(0,e.createElement)("path",{stroke:"none",fill:"#7c3b7c",fillRule:"evenodd",d:"M766 725 c4 -11 18 -49 31 -85 61 -162 4 -334 -132 -400 -61 -30\n-168 -25 -238 9 l-49 24 -99 -99 c-54 -54 -97 -99 -95 -101 2 -2 39 12 82 30\n74 31 81 32 117 20 176 -60 367 19 451 185 54 106 54 215 2 326 -25 53 -84\n129 -70 91z"}),(0,e.createElement)("path",{stroke:"none",fill:"#7c3b7c",fillRule:"evenodd",d:"M265 711 c-62 -29 -102 -77 -119 -146 -20 -75 -20 -113 0 -191 l15\n-62 -46 -84 c-26 -46 -58 -103 -72 -128 -21 -37 -1 -21 120 100 l146 144 -6\n58 c-7 71 8 111 52 138 53 33 98 27 149 -20 23 -22 51 -58 61 -80 10 -22 21\n-40 25 -40 14 0 20 80 10 126 -15 65 -33 97 -81 137 -75 65 -177 84 -254 48z"})));(0,o.registerBlockType)("fibosearch/search",{edit:function(o){const r={},{deviceType:t}=(0,h.useSelect)((e=>{const o=e("core/edit-post");if(null===o)return{deviceType:!1};const{__experimentalGetPreviewDeviceType:r}=o;return{deviceType:r()}}),[]);"string"==typeof t&&(r[`wp-block-fibosearch-search__device-preview-${t.toLowerCase()}`]=!0);const a=(0,s.useBlockProps)({className:c()(r)}),{attributes:u}=o,{attributes:{darkenedBackground:p,mobileOverlay:b,inheritPluginSettings:f,layout:m},name:d,setAttributes:w}=o;return(0,e.createElement)("div",a,(0,e.createElement)(s.InspectorControls,{key:"inspector"},(0,e.createElement)(n.PanelBody,{title:(0,i.__)("Settings","ajax-search-for-woocommerce"),initialOpen:!1},(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Inherit global plugin settings","ajax-search-for-woocommerce"),checked:f,onChange:()=>w({inheritPluginSettings:!f})}),f?null:(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Layout","ajax-search-for-woocommerce"),value:m,options:[{label:(0,i.__)("Search bar","ajax-search-for-woocommerce"),value:"classic"},{label:(0,i.__)("Search icon","ajax-search-for-woocommerce"),value:"icon"},{label:(0,i.__)("Icon on mobile, search bar on desktop","ajax-search-for-woocommerce"),value:"icon-flexible"},{label:(0,i.__)("Icon on desktop, search bar on mobile","ajax-search-for-woocommerce"),value:"icon-flexible-inv"}],onChange:e=>{w({layout:e}),"icon"!==e&&"icon-flexible"!==e&&"icon-flexible-inv"!==e||w({mobileOverlay:!0})}}),f?null:(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Darkened background","ajax-search-for-woocommerce"),checked:p,onChange:()=>w({darkenedBackground:!p})}),f?null:(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Overlay on mobile","ajax-search-for-woocommerce"),checked:b,onChange:()=>w({mobileOverlay:!b}),help:b?(0,i.__)("The search will open in overlay on mobile","ajax-search-for-woocommerce"):""}))),(0,e.createElement)(n.Disabled,null,(0,e.createElement)(l(),{block:d,attributes:u})))},icon:{src:(0,e.createElement)((function(o){let{icon:r,size:t=24,...c}=o;return(0,e.cloneElement)(r,{width:t,height:t,...c})}),{icon:f})},save:()=>{},transforms:p})})()})();
fs/lib/languages/freemius-cs_CZ.mo CHANGED
Binary file
fs/lib/languages/freemius-da_DK.mo CHANGED
Binary file
fs/lib/languages/freemius-de_DE.mo ADDED
Binary file
fs/lib/languages/freemius-en.mo CHANGED
Binary file
fs/lib/languages/freemius-es_ES.mo CHANGED
Binary file
fs/lib/languages/freemius-fr_FR.mo CHANGED
Binary file
fs/lib/languages/freemius-he_IL.mo CHANGED
Binary file
fs/lib/languages/freemius-hu_HU.mo CHANGED
Binary file
fs/lib/languages/freemius-it_IT.mo CHANGED
Binary file
fs/lib/languages/freemius-ja.mo CHANGED
Binary file
fs/lib/languages/freemius-nl_NL.mo CHANGED
Binary file
fs/lib/languages/freemius-ru_RU.mo CHANGED
Binary file
fs/lib/languages/freemius-ta.mo CHANGED
Binary file
fs/lib/languages/freemius-zh_CN.mo CHANGED
Binary file
fs/lib/languages/freemius.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2021 freemius
2
  # This file is distributed under the same license as the freemius package.
3
  msgid ""
4
  msgstr ""
@@ -8,6 +8,7 @@ msgstr ""
8
  "Content-Transfer-Encoding: 8bit\n"
9
  "Language-Team: Freemius Team <admin@freemius.com>\n"
10
  "Last-Translator: Vova Feldman <vova@freemius.com>\n"
 
11
  "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-KeywordsList: get_text_inline;fs_text_inline;fs_echo_inline;fs_esc_js_inline;fs_esc_attr_inline;fs_esc_attr_echo_inline;fs_esc_html_inline;fs_esc_html_echo_inline;get_text_x_inline:1,2c;fs_text_x_inline:1,2c;fs_echo_x_inline:1,2c;fs_esc_attr_x_inline:1,2c;fs_esc_js_x_inline:1,2c;fs_esc_js_echo_x_inline:1,2c;fs_esc_html_x_inline:1,2c;fs_esc_html_echo_x_inline:1,2c\n"
@@ -16,796 +17,32 @@ msgstr ""
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
 
19
- #: includes/class-freemius.php:1919, templates/account.php:912
20
  msgid "An update to a Beta version will replace your installed version of %s with the latest Beta release - use with caution, and not on production sites. You have been warned."
21
  msgstr ""
22
 
23
- #: includes/class-freemius.php:1926
24
  msgid "Would you like to proceed with the update?"
25
  msgstr ""
26
 
27
- #: includes/class-freemius.php:2138
28
- msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
29
- msgstr ""
30
-
31
- #: includes/class-freemius.php:2140
32
- msgid "Error"
33
- msgstr ""
34
-
35
- #: includes/class-freemius.php:2540
36
- msgid "I found a better %s"
37
- msgstr ""
38
-
39
- #: includes/class-freemius.php:2542
40
- msgid "What's the %s's name?"
41
- msgstr ""
42
-
43
- #: includes/class-freemius.php:2548
44
- msgid "It's a temporary %s. I'm just debugging an issue."
45
- msgstr ""
46
-
47
- #: includes/class-freemius.php:2550
48
- msgid "Deactivation"
49
- msgstr ""
50
-
51
- #: includes/class-freemius.php:2551
52
- msgid "Theme Switch"
53
- msgstr ""
54
-
55
- #: includes/class-freemius.php:2560, templates/forms/resend-key.php:24, templates/forms/user-change.php:29
56
- msgid "Other"
57
- msgstr ""
58
-
59
- #: includes/class-freemius.php:2568
60
- msgid "I no longer need the %s"
61
- msgstr ""
62
-
63
- #: includes/class-freemius.php:2575
64
- msgid "I only needed the %s for a short period"
65
- msgstr ""
66
-
67
- #: includes/class-freemius.php:2581
68
- msgid "The %s broke my site"
69
- msgstr ""
70
-
71
- #: includes/class-freemius.php:2588
72
- msgid "The %s suddenly stopped working"
73
- msgstr ""
74
-
75
- #: includes/class-freemius.php:2598
76
- msgid "I can't pay for it anymore"
77
- msgstr ""
78
-
79
- #: includes/class-freemius.php:2600
80
- msgid "What price would you feel comfortable paying?"
81
- msgstr ""
82
-
83
- #: includes/class-freemius.php:2606
84
- msgid "I don't like to share my information with you"
85
- msgstr ""
86
-
87
- #: includes/class-freemius.php:2627
88
- msgid "The %s didn't work"
89
- msgstr ""
90
-
91
- #: includes/class-freemius.php:2637
92
- msgid "I couldn't understand how to make it work"
93
- msgstr ""
94
-
95
- #: includes/class-freemius.php:2645
96
- msgid "The %s is great, but I need specific feature that you don't support"
97
- msgstr ""
98
-
99
- #: includes/class-freemius.php:2647
100
- msgid "What feature?"
101
- msgstr ""
102
-
103
- #: includes/class-freemius.php:2651
104
- msgid "The %s is not working"
105
- msgstr ""
106
-
107
- #: includes/class-freemius.php:2653
108
- msgid "Kindly share what didn't work so we can fix it for future users..."
109
- msgstr ""
110
-
111
- #: includes/class-freemius.php:2657
112
- msgid "It's not what I was looking for"
113
- msgstr ""
114
-
115
- #: includes/class-freemius.php:2659
116
- msgid "What you've been looking for?"
117
- msgstr ""
118
-
119
- #: includes/class-freemius.php:2663
120
- msgid "The %s didn't work as expected"
121
- msgstr ""
122
-
123
- #: includes/class-freemius.php:2665
124
- msgid "What did you expect?"
125
- msgstr ""
126
-
127
- #: includes/class-freemius.php:3520, templates/debug.php:20
128
  msgid "Freemius Debug"
129
  msgstr ""
130
 
131
- #: includes/class-freemius.php:4272
132
- msgid "I don't know what is cURL or how to install it, help me!"
133
- msgstr ""
134
-
135
- #: includes/class-freemius.php:4274
136
- msgid "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
137
- msgstr ""
138
-
139
- #: includes/class-freemius.php:4281
140
- msgid "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
141
- msgstr ""
142
-
143
- #: includes/class-freemius.php:4386
144
- msgid "Yes - do your thing"
145
- msgstr ""
146
-
147
- #: includes/class-freemius.php:4391
148
- msgid "No - just deactivate"
149
- msgstr ""
150
-
151
- #: includes/class-freemius.php:4436, includes/class-freemius.php:4930, includes/class-freemius.php:6191, includes/class-freemius.php:13368, includes/class-freemius.php:14110, includes/class-freemius.php:17542, includes/class-freemius.php:17647, includes/class-freemius.php:17822, includes/class-freemius.php:20056, includes/class-freemius.php:20414, includes/class-freemius.php:20424, includes/class-freemius.php:21109, includes/class-freemius.php:22015, includes/class-freemius.php:22148, includes/class-freemius.php:22304, templates/add-ons.php:57
152
- msgctxt "exclamation"
153
- msgid "Oops"
154
- msgstr ""
155
-
156
- #: includes/class-freemius.php:4505
157
- msgid "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
158
- msgstr ""
159
-
160
- #: includes/class-freemius.php:4927
161
- msgctxt "addonX cannot run without pluginY"
162
- msgid "%s cannot run without %s."
163
- msgstr ""
164
-
165
- #: includes/class-freemius.php:4928
166
- msgctxt "addonX cannot run..."
167
- msgid "%s cannot run without the plugin."
168
- msgstr ""
169
-
170
- #: includes/class-freemius.php:5127, includes/class-freemius.php:5152, includes/class-freemius.php:21180
171
- msgid "Unexpected API error. Please contact the %s's author with the following error."
172
- msgstr ""
173
-
174
- #: includes/class-freemius.php:5857
175
- msgid "Premium %s version was successfully activated."
176
- msgstr ""
177
-
178
- #: includes/class-freemius.php:5869, includes/class-freemius.php:7774
179
- msgctxt "Used to express elation, enthusiasm, or triumph (especially in electronic communication)."
180
- msgid "W00t"
181
- msgstr ""
182
-
183
- #: includes/class-freemius.php:5884
184
- msgid "You have a %s license."
185
- msgstr ""
186
-
187
- #: includes/class-freemius.php:5888, includes/class-freemius.php:16947, includes/class-freemius.php:16958, includes/class-freemius.php:20325, includes/class-freemius.php:20689, includes/class-freemius.php:20758, includes/class-freemius.php:20930
188
- msgctxt "interjection expressing joy or exuberance"
189
- msgid "Yee-haw"
190
- msgstr ""
191
-
192
- #: includes/class-freemius.php:6174
193
- msgid "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
194
- msgstr ""
195
-
196
- #: includes/class-freemius.php:6178
197
- msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
198
- msgstr ""
199
-
200
- #: includes/class-freemius.php:6187, templates/add-ons.php:186, templates/account/partials/addon.php:381
201
- msgid "More information about %s"
202
- msgstr ""
203
-
204
- #: includes/class-freemius.php:6188
205
- msgid "Purchase License"
206
- msgstr ""
207
-
208
- #: includes/class-freemius.php:7125, templates/connect.php:171
209
- msgid "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
210
- msgstr ""
211
-
212
- #: includes/class-freemius.php:7129
213
- msgid "start the trial"
214
- msgstr ""
215
-
216
- #: includes/class-freemius.php:7130, templates/connect.php:175
217
- msgid "complete the install"
218
- msgstr ""
219
-
220
- #: includes/class-freemius.php:7249
221
- msgid "You are just one step away - %s"
222
- msgstr ""
223
-
224
- #: includes/class-freemius.php:7252
225
- msgctxt "%s - plugin name. As complete \"PluginX\" activation now"
226
- msgid "Complete \"%s\" Activation Now"
227
- msgstr ""
228
-
229
- #: includes/class-freemius.php:7334
230
- msgid "We made a few tweaks to the %s, %s"
231
- msgstr ""
232
-
233
- #: includes/class-freemius.php:7338
234
- msgid "Opt in to make \"%s\" better!"
235
- msgstr ""
236
-
237
- #: includes/class-freemius.php:7773
238
- msgid "The upgrade of %s was successfully completed."
239
- msgstr ""
240
-
241
- #: includes/class-freemius.php:10255, includes/class-fs-plugin-updater.php:1087, includes/class-fs-plugin-updater.php:1282, includes/class-fs-plugin-updater.php:1289, templates/auto-installation.php:32
242
- msgid "Add-On"
243
- msgstr ""
244
-
245
- #: includes/class-freemius.php:10257, templates/account.php:394, templates/account.php:402, templates/debug.php:358, templates/debug.php:549
246
- msgid "Plugin"
247
- msgstr ""
248
-
249
- #: includes/class-freemius.php:10258, templates/account.php:395, templates/account.php:403, templates/debug.php:358, templates/debug.php:549, templates/forms/deactivation/form.php:71
250
- msgid "Theme"
251
- msgstr ""
252
-
253
- #: includes/class-freemius.php:13188
254
  msgid "An unknown error has occurred while trying to toggle the license's white-label mode."
255
  msgstr ""
256
 
257
- #: includes/class-freemius.php:13202
258
- msgid "Your %s license was flagged as white-labeled to hide sensitive information from the WP Admin (e.g. your email, license key, prices, billing address & invoices). If you ever wish to revert it back, you can easily do it through your %s. If this was a mistake you can also %s."
259
- msgstr ""
260
-
261
- #: includes/class-freemius.php:13207
262
- msgid "User Dashboard"
263
- msgstr ""
264
-
265
- #: includes/class-freemius.php:13208
266
- msgid "revert it now"
267
- msgstr ""
268
-
269
- #: includes/class-freemius.php:13266
270
  msgid "An unknown error has occurred while trying to set the user's beta mode."
271
  msgstr ""
272
 
273
- #: includes/class-freemius.php:13339
274
  msgid "Invalid new user ID or email address."
275
  msgstr ""
276
 
277
- #: includes/class-freemius.php:13369, includes/class-freemius.php:22259
278
- msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
279
- msgstr ""
280
-
281
- #: includes/class-freemius.php:13370, includes/class-freemius.php:22260
282
- msgid "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
283
- msgstr ""
284
-
285
- #: includes/class-freemius.php:13377, includes/class-freemius.php:22267
286
- msgid "Change Ownership"
287
- msgstr ""
288
-
289
- #: includes/class-freemius.php:13977
290
- msgid "Invalid site details collection."
291
- msgstr ""
292
-
293
- #: includes/class-freemius.php:14097
294
- msgid "We couldn't find your email address in the system, are you sure it's the right address?"
295
- msgstr ""
296
-
297
- #: includes/class-freemius.php:14099
298
- msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
299
- msgstr ""
300
-
301
- #: includes/class-freemius.php:14373
302
- msgid "Account is pending activation."
303
- msgstr ""
304
-
305
- #: includes/class-freemius.php:14485, templates/forms/premium-versions-upgrade-handler.php:47
306
- msgid "Buy a license now"
307
- msgstr ""
308
-
309
- #: includes/class-freemius.php:14497, templates/forms/premium-versions-upgrade-handler.php:46
310
- msgid "Renew your license now"
311
- msgstr ""
312
-
313
- #: includes/class-freemius.php:14501
314
- msgid "%s to access version %s security & feature updates, and support."
315
- msgstr ""
316
-
317
- #: includes/class-freemius.php:16929
318
- msgid "%s activation was successfully completed."
319
- msgstr ""
320
-
321
- #: includes/class-freemius.php:16943
322
- msgid "Your account was successfully activated with the %s plan."
323
- msgstr ""
324
-
325
- #: includes/class-freemius.php:16954, includes/class-freemius.php:20754
326
- msgid "Your trial has been successfully started."
327
- msgstr ""
328
-
329
- #: includes/class-freemius.php:17540, includes/class-freemius.php:17645, includes/class-freemius.php:17820
330
- msgid "Couldn't activate %s."
331
- msgstr ""
332
-
333
- #: includes/class-freemius.php:17541, includes/class-freemius.php:17646, includes/class-freemius.php:17821
334
- msgid "Please contact us with the following message:"
335
- msgstr ""
336
-
337
- #: includes/class-freemius.php:17642, templates/forms/data-debug-mode.php:162
338
- msgid "An unknown error has occurred."
339
- msgstr ""
340
-
341
- #: includes/class-freemius.php:18178, includes/class-freemius.php:23340
342
- msgid "Upgrade"
343
- msgstr ""
344
-
345
- #: includes/class-freemius.php:18184
346
- msgid "Start Trial"
347
- msgstr ""
348
-
349
- #: includes/class-freemius.php:18186
350
- msgid "Pricing"
351
- msgstr ""
352
-
353
- #: includes/class-freemius.php:18266, includes/class-freemius.php:18268
354
- msgid "Affiliation"
355
- msgstr ""
356
-
357
- #: includes/class-freemius.php:18296, includes/class-freemius.php:18298, templates/account.php:242, templates/debug.php:324
358
- msgid "Account"
359
- msgstr ""
360
-
361
- #: includes/class-freemius.php:18312, includes/class-freemius.php:18314, includes/customizer/class-fs-customizer-support-section.php:60
362
- msgid "Contact Us"
363
- msgstr ""
364
-
365
- #: includes/class-freemius.php:18325, includes/class-freemius.php:18327, includes/class-freemius.php:23354, templates/account.php:121, templates/account/partials/addon.php:44
366
- msgid "Add-Ons"
367
- msgstr ""
368
-
369
- #: includes/class-freemius.php:18361
370
- msgctxt "ASCII arrow left icon"
371
- msgid "&#x2190;"
372
- msgstr ""
373
-
374
- #: includes/class-freemius.php:18361
375
- msgctxt "ASCII arrow right icon"
376
- msgid "&#x27a4;"
377
- msgstr ""
378
-
379
- #: includes/class-freemius.php:18363, templates/pricing.php:109
380
- msgctxt "noun"
381
- msgid "Pricing"
382
- msgstr ""
383
-
384
- #: includes/class-freemius.php:18576, includes/customizer/class-fs-customizer-support-section.php:67
385
- msgid "Support Forum"
386
- msgstr ""
387
-
388
- #: includes/class-freemius.php:19550
389
- msgid "Your email has been successfully verified - you are AWESOME!"
390
- msgstr ""
391
-
392
- #: includes/class-freemius.php:19551
393
- msgctxt "a positive response"
394
- msgid "Right on"
395
- msgstr ""
396
-
397
- #: includes/class-freemius.php:20057
398
- msgid "seems like the key you entered doesn't match our records."
399
- msgstr ""
400
-
401
- #: includes/class-freemius.php:20081
402
- msgid "Debug mode was successfully enabled and will be automatically disabled in 60 min. You can also disable it earlier by clicking the \"Stop Debug\" link."
403
- msgstr ""
404
-
405
- #: includes/class-freemius.php:20316
406
- msgid "Your %s Add-on plan was successfully upgraded."
407
- msgstr ""
408
-
409
- #: includes/class-freemius.php:20318
410
- msgid "%s Add-on was successfully purchased."
411
- msgstr ""
412
-
413
- #: includes/class-freemius.php:20321
414
- msgid "Download the latest version"
415
- msgstr ""
416
-
417
- #: includes/class-freemius.php:20407
418
- msgid "Your server is blocking the access to Freemius' API, which is crucial for %1$s synchronization. Please contact your host to whitelist %2$s"
419
- msgstr ""
420
-
421
- #: includes/class-freemius.php:20413, includes/class-freemius.php:20423, includes/class-freemius.php:20889, includes/class-freemius.php:20978
422
- msgid "Error received from the server:"
423
- msgstr ""
424
-
425
- #: includes/class-freemius.php:20423
426
- msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
427
- msgstr ""
428
-
429
- #: includes/class-freemius.php:20651, includes/class-freemius.php:20894, includes/class-freemius.php:20949, includes/class-freemius.php:21056
430
- msgctxt "something somebody says when they are thinking about what you have just said."
431
- msgid "Hmm"
432
- msgstr ""
433
-
434
- #: includes/class-freemius.php:20664
435
- msgid "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
436
- msgstr ""
437
-
438
- #: includes/class-freemius.php:20665, templates/account.php:123, templates/add-ons.php:250, templates/account/partials/addon.php:46
439
- msgctxt "trial period"
440
- msgid "Trial"
441
- msgstr ""
442
-
443
- #: includes/class-freemius.php:20670
444
- msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
445
- msgstr ""
446
-
447
- #: includes/class-freemius.php:20674, includes/class-freemius.php:20733
448
- msgid "Please contact us here"
449
- msgstr ""
450
-
451
- #: includes/class-freemius.php:20685
452
- msgid "Your plan was successfully activated."
453
- msgstr ""
454
-
455
- #: includes/class-freemius.php:20686
456
- msgid "Your plan was successfully upgraded."
457
- msgstr ""
458
-
459
- #: includes/class-freemius.php:20703
460
- msgid "Your plan was successfully changed to %s."
461
- msgstr ""
462
-
463
- #: includes/class-freemius.php:20719
464
- msgid "Your license has expired. You can still continue using the free %s forever."
465
- msgstr ""
466
-
467
- #: includes/class-freemius.php:20721
468
- msgid "Your license has expired. %1$sUpgrade now%2$s to continue using the %3$s without interruptions."
469
- msgstr ""
470
-
471
- #: includes/class-freemius.php:20729
472
- msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
473
- msgstr ""
474
-
475
- #: includes/class-freemius.php:20742
476
- msgid "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
477
- msgstr ""
478
-
479
- #: includes/class-freemius.php:20768
480
- msgid "Your free trial has expired. You can still continue using all our free features."
481
- msgstr ""
482
-
483
- #: includes/class-freemius.php:20770
484
- msgid "Your free trial has expired. %1$sUpgrade now%2$s to continue using the %3$s without interruptions."
485
- msgstr ""
486
-
487
- #: includes/class-freemius.php:20885
488
- msgid "It looks like the license could not be activated."
489
- msgstr ""
490
-
491
- #: includes/class-freemius.php:20927
492
- msgid "Your license was successfully activated."
493
- msgstr ""
494
-
495
- #: includes/class-freemius.php:20953
496
- msgid "It looks like your site currently doesn't have an active license."
497
- msgstr ""
498
-
499
- #: includes/class-freemius.php:20977
500
- msgid "It looks like the license deactivation failed."
501
- msgstr ""
502
-
503
- #: includes/class-freemius.php:21006
504
- msgid "Your %s license was successfully deactivated."
505
- msgstr ""
506
-
507
- #: includes/class-freemius.php:21007
508
- msgid "Your license was successfully deactivated, you are back to the %s plan."
509
- msgstr ""
510
-
511
- #: includes/class-freemius.php:21010
512
- msgid "O.K"
513
- msgstr ""
514
-
515
- #: includes/class-freemius.php:21063
516
- msgid "Seems like we are having some temporary issue with your subscription cancellation. Please try again in few minutes."
517
- msgstr ""
518
-
519
- #: includes/class-freemius.php:21072
520
- msgid "Your subscription was successfully cancelled. Your %s plan license will expire in %s."
521
- msgstr ""
522
-
523
- #: includes/class-freemius.php:21114
524
- msgid "You are already running the %s in a trial mode."
525
- msgstr ""
526
-
527
- #: includes/class-freemius.php:21125
528
- msgid "You already utilized a trial before."
529
- msgstr ""
530
-
531
- #: includes/class-freemius.php:21139
532
- msgid "Plan %s do not exist, therefore, can't start a trial."
533
- msgstr ""
534
-
535
- #: includes/class-freemius.php:21150
536
- msgid "Plan %s does not support a trial period."
537
- msgstr ""
538
-
539
- #: includes/class-freemius.php:21161
540
- msgid "None of the %s's plans supports a trial period."
541
- msgstr ""
542
-
543
- #: includes/class-freemius.php:21211
544
- msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
545
- msgstr ""
546
-
547
- #: includes/class-freemius.php:21247
548
- msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
549
- msgstr ""
550
-
551
- #: includes/class-freemius.php:21266
552
- msgid "Your %s free trial was successfully cancelled."
553
- msgstr ""
554
-
555
- #: includes/class-freemius.php:21582
556
- msgid "Version %s was released."
557
- msgstr ""
558
-
559
- #: includes/class-freemius.php:21582
560
- msgid "Please download %s."
561
- msgstr ""
562
-
563
- #: includes/class-freemius.php:21589
564
- msgid "the latest %s version here"
565
- msgstr ""
566
-
567
- #: includes/class-freemius.php:21594
568
- msgid "New"
569
- msgstr ""
570
-
571
- #: includes/class-freemius.php:21599
572
- msgid "Seems like you got the latest release."
573
- msgstr ""
574
-
575
- #: includes/class-freemius.php:21600
576
- msgid "You are all good!"
577
- msgstr ""
578
-
579
- #: includes/class-freemius.php:21903
580
- msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
581
- msgstr ""
582
-
583
- #: includes/class-freemius.php:22043
584
- msgid "Site successfully opted in."
585
- msgstr ""
586
-
587
- #: includes/class-freemius.php:22044, includes/class-freemius.php:23050
588
- msgid "Awesome"
589
- msgstr ""
590
-
591
- #: includes/class-freemius.php:22060, templates/forms/optout.php:41
592
- msgid "We appreciate your help in making the %s better by letting us track some usage data."
593
- msgstr ""
594
-
595
- #: includes/class-freemius.php:22061
596
- msgid "Thank you!"
597
- msgstr ""
598
-
599
- #: includes/class-freemius.php:22068
600
- msgid "We will no longer be sending any usage data of %s on %s to %s."
601
- msgstr ""
602
-
603
- #: includes/class-freemius.php:22226
604
- msgid "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
605
- msgstr ""
606
-
607
- #: includes/class-freemius.php:22232
608
- msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
609
- msgstr ""
610
-
611
- #: includes/class-freemius.php:22237
612
- msgid "%s is the new owner of the account."
613
- msgstr ""
614
-
615
- #: includes/class-freemius.php:22239
616
- msgctxt "as congratulations"
617
- msgid "Congrats"
618
- msgstr ""
619
-
620
- #: includes/class-freemius.php:22275
621
- msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
622
- msgstr ""
623
-
624
- #: includes/class-freemius.php:22287
625
- msgid "Please provide your full name."
626
- msgstr ""
627
-
628
- #: includes/class-freemius.php:22292
629
- msgid "Your name was successfully updated."
630
- msgstr ""
631
-
632
- #: includes/class-freemius.php:22353
633
- msgid "You have successfully updated your %s."
634
- msgstr ""
635
-
636
- #: includes/class-freemius.php:22412
637
- msgid "Is this your client's site? %s if you wish to hide sensitive info like your email, license key, prices, billing address & invoices from the WP Admin."
638
- msgstr ""
639
-
640
- #: includes/class-freemius.php:22415
641
- msgid "Click here"
642
- msgstr ""
643
-
644
- #: includes/class-freemius.php:22513
645
- msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
646
- msgstr ""
647
-
648
- #: includes/class-freemius.php:22514
649
- msgctxt "advance notice of something that will need attention."
650
- msgid "Heads up"
651
- msgstr ""
652
-
653
- #: includes/class-freemius.php:23090
654
- msgctxt "exclamation"
655
- msgid "Hey"
656
- msgstr ""
657
-
658
- #: includes/class-freemius.php:23090
659
- msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
660
- msgstr ""
661
-
662
- #: includes/class-freemius.php:23098
663
- msgid "No commitment for %s days - cancel anytime!"
664
- msgstr ""
665
-
666
- #: includes/class-freemius.php:23099
667
- msgid "No credit card required"
668
- msgstr ""
669
-
670
- #: includes/class-freemius.php:23106, templates/forms/trial-start.php:53
671
- msgctxt "call to action"
672
- msgid "Start free trial"
673
- msgstr ""
674
-
675
- #: includes/class-freemius.php:23183
676
- msgid "Hey there, did you know that %s has an affiliate program? If you like the %s you can become our ambassador and earn some cash!"
677
- msgstr ""
678
-
679
- #: includes/class-freemius.php:23192
680
- msgid "Learn more"
681
- msgstr ""
682
-
683
- #: includes/class-freemius.php:23378, templates/account.php:558, templates/account.php:708, templates/connect.php:179, templates/connect.php:461, templates/forms/license-activation.php:27, templates/account/partials/addon.php:321
684
- msgid "Activate License"
685
- msgstr ""
686
-
687
- #: includes/class-freemius.php:23379, templates/account.php:652, templates/account.php:707, templates/account/partials/addon.php:322, templates/account/partials/site.php:271
688
- msgid "Change License"
689
- msgstr ""
690
-
691
- #: includes/class-freemius.php:23500, templates/account/partials/site.php:169
692
- msgid "Opt Out"
693
- msgstr ""
694
-
695
- #: includes/class-freemius.php:23502, includes/class-freemius.php:23508, templates/account/partials/site.php:49, templates/account/partials/site.php:169
696
- msgid "Opt In"
697
- msgstr ""
698
-
699
- #: includes/class-freemius.php:23738
700
- msgid " The paid version of %1$s is already installed. Please activate it to start benefiting the %2$s features. %3$s"
701
- msgstr ""
702
-
703
- #: includes/class-freemius.php:23746
704
- msgid "Activate %s features"
705
- msgstr ""
706
-
707
- #: includes/class-freemius.php:23759
708
- msgid "Please follow these steps to complete the upgrade"
709
- msgstr ""
710
-
711
- #: includes/class-freemius.php:23763
712
- msgid "Download the latest %s version"
713
- msgstr ""
714
-
715
- #: includes/class-freemius.php:23767
716
- msgid "Upload and activate the downloaded version"
717
- msgstr ""
718
-
719
- #: includes/class-freemius.php:23769
720
- msgid "How to upload and activate?"
721
- msgstr ""
722
-
723
- #: includes/class-freemius.php:23903
724
- msgid "%sClick here%s to choose the sites where you'd like to activate the license on."
725
- msgstr ""
726
-
727
- #: includes/class-freemius.php:24072
728
- msgid "Auto installation only works for opted-in users."
729
- msgstr ""
730
-
731
- #: includes/class-freemius.php:24082, includes/class-freemius.php:24115, includes/class-fs-plugin-updater.php:1261, includes/class-fs-plugin-updater.php:1275
732
- msgid "Invalid module ID."
733
- msgstr ""
734
-
735
- #: includes/class-freemius.php:24091, includes/class-fs-plugin-updater.php:1297
736
- msgid "Premium version already active."
737
- msgstr ""
738
-
739
- #: includes/class-freemius.php:24098
740
- msgid "You do not have a valid license to access the premium version."
741
- msgstr ""
742
-
743
- #: includes/class-freemius.php:24105
744
- msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
745
- msgstr ""
746
-
747
- #: includes/class-freemius.php:24123, includes/class-fs-plugin-updater.php:1296
748
- msgid "Premium add-on version already installed."
749
- msgstr ""
750
-
751
- #: includes/class-freemius.php:24473
752
- msgid "View paid features"
753
- msgstr ""
754
-
755
- #: includes/class-freemius.php:24795
756
- msgid "Thank you so much for using %s and its add-ons!"
757
- msgstr ""
758
-
759
- #: includes/class-freemius.php:24796
760
- msgid "Thank you so much for using %s!"
761
- msgstr ""
762
-
763
- #: includes/class-freemius.php:24802
764
- msgid "You've already opted-in to our usage-tracking, which helps us keep improving the %s."
765
- msgstr ""
766
-
767
- #: includes/class-freemius.php:24806
768
- msgid "Thank you so much for using our products!"
769
- msgstr ""
770
-
771
- #: includes/class-freemius.php:24807
772
- msgid "You've already opted-in to our usage-tracking, which helps us keep improving them."
773
- msgstr ""
774
-
775
- #: includes/class-freemius.php:24826
776
- msgid "%s and its add-ons"
777
- msgstr ""
778
-
779
- #: includes/class-freemius.php:24835
780
- msgid "Products"
781
- msgstr ""
782
-
783
- #: includes/class-freemius.php:24842, templates/connect.php:275
784
- msgid "Yes"
785
- msgstr ""
786
-
787
- #: includes/class-freemius.php:24843, templates/connect.php:276
788
- msgid "send me security & feature updates, educational content and offers."
789
- msgstr ""
790
-
791
- #: includes/class-freemius.php:24844, templates/connect.php:281
792
- msgid "No"
793
- msgstr ""
794
-
795
- #: includes/class-freemius.php:24846, templates/connect.php:283
796
- msgid "do %sNOT%s send me security & feature updates, educational content and offers."
797
- msgstr ""
798
-
799
- #: includes/class-freemius.php:24856
800
- msgid "Due to the new %sEU General Data Protection Regulation (GDPR)%s compliance requirements it is required that you provide your explicit consent, again, confirming that you are onboard :-)"
801
- msgstr ""
802
-
803
- #: includes/class-freemius.php:24858, templates/connect.php:290
804
- msgid "Please let us know if you'd like us to contact you for security & feature updates, educational content, and occasional offers:"
805
- msgstr ""
806
-
807
- #: includes/class-freemius.php:25140
808
- msgid "License key is empty."
809
  msgstr ""
810
 
811
  #: includes/class-fs-plugin-updater.php:206, templates/forms/premium-versions-upgrade-handler.php:57
@@ -816,31 +53,23 @@ msgstr ""
816
  msgid "Buy license"
817
  msgstr ""
818
 
819
- #: includes/class-fs-plugin-updater.php:327, includes/class-fs-plugin-updater.php:360
820
  msgid "There is a %s of %s available."
821
  msgstr ""
822
 
823
- #: includes/class-fs-plugin-updater.php:329, includes/class-fs-plugin-updater.php:365
824
  msgid "new Beta version"
825
  msgstr ""
826
 
827
- #: includes/class-fs-plugin-updater.php:330, includes/class-fs-plugin-updater.php:366
828
  msgid "new version"
829
  msgstr ""
830
 
831
- #: includes/class-fs-plugin-updater.php:389
832
  msgid "Important Upgrade Notice:"
833
  msgstr ""
834
 
835
- #: includes/class-fs-plugin-updater.php:1326
836
- msgid "Installing plugin: %s"
837
- msgstr ""
838
-
839
- #: includes/class-fs-plugin-updater.php:1367
840
- msgid "Unable to connect to the filesystem. Please confirm your credentials."
841
- msgstr ""
842
-
843
- #: includes/class-fs-plugin-updater.php:1549
844
  msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
845
  msgstr ""
846
 
@@ -848,29 +77,30 @@ msgstr ""
848
  msgid "Purchase More"
849
  msgstr ""
850
 
851
- #: includes/fs-plugin-info-dialog.php:542, templates/account/partials/addon.php:385
852
  msgctxt "verb"
853
  msgid "Purchase"
854
  msgstr ""
855
 
 
856
  #: includes/fs-plugin-info-dialog.php:546
857
  msgid "Start my free %s"
858
  msgstr ""
859
 
860
- #: includes/fs-plugin-info-dialog.php:744
861
- msgid "Install Free Version Update Now"
862
  msgstr ""
863
 
864
- #: includes/fs-plugin-info-dialog.php:745, templates/account.php:641
865
- msgid "Install Update Now"
866
  msgstr ""
867
 
868
- #: includes/fs-plugin-info-dialog.php:754
869
- msgid "Install Free Version Now"
870
  msgstr ""
871
 
872
- #: includes/fs-plugin-info-dialog.php:755, templates/add-ons.php:323, templates/auto-installation.php:111, templates/account/partials/addon.php:365, templates/account/partials/addon.php:418
873
- msgid "Install Now"
874
  msgstr ""
875
 
876
  #: includes/fs-plugin-info-dialog.php:771
@@ -878,20 +108,20 @@ msgctxt "as download latest version"
878
  msgid "Download Latest Free Version"
879
  msgstr ""
880
 
881
- #: includes/fs-plugin-info-dialog.php:772, templates/account.php:101, templates/add-ons.php:37, templates/account/partials/addon.php:25
882
  msgctxt "as download latest version"
883
  msgid "Download Latest"
884
  msgstr ""
885
 
886
- #: includes/fs-plugin-info-dialog.php:787, templates/add-ons.php:329, templates/account/partials/addon.php:356, templates/account/partials/addon.php:412
887
  msgid "Activate this add-on"
888
  msgstr ""
889
 
890
- #: includes/fs-plugin-info-dialog.php:789, templates/connect.php:458
891
  msgid "Activate Free Version"
892
  msgstr ""
893
 
894
- #: includes/fs-plugin-info-dialog.php:790, templates/account.php:125, templates/add-ons.php:330, templates/account/partials/addon.php:48
895
  msgid "Activate"
896
  msgstr ""
897
 
@@ -1004,6 +234,7 @@ msgctxt "noun"
1004
  msgid "Price"
1005
  msgstr ""
1006
 
 
1007
  #: includes/fs-plugin-info-dialog.php:1290
1008
  msgid "Save %s"
1009
  msgstr ""
@@ -1020,7 +251,7 @@ msgstr ""
1020
  msgid "Details"
1021
  msgstr ""
1022
 
1023
- #: includes/fs-plugin-info-dialog.php:1318, templates/account.php:112, templates/debug.php:201, templates/debug.php:238, templates/debug.php:455, templates/account/partials/addon.php:36
1024
  msgctxt "product version"
1025
  msgid "Version"
1026
  msgstr ""
@@ -1034,7 +265,8 @@ msgstr ""
1034
  msgid "Last Updated"
1035
  msgstr ""
1036
 
1037
- #: includes/fs-plugin-info-dialog.php:1337, templates/account.php:527
 
1038
  msgctxt "x-ago"
1039
  msgid "%s ago"
1040
  msgstr ""
@@ -1055,10 +287,12 @@ msgstr ""
1055
  msgid "Downloaded"
1056
  msgstr ""
1057
 
 
1058
  #: includes/fs-plugin-info-dialog.php:1366
1059
  msgid "%s time"
1060
  msgstr ""
1061
 
 
1062
  #: includes/fs-plugin-info-dialog.php:1368
1063
  msgid "%s times"
1064
  msgstr ""
@@ -1083,22 +317,27 @@ msgstr ""
1083
  msgid "based on %s"
1084
  msgstr ""
1085
 
 
1086
  #: includes/fs-plugin-info-dialog.php:1415
1087
  msgid "%s rating"
1088
  msgstr ""
1089
 
 
1090
  #: includes/fs-plugin-info-dialog.php:1417
1091
  msgid "%s ratings"
1092
  msgstr ""
1093
 
 
1094
  #: includes/fs-plugin-info-dialog.php:1432
1095
  msgid "%s star"
1096
  msgstr ""
1097
 
 
1098
  #: includes/fs-plugin-info-dialog.php:1434
1099
  msgid "%s stars"
1100
  msgstr ""
1101
 
 
1102
  #: includes/fs-plugin-info-dialog.php:1446
1103
  msgid "Click to see reviews that provided a rating of %s"
1104
  msgstr ""
@@ -1107,18 +346,18 @@ msgstr ""
1107
  msgid "Contributors"
1108
  msgstr ""
1109
 
1110
- #: includes/fs-plugin-info-dialog.php:1489, includes/fs-plugin-info-dialog.php:1491
1111
  msgid "Warning"
1112
  msgstr ""
1113
 
1114
- #: includes/fs-plugin-info-dialog.php:1489
1115
- msgid "This plugin has not been tested with your current version of WordPress."
1116
- msgstr ""
1117
-
1118
  #: includes/fs-plugin-info-dialog.php:1491
1119
  msgid "This plugin has not been marked as compatible with your version of WordPress."
1120
  msgstr ""
1121
 
 
 
 
 
1122
  #: includes/fs-plugin-info-dialog.php:1510
1123
  msgid "Paid add-on must be deployed to Freemius."
1124
  msgstr ""
@@ -1127,14 +366,6 @@ msgstr ""
1127
  msgid "Add-on must be deployed to WordPress.org or Freemius."
1128
  msgstr ""
1129
 
1130
- #: includes/fs-plugin-info-dialog.php:1532
1131
- msgid "Newer Version (%s) Installed"
1132
- msgstr ""
1133
-
1134
- #: includes/fs-plugin-info-dialog.php:1533
1135
- msgid "Newer Free Version (%s) Installed"
1136
- msgstr ""
1137
-
1138
  #: includes/fs-plugin-info-dialog.php:1540
1139
  msgid "Latest Version Installed"
1140
  msgstr ""
@@ -1143,293 +374,330 @@ msgstr ""
1143
  msgid "Latest Free Version Installed"
1144
  msgstr ""
1145
 
1146
- #: templates/account.php:102, templates/forms/subscription-cancellation.php:96, templates/account/partials/addon.php:26, templates/account/partials/site.php:311
 
 
 
 
 
 
 
 
1147
  msgid "Downgrading your plan"
1148
  msgstr ""
1149
 
1150
- #: templates/account.php:103, templates/forms/subscription-cancellation.php:97, templates/account/partials/addon.php:27, templates/account/partials/site.php:312
1151
  msgid "Cancelling the subscription"
1152
  msgstr ""
1153
 
1154
  #. translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription'
1155
- #: templates/account.php:105, templates/forms/subscription-cancellation.php:99, templates/account/partials/site.php:314
1156
  msgid "%1$s will immediately stop all future recurring payments and your %2$s plan license will expire in %3$s."
1157
  msgstr ""
1158
 
1159
- #: templates/account.php:106, templates/forms/subscription-cancellation.php:100, templates/account/partials/addon.php:30, templates/account/partials/site.php:315
1160
  msgid "Please note that we will not be able to grandfather outdated pricing for renewals/new subscriptions after a cancellation. If you choose to renew the subscription manually in the future, after a price increase, which typically occurs once a year, you will be charged the updated price."
1161
  msgstr ""
1162
 
1163
- #: templates/account.php:107, templates/forms/subscription-cancellation.php:106, templates/account/partials/addon.php:31
1164
  msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
1165
  msgstr ""
1166
 
1167
- #: templates/account.php:108, templates/forms/subscription-cancellation.php:101, templates/account/partials/addon.php:32, templates/account/partials/site.php:316
1168
  msgid "You can still enjoy all %s features but you will not have access to %s security & feature updates, nor support."
1169
  msgstr ""
1170
 
1171
- #: templates/account.php:109, templates/forms/subscription-cancellation.php:102, templates/account/partials/addon.php:33, templates/account/partials/site.php:317
1172
  msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
1173
  msgstr ""
1174
 
1175
  #. translators: %s: Plan title (e.g. "Professional")
1176
- #: templates/account.php:111, templates/account/partials/activate-license-button.php:31, templates/account/partials/addon.php:35
1177
  msgid "Activate %s Plan"
1178
  msgstr ""
1179
 
1180
  #. translators: %s: Time period (e.g. Auto renews in "2 months")
1181
- #: templates/account.php:114, templates/account/partials/addon.php:38, templates/account/partials/site.php:291
1182
  msgid "Auto renews in %s"
1183
  msgstr ""
1184
 
1185
  #. translators: %s: Time period (e.g. Expires in "2 months")
1186
- #: templates/account.php:116, templates/account/partials/addon.php:40, templates/account/partials/site.php:293
1187
  msgid "Expires in %s"
1188
  msgstr ""
1189
 
1190
- #: templates/account.php:117
1191
  msgctxt "as synchronize license"
1192
  msgid "Sync License"
1193
  msgstr ""
1194
 
1195
- #: templates/account.php:118, templates/account/partials/addon.php:41
1196
  msgid "Cancel Trial"
1197
  msgstr ""
1198
 
1199
- #: templates/account.php:119, templates/account/partials/addon.php:42
1200
  msgid "Change Plan"
1201
  msgstr ""
1202
 
1203
- #: templates/account.php:120, templates/account/partials/addon.php:43
1204
  msgctxt "verb"
1205
  msgid "Upgrade"
1206
  msgstr ""
1207
 
1208
- #: templates/account.php:122, templates/account/partials/addon.php:45, templates/account/partials/site.php:318
 
 
 
 
1209
  msgctxt "verb"
1210
  msgid "Downgrade"
1211
  msgstr ""
1212
 
1213
- #: templates/account.php:124, templates/add-ons.php:246, templates/plugin-info/features.php:72, templates/account/partials/addon.php:47, templates/account/partials/site.php:33
 
 
 
 
 
1214
  msgid "Free"
1215
  msgstr ""
1216
 
1217
- #: templates/account.php:126, templates/debug.php:371, includes/customizer/class-fs-customizer-upsell-control.php:110, templates/account/partials/addon.php:49
1218
  msgctxt "as product pricing plan"
1219
  msgid "Plan"
1220
  msgstr ""
1221
 
1222
- #: templates/account.php:127
1223
  msgid "Bundle Plan"
1224
  msgstr ""
1225
 
1226
- #: templates/account.php:250
 
 
 
 
1227
  msgid "Free Trial"
1228
  msgstr ""
1229
 
1230
- #: templates/account.php:261
1231
  msgid "Account Details"
1232
  msgstr ""
1233
 
1234
- #: templates/account.php:268, templates/forms/data-debug-mode.php:33
1235
- msgid "Start Debug"
1236
  msgstr ""
1237
 
1238
- #: templates/account.php:270
1239
- msgid "Stop Debug"
1240
  msgstr ""
1241
 
1242
- #: templates/account.php:277
1243
  msgid "Billing & Invoices"
1244
  msgstr ""
1245
 
1246
- #: templates/account.php:288
1247
- msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
1248
  msgstr ""
1249
 
1250
- #: templates/account.php:290
1251
- msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
1252
  msgstr ""
1253
 
1254
- #: templates/account.php:293
1255
  msgid "Delete Account"
1256
  msgstr ""
1257
 
1258
- #: templates/account.php:305, templates/account/partials/addon.php:231, templates/account/partials/deactivate-license-button.php:35
1259
  msgid "Deactivate License"
1260
  msgstr ""
1261
 
1262
- #: templates/account.php:328, templates/forms/subscription-cancellation.php:125
1263
  msgid "Are you sure you want to proceed?"
1264
  msgstr ""
1265
 
1266
- #: templates/account.php:328, templates/account/partials/addon.php:255
1267
  msgid "Cancel Subscription"
1268
  msgstr ""
1269
 
1270
- #: templates/account.php:357, templates/account/partials/addon.php:340
1271
  msgctxt "as synchronize"
1272
  msgid "Sync"
1273
  msgstr ""
1274
 
1275
- #: templates/account.php:372, templates/debug.php:505
1276
  msgid "Name"
1277
  msgstr ""
1278
 
1279
- #: templates/account.php:378, templates/debug.php:506
1280
  msgid "Email"
1281
  msgstr ""
1282
 
1283
- #: templates/account.php:385, templates/debug.php:369, templates/debug.php:555
1284
  msgid "User ID"
1285
  msgstr ""
1286
 
1287
- #: templates/account.php:403, templates/account.php:721, templates/account.php:754, templates/debug.php:236, templates/debug.php:363, templates/debug.php:452, templates/debug.php:504, templates/debug.php:553, templates/debug.php:632, templates/account/payments.php:35, templates/debug/logger.php:21
 
 
 
 
 
 
 
 
1288
  msgid "ID"
1289
  msgstr ""
1290
 
1291
- #: templates/account.php:410
1292
  msgid "Site ID"
1293
  msgstr ""
1294
 
1295
- #: templates/account.php:413
1296
  msgid "No ID"
1297
  msgstr ""
1298
 
1299
- #: templates/account.php:418, templates/debug.php:243, templates/debug.php:372, templates/debug.php:456, templates/debug.php:508, templates/account/partials/site.php:227
1300
  msgid "Public Key"
1301
  msgstr ""
1302
 
1303
- #: templates/account.php:424, templates/debug.php:373, templates/debug.php:457, templates/debug.php:509, templates/account/partials/site.php:239
1304
  msgid "Secret Key"
1305
  msgstr ""
1306
 
1307
- #: templates/account.php:427
1308
  msgctxt "as secret encryption key missing"
1309
  msgid "No Secret"
1310
  msgstr ""
1311
 
1312
- #: templates/account.php:454, templates/account/partials/site.php:120, templates/account/partials/site.php:122
1313
- msgid "Trial"
1314
  msgstr ""
1315
 
1316
- #: templates/account.php:481, templates/debug.php:561, templates/account/partials/site.php:260
1317
- msgid "License Key"
1318
  msgstr ""
1319
 
1320
- #: templates/account.php:512
1321
  msgid "Join the Beta program"
1322
  msgstr ""
1323
 
1324
- #: templates/account.php:518
1325
  msgid "not verified"
1326
  msgstr ""
1327
 
1328
- #: templates/account.php:527, templates/account/partials/addon.php:190
1329
- msgid "Expired"
1330
  msgstr ""
1331
 
1332
- #: templates/account.php:587
1333
  msgid "Premium version"
1334
  msgstr ""
1335
 
1336
- #: templates/account.php:589
1337
- msgid "Free version"
 
 
 
 
1338
  msgstr ""
1339
 
1340
- #: templates/account.php:601
1341
  msgid "Verify Email"
1342
  msgstr ""
1343
 
1344
- #: templates/account.php:615
1345
- msgid "Download %s Version"
1346
  msgstr ""
1347
 
1348
- #: templates/account.php:631
1349
- msgid "Download Paid Version"
1350
  msgstr ""
1351
 
1352
- #: templates/account.php:649, templates/account.php:892, templates/account/partials/site.php:248, templates/account/partials/site.php:270
 
 
 
 
 
1353
  msgctxt "verb"
1354
  msgid "Show"
1355
  msgstr ""
1356
 
1357
- #: templates/account.php:664
1358
- msgid "What is your %s?"
1359
  msgstr ""
1360
 
1361
- #: templates/account.php:672, templates/account/billing.php:21
1362
- msgctxt "verb"
1363
- msgid "Edit"
1364
  msgstr ""
1365
 
1366
- #: templates/account.php:676, templates/forms/user-change.php:27
1367
- msgid "Change User"
1368
  msgstr ""
1369
 
1370
- #: templates/account.php:700
1371
  msgid "Sites"
1372
  msgstr ""
1373
 
1374
- #: templates/account.php:713
1375
  msgid "Search by address"
1376
  msgstr ""
1377
 
1378
- #: templates/account.php:722, templates/debug.php:366
1379
  msgid "Address"
1380
  msgstr ""
1381
 
1382
- #: templates/account.php:723
1383
  msgid "License"
1384
  msgstr ""
1385
 
1386
- #: templates/account.php:724
1387
  msgid "Plan"
1388
  msgstr ""
1389
 
1390
- #: templates/account.php:757
1391
  msgctxt "as software license"
1392
  msgid "License"
1393
  msgstr ""
1394
 
1395
- #: templates/account.php:886
1396
  msgctxt "verb"
1397
  msgid "Hide"
1398
  msgstr ""
1399
 
1400
- #: templates/account.php:908, templates/forms/data-debug-mode.php:31
1401
  msgid "Processing"
1402
  msgstr ""
1403
 
1404
- #: templates/account.php:911
1405
  msgid "Get updates for bleeding edge Beta versions of %s."
1406
  msgstr ""
1407
 
1408
- #: templates/account.php:969
1409
  msgid "Cancelling %s"
1410
  msgstr ""
1411
 
1412
- #: templates/account.php:969, templates/account.php:986, templates/forms/subscription-cancellation.php:27, templates/forms/deactivation/form.php:133
1413
  msgid "trial"
1414
  msgstr ""
1415
 
1416
- #: templates/account.php:984, templates/forms/deactivation/form.php:150
1417
  msgid "Cancelling %s..."
1418
  msgstr ""
1419
 
1420
- #: templates/account.php:987, templates/forms/subscription-cancellation.php:28, templates/forms/deactivation/form.php:134
1421
  msgid "subscription"
1422
  msgstr ""
1423
 
1424
- #: templates/account.php:1001
1425
  msgid "Deactivating your license will block all premium features, but will enable activating the license on another site. Are you sure you want to proceed?"
1426
  msgstr ""
1427
 
1428
- #: templates/account.php:1075
1429
  msgid "Disabling white-label mode"
1430
  msgstr ""
1431
 
1432
- #: templates/account.php:1076
1433
  msgid "Enabling white-label mode"
1434
  msgstr ""
1435
 
@@ -1441,10 +709,19 @@ msgstr ""
1441
  msgid "Add Ons for %s"
1442
  msgstr ""
1443
 
 
 
 
 
 
1444
  #: templates/add-ons.php:58
1445
  msgid "We couldn't load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
1446
  msgstr ""
1447
 
 
 
 
 
1448
  #: templates/add-ons.php:229
1449
  msgctxt "active add-on"
1450
  msgid "Active"
@@ -1455,11 +732,16 @@ msgctxt "installed add-on"
1455
  msgid "Installed"
1456
  msgstr ""
1457
 
1458
- #: templates/admin-notice.php:13, templates/forms/license-activation.php:222, templates/forms/resend-key.php:77
1459
  msgctxt "as close a window"
1460
  msgid "Dismiss"
1461
  msgstr ""
1462
 
 
 
 
 
 
1463
  #: templates/auto-installation.php:45
1464
  msgid "%s sec"
1465
  msgstr ""
@@ -1480,215 +762,147 @@ msgstr ""
1480
  msgid "Cancel Installation"
1481
  msgstr ""
1482
 
1483
- #: templates/checkout.php:180
1484
- msgid "Checkout"
1485
- msgstr ""
1486
-
1487
- #: templates/checkout.php:180
1488
- msgid "PCI compliant"
1489
- msgstr ""
1490
-
1491
  #. translators: %s: name (e.g. Hey John,)
1492
- #: templates/connect.php:112
1493
  msgctxt "greeting"
1494
  msgid "Hey %s,"
1495
  msgstr ""
1496
 
1497
- #: templates/connect.php:162
1498
  msgid "Allow & Continue"
1499
  msgstr ""
1500
 
1501
- #: templates/connect.php:166
1502
- msgid "Re-send activation email"
1503
  msgstr ""
1504
 
1505
- #: templates/connect.php:170
1506
- msgid "Thanks %s!"
 
 
 
 
1507
  msgstr ""
1508
 
1509
- #: templates/connect.php:180, templates/forms/license-activation.php:46
1510
  msgid "Agree & Activate License"
1511
  msgstr ""
1512
 
1513
- #: templates/connect.php:184
1514
  msgid "Welcome to %s! To get started, please enter your license key:"
1515
  msgstr ""
1516
 
1517
- #: templates/connect.php:191
1518
- msgid "Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s."
1519
  msgstr ""
1520
 
1521
- #: templates/connect.php:192
1522
- msgid "Never miss an important update - opt in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
1523
  msgstr ""
1524
 
1525
- #: templates/connect.php:198
1526
- msgid "Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s. If you skip this, that's okay! %1$s will still work just fine."
1527
  msgstr ""
1528
 
1529
- #: templates/connect.php:199
1530
- msgid "Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s. If you skip this, that's okay! %1$s will still work just fine."
1531
  msgstr ""
1532
 
1533
- #: templates/connect.php:233
1534
  msgid "We're excited to introduce the Freemius network-level integration."
1535
  msgstr ""
1536
 
1537
- #: templates/connect.php:236
 
 
 
 
1538
  msgid "During the update process we detected %d site(s) that are still pending license activation."
1539
  msgstr ""
1540
 
1541
- #: templates/connect.php:238
1542
  msgid "If you'd like to use the %s on those sites, please enter your license key below and click the activation button."
1543
  msgstr ""
1544
 
1545
- #: templates/connect.php:240
1546
  msgid "%s's paid features"
1547
  msgstr ""
1548
 
1549
- #: templates/connect.php:245
1550
  msgid "Alternatively, you can skip it for now and activate the license later, in your %s's network-level Account page."
1551
  msgstr ""
1552
 
1553
- #: templates/connect.php:247
1554
- msgid "During the update process we detected %s site(s) in the network that are still pending your attention."
1555
- msgstr ""
1556
-
1557
- #: templates/connect.php:256, templates/forms/data-debug-mode.php:35, templates/forms/license-activation.php:49
1558
  msgid "License key"
1559
  msgstr ""
1560
 
1561
- #: templates/connect.php:259, templates/forms/license-activation.php:22
1562
  msgid "Can't find your license key?"
1563
  msgstr ""
1564
 
1565
- #: templates/connect.php:318, templates/connect.php:700, templates/forms/deactivation/retry-skip.php:20
 
 
 
 
1566
  msgctxt "verb"
1567
  msgid "Skip"
1568
  msgstr ""
1569
 
1570
- #: templates/connect.php:321
1571
  msgid "Delegate to Site Admins"
1572
  msgstr ""
1573
 
1574
- #: templates/connect.php:321
1575
  msgid "If you click it, this decision will be delegated to the sites administrators."
1576
  msgstr ""
1577
 
1578
- #: templates/connect.php:346
1579
  msgid "License issues?"
1580
  msgstr ""
1581
 
1582
- #: templates/connect.php:362
1583
- msgid "Your Profile Overview"
1584
- msgstr ""
1585
-
1586
- #: templates/connect.php:363
1587
- msgid "Name and email address"
1588
- msgstr ""
1589
-
1590
- #: templates/connect.php:370
1591
- msgid "So you can manage and control your license remotely from the User Dashboard."
1592
- msgstr ""
1593
-
1594
- #: templates/connect.php:371
1595
- msgid "Your Site Overview"
1596
- msgstr ""
1597
-
1598
- #: templates/connect.php:372
1599
- msgid "Site URL, WP version, PHP info"
1600
- msgstr ""
1601
-
1602
- #: templates/connect.php:379
1603
- msgid "Admin Notices"
1604
- msgstr ""
1605
-
1606
- #: templates/connect.php:380, templates/connect.php:398
1607
- msgid "Updates, announcements, marketing, no spam"
1608
- msgstr ""
1609
-
1610
- #: templates/connect.php:387
1611
- msgid "So you can reuse the license when the %s is no longer active."
1612
- msgstr ""
1613
-
1614
- #: templates/connect.php:388
1615
- msgid "Current %s Status"
1616
- msgstr ""
1617
-
1618
- #: templates/connect.php:389
1619
- msgid "Active, deactivated, or uninstalled"
1620
- msgstr ""
1621
-
1622
- #: templates/connect.php:397
1623
- msgid "Newsletter"
1624
- msgstr ""
1625
-
1626
- #: templates/connect.php:405
1627
- msgid "Plugins & Themes"
1628
- msgstr ""
1629
-
1630
- #: templates/connect.php:405
1631
- msgid "optional"
1632
- msgstr ""
1633
-
1634
- #: templates/connect.php:406
1635
- msgid "To help us troubleshoot any potential issues that may arise from other plugin or theme conflicts."
1636
- msgstr ""
1637
-
1638
- #: templates/connect.php:407
1639
- msgid "Title, slug, version, and is active"
1640
  msgstr ""
1641
 
1642
- #: templates/connect.php:424
1643
  msgid "The %1$s will periodically send %2$s to %3$s for security & feature updates delivery, and license management."
1644
  msgstr ""
1645
 
1646
- #: templates/connect.php:426
1647
  msgid "diagnostic data"
1648
  msgstr ""
1649
 
1650
- #: templates/connect.php:427
1651
- msgid "Freemius is our licensing and software updates engine"
1652
- msgstr ""
1653
-
1654
- #: templates/connect.php:430
1655
- msgid "What permissions are being granted?"
1656
  msgstr ""
1657
 
1658
- #: templates/connect.php:457
1659
  msgid "Don't have a license key?"
1660
  msgstr ""
1661
 
1662
- #: templates/connect.php:460
1663
- msgid "Have a license key?"
1664
- msgstr ""
1665
-
1666
- #: templates/connect.php:468
1667
  msgid "Privacy Policy"
1668
  msgstr ""
1669
 
1670
- #: templates/connect.php:470
1671
  msgid "License Agreement"
1672
  msgstr ""
1673
 
1674
- #: templates/connect.php:470
1675
  msgid "Terms of Service"
1676
  msgstr ""
1677
 
1678
- #: templates/connect.php:866
1679
  msgctxt "as in the process of sending an email"
1680
  msgid "Sending email"
1681
  msgstr ""
1682
 
1683
- #: templates/connect.php:867
1684
  msgctxt "as activating plugin"
1685
  msgid "Activating"
1686
  msgstr ""
1687
 
1688
- #: templates/contact.php:78
1689
- msgid "Contact"
1690
- msgstr ""
1691
-
1692
  #: templates/debug.php:17
1693
  msgctxt "as turned off"
1694
  msgid "Off"
@@ -1708,237 +922,234 @@ msgctxt "as code debugging"
1708
  msgid "Debugging"
1709
  msgstr ""
1710
 
1711
- #: templates/debug.php:52, templates/debug.php:248, templates/debug.php:374, templates/debug.php:510
1712
  msgid "Actions"
1713
  msgstr ""
1714
 
1715
- #: templates/debug.php:62
1716
  msgid "Are you sure you want to delete all Freemius data?"
1717
  msgstr ""
1718
 
1719
- #: templates/debug.php:62
1720
  msgid "Delete All Accounts"
1721
  msgstr ""
1722
 
1723
- #: templates/debug.php:69
1724
  msgid "Clear API Cache"
1725
  msgstr ""
1726
 
1727
- #: templates/debug.php:77
1728
  msgid "Clear Updates Transients"
1729
  msgstr ""
1730
 
1731
- #: templates/debug.php:84
 
 
 
 
1732
  msgid "Sync Data From Server"
1733
  msgstr ""
1734
 
1735
- #: templates/debug.php:93
1736
  msgid "Migrate Options to Network"
1737
  msgstr ""
1738
 
1739
- #: templates/debug.php:98
1740
  msgid "Load DB Option"
1741
  msgstr ""
1742
 
1743
- #: templates/debug.php:101
1744
  msgid "Set DB Option"
1745
  msgstr ""
1746
 
1747
- #: templates/debug.php:180
1748
  msgid "Key"
1749
  msgstr ""
1750
 
1751
- #: templates/debug.php:181
1752
  msgid "Value"
1753
  msgstr ""
1754
 
1755
- #: templates/debug.php:197
1756
  msgctxt "as software development kit versions"
1757
  msgid "SDK Versions"
1758
  msgstr ""
1759
 
1760
- #: templates/debug.php:202
1761
  msgid "SDK Path"
1762
  msgstr ""
1763
 
1764
- #: templates/debug.php:203, templates/debug.php:242
1765
  msgid "Module Path"
1766
  msgstr ""
1767
 
1768
- #: templates/debug.php:204
1769
  msgid "Is Active"
1770
  msgstr ""
1771
 
1772
- #: templates/debug.php:232, templates/debug/plugins-themes-sync.php:35
1773
  msgid "Plugins"
1774
  msgstr ""
1775
 
1776
- #: templates/debug.php:232, templates/debug/plugins-themes-sync.php:56
1777
  msgid "Themes"
1778
  msgstr ""
1779
 
1780
- #: templates/debug.php:237, templates/debug.php:368, templates/debug.php:454, templates/debug/scheduled-crons.php:80
1781
  msgid "Slug"
1782
  msgstr ""
1783
 
1784
- #: templates/debug.php:239, templates/debug.php:453
1785
  msgid "Title"
1786
  msgstr ""
1787
 
1788
- #: templates/debug.php:240
1789
  msgctxt "as application program interface"
1790
  msgid "API"
1791
  msgstr ""
1792
 
1793
- #: templates/debug.php:241
1794
  msgid "Freemius State"
1795
  msgstr ""
1796
 
1797
- #: templates/debug.php:245
1798
  msgid "Network Blog"
1799
  msgstr ""
1800
 
1801
- #: templates/debug.php:246
1802
  msgid "Network User"
1803
  msgstr ""
1804
 
1805
- #: templates/debug.php:283
1806
  msgctxt "as connection was successful"
1807
  msgid "Connected"
1808
  msgstr ""
1809
 
1810
- #: templates/debug.php:284
1811
  msgctxt "as connection blocked"
1812
  msgid "Blocked"
1813
  msgstr ""
1814
 
1815
- #: templates/debug.php:320
1816
  msgid "Simulate Trial Promotion"
1817
  msgstr ""
1818
 
1819
- #: templates/debug.php:332
1820
  msgid "Simulate Network Upgrade"
1821
  msgstr ""
1822
 
1823
- #: templates/debug.php:357
 
1824
  msgid "%s Installs"
1825
  msgstr ""
1826
 
1827
- #: templates/debug.php:359
1828
  msgctxt "like websites"
1829
  msgid "Sites"
1830
  msgstr ""
1831
 
1832
- #: templates/debug.php:365, templates/account/partials/site.php:156
1833
  msgid "Blog ID"
1834
  msgstr ""
1835
 
1836
- #: templates/debug.php:370
1837
  msgid "License ID"
1838
  msgstr ""
1839
 
1840
- #: templates/debug.php:434, templates/debug.php:533, templates/account/partials/addon.php:435
1841
  msgctxt "verb"
1842
  msgid "Delete"
1843
  msgstr ""
1844
 
1845
- #: templates/debug.php:448
1846
  msgid "Add Ons of module %s"
1847
  msgstr ""
1848
 
1849
- #: templates/debug.php:500
1850
  msgid "Users"
1851
  msgstr ""
1852
 
1853
- #: templates/debug.php:507
1854
  msgid "Verified"
1855
  msgstr ""
1856
 
1857
- #: templates/debug.php:549
1858
  msgid "%s Licenses"
1859
  msgstr ""
1860
 
1861
- #: templates/debug.php:554
1862
  msgid "Plugin ID"
1863
  msgstr ""
1864
 
1865
- #: templates/debug.php:556
1866
  msgid "Plan ID"
1867
  msgstr ""
1868
 
1869
- #: templates/debug.php:557
1870
  msgid "Quota"
1871
  msgstr ""
1872
 
1873
- #: templates/debug.php:558
1874
  msgid "Activated"
1875
  msgstr ""
1876
 
1877
- #: templates/debug.php:559
1878
  msgid "Blocking"
1879
  msgstr ""
1880
 
1881
- #: templates/debug.php:560, templates/debug.php:631, templates/debug/logger.php:22
1882
  msgid "Type"
1883
  msgstr ""
1884
 
1885
- #: templates/debug.php:562
1886
  msgctxt "as expiration date"
1887
  msgid "Expiration"
1888
  msgstr ""
1889
 
1890
- #: templates/debug.php:590
1891
  msgid "Debug Log"
1892
  msgstr ""
1893
 
1894
- #: templates/debug.php:594
1895
  msgid "All Types"
1896
  msgstr ""
1897
 
1898
- #: templates/debug.php:601
1899
  msgid "All Requests"
1900
  msgstr ""
1901
 
1902
- #: templates/debug.php:606, templates/debug.php:635, templates/debug/logger.php:25
1903
  msgid "File"
1904
  msgstr ""
1905
 
1906
- #: templates/debug.php:607, templates/debug.php:633, templates/debug/logger.php:23
1907
  msgid "Function"
1908
  msgstr ""
1909
 
1910
- #: templates/debug.php:608
1911
  msgid "Process ID"
1912
  msgstr ""
1913
 
1914
- #: templates/debug.php:609
1915
  msgid "Logger"
1916
  msgstr ""
1917
 
1918
- #: templates/debug.php:610, templates/debug.php:634, templates/debug/logger.php:24
1919
  msgid "Message"
1920
  msgstr ""
1921
 
1922
- #: templates/debug.php:612
1923
  msgid "Filter"
1924
  msgstr ""
1925
 
1926
- #: templates/debug.php:620
1927
  msgid "Download"
1928
  msgstr ""
1929
 
1930
- #: templates/debug.php:636, templates/debug/logger.php:26
1931
  msgid "Timestamp"
1932
  msgstr ""
1933
 
1934
- #: templates/secure-https-header.php:28
1935
- msgid "Secure HTTPS %s page, running from an external domain"
1936
- msgstr ""
1937
-
1938
- #: includes/customizer/class-fs-customizer-support-section.php:55, templates/plugin-info/features.php:43
1939
- msgid "Support"
1940
- msgstr ""
1941
-
1942
  #: includes/debug/class-fs-debug-bar-panel.php:48, templates/debug/api-calls.php:54, templates/debug/logger.php:62
1943
  msgctxt "milliseconds"
1944
  msgid "ms"
@@ -1952,6 +1163,120 @@ msgstr ""
1952
  msgid "Requests"
1953
  msgstr ""
1954
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1955
  #: templates/account/billing.php:22
1956
  msgctxt "verb"
1957
  msgid "Update"
@@ -2105,143 +1430,143 @@ msgstr ""
2105
  msgid "Next"
2106
  msgstr ""
2107
 
2108
- #: templates/forms/affiliation.php:82
2109
  msgid "Non-expiring"
2110
  msgstr ""
2111
 
2112
- #: templates/forms/affiliation.php:85
2113
  msgid "Apply to become an affiliate"
2114
  msgstr ""
2115
 
2116
- #: templates/forms/affiliation.php:107
2117
- msgid "Your affiliate application for %s has been accepted! Log in to your affiliate area at: %s."
2118
  msgstr ""
2119
 
2120
- #: templates/forms/affiliation.php:122
2121
- msgid "Thank you for applying for our affiliate program, we'll review your details during the next 14 days and will get back to you with further information."
2122
  msgstr ""
2123
 
2124
- #: templates/forms/affiliation.php:125
2125
  msgid "Your affiliation account was temporarily suspended."
2126
  msgstr ""
2127
 
2128
- #: templates/forms/affiliation.php:128
2129
- msgid "Thank you for applying for our affiliate program, unfortunately, we've decided at this point to reject your application. Please try again in 30 days."
2130
  msgstr ""
2131
 
2132
- #: templates/forms/affiliation.php:131
2133
- msgid "Due to violation of our affiliation terms, we decided to temporarily block your affiliation account. If you have any questions, please contact support."
2134
  msgstr ""
2135
 
2136
- #: templates/forms/affiliation.php:144
2137
  msgid "Like the %s? Become our ambassador and earn cash ;-)"
2138
  msgstr ""
2139
 
2140
- #: templates/forms/affiliation.php:145
2141
  msgid "Refer new customers to our %s and earn %s commission on each successful sale you refer!"
2142
  msgstr ""
2143
 
2144
- #: templates/forms/affiliation.php:148
2145
  msgid "Program Summary"
2146
  msgstr ""
2147
 
2148
- #: templates/forms/affiliation.php:150
2149
  msgid "%s commission when a customer purchases a new license."
2150
  msgstr ""
2151
 
2152
- #: templates/forms/affiliation.php:152
2153
  msgid "Get commission for automated subscription renewals."
2154
  msgstr ""
2155
 
2156
- #: templates/forms/affiliation.php:155
2157
  msgid "%s tracking cookie after the first visit to maximize earnings potential."
2158
  msgstr ""
2159
 
2160
- #: templates/forms/affiliation.php:158
2161
  msgid "Unlimited commissions."
2162
  msgstr ""
2163
 
2164
- #: templates/forms/affiliation.php:160
2165
  msgid "%s minimum payout amount."
2166
  msgstr ""
2167
 
2168
- #: templates/forms/affiliation.php:161
2169
  msgid "Payouts are in USD and processed monthly via PayPal."
2170
  msgstr ""
2171
 
2172
- #: templates/forms/affiliation.php:162
2173
  msgid "As we reserve 30 days for potential refunds, we only pay commissions that are older than 30 days."
2174
  msgstr ""
2175
 
2176
- #: templates/forms/affiliation.php:165
2177
  msgid "Affiliate"
2178
  msgstr ""
2179
 
2180
- #: templates/forms/affiliation.php:168, templates/forms/resend-key.php:23
2181
  msgid "Email address"
2182
  msgstr ""
2183
 
2184
- #: templates/forms/affiliation.php:172
2185
  msgid "Full name"
2186
  msgstr ""
2187
 
2188
- #: templates/forms/affiliation.php:176
2189
  msgid "PayPal account email address"
2190
  msgstr ""
2191
 
2192
- #: templates/forms/affiliation.php:180
2193
  msgid "Where are you going to promote the %s?"
2194
  msgstr ""
2195
 
2196
- #: templates/forms/affiliation.php:182
2197
  msgid "Enter the domain of your website or other websites from where you plan to promote the %s."
2198
  msgstr ""
2199
 
2200
- #: templates/forms/affiliation.php:184
2201
  msgid "Add another domain"
2202
  msgstr ""
2203
 
2204
- #: templates/forms/affiliation.php:188
2205
  msgid "Extra Domains"
2206
  msgstr ""
2207
 
2208
- #: templates/forms/affiliation.php:189
2209
  msgid "Extra domains where you will be marketing the product from."
2210
  msgstr ""
2211
 
2212
- #: templates/forms/affiliation.php:199
2213
  msgid "Promotion methods"
2214
  msgstr ""
2215
 
2216
- #: templates/forms/affiliation.php:202
2217
  msgid "Social media (Facebook, Twitter, etc.)"
2218
  msgstr ""
2219
 
2220
- #: templates/forms/affiliation.php:206
2221
  msgid "Mobile apps"
2222
  msgstr ""
2223
 
2224
- #: templates/forms/affiliation.php:210
2225
  msgid "Website, email, and social media statistics (optional)"
2226
  msgstr ""
2227
 
2228
- #: templates/forms/affiliation.php:213
2229
  msgid "Please feel free to provide any relevant website or social media statistics, e.g. monthly unique site visits, number of email subscribers, followers, etc. (we will keep this information confidential)."
2230
  msgstr ""
2231
 
2232
- #: templates/forms/affiliation.php:217
2233
  msgid "How will you promote us?"
2234
  msgstr ""
2235
 
2236
- #: templates/forms/affiliation.php:220
2237
  msgid "Please provide details on how you intend to promote %s (please be as specific as possible)."
2238
  msgstr ""
2239
 
2240
- #: templates/forms/affiliation.php:232, templates/forms/resend-key.php:22
2241
  msgid "Cancel"
2242
  msgstr ""
2243
 
2244
- #: templates/forms/affiliation.php:234
2245
  msgid "Become an affiliate"
2246
  msgstr ""
2247
 
@@ -2261,6 +1586,55 @@ msgstr ""
2261
  msgid "User key"
2262
  msgstr ""
2263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2264
  #: templates/forms/license-activation.php:23
2265
  msgid "Please enter the license key that you received in the email right after the purchase:"
2266
  msgstr ""
@@ -2273,7 +1647,7 @@ msgstr ""
2273
  msgid "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
2274
  msgstr ""
2275
 
2276
- #: templates/forms/license-activation.php:183
2277
  msgid "Associate with the license owner's account."
2278
  msgstr ""
2279
 
@@ -2287,6 +1661,18 @@ msgctxt "verb"
2287
  msgid "Opt In"
2288
  msgstr ""
2289
 
 
 
 
 
 
 
 
 
 
 
 
 
2290
  #: templates/forms/optout.php:34
2291
  msgid "Connectivity to the licensing engine was successfully re-established. Automatic security & feature updates are now available through the WP Admin Dashboard."
2292
  msgstr ""
@@ -2303,14 +1689,6 @@ msgstr ""
2303
  msgid "I'd like to keep automatic updates"
2304
  msgstr ""
2305
 
2306
- #: templates/forms/optout.php:44
2307
- msgid "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
2308
- msgstr ""
2309
-
2310
- #: templates/forms/optout.php:45
2311
- msgid "On second thought - I want to continue helping"
2312
- msgstr ""
2313
-
2314
  #: templates/forms/optout.php:49
2315
  msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
2316
  msgstr ""
@@ -2331,6 +1709,14 @@ msgstr ""
2331
  msgid " %s to access version %s security & feature updates, and support."
2332
  msgstr ""
2333
 
 
 
 
 
 
 
 
 
2334
  #: templates/forms/premium-versions-upgrade-handler.php:54
2335
  msgid "New Version Available"
2336
  msgstr ""
@@ -2344,7 +1730,15 @@ msgstr ""
2344
  msgid "Send License Key"
2345
  msgstr ""
2346
 
2347
- #: templates/forms/resend-key.php:57
 
 
 
 
 
 
 
 
2348
  msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
2349
  msgstr ""
2350
 
@@ -2356,10 +1750,6 @@ msgstr ""
2356
  msgid "In case you are NOT planning on using this %s on this site (or any other site) - would you like to cancel the %s as well?"
2357
  msgstr ""
2358
 
2359
- #: templates/forms/subscription-cancellation.php:52
2360
- msgid "license"
2361
- msgstr ""
2362
-
2363
  #: templates/forms/subscription-cancellation.php:57
2364
  msgid "Cancel %s - I no longer need any security & feature updates, nor support for %s because I'm not planning to use the %s on this, or any other site."
2365
  msgstr ""
@@ -2380,18 +1770,25 @@ msgstr ""
2380
  msgid "Proceed"
2381
  msgstr ""
2382
 
2383
- #: templates/forms/subscription-cancellation.php:191, templates/forms/deactivation/form.php:171
2384
  msgid "Cancel %s & Proceed"
2385
  msgstr ""
2386
 
 
2387
  #: templates/forms/trial-start.php:22
2388
  msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
2389
  msgstr ""
2390
 
 
2391
  #: templates/forms/trial-start.php:28
2392
  msgid "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
2393
  msgstr ""
2394
 
 
 
 
 
 
2395
  #: templates/forms/user-change.php:26
2396
  msgid "By changing the user, you agree to transfer the account ownership to:"
2397
  msgstr ""
@@ -2404,44 +1801,31 @@ msgstr ""
2404
  msgid "Enter email address"
2405
  msgstr ""
2406
 
2407
- #: templates/forms/user-change.php:81
2408
- msgctxt "close window"
2409
- msgid "Dismiss"
2410
- msgstr ""
2411
-
2412
- #: templates/js/style-premium-theme.php:39
2413
- msgid "Premium"
2414
  msgstr ""
2415
 
2416
- #: templates/js/style-premium-theme.php:42
2417
- msgid "Beta"
2418
  msgstr ""
2419
 
2420
- #: templates/partials/network-activation.php:27
2421
  msgid "Activate license on all sites in the network."
2422
  msgstr ""
2423
 
2424
- #: templates/partials/network-activation.php:28
2425
  msgid "Apply on all sites in the network."
2426
  msgstr ""
2427
 
2428
- #: templates/partials/network-activation.php:31
2429
- msgid "Activate license on all pending sites."
2430
- msgstr ""
2431
-
2432
- #: templates/partials/network-activation.php:32
2433
- msgid "Apply on all pending sites."
2434
- msgstr ""
2435
-
2436
- #: templates/partials/network-activation.php:40, templates/partials/network-activation.php:74
2437
  msgid "allow"
2438
  msgstr ""
2439
 
2440
- #: templates/partials/network-activation.php:43, templates/partials/network-activation.php:77
2441
  msgid "delegate"
2442
  msgstr ""
2443
 
2444
- #: templates/partials/network-activation.php:47, templates/partials/network-activation.php:81
2445
  msgid "skip"
2446
  msgstr ""
2447
 
@@ -2449,6 +1833,10 @@ msgstr ""
2449
  msgid "Click to view full-size screenshot %d"
2450
  msgstr ""
2451
 
 
 
 
 
2452
  #: templates/plugin-info/features.php:56
2453
  msgid "Unlimited Updates"
2454
  msgstr ""
@@ -2467,16 +1855,24 @@ msgid "Last license"
2467
  msgstr ""
2468
 
2469
  #. translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription'
2470
- #: templates/account/partials/addon.php:29
2471
  msgid "%1$s will immediately stop all future recurring payments and your %s plan license will expire in %s."
2472
  msgstr ""
2473
 
2474
- #: templates/account/partials/addon.php:185
 
 
 
 
2475
  msgid "Cancelled"
2476
  msgstr ""
2477
 
2478
- #: templates/account/partials/addon.php:195
2479
- msgid "No expiration"
 
 
 
 
2480
  msgstr ""
2481
 
2482
  #: templates/account/partials/site.php:189
@@ -2503,47 +1899,63 @@ msgstr ""
2503
  msgid "Contact Support"
2504
  msgstr ""
2505
 
2506
- #: templates/forms/deactivation/form.php:64
2507
  msgid "Anonymous feedback"
2508
  msgstr ""
2509
 
2510
- #: templates/forms/deactivation/form.php:70
 
 
 
 
 
 
 
 
 
 
 
 
2511
  msgid "Deactivate"
2512
  msgstr ""
2513
 
2514
- #: templates/forms/deactivation/form.php:72
2515
  msgid "Activate %s"
2516
  msgstr ""
2517
 
2518
- #: templates/forms/deactivation/form.php:87
 
 
 
 
2519
  msgid "Quick Feedback"
2520
  msgstr ""
2521
 
2522
- #: templates/forms/deactivation/form.php:91
2523
  msgid "If you have a moment, please let us know why you are %s"
2524
  msgstr ""
2525
 
2526
- #: templates/forms/deactivation/form.php:91
2527
  msgid "deactivating"
2528
  msgstr ""
2529
 
2530
- #: templates/forms/deactivation/form.php:91
2531
  msgid "switching"
2532
  msgstr ""
2533
 
2534
- #: templates/forms/deactivation/form.php:369
2535
- msgid "Submit & %s"
2536
  msgstr ""
2537
 
2538
- #: templates/forms/deactivation/form.php:390
2539
- msgid "Kindly tell us the reason so we can improve."
2540
  msgstr ""
2541
 
2542
- #: templates/forms/deactivation/form.php:515
2543
  msgid "Yes - %s"
2544
  msgstr ""
2545
 
2546
- #: templates/forms/deactivation/form.php:522
2547
  msgid "Skip & %s"
2548
  msgstr ""
2549
 
1
+ # Copyright (C) 2022 freemius
2
  # This file is distributed under the same license as the freemius package.
3
  msgid ""
4
  msgstr ""
8
  "Content-Transfer-Encoding: 8bit\n"
9
  "Language-Team: Freemius Team <admin@freemius.com>\n"
10
  "Last-Translator: Vova Feldman <vova@freemius.com>\n"
11
+ "POT-Creation-Date: 2022-07-06 12:49+0000\n"
12
  "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-KeywordsList: get_text_inline;fs_text_inline;fs_echo_inline;fs_esc_js_inline;fs_esc_attr_inline;fs_esc_attr_echo_inline;fs_esc_html_inline;fs_esc_html_echo_inline;get_text_x_inline:1,2c;fs_text_x_inline:1,2c;fs_echo_x_inline:1,2c;fs_esc_attr_x_inline:1,2c;fs_esc_js_x_inline:1,2c;fs_esc_js_echo_x_inline:1,2c;fs_esc_html_x_inline:1,2c;fs_esc_html_echo_x_inline:1,2c\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
 
20
+ #: includes/class-freemius.php:1932, templates/account.php:941
21
  msgid "An update to a Beta version will replace your installed version of %s with the latest Beta release - use with caution, and not on production sites. You have been warned."
22
  msgstr ""
23
 
24
+ #: includes/class-freemius.php:1939
25
  msgid "Would you like to proceed with the update?"
26
  msgstr ""
27
 
28
+ #: includes/class-freemius.php:3751, templates/debug.php:20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  msgid "Freemius Debug"
30
  msgstr ""
31
 
32
+ #: includes/class-freemius.php:13791
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  msgid "An unknown error has occurred while trying to toggle the license's white-label mode."
34
  msgstr ""
35
 
36
+ #: includes/class-freemius.php:13869
 
 
 
 
 
 
 
 
 
 
 
 
37
  msgid "An unknown error has occurred while trying to set the user's beta mode."
38
  msgstr ""
39
 
40
+ #: includes/class-freemius.php:13942
41
  msgid "Invalid new user ID or email address."
42
  msgstr ""
43
 
44
+ #: includes/class-freemius.php:23326
45
+ msgid "Bundle"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  msgstr ""
47
 
48
  #: includes/class-fs-plugin-updater.php:206, templates/forms/premium-versions-upgrade-handler.php:57
53
  msgid "Buy license"
54
  msgstr ""
55
 
56
+ #: includes/class-fs-plugin-updater.php:364, includes/class-fs-plugin-updater.php:331
57
  msgid "There is a %s of %s available."
58
  msgstr ""
59
 
60
+ #: includes/class-fs-plugin-updater.php:369, includes/class-fs-plugin-updater.php:333
61
  msgid "new Beta version"
62
  msgstr ""
63
 
64
+ #: includes/class-fs-plugin-updater.php:370, includes/class-fs-plugin-updater.php:334
65
  msgid "new version"
66
  msgstr ""
67
 
68
+ #: includes/class-fs-plugin-updater.php:393
69
  msgid "Important Upgrade Notice:"
70
  msgstr ""
71
 
72
+ #: includes/class-fs-plugin-updater.php:1551
 
 
 
 
 
 
 
 
73
  msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
74
  msgstr ""
75
 
77
  msgid "Purchase More"
78
  msgstr ""
79
 
80
+ #: includes/fs-plugin-info-dialog.php:542, templates/account/partials/addon.php:390
81
  msgctxt "verb"
82
  msgid "Purchase"
83
  msgstr ""
84
 
85
+ #. translators: %s: N-days trial
86
  #: includes/fs-plugin-info-dialog.php:546
87
  msgid "Start my free %s"
88
  msgstr ""
89
 
90
+ #: includes/fs-plugin-info-dialog.php:754
91
+ msgid "Install Free Version Now"
92
  msgstr ""
93
 
94
+ #: includes/fs-plugin-info-dialog.php:755, templates/add-ons.php:323, templates/auto-installation.php:111, templates/account/partials/addon.php:423, templates/account/partials/addon.php:370
95
+ msgid "Install Now"
96
  msgstr ""
97
 
98
+ #: includes/fs-plugin-info-dialog.php:744
99
+ msgid "Install Free Version Update Now"
100
  msgstr ""
101
 
102
+ #: includes/fs-plugin-info-dialog.php:745, templates/account.php:650
103
+ msgid "Install Update Now"
104
  msgstr ""
105
 
106
  #: includes/fs-plugin-info-dialog.php:771
108
  msgid "Download Latest Free Version"
109
  msgstr ""
110
 
111
+ #: includes/fs-plugin-info-dialog.php:772, templates/account.php:109, templates/add-ons.php:37, templates/account/partials/addon.php:30
112
  msgctxt "as download latest version"
113
  msgid "Download Latest"
114
  msgstr ""
115
 
116
+ #: includes/fs-plugin-info-dialog.php:787, templates/add-ons.php:329, templates/account/partials/addon.php:417, templates/account/partials/addon.php:361
117
  msgid "Activate this add-on"
118
  msgstr ""
119
 
120
+ #: includes/fs-plugin-info-dialog.php:789, templates/connect.php:483
121
  msgid "Activate Free Version"
122
  msgstr ""
123
 
124
+ #: includes/fs-plugin-info-dialog.php:790, templates/account.php:133, templates/add-ons.php:330, templates/account/partials/addon.php:53
125
  msgid "Activate"
126
  msgstr ""
127
 
234
  msgid "Price"
235
  msgstr ""
236
 
237
+ #. translators: %s: Discount (e.g. discount of $5 or 10%)
238
  #: includes/fs-plugin-info-dialog.php:1290
239
  msgid "Save %s"
240
  msgstr ""
251
  msgid "Details"
252
  msgstr ""
253
 
254
+ #: includes/fs-plugin-info-dialog.php:1318, templates/account.php:120, templates/debug.php:215, templates/debug.php:252, templates/debug.php:466, templates/account/partials/addon.php:41
255
  msgctxt "product version"
256
  msgid "Version"
257
  msgstr ""
265
  msgid "Last Updated"
266
  msgstr ""
267
 
268
+ #. translators: %s: time period (e.g. "2 hours" ago)
269
+ #: includes/fs-plugin-info-dialog.php:1337, templates/account.php:536
270
  msgctxt "x-ago"
271
  msgid "%s ago"
272
  msgstr ""
287
  msgid "Downloaded"
288
  msgstr ""
289
 
290
+ #. translators: %s: 1 or One (Number of times downloaded)
291
  #: includes/fs-plugin-info-dialog.php:1366
292
  msgid "%s time"
293
  msgstr ""
294
 
295
+ #. translators: %s: Number of times downloaded
296
  #: includes/fs-plugin-info-dialog.php:1368
297
  msgid "%s times"
298
  msgstr ""
317
  msgid "based on %s"
318
  msgstr ""
319
 
320
+ #. translators: %s: 1 or One
321
  #: includes/fs-plugin-info-dialog.php:1415
322
  msgid "%s rating"
323
  msgstr ""
324
 
325
+ #. translators: %s: Number larger than 1
326
  #: includes/fs-plugin-info-dialog.php:1417
327
  msgid "%s ratings"
328
  msgstr ""
329
 
330
+ #. translators: %s: 1 or One
331
  #: includes/fs-plugin-info-dialog.php:1432
332
  msgid "%s star"
333
  msgstr ""
334
 
335
+ #. translators: %s: Number larger than 1
336
  #: includes/fs-plugin-info-dialog.php:1434
337
  msgid "%s stars"
338
  msgstr ""
339
 
340
+ #. translators: %s: # of stars (e.g. 5 stars)
341
  #: includes/fs-plugin-info-dialog.php:1446
342
  msgid "Click to see reviews that provided a rating of %s"
343
  msgstr ""
346
  msgid "Contributors"
347
  msgstr ""
348
 
349
+ #: includes/fs-plugin-info-dialog.php:1491, includes/fs-plugin-info-dialog.php:1489
350
  msgid "Warning"
351
  msgstr ""
352
 
 
 
 
 
353
  #: includes/fs-plugin-info-dialog.php:1491
354
  msgid "This plugin has not been marked as compatible with your version of WordPress."
355
  msgstr ""
356
 
357
+ #: includes/fs-plugin-info-dialog.php:1489
358
+ msgid "This plugin has not been tested with your current version of WordPress."
359
+ msgstr ""
360
+
361
  #: includes/fs-plugin-info-dialog.php:1510
362
  msgid "Paid add-on must be deployed to Freemius."
363
  msgstr ""
366
  msgid "Add-on must be deployed to WordPress.org or Freemius."
367
  msgstr ""
368
 
 
 
 
 
 
 
 
 
369
  #: includes/fs-plugin-info-dialog.php:1540
370
  msgid "Latest Version Installed"
371
  msgstr ""
374
  msgid "Latest Free Version Installed"
375
  msgstr ""
376
 
377
+ #: includes/fs-plugin-info-dialog.php:1532
378
+ msgid "Newer Version (%s) Installed"
379
+ msgstr ""
380
+
381
+ #: includes/fs-plugin-info-dialog.php:1533
382
+ msgid "Newer Free Version (%s) Installed"
383
+ msgstr ""
384
+
385
+ #: templates/account.php:110, templates/forms/subscription-cancellation.php:96, templates/account/partials/addon.php:31, templates/account/partials/site.php:311
386
  msgid "Downgrading your plan"
387
  msgstr ""
388
 
389
+ #: templates/account.php:111, templates/forms/subscription-cancellation.php:97, templates/account/partials/addon.php:32, templates/account/partials/site.php:312
390
  msgid "Cancelling the subscription"
391
  msgstr ""
392
 
393
  #. translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription'
394
+ #: templates/account.php:113, templates/forms/subscription-cancellation.php:99, templates/account/partials/site.php:314
395
  msgid "%1$s will immediately stop all future recurring payments and your %2$s plan license will expire in %3$s."
396
  msgstr ""
397
 
398
+ #: templates/account.php:114, templates/forms/subscription-cancellation.php:100, templates/account/partials/addon.php:35, templates/account/partials/site.php:315
399
  msgid "Please note that we will not be able to grandfather outdated pricing for renewals/new subscriptions after a cancellation. If you choose to renew the subscription manually in the future, after a price increase, which typically occurs once a year, you will be charged the updated price."
400
  msgstr ""
401
 
402
+ #: templates/account.php:115, templates/forms/subscription-cancellation.php:106, templates/account/partials/addon.php:36
403
  msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
404
  msgstr ""
405
 
406
+ #: templates/account.php:116, templates/forms/subscription-cancellation.php:101, templates/account/partials/addon.php:37, templates/account/partials/site.php:316
407
  msgid "You can still enjoy all %s features but you will not have access to %s security & feature updates, nor support."
408
  msgstr ""
409
 
410
+ #: templates/account.php:117, templates/forms/subscription-cancellation.php:102, templates/account/partials/addon.php:38, templates/account/partials/site.php:317
411
  msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
412
  msgstr ""
413
 
414
  #. translators: %s: Plan title (e.g. "Professional")
415
+ #: templates/account.php:119, templates/account/partials/activate-license-button.php:31, templates/account/partials/addon.php:40
416
  msgid "Activate %s Plan"
417
  msgstr ""
418
 
419
  #. translators: %s: Time period (e.g. Auto renews in "2 months")
420
+ #: templates/account.php:122, templates/account/partials/addon.php:43, templates/account/partials/site.php:291
421
  msgid "Auto renews in %s"
422
  msgstr ""
423
 
424
  #. translators: %s: Time period (e.g. Expires in "2 months")
425
+ #: templates/account.php:124, templates/account/partials/addon.php:45, templates/account/partials/site.php:293
426
  msgid "Expires in %s"
427
  msgstr ""
428
 
429
+ #: templates/account.php:125
430
  msgctxt "as synchronize license"
431
  msgid "Sync License"
432
  msgstr ""
433
 
434
+ #: templates/account.php:126, templates/account/partials/addon.php:46
435
  msgid "Cancel Trial"
436
  msgstr ""
437
 
438
+ #: templates/account.php:127, templates/account/partials/addon.php:47
439
  msgid "Change Plan"
440
  msgstr ""
441
 
442
+ #: templates/account.php:128, templates/account/partials/addon.php:48
443
  msgctxt "verb"
444
  msgid "Upgrade"
445
  msgstr ""
446
 
447
+ #: templates/account.php:129, templates/account/partials/addon.php:49
448
+ msgid "Add-Ons"
449
+ msgstr ""
450
+
451
+ #: templates/account.php:130, templates/account/partials/addon.php:50, templates/account/partials/site.php:318
452
  msgctxt "verb"
453
  msgid "Downgrade"
454
  msgstr ""
455
 
456
+ #: templates/account.php:131, templates/add-ons.php:250, templates/account/partials/addon.php:51
457
+ msgctxt "trial period"
458
+ msgid "Trial"
459
+ msgstr ""
460
+
461
+ #: templates/account.php:132, templates/add-ons.php:246, templates/plugin-info/features.php:72, templates/account/partials/addon.php:52, templates/account/partials/site.php:33
462
  msgid "Free"
463
  msgstr ""
464
 
465
+ #: templates/account.php:134, templates/debug.php:385, templates/account/partials/addon.php:54
466
  msgctxt "as product pricing plan"
467
  msgid "Plan"
468
  msgstr ""
469
 
470
+ #: templates/account.php:135
471
  msgid "Bundle Plan"
472
  msgstr ""
473
 
474
+ #: templates/account.php:251, templates/debug.php:338
475
+ msgid "Account"
476
+ msgstr ""
477
+
478
+ #: templates/account.php:259
479
  msgid "Free Trial"
480
  msgstr ""
481
 
482
+ #: templates/account.php:270
483
  msgid "Account Details"
484
  msgstr ""
485
 
486
+ #: templates/account.php:279
487
+ msgid "Stop Debug"
488
  msgstr ""
489
 
490
+ #: templates/account.php:277, templates/forms/data-debug-mode.php:33
491
+ msgid "Start Debug"
492
  msgstr ""
493
 
494
+ #: templates/account.php:286
495
  msgid "Billing & Invoices"
496
  msgstr ""
497
 
498
+ #: templates/account.php:299
499
+ msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
500
  msgstr ""
501
 
502
+ #: templates/account.php:297
503
+ msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
504
  msgstr ""
505
 
506
+ #: templates/account.php:302
507
  msgid "Delete Account"
508
  msgstr ""
509
 
510
+ #: templates/account.php:314, templates/account/partials/addon.php:236, templates/account/partials/deactivate-license-button.php:35
511
  msgid "Deactivate License"
512
  msgstr ""
513
 
514
+ #: templates/account.php:337, templates/forms/subscription-cancellation.php:125
515
  msgid "Are you sure you want to proceed?"
516
  msgstr ""
517
 
518
+ #: templates/account.php:337, templates/account/partials/addon.php:260
519
  msgid "Cancel Subscription"
520
  msgstr ""
521
 
522
+ #: templates/account.php:366, templates/account/partials/addon.php:345
523
  msgctxt "as synchronize"
524
  msgid "Sync"
525
  msgstr ""
526
 
527
+ #: templates/account.php:381, templates/debug.php:523
528
  msgid "Name"
529
  msgstr ""
530
 
531
+ #: templates/account.php:387, templates/debug.php:524
532
  msgid "Email"
533
  msgstr ""
534
 
535
+ #: templates/account.php:394, templates/debug.php:383, templates/debug.php:573
536
  msgid "User ID"
537
  msgstr ""
538
 
539
+ #: templates/account.php:403, templates/account.php:411, templates/debug.php:372, templates/debug.php:567
540
+ msgid "Plugin"
541
+ msgstr ""
542
+
543
+ #: templates/account.php:404, templates/account.php:412, templates/debug.php:372, templates/debug.php:567, templates/forms/deactivation/form.php:107
544
+ msgid "Theme"
545
+ msgstr ""
546
+
547
+ #: templates/account.php:412, templates/account.php:732, templates/account.php:783, templates/debug.php:250, templates/debug.php:377, templates/debug.php:463, templates/debug.php:522, templates/debug.php:571, templates/debug.php:650, templates/account/payments.php:35, templates/debug/logger.php:21
548
  msgid "ID"
549
  msgstr ""
550
 
551
+ #: templates/account.php:419
552
  msgid "Site ID"
553
  msgstr ""
554
 
555
+ #: templates/account.php:422
556
  msgid "No ID"
557
  msgstr ""
558
 
559
+ #: templates/account.php:427, templates/debug.php:257, templates/debug.php:386, templates/debug.php:467, templates/debug.php:526, templates/account/partials/site.php:227
560
  msgid "Public Key"
561
  msgstr ""
562
 
563
+ #: templates/account.php:433, templates/debug.php:387, templates/debug.php:468, templates/debug.php:527, templates/account/partials/site.php:239
564
  msgid "Secret Key"
565
  msgstr ""
566
 
567
+ #: templates/account.php:436
568
  msgctxt "as secret encryption key missing"
569
  msgid "No Secret"
570
  msgstr ""
571
 
572
+ #: templates/account.php:490, templates/debug.php:579, templates/account/partials/site.php:260
573
+ msgid "License Key"
574
  msgstr ""
575
 
576
+ #: templates/account.php:463, templates/account/partials/site.php:122, templates/account/partials/site.php:120
577
+ msgid "Trial"
578
  msgstr ""
579
 
580
+ #: templates/account.php:521
581
  msgid "Join the Beta program"
582
  msgstr ""
583
 
584
+ #: templates/account.php:527
585
  msgid "not verified"
586
  msgstr ""
587
 
588
+ #: templates/account.php:598
589
+ msgid "Free version"
590
  msgstr ""
591
 
592
+ #: templates/account.php:596
593
  msgid "Premium version"
594
  msgstr ""
595
 
596
+ #: templates/account.php:536, templates/account/partials/addon.php:195
597
+ msgid "Expired"
598
+ msgstr ""
599
+
600
+ #: templates/account.php:567, templates/account.php:719, templates/connect.php:198, templates/connect.php:486, includes/managers/class-fs-clone-manager.php:1123, templates/forms/license-activation.php:27, templates/account/partials/addon.php:326
601
+ msgid "Activate License"
602
  msgstr ""
603
 
604
+ #: templates/account.php:610
605
  msgid "Verify Email"
606
  msgstr ""
607
 
608
+ #: templates/account.php:687, templates/forms/user-change.php:27
609
+ msgid "Change User"
610
  msgstr ""
611
 
612
+ #: templates/account.php:674
613
+ msgid "What is your %s?"
614
  msgstr ""
615
 
616
+ #: templates/account.php:682, templates/account/billing.php:21
617
+ msgctxt "verb"
618
+ msgid "Edit"
619
+ msgstr ""
620
+
621
+ #: templates/account.php:658, templates/account.php:921, templates/account/partials/site.php:248, templates/account/partials/site.php:270
622
  msgctxt "verb"
623
  msgid "Show"
624
  msgstr ""
625
 
626
+ #: templates/account.php:661, templates/account.php:718, templates/account/partials/addon.php:327, templates/account/partials/site.php:271
627
+ msgid "Change License"
628
  msgstr ""
629
 
630
+ #: templates/account.php:624
631
+ msgid "Download %s Version"
 
632
  msgstr ""
633
 
634
+ #: templates/account.php:640
635
+ msgid "Download Paid Version"
636
  msgstr ""
637
 
638
+ #: templates/account.php:711
639
  msgid "Sites"
640
  msgstr ""
641
 
642
+ #: templates/account.php:724
643
  msgid "Search by address"
644
  msgstr ""
645
 
646
+ #: templates/account.php:733, templates/debug.php:380
647
  msgid "Address"
648
  msgstr ""
649
 
650
+ #: templates/account.php:734
651
  msgid "License"
652
  msgstr ""
653
 
654
+ #: templates/account.php:735
655
  msgid "Plan"
656
  msgstr ""
657
 
658
+ #: templates/account.php:786
659
  msgctxt "as software license"
660
  msgid "License"
661
  msgstr ""
662
 
663
+ #: templates/account.php:915
664
  msgctxt "verb"
665
  msgid "Hide"
666
  msgstr ""
667
 
668
+ #: templates/account.php:937, templates/forms/data-debug-mode.php:31, templates/forms/deactivation/form.php:358, templates/forms/deactivation/form.php:389
669
  msgid "Processing"
670
  msgstr ""
671
 
672
+ #: templates/account.php:940
673
  msgid "Get updates for bleeding edge Beta versions of %s."
674
  msgstr ""
675
 
676
+ #: templates/account.php:998
677
  msgid "Cancelling %s"
678
  msgstr ""
679
 
680
+ #: templates/account.php:998, templates/account.php:1015, templates/forms/subscription-cancellation.php:27, templates/forms/deactivation/form.php:178
681
  msgid "trial"
682
  msgstr ""
683
 
684
+ #: templates/account.php:1013, templates/forms/deactivation/form.php:195
685
  msgid "Cancelling %s..."
686
  msgstr ""
687
 
688
+ #: templates/account.php:1016, templates/forms/subscription-cancellation.php:28, templates/forms/deactivation/form.php:179
689
  msgid "subscription"
690
  msgstr ""
691
 
692
+ #: templates/account.php:1030
693
  msgid "Deactivating your license will block all premium features, but will enable activating the license on another site. Are you sure you want to proceed?"
694
  msgstr ""
695
 
696
+ #: templates/account.php:1104
697
  msgid "Disabling white-label mode"
698
  msgstr ""
699
 
700
+ #: templates/account.php:1105
701
  msgid "Enabling white-label mode"
702
  msgstr ""
703
 
709
  msgid "Add Ons for %s"
710
  msgstr ""
711
 
712
+ #: templates/add-ons.php:57
713
+ msgctxt "exclamation"
714
+ msgid "Oops"
715
+ msgstr ""
716
+
717
  #: templates/add-ons.php:58
718
  msgid "We couldn't load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
719
  msgstr ""
720
 
721
+ #: templates/add-ons.php:186, templates/account/partials/addon.php:386
722
+ msgid "More information about %s"
723
+ msgstr ""
724
+
725
  #: templates/add-ons.php:229
726
  msgctxt "active add-on"
727
  msgid "Active"
732
  msgid "Installed"
733
  msgstr ""
734
 
735
+ #: templates/admin-notice.php:13, templates/forms/license-activation.php:250, templates/forms/resend-key.php:80
736
  msgctxt "as close a window"
737
  msgid "Dismiss"
738
  msgstr ""
739
 
740
+ #: templates/auto-installation.php:32
741
+ msgid "Add-On"
742
+ msgstr ""
743
+
744
+ #. translators: %s: Number of seconds
745
  #: templates/auto-installation.php:45
746
  msgid "%s sec"
747
  msgstr ""
762
  msgid "Cancel Installation"
763
  msgstr ""
764
 
 
 
 
 
 
 
 
 
765
  #. translators: %s: name (e.g. Hey John,)
766
+ #: templates/connect.php:121
767
  msgctxt "greeting"
768
  msgid "Hey %s,"
769
  msgstr ""
770
 
771
+ #: templates/connect.php:181
772
  msgid "Allow & Continue"
773
  msgstr ""
774
 
775
+ #: templates/connect.php:210, templates/connect.php:217
776
+ msgid "Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s."
777
  msgstr ""
778
 
779
+ #: templates/connect.php:211, templates/connect.php:218
780
+ msgid "Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
781
+ msgstr ""
782
+
783
+ #: templates/connect.php:221
784
+ msgid "If you skip this, that's okay! %1$s will still work just fine."
785
  msgstr ""
786
 
787
+ #: templates/connect.php:199, templates/forms/license-activation.php:46
788
  msgid "Agree & Activate License"
789
  msgstr ""
790
 
791
+ #: templates/connect.php:203
792
  msgid "Welcome to %s! To get started, please enter your license key:"
793
  msgstr ""
794
 
795
+ #: templates/connect.php:185
796
+ msgid "Re-send activation email"
797
  msgstr ""
798
 
799
+ #: templates/connect.php:189
800
+ msgid "Thanks %s!"
801
  msgstr ""
802
 
803
+ #: templates/connect.php:190
804
+ msgid "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
805
  msgstr ""
806
 
807
+ #: templates/connect.php:194
808
+ msgid "complete the install"
809
  msgstr ""
810
 
811
+ #: templates/connect.php:251
812
  msgid "We're excited to introduce the Freemius network-level integration."
813
  msgstr ""
814
 
815
+ #: templates/connect.php:265
816
+ msgid "During the update process we detected %s site(s) in the network that are still pending your attention."
817
+ msgstr ""
818
+
819
+ #: templates/connect.php:254
820
  msgid "During the update process we detected %d site(s) that are still pending license activation."
821
  msgstr ""
822
 
823
+ #: templates/connect.php:256
824
  msgid "If you'd like to use the %s on those sites, please enter your license key below and click the activation button."
825
  msgstr ""
826
 
827
+ #: templates/connect.php:258
828
  msgid "%s's paid features"
829
  msgstr ""
830
 
831
+ #: templates/connect.php:263
832
  msgid "Alternatively, you can skip it for now and activate the license later, in your %s's network-level Account page."
833
  msgstr ""
834
 
835
+ #: templates/connect.php:274, templates/forms/data-debug-mode.php:35, templates/forms/license-activation.php:49
 
 
 
 
836
  msgid "License key"
837
  msgstr ""
838
 
839
+ #: templates/connect.php:277, templates/forms/license-activation.php:22
840
  msgid "Can't find your license key?"
841
  msgstr ""
842
 
843
+ #: templates/connect.php:308
844
+ msgid "Please let us know if you'd like us to contact you for security & feature updates, educational content, and occasional offers:"
845
+ msgstr ""
846
+
847
+ #: templates/connect.php:340, templates/connect.php:730, templates/forms/deactivation/retry-skip.php:20
848
  msgctxt "verb"
849
  msgid "Skip"
850
  msgstr ""
851
 
852
+ #: templates/connect.php:343
853
  msgid "Delegate to Site Admins"
854
  msgstr ""
855
 
856
+ #: templates/connect.php:343
857
  msgid "If you click it, this decision will be delegated to the sites administrators."
858
  msgstr ""
859
 
860
+ #: templates/connect.php:368
861
  msgid "License issues?"
862
  msgstr ""
863
 
864
+ #: templates/connect.php:454
865
+ msgid "What permissions are being granted?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
866
  msgstr ""
867
 
868
+ #: templates/connect.php:448
869
  msgid "The %1$s will periodically send %2$s to %3$s for security & feature updates delivery, and license management."
870
  msgstr ""
871
 
872
+ #: templates/connect.php:450
873
  msgid "diagnostic data"
874
  msgstr ""
875
 
876
+ #: templates/connect.php:485
877
+ msgid "Have a license key?"
 
 
 
 
878
  msgstr ""
879
 
880
+ #: templates/connect.php:482
881
  msgid "Don't have a license key?"
882
  msgstr ""
883
 
884
+ #: templates/connect.php:493
 
 
 
 
885
  msgid "Privacy Policy"
886
  msgstr ""
887
 
888
+ #: templates/connect.php:495
889
  msgid "License Agreement"
890
  msgstr ""
891
 
892
+ #: templates/connect.php:495
893
  msgid "Terms of Service"
894
  msgstr ""
895
 
896
+ #: templates/connect.php:896
897
  msgctxt "as in the process of sending an email"
898
  msgid "Sending email"
899
  msgstr ""
900
 
901
+ #: templates/connect.php:897
902
  msgctxt "as activating plugin"
903
  msgid "Activating"
904
  msgstr ""
905
 
 
 
 
 
906
  #: templates/debug.php:17
907
  msgctxt "as turned off"
908
  msgid "Off"
922
  msgid "Debugging"
923
  msgstr ""
924
 
925
+ #: templates/debug.php:54, templates/debug.php:262, templates/debug.php:388, templates/debug.php:528
926
  msgid "Actions"
927
  msgstr ""
928
 
929
+ #: templates/debug.php:64
930
  msgid "Are you sure you want to delete all Freemius data?"
931
  msgstr ""
932
 
933
+ #: templates/debug.php:64
934
  msgid "Delete All Accounts"
935
  msgstr ""
936
 
937
+ #: templates/debug.php:71
938
  msgid "Clear API Cache"
939
  msgstr ""
940
 
941
+ #: templates/debug.php:79
942
  msgid "Clear Updates Transients"
943
  msgstr ""
944
 
945
+ #: templates/debug.php:88
946
+ msgid "Reset Deactivation Snoozing"
947
+ msgstr ""
948
+
949
+ #: templates/debug.php:96
950
  msgid "Sync Data From Server"
951
  msgstr ""
952
 
953
+ #: templates/debug.php:105
954
  msgid "Migrate Options to Network"
955
  msgstr ""
956
 
957
+ #: templates/debug.php:110
958
  msgid "Load DB Option"
959
  msgstr ""
960
 
961
+ #: templates/debug.php:113
962
  msgid "Set DB Option"
963
  msgstr ""
964
 
965
+ #: templates/debug.php:194
966
  msgid "Key"
967
  msgstr ""
968
 
969
+ #: templates/debug.php:195
970
  msgid "Value"
971
  msgstr ""
972
 
973
+ #: templates/debug.php:211
974
  msgctxt "as software development kit versions"
975
  msgid "SDK Versions"
976
  msgstr ""
977
 
978
+ #: templates/debug.php:216
979
  msgid "SDK Path"
980
  msgstr ""
981
 
982
+ #: templates/debug.php:217, templates/debug.php:256
983
  msgid "Module Path"
984
  msgstr ""
985
 
986
+ #: templates/debug.php:218
987
  msgid "Is Active"
988
  msgstr ""
989
 
990
+ #: templates/debug.php:246, templates/debug/plugins-themes-sync.php:35
991
  msgid "Plugins"
992
  msgstr ""
993
 
994
+ #: templates/debug.php:246, templates/debug/plugins-themes-sync.php:56
995
  msgid "Themes"
996
  msgstr ""
997
 
998
+ #: templates/debug.php:251, templates/debug.php:382, templates/debug.php:465, templates/debug/scheduled-crons.php:80
999
  msgid "Slug"
1000
  msgstr ""
1001
 
1002
+ #: templates/debug.php:253, templates/debug.php:464
1003
  msgid "Title"
1004
  msgstr ""
1005
 
1006
+ #: templates/debug.php:254
1007
  msgctxt "as application program interface"
1008
  msgid "API"
1009
  msgstr ""
1010
 
1011
+ #: templates/debug.php:255
1012
  msgid "Freemius State"
1013
  msgstr ""
1014
 
1015
+ #: templates/debug.php:259
1016
  msgid "Network Blog"
1017
  msgstr ""
1018
 
1019
+ #: templates/debug.php:260
1020
  msgid "Network User"
1021
  msgstr ""
1022
 
1023
+ #: templates/debug.php:297
1024
  msgctxt "as connection was successful"
1025
  msgid "Connected"
1026
  msgstr ""
1027
 
1028
+ #: templates/debug.php:298
1029
  msgctxt "as connection blocked"
1030
  msgid "Blocked"
1031
  msgstr ""
1032
 
1033
+ #: templates/debug.php:334
1034
  msgid "Simulate Trial Promotion"
1035
  msgstr ""
1036
 
1037
+ #: templates/debug.php:346
1038
  msgid "Simulate Network Upgrade"
1039
  msgstr ""
1040
 
1041
+ #. translators: %s: 'plugin' or 'theme'
1042
+ #: templates/debug.php:371
1043
  msgid "%s Installs"
1044
  msgstr ""
1045
 
1046
+ #: templates/debug.php:373
1047
  msgctxt "like websites"
1048
  msgid "Sites"
1049
  msgstr ""
1050
 
1051
+ #: templates/debug.php:379, templates/account/partials/site.php:156
1052
  msgid "Blog ID"
1053
  msgstr ""
1054
 
1055
+ #: templates/debug.php:384
1056
  msgid "License ID"
1057
  msgstr ""
1058
 
1059
+ #: templates/debug.php:445, templates/debug.php:551, templates/account/partials/addon.php:440
1060
  msgctxt "verb"
1061
  msgid "Delete"
1062
  msgstr ""
1063
 
1064
+ #: templates/debug.php:459
1065
  msgid "Add Ons of module %s"
1066
  msgstr ""
1067
 
1068
+ #: templates/debug.php:518
1069
  msgid "Users"
1070
  msgstr ""
1071
 
1072
+ #: templates/debug.php:525
1073
  msgid "Verified"
1074
  msgstr ""
1075
 
1076
+ #: templates/debug.php:567
1077
  msgid "%s Licenses"
1078
  msgstr ""
1079
 
1080
+ #: templates/debug.php:572
1081
  msgid "Plugin ID"
1082
  msgstr ""
1083
 
1084
+ #: templates/debug.php:574
1085
  msgid "Plan ID"
1086
  msgstr ""
1087
 
1088
+ #: templates/debug.php:575
1089
  msgid "Quota"
1090
  msgstr ""
1091
 
1092
+ #: templates/debug.php:576
1093
  msgid "Activated"
1094
  msgstr ""
1095
 
1096
+ #: templates/debug.php:577
1097
  msgid "Blocking"
1098
  msgstr ""
1099
 
1100
+ #: templates/debug.php:578, templates/debug.php:649, templates/debug/logger.php:22
1101
  msgid "Type"
1102
  msgstr ""
1103
 
1104
+ #: templates/debug.php:580
1105
  msgctxt "as expiration date"
1106
  msgid "Expiration"
1107
  msgstr ""
1108
 
1109
+ #: templates/debug.php:608
1110
  msgid "Debug Log"
1111
  msgstr ""
1112
 
1113
+ #: templates/debug.php:612
1114
  msgid "All Types"
1115
  msgstr ""
1116
 
1117
+ #: templates/debug.php:619
1118
  msgid "All Requests"
1119
  msgstr ""
1120
 
1121
+ #: templates/debug.php:624, templates/debug.php:653, templates/debug/logger.php:25
1122
  msgid "File"
1123
  msgstr ""
1124
 
1125
+ #: templates/debug.php:625, templates/debug.php:651, templates/debug/logger.php:23
1126
  msgid "Function"
1127
  msgstr ""
1128
 
1129
+ #: templates/debug.php:626
1130
  msgid "Process ID"
1131
  msgstr ""
1132
 
1133
+ #: templates/debug.php:627
1134
  msgid "Logger"
1135
  msgstr ""
1136
 
1137
+ #: templates/debug.php:628, templates/debug.php:652, templates/debug/logger.php:24
1138
  msgid "Message"
1139
  msgstr ""
1140
 
1141
+ #: templates/debug.php:630
1142
  msgid "Filter"
1143
  msgstr ""
1144
 
1145
+ #: templates/debug.php:638
1146
  msgid "Download"
1147
  msgstr ""
1148
 
1149
+ #: templates/debug.php:654, templates/debug/logger.php:26
1150
  msgid "Timestamp"
1151
  msgstr ""
1152
 
 
 
 
 
 
 
 
 
1153
  #: includes/debug/class-fs-debug-bar-panel.php:48, templates/debug/api-calls.php:54, templates/debug/logger.php:62
1154
  msgctxt "milliseconds"
1155
  msgid "ms"
1163
  msgid "Requests"
1164
  msgstr ""
1165
 
1166
+ #: includes/managers/class-fs-clone-manager.php:703
1167
+ msgid "Invalid clone resolution action."
1168
+ msgstr ""
1169
+
1170
+ #: includes/managers/class-fs-clone-manager.php:851
1171
+ msgid "products"
1172
+ msgstr ""
1173
+
1174
+ #: includes/managers/class-fs-clone-manager.php:1039
1175
+ msgid "The products below have been placed into safe mode because we noticed that %2$s is an exact copy of %3$s:%1$s"
1176
+ msgstr ""
1177
+
1178
+ #: includes/managers/class-fs-clone-manager.php:1040
1179
+ msgid "The products below have been placed into safe mode because we noticed that %2$s is an exact copy of these sites:%3$s%1$s"
1180
+ msgstr ""
1181
+
1182
+ #: includes/managers/class-fs-clone-manager.php:1033
1183
+ msgid "%1$s has been placed into safe mode because we noticed that %2$s is an exact copy of %3$s."
1184
+ msgstr ""
1185
+
1186
+ #: includes/managers/class-fs-clone-manager.php:1066
1187
+ msgid "the above-mentioned sites"
1188
+ msgstr ""
1189
+
1190
+ #: includes/managers/class-fs-clone-manager.php:1079
1191
+ msgid "Is %2$s a duplicate of %4$s?"
1192
+ msgstr ""
1193
+
1194
+ #: includes/managers/class-fs-clone-manager.php:1080
1195
+ msgid "Yes, %2$s is a duplicate of %4$s for the purpose of testing, staging, or development."
1196
+ msgstr ""
1197
+
1198
+ #: includes/managers/class-fs-clone-manager.php:1085
1199
+ msgid "Long-Term Duplicate"
1200
+ msgstr ""
1201
+
1202
+ #: includes/managers/class-fs-clone-manager.php:1090
1203
+ msgid "Duplicate Website"
1204
+ msgstr ""
1205
+
1206
+ #: includes/managers/class-fs-clone-manager.php:1096
1207
+ msgid "Is %2$s the new home of %4$s?"
1208
+ msgstr ""
1209
+
1210
+ #: includes/managers/class-fs-clone-manager.php:1098
1211
+ msgid "Yes, %%2$s is replacing %%4$s. I would like to migrate my %s from %%4$s to %%2$s."
1212
+ msgstr ""
1213
+
1214
+ #: includes/managers/class-fs-clone-manager.php:1099, templates/forms/subscription-cancellation.php:52
1215
+ msgid "license"
1216
+ msgstr ""
1217
+
1218
+ #: includes/managers/class-fs-clone-manager.php:1099
1219
+ msgid "data"
1220
+ msgstr ""
1221
+
1222
+ #: includes/managers/class-fs-clone-manager.php:1105
1223
+ msgid "Migrate License"
1224
+ msgstr ""
1225
+
1226
+ #: includes/managers/class-fs-clone-manager.php:1106
1227
+ msgid "Migrate"
1228
+ msgstr ""
1229
+
1230
+ #: includes/managers/class-fs-clone-manager.php:1112
1231
+ msgid "Is %2$s a new website?"
1232
+ msgstr ""
1233
+
1234
+ #: includes/managers/class-fs-clone-manager.php:1113
1235
+ msgid "Yes, %2$s is a new and different website that is separate from %4$s."
1236
+ msgstr ""
1237
+
1238
+ #: includes/managers/class-fs-clone-manager.php:1115
1239
+ msgid "It requires license activation."
1240
+ msgstr ""
1241
+
1242
+ #: includes/managers/class-fs-clone-manager.php:1122
1243
+ msgid "New Website"
1244
+ msgstr ""
1245
+
1246
+ #: includes/managers/class-fs-clone-manager.php:1145
1247
+ msgctxt "Clone resolution admin notice products list label"
1248
+ msgid "Products"
1249
+ msgstr ""
1250
+
1251
+ #: includes/managers/class-fs-clone-manager.php:1230
1252
+ msgid "You marked this website, %s, as a temporary duplicate of %s."
1253
+ msgstr ""
1254
+
1255
+ #: includes/managers/class-fs-clone-manager.php:1231
1256
+ msgid "You marked this website, %s, as a temporary duplicate of these sites"
1257
+ msgstr ""
1258
+
1259
+ #: includes/managers/class-fs-clone-manager.php:1245
1260
+ msgid "%s automatic security & feature updates and paid functionality will keep working without interruptions until %s (or when your license expires, whatever comes first)."
1261
+ msgstr ""
1262
+
1263
+ #: includes/managers/class-fs-clone-manager.php:1248
1264
+ msgctxt "\"The <product_label>\", e.g.: \"The plugin\""
1265
+ msgid "The %s's"
1266
+ msgstr ""
1267
+
1268
+ #: includes/managers/class-fs-clone-manager.php:1251
1269
+ msgid "The following products'"
1270
+ msgstr ""
1271
+
1272
+ #: includes/managers/class-fs-clone-manager.php:1259
1273
+ msgid "If this is a long term duplicate, to keep automatic updates and paid functionality after %s, please %s."
1274
+ msgstr ""
1275
+
1276
+ #: includes/managers/class-fs-clone-manager.php:1261
1277
+ msgid "activate a license here"
1278
+ msgstr ""
1279
+
1280
  #: templates/account/billing.php:22
1281
  msgctxt "verb"
1282
  msgid "Update"
1430
  msgid "Next"
1431
  msgstr ""
1432
 
1433
+ #: templates/forms/affiliation.php:83
1434
  msgid "Non-expiring"
1435
  msgstr ""
1436
 
1437
+ #: templates/forms/affiliation.php:86
1438
  msgid "Apply to become an affiliate"
1439
  msgstr ""
1440
 
1441
+ #: templates/forms/affiliation.php:132
1442
+ msgid "Due to violation of our affiliation terms, we decided to temporarily block your affiliation account. If you have any questions, please contact support."
1443
  msgstr ""
1444
 
1445
+ #: templates/forms/affiliation.php:129
1446
+ msgid "Thank you for applying for our affiliate program, unfortunately, we've decided at this point to reject your application. Please try again in 30 days."
1447
  msgstr ""
1448
 
1449
+ #: templates/forms/affiliation.php:126
1450
  msgid "Your affiliation account was temporarily suspended."
1451
  msgstr ""
1452
 
1453
+ #: templates/forms/affiliation.php:123
1454
+ msgid "Thank you for applying for our affiliate program, we'll review your details during the next 14 days and will get back to you with further information."
1455
  msgstr ""
1456
 
1457
+ #: templates/forms/affiliation.php:108
1458
+ msgid "Your affiliate application for %s has been accepted! Log in to your affiliate area at: %s."
1459
  msgstr ""
1460
 
1461
+ #: templates/forms/affiliation.php:145
1462
  msgid "Like the %s? Become our ambassador and earn cash ;-)"
1463
  msgstr ""
1464
 
1465
+ #: templates/forms/affiliation.php:146
1466
  msgid "Refer new customers to our %s and earn %s commission on each successful sale you refer!"
1467
  msgstr ""
1468
 
1469
+ #: templates/forms/affiliation.php:149
1470
  msgid "Program Summary"
1471
  msgstr ""
1472
 
1473
+ #: templates/forms/affiliation.php:151
1474
  msgid "%s commission when a customer purchases a new license."
1475
  msgstr ""
1476
 
1477
+ #: templates/forms/affiliation.php:153
1478
  msgid "Get commission for automated subscription renewals."
1479
  msgstr ""
1480
 
1481
+ #: templates/forms/affiliation.php:156
1482
  msgid "%s tracking cookie after the first visit to maximize earnings potential."
1483
  msgstr ""
1484
 
1485
+ #: templates/forms/affiliation.php:159
1486
  msgid "Unlimited commissions."
1487
  msgstr ""
1488
 
1489
+ #: templates/forms/affiliation.php:161
1490
  msgid "%s minimum payout amount."
1491
  msgstr ""
1492
 
1493
+ #: templates/forms/affiliation.php:162
1494
  msgid "Payouts are in USD and processed monthly via PayPal."
1495
  msgstr ""
1496
 
1497
+ #: templates/forms/affiliation.php:163
1498
  msgid "As we reserve 30 days for potential refunds, we only pay commissions that are older than 30 days."
1499
  msgstr ""
1500
 
1501
+ #: templates/forms/affiliation.php:166
1502
  msgid "Affiliate"
1503
  msgstr ""
1504
 
1505
+ #: templates/forms/affiliation.php:169, templates/forms/resend-key.php:23
1506
  msgid "Email address"
1507
  msgstr ""
1508
 
1509
+ #: templates/forms/affiliation.php:173
1510
  msgid "Full name"
1511
  msgstr ""
1512
 
1513
+ #: templates/forms/affiliation.php:177
1514
  msgid "PayPal account email address"
1515
  msgstr ""
1516
 
1517
+ #: templates/forms/affiliation.php:181
1518
  msgid "Where are you going to promote the %s?"
1519
  msgstr ""
1520
 
1521
+ #: templates/forms/affiliation.php:183
1522
  msgid "Enter the domain of your website or other websites from where you plan to promote the %s."
1523
  msgstr ""
1524
 
1525
+ #: templates/forms/affiliation.php:185
1526
  msgid "Add another domain"
1527
  msgstr ""
1528
 
1529
+ #: templates/forms/affiliation.php:189
1530
  msgid "Extra Domains"
1531
  msgstr ""
1532
 
1533
+ #: templates/forms/affiliation.php:190
1534
  msgid "Extra domains where you will be marketing the product from."
1535
  msgstr ""
1536
 
1537
+ #: templates/forms/affiliation.php:200
1538
  msgid "Promotion methods"
1539
  msgstr ""
1540
 
1541
+ #: templates/forms/affiliation.php:203
1542
  msgid "Social media (Facebook, Twitter, etc.)"
1543
  msgstr ""
1544
 
1545
+ #: templates/forms/affiliation.php:207
1546
  msgid "Mobile apps"
1547
  msgstr ""
1548
 
1549
+ #: templates/forms/affiliation.php:211
1550
  msgid "Website, email, and social media statistics (optional)"
1551
  msgstr ""
1552
 
1553
+ #: templates/forms/affiliation.php:214
1554
  msgid "Please feel free to provide any relevant website or social media statistics, e.g. monthly unique site visits, number of email subscribers, followers, etc. (we will keep this information confidential)."
1555
  msgstr ""
1556
 
1557
+ #: templates/forms/affiliation.php:218
1558
  msgid "How will you promote us?"
1559
  msgstr ""
1560
 
1561
+ #: templates/forms/affiliation.php:221
1562
  msgid "Please provide details on how you intend to promote %s (please be as specific as possible)."
1563
  msgstr ""
1564
 
1565
+ #: templates/forms/affiliation.php:233, templates/forms/resend-key.php:22
1566
  msgid "Cancel"
1567
  msgstr ""
1568
 
1569
+ #: templates/forms/affiliation.php:235
1570
  msgid "Become an affiliate"
1571
  msgstr ""
1572
 
1586
  msgid "User key"
1587
  msgstr ""
1588
 
1589
+ #: templates/forms/data-debug-mode.php:162
1590
+ msgid "An unknown error has occurred."
1591
+ msgstr ""
1592
+
1593
+ #: templates/forms/email-address-update.php:32
1594
+ msgid "Email address update"
1595
+ msgstr ""
1596
+
1597
+ #: templates/forms/email-address-update.php:33, templates/forms/user-change.php:81
1598
+ msgctxt "close window"
1599
+ msgid "Dismiss"
1600
+ msgstr ""
1601
+
1602
+ #: templates/forms/email-address-update.php:38
1603
+ msgid "Enter the new email address"
1604
+ msgstr ""
1605
+
1606
+ #: templates/forms/email-address-update.php:42
1607
+ msgid "Are both %s and %s your email addresses?"
1608
+ msgstr ""
1609
+
1610
+ #: templates/forms/email-address-update.php:50
1611
+ msgid "Yes - both addresses are mine"
1612
+ msgstr ""
1613
+
1614
+ #: templates/forms/email-address-update.php:57
1615
+ msgid "%s is my client's email address"
1616
+ msgstr ""
1617
+
1618
+ #: templates/forms/email-address-update.php:66
1619
+ msgid "%s is my email address"
1620
+ msgstr ""
1621
+
1622
+ #: templates/forms/email-address-update.php:75
1623
+ msgid "Would you like to merge %s into %s?"
1624
+ msgstr ""
1625
+
1626
+ #: templates/forms/email-address-update.php:84
1627
+ msgid "Yes - move all my data and assets from %s to %s"
1628
+ msgstr ""
1629
+
1630
+ #: templates/forms/email-address-update.php:94
1631
+ msgid "No - only move this site's data to %s"
1632
+ msgstr ""
1633
+
1634
+ #: templates/forms/email-address-update.php:292, templates/forms/email-address-update.php:298
1635
+ msgid "Update"
1636
+ msgstr ""
1637
+
1638
  #: templates/forms/license-activation.php:23
1639
  msgid "Please enter the license key that you received in the email right after the purchase:"
1640
  msgstr ""
1647
  msgid "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
1648
  msgstr ""
1649
 
1650
+ #: templates/forms/license-activation.php:211
1651
  msgid "Associate with the license owner's account."
1652
  msgstr ""
1653
 
1661
  msgid "Opt In"
1662
  msgstr ""
1663
 
1664
+ #: templates/forms/optout.php:41
1665
+ msgid "We appreciate your help in making the %s better by letting us track some usage data."
1666
+ msgstr ""
1667
+
1668
+ #: templates/forms/optout.php:44
1669
+ msgid "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
1670
+ msgstr ""
1671
+
1672
+ #: templates/forms/optout.php:45
1673
+ msgid "On second thought - I want to continue helping"
1674
+ msgstr ""
1675
+
1676
  #: templates/forms/optout.php:34
1677
  msgid "Connectivity to the licensing engine was successfully re-established. Automatic security & feature updates are now available through the WP Admin Dashboard."
1678
  msgstr ""
1689
  msgid "I'd like to keep automatic updates"
1690
  msgstr ""
1691
 
 
 
 
 
 
 
 
 
1692
  #: templates/forms/optout.php:49
1693
  msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
1694
  msgstr ""
1709
  msgid " %s to access version %s security & feature updates, and support."
1710
  msgstr ""
1711
 
1712
+ #: templates/forms/premium-versions-upgrade-handler.php:46
1713
+ msgid "Renew your license now"
1714
+ msgstr ""
1715
+
1716
+ #: templates/forms/premium-versions-upgrade-handler.php:47
1717
+ msgid "Buy a license now"
1718
+ msgstr ""
1719
+
1720
  #: templates/forms/premium-versions-upgrade-handler.php:54
1721
  msgid "New Version Available"
1722
  msgstr ""
1730
  msgid "Send License Key"
1731
  msgstr ""
1732
 
1733
+ #: templates/forms/resend-key.php:24, templates/forms/user-change.php:29
1734
+ msgid "Other"
1735
+ msgstr ""
1736
+
1737
+ #: templates/forms/resend-key.php:58
1738
+ msgid "Enter the email address you've used during the purchase and we will resend you the license key."
1739
+ msgstr ""
1740
+
1741
+ #: templates/forms/resend-key.php:59
1742
  msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
1743
  msgstr ""
1744
 
1750
  msgid "In case you are NOT planning on using this %s on this site (or any other site) - would you like to cancel the %s as well?"
1751
  msgstr ""
1752
 
 
 
 
 
1753
  #: templates/forms/subscription-cancellation.php:57
1754
  msgid "Cancel %s - I no longer need any security & feature updates, nor support for %s because I'm not planning to use the %s on this, or any other site."
1755
  msgstr ""
1770
  msgid "Proceed"
1771
  msgstr ""
1772
 
1773
+ #: templates/forms/subscription-cancellation.php:191, templates/forms/deactivation/form.php:216
1774
  msgid "Cancel %s & Proceed"
1775
  msgstr ""
1776
 
1777
+ #. translators: %1$s: Number of trial days; %2$s: Plan name;
1778
  #: templates/forms/trial-start.php:22
1779
  msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1780
  msgstr ""
1781
 
1782
+ #. translators: %s: Link to freemius.com
1783
  #: templates/forms/trial-start.php:28
1784
  msgid "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1785
  msgstr ""
1786
 
1787
+ #: templates/forms/trial-start.php:53
1788
+ msgctxt "call to action"
1789
+ msgid "Start free trial"
1790
+ msgstr ""
1791
+
1792
  #: templates/forms/user-change.php:26
1793
  msgid "By changing the user, you agree to transfer the account ownership to:"
1794
  msgstr ""
1801
  msgid "Enter email address"
1802
  msgstr ""
1803
 
1804
+ #: templates/partials/network-activation.php:36
1805
+ msgid "Activate license on all pending sites."
 
 
 
 
 
1806
  msgstr ""
1807
 
1808
+ #: templates/partials/network-activation.php:37
1809
+ msgid "Apply on all pending sites."
1810
  msgstr ""
1811
 
1812
+ #: templates/partials/network-activation.php:32
1813
  msgid "Activate license on all sites in the network."
1814
  msgstr ""
1815
 
1816
+ #: templates/partials/network-activation.php:33
1817
  msgid "Apply on all sites in the network."
1818
  msgstr ""
1819
 
1820
+ #: templates/partials/network-activation.php:45, templates/partials/network-activation.php:79
 
 
 
 
 
 
 
 
1821
  msgid "allow"
1822
  msgstr ""
1823
 
1824
+ #: templates/partials/network-activation.php:48, templates/partials/network-activation.php:82
1825
  msgid "delegate"
1826
  msgstr ""
1827
 
1828
+ #: templates/partials/network-activation.php:52, templates/partials/network-activation.php:86
1829
  msgid "skip"
1830
  msgstr ""
1831
 
1833
  msgid "Click to view full-size screenshot %d"
1834
  msgstr ""
1835
 
1836
+ #: templates/plugin-info/features.php:43
1837
+ msgid "Support"
1838
+ msgstr ""
1839
+
1840
  #: templates/plugin-info/features.php:56
1841
  msgid "Unlimited Updates"
1842
  msgstr ""
1855
  msgstr ""
1856
 
1857
  #. translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription'
1858
+ #: templates/account/partials/addon.php:34
1859
  msgid "%1$s will immediately stop all future recurring payments and your %s plan license will expire in %s."
1860
  msgstr ""
1861
 
1862
+ #: templates/account/partials/addon.php:200
1863
+ msgid "No expiration"
1864
+ msgstr ""
1865
+
1866
+ #: templates/account/partials/addon.php:190
1867
  msgid "Cancelled"
1868
  msgstr ""
1869
 
1870
+ #: templates/account/partials/site.php:49, templates/account/partials/site.php:169
1871
+ msgid "Opt In"
1872
+ msgstr ""
1873
+
1874
+ #: templates/account/partials/site.php:169
1875
+ msgid "Opt Out"
1876
  msgstr ""
1877
 
1878
  #: templates/account/partials/site.php:189
1899
  msgid "Contact Support"
1900
  msgstr ""
1901
 
1902
+ #: templates/forms/deactivation/form.php:65
1903
  msgid "Anonymous feedback"
1904
  msgstr ""
1905
 
1906
+ #: templates/forms/deactivation/form.php:71
1907
+ msgid "hour"
1908
+ msgstr ""
1909
+
1910
+ #: templates/forms/deactivation/form.php:76
1911
+ msgid "hours"
1912
+ msgstr ""
1913
+
1914
+ #: templates/forms/deactivation/form.php:81, templates/forms/deactivation/form.php:86
1915
+ msgid "days"
1916
+ msgstr ""
1917
+
1918
+ #: templates/forms/deactivation/form.php:106
1919
  msgid "Deactivate"
1920
  msgstr ""
1921
 
1922
+ #: templates/forms/deactivation/form.php:108
1923
  msgid "Activate %s"
1924
  msgstr ""
1925
 
1926
+ #: templates/forms/deactivation/form.php:111
1927
+ msgid "Submit & %s"
1928
+ msgstr ""
1929
+
1930
+ #: templates/forms/deactivation/form.php:130
1931
  msgid "Quick Feedback"
1932
  msgstr ""
1933
 
1934
+ #: templates/forms/deactivation/form.php:134
1935
  msgid "If you have a moment, please let us know why you are %s"
1936
  msgstr ""
1937
 
1938
+ #: templates/forms/deactivation/form.php:134
1939
  msgid "deactivating"
1940
  msgstr ""
1941
 
1942
+ #: templates/forms/deactivation/form.php:134
1943
  msgid "switching"
1944
  msgstr ""
1945
 
1946
+ #: templates/forms/deactivation/form.php:448
1947
+ msgid "Kindly tell us the reason so we can improve."
1948
  msgstr ""
1949
 
1950
+ #: templates/forms/deactivation/form.php:478
1951
+ msgid "Snooze & %s"
1952
  msgstr ""
1953
 
1954
+ #: templates/forms/deactivation/form.php:638
1955
  msgid "Yes - %s"
1956
  msgstr ""
1957
 
1958
+ #: templates/forms/deactivation/form.php:645
1959
  msgid "Skip & %s"
1960
  msgstr ""
1961
 
fs/lib/start.php CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @var string
17
  */
18
- $this_sdk_version = '2.4.4';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
15
  *
16
  * @var string
17
  */
18
+ $this_sdk_version = '2.4.5';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
includes/Analytics/Database.php CHANGED
@@ -175,4 +175,13 @@ class Database {
175
 
176
  return intval( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->dgwt_wcas_stats" ) );
177
  }
 
 
 
 
 
 
 
 
 
178
  }
175
 
176
  return intval( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->dgwt_wcas_stats" ) );
177
  }
178
+
179
+ /**
180
+ * @return string
181
+ */
182
+ public static function getTableName() {
183
+ global $wpdb;
184
+
185
+ return $wpdb->prefix . Database::DB_NAME;
186
+ }
187
  }
includes/Analytics/UserInterface.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace DgoraWcas\Analytics;
4
 
 
5
  use DgoraWcas\Multilingual ;
6
  // Exit if accessed directly
7
  if ( !defined( 'ABSPATH' ) ) {
@@ -16,6 +17,7 @@ class UserInterface
16
  const LOAD_MORE_SEARCH_PAGE_NONCE = 'analytics-load-more-search-page' ;
17
  const CRITICAL_CHECK_NONCE = 'analytics-critical-check' ;
18
  const EXCLUDE_CRITICAL_PHRASE_NONCE = 'analytics-exclude-critical-phrase' ;
 
19
  const CSS_CLASS_PLACEHOLDER = 'js-dgwt-wcas-stats-placeholder' ;
20
  const CRITICAL_SEARCHES_LOAD_LIMIT = 10 ;
21
  const TABLE_ROW_LIMIT_LIMIT = 10 ;
@@ -51,6 +53,7 @@ class UserInterface
51
  add_action( 'wp_ajax_dgwt_wcas_laod_more_search_page', array( $this, 'loadMoreSearchPage' ) );
52
  add_action( 'wp_ajax_dgwt_wcas_check_critical_phrase', array( $this, 'checkCriticalPhrase' ) );
53
  add_action( 'wp_ajax_dgwt_wcas_exclude_critical_phrase', array( $this, 'excludeCriticalPhrase' ) );
 
54
  if ( $this->analytics->isModuleEnabled() ) {
55
  add_action( DGWT_WCAS_SETTINGS_KEY . '-form_end_' . self::SECTION_ID, array( $this, 'tabContent' ) );
56
  }
@@ -116,10 +119,14 @@ class UserInterface
116
  'load_more_search_page' => wp_create_nonce( self::LOAD_MORE_SEARCH_PAGE_NONCE ),
117
  'check_critical_phrase' => wp_create_nonce( self::CRITICAL_CHECK_NONCE ),
118
  'exclude_critical_phrase' => wp_create_nonce( self::EXCLUDE_CRITICAL_PHRASE_NONCE ),
 
119
  ),
120
  'enabled' => $this->analytics->isModuleEnabled(),
121
  'images' => array(
122
  'placeholder' => DGWT_WCAS_URL . 'assets/img/admin-stats-placeholder.png',
 
 
 
123
  ),
124
  );
125
  return $localize;
@@ -415,6 +422,21 @@ class UserInterface
415
  wp_send_json_error( 'empty phrase' );
416
  }
417
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
418
  /**
419
  * Prepare vars for the view
420
  *
@@ -442,6 +464,7 @@ class UserInterface
442
  'synonyms' => $mainUrl . '#synonyms',
443
  'support' => 'https://fibosearch.com/contact/',
444
  ),
 
445
  );
446
  // Autocomplete
447
  $data->setContext( 'autocomplete' );
2
 
3
  namespace DgoraWcas\Analytics;
4
 
5
+ use DgoraWcas\Helpers ;
6
  use DgoraWcas\Multilingual ;
7
  // Exit if accessed directly
8
  if ( !defined( 'ABSPATH' ) ) {
17
  const LOAD_MORE_SEARCH_PAGE_NONCE = 'analytics-load-more-search-page' ;
18
  const CRITICAL_CHECK_NONCE = 'analytics-critical-check' ;
19
  const EXCLUDE_CRITICAL_PHRASE_NONCE = 'analytics-exclude-critical-phrase' ;
20
+ const RESET_STATS_NONCE = 'analytics-reset-stats' ;
21
  const CSS_CLASS_PLACEHOLDER = 'js-dgwt-wcas-stats-placeholder' ;
22
  const CRITICAL_SEARCHES_LOAD_LIMIT = 10 ;
23
  const TABLE_ROW_LIMIT_LIMIT = 10 ;
53
  add_action( 'wp_ajax_dgwt_wcas_laod_more_search_page', array( $this, 'loadMoreSearchPage' ) );
54
  add_action( 'wp_ajax_dgwt_wcas_check_critical_phrase', array( $this, 'checkCriticalPhrase' ) );
55
  add_action( 'wp_ajax_dgwt_wcas_exclude_critical_phrase', array( $this, 'excludeCriticalPhrase' ) );
56
+ add_action( 'wp_ajax_dgwt_wcas_reset_stats', array( $this, 'resetStats' ) );
57
  if ( $this->analytics->isModuleEnabled() ) {
58
  add_action( DGWT_WCAS_SETTINGS_KEY . '-form_end_' . self::SECTION_ID, array( $this, 'tabContent' ) );
59
  }
119
  'load_more_search_page' => wp_create_nonce( self::LOAD_MORE_SEARCH_PAGE_NONCE ),
120
  'check_critical_phrase' => wp_create_nonce( self::CRITICAL_CHECK_NONCE ),
121
  'exclude_critical_phrase' => wp_create_nonce( self::EXCLUDE_CRITICAL_PHRASE_NONCE ),
122
+ 'reset_stats' => wp_create_nonce( self::RESET_STATS_NONCE ),
123
  ),
124
  'enabled' => $this->analytics->isModuleEnabled(),
125
  'images' => array(
126
  'placeholder' => DGWT_WCAS_URL . 'assets/img/admin-stats-placeholder.png',
127
+ ),
128
+ 'labels' => array(
129
+ 'reset_stats_confirm' => __( 'Are you sure you want to reset stats?', 'ajax-search-for-woocommerce' ),
130
  ),
131
  );
132
  return $localize;
422
  wp_send_json_error( 'empty phrase' );
423
  }
424
 
425
+ /**
426
+ * Reset stats. AJAX callback
427
+ *
428
+ * @return void
429
+ */
430
+ public function resetStats()
431
+ {
432
+ if ( !current_user_can( 'administrator' ) ) {
433
+ wp_die( -1, 403 );
434
+ }
435
+ check_ajax_referer( self::RESET_STATS_NONCE );
436
+ Database::wipeAllRecords();
437
+ wp_send_json_success();
438
+ }
439
+
440
  /**
441
  * Prepare vars for the view
442
  *
464
  'synonyms' => $mainUrl . '#synonyms',
465
  'support' => 'https://fibosearch.com/contact/',
466
  ),
467
+ 'table-info' => Helpers::getTableInfo( Database::getTableName() ),
468
  );
469
  // Autocomplete
470
  $data->setContext( 'autocomplete' );
includes/Blocks.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace DgoraWcas;
4
+
5
+ // Exit if accessed directly
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
+
10
+ class Blocks {
11
+ public function init() {
12
+ add_action( 'init', function () {
13
+ $this->registerBlocks();
14
+
15
+ add_filter( 'widget_types_to_hide_from_legacy_widget_block', array( $this, 'hideLegacyWidgetBlock' ) );
16
+ } );
17
+ }
18
+
19
+ private function registerBlocks() {
20
+ register_block_type(
21
+ DGWT_WCAS_DIR . 'build/blocks/search',
22
+ array(
23
+ 'render_callback' => array( $this, 'renderCallback' ),
24
+ )
25
+ );
26
+
27
+ register_block_type(
28
+ DGWT_WCAS_DIR . 'build/blocks/search-nav',
29
+ array(
30
+ 'render_callback' => array( $this, 'renderCallback' ),
31
+ )
32
+ );
33
+ }
34
+
35
+ /**
36
+ * Render FiboSearch blocks content
37
+ *
38
+ * @param $attributes
39
+ * @param $content
40
+ * @param $block
41
+ *
42
+ * @return string
43
+ */
44
+ public function renderCallback( $attributes, $content, $block ) {
45
+ $normalizedAttributes = array();
46
+
47
+ $isBackend = defined( 'REST_REQUEST' ) && REST_REQUEST && filter_input( INPUT_GET, 'context', FILTER_SANITIZE_STRING ) === 'edit';
48
+
49
+ if ( isset( $attributes['inheritPluginSettings'] ) && ! $attributes['inheritPluginSettings'] ) {
50
+ if ( isset( $attributes['layout'] ) ) {
51
+ $normalizedAttributes['layout'] = esc_attr( $attributes['layout'] );
52
+ }
53
+ if ( isset( $attributes['darkenedBackground'] ) ) {
54
+ $normalizedAttributes['darken_bg'] = esc_attr( $attributes['darkenedBackground'] );
55
+ }
56
+ if ( isset( $attributes['mobileOverlay'] ) ) {
57
+ $normalizedAttributes['mobile_overlay'] = esc_attr( $attributes['mobileOverlay'] );
58
+ }
59
+ if ( isset( $attributes['iconColor'] ) ) {
60
+ $normalizedAttributes['icon_color'] = esc_attr( $attributes['iconColor'] );
61
+ }
62
+
63
+ if ( $isBackend ) {
64
+ if ( isset( $attributes['layout'] ) && $attributes['layout'] === 'icon-flexible' ) {
65
+ ob_start();
66
+
67
+ echo '<div class="dgwt-wcas-show-on-preview-desktop">';
68
+ $normalizedAttributes['layout'] = 'classic';
69
+ echo do_shortcode( '[fibosearch ' . $this->getAttributesString( $normalizedAttributes ) . ']' );
70
+ echo '</div>';
71
+
72
+ echo '<div class="dgwt-wcas-show-on-preview-tablet dgwt-wcas-show-on-preview-mobile">';
73
+ $normalizedAttributes['layout'] = 'icon';
74
+ echo do_shortcode( '[fibosearch ' . $this->getAttributesString( $normalizedAttributes ) . ']' );
75
+ echo '</div>';
76
+
77
+ return ob_get_clean();
78
+ } else if ( isset( $attributes['layout'] ) && $attributes['layout'] === 'icon-flexible-inv' ) {
79
+ ob_start();
80
+
81
+ echo '<div class="dgwt-wcas-show-on-preview-desktop">';
82
+ $normalizedAttributes['layout'] = 'icon';
83
+ echo do_shortcode( '[fibosearch ' . $this->getAttributesString( $normalizedAttributes ) . ']' );
84
+ echo '</div>';
85
+
86
+ echo '<div class="dgwt-wcas-show-on-preview-tablet dgwt-wcas-show-on-preview-mobile">';
87
+ $normalizedAttributes['layout'] = 'classic';
88
+ echo do_shortcode( '[fibosearch ' . $this->getAttributesString( $normalizedAttributes ) . ']' );
89
+ echo '</div>';
90
+
91
+ return ob_get_clean();
92
+ }
93
+ }
94
+ }
95
+
96
+ return do_shortcode( '[fibosearch ' . $this->getAttributesString( $normalizedAttributes ) . ']' );
97
+ }
98
+
99
+ public function hideLegacyWidgetBlock( $widgetTypes ) {
100
+ $widgetTypes[] = 'dgwt_wcas_ajax_search';
101
+
102
+ return $widgetTypes;
103
+ }
104
+
105
+ private function getAttributesString( $attributes ) {
106
+ $attributesStringArr = array_map( function ( $key, $value ) {
107
+ return $key . '="' . $value . '"';
108
+ }, array_keys( $attributes ), $attributes );
109
+
110
+ return implode( ' ', $attributesStringArr );
111
+ }
112
+ }
includes/Engines/WordPressNative/Search.php CHANGED
@@ -290,9 +290,26 @@ class Search
290
  if ( !$product->isCorrect() ) {
291
  continue;
292
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  $r = array(
294
  'post_id' => $product->getID(),
295
- 'value' => html_entity_decode( wp_strip_all_tags( $product->getName() ) ),
296
  'url' => $product->getPermalink(),
297
  'type' => 'product',
298
  );
290
  if ( !$product->isCorrect() ) {
291
  continue;
292
  }
293
+ // Strip <script> and <style> tags along with their contents.
294
+ $value = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $product->getName() );
295
+ // Strip remaining tags except those indicated.
296
+ $value = html_entity_decode( wp_kses( $value, array(
297
+ 'b' => array(
298
+ 'class' => true,
299
+ ),
300
+ 'br' => array(),
301
+ 'span' => array(
302
+ 'class' => true,
303
+ ),
304
+ 'strong' => array(
305
+ 'class' => true,
306
+ ),
307
+ 'sub' => array(),
308
+ 'sup' => array(),
309
+ ) ) );
310
  $r = array(
311
  'post_id' => $product->getID(),
312
+ 'value' => $value,
313
  'url' => $product->getPermalink(),
314
  'type' => 'product',
315
  );
includes/Helpers.php CHANGED
@@ -116,9 +116,9 @@ class Helpers
116
  *
117
  * @return string
118
  */
119
- public static function getMagnifierIco( $class = 'dgwt-wcas-ico-magnifier', $type = 'magnifier-thin' )
120
  {
121
- return apply_filters( 'dgwt/wcas/form/magnifier_ico', self::getIcon( $type, $class ), $class );
122
  }
123
 
124
  /**
@@ -132,43 +132,43 @@ class Helpers
132
  ob_start();
133
  switch ( $name ) {
134
  case 'magnifier-thin':
135
- $color = ( empty($color) ? '#444' : $color );
136
  ?>
137
- <svg version="1.1" class="<?php
138
  echo $class ;
139
  ?>" xmlns="http://www.w3.org/2000/svg"
140
  xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
141
- viewBox="0 0 51.539 51.361" enable-background="new 0 0 51.539 51.361" xml:space="preserve">
142
- <path fill="<?php
143
- echo $color ;
144
- ?>"
145
  d="M51.539,49.356L37.247,35.065c3.273-3.74,5.272-8.623,5.272-13.983c0-11.742-9.518-21.26-21.26-21.26 S0,9.339,0,21.082s9.518,21.26,21.26,21.26c5.361,0,10.244-1.999,13.983-5.272l14.292,14.292L51.539,49.356z M2.835,21.082 c0-10.176,8.249-18.425,18.425-18.425s18.425,8.249,18.425,18.425S31.436,39.507,21.26,39.507S2.835,31.258,2.835,21.082z"/>
146
  </svg>
147
  <?php
148
  break;
149
  case 'magnifier-md':
150
- $color = ( empty($color) ? '#444' : $color );
151
  ?>
152
  <svg class="<?php
153
  echo $class ;
154
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24"
155
  width="24">
156
- <path fill="<?php
157
- echo $color ;
158
- ?>"
159
  d="M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
160
  </svg>
161
  <?php
162
  break;
163
  case 'magnifier-pirx':
164
- $color = ( empty($color) ? '#111111' : $color );
165
  ?>
166
  <svg class="<?php
167
  echo $class ;
168
  ?>" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
169
- <path fill="<?php
170
- echo $color ;
171
- ?>" d=" M 16.722523,17.901412 C 16.572585,17.825208 15.36088,16.670476 14.029846,15.33534 L 11.609782,12.907819 11.01926,13.29667 C 8.7613237,14.783493 5.6172703,14.768302 3.332423,13.259528 -0.07366363,11.010358 -1.0146502,6.5989684 1.1898146,3.2148776
172
  1.5505179,2.6611594 2.4056498,1.7447266 2.9644271,1.3130497 3.4423015,0.94387379 4.3921825,0.48568469 5.1732652,0.2475835 5.886299,0.03022609 6.1341883,0 7.2037391,0 8.2732897,0 8.521179,0.03022609 9.234213,0.2475835 c 0.781083,0.23810119 1.730962,0.69629029 2.208837,1.0654662
173
  0.532501,0.4113763 1.39922,1.3400096 1.760153,1.8858877 1.520655,2.2998531 1.599025,5.3023778 0.199549,7.6451086 -0.208076,0.348322 -0.393306,0.668209 -0.411622,0.710863 -0.01831,0.04265 1.065556,1.18264 2.408603,2.533307 1.343046,1.350666 2.486621,2.574792 2.541278,2.720279 0.282475,0.7519
174
  -0.503089,1.456506 -1.218488,1.092917 z M 8.4027892,12.475062 C 9.434946,12.25579 10.131043,11.855461 10.99416,10.984753 11.554519,10.419467 11.842507,10.042366 12.062078,9.5863882 12.794223,8.0659672 12.793657,6.2652398 12.060578,4.756293 11.680383,3.9737304 10.453587,2.7178427
@@ -179,55 +179,58 @@ class Helpers
179
  <?php
180
  break;
181
  case 'arrow-left':
182
- $color = ( empty($color) ? '#fff' : $color );
183
  ?>
184
  <svg class="<?php
185
  echo $class ;
186
  ?>" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
187
- <path fill="<?php
188
- echo $color ;
189
- ?>"
190
  d="M14 6.125H3.351l4.891-4.891L7 0 0 7l7 7 1.234-1.234L3.35 7.875H14z" fill-rule="evenodd"/>
191
  </svg>
192
  <?php
193
  break;
194
  case 'close':
195
- $color = ( empty($color) ? '#ccc' : $color );
196
  ?>
197
  <svg class="<?php
198
  echo $class ;
199
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24"
200
  width="24">
201
- <path fill="<?php
202
- echo $color ;
203
- ?>"
204
  d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>
205
  </svg>
206
  <?php
207
  break;
208
  case 'preloader':
209
- $color = ( empty($color) ? '#ddd' : $color );
210
  ?>
211
  <svg class="dgwt-wcas-loader-circular <?php
212
  echo $class ;
213
  ?>" viewBox="25 25 50 50">
214
  <circle class="dgwt-wcas-loader-circular-path" cx="50" cy="50" r="20" fill="none"
215
- stroke="<?php
216
- echo $color ;
217
- ?>" stroke-miterlimit="10"/>
218
  </svg>
219
  <?php
220
  break;
221
  case 'face-smile':
222
- $color = ( empty($color) ? '#ddd' : $color );
 
223
  ?>
224
  <svg class="<?php
225
  echo $class ;
226
- ?>" width="64" height="54" viewBox="0 0 64 54" xmlns="http://www.w3.org/2000/svg">
 
 
227
  <g transform="translate(-34.294922,-62.985674)">
228
- <path fill="<?php
229
- echo $color ;
230
- ?>"
231
  d="m 60.814237,116.23604 c -9.048223,-1.66914 -16.519379,-6.20497 -21.793789,-13.23128 -1.60071,-2.1324 -4.314629,-7.202619 -4.669151,-8.723059 -0.160775,-0.68952 -0.10638,-0.72795 1.948599,-1.37712 2.642805,-0.83486 2.824539,-0.83179 3.160818,0.0535 2.303833,6.06532 7.117271,11.515849 13.090786,14.823419 3.461115,1.91644 6.665367,2.90424 10.975589,3.38351 8.531032,0.94862 17.134659,-2.15367 23.386899,-8.4328 3.02499,-3.037969 4.6729,-5.555849 6.38356,-9.753479 l 0.39246,-0.963 2.31721,0.75094 c 2.22899,0.72234 2.31594,0.77987 2.28317,1.51079 -0.042,0.93936 -2.04226,5.11147 -3.54876,7.402399 -1.51073,2.29734 -5.78521,6.66064 -8.29613,8.46852 -4.24115,3.05365 -9.37348,5.21483 -14.417657,6.07116 -2.90299,0.49283 -8.586032,0.50118 -11.213604,0.0164 z M 47.412846,73.573941 c -0.309888,-0.59465 -0.464319,-1.51592 -0.477161,-2.84652 -0.02483,-2.57365 0.873951,-4.54095 2.753263,-6.02646 1.633788,-1.29143 2.83173,-1.69831 4.961024,-1.685 2.909938,0.0182 5.40834,1.54992 6.76366,4.14667 0.581876,1.11485 0.698121,1.68141 0.704505,3.43363 0.0045,1.23792 -0.144736,2.45984 -0.363942,2.97966 -0.361143,0.85641 -0.401692,0.87525 -1.4427,0.67016 -1.441299,-0.28395 -9.681541,-0.29597 -11.215046,-0.0164 -1.208977,0.22044 -1.231574,0.21163 -1.683603,-0.65577 z m 23.590775,-0.1224 c -0.24773,-0.57773 -0.44716,-1.76886 -0.46047,-2.75021 -0.0439,-3.23955 2.24441,-6.50245 5.168157,-7.3692 3.62299,-1.07405 7.38202,0.40563 9.28658,3.6555 0.92458,1.57769 1.14637,4.5061 0.47452,6.26533 l -0.46168,1.20889 -1.21243,-0.22321 c -1.58287,-0.29141 -9.51286,-0.28827 -11.113147,0.004 l -1.24453,0.22755 z"
232
  id="path21"/>
233
  </g>
@@ -235,107 +238,110 @@ class Helpers
235
  <?php
236
  break;
237
  case 'face-sad':
238
- $color = ( empty($color) ? '#ddd' : $color );
 
239
  ?>
240
  <svg class="<?php
241
  echo $class ;
242
- ?>" width="64" height="54" viewBox="0 0 64 54" xmlns="http://www.w3.org/2000/svg">
 
 
243
  <g
244
  transform="translate(-34.294922,-62.985674)">
245
  <path
246
- fill="<?php
247
- echo $color ;
248
- ?>"
249
  d="m 65.333527,90.188647 c -4.021671,0.04374 -7.952038,1.143031 -11.366869,2.831872 -2.463508,1.202323 -4.481746,2.907174 -6.347127,4.661802 -1.281094,1.28132 -2.179231,2.786709 -2.971747,4.298239 -0.224234,0.44934 -0.524822,1.14105 0.121782,1.45463 1.051756,0.40354 2.200055,0.61503 3.294735,0.93066 0.910618,-1.93591 2.051059,-3.84127 3.823337,-5.359309 2.631922,-2.416592 6.216388,-4.201746 10.051876,-4.937105 3.649681,-0.714791 7.581941,-0.473293 11.128238,0.561988 5.123487,1.585728 9.378549,4.981727 11.316726,9.159886 0.309445,0.53176 1.133677,0.34172 1.670314,0.20167 0.749446,-0.21997 1.601188,-0.3033 2.249216,-0.69551 0.392685,-0.41377 -0.04361,-0.941 -0.217903,-1.36088 -1.187297,-2.097179 -2.607848,-4.146079 -4.601341,-5.811643 -3.684753,-3.211163 -8.802941,-5.255991 -14.137691,-5.844622 -1.333029,-0.105798 -2.675274,-0.117509 -4.013546,-0.09168 z"/>
250
  <path
251
- fill="<?php
252
- echo $color ;
253
- ?>"
254
  d="m 98.621511,94.193314 c -42.884393,-20.805093 -21.442196,-10.402547 0,0 z M 47.743964,73.489793 c -0.309888,-0.59465 -0.464319,-1.51592 -0.477161,-2.84652 -0.02483,-2.57365 0.873951,-4.54095 2.753263,-6.02646 1.633788,-1.29143 2.83173,-1.69831 4.961024,-1.685 2.909938,0.0182 5.40834,1.54992 6.76366,4.14667 0.581876,1.11485 0.698121,1.68141 0.704505,3.43363 0.0045,1.23792 -0.144736,2.45984 -0.363942,2.97966 -0.361143,0.85641 -0.401692,0.87525 -1.4427,0.67016 -1.441299,-0.28395 -9.681541,-0.29597 -11.215046,-0.0164 -1.208977,0.22044 -1.231574,0.21163 -1.683603,-0.65577 z m 23.590775,-0.1224 c -0.24773,-0.57773 -0.44716,-1.76886 -0.46047,-2.75021 -0.0439,-3.23955 2.24441,-6.50245 5.168157,-7.3692 3.62299,-1.07405 7.38202,0.40563 9.28658,3.6555 0.92458,1.57769 1.14637,4.5061 0.47452,6.26533 l -0.46168,1.20889 -1.21243,-0.22321 c -1.58287,-0.29141 -9.51286,-0.28827 -11.113147,0.004 l -1.24453,0.22755 z"/>
255
  </g>
256
  </svg>
257
  <?php
258
  break;
259
  case 'voice-search-inactive':
260
- $color = ( empty($color) ? '#444' : $color );
261
  ?>
262
  <svg class="<?php
263
  echo $class ;
264
  ?>" xmlns="http://www.w3.org/2000/svg" height="24"
265
  width="24">
266
- <path fill="<?php
267
- echo $color ;
268
- ?>"
269
  d="M12 13Q11.15 13 10.575 12.425Q10 11.85 10 11V5Q10 4.15 10.575 3.575Q11.15 3 12 3Q12.85 3 13.425 3.575Q14 4.15 14 5V11Q14 11.85 13.425 12.425Q12.85 13 12 13ZM12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8ZM11.5 20.5V16.975Q9.15 16.775 7.575 15.062Q6 13.35 6 11H7Q7 13.075 8.463 14.537Q9.925 16 12 16Q14.075 16 15.538 14.537Q17 13.075 17 11H18Q18 13.35 16.425 15.062Q14.85 16.775 12.5 16.975V20.5ZM12 12Q12.425 12 12.713 11.712Q13 11.425 13 11V5Q13 4.575 12.713 4.287Q12.425 4 12 4Q11.575 4 11.288 4.287Q11 4.575 11 5V11Q11 11.425 11.288 11.712Q11.575 12 12 12Z"/>
270
  </svg>
271
  <?php
272
  break;
273
  case 'voice-search-inactive-pirx':
274
  // https://fonts.google.com/icons Icon: Mic Fill: 0 Weight: 400 Grade: 0 Optical size: 24
275
- $color = ( empty($color) ? '#444' : $color );
276
  ?>
277
  <svg class="<?php
278
  echo $class ;
279
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
280
- <path fill="<?php
281
- echo $color ;
282
- ?>"
283
  d="M12 14q-1.25 0-2.125-.875T9 11V5q0-1.25.875-2.125T12 2q1.25 0 2.125.875T15 5v6q0 1.25-.875 2.125T12 14Zm0-6Zm-1 13v-3.075q-2.6-.35-4.3-2.325Q5 13.625 5 11h2q0 2.075 1.463 3.537Q9.925 16 12 16t3.538-1.463Q17 13.075 17 11h2q0 2.625-1.7 4.6-1.7 1.975-4.3 2.325V21Zm1-9q.425 0 .713-.288Q13 11.425 13 11V5q0-.425-.287-.713Q12.425 4 12 4t-.712.287Q11 4.575 11 5v6q0 .425.288.712.287.288.712.288Z"/>
284
  </svg>
285
  <?php
286
  break;
287
  case 'voice-search-active':
288
- $color = ( empty($color) ? '#444' : $color );
289
  ?>
290
  <svg class="<?php
291
  echo $class ;
292
  ?>" xmlns="http://www.w3.org/2000/svg" height="24"
293
  width="24">
294
- <path fill="<?php
295
- echo $color ;
296
- ?>"
297
  d="M12 13Q11.15 13 10.575 12.425Q10 11.85 10 11V5Q10 4.15 10.575 3.575Q11.15 3 12 3Q12.85 3 13.425 3.575Q14 4.15 14 5V11Q14 11.85 13.425 12.425Q12.85 13 12 13ZM11.5 20.5V16.975Q9.15 16.775 7.575 15.062Q6 13.35 6 11H7Q7 13.075 8.463 14.537Q9.925 16 12 16Q14.075 16 15.538 14.537Q17 13.075 17 11H18Q18 13.35 16.425 15.062Q14.85 16.775 12.5 16.975V20.5Z"/>
298
  </svg>
299
  <?php
300
  break;
301
  case 'voice-search-active-pirx':
302
  // https://fonts.google.com/icons Icon: Mic Fill: 1 Weight: 400 Grade: 0 Optical size: 24
303
- $color = ( empty($color) ? '#444' : $color );
304
  ?>
305
  <svg class="<?php
306
  echo $class ;
307
  ?>" xmlns="http://www.w3.org/2000/svg" height="24"
308
  width="24">
309
- <path fill="<?php
310
- echo $color ;
311
- ?>"
312
  d="M12 14q-1.25 0-2.125-.875T9 11V5q0-1.25.875-2.125T12 2q1.25 0 2.125.875T15 5v6q0 1.25-.875 2.125T12 14Zm-1 7v-3.075q-2.6-.35-4.3-2.325Q5 13.625 5 11h2q0 2.075 1.463 3.537Q9.925 16 12 16t3.538-1.463Q17 13.075 17 11h2q0 2.625-1.7 4.6-1.7 1.975-4.3 2.325V21Z"/>
313
  </svg>
314
  <?php
315
  break;
316
  case 'voice-search-disabled':
317
- $color = ( empty($color) ? '#444' : $color );
318
  ?>
319
  <svg class="<?php
320
  echo $class ;
321
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
322
- <path fill="<?php
323
- echo $color ;
324
- ?>"
325
  d="M16.725 13.4 15.975 12.625Q16.1 12.325 16.2 11.9Q16.3 11.475 16.3 11H17.3Q17.3 11.75 17.138 12.337Q16.975 12.925 16.725 13.4ZM13.25 9.9 9.3 5.925V5Q9.3 4.15 9.875 3.575Q10.45 3 11.3 3Q12.125 3 12.713 3.575Q13.3 4.15 13.3 5V9.7Q13.3 9.75 13.275 9.8Q13.25 9.85 13.25 9.9ZM10.8 20.5V17.025Q8.45 16.775 6.875 15.062Q5.3 13.35 5.3 11H6.3Q6.3 13.075 7.763 14.537Q9.225 16 11.3 16Q12.375 16 13.312 15.575Q14.25 15.15 14.925 14.4L15.625 15.125Q14.9 15.9 13.913 16.4Q12.925 16.9 11.8 17.025V20.5ZM19.925 20.825 1.95 2.85 2.675 2.15 20.65 20.125Z"/>
326
  </svg>
327
  <?php
328
  break;
329
  case 'voice-search-disabled-pirx':
330
  // https://fonts.google.com/icons Icon: Mic Off Fill: 1 Weight: 400 Grade: 0 Optical size: 24
331
- $color = ( empty($color) ? '#444' : $color );
332
  ?>
333
  <svg class="<?php
334
  echo $class ;
335
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
336
- <path fill="<?php
337
- echo $color ;
338
- ?>"
339
  d="M17.75 14.95 16.3 13.5q.35-.575.525-1.2Q17 11.675 17 11h2q0 1.1-.325 2.087-.325.988-.925 1.863Zm-2.95-3L9 6.15V5q0-1.25.875-2.125T12 2q1.25 0 2.125.875T15 5v6q0 .275-.062.5-.063.225-.138.45ZM11 21v-3.1q-2.6-.35-4.3-2.312Q5 13.625 5 11h2q0 2.075 1.463 3.537Q9.925 16 12 16q.85 0 1.613-.262.762-.263 1.387-.738l1.425 1.425q-.725.575-1.587.962-.863.388-1.838.513V21Zm8.8 1.6L1.4 4.2l1.4-1.4 18.4 18.4Z"/>
340
  </svg>
341
  <?php
@@ -1351,6 +1357,7 @@ class Helpers
1351
  'mobile_overlay_breakpoint' => apply_filters( 'dgwt/wcas/scripts/mobile_overlay_breakpoint', $mobileOverlayBreakpoint ),
1352
  'mobile_overlay_wrapper' => apply_filters( 'dgwt/wcas/scripts/mobile_overlay_wrapper', 'body' ),
1353
  'darken_background' => ( DGWT_WCAS()->settings->getOption( 'darken_background', 'off' ) === 'on' ? true : false ),
 
1354
  );
1355
  if ( $layout['style'] === 'pirx' ) {
1356
  $layout['icon'] = 'magnifier-pirx';
@@ -1760,5 +1767,31 @@ class Helpers
1760
  $length = strlen( $needle );
1761
  return ( $length > 0 ? substr( $haystack, -$length ) === $needle : true );
1762
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1763
 
1764
  }
116
  *
117
  * @return string
118
  */
119
+ public static function getMagnifierIco( $class = 'dgwt-wcas-ico-magnifier', $type = 'magnifier-thin', $color = '' )
120
  {
121
+ return apply_filters( 'dgwt/wcas/form/magnifier_ico', self::getIcon( $type, $class, $color ), $class );
122
  }
123
 
124
  /**
132
  ob_start();
133
  switch ( $name ) {
134
  case 'magnifier-thin':
135
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
136
  ?>
137
+ <svg class="<?php
138
  echo $class ;
139
  ?>" xmlns="http://www.w3.org/2000/svg"
140
  xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
141
+ viewBox="0 0 51.539 51.361" xml:space="preserve">
142
+ <path <?php
143
+ echo $style ;
144
+ ?>
145
  d="M51.539,49.356L37.247,35.065c3.273-3.74,5.272-8.623,5.272-13.983c0-11.742-9.518-21.26-21.26-21.26 S0,9.339,0,21.082s9.518,21.26,21.26,21.26c5.361,0,10.244-1.999,13.983-5.272l14.292,14.292L51.539,49.356z M2.835,21.082 c0-10.176,8.249-18.425,18.425-18.425s18.425,8.249,18.425,18.425S31.436,39.507,21.26,39.507S2.835,31.258,2.835,21.082z"/>
146
  </svg>
147
  <?php
148
  break;
149
  case 'magnifier-md':
150
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
151
  ?>
152
  <svg class="<?php
153
  echo $class ;
154
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24"
155
  width="24">
156
+ <path <?php
157
+ echo $style ;
158
+ ?>
159
  d="M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
160
  </svg>
161
  <?php
162
  break;
163
  case 'magnifier-pirx':
164
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
165
  ?>
166
  <svg class="<?php
167
  echo $class ;
168
  ?>" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
169
+ <path <?php
170
+ echo $style ;
171
+ ?> d=" M 16.722523,17.901412 C 16.572585,17.825208 15.36088,16.670476 14.029846,15.33534 L 11.609782,12.907819 11.01926,13.29667 C 8.7613237,14.783493 5.6172703,14.768302 3.332423,13.259528 -0.07366363,11.010358 -1.0146502,6.5989684 1.1898146,3.2148776
172
  1.5505179,2.6611594 2.4056498,1.7447266 2.9644271,1.3130497 3.4423015,0.94387379 4.3921825,0.48568469 5.1732652,0.2475835 5.886299,0.03022609 6.1341883,0 7.2037391,0 8.2732897,0 8.521179,0.03022609 9.234213,0.2475835 c 0.781083,0.23810119 1.730962,0.69629029 2.208837,1.0654662
173
  0.532501,0.4113763 1.39922,1.3400096 1.760153,1.8858877 1.520655,2.2998531 1.599025,5.3023778 0.199549,7.6451086 -0.208076,0.348322 -0.393306,0.668209 -0.411622,0.710863 -0.01831,0.04265 1.065556,1.18264 2.408603,2.533307 1.343046,1.350666 2.486621,2.574792 2.541278,2.720279 0.282475,0.7519
174
  -0.503089,1.456506 -1.218488,1.092917 z M 8.4027892,12.475062 C 9.434946,12.25579 10.131043,11.855461 10.99416,10.984753 11.554519,10.419467 11.842507,10.042366 12.062078,9.5863882 12.794223,8.0659672 12.793657,6.2652398 12.060578,4.756293 11.680383,3.9737304 10.453587,2.7178427
179
  <?php
180
  break;
181
  case 'arrow-left':
182
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
183
  ?>
184
  <svg class="<?php
185
  echo $class ;
186
  ?>" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
187
+ <path <?php
188
+ echo $style ;
189
+ ?>
190
  d="M14 6.125H3.351l4.891-4.891L7 0 0 7l7 7 1.234-1.234L3.35 7.875H14z" fill-rule="evenodd"/>
191
  </svg>
192
  <?php
193
  break;
194
  case 'close':
195
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
196
  ?>
197
  <svg class="<?php
198
  echo $class ;
199
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24"
200
  width="24">
201
+ <path <?php
202
+ echo $style ;
203
+ ?>
204
  d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>
205
  </svg>
206
  <?php
207
  break;
208
  case 'preloader':
209
+ $style = ( empty($color) ? '' : 'style="stroke: ' . esc_attr( $color ) . '"' );
210
  ?>
211
  <svg class="dgwt-wcas-loader-circular <?php
212
  echo $class ;
213
  ?>" viewBox="25 25 50 50">
214
  <circle class="dgwt-wcas-loader-circular-path" cx="50" cy="50" r="20" fill="none"
215
+ <?php
216
+ echo $style ;
217
+ ?> stroke-miterlimit="10"/>
218
  </svg>
219
  <?php
220
  break;
221
  case 'face-smile':
222
+ $style = ( empty($color) ? '' : 'style="border-color: ' . esc_attr( $color ) . '"' );
223
+ $style2 = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
224
  ?>
225
  <svg class="<?php
226
  echo $class ;
227
+ ?>" <?php
228
+ echo $style ;
229
+ ?> width="64" height="54" viewBox="0 0 64 54" xmlns="http://www.w3.org/2000/svg">
230
  <g transform="translate(-34.294922,-62.985674)">
231
+ <path <?php
232
+ echo $style2 ;
233
+ ?>
234
  d="m 60.814237,116.23604 c -9.048223,-1.66914 -16.519379,-6.20497 -21.793789,-13.23128 -1.60071,-2.1324 -4.314629,-7.202619 -4.669151,-8.723059 -0.160775,-0.68952 -0.10638,-0.72795 1.948599,-1.37712 2.642805,-0.83486 2.824539,-0.83179 3.160818,0.0535 2.303833,6.06532 7.117271,11.515849 13.090786,14.823419 3.461115,1.91644 6.665367,2.90424 10.975589,3.38351 8.531032,0.94862 17.134659,-2.15367 23.386899,-8.4328 3.02499,-3.037969 4.6729,-5.555849 6.38356,-9.753479 l 0.39246,-0.963 2.31721,0.75094 c 2.22899,0.72234 2.31594,0.77987 2.28317,1.51079 -0.042,0.93936 -2.04226,5.11147 -3.54876,7.402399 -1.51073,2.29734 -5.78521,6.66064 -8.29613,8.46852 -4.24115,3.05365 -9.37348,5.21483 -14.417657,6.07116 -2.90299,0.49283 -8.586032,0.50118 -11.213604,0.0164 z M 47.412846,73.573941 c -0.309888,-0.59465 -0.464319,-1.51592 -0.477161,-2.84652 -0.02483,-2.57365 0.873951,-4.54095 2.753263,-6.02646 1.633788,-1.29143 2.83173,-1.69831 4.961024,-1.685 2.909938,0.0182 5.40834,1.54992 6.76366,4.14667 0.581876,1.11485 0.698121,1.68141 0.704505,3.43363 0.0045,1.23792 -0.144736,2.45984 -0.363942,2.97966 -0.361143,0.85641 -0.401692,0.87525 -1.4427,0.67016 -1.441299,-0.28395 -9.681541,-0.29597 -11.215046,-0.0164 -1.208977,0.22044 -1.231574,0.21163 -1.683603,-0.65577 z m 23.590775,-0.1224 c -0.24773,-0.57773 -0.44716,-1.76886 -0.46047,-2.75021 -0.0439,-3.23955 2.24441,-6.50245 5.168157,-7.3692 3.62299,-1.07405 7.38202,0.40563 9.28658,3.6555 0.92458,1.57769 1.14637,4.5061 0.47452,6.26533 l -0.46168,1.20889 -1.21243,-0.22321 c -1.58287,-0.29141 -9.51286,-0.28827 -11.113147,0.004 l -1.24453,0.22755 z"
235
  id="path21"/>
236
  </g>
238
  <?php
239
  break;
240
  case 'face-sad':
241
+ $style = ( empty($color) ? '' : 'style="border-color: ' . esc_attr( $color ) . '"' );
242
+ $style2 = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
243
  ?>
244
  <svg class="<?php
245
  echo $class ;
246
+ ?>" <?php
247
+ echo $style ;
248
+ ?> width="64" height="54" viewBox="0 0 64 54" xmlns="http://www.w3.org/2000/svg">
249
  <g
250
  transform="translate(-34.294922,-62.985674)">
251
  <path
252
+ <?php
253
+ echo $style2 ;
254
+ ?>
255
  d="m 65.333527,90.188647 c -4.021671,0.04374 -7.952038,1.143031 -11.366869,2.831872 -2.463508,1.202323 -4.481746,2.907174 -6.347127,4.661802 -1.281094,1.28132 -2.179231,2.786709 -2.971747,4.298239 -0.224234,0.44934 -0.524822,1.14105 0.121782,1.45463 1.051756,0.40354 2.200055,0.61503 3.294735,0.93066 0.910618,-1.93591 2.051059,-3.84127 3.823337,-5.359309 2.631922,-2.416592 6.216388,-4.201746 10.051876,-4.937105 3.649681,-0.714791 7.581941,-0.473293 11.128238,0.561988 5.123487,1.585728 9.378549,4.981727 11.316726,9.159886 0.309445,0.53176 1.133677,0.34172 1.670314,0.20167 0.749446,-0.21997 1.601188,-0.3033 2.249216,-0.69551 0.392685,-0.41377 -0.04361,-0.941 -0.217903,-1.36088 -1.187297,-2.097179 -2.607848,-4.146079 -4.601341,-5.811643 -3.684753,-3.211163 -8.802941,-5.255991 -14.137691,-5.844622 -1.333029,-0.105798 -2.675274,-0.117509 -4.013546,-0.09168 z"/>
256
  <path
257
+ <?php
258
+ echo $style2 ;
259
+ ?>
260
  d="m 98.621511,94.193314 c -42.884393,-20.805093 -21.442196,-10.402547 0,0 z M 47.743964,73.489793 c -0.309888,-0.59465 -0.464319,-1.51592 -0.477161,-2.84652 -0.02483,-2.57365 0.873951,-4.54095 2.753263,-6.02646 1.633788,-1.29143 2.83173,-1.69831 4.961024,-1.685 2.909938,0.0182 5.40834,1.54992 6.76366,4.14667 0.581876,1.11485 0.698121,1.68141 0.704505,3.43363 0.0045,1.23792 -0.144736,2.45984 -0.363942,2.97966 -0.361143,0.85641 -0.401692,0.87525 -1.4427,0.67016 -1.441299,-0.28395 -9.681541,-0.29597 -11.215046,-0.0164 -1.208977,0.22044 -1.231574,0.21163 -1.683603,-0.65577 z m 23.590775,-0.1224 c -0.24773,-0.57773 -0.44716,-1.76886 -0.46047,-2.75021 -0.0439,-3.23955 2.24441,-6.50245 5.168157,-7.3692 3.62299,-1.07405 7.38202,0.40563 9.28658,3.6555 0.92458,1.57769 1.14637,4.5061 0.47452,6.26533 l -0.46168,1.20889 -1.21243,-0.22321 c -1.58287,-0.29141 -9.51286,-0.28827 -11.113147,0.004 l -1.24453,0.22755 z"/>
261
  </g>
262
  </svg>
263
  <?php
264
  break;
265
  case 'voice-search-inactive':
266
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
267
  ?>
268
  <svg class="<?php
269
  echo $class ;
270
  ?>" xmlns="http://www.w3.org/2000/svg" height="24"
271
  width="24">
272
+ <path <?php
273
+ echo $style ;
274
+ ?>
275
  d="M12 13Q11.15 13 10.575 12.425Q10 11.85 10 11V5Q10 4.15 10.575 3.575Q11.15 3 12 3Q12.85 3 13.425 3.575Q14 4.15 14 5V11Q14 11.85 13.425 12.425Q12.85 13 12 13ZM12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8Q12 8 12 8ZM11.5 20.5V16.975Q9.15 16.775 7.575 15.062Q6 13.35 6 11H7Q7 13.075 8.463 14.537Q9.925 16 12 16Q14.075 16 15.538 14.537Q17 13.075 17 11H18Q18 13.35 16.425 15.062Q14.85 16.775 12.5 16.975V20.5ZM12 12Q12.425 12 12.713 11.712Q13 11.425 13 11V5Q13 4.575 12.713 4.287Q12.425 4 12 4Q11.575 4 11.288 4.287Q11 4.575 11 5V11Q11 11.425 11.288 11.712Q11.575 12 12 12Z"/>
276
  </svg>
277
  <?php
278
  break;
279
  case 'voice-search-inactive-pirx':
280
  // https://fonts.google.com/icons Icon: Mic Fill: 0 Weight: 400 Grade: 0 Optical size: 24
281
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
282
  ?>
283
  <svg class="<?php
284
  echo $class ;
285
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
286
+ <path <?php
287
+ echo $style ;
288
+ ?>
289
  d="M12 14q-1.25 0-2.125-.875T9 11V5q0-1.25.875-2.125T12 2q1.25 0 2.125.875T15 5v6q0 1.25-.875 2.125T12 14Zm0-6Zm-1 13v-3.075q-2.6-.35-4.3-2.325Q5 13.625 5 11h2q0 2.075 1.463 3.537Q9.925 16 12 16t3.538-1.463Q17 13.075 17 11h2q0 2.625-1.7 4.6-1.7 1.975-4.3 2.325V21Zm1-9q.425 0 .713-.288Q13 11.425 13 11V5q0-.425-.287-.713Q12.425 4 12 4t-.712.287Q11 4.575 11 5v6q0 .425.288.712.287.288.712.288Z"/>
290
  </svg>
291
  <?php
292
  break;
293
  case 'voice-search-active':
294
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
295
  ?>
296
  <svg class="<?php
297
  echo $class ;
298
  ?>" xmlns="http://www.w3.org/2000/svg" height="24"
299
  width="24">
300
+ <path <?php
301
+ echo $style ;
302
+ ?>
303
  d="M12 13Q11.15 13 10.575 12.425Q10 11.85 10 11V5Q10 4.15 10.575 3.575Q11.15 3 12 3Q12.85 3 13.425 3.575Q14 4.15 14 5V11Q14 11.85 13.425 12.425Q12.85 13 12 13ZM11.5 20.5V16.975Q9.15 16.775 7.575 15.062Q6 13.35 6 11H7Q7 13.075 8.463 14.537Q9.925 16 12 16Q14.075 16 15.538 14.537Q17 13.075 17 11H18Q18 13.35 16.425 15.062Q14.85 16.775 12.5 16.975V20.5Z"/>
304
  </svg>
305
  <?php
306
  break;
307
  case 'voice-search-active-pirx':
308
  // https://fonts.google.com/icons Icon: Mic Fill: 1 Weight: 400 Grade: 0 Optical size: 24
309
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
310
  ?>
311
  <svg class="<?php
312
  echo $class ;
313
  ?>" xmlns="http://www.w3.org/2000/svg" height="24"
314
  width="24">
315
+ <path <?php
316
+ echo $style ;
317
+ ?>
318
  d="M12 14q-1.25 0-2.125-.875T9 11V5q0-1.25.875-2.125T12 2q1.25 0 2.125.875T15 5v6q0 1.25-.875 2.125T12 14Zm-1 7v-3.075q-2.6-.35-4.3-2.325Q5 13.625 5 11h2q0 2.075 1.463 3.537Q9.925 16 12 16t3.538-1.463Q17 13.075 17 11h2q0 2.625-1.7 4.6-1.7 1.975-4.3 2.325V21Z"/>
319
  </svg>
320
  <?php
321
  break;
322
  case 'voice-search-disabled':
323
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
324
  ?>
325
  <svg class="<?php
326
  echo $class ;
327
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
328
+ <path <?php
329
+ echo $style ;
330
+ ?>
331
  d="M16.725 13.4 15.975 12.625Q16.1 12.325 16.2 11.9Q16.3 11.475 16.3 11H17.3Q17.3 11.75 17.138 12.337Q16.975 12.925 16.725 13.4ZM13.25 9.9 9.3 5.925V5Q9.3 4.15 9.875 3.575Q10.45 3 11.3 3Q12.125 3 12.713 3.575Q13.3 4.15 13.3 5V9.7Q13.3 9.75 13.275 9.8Q13.25 9.85 13.25 9.9ZM10.8 20.5V17.025Q8.45 16.775 6.875 15.062Q5.3 13.35 5.3 11H6.3Q6.3 13.075 7.763 14.537Q9.225 16 11.3 16Q12.375 16 13.312 15.575Q14.25 15.15 14.925 14.4L15.625 15.125Q14.9 15.9 13.913 16.4Q12.925 16.9 11.8 17.025V20.5ZM19.925 20.825 1.95 2.85 2.675 2.15 20.65 20.125Z"/>
332
  </svg>
333
  <?php
334
  break;
335
  case 'voice-search-disabled-pirx':
336
  // https://fonts.google.com/icons Icon: Mic Off Fill: 1 Weight: 400 Grade: 0 Optical size: 24
337
+ $style = ( empty($color) ? '' : 'style="fill: ' . esc_attr( $color ) . '"' );
338
  ?>
339
  <svg class="<?php
340
  echo $class ;
341
  ?>" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
342
+ <path <?php
343
+ echo $style ;
344
+ ?>
345
  d="M17.75 14.95 16.3 13.5q.35-.575.525-1.2Q17 11.675 17 11h2q0 1.1-.325 2.087-.325.988-.925 1.863Zm-2.95-3L9 6.15V5q0-1.25.875-2.125T12 2q1.25 0 2.125.875T15 5v6q0 .275-.062.5-.063.225-.138.45ZM11 21v-3.1q-2.6-.35-4.3-2.312Q5 13.625 5 11h2q0 2.075 1.463 3.537Q9.925 16 12 16q.85 0 1.613-.262.762-.263 1.387-.738l1.425 1.425q-.725.575-1.587.962-.863.388-1.838.513V21Zm8.8 1.6L1.4 4.2l1.4-1.4 18.4 18.4Z"/>
346
  </svg>
347
  <?php
1357
  'mobile_overlay_breakpoint' => apply_filters( 'dgwt/wcas/scripts/mobile_overlay_breakpoint', $mobileOverlayBreakpoint ),
1358
  'mobile_overlay_wrapper' => apply_filters( 'dgwt/wcas/scripts/mobile_overlay_wrapper', 'body' ),
1359
  'darken_background' => ( DGWT_WCAS()->settings->getOption( 'darken_background', 'off' ) === 'on' ? true : false ),
1360
+ 'icon_color' => DGWT_WCAS()->settings->getOption( 'search_icon_color' ),
1361
  );
1362
  if ( $layout['style'] === 'pirx' ) {
1363
  $layout['icon'] = 'magnifier-pirx';
1767
  $length = strlen( $needle );
1768
  return ( $length > 0 ? substr( $haystack, -$length ) === $needle : true );
1769
  }
1770
+
1771
+ /**
1772
+ * Get table info
1773
+ *
1774
+ * @return float[]
1775
+ */
1776
+ public static function getTableInfo( $table = '' )
1777
+ {
1778
+ global $wpdb ;
1779
+ if ( !defined( 'DB_NAME' ) || empty($table) ) {
1780
+ return array(
1781
+ 'data' => 0.0,
1782
+ 'index' => 0.0,
1783
+ );
1784
+ }
1785
+ $info = $wpdb->get_row( $wpdb->prepare( "SELECT\n\t\t\t\t\t round( ( data_length / 1024 / 1024 ), 2 ) 'data',\n\t\t\t\t\t round( ( index_length / 1024 / 1024 ), 2 ) 'index'\n\t\t\t\t\tFROM information_schema.TABLES\n\t\t\t\t\tWHERE table_schema = %s\n\t\t\t\t\tAND table_name = %s;", DB_NAME, $table ), ARRAY_A );
1786
+ if ( !isset( $info['data'] ) || !isset( $info['index'] ) ) {
1787
+ return array(
1788
+ 'data' => 0.0,
1789
+ 'index' => 0.0,
1790
+ );
1791
+ }
1792
+ $info['data'] = floatval( $info['data'] );
1793
+ $info['index'] = floatval( $info['index'] );
1794
+ return $info;
1795
+ }
1796
 
1797
  }
includes/Integrations/Plugins/WPRocket/WPRocket.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace DgoraWcas\Integrations\Plugins\WPRocket;
4
+
5
+ // Exit if accessed directly
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
+
10
+ /**
11
+ * Integration with WP Rocket
12
+ *
13
+ * Plugin URL: https://wp-rocket.me/
14
+ * Author: WP Media
15
+ */
16
+ class WPRocket {
17
+ public function init() {
18
+ if ( ! defined( 'WP_ROCKET_VERSION' ) ) {
19
+ return;
20
+ }
21
+ if ( version_compare( WP_ROCKET_VERSION, '3.7' ) < 0 ) {
22
+ return;
23
+ }
24
+
25
+ add_filter( 'rocket_delay_js_exclusions', array( $this, 'excludedJs' ) );
26
+ }
27
+
28
+ /**
29
+ * Adding our scripts to the list of excluded from delay loading
30
+ *
31
+ * @param array $excluded
32
+ *
33
+ * @return array
34
+ */
35
+ public function excludedJs( $excluded ) {
36
+ $excluded[] = 'jquery-migrate-js';
37
+ $excluded[] = 'jquery-core-js';
38
+ $excluded[] = 'dgwt-wcas';
39
+
40
+ return $excluded;
41
+ }
42
+ }
includes/Integrations/Plugins/WooCommerceProductsFilter/WooCommerceProductsFilter.php CHANGED
@@ -29,7 +29,7 @@ class WooCommerceProductsFilter {
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
 
@@ -62,12 +62,17 @@ class WooCommerceProductsFilter {
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() {
@@ -83,9 +88,7 @@ class WooCommerceProductsFilter {
83
  }
84
  </script>
85
  <?php
86
- $content .= ob_get_clean();
87
-
88
- return $content;
89
  }
90
 
91
  /**
29
 
30
  add_action( 'pre_get_posts', array( $this, 'search_products' ), 900000 );
31
 
32
+ add_action( 'woof_before_draw_filter', array( $this, 'inject_search_filter' ), 10, 2 );
33
 
34
  add_filter( 'woof_get_filtered_price_query', array( $this, 'get_filtered_price_query' ) );
35
 
62
  /**
63
  * Inject our custom search param to object with plugin's filters
64
  *
65
+ * @param string $key
66
+ * @param array $shortcode_atts
67
  *
68
+ * @return void
69
  */
70
+ public function inject_search_filter() {
71
+ global $dgwtWcasWoofInjected;
72
+
73
+ if ( $dgwtWcasWoofInjected ) {
74
+ return;
75
+ }
76
  ?>
77
  <script>
78
  function dgwt_wcas_s_init() {
88
  }
89
  </script>
90
  <?php
91
+ $dgwtWcasWoofInjected = true;
 
 
92
  }
93
 
94
  /**
includes/Integrations/Themes/Enfold/Enfold.php CHANGED
@@ -33,8 +33,8 @@ class Enfold extends ThemeIntegration {
33
 
34
  // Mark that the value of the option "mobile breakpoint" is forced
35
  add_filter( 'dgwt/wcas/settings/section=form', function ( $settings ) {
36
- $settings[690]['disabled'] = true;
37
- $settings[690]['label'] = Helpers::createOverrideTooltip( 'ovtt-storefront-breakpoint', Helpers::getOverrideOptionText( $this->themeName ) ) . $settings[690]['label'];
38
 
39
  return $settings;
40
  } );
33
 
34
  // Mark that the value of the option "mobile breakpoint" is forced
35
  add_filter( 'dgwt/wcas/settings/section=form', function ( $settings ) {
36
+ $settings[685]['disabled'] = true;
37
+ $settings[685]['label'] = Helpers::createOverrideTooltip( 'ovtt-storefront-breakpoint', Helpers::getOverrideOptionText( $this->themeName ) ) . $settings[685]['label'];
38
 
39
  return $settings;
40
  } );
includes/Integrations/Themes/Impreza/Impreza.php CHANGED
@@ -53,8 +53,8 @@ class Impreza extends ThemeIntegration {
53
 
54
  // Mark that the value of the option "mobile breakpoint" is forced
55
  add_filter( 'dgwt/wcas/settings/section=form', function ( $settings ) {
56
- $settings[690]['disabled'] = true;
57
- $settings[690]['label'] = Helpers::createOverrideTooltip( 'ovtt-storefront-breakpoint', Helpers::getOverrideOptionText( $this->themeName ) ) . $settings[690]['label'];
58
 
59
  return $settings;
60
  } );
53
 
54
  // Mark that the value of the option "mobile breakpoint" is forced
55
  add_filter( 'dgwt/wcas/settings/section=form', function ( $settings ) {
56
+ $settings[685]['disabled'] = true;
57
+ $settings[685]['label'] = Helpers::createOverrideTooltip( 'ovtt-storefront-breakpoint', Helpers::getOverrideOptionText( $this->themeName ) ) . $settings[685]['label'];
58
 
59
  return $settings;
60
  } );
includes/Integrations/Themes/ThemesCompatibility.php CHANGED
@@ -245,6 +245,14 @@ class ThemesCompatibility {
245
  'partialFilename' => 'thegem-elementor.php',
246
  )
247
  ),
 
 
 
 
 
 
 
 
248
  );
249
  }
250
 
245
  'partialFilename' => 'thegem-elementor.php',
246
  )
247
  ),
248
+ 'neve' => array(
249
+ 'slug' => 'neve',
250
+ 'name' => 'Neve',
251
+ ),
252
+ 'woostify' => array(
253
+ 'slug' => 'woostify',
254
+ 'name' => 'Woostify',
255
+ ),
256
  );
257
  }
258
 
includes/Multilingual.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  class Multilingual {
11
 
12
  public static $currentCurrency = '';
 
13
 
14
  /**
15
  * Check if the website is multilingual
@@ -257,6 +258,9 @@ class Multilingual {
257
  * @return array
258
  */
259
  public static function getLanguages( $includeInvalid = false ) {
 
 
 
260
 
261
  $langs = array();
262
 
@@ -303,8 +307,11 @@ class Multilingual {
303
 
304
  $langs = apply_filters( 'dgwt/wcas/multilingual/languages', $langs, $includeInvalid );
305
 
306
- return $langs;
 
 
307
 
 
308
  }
309
 
310
  /**
@@ -380,9 +387,7 @@ class Multilingual {
380
  $termsInLang = get_terms( apply_filters( 'dgwt/wcas/search/' . $taxonomy . '/args', $args ) );
381
 
382
  if ( ! empty( $termsInLang ) && is_array( $termsInLang ) ) {
383
- ;
384
  foreach ( $termsInLang as $termInLang ) {
385
-
386
  if ( ! in_array( $termInLang->term_id, $usedIds ) ) {
387
  $terms[] = $termInLang;
388
  $usedIds[] = $termInLang->term_id;
@@ -451,13 +456,13 @@ class Multilingual {
451
  }
452
 
453
  if ( self::isPolylang() ) {
454
-
455
- $terms = get_terms( array(
456
- 'taxonomy' => $args['taxonomy'],
457
  'hide_empty' => true,
458
  'lang' => $lang,
459
  ) );
460
 
 
461
  }
462
 
463
  $terms = apply_filters( 'dgwt/wcas/multilingual/terms-in-language', $terms, $args, $lang );
10
  class Multilingual {
11
 
12
  public static $currentCurrency = '';
13
+ public static $langs = null;
14
 
15
  /**
16
  * Check if the website is multilingual
258
  * @return array
259
  */
260
  public static function getLanguages( $includeInvalid = false ) {
261
+ if ( self::$langs !== null && ! $includeInvalid ) {
262
+ return self::$langs;
263
+ }
264
 
265
  $langs = array();
266
 
307
 
308
  $langs = apply_filters( 'dgwt/wcas/multilingual/languages', $langs, $includeInvalid );
309
 
310
+ if ( ! $includeInvalid ) {
311
+ self::$langs = $langs;
312
+ }
313
 
314
+ return $langs;
315
  }
316
 
317
  /**
387
  $termsInLang = get_terms( apply_filters( 'dgwt/wcas/search/' . $taxonomy . '/args', $args ) );
388
 
389
  if ( ! empty( $termsInLang ) && is_array( $termsInLang ) ) {
 
390
  foreach ( $termsInLang as $termInLang ) {
 
391
  if ( ! in_array( $termInLang->term_id, $usedIds ) ) {
392
  $terms[] = $termInLang;
393
  $usedIds[] = $termInLang->term_id;
456
  }
457
 
458
  if ( self::isPolylang() ) {
459
+ $args = wp_parse_args( $args, array(
460
+ 'taxonomy' => '',
 
461
  'hide_empty' => true,
462
  'lang' => $lang,
463
  ) );
464
 
465
+ $terms = get_terms( $args );
466
  }
467
 
468
  $terms = apply_filters( 'dgwt/wcas/multilingual/terms-in-language', $terms, $args, $lang );
includes/Personalization.php CHANGED
@@ -10,9 +10,15 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  class Personalization {
11
 
12
  public function __construct() {
13
-
14
  add_action( 'wp_head', array( $this, 'printStyle' ) );
15
 
 
 
 
 
 
 
 
16
  }
17
 
18
  /**
@@ -20,9 +26,19 @@ class Personalization {
20
  *
21
  * @return void
22
  */
23
- public function printStyle() {
24
-
 
 
 
 
25
 
 
 
 
 
 
 
26
  // Search form
27
  $show_submit = DGWT_WCAS()->settings->getOption( 'show_submit_button' );
28
  $bg_search_input = DGWT_WCAS()->settings->getOption( 'bg_input_color' );
@@ -46,160 +62,150 @@ class Personalization {
46
 
47
  ob_start();
48
  ?>
49
- <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- .dgwt-wcas-ico-magnifier,
52
- .dgwt-wcas-ico-magnifier-handler {
53
- max-width: 20px;
54
- }
55
-
56
- .dgwt-wcas-search-wrapp {
57
- <?php if(!empty($max_form_width)): ?> max-width: <?php echo $max_form_width; ?>px;
58
- <?php endif; ?>
59
- }
60
-
61
- <?php if ( !empty( $bg_search_input ) || !empty( $text_input_color ) || !empty( $border_input_color ) ): ?>
62
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
63
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover,
64
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
65
- <?php echo!empty( $bg_search_input ) ? 'background-color:' . sanitize_text_field( $bg_search_input ) . ';' : ''; ?><?php echo!empty( $text_input_color ) ? 'color:' . sanitize_text_field( $text_input_color ) . ';' : ''; ?><?php echo!empty( $border_input_color ) ? 'border-color:' . sanitize_text_field( $border_input_color ) . ';' : ''; ?>
66
- }
67
-
68
- <?php if ( !empty( $text_input_color ) ): ?>
69
- .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
70
- color: <?php echo sanitize_text_field( $text_input_color ); ?>;
71
- opacity: 0.3;
72
- }
73
-
74
- .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-webkit-input-placeholder {
75
- color: <?php echo sanitize_text_field( $text_input_color ); ?>;
76
- opacity: 0.3;
77
- }
78
-
79
- .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:-moz-placeholder {
80
- color: <?php echo sanitize_text_field( $text_input_color ); ?>;
81
- opacity: 0.3;
82
- }
83
-
84
- .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-moz-placeholder {
85
- color: <?php echo sanitize_text_field( $text_input_color ); ?>;
86
- opacity: 0.3;
87
- }
88
-
89
- .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:-ms-input-placeholder {
90
- color: <?php echo sanitize_text_field( $text_input_color ); ?>;
91
- }
92
-
93
- .dgwt-wcas-no-submit.dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier path,
94
- .dgwt-wcas-search-wrapp .dgwt-wcas-close path {
95
- fill: <?php echo sanitize_text_field( $text_input_color ); ?>;
96
- }
97
-
98
- .dgwt-wcas-loader-circular-path {
99
- stroke: <?php echo sanitize_text_field( $text_input_color ); ?>;
100
- }
101
-
102
- .dgwt-wcas-preloader {
103
- opacity: 0.6;
104
- }
105
-
106
- <?php endif; ?>
107
- <?php endif; ?>
108
-
109
- <?php
110
- // Submit button
111
- if ( $show_submit === 'on' && (!empty( $bg_submit_color ) || !empty( $text_submit_color )) ): ?>
112
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before {
113
- <?php echo !empty( $bg_submit_color ) ? 'border-color: transparent ' . sanitize_text_field( $bg_submit_color ) . ';' : ''; ?>
114
- }
115
-
116
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover::before,
117
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus::before {
118
- <?php echo!empty( $bg_submit_color ) ? 'border-right-color: ' . sanitize_text_field( $bg_submit_color ) . ';' : ''; ?>
119
- }
120
-
121
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit,
122
- .dgwt-wcas-om-bar .dgwt-wcas-om-return {
123
- <?php echo!empty( $bg_submit_color ) ? 'background-color: ' . sanitize_text_field( $bg_submit_color ) . ';' : ''; ?><?php echo!empty( $text_submit_color ) ? 'color: ' . sanitize_text_field( $text_submit_color ) . ';' : ''; ?>
124
- }
125
-
126
- .dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier,
127
- .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit svg path,
128
- .dgwt-wcas-om-bar .dgwt-wcas-om-return svg path {
129
- <?php echo!empty( $text_submit_color ) ? 'fill: ' . sanitize_text_field( $text_submit_color ) . ';' : ''; ?>
130
- }
131
-
132
- <?php endif; ?>
133
-
134
- <?php if ( !empty( $sug_bg_color ) ): ?>
135
- .dgwt-wcas-suggestions-wrapp,
136
- .dgwt-wcas-details-wrapp {
137
- <?php echo!empty( $sug_bg_color ) ? 'background-color: ' . sanitize_text_field( $sug_bg_color ) . ';' : ''; ?>
138
- }
139
-
140
- <?php endif; ?>
141
-
142
- <?php if ( !empty( $sug_hover_color ) ): ?>
143
- .dgwt-wcas-suggestion-selected {
144
- <?php echo!empty( $sug_hover_color ) ? 'background-color: ' . sanitize_text_field( $sug_hover_color ) . ';' : ''; ?>
145
- }
146
-
147
- <?php endif; ?>
148
-
149
- <?php if ( !empty( $sug_text_color ) ): ?>
150
- .dgwt-wcas-suggestions-wrapp *,
151
- .dgwt-wcas-details-wrapp *,
152
- .dgwt-wcas-sd,
153
- .dgwt-wcas-suggestion * {
154
- <?php echo!empty( $sug_text_color ) ? 'color: ' . sanitize_text_field( $sug_text_color ) . ';' : ''; ?>
155
- }
156
-
157
- <?php endif; ?>
158
-
159
- <?php if ( !empty( $sug_highlight_color ) ): ?>
160
- .dgwt-wcas-st strong,
161
- .dgwt-wcas-sd strong {
162
- <?php echo 'color: ' . sanitize_text_field( $sug_highlight_color ) . ';'; ?>
163
- }
164
-
165
- <?php endif; ?>
166
-
167
- <?php if ( !empty( $sug_border_color ) ): ?>
168
- .dgwt-wcas-suggestions-wrapp,
169
- .dgwt-wcas-details-wrapp,
170
- .dgwt-wcas-suggestion,
171
- .dgwt-wcas-datails-title,
172
- .dgwt-wcas-details-more-products {
173
- <?php echo 'border-color: ' . sanitize_text_field( $sug_border_color ) . '!important;'; ?>
174
- }
175
-
176
- <?php endif; ?>
177
-
178
- <?php if ( !empty( $preloader_url ) ): ?>
179
- .dgwt-wcas-inner-preloader {
180
- background-image: url('<?php echo esc_url( $preloader_url ); ?>');
181
- }
182
-
183
- .dgwt-wcas-inner-preloader * {
184
- display: none;
185
- }
186
-
187
- <?php endif; ?>
188
-
189
- <?php
190
- if(!empty($search_icon_color)){
191
- echo '.dgwt-wcas-search-icon { color: ' . sanitize_text_field( $search_icon_color ) . ';}';
192
- echo '.dgwt-wcas-search-icon path { fill: ' . sanitize_text_field( $search_icon_color ) . ';}';
193
- }
194
-
195
- ?>
196
 
197
- </style>
198
  <?php
199
- $css = ob_get_contents();
200
- ob_end_clean();
 
 
201
 
202
- echo Helpers::minifyCSS( $css );
203
  }
204
-
205
  }
10
  class Personalization {
11
 
12
  public function __construct() {
 
13
  add_action( 'wp_head', array( $this, 'printStyle' ) );
14
 
15
+ if ( is_admin() ) {
16
+ add_action( 'admin_enqueue_scripts', function () {
17
+ // Register personalization styles used in block editor.
18
+ wp_register_style( 'dgwt-wcas-style-personalization', false, array(), true, true );
19
+ wp_add_inline_style( 'dgwt-wcas-style-personalization', $this->getStyle() );
20
+ } );
21
+ }
22
  }
23
 
24
  /**
26
  *
27
  * @return void
28
  */
29
+ public function printStyle() { ?>
30
+ <style>
31
+ <?php echo Helpers::minifyCSS( $this->getStyle() ); ?>
32
+ </style>
33
+ <?php
34
+ }
35
 
36
+ /**
37
+ * Get personalized CSS (without <style></style>)
38
+ *
39
+ * @return string
40
+ */
41
+ public function getStyle() {
42
  // Search form
43
  $show_submit = DGWT_WCAS()->settings->getOption( 'show_submit_button' );
44
  $bg_search_input = DGWT_WCAS()->settings->getOption( 'bg_input_color' );
62
 
63
  ob_start();
64
  ?>
65
+ .dgwt-wcas-ico-magnifier,
66
+ .dgwt-wcas-ico-magnifier-handler {
67
+ max-width: 20px;
68
+ }
69
+
70
+ .dgwt-wcas-search-wrapp {
71
+ <?php if(!empty($max_form_width)): ?> max-width: <?php echo $max_form_width; ?>px;
72
+ <?php endif; ?>
73
+ }
74
+
75
+ <?php if ( !empty( $bg_search_input ) || !empty( $text_input_color ) || !empty( $border_input_color ) ): ?>
76
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
77
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover,
78
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
79
+ <?php echo!empty( $bg_search_input ) ? 'background-color:' . sanitize_text_field( $bg_search_input ) . ';' : ''; ?><?php echo!empty( $text_input_color ) ? 'color:' . sanitize_text_field( $text_input_color ) . ';' : ''; ?><?php echo!empty( $border_input_color ) ? 'border-color:' . sanitize_text_field( $border_input_color ) . ';' : ''; ?>
80
+ }
81
+
82
+ <?php if ( !empty( $text_input_color ) ): ?>
83
+ .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
84
+ color: <?php echo sanitize_text_field( $text_input_color ); ?>;
85
+ opacity: 0.3;
86
+ }
87
+
88
+ .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-webkit-input-placeholder {
89
+ color: <?php echo sanitize_text_field( $text_input_color ); ?>;
90
+ opacity: 0.3;
91
+ }
92
+
93
+ .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:-moz-placeholder {
94
+ color: <?php echo sanitize_text_field( $text_input_color ); ?>;
95
+ opacity: 0.3;
96
+ }
97
+
98
+ .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-moz-placeholder {
99
+ color: <?php echo sanitize_text_field( $text_input_color ); ?>;
100
+ opacity: 0.3;
101
+ }
102
+
103
+ .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:-ms-input-placeholder {
104
+ color: <?php echo sanitize_text_field( $text_input_color ); ?>;
105
+ }
106
+
107
+ .dgwt-wcas-no-submit.dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier path,
108
+ .dgwt-wcas-search-wrapp .dgwt-wcas-close path {
109
+ fill: <?php echo sanitize_text_field( $text_input_color ); ?>;
110
+ }
111
+
112
+ .dgwt-wcas-loader-circular-path {
113
+ stroke: <?php echo sanitize_text_field( $text_input_color ); ?>;
114
+ }
115
+
116
+ .dgwt-wcas-preloader {
117
+ opacity: 0.6;
118
+ }
119
+
120
+ <?php endif; ?>
121
+ <?php endif; ?>
122
 
123
+ <?php
124
+ // Submit button
125
+ if ( $show_submit === 'on' && (!empty( $bg_submit_color ) || !empty( $text_submit_color )) ): ?>
126
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before {
127
+ <?php echo !empty( $bg_submit_color ) ? 'border-color: transparent ' . sanitize_text_field( $bg_submit_color ) . ';' : ''; ?>
128
+ }
129
+
130
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover::before,
131
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus::before {
132
+ <?php echo!empty( $bg_submit_color ) ? 'border-right-color: ' . sanitize_text_field( $bg_submit_color ) . ';' : ''; ?>
133
+ }
134
+
135
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit,
136
+ .dgwt-wcas-om-bar .dgwt-wcas-om-return {
137
+ <?php echo!empty( $bg_submit_color ) ? 'background-color: ' . sanitize_text_field( $bg_submit_color ) . ';' : ''; ?><?php echo!empty( $text_submit_color ) ? 'color: ' . sanitize_text_field( $text_submit_color ) . ';' : ''; ?>
138
+ }
139
+
140
+ .dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier,
141
+ .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit svg path,
142
+ .dgwt-wcas-om-bar .dgwt-wcas-om-return svg path {
143
+ <?php echo!empty( $text_submit_color ) ? 'fill: ' . sanitize_text_field( $text_submit_color ) . ';' : ''; ?>
144
+ }
145
+
146
+ <?php endif; ?>
147
+
148
+ <?php if ( !empty( $sug_bg_color ) ): ?>
149
+ .dgwt-wcas-suggestions-wrapp,
150
+ .dgwt-wcas-details-wrapp {
151
+ <?php echo!empty( $sug_bg_color ) ? 'background-color: ' . sanitize_text_field( $sug_bg_color ) . ';' : ''; ?>
152
+ }
153
+
154
+ <?php endif; ?>
155
+
156
+ <?php if ( !empty( $sug_hover_color ) ): ?>
157
+ .dgwt-wcas-suggestion-selected {
158
+ <?php echo!empty( $sug_hover_color ) ? 'background-color: ' . sanitize_text_field( $sug_hover_color ) . ';' : ''; ?>
159
+ }
160
+
161
+ <?php endif; ?>
162
+
163
+ <?php if ( !empty( $sug_text_color ) ): ?>
164
+ .dgwt-wcas-suggestions-wrapp *,
165
+ .dgwt-wcas-details-wrapp *,
166
+ .dgwt-wcas-sd,
167
+ .dgwt-wcas-suggestion * {
168
+ <?php echo!empty( $sug_text_color ) ? 'color: ' . sanitize_text_field( $sug_text_color ) . ';' : ''; ?>
169
+ }
170
+
171
+ <?php endif; ?>
172
+
173
+ <?php if ( !empty( $sug_highlight_color ) ): ?>
174
+ .dgwt-wcas-st strong,
175
+ .dgwt-wcas-sd strong {
176
+ <?php echo 'color: ' . sanitize_text_field( $sug_highlight_color ) . ';'; ?>
177
+ }
178
+
179
+ <?php endif; ?>
180
+
181
+ <?php if ( !empty( $sug_border_color ) ): ?>
182
+ .dgwt-wcas-suggestions-wrapp,
183
+ .dgwt-wcas-details-wrapp,
184
+ .dgwt-wcas-suggestion,
185
+ .dgwt-wcas-datails-title,
186
+ .dgwt-wcas-details-more-products {
187
+ <?php echo 'border-color: ' . sanitize_text_field( $sug_border_color ) . '!important;'; ?>
188
+ }
189
+
190
+ <?php endif; ?>
191
+
192
+ <?php if ( !empty( $preloader_url ) ): ?>
193
+ .dgwt-wcas-inner-preloader {
194
+ background-image: url('<?php echo esc_url( $preloader_url ); ?>');
195
+ }
196
+
197
+ .dgwt-wcas-inner-preloader * {
198
+ display: none;
199
+ }
200
+
201
+ <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
 
 
203
  <?php
204
+ if(!empty($search_icon_color)){
205
+ echo '.dgwt-wcas-search-icon { color: ' . sanitize_text_field( $search_icon_color ) . ';}';
206
+ echo '.dgwt-wcas-search-icon path { fill: ' . sanitize_text_field( $search_icon_color ) . ';}';
207
+ }
208
 
209
+ return ob_get_clean();
210
  }
 
211
  }
includes/Scripts.php CHANGED
@@ -12,9 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  class Scripts {
13
 
14
  public function __construct() {
15
-
16
  add_action( 'wp_enqueue_scripts', array( $this, 'loadScripts' ) );
17
-
18
  }
19
 
20
  /**
@@ -25,7 +23,6 @@ class Scripts {
25
  */
26
 
27
  public function loadScripts() {
28
-
29
  $min = SCRIPT_DEBUG ? '' : '.min';
30
 
31
  //Register
@@ -46,7 +43,5 @@ class Scripts {
46
  $localize = Helpers::getScriptsSettings();
47
 
48
  wp_localize_script( 'jquery-dgwt-wcas', 'dgwt_wcas', $localize );
49
-
50
  }
51
-
52
  }
12
  class Scripts {
13
 
14
  public function __construct() {
 
15
  add_action( 'wp_enqueue_scripts', array( $this, 'loadScripts' ) );
 
16
  }
17
 
18
  /**
23
  */
24
 
25
  public function loadScripts() {
 
26
  $min = SCRIPT_DEBUG ? '' : '.min';
27
 
28
  //Register
43
  $localize = Helpers::getScriptsSettings();
44
 
45
  wp_localize_script( 'jquery-dgwt-wcas', 'dgwt_wcas', $localize );
 
46
  }
 
47
  }
includes/Settings.php CHANGED
@@ -632,7 +632,7 @@ class Settings
632
  'name' => 'filter_products_rules',
633
  'label' => __( 'Filters', 'ajax-search-for-woocommerce' ) . ' ' . Helpers::createQuestionMark(
634
  'filter_products_head',
635
- __( 'Filters that specify the product group that will be affected by the above mode', 'ajax-search-for-woocommerce' ),
636
  '',
637
  'right'
638
  ),
@@ -689,7 +689,7 @@ class Settings
689
  ),
690
  ) ),
691
  );
692
- $fuzzinesText1 = '<strong>' . __( 'Increases sales conversions', 'ajax-search-for-woocommerce' ) . '</strong>';
693
  $fuzzinesText2 = sprintf( __( 'Returns suggestions based on likely relevance, even though a search keyword may not exactly match. E.g if you type “ipho<b>m</b>e” you get the same results as for “iphone”. <a target="_blank" href="%s">Read more</a> about the fuzzy search feature.', 'ajax-search-for-woocommerce' ), $fuzzySearchLink );
694
 
695
  if ( dgoraAsfwFs()->is_premium() ) {
@@ -929,7 +929,7 @@ class Settings
929
  private function dependentOptions()
930
  {
931
  add_filter( 'dgwt/wcas/settings/section=form', function ( $settings ) {
932
- $text = __( "You have selected the <b>Style -> Style -> Pirx (bean-shaped)</b> option. Pirx style forces a submit button to be enabled. You can find this option a few rows below. That's why this option is blocked.", 'ajax-search-for-woocommerce' );
933
  $settings[400]['label'] = Helpers::createOverrideTooltip( 'ovtt-pirx-submit-button', '<p>' . $text . '</p>' ) . $settings[400]['label'];
934
  return $settings;
935
  } );
632
  'name' => 'filter_products_rules',
633
  'label' => __( 'Filters', 'ajax-search-for-woocommerce' ) . ' ' . Helpers::createQuestionMark(
634
  'filter_products_head',
635
+ __( 'Filters that specify the product group and taxonomy that will be affected by the above mode', 'ajax-search-for-woocommerce' ),
636
  '',
637
  'right'
638
  ),
689
  ),
690
  ) ),
691
  );
692
+ $fuzzinesText1 = '<strong>' . __( 'Increases sales conversions.', 'ajax-search-for-woocommerce' ) . '</strong>';
693
  $fuzzinesText2 = sprintf( __( 'Returns suggestions based on likely relevance, even though a search keyword may not exactly match. E.g if you type “ipho<b>m</b>e” you get the same results as for “iphone”. <a target="_blank" href="%s">Read more</a> about the fuzzy search feature.', 'ajax-search-for-woocommerce' ), $fuzzySearchLink );
694
 
695
  if ( dgoraAsfwFs()->is_premium() ) {
929
  private function dependentOptions()
930
  {
931
  add_filter( 'dgwt/wcas/settings/section=form', function ( $settings ) {
932
+ $text = __( "You have selected the <b>Appearance -> Style -> Pirx</b> option. Pirx style forces a submit button to be enabled. You can find this option a few rows below. That's why this option is blocked.", 'ajax-search-for-woocommerce' );
933
  $settings[400]['label'] = Helpers::createOverrideTooltip( 'ovtt-pirx-submit-button', '<p>' . $text . '</p>' ) . $settings[400]['label'];
934
  return $settings;
935
  } );
includes/Shortcode.php CHANGED
@@ -34,7 +34,8 @@ class Shortcode {
34
  'mobile_overlay_breakpoint' => '',
35
  'darken_bg' => $layout->darken_background,
36
  'submit_btn' => null,
37
- 'submit_text' => null
 
38
  ), $atts, $tag );
39
 
40
  $searchArgs['class'] .= empty( $searchArgs['class'] ) ? 'woocommerce' : ' woocommerce';
34
  'mobile_overlay_breakpoint' => '',
35
  'darken_bg' => $layout->darken_background,
36
  'submit_btn' => null,
37
+ 'submit_text' => null,
38
+ 'icon_color' => ''
39
  ), $atts, $tag );
40
 
41
  $searchArgs['class'] .= empty( $searchArgs['class'] ) ? 'woocommerce' : ' woocommerce';
languages/ajax-search-for-woocommerce.pot DELETED
@@ -1,1279 +0,0 @@
1
- # Copyright (C) 2022 FiboSearch Team
2
- # This file is distributed under the same license as the FiboSearch - AJAX Search for WooCommerce plugin.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: FiboSearch - AJAX Search for WooCommerce 1.19.0\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-search-for-woocommerce\n"
7
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
- "Language-Team: LANGUAGE <LL@li.org>\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-07-19T11:31:31+02:00\n"
13
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.5.0\n"
15
- "X-Domain: ajax-search-for-woocommerce\n"
16
-
17
- #. Plugin Name of the plugin
18
- msgid "FiboSearch - AJAX Search for WooCommerce"
19
- msgstr ""
20
-
21
- #. Plugin URI of the plugin
22
- #. Author URI of the plugin
23
- msgid "https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc"
24
- msgstr ""
25
-
26
- #. Description of the plugin
27
- msgid "The most popular WooCommerce product search. Gives your users a well-designed advanced AJAX search bar with live search suggestions."
28
- msgstr ""
29
-
30
- #. Author of the plugin
31
- msgid "FiboSearch Team"
32
- msgstr ""
33
-
34
- #: ajax-search-for-woocommerce.php:173
35
- msgid "%s: You need PHP version at least 7.0 to run this plugin. You are currently using PHP version "
36
- msgstr ""
37
-
38
- #: ajax-search-for-woocommerce.php:192
39
- msgid "%s is enabled but not effective. It requires %s in order to work."
40
- msgstr ""
41
-
42
- #: ajax-search-for-woocommerce.php:210
43
- msgid "%s is enabled but not effective. It is missing core files. Please reinstall the plugin."
44
- msgstr ""
45
-
46
- #: includes/Abstracts/ThemeIntegration.php:63
47
- msgid "Replace the search bars"
48
- msgstr ""
49
-
50
- #: includes/Abstracts/ThemeIntegration.php:72
51
- msgid "%s Theme"
52
- msgstr ""
53
-
54
- #: includes/Abstracts/ThemeIntegration.php:86
55
- msgid "Replace your theme's default search bars."
56
- msgstr ""
57
-
58
- #: includes/Abstracts/ThemeIntegration.php:88
59
- msgid "Replace them"
60
- msgstr ""
61
-
62
- #: includes/Abstracts/ThemeIntegration.php:94
63
- msgid "Search bars"
64
- msgstr ""
65
-
66
- #: includes/Abstracts/ThemeIntegration.php:103
67
- msgid "Alternative ways to embed a search bar"
68
- msgstr ""
69
-
70
- #: includes/Admin/AdminMenu.php:40
71
- #: includes/Admin/AdminMenu.php:41
72
- msgid "FiboSearch"
73
- msgstr ""
74
-
75
- #: includes/Admin/Promo/FeedbackNotice.php:71
76
- msgid "Hey %s, it's Damian Góra from %s. You have used this free plugin for some time now, and I hope you like it!"
77
- msgstr ""
78
-
79
- #: includes/Admin/Promo/FeedbackNotice.php:76
80
- msgid "The FiboSearch team have spent countless hours developing it, and it would mean a lot to me if you %ssupport it with a quick review on WordPress.org.%s"
81
- msgstr ""
82
-
83
- #: includes/Admin/Promo/FeedbackNotice.php:82
84
- msgid "Review %s"
85
- msgstr ""
86
-
87
- #: includes/Admin/Promo/FeedbackNotice.php:86
88
- msgid "No thanks"
89
- msgstr ""
90
-
91
- #: includes/Admin/Promo/Upgrade.php:47
92
- msgid "Speed up search! (even 10× faster) - users love it!"
93
- msgstr ""
94
-
95
- #: includes/Admin/Promo/Upgrade.php:48
96
- msgid "Modern search engine based on an inverted index and advanced matching algorithms"
97
- msgstr ""
98
-
99
- #: includes/Admin/Promo/Upgrade.php:49
100
- #: partials/admin/features.php:21
101
- msgid "Fuzzy search"
102
- msgstr ""
103
-
104
- #: includes/Admin/Promo/Upgrade.php:50
105
- #: includes/Settings.php:598
106
- #: includes/Settings.php:604
107
- #: partials/admin/features.php:29
108
- msgid "Synonyms"
109
- msgstr ""
110
-
111
- #: includes/Admin/Promo/Upgrade.php:51
112
- msgid "Search in attributes and variation products SKUs (option)"
113
- msgstr ""
114
-
115
- #: includes/Admin/Promo/Upgrade.php:52
116
- msgid "Individual tips and support from the FiboSearch team"
117
- msgstr ""
118
-
119
- #: includes/Admin/Promo/Upgrade.php:54
120
- msgid "FiboSearch Pro - Upgrade Now"
121
- msgstr ""
122
-
123
- #: includes/Admin/Promo/Upgrade.php:58
124
- msgid "Update now and increase your sales. You will receive a 30-day satisfaction guarantee. A return on investment will come very quickly."
125
- msgstr ""
126
-
127
- #: includes/Admin/Promo/Upgrade.php:63
128
- msgid "and more..."
129
- msgstr ""
130
-
131
- #: includes/Admin/Promo/Upgrade.php:63
132
- #: partials/admin/features.php:31
133
- msgid "See a comparison of all free and premium features!"
134
- msgstr ""
135
-
136
- #: includes/Admin/Promo/Upgrade.php:65
137
- msgid "Upgrade Now"
138
- msgstr ""
139
-
140
- #: includes/Admin/RegenerateImages.php:96
141
- msgid "%s: it is recommended to generate a special small image size for existing products to ensure a better user experience. This is a one-time action. <br /><br />You can do it by clicking %s or use an external plugin such as %s."
142
- msgstr ""
143
-
144
- #: includes/Admin/SettingsAPI.php:627
145
- msgid "No rules"
146
- msgstr ""
147
-
148
- #: includes/Admin/SettingsAPI.php:632
149
- msgid "Add new rule"
150
- msgstr ""
151
-
152
- #: includes/Admin/SettingsAPI.php:774
153
- msgid "Contact"
154
- msgstr ""
155
-
156
- #: includes/Admin/SettingsAPI.php:776
157
- msgid "Showcase"
158
- msgstr ""
159
-
160
- #: includes/Admin/Troubleshooting.php:49
161
- #: includes/Admin/Troubleshooting.php:68
162
- msgid "Troubleshooting"
163
- msgstr ""
164
-
165
- #: includes/Admin/Troubleshooting.php:213
166
- msgid "You are using one or more incompatible plugins"
167
- msgstr ""
168
-
169
- #: includes/Admin/Troubleshooting.php:222
170
- #: includes/Admin/Troubleshooting.php:226
171
- msgid "You are using the %s plugin. The %s does not support this plugin."
172
- msgstr ""
173
-
174
- #: includes/Admin/Troubleshooting.php:245
175
- msgid "You are using TranslatePress with Free version of our plugin"
176
- msgstr ""
177
-
178
- #: includes/Admin/Troubleshooting.php:254
179
- msgid "Due to the way the TranslatePress - Multilingual plugin works, we can only provide support for it in the <a href=\"%s\" target=\"_blank\">Pro version</a>."
180
- msgstr ""
181
-
182
- #: includes/Admin/Troubleshooting.php:267
183
- msgid "Your site can perform loopback requests"
184
- msgstr ""
185
-
186
- #: includes/Admin/Troubleshooting.php:301
187
- msgid "Your site could not complete a loopback request"
188
- msgstr ""
189
-
190
- #: includes/Admin/Troubleshooting.php:302
191
- msgid "Solutions:"
192
- msgstr ""
193
-
194
- #: includes/Admin/Troubleshooting.php:303
195
- msgid "Your server can't send an HTTP request to itself"
196
- msgstr ""
197
-
198
- #: includes/Admin/Troubleshooting.php:304
199
- msgid "Go to <a href=\"%s\" target=\"_blank\">Tools -> Site Health</a> in your WordPress. You should see issues related to REST API or Loopback request. Expand descriptions of these errors and follow the instructions. Probably you will need to contact your hosting provider to solve it."
200
- msgstr ""
201
-
202
- #: includes/Admin/Troubleshooting.php:305
203
- msgid "Is your website publicly available only for whitelisted IPs? <b>Add your server IP to the whitelist</b>. That’s all. This is a common mistake when access is blocked by a <code>.htaccess</code> file. Developers add a list of allowed IPs, but they forget to add the IP of the server to allow it to make HTTP requests to itself."
204
- msgstr ""
205
-
206
- #: includes/Admin/Troubleshooting.php:320
207
- msgid "One or more required PHP extensions are missing on your server"
208
- msgstr ""
209
-
210
- #: includes/Admin/Troubleshooting.php:328
211
- msgid "Required PHP extension: %s"
212
- msgstr ""
213
-
214
- #: includes/Admin/Troubleshooting.php:347
215
- #: includes/Admin/Troubleshooting.php:601
216
- msgid "WordPress version"
217
- msgstr ""
218
-
219
- #: includes/Admin/Troubleshooting.php:356
220
- msgid "Great! Our plugin works great with this version of WordPress."
221
- msgstr ""
222
-
223
- #: includes/Admin/Troubleshooting.php:359
224
- msgid "Install the latest version of WordPress for our plugin for optimal performance!"
225
- msgstr ""
226
-
227
- #: includes/Admin/Troubleshooting.php:386
228
- #: includes/Admin/Troubleshooting.php:613
229
- msgid "Incorrect \"Add to cart\" behaviour in WooCommerce settings"
230
- msgstr ""
231
-
232
- #: includes/Admin/Troubleshooting.php:387
233
- #: includes/Admin/Troubleshooting.php:438
234
- #: includes/Admin/Troubleshooting.php:484
235
- #: includes/Admin/Troubleshooting.php:520
236
- #: includes/Admin/Troubleshooting.php:580
237
- msgid "Solution"
238
- msgstr ""
239
-
240
- #: includes/Admin/Troubleshooting.php:389
241
- msgid "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">Products (tab)</a></code> and check option <code>%s</code> and uncheck option <code>%s</code>."
242
- msgstr ""
243
-
244
- #: includes/Admin/Troubleshooting.php:394
245
- msgid "Your settings should look like the picture below:"
246
- msgstr ""
247
-
248
- #: includes/Admin/Troubleshooting.php:437
249
- msgid "Incompatible \"Searching by Text\" extension from \"WOOF - WooCommerce Products Filter plugin\" is active"
250
- msgstr ""
251
-
252
- #: includes/Admin/Troubleshooting.php:439
253
- msgid "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">Products Filter (tab)</a> -> Extensions (tab)</code>, uncheck <code>Searching by Text</code> extension and save changes."
254
- msgstr ""
255
-
256
- #: includes/Admin/Troubleshooting.php:440
257
- #: includes/Admin/Troubleshooting.php:486
258
- msgid "Extensions should looks like the picture below:"
259
- msgstr ""
260
-
261
- #: includes/Admin/Troubleshooting.php:483
262
- msgid "Incompatible \"HUSKY - Advanced searching by Text\" extension from \"WOOF - WooCommerce Products Filter plugin\" is active"
263
- msgstr ""
264
-
265
- #: includes/Admin/Troubleshooting.php:485
266
- msgid "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">Products Filter (tab)</a> -> Extensions (tab)</code>, uncheck <code>HUSKY - Advanced searching by Text</code> extension and save changes."
267
- msgstr ""
268
-
269
- #: includes/Admin/Troubleshooting.php:519
270
- msgid "Incompatible \"Try to ajaxify the shop\" option from WOOF - WooCommerce Products Filter plugin is enabled"
271
- msgstr ""
272
-
273
- #: includes/Admin/Troubleshooting.php:521
274
- msgid "Go to <code>WooCommerce -> Settings -> <a href=\"%s\" target=\"_blank\">Products Filter (tab)</a> -> Options (tab)</code>, set <code>Try to ajaxify the shop</code> option to <code>No</code> and save changes."
275
- msgstr ""
276
-
277
- #: includes/Admin/Troubleshooting.php:572
278
- msgid "Dismiss"
279
- msgstr ""
280
-
281
- #: includes/Admin/Troubleshooting.php:578
282
- msgid "There is no correct template in the Elementor Theme Builder for the WooCommerce search results page."
283
- msgstr ""
284
-
285
- #: includes/Admin/Troubleshooting.php:579
286
- msgid "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."
287
- msgstr ""
288
-
289
- #: includes/Admin/Troubleshooting.php:581
290
- msgid "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>."
291
- msgstr ""
292
-
293
- #: includes/Admin/Troubleshooting.php:583
294
- msgid "If you think the search results page is displaying your products correctly, you can ignore and dismiss this message: %s"
295
- msgstr ""
296
-
297
- #: includes/Admin/Troubleshooting.php:605
298
- msgid "PHP extensions"
299
- msgstr ""
300
-
301
- #: includes/Admin/Troubleshooting.php:609
302
- msgid "Incompatible plugins"
303
- msgstr ""
304
-
305
- #: includes/Admin/Troubleshooting.php:617
306
- msgid "Incompatible \"Searching by Text\" extension in WOOF - WooCommerce Products Filter"
307
- msgstr ""
308
-
309
- #: includes/Admin/Troubleshooting.php:621
310
- msgid "Incompatible \"HUSKY - Advanced searching by Text\" extension in WOOF - WooCommerce Products Filter"
311
- msgstr ""
312
-
313
- #: includes/Admin/Troubleshooting.php:625
314
- msgid "Incompatible \"Try to ajaxify the shop\" option in WOOF - WooCommerce Products Filter"
315
- msgstr ""
316
-
317
- #: includes/Admin/Troubleshooting.php:629
318
- msgid "Elementor search results template"
319
- msgstr ""
320
-
321
- #: includes/Admin/Troubleshooting.php:637
322
- msgid "TranslatePress"
323
- msgstr ""
324
-
325
- #: includes/Admin/Troubleshooting.php:761
326
- msgid "Server environment"
327
- msgstr ""
328
-
329
- #: includes/Analytics/UserInterface.php:70
330
- msgid "Analytics (beta)"
331
- msgstr ""
332
-
333
- #: includes/Analytics/UserInterface.php:87
334
- msgid "Search Analytics"
335
- msgstr ""
336
-
337
- #: includes/Analytics/UserInterface.php:93
338
- msgid "Enable search analytics"
339
- msgstr ""
340
-
341
- #: includes/Analytics/UserInterface.php:224
342
- #: partials/admin/stats/stats.php:36
343
- msgid "load another %d phrase"
344
- msgid_plural "load another %d phrases"
345
- msgstr[0] ""
346
- msgstr[1] ""
347
-
348
- #: includes/Analytics/UserInterface.php:358
349
- msgid "Perfect!"
350
- msgstr ""
351
-
352
- #: includes/Analytics/UserInterface.php:359
353
- msgid "It's sorted."
354
- msgstr ""
355
-
356
- #: includes/Analytics/UserInterface.php:360
357
- msgid "This phrase returns 1 product."
358
- msgid_plural "This phrase returns %d products."
359
- msgstr[0] ""
360
- msgstr[1] ""
361
-
362
- #: includes/Analytics/UserInterface.php:366
363
- msgid "Click the button below to remove this phrase from the list."
364
- msgstr ""
365
-
366
- #: includes/Analytics/UserInterface.php:367
367
- msgid "Mark this phrase as resolved"
368
- msgstr ""
369
-
370
- #: includes/Analytics/UserInterface.php:372
371
- msgid "Poor!"
372
- msgstr ""
373
-
374
- #: includes/Analytics/UserInterface.php:373
375
- msgid "Still this phrase doesn't return any results. Learn how to fix it."
376
- msgstr ""
377
-
378
- #: includes/Analytics/UserInterface.php:378
379
- msgid "Can't check the status. The search index hasn't been completed. Go to the Indexer tab and wait until the search index is completed."
380
- msgstr ""
381
-
382
- #: includes/Analytics/UserInterface.php:379
383
- msgid "Check the indexer status"
384
- msgstr ""
385
-
386
- #: includes/Analytics/UserInterface.php:384
387
- msgid "Something went wrong"
388
- msgstr ""
389
-
390
- #: includes/Analytics/UserInterface.php:411
391
- msgid "This phrase has been resolved! This row will disappear after refreshing the page."
392
- msgstr ""
393
-
394
- #: includes/EmbeddingViaMenu.php:55
395
- #: includes/EmbeddingViaMenu.php:156
396
- #: widget.php:26
397
- msgid "FiboSearch bar"
398
- msgstr ""
399
-
400
- #: includes/EmbeddingViaMenu.php:74
401
- #: includes/Settings.php:262
402
- #: widget.php:43
403
- msgid "Layout"
404
- msgstr ""
405
-
406
- #: includes/EmbeddingViaMenu.php:86
407
- #: includes/Settings.php:232
408
- #: includes/Settings.php:284
409
- msgid "Search icon color"
410
- msgstr ""
411
-
412
- #: includes/EmbeddingViaMenu.php:150
413
- msgid "Add FiboSearch as a menu item."
414
- msgstr ""
415
-
416
- #: includes/EmbeddingViaMenu.php:178
417
- msgid "FiboSearch bar will be displayed here."
418
- msgstr ""
419
-
420
- #: includes/EmbeddingViaMenu.php:186
421
- #: widget.php:37
422
- msgid "Default"
423
- msgstr ""
424
-
425
- #: includes/EmbeddingViaMenu.php:187
426
- #: includes/EmbeddingViaMenu.php:248
427
- #: includes/Settings.php:102
428
- #: includes/Settings.php:265
429
- #: partials/admin/search-preview.php:22
430
- #: widget.php:38
431
- msgid "Search bar"
432
- msgstr ""
433
-
434
- #: includes/EmbeddingViaMenu.php:188
435
- #: includes/Settings.php:266
436
- #: widget.php:39
437
- msgid "Search icon"
438
- msgstr ""
439
-
440
- #: includes/EmbeddingViaMenu.php:189
441
- #: includes/Settings.php:267
442
- #: widget.php:40
443
- msgid "Icon on mobile, search bar on desktop"
444
- msgstr ""
445
-
446
- #: includes/EmbeddingViaMenu.php:190
447
- #: includes/Settings.php:268
448
- #: widget.php:41
449
- msgid "Icon on desktop, search bar on mobile"
450
- msgstr ""
451
-
452
- #: includes/Helpers.php:641
453
- #: includes/Helpers.php:644
454
- msgid "Pro"
455
- msgstr ""
456
-
457
- #: includes/Helpers.php:1054
458
- msgid "This option is <b>overridden</b> by the seamless integration with the %s theme. If you want to change the value of this option, disable the integration in <br /><b>WooCommerce -> FiboSearch -> Starting (tab)</b>."
459
- msgstr ""
460
-
461
- #: includes/Helpers.php:1055
462
- msgid "Furthermore, you can override this option for a specific search bar via shortcode params. <a href=\"%s\" target=\"_blank\">Learn more about shortcodes parameters</a>."
463
- msgstr ""
464
-
465
- #: includes/Helpers.php:1169
466
- msgid "Vendor"
467
- msgstr ""
468
-
469
- #: includes/Helpers.php:1173
470
- msgid "Vendors"
471
- msgstr ""
472
-
473
- #: includes/Helpers.php:1176
474
- msgid "Sold by:"
475
- msgstr ""
476
-
477
- #: includes/Helpers.php:1178
478
- msgctxt "in categories fe. in Books > Crime stories"
479
- msgid "in"
480
- msgstr ""
481
-
482
- #: includes/Helpers.php:1179
483
- msgid "continue reading"
484
- msgstr ""
485
-
486
- #: includes/Helpers.php:1180
487
- #: includes/Settings.php:390
488
- msgid "No results"
489
- msgstr ""
490
-
491
- #: includes/Helpers.php:1181
492
- #: includes/Helpers.php:1182
493
- #: includes/Settings.php:427
494
- msgid "See all products..."
495
- msgstr ""
496
-
497
- #: includes/Helpers.php:1183
498
- #: includes/Settings.php:241
499
- msgid "Search for products..."
500
- msgstr ""
501
-
502
- #: includes/Integrations/Brands.php:192
503
- #: includes/Integrations/Brands.php:214
504
- msgid "Based on the plugin %s"
505
- msgstr ""
506
-
507
- #: includes/Integrations/Brands.php:197
508
- msgid "Search in brands"
509
- msgstr ""
510
-
511
- #: includes/Integrations/Brands.php:219
512
- msgid "Show brands"
513
- msgstr ""
514
-
515
- #: includes/Integrations/Brands.php:229
516
- #: includes/Integrations/Brands.php:233
517
- #: includes/Settings.php:445
518
- #: includes/Settings.php:449
519
- msgid "show images"
520
- msgstr ""
521
-
522
- #: includes/Integrations/Brands.php:322
523
- msgid "Brands"
524
- msgstr ""
525
-
526
- #: includes/Integrations/Brands.php:323
527
- msgid "Brand"
528
- msgstr ""
529
-
530
- #: includes/Integrations/Themes/DFDRonneby/DFDRonneby.php:18
531
- msgid "Note: We currently only support the header type: \"Header 10\""
532
- msgstr ""
533
-
534
- #: includes/Integrations/Themes/Impreza/Impreza.php:18
535
- msgid "Here is <a href=\"%s\" target=\"_blank\">article</a> about how to do it using Impreza child-theme."
536
- msgstr ""
537
-
538
- #: includes/Integrations/Themes/Shopkeeper/Shopkeeper.php:29
539
- msgid "To replace the search bar you have to enable the \"Predictive Search\" option in the Shopkeeper settings."
540
- msgstr ""
541
-
542
- #: includes/Integrations/Themes/Shopkeeper/Shopkeeper.php:30
543
- msgid "Go to <code>Appearance -> <a target=\"_blank\" href=\"%s\">Customize</a> -> Header -> Search</code> and enable <code>Predictive Search</code>"
544
- msgstr ""
545
-
546
- #: includes/Integrations/Themes/Shopkeeper/Shopkeeper.php:35
547
- msgid "Warning!"
548
- msgstr ""
549
-
550
- #: includes/Settings.php:98
551
- msgid "Starting"
552
- msgstr ""
553
-
554
- #: includes/Settings.php:106
555
- #: partials/admin/search-preview.php:23
556
- msgid "Autocomplete"
557
- msgstr ""
558
-
559
- #: includes/Settings.php:110
560
- msgid "Search config"
561
- msgstr ""
562
-
563
- #: includes/Settings.php:133
564
- msgid "Indexer"
565
- msgstr ""
566
-
567
- #: includes/Settings.php:138
568
- msgid "Increase sales"
569
- msgstr ""
570
-
571
- #: includes/Settings.php:138
572
- msgid "with simple tricks"
573
- msgstr ""
574
-
575
- #: includes/Settings.php:166
576
- msgid "<a target=\"_blank\" href=\"%s\">Read more</a> about this feature."
577
- msgstr ""
578
-
579
- #: includes/Settings.php:171
580
- msgid "How to add search bar in your theme?"
581
- msgstr ""
582
-
583
- #: includes/Settings.php:177
584
- msgid "How to add?"
585
- msgstr ""
586
-
587
- #: includes/Settings.php:186
588
- #: includes/Settings.php:366
589
- msgid "Basic"
590
- msgstr ""
591
-
592
- #: includes/Settings.php:192
593
- msgid "Minimum characters"
594
- msgstr ""
595
-
596
- #: includes/Settings.php:196
597
- msgid "Min characters to show autocomplete"
598
- msgstr ""
599
-
600
- #: includes/Settings.php:201
601
- msgid "Max form width"
602
- msgstr ""
603
-
604
- #: includes/Settings.php:204
605
- msgid "To set 100% width leave blank"
606
- msgstr ""
607
-
608
- #: includes/Settings.php:210
609
- msgid "Show submit button"
610
- msgstr ""
611
-
612
- #: includes/Settings.php:218
613
- msgid "Label"
614
- msgstr ""
615
-
616
- #: includes/Settings.php:218
617
- msgid "To display the magnifier icon leave this field empty."
618
- msgstr ""
619
-
620
- #: includes/Settings.php:221
621
- #: partials/search-form.php:57
622
- msgid "Search"
623
- msgstr ""
624
-
625
- #: includes/Settings.php:225
626
- msgid "Background color"
627
- msgstr ""
628
-
629
- #: includes/Settings.php:232
630
- #: includes/Settings.php:510
631
- msgid "Text color"
632
- msgstr ""
633
-
634
- #: includes/Settings.php:239
635
- msgid "Search input placeholder"
636
- msgstr ""
637
-
638
- #: includes/Settings.php:245
639
- msgid "Appearance"
640
- msgstr ""
641
-
642
- #: includes/Settings.php:251
643
- msgid "Style"
644
- msgstr ""
645
-
646
- #: includes/Settings.php:251
647
- msgid "FiboSearch provides two different styles of search bars: Solaris and Pirx. Solaris has a rectangular shape while Pirx is a bean-shaped bar with curvy and smooth edges. <a target=\"_blank\" href=\"%s\">See the differences</a> between Solaris and Pirx style."
648
- msgstr ""
649
-
650
- #: includes/Settings.php:254
651
- msgctxt "Solaris is proper name."
652
- msgid "Solaris (default)"
653
- msgstr ""
654
-
655
- #: includes/Settings.php:255
656
- msgctxt "Pirx is proper name."
657
- msgid "Pirx (beta)"
658
- msgstr ""
659
-
660
- #: includes/Settings.php:262
661
- msgid "FiboSearch might be displayed as a search bar, icon, or mixed of them."
662
- msgstr ""
663
-
664
- #: includes/Settings.php:262
665
- msgid "See what each of these layouts looks like"
666
- msgstr ""
667
-
668
- #: includes/Settings.php:275
669
- #: includes/Settings.php:299
670
- msgid "Breakpoint"
671
- msgstr ""
672
-
673
- #: includes/Settings.php:276
674
- #: includes/Settings.php:300
675
- msgid "px"
676
- msgstr ""
677
-
678
- #: includes/Settings.php:291
679
- #: widget.php:48
680
- msgid "Overlay on mobile"
681
- msgstr ""
682
-
683
- #: includes/Settings.php:291
684
- msgid "Covers anything that is displayed on the screen and simplifies the view to search bar + results."
685
- msgstr ""
686
-
687
- #: includes/Settings.php:292
688
- msgid "The search will open as an overlay on mobile"
689
- msgstr ""
690
-
691
- #: includes/Settings.php:308
692
- msgid "Darkened background"
693
- msgstr ""
694
-
695
- #: includes/Settings.php:308
696
- msgid "Darkening the page background while autocomplete is active gives it stronger emphasis, minimizing elements (e.g., ads, carousels, and other page content) that could distract users from considering autocomplete suggestions."
697
- msgstr ""
698
-
699
- #: includes/Settings.php:309
700
- msgid "(beta feature)"
701
- msgstr ""
702
-
703
- #: includes/Settings.php:317
704
- msgid "Other colors"
705
- msgstr ""
706
-
707
- #: includes/Settings.php:323
708
- msgid "Search input background"
709
- msgstr ""
710
-
711
- #: includes/Settings.php:330
712
- msgid "Search input text"
713
- msgstr ""
714
-
715
- #: includes/Settings.php:337
716
- msgid "Search input border"
717
- msgstr ""
718
-
719
- #: includes/Settings.php:344
720
- msgid "Preloader"
721
- msgstr ""
722
-
723
- #: includes/Settings.php:350
724
- msgid "Show preloader"
725
- msgstr ""
726
-
727
- #: includes/Settings.php:357
728
- msgid "Upload preloader image"
729
- msgstr ""
730
-
731
- #: includes/Settings.php:372
732
- msgid "Limit"
733
- msgstr ""
734
-
735
- #: includes/Settings.php:375
736
- msgid "maximum number of suggestions"
737
- msgstr ""
738
-
739
- #: includes/Settings.php:380
740
- msgid "Group results"
741
- msgstr ""
742
-
743
- #: includes/Settings.php:388
744
- msgctxt "admin"
745
- msgid "No results label"
746
- msgstr ""
747
-
748
- #: includes/Settings.php:394
749
- msgid "Products"
750
- msgstr ""
751
-
752
- #: includes/Settings.php:400
753
- msgid "Show product image"
754
- msgstr ""
755
-
756
- #: includes/Settings.php:406
757
- msgid "Show price"
758
- msgstr ""
759
-
760
- #: includes/Settings.php:412
761
- msgid "Show product description"
762
- msgstr ""
763
-
764
- #: includes/Settings.php:419
765
- msgid "Show SKU"
766
- msgstr ""
767
-
768
- #: includes/Settings.php:425
769
- msgid "More results label"
770
- msgstr ""
771
-
772
- #: includes/Settings.php:431
773
- msgid "Non-products in autocomplete"
774
- msgstr ""
775
-
776
- #: includes/Settings.php:437
777
- msgid "Show categories"
778
- msgstr ""
779
-
780
- #: includes/Settings.php:455
781
- msgid "Show tags"
782
- msgstr ""
783
-
784
- #: includes/Settings.php:463
785
- msgid "Show posts"
786
- msgstr ""
787
-
788
- #: includes/Settings.php:470
789
- msgid "Show pages"
790
- msgstr ""
791
-
792
- #: includes/Settings.php:477
793
- msgid "Details panel"
794
- msgstr ""
795
-
796
- #: includes/Settings.php:483
797
- msgid "Show Details panel"
798
- msgstr ""
799
-
800
- #: includes/Settings.php:483
801
- msgid "The Details panel is an additional container for extended information. The details change dynamically when the cursor hovers over one of the suggestions."
802
- msgstr ""
803
-
804
- #: includes/Settings.php:490
805
- msgid "Suggestions colors"
806
- msgstr ""
807
-
808
- #: includes/Settings.php:496
809
- msgid "Suggestion background"
810
- msgstr ""
811
-
812
- #: includes/Settings.php:503
813
- msgid "Suggestion selected"
814
- msgstr ""
815
-
816
- #: includes/Settings.php:517
817
- msgid "Highlight color"
818
- msgstr ""
819
-
820
- #: includes/Settings.php:524
821
- msgid "Border color"
822
- msgstr ""
823
-
824
- #: includes/Settings.php:533
825
- msgid "Products search scope"
826
- msgstr ""
827
-
828
- #: includes/Settings.php:539
829
- msgid "Search in description"
830
- msgstr ""
831
-
832
- #: includes/Settings.php:545
833
- msgid "Search in short description"
834
- msgstr ""
835
-
836
- #: includes/Settings.php:551
837
- msgid "Search in SKU"
838
- msgstr ""
839
-
840
- #: includes/Settings.php:553
841
- msgid "searching also in variable products SKU"
842
- msgstr ""
843
-
844
- #: includes/Settings.php:553
845
- msgid "Searching in variable products SKU is available only in <a target=\"_blank\" href=\"%s\">the pro version</a>."
846
- msgstr ""
847
-
848
- #: includes/Settings.php:558
849
- #: partials/admin/features.php:23
850
- msgid "Search in attributes"
851
- msgstr ""
852
-
853
- #: includes/Settings.php:565
854
- #: partials/admin/features.php:24
855
- msgid "Search in categories"
856
- msgstr ""
857
-
858
- #: includes/Settings.php:572
859
- #: partials/admin/features.php:25
860
- msgid "Search in tags"
861
- msgstr ""
862
-
863
- #: includes/Settings.php:579
864
- #: partials/admin/features.php:22
865
- msgid "Search in custom fields"
866
- msgstr ""
867
-
868
- #: includes/Settings.php:579
869
- msgid "Make your custom fields searchable from our search bar."
870
- msgstr ""
871
-
872
- #: includes/Settings.php:586
873
- msgid "Exclude “out of stock” products"
874
- msgstr ""
875
-
876
- #: includes/Settings.php:592
877
- msgid "Fuzziness"
878
- msgstr ""
879
-
880
- #: includes/Settings.php:604
881
- msgid "The synonyms feature allows your users to find more relevant results. If your products have alternative names and users often misspell them, consider adding synonyms. <a target=\"_blank\" href=\"%s\">Read more</a> about this feature."
882
- msgstr ""
883
-
884
- #: includes/Settings.php:606
885
- msgid "Synonyms should be separated by a comma. Each new synonyms group is entered in a new line. You can use a phrase instead of a single word. <br /> <br />Sample list:<br /> <br /><span class=\"dgwt-wcas-synonyms-sample\">sofa, couch, davenport, divan, settee<br />big, grand, great, large, outsize</span>"
886
- msgstr ""
887
-
888
- #: includes/Settings.php:611
889
- msgid "Exclude/include products"
890
- msgstr ""
891
-
892
- #: includes/Settings.php:617
893
- msgid "Filtering mode"
894
- msgstr ""
895
-
896
- #: includes/Settings.php:619
897
- msgid "Exclude the product group from the search results or allow search only among the indicated product group."
898
- msgstr ""
899
-
900
- #: includes/Settings.php:626
901
- msgid "Exclude"
902
- msgstr ""
903
-
904
- #: includes/Settings.php:627
905
- msgid "Include"
906
- msgstr ""
907
-
908
- #: includes/Settings.php:633
909
- msgid "Filters"
910
- msgstr ""
911
-
912
- #: includes/Settings.php:635
913
- msgid "Filters that specify the product group that will be affected by the above mode"
914
- msgstr ""
915
-
916
- #: includes/Settings.php:647
917
- msgid "Pro features"
918
- msgstr ""
919
-
920
- #: includes/Settings.php:653
921
- msgid "Speed up search!"
922
- msgstr ""
923
-
924
- #: includes/Settings.php:659
925
- msgid "Scheduling indexing"
926
- msgstr ""
927
-
928
- #: includes/Settings.php:665
929
- msgid "Enable Scheduler"
930
- msgstr ""
931
-
932
- #: includes/Settings.php:665
933
- msgid "In most cases, you don't need to use the scheduler because the search index updates when you edit products. If you use import tools or custom code to refresh prices or bulk add/edit products, the indexing scheduler will be helpful."
934
- msgstr ""
935
-
936
- #: includes/Settings.php:673
937
- msgid "Interval"
938
- msgstr ""
939
-
940
- #: includes/Settings.php:677
941
- msgid "daily"
942
- msgstr ""
943
-
944
- #: includes/Settings.php:678
945
- msgid "weekly"
946
- msgstr ""
947
-
948
- #: includes/Settings.php:684
949
- msgid "Schedule time"
950
- msgstr ""
951
-
952
- #: includes/Settings.php:692
953
- msgid "Increases sales conversions"
954
- msgstr ""
955
-
956
- #: includes/Settings.php:693
957
- msgid "Returns suggestions based on likely relevance, even though a search keyword may not exactly match. E.g if you type “ipho<b>m</b>e” you get the same results as for “iphone”. <a target=\"_blank\" href=\"%s\">Read more</a> about the fuzzy search feature."
958
- msgstr ""
959
-
960
- #: includes/Settings.php:700
961
- msgid "Fuzzy matching"
962
- msgstr ""
963
-
964
- #: includes/Settings.php:705
965
- msgid "-- Disabled"
966
- msgstr ""
967
-
968
- #: includes/Settings.php:706
969
- msgid "Soft"
970
- msgstr ""
971
-
972
- #: includes/Settings.php:707
973
- msgid "Normal"
974
- msgstr ""
975
-
976
- #: includes/Settings.php:708
977
- msgid "Hard"
978
- msgstr ""
979
-
980
- #: includes/Settings.php:715
981
- msgid "Index status"
982
- msgstr ""
983
-
984
- #: includes/Settings.php:932
985
- msgid "You have selected the <b>Style -> Style -> Pirx (bean-shaped)</b> option. Pirx style forces a submit button to be enabled. You can find this option a few rows below. That's why this option is blocked."
986
- msgstr ""
987
-
988
- #: partials/admin/debug/debug.php:21
989
- msgid "Debug page"
990
- msgstr ""
991
-
992
- #: partials/admin/embedding-in-theme.php:18
993
- msgid "child theme of <b>%s</b>"
994
- msgstr ""
995
-
996
- #: partials/admin/embedding-in-theme.php:22
997
- msgid "You are using the <b>%s</b> theme%s. Fantastic!"
998
- msgstr ""
999
-
1000
- #: partials/admin/embedding-in-theme.php:23
1001
- msgid "We support this theme so you can easily replace all default search bars."
1002
- msgstr ""
1003
-
1004
- #: partials/admin/features.php:14
1005
- msgid "If users can’t find the product they’re searching for, they can’t buy it. Help your customers to find the right products even <span>10× faster</span>."
1006
- msgstr ""
1007
-
1008
- #: partials/admin/features.php:16
1009
- msgid "Update now and boost your sales. You will receive a <b>30-day satisfaction guarantee</b>. A return on investment will come very quickly."
1010
- msgstr ""
1011
-
1012
- #: partials/admin/features.php:19
1013
- msgid "<b>New Ultra-Fast Search Engine</b> – works very fast even with 100,000+ products "
1014
- msgstr ""
1015
-
1016
- #: partials/admin/features.php:20
1017
- msgid "Professional and fast <b>help to embed</b> or <b>replacing</b> the search bar in your theme"
1018
- msgstr ""
1019
-
1020
- #: partials/admin/features.php:26
1021
- msgid "Search by variation product SKU"
1022
- msgstr ""
1023
-
1024
- #: partials/admin/features.php:27
1025
- msgid "Search in brands (WooCommerce Brands or YITH WooCommerce Brands)"
1026
- msgstr ""
1027
-
1028
- #: partials/admin/features.php:28
1029
- msgid "Search for posts and pages"
1030
- msgstr ""
1031
-
1032
- #: partials/admin/features.php:30
1033
- msgid "Individual customization of the search bar (simple CSS improvements)"
1034
- msgstr ""
1035
-
1036
- #: partials/admin/features.php:31
1037
- msgid "And more..."
1038
- msgstr ""
1039
-
1040
- #: partials/admin/features.php:33
1041
- msgid "Upgrade Now!"
1042
- msgstr ""
1043
-
1044
- #: partials/admin/how-to-use.php:13
1045
- msgid "There are four easy ways to display the search bar in your theme"
1046
- msgstr ""
1047
-
1048
- #: partials/admin/how-to-use.php:15
1049
- msgid "As a menu item - go to the %s and add the menu item “FiboSearch bar”. Done!"
1050
- msgstr ""
1051
-
1052
- #: partials/admin/how-to-use.php:15
1053
- msgid "Menu Screen"
1054
- msgstr ""
1055
-
1056
- #: partials/admin/how-to-use.php:16
1057
- msgid "Using a shortcode - %s"
1058
- msgstr ""
1059
-
1060
- #: partials/admin/how-to-use.php:17
1061
- msgid "As a widget - go to the %s and choose “FiboSearch bar”"
1062
- msgstr ""
1063
-
1064
- #: partials/admin/how-to-use.php:17
1065
- msgid "Widgets Screen"
1066
- msgstr ""
1067
-
1068
- #: partials/admin/how-to-use.php:18
1069
- msgid "Using PHP - %s"
1070
- msgstr ""
1071
-
1072
- #: partials/admin/how-to-use.php:21
1073
- msgid "Are there any difficulties? <b>We will do it for you!</b> We offer free of charge search bar implementation for Pro users. <a target=\"_blank\" href=\"%s\">Become one now!</a>"
1074
- msgstr ""
1075
-
1076
- #: partials/admin/indexer-header-demo.php:11
1077
- msgid "The search index does not exist yet. Build it now."
1078
- msgstr ""
1079
-
1080
- #: partials/admin/indexer-header-demo.php:15
1081
- msgid "Build index"
1082
- msgstr ""
1083
-
1084
- #: partials/admin/indexer-header-demo.php:16
1085
- msgid "Show details"
1086
- msgstr ""
1087
-
1088
- #: partials/admin/search-preview.php:21
1089
- msgid "Preview"
1090
- msgstr ""
1091
-
1092
- #: partials/admin/search-preview.php:29
1093
- #: partials/admin/search-preview.php:69
1094
- msgid "On mobile"
1095
- msgstr ""
1096
-
1097
- #: partials/admin/search-preview.php:30
1098
- #: partials/admin/search-preview.php:70
1099
- msgid "On desktop"
1100
- msgstr ""
1101
-
1102
- #: partials/admin/search-preview.php:38
1103
- #: partials/admin/search-preview.php:80
1104
- #: partials/search-form.php:39
1105
- msgid "Products search"
1106
- msgstr ""
1107
-
1108
- #: partials/admin/search-preview.php:125
1109
- msgid "Sample brand <strong>name</strong>"
1110
- msgstr ""
1111
-
1112
- #: partials/admin/search-preview.php:141
1113
- msgid "Sample category <strong>name</strong>"
1114
- msgstr ""
1115
-
1116
- #: partials/admin/search-preview.php:154
1117
- msgid "Sample tag <strong>name</strong>"
1118
- msgstr ""
1119
-
1120
- #: partials/admin/search-preview.php:167
1121
- msgid "Sample post <strong>name</strong>"
1122
- msgstr ""
1123
-
1124
- #: partials/admin/search-preview.php:180
1125
- msgid "Sample page <strong>name</strong>"
1126
- msgstr ""
1127
-
1128
- #: partials/admin/search-preview.php:196
1129
- msgid "Sample product <strong>name</strong>"
1130
- msgstr ""
1131
-
1132
- #: partials/admin/search-preview.php:198
1133
- #: partials/admin/search-preview.php:243
1134
- msgid "Lorem <strong>ipsum</strong> dolor sit amet, consectetur adipiscing elit. Quisque gravida lacus nec diam porttitor pharetra. Nulla facilisi. Proin pharetra imperdiet neque, non varius."
1135
- msgstr ""
1136
-
1137
- #: partials/admin/search-preview.php:232
1138
- msgid "Sample product name"
1139
- msgstr ""
1140
-
1141
- #: partials/admin/settings.php:27
1142
- msgid "Settings"
1143
- msgstr ""
1144
-
1145
- #: partials/admin/settings.php:32
1146
- #: partials/admin/settings.php:34
1147
- msgid "Show advanced settings"
1148
- msgstr ""
1149
-
1150
- #: partials/admin/stats/critical-searches-row.php:12
1151
- msgid "Check"
1152
- msgstr ""
1153
-
1154
- #: partials/admin/stats/langs.php:10
1155
- msgid "Language"
1156
- msgstr ""
1157
-
1158
- #: partials/admin/stats/langs.php:11
1159
- msgid "Shows stats only for the selected language."
1160
- msgstr ""
1161
-
1162
- #: partials/admin/stats/stats.php:8
1163
- msgid "Critical searches without result"
1164
- msgstr ""
1165
-
1166
- #: partials/admin/stats/stats.php:10
1167
- msgid "The FiboSearch analyzer found <b>%d critical search phrases</b> that have been typed by users over the last %d days. These phrases don`t return any search results. It's time to fix it."
1168
- msgstr ""
1169
-
1170
- #: partials/admin/stats/stats.php:18
1171
- #: partials/admin/stats/stats.php:128
1172
- #: partials/admin/stats/stats.php:177
1173
- msgid "Phrase"
1174
- msgstr ""
1175
-
1176
- #: partials/admin/stats/stats.php:19
1177
- #: partials/admin/stats/stats.php:129
1178
- #: partials/admin/stats/stats.php:178
1179
- msgid "Repetitions"
1180
- msgstr ""
1181
-
1182
- #: partials/admin/stats/stats.php:20
1183
- msgid "Check if it's been solved"
1184
- msgstr ""
1185
-
1186
- #: partials/admin/stats/stats.php:48
1187
- msgid "How to fix it?"
1188
- msgstr ""
1189
-
1190
- #: partials/admin/stats/stats.php:50
1191
- msgid "There are several ways to solve these problems. Every phrase may require a different approach. See what methods you could use:"
1192
- msgstr ""
1193
-
1194
- #: partials/admin/stats/stats.php:52
1195
- msgid "<b>Adding the phrase to the product name</b> - just add the phrase to the product name, description, SKU, custom field, tag or anything else that's in your current search scope"
1196
- msgstr ""
1197
-
1198
- #: partials/admin/stats/stats.php:53
1199
- msgid "<b>Synonyms</b> - if the phrase is an alternate version of any other words, add it as a synonym. Learn more about <a href=\"%s\" target=\"_blank\">the synonyms feature."
1200
- msgstr ""
1201
-
1202
- #: partials/admin/stats/stats.php:55
1203
- msgid "<b>Varied naming convention</b> - this issue occurs when users may type a phrase in several different way – eg. you have SKU \"CB-978-8-7290\", but users might type it in a different way: \"CB978 8 7290\", \"CB/978/8/7290\", \"CB97887290\" and so on. To solve such problems, contact our <a href=\"%s\" target=\"_blank\">technical support</a>, because the solution may be different for each case."
1204
- msgstr ""
1205
-
1206
- #: partials/admin/stats/stats.php:64
1207
- msgid "Fantastic! The FiboSearch analyzer hasn't found any critical search phrases for the last %d days."
1208
- msgstr ""
1209
-
1210
- #: partials/admin/stats/stats.php:71
1211
- msgid "Searches stats (last %d days)"
1212
- msgstr ""
1213
-
1214
- #: partials/admin/stats/stats.php:76
1215
- #: partials/admin/stats/stats.php:87
1216
- msgid "Total searches"
1217
- msgstr ""
1218
-
1219
- #: partials/admin/stats/stats.php:77
1220
- msgid "autocomplete"
1221
- msgstr ""
1222
-
1223
- #: partials/admin/stats/stats.php:88
1224
- msgid "search results page"
1225
- msgstr ""
1226
-
1227
- #: partials/admin/stats/stats.php:98
1228
- msgid "Searches"
1229
- msgstr ""
1230
-
1231
- #: partials/admin/stats/stats.php:99
1232
- msgid "returning results"
1233
- msgstr ""
1234
-
1235
- #: partials/admin/stats/stats.php:121
1236
- msgid "Top searches - autocomplete"
1237
- msgstr ""
1238
-
1239
- #: partials/admin/stats/stats.php:122
1240
- msgid "The list of phrases with results is displayed to users as a drop down list with auto suggestions."
1241
- msgstr ""
1242
-
1243
- #: partials/admin/stats/stats.php:148
1244
- #: partials/admin/stats/stats.php:197
1245
- msgid "show top 100 phrases"
1246
- msgstr ""
1247
-
1248
- #: partials/admin/stats/stats.php:159
1249
- #: partials/admin/stats/stats.php:208
1250
- msgid "0 searches with results"
1251
- msgstr ""
1252
-
1253
- #: partials/admin/stats/stats.php:169
1254
- msgid "Top searches - WooCommerce search results page"
1255
- msgstr ""
1256
-
1257
- #: partials/admin/stats/stats.php:170
1258
- msgid "Here is the list of phrases that were typed by users who followed the pattern: type the phrase into the bar → clicked “See all results” or just hit enter/return (for Mac users)"
1259
- msgstr ""
1260
-
1261
- #: partials/admin/troubleshooting.php:11
1262
- msgid "Processing asynchronous tests..."
1263
- msgstr ""
1264
-
1265
- #: partials/admin/troubleshooting.php:18
1266
- msgid "Great! We have not detected any problems that could affect the correct functioning of our plugin."
1267
- msgstr ""
1268
-
1269
- #: partials/admin/troubleshooting.php:22
1270
- msgid "Recheck the status"
1271
- msgstr ""
1272
-
1273
- #: widget.php:24
1274
- msgid "AJAX (live) search form for WooCommerce"
1275
- msgstr ""
1276
-
1277
- #: widget.php:31
1278
- msgid "Title"
1279
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
loco.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <bundle name="FiboSearch - AJAX Search for WooCommerce">
3
+ <domain name="ajax-search-for-woocommerce">
4
+ <project name="FiboSearch - AJAX Search for WooCommerce" slug="ajax-search-for-woocommerce">
5
+ <source>
6
+ <directory>.</directory>
7
+ </source>
8
+ <target>
9
+ <directory>languages</directory>
10
+ </target>
11
+ <template>
12
+ <file>languages/ajax-search-for-woocommerce.pot</file>
13
+ </template>
14
+ </project>
15
+ </domain>
16
+ <exclude>
17
+ <directory>node_modules</directory>
18
+ <directory>vendor</directory>
19
+ <directory>fs</directory>
20
+ </exclude>
21
+ </bundle>
partials/admin/stats/stats.php CHANGED
@@ -7,9 +7,14 @@ if ( ! defined( 'ABSPATH' ) ) {
7
  <div class="dgwt-wcas-analytics-module-critical">
8
  <h3><?php _e( 'Critical searches without result', 'ajax-search-for-woocommerce' ); ?></h3>
9
  <?php if ( ! empty( $vars['critical-searches'] ) ): ?>
10
- <p class="dgwt-wcas-analytics-subtitle"><?php printf( __( "The FiboSearch analyzer found <b>%d critical search phrases</b> that have been typed by users over the last %d days. These phrases don`t return any search results. It's time to fix it.", 'ajax-search-for-woocommerce' ),
11
- $vars['critical-searches-total'], $vars['days'] ); ?></p>
12
-
 
 
 
 
 
13
  <div class="dgwt-wcas-analytics-module-critical-body">
14
  <table class="widefat fixed dgwt-wcas-analytics-table">
15
  <thead>
@@ -213,6 +218,15 @@ if ( ! defined( 'ABSPATH' ) ) {
213
  </table>
214
 
215
  </div>
 
216
 
217
-
 
 
 
 
 
 
 
 
218
  </div>
7
  <div class="dgwt-wcas-analytics-module-critical">
8
  <h3><?php _e( 'Critical searches without result', 'ajax-search-for-woocommerce' ); ?></h3>
9
  <?php if ( ! empty( $vars['critical-searches'] ) ): ?>
10
+ <p class="dgwt-wcas-analytics-subtitle">
11
+ <?php printf( _n( 'The FiboSearch analyzer found <b>1 critical search phrase</b>.', 'The FiboSearch analyzer found <b>%d critical search phrases</b>.', $vars['critical-searches-total'], 'ajax-search-for-woocommerce' ), $vars['critical-searches-total'] );
12
+ echo ' ';
13
+ printf( _n( 'These phrases have been typed by users over the last 1 day.', 'These phrases have been typed by users over the last %d days.', $vars['days'], 'ajax-search-for-woocommerce' ), $vars['days'] );
14
+ echo ' ';
15
+ _e( "These phrases don`t return any search results. It's time to fix it.", 'ajax-search-for-woocommerce' );
16
+ ?>
17
+ </p>
18
  <div class="dgwt-wcas-analytics-module-critical-body">
19
  <table class="widefat fixed dgwt-wcas-analytics-table">
20
  <thead>
218
  </table>
219
 
220
  </div>
221
+ </div>
222
 
223
+ <div class="dgwt-wcas-analytics-module-reset">
224
+ <h3><?php _e( 'Maintenance', 'ajax-search-for-woocommerce' ) ?></h3>
225
+ <p class="dgwt-wcas-analytics-subtitle">
226
+ <?php
227
+ $reset = sprintf( '<a class="js-dgwt-wcas-analytics-reset" href="#">%s</a>', __( 'reset your stats', 'ajax-search-for-woocommerce' ) ) . '<span class="dgwt-wcas-ajax-loader"></span>';
228
+ $size = $vars['autocomplete']['total-results'] > 0 ? $vars['table-info']['data'] + $vars['table-info']['index'] : 0;
229
+ ?>
230
+ <?php printf( _x( 'The stats older than %d days are removed from your database on a daily basis. Now you have %d records in the DB that weigh %.2fMB. You can %s now and start collecting them all over again.', 'The last placeholder is a button with text "reset your stats"', 'ajax-search-for-woocommerce' ), $vars['days'], esc_html( $vars['autocomplete']['total-results'] ), $size, $reset ); ?>
231
+ </p>
232
  </div>
partials/search-form.php CHANGED
@@ -16,6 +16,7 @@ $uniqueID = ++ DGWT_WCAS()->searchInstances;
16
  $layoutType = ! empty( $args['layout'] ) ? $args['layout'] : $layout->layout;
17
  $iconType = ! empty( $args['icon'] ) ? $args['icon'] : $layout->icon;
18
  $isAMP = Helpers::isAMPEndpoint();
 
19
  $customParams = apply_filters( 'dgwt/wcas/search_bar/custom_params', array(), DGWT_WCAS()->searchInstances );
20
 
21
  if ( ! empty( $args['mobile_overlay'] ) && ! empty( $args['mobile_overlay_breakpoint'] ) ) {
@@ -29,7 +30,7 @@ if ( ! empty( $args['layout_breakpoint'] ) && ! empty( $args['layout_breakpoint'
29
  ?>
30
  <div <?php echo $isAMP ? "id='dgwt-wcas-search-wrapp{$uniqueID}'" : ''; ?> class="dgwt-wcas-search-wrapp <?php echo Helpers::searchWrappClasses( $args ); ?>">
31
  <?php if ( in_array( $layoutType, array( 'icon', 'icon-flexible', 'icon-flexible-inv' ) ) ): ?>
32
- <div <?php echo $isAMP ? "on='tap:dgwt-wcas-search-wrapp{$uniqueID}.toggleClass(class=\"dgwt-wcas-layout-icon-open\")'" : ""; ?> class="dgwt-wcas-search-icon js-dgwt-wcas-search-icon-handler"><?php echo Helpers::getMagnifierIco( 'dgwt-wcas-ico-magnifier-handler', $iconType ); ?></div>
33
  <div class="dgwt-wcas-search-icon-arrow"></div>
34
  <?php endif; ?>
35
  <form class="dgwt-wcas-search-form" role="search" action="<?php echo Helpers::searchFormAction(); ?>" method="get">
16
  $layoutType = ! empty( $args['layout'] ) ? $args['layout'] : $layout->layout;
17
  $iconType = ! empty( $args['icon'] ) ? $args['icon'] : $layout->icon;
18
  $isAMP = Helpers::isAMPEndpoint();
19
+ $iconColor = ! empty( $args['icon_color'] ) ? $args['icon_color'] : '';
20
  $customParams = apply_filters( 'dgwt/wcas/search_bar/custom_params', array(), DGWT_WCAS()->searchInstances );
21
 
22
  if ( ! empty( $args['mobile_overlay'] ) && ! empty( $args['mobile_overlay_breakpoint'] ) ) {
30
  ?>
31
  <div <?php echo $isAMP ? "id='dgwt-wcas-search-wrapp{$uniqueID}'" : ''; ?> class="dgwt-wcas-search-wrapp <?php echo Helpers::searchWrappClasses( $args ); ?>">
32
  <?php if ( in_array( $layoutType, array( 'icon', 'icon-flexible', 'icon-flexible-inv' ) ) ): ?>
33
+ <div <?php echo $isAMP ? "on='tap:dgwt-wcas-search-wrapp{$uniqueID}.toggleClass(class=\"dgwt-wcas-layout-icon-open\")'" : ""; ?> class="dgwt-wcas-search-icon js-dgwt-wcas-search-icon-handler"><?php echo Helpers::getMagnifierIco( 'dgwt-wcas-ico-magnifier-handler', $iconType, $iconColor ); ?></div>
34
  <div class="dgwt-wcas-search-icon-arrow"></div>
35
  <?php endif; ?>
36
  <form class="dgwt-wcas-search-form" role="search" action="<?php echo Helpers::searchFormAction(); ?>" method="get">
partials/themes/neve.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
4
+ exit;
5
+ }
6
+
7
+ add_filter( 'hfg_template_locations', function ( $locations ) {
8
+ $locations = array_merge( array( DGWT_WCAS_DIR . 'partials/themes/neve/' ), $locations );
9
+
10
+ return $locations;
11
+ } );
partials/themes/neve/components/component-search-responsive.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
4
+ exit;
5
+ }
6
+
7
+ echo do_shortcode( '[fibosearch layout="icon"]' );
partials/themes/neve/components/component-search.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
4
+ exit;
5
+ }
6
+ ?>
7
+ <div class="component-wrap search-field">
8
+ <div class="widget widget-search">
9
+ <?php echo do_shortcode('[fibosearch]'); ?>
10
+ </div>
11
+ </div>
partials/themes/woostify.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'DGWT_WCAS_FILE' ) ) {
4
+ exit;
5
+ }
6
+
7
+ if ( ! function_exists( 'woostify_search' ) ) {
8
+ // Function used to generate search form in sidebar.
9
+ function woostify_search() {
10
+ if ( ! function_exists( 'woostify_options' ) ) {
11
+ return;
12
+ }
13
+ $options = woostify_options( false );
14
+ if ( ! $options['header_search_icon'] ) {
15
+ return;
16
+ }
17
+
18
+ $isHide = $options['mobile_menu_hide_search_field'];
19
+ ?>
20
+ <div class="site-search <?php echo $isHide ? esc_attr( 'hide' ) : ''; ?>">
21
+ <?php echo do_shortcode( '[fibosearch]' ); ?>
22
+ </div>
23
+ <?php
24
+ }
25
+ }
26
+
27
+ add_action( 'init', function () {
28
+ // When we remove the popups, there is no "click" event on the magnifier icon.
29
+ remove_action( 'woostify_after_footer', 'woostify_dialog_search', 30 );
30
+ remove_action( 'elementor/page_templates/canvas/after_content', 'woostify_dialog_search', 50 );
31
+ } );
32
+
33
+ add_action( 'wp_footer', function () {
34
+ if ( ! function_exists( 'woostify_options' ) ) {
35
+ return;
36
+ }
37
+ $options = woostify_options( false );
38
+
39
+ // Desktop search.
40
+ echo '<div id="dgwt-wcas-desktop-search" style="display: none;">' . do_shortcode( '[fibosearch layout="icon"]' ) . '</div>';
41
+ ?>
42
+ <script>
43
+ var desktopSearch = document.querySelector('.header-search-icon .icon-search');
44
+ if (desktopSearch !== null) {
45
+ desktopSearch.replaceWith(document.querySelector('#dgwt-wcas-desktop-search > div'));
46
+ }
47
+ document.querySelector('#dgwt-wcas-desktop-search').remove();
48
+ </script>
49
+ <style>
50
+ .site-header .header-search-icon .dgwt-wcas-search-icon {
51
+ width: 24px;
52
+ margin-bottom: 2px;
53
+ }
54
+
55
+ .site-header .header-search-icon .dgwt-wcas-ico-magnifier-handler {
56
+ max-width: 24px;
57
+ }
58
+ </style>
59
+ <?php
60
+ // Mobile sticky footer search.
61
+ if ( isset( $options['sticky_footer_bar_enable'] ) && $options['sticky_footer_bar_enable'] ) {
62
+ echo '<div id="dgwt-wcas-mobile-sticky-footer-search" style="display: none;">' . do_shortcode( '[fibosearch layout="icon"]' ) . '</div>';
63
+ ?>
64
+ <script>
65
+ var mobileStickyFooterSearch = document.querySelector('.woostify-item-list .header-search-icon');
66
+ if (mobileStickyFooterSearch !== null) {
67
+ mobileStickyFooterSearch.replaceWith(document.querySelector('#dgwt-wcas-mobile-sticky-footer-search > div'));
68
+ }
69
+ document.querySelector('#dgwt-wcas-mobile-sticky-footer-search').remove();
70
+ </script>
71
+ <?php
72
+ }
73
+ } );
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: 6.0
6
  Requires PHP: 7.0
7
- Stable tag: 1.19.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -105,7 +105,7 @@ We have prepared a one-click replacement of the search bar for the following the
105
  * Astra
106
  * Avada
107
  * Sailent
108
- * and 31 more... See a complete list of integrated themes on [our documentation](https://fibosearch.com/documentation/themes-integrations/?utm_source=readme&utm_medium=referral&utm_campaign=asfw&utm_content=theme-integrations).
109
 
110
 
111
  If you want to replace your search bar in another theme, please [contact our support team](https://fibosearch.com/contact/?utm_source=readme&utm_medium=referral&utm_campaign=asfw&utm_content=contact&utm_gen=utmdc).
@@ -142,6 +142,23 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
142
 
143
  == Changelog ==
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  = 1.19.0, July 27, 2022 =
146
  * ADD: New feature - New search layout called “Pirx”
147
  * ADD: New feature - FiboSearch Analytics
@@ -149,7 +166,7 @@ You can read more and compare Pro and Free features here: [Full comparison - Pro
149
  * ADD: New feature - Voice search
150
  * ADD: New feature - FiboSearch blocks in the block editor
151
  * ADD: Separated option “mobile_overlay_breakpoint” to handle overlay on mobile breakpoint
152
- * ADD: Add "mobile_overlay_breakpoint" as a shortcode param to add the opportunity to set this value independently from global settings
153
  * ADD: New search bars fixer: try to regenerate search bars when they were added by AJAX callbacks
154
  * ADD: Support for header builder in integration with Astra theme
155
  * ADD: Another question marks for FiboSearch settings that cover our documentation
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 7.0
7
+ Stable tag: 1.20.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
105
  * Astra
106
  * Avada
107
  * Sailent
108
+ * and 34 more... See a complete list of integrated themes on [our documentation](https://fibosearch.com/documentation/themes-integrations/?utm_source=readme&utm_medium=referral&utm_campaign=asfw&utm_content=theme-integrations).
109
 
110
 
111
  If you want to replace your search bar in another theme, please [contact our support team](https://fibosearch.com/contact/?utm_source=readme&utm_medium=referral&utm_campaign=asfw&utm_content=contact&utm_gen=utmdc).
142
 
143
  == Changelog ==
144
 
145
+ = 1.20.0, September 13, 2022 =
146
+ * ADD: Integration with Woostify theme
147
+ * ADD: Integration with Neve theme
148
+ * ADD: Integration with WP Rocket
149
+ * ADD: Include block sources in the plugin package
150
+ * ADD: Possibility to reset search statistics from the settings page
151
+ * ADD: Support for &lt;sub&gt; element in autocomplete suggestions
152
+
153
+ * FIX: Incorrect display of styles with personalization of the search
154
+ * FIX: Wrong settings index in Impreza and Enfold theme
155
+ * FIX: Removed of unnecessary language files
156
+ * FIX: Always set cursor at the end of the input
157
+ * FIX: Incorrect verification if the browser supports speech recognition
158
+ * FIX: FiboSearch Analytics - not working “check” buttons of the latest loading list
159
+ * FIX: Unnecessary options and transients after uninstalling plugin
160
+
161
+
162
  = 1.19.0, July 27, 2022 =
163
  * ADD: New feature - New search layout called “Pirx”
164
  * ADD: New feature - FiboSearch Analytics
166
  * ADD: New feature - Voice search
167
  * ADD: New feature - FiboSearch blocks in the block editor
168
  * ADD: Separated option “mobile_overlay_breakpoint” to handle overlay on mobile breakpoint
169
+ * ADD: Add "mobile_overlay_breakpoint" as a shortcode param to add the opportunity to set this value independently from global settings.
170
  * ADD: New search bars fixer: try to regenerate search bars when they were added by AJAX callbacks
171
  * ADD: Support for header builder in integration with Astra theme
172
  * ADD: Another question marks for FiboSearch settings that cover our documentation
src/blocks/search-nav/block.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "fibosearch/search-nav",
5
+ "version": "1.0.0",
6
+ "title": "FiboSearch navigation item",
7
+ "category": "widgets",
8
+ "description": "AJAX (live) search form for WooCommerce",
9
+ "keywords": [
10
+ "search",
11
+ "product"
12
+ ],
13
+ "supports": {
14
+ "html": false
15
+ },
16
+ "usesContext": [
17
+ "textColor"
18
+ ],
19
+ "parent": [
20
+ "core/navigation"
21
+ ],
22
+ "attributes": {
23
+ "inheritPluginSettings": {
24
+ "type": "boolean",
25
+ "default": false
26
+ },
27
+ "layout": {
28
+ "enum": [
29
+ "classic",
30
+ "icon",
31
+ "icon-flexible",
32
+ "icon-flexible-inv"
33
+ ],
34
+ "type": "string",
35
+ "default": "icon"
36
+ },
37
+ "darkenedBackground": {
38
+ "type": "boolean",
39
+ "default": false
40
+ },
41
+ "mobileOverlay": {
42
+ "type": "boolean",
43
+ "default": true
44
+ },
45
+ "iconColor": {
46
+ "type": "string",
47
+ "default": ""
48
+ }
49
+ },
50
+ "textdomain": "ajax-search-for-woocommerce",
51
+ "editorScript": "file:./index.js",
52
+ "editorStyle": [
53
+ "dgwt-wcas-style",
54
+ "dgwt-wcas-style-personalization",
55
+ "file:./index.css"
56
+ ]
57
+ }
src/blocks/search-nav/edit.js ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /** @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-components/ */
2
+ import {
3
+ Disabled,
4
+ PanelBody,
5
+ SelectControl,
6
+ ToggleControl,
7
+ } from '@wordpress/components';
8
+
9
+ /** @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-server-side-render/ */
10
+ import ServerSideRender from '@wordpress/server-side-render';
11
+
12
+ /** @see https://developer.wordpress.org/block-editor/packages/packages-i18n/ */
13
+ import { __ } from '@wordpress/i18n';
14
+
15
+ /** @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/ */
16
+ import {
17
+ useBlockProps,
18
+ InspectorControls,
19
+ PanelColorSettings,
20
+ } from '@wordpress/block-editor';
21
+
22
+ /** @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-data/ */
23
+ import { useSelect } from '@wordpress/data';
24
+
25
+ /** @see https://www.npmjs.com/package/@wordpress/scripts#using-css */
26
+ import './editor.scss';
27
+
28
+ /**
29
+ * @param props
30
+ * @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#edit
31
+ *
32
+ * @return {WPElement} Element to render.
33
+ */
34
+ export default function Edit(props) {
35
+ const { deviceType } = useSelect((select) => {
36
+ const { __experimentalGetPreviewDeviceType } = select('core/edit-post');
37
+
38
+ return {
39
+ deviceType: __experimentalGetPreviewDeviceType(),
40
+ };
41
+ }, []);
42
+ const blockProps = useBlockProps({
43
+ className: `wp-block-fibosearch-search__device-preview-${deviceType.toLowerCase()}`,
44
+ });
45
+ const { attributes } = props;
46
+ const {
47
+ attributes: {
48
+ darkenedBackground,
49
+ mobileOverlay,
50
+ inheritPluginSettings,
51
+ layout,
52
+ iconColor,
53
+ },
54
+ name,
55
+ setAttributes,
56
+ } = props;
57
+
58
+ function getColorSettings() {
59
+ if (inheritPluginSettings) {
60
+ return null;
61
+ }
62
+
63
+ if (layout === 'classic') {
64
+ return null;
65
+ }
66
+
67
+ return (
68
+ <PanelColorSettings
69
+ __experimentalHasMultipleOrigins
70
+ __experimentalIsRenderedInSidebar
71
+ title={__('Color', 'ajax-search-for-woocommerce')}
72
+ initialOpen={false}
73
+ colorSettings={[
74
+ {
75
+ value: iconColor,
76
+ onChange: (newColor) => {
77
+ setAttributes({
78
+ iconColor: newColor,
79
+ });
80
+ },
81
+ label: __('Icon', 'ajax-search-for-woocommerce'),
82
+ },
83
+ ]}
84
+ ></PanelColorSettings>
85
+ );
86
+ }
87
+
88
+ return (
89
+ <div {...blockProps}>
90
+ <InspectorControls key="inspector">
91
+ <PanelBody
92
+ title={__('Settings', 'ajax-search-for-woocommerce')}
93
+ initialOpen={false}
94
+ >
95
+ <ToggleControl
96
+ label={__(
97
+ 'Inherit global plugin settings',
98
+ 'ajax-search-for-woocommerce'
99
+ )}
100
+ checked={inheritPluginSettings}
101
+ onChange={() =>
102
+ setAttributes({
103
+ inheritPluginSettings: !inheritPluginSettings,
104
+ })
105
+ }
106
+ />
107
+ {inheritPluginSettings ? null : (
108
+ <SelectControl
109
+ label={__('Layout', 'ajax-search-for-woocommerce')}
110
+ value={layout}
111
+ options={[
112
+ {
113
+ label: __(
114
+ 'Search bar',
115
+ 'ajax-search-for-woocommerce'
116
+ ),
117
+ value: 'classic',
118
+ },
119
+ {
120
+ label: __(
121
+ 'Search icon',
122
+ 'ajax-search-for-woocommerce'
123
+ ),
124
+ value: 'icon',
125
+ },
126
+ {
127
+ label: __(
128
+ 'Icon on mobile, search bar on desktop',
129
+ 'ajax-search-for-woocommerce'
130
+ ),
131
+ value: 'icon-flexible',
132
+ },
133
+ {
134
+ label: __(
135
+ 'Icon on desktop, search bar on mobile',
136
+ 'ajax-search-for-woocommerce'
137
+ ),
138
+ value: 'icon-flexible-inv',
139
+ },
140
+ ]}
141
+ onChange={(newLayout) => {
142
+ setAttributes({
143
+ layout: newLayout,
144
+ });
145
+ if (
146
+ newLayout === 'icon' ||
147
+ newLayout === 'icon-flexible' ||
148
+ newLayout === 'icon-flexible-inv'
149
+ ) {
150
+ setAttributes({
151
+ mobileOverlay: true,
152
+ });
153
+ }
154
+ }}
155
+ />
156
+ )}
157
+ {inheritPluginSettings ? null : (
158
+ <ToggleControl
159
+ label={__(
160
+ 'Darkened background',
161
+ 'ajax-search-for-woocommerce'
162
+ )}
163
+ checked={darkenedBackground}
164
+ onChange={() =>
165
+ setAttributes({
166
+ darkenedBackground: !darkenedBackground,
167
+ })
168
+ }
169
+ />
170
+ )}
171
+ {inheritPluginSettings ? null : (
172
+ <ToggleControl
173
+ label={__(
174
+ 'Overlay on mobile',
175
+ 'ajax-search-for-woocommerce'
176
+ )}
177
+ checked={mobileOverlay}
178
+ onChange={() =>
179
+ setAttributes({
180
+ mobileOverlay: !mobileOverlay,
181
+ })
182
+ }
183
+ help={
184
+ mobileOverlay
185
+ ? __(
186
+ 'The search will open in overlay on mobile',
187
+ 'ajax-search-for-woocommerce'
188
+ )
189
+ : ''
190
+ }
191
+ />
192
+ )}
193
+ {getColorSettings()}
194
+ </PanelBody>
195
+ </InspectorControls>
196
+ <Disabled>
197
+ <ServerSideRender block={name} attributes={attributes} />
198
+ </Disabled>
199
+ </div>
200
+ );
201
+ }
src/blocks/search-nav/editor.scss ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * The following styles get applied inside the editor only.
3
+ */
4
+ .wp-block-navigation.is-selected,
5
+ .wp-block-navigation.has-child-selected {
6
+ .wp-block-fibosearch-search-nav {
7
+ margin-right: 25px;
8
+ }
9
+ }
10
+
11
+ .wp-block-fibosearch-search-nav {
12
+ &__device-preview-desktop {
13
+ .dgwt-wcas-show-on-preview-desktop {
14
+ display: block;
15
+ }
16
+ .dgwt-wcas-show-on-preview-tablet, .dgwt-wcas-show-on-preview-mobile {
17
+ display: none;
18
+ }
19
+ }
20
+
21
+ &__device-preview-tablet, &__device-preview-mobile {
22
+ .dgwt-wcas-show-on-preview-desktop {
23
+ display: none;
24
+ }
25
+ .dgwt-wcas-show-on-preview-tablet, .dgwt-wcas-show-on-preview-mobile {
26
+ display: block;
27
+ }
28
+ }
29
+ }
src/blocks/search-nav/index.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { registerBlockType } from '@wordpress/blocks';
5
+ import { Icon } from '@wordpress/icons';
6
+
7
+ /**
8
+ * Internal dependencies
9
+ */
10
+ import Edit from './edit';
11
+ import transforms from './transforms';
12
+ import fibosearchIcon from '../../icons/fibosearch';
13
+
14
+ /**
15
+ * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
16
+ */
17
+ registerBlockType('fibosearch/search-nav', {
18
+ edit: Edit,
19
+ icon: {
20
+ src: <Icon icon={fibosearchIcon} />,
21
+ },
22
+ save: () => {},
23
+ transforms,
24
+ });
src/blocks/search-nav/transforms.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { createBlock } from '@wordpress/blocks';
5
+
6
+ const transforms = {
7
+ from: [
8
+ {
9
+ type: 'block',
10
+ blocks: ['core/navigation-link'],
11
+ transform: () => {
12
+ return createBlock('fibosearch/search-nav', {
13
+ inheritPluginSettings: false,
14
+ layout: 'icon',
15
+ });
16
+ },
17
+ },
18
+ {
19
+ type: 'block',
20
+ blocks: ['core/search'],
21
+ transform: () => {
22
+ return createBlock('fibosearch/search-nav', {
23
+ inheritPluginSettings: false,
24
+ layout: 'icon',
25
+ });
26
+ },
27
+ },
28
+ ],
29
+ to: [
30
+ {
31
+ type: 'block',
32
+ blocks: ['core/search'],
33
+ transform: () => {
34
+ return createBlock('core/search', {
35
+ showLabel: false,
36
+ buttonUseIcon: true,
37
+ buttonPosition: 'button-inside',
38
+ });
39
+ },
40
+ },
41
+ {
42
+ type: 'block',
43
+ blocks: ['core/navigation-link'],
44
+ transform: () => {
45
+ return createBlock('core/navigation-link');
46
+ },
47
+ },
48
+ ],
49
+ };
50
+
51
+ export default transforms;
src/blocks/search/block.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "fibosearch/search",
5
+ "version": "1.0.0",
6
+ "title": "FiboSearch",
7
+ "category": "widgets",
8
+ "description": "AJAX (live) search form for WooCommerce",
9
+ "keywords": [
10
+ "search",
11
+ "product"
12
+ ],
13
+ "supports": {
14
+ "html": false
15
+ },
16
+ "attributes": {
17
+ "inheritPluginSettings": {
18
+ "type": "boolean",
19
+ "default": true
20
+ },
21
+ "layout": {
22
+ "enum": [
23
+ "classic",
24
+ "icon",
25
+ "icon-flexible",
26
+ "icon-flexible-inv"
27
+ ],
28
+ "type": "string",
29
+ "default": "classic"
30
+ },
31
+ "darkenedBackground": {
32
+ "type": "boolean",
33
+ "default": false
34
+ },
35
+ "mobileOverlay": {
36
+ "type": "boolean",
37
+ "default": true
38
+ }
39
+ },
40
+ "textdomain": "ajax-search-for-woocommerce",
41
+ "editorScript": "file:./index.js",
42
+ "editorStyle": [
43
+ "dgwt-wcas-style",
44
+ "dgwt-wcas-style-personalization",
45
+ "file:./index.css"
46
+ ]
47
+ }
src/blocks/search/edit.js ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import classnames from 'classnames';
5
+
6
+ /** @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-components/ */
7
+ import {
8
+ Disabled,
9
+ PanelBody,
10
+ SelectControl,
11
+ ToggleControl,
12
+ } from '@wordpress/components';
13
+
14
+ /** @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-server-side-render/ */
15
+ import ServerSideRender from '@wordpress/server-side-render';
16
+
17
+ /** @see https://developer.wordpress.org/block-editor/packages/packages-i18n/ */
18
+ import { __ } from '@wordpress/i18n';
19
+
20
+ /** @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/ */
21
+ import { useBlockProps, InspectorControls } from '@wordpress/block-editor';
22
+
23
+ /** @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-data/ */
24
+ import { useSelect } from '@wordpress/data';
25
+
26
+ /** @see https://www.npmjs.com/package/@wordpress/scripts#using-css */
27
+ import './editor.scss';
28
+
29
+ /**
30
+ * @param props
31
+ * @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#edit
32
+ *
33
+ * @return {WPElement} Element to render.
34
+ */
35
+ export default function Edit(props) {
36
+ const classnamesArg = {};
37
+ const { deviceType } = useSelect((select) => {
38
+ const editPost = select('core/edit-post');
39
+ if (editPost === null) {
40
+ return {
41
+ deviceType: false,
42
+ };
43
+ }
44
+
45
+ const { __experimentalGetPreviewDeviceType } = editPost;
46
+
47
+ return {
48
+ deviceType: __experimentalGetPreviewDeviceType(),
49
+ };
50
+ }, []);
51
+
52
+ if (typeof deviceType === 'string') {
53
+ classnamesArg[
54
+ `wp-block-fibosearch-search__device-preview-${deviceType.toLowerCase()}`
55
+ ] = true;
56
+ }
57
+ const blockProps = useBlockProps({
58
+ className: classnames(classnamesArg),
59
+ });
60
+
61
+ const { attributes } = props;
62
+ const {
63
+ attributes: {
64
+ darkenedBackground,
65
+ mobileOverlay,
66
+ inheritPluginSettings,
67
+ layout,
68
+ },
69
+ name,
70
+ setAttributes,
71
+ } = props;
72
+
73
+ return (
74
+ <div {...blockProps}>
75
+ <InspectorControls key="inspector">
76
+ <PanelBody
77
+ title={__('Settings', 'ajax-search-for-woocommerce')}
78
+ initialOpen={false}
79
+ >
80
+ <ToggleControl
81
+ label={__(
82
+ 'Inherit global plugin settings',
83
+ 'ajax-search-for-woocommerce'
84
+ )}
85
+ checked={inheritPluginSettings}
86
+ onChange={() =>
87
+ setAttributes({
88
+ inheritPluginSettings: !inheritPluginSettings,
89
+ })
90
+ }
91
+ />
92
+ {inheritPluginSettings ? null : (
93
+ <SelectControl
94
+ label={__('Layout', 'ajax-search-for-woocommerce')}
95
+ value={layout}
96
+ options={[
97
+ {
98
+ label: __(
99
+ 'Search bar',
100
+ 'ajax-search-for-woocommerce'
101
+ ),
102
+ value: 'classic',
103
+ },
104
+ {
105
+ label: __(
106
+ 'Search icon',
107
+ 'ajax-search-for-woocommerce'
108
+ ),
109
+ value: 'icon',
110
+ },
111
+ {
112
+ label: __(
113
+ 'Icon on mobile, search bar on desktop',
114
+ 'ajax-search-for-woocommerce'
115
+ ),
116
+ value: 'icon-flexible',
117
+ },
118
+ {
119
+ label: __(
120
+ 'Icon on desktop, search bar on mobile',
121
+ 'ajax-search-for-woocommerce'
122
+ ),
123
+ value: 'icon-flexible-inv',
124
+ },
125
+ ]}
126
+ onChange={(newLayout) => {
127
+ setAttributes({
128
+ layout: newLayout,
129
+ });
130
+ if (
131
+ newLayout === 'icon' ||
132
+ newLayout === 'icon-flexible' ||
133
+ newLayout === 'icon-flexible-inv'
134
+ ) {
135
+ setAttributes({
136
+ mobileOverlay: true,
137
+ });
138
+ }
139
+ }}
140
+ />
141
+ )}
142
+ {inheritPluginSettings ? null : (
143
+ <ToggleControl
144
+ label={__(
145
+ 'Darkened background',
146
+ 'ajax-search-for-woocommerce'
147
+ )}
148
+ checked={darkenedBackground}
149
+ onChange={() =>
150
+ setAttributes({
151
+ darkenedBackground: !darkenedBackground,
152
+ })
153
+ }
154
+ />
155
+ )}
156
+ {inheritPluginSettings ? null : (
157
+ <ToggleControl
158
+ label={__(
159
+ 'Overlay on mobile',
160
+ 'ajax-search-for-woocommerce'
161
+ )}
162
+ checked={mobileOverlay}
163
+ onChange={() =>
164
+ setAttributes({
165
+ mobileOverlay: !mobileOverlay,
166
+ })
167
+ }
168
+ help={
169
+ mobileOverlay
170
+ ? __(
171
+ 'The search will open in overlay on mobile',
172
+ 'ajax-search-for-woocommerce'
173
+ )
174
+ : ''
175
+ }
176
+ />
177
+ )}
178
+ </PanelBody>
179
+ </InspectorControls>
180
+ <Disabled>
181
+ <ServerSideRender block={name} attributes={attributes} />
182
+ </Disabled>
183
+ </div>
184
+ );
185
+ }
src/blocks/search/editor.scss ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * The following styles get applied inside the editor only.
3
+ */
4
+ .wp-block-fibosearch-search {
5
+ &__device-preview-desktop {
6
+ .dgwt-wcas-show-on-preview-desktop {
7
+ display: block;
8
+ }
9
+ .dgwt-wcas-show-on-preview-tablet, .dgwt-wcas-show-on-preview-mobile {
10
+ display: none;
11
+ }
12
+ }
13
+
14
+ &__device-preview-tablet, &__device-preview-mobile {
15
+ .dgwt-wcas-show-on-preview-desktop {
16
+ display: none;
17
+ }
18
+ .dgwt-wcas-show-on-preview-tablet, .dgwt-wcas-show-on-preview-mobile {
19
+ display: block;
20
+ }
21
+ }
22
+ }
src/blocks/search/index.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { registerBlockType } from '@wordpress/blocks';
5
+ import { Icon } from '@wordpress/icons';
6
+
7
+ /**
8
+ * Internal dependencies
9
+ */
10
+ import Edit from './edit';
11
+ import transforms from './transforms';
12
+ import fibosearchIcon from '../../icons/fibosearch';
13
+
14
+ /**
15
+ * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
16
+ */
17
+ registerBlockType('fibosearch/search', {
18
+ edit: Edit,
19
+ icon: {
20
+ src: <Icon icon={fibosearchIcon} />,
21
+ },
22
+ save: () => {},
23
+ transforms,
24
+ });
src/blocks/search/transforms.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { createBlock } from '@wordpress/blocks';
5
+ import { regexp } from '@wordpress/shortcode';
6
+
7
+ const transforms = {
8
+ from: [
9
+ {
10
+ type: 'block',
11
+ blocks: ['core/search'],
12
+ transform: () => {
13
+ return createBlock('fibosearch/search');
14
+ },
15
+ },
16
+ {
17
+ type: 'block',
18
+ blocks: ['core/legacy-widget'],
19
+ isMatch: ({ idBase, instance }) => {
20
+ if (!instance?.raw) {
21
+ // Can't transform if raw instance is not shown in REST API.
22
+ return false;
23
+ }
24
+ return idBase === 'dgwt_wcas_ajax_search';
25
+ },
26
+ transform: ({ instance }) => {
27
+ const layout = instance.raw.layout;
28
+ const attributes = {};
29
+ if (layout !== 'default') {
30
+ attributes.inheritPluginSettings = false;
31
+ attributes.layout = layout;
32
+ }
33
+ return createBlock('fibosearch/search', attributes);
34
+ },
35
+ },
36
+ {
37
+ type: 'block',
38
+ blocks: ['core/shortcode'],
39
+ transform: () => {
40
+ return createBlock('fibosearch/search');
41
+ },
42
+ isMatch: ({ text }) => {
43
+ const re = regexp('fibosearch');
44
+ const match = re.exec(text);
45
+ return Array.isArray(match) && match[2] === 'fibosearch';
46
+ },
47
+ },
48
+ {
49
+ type: 'block',
50
+ blocks: ['core/shortcode'],
51
+ transform: () => {
52
+ return createBlock('fibosearch/search');
53
+ },
54
+ isMatch: ({ text }) => {
55
+ const re = regexp('wcas-search-form');
56
+ const match = re.exec(text);
57
+ return Array.isArray(match) && match[2] === 'wcas-search-form';
58
+ },
59
+ },
60
+ ],
61
+ to: [
62
+ {
63
+ type: 'block',
64
+ blocks: ['core/search'],
65
+ transform: () => {
66
+ return createBlock('core/search', {
67
+ showLabel: false,
68
+ buttonUseIcon: true,
69
+ buttonPosition: 'button-inside',
70
+ });
71
+ },
72
+ },
73
+ ],
74
+ };
75
+
76
+ export default transforms;
src/icons/fibosearch.js ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { SVG } from '@wordpress/primitives';
2
+
3
+ const fibosearch = (
4
+ <SVG
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 88.000000 88.000000"
7
+ fill="none"
8
+ >
9
+ <g transform="translate(0.000000,88.000000) scale(0.100000,-0.100000)">
10
+ <path
11
+ stroke="none"
12
+ fill="#040404"
13
+ fillRule="evenodd"
14
+ d="M434 840 c-22 -5 -58 -16 -80 -26 l-39 -17 66 -8 c153 -17 271 -131
15
+ 286 -277 l6 -55 15 29 c24 45 28 165 8 219 -22 57 -92 119 -151 134 -49 12
16
+ -53 12 -111 1z"
17
+ />
18
+ <path
19
+ stroke="none"
20
+ fill="#7c3b7c"
21
+ fillRule="evenodd"
22
+ d="M766 725 c4 -11 18 -49 31 -85 61 -162 4 -334 -132 -400 -61 -30
23
+ -168 -25 -238 9 l-49 24 -99 -99 c-54 -54 -97 -99 -95 -101 2 -2 39 12 82 30
24
+ 74 31 81 32 117 20 176 -60 367 19 451 185 54 106 54 215 2 326 -25 53 -84
25
+ 129 -70 91z"
26
+ />
27
+ <path
28
+ stroke="none"
29
+ fill="#7c3b7c"
30
+ fillRule="evenodd"
31
+ d="M265 711 c-62 -29 -102 -77 -119 -146 -20 -75 -20 -113 0 -191 l15
32
+ -62 -46 -84 c-26 -46 -58 -103 -72 -128 -21 -37 -1 -21 120 100 l146 144 -6
33
+ 58 c-7 71 8 111 52 138 53 33 98 27 149 -20 23 -22 51 -58 61 -80 10 -22 21
34
+ -40 25 -40 14 0 20 80 10 126 -15 65 -33 97 -81 137 -75 65 -177 84 -254 48z"
35
+ />
36
+ </g>
37
+ </SVG>
38
+ );
39
+
40
+ export default fibosearch;
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit9aeb1bdd6a316a877f765f7ad7070604::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit1abd8d3bd2f0a2a16d767b0e57d4723d::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit9aeb1bdd6a316a877f765f7ad7070604
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit9aeb1bdd6a316a877f765f7ad7070604
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit9aeb1bdd6a316a877f765f7ad7070604', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit9aeb1bdd6a316a877f765f7ad7070604', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit9aeb1bdd6a316a877f765f7ad7070604::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit1abd8d3bd2f0a2a16d767b0e57d4723d
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit1abd8d3bd2f0a2a16d767b0e57d4723d', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit1abd8d3bd2f0a2a16d767b0e57d4723d', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit1abd8d3bd2f0a2a16d767b0e57d4723d::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit9aeb1bdd6a316a877f765f7ad7070604
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'D' =>
@@ -27,9 +27,9 @@ class ComposerStaticInit9aeb1bdd6a316a877f765f7ad7070604
27
  public static function getInitializer(ClassLoader $loader)
28
  {
29
  return \Closure::bind(function () use ($loader) {
30
- $loader->prefixLengthsPsr4 = ComposerStaticInit9aeb1bdd6a316a877f765f7ad7070604::$prefixLengthsPsr4;
31
- $loader->prefixDirsPsr4 = ComposerStaticInit9aeb1bdd6a316a877f765f7ad7070604::$prefixDirsPsr4;
32
- $loader->classMap = ComposerStaticInit9aeb1bdd6a316a877f765f7ad7070604::$classMap;
33
 
34
  }, null, ClassLoader::class);
35
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit1abd8d3bd2f0a2a16d767b0e57d4723d
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'D' =>
27
  public static function getInitializer(ClassLoader $loader)
28
  {
29
  return \Closure::bind(function () use ($loader) {
30
+ $loader->prefixLengthsPsr4 = ComposerStaticInit1abd8d3bd2f0a2a16d767b0e57d4723d::$prefixLengthsPsr4;
31
+ $loader->prefixDirsPsr4 = ComposerStaticInit1abd8d3bd2f0a2a16d767b0e57d4723d::$prefixDirsPsr4;
32
+ $loader->classMap = ComposerStaticInit1abd8d3bd2f0a2a16d767b0e57d4723d::$classMap;
33
 
34
  }, null, ClassLoader::class);
35
  }