WooLentor – Elementor WooCommerce Builder Addons, Variation Swatches Addons, Gutenberg WooCommerce Product block, grid, slider, templates, widgets, Quick View, Wishlist, Products Compare, Product Filter – All in One Solution - Version 1.9.6

Version Description

Download this release

Release Info

Developer devitemsllc
Plugin Icon 128x128 WooLentor – Elementor WooCommerce Builder Addons, Variation Swatches Addons, Gutenberg WooCommerce Product block, grid, slider, templates, widgets, Quick View, Wishlist, Products Compare, Product Filter – All in One Solution
Version 1.9.6
Comparing to
See all releases

Code changes from version 1.9.5 to 1.9.6

Files changed (79) hide show
  1. assets/css/woolentor-widgets.css +5 -2
  2. assets/js/block-woolentor.asset.php +1 -0
  3. assets/js/block-woolentor.js +101 -0
  4. assets/js/block-woolentor.js.map +1 -0
  5. includes/addons/add_banner.php +1 -1
  6. includes/addons/product_accordion.php +1 -1
  7. includes/addons/product_curvy.php +1 -1
  8. includes/addons/product_image_accordion.php +1 -1
  9. includes/addons/product_tabs.php +1 -1
  10. includes/addons/special_day_offer.php +1 -1
  11. includes/addons/universal_product.php +1 -1
  12. includes/addons/wb_archive_product.php +1 -1
  13. includes/addons/wb_customer_review.php +1 -1
  14. includes/addons/wb_ever_compare_table.php +1 -1
  15. includes/addons/wb_image_marker.php +1 -1
  16. includes/addons/wb_just_table.php +1 -1
  17. includes/addons/wb_product_add_to_cart.php +1 -1
  18. includes/addons/wb_product_additional_information.php +1 -1
  19. includes/addons/wb_product_call_for_price.php +1 -1
  20. includes/addons/wb_product_data_tab.php +1 -1
  21. includes/addons/wb_product_description.php +1 -1
  22. includes/addons/wb_product_image.php +1 -1
  23. includes/addons/wb_product_meta.php +1 -1
  24. includes/addons/wb_product_price.php +1 -1
  25. includes/addons/wb_product_qr_code.php +1 -1
  26. includes/addons/wb_product_rating.php +1 -1
  27. includes/addons/wb_product_related.php +1 -1
  28. includes/addons/wb_product_reviews.php +1 -1
  29. includes/addons/wb_product_short_description.php +1 -1
  30. includes/addons/wb_product_stock.php +1 -1
  31. includes/addons/wb_product_suggest_price.php +1 -1
  32. includes/addons/wb_product_title.php +1 -1
  33. includes/addons/wb_product_upsell.php +1 -1
  34. includes/addons/wb_wc_multicurrency.php +1 -1
  35. includes/addons/wb_whols.php +1 -1
  36. includes/addons/wb_wishsuite_table.php +1 -1
  37. includes/addons/wl_brand.php +1 -1
  38. includes/addons/wl_category.php +1 -1
  39. includes/addons/wl_category_grid.php +1 -1
  40. includes/addons/wl_faq.php +1 -1
  41. includes/addons/wl_onepage_slider.php +1 -1
  42. includes/addons/wl_product_filter.php +1 -1
  43. includes/addons/wl_product_horizontal_filter.php +1 -1
  44. includes/addons/wl_product_video_gallery.php +35 -1
  45. includes/addons/wl_store_features.php +1 -1
  46. includes/addons/wl_testimonial.php +1 -1
  47. includes/helper-function.php +23 -20
  48. readme.txt +6 -1
  49. woolentor-blocks/build/{index.asset.php → blocks-woolentor.asset.php} +1 -1
  50. woolentor-blocks/build/blocks-woolentor.js +1 -0
  51. woolentor-blocks/build/index.js +0 -1
  52. woolentor-blocks/build/styles/blocks.style.build.css +2144 -0
  53. woolentor-blocks/includes/classes/Api/Api.php +126 -0
  54. woolentor-blocks/includes/classes/Blocks_init.php +57 -0
  55. woolentor-blocks/includes/classes/Scripts.php +562 -9
  56. woolentor-blocks/includes/helper-functions.php +215 -1
  57. woolentor-blocks/src/assets/css/editor-style.css +66 -1
  58. woolentor-blocks/src/assets/css/style-index.css +210 -3
  59. woolentor-blocks/src/assets/images/banner-image.svg +54 -0
  60. woolentor-blocks/src/assets/js/script.js +121 -76
  61. woolentor-blocks/src/blocks/brand-logo/index.php +10 -55
  62. woolentor-blocks/src/blocks/brand-logo/style.css +14 -0
  63. woolentor-blocks/src/blocks/category-grid/index.php +7 -65
  64. woolentor-blocks/src/blocks/category-grid/style.css +264 -0
  65. woolentor-blocks/src/blocks/faq/block.json +95 -0
  66. woolentor-blocks/src/blocks/faq/index.php +118 -0
  67. woolentor-blocks/src/blocks/faq/style.css +113 -0
  68. woolentor-blocks/src/blocks/image-marker/index.php +3 -51
  69. woolentor-blocks/src/blocks/image-marker/style.css +490 -0
  70. woolentor-blocks/src/blocks/product-curvy/block.json +199 -0
  71. woolentor-blocks/src/blocks/product-curvy/index.php +186 -0
  72. woolentor-blocks/src/blocks/product-curvy/style.css +455 -0
  73. woolentor-blocks/src/blocks/product-tab/index.php +18 -63
  74. woolentor-blocks/src/blocks/product-tab/style.css +409 -0
  75. woolentor-blocks/src/blocks/special-day-offer/index.php +55 -128
  76. woolentor-blocks/src/blocks/special-day-offer/style.css +109 -0
  77. woolentor-blocks/src/blocks/store-feature/index.php +2 -48
  78. woolentor-blocks/src/blocks/store-feature/style.css +165 -0
  79. woolentor_addons_elementor.php +4 -4
assets/css/woolentor-widgets.css CHANGED
@@ -211,7 +211,7 @@
211
  .product-item .actions .htcompare-btn.loading{
212
  padding: 0;
213
  }
214
- .product-item .actions a.htcompare-btn.loading::after,{
215
  right: 20px;
216
  }
217
  .product-item .product-inner .image-wrap .actions a.added_to_cart {
@@ -2056,6 +2056,9 @@
2056
  [class*="woolentorducts-columns-"] ul.products{
2057
  display: block !important;
2058
  }
 
 
 
2059
  .woolentorducts-columns-6 ul.products li.product{
2060
  width: calc(16% - 30px) !important;
2061
  margin-right: 30px !important;
@@ -3938,7 +3941,7 @@ h2.wl_filter_title {
3938
  .wl_single-product-item .action li .woolentor-compare.compare::before {
3939
  content: "\f0ec";
3940
  position: absolute;
3941
- font-family: FontAwesome;
3942
  font-size: 18px;
3943
  }
3944
  .wl_product-accordion .action .woocommerce.product.compare-button a:before {
211
  .product-item .actions .htcompare-btn.loading{
212
  padding: 0;
213
  }
214
+ .product-item .actions a.htcompare-btn.loading::after{
215
  right: 20px;
216
  }
217
  .product-item .product-inner .image-wrap .actions a.added_to_cart {
2056
  [class*="woolentorducts-columns-"] ul.products{
2057
  display: block !important;
2058
  }
2059
+ [class*="woolentorducts-columns-"] ul.products li.product{
2060
+ margin-left: 0 !important;
2061
+ }
2062
  .woolentorducts-columns-6 ul.products li.product{
2063
  width: calc(16% - 30px) !important;
2064
  margin-right: 30px !important;
3941
  .wl_single-product-item .action li .woolentor-compare.compare::before {
3942
  content: "\f0ec";
3943
  position: absolute;
3944
+ font-family: FontAwesome !important;
3945
  font-size: 18px;
3946
  }
3947
  .wl_product-accordion .action .woocommerce.product.compare-button a:before {
assets/js/block-woolentor.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a63ebc50c0ae768fd8069e1d957add29');
assets/js/block-woolentor.js ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40
+ /******/ }
41
+ /******/ };
42
+ /******/
43
+ /******/ // define __esModule on exports
44
+ /******/ __webpack_require__.r = function(exports) {
45
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47
+ /******/ }
48
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
49
+ /******/ };
50
+ /******/
51
+ /******/ // create a fake namespace object
52
+ /******/ // mode & 1: value is a module id, require it
53
+ /******/ // mode & 2: merge all properties of value into the ns
54
+ /******/ // mode & 4: return value when already ns object
55
+ /******/ // mode & 8|1: behave like require
56
+ /******/ __webpack_require__.t = function(value, mode) {
57
+ /******/ if(mode & 1) value = __webpack_require__(value);
58
+ /******/ if(mode & 8) return value;
59
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60
+ /******/ var ns = Object.create(null);
61
+ /******/ __webpack_require__.r(ns);
62
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64
+ /******/ return ns;
65
+ /******/ };
66
+ /******/
67
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
68
+ /******/ __webpack_require__.n = function(module) {
69
+ /******/ var getter = module && module.__esModule ?
70
+ /******/ function getDefault() { return module['default']; } :
71
+ /******/ function getModuleExports() { return module; };
72
+ /******/ __webpack_require__.d(getter, 'a', getter);
73
+ /******/ return getter;
74
+ /******/ };
75
+ /******/
76
+ /******/ // Object.prototype.hasOwnProperty.call
77
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78
+ /******/
79
+ /******/ // __webpack_public_path__
80
+ /******/ __webpack_require__.p = "";
81
+ /******/
82
+ /******/
83
+ /******/ // Load entry module and return exports
84
+ /******/ return __webpack_require__(__webpack_require__.s = "./src/index.js");
85
+ /******/ })
86
+ /************************************************************************/
87
+ /******/ ({
88
+
89
+ /***/ "./src/index.js":
90
+ /*!**********************!*\
91
+ !*** ./src/index.js ***!
92
+ \**********************/
93
+ /*! exports provided: registerWoolentorBlocks */
94
+ /***/ (function(module, exports) {
95
+
96
+ throw new Error("Module build failed (from ./node_modules/source-map-loader/index.js):\nError: ENOENT: no such file or directory, open 'D:\\SERVER\\htdocs\\pluginsdevlop\\wp-content\\plugins\\woolentor-addons\\woolentor-blocks\\src\\index.js'");
97
+
98
+ /***/ })
99
+
100
+ /******/ });
101
+ //# sourceMappingURL=block-woolentor.js.map
assets/js/block-woolentor.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA","file":"block-woolentor.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n"],"sourceRoot":""}
includes/addons/add_banner.php CHANGED
@@ -35,7 +35,7 @@ class Woolentor_Elementor_Widget_Add_Banner extends Widget_Base {
35
  return ['banner','image banner','adds','adds banner'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  $this->start_controls_section(
41
  'banner-conent',
35
  return ['banner','image banner','adds','adds banner'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  $this->start_controls_section(
41
  'banner-conent',
includes/addons/product_accordion.php CHANGED
@@ -41,7 +41,7 @@ class Woolentor_Product_Accordion_Layout_Widget extends Widget_Base {
41
  return ['slider','product','universal','universal product','universal layout'];
42
  }
43
 
44
- protected function _register_controls() {
45
 
46
  // Product Content
47
  $this->start_controls_section(
41
  return ['slider','product','universal','universal product','universal layout'];
42
  }
43
 
44
+ protected function register_controls() {
45
 
46
  // Product Content
47
  $this->start_controls_section(
includes/addons/product_curvy.php CHANGED
@@ -41,7 +41,7 @@ class Woolentor_Product_Curvy_Layout_Widget extends Widget_Base {
41
  return ['slider','product','universal','universal product','universal layout'];
42
  }
43
 
44
- protected function _register_controls() {
45
 
46
  // Product Content
47
  $this->start_controls_section(
41
  return ['slider','product','universal','universal product','universal layout'];
42
  }
43
 
44
+ protected function register_controls() {
45
 
46
  // Product Content
47
  $this->start_controls_section(
includes/addons/product_image_accordion.php CHANGED
@@ -41,7 +41,7 @@ class Woolentor_Product_Image_Accordion_Layout_Widget extends Widget_Base {
41
  return ['slider','product','universal','universal product','universal layout'];
42
  }
43
 
44
- protected function _register_controls() {
45
 
46
  // Product Query
47
 
41
  return ['slider','product','universal','universal product','universal layout'];
42
  }
43
 
44
+ protected function register_controls() {
45
 
46
  // Product Query
47
 
includes/addons/product_tabs.php CHANGED
@@ -46,7 +46,7 @@ class Woolentor_Product_Tabs_Widget extends Widget_Base {
46
  return ['product tab','tab','tabs','tab with product','product'];
47
  }
48
 
49
- protected function _register_controls() {
50
 
51
  $this->start_controls_section(
52
  'woolentor-products',
46
  return ['product tab','tab','tabs','tab with product','product'];
47
  }
48
 
49
+ protected function register_controls() {
50
 
51
  $this->start_controls_section(
52
  'woolentor-products',
includes/addons/special_day_offer.php CHANGED
@@ -35,7 +35,7 @@ class Woolentor_Elementor_Widget_Special_day_Banner extends Widget_Base {
35
  return['offer','day','day offer','special offer','special day'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  $this->start_controls_section(
41
  'add_banner_content',
35
  return['offer','day','day offer','special offer','special day'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  $this->start_controls_section(
41
  'add_banner_content',
includes/addons/universal_product.php CHANGED
@@ -48,7 +48,7 @@ class Woolentor_Universal_Product_Layout_Widget extends Widget_Base {
48
  return ['slider','product','universal','universal product','universal layout'];
49
  }
50
 
51
- protected function _register_controls() {
52
 
53
  // Product Content
54
  $this->start_controls_section(
48
  return ['slider','product','universal','universal product','universal layout'];
49
  }
50
 
51
+ protected function register_controls() {
52
 
53
  // Product Content
54
  $this->start_controls_section(
includes/addons/wb_archive_product.php CHANGED
@@ -35,7 +35,7 @@ class Woolentor_Elementor_Widget_Archive_Product extends Widget_Base {
35
  return ['archive','shop','product archive','default archive'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  $this->start_controls_section(
41
  'product-archive-conent',
35
  return ['archive','shop','product archive','default archive'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  $this->start_controls_section(
41
  'product-archive-conent',
includes/addons/wb_customer_review.php CHANGED
@@ -31,7 +31,7 @@ class WL_Customer_Review_Element extends Widget_Base {
31
  return ['review','customer','product review','customer review'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  $this->start_controls_section(
37
  'review_content',
31
  return ['review','customer','product review','customer review'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  $this->start_controls_section(
37
  'review_content',
includes/addons/wb_ever_compare_table.php CHANGED
@@ -36,7 +36,7 @@ class WL_EverCompare_Table_Element extends Widget_Base {
36
  return ['compare','product compare','ever compare'];
37
  }
38
 
39
- protected function _register_controls() {
40
 
41
  // Content
42
  $this->start_controls_section(
36
  return ['compare','product compare','ever compare'];
37
  }
38
 
39
+ protected function register_controls() {
40
 
41
  // Content
42
  $this->start_controls_section(
includes/addons/wb_image_marker.php CHANGED
@@ -31,7 +31,7 @@ class WL_Image_Marker_Element extends Widget_Base {
31
  return ['image marker','marker','product indicator'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  $this->start_controls_section(
37
  'image_marker_image_section',
31
  return ['image marker','marker','product indicator'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  $this->start_controls_section(
37
  'image_marker_image_section',
includes/addons/wb_just_table.php CHANGED
@@ -35,7 +35,7 @@ class WL_Just_Table_Element extends Widget_Base {
35
  return ['table','product table','justtable'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  // Content
41
  $this->start_controls_section(
35
  return ['table','product table','justtable'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  // Content
41
  $this->start_controls_section(
includes/addons/wb_product_add_to_cart.php CHANGED
@@ -32,7 +32,7 @@ class WL_Product_Add_To_Cart_Element extends Widget_Base {
32
  return ['add to cart','cart','button','buy now'];
33
  }
34
 
35
- protected function _register_controls() {
36
 
37
  $this->start_controls_section(
38
  'add_to_cart_button_style',
32
  return ['add to cart','cart','button','buy now'];
33
  }
34
 
35
+ protected function register_controls() {
36
 
37
  $this->start_controls_section(
38
  'add_to_cart_button_style',
includes/addons/wb_product_additional_information.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Additional_Info_Element extends Widget_Base {
31
  return ['additional','information','attributes'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
 
37
  // Slider Button stle
31
  return ['additional','information','attributes'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
 
37
  // Slider Button stle
includes/addons/wb_product_call_for_price.php CHANGED
@@ -32,7 +32,7 @@ class WL_Product_Call_For_Price_Element extends Widget_Base {
32
  return ['price','call for price'];
33
  }
34
 
35
- protected function _register_controls() {
36
 
37
  $this->start_controls_section(
38
  'button_call_price',
32
  return ['price','call for price'];
33
  }
34
 
35
+ protected function register_controls() {
36
 
37
  $this->start_controls_section(
38
  'button_call_price',
includes/addons/wb_product_data_tab.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Product_Data_Tabs_Element extends Widget_Base {
31
  return ['product','data tab','product tabs','tabs','product info tab'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  // Product Style
37
  $this->start_controls_section(
31
  return ['product','data tab','product tabs','tabs','product info tab'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  // Product Style
37
  $this->start_controls_section(
includes/addons/wb_product_description.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Description_Element extends Widget_Base {
31
  return ['description','product description','product content'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  // Product Style
37
  $this->start_controls_section(
31
  return ['description','product description','product content'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  // Product Style
37
  $this->start_controls_section(
includes/addons/wb_product_image.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Image_Element extends Widget_Base {
31
  return ['image','product image','product thumbnail'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  // Product Image Style
37
  $this->start_controls_section(
31
  return ['image','product image','product thumbnail'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  // Product Image Style
37
  $this->start_controls_section(
includes/addons/wb_product_meta.php CHANGED
@@ -30,7 +30,7 @@ class WL_Product_Meta_Element extends Widget_Base {
30
  return ['meta','product meta','meta info'];
31
  }
32
 
33
- protected function _register_controls() {
34
 
35
  // Product Price Style
36
  $this->start_controls_section(
30
  return ['meta','product meta','meta info'];
31
  }
32
 
33
+ protected function register_controls() {
34
 
35
  // Product Price Style
36
  $this->start_controls_section(
includes/addons/wb_product_price.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Price_Element extends Widget_Base {
31
  return ['price','product price'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  // Product Price Style
37
  $this->start_controls_section(
31
  return ['price','product price'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  // Product Price Style
37
  $this->start_controls_section(
includes/addons/wb_product_qr_code.php CHANGED
@@ -31,7 +31,7 @@ class Woolentor_Elementor_Widget_QR_code extends Widget_Base {
31
  return ['qrcode','qrcode generate','product qr code','qr code for product'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  $this->start_controls_section(
37
  'qrcode-conent',
31
  return ['qrcode','qrcode generate','product qr code','qr code for product'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  $this->start_controls_section(
37
  'qrcode-conent',
includes/addons/wb_product_rating.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Rating_Element extends Widget_Base {
31
  return ['product rating','rating'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  // Product Rating Style
37
  $this->start_controls_section(
31
  return ['product rating','rating'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  // Product Rating Style
37
  $this->start_controls_section(
includes/addons/wb_product_related.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Related_Element extends Widget_Base {
31
  return ['related','product','related product'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
 
37
  // Related Product Content
31
  return ['related','product','related product'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
 
37
  // Related Product Content
includes/addons/wb_product_reviews.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Reviews_Element extends Widget_Base {
31
  return ['reviews','product review','review form','form'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  $this->start_controls_section(
37
  'section_content',
31
  return ['reviews','product review','review form','form'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  $this->start_controls_section(
37
  'section_content',
includes/addons/wb_product_short_description.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Short_Description_Element extends Widget_Base {
31
  return ['short description','description','product short description'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
 
37
  // Style
31
  return ['short description','description','product short description'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
 
37
  // Style
includes/addons/wb_product_stock.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Stock_Element extends Widget_Base {
31
  return ['product','stock','product stock'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  // Product Price Style
37
  $this->start_controls_section(
31
  return ['product','stock','product stock'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  // Product Price Style
37
  $this->start_controls_section(
includes/addons/wb_product_suggest_price.php CHANGED
@@ -35,7 +35,7 @@ class WL_Product_Suggest_Price_Element extends Widget_Base {
35
  return ['suggest price','price'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  $this->start_controls_section(
41
  'product_suggest_price',
35
  return ['suggest price','price'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  $this->start_controls_section(
41
  'product_suggest_price',
includes/addons/wb_product_title.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Title_Element extends Widget_Base {
31
  return ['product title','product','title'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
 
37
  // Slider Button stle
31
  return ['product title','product','title'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
 
37
  // Slider Button stle
includes/addons/wb_product_upsell.php CHANGED
@@ -31,7 +31,7 @@ class WL_Product_Upsell_Element extends Widget_Base {
31
  return ['product','upsell','upsell product'];
32
  }
33
 
34
- protected function _register_controls() {
35
 
36
  $this->start_controls_section(
37
  'product_upsell_content',
31
  return ['product','upsell','upsell product'];
32
  }
33
 
34
+ protected function register_controls() {
35
 
36
  $this->start_controls_section(
37
  'product_upsell_content',
includes/addons/wb_wc_multicurrency.php CHANGED
@@ -35,7 +35,7 @@ class WL_Multi_Currency_Element extends Widget_Base {
35
  return ['multi currency','currency','woocommerce currency'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  // Content
41
  $this->start_controls_section(
35
  return ['multi currency','currency','woocommerce currency'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  // Content
41
  $this->start_controls_section(
includes/addons/wb_whols.php CHANGED
@@ -35,7 +35,7 @@ class WL_Whols_Element extends Widget_Base {
35
  return ['whols','whole sale','woocommerce sale'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  // Button Style
41
  $this->start_controls_section(
35
  return ['whols','whole sale','woocommerce sale'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  // Button Style
41
  $this->start_controls_section(
includes/addons/wb_wishsuite_table.php CHANGED
@@ -36,7 +36,7 @@ class WL_Wishsuite_Table_Element extends Widget_Base {
36
  return ['wishlist','product wishlist','wishsuite'];
37
  }
38
 
39
- protected function _register_controls() {
40
 
41
  // Content
42
  $this->start_controls_section(
36
  return ['wishlist','product wishlist','wishsuite'];
37
  }
38
 
39
+ protected function register_controls() {
40
 
41
  // Content
42
  $this->start_controls_section(
includes/addons/wl_brand.php CHANGED
@@ -39,7 +39,7 @@ class WL_Brand_Element extends Widget_Base {
39
  return ['brand','brand logo','logo','custom brand','custom logo'];
40
  }
41
 
42
- protected function _register_controls() {
43
 
44
  $this->start_controls_section(
45
  'section_content',
39
  return ['brand','brand logo','logo','custom brand','custom logo'];
40
  }
41
 
42
+ protected function register_controls() {
43
 
44
  $this->start_controls_section(
45
  'section_content',
includes/addons/wl_category.php CHANGED
@@ -35,7 +35,7 @@ class WL_Category_List_Element extends Widget_Base {
35
  return ['category','product category','category list','categorise'];
36
  }
37
 
38
- protected function _register_controls() {
39
 
40
  $this->start_controls_section(
41
  'section_content',
35
  return ['category','product category','category list','categorise'];
36
  }
37
 
38
+ protected function register_controls() {
39
 
40
  $this->start_controls_section(
41
  'section_content',
includes/addons/wl_category_grid.php CHANGED
@@ -32,7 +32,7 @@ class WL_Category_Grid_Element extends Widget_Base {
32
  return ['category','product category','category grid','categorise'];
33
  }
34
 
35
- protected function _register_controls() {
36
 
37
  $this->start_controls_section(
38
  'section_content',
32
  return ['category','product category','category grid','categorise'];
33
  }
34
 
35
+ protected function register_controls() {
36
 
37
  $this->start_controls_section(
38
  'section_content',
includes/addons/wl_faq.php CHANGED
@@ -33,7 +33,7 @@ class WL_Faq_Element extends Widget_Base {
33
  return ['faq','question','answer'];
34
  }
35
 
36
- protected function _register_controls() {
37
 
38
  $this->start_controls_section(
39
  'content_section',
33
  return ['faq','question','answer'];
34
  }
35
 
36
+ protected function register_controls() {
37
 
38
  $this->start_controls_section(
39
  'content_section',
includes/addons/wl_onepage_slider.php CHANGED
@@ -32,7 +32,7 @@ class WL_OnePage_Slider_Element extends Widget_Base {
32
  return ['slider','onepage slider','fullpage','fullslider'];
33
  }
34
 
35
- protected function _register_controls() {
36
 
37
  $this->start_controls_section(
38
  'section_content',
32
  return ['slider','onepage slider','fullpage','fullslider'];
33
  }
34
 
35
+ protected function register_controls() {
36
 
37
  $this->start_controls_section(
38
  'section_content',
includes/addons/wl_product_filter.php CHANGED
@@ -33,7 +33,7 @@ class WL_Product_Filter_Element extends Widget_Base {
33
  return ['woolentor','shop','filter','product filter'];
34
  }
35
 
36
- protected function _register_controls() {
37
 
38
  $filter_by = [
39
  'search_form' => esc_html__( 'Search Form', 'woolentor' ),
33
  return ['woolentor','shop','filter','product filter'];
34
  }
35
 
36
+ protected function register_controls() {
37
 
38
  $filter_by = [
39
  'search_form' => esc_html__( 'Search Form', 'woolentor' ),
includes/addons/wl_product_horizontal_filter.php CHANGED
@@ -33,7 +33,7 @@ class WL_Product_Horizontal_Filter_Element extends Widget_Base {
33
  return ['woolentor','shop','filter','product filter','horizontal'];
34
  }
35
 
36
- protected function _register_controls() {
37
 
38
  $filter_by = [
39
  'price_by' => esc_html__( 'Price', 'woolentor' ),
33
  return ['woolentor','shop','filter','product filter','horizontal'];
34
  }
35
 
36
+ protected function register_controls() {
37
 
38
  $filter_by = [
39
  'price_by' => esc_html__( 'Price', 'woolentor' ),
includes/addons/wl_product_video_gallery.php CHANGED
@@ -38,7 +38,7 @@ class WL_Product_Video_Gallery_ELement extends Widget_Base {
38
  return ['video','gallery','product video gallery'];
39
  }
40
 
41
- protected function _register_controls() {
42
 
43
  $this->start_controls_section(
44
  'product_thumbnails_content',
@@ -306,6 +306,40 @@ class WL_Product_Video_Gallery_ELement extends Widget_Base {
306
  </div>
307
  </div>
308
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  <?php
310
  }
311
 
38
  return ['video','gallery','product video gallery'];
39
  }
40
 
41
+ protected function register_controls() {
42
 
43
  $this->start_controls_section(
44
  'product_thumbnails_content',
306
  </div>
307
  </div>
308
 
309
+ <script>
310
+ ;jQuery(document).ready(function($) {
311
+ 'use strict';
312
+
313
+ var $default_data = {
314
+ src:'',
315
+ srcfull:'',
316
+ srcset:'',
317
+ sizes:'',
318
+ width:'',
319
+ height:'',
320
+ };
321
+ $( '.single_variation_wrap' ).on( 'show_variation', function ( event, variation ) {
322
+
323
+ // Get First image data
324
+ if( $default_data.src.length === 0 ){
325
+ $default_data.srcfull = $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').attr('src');
326
+ $default_data.src = $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').attr('src');
327
+ $default_data.srcset = $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').attr('srcset');
328
+ }
329
+
330
+ $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').wc_set_variation_attr('src',variation.image.full_src);
331
+ $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').wc_set_variation_attr('srcset',variation.image.srcset);
332
+ $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').wc_set_variation_attr('src',variation.image.src);
333
+
334
+ $('.variations').find('.reset_variations').on('click', function(e){
335
+ $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').wc_set_variation_attr('src', $default_data.srcfull );
336
+ $('.woolentor-product-gallery-video').find('.video-cus-tab-pane.htactive img').wc_set_variation_attr('srcset', $default_data.srcset );
337
+ });
338
+
339
+ });
340
+ });
341
+ </script>
342
+
343
  <?php
344
  }
345
 
includes/addons/wl_store_features.php CHANGED
@@ -29,7 +29,7 @@ class WL_Store_Features_Element extends Widget_Base {
29
  return ['feature','store'];
30
  }
31
 
32
- protected function _register_controls() {
33
 
34
  $this->start_controls_section(
35
  'section_content',
29
  return ['feature','store'];
30
  }
31
 
32
+ protected function register_controls() {
33
 
34
  $this->start_controls_section(
35
  'section_content',
includes/addons/wl_testimonial.php CHANGED
@@ -33,7 +33,7 @@ class WL_Testimonial_Element extends Widget_Base {
33
  return ['woolentor','review','testimonial','product review','customer review','client say'];
34
  }
35
 
36
- protected function _register_controls() {
37
 
38
  $this->start_controls_section(
39
  'testimonial_content',
33
  return ['woolentor','review','testimonial','product review','customer review','client say'];
34
  }
35
 
36
+ protected function register_controls() {
37
 
38
  $this->start_controls_section(
39
  'testimonial_content',
includes/helper-function.php CHANGED
@@ -824,28 +824,31 @@ function woolentor_add_to_wishlist_button( $normalicon = '<i class="fa fa-heart-
824
  $output .= ob_get_clean();
825
  return $output;
826
 
827
- }elseif( class_exists( 'YITH_WCWL' ) || !empty( get_option( 'yith_wcwl_wishlist_page_id' ) ) ){
828
- global $yith_wcwl;
829
- $url = YITH_WCWL()->get_wishlist_url();
830
- $product_type = $product->get_type();
831
- $exists = $yith_wcwl->is_product_in_wishlist( $product->get_id() );
832
- $classes = 'class="add_to_wishlist"';
833
- $add = get_option( 'yith_wcwl_add_to_wishlist_text' );
834
- $browse = get_option( 'yith_wcwl_browse_wishlist_text' );
835
- $added = get_option( 'yith_wcwl_product_added_text' );
836
-
837
- $output .= '<div class="'.( $tooltip == 'yes' ? '' : 'tooltip_no' ).' wishlist button-default yith-wcwl-add-to-wishlist add-to-wishlist-' . esc_attr( $product->get_id() ) . '">';
838
- $output .= '<div class="yith-wcwl-add-button';
839
- $output .= $exists ? ' hide" style="display:none;"' : ' show"';
840
- $output .= '><a href="' . esc_url( htmlspecialchars( YITH_WCWL()->get_wishlist_url() ) ) . '" data-product-id="' . esc_attr( $product->get_id() ) . '" data-product-type="' . esc_attr( $product_type ) . '" ' . $classes . ' >'.$normalicon.'<span class="ht-product-action-tooltip">'.esc_html( $add ).'</span></a>';
841
- $output .= '<i class="fa fa-spinner fa-pulse ajax-loading" style="visibility:hidden"></i>';
 
 
 
 
 
 
842
  $output .= '</div>';
843
 
844
- $output .= '<div class="yith-wcwl-wishlistaddedbrowse hide" style="display:none;"><a class="" href="' . esc_url( $url ) . '">'.$addedicon.'<span class="ht-product-action-tooltip">'.esc_html( $browse ).'</span></a></div>';
845
- $output .= '<div class="yith-wcwl-wishlistexistsbrowse ' . ( $exists ? 'show' : 'hide' ) . '" style="display:' . ( $exists ? 'block' : 'none' ) . '"><a href="' . esc_url( $url ) . '" class="">'.$addedicon.'<span class="ht-product-action-tooltip">'.esc_html( $added ).'</span></a></div>';
846
- $output .= '</div>';
847
-
848
- return $output;
849
 
850
  }else{
851
  return 0;
824
  $output .= ob_get_clean();
825
  return $output;
826
 
827
+ }elseif( class_exists( 'YITH_WCWL' ) ){
828
+
829
+ if( !empty( get_option( 'yith_wcwl_wishlist_page_id' ) ) ){
830
+ global $yith_wcwl;
831
+ $url = YITH_WCWL()->get_wishlist_url();
832
+ $product_type = $product->get_type();
833
+ $exists = $yith_wcwl->is_product_in_wishlist( $product->get_id() );
834
+ $classes = 'class="add_to_wishlist"';
835
+ $add = get_option( 'yith_wcwl_add_to_wishlist_text' );
836
+ $browse = get_option( 'yith_wcwl_browse_wishlist_text' );
837
+ $added = get_option( 'yith_wcwl_product_added_text' );
838
+
839
+ $output .= '<div class="'.( $tooltip == 'yes' ? '' : 'tooltip_no' ).' wishlist button-default yith-wcwl-add-to-wishlist add-to-wishlist-' . esc_attr( $product->get_id() ) . '">';
840
+ $output .= '<div class="yith-wcwl-add-button';
841
+ $output .= $exists ? ' hide" style="display:none;"' : ' show"';
842
+ $output .= '><a href="' . esc_url( htmlspecialchars( YITH_WCWL()->get_wishlist_url() ) ) . '" data-product-id="' . esc_attr( $product->get_id() ) . '" data-product-type="' . esc_attr( $product_type ) . '" ' . $classes . ' >'.$normalicon.'<span class="ht-product-action-tooltip">'.esc_html( $add ).'</span></a>';
843
+ $output .= '<i class="fa fa-spinner fa-pulse ajax-loading" style="visibility:hidden"></i>';
844
+ $output .= '</div>';
845
+
846
+ $output .= '<div class="yith-wcwl-wishlistaddedbrowse hide" style="display:none;"><a class="" href="' . esc_url( $url ) . '">'.$addedicon.'<span class="ht-product-action-tooltip">'.esc_html( $browse ).'</span></a></div>';
847
+ $output .= '<div class="yith-wcwl-wishlistexistsbrowse ' . ( $exists ? 'show' : 'hide' ) . '" style="display:' . ( $exists ? 'block' : 'none' ) . '"><a href="' . esc_url( $url ) . '" class="">'.$addedicon.'<span class="ht-product-action-tooltip">'.esc_html( $added ).'</span></a></div>';
848
  $output .= '</div>';
849
 
850
+ return $output;
851
+ }
 
 
 
852
 
853
  }else{
854
  return 0;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: hasthemes, htplugins, devitemsllc, tarekht
3
  Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
4
  Requires at least: 4.7
5
  Tested up to: 5.8
6
- Stable tag: 1.9.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -322,6 +322,11 @@ Elementor Pro is not required. But you can use wooLentor with Elementor free & P
322
 
323
  == Changelog ==
324
 
 
 
 
 
 
325
  = Version: 1.9.5 - Date: 2021-08-09 =
326
  * Solved Product column issue for the Astra Theme
327
 
3
  Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
4
  Requires at least: 4.7
5
  Tested up to: 5.8
6
+ Stable tag: 1.9.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
322
 
323
  == Changelog ==
324
 
325
+ = Version: 1.9.6 - Date: 2021-08-30 =
326
+ * Added FAQ Block, Product Curvy Block.
327
+ * Solved Video gallery addon variation image change issue.
328
+ * Solved product column space issue.
329
+
330
  = Version: 1.9.5 - Date: 2021-08-09 =
331
  * Solved Product column issue for the Astra Theme
332
 
woolentor-blocks/build/{index.asset.php → blocks-woolentor.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-server-side-render', 'wp-url'), 'version' => '58ca43fb5215b6d282a1aed62045bafa');
1
+ <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '13290bad2db190fbb244bf2191bf04d5');
woolentor-blocks/build/blocks-woolentor.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=49)}([function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.React},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var l=r.apply(null,o);l&&e.push(l)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var i in o)n.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";(function(e){var o=n(23),r=n(4),a=n.n(r),l=n(29),i=n.n(l),c=n(30),s=n(31),u=n(26),p=n(24),f=n.n(p);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var m=function(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n},b=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(o.typeOf)(e)},g=Object.freeze([]),h=Object.freeze({});function y(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var O=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",_="undefined"!=typeof window&&"HTMLElement"in window,C=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&"false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY);function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var R=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)(r<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var a=o;a<r;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(e+1),i=0,c=t.length;i<c;i++)this.tag.insertRule(l,t[i])&&(this.groupSizes[e]++,l++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,a=o;a<r;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),j=new Map,S=new Map,k=1,P=function(e){if(j.has(e))return j.get(e);for(;S.has(k);)k++;var t=k++;return j.set(e,t),S.set(t,e),t},F=function(e){return S.get(e)},A=function(e,t){j.set(e,t),S.set(t,e)},T="style["+O+'][data-styled-version="5.3.0"]',B=new RegExp("^"+O+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),x=function(e,t,n){for(var o,r=n.split(","),a=0,l=r.length;a<l;a++)(o=r[a])&&e.registerName(t,o)},z=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),o=[],r=0,a=n.length;r<a;r++){var l=n[r].trim();if(l){var i=l.match(B);if(i){var c=0|parseInt(i[1],10),s=i[2];0!==c&&(A(s,c),x(e,s,i[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}},D=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},M=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(O))return o}}(n),a=void 0!==r?r.nextSibling:null;o.setAttribute(O,"active"),o.setAttribute("data-styled-version","5.3.0");var l=D();return l&&o.setAttribute("nonce",l),n.insertBefore(o,a),o},I=function(){function e(e){var t=this.element=M(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),L=function(){function e(e){var t=this.element=M(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),N=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=_,W={isServer:!_,useCSSOMInjection:!C},G=function(){function e(e,t,n){void 0===e&&(e=h),void 0===t&&(t={}),this.options=d({},W,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&_&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(T),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(O)&&(z(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,r=t.target,e=n?new N(r):o?new I(r):new L(r),new R(e)));var e,t,n,o,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=0;r<n;r++){var a=F(r);if(void 0!==a){var l=e.names.get(a),i=t.getGroup(r);if(void 0!==l&&0!==i.length){var c=O+".g"+r+'[id="'+a+'"]',s="";void 0!==l&&l.forEach((function(e){e.length>0&&(s+=e+",")})),o+=""+i+c+'{content:"'+s+'"}/*!sc*/\n'}}}return o}(this)},e}(),q=/(a)(d)/gi,U=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=U(t%52)+n;return(U(t%52)+n).replace(q,"$1-$2")}var Q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return Q(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var X=K("5.3.0"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Y(e),this.componentId=t,this.baseHash=Q(X,t),this.baseStyle=n,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))r.push(this.staticRulesId);else{var a=me(this.rules,e,t,n).join(""),l=V(Q(this.baseHash,a.length)>>>0);if(!t.hasNameForId(o,l)){var i=n(a,"."+l,void 0,o);t.insertRules(o,l,i)}r.push(l),this.staticRulesId=l}else{for(var c=this.rules.length,s=Q(this.baseHash,n.hash),u="",p=0;p<c;p++){var f=this.rules[p];if("string"==typeof f)u+=f;else if(f){var d=me(f,e,t,n),m=Array.isArray(d)?d.join(""):d;s=Q(s,m+p),u+=m}}if(u){var b=V(s>>>0);if(!t.hasNameForId(o,b)){var g=n(u,"."+b,void 0,o);t.insertRules(o,b,g)}r.push(b)}}return r.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,$=[":","[",".","#"];function ee(e){var t,n,o,r,a=void 0===e?h:e,l=a.options,i=void 0===l?h:l,s=a.plugins,u=void 0===s?g:s,p=new c.a(i),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,r,a,l,i,c,s,u,p){switch(n){case 1:if(0===u&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===s)return o+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(r[0]+o),"";default:return o+(0===p?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),m=function(e,o,a){return 0===o&&-1!==$.indexOf(a[n.length])||a.match(r)?e:"."+t};function b(e,a,l,i){void 0===i&&(i="&");var c=e.replace(Z,""),s=a&&l?l+" "+a+" { "+c+" }":c;return t=i,n=a,o=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),p(l||!a?"":a,s)}return p.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(o,m))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),b.hash=u.length?u.reduce((function(e,t){return t.name||E(15),Q(e,t.name)}),5381).toString():"",b}var te=a.a.createContext(),ne=(te.Consumer,a.a.createContext()),oe=(ne.Consumer,new G),re=ee();function ae(){return Object(r.useContext)(te)||oe}function le(e){var t=Object(r.useState)(e.stylisPlugins),n=t[0],o=t[1],l=ae(),c=Object(r.useMemo)((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(r.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(r.useEffect)((function(){i()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(te.Provider,{value:c},a.a.createElement(ne.Provider,{value:s},e.children))}var ie=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=re);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=re),this.name+e.hash},e}(),ce=/([A-Z])/,se=/([A-Z])/g,ue=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function fe(e){return ce.test(e)?e.replace(se,pe).replace(ue,"-ms-"):e}var de=function(e){return null==e||!1===e||""===e};function me(e,t,n,o){if(Array.isArray(e)){for(var r,a=[],l=0,i=e.length;l<i;l+=1)""!==(r=me(e[l],t,n,o))&&(Array.isArray(r)?a.push.apply(a,r):a.push(r));return a}return de(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:me(e(t),t,n,o):e instanceof ie?n?(e.inject(n,o),e.getName(o)):e:b(e)?function e(t,n){var o,r,a=[];for(var l in t)t.hasOwnProperty(l)&&!de(t[l])&&(b(t[l])?a.push.apply(a,e(t[l],l)):y(t[l])?a.push(fe(l)+":",t[l],";"):a.push(fe(l)+": "+(o=l,(null==(r=t[l])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in s.a?String(r).trim():r+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString();var c}function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return y(e)||b(e)?me(m(g,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:me(m(e,n))}new Set;var ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,he=/(^-|-$)/g;function ye(e){return e.replace(ge,"-").replace(he,"")}function ve(e){return"string"==typeof e&&!0}var we=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function _e(e,t,n){var o=e[n];we(t)&&we(o)?Ce(o,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var r=0,a=n;r<a.length;r++){var l=a[r];if(we(l))for(var i in l)Oe(i)&&_e(e,l[i],i)}return e}var Ee=a.a.createContext();Ee.Consumer;var Re={};function je(e,t,n){var o=w(e),l=!ve(e),i=t.attrs,c=void 0===i?g:i,s=t.componentId,p=void 0===s?function(e,t){var n="string"!=typeof e?"sc":ye(e);Re[n]=(Re[n]||0)+1;var o=n+"-"+function(e){return V(K(e)>>>0)}("5.3.0"+n+Re[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):s,m=t.displayName,b=void 0===m?function(e){return ve(e)?"styled."+e:"Styled("+v(e)+")"}(e):m,O=t.displayName&&t.componentId?ye(t.displayName)+"-"+t.componentId:t.componentId||p,_=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,C=t.shouldForwardProp;o&&e.shouldForwardProp&&(C=t.shouldForwardProp?function(n,o,r){return e.shouldForwardProp(n,o,r)&&t.shouldForwardProp(n,o,r)}:e.shouldForwardProp);var E,R=new J(n,O,o?e.componentStyle:void 0),j=R.isStatic&&0===c.length,S=function(e,t){return function(e,t,n,o){var a=e.attrs,l=e.componentStyle,i=e.defaultProps,c=e.foldedComponentIds,s=e.shouldForwardProp,p=e.styledComponentId,f=e.target,m=function(e,t,n){void 0===e&&(e=h);var o=d({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,a,l=e;for(t in y(l)&&(l=l(o)),l)o[t]=r[t]="className"===t?(n=r[t],a=l[t],n&&a?n+" "+a:n||a):l[t]})),[o,r]}(function(e,t,n){return void 0===n&&(n=h),e.theme!==n.theme&&e.theme||t||n.theme}(t,Object(r.useContext)(Ee),i)||h,t,a),b=m[0],g=m[1],v=function(e,t,n,o){var a=ae(),l=Object(r.useContext)(ne)||re;return t?e.generateAndInjectStyles(h,a,l):e.generateAndInjectStyles(n,a,l)}(l,o,b),w=n,O=g.$as||t.$as||g.as||t.as||f,_=ve(O),C=g!==t?d({},t,{},g):t,E={};for(var R in C)"$"!==R[0]&&"as"!==R&&("forwardedAs"===R?E.as=C[R]:(s?s(R,u.a,O):!_||Object(u.a)(R))&&(E[R]=C[R]));return t.style&&g.style!==t.style&&(E.style=d({},t.style,{},g.style)),E.className=Array.prototype.concat(c,p,v!==p?v:null,t.className,g.className).filter(Boolean).join(" "),E.ref=w,Object(r.createElement)(O,E)}(E,e,t,j)};return S.displayName=b,(E=a.a.forwardRef(S)).attrs=_,E.componentStyle=R,E.displayName=b,E.shouldForwardProp=C,E.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,E.styledComponentId=O,E.target=o?e.target:e,E.withComponent=function(e){var o=t.componentId,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["componentId"]),a=o&&o+"-"+(ve(e)?e:ye(v(e)));return je(e,d({},r,{attrs:_,componentId:a}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Ce({},e.defaultProps,t):t}}),E.toString=function(){return"."+E.styledComponentId},l&&f()(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var Se,ke=function(e){return function e(t,n,r){if(void 0===r&&(r=h),!Object(o.isValidElementType)(n))return E(1,String(n));var a=function(){return t(n,r,be.apply(void 0,arguments))};return a.withConfig=function(o){return e(t,n,d({},r,{},o))},a.attrs=function(o){return e(t,n,d({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},a}(je,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){ke[e]=ke(e)})),(Se=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),G.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,o){var r=o(me(this.rules,t,n,o).join(""),""),a=this.componentId+e;n.insertRules(a,a,r)},Se.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Se.renderStyles=function(e,t,n,o){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=D();return"<style "+[n&&'nonce="'+n+'"',O+'="true"','data-styled-version="5.3.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[O]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=D();return o&&(n.nonce=o),[a.a.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?E(2):a.a.createElement(le,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}(),t.a=ke}).call(this,n(47))},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.data},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=c,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=t.safePreventDefault=void 0;var o,r=(o=n(4))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t,n){return Math.max(t,Math.min(e,n))}var s=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=s;var u=function(e){for(var t=[],n=p(e),o=f(e),r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t};t.getOnDemandLazySlides=u,t.getRequiredLazySlides=function(e){for(var t=[],n=p(e),o=f(e),r=n;r<o;r++)t.push(r);return t};var p=function(e){return e.currentSlide-d(e)};t.lazyStartIndex=p;var f=function(e){return e.currentSlide+m(e)};t.lazyEndIndex=f;var d=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=d;var m=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=m;var b=function(e){return e&&e.offsetWidth||0};t.getWidth=b;var g=function(e){return e&&e.offsetHeight||0};t.getHeight=g;var h=function(e){var t,n,o,r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,t),(r=Math.round(180*o/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===a?r>=35&&r<=135?"up":"down":"vertical"};t.getSwipeDirection=h;var y=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=y,t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},t.initializedState=function(e){var t,n=r.default.Children.count(e.children),o=e.listRef,a=Math.ceil(b(o)),i=e.trackRef&&e.trackRef.node,c=Math.ceil(b(i));if(e.vertical)t=a;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=a/100),t=Math.ceil((a-s)/e.slidesToShow)}var p=o&&g(o.querySelector('[data-index="0"]')),f=p*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=n-1-e.initialSlide);var m=e.lazyLoadedList||[],h=u(l(l({},e),{},{currentSlide:d,lazyLoadedList:m})),y={slideCount:n,slideWidth:t,listWidth:a,trackWidth:c,currentSlide:d,slideHeight:p,listHeight:f,lazyLoadedList:m=m.concat(h)};return null===e.autoplaying&&e.autoplay&&(y.autoplaying="playing"),y},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,r=e.infinite,a=e.index,i=e.slideCount,s=e.lazyLoad,p=e.currentSlide,f=e.centerMode,d=e.slidesToScroll,m=e.slidesToShow,b=e.useCSS,g=e.lazyLoadedList;if(t&&n)return{};var h,v,w,O=a,_={},j={},S=r?a:c(a,0,i-1);if(o){if(!r&&(a<0||a>=i))return{};a<0?O=a+i:a>=i&&(O=a-i),s&&g.indexOf(O)<0&&(g=g.concat(O)),_={animating:!0,currentSlide:O,lazyLoadedList:g,targetSlide:O},j={animating:!1,targetSlide:O}}else h=O,O<0?(h=O+i,r?i%d!=0&&(h=i-i%d):h=0):!y(e)&&O>p?O=h=p:f&&O>=i?(O=r?i:i-1,h=r?0:i-1):O>=i&&(h=O-i,r?i%d!=0&&(h=0):h=i-m),!r&&O+m>=i&&(h=i-m),v=R(l(l({},e),{},{slideIndex:O})),w=R(l(l({},e),{},{slideIndex:h})),r||(v===w&&(O=h),v=w),s&&(g=g.concat(u(l(l({},e),{},{currentSlide:O})))),b?(_={animating:!0,currentSlide:h,trackStyle:E(l(l({},e),{},{left:v})),lazyLoadedList:g,targetSlide:S},j={animating:!1,currentSlide:h,trackStyle:C(l(l({},e),{},{left:w})),swipeLeft:null,targetSlide:S}):_={currentSlide:h,trackStyle:C(l(l({},e),{},{left:w})),lazyLoadedList:g,targetSlide:S};return{state:_,nextState:j}},t.changeSlide=function(e,t){var n,o,r,a,i=e.slidesToScroll,c=e.slidesToShow,s=e.slideCount,u=e.currentSlide,p=e.targetSlide,f=e.lazyLoad,d=e.infinite;if(n=s%i!=0?0:(s-u)%i,"previous"===t.message)a=u-(r=0===n?i:c-n),f&&!d&&(a=-1==(o=u-r)?s-1:o),d||(a=p-i);else if("next"===t.message)a=u+(r=0===n?i:n),f&&!d&&(a=(u+i)%s+n),d||(a=p+i);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,d){var m=P(l(l({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===m?a-=s:a<t.currentSlide&&"right"===m&&(a+=s)}}else"index"===t.message&&(a=Number(t.index));return a},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&s(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,o=t.animating,r=t.vertical,a=t.swipeToSlide,i=t.verticalSwiping,c=t.rtl,u=t.currentSlide,p=t.edgeFriction,f=t.edgeDragged,d=t.onEdge,m=t.swiped,b=t.swiping,g=t.slideCount,v=t.slidesToScroll,w=t.infinite,O=t.touchObject,_=t.swipeEvent,E=t.listHeight,j=t.listWidth;if(!n){if(o)return s(e);r&&a&&i&&s(e);var S,k={},P=R(t);O.curX=e.touches?e.touches[0].pageX:e.clientX,O.curY=e.touches?e.touches[0].pageY:e.clientY,O.swipeLength=Math.round(Math.sqrt(Math.pow(O.curX-O.startX,2)));var F=Math.round(Math.sqrt(Math.pow(O.curY-O.startY,2)));if(!i&&!b&&F>10)return{scrolling:!0};i&&(O.swipeLength=F);var A=(c?-1:1)*(O.curX>O.startX?1:-1);i&&(A=O.curY>O.startY?1:-1);var T=Math.ceil(g/v),B=h(t.touchObject,i),x=O.swipeLength;return w||(0===u&&("right"===B||"down"===B)||u+1>=T&&("left"===B||"up"===B)||!y(t)&&("left"===B||"up"===B))&&(x=O.swipeLength*p,!1===f&&d&&(d(B),k.edgeDragged=!0)),!m&&_&&(_(B),k.swiped=!0),S=r?P+x*(E/j)*A:c?P-x*A:P+x*A,i&&(S=P+x*A),k=l(l({},k),{},{touchObject:O,swipeLeft:S,trackStyle:C(l(l({},t),{},{left:S}))}),Math.abs(O.curX-O.startX)<.8*Math.abs(O.curY-O.startY)||O.swipeLength>10&&(k.swiping=!0,s(e)),k}},t.swipeEnd=function(e,t){var n=t.dragging,o=t.swipe,r=t.touchObject,a=t.listWidth,i=t.touchThreshold,c=t.verticalSwiping,u=t.listHeight,p=t.swipeToSlide,f=t.scrolling,d=t.onSwipe,m=t.targetSlide,b=t.currentSlide,g=t.infinite;if(!n)return o&&s(e),{};var y=c?u/i:a/i,v=h(r,c),_={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return _;if(!r.swipeLength)return _;if(r.swipeLength>y){var C,j;s(e),d&&d(v);var S=g?b:m;switch(v){case"left":case"up":j=S+O(t),C=p?w(t,j):j,_.currentDirection=0;break;case"right":case"down":j=S-O(t),C=p?w(t,j):j,_.currentDirection=1;break;default:C=S}_.triggerSlideHandler=C}else{var k=R(t);_.trackStyle=E(l(l({},t),{},{left:k}))}return _};var v=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r};t.getNavigableIndexes=v;var w=function(e,t){var n=v(e),o=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=o;break}o=n[r]}return t};t.checkNavigable=w;var O=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(o){if(e.vertical){if(o.offsetTop+g(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+b(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;var a=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}return e.slidesToScroll};t.getSlideCount=O;var _=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=_;var C=function(e){var t,n;_(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=k(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",c=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=l(l({},r),{},{WebkitTransform:a,transform:i,msTransform:c})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r};t.getTrackCSS=C;var E=function(e){_(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=C(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=E;var R=function(e){if(e.unslick)return 0;_(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,o=e.slideIndex,r=e.trackRef,a=e.infinite,l=e.centerMode,i=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,p=e.listWidth,f=e.variableWidth,d=e.slideHeight,m=e.fade,b=e.vertical;if(m||1===e.slideCount)return 0;var g=0;if(a?(g=-j(e),i%s!=0&&o+s>i&&(g=-(o>i?c-(o-i):i%s)),l&&(g+=parseInt(c/2))):(i%s!=0&&o+s>i&&(g=c-i%s),l&&(g=parseInt(c/2))),t=b?o*d*-1+g*d:o*u*-1+g*u,!0===f){var h,y=r&&r.node;if(h=o+j(e),t=(n=y&&y.childNodes[h])?-1*n.offsetLeft:0,!0===l){h=a?o+j(e):o,n=y&&y.children[h],t=0;for(var v=0;v<h;v++)t-=y&&y.children[v]&&y.children[v].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(p-n.offsetWidth)/2}}return t};t.getTrackLeft=R;var j=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=j;var S=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=S;var k=function(e){return 1===e.slideCount?1:j(e)+e.slideCount+S(e)};t.getTotalSlides=k;var P=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+F(e)?"left":"right":e.targetSlide<e.currentSlide-A(e)?"right":"left"};t.siblingDirection=P;var F=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(r)>0&&(a+=1),o&&t%2==0&&(a+=1),a}return o?0:t-1};t.slidesOnRight=F;var A=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(r)>0&&(a+=1),o||t%2!=0||(a+=1),a}return o?t-1:0};t.slidesOnLeft=A,t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},function(e,t){e.exports=window.wp.blocks},function(e){e.exports=JSON.parse('{"name":"woolentor/product-tab","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"style":{"type":"string","default":"1"},"columns":{"type":"number","default":4},"rows":{"type":"number","default":1},"productTab":{"type":"boolean","default":false},"slider":{"type":"boolean","default":false},"productFilterType":{"type":"string","default":"recent"},"perPage":{"type":"number","default":4},"customOrder":{"type":"boolean","default":false},"orderBy":{"type":"string","default":"none"},"order":{"type":"string","default":"DESC"},"selectedCategories":{"type":"array","default":[]},"slitems":{"type":"number","default":4},"slarrows":{"type":"boolean","default":true},"sldots":{"type":"boolean","default":false},"slpauseOnHover":{"type":"boolean","default":true},"slautolay":{"type":"boolean","default":false},"slautoplaySpeed":{"type":"number","default":3000},"slanimationSpeed":{"type":"number","default":300},"slscrollItem":{"type":"number","default":3},"sltabletDisplayColumns":{"type":"number","default":2},"sltabletScrollColumns":{"type":"number","default":2},"sltabletWidth":{"type":"number","default":750},"slMobileDisplayColumns":{"type":"number","default":1},"slMobileScrollColumns":{"type":"number","default":1},"slMobileWidth":{"type":"number","default":480},"titleColor":{"type":"string","selector":".product-item .product-inner .content .title a"},"titleHoverColor":{"type":"string","selector":".product-item .product-inner .content .title a:hover"},"titleAlign":{"type":"string","selector":".product-item .product-inner .content .title"},"priceColor":{"type":"string","selector":".product-item .product-inner .content .price"},"actionBtnColor":{"type":"string","selector":".product-item .actions a"},"actionBtnBgColor":{"type":"string","selector":".product-item .actions"},"actionBtnHoverColor":{"type":"string","selector":".product-item .actions a:hover"},"actionBtnHoverBgColor":{"type":"string","selector":".product-item .actions:hover"},"contentAlign":{"type":"string","selector":".product-item .product-inner .content .price"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/promo-banner","category":"woolentor-blocks","attributes":{"style":{"type":"string","default":"1"},"contentAlignment":{"type":"string","default":"left"},"title":{"type":"string","default":"","selector":".banner_title"},"subTitle":{"type":"string","default":"","selector":".banner_subtitle"},"imgId":{"type":"number"},"imgUrl":{"type":"string","source":"attribute","attribute":"src","selector":"img"},"buttonUrl":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"buttonText":{"type":"string","source":"html","selector":"a"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target"},"titleColor":{"type":"string","selector":".woolentor-banner .banner_title"},"titleSize":{"type":"string"},"subTitleColor":{"type":"string","selector":".woolentor-banner .banner_subtitle"},"subTitleSize":{"type":"string"},"buttonColor":{"type":"string","selector":".woolentor-banner .banner_button"},"buttonSize":{"type":"string"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/special-day-offer","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"contentPosition":{"type":"string","default":"center"},"bannerImage":{"type":"object","default":{"id":null,"url":""}},"title":{"type":"string","default":"Banner Title"},"subTitle":{"type":"string","default":"Banner Sub Title"},"bannerDescription":{"type":"string","default":"Banner Description"},"offerAmount":{"type":"string"},"offerTagLine":{"type":"string"},"bannerLink":{"type":"string"},"buttonText":{"type":"string"},"badgeImage":{"type":"object","default":{"id":null,"url":""}},"badgeHorizontalPos":{"type":"number","default":25},"badgeVerticlePos":{"type":"number"},"titleColor":{"type":"string","selector":".wlspcial-banner .banner-content h2"},"titleSize":{"type":"string","selector":".wlspcial-banner .banner-content h2"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h2"},"titlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h2"},"titleSubColor":{"type":"string","selector":".wlspcial-banner .banner-content h6"},"titleSubSize":{"type":"string","selector":".wlspcial-banner .banner-content h6"},"subTitleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"subTitlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"contentAlignment":{"type":"string","selector":".wlspcial-banner .banner-content"},"contentAreaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"contentAreaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"desColor":{"type":"string","selector":".wlspcial-banner .banner-content p"},"desSize":{"type":"string","selector":".wlspcial-banner .banner-content p"},"desMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content p"},"desPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content p"},"offerColor":{"type":"string","selector":".wlspcial-banner .banner-content h5"},"offerSize":{"type":"string","selector":".wlspcial-banner .banner-content h5"},"offerMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h5"},"offerTagColor":{"type":"string","selector":".wlspcial-banner .banner-content h5 span"},"offerTagSize":{"type":"string","selector":".wlspcial-banner .banner-content h5 span"},"offerTagMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h5 span"},"buttonColor":{"type":"string","selector":".wlspcial-banner .banner-content a"},"buttonHoverColor":{"type":"string","selector":".wlspcial-banner .banner-content a:hover"},"buttonSize":{"type":"string","selector":".wlspcial-banner .banner-content a"},"buttonMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content a"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/image-marker","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"bgProperty":{"type":"object","default":{"imageId":null,"imageUrl":"","position":"","attachment":"","repeat":"","size":""}},"style":{"type":"string","default":"1"},"markerList":{"type":"array","default":[{"title":"Marker One","content":"Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.","horizontal":50,"verticle":15},{"title":"Marker Two","content":"Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.","horizontal":40,"verticle":20},{"title":"Marker Three","content":"Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.","horizontal":60,"verticle":30}]},"markerColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer::before"},"markerBGColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerBorderColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerContentBGColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerContentBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerContentPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerTitleColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"},"markerTitleSize":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"},"markerTitleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"},"markerDescriptionColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"},"markerDescriptionSize":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"},"markerDescriptionMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/store-feature","category":"woolentor-blocks","supports":{"align":true},"attributes":{"blockUniqId":{"type":"string","default":""},"layout":{"type":"string","default":"1"},"featureImage":{"type":"object","default":{"id":null,"url":""}},"title":{"type":"string","default":"Free shipping"},"subTitle":{"type":"string","default":"Start from $100"},"textAlignment":{"type":"string","default":"center"},"areaBorderColor":{"type":"string","selector":".ht-feature-wrap .ht-feature-inner"},"areaHoverBorderColor":{"type":"string","selector":".ht-feature-wrap:hover .ht-feature-inner"},"areaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap"},"areaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap"},"areaBackgroundColor":{"type":"string","selector":".ht-feature-wrap"},"titleColor":{"type":"string","selector":".ht-feature-wrap .ht-feature-content h4"},"titleSize":{"type":"string","selector":".ht-feature-wrap .ht-feature-content h4"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap .ht-feature-content h4"},"subTitleColor":{"type":"string","selector":".ht-feature-wrap .ht-feature-content p"},"subTitleSize":{"type":"string","selector":".ht-feature-wrap .ht-feature-content p"},"subTitleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap .ht-feature-content p"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/brand-logo","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"brandLogoList":{"type":"array","default":[{"title":"Brand Title One","image":{"id":"","url":""}},{"title":"Brand Title Two","image":{"id":"","url":""}},{"title":"Brand Title Three","image":{"id":"","url":""}}]},"columns":{"type":"number","default":6},"noGutter":{"type":"boolean","default":false},"itemSpace":{"type":"number","default":15},"singleItemAreaBorderType":{"type":"string","default":"","selector":".wl-single-brand"},"singleItemAreaBorderWidth":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"singleItemAreaBorderColor":{"type":"string","selector":".wl-single-brand"},"singleItemAreaBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"singleItemAreaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"singleItemAreaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"brandAlignment":{"type":"string","default":"center","selector":".wl-single-brand"},"brandImageBorderType":{"type":"string","default":"","selector":".wl-single-brand img"},"brandImageBorderWidth":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand img"},"brandImageBorderColor":{"type":"string","selector":".wl-single-brand img"},"brandImageBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand img"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/category-grid","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"style":{"type":"string","default":"1"},"displayType":{"type":"string","default":"allCat"},"productCategory":{"type":"string"},"productCategories":{"type":"array","default":[]},"order":{"type":"string","default":"asc"},"displayLimit":{"type":"number","default":6},"showCount":{"type":"boolean","default":true},"sliderOn":{"type":"boolean","default":false},"slitems":{"type":"number","default":3},"slarrows":{"type":"boolean","default":true},"sldots":{"type":"boolean","default":false},"slpauseOnHover":{"type":"boolean","default":true},"slIsrtl":{"type":"boolean","default":false},"slautolay":{"type":"boolean","default":false},"slautoplaySpeed":{"type":"number","default":3000},"slanimationSpeed":{"type":"number","default":300},"slscrollItem":{"type":"number","default":3},"sltabletDisplayColumns":{"type":"number","default":2},"sltabletScrollColumns":{"type":"number","default":2},"sltabletWidth":{"type":"number","default":750},"slMobileDisplayColumns":{"type":"number","default":1},"slMobileScrollColumns":{"type":"number","default":1},"slMobileWidth":{"type":"number","default":480},"columns":{"type":"number","default":3},"noGutter":{"type":"boolean","default":false},"itemSpace":{"type":"number","default":15},"areaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"areaBackgroundColor":{"type":"string"},"imageBoxColor":{"type":"string","selector":".ht-category-wrap .ht-category-image a.ht-category-border::before"},"imageMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-category-wrap .ht-category-image"},"imageBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-category-wrap .ht-category-image"},"titleColor":{"type":"string","selector":".ht-category-wrap .ht-category-content h3 a"},"titleHoverColor":{"type":"string","selector":".ht-category-wrap .ht-category-content h3 a:hover"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-category-wrap .ht-category-content h3"},"countColor":{"type":"string"},"countBeforeColor":{"type":"string"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/faq","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"faqList":{"type":"array","default":[{"title":"Words To Live By","content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."},{"title":"Producing Perfume From Home","content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."},{"title":"The Basics Of Western Astrology Explained","content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."},{"title":"What Curling Irons Are The Best Ones","content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."}]},"showFirstItem":{"type":"boolean","default":true},"iconPosition":{"type":"string","default":"right"},"headBackgroundColor":{"type":"string"},"faqTitleColor":{"type":"string"},"titleSize":{"type":"string"},"titleBorderType":{"type":"string"},"titleBorderWidth":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"titleBorderColor":{"type":"string"},"titleBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"iconColor":{"type":"string"},"activeHeadBackgroundColor":{"type":"string"},"activeFaqTitleColor":{"type":"string"},"activeIconColor":{"type":"string"},"contentColor":{"type":"string"},"contentSize":{"type":"string"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/product-curvy","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"areaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"areaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"areaBGProperty":{"type":"object","default":{"imageId":null,"imageUrl":"","position":"","attachment":"","repeat":"","size":""}},"layout":{"type":"string"},"columns":{"type":"number","default":4},"noGutter":{"type":"boolean","default":false},"itemSpace":{"type":"number","default":15},"productFilterType":{"type":"string","default":"recent"},"perPage":{"type":"number","default":4},"customOrder":{"type":"boolean","default":false},"orderBy":{"type":"string","default":"none"},"order":{"type":"string","default":"DESC"},"selectedCategories":{"type":"array","default":[]},"contentLimit":{"type":"number","default":6},"showTitle":{"type":"boolean","default":true},"showPrice":{"type":"boolean","default":true},"showContent":{"type":"boolean","default":true},"showRating":{"type":"boolean","default":true},"itemAreaBGColor":{"type":"string"},"itemMarginBottom":{"type":"number","default":15},"titleSize":{"type":"string"},"titleColor":{"type":"string"},"titleHoverColor":{"type":"string"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"salePriceColor":{"type":"string"},"regulerPriceColor":{"type":"string"},"contentSize":{"type":"string"},"cotentColor":{"type":"string"},"contentMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"emptyRatingColor":{"type":"string"},"ratingColor":{"type":"string"},"ratingMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"actionBtnAreaBGColor":{"type":"string"},"actionBtnColor":{"type":"string"},"actionBtnBGColor":{"type":"string"},"actionBtnBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"actionBtnHoverColor":{"type":"string"},"actionBtnBgHoverColor":{"type":"string"},"imageBorderColor":{"type":"string"}}}')},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((o=n(32))&&o.__esModule?o:{default:o}).default;t.default=r},function(e,t,n){"use strict";e.exports=n(48)},function(e,t,n){"use strict";var o=n(23),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function c(e){return o.isMemo(e)?l:i[e.$$typeof]||r}i[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[o.Memo]=l;var s=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=d(n);r&&r!==m&&e(t,r,o)}var l=u(n);p&&(l=l.concat(p(n)));for(var i=c(t),b=c(n),g=0;g<l.length;++g){var h=l[g];if(!(a[h]||o&&o[h]||b&&b[h]||i&&i[h])){var y=f(n,h);try{s(t,h,y)}catch(e){}}}}return t}},function(e,t){e.exports=window.wp.primitives},function(e,t,n){"use strict";var o,r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(o={},function(e){return void 0===o[e]&&(o[e]=(t=e,r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),o[e];var t});t.a=a},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,o=e.length;n<o&&!1!==t(e[n],n);n++);}}},function(e,t){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var s=a[c];if(!i(s))return!1;var u=e[s],p=t[s];if(!1===(r=n?n.call(o,u,p,s):void 0)||void 0===r&&u!==p)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,o){var r=t.trim().split(m);t=r;var a=r.length,l=e.length;switch(l){case 0:case 1:var i=0;for(e=0===l?"":e[0]+" ";i<a;++i)t[i]=n(e,t[i],o).trim();break;default:var c=i=0;for(t=[];i<a;++i)for(var s=0;s<l;++s)t[c++]=n(e[s]+" ",r[i],o).trim()}return t}function n(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,a){var l=e+";",i=2*t+3*n+4*a;if(944===i){e=l.indexOf(":",9)+1;var c=l.substring(e,l.length-1).trim();return c=l.substring(0,e).trim()+c+";",1===P||2===P&&r(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!r(l,1))return l;switch(i){case 1015:return 97===l.charCodeAt(10)?"-webkit-"+l+l:l;case 951:return 116===l.charCodeAt(3)?"-webkit-"+l+l:l;case 963:return 110===l.charCodeAt(5)?"-webkit-"+l+l:l;case 1009:if(100!==l.charCodeAt(4))break;case 969:case 942:return"-webkit-"+l+l;case 978:return"-webkit-"+l+"-moz-"+l+l;case 1019:case 983:return"-webkit-"+l+"-moz-"+l+"-ms-"+l+l;case 883:if(45===l.charCodeAt(8))return"-webkit-"+l+l;if(0<l.indexOf("image-set(",11))return l.replace(R,"$1-webkit-$2")+l;break;case 932:if(45===l.charCodeAt(4))switch(l.charCodeAt(5)){case 103:return"-webkit-box-"+l.replace("-grow","")+"-webkit-"+l+"-ms-"+l.replace("grow","positive")+l;case 115:return"-webkit-"+l+"-ms-"+l.replace("shrink","negative")+l;case 98:return"-webkit-"+l+"-ms-"+l.replace("basis","preferred-size")+l}return"-webkit-"+l+"-ms-"+l+l;case 964:return"-webkit-"+l+"-ms-flex-"+l+l;case 1023:if(99!==l.charCodeAt(8))break;return"-webkit-box-pack"+(c=l.substring(l.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+l+"-ms-flex-pack"+c+l;case 1005:return f.test(l)?l.replace(p,":-webkit-")+l.replace(p,":-moz-")+l:l;case 1e3:switch(t=(c=l.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=l.replace(v,"tb");break;case 232:c=l.replace(v,"tb-rl");break;case 220:c=l.replace(v,"lr");break;default:return l}return"-webkit-"+l+"-ms-"+c+l;case 1017:if(-1===l.indexOf("sticky",9))break;case 975:switch(t=(l=e).length-10,i=(c=(33===l.charCodeAt(t)?l.substring(0,t):l).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:l=l.replace(c,"-webkit-"+c)+";"+l;break;case 207:case 102:l=l.replace(c,"-webkit-"+(102<i?"inline-":"")+"box")+";"+l.replace(c,"-webkit-"+c)+";"+l.replace(c,"-ms-"+c+"box")+";"+l}return l+";";case 938:if(45===l.charCodeAt(5))switch(l.charCodeAt(6)){case 105:return c=l.replace("-items",""),"-webkit-"+l+"-webkit-box-"+c+"-ms-flex-"+c+l;case 115:return"-webkit-"+l+"-ms-flex-item-"+l.replace(_,"")+l;default:return"-webkit-"+l+"-ms-flex-line-pack"+l.replace("align-content","").replace(_,"")+l}break;case 973:case 989:if(45!==l.charCodeAt(3)||122===l.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):l.replace(c,"-webkit-"+c)+l.replace(c,"-moz-"+c.replace("fill-",""))+l;break;case 962:if(l="-webkit-"+l+(102===l.charCodeAt(5)?"-ms-"+l:"")+l,211===n+a&&105===l.charCodeAt(13)&&0<l.indexOf("transform",10))return l.substring(0,l.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+l}return l}function r(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),B(2!==t?o:o.replace(C,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function l(e,t,n,o,r,a,l,i,s,u){for(var p,f=0,d=t;f<T;++f)switch(p=A[f].call(c,e,d,n,o,r,a,l,i,s,u)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function i(e){return void 0!==(e=e.prefix)&&(B=null,e?"function"!=typeof e?P=1:(P=2,B=e):P=0),i}function c(e,n){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<T){var c=l(-1,n,i,i,S,j,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var p=function e(n,i,c,p,f){for(var d,m,b,v,O,_=0,C=0,E=0,R=0,A=0,B=0,z=b=d=0,D=0,M=0,I=0,L=0,N=c.length,H=N-1,W="",G="",q="",U="";D<N;){if(m=c.charCodeAt(D),D===H&&0!==C+R+E+_&&(0!==C&&(m=47===C?10:47),R=E=_=0,N++,H++),0===C+R+E+_){if(D===H&&(0<M&&(W=W.replace(u,"")),0<W.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:W+=c.charAt(D)}m=59}switch(m){case 123:for(d=(W=W.trim()).charCodeAt(0),b=1,L=++D;D<N;){switch(m=c.charCodeAt(D)){case 123:b++;break;case 125:b--;break;case 47:switch(m=c.charCodeAt(D+1)){case 42:case 47:e:{for(z=D+1;z<H;++z)switch(c.charCodeAt(z)){case 47:if(42===m&&42===c.charCodeAt(z-1)&&D+2!==z){D=z+1;break e}break;case 10:if(47===m){D=z+1;break e}}D=z}}break;case 91:m++;case 40:m++;case 34:case 39:for(;D++<H&&c.charCodeAt(D)!==m;);}if(0===b)break;D++}switch(b=c.substring(L,D),0===d&&(d=(W=W.replace(s,"").trim()).charCodeAt(0)),d){case 64:switch(0<M&&(W=W.replace(u,"")),m=W.charCodeAt(1)){case 100:case 109:case 115:case 45:M=i;break;default:M=F}if(L=(b=e(i,M,b,m,f+1)).length,0<T&&(O=l(3,b,M=t(F,W,I),i,S,j,L,m,f,p),W=M.join(""),void 0!==O&&0===(L=(b=O.trim()).length)&&(m=0,b="")),0<L)switch(m){case 115:W=W.replace(w,a);case 100:case 109:case 45:b=W+"{"+b+"}";break;case 107:b=(W=W.replace(g,"$1 $2"))+"{"+b+"}",b=1===P||2===P&&r("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=W+b,112===p&&(G+=b,b="")}else b="";break;default:b=e(i,t(i,W,I),b,p,f+1)}q+=b,b=I=M=z=d=0,W="",m=c.charCodeAt(++D);break;case 125:case 59:if(1<(L=(W=(0<M?W.replace(u,""):W).trim()).length))switch(0===z&&(d=W.charCodeAt(0),45===d||96<d&&123>d)&&(L=(W=W.replace(" ",":")).length),0<T&&void 0!==(O=l(1,W,i,n,S,j,G.length,p,f,p))&&0===(L=(W=O.trim()).length)&&(W="\0\0"),d=W.charCodeAt(0),m=W.charCodeAt(1),d){case 0:break;case 64:if(105===m||99===m){U+=W+c.charAt(D);break}default:58!==W.charCodeAt(L-1)&&(G+=o(W,d,m,W.charCodeAt(2)))}I=M=z=d=0,W="",m=c.charCodeAt(++D)}}switch(m){case 13:case 10:47===C?C=0:0===1+d&&107!==p&&0<W.length&&(M=1,W+="\0"),0<T*x&&l(0,W,i,n,S,j,G.length,p,f,p),j=1,S++;break;case 59:case 125:if(0===C+R+E+_){j++;break}default:switch(j++,v=c.charAt(D),m){case 9:case 32:if(0===R+_+C)switch(A){case 44:case 58:case 9:case 32:v="";break;default:32!==m&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===R+C+_&&(M=I=1,v="\f"+v);break;case 108:if(0===R+C+_+k&&0<z)switch(D-z){case 2:112===A&&58===c.charCodeAt(D-3)&&(k=A);case 8:111===B&&(k=B)}break;case 58:0===R+C+_&&(z=D);break;case 44:0===C+E+R+_&&(M=1,v+="\r");break;case 34:case 39:0===C&&(R=R===m?0:0===R?m:R);break;case 91:0===R+C+E&&_++;break;case 93:0===R+C+E&&_--;break;case 41:0===R+C+_&&E--;break;case 40:if(0===R+C+_){if(0===d)switch(2*A+3*B){case 533:break;default:d=1}E++}break;case 64:0===C+E+R+_+z+b&&(b=1);break;case 42:case 47:if(!(0<R+_+E))switch(C){case 0:switch(2*m+3*c.charCodeAt(D+1)){case 235:C=47;break;case 220:L=D,C=42}break;case 42:47===m&&42===A&&L+2!==D&&(33===c.charCodeAt(L+2)&&(G+=c.substring(L,D+1)),v="",C=0)}}0===C&&(W+=v)}B=A,A=m,D++}if(0<(L=G.length)){if(M=i,0<T&&void 0!==(O=l(2,G,M,n,S,j,L,p,f,p))&&0===(G=O).length)return U+G+q;if(G=M.join(",")+"{"+G+"}",0!=P*k){switch(2!==P||r(G,2)||(k=0),k){case 111:G=G.replace(y,":-moz-$1")+G;break;case 112:G=G.replace(h,"::-webkit-input-$1")+G.replace(h,"::-moz-$1")+G.replace(h,":-ms-input-$1")+G}k=0}}return U+G+q}(F,i,n,0,0);return 0<T&&void 0!==(c=l(-2,p,i,i,S,j,p.length,0,0,0))&&(p=c),k=0,j=S=1,p}var s=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,h=/::(place)/g,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,_=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,R=/([^-])(image-set\()/,j=1,S=1,k=0,P=1,F=[],A=[],T=0,B=null,x=0;return c.use=function e(t){switch(t){case void 0:case null:T=A.length=0;break;default:if("function"==typeof t)A[T++]=t;else if("object"==typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else x=0|!!t}return e},c.set=i,void 0!==e&&i(e),c}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n(4)),r=n(33),a=c(n(40)),l=c(n(42)),i=n(11);function c(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,i.canUseDOM)()&&n(43),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(w,e);var t,n,c,s,p=(c=w,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(c);if(s){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),y(g(t=p.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),y(g(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),y(g(t),"slickNext",(function(){return t.innerSlider.slickNext()})),y(g(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),y(g(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),y(g(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=w,(n=[{key:"media",value:function(e,t){v.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,o){var r;r=0===o?(0,a.default)({minWidth:0,maxWidth:n}):(0,a.default)({minWidth:t[o-1]+1,maxWidth:n}),(0,i.canUseDOM)()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=(0,a.default)({minWidth:t.slice(-1)[0]});(0,i.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){v.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":f(f(f({},l.default),this.props),t[0].settings):f(f({},l.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=o.default.Children.toArray(this.props.children);a=a.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],c=null,s=0;s<a.length;s+=e.rows*e.slidesPerRow){for(var p=[],d=s;d<s+e.rows*e.slidesPerRow;d+=e.slidesPerRow){for(var m=[],b=d;b<d+e.slidesPerRow&&(e.variableWidth&&a[b].props.style&&(c=a[b].props.style.width),!(b>=a.length));b+=1)m.push(o.default.cloneElement(a[b],{key:100*s+10*d+b,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(o.default.createElement("div",{key:10*s+d},m))}e.variableWidth?i.push(o.default.createElement("div",{key:s,style:{width:c}},p)):i.push(o.default.createElement("div",{key:s},p))}if("unslick"===e){var g="regular slider "+(this.props.className||"");return o.default.createElement("div",{className:g},a)}return i.length<=e.slidesToShow&&(e.unslick=!0),o.default.createElement(r.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},e),i)}}])&&d(t.prototype,n),w}(o.default.Component);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var o=f(n(4)),r=f(n(34)),a=f(n(35)),l=f(n(5)),i=n(11),c=n(36),s=n(37),u=n(38),p=f(n(39));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function b(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(R,e);var t,n,f,g,E=(f=R,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(f);if(g){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function R(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),C(O(t=E.call(this,e)),"listRefHandler",(function(e){return t.list=e})),C(O(t),"trackRefHandler",(function(e){return t.track=e})),C(O(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,i.getHeight)(e)+"px"}})),C(O(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,i.getOnDemandLazySlides)(h(h({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=h({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new p.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),C(O(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),C(O(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,i.getOnDemandLazySlides)(h(h({},t.props),t.state));n.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var r=h(h({listRef:t.list,trackRef:t.track},t.props),t.state),a=t.didPropsChange(e);a&&t.updateState(r,a,(function(){t.state.currentSlide>=o.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:o.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),C(O(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,a.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),C(O(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Boolean(t.track&&t.track.node);if(n){var o=h(h({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(o,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),C(O(t),"updateState",(function(e,n,r){var a=(0,i.initializedState)(e);e=h(h(h({},e),a),{},{slideIndex:a.currentSlide});var l=(0,i.getTrackLeft)(e);e=h(h({},e),{},{left:l});var c=(0,i.getTrackCSS)(e);(n||o.default.Children.count(t.props.children)!==o.default.Children.count(e.children))&&(a.trackStyle=c),t.setState(a,r)})),C(O(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,r=[],a=(0,i.getPreClones)(h(h(h({},t.props),t.state),{},{slideCount:t.props.children.length})),l=(0,i.getPostClones)(h(h(h({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var c=0;c<a;c++)n+=r[r.length-1-c],e+=r[r.length-1-c];for(var s=0;s<l;s++)e+=r[s];for(var u=0;u<t.state.currentSlide;u++)n+=r[u];var p={width:e+"px",left:-n+"px"};if(t.props.centerMode){var f="".concat(r[t.state.currentSlide],"px");p.left="calc(".concat(p.left," + (100% - ").concat(f,") / 2 ) ")}return{trackStyle:p}}var d=o.default.Children.count(t.props.children),m=h(h(h({},t.props),t.state),{},{slideCount:d}),b=(0,i.getPreClones)(m)+(0,i.getPostClones)(m)+d,g=100/t.props.slidesToShow*b,y=100/b,v=-y*((0,i.getPreClones)(m)+t.state.currentSlide)*g/100;return t.props.centerMode&&(v+=(100-y*g/100)/2),{slideWidth:y+"%",trackStyle:{width:g+"%",left:v+"%"}}})),C(O(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,o=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++o&&o>=n&&t.onWindowResized()};if(e.onclick){var a=e.onclick;e.onclick=function(){a(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=r,e.onerror=function(){r(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),C(O(t),"progressiveLazyLoad",(function(){for(var e=[],n=h(h({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,i.getPostClones)(n);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var r=t.state.currentSlide-1;r>=-(0,i.getPreClones)(n);r--)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),C(O(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=t.props,r=o.asNavFor,a=o.beforeChange,l=o.onLazyLoad,c=o.speed,s=o.afterChange,u=t.state.currentSlide,p=(0,i.slideHandler)(h(h(h({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),f=p.state,d=p.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));l&&m.length>0&&l(m),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),s&&s(u),delete t.animationEndCallback),t.setState(f,(function(){r&&t.asNavForIndex!==e&&(t.asNavForIndex=e,r.innerSlider.slideHandler(e)),d&&(t.animationEndCallback=setTimeout((function(){var e=d.animating,n=b(d,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),s&&s(f.currentSlide),delete t.animationEndCallback}))}),c))}))}})),C(O(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=h(h({},t.props),t.state),r=(0,i.changeSlide)(o,e);if((0===r||r)&&(!0===n?t.slideHandler(r,n):t.slideHandler(r),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var a=t.list.querySelectorAll(".slick-current");a[0]&&a[0].focus()}})),C(O(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),C(O(t),"keyHandler",(function(e){var n=(0,i.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),C(O(t),"selectHandler",(function(e){t.changeSlide(e)})),C(O(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),C(O(t),"enableBodyScroll",(function(){window.ontouchmove=null})),C(O(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,i.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),C(O(t),"swipeMove",(function(e){var n=(0,i.swipeMove)(e,h(h(h({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),C(O(t),"swipeEnd",(function(e){var n=(0,i.swipeEnd)(e,h(h(h({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var o=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==o&&(t.slideHandler(o),t.props.verticalSwiping&&t.enableBodyScroll())}})),C(O(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),C(O(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),C(O(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),C(O(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),C(O(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,i.canGoNext)(h(h({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),C(O(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),C(O(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),C(O(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),C(O(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),C(O(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),C(O(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),C(O(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),C(O(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),C(O(t),"render",(function(){var e,n,r,a=(0,l.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),p=h(h({},t.props),t.state),f=(0,i.extractObject)(p,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),d=t.props.pauseOnHover;if(f=h(h({},f),{},{onMouseEnter:d?t.onTrackOver:null,onMouseLeave:d?t.onTrackLeave:null,onMouseOver:d?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var b=(0,i.extractObject)(p,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),g=t.props.pauseOnDotsHover;b=h(h({},b),{},{clickHandler:t.changeSlide,onMouseEnter:g?t.onDotsLeave:null,onMouseOver:g?t.onDotsOver:null,onMouseLeave:g?t.onDotsLeave:null}),e=o.default.createElement(s.Dots,b)}var y=(0,i.extractObject)(p,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=t.changeSlide,t.props.arrows&&(n=o.default.createElement(u.PrevArrow,y),r=o.default.createElement(u.NextArrow,y));var v=null;t.props.vertical&&(v={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var O=h(h({},v),w),_=t.props.touchMove,C={className:"slick-list",style:O,onClick:t.clickHandler,onMouseDown:_?t.swipeStart:null,onMouseMove:t.state.dragging&&_?t.swipeMove:null,onMouseUp:_?t.swipeEnd:null,onMouseLeave:t.state.dragging&&_?t.swipeEnd:null,onTouchStart:_?t.swipeStart:null,onTouchMove:t.state.dragging&&_?t.swipeMove:null,onTouchEnd:_?t.touchEnd:null,onTouchCancel:t.state.dragging&&_?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},E={className:a,dir:"ltr",style:t.props.style};return t.props.unslick&&(C={className:"slick-list"},E={className:a}),o.default.createElement("div",E,t.props.unslick?"":n,o.default.createElement("div",m({ref:t.listRefHandler},C),o.default.createElement(c.Track,m({ref:t.trackRefHandler},f),t.props.children)),t.props.unslick?"":r,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=h(h({},r.default),{},{currentSlide:t.props.initialSlide,slideCount:o.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=h(h({},t.state),n),t}return t=R,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var a=r[n];if(!e.hasOwnProperty(a)){t=!0;break}if("object"!==d(e[a])&&"function"!=typeof e[a]&&e[a]!==this.props[a]){t=!0;break}}return t||o.default.Children.count(this.props.children)!==o.default.Children.count(e.children)}}])&&y(t.prototype,n),R}(o.default.Component);t.InnerSlider=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,i="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,s=i||c||Function("return this")(),u=Object.prototype.toString,p=Math.max,f=Math.min,d=function(){return s.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=r.test(e);return i||a.test(e)?l(e.slice(2),i?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var o,r,a,l,i,c,s=0,u=!1,g=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=o,a=r;return o=r=void 0,s=t,l=e.apply(a,n)}function v(e){return s=e,i=setTimeout(O,t),u?y(e):l}function w(e){var n=e-c;return void 0===c||n>=t||n<0||g&&e-s>=a}function O(){var e=d();if(w(e))return _(e);i=setTimeout(O,function(e){var n=t-(e-c);return g?f(n,a-(e-s)):n}(e))}function _(e){return i=void 0,h&&o?y(e):(o=r=void 0,l)}function C(){var e=d(),n=w(e);if(o=arguments,r=this,c=e,n){if(void 0===i)return v(c);if(g)return i=setTimeout(O,t),y(c)}return void 0===i&&(i=setTimeout(O,t)),l}return t=b(t)||0,m(n)&&(u=!!n.leading,a=(g="maxWait"in n)?p(b(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),C.cancel=function(){void 0!==i&&clearTimeout(i),s=0,o=c=r=i=void 0},C.flush=function(){return void 0===i?l:_(d())},C}}).call(this,n(27))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var o=l(n(4)),r=l(n(5)),a=n(11);function l(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){var t,n,o,r,a;return o=(a=e.rtl?e.slideCount-1-e.index:e.index)<0||a>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(a-e.currentSlide)%e.slideCount==0,a>e.currentSlide-r-1&&a<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=a&&a<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":a===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},v=function(e,t){return e.key||t},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(w,e);var t,n,l,i,b=(l=w,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(l);if(i){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function w(){var e;s(this,w);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return h(d(e=b.call.apply(b,[this].concat(n))),"node",null),h(d(e),"handleRef",(function(t){e.node=t})),e}return t=w,(n=[{key:"render",value:function(){var e=function(e){var t,n=[],l=[],i=[],c=o.default.Children.count(e.children),s=(0,a.lazyStartIndex)(e),u=(0,a.lazyEndIndex)(e);return o.default.Children.forEach(e.children,(function(p,f){var d,m={message:"children",index:f,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(f)>=0?p:o.default.createElement("div",null);var b=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(g(g({},e),{},{index:f})),h=d.props.className||"",w=y(g(g({},e),{},{index:f}));if(n.push(o.default.cloneElement(d,{key:"original"+v(d,f),"data-index":f,className:(0,r.default)(w,h),tabIndex:"-1","aria-hidden":!w["slick-active"],style:g(g({outline:"none"},d.props.style||{}),b),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}})),e.infinite&&!1===e.fade){var O=c-f;O<=(0,a.getPreClones)(e)&&c!==e.slidesToShow&&((t=-O)>=s&&(d=p),w=y(g(g({},e),{},{index:t})),l.push(o.default.cloneElement(d,{key:"precloned"+v(d,t),"data-index":t,tabIndex:"-1",className:(0,r.default)(w,h),"aria-hidden":!w["slick-active"],style:g(g({},d.props.style||{}),b),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}}))),c!==e.slidesToShow&&((t=c+f)<u&&(d=p),w=y(g(g({},e),{},{index:t})),i.push(o.default.cloneElement(d,{key:"postcloned"+v(d,t),"data-index":t,tabIndex:"-1",className:(0,r.default)(w,h),"aria-hidden":!w["slick-active"],style:g(g({},d.props.style||{}),b),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}})))}})),e.rtl?l.concat(n,i).reverse():l.concat(n,i)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return o.default.createElement("div",c({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&u(t.prototype,n),w}(o.default.PureComponent);t.Track=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var o=l(n(4)),r=l(n(5)),a=n(11);function l(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(g,e);var t,n,l,i,b=(l=g,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(l);if(i){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function g(){return u(this,g),b.apply(this,arguments)}return t=g,(n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,l=t.onMouseOver,i=t.onMouseLeave,u=t.infinite,p=t.slidesToScroll,f=t.slidesToShow,d=t.slideCount,m=t.currentSlide,b=(e={slideCount:d,slidesToScroll:p,slidesToShow:f,infinite:u}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,g={onMouseEnter:n,onMouseOver:l,onMouseLeave:i},h=[],y=0;y<b;y++){var v=(y+1)*p-1,w=u?v:(0,a.clamp)(v,0,d-1),O=w-(p-1),_=u?O:(0,a.clamp)(O,0,d-1),C=(0,r.default)({"slick-active":u?m>=_&&m<=w:m===_}),E={message:"dots",index:y,slidesToScroll:p,currentSlide:m},R=this.clickHandler.bind(this,E);h=h.concat(o.default.createElement("li",{key:y,className:C},o.default.cloneElement(this.props.customPaging(y),{onClick:R})))}return o.default.cloneElement(this.props.appendDots(h),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},g))}}])&&p(t.prototype,n),g}(o.default.PureComponent);t.Dots=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var o=l(n(4)),r=l(n(5)),a=n(11);function l(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");var n,o;e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(n=e,o=t,(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(n,o))}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){b(n,e);var t=g(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,r.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,u(u({},n),a)):o.default.createElement("button",c({key:"0",type:"button"},n)," ","Previous")}}]),n}(o.default.PureComponent);t.PrevArrow=v;var w=function(e){b(n,e);var t=g(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,r.default)(e),style:{display:"block"},onClick:t},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,u(u({},n),l)):o.default.createElement("button",c({key:"1",type:"button"},n)," ","Next")}}]),n}(o.default.PureComponent);t.NextArrow=w},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},l=["top","right","bottom","left","width","height","size","weight"],i="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function l(){n&&(n=!1,e()),o&&c()}function i(){a(l)}function c(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(i,20);r=e}return c}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),i?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},p=g(0,0,0,0);function f(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?m(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var o=u(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],a=e["padding-"+r];t[r]=f(a)}return t}(o),a=r.left+r.right,l=r.top+r.bottom,i=f(o.width),c=f(o.height);if("border-box"===o.boxSizing&&(Math.round(i+a)!==t&&(i-=d(o,"left","right")+a),Math.round(c+l)!==n&&(c-=d(o,"top","bottom")+l)),!function(e){return e===u(e).document.documentElement}(e)){var s=Math.round(i+a)-t,m=Math.round(c+l)-n;1!==Math.abs(s)&&(i-=s),1!==Math.abs(m)&&(c-=m)}return g(r.left,r.top,i,c)}(e):p}function g(e,t,n,o){return{x:e,y:t,width:n,height:o}}var h=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,o,r,a,l,i,c,u=(o=(n=t).x,r=n.y,a=n.width,l=n.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(i.prototype),s(c,{x:o,y:r,width:a,height:l,top:r,right:o+a,bottom:l+r,left:o}),c);s(this,{target:e,contentRect:u})},v=function(){function e(e,t,o){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=o}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new h(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new v(t,n,this);w.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var _=void 0!==r.ResizeObserver?r.ResizeObserver:O;t.default=_}.call(this,n(27))},function(e,t,n){var o=n(41),r=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,a){var l=e[r];(function(e){return/[height|width]$/.test(e)})(r=o(r))&&"number"==typeof l&&(l+="px"),t+=!0===l?r:!1===l?"not "+r:"("+r+": "+l+")",a<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=r(n),o<e.length-1&&(t+=", ")})),t):r(e)}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,r=(o=n(4))&&o.__esModule?o:{default:o},a={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=a},function(e,t,n){var o=n(44);e.exports=new o},function(e,t,n){var o=n(45),r=n(28),a=r.each,l=r.isFunction,i=r.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(e,t,n){var r=this.queries,c=n&&this.browserIsIncapable;return r[e]||(r[e]=new o(e,c)),l(t)&&(t={match:t}),i(t)||(t=[t]),a(t,(function(t){l(t)&&(t={match:t}),r[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=c},function(e,t,n){var o=n(46),r=n(28).each;function a(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}a.prototype={constuctor:a,addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;r(t,(function(n,o){if(n.equals(e))return n.destroy(),!t.splice(o,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";r(this.handlers,(function(t){t[e]()}))}},e.exports=a},function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t){var n,o,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var c,s=[],u=!1,p=-1;function f(){u&&c&&(u=!1,c.length?s=c.concat(s):p=-1,s.length&&d())}function d(){if(!u){var e=i(f);u=!0;for(var t=s.length;t;){for(c=s,s=[];++p<t;)c&&c[p].run();p=-1,t=s.length}c=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function b(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||i(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=b,r.addListener=b,r.once=b,r.off=b,r.removeListener=b,r.removeAllListeners=b,r.emit=b,r.prependListener=b,r.prependOnceListener=b,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,i=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,b=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,y=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,O=o?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case l:case c:case i:case m:return e;default:switch(e=e&&e.$$typeof){case u:case d:case h:case g:case s:return e;default:return t}}case a:return t}}}function C(e){return _(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=l,t.Lazy=h,t.Memo=g,t.Portal=a,t.Profiler=c,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||_(e)===p},t.isConcurrentMode=C,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===l},t.isLazy=function(e){return _(e)===h},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===a},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===i},t.isSuspense=function(e){return _(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===f||e===c||e===i||e===m||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=_},function(e,t,n){"use strict";n.r(t),n.d(t,"registerWoolentorBlocks",(function(){return Dr}));var o={};n.r(o),n.d(o,"name",(function(){return ue})),n.d(o,"category",(function(){return pe})),n.d(o,"metadata",(function(){return se})),n.d(o,"settings",(function(){return de}));var r={};n.r(r),n.d(r,"name",(function(){return Me})),n.d(r,"category",(function(){return Ie})),n.d(r,"metadata",(function(){return ze})),n.d(r,"settings",(function(){return Ne}));var a={};n.r(a),n.d(a,"name",(function(){return Ct})),n.d(a,"category",(function(){return Et})),n.d(a,"metadata",(function(){return Ot})),n.d(a,"settings",(function(){return jt}));var l={};n.r(l),n.d(l,"name",(function(){return sn})),n.d(l,"category",(function(){return un})),n.d(l,"metadata",(function(){return ln})),n.d(l,"settings",(function(){return fn}));var i={};n.r(i),n.d(i,"name",(function(){return Dn})),n.d(i,"category",(function(){return Mn})),n.d(i,"metadata",(function(){return xn})),n.d(i,"settings",(function(){return Ln}));var c={};n.r(c),n.d(c,"name",(function(){return ro})),n.d(c,"category",(function(){return ao})),n.d(c,"metadata",(function(){return no})),n.d(c,"settings",(function(){return io}));var s={};n.r(s),n.d(s,"name",(function(){return Fo})),n.d(s,"category",(function(){return Ao})),n.d(s,"metadata",(function(){return ko})),n.d(s,"settings",(function(){return Bo}));var u={};n.r(u),n.d(u,"name",(function(){return or})),n.d(u,"category",(function(){return rr})),n.d(u,"metadata",(function(){return tr})),n.d(u,"settings",(function(){return lr}));var p={};n.r(p),n.d(p,"name",(function(){return Pr})),n.d(p,"category",(function(){return Fr})),n.d(p,"metadata",(function(){return Sr})),n.d(p,"settings",(function(){return Tr}));var f=n(12),d=n(0),m=n(1);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var g,h=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 40 40"},React.createElement("image",{id:"woolentor-logo",width:"40",height:"40",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADHFJREFUeNrsXU2IHMcV7m7NSnEU8IAvvgQmEHTV+JCDNwaN4oB1UNAIx7nO7sWQ5CBtcvAlYS0CAZ9GOoSActjZUyDESGZ9kA7OjEDWHrW6GoHHOAcfEphAHMjuaif12tWT3pn++arrVf/Wg2Z3pZme7npffe97r17XuE7N7Ot3e23xoysP+v2S/K+OPFCbyJ9TcXwhjgP6/fzdyUGdxsutgcPJ0T3p6K6ik7PaRALiEf0uQDGzAMh3hvfFcU06vl2CyyIwfCSO+1VjCLeCTu+X/HIpZNwXx24VwOCW3PE0wwfi2KgowxIA7khmmFkA4I4nh9+QMb0ONmv9+J3R2Xd+ccd13akFQLLjt3MScrnat37zJ8f77vfp15E4bpUFCK51vHkjxxMAloyAsCWAUGhoaJUgxm9LNV9ba73+VtQ/E+j78/mcwsL7jWIAqeqHFRZ3SvbS7//suK+8mpY5bAogTHJnpwKcT2nc501x/pkL3TTnk3VOvnw+FmMzlJOjfgCgGxPHjvj1nlOO4k0+AFh/C3rd8f5D+nFTHE9laKwPAGS59mlTZv0pAFx8A3rdi4PHCzYQB7HB+7UAgFT4T+uq8BOd333Dcb/9ndTXnXx24Mz/+dXyP2+LsRubDgmeYecT5e84DbUz3R9i9P/kYdx/9WRI6FYKADLej5tI+Yv0Ssz81utXMPp/9jhRIMqQ0K8EACRljeue23PG/vl//p32MhrTezKclhcAIbHXdRpuMP3vP1Q57Q43CDxm54+bKPai6J8EYJrRzA+p/0JA4DE7v+1Yc87wxP5cQOAxOL8tlb51vrSY2n9E/P9U52NYQOAxOH9sY36I/l95NVj2TaZ/kfdnoH92EOgywD3r/GXxp1z507WhTp3A05j9w6anelG29ubbJtR/WoqYuWLoZXQ+0c5N6+6lwRTUD6z8+fR/8uVzzo8OQrF5AEi6GVp3Zxd/jLM/bF3JyuYAYBU/T/w/fvLA1CXcVC0ZqzLAthV9Mc7HGj986o9Y+eO0HRU9AAPgcG/Us3E/AQDrhdL/sh7YYQXAfD5vr10d7CAIbywALuae/iVZHw0FKAPQzO+gKU4TYz/S+OGv/Jmlf+VQ4AGzvyNjP1zjtuo/DgCf5nlZ7cBvugywiCfoKleTTGVMNBZ/dLKCTmYAiNlPwq+XBe029kfQf3rjh5FQoMMA25HxzorB0HgYafzgtF5Sm3lLZfYv3rR+xTnaG1n6FxOBs/GDzkdCO1hNPBGC8Whvl0M40kSeqDLAtq7oaYL654r9dC56gLT15k8d70LXP6iplB4ra+mL71gW8FRnvwryrfrH1D8JybOD92JTybMb73GE3RsqDHCDK/bVmf65Gj8ovU6rIzDUYPpRGcEKAOSL+unovwIVP2o7+9fBvj8g9iNMgoAtCwtEMcAGWq4sqjBEg0GLL0yDYpT+09Q/3UOO97GBZAEDillIjCdaOv7kr7k6/tzPf3cqHhLFHo4+cF58dpDrdXA1fqBAYmogoSe2Ns7fnYwiGUAqxc7x/gOoaOGLwQvd/Jz/q+HKwNPf5349zO06VJx29MmHbJkEci7QriWFgMEidu1jTQvoMqiuJankhVLOSZNwNX6iTMLcQ9APLxItA6Cvirg8xCB9RlqcpIGkHDoP53M5rZV/A+mKn70Q/QebK/8/foFxFa2HZ0q3BLjWfvZL6LVrVwfGBRVn6bfAHoJrUQwwWLmJJxjyWgb7BGhWqzAMhQqjAECdlhJCNTeP0LVeFAB6qyjGxKCpVMavjV8dKItFU6FAqfEjZdwYNo/QzQZ6CwCE9thfvRlwDdsEC5wFqT8qFJhYseQs/cJMYq6HoBdmgF4sAkExSDfEKQYprcu63uDX1jOCJ9FpTIs/6FgZ7iG4FAZAN0nNIkUIFVRDs1jTgeQszgUr9N6QsInSv+EWslMMcCnxptCUkCkMIGkfR+3AhPqH6B/sITjef2ASAH7ml8oAAaWhYlA39qqkfdC5FEVknBjlavwoQewPW9eTArCdemPgBekuW6qmfcj5dMvEnI0fKEvm1EHc8RzwUa8XYDqis0KokvapiCNdRoHVf8oYwT0E2fYOymIXCQAd6ObAgoTK/ng6ad/hH38LVypp0Nd+spEZlHDjR8r1wExiOPaH6wEwAMjg9YEMC0QqaR/NDhrs/44+wGfxj97OpE/WYMp+zHauHDuIewSAl9FXo8j0wCdlT83+DbyEe/iXPyxm3dHHu7AgPLehXiaGH/kGGj8K2jwi+bochce9VVITtGVqIfxAwJDDw6GI2tPRWnnQaQsPTgGNHznF/lMAUDJUDKI3rJKq+QCM6EA6VAgFJAjRLKPijR+GAICKQTB39uv2oEOOBPVHqX+6JrQ1TaXOAG/4mJb7l2fziEgAdFTfhIqUtBmk0sRBg5MUfvzQAKaGFAbSagPwci3gtBJtHsEEAHCPm7TuGRVRdiSFX1J4ONzFQ0FaC1lNGj/4Q8Ai5wUvNk4MnpGPP6mkfcjr0NpAGvvUpPHDDAA4wkCWtA8xqg2goSCuhQztc6xA44c5AKDbnUS1juukfQg7obUBH4gRgpBz5a9lfudwbQBMTbNAWARxpH2p1yXegxZT/NpAKBQo7fX/jGnlr7jNIzQBAIrBMKVypH1Q2FAQhOFrUlmurUjjh5kQENAt3DpOIGBM+6D3K9QGgm5idB2jSo0fxgCgIl5oIYQz7ePWD+SsYHMGiP6BR77LHPvDANB6qlLlOUI07aNzcjzs6dcGFICELkdDjR/l3DouEgD/0j0J5/o1OY32xeEyv4bAXGBJ65HM+VtDihOBC6plXMA4/tuH7AUREoRcKhtZ+SvgW0Oy2oQFAFxr2HQeE/sN+Kzy8S4boyB6hzONLrUGQGkRYpK9XWP5sF8bYNAVVW38iLFH3vm7k5n4ZaY9M57pFTPIOabToUPNzAJ5SKbgbw1RtWmQBmpPDZXW8bjZb9rIeTqhAFr5K/5bQ1TsIADAoyLDAFfahwFtlFlkVrnxI8oE+x+wMQBKkabTPigUKLSQqTitzI0fURlAIAIXfxTBAibSvtSZnEFvIPdV5saPKAG4AIAUgiwsoKIDTKV9UChQXGhKXfkr57eGwAzAxgIqixsm0z4o9IBZAWfjR9GlX2kzMel9f4c3ivzIYfpWMGodT2uEyCPtQ8Qnrf6lrVFwNn7Qw6Gt9WJ3W58fH0+cuz9wTgGAEPH1uz0KBdpfCkkxlhycNLB5C784oxYy2qY9jr6RZWmVjTGK3N52abI7yyGA7D7bwNLDmxEZgb9Cl/PWrmk6JG6tgK4faSyp4M7pCz+74X+V3zV3j/OTSBwFqA/W0UsiglZoPLxt+/wfX0Ehil7/0nCvUs53Xfd6JAAkCD53Mjwr0FSj4g/tVVwh2xQAGMWFALJd69ba2izs/DgAjOw44Xby9+dVutwV364AQGQDU04xWHfL2rpekN1JBUDcC63FGy0zF13TAMXfdEXExr1aiMGxk7CDqLVoQUgpYUly/dMz/UL3sgDARAUA5PyxdWstbCJC++VIYMS9Q9aKJ3bsamG3Ypkh6xutVWr2TzIBwLJALWwrURsAJ9i0Y1hZu01tX1oAkHUBGwqqZzPEb+jDobcdhgdIrOVL/bLTK9Fc9Gw2LaxH2peVAQJBeNuObSWoH9ZtqvsDUEw5sGNcatuUuo0fADKmbDoMj5JZM2Ij4SOlhTzlHUJkWrFlx7p0lskvbtZPE6Jwx4n4PnprhcX911SoXxsAEgR2xbAc9lpawYctBCzZdSsKSyH6MvvA1f10+a1j1Ejatr4oxPkjnRNobxMnM4PLNjPI3W7pOp+FAUJMQI8BjS0T5JbusSzSeVxXJOOQZQLztsXlfFYGCDFBx/nm6aKu9VX5Yr5xAISE4diCgDXP3+J2vjEAhIBgi0U8zr+sk+rlogFidAHFKls2zm7k9O+Zcr5xBljKEEgXdKxPYaN2LuOTx83rbqQuoJDQt75NpfzrSZ28lQRACAh9CQRbL1i1+1Lp55ZKu0XcpWSDoRWIC5tKx0/y/mC3yLuWfYbDBqeLNNPvyHhfSAHNLcMoCCAQE2w3TCRSTn8ryxp+7QDQMCCUwvGlBECNgTCTAq80ji81AJY0wqDCYnEqY/yoqBhfaQAsZQ2UPt6ogGCcSZrfNVnBaxQAlsBAYYGY4ZpTnqISOXpSFadXGgAxYYKOi/JnO0eHP3O+eQxrWtXxqzwAYhgiYImXQyGjl8HJMxnHv5B/T6s2w9PsfwIMAOhUCXLerUHIAAAAAElFTkSuQmCC"}));Object(f.setCategories)([{slug:"woolentor-blocks",title:Object(d.__)("WooLentor","woolentor"),icon:React.createElement(m.Icon,{icon:h})}].concat(function(e){if(Array.isArray(e))return b(e)}(g=Object(f.getCategories)().filter((function(e){return"woolentor-blocks"!==e.slug})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(g)||function(e,t){if(e){if("string"==typeof e)return b(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,void 0):void 0}}(g)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));var y=n(2),v=n(9),w=n(10);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return E(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(o);if(r){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function l(){return R(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e,t=this.props,n=t.setAttributes,o=t.selectedTaxonomies,r=t.attributesKey,a=t.title,l=t.type,i=t.taxnomiesList,c=function(){var e=[];return i&&i.forEach((function(t,n){e.push({label:t.name,value:t.slug})})),e};if("multiple"==l){var s=c();s.length>0&&(e=s.map((function(e,t){return React.createElement(m.CheckboxControl,{key:e.value,label:e.label,onChange:function(t){return function(e,t){var a=-1!==o.indexOf(t)?C(o):[].concat(C(o),[t]);if(0==e){var l=a.indexOf(t);a.splice(l,1)}n(_({},r,a))}(t,e.value)},checked:-1!==o.indexOf(e.value)})})))}return React.createElement(y.Fragment,null,React.createElement("div",{className:"woolentor-component-taxonomy-area"},"single"!=l&&React.createElement("h2",{className:"woolentor-component-area-title"},a),React.createElement("div",{className:"woolentor-component-taxonomy-fileds"},"single"==l?0==c().length?React.createElement(m.Spinner,null):React.createElement(m.SelectControl,{label:a,value:o,options:c(),onChange:function(e){return n(_({},r,e))}}):e||React.createElement(m.Spinner,null))))}}])&&j(t.prototype,n),l}(y.Component),A=Object(v.compose)([Object(w.withSelect)((function(e,t){return{taxnomiesList:(0,e("core").getEntityRecords)("taxonomy",t.taxonomy?t.taxonomy:"product_cat",{orderby:"name",order:"asc",hide_empty:!0})}}))])(F),T=n(3);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W,G,q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=H(o);if(r){var n=H(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return N(this,e)});function l(){return M(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,o=t.style,r=t.columns,a=t.rows,l=t.productTab,i=t.slider,c=t.productFilterType,s=t.perPage,u=t.customOrder,p=t.orderBy,f=t.order,b=t.selectedCategories,g=t.slitems,h=t.slarrows,v=t.sldots,w=t.slpauseOnHover,O=t.slautolay,_=t.slautoplaySpeed,C=t.slanimationSpeed,E=t.slscrollItem,R=t.sltabletDisplayColumns,j=t.sltabletScrollColumns,S=t.sltabletWidth,k=t.slMobileDisplayColumns,P=t.slMobileScrollColumns,F=t.slMobileWidth,B={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Layout","woolentor"),initialOpen:!0},React.createElement(m.SelectControl,{label:Object(d.__)("Product Style","woolentor"),value:o,options:[{label:Object(d.__)("Style One","woolentor"),value:"1"},{label:Object(d.__)("Style Two","woolentor"),value:"2"},{label:Object(d.__)("Style Three","woolentor"),value:"3"}],onChange:function(e){return n({style:e})}}),React.createElement(m.RangeControl,{label:Object(d.__)("Columns","woolentor"),value:r,onChange:function(e){return n({columns:e})},min:1,step:1,max:6}),React.createElement(m.RangeControl,{label:Object(d.__)("Rows","woolentor"),value:a,onChange:function(e){return n({rows:e})},min:1,step:1,max:20}),React.createElement(m.ToggleControl,{label:Object(d.__)("Tab","woolentor"),checked:l,help:l?Object(d.__)("Enable product tab.","woolentor"):Object(d.__)("Toggle to show the tab layout.","woolentor"),onChange:function(){return n({productTab:!l})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider","woolentor"),checked:i,help:i?Object(d.__)("Enable product slider ( When product tab is off, Then working slider ).","woolentor"):Object(d.__)("Toggle to show the slider layout.","woolentor"),onChange:function(){return n({slider:!i})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Query Options","woolentor"),initialOpen:!1},React.createElement(m.SelectControl,{label:Object(d.__)("Filter By","woolentor"),value:c,options:[{label:Object(d.__)("Recent Products","woolentor"),value:"recent"},{label:Object(d.__)("Featured Products","woolentor"),value:"featured"},{label:Object(d.__)("Best Selling Products","woolentor"),value:"best_selling"},{label:Object(d.__)("Sale Products","woolentor"),value:"sale"},{label:Object(d.__)("Top Rated Products","woolentor"),value:"top_rated"},{label:Object(d.__)("Mixed order Products","woolentor"),value:"mixed_order"}],onChange:function(e){return n({productFilterType:e})}}),React.createElement(m.RangeControl,{label:Object(d.__)("Number Of Products","woolentor"),value:s,onChange:function(e){return n({perPage:e})},min:1,step:1,max:1e3}),React.createElement(m.ToggleControl,{label:Object(d.__)("Custom Order","woolentor"),checked:u,help:u?Object(d.__)("Enable custom order.","woolentor"):Object(d.__)("Toggle to show the custom order.","woolentor"),onChange:function(){return n({customOrder:!u})}}),React.createElement(A,{title:Object(d.__)("Product Categories","woolentor"),attributesKey:"selectedCategories",setAttributes:n,selectedTaxonomies:b,type:"multiple"}),u?React.createElement(React.Fragment,null,React.createElement(m.SelectControl,{label:Object(d.__)("Order","woolentor"),value:f,options:[{label:Object(d.__)("Descending","woolentor"),value:"DESC"},{label:Object(d.__)("Ascending","woolentor"),value:"ASC"}],onChange:function(e){return n({order:e})}}),React.createElement(m.SelectControl,{label:Object(d.__)("Orderby","woolentor"),value:p,options:[{label:Object(d.__)("None","woolentor"),value:"none"},{label:Object(d.__)("ID","woolentor"),value:"ID"},{label:Object(d.__)("Date","woolentor"),value:"date"},{label:Object(d.__)("Name","woolentor"),value:"name"},{label:Object(d.__)("Title","woolentor"),value:"title"},{label:Object(d.__)("Comment count","woolentor"),value:"comment_count"},{label:Object(d.__)("Random","woolentor"),value:"rand"}],onChange:function(e){return n({orderBy:e})}})):""),1==i&&React.createElement(m.PanelBody,{title:Object(d.__)("Slider Options","woolentor"),initialOpen:!1},React.createElement(m.RangeControl,{label:Object(d.__)("Slider Items","woolentor"),value:g,onChange:function(e){return n({slitems:e})},min:1,step:1,max:10}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider Arrow","woolentor"),checked:h,help:h?Object(d.__)("Enable slider arrow.","woolentor"):Object(d.__)("Toggle to show the slider arrow.","woolentor"),onChange:function(){return n({slarrows:!h})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider dots","woolentor"),checked:v,help:v?Object(d.__)("Enable slider pagination.","woolentor"):Object(d.__)("Toggle to show the slider pagination.","woolentor"),onChange:function(){return n({sldots:!v})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Pause on Hover?","woolentor"),checked:w,help:v?Object(d.__)("Enable slider pagination.","woolentor"):Object(d.__)("Toggle to show the slider pagination.","woolentor"),onChange:function(){return n({slpauseOnHover:!w})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider auto play","woolentor"),checked:O,help:v?Object(d.__)("Enable slider auto play.","woolentor"):Object(d.__)("Toggle to show the slider auto play.","woolentor"),onChange:function(){return n({slautolay:!O})}}),React.createElement(m.RangeControl,{label:Object(d.__)("Autoplay speed","woolentor"),value:_,onChange:function(e){return n({slautoplaySpeed:e})},min:1,step:1,max:1e5}),React.createElement(m.RangeControl,{label:Object(d.__)("Autoplay animation speed","woolentor"),value:C,onChange:function(e){return n({slanimationSpeed:e})},min:1,step:1,max:1e5}),React.createElement(m.RangeControl,{label:Object(d.__)("Slider item to scroll","woolentor"),value:E,onChange:function(e){return n({slscrollItem:e})},min:1,step:1,max:1e5}),React.createElement("h3",null,Object(d.__)("Tablet Screen options","woolentor")),React.createElement(m.RangeControl,{label:Object(d.__)("Slider Items","woolentor"),value:R,onChange:function(e){return n({sltabletDisplayColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Slider item to scroll","woolentor"),value:j,onChange:function(e){return n({sltabletScrollColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Tablet Screen Resolution","woolentor"),value:S,onChange:function(e){return n({sltabletWidth:e})},min:1,step:1,max:1500}),React.createElement("h3",null,Object(d.__)("Mobile Phone Screen options","woolentor")),React.createElement(m.RangeControl,{label:Object(d.__)("Slider Items","woolentor"),value:k,onChange:function(e){return n({slMobileDisplayColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Slider item to scroll","woolentor"),value:P,onChange:function(e){return n({slMobileScrollColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Mobile Screen Resolution","woolentor"),value:F,onChange:function(e){return n({slMobileWidth:e})},min:1,step:1,max:1500})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement(y.Fragment,{key:"title"},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.titleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleColor,onChange:function(e){return n({titleColor:e})}}),React.createElement("h3",null,Object(d.__)("Hover Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.titleHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleHoverColor,onChange:function(e){return n({titleHoverColor:e})}}),React.createElement("h3",null,Object(d.__)("Alignment","woolentor")),React.createElement(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},React.createElement(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===t.titleAlign,isSecondary:"left"!==t.titleAlign,onClick:function(){return n({titleAlign:"left"})},title:Object(d.__)("Title align left","woolentor")}),React.createElement(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===t.titleAlign,isSecondary:"center"!==t.titleAlign,onClick:function(){return n({titleAlign:"center"})},title:Object(d.__)("Title align center","woolentor")}),React.createElement(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===t.titleAlign,isSecondary:"right"!==t.titleAlign,onClick:function(){return n({titleAlign:"right"})},title:Object(d.__)("Title align right","woolentor")}),React.createElement(m.Button,{icon:"editor-justify",value:"justify",isPrimary:"justify"===t.titleAlign,isSecondary:"justify"!==t.titleAlign,onClick:function(){return n({titleAlign:"justify"})},title:Object(d.__)("Title align justify","woolentor")}),React.createElement("span",{onClick:function(){return n({titleAlign:""})},class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"}))),React.createElement(y.Fragment,{key:"price"},React.createElement("h2",{className:"woolentor-blocks-section-title",style:{marginTop:15}},Object(d.__)("Price","woolentor")),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.priceColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.priceColor,onChange:function(e){return n({priceColor:e})}})),React.createElement(y.Fragment,{key:"action-button"},React.createElement("h2",{className:"woolentor-blocks-section-title",style:{marginTop:15}},Object(d.__)("Action Button","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.actionBtnColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.actionBtnColor,onChange:function(e){return n({actionBtnColor:e})}}),React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.actionBtnBgColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.actionBtnBgColor,onChange:function(e){return n({actionBtnBgColor:e})}}),React.createElement("h3",null,Object(d.__)("Hover Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.actionBtnHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.actionBtnHoverColor,onChange:function(e){return n({actionBtnHoverColor:e})}}),React.createElement("h3",null,Object(d.__)("Hover Background Color","woolentor"),React.createElement("span",{style:z(z({},B),{},{backgroundColor:t.actionBtnHoverBgColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.actionBtnHoverBgColor,onChange:function(e){return n({actionBtnHoverBgColor:e})}}),React.createElement("h3",null,Object(d.__)("Content Alignment","woolentor")),React.createElement(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},React.createElement(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===t.contentAlign,isSecondary:"left"!==t.contentAlign,onClick:function(){return n({contentAlign:"left"})},title:Object(d.__)("Title align left","woolentor")}),React.createElement(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===t.contentAlign,isSecondary:"center"!==t.contentAlign,onClick:function(){return n({contentAlign:"center"})},title:Object(d.__)("Title align center","woolentor")}),React.createElement(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===t.contentAlign,isSecondary:"right"!==t.contentAlign,onClick:function(){return n({contentAlign:"right"})},title:Object(d.__)("Title align right","woolentor")}),React.createElement(m.Button,{icon:"editor-justify",value:"justify",isPrimary:"justify"===t.contentAlign,isSecondary:"justify"!==t.contentAlign,onClick:function(){return n({contentAlign:"justify"})},title:Object(d.__)("Title align justify","woolentor")}),React.createElement("span",{onClick:function(){return n({contentAlign:""})},class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})))))}}])&&I(t.prototype,n),l}(y.Component),U=n(5),V=n.n(U),Q=n(7),K=n.n(Q),Y=n(8),X=n(22),J=n.n(X),Z=n(6);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(){return(ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function te(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=le(o);if(r){var n=le(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ae(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={productData:[],categoryData:[]},t}return t=l,(n=[{key:"componentDidMount",value:function(){this.fetchProductsData(),this.fetchCategoryData()}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes,n=t.perPage,o=t.productFilterType,r=t.customOrder,a=this.props.attributes.orderBy,l=this.props.attributes.order,i=this.props.attributes.selectedCategories;e.attributes.perPage==n&&e.attributes.productFilterType==o&&e.attributes.customOrder==r&&e.attributes.orderBy==a&&e.attributes.order==l&&e.attributes.selectedCategories==i||this.fetchProductsData(),e.attributes.selectedCategories!=i&&this.fetchCategoryData()}},{key:"fetchProductsData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n={perPage:this.props.attributes.perPage,filterBy:this.props.attributes.productFilterType,wpnonce:woolentorData.security};1==this.props.attributes.customOrder&&(n.orderBy=this.props.attributes.orderBy,n.order=this.props.attributes.order),this.props.attributes.selectedCategories.length>0&&(n.categories=this.props.attributes.selectedCategories),t.length>0&&(n.categories=t);var o=Object(Y.addQueryArgs)("/woolentor/v1/products",n);K()({path:o}).then((function(t){return e.setState({productData:t})}))}},{key:"fetchCategoryData",value:function(){var e=this,t={queryLimit:1e3,queryOrder:"ASC",queryType:"regular",querySlug:this.props.attributes.selectedCategories,wpnonce:woolentorData.security},n=Object(Y.addQueryArgs)("/woolentor/v1/category",t);K()({path:n}).then((function(t){return e.setState({categoryData:t})}))}},{key:"render",value:function(){var e=this,t=this.props,n=(t.name,t.attributes),o=t.className,r=t.isSelected,a=t.setAttributes,l=t.clientId,i=n.blockUniqId;function c(e){var t=e.className,n=e.onClick;return React.createElement(m.Button,{className:t,onClick:n},React.createElement("i",{className:"fa fa-angle-right"}))}function s(e){var t=e.className,n=e.onClick;return React.createElement(m.Button,{className:t,onClick:n},React.createElement("i",{className:"fa fa-angle-left"}))}""==i&&a({blockUniqId:l});var u,p={arrows:n.slarrows,prevArrow:React.createElement(s,null),nextArrow:React.createElement(c,null),dots:n.sldots,infinite:!0,autoplay:n.slautolay,autoplaySpeed:n.slautoplaySpeed,speed:n.slanimationSpeed,fade:!1,pauseOnHover:n.slpauseOnHover,slidesToShow:n.slitems,slidesToScroll:n.slscrollItem,rtl:n.slIsrtl,responsive:[{breakpoint:n.sltabletWidth,settings:{slidesToShow:n.sltabletDisplayColumns,slidesToScroll:n.sltabletScrollColumns}},{breakpoint:n.slMobileWidth,settings:{slidesToShow:n.slMobileDisplayColumns,slidesToScroll:n.slMobileScrollColumns}}]},f=V()("woolentor-product-tab-area",ne({},"woolentor-columns-".concat(n.columns),n.columns)),b=V()("woolentor-row"),g=V()("product-item",ne({},"product_style_three",3==n.style)),h=V()(ne({},"woolentor-col-".concat(n.columns),n.columns)),v=Z.a.div(W||(W=te(["\n\t\t\t& .product-item .product-inner .content .title{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .product-inner .content .title a{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .product-inner .content .title a:hover{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .product-inner .content .woolentor-product-price,.product-item .product-inner .content .woolentor-product-price .amount{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .product-inner .content{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .actions a,.product-item .woocommerce.compare-button a.button,.product-item .actions a::before{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .actions{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .actions a:hover,.product-item .woocommerce.compare-button a.button:hover,.product-item .actions a:hover::before{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-item .actions:hover{\n\t\t\t\t",";\n\t\t\t}\n\t\t"])),n.titleAlign&&"text-align:"+n.titleAlign,n.titleColor&&"color:"+n.titleColor,n.titleHoverColor&&"color:"+n.titleHoverColor,n.priceColor&&"color:"+n.priceColor,n.contentAlign&&"text-align:"+n.contentAlign,n.actionBtnColor&&"color:"+n.actionBtnColor,n.actionBtnBgColor&&"background-color:"+n.actionBtnBgColor,n.actionBtnHoverColor&&"color:"+n.actionBtnHoverColor,n.actionBtnHoverBgColor&&"background-color:"+n.actionBtnHoverBgColor),w=Z.a.div(G||(G=te(["\n\t\t\n\t\t"]))),O=this.state,_=O.productData,C=O.categoryData,E=0,R=!1;_.length>0&&(u=_.map((function(e,t){return E++,n.rows>1&&E%n.rows!=0&&(R=!0),React.createElement(React.Fragment,null,React.createElement("div",{className:h},React.createElement(w,{className:1==R?g+" mb-30":g},React.createElement("div",{className:"product-inner"},React.createElement("div",{className:"image-wrap"},React.createElement(m.Disabled,null,React.createElement("a",{href:e.permalink,className:"image"},Object(y.createElement)("div",{className:"woolentor-product-image",dangerouslySetInnerHTML:{__html:e.image.full.html}}),!0===e.on_sale&&React.createElement("span",{class:"onsale"},Object(d.__)("Sale!","woolentor")))),1==n.style&&!0===e.wishlist.status?Object(y.createElement)("span",{className:"woolentor-product-wishlist",dangerouslySetInnerHTML:{__html:e.wishlist.html}}):"",3==n.style?React.createElement("div",{className:"product_information_area"},React.createElement("div",{className:"actions style_two"},!0===e.wishlist.status?Object(y.createElement)("span",{className:"woolentor-product-wishlist",dangerouslySetInnerHTML:{__html:e.wishlist.html}}):"",Object(y.createElement)("div",{className:"woolentor-product-btn"},Object(y.createElement)("a",null,Object(d.__)("Add to cart","woolentor")))),React.createElement("div",{className:"content"},React.createElement("h4",{className:"title"},React.createElement("a",{href:e.permalink},e.title)),Object(y.createElement)("div",{className:"woolentor-product-price",dangerouslySetInnerHTML:{__html:e.price_html}}))):React.createElement("div",{class:2==n.style?"actions style_two":"actions"},2==n.style?React.createElement(React.Fragment,null,!0===e.wishlist.status?Object(y.createElement)("span",{className:"woolentor-product-wishlist",dangerouslySetInnerHTML:{__html:e.wishlist.html}}):""):React.createElement(React.Fragment,null,!0===e.compare.status?Object(y.createElement)("span",{className:"woolentor-product-compare",dangerouslySetInnerHTML:{__html:e.compare.html}}):""))),React.createElement("div",{className:"content"},React.createElement("h4",{className:"title"},React.createElement(m.Disabled,null,React.createElement("a",{href:e.permalink},e.title))),Object(y.createElement)("div",{className:"woolentor-product-price",dangerouslySetInnerHTML:{__html:e.price_html}}))))))})));var j,S=function(t){e.fetchProductsData(t.target.getAttribute("dataslug"))},k=0;return n.selectedCategories.length>0&&(j=C.map((function(e,t){return k++,React.createElement(React.Fragment,null,React.createElement("li",null,React.createElement("a",{class:1==k?"htactive":"",href:"#woolentortab"+i+k,onClick:S,dataslug:e.slug},e.name)))}))),React.createElement(y.Fragment,null,r&&React.createElement(q,this.props),React.createElement("div",{className:o},React.createElement(v,{className:f},n.productTab&&React.createElement("div",{class:"product-tab-list ht-text-center"},React.createElement("ul",{class:"ht-tab-menus"},j)),0==_.length?React.createElement(m.Spinner,null):React.createElement("div",{className:b},1==n.slider?React.createElement(J.a,ee({},p,{className:"product-slider"}),u):u))))}}])&&oe(t.prototype,n),l}(y.Component),ce=React.createElement(m.SVG,{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 359 359",space:"preserve"},React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M96,0H13C7.5,0,3,4.5,3,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10V10C106,4.5,101.5,0,96,0z M87,84H23V20h64V84z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M221,0h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10V10C231,4.5,226.5,0,221,0z M212,84h-64V20 h64V84z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M96,126H13c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C106,130.5,101.5,126,96,126z M87,209H23 v-63h64V209z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M221,126h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C231,130.5,226.5,126,221,126z M212,209h-64v-63h64V209z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M346,0h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10V10C356,4.5,351.5,0,346,0z M337,84h-64V20 h64V84z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M346,126h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C356,130.5,351.5,126,346,126z M337,209h-64v-63h64V209z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M96,256H13c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C106,260.5,101.5,256,96,256z M87,340H23 v-64h64V340z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M221,256h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C231,260.5,226.5,256,221,256z M212,340h-64v-64h64V340z"}))),React.createElement("g",null,React.createElement("g",null,React.createElement("path",{d:"M346,256h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C356,260.5,351.5,256,346,256z M337,340h-64v-64h64V340z"})))),se=n(13),ue=se.name,pe=se.category,fe=se.attributes,de={title:Object(d.__)("WL : Product Tab","woolentor"),description:Object(d.__)("Display product.","woolentor"),icon:React.createElement(m.Icon,{icon:ce}),keywords:["woolentor",Object(d.__)("product tab","woolentor"),Object(d.__)("woocommerce product","woolentor")],example:{attributes:{style:"1",columns:4,rows:1,perPage:4}},attributes:fe,edit:ie,save:function(){return null}};function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&we(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_e(o);if(r){var n=_e(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Oe(this,e)});function l(){return ye(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,o=t.style,r=t.contentAlignment,a=t.buttonUrl,l={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Settings","woolentor"),initialOpen:!0},React.createElement(m.SelectControl,{label:Object(d.__)("Banner Style","woolentor"),value:o,options:[{label:Object(d.__)("Style One","woolentor"),value:"1"},{label:Object(d.__)("Style Two","woolentor"),value:"2"}],onChange:function(e){return n({style:e})}}),React.createElement(m.SelectControl,{label:Object(d.__)("Content Alignment","woolentor"),value:r,options:[{label:Object(d.__)("Left","woolentor"),value:"left"},{label:Object(d.__)("Right","woolentor"),value:"right"},{label:Object(d.__)("Bottom","woolentor"),value:"bottom"}],onChange:function(e){return n({contentAlignment:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Link","woolentor"),value:a,onChange:function(e){return n({buttonUrl:e})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:ge(ge({},l),{},{backgroundColor:t.titleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleColor,onChange:function(e){return n({titleColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.titleSize,fallbackFontSize:t.titleSize,onChange:function(e){return n({titleSize:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Sub Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:ge(ge({},l),{},{backgroundColor:t.subTitleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.subTitleColor,onChange:function(e){return n({subTitleColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.subTitleSize,fallbackFontSize:t.subTitleSize,onChange:function(e){return n({subTitleSize:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Button","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:ge(ge({},l),{},{backgroundColor:t.buttonColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.buttonColor,onChange:function(e){return n({buttonColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.buttonSize,fallbackFontSize:t.buttonSize,onChange:function(e){return n({buttonSize:e})}}))))}}])&&ve(t.prototype,n),l}(y.Component),Ee=n(25),Re=Object(y.createElement)(Ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)(Ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?Te(e):t}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Be(o);if(r){var n=Be(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ae(this,e)});function l(){var e;return ke(this,l),(e=a.apply(this,arguments)).addImage=e.addImage.bind(Te(e)),e.onSelectImage=e.onSelectImage.bind(Te(e)),e}return t=l,(n=[{key:"onSelectImage",value:function(e){e&&e.url&&this.props.setAttributes({imgUrl:e.url})}},{key:"addImage",value:function(e){var t=this;mediaUpload({allowedTypes:["image","png"],filesList:e,onFileChange:function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);_n=!0);}catch(e){l=!0,r=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0];return t.onSelectImage(n)}})}},{key:"render",value:function(){var e=this.props,t=(e.name,e.attributes),n=e.className,o=e.isSelected,r=e.setAttributes,a=t.title,l=t.subTitle,i=t.imgUrl,c=(t.imgId,t.style),s=t.contentAlignment,u=t.buttonText,p=t.buttonUrl,f=function(e){return r({imgUrl:e.url,imgId:e.id})};return m.DropZone,this.addImage,Object(d.__)("Drop to upload as banner image","woolentor"),React.createElement(y.Fragment,null,o&&React.createElement(Ce,this.props),React.createElement("div",{className:n},React.createElement("div",{className:"woolentor-banner woolentor-banner-layout-"+c+" woolentor-content-align-"+s},React.createElement("div",{className:"woolentor-content"},React.createElement(T.RichText,{tagName:"h3",className:"banner_subtitle",value:l,onChange:function(e){return r({subTitle:e})},placeholder:Object(d.__)("Banner sub title...","woolentor"),keepPlaceholderOnFocus:!0,style:{color:"".concat(t.subTitleColor),fontSize:"".concat(t.subTitleSize)}}),React.createElement(T.RichText,{tagName:"h2",className:"banner_title",value:a,onChange:function(e){return r({title:e})},placeholder:Object(d.__)("Banner title...","woolentor"),keepPlaceholderOnFocus:!0,style:{color:"".concat(t.titleColor),fontSize:"".concat(t.titleSize)}}),React.createElement(T.RichText,{tagName:"a",className:"banner_button",value:u,onChange:function(e){return r({buttonText:e})},placeholder:Object(d.__)("Shop Now ....","woolentor"),href:p,keepPlaceholderOnFocus:!0,style:{color:"".concat(t.buttonColor),fontSize:"".concat(t.buttonSize)}})),i?React.createElement("div",{class:"woolentor-banner-img"},React.createElement("img",{className:"wp-block-woolentor-banner-img",src:i,alt:"WooLentor Banner image"}),React.createElement("div",null,React.createElement(T.MediaUploadCheck,null,React.createElement(T.MediaUpload,{onSelect:f,allowedTypes:["image","png"],value:i,render:function(e){var t=e.open;return React.createElement(m.Button,{onClick:t},i?Object(d.__)("Replace Image","woolentor"):React.createElement(T.BlockIcon,{icon:Re}))}})))):React.createElement("div",{class:"woolentor-banner-img"},React.createElement(T.MediaUploadCheck,null,React.createElement(T.MediaUpload,{onSelect:f,allowedTypes:["image","png"],value:i,render:function(e){var t=e.open;return React.createElement(m.Button,{onClick:t},i?Object(d.__)("Replace Image","woolentor"):React.createElement(T.BlockIcon,{icon:Re}))}}))))))}}])&&Pe(t.prototype,n),l}(y.Component),ze=n(14),De=React.createElement("svg",{id:"_x31_","enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",null,React.createElement("path",{d:"m17.453 24c-.168 0-.34-.021-.51-.066l-15.463-4.141c-1.06-.292-1.692-1.39-1.414-2.45l1.951-7.272c.072-.267.346-.422.612-.354.267.071.425.346.354.612l-1.95 7.27c-.139.53.179 1.082.71 1.229l15.457 4.139c.531.14 1.079-.176 1.217-.704l.781-2.894c.072-.267.346-.426.613-.353.267.072.424.347.353.613l-.78 2.89c-.235.89-1.045 1.481-1.931 1.481z"})),React.createElement("g",null,React.createElement("path",{d:"m22 18h-16c-1.103 0-2-.897-2-2v-12c0-1.103.897-2 2-2h16c1.103 0 2 .897 2 2v12c0 1.103-.897 2-2 2zm-16-15c-.551 0-1 .449-1 1v12c0 .551.449 1 1 1h16c.551 0 1-.449 1-1v-12c0-.551-.449-1-1-1z"})),React.createElement("g",null,React.createElement("path",{d:"m9 9c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm0-3c-.551 0-1 .449-1 1s.449 1 1 1 1-.449 1-1-.449-1-1-1z"})),React.createElement("g",null,React.createElement("path",{d:"m4.57 16.93c-.128 0-.256-.049-.354-.146-.195-.195-.195-.512 0-.707l4.723-4.723c.566-.566 1.555-.566 2.121 0l1.406 1.406 3.892-4.67c.283-.339.699-.536 1.142-.54h.011c.438 0 .853.19 1.139.523l5.23 6.102c.18.209.156.525-.054.705-.209.18-.524.157-.705-.054l-5.23-6.102c-.097-.112-.231-.174-.38-.174-.104-.009-.287.063-.384.18l-4.243 5.091c-.09.108-.221.173-.362.179-.142.01-.277-.046-.376-.146l-1.793-1.793c-.189-.188-.518-.188-.707 0l-4.723 4.723c-.097.097-.225.146-.353.146z"}))),Me=ze.name,Ie=ze.category,Le=ze.attributes,Ne={title:Object(d.__)("WL : Promo Banner","woolentor"),description:Object(d.__)("Display promo banner.","woolentor"),icon:React.createElement(m.Icon,{icon:De}),keywords:["woolentor",Object(d.__)("product banner","woolentor"),Object(d.__)("woocommerce promo","woolentor"),Object(d.__)("promo banner","woolentor")],example:{attributes:{title:Object(d.__)("Banner Title","woolentor"),subTitle:Object(d.__)("Banner Sub Title","woolentor"),buttonText:Object(d.__)("Shop Now","woolentor")}},supports:{align:["wide","full"]},attributes:Le,edit:xe,save:function(e){var t=e.className,n=e.attributes,o=n.title,r=n.subTitle,a=n.imgUrl,l=n.style,i=n.contentAlignment,c=n.buttonText,s=n.buttonUrl;return React.createElement("div",{className:t},React.createElement("div",{className:"woolentor-banner woolentor-banner-layout-"+l+" woolentor-content-align-"+i},React.createElement("div",{className:"woolentor-content"},React.createElement(T.RichText.Content,{tagName:"h3",className:"banner_subtitle",value:r,style:{color:"".concat(n.subTitleColor),fontSize:"".concat(n.subTitleSize)}}),React.createElement(T.RichText.Content,{tagName:"h2",className:"banner_title",value:o,style:{color:"".concat(n.titleColor),fontSize:"".concat(n.titleSize)}}),React.createElement(T.RichText.Content,{tagName:"a",className:"banner_button",href:s,value:c,style:{color:"".concat(n.buttonColor),fontSize:"".concat(n.buttonSize)}})),a&&React.createElement("div",{className:"woolentor-banner-img"},s?React.createElement("a",{href:s},React.createElement("img",{className:"wp-block-woolentor-banner-img",src:a,alt:o})):React.createElement("img",{className:"wp-block-woolentor-banner-img",src:a,alt:o}))))}};function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ye(o);if(r){var n=Ye(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ke(this,e)});function l(){return Ue(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.setAttributes,n=e.title,o=e.ImageData,r=e.attributesKey,a=e.uploadImage,l=["image","png"],i=React.createElement("p",null,Object(d.__)("To edit the banner image, you need permission to upload media.","woolentor")),c=function(e){var n=Ge({},o);n.id=e.id,n.url=e.url,t(qe({},r,n))};return React.createElement(y.Fragment,null,React.createElement("div",{className:"wp-block-image-selector-woolentor-image-uploader"},React.createElement("h3",null,n),React.createElement(T.MediaUploadCheck,{fallback:i},React.createElement(T.MediaUpload,{title:n,onSelect:c,allowedTypes:l,value:o.id,render:function(e){var t=e.open;return React.createElement(m.Button,{className:o.id?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t},!o.id&&Object(d.__)("Set ","woolentor")+n,!!o.id&&!a&&React.createElement(m.Spinner,null),!!o.id&&a&&React.createElement("img",{src:a.source_url,alt:n}))}})),!!o.id&&a&&React.createElement(T.MediaUploadCheck,null,React.createElement(T.MediaUpload,{title:n,onSelect:c,allowedTypes:l,value:o.id,render:function(e){var t=e.open;return React.createElement(m.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(d.__)("Replace image","woolentor"))}})),!!o.id&&React.createElement(T.MediaUploadCheck,null,React.createElement(m.Button,{onClick:function(){var e=Ge({},o);e.id=void 0,e.url=void 0,t(qe({},r,e))},isLink:!0,isDestructive:!0},Object(d.__)("Remove image","woolentor")))))}}])&&Ve(t.prototype,n),l}(y.Component),Je=Object(v.compose)(Object(w.withSelect)((function(e,t){var n=e("core").getMedia,o=t.ImageData;return{uploadImage:o.id?n(o.id):null}})))(Xe);function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tt=function(e){var t=e.setAttributes,n=e.lavel,o=e.dimensions,r=e.attributesKey,a=function(e,n){var a=$e({},o);"yes"===a.link?(a.top=e,a.right=e,a.bottom=e,a.left=e,a.link="yes"):(a.top=""!==a.top?a.top:"0",a.right=""!==a.right?a.right:"0",a.bottom=""!==a.bottom?a.bottom:"0",a.left=""!==a.left?a.left:"0",a.link="no",a[n]=e),t(et({},r,a))},l=function(e){var n=$e({},o);n.unit=e.target.value,t(et({},r,n))};return React.createElement(y.Fragment,null,React.createElement("div",{className:"wp-block-selector-woolentor-dimensions-control"},React.createElement(m.PanelRow,{className:"woolentor-panel-row-height-auto",style:{minHeight:"auto"}},React.createElement("h3",null,n),React.createElement(m.ButtonGroup,{className:"woolentor-dimensions-btn-group"},React.createElement(m.Button,{value:"px",text:Object(d.__)("PX","woolentor"),isPrimary:"px"===o.unit,isSecondary:"px"!==o.unit,onClick:l,title:Object(d.__)("PX","woolentor"),focus:!1}),React.createElement(m.Button,{value:"%",text:Object(d.__)("%","woolentor"),isPrimary:"%"===o.unit,isSecondary:"%"!==o.unit,onClick:l,title:Object(d.__)("%","woolentor"),focus:!1}),React.createElement(m.Button,{value:"em",text:Object(d.__)("EM","woolentor"),isPrimary:"em"===o.unit,isSecondary:"em"!==o.unit,onClick:l,title:Object(d.__)("EM","woolentor"),focus:!1}))),React.createElement(m.PanelRow,null,React.createElement(m.__experimentalNumberControl,{label:Object(d.__)("Top","woolentor"),isShiftStepEnabled:!0,onChange:function(e){return a(e,"top")},shiftStep:10,value:o.top,labelPosition:"bottom"}),React.createElement(m.__experimentalNumberControl,{label:Object(d.__)("Right","woolentor"),isShiftStepEnabled:!0,onChange:function(e){return a(e,"right")},shiftStep:10,value:o.right,labelPosition:"bottom"}),React.createElement(m.__experimentalNumberControl,{label:Object(d.__)("Bottom","woolentor"),isShiftStepEnabled:!0,onChange:function(e){return a(e,"bottom")},shiftStep:10,value:o.bottom,labelPosition:"bottom"}),React.createElement(m.__experimentalNumberControl,{label:Object(d.__)("Left","woolentor"),isShiftStepEnabled:!0,onChange:function(e){return a(e,"left")},shiftStep:10,value:o.left,labelPosition:"bottom"}),React.createElement(m.Button,{icon:"admin-links",value:"yes",isPrimary:"yes"===o.link,isSecondary:"yes"!==o.link,onClick:function(){var e=$e({},o);"yes"===e.link?e.link="no":e.link="yes",t(et({},r,e))},title:Object(d.__)("Link values together","woolentor"),showTooltip:!0}))))};function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ct(e,t){return(ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function st(e,t){return!t||"object"!==nt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ut(e){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt,ft=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ct(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ut(o);if(r){var n=ut(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return st(this,e)});function l(){return lt(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,o=t.title,r=t.contentPosition,a=t.bannerImage,l=t.badgeImage,i=t.badgeHorizontalPos,c=t.badgeVerticlePos,s={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Content Settings","woolentor"),initialOpen:!0},React.createElement(m.SelectControl,{label:Object(d.__)("Content Position","woolentor"),value:r,options:[{label:Object(d.__)("Top","woolentor"),value:"top"},{label:Object(d.__)("Center","woolentor"),value:"center"},{label:Object(d.__)("Bottom","woolentor"),value:"bottom"},{label:Object(d.__)("Left","woolentor"),value:"left"},{label:Object(d.__)("Right","woolentor"),value:"right"}],onChange:function(e){return n({contentPosition:e})}}),React.createElement(Je,{title:Object(d.__)("Banner image","woolentor"),ImageData:a,attributesKey:"bannerImage",setAttributes:n}),React.createElement(Je,{title:Object(d.__)("Badge image","woolentor"),ImageData:l,attributesKey:"badgeImage",setAttributes:n}),l.id&&React.createElement(React.Fragment,null,React.createElement(m.RangeControl,{label:Object(d.__)("Badge Horizontal Position","woolentor"),value:i,onChange:function(e){return n({badgeHorizontalPos:e})},min:-1e3,step:1,max:1e3}),React.createElement(m.RangeControl,{label:Object(d.__)("Badge Vertical Position","woolentor"),value:c,onChange:function(e){return n({badgeVerticlePos:e})},min:-1e3,step:1,max:1e3})),React.createElement(m.TextControl,{label:Object(d.__)("Title","woolentor"),value:o,placeholder:Object(d.__)("Banner Title","woolentor"),onChange:function(e){return n({title:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Sub Title","woolentor"),placeholder:Object(d.__)("Banner Sub Title","woolentor"),value:t.subTitle,onChange:function(e){return n({subTitle:e})}}),React.createElement(m.TextareaControl,{label:Object(d.__)("Description","woolentor"),help:Object(d.__)("Enter Banner description","woolentor"),value:t.bannerDescription,onChange:function(e){return n({bannerDescription:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Offer Amount","woolentor"),placeholder:Object(d.__)("50%","woolentor"),value:t.offerAmount,onChange:function(e){return n({offerAmount:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Offer Tag Line","woolentor"),value:t.offerTagLine,placeholder:Object(d.__)("off","woolentor"),onChange:function(e){return n({offerTagLine:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Banner Link","woolentor"),value:t.bannerLink,placeholder:Object(d.__)("https://your-link.com","woolentor"),onChange:function(e){return n({bannerLink:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Button Text","woolentor"),value:t.buttonText,placeholder:Object(d.__)("Shop Now","woolentor"),onChange:function(e){return n({buttonText:e})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Content Area","woolentor")),React.createElement("h3",null,Object(d.__)("Alignment","woolentor")),React.createElement(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},React.createElement(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===t.contentAlignment,isSecondary:"left"!==t.contentAlignment,onClick:function(){return n({contentAlignment:"left"})},title:Object(d.__)("Align left","woolentor")}),React.createElement(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===t.contentAlignment,isSecondary:"center"!==t.contentAlignment,onClick:function(){return n({contentAlignment:"center"})},title:Object(d.__)("Align center","woolentor")}),React.createElement(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===t.contentAlignment,isSecondary:"right"!==t.contentAlignment,onClick:function(){return n({contentAlignment:"right"})},title:Object(d.__)("Align right","woolentor")}),React.createElement(m.Button,{icon:"editor-justify",value:"justify",isPrimary:"justify"===t.contentAlignment,isSecondary:"justify"!==t.contentAlignment,onClick:function(){return n({contentAlignment:"justify"})},title:Object(d.__)("Align justify","woolentor")}),React.createElement("span",{onClick:function(){return n({contentAlignment:""})},class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.contentAreaMargin,attributesKey:"contentAreaMargin",setAttributes:n}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:t.contentAreaPadding,attributesKey:"contentAreaPadding",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.titleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleColor,onChange:function(e){return n({titleColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.titleSize,fallbackFontSize:t.titleSize,onChange:function(e){return n({titleSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.titleMargin,attributesKey:"titleMargin",setAttributes:n}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:t.titlePadding,attributesKey:"titlePadding",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Sub Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.titleSubColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleSubColor,onChange:function(e){return n({titleSubColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.titleSubSize,fallbackFontSize:t.titleSubSize,onChange:function(e){return n({titleSubSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.subTitleMargin,attributesKey:"subTitleMargin",setAttributes:n}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:t.subTitlePadding,attributesKey:"subTitlePadding",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Description","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.desColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.desColor,onChange:function(e){return n({desColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.desSize,fallbackFontSize:t.desSize,onChange:function(e){return n({desSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.desMargin,attributesKey:"desMargin",setAttributes:n}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:t.desPadding,attributesKey:"desPadding",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Offer Amount","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.offerColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.offerColor,onChange:function(e){return n({offerColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.offerSize,fallbackFontSize:t.offerSize,onChange:function(e){return n({offerSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.offerMargin,attributesKey:"offerMargin",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Offer Tag Line","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.offerTagColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.offerTagColor,onChange:function(e){return n({offerTagColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.offerTagSize,fallbackFontSize:t.offerTagSize,onChange:function(e){return n({offerTagSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.offerTagMargin,attributesKey:"offerTagMargin",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Button","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.buttonColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.buttonColor,onChange:function(e){return n({buttonColor:e})}}),React.createElement("h3",null,Object(d.__)("Hover Color","woolentor"),React.createElement("span",{style:rt(rt({},s),{},{backgroundColor:t.buttonHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.buttonHoverColor,onChange:function(e){return n({buttonHoverColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.buttonSize,fallbackFontSize:t.buttonSize,onChange:function(e){return n({buttonSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.buttonMargin,attributesKey:"buttonMargin",setAttributes:n}))))}}])&&it(t.prototype,n),l}(y.Component);function dt(e){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gt(e,t){return(gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ht(e,t){return!t||"object"!==dt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512",className:"woolentor-banner-default"},React.createElement("g",null,React.createElement("path",{d:"M446.575,0H65.425C29.349,0,0,29.35,0,65.426v381.149C0,482.65,29.349,512,65.425,512h381.15 C482.651,512,512,482.65,512,446.574V65.426C512,29.35,482.651,0,446.575,0z M481.842,446.575 c0,19.447-15.821,35.267-35.267,35.267H65.425c-19.447,0-35.268-15.821-35.268-35.267v-55.007l99.255-84.451 c3.622-3.082,8.906-3.111,12.562-0.075l62.174,51.628c5.995,4.977,14.795,4.569,20.304-0.946L372.181,209.77 c2.67-2.675,5.783-2.935,7.408-2.852c1.62,0.083,4.695,0.661,7.078,3.596l95.176,117.19V446.575z M481.842,279.865l-71.766-88.366 c-7.117-8.764-17.666-14.122-28.942-14.701c-11.268-0.57-22.317,3.672-30.294,11.662L212.832,326.681l-51.59-42.839 c-14.959-12.422-36.563-12.293-51.373,0.308l-79.712,67.822V65.426c0-19.447,15.821-35.268,35.268-35.268h381.15 c19.447,0,35.267,15.821,35.267,35.268V279.865z"})),React.createElement("g",null,React.createElement("path",{d:"M161.174,62.995c-40.095,0-72.713,32.62-72.713,72.713c0,40.094,32.619,72.713,72.713,72.713s72.713-32.619,72.713-72.713 S201.269,62.995,161.174,62.995z M161.174,178.264c-23.466,0-42.556-19.091-42.556-42.556c0-23.466,19.09-42.556,42.556-42.556 c23.466,0,42.556,19.091,42.556,42.556S184.64,178.264,161.174,178.264z"}))),wt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gt(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yt(o);if(r){var n=yt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ht(this,e)});function l(){return mt(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.name,e.attributes),n=e.className,o=e.isSelected,r=e.setAttributes,a=e.clientId;""==t.blockUniqId&&r({blockUniqId:a});var l,i,c,s,u,p=function(e){var n=t[e]?t[e]:{},o="";if(""!=n.top||""!=n.right||""!=n.bottom||""!=n.left){var r=n.unit?n.unit:"px";o=n.top?o+n.top+r+" ":"0"+r+" ",o=n.right?o+n.right+r+" ":"0"+r+" ",o=n.bottom?o+n.bottom+r+" ":"0"+r+" ",o=n.left?o+n.left+r+" ":"0"+r+" "}return o},f=V()("wlspcial-banner",(l={},i="woolentor-banner-content-pos-"+t.contentPosition,c=t.contentPosition,i in l?Object.defineProperty(l,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[i]=c,l)),d=Z.a.div(pt||(s=["\n\t\t\t.banner-content{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .wlbanner-badgeimage{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content h2{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content h6{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content p{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content h5{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content h5 span{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content a{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .banner-content a:hover{\n\t\t\t\t",";\n\t\t\t}\n\t\t"],u||(u=s.slice(0)),pt=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(u)}}))),t.contentAlignment&&"text-align:"+t.contentAlignment,t.contentAreaPadding&&"padding:"+p("contentAreaPadding"),t.contentAreaMargin&&"margin:"+p("contentAreaMargin"),t.badgeHorizontalPos&&"left:"+t.badgeHorizontalPos+"%",t.badgeVerticlePos&&"top:"+t.badgeVerticlePos+"%",t.titleColor&&"color:"+t.titleColor,t.titleSize&&"font-size:"+t.titleSize,t.titleMargin&&"margin:"+p("titleMargin"),t.titlePadding&&"padding:"+p("titlePadding"),t.titleSubColor&&"color:"+t.titleSubColor,t.titleSubSize&&"font-size:"+t.titleSubSize,t.subTitleMargin&&"margin:"+p("subTitleMargin"),t.subTitlePadding&&"padding:"+p("subTitlePadding"),t.desColor&&"color:"+t.desColor,t.desSize&&"font-size:"+t.desSize,t.desMargin&&"margin:"+p("desMargin"),t.desPadding&&"padding:"+p("desPadding"),t.offerColor&&"color:"+t.offerColor,t.offerSize&&"font-size:"+t.offerSize,t.offerMargin&&"margin:"+p("offerMargin"),t.offerTagColor&&"color:"+t.offerTagColor,t.offerTagSize&&"font-size:"+t.offerTagSize,t.offerTagMargin&&"margin:"+p("offerTagMargin"),t.buttonColor&&"color:"+t.buttonColor,t.buttonSize&&"font-size:"+t.buttonSize,t.buttonMargin&&"margin:"+p("buttonMargin"),t.buttonHoverColor&&"color:"+t.buttonHoverColor);return React.createElement(y.Fragment,null,o&&React.createElement(ft,this.props),React.createElement("div",{className:n},React.createElement(d,{className:f},React.createElement("div",{className:"banner-thumb"},React.createElement("a",{href:t.bannerLink?t.bannerLink:"#"},t.bannerImage.url?React.createElement("img",{src:t.bannerImage.url,alt:"Banner"}):React.createElement("div",{className:"woolentor-default-banner"},vt))),t.badgeImage.url&&React.createElement("div",{className:"wlbanner-badgeimage"},React.createElement("img",{src:t.badgeImage.url,alt:"Banner Badge"})),React.createElement("div",{className:"banner-content"},t.title&&React.createElement("h2",null,t.title),t.subTitle&&React.createElement("h6",null,t.subTitle),t.offerAmount&&React.createElement("h5",null,t.offerAmount,React.createElement("span",null,t.offerTagLine)),t.bannerDescription&&React.createElement("p",null,t.bannerDescription),t.buttonText&&React.createElement("a",{href:t.bannerLink?t.bannerLink:"#"},t.buttonText)))))}}])&&bt(t.prototype,n),l}(y.Component),Ot=n(15),_t=React.createElement("svg",{id:"_x31_","enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",null,React.createElement("path",{d:"m17.453 24c-.168 0-.34-.021-.51-.066l-15.463-4.141c-1.06-.292-1.692-1.39-1.414-2.45l1.951-7.272c.072-.267.346-.422.612-.354.267.071.425.346.354.612l-1.95 7.27c-.139.53.179 1.082.71 1.229l15.457 4.139c.531.14 1.079-.176 1.217-.704l.781-2.894c.072-.267.346-.426.613-.353.267.072.424.347.353.613l-.78 2.89c-.235.89-1.045 1.481-1.931 1.481z"})),React.createElement("g",null,React.createElement("path",{d:"m22 18h-16c-1.103 0-2-.897-2-2v-12c0-1.103.897-2 2-2h16c1.103 0 2 .897 2 2v12c0 1.103-.897 2-2 2zm-16-15c-.551 0-1 .449-1 1v12c0 .551.449 1 1 1h16c.551 0 1-.449 1-1v-12c0-.551-.449-1-1-1z"})),React.createElement("g",null,React.createElement("path",{d:"m9 9c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm0-3c-.551 0-1 .449-1 1s.449 1 1 1 1-.449 1-1-.449-1-1-1z"})),React.createElement("g",null,React.createElement("path",{d:"m4.57 16.93c-.128 0-.256-.049-.354-.146-.195-.195-.195-.512 0-.707l4.723-4.723c.566-.566 1.555-.566 2.121 0l1.406 1.406 3.892-4.67c.283-.339.699-.536 1.142-.54h.011c.438 0 .853.19 1.139.523l5.23 6.102c.18.209.156.525-.054.705-.209.18-.524.157-.705-.054l-5.23-6.102c-.097-.112-.231-.174-.38-.174-.104-.009-.287.063-.384.18l-4.243 5.091c-.09.108-.221.173-.362.179-.142.01-.277-.046-.376-.146l-1.793-1.793c-.189-.188-.518-.188-.707 0l-4.723 4.723c-.097.097-.225.146-.353.146z"}))),Ct=Ot.name,Et=Ot.category,Rt=Ot.attributes,jt={title:Object(d.__)("WL : Special Day Offer","woolentor"),description:Object(d.__)("Display spesial day offer banner.","woolentor"),icon:React.createElement(m.Icon,{icon:_t}),keywords:["woolentor",Object(d.__)("shop banner","woolentor"),Object(d.__)("banner","woolentor"),Object(d.__)("special day","woolentor"),Object(d.__)("offer","woolentor"),Object(d.__)("special offer","woolentor")],example:{attributes:{title:Object(d.__)("Banner Title","woolentor"),subTitle:Object(d.__)("Banner Sub Title","woolentor"),offerAmount:Object(d.__)("50%","woolentor"),bannerDescription:Object(d.__)("Banner Description","woolentor"),buttonText:Object(d.__)("Shop Now","woolentor"),offerTagLine:Object(d.__)("Off","woolentor")}},attributes:Rt,supports:{align:["wide","full"]},edit:wt,save:function(){return null}};function St(e){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xt(e,t){return!t||"object"!==St(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=zt(o);if(r){var n=zt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return xt(this,e)});function l(){return At(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.setAttributes,n=e.title,o=e.bgProperty,r=e.attributesKey,a=e.uploadImage,l=function(e,n){var a=Pt({},o);a[n]=e,t(Ft({},r,a))},i=["image","png"],c=React.createElement("p",null,Object(d.__)("To edit the banner image, you need permission to upload media.","woolentor")),s=function(e){var n=Pt({},o);n.imageId=e.id,n.imageUrl=e.url,t(Ft({},r,n))};return React.createElement(y.Fragment,null,React.createElement("div",{className:"wp-block-selector-woolentor-background-control"},n&&React.createElement("h3",null,n),React.createElement("div",{className:"wp-block-image-selector-woolentor-image-uploader"},React.createElement(T.MediaUploadCheck,{fallback:c},React.createElement(T.MediaUpload,{title:n,onSelect:s,allowedTypes:i,value:o.imageId,render:function(e){var t=e.open;return React.createElement(m.Button,{className:o.imageId?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t},!o.imageId&&Object(d.__)("Set ","woolentor")+n,!!o.imageId&&!a&&React.createElement(m.Spinner,null),!!o.imageId&&a&&React.createElement("img",{src:a.source_url,alt:n}))}})),!!o.imageId&&a&&React.createElement(T.MediaUploadCheck,null,React.createElement(T.MediaUpload,{title:n,onSelect:s,allowedTypes:i,value:o.imageId,render:function(e){var t=e.open;return React.createElement(m.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(d.__)("Replace image","woolentor"))}})),!!o.imageId&&React.createElement(T.MediaUploadCheck,null,React.createElement(m.Button,{onClick:function(){var e=Pt({},o);e.imageId=void 0,e.imageUrl=void 0,t(Ft({},r,e))},isLink:!0,isDestructive:!0},Object(d.__)("Remove image","woolentor")))),React.createElement(m.SelectControl,{label:Object(d.__)("Position","woolentor"),labelPosition:"side",value:o.position,options:[{label:Object(d.__)("Default","woolentor"),value:""},{label:Object(d.__)("Center Center","woolentor"),value:"center center"},{label:Object(d.__)("Center Left","woolentor"),value:"center left"},{label:Object(d.__)("Center Right","woolentor"),value:"center right"},{label:Object(d.__)("Top Center","woolentor"),value:"top center"},{label:Object(d.__)("Top Left","woolentor"),value:"top left"},{label:Object(d.__)("Top Right","woolentor"),value:"top right"},{label:Object(d.__)("Bottom Center","woolentor"),value:"bottom center"},{label:Object(d.__)("Bottom Left","woolentor"),value:"bottom left"},{label:Object(d.__)("Bottom Right","woolentor"),value:"bottom right"}],onChange:function(e){return l(e,"position")}}),React.createElement(m.SelectControl,{label:Object(d.__)("Attachment","woolentor"),labelPosition:"side",value:o.attachment,options:[{label:Object(d.__)("Default","woolentor"),value:""},{label:Object(d.__)("Scroll","woolentor"),value:"scroll"},{label:Object(d.__)("Fixed","woolentor"),value:"fixed"}],onChange:function(e){return l(e,"attachment")}}),React.createElement(m.SelectControl,{label:Object(d.__)("Repeat","woolentor"),labelPosition:"side",value:o.repeat,options:[{label:Object(d.__)("Default","woolentor"),value:""},{label:Object(d.__)("No-repeat","woolentor"),value:"no-repeat"},{label:Object(d.__)("Repeat","woolentor"),value:"repeat"},{label:Object(d.__)("Repeat-x","woolentor"),value:"repeat-x"},{label:Object(d.__)("Repeat-y","woolentor"),value:"repeat-y"}],onChange:function(e){return l(e,"repeat")}}),React.createElement(m.SelectControl,{label:Object(d.__)("Size","woolentor"),labelPosition:"side",value:o.size,options:[{label:Object(d.__)("Default","woolentor"),value:""},{label:Object(d.__)("Auto","woolentor"),value:"auto"},{label:Object(d.__)("Cover","woolentor"),value:"cover"},{label:Object(d.__)("Contain","woolentor"),value:"contain"}],onChange:function(e){return l(e,"size")}})))}}])&&Tt(t.prototype,n),l}(y.Component),Mt=Object(v.compose)(Object(w.withSelect)((function(e,t){var n=e("core").getMedia,o=t.bgProperty;return{uploadImage:o.imageId?n(o.imageId):null}})))(Dt);function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wt(e){return function(e){if(Array.isArray(e))return Gt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gt(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function qt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ut(e,t){return(Ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e,t){return!t||"object"!==It(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qt(e){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kt,Yt,Xt,Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ut(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Qt(o);if(r){var n=Qt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Vt(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={activeClass:!1},t}return t=l,(n=[{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,r=n.setAttributes,a=o.style,l=o.bgProperty,i={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},c=function(e,t,n){var a=Wt(o.markerList);a[n][t]=e,r({markerList:a})};return o.markerList.length&&(e=o.markerList.map((function(e,n){var a=t.state.activeClass===n?"woolentor_active_repeter":"";return React.createElement(y.Fragment,{key:n},React.createElement("div",{className:"woolentor_repeater-fields"},React.createElement("div",{className:"woolentor_repeater-tools",onClick:function(e){return function(e,n){n===t.state.activeClass?t.setState({activeClass:!1}):t.setState({activeClass:n})}(0,n)}},React.createElement("div",{className:"woolentor_repeater-item-title"},o.markerList[n].title),React.createElement("div",{className:"woolentor_repeater-item-remove"},React.createElement(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(d.__)("Delete Marker","woolentor"),onClick:function(){return function(e){var t=Wt(o.markerList);t.splice(e,1),r({markerList:t})}(n)}}))),React.createElement("div",{className:a+" woolentor_repeater-controls"},React.createElement(m.TextControl,{label:Object(d.__)("Marker Title","woolentor"),className:"woolentor__marker-title",placeholder:Object(d.__)("Marker Title","woolentor"),value:o.markerList[n].title,onChange:function(e){return c(e,"title",n)}}),React.createElement(m.TextareaControl,{label:Object(d.__)("Marker Content","woolentor"),value:o.markerList[n].content,onChange:function(e){return c(e,"content",n)}}),React.createElement(m.RangeControl,{label:Object(d.__)("Horizontal Postion","woolentor"),value:o.markerList[n].horizontal,onChange:function(e){return c(e,"horizontal",n)},min:-1e3,step:1,max:1e3}),React.createElement(m.RangeControl,{label:Object(d.__)("Vertical Postion","woolentor"),value:o.markerList[n].verticle,onChange:function(e){return c(e,"verticle",n)},min:-1e3,step:1,max:1e3}))))}))),React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Image","woolentor"),initialOpen:!0},React.createElement(Mt,{title:Object(d.__)("Background Image","woolentor"),attributesKey:"bgProperty",setAttributes:r,bgProperty:l})),React.createElement(m.PanelBody,{title:Object(d.__)("Marker","woolentor"),initialOpen:!1},React.createElement(m.SelectControl,{label:Object(d.__)("Style","woolentor"),value:a,options:[{label:Object(d.__)("Style One","woolentor"),value:"1"},{label:Object(d.__)("Style Two","woolentor"),value:"2"},{label:Object(d.__)("Style Three","woolentor"),value:"3"},{label:Object(d.__)("Style Four","woolentor"),value:"4"},{label:Object(d.__)("Style Five","woolentor"),value:"5"}],onChange:function(e){return r({style:e})}}),e,React.createElement(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:function(){var e=Wt(o.markerList);e.push({title:Object(d.__)("Marker Item #"+(o.markerList.length+1),"woolentor"),content:"",horizontal:"",verticle:""}),r({markerList:e}),t.setState({activeClass:o.markerList.length})}.bind(this)},Object(d.__)("Add Marker","woolentor"))),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Marker","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:Nt(Nt({},i),{},{backgroundColor:o.markerColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.markerColor,onChange:function(e){return r({markerColor:e})}}),React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:Nt(Nt({},i),{},{backgroundColor:o.markerBGColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.markerBGColor,onChange:function(e){return r({markerBGColor:e})}}),React.createElement("h3",null,Object(d.__)("Border Color","woolentor"),React.createElement("span",{style:Nt(Nt({},i),{},{backgroundColor:o.markerBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.markerBorderColor,onChange:function(e){return r({markerBorderColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:o.markerBorderRadius,attributesKey:"markerBorderRadius",setAttributes:r}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:o.markerPadding,attributesKey:"markerPadding",setAttributes:r}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Content Area","woolentor")),React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:Nt(Nt({},i),{},{backgroundColor:o.markerContentBGColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.markerContentBGColor,onChange:function(e){return r({markerContentBGColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:o.markerContentBorderRadius,attributesKey:"markerContentBorderRadius",setAttributes:r}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:o.markerContentPadding,attributesKey:"markerContentPadding",setAttributes:r}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Marker Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:Nt(Nt({},i),{},{backgroundColor:o.markerTitleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.markerTitleColor,onChange:function(e){return r({markerTitleColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:o.markerTitleSize,fallbackFontSize:o.markerTitleSize,onChange:function(e){return r({markerTitleSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:o.markerTitleMargin,attributesKey:"markerTitleMargin",setAttributes:r}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Marker Description","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:Nt(Nt({},i),{},{backgroundColor:o.markerDescriptionColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.markerDescriptionColor,onChange:function(e){return r({markerDescriptionColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:o.markerDescriptionSize,fallbackFontSize:o.markerDescriptionSize,onChange:function(e){return r({markerDescriptionSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:o.markerDescriptionMargin,attributesKey:"markerDescriptionMargin",setAttributes:r}))))}}])&&qt(t.prototype,n),l}(y.Component);function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function en(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nn(e,t){return(nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nn(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rn(o);if(r){var n=rn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return on(this,e)});function l(){return en(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.name,e.attributes),n=e.className,o=e.isSelected,r=e.setAttributes,a=e.clientId,l=t.blockUniqId,i=t.bgProperty;""==l&&r({blockUniqId:a});var c,s,u,p=function(e){var n=t[e]?t[e]:{},o="";if(""!=n.top||""!=n.right||""!=n.bottom||""!=n.left){var r=n.unit?n.unit:"px";o=n.top?o+n.top+r+" ":"0"+r+" ",o=n.right?o+n.right+r+" ":"0"+r+" ",o=n.bottom?o+n.bottom+r+" ":"0"+r+" ",o=n.left?o+n.left+r+" ":"0"+r+" "}return o},f=V()((c={},s="wlb-marker-style-".concat(t.style),u=t.style,s in c?Object.defineProperty(c,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[s]=u,c)),d=Z.a.div(Kt||(Kt=$t(["\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t\n\t\t\t& .wlb_image_pointer{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& .wlb_image_pointer::before{\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& .wlb_image_pointer .wlb_pointer_box{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t"])),i.imageUrl&&"background-image:url("+i.imageUrl+")",i.position&&"background-position:"+i.position,i.attachment&&"background-attachment:"+i.attachment,i.repeat&&"background-repeat:"+i.repeat,i.size&&"background-size:"+i.size,t.markerBGColor&&"background-color:"+t.markerBGColor,t.markerBorderColor&&"border-color:"+t.markerBorderColor,t.markerBorderRadius&&"border-radius:"+p("markerBorderRadius"),t.markerPadding&&"padding:"+p("markerPadding"),t.markerColor&&"color:"+t.markerColor,t.markerContentBGColor&&"background-color:"+t.markerContentBGColor,t.markerContentBorderRadius&&"border-radius:"+p("markerContentBorderRadius"),t.markerContentPadding&&"padding:"+p("markerContentPadding")),m=Z.a.h4(Yt||(Yt=$t(["\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t"])),t.markerTitleColor&&"color:"+t.markerTitleColor,t.markerTitleSize&&"font-size:"+t.markerTitleSize,t.markerTitleMargin&&"margin:"+p("markerTitleMargin")),b=Z.a.p(Xt||(Xt=$t(["\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t"])),t.markerDescriptionColor&&"color:"+t.markerDescriptionColor,t.markerDescriptionSize&&"font-size:"+t.markerDescriptionSize,t.markerDescriptionMargin&&"margin:"+p("markerDescriptionMargin")),g=t.markerList.map((function(e,t){return React.createElement("div",{key:t,className:"wlb_image_pointer",style:{left:"".concat(e.horizontal,"%"),top:"".concat(e.verticle,"%")}},React.createElement("div",{className:"wlb_pointer_box"},e.title&&React.createElement(m,null,e.title),e.content&&React.createElement(b,null,e.content)))}));return React.createElement(y.Fragment,null,o&&React.createElement(Jt,this.props),React.createElement("div",{className:n},React.createElement(d,{className:f},g)))}}])&&tn(t.prototype,n),l}(y.Component),ln=n(16),cn=React.createElement("svg",{id:"_x31_","enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 193.826 193.826",width:"512",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M191.495,55.511L137.449,1.465c-1.951-1.953-5.119-1.953-7.07,0l-0.229,0.229c-3.314,3.313-5.14,7.72-5.14,12.406 c0,3.019,0.767,5.916,2.192,8.485l-56.55,48.533c-4.328-3.868-9.852-5.985-15.703-5.985c-6.305,0-12.232,2.455-16.689,6.913 l-0.339,0.339c-1.953,1.952-1.953,5.118,0,7.07l32.378,32.378l-31.534,31.533c-0.631,0.649-15.557,16.03-25.37,28.27 c-9.345,11.653-11.193,13.788-11.289,13.898c-1.735,1.976-1.639,4.956,0.218,6.822c0.973,0.977,2.256,1.471,3.543,1.471 c1.173,0,2.349-0.41,3.295-1.237c0.083-0.072,2.169-1.885,13.898-11.289c12.238-9.813,27.619-24.74,28.318-25.421l31.483-31.483 l30.644,30.644c0.976,0.977,2.256,1.465,3.535,1.465s2.56-0.488,3.535-1.465l0.339-0.339c4.458-4.457,6.913-10.385,6.913-16.689 c0-5.851-2.118-11.375-5.985-15.703l48.533-56.55c2.569,1.425,5.466,2.192,8.485,2.192c4.687,0,9.093-1.825,12.406-5.14l0.229-0.229 C193.448,60.629,193.448,57.463,191.495,55.511z"})),sn=ln.name,un=ln.category,pn=ln.attributes,fn={title:Object(d.__)("WL : Image Marker","woolentor"),description:Object(d.__)("Display image marker.","woolentor"),icon:React.createElement(m.Icon,{icon:cn}),keywords:["woolentor",Object(d.__)("shop idicator","woolentor"),Object(d.__)("image indicator","woolentor"),Object(d.__)("marker","woolentor"),Object(d.__)("image marker","woolentor")],example:{attributes:{style:"1"}},supports:{align:["wide","full"]},attributes:pn,edit:an,save:function(){return null}};function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function(e){var t=e.attributes,n=e.setAttributes,o=t.title,r=t.subTitle,a=t.layout,l=t.featureImage,i={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Content","woolentor"),initialOpen:!0},React.createElement(m.SelectControl,{label:Object(d.__)("Layout","woolentor"),value:a,options:[{label:Object(d.__)("Layout One","woolentor"),value:"1"},{label:Object(d.__)("Layout Two","woolentor"),value:"2"},{label:Object(d.__)("Layout Three","woolentor"),value:"3"},{label:Object(d.__)("Layout Four","woolentor"),value:"4"},{label:Object(d.__)("Layout Five","woolentor"),value:"5"}],onChange:function(e){return n({layout:e})}}),React.createElement(Je,{title:Object(d.__)("Image","woolentor"),ImageData:l,attributesKey:"featureImage",setAttributes:n}),React.createElement(m.TextControl,{label:Object(d.__)("Title","woolentor"),value:o,onChange:function(e){return n({title:e})}}),React.createElement(m.TextControl,{label:Object(d.__)("Sub Title","woolentor"),value:r,onChange:function(e){return n({subTitle:e})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Area","woolentor")),React.createElement("h3",null,Object(d.__)("Border Color","woolentor"),React.createElement("span",{style:mn(mn({},i),{},{backgroundColor:t.areaBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaBorderColor,onChange:function(e){return n({areaBorderColor:e})}}),React.createElement("h3",null,Object(d.__)("Hover Border Color","woolentor"),React.createElement("span",{style:mn(mn({},i),{},{backgroundColor:t.areaHoverBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaHoverBorderColor,onChange:function(e){return n({areaHoverBorderColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.areaMargin,attributesKey:"areaMargin",setAttributes:n}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:t.areaPadding,attributesKey:"areaPadding",setAttributes:n}),React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:mn(mn({},i),{},{backgroundColor:t.areaBackgroundColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaBackgroundColor,onChange:function(e){return n({areaBackgroundColor:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:mn(mn({},i),{},{backgroundColor:t.titleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleColor,onChange:function(e){return n({titleColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.titleMargin,attributesKey:"titleMargin",setAttributes:n}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.titleSize,fallbackFontSize:t.titleSize,onChange:function(e){return n({titleSize:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Sub Title","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:mn(mn({},i),{},{backgroundColor:t.subTitleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.subTitleColor,onChange:function(e){return n({subTitleColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.subTitleSize,fallbackFontSize:t.subTitleSize,onChange:function(e){return n({subTitleSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.subTitleMargin,attributesKey:"subTitleMargin",setAttributes:n}))))};function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function On(e,t){return!t||"object"!==hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En,Rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Cn(o);if(r){var n=Cn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return On(this,e)});function l(){return yn(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return React.createElement(y.Fragment,null,React.createElement(T.BlockControls,null,React.createElement(T.AlignmentToolbar,{value:t.textAlignment,onChange:function(e){return n({textAlignment:e})}})))}}])&&vn(t.prototype,n),l}(y.Component);function jn(e){return(jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Fn(e,t){return(Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(e,t){return!t||"object"!==jn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fn(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Tn(o);if(r){var n=Tn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return An(this,e)});function l(){return kn(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.name,e.className),n=e.attributes,o=e.isSelected,r=e.setAttributes,a=e.clientId,l=n.blockUniqId,i=n.featureImage;""==l&&r({blockUniqId:a});var c,s,u=function(e){var t=n[e]?n[e]:{},o="";if(""!=t.top||""!=t.right||""!=t.bottom||""!=t.left){var r=t.unit?t.unit:"px";o=t.top?o+t.top+r+" ":"0"+r+" ",o=t.right?o+t.right+r+" ":"0"+r+" ",o=t.bottom?o+t.bottom+r+" ":"0"+r+" ",o=t.left?o+t.left+r+" ":"0"+r+" "}return o},p=V()(t,Sn({},"woolentor-blocks ht-feature-wrap ht-feature-style-"+n.layout,n.layout),Sn({},"woolentor-text-align-"+n.textAlignment,n.textAlignment)),f=Z.a.div(En||(c=["\n\t\t\t"," !important;\n\t\t\t",";\n\t\t\t"," !important;\n\t\t\t"," !important;\n\n\t\t\t&:hover{\n\t\t\t\t"," !important;\n\t\t\t}\n\n\t\t\t& .ht-feature-content h4{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& .ht-feature-content p{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t"],s||(s=c.slice(0)),En=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(s)}}))),n.areaBorderColor&&"border-color:"+n.areaBorderColor,n.areaBackgroundColor&&"background-color:"+n.areaBackgroundColor,n.areaMargin&&"margin:"+u("areaMargin"),n.areaPadding&&"padding:"+u("areaPadding"),n.areaHoverBorderColor&&"border-color:"+n.areaHoverBorderColor,n.titleColor&&"color:"+n.titleColor,n.titleSize&&"font-size:"+n.titleSize,n.titleMargin&&"margin:"+u("titleMargin"),n.subTitleColor&&"color:"+n.subTitleColor,n.subTitleSize&&"font-size:"+n.subTitleSize,n.subTitleMargin&&"margin:"+u("subTitleMargin"));return React.createElement(y.Fragment,null,o&&React.createElement(gn,this.props),o&&React.createElement(Rn,this.props),React.createElement("div",{className:p},React.createElement(f,{className:"ht-feature-inner"},i.url&&React.createElement("div",{className:"ht-feature-img"},React.createElement("img",{src:i.url,alt:n.title})),React.createElement("div",{className:"ht-feature-content"},n.title&&React.createElement("h4",null,n.title),n.subTitle&&React.createElement("p",null,n.subTitle)))))}}])&&Pn(t.prototype,n),l}(y.Component),xn=n(17),zn=React.createElement("svg",{viewBox:"-27 0 512 512.00001",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m399.996094 0h-341.996094c-31.980469 0-58 26.019531-58 58v369.996094c0 16.542968 13.457031 30 30 30h131.332031c5.523438 0 10-4.476563 10-10 0-5.523438-4.476562-10-10-10h-131.332031c-5.515625 0-10-4.484375-10-10v-369.996094c0-20.953125 17.046875-38 38-38h298.234375c-8.855469 10.1875-14.238281 23.472656-14.238281 38v322.265625c0 9.226563-7.503906 16.730469-16.730469 16.730469-7.210937 0-13.589844-4.597656-15.875-11.4375l-15.070313-45.21875c-4.253906-12.765625-16.15625-21.339844-29.609374-21.339844-17.210938 0-31.210938 14-31.210938 31.207031v7.789063h-51.832031c-5.523438 0-10 4.480468-10 10 0 5.523437 4.476562 10 10 10h51.832031v49.75c0 14.765625 2.878906 29.164062 8.558594 42.789062l14.710937 35.308594c1.601563 3.839844 5.316407 6.15625 9.234375 6.15625 1.28125 0 2.585938-.246094 3.839844-.769531 5.101562-2.125 7.511719-7.980469 5.386719-13.078125l-14.710938-35.308594c-4.65625-11.175781-7.019531-22.984375-7.019531-35.09375v-77.539062c0-6.183594 5.027344-11.210938 11.210938-11.210938 4.832031 0 9.109374 3.078125 10.636718 7.664062l15.070313 45.21875c5.007812 15.019532 19.011719 25.113282 34.847656 25.113282 20.253906 0 36.730469-16.476563 36.730469-36.730469v-171.449219l13.363281 13.335938c23.84375 23.796875 36.972656 55.457031 36.972656 89.140625v106.300781c0 27.535156-6.238281 55.238281-18.035156 80.117188-2.367187 4.988281-.238281 10.953124 4.75 13.320312s10.953125.242188 13.320313-4.75c13.058593-27.539062 19.964843-58.207031 19.964843-88.6875v-106.300781c0-39.035157-15.214843-75.71875-42.84375-103.296875l-27.492187-27.441406v-9.554688h66c16.542968 0 30-13.457031 30-30v-83c0-31.980469-26.015625-58-58-58zm38 141c0 5.511719-4.484375 10-10 10h-66v-93c0-20.953125 17.046875-38 38-38s38 17.046875 38 38zm0 0"}),React.createElement("path",{d:"m205 437.996094c-2.632812 0-5.210938 1.070312-7.070312 2.929687-1.859376 1.863281-2.929688 4.441407-2.929688 7.070313 0 2.632812 1.070312 5.210937 2.929688 7.070312 1.859374 1.859375 4.4375 2.929688 7.070312 2.929688 2.628906 0 5.207031-1.070313 7.070312-2.929688 1.859376-1.859375 2.929688-4.4375 2.929688-7.070312 0-2.628906-1.070312-5.207032-2.929688-7.070313-1.863281-1.859375-4.441406-2.929687-7.070312-2.929687zm0 0"}),React.createElement("path",{d:"m137.667969 74c0-11.027344-8.972657-20-20-20h-44c-11.03125 0-20 8.972656-20 20v44c0 11.027344 8.96875 20 20 20h44c11.027343 0 20-8.972656 20-20zm-20 44h-44v-44h44l.011719 44s-.003907 0-.011719 0zm0 0"}),React.createElement("path",{d:"m137.667969 194c0-11.027344-8.972657-20-20-20h-44c-11.03125 0-20 8.972656-20 20v44c0 11.027344 8.96875 20 20 20h44c11.027343 0 20-8.972656 20-20zm-20 44h-44v-44h44l.011719 44s-.003907 0-.011719 0zm0 0"}),React.createElement("path",{d:"m117.667969 294h-44c-11.03125 0-20 8.96875-20 20v43.996094c0 11.03125 8.96875 20 20 20h44c11.027343 0 20-8.96875 20-20v-43.996094c0-11.03125-8.972657-20-20-20zm0 63.996094h-44v-43.996094h44l.011719 43.996094s-.003907 0-.011719 0zm0 0"}),React.createElement("path",{d:"m296.332031 138c5.523438 0 10-4.476562 10-10s-4.476562-10-10-10h-68.9375c-5.523437 0-10 4.476562-10 10s4.476563 10 10 10zm0 0"}),React.createElement("path",{d:"m181.667969 138c2.632812 0 5.210937-1.070312 7.070312-2.929688 1.859375-1.859374 2.929688-4.441406 2.929688-7.070312s-1.070313-5.210938-2.929688-7.070312c-1.859375-1.859376-4.4375-2.929688-7.070312-2.929688-2.640625 0-5.210938 1.070312-7.070313 2.929688-1.867187 1.859374-2.929687 4.441406-2.929687 7.070312s1.0625 5.210938 2.929687 7.070312c1.859375 1.859376 4.429688 2.929688 7.070313 2.929688zm0 0"}),React.createElement("path",{d:"m181.664062 258h114.667969c5.523438 0 10-4.476562 10-10s-4.476562-10-10-10h-114.667969c-5.519531 0-10 4.476562-10 10s4.480469 10 10 10zm0 0"})),Dn=xn.name,Mn=xn.category,In=xn.attributes,Ln={title:Object(d.__)("WL : Store Feature","woolentor"),description:Object(d.__)("Display store feature.","woolentor"),icon:React.createElement(m.Icon,{icon:zn}),keywords:["woolentor",Object(d.__)("shop feature","woolentor"),Object(d.__)("feature","woolentor"),Object(d.__)("store","woolentor")],example:{attributes:{style:"1"}},attributes:In,supports:{align:["wide","full"]},edit:Bn,save:function(){return null}};function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){return function(e){if(Array.isArray(e))return Un(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(e,t){if(e){if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Un(e,t):void 0}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Vn,Qn=function(e){var t,n=e.attributes,o=e.setAttributes,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);_n=!0);}catch(e){l=!0,r=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw r}}return a}}(e,t)||qn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(y.useState)(!1),2),a=r[0],l=r[1],i=n.columns,c=n.noGutter,s={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},u=function(e,t,r){var a=Gn(n.brandLogoList);a[r][t]=e,o({brandLogoList:a})},p=["image","png"],f=React.createElement("p",null,Object(d.__)("To edit the banner image, you need permission to upload media.","woolentor")),b=function(e,t){var r=Gn(n.brandLogoList);r[t].image.id=e.id,r[t].image.url=e.url,o({brandLogoList:r})};return n.brandLogoList.length>0&&(t=n.brandLogoList.map((function(e,t){var r=a===t?"woolentor_active_repeter":"";return React.createElement(y.Fragment,{key:t},React.createElement("div",{className:"woolentor_repeater-fields"},React.createElement("div",{className:"woolentor_repeater-tools",onClick:function(e){return function(e,t){l(t!==a&&t)}(0,t)}},React.createElement("div",{className:"woolentor_repeater-item-title"},n.brandLogoList[t].title),React.createElement("div",{className:"woolentor_repeater-item-remove"},React.createElement(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(d.__)("Delete Marker","woolentor"),onClick:function(){return function(e){var t=Gn(n.brandLogoList);t.splice(e,1),o({brandLogoList:t})}(t)}}))),React.createElement("div",{className:r+" woolentor_repeater-controls"},React.createElement(m.TextControl,{label:Object(d.__)("Brand Title","woolentor"),className:"woolentor__marker-title",placeholder:Object(d.__)("Brand Title","woolentor"),value:n.brandLogoList[t].title,onChange:function(e){return u(e,"title",t)}}),React.createElement("div",{className:"wp-block-image-selector-woolentor-image-uploader"},React.createElement(T.MediaUploadCheck,{fallback:f},React.createElement(T.MediaUpload,{title:Object(d.__)("Choose Image","woolentor"),onSelect:function(e){return b(e,t)},allowedTypes:p,value:n.brandLogoList[t].image.id,render:function(e){var o=e.open;return React.createElement(m.Button,{className:n.brandLogoList[t].image.id?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o},n.brandLogoList[t].image.id?React.createElement("img",{src:n.brandLogoList[t].image.url,alt:n.brandLogoList[t].title}):Object(d.__)("Choose Image","woolentor"))}})),!!n.brandLogoList[t].image.id&&React.createElement(T.MediaUploadCheck,null,React.createElement(T.MediaUpload,{title:Object(d.__)("Choose Image","woolentor"),onSelect:function(e){return b(e,t)},allowedTypes:p,value:n.brandLogoList[t].image.id,render:function(e){var t=e.open;return React.createElement(m.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(d.__)("Replace image","woolentor"))}})),!!n.brandLogoList[t].image.id&&React.createElement(T.MediaUploadCheck,null,React.createElement(m.Button,{onClick:function(){return function(e){var t=Gn(n.brandLogoList);t[e].image.id=void 0,t[e].image.url=void 0,o({brandLogoList:t})}(t)},isLink:!0,isDestructive:!0},Object(d.__)("Remove image","woolentor")))),React.createElement(m.TextControl,{label:Object(d.__)("Brand Link","woolentor"),value:n.brandLogoList[t].link,placeholder:Object(d.__)("https://your-site.com","woolentor"),onChange:function(e){return u(e,"link",t)}}))))}))),React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Brand Logo","woolentor"),initialOpen:!0},t,React.createElement(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:function(){var e=Gn(n.brandLogoList);e.push({title:Object(d.__)("Brand Item #"+(n.brandLogoList.length+1),"woolentor"),image:{id:"",url:""},link:""}),o({brandLogoList:e}),l(n.brandLogoList.length)}.bind(void 0)},Object(d.__)("Add Brand","woolentor"))),React.createElement(m.PanelBody,{title:Object(d.__)("Brand Option","woolentor"),initialOpen:!1},React.createElement(m.SelectControl,{label:Object(d.__)("Columns","woolentor"),value:i,options:[{label:Object(d.__)("One","woolentor"),value:1},{label:Object(d.__)("Two","woolentor"),value:2},{label:Object(d.__)("Three","woolentor"),value:3},{label:Object(d.__)("Four","woolentor"),value:4},{label:Object(d.__)("Five","woolentor"),value:5},{label:Object(d.__)("Six","woolentor"),value:6},{label:Object(d.__)("Seven","woolentor"),value:7},{label:Object(d.__)("Eight","woolentor"),value:8},{label:Object(d.__)("Nine","woolentor"),value:9},{label:Object(d.__)("Ten","woolentor"),value:10}],onChange:function(e){return o({columns:e})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("No Gutters","woolentor"),checked:c,help:c?Object(d.__)("Enable No Gutters.","woolentor"):Object(d.__)("Toggle to show the Gutters.","woolentor"),onChange:function(){return o({noGutter:!c})}}),!c&&React.createElement(m.RangeControl,{label:Object(d.__)("Gutter Spacing","woolentor"),value:n.itemSpace,onChange:function(e){return o({itemSpace:e})},min:0,step:1,max:200})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Brand Item","woolentor")),React.createElement(m.SelectControl,{label:Object(d.__)("Border Type","woolentor"),value:n.singleItemAreaBorderType,options:[{label:Object(d.__)("None","woolentor"),value:""},{label:Object(d.__)("Solid","woolentor"),value:"solid"},{label:Object(d.__)("Double","woolentor"),value:"double"},{label:Object(d.__)("Dotted","woolentor"),value:"dotted"},{label:Object(d.__)("Dashed","woolentor"),value:"dashed"},{label:Object(d.__)("Groove","woolentor"),value:"groove"}],onChange:function(e){return o({singleItemAreaBorderType:e})}}),n.singleItemAreaBorderType&&React.createElement(React.Fragment,null,React.createElement(tt,{lavel:Object(d.__)("Border Width","woolentor"),dimensions:n.singleItemAreaBorderWidth,attributesKey:"singleItemAreaBorderWidth",setAttributes:o}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Border Color","woolentor"),React.createElement("span",{style:Hn(Hn({},s),{},{backgroundColor:n.singleItemAreaBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.singleItemAreaBorderColor,onChange:function(e){return o({singleItemAreaBorderColor:e})}})),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:n.singleItemAreaBorderRadius,attributesKey:"singleItemAreaBorderRadius",setAttributes:o}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:n.singleItemAreaMargin,attributesKey:"singleItemAreaMargin",setAttributes:o}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:n.singleItemAreaPadding,attributesKey:"singleItemAreaPadding",setAttributes:o}),React.createElement("h3",null,Object(d.__)("Alignment","woolentor")),React.createElement(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},React.createElement(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===n.brandAlignment,isSecondary:"left"!==n.brandAlignment,onClick:function(){return o({brandAlignment:"left"})},title:Object(d.__)("Title align left","woolentor")}),React.createElement(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===n.brandAlignment,isSecondary:"center"!==n.brandAlignment,onClick:function(){return o({brandAlignment:"center"})},title:Object(d.__)("Title align center","woolentor")}),React.createElement(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===n.brandAlignment,isSecondary:"right"!==n.brandAlignment,onClick:function(){return o({brandAlignment:"right"})},title:Object(d.__)("Title align right","woolentor")}),React.createElement("span",{onClick:function(){return o({brandAlignment:""})},class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})),React.createElement("h2",{className:"woolentor-blocks-section-title",style:{marginTop:"20px"}},Object(d.__)("Brand Image","woolentor")),React.createElement(m.SelectControl,{label:Object(d.__)("Border Type","woolentor"),value:n.brandImageBorderType,options:[{label:Object(d.__)("None","woolentor"),value:""},{label:Object(d.__)("Solid","woolentor"),value:"solid"},{label:Object(d.__)("Double","woolentor"),value:"double"},{label:Object(d.__)("Dotted","woolentor"),value:"dotted"},{label:Object(d.__)("Dashed","woolentor"),value:"dashed"},{label:Object(d.__)("Groove","woolentor"),value:"groove"}],onChange:function(e){return o({brandImageBorderType:e})}}),n.brandImageBorderType&&React.createElement(React.Fragment,null,React.createElement(tt,{lavel:Object(d.__)("Border Width","woolentor"),dimensions:n.brandImageBorderWidth,attributesKey:"brandImageBorderWidth",setAttributes:o}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Border Color","woolentor"),React.createElement("span",{style:Hn(Hn({},s),{},{backgroundColor:n.brandImageBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.brandImageBorderColor,onChange:function(e){return o({brandImageBorderColor:e})}})),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:n.brandImageBorderRadius,attributesKey:"brandImageBorderRadius",setAttributes:o}))))};function Kn(e){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jn(e,t){return(Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zn(e,t){return!t||"object"!==Kn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $n(e){return($n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eo=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",width:"250",height:"150",viewBox:"0 0 300 300"},React.createElement("image",{id:"woolentor-logo",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADHFJREFUeNrsXU2IHMcV7m7NSnEU8IAvvgQmEHTV+JCDNwaN4oB1UNAIx7nO7sWQ5CBtcvAlYS0CAZ9GOoSActjZUyDESGZ9kA7OjEDWHrW6GoHHOAcfEphAHMjuaif12tWT3pn++arrVf/Wg2Z3pZme7npffe97r17XuE7N7Ot3e23xoysP+v2S/K+OPFCbyJ9TcXwhjgP6/fzdyUGdxsutgcPJ0T3p6K6ik7PaRALiEf0uQDGzAMh3hvfFcU06vl2CyyIwfCSO+1VjCLeCTu+X/HIpZNwXx24VwOCW3PE0wwfi2KgowxIA7khmmFkA4I4nh9+QMb0ONmv9+J3R2Xd+ccd13akFQLLjt3MScrnat37zJ8f77vfp15E4bpUFCK51vHkjxxMAloyAsCWAUGhoaJUgxm9LNV9ba73+VtQ/E+j78/mcwsL7jWIAqeqHFRZ3SvbS7//suK+8mpY5bAogTHJnpwKcT2nc501x/pkL3TTnk3VOvnw+FmMzlJOjfgCgGxPHjvj1nlOO4k0+AFh/C3rd8f5D+nFTHE9laKwPAGS59mlTZv0pAFx8A3rdi4PHCzYQB7HB+7UAgFT4T+uq8BOd333Dcb/9ndTXnXx24Mz/+dXyP2+LsRubDgmeYecT5e84DbUz3R9i9P/kYdx/9WRI6FYKADLej5tI+Yv0Ssz81utXMPp/9jhRIMqQ0K8EACRljeue23PG/vl//p32MhrTezKclhcAIbHXdRpuMP3vP1Q57Q43CDxm54+bKPai6J8EYJrRzA+p/0JA4DE7v+1Yc87wxP5cQOAxOL8tlb51vrSY2n9E/P9U52NYQOAxOH9sY36I/l95NVj2TaZ/kfdnoH92EOgywD3r/GXxp1z507WhTp3A05j9w6anelG29ubbJtR/WoqYuWLoZXQ+0c5N6+6lwRTUD6z8+fR/8uVzzo8OQrF5AEi6GVp3Zxd/jLM/bF3JyuYAYBU/T/w/fvLA1CXcVC0ZqzLAthV9Mc7HGj986o9Y+eO0HRU9AAPgcG/Us3E/AQDrhdL/sh7YYQXAfD5vr10d7CAIbywALuae/iVZHw0FKAPQzO+gKU4TYz/S+OGv/Jmlf+VQ4AGzvyNjP1zjtuo/DgCf5nlZ7cBvugywiCfoKleTTGVMNBZ/dLKCTmYAiNlPwq+XBe029kfQf3rjh5FQoMMA25HxzorB0HgYafzgtF5Sm3lLZfYv3rR+xTnaG1n6FxOBs/GDzkdCO1hNPBGC8Whvl0M40kSeqDLAtq7oaYL654r9dC56gLT15k8d70LXP6iplB4ra+mL71gW8FRnvwryrfrH1D8JybOD92JTybMb73GE3RsqDHCDK/bVmf65Gj8ovU6rIzDUYPpRGcEKAOSL+unovwIVP2o7+9fBvj8g9iNMgoAtCwtEMcAGWq4sqjBEg0GLL0yDYpT+09Q/3UOO97GBZAEDillIjCdaOv7kr7k6/tzPf3cqHhLFHo4+cF58dpDrdXA1fqBAYmogoSe2Ns7fnYwiGUAqxc7x/gOoaOGLwQvd/Jz/q+HKwNPf5349zO06VJx29MmHbJkEci7QriWFgMEidu1jTQvoMqiuJankhVLOSZNwNX6iTMLcQ9APLxItA6Cvirg8xCB9RlqcpIGkHDoP53M5rZV/A+mKn70Q/QebK/8/foFxFa2HZ0q3BLjWfvZL6LVrVwfGBRVn6bfAHoJrUQwwWLmJJxjyWgb7BGhWqzAMhQqjAECdlhJCNTeP0LVeFAB6qyjGxKCpVMavjV8dKItFU6FAqfEjZdwYNo/QzQZ6CwCE9thfvRlwDdsEC5wFqT8qFJhYseQs/cJMYq6HoBdmgF4sAkExSDfEKQYprcu63uDX1jOCJ9FpTIs/6FgZ7iG4FAZAN0nNIkUIFVRDs1jTgeQszgUr9N6QsInSv+EWslMMcCnxptCUkCkMIGkfR+3AhPqH6B/sITjef2ASAH7ml8oAAaWhYlA39qqkfdC5FEVknBjlavwoQewPW9eTArCdemPgBekuW6qmfcj5dMvEnI0fKEvm1EHc8RzwUa8XYDqis0KokvapiCNdRoHVf8oYwT0E2fYOymIXCQAd6ObAgoTK/ng6ad/hH38LVypp0Nd+spEZlHDjR8r1wExiOPaH6wEwAMjg9YEMC0QqaR/NDhrs/44+wGfxj97OpE/WYMp+zHauHDuIewSAl9FXo8j0wCdlT83+DbyEe/iXPyxm3dHHu7AgPLehXiaGH/kGGj8K2jwi+bochce9VVITtGVqIfxAwJDDw6GI2tPRWnnQaQsPTgGNHznF/lMAUDJUDKI3rJKq+QCM6EA6VAgFJAjRLKPijR+GAICKQTB39uv2oEOOBPVHqX+6JrQ1TaXOAG/4mJb7l2fziEgAdFTfhIqUtBmk0sRBg5MUfvzQAKaGFAbSagPwci3gtBJtHsEEAHCPm7TuGRVRdiSFX1J4ONzFQ0FaC1lNGj/4Q8Ai5wUvNk4MnpGPP6mkfcjr0NpAGvvUpPHDDAA4wkCWtA8xqg2goSCuhQztc6xA44c5AKDbnUS1juukfQg7obUBH4gRgpBz5a9lfudwbQBMTbNAWARxpH2p1yXegxZT/NpAKBQo7fX/jGnlr7jNIzQBAIrBMKVypH1Q2FAQhOFrUlmurUjjh5kQENAt3DpOIGBM+6D3K9QGgm5idB2jSo0fxgCgIl5oIYQz7ePWD+SsYHMGiP6BR77LHPvDANB6qlLlOUI07aNzcjzs6dcGFICELkdDjR/l3DouEgD/0j0J5/o1OY32xeEyv4bAXGBJ65HM+VtDihOBC6plXMA4/tuH7AUREoRcKhtZ+SvgW0Oy2oQFAFxr2HQeE/sN+Kzy8S4boyB6hzONLrUGQGkRYpK9XWP5sF8bYNAVVW38iLFH3vm7k5n4ZaY9M57pFTPIOabToUPNzAJ5SKbgbw1RtWmQBmpPDZXW8bjZb9rIeTqhAFr5K/5bQ1TsIADAoyLDAFfahwFtlFlkVrnxI8oE+x+wMQBKkabTPigUKLSQqTitzI0fURlAIAIXfxTBAibSvtSZnEFvIPdV5saPKAG4AIAUgiwsoKIDTKV9UChQXGhKXfkr57eGwAzAxgIqixsm0z4o9IBZAWfjR9GlX2kzMel9f4c3ivzIYfpWMGodT2uEyCPtQ8Qnrf6lrVFwNn7Qw6Gt9WJ3W58fH0+cuz9wTgGAEPH1uz0KBdpfCkkxlhycNLB5C784oxYy2qY9jr6RZWmVjTGK3N52abI7yyGA7D7bwNLDmxEZgb9Cl/PWrmk6JG6tgK4faSyp4M7pCz+74X+V3zV3j/OTSBwFqA/W0UsiglZoPLxt+/wfX0Ehil7/0nCvUs53Xfd6JAAkCD53Mjwr0FSj4g/tVVwh2xQAGMWFALJd69ba2izs/DgAjOw44Xby9+dVutwV364AQGQDU04xWHfL2rpekN1JBUDcC63FGy0zF13TAMXfdEXExr1aiMGxk7CDqLVoQUgpYUly/dMz/UL3sgDARAUA5PyxdWstbCJC++VIYMS9Q9aKJ3bsamG3Ypkh6xutVWr2TzIBwLJALWwrURsAJ9i0Y1hZu01tX1oAkHUBGwqqZzPEb+jDobcdhgdIrOVL/bLTK9Fc9Gw2LaxH2peVAQJBeNuObSWoH9ZtqvsDUEw5sGNcatuUuo0fADKmbDoMj5JZM2Ij4SOlhTzlHUJkWrFlx7p0lskvbtZPE6Jwx4n4PnprhcX911SoXxsAEgR2xbAc9lpawYctBCzZdSsKSyH6MvvA1f10+a1j1Ejatr4oxPkjnRNobxMnM4PLNjPI3W7pOp+FAUJMQI8BjS0T5JbusSzSeVxXJOOQZQLztsXlfFYGCDFBx/nm6aKu9VX5Yr5xAISE4diCgDXP3+J2vjEAhIBgi0U8zr+sk+rlogFidAHFKls2zm7k9O+Zcr5xBljKEEgXdKxPYaN2LuOTx83rbqQuoJDQt75NpfzrSZ28lQRACAh9CQRbL1i1+1Lp55ZKu0XcpWSDoRWIC5tKx0/y/mC3yLuWfYbDBqeLNNPvyHhfSAHNLcMoCCAQE2w3TCRSTn8ryxp+7QDQMCCUwvGlBECNgTCTAq80ji81AJY0wqDCYnEqY/yoqBhfaQAsZQ2UPt6ogGCcSZrfNVnBaxQAlsBAYYGY4ZpTnqISOXpSFadXGgAxYYKOi/JnO0eHP3O+eQxrWtXxqzwAYhgiYImXQyGjl8HJMxnHv5B/T6s2w9PsfwIMAOhUCXLerUHIAAAAAElFTkSuQmCC"})),to=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jn(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$n(o);if(r){var n=$n(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Zn(this,e)});function l(){return Yn(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.attributes,o=e.isSelected,r=e.setAttributes,a=e.clientId;""==n.blockUniqId&&r({blockUniqId:a});var l,i,c=function(e){var t=n[e]?n[e]:{},o="";if(""!=t.top||""!=t.right||""!=t.bottom||""!=t.left){var r=t.unit?t.unit:"px";o=t.top?o+t.top+r+" ":"0"+r+" ",o=t.right?o+t.right+r+" ":"0"+r+" ",o=t.bottom?o+t.bottom+r+" ":"0"+r+" ",o=t.left?o+t.left+r+" ":"0"+r+" "}return o},s=Z.a.div(Vn||(l=["\n\t\t\t"," !important;\n\t\t\t& .wl-single-brand{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& img,.woolentor-default-brand{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t"],i||(i=l.slice(0)),Vn=Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(i)}}))),!n.noGutter&&"padding: 0 "+n.itemSpace+"px 0 "+n.itemSpace+"px",n.singleItemAreaBorderType&&"border-style:"+n.singleItemAreaBorderType,n.singleItemAreaBorderWidth&&"border-width:"+c("singleItemAreaBorderWidth"),n.singleItemAreaBorderColor&&"border-color:"+n.singleItemAreaBorderColor,n.singleItemAreaBorderRadius&&"border-radius:"+c("singleItemAreaBorderRadius"),n.singleItemAreaMargin&&"margin:"+c("singleItemAreaMargin"),n.singleItemAreaPadding&&"padding:"+c("singleItemAreaPadding"),n.brandAlignment&&"text-align:"+n.brandAlignment,n.brandImageBorderType&&"border-style:"+n.brandImageBorderType,n.brandImageBorderWidth&&"border-width:"+c("brandImageBorderWidth"),n.brandImageBorderColor&&"border-color:"+n.brandImageBorderColor,n.brandImageBorderRadius&&"border-radius:"+c("brandImageBorderRadius")),u=n.brandLogoList.map((function(e,t){return React.createElement(s,{className:"woolentor-col-"+n.columns},React.createElement("div",{className:"wl-single-brand"},e.image.url?React.createElement("img",{src:e.image.url,alt:e.title}):React.createElement("div",{className:"woolentor-default-brand"},eo)))}));return React.createElement(y.Fragment,null,o&&React.createElement(Qn,this.props),React.createElement("div",{className:t+" woolentor-columns-"+n.columns},React.createElement("div",{className:!0===n.noGutter?"woolentor-row wlno-gutters":"woolentor-row"},u)))}}])&&Xn(t.prototype,n),l}(y.Component),no=n(18),oo=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512"},React.createElement("path",{d:"M166,0H75C33.645,0,0,33.645,0,75v91c0,41.355,33.645,75,75,75h91c41.355,0,75-33.645,75-75V75 C241,33.645,207.355,0,166,0z M211,166c0,24.813-20.187,45-45,45H75c-24.813,0-45-20.187-45-45V75c0-24.813,20.187-45,45-45h91 c24.813,0,45,20.187,45,45V166z"}),React.createElement("path",{d:"M437,271h-91c-41.355,0-75,33.645-75,75v91c0,41.355,33.645,75,75,75h91c41.355,0,75-33.645,75-75v-91 C512,304.645,478.355,271,437,271z M482,437c0,24.813-20.187,45-45,45h-91c-24.813,0-45-20.187-45-45v-91 c0-24.813,20.187-45,45-45h91c24.813,0,45,20.187,45,45V437z"}),React.createElement("path",{d:"M437,0h-91c-41.355,0-75,33.645-75,75v91c0,57.897-47.103,105-105,105H75c-41.355,0-75,33.645-75,75v91 c0,41.355,33.645,75,75,75h91c41.355,0,75-33.645,75-75v-91c0-57.897,47.103-105,105-105h91c41.355,0,75-33.645,75-75V75 C512,33.645,478.355,0,437,0z M211,346v91c0,24.813-20.187,45-45,45H75c-24.813,0-45-20.187-45-45v-91c0-24.813,20.187-45,45-45 h91c20.827,0,40.568-4.741,58.2-13.2C215.741,305.432,211,325.173,211,346z M482,166c0,24.813-20.187,45-45,45h-91 c-20.827,0-40.568,4.741-58.2,13.2c8.459-17.632,13.2-37.373,13.2-58.2V75c0-24.813,20.187-45,45-45h91c24.813,0,45,20.187,45,45 V166z"})),ro=no.name,ao=no.category,lo=no.attributes,io={title:Object(d.__)("WL : Brand Logo","woolentor"),description:Object(d.__)("Display brand logo.","woolentor"),icon:React.createElement(m.Icon,{icon:oo}),keywords:["woolentor",Object(d.__)("logo","woolentor"),Object(d.__)("brand","woolentor"),Object(d.__)("brand logo","woolentor")],example:{attributes:{brandLogoList:[{title:"Brand Title one",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Two",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Three",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Four",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Five",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Six",link:"https://hasthemes.com/",image:{id:"",url:""}}],columns:3}},supports:{align:["wide","full"]},attributes:lo,edit:to,save:function(){return null}};function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function bo(e,t){return(bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function go(e,t){return!t||"object"!==co(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ho(e){return(ho=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yo,vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bo(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ho(o);if(r){var n=ho(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return go(this,e)});function l(){return fo(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,o=t.style,r=t.displayType,a=t.productCategory,l=t.productCategories,i=t.order,c=t.displayLimit,s=t.showCount,u=t.sliderOn,p=t.columns,f=t.noGutter,b=t.itemSpace,g={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("Settings","woolentor"),initialOpen:!0},React.createElement(m.SelectControl,{label:Object(d.__)("Style","woolentor"),value:o,options:[{label:Object(d.__)("Style One","woolentor"),value:"1"},{label:Object(d.__)("Style Two","woolentor"),value:"2"},{label:Object(d.__)("Style Three","woolentor"),value:"3"},{label:Object(d.__)("Style Four","woolentor"),value:"4"},{label:Object(d.__)("Style Five","woolentor"),value:"5"}],onChange:function(e){return n({style:e})}}),React.createElement(m.SelectControl,{label:Object(d.__)("Category Display Type","woolentor"),value:r,options:[{label:Object(d.__)("Single Category","woolentor"),value:"singleCat"},{label:Object(d.__)("Multiple Categories","woolentor"),value:"multipleCat"},{label:Object(d.__)("All Categories","woolentor"),value:"allCat"}],onChange:function(e){return n({displayType:e})}}),"singleCat"==r&&React.createElement(A,{title:Object(d.__)("Select category","woolentor"),attributesKey:"productCategory",setAttributes:n,selectedTaxonomies:a,type:"single"}),"multipleCat"==r&&React.createElement(A,{title:Object(d.__)("Select categories","woolentor"),attributesKey:"productCategories",setAttributes:n,selectedTaxonomies:l,type:"multiple"}),"singleCat"!=r&&React.createElement(m.SelectControl,{label:Object(d.__)("Order","woolentor"),value:i,options:[{label:Object(d.__)("Ascending","woolentor"),value:"asc"},{label:Object(d.__)("Descending","woolentor"),value:"desc"}],onChange:function(e){return n({order:e})}}),"allCat"==r&&React.createElement(m.RangeControl,{label:Object(d.__)("Limit","woolentor"),value:c,onChange:function(e){return n({displayLimit:e})},min:1,step:1,max:20}),("1"==o||"4"==o)&&React.createElement(m.ToggleControl,{label:Object(d.__)("Show Count","woolentor"),checked:s,help:s?Object(d.__)("Enable show Count.","woolentor"):Object(d.__)("Toggle to show the count.","woolentor"),onChange:function(){return n({showCount:!s})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider On","woolentor"),checked:u,help:u?Object(d.__)("Enable slider.","woolentor"):Object(d.__)("Toggle to show the slider.","woolentor"),onChange:function(){return n({sliderOn:!u})}})),1==u&&React.createElement(m.PanelBody,{title:Object(d.__)("Slider Options","woolentor"),initialOpen:!1},React.createElement(m.RangeControl,{label:Object(d.__)("Slider Items","woolentor"),value:t.slitems,onChange:function(e){return n({slitems:e})},min:1,step:1,max:10}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider Arrow","woolentor"),checked:t.slarrows,help:t.slarrows?Object(d.__)("Enable slider arrow.","woolentor"):Object(d.__)("Toggle to show the slider arrow.","woolentor"),onChange:function(){return n({slarrows:!t.slarrows})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider dots","woolentor"),checked:t.sldots,help:t.sldots?Object(d.__)("Enable slider pagination.","woolentor"):Object(d.__)("Toggle to show the slider pagination.","woolentor"),onChange:function(){return n({sldots:!t.sldots})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Pause on Hover?","woolentor"),checked:t.slpauseOnHover,help:t.slpauseOnHover?Object(d.__)("Enable slider pagination.","woolentor"):Object(d.__)("Toggle to show the slider pagination.","woolentor"),onChange:function(){return n({slpauseOnHover:!t.slpauseOnHover})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Is RTL","woolentor"),checked:t.slIsrtl,help:t.slIsrtl?Object(d.__)("Enable RTL.","woolentor"):Object(d.__)("Toggle to show the RTL direction.","woolentor"),onChange:function(){return n({slIsrtl:!t.slIsrtl})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Slider auto play","woolentor"),checked:t.slautolay,help:t.slautolay?Object(d.__)("Enable slider auto play.","woolentor"):Object(d.__)("Toggle to show the slider auto play.","woolentor"),onChange:function(){return n({slautolay:!t.slautolay})}}),1==t.slautolay&&React.createElement(React.Fragment,null,React.createElement(m.RangeControl,{label:Object(d.__)("Autoplay speed","woolentor"),value:t.slautoplaySpeed,onChange:function(e){return n({slautoplaySpeed:e})},min:1,step:1,max:1e5}),React.createElement(m.RangeControl,{label:Object(d.__)("Autoplay animation speed","woolentor"),value:t.slanimationSpeed,onChange:function(e){return n({slanimationSpeed:e})},min:1,step:1,max:1e5})),React.createElement(m.RangeControl,{label:Object(d.__)("Slider item to scroll","woolentor"),value:t.slscrollItem,onChange:function(e){return n({slscrollItem:e})},min:1,step:1,max:1e5}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Tablet Screen options","woolentor")),React.createElement(m.RangeControl,{label:Object(d.__)("Slider Items","woolentor"),value:t.sltabletDisplayColumns,onChange:function(e){return n({sltabletDisplayColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Slider item to scroll","woolentor"),value:t.sltabletScrollColumns,onChange:function(e){return n({sltabletScrollColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Tablet Screen Resolution","woolentor"),value:t.sltabletWidth,onChange:function(e){return n({sltabletWidth:e})},min:1,step:1,max:1500}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Mobile Phone Screen options","woolentor")),React.createElement(m.RangeControl,{label:Object(d.__)("Slider Items","woolentor"),value:t.slMobileDisplayColumns,onChange:function(e){return n({slMobileDisplayColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Slider item to scroll","woolentor"),value:t.slMobileScrollColumns,onChange:function(e){return n({slMobileScrollColumns:e})},min:1,step:1,max:8}),React.createElement(m.RangeControl,{label:Object(d.__)("Mobile Screen Resolution","woolentor"),value:t.slMobileWidth,onChange:function(e){return n({slMobileWidth:e})},min:1,step:1,max:1500})),0==u&&React.createElement(m.PanelBody,{title:Object(d.__)("Columns","woolentor"),initialOpen:!1},React.createElement(m.SelectControl,{label:Object(d.__)("Columns","woolentor"),value:p,options:[{label:Object(d.__)("One","woolentor"),value:1},{label:Object(d.__)("Two","woolentor"),value:2},{label:Object(d.__)("Three","woolentor"),value:3},{label:Object(d.__)("Four","woolentor"),value:4},{label:Object(d.__)("Five","woolentor"),value:5},{label:Object(d.__)("Six","woolentor"),value:6},{label:Object(d.__)("Seven","woolentor"),value:7},{label:Object(d.__)("Eight","woolentor"),value:8},{label:Object(d.__)("Nine","woolentor"),value:9},{label:Object(d.__)("Ten","woolentor"),value:10}],onChange:function(e){return n({columns:e})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("No Gutters","woolentor"),checked:f,help:f?Object(d.__)("Enable No Gutters.","woolentor"):Object(d.__)("Toggle to show the Gutters.","woolentor"),onChange:function(){return n({noGutter:!f})}}),!f&&React.createElement(m.RangeControl,{label:Object(d.__)("Gutter Spacing","woolentor"),value:b,onChange:function(e){return n({itemSpace:e})},min:0,step:1,max:200})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Area","woolentor")),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:t.areaPadding,attributesKey:"areaPadding",setAttributes:n}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:uo(uo({},g),{},{backgroundColor:t.areaBackgroundColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaBackgroundColor,onChange:function(e){return n({areaBackgroundColor:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Image","woolentor")),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Box Color","woolentor"),React.createElement("span",{style:uo(uo({},g),{},{backgroundColor:t.imageBoxColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.imageBoxColor,onChange:function(e){return n({imageBoxColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.imageMargin,attributesKey:"imageMargin",setAttributes:n}),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:t.imageBorderRadius,attributesKey:"imageBorderRadius",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Title","woolentor")),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Color","woolentor"),React.createElement("span",{style:uo(uo({},g),{},{backgroundColor:t.titleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleColor,onChange:function(e){return n({titleColor:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Hover Color","woolentor"),React.createElement("span",{style:uo(uo({},g),{},{backgroundColor:t.titleHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleHoverColor,onChange:function(e){return n({titleHoverColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:t.titleMargin,attributesKey:"titleMargin",setAttributes:n}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Count","woolentor")),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Color","woolentor"),React.createElement("span",{style:uo(uo({},g),{},{backgroundColor:t.countColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.countColor,onChange:function(e){return n({countColor:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Before Border Color","woolentor"),React.createElement("span",{style:uo(uo({},g),{},{backgroundColor:t.countBeforeColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.countBeforeColor,onChange:function(e){return n({countBeforeColor:e})}}))))}}])&&mo(t.prototype,n),l}(y.Component);function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oo(){return(Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function _o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Co(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Eo(e,t){return(Eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ro(e,t){return!t||"object"!==wo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var So=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Eo(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=jo(o);if(r){var n=jo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ro(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={categoryData:[]},t}return t=l,(n=[{key:"componentDidMount",value:function(){this.fetchCategoryData()}},{key:"componentDidUpdate",value:function(e){var t,n=this.props.attributes,o=n.displayLimit,r=n.order;t="singleCat"==n.displayType?n.productCategory:"multipleCat"==n.displayType?n.productCategories:"";var a=e.attributes;("singleCat"==a.displayType?a.productCategory:"multipleCat"==a.displayType?a.productCategories:"")==t&&e.attributes.displayLimit==o&&e.attributes.order==r||this.fetchCategoryData()}},{key:"fetchCategoryData",value:function(){var e=this,t={queryLimit:this.props.attributes.displayLimit,queryOrder:this.props.attributes.order,queryType:"regular",wpnonce:woolentorData.security};"singleCat"==this.props.attributes.displayType?t.querySlug=this.props.attributes.productCategory:"multipleCat"==this.props.attributes.displayType?t.querySlug=this.props.attributes.productCategories:t.querySlug="";var n=Object(Y.addQueryArgs)("/woolentor/v1/category",t);K()({path:n}).then((function(t){return e.setState({categoryData:t})}))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,o=e.isSelected,r=e.setAttributes,a=e.clientId,l=t.blockUniqId,i=t.style;""==l&&r({blockUniqId:a});var c=this.state.categoryData,s=0,u=-1;function p(e){var t=e.className,n=e.onClick;return React.createElement(m.Button,{className:t,onClick:n},React.createElement("i",{className:"fa fa-angle-right"}))}function f(e){var t=e.className,n=e.onClick;return React.createElement(m.Button,{className:t,onClick:n},React.createElement("i",{className:"fa fa-angle-left"}))}var d,b,g,h={arrows:t.slarrows,prevArrow:React.createElement(f,null),nextArrow:React.createElement(p,null),dots:t.sldots,infinite:!0,autoplay:t.slautolay,autoplaySpeed:t.slautoplaySpeed,speed:t.slanimationSpeed,fade:!1,pauseOnHover:t.slpauseOnHover,slidesToShow:t.slitems,slidesToScroll:t.slscrollItem,rtl:t.slIsrtl,responsive:[{breakpoint:t.sltabletWidth,settings:{slidesToShow:t.sltabletDisplayColumns,slidesToScroll:t.sltabletScrollColumns}},{breakpoint:t.slMobileWidth,settings:{slidesToShow:t.slMobileDisplayColumns,slidesToScroll:t.slMobileScrollColumns}}]},v=function(e){var n=t[e]?t[e]:{},o="";if(""!=n.top||""!=n.right||""!=n.bottom||""!=n.left){var r=n.unit?n.unit:"px";o=n.top?o+n.top+r+" ":"0"+r+" ",o=n.right?o+n.right+r+" ":"0"+r+" ",o=n.bottom?o+n.bottom+r+" ":"0"+r+" ",o=n.left?o+n.left+r+" ":"0"+r+" "}return o},w=V()(n,_o({},"woolentor-columns-".concat(t.columns),t.columns),_o({},"woolentor-area-".concat(t.align),t.align)),O=V()(_o({},"woolentor-row",!0!==t.sliderOn),_o({},"wlno-gutters",1==t.noGutter),_o({},"product-slider",1==t.sliderOn)),_=V()(_o({},"woolentor-col-".concat(t.columns),t.columns)),C=Z.a.div(yo||(d=["\n\t\t\t"," !important;\n\t\t\t","px !important;\n\t\t\t\n\t\t\t& [class*='ht-category-wrap']{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& [class*='ht-category-image']{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .ht-category-wrap .ht-category-image a.ht-category-border::before,.ht-category-wrap-2:hover::before,.ht-category-wrap .ht-category-image a.ht-category-border-2::before{\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& [class*='ht-category-content'] h3 a{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& [class*='ht-category-content'] h3 a:hover{\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& [class*='ht-category-content'] span{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& [class*='ht-category-content'] span::before{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t\n\t\t"],b||(b=d.slice(0)),yo=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(b)}}))),!t.noGutter&&"padding: 0 "+t.itemSpace+"px 0 "+t.itemSpace+"px",!0!==t.sliderOn&&!t.noGutter&&u>=t.columns&&"margin-top:"+t.itemSpace+t.itemSpace,t.areaBackgroundColor&&"background-color:"+t.areaBackgroundColor,t.areaPadding&&"padding:"+v("areaPadding"),t.imageMargin&&"margin:"+v("imageMargin"),t.imageBorderRadius&&"border-radius:"+v("imageBorderRadius"),t.imageBoxColor&&"border-color:"+t.imageBoxColor,t.titleColor&&"color:"+t.titleColor,t.titleMargin&&"margin:"+v("titleMargin"),t.titleHoverColor&&"color:"+t.titleHoverColor,t.countColor&&"color:"+t.countColor,t.countBeforeColor&&"background-color:"+t.countBeforeColor);return c.length>0&&(g=c.map((function(e,n){return s=4===s?0:s,s++,u++,React.createElement(React.Fragment,null,React.createElement(C,{className:_},"1"===i&&React.createElement("div",{className:"ht-category-wrap"},e.image.src&&React.createElement("div",{className:"ht-category-image ht-category-image-zoom"},React.createElement(m.Disabled,null,React.createElement("a",{className:"ht-category-border",href:e.link},React.createElement("img",{src:e.image.src,alt:e.name})))),React.createElement("div",{className:"ht-category-content"},React.createElement("h3",null,React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},e.name))),1==t.showCount&&React.createElement("span",null,e.count))),"2"===i&&React.createElement("div",{className:"ht-category-wrap-2"},React.createElement("div",{className:"ht-category-content-2"},React.createElement("h3",null,React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},e.name)))),e.image.src&&React.createElement("div",{className:"ht-category-image-2"},React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},React.createElement("img",{src:e.image.src,alt:e.name}))))),"3"===i&&React.createElement("div",{className:"ht-category-wrap"},""!=e.image.src?React.createElement("div",{className:"ht-category-image ht-category-image-zoom"},React.createElement(m.Disabled,null,React.createElement("a",{className:"ht-category-border-2",href:e.link},React.createElement("img",{src:e.image.src,alt:e.name})))):React.createElement("div",{className:"ht-category-image ht-category-image-zoom"},React.createElement(m.Disabled,null,React.createElement("a",{className:"ht-category-border-2",href:e.link},React.createElement("img",{src:e.image.placeholderImg,alt:e.name})))),React.createElement("div",{className:"ht-category-content-3 ht-category-content-3-bg"+s},React.createElement("h3",null,React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},e.name))))),"4"===i&&React.createElement("div",{className:"ht-category-wrap"},""!=e.image.src&&React.createElement("div",{className:"ht-category-image ht-category-image-zoom"},React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},React.createElement("img",{src:e.image.src,alt:e.name})))),React.createElement("div",{className:"ht-category-content-4"},React.createElement("h3",null,React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},e.name)),1==t.showCount&&React.createElement("span",null,e.count)))),"5"===i&&React.createElement("div",{className:"ht-category-wrap"},""!=e.image.src&&React.createElement("div",{className:"ht-category-image-3 ht-category-image-zoom"},React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},React.createElement("img",{src:e.image.src,alt:e.name})))),React.createElement("div",{className:"ht-category-content-5"},React.createElement("h3",null,React.createElement(m.Disabled,null,React.createElement("a",{href:e.link},e.name)))))))}))),React.createElement(y.Fragment,null,o&&React.createElement(vo,this.props),React.createElement("div",{className:w},React.createElement("div",{className:O},0==c.length?React.createElement(m.Spinner,null):1==t.sliderOn?React.createElement(J.a,Oo({},h,{className:"product-slider"}),g):g)))}}])&&Co(t.prototype,n),l}(y.Component),ko=n(19),Po=React.createElement("svg",{"enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m22.5 24h-21c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h21c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-21-23c-.276 0-.5.224-.5.5v21c0 .276.224.5.5.5h21c.276 0 .5-.224.5-.5v-21c0-.276-.224-.5-.5-.5z"}),React.createElement("path",{d:"m23.5 16.5h-23c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h23c.276 0 .5.224.5.5s-.224.5-.5.5z"}),React.createElement("path",{d:"m23.5 8.5h-23c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h23c.276 0 .5.224.5.5s-.224.5-.5.5z"}),React.createElement("path",{d:"m8 24c-.276 0-.5-.224-.5-.5v-23c0-.276.224-.5.5-.5s.5.224.5.5v23c0 .276-.224.5-.5.5z"})),Fo=ko.name,Ao=ko.category,To=ko.attributes,Bo={title:Object(d.__)("WL : Category Grid","woolentor"),description:Object(d.__)("Display product category grid.","woolentor"),icon:React.createElement(m.Icon,{icon:Po}),keywords:["woolentor",Object(d.__)("shop category","woolentor"),Object(d.__)("category grid","woolentor"),Object(d.__)("product category","woolentor"),Object(d.__)("woocommerce","woolentor")],example:{attributes:{style:"1",showCount:!0}},supports:{align:["wide","full"]},attributes:To,edit:So,save:function(){return null}};function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Io(e){return function(e){if(Array.isArray(e))return Lo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lo(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function No(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ho(e,t){return(Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wo(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qo,Uo,Vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Go(o);if(r){var n=Go(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Wo(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={activeClass:!1},t}return t=l,(n=[{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,r=n.setAttributes,a=o.showFirstItem,l={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},i=function(e,t,n){var a=Io(o.faqList);a[n][t]=e,r({faqList:a})};return o.faqList.length&&(e=o.faqList.map((function(e,n){var a=t.state.activeClass===n?"woolentor_active_repeter":"";return React.createElement(y.Fragment,{key:n},React.createElement("div",{className:"woolentor_repeater-fields"},React.createElement("div",{className:"woolentor_repeater-tools",onClick:function(e){return function(e,n){n===t.state.activeClass?t.setState({activeClass:!1}):t.setState({activeClass:n})}(0,n)}},React.createElement("div",{className:"woolentor_repeater-item-title"},o.faqList[n].title),React.createElement("div",{className:"woolentor_repeater-item-remove"},React.createElement(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(d.__)("Delete Marker","woolentor"),onClick:function(){return function(e){var t=Io(o.faqList);t.splice(e,1),r({faqList:t})}(n)}}))),React.createElement("div",{className:a+" woolentor_repeater-controls"},React.createElement(m.TextControl,{label:Object(d.__)("Faq Title","woolentor"),className:"woolentor__marker-title",placeholder:Object(d.__)("Marker Title","woolentor"),value:o.faqList[n].title,onChange:function(e){return i(e,"title",n)}}),React.createElement(m.TextareaControl,{label:Object(d.__)("Faq Content","woolentor"),value:o.faqList[n].content,onChange:function(e){return i(e,"content",n)}}))))}))),React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement(m.PanelBody,{title:Object(d.__)("FAQ","woolentor"),initialOpen:!0},e,React.createElement(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:function(){var e=Io(o.faqList);e.push({title:Object(d.__)("Faq Item #"+(o.faqList.length+1),"woolentor"),content:"",horizontal:"",verticle:""}),r({faqList:e}),t.setState({activeClass:o.faqList.length})}.bind(this)},Object(d.__)("Add FAQ","woolentor"))),React.createElement(m.PanelBody,{title:Object(d.__)("Settings","woolentor"),initialOpen:!1},React.createElement(m.ToggleControl,{label:Object(d.__)("Show First Item","woolentor"),checked:a,help:a?Object(d.__)("Enable first item.","woolentor"):Object(d.__)("Toggle to show the first item.","woolentor"),onChange:function(){return r({showFirstItem:!a})}}),React.createElement(m.SelectControl,{label:Object(d.__)("Icon Position","woolentor"),value:o.iconPosition,options:[{label:Object(d.__)("Left","woolentor"),value:"left"},{label:Object(d.__)("Right","woolentor"),value:"right"}],onChange:function(e){return r({iconPosition:e})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Style","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Title","woolentor")),React.createElement(m.SelectControl,{label:Object(d.__)("Border Type","woolentor"),value:o.titleBorderType,options:[{label:Object(d.__)("None","woolentor"),value:""},{label:Object(d.__)("Solid","woolentor"),value:"solid"},{label:Object(d.__)("Double","woolentor"),value:"double"},{label:Object(d.__)("Dotted","woolentor"),value:"dotted"},{label:Object(d.__)("Dashed","woolentor"),value:"dashed"},{label:Object(d.__)("Groove","woolentor"),value:"groove"}],onChange:function(e){return r({titleBorderType:e})}}),o.titleBorderType&&React.createElement(React.Fragment,null,React.createElement(tt,{lavel:Object(d.__)("Border Width","woolentor"),dimensions:o.titleBorderWidth,attributesKey:"titleBorderWidth",setAttributes:r}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Border Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.titleBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.titleBorderColor,onChange:function(e){return r({titleBorderColor:e})}})),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:o.titleBorderRadius,attributesKey:"titleBorderRadius",setAttributes:r}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.headBackgroundColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.headBackgroundColor,onChange:function(e){return r({headBackgroundColor:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Active Background Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.activeHeadBackgroundColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.activeHeadBackgroundColor,onChange:function(e){return r({activeHeadBackgroundColor:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.faqTitleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.faqTitleColor,onChange:function(e){return r({faqTitleColor:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Active Title Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.activeFaqTitleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.activeFaqTitleColor,onChange:function(e){return r({activeFaqTitleColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:o.titleSize,fallbackFontSize:o.titleSize,onChange:function(e){return r({titleSize:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Icon Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.iconColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.iconColor,onChange:function(e){return r({iconColor:e})}}),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Active Icon Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.activeIconColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.activeIconColor,onChange:function(e){return r({activeIconColor:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Content","woolentor")),React.createElement("h3",{style:{marginTop:15}},Object(d.__)("Color","woolentor"),React.createElement("span",{style:Do(Do({},l),{},{backgroundColor:o.contentColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:o.contentColor,onChange:function(e){return r({contentColor:e})}}),React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:o.contentSize,fallbackFontSize:o.contentSize,onChange:function(e){return r({contentSize:e})}}))))}}])&&No(t.prototype,n),l}(y.Component);function Qo(e){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ko(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Yo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jo(e,t){return(Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zo(e,t){return!t||"object"!==Qo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $o(e){return($o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var er=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$o(o);if(r){var n=$o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Zo(this,e)});function l(){return Yo(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=this.$el.attr("id");new Accordion("#"+e,{duration:500,showItem:this.props.attributes.showFirstItem,elementClass:"htwoolentor-faq-card",questionClass:"htwoolentor-faq-head",answerClass:"htwoolentor-faq-body"})}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes,n=t.faqList;if(e.attributes.faqList!==n||t.showFirstItem!==e.attributes.showFirstItem){this.$el=jQuery(this.el);var o=this.$el.attr("id");new Accordion("#"+o,{duration:500,showItem:t.showFirstItem,elementClass:"htwoolentor-faq-card",questionClass:"htwoolentor-faq-head",answerClass:"htwoolentor-faq-body"}),jQuery(".htwoolentor-faq-card").on("click",(function(e){jQuery(this).toggleClass("is-active")}))}}},{key:"componentWillUnmount",value:function(){this.$el=jQuery(this.el);var e=this.$el.attr("id"),t=jQuery("#"+e);t.accordion&&(t.accordion("destroy"),t.accordion=!1)}},{key:"render",value:function(){var e=this,t=this.props,n=(t.name,t.attributes),o=t.className,r=t.isSelected,a=t.setAttributes,l=t.clientId,i=n.blockUniqId;n.bgProperty,l!==i&&a({blockUniqId:l});var c,s,u,p=function(e){var t=n[e]?n[e]:{},o="";if(""!=t.top||""!=t.right||""!=t.bottom||""!=t.left){var r=t.unit?t.unit:"px";o=t.top?o+t.top+r+" ":"0"+r+" ",o=t.right?o+t.right+r+" ":"0"+r+" ",o=t.bottom?o+t.bottom+r+" ":"0"+r+" ",o=t.left?o+t.left+r+" ":"0"+r+" "}return o},f=V()("htwoolentor-faq",(c={},s="woolentorfaq-icon-pos-".concat(n.iconPosition),u=n.iconPosition,s in c?Object.defineProperty(c,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[s]=u,c)),d=Z.a.div(qo||(qo=Ko(["\n\t\t\t",";\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t\t"," !important;\n\t\t\t& .htwoolentor-faq-head-text{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .htwoolentor-faq-head-indicator:before, .htwoolentor-faq-head-indicator:after{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t"])),n.headBackgroundColor&&"background-color:"+n.headBackgroundColor,n.titleBorderType&&"border-style:"+n.titleBorderType,n.titleBorderWidth&&"border-width:"+p("titleBorderWidth"),n.titleBorderColor&&"border-color:"+n.titleBorderColor,n.titleBorderRadius&&"border-radius:"+p("titleBorderRadius"),n.faqTitleColor&&"color:"+n.faqTitleColor,n.titleSize&&"font-size:"+n.titleSize,n.iconColor&&"background-color:"+n.iconColor),m=Z.a.div(Uo||(Uo=Ko(["\n\t\t\t",";\n\n\t\t\t& p{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t"])),n.contentColor&&"color:"+n.contentColor,n.contentSize&&"font-size:"+n.contentSize),b=React.createElement("span",{className:"htwoolentor-faq-head-indicator"}),g=n.faqList.map((function(e,t){var o=e.title?React.createElement("span",{class:"htwoolentor-faq-head-text"},e.title):"";return React.createElement("div",{key:t,className:"htwoolentor-faq-card"},"right"===n.iconPosition?React.createElement(d,{className:"htwoolentor-faq-head"},o,b):React.createElement(d,{className:"htwoolentor-faq-head"},b,o),React.createElement("div",{className:"htwoolentor-faq-body"},React.createElement(m,{className:"htwoolentor-faq-content"},e.content&&React.createElement("p",null,e.content))))}));return React.createElement(y.Fragment,null,r&&React.createElement(Vo,this.props),React.createElement("div",{className:o},React.createElement("div",{className:f,id:"htwoolentor-faq-"+i+Math.random().toString(36).substr(2,9),ref:function(t){return e.el=t}},g)))}}])&&Xo(t.prototype,n),l}(y.Component),tr=n(20),nr=React.createElement("svg",{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",space:"preserve"},React.createElement("g",null,React.createElement("path",{d:"M256,0C114.516,0,0,114.497,0,256c0,141.484,114.497,256,256,256c141.484,0,256-114.497,256-256\r C512,114.516,397.503,0,256,0z M256,472c-119.377,0-216-96.607-216-216c0-119.377,96.607-216,216-216\r c119.377,0,216,96.607,216,216C472,375.377,375.393,472,256,472z"}),React.createElement("path",{d:"M256,128.5c-44.112,0-80,35.888-80,80c0,11.046,8.954,20,20,20s20-8.954,20-20c0-22.056,17.944-40,40-40\r c22.056,0,40,17.944,40,40c0,22.056-17.944,40-40,40c-11.046,0-20,8.954-20,20v50c0,11.046,8.954,20,20,20\r c11.046,0,20-8.954,20-20v-32.531c34.466-8.903,60-40.26,60-77.469C336,164.388,300.112,128.5,256,128.5z"}))),or=tr.name,rr=tr.category,ar=tr.attributes,lr={title:Object(d.__)("WL : FAQ","woolentor"),description:Object(d.__)("Display faq.","woolentor"),icon:React.createElement(m.Icon,{icon:nr}),keywords:[Object(d.__)("WooLentor","woolentor"),Object(d.__)("faq","woolentor"),Object(d.__)("accordion","woolentor"),Object(d.__)("question","woolentor"),Object(d.__)("answer","woolentor")],example:{},supports:{align:["wide","full"]},attributes:ar,edit:er,save:function(){return null}};function ir(e){return(ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function fr(e,t){return(fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dr(e,t){return!t||"object"!==ir(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var br,gr,hr,yr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mr(o);if(r){var n=mr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return dr(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={activeTab:"general",titleTab:"normal",actionBtnTab:"normal"},t}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,o=t.setAttributes,r=n.productFilterType,a=n.perPage,l=n.customOrder,i=n.orderBy,c=n.order,s=n.selectedCategories,u={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},p=function(t,n,o){e.setState(ur({},n,o))};return React.createElement(y.Fragment,null,React.createElement(T.InspectorControls,null,React.createElement("div",{className:"woolentor-tabs-menu"},React.createElement(m.ButtonGroup,{className:"woolentor-tabs-menu-btn-group"},React.createElement(m.Button,{className:"general"===this.state.activeTab?"woolentor-tab-menu-item woolentor-tab-menu-active":"woolentor-tab-menu-item",icon:"admin-tools",value:"general",isPrimary:"general"===this.state.activeTab,isSecondary:"general"!==this.state.activeTab,onClick:function(e){return p(0,"activeTab","general")}},Object(d.__)("General","woolentor")),React.createElement(m.Button,{className:"styles"===this.state.activeTab?"woolentor-tab-menu-item woolentor-tab-menu-active":"woolentor-tab-menu-item",icon:"chart-pie",value:"styles",isPrimary:"styles"===this.state.activeTab,isSecondary:"styles"!==this.state.activeTab,onClick:function(e){return p(0,"activeTab","styles")}},Object(d.__)("Styles","woolentor")),React.createElement(m.Button,{className:"advanced"===this.state.activeTab?"woolentor-tab-menu-item woolentor-tab-menu-active":"woolentor-tab-menu-item",icon:"admin-generic",value:"advanced",isPrimary:"advanced"===this.state.activeTab,isSecondary:"advanced"!==this.state.activeTab,onClick:function(e){return p(0,"activeTab","advanced")}},Object(d.__)("Advanced","woolentor")))),React.createElement("div",{className:"woolentor-tabs-content"},"general"===this.state.activeTab&&React.createElement(React.Fragment,null,React.createElement(m.PanelBody,{title:Object(d.__)("Layout","woolentor"),initialOpen:!0},React.createElement(m.SelectControl,{label:Object(d.__)("Layout","woolentor"),value:n.layout,options:[{label:Object(d.__)("Layout One","woolentor"),value:"1"},{label:Object(d.__)("Layout Two","woolentor"),value:"2"},{label:Object(d.__)("Layout Three","woolentor"),value:"3"}],onChange:function(e){return o({layout:e})}}),React.createElement(m.RangeControl,{label:Object(d.__)("Columns","woolentor"),value:n.columns,onChange:function(e){return o({columns:e})},min:1,step:1,max:6}),React.createElement(m.ToggleControl,{label:Object(d.__)("No Gutters","woolentor"),checked:n.noGutter,help:n.noGutter?Object(d.__)("Enable No Gutters.","woolentor"):Object(d.__)("Toggle to show the Gutters.","woolentor"),onChange:function(){return o({noGutter:!n.noGutter})}}),!n.noGutter&&React.createElement(m.RangeControl,{label:Object(d.__)("Gutter Spacing","woolentor"),value:n.itemSpace,onChange:function(e){return o({itemSpace:e})},min:0,step:1,max:200}),React.createElement(m.RangeControl,{label:Object(d.__)("Margin Bottom","woolentor"),value:n.itemMarginBottom,onChange:function(e){return o({itemMarginBottom:e})},min:0,step:1,max:1e3})),React.createElement(m.PanelBody,{title:Object(d.__)("Query Options","woolentor"),initialOpen:!1},React.createElement(m.SelectControl,{label:Object(d.__)("Filter By","woolentor"),value:r,options:[{label:Object(d.__)("Recent Products","woolentor"),value:"recent"},{label:Object(d.__)("Featured Products","woolentor"),value:"featured"},{label:Object(d.__)("Best Selling Products","woolentor"),value:"best_selling"},{label:Object(d.__)("Sale Products","woolentor"),value:"sale"},{label:Object(d.__)("Top Rated Products","woolentor"),value:"top_rated"},{label:Object(d.__)("Mixed order Products","woolentor"),value:"mixed_order"}],onChange:function(e){return o({productFilterType:e})}}),React.createElement(m.RangeControl,{label:Object(d.__)("Number Of Products","woolentor"),value:a,onChange:function(e){return o({perPage:e})},min:1,step:1,max:1e3}),React.createElement(m.ToggleControl,{label:Object(d.__)("Custom Order","woolentor"),checked:l,help:l?Object(d.__)("Enable custom order.","woolentor"):Object(d.__)("Toggle to show the custom order.","woolentor"),onChange:function(){return o({customOrder:!l})}}),React.createElement(A,{title:Object(d.__)("Product Categories","woolentor"),attributesKey:"selectedCategories",setAttributes:o,selectedTaxonomies:s,type:"multiple"}),l?React.createElement(React.Fragment,null,React.createElement(m.SelectControl,{label:Object(d.__)("Order","woolentor"),value:c,options:[{label:Object(d.__)("Descending","woolentor"),value:"DESC"},{label:Object(d.__)("Ascending","woolentor"),value:"ASC"}],onChange:function(e){return o({order:e})}}),React.createElement(m.SelectControl,{label:Object(d.__)("Orderby","woolentor"),value:i,options:[{label:Object(d.__)("None","woolentor"),value:"none"},{label:Object(d.__)("ID","woolentor"),value:"ID"},{label:Object(d.__)("Date","woolentor"),value:"date"},{label:Object(d.__)("Name","woolentor"),value:"name"},{label:Object(d.__)("Title","woolentor"),value:"title"},{label:Object(d.__)("Comment count","woolentor"),value:"comment_count"},{label:Object(d.__)("Random","woolentor"),value:"rand"}],onChange:function(e){return o({orderBy:e})}})):""),React.createElement(m.PanelBody,{title:Object(d.__)("Content Settings","woolentor"),initialOpen:!1},React.createElement(m.RangeControl,{label:Object(d.__)("Content Limit","woolentor"),value:n.contentLimit,onChange:function(e){return o({contentLimit:e})},min:1,step:1,max:1e3}),React.createElement(m.ToggleControl,{label:Object(d.__)("Show Title","woolentor"),checked:n.showTitle,help:n.showTitle?Object(d.__)("Enable Title.","woolentor"):Object(d.__)("Toggle to show the title.","woolentor"),onChange:function(){return o({showTitle:!n.showTitle})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Show Price","woolentor"),checked:n.showPrice,help:n.showPrice?Object(d.__)("Enable Price.","woolentor"):Object(d.__)("Toggle to show the price.","woolentor"),onChange:function(){return o({showPrice:!n.showPrice})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Show Content","woolentor"),checked:n.showContent,help:n.showContent?Object(d.__)("Enable Content.","woolentor"):Object(d.__)("Toggle to show the content.","woolentor"),onChange:function(){return o({showContent:!n.showContent})}}),React.createElement(m.ToggleControl,{label:Object(d.__)("Show Rating","woolentor"),checked:n.showRating,help:n.showRating?Object(d.__)("Enable Rating.","woolentor"):Object(d.__)("Toggle to show the rating.","woolentor"),onChange:function(){return o({showRating:!n.showRating})}}))),"styles"===this.state.activeTab&&React.createElement(React.Fragment,null,React.createElement(m.PanelBody,{title:Object(d.__)("Item","woolentor"),initialOpen:!1},React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.itemAreaBGColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.itemAreaBGColor,onChange:function(e){return o({itemAreaBGColor:e})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Title","woolentor"),initialOpen:!1},React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:n.titleSize,fallbackFontSize:n.titleSize,onChange:function(e){return o({titleSize:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:n.titleMargin,attributesKey:"titleMargin",setAttributes:o}),React.createElement(m.ButtonGroup,{className:"woolentor-tabs-menu-btn-group"},React.createElement(m.Button,{className:"normal"===this.state.titleTab?"woolentor-elements-tab-menu-item tab-menu-active":"woolentor-elements-tab-menu-item",value:"normal",isPrimary:"normal"===this.state.activeTab,isSecondary:"normal"!==this.state.activeTab,onClick:function(e){return p(0,"titleTab","normal")}},Object(d.__)("Normal","woolentor")),React.createElement(m.Button,{className:"hover"===this.state.titleTab?"woolentor-elements-tab-menu-item tab-menu-active":"woolentor-elements-tab-menu-item",value:"hover",isPrimary:"hover"===this.state.activeTab,isSecondary:"hover"!==this.state.activeTab,onClick:function(e){return p(0,"titleTab","hover")}},Object(d.__)("Hover","woolentor"))),"normal"===this.state.titleTab&&React.createElement("div",{className:"woolentor-element-tab-content"},React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.titleColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.titleColor,onChange:function(e){return o({titleColor:e})}})),"hover"===this.state.titleTab&&React.createElement("div",{className:"woolentor-element-tab-content"},React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.titleHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.titleHoverColor,onChange:function(e){return o({titleHoverColor:e})}}))),React.createElement(m.PanelBody,{title:Object(d.__)("Price","woolentor"),initialOpen:!1},React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Sale Price","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.salePriceColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.salePriceColor,onChange:function(e){return o({salePriceColor:e})}}),React.createElement("h2",{className:"woolentor-blocks-section-title"},Object(d.__)("Reguler Price","woolentor")),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.regulerPriceColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.regulerPriceColor,onChange:function(e){return o({regulerPriceColor:e})}})),React.createElement(m.PanelBody,{title:Object(d.__)("Content","woolentor"),initialOpen:!1},React.createElement(m.FontSizePicker,{fontSizes:[{name:Object(d.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(d.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(d.__)("Large","woolentor"),slug:"large",size:"24px"}],value:n.contentSize,fallbackFontSize:n.contentSize,onChange:function(e){return o({contentSize:e})}}),React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.cotentColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.cotentColor,onChange:function(e){return o({cotentColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:n.contentMargin,attributesKey:"contentMargin",setAttributes:o})),React.createElement(m.PanelBody,{title:Object(d.__)("Rating","woolentor"),initialOpen:!1},React.createElement("h3",null,Object(d.__)("Empty Rating Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.emptyRatingColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.emptyRatingColor,onChange:function(e){return o({emptyRatingColor:e})}}),React.createElement("h3",null,Object(d.__)("Rating Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.ratingColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.ratingColor,onChange:function(e){return o({ratingColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:n.ratingMargin,attributesKey:"ratingMargin",setAttributes:o})),React.createElement(m.PanelBody,{title:Object(d.__)("Action Button","woolentor"),initialOpen:!1},React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.actionBtnAreaBGColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.actionBtnAreaBGColor,onChange:function(e){return o({actionBtnAreaBGColor:e})}}),React.createElement(m.ButtonGroup,{className:"woolentor-tabs-menu-btn-group"},React.createElement(m.Button,{className:"normal"===this.state.actionBtnTab?"woolentor-elements-tab-menu-item tab-menu-active":"woolentor-elements-tab-menu-item",value:"normal",isPrimary:"normal"===this.state.actionBtnTab,isSecondary:"normal"!==this.state.actionBtnTab,onClick:function(e){return p(0,"actionBtnTab","normal")}},Object(d.__)("Normal","woolentor")),React.createElement(m.Button,{className:"hover"===this.state.actionBtnTab?"woolentor-elements-tab-menu-item tab-menu-active":"woolentor-elements-tab-menu-item",value:"hover",isPrimary:"hover"===this.state.actionBtnTab,isSecondary:"hover"!==this.state.actionBtnTab,onClick:function(e){return p(0,"actionBtnTab","hover")}},Object(d.__)("Hover","woolentor"))),"normal"===this.state.actionBtnTab&&React.createElement("div",{className:"woolentor-element-tab-content"},React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.actionBtnColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.actionBtnColor,onChange:function(e){return o({actionBtnColor:e})}}),React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.actionBtnBGColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.actionBtnBGColor,onChange:function(e){return o({actionBtnBGColor:e})}}),React.createElement(tt,{lavel:Object(d.__)("Border Radius","woolentor"),dimensions:n.actionBtnBorderRadius,attributesKey:"actionBtnBorderRadius",setAttributes:o})),"hover"===this.state.actionBtnTab&&React.createElement("div",{className:"woolentor-element-tab-content"},React.createElement("h3",null,Object(d.__)("Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.actionBtnHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.actionBtnHoverColor,onChange:function(e){return o({actionBtnHoverColor:e})}}),React.createElement("h3",null,Object(d.__)("Background Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.actionBtnBgHoverColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.actionBtnBgHoverColor,onChange:function(e){return o({actionBtnBgHoverColor:e})}}))),React.createElement(m.PanelBody,{title:Object(d.__)("Image","woolentor"),initialOpen:!1},React.createElement("h3",null,Object(d.__)("Border Color","woolentor"),React.createElement("span",{style:sr(sr({},u),{},{backgroundColor:n.imageBorderColor})})),React.createElement(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:n.imageBorderColor,onChange:function(e){return o({imageBorderColor:e})}}))),"advanced"===this.state.activeTab&&React.createElement(React.Fragment,null,React.createElement(m.PanelBody,{title:Object(d.__)("Dimension","woolentor"),initialOpen:!1},React.createElement(tt,{lavel:Object(d.__)("Margin","woolentor"),dimensions:n.areaMargin,attributesKey:"areaMargin",setAttributes:o}),React.createElement(tt,{lavel:Object(d.__)("Padding","woolentor"),dimensions:n.areaPadding,attributesKey:"areaPadding",setAttributes:o})),React.createElement(m.PanelBody,{title:Object(d.__)("Background","woolentor"),initialOpen:!1},React.createElement(Mt,{title:Object(d.__)("Background Image","woolentor"),attributesKey:"areaBGProperty",setAttributes:o,bgProperty:n.areaBGProperty}))))))}}])&&pr(t.prototype,n),l}(y.Component);function vr(e){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Or(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Cr(e,t){return(Cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Er(e,t){return!t||"object"!==vr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rr(e){return(Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cr(e,t)}(l,e);var t,n,o,r,a=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Rr(o);if(r){var n=Rr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Er(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={productData:[]},t}return t=l,(n=[{key:"componentDidMount",value:function(){this.fetchProductsData()}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes,n=t.perPage,o=t.productFilterType,r=t.customOrder,a=this.props.attributes.orderBy,l=this.props.attributes.order,i=this.props.attributes.selectedCategories;e.attributes.perPage==n&&e.attributes.productFilterType==o&&e.attributes.customOrder==r&&e.attributes.orderBy==a&&e.attributes.order==l&&e.attributes.selectedCategories==i||this.fetchProductsData()}},{key:"componentWillUnmount",value:function(){}},{key:"fetchProductsData",value:function(){var e=this,t={perPage:this.props.attributes.perPage,filterBy:this.props.attributes.productFilterType,wpnonce:woolentorData.security};1==this.props.attributes.customOrder&&(t.orderBy=this.props.attributes.orderBy,t.order=this.props.attributes.order),this.props.attributes.selectedCategories.length>0&&(t.categories=this.props.attributes.selectedCategories);var n=Object(Y.addQueryArgs)("/woolentor/v1/products",t);K()({path:n}).then((function(t){return e.setState({productData:t})}))}},{key:"render",value:function(){var e=this.props,t=(e.name,e.attributes),n=e.className,o=e.isSelected,r=e.setAttributes,a=e.clientId,l=t.blockUniqId,i=t.areaBGProperty;a!==l&&r({blockUniqId:a});var c,s=function(e){var n=t[e]?t[e]:{},o="";if(""!=n.top||""!=n.right||""!=n.bottom||""!=n.left){var r=n.unit?n.unit:"px";o=n.top?o+n.top+r+" ":"0"+r+" ",o=n.right?o+n.right+r+" ":"0"+r+" ",o=n.bottom?o+n.bottom+r+" ":"0"+r+" ",o=n.left?o+n.left+r+" ":"0"+r+" "}return o},u=V()("woocommerce","woolentor-product-curvy",Or({},"woolentor-columns-".concat(t.columns),t.columns)),p=V()(Or({},"woolentor-col-".concat(t.columns),t.columns)),f=V()("wl_single-product-item",Or({},"wl_left-item",2==t.layout),Or({},"wl_dark-item",3==t.layout)),d=Z.a.div(br||(br=wr(["\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t"])),t.areaMargin&&"margin:"+s("areaMargin"),t.areaPadding&&"padding:"+s("areaPadding"),i.imageUrl&&"background-image:url("+i.imageUrl+")",i.position&&"background-position:"+i.position,i.attachment&&"background-attachment:"+i.attachment,i.repeat&&"background-repeat:"+i.repeat,i.size&&"background-size:"+i.size),b=Z.a.div(gr||(gr=wr(["\n\t\t\t"," !important;\n\t\t\t","\n\t\t"])),!t.noGutter&&"padding: 0 "+t.itemSpace+"px 0 "+t.itemSpace+"px",t.itemMarginBottom&&"margin-bottom:"+t.itemMarginBottom+"px;"),g=Z.a.div(hr||(hr=wr(["\n\t\t\t",";\n\n\t\t\t&.wl_dark-item .product-content{\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& .product-content .product-content-top .title{\n\t\t\t\t"," !important;\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\t& .product-content .product-content-top .title a{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\t& .product-content .product-content-top .title a:hover{\n\t\t\t\t"," !important;\n\t\t\t}\n\n\t\t\t& .product-content .product-content-top .product-price{\n\t\t\t\t"," !important;\n\t\t\t}\n\n\t\t\t& .product-content .product-content-top .product-price del{\n\t\t\t\t"," !important;\n\t\t\t}\n\n\t\t\t& .product-content .product-content-top p{\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& .product-content .product-content-top .star-rating{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-content .product-content-top .star-rating::before{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-content .product-content-top .star-rating span{\n\t\t\t\t",";\n\t\t\t}\n\t\t\t& .product-content .product-content-top .star-rating {\n\t\t\t\t",";\n\t\t\t}\n\n\t\t\t& .product-content .action{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\t& .product-content .action li a, .product-content .action li .woolentor-compare.compare::before{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\t& .product-content .action li a{\n\t\t\t\t"," !important;\n\t\t\t\t"," !important;\n\t\t\t}\n\n\t\t\t& .product-content .action li a:hover, .product-content .action li .woolentor-compare.compare:hover::before{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\t& .product-content .action li a:hover{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\t& .product-thumbnail{\n\t\t\t\t"," !important;\n\t\t\t}\n\t\t\n\t\t"])),t.itemAreaBGColor&&"background-color:"+t.itemAreaBGColor,t.itemAreaBGColor&&"background-color:"+t.itemAreaBGColor,t.titleSize&&"font-size:"+t.titleSize,t.titleMargin&&"margin:"+s("titleMargin"),t.titleColor&&"color:"+t.titleColor,t.titleHoverColor&&"color:"+t.titleHoverColor,t.salePriceColor&&"color:"+t.salePriceColor,t.regulerPriceColor&&"color:"+t.regulerPriceColor,t.cotentColor&&"color:"+t.cotentColor,t.contentSize&&"font-size:"+t.contentSize,t.contentMargin&&"margin:"+s("contentMargin"),t.emptyRatingColor&&"color:"+t.emptyRatingColor,t.emptyRatingColor&&"color:"+t.emptyRatingColor,t.ratingColor&&"color:"+t.ratingColor,t.ratingMargin&&"margin:"+s("ratingMargin"),t.actionBtnAreaBGColor&&"background-color:"+t.actionBtnAreaBGColor,t.actionBtnColor&&"color:"+t.actionBtnColor,t.actionBtnBGColor&&"background-color:"+t.actionBtnBGColor,t.actionBtnBorderRadius&&"border-radius:"+s("actionBtnBorderRadius"),t.actionBtnHoverColor&&"color:"+t.actionBtnHoverColor,t.actionBtnBgHoverColor&&"background-color:"+t.actionBtnBgHoverColor,t.imageBorderColor&&"border-color:"+t.imageBorderColor),h=this.state.productData;return h.length>0&&(c=h.map((function(e,n){return React.createElement(b,{className:p},React.createElement(g,{className:f},React.createElement(m.Disabled,null,React.createElement("a",{href:e.permalink,className:"product-thumbnail"},Object(y.createElement)("div",{className:"images",dangerouslySetInnerHTML:{__html:e.image.full.html}}))),React.createElement("div",{className:"product-content"},React.createElement("div",{className:"product-content-top"},!0===t.showTitle&&React.createElement("h6",{className:"title"},React.createElement("a",{href:e.permalink},e.title)),!0===t.showPrice&&Object(y.createElement)("div",{className:"product-price",dangerouslySetInnerHTML:{__html:e.price_html}}),!0===t.showContent&&React.createElement("p",null,e.content.split(" ").slice(0,t.contentLimit).join(" ")),!0===t.showRating&&Object(y.createElement)("div",{className:"reading",dangerouslySetInnerHTML:{__html:e.rating.html}})),React.createElement("ul",{className:"action"},React.createElement("li",{className:"wl_cart"},React.createElement("a",{href:e.addtocart.link,"data-quantity":"1",className:"action-item"+e.addtocart.class,"data-product_id":e.id},React.createElement("i",{class:"fa fa-shopping-cart"}))),e.wishlist.status&&Object(y.createElement)("li",{dangerouslySetInnerHTML:{__html:e.wishlist.html}}),e.compare.status&&Object(y.createElement)("li",{dangerouslySetInnerHTML:{__html:e.compare.html}})))))}))),React.createElement(y.Fragment,null,o&&React.createElement(yr,this.props),React.createElement(d,{className:n},React.createElement("div",{className:u},0==h.length?React.createElement(m.Spinner,null):React.createElement("div",{className:!0===t.noGutter?"woolentor-row wlno-gutters":"woolentor-row"},c))))}}])&&_r(t.prototype,n),l}(y.Component),Sr=n(21),kr=React.createElement("svg",{id:"Capa_1","enable-background":"new 0 0 512 512",height:"512",viewBox:"0 0 512 512",width:"512",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",null,React.createElement("path",{d:"m166.717 225.43c-4.309 0-7.802 3.493-7.802 7.802s3.493 7.802 7.802 7.802 7.803-3.493 7.803-7.802-3.494-7.802-7.803-7.802z"}),React.createElement("path",{d:"m166.717 263.74c-4.309 0-7.802 3.493-7.802 7.803 0 4.309 3.493 7.802 7.802 7.802s7.803-3.493 7.803-7.802c-.001-4.31-3.494-7.803-7.803-7.803z"}),React.createElement("path",{d:"m166.717 302.049c-4.309 0-7.802 3.493-7.802 7.802s3.493 7.802 7.802 7.802 7.803-3.493 7.803-7.802c-.001-4.309-3.494-7.802-7.803-7.802z"}),React.createElement("path",{d:"m302.846 63.778h-90.035l-2.93-21.993c-.497-3.727-3.675-6.51-7.435-6.51h-17.57c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h11.003l2.93 21.993c.003.022.008.043.012.064.003.018.002.036.005.053l7.994 53.55c.549 3.674 3.703 6.393 7.418 6.393h80.614c3.715 0 6.869-2.719 7.418-6.393l7.994-53.55c.322-2.159-.311-4.351-1.736-6.003-1.425-1.654-3.5-2.604-5.682-2.604zm-14.458 53.55h-67.686l-5.755-38.55h79.196z"}),React.createElement("path",{d:"m248.916 165.704c0-12.407-10.094-22.5-22.5-22.5s-22.5 10.093-22.5 22.5 10.094 22.5 22.5 22.5 22.5-10.093 22.5-22.5zm-30 0c0-4.136 3.364-7.5 7.5-7.5s7.5 3.364 7.5 7.5-3.364 7.5-7.5 7.5-7.5-3.364-7.5-7.5z"}),React.createElement("path",{d:"m282.673 143.204c-12.406 0-22.5 10.093-22.5 22.5s10.094 22.5 22.5 22.5 22.5-10.093 22.5-22.5-10.094-22.5-22.5-22.5zm0 30c-4.136 0-7.5-3.364-7.5-7.5s3.364-7.5 7.5-7.5 7.5 3.364 7.5 7.5-3.364 7.5-7.5 7.5z"}),React.createElement("path",{d:"m279.948 225.733h-81.378c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h81.378c4.142 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5z"}),React.createElement("path",{d:"m279.948 264.042h-81.378c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h81.378c4.142 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5z"}),React.createElement("path",{d:"m279.948 302.351h-81.378c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h81.378c4.142 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5z"}),React.createElement("g",null,React.createElement("path",{d:"m484.615 88.534h-84.393v-66.614c0-9.951-8.096-18.047-18.047-18.047h-252.349c-9.951 0-18.048 8.096-18.048 18.047v66.614h-19.645c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h19.646v259.248h-96.779v-246.862c0-6.83 5.557-12.386 12.386-12.386h34.747c4.143 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-34.747c-15.101 0-27.386 12.286-27.386 27.386v291.442c0 15.1 12.285 27.385 27.386 27.385h166.31l-8.039 58.38h-24.209c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h189.248c4.143 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-24.209l-8.039-58.38h55.225c4.142 0 7.5-3.358 7.5-7.5s-3.358-7.5-7.5-7.5h-346.287c-6.829 0-12.386-5.556-12.386-12.385v-29.58h482v29.58c0 6.829-5.556 12.385-12.385 12.385h-80.942c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h80.942c15.1 0 27.385-12.285 27.385-27.385v-291.442c0-15.1-12.285-27.386-27.385-27.386zm-173.269 404.593h-110.548l8.039-58.38h94.47zm75.208-186.168c-28.917 0-52.443-23.526-52.443-52.443s23.526-52.444 52.443-52.444 52.443 23.526 52.443 52.444-23.526 52.443-52.443 52.443zm-259.776-285.039c0-1.68 1.367-3.047 3.048-3.047h252.349c1.68 0 3.047 1.367 3.047 3.047v165.186c-36.574.715-66.111 30.669-66.111 67.41s29.537 66.695 66.111 67.41v40.61h-258.444zm273.444 340.863v-42.217c30.658-6.335 53.775-33.542 53.775-66.049s-23.118-59.714-53.775-66.05v-84.932h84.393c6.829 0 12.385 5.556 12.385 12.386v246.862z"}),React.createElement("path",{d:"m394.221 246.215c-4.215-1.49-10.156-1.779-12.221-5.464-.154-.191-.159-1.161.199-2.321.211-.685.763-1.893 2.083-2.291 1.891-.57 4.118-.173 6.035.466 2.912.971 6.118-.031 8.046-2.418.044-.054.087-.107.13-.162 3.168-3.921 1.627-9.835-3.085-11.626-.542-.206-1.099-.395-1.671-.567v-2.359c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v2.722c-5.865 2.243-10.182 7.478-11.399 13.944-1.211 6.425.935 12.69 5.601 16.349 4.315 3.385 10.376 5.783 16.283 7.872 2.59.915 3.688 2.655 3.266 5.17-.332 1.975-2.032 5.324-6.3 5.352-4.606.03-5.695-.139-9.043-2.329-3.712-2.427-8.775-1.144-10.826 2.94-1.733 3.451-.383 7.68 2.861 9.774 3.572 2.307 6.456 3.498 9.557 4.088v3.177c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-4.032c6.961-2.626 12.247-8.778 13.543-16.485 1.631-9.702-3.617-18.462-13.059-21.8z"})))),Pr=Sr.name,Fr=Sr.category,Ar=Sr.attributes,Tr={title:Object(d.__)("WL : Product Curvy","woolentor"),description:Object(d.__)("Product Curvy.","woolentor"),icon:React.createElement(m.Icon,{icon:kr}),keywords:[Object(d.__)("WooLentor","woolentor"),Object(d.__)("product","woolentor"),Object(d.__)("curvy","woolentor"),Object(d.__)("woocommerce","woolentor"),Object(d.__)("display product","woolentor")],example:{attributes:{columns:"2",perPage:"2"}},supports:{align:["wide","full"]},attributes:Ar,edit:jr,save:function(){return null}};function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zr=function(e){if(e){var t=e.name,n=e.category,o=e.settings;Object(f.registerBlockType)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(n),!0).forEach((function(t){xr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({category:n},o))}},Dr=function(){[o,r,a,l,i,c,s,u,p].forEach(zr)};Dr()}]);
woolentor-blocks/build/index.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=40)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.React},function(e,t,o){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===l)if(n.toString===Object.prototype.toString)for(var i in n)o.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.data},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=c,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=t.safePreventDefault=void 0;var n,r=(n=o(4))&&n.__esModule?n:{default:n};function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){i(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function c(e,t,o){return Math.max(t,Math.min(e,o))}var s=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=s;var u=function(e){for(var t=[],o=d(e),n=b(e),r=o;r<n;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t};t.getOnDemandLazySlides=u,t.getRequiredLazySlides=function(e){for(var t=[],o=d(e),n=b(e),r=o;r<n;r++)t.push(r);return t};var d=function(e){return e.currentSlide-m(e)};t.lazyStartIndex=d;var b=function(e){return e.currentSlide+p(e)};t.lazyEndIndex=b;var m=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=m;var p=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=p;var g=function(e){return e&&e.offsetWidth||0};t.getWidth=g;var f=function(e){return e&&e.offsetHeight||0};t.getHeight=f;var h=function(e){var t,o,n,r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,o=e.startY-e.curY,n=Math.atan2(o,t),(r=Math.round(180*n/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===l?r>=35&&r<=135?"up":"down":"vertical"};t.getSwipeDirection=h;var O=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=O,t.extractObject=function(e,t){var o={};return t.forEach((function(t){return o[t]=e[t]})),o},t.initializedState=function(e){var t,o=r.default.Children.count(e.children),n=e.listRef,l=Math.ceil(g(n)),i=e.trackRef&&e.trackRef.node,c=Math.ceil(g(i));if(e.vertical)t=l;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=l/100),t=Math.ceil((l-s)/e.slidesToShow)}var d=n&&f(n.querySelector('[data-index="0"]')),b=d*e.slidesToShow,m=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(m=o-1-e.initialSlide);var p=e.lazyLoadedList||[],h=u(a(a({},e),{},{currentSlide:m,lazyLoadedList:p})),O={slideCount:o,slideWidth:t,listWidth:l,trackWidth:c,currentSlide:m,slideHeight:d,listHeight:b,lazyLoadedList:p=p.concat(h)};return null===e.autoplaying&&e.autoplay&&(O.autoplaying="playing"),O},t.slideHandler=function(e){var t=e.waitForAnimate,o=e.animating,n=e.fade,r=e.infinite,l=e.index,i=e.slideCount,s=e.lazyLoad,d=e.currentSlide,b=e.centerMode,m=e.slidesToScroll,p=e.slidesToShow,g=e.useCSS,f=e.lazyLoadedList;if(t&&o)return{};var h,j,w,y=l,v={},k={},S=r?l:c(l,0,i-1);if(n){if(!r&&(l<0||l>=i))return{};l<0?y=l+i:l>=i&&(y=l-i),s&&f.indexOf(y)<0&&(f=f.concat(y)),v={animating:!0,currentSlide:y,lazyLoadedList:f,targetSlide:y},k={animating:!1,targetSlide:y}}else h=y,y<0?(h=y+i,r?i%m!=0&&(h=i-i%m):h=0):!O(e)&&y>d?y=h=d:b&&y>=i?(y=r?i:i-1,h=r?0:i-1):y>=i&&(h=y-i,r?i%m!=0&&(h=0):h=i-p),!r&&y+p>=i&&(h=i-p),j=E(a(a({},e),{},{slideIndex:y})),w=E(a(a({},e),{},{slideIndex:h})),r||(j===w&&(y=h),j=w),s&&(f=f.concat(u(a(a({},e),{},{currentSlide:y})))),g?(v={animating:!0,currentSlide:h,trackStyle:C(a(a({},e),{},{left:j})),lazyLoadedList:f,targetSlide:S},k={animating:!1,currentSlide:h,trackStyle:_(a(a({},e),{},{left:w})),swipeLeft:null,targetSlide:S}):v={currentSlide:h,trackStyle:_(a(a({},e),{},{left:w})),lazyLoadedList:f,targetSlide:S};return{state:v,nextState:k}},t.changeSlide=function(e,t){var o,n,r,l,i=e.slidesToScroll,c=e.slidesToShow,s=e.slideCount,u=e.currentSlide,d=e.targetSlide,b=e.lazyLoad,m=e.infinite;if(o=s%i!=0?0:(s-u)%i,"previous"===t.message)l=u-(r=0===o?i:c-o),b&&!m&&(l=-1==(n=u-r)?s-1:n),m||(l=d-i);else if("next"===t.message)l=u+(r=0===o?i:o),b&&!m&&(l=(u+i)%s+o),m||(l=d+i);else if("dots"===t.message)l=t.index*t.slidesToScroll;else if("children"===t.message){if(l=t.index,m){var p=F(a(a({},e),{},{targetSlide:l}));l>t.currentSlide&&"left"===p?l-=s:l<t.currentSlide&&"right"===p&&(l+=s)}}else"index"===t.message&&(l=Number(t.index));return l},t.keyHandler=function(e,t,o){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?o?"next":"previous":39===e.keyCode?o?"previous":"next":""},t.swipeStart=function(e,t,o){return"IMG"===e.target.tagName&&s(e),!t||!o&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var o=t.scrolling,n=t.animating,r=t.vertical,l=t.swipeToSlide,i=t.verticalSwiping,c=t.rtl,u=t.currentSlide,d=t.edgeFriction,b=t.edgeDragged,m=t.onEdge,p=t.swiped,g=t.swiping,f=t.slideCount,j=t.slidesToScroll,w=t.infinite,y=t.touchObject,v=t.swipeEvent,C=t.listHeight,k=t.listWidth;if(!o){if(n)return s(e);r&&l&&i&&s(e);var S,A={},F=E(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var T=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!i&&!g&&T>10)return{scrolling:!0};i&&(y.swipeLength=T);var x=(c?-1:1)*(y.curX>y.startX?1:-1);i&&(x=y.curY>y.startY?1:-1);var P=Math.ceil(f/j),B=h(t.touchObject,i),z=y.swipeLength;return w||(0===u&&("right"===B||"down"===B)||u+1>=P&&("left"===B||"up"===B)||!O(t)&&("left"===B||"up"===B))&&(z=y.swipeLength*d,!1===b&&m&&(m(B),A.edgeDragged=!0)),!p&&v&&(v(B),A.swiped=!0),S=r?F+z*(C/k)*x:c?F-z*x:F+z*x,i&&(S=F+z*x),A=a(a({},A),{},{touchObject:y,swipeLeft:S,trackStyle:_(a(a({},t),{},{left:S}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)||y.swipeLength>10&&(A.swiping=!0,s(e)),A}},t.swipeEnd=function(e,t){var o=t.dragging,n=t.swipe,r=t.touchObject,l=t.listWidth,i=t.touchThreshold,c=t.verticalSwiping,u=t.listHeight,d=t.swipeToSlide,b=t.scrolling,m=t.onSwipe,p=t.targetSlide,g=t.currentSlide,f=t.infinite;if(!o)return n&&s(e),{};var O=c?u/i:l/i,j=h(r,c),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(b)return v;if(!r.swipeLength)return v;if(r.swipeLength>O){var _,k;s(e),m&&m(j);var S=f?g:p;switch(j){case"left":case"up":k=S+y(t),_=d?w(t,k):k,v.currentDirection=0;break;case"right":case"down":k=S-y(t),_=d?w(t,k):k,v.currentDirection=1;break;default:_=S}v.triggerSlideHandler=_}else{var A=E(t);v.trackStyle=C(a(a({},t),{},{left:A}))}return v};var j=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,o=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,r=[];o<t;)r.push(o),o=n+e.slidesToScroll,n+=Math.min(e.slidesToScroll,e.slidesToShow);return r};t.getNavigableIndexes=j;var w=function(e,t){var o=j(e),n=0;if(t>o[o.length-1])t=o[o.length-1];else for(var r in o){if(t<o[r]){t=n;break}n=o[r]}return t};t.checkNavigable=w;var y=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var o,n=e.listRef,r=n.querySelectorAll&&n.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(n){if(e.vertical){if(n.offsetTop+f(n)/2>-1*e.swipeLeft)return o=n,!1}else if(n.offsetLeft-t+g(n)/2>-1*e.swipeLeft)return o=n,!1;return!0})),!o)return 0;var l=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(o.dataset.index-l)||1}return e.slidesToScroll};t.getSlideCount=y;var v=function(e,t){return t.reduce((function(t,o){return t&&e.hasOwnProperty(o)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=v;var _=function(e){var t,o;v(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n=e.slideCount+2*e.slidesToShow;e.vertical?o=n*e.slideHeight:t=A(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",c=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=a(a({},r),{},{WebkitTransform:l,transform:i,msTransform:c})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),o&&(r.height=o),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r};t.getTrackCSS=_;var C=function(e){v(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=_(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=C;var E=function(e){if(e.unslick)return 0;v(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,o,n=e.slideIndex,r=e.trackRef,l=e.infinite,a=e.centerMode,i=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,b=e.variableWidth,m=e.slideHeight,p=e.fade,g=e.vertical;if(p||1===e.slideCount)return 0;var f=0;if(l?(f=-k(e),i%s!=0&&n+s>i&&(f=-(n>i?c-(n-i):i%s)),a&&(f+=parseInt(c/2))):(i%s!=0&&n+s>i&&(f=c-i%s),a&&(f=parseInt(c/2))),t=g?n*m*-1+f*m:n*u*-1+f*u,!0===b){var h,O=r&&r.node;if(h=n+k(e),t=(o=O&&O.childNodes[h])?-1*o.offsetLeft:0,!0===a){h=l?n+k(e):n,o=O&&O.children[h],t=0;for(var j=0;j<h;j++)t-=O&&O.children[j]&&O.children[j].offsetWidth;t-=parseInt(e.centerPadding),t+=o&&(d-o.offsetWidth)/2}}return t};t.getTrackLeft=E;var k=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=k;var S=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=S;var A=function(e){return 1===e.slideCount?1:k(e)+e.slideCount+S(e)};t.getTotalSlides=A;var F=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+T(e)?"left":"right":e.targetSlide<e.currentSlide-x(e)?"right":"left"};t.siblingDirection=F;var T=function(e){var t=e.slidesToShow,o=e.centerMode,n=e.rtl,r=e.centerPadding;if(o){var l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),n&&t%2==0&&(l+=1),l}return n?0:t-1};t.slidesOnRight=T;var x=function(e){var t=e.slidesToShow,o=e.centerMode,n=e.rtl,r=e.centerPadding;if(o){var l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),n||t%2!=0||(l+=1),l}return n?t-1:0};t.slidesOnLeft=x,t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.serverSideRender},function(e){e.exports=JSON.parse('{"name":"woolentor/product-tab","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"style":{"type":"string","default":"1"},"columns":{"type":"number","default":4},"rows":{"type":"number","default":1},"productTab":{"type":"boolean","default":false},"slider":{"type":"boolean","default":false},"productFilterType":{"type":"string","default":"recent"},"perPage":{"type":"number","default":4},"customOrder":{"type":"boolean","default":false},"orderBy":{"type":"string","default":"none"},"order":{"type":"string","default":"DESC"},"selectedCategories":{"type":"array","default":[]},"slitems":{"type":"number","default":4},"slarrows":{"type":"boolean","default":true},"sldots":{"type":"boolean","default":false},"slpauseOnHover":{"type":"boolean","default":true},"slautolay":{"type":"boolean","default":false},"slautoplaySpeed":{"type":"number","default":3000},"slanimationSpeed":{"type":"number","default":300},"slscrollItem":{"type":"number","default":3},"sltabletDisplayColumns":{"type":"number","default":2},"sltabletScrollColumns":{"type":"number","default":2},"sltabletWidth":{"type":"number","default":750},"slMobileDisplayColumns":{"type":"number","default":1},"slMobileScrollColumns":{"type":"number","default":1},"slMobileWidth":{"type":"number","default":480},"titleColor":{"type":"string","selector":".product-item .product-inner .content .title a"},"titleHoverColor":{"type":"string","selector":".product-item .product-inner .content .title a:hover"},"titleAlign":{"type":"string","selector":".product-item .product-inner .content .title"},"priceColor":{"type":"string","selector":".product-item .product-inner .content .price"},"actionBtnColor":{"type":"string","selector":".product-item .actions a"},"actionBtnBgColor":{"type":"string","selector":".product-item .actions"},"actionBtnHoverColor":{"type":"string","selector":".product-item .actions a:hover"},"actionBtnHoverBgColor":{"type":"string","selector":".product-item .actions:hover"},"contentAlign":{"type":"string","selector":".product-item .product-inner .content .price"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/promo-banner","category":"woolentor-blocks","attributes":{"style":{"type":"string","default":"1"},"contentAlignment":{"type":"string","default":"left"},"title":{"type":"string","default":"","selector":".banner_title"},"subTitle":{"type":"string","default":"","selector":".banner_subtitle"},"imgId":{"type":"number"},"imgUrl":{"type":"string","source":"attribute","attribute":"src","selector":"img"},"buttonUrl":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"buttonText":{"type":"string","source":"html","selector":"a"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target"},"titleColor":{"type":"string","selector":".woolentor-banner .banner_title"},"titleSize":{"type":"string"},"subTitleColor":{"type":"string","selector":".woolentor-banner .banner_subtitle"},"subTitleSize":{"type":"string"},"buttonColor":{"type":"string","selector":".woolentor-banner .banner_button"},"buttonSize":{"type":"string"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/special-day-offer","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"contentPosition":{"type":"string","default":"center"},"bannerImage":{"type":"object","default":{"id":null,"url":""}},"title":{"type":"string","default":"Banner Title"},"subTitle":{"type":"string","default":"Banner Sub Title"},"bannerDescription":{"type":"string","default":"Banner Description"},"offerAmount":{"type":"string"},"offerTagLine":{"type":"string"},"bannerLink":{"type":"string"},"buttonText":{"type":"string"},"badgeImage":{"type":"object","default":{"id":null,"url":""}},"badgeHorizontalPos":{"type":"number","default":25},"badgeVerticlePos":{"type":"number"},"titleColor":{"type":"string","selector":".wlspcial-banner .banner-content h2"},"titleSize":{"type":"string","selector":".wlspcial-banner .banner-content h2"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h2"},"titlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h2"},"titleSubColor":{"type":"string","selector":".wlspcial-banner .banner-content h6"},"titleSubSize":{"type":"string","selector":".wlspcial-banner .banner-content h6"},"subTitleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"subTitlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"contentAlignment":{"type":"string","selector":".wlspcial-banner .banner-content"},"contentAreaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"contentAreaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"desColor":{"type":"string","selector":".wlspcial-banner .banner-content p"},"desSize":{"type":"string","selector":".wlspcial-banner .banner-content p"},"desMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content p"},"desPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content p"},"offerColor":{"type":"string","selector":".wlspcial-banner .banner-content h5"},"offerSize":{"type":"string","selector":".wlspcial-banner .banner-content h5"},"offerMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h5"},"offerTagColor":{"type":"string","selector":".wlspcial-banner .banner-content h5 span"},"offerTagSize":{"type":"string","selector":".wlspcial-banner .banner-content h5 span"},"offerTagMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content h5 span"},"buttonColor":{"type":"string","selector":".wlspcial-banner .banner-content a"},"buttonHoverColor":{"type":"string","selector":".wlspcial-banner .banner-content a:hover"},"buttonSize":{"type":"string","selector":".wlspcial-banner .banner-content a"},"buttonMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlspcial-banner .banner-content a"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/image-marker","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"bgProperty":{"type":"object","default":{"imageId":null,"imageUrl":"","position":"","attachment":"","repeat":"","size":""}},"style":{"type":"string","default":"1"},"markerList":{"type":"array","default":[{"title":"Marker One","content":"Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.","horizontal":50,"verticle":15},{"title":"Marker Two","content":"Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.","horizontal":40,"verticle":20},{"title":"Marker Three","content":"Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.","horizontal":60,"verticle":30}]},"markerColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer::before"},"markerBGColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerBorderColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerContentBGColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerContentBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerContentPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerTitleColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"},"markerTitleSize":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"},"markerTitleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"},"markerDescriptionColor":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"},"markerDescriptionSize":{"type":"string","selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"},"markerDescriptionMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/store-feature","category":"woolentor-blocks","supports":{"align":true},"attributes":{"blockUniqId":{"type":"string","default":""},"layout":{"type":"string","default":"1"},"featureImage":{"type":"object","default":{"id":null,"url":""}},"title":{"type":"string","default":"Free shipping"},"subTitle":{"type":"string","default":"Start from $100"},"textAlignment":{"type":"string","default":"center"},"areaBorderColor":{"type":"string","selector":".ht-feature-wrap .ht-feature-inner"},"areaHoverBorderColor":{"type":"string","selector":".ht-feature-wrap:hover .ht-feature-inner"},"areaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap"},"areaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap"},"areaBackgroundColor":{"type":"string","selector":".ht-feature-wrap"},"titleColor":{"type":"string","selector":".ht-feature-wrap .ht-feature-content h4"},"titleSize":{"type":"string","selector":".ht-feature-wrap .ht-feature-content h4"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap .ht-feature-content h4"},"subTitleColor":{"type":"string","selector":".ht-feature-wrap .ht-feature-content p"},"subTitleSize":{"type":"string","selector":".ht-feature-wrap .ht-feature-content p"},"subTitleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-feature-wrap .ht-feature-content p"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/brand-logo","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"brandLogoList":{"type":"array","default":[{"title":"Brand Title One","image":{"id":"","url":""}},{"title":"Brand Title Two","image":{"id":"","url":""}},{"title":"Brand Title Three","image":{"id":"","url":""}}]},"columns":{"type":"number","default":6},"noGutter":{"type":"boolean","default":false},"itemSpace":{"type":"number","default":15},"singleItemAreaBorderType":{"type":"string","default":"","selector":".wl-single-brand"},"singleItemAreaBorderWidth":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"singleItemAreaBorderColor":{"type":"string","selector":".wl-single-brand"},"singleItemAreaBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"singleItemAreaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"singleItemAreaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand"},"brandAlignment":{"type":"string","default":"center","selector":".wl-single-brand"},"brandImageBorderType":{"type":"string","default":"","selector":".wl-single-brand img"},"brandImageBorderWidth":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand img"},"brandImageBorderColor":{"type":"string","selector":".wl-single-brand img"},"brandImageBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".wl-single-brand img"}}}')},function(e){e.exports=JSON.parse('{"name":"woolentor/category-grid","category":"woolentor-blocks","attributes":{"blockUniqId":{"type":"string","default":""},"style":{"type":"string","default":"1"},"displayType":{"type":"string","default":"allCat"},"productCategory":{"type":"string"},"productCategories":{"type":"array","default":[]},"order":{"type":"string","default":"asc"},"displayLimit":{"type":"number","default":6},"showCount":{"type":"boolean","default":true},"sliderOn":{"type":"boolean","default":false},"slitems":{"type":"number","default":3},"slarrows":{"type":"boolean","default":true},"sldots":{"type":"boolean","default":false},"slpauseOnHover":{"type":"boolean","default":true},"slIsrtl":{"type":"boolean","default":false},"slautolay":{"type":"boolean","default":false},"slautoplaySpeed":{"type":"number","default":3000},"slanimationSpeed":{"type":"number","default":300},"slscrollItem":{"type":"number","default":3},"sltabletDisplayColumns":{"type":"number","default":2},"sltabletScrollColumns":{"type":"number","default":2},"sltabletWidth":{"type":"number","default":750},"slMobileDisplayColumns":{"type":"number","default":1},"slMobileScrollColumns":{"type":"number","default":1},"slMobileWidth":{"type":"number","default":480},"columns":{"type":"number","default":3},"noGutter":{"type":"boolean","default":false},"itemSpace":{"type":"number","default":15},"areaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"}},"areaBackgroundColor":{"type":"string"},"imageBoxColor":{"type":"string","selector":".ht-category-wrap .ht-category-image a.ht-category-border::before"},"imageMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-category-wrap .ht-category-image"},"imageBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-category-wrap .ht-category-image"},"titleColor":{"type":"string","selector":".ht-category-wrap .ht-category-content h3 a"},"titleHoverColor":{"type":"string","selector":".ht-category-wrap .ht-category-content h3 a:hover"},"titleMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px","link":"yes"},"selector":".ht-category-wrap .ht-category-content h3"},"countColor":{"type":"string"},"countBeforeColor":{"type":"string"}}}')},function(e,t){e.exports=window.wp.primitives},function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var o=0,n=e.length;o<n&&!1!==t(e[o],o);o++);}}},function(e,t){function o(){return e.exports=o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,o.apply(this,arguments)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.url},function(e,t,o){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((n=o(25))&&n.__esModule?n:{default:n}).default;t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(o(4)),r=o(26),l=c(o(33)),a=c(o(35)),i=o(8);function c(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){O(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var j=(0,i.canUseDOM)()&&o(36),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(w,e);var t,o,c,s,d=(c=w,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(c);if(s){var o=h(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return g(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),O(f(t=d.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),O(f(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),O(f(t),"slickNext",(function(){return t.innerSlider.slickNext()})),O(f(t),"slickGoTo",(function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,o)})),O(f(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),O(f(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=w,(o=[{key:"media",value:function(e,t){j.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(o,n){var r;r=0===n?(0,l.default)({minWidth:0,maxWidth:o}):(0,l.default)({minWidth:t[n-1]+1,maxWidth:o}),(0,i.canUseDOM)()&&e.media(r,(function(){e.setState({breakpoint:o})}))}));var o=(0,l.default)({minWidth:t.slice(-1)[0]});(0,i.canUseDOM)()&&this.media(o,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){j.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,o=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===o.state.breakpoint})))[0].settings?"unslick":b(b(b({},a.default),this.props),t[0].settings):b(b({},a.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var l=n.default.Children.toArray(this.props.children);l=l.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],c=null,s=0;s<l.length;s+=e.rows*e.slidesPerRow){for(var d=[],m=s;m<s+e.rows*e.slidesPerRow;m+=e.slidesPerRow){for(var p=[],g=m;g<m+e.slidesPerRow&&(e.variableWidth&&l[g].props.style&&(c=l[g].props.style.width),!(g>=l.length));g+=1)p.push(n.default.cloneElement(l[g],{key:100*s+10*m+g,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(n.default.createElement("div",{key:10*s+m},p))}e.variableWidth?i.push(n.default.createElement("div",{key:s,style:{width:c}},d)):i.push(n.default.createElement("div",{key:s},d))}if("unslick"===e){var f="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:f},l)}return i.length<=e.slidesToShow&&(e.unslick=!0),n.default.createElement(r.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},e),i)}}])&&m(t.prototype,o),w}(n.default.Component);t.default=w},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var n=b(o(4)),r=b(o(27)),l=b(o(28)),a=b(o(5)),i=o(8),c=o(29),s=o(30),u=o(31),d=b(o(32));function b(e){return e&&e.__esModule?e:{default:e}}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)o=l[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)o=l[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function h(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){_(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function O(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(E,e);var t,o,b,f,C=(b=E,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(b);if(f){var o=v(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return w(this,e)});function E(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),_(y(t=C.call(this,e)),"listRefHandler",(function(e){return t.list=e})),_(y(t),"trackRefHandler",(function(e){return t.track=e})),_(y(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,i.getHeight)(e)+"px"}})),_(y(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,i.getOnDemandLazySlides)(h(h({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var o=h({listRef:t.list,trackRef:t.track},t.props);t.updateState(o,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new d.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),_(y(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),_(y(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var o=(0,i.getOnDemandLazySlides)(h(h({},t.props),t.state));o.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(o)}})),t.props.onLazyLoad&&t.props.onLazyLoad(o))}t.adaptHeight();var r=h(h({listRef:t.list,trackRef:t.track},t.props),t.state),l=t.didPropsChange(e);l&&t.updateState(r,l,(function(){t.state.currentSlide>=n.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:n.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),_(y(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,l.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),_(y(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=Boolean(t.track&&t.track.node);if(o){var n=h(h({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),_(y(t),"updateState",(function(e,o,r){var l=(0,i.initializedState)(e);e=h(h(h({},e),l),{},{slideIndex:l.currentSlide});var a=(0,i.getTrackLeft)(e);e=h(h({},e),{},{left:a});var c=(0,i.getTrackCSS)(e);(o||n.default.Children.count(t.props.children)!==n.default.Children.count(e.children))&&(l.trackStyle=c),t.setState(l,r)})),_(y(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,o=0,r=[],l=(0,i.getPreClones)(h(h(h({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,i.getPostClones)(h(h(h({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var c=0;c<l;c++)o+=r[r.length-1-c],e+=r[r.length-1-c];for(var s=0;s<a;s++)e+=r[s];for(var u=0;u<t.state.currentSlide;u++)o+=r[u];var d={width:e+"px",left:-o+"px"};if(t.props.centerMode){var b="".concat(r[t.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(b,") / 2 ) ")}return{trackStyle:d}}var m=n.default.Children.count(t.props.children),p=h(h(h({},t.props),t.state),{},{slideCount:m}),g=(0,i.getPreClones)(p)+(0,i.getPostClones)(p)+m,f=100/t.props.slidesToShow*g,O=100/g,j=-O*((0,i.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(j+=(100-O*f/100)/2),{slideWidth:O+"%",trackStyle:{width:f+"%",left:j+"%"}}})),_(y(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],o=e.length,n=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++n&&n>=o&&t.onWindowResized()};if(e.onclick){var l=e.onclick;e.onclick=function(){l(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=r,e.onerror=function(){r(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),_(y(t),"progressiveLazyLoad",(function(){for(var e=[],o=h(h({},t.props),t.state),n=t.state.currentSlide;n<t.state.slideCount+(0,i.getPostClones)(o);n++)if(t.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=t.state.currentSlide-1;r>=-(0,i.getPreClones)(o);r--)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),_(y(t),"slideHandler",(function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.props,r=n.asNavFor,l=n.beforeChange,a=n.onLazyLoad,c=n.speed,s=n.afterChange,u=t.state.currentSlide,d=(0,i.slideHandler)(h(h(h({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!o})),b=d.state,m=d.nextState;if(b){l&&l(u,b.currentSlide);var p=b.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));a&&p.length>0&&a(p),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),s&&s(u),delete t.animationEndCallback),t.setState(b,(function(){r&&t.asNavForIndex!==e&&(t.asNavForIndex=e,r.innerSlider.slideHandler(e)),m&&(t.animationEndCallback=setTimeout((function(){var e=m.animating,o=g(m,["animating"]);t.setState(o,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),s&&s(b.currentSlide),delete t.animationEndCallback}))}),c))}))}})),_(y(t),"changeSlide",(function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=h(h({},t.props),t.state),r=(0,i.changeSlide)(n,e);if((0===r||r)&&(!0===o?t.slideHandler(r,o):t.slideHandler(r),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var l=t.list.querySelectorAll(".slick-current");l[0]&&l[0].focus()}})),_(y(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),_(y(t),"keyHandler",(function(e){var o=(0,i.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==o&&t.changeSlide({message:o})})),_(y(t),"selectHandler",(function(e){t.changeSlide(e)})),_(y(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),_(y(t),"enableBodyScroll",(function(){window.ontouchmove=null})),_(y(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var o=(0,i.swipeStart)(e,t.props.swipe,t.props.draggable);""!==o&&t.setState(o)})),_(y(t),"swipeMove",(function(e){var o=(0,i.swipeMove)(e,h(h(h({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));o&&(o.swiping&&(t.clickable=!1),t.setState(o))})),_(y(t),"swipeEnd",(function(e){var o=(0,i.swipeEnd)(e,h(h(h({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(o){var n=o.triggerSlideHandler;delete o.triggerSlideHandler,t.setState(o),void 0!==n&&(t.slideHandler(n),t.props.verticalSwiping&&t.enableBodyScroll())}})),_(y(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),_(y(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),_(y(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),_(y(t),"slickGoTo",(function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},o)}),0))})),_(y(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,i.canGoNext)(h(h({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),_(y(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var o=t.state.autoplaying;if("update"===e){if("hovered"===o||"focused"===o||"paused"===o)return}else if("leave"===e){if("paused"===o||"focused"===o)return}else if("blur"===e&&("paused"===o||"hovered"===o))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),_(y(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var o=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==o&&"playing"!==o||t.setState({autoplaying:"focused"}):"playing"===o&&t.setState({autoplaying:"hovered"})})),_(y(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),_(y(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),_(y(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),_(y(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),_(y(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),_(y(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),_(y(t),"render",(function(){var e,o,r,l=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),d=h(h({},t.props),t.state),b=(0,i.extractObject)(d,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),m=t.props.pauseOnHover;if(b=h(h({},b),{},{onMouseEnter:m?t.onTrackOver:null,onMouseLeave:m?t.onTrackLeave:null,onMouseOver:m?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var g=(0,i.extractObject)(d,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=t.props.pauseOnDotsHover;g=h(h({},g),{},{clickHandler:t.changeSlide,onMouseEnter:f?t.onDotsLeave:null,onMouseOver:f?t.onDotsOver:null,onMouseLeave:f?t.onDotsLeave:null}),e=n.default.createElement(s.Dots,g)}var O=(0,i.extractObject)(d,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);O.clickHandler=t.changeSlide,t.props.arrows&&(o=n.default.createElement(u.PrevArrow,O),r=n.default.createElement(u.NextArrow,O));var j=null;t.props.vertical&&(j={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var y=h(h({},j),w),v=t.props.touchMove,_={className:"slick-list",style:y,onClick:t.clickHandler,onMouseDown:v?t.swipeStart:null,onMouseMove:t.state.dragging&&v?t.swipeMove:null,onMouseUp:v?t.swipeEnd:null,onMouseLeave:t.state.dragging&&v?t.swipeEnd:null,onTouchStart:v?t.swipeStart:null,onTouchMove:t.state.dragging&&v?t.swipeMove:null,onTouchEnd:v?t.touchEnd:null,onTouchCancel:t.state.dragging&&v?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},C={className:l,dir:"ltr",style:t.props.style};return t.props.unslick&&(_={className:"slick-list"},C={className:l}),n.default.createElement("div",C,t.props.unslick?"":o,n.default.createElement("div",p({ref:t.listRefHandler},_),n.default.createElement(c.Track,p({ref:t.trackRefHandler},b),t.props.children)),t.props.unslick?"":r,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=h(h({},r.default),{},{currentSlide:t.props.initialSlide,slideCount:n.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var o=t.ssrInit();return t.state=h(h({},t.state),o),t}return t=E,(o=[{key:"didPropsChange",value:function(e){for(var t=!1,o=0,r=Object.keys(this.props);o<r.length;o++){var l=r[o];if(!e.hasOwnProperty(l)){t=!0;break}if("object"!==m(e[l])&&"function"!=typeof e[l]&&e[l]!==this.props[l]){t=!0;break}}return t||n.default.Children.count(this.props.children)!==n.default.Children.count(e.children)}}])&&O(t.prototype,o),E}(n.default.Component);t.InnerSlider=C},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},function(e,t,o){(function(t){var o=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,l=/^0o[0-7]+$/i,a=parseInt,i="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,s=i||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,b=Math.min,m=function(){return s.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var i=r.test(e);return i||l.test(e)?a(e.slice(2),i?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,o){var n,r,l,a,i,c,s=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function O(t){var o=n,l=r;return n=r=void 0,s=t,a=e.apply(l,o)}function j(e){return s=e,i=setTimeout(y,t),u?O(e):a}function w(e){var o=e-c;return void 0===c||o>=t||o<0||f&&e-s>=l}function y(){var e=m();if(w(e))return v(e);i=setTimeout(y,function(e){var o=t-(e-c);return f?b(o,l-(e-s)):o}(e))}function v(e){return i=void 0,h&&n?O(e):(n=r=void 0,a)}function _(){var e=m(),o=w(e);if(n=arguments,r=this,c=e,o){if(void 0===i)return j(c);if(f)return i=setTimeout(y,t),O(c)}return void 0===i&&(i=setTimeout(y,t)),a}return t=g(t)||0,p(o)&&(u=!!o.leading,l=(f="maxWait"in o)?d(g(o.maxWait)||0,t):l,h="trailing"in o?!!o.trailing:h),_.cancel=function(){void 0!==i&&clearTimeout(i),s=0,n=c=r=i=void 0},_.flush=function(){return void 0===i?a:v(m())},_}}).call(this,o(19))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var n=a(o(4)),r=a(o(5)),l=o(8);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var O=function(e){var t,o,n,r,l;return n=(l=e.rtl?e.slideCount-1-e.index:e.index)<0||l>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),o=(l-e.currentSlide)%e.slideCount==0,l>e.currentSlide-r-1&&l<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=l&&l<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":o,"slick-cloned":n,"slick-current":l===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},j=function(e,t){return e.key||t},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(w,e);var t,o,a,i,g=(a=w,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(i){var o=p(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return b(this,e)});function w(){var e;s(this,w);for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return h(m(e=g.call.apply(g,[this].concat(o))),"node",null),h(m(e),"handleRef",(function(t){e.node=t})),e}return t=w,(o=[{key:"render",value:function(){var e=function(e){var t,o=[],a=[],i=[],c=n.default.Children.count(e.children),s=(0,l.lazyStartIndex)(e),u=(0,l.lazyEndIndex)(e);return n.default.Children.forEach(e.children,(function(d,b){var m,p={message:"children",index:b,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};m=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(b)>=0?d:n.default.createElement("div",null);var g=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(f(f({},e),{},{index:b})),h=m.props.className||"",w=O(f(f({},e),{},{index:b}));if(o.push(n.default.cloneElement(m,{key:"original"+j(m,b),"data-index":b,className:(0,r.default)(w,h),tabIndex:"-1","aria-hidden":!w["slick-active"],style:f(f({outline:"none"},m.props.style||{}),g),onClick:function(t){m.props&&m.props.onClick&&m.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){var y=c-b;y<=(0,l.getPreClones)(e)&&c!==e.slidesToShow&&((t=-y)>=s&&(m=d),w=O(f(f({},e),{},{index:t})),a.push(n.default.cloneElement(m,{key:"precloned"+j(m,t),"data-index":t,tabIndex:"-1",className:(0,r.default)(w,h),"aria-hidden":!w["slick-active"],style:f(f({},m.props.style||{}),g),onClick:function(t){m.props&&m.props.onClick&&m.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),c!==e.slidesToShow&&((t=c+b)<u&&(m=d),w=O(f(f({},e),{},{index:t})),i.push(n.default.cloneElement(m,{key:"postcloned"+j(m,t),"data-index":t,tabIndex:"-1",className:(0,r.default)(w,h),"aria-hidden":!w["slick-active"],style:f(f({},m.props.style||{}),g),onClick:function(t){m.props&&m.props.onClick&&m.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})))}})),e.rtl?a.concat(o,i).reverse():a.concat(o,i)}(this.props),t=this.props,o={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return n.default.createElement("div",c({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},o),e)}}])&&u(t.prototype,o),w}(n.default.PureComponent);t.Track=w},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var n=a(o(4)),r=a(o(5)),l=o(8);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(f,e);var t,o,a,i,g=(a=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(i){var o=p(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return m(this,e)});function f(){return u(this,f),g.apply(this,arguments)}return t=f,(o=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,o=t.onMouseEnter,a=t.onMouseOver,i=t.onMouseLeave,u=t.infinite,d=t.slidesToScroll,b=t.slidesToShow,m=t.slideCount,p=t.currentSlide,g=(e={slideCount:m,slidesToScroll:d,slidesToShow:b,infinite:u}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,f={onMouseEnter:o,onMouseOver:a,onMouseLeave:i},h=[],O=0;O<g;O++){var j=(O+1)*d-1,w=u?j:(0,l.clamp)(j,0,m-1),y=w-(d-1),v=u?y:(0,l.clamp)(y,0,m-1),_=(0,r.default)({"slick-active":u?p>=v&&p<=w:p===v}),C={message:"dots",index:O,slidesToScroll:d,currentSlide:p},E=this.clickHandler.bind(this,C);h=h.concat(n.default.createElement("li",{key:O,className:_},n.default.cloneElement(this.props.customPaging(O),{onClick:E})))}return n.default.cloneElement(this.props.appendDots(h),function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({className:this.props.dotsClass},f))}}])&&d(t.prototype,o),f}(n.default.PureComponent);t.Dots=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var n=a(o(4)),r=a(o(5)),l=o(8);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,o){return t&&m(e.prototype,t),o&&m(e,o),e}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");var o,n;e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(o=e,n=t,(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(o,n))}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,n=O(e);if(t){var r=O(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return h(this,o)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){g(o,e);var t=f(o);function o(){return b(this,o),t.apply(this,arguments)}return p(o,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var o={key:"0","data-role":"none",className:(0,r.default)(e),style:{display:"block"},onClick:t},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?n.default.cloneElement(this.props.prevArrow,u(u({},o),l)):n.default.createElement("button",c({key:"0",type:"button"},o)," ","Previous")}}]),o}(n.default.PureComponent);t.PrevArrow=j;var w=function(e){g(o,e);var t=f(o);function o(){return b(this,o),t.apply(this,arguments)}return p(o,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var o={key:"1","data-role":"none",className:(0,r.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?n.default.cloneElement(this.props.nextArrow,u(u({},o),a)):n.default.createElement("button",c({key:"1",type:"button"},o)," ","Next")}}]),o}(n.default.PureComponent);t.NextArrow=w},function(e,t,o){"use strict";o.r(t),function(e){var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var o=-1;return e.some((function(e,n){return e[0]===t&&(o=n,!0)})),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var o=e(this.__entries__,t),n=this.__entries__[o];return n&&n[1]},t.prototype.set=function(t,o){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=o:this.__entries__.push([t,o])},t.prototype.delete=function(t){var o=this.__entries__,n=e(o,t);~n&&o.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var o=0,n=this.__entries__;o<n.length;o++){var r=n[o];e.call(t,r[1],r[0])}},t}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],i="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var o=!1,n=!1,r=0;function a(){o&&(o=!1,e()),n&&c()}function i(){l(a)}function c(){var e=Date.now();if(o){if(e-r<2)return;n=!0}else o=!0,n=!1,setTimeout(i,20);r=e}return c}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,o=t.indexOf(e);~o&&t.splice(o,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),i?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,o=void 0===t?"":t;a.some((function(e){return!!~o.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var o=0,n=Object.keys(t);o<n.length;o++){var r=n[o];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},d=f(0,0,0,0);function b(e){return parseFloat(e)||0}function m(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return t.reduce((function(t,o){return t+b(e["border-"+o+"-width"])}),0)}var p="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return n?p(e)?function(e){var t=e.getBBox();return f(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,o=e.clientHeight;if(!t&&!o)return d;var n=u(e).getComputedStyle(e),r=function(e){for(var t={},o=0,n=["top","right","bottom","left"];o<n.length;o++){var r=n[o],l=e["padding-"+r];t[r]=b(l)}return t}(n),l=r.left+r.right,a=r.top+r.bottom,i=b(n.width),c=b(n.height);if("border-box"===n.boxSizing&&(Math.round(i+l)!==t&&(i-=m(n,"left","right")+l),Math.round(c+a)!==o&&(c-=m(n,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var s=Math.round(i+l)-t,p=Math.round(c+a)-o;1!==Math.abs(s)&&(i-=s),1!==Math.abs(p)&&(c-=p)}return f(r.left,r.top,i,c)}(e):d}function f(e,t,o,n){return{x:e,y:t,width:o,height:n}}var h=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(e,t){var o,n,r,l,a,i,c,u=(n=(o=t).x,r=o.y,l=o.width,a=o.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(i.prototype),s(c,{x:n,y:r,width:l,height:a,top:r,right:n+l,bottom:a+r,left:n}),c);s(this,{target:e,contentRect:u})},j=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new h(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new o,y=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=c.getInstance(),n=new j(t,o,this);w.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){y.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var v=void 0!==r.ResizeObserver?r.ResizeObserver:y;t.default=v}.call(this,o(19))},function(e,t,o){var n=o(34),r=function(e){var t="",o=Object.keys(e);return o.forEach((function(r,l){var a=e[r];(function(e){return/[height|width]$/.test(e)})(r=n(r))&&"number"==typeof a&&(a+="px"),t+=!0===a?r:!1===a?"not "+r:"("+r+": "+a+")",l<o.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(o,n){t+=r(o),n<e.length-1&&(t+=", ")})),t):r(e)}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=o(4))&&n.__esModule?n:{default:n},l={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=l},function(e,t,o){var n=o(37);e.exports=new n},function(e,t,o){var n=o(38),r=o(20),l=r.each,a=r.isFunction,i=r.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(e,t,o){var r=this.queries,c=o&&this.browserIsIncapable;return r[e]||(r[e]=new n(e,c)),a(t)&&(t={match:t}),i(t)||(t=[t]),l(t,(function(t){a(t)&&(t={match:t}),r[e].addHandler(t)})),this},unregister:function(e,t){var o=this.queries[e];return o&&(t?o.removeHandler(t):(o.clear(),delete this.queries[e])),this}},e.exports=c},function(e,t,o){var n=o(39),r=o(20).each;function l(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var o=this;this.listener=function(e){o.mql=e.currentTarget||e,o.assess()},this.mql.addListener(this.listener)}l.prototype={constuctor:l,addHandler:function(e){var t=new n(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;r(t,(function(o,n){if(o.equals(e))return o.destroy(),!t.splice(n,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";r(this.handlers,(function(t){t[e]()}))}},e.exports=l},function(e,t){function o(e){this.options=e,!e.deferSetup&&this.setup()}o.prototype={constructor:o,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=o},function(e,t,o){"use strict";o.r(t),o.d(t,"registerWoolentorBlocks",(function(){return et}));var n={};o.r(n),o.d(n,"name",(function(){return k})),o.d(n,"category",(function(){return S})),o.d(n,"metadata",(function(){return E})),o.d(n,"settings",(function(){return F}));var r={};o.r(r),o.d(r,"name",(function(){return I})),o.d(r,"category",(function(){return R})),o.d(r,"metadata",(function(){return L})),o.d(r,"settings",(function(){return H}));var l={};o.r(l),o.d(l,"name",(function(){return J})),o.d(l,"category",(function(){return Z})),o.d(l,"metadata",(function(){return Y})),o.d(l,"settings",(function(){return ee}));var a={};o.r(a),o.d(a,"name",(function(){return se})),o.d(a,"category",(function(){return ue})),o.d(a,"metadata",(function(){return ie})),o.d(a,"settings",(function(){return be}));var i={};o.r(i),o.d(i,"name",(function(){return we})),o.d(i,"category",(function(){return ye})),o.d(i,"metadata",(function(){return Oe})),o.d(i,"settings",(function(){return _e}));var c={};o.r(c),o.d(c,"name",(function(){return Te})),o.d(c,"category",(function(){return xe})),o.d(c,"metadata",(function(){return Ae})),o.d(c,"settings",(function(){return Be}));var s={};o.r(s),o.d(s,"name",(function(){return Ye})),o.d(s,"category",(function(){return Xe})),o.d(s,"metadata",(function(){return Ke})),o.d(s,"settings",(function(){return Ze}));var u=o(9),d=o(0),b=o(1),m=o(2);const p=Object(d.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 40 40"},Object(d.createElement)("image",{id:"woolentor-logo",width:"40",height:"40",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADHFJREFUeNrsXU2IHMcV7m7NSnEU8IAvvgQmEHTV+JCDNwaN4oB1UNAIx7nO7sWQ5CBtcvAlYS0CAZ9GOoSActjZUyDESGZ9kA7OjEDWHrW6GoHHOAcfEphAHMjuaif12tWT3pn++arrVf/Wg2Z3pZme7npffe97r17XuE7N7Ot3e23xoysP+v2S/K+OPFCbyJ9TcXwhjgP6/fzdyUGdxsutgcPJ0T3p6K6ik7PaRALiEf0uQDGzAMh3hvfFcU06vl2CyyIwfCSO+1VjCLeCTu+X/HIpZNwXx24VwOCW3PE0wwfi2KgowxIA7khmmFkA4I4nh9+QMb0ONmv9+J3R2Xd+ccd13akFQLLjt3MScrnat37zJ8f77vfp15E4bpUFCK51vHkjxxMAloyAsCWAUGhoaJUgxm9LNV9ba73+VtQ/E+j78/mcwsL7jWIAqeqHFRZ3SvbS7//suK+8mpY5bAogTHJnpwKcT2nc501x/pkL3TTnk3VOvnw+FmMzlJOjfgCgGxPHjvj1nlOO4k0+AFh/C3rd8f5D+nFTHE9laKwPAGS59mlTZv0pAFx8A3rdi4PHCzYQB7HB+7UAgFT4T+uq8BOd333Dcb/9ndTXnXx24Mz/+dXyP2+LsRubDgmeYecT5e84DbUz3R9i9P/kYdx/9WRI6FYKADLej5tI+Yv0Ssz81utXMPp/9jhRIMqQ0K8EACRljeue23PG/vl//p32MhrTezKclhcAIbHXdRpuMP3vP1Q57Q43CDxm54+bKPai6J8EYJrRzA+p/0JA4DE7v+1Yc87wxP5cQOAxOL8tlb51vrSY2n9E/P9U52NYQOAxOH9sY36I/l95NVj2TaZ/kfdnoH92EOgywD3r/GXxp1z507WhTp3A05j9w6anelG29ubbJtR/WoqYuWLoZXQ+0c5N6+6lwRTUD6z8+fR/8uVzzo8OQrF5AEi6GVp3Zxd/jLM/bF3JyuYAYBU/T/w/fvLA1CXcVC0ZqzLAthV9Mc7HGj986o9Y+eO0HRU9AAPgcG/Us3E/AQDrhdL/sh7YYQXAfD5vr10d7CAIbywALuae/iVZHw0FKAPQzO+gKU4TYz/S+OGv/Jmlf+VQ4AGzvyNjP1zjtuo/DgCf5nlZ7cBvugywiCfoKleTTGVMNBZ/dLKCTmYAiNlPwq+XBe029kfQf3rjh5FQoMMA25HxzorB0HgYafzgtF5Sm3lLZfYv3rR+xTnaG1n6FxOBs/GDzkdCO1hNPBGC8Whvl0M40kSeqDLAtq7oaYL654r9dC56gLT15k8d70LXP6iplB4ra+mL71gW8FRnvwryrfrH1D8JybOD92JTybMb73GE3RsqDHCDK/bVmf65Gj8ovU6rIzDUYPpRGcEKAOSL+unovwIVP2o7+9fBvj8g9iNMgoAtCwtEMcAGWq4sqjBEg0GLL0yDYpT+09Q/3UOO97GBZAEDillIjCdaOv7kr7k6/tzPf3cqHhLFHo4+cF58dpDrdXA1fqBAYmogoSe2Ns7fnYwiGUAqxc7x/gOoaOGLwQvd/Jz/q+HKwNPf5349zO06VJx29MmHbJkEci7QriWFgMEidu1jTQvoMqiuJankhVLOSZNwNX6iTMLcQ9APLxItA6Cvirg8xCB9RlqcpIGkHDoP53M5rZV/A+mKn70Q/QebK/8/foFxFa2HZ0q3BLjWfvZL6LVrVwfGBRVn6bfAHoJrUQwwWLmJJxjyWgb7BGhWqzAMhQqjAECdlhJCNTeP0LVeFAB6qyjGxKCpVMavjV8dKItFU6FAqfEjZdwYNo/QzQZ6CwCE9thfvRlwDdsEC5wFqT8qFJhYseQs/cJMYq6HoBdmgF4sAkExSDfEKQYprcu63uDX1jOCJ9FpTIs/6FgZ7iG4FAZAN0nNIkUIFVRDs1jTgeQszgUr9N6QsInSv+EWslMMcCnxptCUkCkMIGkfR+3AhPqH6B/sITjef2ASAH7ml8oAAaWhYlA39qqkfdC5FEVknBjlavwoQewPW9eTArCdemPgBekuW6qmfcj5dMvEnI0fKEvm1EHc8RzwUa8XYDqis0KokvapiCNdRoHVf8oYwT0E2fYOymIXCQAd6ObAgoTK/ng6ad/hH38LVypp0Nd+spEZlHDjR8r1wExiOPaH6wEwAMjg9YEMC0QqaR/NDhrs/44+wGfxj97OpE/WYMp+zHauHDuIewSAl9FXo8j0wCdlT83+DbyEe/iXPyxm3dHHu7AgPLehXiaGH/kGGj8K2jwi+bochce9VVITtGVqIfxAwJDDw6GI2tPRWnnQaQsPTgGNHznF/lMAUDJUDKI3rJKq+QCM6EA6VAgFJAjRLKPijR+GAICKQTB39uv2oEOOBPVHqX+6JrQ1TaXOAG/4mJb7l2fziEgAdFTfhIqUtBmk0sRBg5MUfvzQAKaGFAbSagPwci3gtBJtHsEEAHCPm7TuGRVRdiSFX1J4ONzFQ0FaC1lNGj/4Q8Ai5wUvNk4MnpGPP6mkfcjr0NpAGvvUpPHDDAA4wkCWtA8xqg2goSCuhQztc6xA44c5AKDbnUS1juukfQg7obUBH4gRgpBz5a9lfudwbQBMTbNAWARxpH2p1yXegxZT/NpAKBQo7fX/jGnlr7jNIzQBAIrBMKVypH1Q2FAQhOFrUlmurUjjh5kQENAt3DpOIGBM+6D3K9QGgm5idB2jSo0fxgCgIl5oIYQz7ePWD+SsYHMGiP6BR77LHPvDANB6qlLlOUI07aNzcjzs6dcGFICELkdDjR/l3DouEgD/0j0J5/o1OY32xeEyv4bAXGBJ65HM+VtDihOBC6plXMA4/tuH7AUREoRcKhtZ+SvgW0Oy2oQFAFxr2HQeE/sN+Kzy8S4boyB6hzONLrUGQGkRYpK9XWP5sF8bYNAVVW38iLFH3vm7k5n4ZaY9M57pFTPIOabToUPNzAJ5SKbgbw1RtWmQBmpPDZXW8bjZb9rIeTqhAFr5K/5bQ1TsIADAoyLDAFfahwFtlFlkVrnxI8oE+x+wMQBKkabTPigUKLSQqTitzI0fURlAIAIXfxTBAibSvtSZnEFvIPdV5saPKAG4AIAUgiwsoKIDTKV9UChQXGhKXfkr57eGwAzAxgIqixsm0z4o9IBZAWfjR9GlX2kzMel9f4c3ivzIYfpWMGodT2uEyCPtQ8Qnrf6lrVFwNn7Qw6Gt9WJ3W58fH0+cuz9wTgGAEPH1uz0KBdpfCkkxlhycNLB5C784oxYy2qY9jr6RZWmVjTGK3N52abI7yyGA7D7bwNLDmxEZgb9Cl/PWrmk6JG6tgK4faSyp4M7pCz+74X+V3zV3j/OTSBwFqA/W0UsiglZoPLxt+/wfX0Ehil7/0nCvUs53Xfd6JAAkCD53Mjwr0FSj4g/tVVwh2xQAGMWFALJd69ba2izs/DgAjOw44Xby9+dVutwV364AQGQDU04xWHfL2rpekN1JBUDcC63FGy0zF13TAMXfdEXExr1aiMGxk7CDqLVoQUgpYUly/dMz/UL3sgDARAUA5PyxdWstbCJC++VIYMS9Q9aKJ3bsamG3Ypkh6xutVWr2TzIBwLJALWwrURsAJ9i0Y1hZu01tX1oAkHUBGwqqZzPEb+jDobcdhgdIrOVL/bLTK9Fc9Gw2LaxH2peVAQJBeNuObSWoH9ZtqvsDUEw5sGNcatuUuo0fADKmbDoMj5JZM2Ij4SOlhTzlHUJkWrFlx7p0lskvbtZPE6Jwx4n4PnprhcX911SoXxsAEgR2xbAc9lpawYctBCzZdSsKSyH6MvvA1f10+a1j1Ejatr4oxPkjnRNobxMnM4PLNjPI3W7pOp+FAUJMQI8BjS0T5JbusSzSeVxXJOOQZQLztsXlfFYGCDFBx/nm6aKu9VX5Yr5xAISE4diCgDXP3+J2vjEAhIBgi0U8zr+sk+rlogFidAHFKls2zm7k9O+Zcr5xBljKEEgXdKxPYaN2LuOTx83rbqQuoJDQt75NpfzrSZ28lQRACAh9CQRbL1i1+1Lp55ZKu0XcpWSDoRWIC5tKx0/y/mC3yLuWfYbDBqeLNNPvyHhfSAHNLcMoCCAQE2w3TCRSTn8ryxp+7QDQMCCUwvGlBECNgTCTAq80ji81AJY0wqDCYnEqY/yoqBhfaQAsZQ2UPt6ogGCcSZrfNVnBaxQAlsBAYYGY4ZpTnqISOXpSFadXGgAxYYKOi/JnO0eHP3O+eQxrWtXxqzwAYhgiYImXQyGjl8HJMxnHv5B/T6s2w9PsfwIMAOhUCXLerUHIAAAAAElFTkSuQmCC"}));Object(u.setCategories)([{slug:"woolentor-blocks",title:Object(b.__)("WooLentor","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:p})},...Object(u.getCategories)().filter(({slug:e})=>"woolentor-blocks"!==e)]);var g=o(6),f=o(7);class h extends d.Component{render(){const{setAttributes:e,selectedTaxonomies:t,attributesKey:o,title:n,type:r,taxnomiesList:l}=this.props,a=()=>{const e=[];return l&&l.forEach((function(t,o){e.push({label:t.name,value:t.slug})})),e};let i;if("multiple"==r){const n=(n,r)=>{const l=-1!==t.indexOf(r)?[...t]:[...t,r];if(0==n){const e=l.indexOf(r);l.splice(e,1)}e({[o]:l})};let r=a();r.length>0&&(i=r.map((e,o)=>Object(d.createElement)(m.CheckboxControl,{key:e.value,label:e.label,onChange:t=>n(t,e.value),checked:-1!==t.indexOf(e.value)})))}return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"woolentor-component-taxonomy-area"},"single"!=r&&Object(d.createElement)("h2",{className:"woolentor-component-area-title"},n),Object(d.createElement)("div",{className:"woolentor-component-taxonomy-fileds"},"single"==r?0==a().length?Object(d.createElement)(m.Spinner,null):Object(d.createElement)(m.SelectControl,{label:n,value:t,options:a(),onChange:t=>e({[o]:t})}):i||Object(d.createElement)(m.Spinner,null))))}}var O=Object(g.compose)([Object(f.withSelect)((e,t)=>{const{getEntityRecords:o}=e("core");return{taxnomiesList:o("taxonomy",t.taxonomy?t.taxonomy:"product_cat",{orderby:"name",order:"asc",hide_empty:!0})}})])(h),j=o(3);class w extends d.Component{render(){const{attributes:e,setAttributes:t}=this.props,{style:o,columns:n,rows:r,productTab:l,slider:a,productFilterType:i,perPage:c,customOrder:s,orderBy:u,order:p,selectedCategories:g,slitems:f,slarrows:h,sldots:w,slpauseOnHover:y,slautolay:v,slautoplaySpeed:_,slanimationSpeed:C,slscrollItem:E,sltabletDisplayColumns:k,sltabletScrollColumns:S,sltabletWidth:A,slMobileDisplayColumns:F,slMobileScrollColumns:T,slMobileWidth:x}=e,P={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Layout","woolentor"),initialOpen:!0},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Product Style","woolentor"),value:o,options:[{label:Object(b.__)("Style One","woolentor"),value:"1"},{label:Object(b.__)("Style Two","woolentor"),value:"2"},{label:Object(b.__)("Style Three","woolentor"),value:"3"}],onChange:e=>t({style:e})}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Columns","woolentor"),value:n,onChange:e=>t({columns:e}),min:1,step:1,max:6}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Rows","woolentor"),value:r,onChange:e=>t({rows:e}),min:1,step:1,max:20}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Tab","woolentor"),checked:l,help:l?Object(b.__)("Enable product tab.","woolentor"):Object(b.__)("Toggle to show the tab layout.","woolentor"),onChange:()=>t({productTab:!l})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider","woolentor"),checked:a,help:a?Object(b.__)("Enable product slider ( When product tab is off, Then working slider ).","woolentor"):Object(b.__)("Toggle to show the slider layout.","woolentor"),onChange:()=>t({slider:!a})})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Query Options","woolentor"),initialOpen:!1},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Filter By","woolentor"),value:i,options:[{label:Object(b.__)("Recent Products","woolentor"),value:"recent"},{label:Object(b.__)("Featured Products","woolentor"),value:"featured"},{label:Object(b.__)("Best Selling Products","woolentor"),value:"best_selling"},{label:Object(b.__)("Sale Products","woolentor"),value:"sale"},{label:Object(b.__)("Top Rated Products","woolentor"),value:"top_rated"},{label:Object(b.__)("Mixed order Products","woolentor"),value:"mixed_order"}],onChange:e=>t({productFilterType:e})}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Number Of Products","woolentor"),value:c,onChange:e=>t({perPage:e}),min:1,step:1,max:1e3}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Custom Order","woolentor"),checked:s,help:s?Object(b.__)("Enable custom order.","woolentor"):Object(b.__)("Toggle to show the custom order.","woolentor"),onChange:()=>t({customOrder:!s})}),Object(d.createElement)(O,{title:Object(b.__)("Product Categories","woolentor"),attributesKey:"selectedCategories",setAttributes:t,selectedTaxonomies:g,type:"multiple"}),s?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Order","woolentor"),value:p,options:[{label:Object(b.__)("Descending","woolentor"),value:"DESC"},{label:Object(b.__)("Ascending","woolentor"),value:"ASC"}],onChange:e=>t({order:e})}),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Orderby","woolentor"),value:u,options:[{label:Object(b.__)("None","woolentor"),value:"none"},{label:Object(b.__)("ID","woolentor"),value:"ID"},{label:Object(b.__)("Date","woolentor"),value:"date"},{label:Object(b.__)("Name","woolentor"),value:"name"},{label:Object(b.__)("Title","woolentor"),value:"title"},{label:Object(b.__)("Comment count","woolentor"),value:"comment_count"},{label:Object(b.__)("Random","woolentor"),value:"rand"}],onChange:e=>t({orderBy:e})})):""),1==a&&Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Slider Options","woolentor"),initialOpen:!1},Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider Items","woolentor"),value:f,onChange:e=>t({slitems:e}),min:1,step:1,max:10}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider Arrow","woolentor"),checked:h,help:h?Object(b.__)("Enable slider arrow.","woolentor"):Object(b.__)("Toggle to show the slider arrow.","woolentor"),onChange:()=>t({slarrows:!h})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider dots","woolentor"),checked:w,help:w?Object(b.__)("Enable slider pagination.","woolentor"):Object(b.__)("Toggle to show the slider pagination.","woolentor"),onChange:()=>t({sldots:!w})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Pause on Hover?","woolentor"),checked:y,help:w?Object(b.__)("Enable slider pagination.","woolentor"):Object(b.__)("Toggle to show the slider pagination.","woolentor"),onChange:()=>t({slpauseOnHover:!y})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider auto play","woolentor"),checked:v,help:w?Object(b.__)("Enable slider auto play.","woolentor"):Object(b.__)("Toggle to show the slider auto play.","woolentor"),onChange:()=>t({slautolay:!v})}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Autoplay speed","woolentor"),value:_,onChange:e=>t({slautoplaySpeed:e}),min:1,step:1,max:1e5}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Autoplay animation speed","woolentor"),value:C,onChange:e=>t({slanimationSpeed:e}),min:1,step:1,max:1e5}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider item to scroll","woolentor"),value:E,onChange:e=>t({slscrollItem:e}),min:1,step:1,max:1e5}),Object(d.createElement)("h3",null,Object(b.__)("Tablet Screen options","woolentor")),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider Items","woolentor"),value:k,onChange:e=>t({sltabletDisplayColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider item to scroll","woolentor"),value:S,onChange:e=>t({sltabletScrollColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Tablet Screen Resolution","woolentor"),value:A,onChange:e=>t({sltabletWidth:e}),min:1,step:1,max:1500}),Object(d.createElement)("h3",null,Object(b.__)("Mobile Phone Screen options","woolentor")),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider Items","woolentor"),value:F,onChange:e=>t({slMobileDisplayColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider item to scroll","woolentor"),value:T,onChange:e=>t({slMobileScrollColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Mobile Screen Resolution","woolentor"),value:x,onChange:e=>t({slMobileWidth:e}),min:1,step:1,max:1500})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)(d.Fragment,{key:"title"},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.titleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleColor,onChange:e=>t({titleColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Hover Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.titleHoverColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleHoverColor,onChange:e=>t({titleHoverColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Alignment","woolentor")),Object(d.createElement)(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},Object(d.createElement)(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===e.titleAlign,isSecondary:"left"!==e.titleAlign,onClick:()=>t({titleAlign:"left"}),title:Object(b.__)("Title align left","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===e.titleAlign,isSecondary:"center"!==e.titleAlign,onClick:()=>t({titleAlign:"center"}),title:Object(b.__)("Title align center","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===e.titleAlign,isSecondary:"right"!==e.titleAlign,onClick:()=>t({titleAlign:"right"}),title:Object(b.__)("Title align right","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-justify",value:"justify",isPrimary:"justify"===e.titleAlign,isSecondary:"justify"!==e.titleAlign,onClick:()=>t({titleAlign:"justify"}),title:Object(b.__)("Title align justify","woolentor")}),Object(d.createElement)("span",{onClick:()=>t({titleAlign:""}),class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"}))),Object(d.createElement)(d.Fragment,{key:"price"},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title",style:{marginTop:15}},Object(b.__)("Price","woolentor")),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.priceColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.priceColor,onChange:e=>t({priceColor:e})})),Object(d.createElement)(d.Fragment,{key:"action-button"},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title",style:{marginTop:15}},Object(b.__)("Action Button","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.actionBtnColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.actionBtnColor,onChange:e=>t({actionBtnColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.actionBtnBgColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.actionBtnBgColor,onChange:e=>t({actionBtnBgColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Hover Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.actionBtnHoverColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.actionBtnHoverColor,onChange:e=>t({actionBtnHoverColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Hover Background Color","woolentor"),Object(d.createElement)("span",{style:{...P,backgroundColor:e.actionBtnHoverBgColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.actionBtnHoverBgColor,onChange:e=>t({actionBtnHoverBgColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Content Alignment","woolentor")),Object(d.createElement)(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},Object(d.createElement)(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===e.contentAlign,isSecondary:"left"!==e.contentAlign,onClick:()=>t({contentAlign:"left"}),title:Object(b.__)("Title align left","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===e.contentAlign,isSecondary:"center"!==e.contentAlign,onClick:()=>t({contentAlign:"center"}),title:Object(b.__)("Title align center","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===e.contentAlign,isSecondary:"right"!==e.contentAlign,onClick:()=>t({contentAlign:"right"}),title:Object(b.__)("Title align right","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-justify",value:"justify",isPrimary:"justify"===e.contentAlign,isSecondary:"justify"!==e.contentAlign,onClick:()=>t({contentAlign:"justify"}),title:Object(b.__)("Title align justify","woolentor")}),Object(d.createElement)("span",{onClick:()=>t({contentAlign:""}),class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})))))}}var y=w,v=o(10),_=o.n(v),C=Object(d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 359 359",space:"preserve"},Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M96,0H13C7.5,0,3,4.5,3,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10V10C106,4.5,101.5,0,96,0z M87,84H23V20h64V84z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M221,0h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10V10C231,4.5,226.5,0,221,0z M212,84h-64V20 h64V84z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M96,126H13c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C106,130.5,101.5,126,96,126z M87,209H23 v-63h64V209z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M221,126h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C231,130.5,226.5,126,221,126z M212,209h-64v-63h64V209z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M346,0h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10V10C356,4.5,351.5,0,346,0z M337,84h-64V20 h64V84z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M346,126h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C356,130.5,351.5,126,346,126z M337,209h-64v-63h64V209z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M96,256H13c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C106,260.5,101.5,256,96,256z M87,340H23 v-64h64V340z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M221,256h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C231,260.5,226.5,256,221,256z M212,340h-64v-64h64V340z"}))),Object(d.createElement)("g",null,Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"M346,256h-83c-5.5,0-10,4.5-10,10v83c0,5.5,4.5,10,10,10h83c5.5,0,10-4.5,10-10v-83C356,260.5,351.5,256,346,256z M337,340h-64v-64h64V340z"})))),E=o(11);const{name:k,category:S,attributes:A}=E,F={title:Object(b.__)("WL : Product Tab","woolentor"),description:Object(b.__)("Display product.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:C}),keywords:["woolentor",Object(b.__)("product tab","woolentor"),Object(b.__)("woocommerce product","woolentor")],example:{attributes:{style:"1",columns:4,rows:1,perPage:4}},attributes:A,edit:e=>{const{name:t,attributes:o,className:n,isSelected:r,setAttributes:l,clientId:a}=e,{blockUniqId:i}=o;""==i&&l({blockUniqId:a});let c="";return c=Object(d.createElement)(_.a,{block:t,attributes:o}),Object(d.createElement)(d.Fragment,null,r&&Object(d.createElement)(y,e),Object(d.createElement)("div",{className:n},Object(d.createElement)(m.Disabled,null,c&&Object(d.createElement)(d.Fragment,null,c,void jQuery(document).ready((function(e){const t="product-slider-"+i;let o=!1,n=setInterval((function(){document.getElementById(t)&&(e(".product-slider").each((function(){var t,o,n,r,l,a,i,c,s,u,d,b,m,p,g,f,h;o=(t=e(".product-slider").data("settings")).arrows,n=t.dots,r=t.autoplay,l=t.rtl,a=parseInt(t.autoplay_speed)||3e3,i=parseInt(t.animation_speed)||300,c=t.fade,s=t.pause_on_hover,u=parseInt(t.product_items)||4,d=parseInt(t.scroll_columns)||4,b=parseInt(t.tablet_width)||800,m=parseInt(t.tablet_display_columns)||2,p=parseInt(t.tablet_scroll_columns)||2,g=parseInt(t.mobile_width)||480,f=parseInt(t.mobile_display_columns)||1,h=parseInt(t.mobile_scroll_columns)||1,e(".product-slider").not(".slick-initialized").slick({arrows:o,prevArrow:'<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>',dots:n,infinite:!0,autoplay:r,autoplaySpeed:a,speed:i,fade:c,pauseOnHover:s,slidesToShow:u,slidesToScroll:d,rtl:l,responsive:[{breakpoint:b,settings:{slidesToShow:m,slidesToScroll:p}},{breakpoint:g,settings:{slidesToShow:f,slidesToScroll:h}}]})})),o=!0),o&&clearInterval(n)}),500)}))))))},save:()=>null};class T extends d.Component{render(){const{attributes:e,setAttributes:t}=this.props,{style:o,contentAlignment:n,buttonUrl:r}=e,l={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Settings","woolentor"),initialOpen:!0},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Banner Style","woolentor"),value:o,options:[{label:Object(b.__)("Style One","woolentor"),value:"1"},{label:Object(b.__)("Style Two","woolentor"),value:"2"}],onChange:e=>t({style:e})}),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Content Alignment","woolentor"),value:n,options:[{label:Object(b.__)("Left","woolentor"),value:"left"},{label:Object(b.__)("Right","woolentor"),value:"right"},{label:Object(b.__)("Bottom","woolentor"),value:"bottom"}],onChange:e=>t({contentAlignment:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Link","woolentor"),value:r,onChange:e=>t({buttonUrl:e})})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...l,backgroundColor:e.titleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleColor,onChange:e=>t({titleColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.titleSize,fallbackFontSize:e.titleSize,onChange:e=>t({titleSize:e})}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Sub Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...l,backgroundColor:e.subTitleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.subTitleColor,onChange:e=>t({subTitleColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.subTitleSize,fallbackFontSize:e.subTitleSize,onChange:e=>t({subTitleSize:e})}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Button","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...l,backgroundColor:e.buttonColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.buttonColor,onChange:e=>t({buttonColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.buttonSize,fallbackFontSize:e.buttonSize,onChange:e=>t({buttonSize:e})}))))}}var x=T,P=o(18),B=Object(d.createElement)(P.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(P.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));class z extends d.Component{constructor(){super(...arguments),this.addImage=this.addImage.bind(this),this.onSelectImage=this.onSelectImage.bind(this)}onSelectImage(e){e&&e.url&&this.props.setAttributes({imgUrl:e.url})}addImage(e){mediaUpload({allowedTypes:["image","png"],filesList:e,onFileChange:([e])=>this.onSelectImage(e)})}render(){const{name:e,attributes:t,className:o,isSelected:n,setAttributes:r}=this.props,{title:l,subTitle:a,imgUrl:i,imgId:c,style:s,contentAlignment:u,buttonText:p,buttonUrl:g}=t,f=e=>r({imgUrl:e.url,imgId:e.id});return Object(d.createElement)(m.DropZone,{onFilesDrop:this.addImage,label:Object(b.__)("Drop to upload as banner image","woolentor")}),Object(d.createElement)(d.Fragment,null,n&&Object(d.createElement)(x,this.props),Object(d.createElement)("div",{className:o},Object(d.createElement)("div",{className:"woolentor-banner woolentor-banner-layout-"+s+" woolentor-content-align-"+u},Object(d.createElement)("div",{className:"woolentor-content"},Object(d.createElement)(j.RichText,{tagName:"h3",className:"banner_subtitle",value:a,onChange:e=>r({subTitle:e}),placeholder:Object(b.__)("Banner sub title...","woolentor"),keepPlaceholderOnFocus:!0,style:{color:""+t.subTitleColor,fontSize:""+t.subTitleSize}}),Object(d.createElement)(j.RichText,{tagName:"h2",className:"banner_title",value:l,onChange:e=>r({title:e}),placeholder:Object(b.__)("Banner title...","woolentor"),keepPlaceholderOnFocus:!0,style:{color:""+t.titleColor,fontSize:""+t.titleSize}}),Object(d.createElement)(j.RichText,{tagName:"a",className:"banner_button",value:p,onChange:e=>r({buttonText:e}),placeholder:Object(b.__)("Shop Now ....","woolentor"),href:g,keepPlaceholderOnFocus:!0,style:{color:""+t.buttonColor,fontSize:""+t.buttonSize}})),i?Object(d.createElement)("div",{class:"woolentor-banner-img"},Object(d.createElement)("img",{className:"wp-block-woolentor-banner-img",src:i,alt:"WooLentor Banner image"}),Object(d.createElement)("div",null,Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(j.MediaUpload,{onSelect:f,allowedTypes:["image","png"],value:i,render:({open:e})=>Object(d.createElement)(m.Button,{onClick:e},i?Object(b.__)("Replace Image","woolentor"):Object(d.createElement)(j.BlockIcon,{icon:B}))})))):Object(d.createElement)("div",{class:"woolentor-banner-img"},Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(j.MediaUpload,{onSelect:f,allowedTypes:["image","png"],value:i,render:({open:e})=>Object(d.createElement)(m.Button,{onClick:e},i?Object(b.__)("Replace Image","woolentor"):Object(d.createElement)(j.BlockIcon,{icon:B}))}))))))}}var M=z,L=o(12),D=Object(d.createElement)("svg",{id:"_x31_","enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m17.453 24c-.168 0-.34-.021-.51-.066l-15.463-4.141c-1.06-.292-1.692-1.39-1.414-2.45l1.951-7.272c.072-.267.346-.422.612-.354.267.071.425.346.354.612l-1.95 7.27c-.139.53.179 1.082.71 1.229l15.457 4.139c.531.14 1.079-.176 1.217-.704l.781-2.894c.072-.267.346-.426.613-.353.267.072.424.347.353.613l-.78 2.89c-.235.89-1.045 1.481-1.931 1.481z"})),Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m22 18h-16c-1.103 0-2-.897-2-2v-12c0-1.103.897-2 2-2h16c1.103 0 2 .897 2 2v12c0 1.103-.897 2-2 2zm-16-15c-.551 0-1 .449-1 1v12c0 .551.449 1 1 1h16c.551 0 1-.449 1-1v-12c0-.551-.449-1-1-1z"})),Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m9 9c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm0-3c-.551 0-1 .449-1 1s.449 1 1 1 1-.449 1-1-.449-1-1-1z"})),Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m4.57 16.93c-.128 0-.256-.049-.354-.146-.195-.195-.195-.512 0-.707l4.723-4.723c.566-.566 1.555-.566 2.121 0l1.406 1.406 3.892-4.67c.283-.339.699-.536 1.142-.54h.011c.438 0 .853.19 1.139.523l5.23 6.102c.18.209.156.525-.054.705-.209.18-.524.157-.705-.054l-5.23-6.102c-.097-.112-.231-.174-.38-.174-.104-.009-.287.063-.384.18l-4.243 5.091c-.09.108-.221.173-.362.179-.142.01-.277-.046-.376-.146l-1.793-1.793c-.189-.188-.518-.188-.707 0l-4.723 4.723c-.097.097-.225.146-.353.146z"})));const{name:I,category:R,attributes:N}=L,H={title:Object(b.__)("WL : Promo Banner","woolentor"),description:Object(b.__)("Display promo banner.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:D}),keywords:["woolentor",Object(b.__)("product banner","woolentor"),Object(b.__)("woocommerce promo","woolentor"),Object(b.__)("promo banner","woolentor")],example:{attributes:{title:Object(b.__)("Banner Title","woolentor"),subTitle:Object(b.__)("Banner Sub Title","woolentor"),buttonText:Object(b.__)("Shop Now","woolentor")}},supports:{align:["wide","full"]},attributes:N,edit:M,save:({className:e,attributes:t})=>{const{title:o,subTitle:n,imgUrl:r,style:l,contentAlignment:a,buttonText:i,buttonUrl:c}=t;return Object(d.createElement)("div",{className:e},Object(d.createElement)("div",{className:"woolentor-banner woolentor-banner-layout-"+l+" woolentor-content-align-"+a},Object(d.createElement)("div",{className:"woolentor-content"},Object(d.createElement)(j.RichText.Content,{tagName:"h3",className:"banner_subtitle",value:n,style:{color:""+t.subTitleColor,fontSize:""+t.subTitleSize}}),Object(d.createElement)(j.RichText.Content,{tagName:"h2",className:"banner_title",value:o,style:{color:""+t.titleColor,fontSize:""+t.titleSize}}),Object(d.createElement)(j.RichText.Content,{tagName:"a",className:"banner_button",href:c,value:i,style:{color:""+t.buttonColor,fontSize:""+t.buttonSize}})),r&&Object(d.createElement)("div",{className:"woolentor-banner-img"},c?Object(d.createElement)("a",{href:c},Object(d.createElement)("img",{className:"wp-block-woolentor-banner-img",src:r,alt:o})):Object(d.createElement)("img",{className:"wp-block-woolentor-banner-img",src:r,alt:o}))))}};class W extends d.Component{render(){const{setAttributes:e,title:t,ImageData:o,attributesKey:n,uploadImage:r}=this.props,l=["image","png"],a=Object(d.createElement)("p",null,Object(b.__)("To edit the banner image, you need permission to upload media.","woolentor")),i=t=>{const r={...o};r.id=t.id,r.url=t.url,e({[n]:r})};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"wp-block-image-selector-woolentor-image-uploader"},Object(d.createElement)("h3",null,t),Object(d.createElement)(j.MediaUploadCheck,{fallback:a},Object(d.createElement)(j.MediaUpload,{title:t,onSelect:i,allowedTypes:l,value:o.id,render:({open:e})=>Object(d.createElement)(m.Button,{className:o.id?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e},!o.id&&Object(b.__)("Set ","woolentor")+t,!!o.id&&!r&&Object(d.createElement)(m.Spinner,null),!!o.id&&r&&Object(d.createElement)("img",{src:r.source_url,alt:t}))})),!!o.id&&r&&Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(j.MediaUpload,{title:t,onSelect:i,allowedTypes:l,value:o.id,render:({open:e})=>Object(d.createElement)(m.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(b.__)("Replace image","woolentor"))})),!!o.id&&Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(m.Button,{onClick:()=>{const t={...o};t.id=void 0,t.url=void 0,e({[n]:t})},isLink:!0,isDestructive:!0},Object(b.__)("Remove image","woolentor")))))}}var G=Object(g.compose)(Object(f.withSelect)((e,t)=>{const{getMedia:o}=e("core"),{ImageData:n}=t;return{uploadImage:n.id?o(n.id):null}}))(W),U=e=>{const{setAttributes:t,lavel:o,dimensions:n,attributesKey:r}=e,l=(e,o)=>{const l={...n};"yes"===l.link?(l.top=e,l.right=e,l.bottom=e,l.left=e,l.link="yes"):(l.top=""!==l.top?l.top:"0",l.right=""!==l.right?l.right:"0",l.bottom=""!==l.bottom?l.bottom:"0",l.left=""!==l.left?l.left:"0",l.link="no",l[o]=e),t({[r]:l})},a=e=>{const o={...n};o.unit=e.target.value,t({[r]:o})};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"wp-block-selector-woolentor-dimensions-control"},Object(d.createElement)(m.PanelRow,{className:"woolentor-panel-row-height-auto",style:{minHeight:"auto"}},Object(d.createElement)("h3",null,o),Object(d.createElement)(m.ButtonGroup,{className:"woolentor-dimensions-btn-group"},Object(d.createElement)(m.Button,{value:"px",text:Object(b.__)("PX","woolentor"),isPrimary:"px"===n.unit,isSecondary:"px"!==n.unit,onClick:a,title:Object(b.__)("PX","woolentor"),focus:!1}),Object(d.createElement)(m.Button,{value:"%",text:Object(b.__)("%","woolentor"),isPrimary:"%"===n.unit,isSecondary:"%"!==n.unit,onClick:a,title:Object(b.__)("%","woolentor"),focus:!1}),Object(d.createElement)(m.Button,{value:"em",text:Object(b.__)("EM","woolentor"),isPrimary:"em"===n.unit,isSecondary:"em"!==n.unit,onClick:a,title:Object(b.__)("EM","woolentor"),focus:!1}))),Object(d.createElement)(m.PanelRow,null,Object(d.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Top","woolentor"),isShiftStepEnabled:!0,onChange:e=>l(e,"top"),shiftStep:10,value:n.top,labelPosition:"bottom"}),Object(d.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Right","woolentor"),isShiftStepEnabled:!0,onChange:e=>l(e,"right"),shiftStep:10,value:n.right,labelPosition:"bottom"}),Object(d.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Bottom","woolentor"),isShiftStepEnabled:!0,onChange:e=>l(e,"bottom"),shiftStep:10,value:n.bottom,labelPosition:"bottom"}),Object(d.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Left","woolentor"),isShiftStepEnabled:!0,onChange:e=>l(e,"left"),shiftStep:10,value:n.left,labelPosition:"bottom"}),Object(d.createElement)(m.Button,{icon:"admin-links",value:"yes",isPrimary:"yes"===n.link,isSecondary:"yes"!==n.link,onClick:()=>{const e={...n};"yes"===e.link?e.link="no":e.link="yes",t({[r]:e})},title:Object(b.__)("Link values together","woolentor"),showTooltip:!0}))))};class V extends d.Component{render(){const{attributes:e,setAttributes:t}=this.props,{title:o,contentPosition:n,bannerImage:r,badgeImage:l,badgeHorizontalPos:a,badgeVerticlePos:i}=e,c={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Content Settings","woolentor"),initialOpen:!0},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Content Position","woolentor"),value:n,options:[{label:Object(b.__)("Top","woolentor"),value:"top"},{label:Object(b.__)("Center","woolentor"),value:"center"},{label:Object(b.__)("Bottom","woolentor"),value:"bottom"},{label:Object(b.__)("Left","woolentor"),value:"left"},{label:Object(b.__)("Right","woolentor"),value:"right"}],onChange:e=>t({contentPosition:e})}),Object(d.createElement)(G,{title:Object(b.__)("Banner image","woolentor"),ImageData:r,attributesKey:"bannerImage",setAttributes:t}),Object(d.createElement)(G,{title:Object(b.__)("Badge image","woolentor"),ImageData:l,attributesKey:"badgeImage",setAttributes:t}),l.id&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Badge Horizontal Position","woolentor"),value:a,onChange:e=>t({badgeHorizontalPos:e}),min:-1e3,step:1,max:1e3}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Badge Vertical Position","woolentor"),value:i,onChange:e=>t({badgeVerticlePos:e}),min:-1e3,step:1,max:1e3})),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Title","woolentor"),value:o,placeholder:Object(b.__)("Banner Title","woolentor"),onChange:e=>t({title:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Sub Title","woolentor"),placeholder:Object(b.__)("Banner Sub Title","woolentor"),value:e.subTitle,onChange:e=>t({subTitle:e})}),Object(d.createElement)(m.TextareaControl,{label:Object(b.__)("Description","woolentor"),help:Object(b.__)("Enter Banner description","woolentor"),value:e.bannerDescription,onChange:e=>t({bannerDescription:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Offer Amount","woolentor"),placeholder:Object(b.__)("50%","woolentor"),value:e.offerAmount,onChange:e=>t({offerAmount:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Offer Tag Line","woolentor"),value:e.offerTagLine,placeholder:Object(b.__)("off","woolentor"),onChange:e=>t({offerTagLine:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Banner Link","woolentor"),value:e.bannerLink,placeholder:Object(b.__)("https://your-link.com","woolentor"),onChange:e=>t({bannerLink:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Button Text","woolentor"),value:e.buttonText,placeholder:Object(b.__)("Shop Now","woolentor"),onChange:e=>t({buttonText:e})})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Content Area","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Alignment","woolentor")),Object(d.createElement)(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},Object(d.createElement)(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===e.contentAlignment,isSecondary:"left"!==e.contentAlignment,onClick:()=>t({contentAlignment:"left"}),title:Object(b.__)("Align left","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===e.contentAlignment,isSecondary:"center"!==e.contentAlignment,onClick:()=>t({contentAlignment:"center"}),title:Object(b.__)("Align center","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===e.contentAlignment,isSecondary:"right"!==e.contentAlignment,onClick:()=>t({contentAlignment:"right"}),title:Object(b.__)("Align right","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-justify",value:"justify",isPrimary:"justify"===e.contentAlignment,isSecondary:"justify"!==e.contentAlignment,onClick:()=>t({contentAlignment:"justify"}),title:Object(b.__)("Align justify","woolentor")}),Object(d.createElement)("span",{onClick:()=>t({contentAlignment:""}),class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.contentAreaMargin,attributesKey:"contentAreaMargin",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.contentAreaPadding,attributesKey:"contentAreaPadding",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.titleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleColor,onChange:e=>t({titleColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.titleSize,fallbackFontSize:e.titleSize,onChange:e=>t({titleSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.titleMargin,attributesKey:"titleMargin",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.titlePadding,attributesKey:"titlePadding",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Sub Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.titleSubColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleSubColor,onChange:e=>t({titleSubColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.titleSubSize,fallbackFontSize:e.titleSubSize,onChange:e=>t({titleSubSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.subTitleMargin,attributesKey:"subTitleMargin",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.subTitlePadding,attributesKey:"subTitlePadding",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Description","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.desColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.desColor,onChange:e=>t({desColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.desSize,fallbackFontSize:e.desSize,onChange:e=>t({desSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.desMargin,attributesKey:"desMargin",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.desPadding,attributesKey:"desPadding",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Offer Amount","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.offerColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.offerColor,onChange:e=>t({offerColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.offerSize,fallbackFontSize:e.offerSize,onChange:e=>t({offerSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.offerMargin,attributesKey:"offerMargin",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Offer Tag Line","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.offerTagColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.offerTagColor,onChange:e=>t({offerTagColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.offerTagSize,fallbackFontSize:e.offerTagSize,onChange:e=>t({offerTagSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.offerTagMargin,attributesKey:"offerTagMargin",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Button","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.buttonColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.buttonColor,onChange:e=>t({buttonColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Hover Color","woolentor"),Object(d.createElement)("span",{style:{...c,backgroundColor:e.buttonHoverColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.buttonHoverColor,onChange:e=>t({buttonHoverColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.buttonSize,fallbackFontSize:e.buttonSize,onChange:e=>t({buttonSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.buttonMargin,attributesKey:"buttonMargin",setAttributes:t}))))}}var Q=V;class K extends d.Component{render(){const{name:e,attributes:t,className:o,isSelected:n,setAttributes:r,clientId:l}=this.props,{blockUniqId:a}=t;return""==a&&r({blockUniqId:l}),Object(d.createElement)(d.Fragment,null,n&&Object(d.createElement)(Q,this.props),Object(d.createElement)("div",{className:o},Object(d.createElement)(_.a,{block:e,attributes:t})))}}var q=K,Y=o(13),X=Object(d.createElement)("svg",{id:"_x31_","enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m17.453 24c-.168 0-.34-.021-.51-.066l-15.463-4.141c-1.06-.292-1.692-1.39-1.414-2.45l1.951-7.272c.072-.267.346-.422.612-.354.267.071.425.346.354.612l-1.95 7.27c-.139.53.179 1.082.71 1.229l15.457 4.139c.531.14 1.079-.176 1.217-.704l.781-2.894c.072-.267.346-.426.613-.353.267.072.424.347.353.613l-.78 2.89c-.235.89-1.045 1.481-1.931 1.481z"})),Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m22 18h-16c-1.103 0-2-.897-2-2v-12c0-1.103.897-2 2-2h16c1.103 0 2 .897 2 2v12c0 1.103-.897 2-2 2zm-16-15c-.551 0-1 .449-1 1v12c0 .551.449 1 1 1h16c.551 0 1-.449 1-1v-12c0-.551-.449-1-1-1z"})),Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m9 9c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm0-3c-.551 0-1 .449-1 1s.449 1 1 1 1-.449 1-1-.449-1-1-1z"})),Object(d.createElement)("g",null,Object(d.createElement)("path",{d:"m4.57 16.93c-.128 0-.256-.049-.354-.146-.195-.195-.195-.512 0-.707l4.723-4.723c.566-.566 1.555-.566 2.121 0l1.406 1.406 3.892-4.67c.283-.339.699-.536 1.142-.54h.011c.438 0 .853.19 1.139.523l5.23 6.102c.18.209.156.525-.054.705-.209.18-.524.157-.705-.054l-5.23-6.102c-.097-.112-.231-.174-.38-.174-.104-.009-.287.063-.384.18l-4.243 5.091c-.09.108-.221.173-.362.179-.142.01-.277-.046-.376-.146l-1.793-1.793c-.189-.188-.518-.188-.707 0l-4.723 4.723c-.097.097-.225.146-.353.146z"})));const{name:J,category:Z,attributes:$}=Y,ee={title:Object(b.__)("WL : Special Day Offer","woolentor"),description:Object(b.__)("Display spesial day offer banner.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:X}),keywords:["woolentor",Object(b.__)("shop banner","woolentor"),Object(b.__)("banner","woolentor"),Object(b.__)("special day","woolentor"),Object(b.__)("offer","woolentor"),Object(b.__)("special offer","woolentor")],example:{attributes:{title:Object(b.__)("Banner Title","woolentor"),subTitle:Object(b.__)("Banner Sub Title","woolentor"),offerAmount:Object(b.__)("50%","woolentor"),bannerDescription:Object(b.__)("Banner Description","woolentor"),buttonText:Object(b.__)("Shop Now","woolentor"),offerTagLine:Object(b.__)("Off","woolentor")}},attributes:$,edit:q,save:()=>null};class te extends d.Component{render(){const{setAttributes:e,title:t,bgProperty:o,attributesKey:n,uploadImage:r}=this.props,l=(t,r)=>{const l={...o};l[r]=t,e({[n]:l})},a=["image","png"],i=Object(d.createElement)("p",null,Object(b.__)("To edit the banner image, you need permission to upload media.","woolentor")),c=t=>{const r={...o};r.imageId=t.id,r.imageUrl=t.url,e({[n]:r})};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"wp-block-selector-woolentor-background-control"},t&&Object(d.createElement)("h3",null,t),Object(d.createElement)("div",{className:"wp-block-image-selector-woolentor-image-uploader"},Object(d.createElement)(j.MediaUploadCheck,{fallback:i},Object(d.createElement)(j.MediaUpload,{title:t,onSelect:c,allowedTypes:a,value:o.imageId,render:({open:e})=>Object(d.createElement)(m.Button,{className:o.imageId?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e},!o.imageId&&Object(b.__)("Set ","woolentor")+t,!!o.imageId&&!r&&Object(d.createElement)(m.Spinner,null),!!o.imageId&&r&&Object(d.createElement)("img",{src:r.source_url,alt:t}))})),!!o.imageId&&r&&Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(j.MediaUpload,{title:t,onSelect:c,allowedTypes:a,value:o.imageId,render:({open:e})=>Object(d.createElement)(m.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(b.__)("Replace image","woolentor"))})),!!o.imageId&&Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(m.Button,{onClick:()=>{const t={...o};t.imageId=void 0,t.imageUrl=void 0,e({[n]:t})},isLink:!0,isDestructive:!0},Object(b.__)("Remove image","woolentor")))),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Position","woolentor"),labelPosition:"side",value:o.position,options:[{label:Object(b.__)("Default","woolentor"),value:""},{label:Object(b.__)("Center Center","woolentor"),value:"center center"},{label:Object(b.__)("Center Left","woolentor"),value:"center left"},{label:Object(b.__)("Center Right","woolentor"),value:"center right"},{label:Object(b.__)("Top Center","woolentor"),value:"top center"},{label:Object(b.__)("Top Left","woolentor"),value:"top left"},{label:Object(b.__)("Top Right","woolentor"),value:"top right"},{label:Object(b.__)("Bottom Center","woolentor"),value:"bottom center"},{label:Object(b.__)("Bottom Left","woolentor"),value:"bottom left"},{label:Object(b.__)("Bottom Right","woolentor"),value:"bottom right"}],onChange:e=>l(e,"position")}),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Attachment","woolentor"),labelPosition:"side",value:o.attachment,options:[{label:Object(b.__)("Default","woolentor"),value:""},{label:Object(b.__)("Scroll","woolentor"),value:"scroll"},{label:Object(b.__)("Fixed","woolentor"),value:"fixed"}],onChange:e=>l(e,"attachment")}),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Repeat","woolentor"),labelPosition:"side",value:o.repeat,options:[{label:Object(b.__)("Default","woolentor"),value:""},{label:Object(b.__)("No-repeat","woolentor"),value:"no-repeat"},{label:Object(b.__)("Repeat","woolentor"),value:"repeat"},{label:Object(b.__)("Repeat-x","woolentor"),value:"repeat-x"},{label:Object(b.__)("Repeat-y","woolentor"),value:"repeat-y"}],onChange:e=>l(e,"repeat")}),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Size","woolentor"),labelPosition:"side",value:o.size,options:[{label:Object(b.__)("Default","woolentor"),value:""},{label:Object(b.__)("Auto","woolentor"),value:"auto"},{label:Object(b.__)("Cover","woolentor"),value:"cover"},{label:Object(b.__)("Contain","woolentor"),value:"contain"}],onChange:e=>l(e,"size")})))}}var oe=Object(g.compose)(Object(f.withSelect)((e,t)=>{const{getMedia:o}=e("core"),{bgProperty:n}=t;return{uploadImage:n.imageId?o(n.imageId):null}}))(te);class ne extends d.Component{constructor(e){super(e),this.state={activeClass:!1}}render(){const{attributes:e,setAttributes:t}=this.props,{style:o,bgProperty:n}=e,r={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},l=(o,n,r)=>{const l=[...e.markerList];l[r][n]=o,t({markerList:l})},a=(e,t)=>{t===this.state.activeClass?this.setState({activeClass:!1}):this.setState({activeClass:t})};let i;return e.markerList.length&&(i=e.markerList.map((o,n)=>{const r=this.state.activeClass===n?"woolentor_active_repeter":"";return Object(d.createElement)(d.Fragment,{key:n},Object(d.createElement)("div",{className:"woolentor_repeater-fields"},Object(d.createElement)("div",{className:"woolentor_repeater-tools",onClick:e=>a(0,n)},Object(d.createElement)("div",{className:"woolentor_repeater-item-title"},e.markerList[n].title),Object(d.createElement)("div",{className:"woolentor_repeater-item-remove"},Object(d.createElement)(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(b.__)("Delete Marker","woolentor"),onClick:()=>(o=>{const n=[...e.markerList];n.splice(o,1),t({markerList:n})})(n)}))),Object(d.createElement)("div",{className:r+" woolentor_repeater-controls"},Object(d.createElement)(m.TextControl,{label:Object(b.__)("Marker Title","woolentor"),className:"woolentor__marker-title",placeholder:Object(b.__)("Marker Title","woolentor"),value:e.markerList[n].title,onChange:e=>l(e,"title",n)}),Object(d.createElement)(m.TextareaControl,{label:Object(b.__)("Marker Content","woolentor"),value:e.markerList[n].content,onChange:e=>l(e,"content",n)}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Horizontal Postion","woolentor"),value:e.markerList[n].horizontal,onChange:e=>l(e,"horizontal",n),min:-1e3,step:1,max:1e3}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Vertical Postion","woolentor"),value:e.markerList[n].verticle,onChange:e=>l(e,"verticle",n),min:-1e3,step:1,max:1e3}))))})),Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Image","woolentor"),initialOpen:!0},Object(d.createElement)(oe,{title:Object(b.__)("Background Image","woolentor"),attributesKey:"bgProperty",setAttributes:t,bgProperty:n})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Marker","woolentor"),initialOpen:!1},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Style","woolentor"),value:o,options:[{label:Object(b.__)("Style One","woolentor"),value:"1"},{label:Object(b.__)("Style Two","woolentor"),value:"2"},{label:Object(b.__)("Style Three","woolentor"),value:"3"},{label:Object(b.__)("Style Four","woolentor"),value:"4"},{label:Object(b.__)("Style Five","woolentor"),value:"5"}],onChange:e=>t({style:e})}),i,Object(d.createElement)(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:(()=>{const o=[...e.markerList];o.push({title:Object(b.__)("Marker Item #"+(e.markerList.length+1),"woolentor"),content:"",horizontal:"",verticle:""}),t({markerList:o}),this.setState({activeClass:e.markerList.length})}).bind(this)},Object(b.__)("Add Marker","woolentor"))),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Marker","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...r,backgroundColor:e.markerColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.markerColor,onChange:e=>t({markerColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(d.createElement)("span",{style:{...r,backgroundColor:e.markerBGColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.markerBGColor,onChange:e=>t({markerBGColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Border Color","woolentor"),Object(d.createElement)("span",{style:{...r,backgroundColor:e.markerBorderColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.markerBorderColor,onChange:e=>t({markerBorderColor:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:e.markerBorderRadius,attributesKey:"markerBorderRadius",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.markerPadding,attributesKey:"markerPadding",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Content Area","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(d.createElement)("span",{style:{...r,backgroundColor:e.markerContentBGColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.markerContentBGColor,onChange:e=>t({markerContentBGColor:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:e.markerContentBorderRadius,attributesKey:"markerContentBorderRadius",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.markerContentPadding,attributesKey:"markerContentPadding",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Marker Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...r,backgroundColor:e.markerTitleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.markerTitleColor,onChange:e=>t({markerTitleColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.markerTitleSize,fallbackFontSize:e.markerTitleSize,onChange:e=>t({markerTitleSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.markerTitleMargin,attributesKey:"markerTitleMargin",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Marker Description","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...r,backgroundColor:e.markerDescriptionColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.markerDescriptionColor,onChange:e=>t({markerDescriptionColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:e.markerDescriptionSize,fallbackFontSize:e.markerDescriptionSize,onChange:e=>t({markerDescriptionSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.markerDescriptionMargin,attributesKey:"markerDescriptionMargin",setAttributes:t}))))}}var re=ne;class le extends d.Component{render(){const{name:e,attributes:t,className:o,isSelected:n,setAttributes:r,clientId:l}=this.props,{blockUniqId:a,bgProperty:i}=t;""==a&&r({blockUniqId:l});const c=e=>{let o=t[e]?t[e]:{},n="";if(""!=o.top||""!=o.right||""!=o.bottom||""!=o.left){let e=o.unit?o.unit:"px";n=o.top?n+o.top+e+" ":"0"+e+" ",n=o.right?n+o.right+e+" ":"0"+e+" ",n=o.bottom?n+o.bottom+e+" ":"0"+e+" ",n=o.left?n+o.left+e+" ":"0"+e+" "}return n},s=t.markerList.map((e,o)=>Object(d.createElement)("div",{key:o,className:"wlb_image_pointer",style:{left:e.horizontal+"%",top:e.verticle+"%",backgroundColor:t.markerBGColor&&""+t.markerBGColor,borderColor:t.markerBorderColor&&""+t.markerBorderColor,borderRadius:c("markerBorderRadius"),padding:c("markerPadding")}},Object(d.createElement)("div",{className:"wlb_pointer_box",style:{backgroundColor:t.markerContentBGColor&&""+t.markerContentBGColor,borderRadius:c("markerContentBorderRadius"),padding:c("markerContentPadding")}},e.title&&Object(d.createElement)("h4",{style:{color:t.markerTitleColor&&""+t.markerTitleColor,fontSize:t.markerTitleSize&&""+t.markerTitleSize,margin:c("markerTitleMargin")}},e.title),e.content&&Object(d.createElement)("p",{style:{color:t.markerDescriptionColor&&""+t.markerDescriptionColor,fontSize:t.markerDescriptionSize&&""+t.markerDescriptionSize,margin:c("markerDescriptionMargin")}},e.content))));return Object(d.createElement)(d.Fragment,null,n&&Object(d.createElement)(re,this.props),Object(d.createElement)("div",{className:o+" wlb-marker-style-"+t.style,style:{backgroundImage:i.imageUrl&&`url( ${i.imageUrl} )`,backgroundPosition:i.position&&i.position,backgroundAttachment:i.attachment&&i.attachment,backgroundRepeat:i.repeat&&i.repeat,backgroundSize:i.size&&i.size}},s))}}var ae=le,ie=o(14),ce=Object(d.createElement)("svg",{id:"_x31_","enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 193.826 193.826",width:"512",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)("path",{d:"M191.495,55.511L137.449,1.465c-1.951-1.953-5.119-1.953-7.07,0l-0.229,0.229c-3.314,3.313-5.14,7.72-5.14,12.406 c0,3.019,0.767,5.916,2.192,8.485l-56.55,48.533c-4.328-3.868-9.852-5.985-15.703-5.985c-6.305,0-12.232,2.455-16.689,6.913 l-0.339,0.339c-1.953,1.952-1.953,5.118,0,7.07l32.378,32.378l-31.534,31.533c-0.631,0.649-15.557,16.03-25.37,28.27 c-9.345,11.653-11.193,13.788-11.289,13.898c-1.735,1.976-1.639,4.956,0.218,6.822c0.973,0.977,2.256,1.471,3.543,1.471 c1.173,0,2.349-0.41,3.295-1.237c0.083-0.072,2.169-1.885,13.898-11.289c12.238-9.813,27.619-24.74,28.318-25.421l31.483-31.483 l30.644,30.644c0.976,0.977,2.256,1.465,3.535,1.465s2.56-0.488,3.535-1.465l0.339-0.339c4.458-4.457,6.913-10.385,6.913-16.689 c0-5.851-2.118-11.375-5.985-15.703l48.533-56.55c2.569,1.425,5.466,2.192,8.485,2.192c4.687,0,9.093-1.825,12.406-5.14l0.229-0.229 C193.448,60.629,193.448,57.463,191.495,55.511z"}));const{name:se,category:ue,attributes:de}=ie,be={title:Object(b.__)("WL : Image Marker","woolentor"),description:Object(b.__)("Display image marker.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:ce}),keywords:["woolentor",Object(b.__)("shop idicator","woolentor"),Object(b.__)("image indicator","woolentor"),Object(b.__)("marker","woolentor"),Object(b.__)("image marker","woolentor")],example:{attributes:{style:"1"}},supports:{align:["wide","full"]},attributes:de,edit:ae,save:()=>null};var me=e=>{const{attributes:t,setAttributes:o}=e,{title:n,subTitle:r,layout:l,featureImage:a}=t,i={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Content","woolentor"),initialOpen:!0},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Layout","woolentor"),value:l,options:[{label:Object(b.__)("Layout One","woolentor"),value:"1"},{label:Object(b.__)("Layout Two","woolentor"),value:"2"},{label:Object(b.__)("Layout Three","woolentor"),value:"3"},{label:Object(b.__)("Layout Four","woolentor"),value:"4"},{label:Object(b.__)("Layout Five","woolentor"),value:"5"}],onChange:e=>o({layout:e})}),Object(d.createElement)(G,{title:Object(b.__)("Image","woolentor"),ImageData:a,attributesKey:"featureImage",setAttributes:o}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Title","woolentor"),value:n,onChange:e=>o({title:e})}),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Sub Title","woolentor"),value:r,onChange:e=>o({subTitle:e})})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Area","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Border Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.areaBorderColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaBorderColor,onChange:e=>o({areaBorderColor:e})}),Object(d.createElement)("h3",null,Object(b.__)("Hover Border Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.areaHoverBorderColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaHoverBorderColor,onChange:e=>o({areaHoverBorderColor:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.areaMargin,attributesKey:"areaMargin",setAttributes:o}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:t.areaPadding,attributesKey:"areaPadding",setAttributes:o}),Object(d.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.areaBackgroundColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.areaBackgroundColor,onChange:e=>o({areaBackgroundColor:e})}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.titleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.titleColor,onChange:e=>o({titleColor:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.titleMargin,attributesKey:"titleMargin",setAttributes:o}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.titleSize,fallbackFontSize:t.titleSize,onChange:e=>o({titleSize:e})}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Sub Title","woolentor")),Object(d.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.subTitleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.subTitleColor,onChange:e=>o({subTitleColor:e})}),Object(d.createElement)(m.FontSizePicker,{fontSizes:[{name:Object(b.__)("Small","woolentor"),slug:"small",size:"12px"},{name:Object(b.__)("Medium","woolentor"),slug:"medium",size:"18px"},{name:Object(b.__)("Large","woolentor"),slug:"large",size:"24px"}],value:t.subTitleSize,fallbackFontSize:t.subTitleSize,onChange:e=>o({subTitleSize:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.subTitleMargin,attributesKey:"subTitleMargin",setAttributes:o}))))};class pe extends d.Component{render(){const{attributes:e,setAttributes:t}=this.props;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.BlockControls,null,Object(d.createElement)(j.AlignmentToolbar,{value:e.textAlignment,onChange:e=>t({textAlignment:e})})))}}var ge=pe;class fe extends d.Component{render(){const{name:e,className:t,attributes:o,isSelected:n,setAttributes:r,clientId:l}=this.props,{blockUniqId:a,featureImage:i}=o;""==a&&r({blockUniqId:l});const c={areaStyle:{}},s=e=>{let t=o[e]?o[e]:{},n="";if(""!=t.top||""!=t.right||""!=t.bottom||""!=t.left){let e=t.unit?t.unit:"px";n=t.top?n+t.top+e+" ":"0"+e+" ",n=t.right?n+t.right+e+" ":"0"+e+" ",n=t.bottom?n+t.bottom+e+" ":"0"+e+" ",n=t.left?n+t.left+e+" ":"0"+e+" "}return n};return c.areaStyle=o.areaBorderColor?{...c.areaStyle,borderColor:""+o.areaBorderColor}:"",c.areaStyle=o.areaBackgroundColor?{...c.areaStyle,backgroundColor:""+o.areaBackgroundColor}:"",c.areaStyle=o.areaMargin?{...c.areaStyle,margin:s("areaMargin")}:"",c.areaStyle=o.areaPadding?{...c.areaStyle,padding:s("areaPadding")}:"",Object(d.createElement)(d.Fragment,null,n&&Object(d.createElement)(me,this.props),n&&Object(d.createElement)(ge,this.props),Object(d.createElement)("div",{className:t+" woolentor-blocks ht-feature-wrap ht-feature-style-"+o.layout+" woolentor-text-align-"+o.textAlignment},Object(d.createElement)("div",{className:"ht-feature-inner",style:{...c.areaStyle,borderColor:""+o.areaBorderColor}},i.url&&Object(d.createElement)("div",{className:"ht-feature-img"},Object(d.createElement)("img",{src:i.url,alt:o.title})),Object(d.createElement)("div",{className:"ht-feature-content"},o.title&&Object(d.createElement)("h4",{style:{color:o.titleColor&&""+o.titleColor,fontSize:o.titleSize&&""+o.titleSize,margin:s("titleMargin")}},o.title),o.subTitle&&Object(d.createElement)("p",{style:{color:o.subTitleColor&&""+o.subTitleColor,fontSize:o.subTitleSize&&""+o.subTitleSize,margin:s("subTitleMargin")}},o.subTitle)))))}}var he=fe,Oe=o(15),je=Object(d.createElement)("svg",{viewBox:"-27 0 512 512.00001",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)("path",{d:"m399.996094 0h-341.996094c-31.980469 0-58 26.019531-58 58v369.996094c0 16.542968 13.457031 30 30 30h131.332031c5.523438 0 10-4.476563 10-10 0-5.523438-4.476562-10-10-10h-131.332031c-5.515625 0-10-4.484375-10-10v-369.996094c0-20.953125 17.046875-38 38-38h298.234375c-8.855469 10.1875-14.238281 23.472656-14.238281 38v322.265625c0 9.226563-7.503906 16.730469-16.730469 16.730469-7.210937 0-13.589844-4.597656-15.875-11.4375l-15.070313-45.21875c-4.253906-12.765625-16.15625-21.339844-29.609374-21.339844-17.210938 0-31.210938 14-31.210938 31.207031v7.789063h-51.832031c-5.523438 0-10 4.480468-10 10 0 5.523437 4.476562 10 10 10h51.832031v49.75c0 14.765625 2.878906 29.164062 8.558594 42.789062l14.710937 35.308594c1.601563 3.839844 5.316407 6.15625 9.234375 6.15625 1.28125 0 2.585938-.246094 3.839844-.769531 5.101562-2.125 7.511719-7.980469 5.386719-13.078125l-14.710938-35.308594c-4.65625-11.175781-7.019531-22.984375-7.019531-35.09375v-77.539062c0-6.183594 5.027344-11.210938 11.210938-11.210938 4.832031 0 9.109374 3.078125 10.636718 7.664062l15.070313 45.21875c5.007812 15.019532 19.011719 25.113282 34.847656 25.113282 20.253906 0 36.730469-16.476563 36.730469-36.730469v-171.449219l13.363281 13.335938c23.84375 23.796875 36.972656 55.457031 36.972656 89.140625v106.300781c0 27.535156-6.238281 55.238281-18.035156 80.117188-2.367187 4.988281-.238281 10.953124 4.75 13.320312s10.953125.242188 13.320313-4.75c13.058593-27.539062 19.964843-58.207031 19.964843-88.6875v-106.300781c0-39.035157-15.214843-75.71875-42.84375-103.296875l-27.492187-27.441406v-9.554688h66c16.542968 0 30-13.457031 30-30v-83c0-31.980469-26.015625-58-58-58zm38 141c0 5.511719-4.484375 10-10 10h-66v-93c0-20.953125 17.046875-38 38-38s38 17.046875 38 38zm0 0"}),Object(d.createElement)("path",{d:"m205 437.996094c-2.632812 0-5.210938 1.070312-7.070312 2.929687-1.859376 1.863281-2.929688 4.441407-2.929688 7.070313 0 2.632812 1.070312 5.210937 2.929688 7.070312 1.859374 1.859375 4.4375 2.929688 7.070312 2.929688 2.628906 0 5.207031-1.070313 7.070312-2.929688 1.859376-1.859375 2.929688-4.4375 2.929688-7.070312 0-2.628906-1.070312-5.207032-2.929688-7.070313-1.863281-1.859375-4.441406-2.929687-7.070312-2.929687zm0 0"}),Object(d.createElement)("path",{d:"m137.667969 74c0-11.027344-8.972657-20-20-20h-44c-11.03125 0-20 8.972656-20 20v44c0 11.027344 8.96875 20 20 20h44c11.027343 0 20-8.972656 20-20zm-20 44h-44v-44h44l.011719 44s-.003907 0-.011719 0zm0 0"}),Object(d.createElement)("path",{d:"m137.667969 194c0-11.027344-8.972657-20-20-20h-44c-11.03125 0-20 8.972656-20 20v44c0 11.027344 8.96875 20 20 20h44c11.027343 0 20-8.972656 20-20zm-20 44h-44v-44h44l.011719 44s-.003907 0-.011719 0zm0 0"}),Object(d.createElement)("path",{d:"m117.667969 294h-44c-11.03125 0-20 8.96875-20 20v43.996094c0 11.03125 8.96875 20 20 20h44c11.027343 0 20-8.96875 20-20v-43.996094c0-11.03125-8.972657-20-20-20zm0 63.996094h-44v-43.996094h44l.011719 43.996094s-.003907 0-.011719 0zm0 0"}),Object(d.createElement)("path",{d:"m296.332031 138c5.523438 0 10-4.476562 10-10s-4.476562-10-10-10h-68.9375c-5.523437 0-10 4.476562-10 10s4.476563 10 10 10zm0 0"}),Object(d.createElement)("path",{d:"m181.667969 138c2.632812 0 5.210937-1.070312 7.070312-2.929688 1.859375-1.859374 2.929688-4.441406 2.929688-7.070312s-1.070313-5.210938-2.929688-7.070312c-1.859375-1.859376-4.4375-2.929688-7.070312-2.929688-2.640625 0-5.210938 1.070312-7.070313 2.929688-1.867187 1.859374-2.929687 4.441406-2.929687 7.070312s1.0625 5.210938 2.929687 7.070312c1.859375 1.859376 4.429688 2.929688 7.070313 2.929688zm0 0"}),Object(d.createElement)("path",{d:"m181.664062 258h114.667969c5.523438 0 10-4.476562 10-10s-4.476562-10-10-10h-114.667969c-5.519531 0-10 4.476562-10 10s4.480469 10 10 10zm0 0"}));const{name:we,category:ye,attributes:ve}=Oe,_e={title:Object(b.__)("WL : Store Feature","woolentor"),description:Object(b.__)("Display store feature.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:je}),keywords:["woolentor",Object(b.__)("shop feature","woolentor"),Object(b.__)("feature","woolentor"),Object(b.__)("store","woolentor")],example:{attributes:{style:"1"}},attributes:ve,supports:{align:["wide","full"]},edit:he,save:()=>null};var Ce=e=>{const{attributes:t,setAttributes:o}=e,[n,r]=Object(d.useState)(!1),{columns:l,noGutter:a}=t,i={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},c=(e,n,r)=>{const l=[...t.brandLogoList];l[r][n]=e,o({brandLogoList:l})},s=["image","png"],u=Object(d.createElement)("p",null,Object(b.__)("To edit the banner image, you need permission to upload media.","woolentor")),p=(e,n)=>{const r=[...t.brandLogoList];r[n].image.id=e.id,r[n].image.url=e.url,o({brandLogoList:r})};let g;return t.brandLogoList.length>0&&(g=t.brandLogoList.map((e,l)=>{const a=n===l?"woolentor_active_repeter":"";return Object(d.createElement)(d.Fragment,{key:l},Object(d.createElement)("div",{className:"woolentor_repeater-fields"},Object(d.createElement)("div",{className:"woolentor_repeater-tools",onClick:e=>((e,t)=>{r(t!==n&&t)})(0,l)},Object(d.createElement)("div",{className:"woolentor_repeater-item-title"},t.brandLogoList[l].title),Object(d.createElement)("div",{className:"woolentor_repeater-item-remove"},Object(d.createElement)(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(b.__)("Delete Marker","woolentor"),onClick:()=>(e=>{const n=[...t.brandLogoList];n.splice(e,1),o({brandLogoList:n})})(l)}))),Object(d.createElement)("div",{className:a+" woolentor_repeater-controls"},Object(d.createElement)(m.TextControl,{label:Object(b.__)("Brand Title","woolentor"),className:"woolentor__marker-title",placeholder:Object(b.__)("Brand Title","woolentor"),value:t.brandLogoList[l].title,onChange:e=>c(e,"title",l)}),Object(d.createElement)("div",{className:"wp-block-image-selector-woolentor-image-uploader"},Object(d.createElement)(j.MediaUploadCheck,{fallback:u},Object(d.createElement)(j.MediaUpload,{title:Object(b.__)("Choose Image","woolentor"),onSelect:e=>p(e,l),allowedTypes:s,value:t.brandLogoList[l].image.id,render:({open:e})=>Object(d.createElement)(m.Button,{className:t.brandLogoList[l].image.id?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e},t.brandLogoList[l].image.id?Object(d.createElement)("img",{src:t.brandLogoList[l].image.url,alt:t.brandLogoList[l].title}):Object(b.__)("Choose Image","woolentor"))})),!!t.brandLogoList[l].image.id&&Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(j.MediaUpload,{title:Object(b.__)("Choose Image","woolentor"),onSelect:e=>p(e,l),allowedTypes:s,value:t.brandLogoList[l].image.id,render:({open:e})=>Object(d.createElement)(m.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(b.__)("Replace image","woolentor"))})),!!t.brandLogoList[l].image.id&&Object(d.createElement)(j.MediaUploadCheck,null,Object(d.createElement)(m.Button,{onClick:()=>(e=>{const n=[...t.brandLogoList];n[e].image.id=void 0,n[e].image.url=void 0,o({brandLogoList:n})})(l),isLink:!0,isDestructive:!0},Object(b.__)("Remove image","woolentor")))),Object(d.createElement)(m.TextControl,{label:Object(b.__)("Brand Link","woolentor"),value:t.brandLogoList[l].link,placeholder:Object(b.__)("https://your-site.com","woolentor"),onChange:e=>c(e,"link",l)}))))})),Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Brand Logo","woolentor"),initialOpen:!0},g,Object(d.createElement)(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:(()=>{const e=[...t.brandLogoList];e.push({title:Object(b.__)("Brand Item #"+(t.brandLogoList.length+1),"woolentor"),image:{id:"",url:""},link:""}),o({brandLogoList:e}),r(t.brandLogoList.length)}).bind(void 0)},Object(b.__)("Add Brand","woolentor"))),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Brand Option","woolentor"),initialOpen:!1},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Columns","woolentor"),value:l,options:[{label:Object(b.__)("One","woolentor"),value:1},{label:Object(b.__)("Two","woolentor"),value:2},{label:Object(b.__)("Three","woolentor"),value:3},{label:Object(b.__)("Four","woolentor"),value:4},{label:Object(b.__)("Five","woolentor"),value:5},{label:Object(b.__)("Six","woolentor"),value:6},{label:Object(b.__)("Seven","woolentor"),value:7},{label:Object(b.__)("Eight","woolentor"),value:8},{label:Object(b.__)("Nine","woolentor"),value:9},{label:Object(b.__)("Ten","woolentor"),value:10}],onChange:e=>o({columns:e})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("No Gutters","woolentor"),checked:a,help:a?Object(b.__)("Enable No Gutters.","woolentor"):Object(b.__)("Toggle to show the Gutters.","woolentor"),onChange:()=>o({noGutter:!a})}),!a&&Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Gutter Spacing","woolentor"),value:t.itemSpace,onChange:e=>o({itemSpace:e}),min:0,step:1,max:200})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Brand Item","woolentor")),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Border Type","woolentor"),value:t.singleItemAreaBorderType,options:[{label:Object(b.__)("None","woolentor"),value:""},{label:Object(b.__)("Solid","woolentor"),value:"solid"},{label:Object(b.__)("Double","woolentor"),value:"double"},{label:Object(b.__)("Dotted","woolentor"),value:"dotted"},{label:Object(b.__)("Dashed","woolentor"),value:"dashed"},{label:Object(b.__)("Groove","woolentor"),value:"groove"}],onChange:e=>o({singleItemAreaBorderType:e})}),t.singleItemAreaBorderType&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(U,{lavel:Object(b.__)("Border Width","woolentor"),dimensions:t.singleItemAreaBorderWidth,attributesKey:"singleItemAreaBorderWidth",setAttributes:o}),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Border Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.singleItemAreaBorderColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.singleItemAreaBorderColor,onChange:e=>o({singleItemAreaBorderColor:e})})),Object(d.createElement)(U,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:t.singleItemAreaBorderRadius,attributesKey:"singleItemAreaBorderRadius",setAttributes:o}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.singleItemAreaMargin,attributesKey:"singleItemAreaMargin",setAttributes:o}),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:t.singleItemAreaPadding,attributesKey:"singleItemAreaPadding",setAttributes:o}),Object(d.createElement)("h3",null,Object(b.__)("Alignment","woolentor")),Object(d.createElement)(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},Object(d.createElement)(m.Button,{icon:"editor-alignleft",value:"left",isPrimary:"left"===t.brandAlignment,isSecondary:"left"!==t.brandAlignment,onClick:()=>o({brandAlignment:"left"}),title:Object(b.__)("Title align left","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-aligncenter",value:"center",isPrimary:"center"===t.brandAlignment,isSecondary:"center"!==t.brandAlignment,onClick:()=>o({brandAlignment:"center"}),title:Object(b.__)("Title align center","woolentor")}),Object(d.createElement)(m.Button,{icon:"editor-alignright",value:"right",isPrimary:"right"===t.brandAlignment,isSecondary:"right"!==t.brandAlignment,onClick:()=>o({brandAlignment:"right"}),title:Object(b.__)("Title align right","woolentor")}),Object(d.createElement)("span",{onClick:()=>o({brandAlignment:""}),class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title",style:{marginTop:"20px"}},Object(b.__)("Brand Image","woolentor")),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Border Type","woolentor"),value:t.brandImageBorderType,options:[{label:Object(b.__)("None","woolentor"),value:""},{label:Object(b.__)("Solid","woolentor"),value:"solid"},{label:Object(b.__)("Double","woolentor"),value:"double"},{label:Object(b.__)("Dotted","woolentor"),value:"dotted"},{label:Object(b.__)("Dashed","woolentor"),value:"dashed"},{label:Object(b.__)("Groove","woolentor"),value:"groove"}],onChange:e=>o({brandImageBorderType:e})}),t.brandImageBorderType&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(U,{lavel:Object(b.__)("Border Width","woolentor"),dimensions:t.brandImageBorderWidth,attributesKey:"brandImageBorderWidth",setAttributes:o}),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Border Color","woolentor"),Object(d.createElement)("span",{style:{...i,backgroundColor:t.brandImageBorderColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:t.brandImageBorderColor,onChange:e=>o({brandImageBorderColor:e})})),Object(d.createElement)(U,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:t.brandImageBorderRadius,attributesKey:"brandImageBorderRadius",setAttributes:o}))))};const Ee=Object(d.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",width:"250",height:"150",viewBox:"0 0 300 300"},Object(d.createElement)("image",{id:"woolentor-logo",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADHFJREFUeNrsXU2IHMcV7m7NSnEU8IAvvgQmEHTV+JCDNwaN4oB1UNAIx7nO7sWQ5CBtcvAlYS0CAZ9GOoSActjZUyDESGZ9kA7OjEDWHrW6GoHHOAcfEphAHMjuaif12tWT3pn++arrVf/Wg2Z3pZme7npffe97r17XuE7N7Ot3e23xoysP+v2S/K+OPFCbyJ9TcXwhjgP6/fzdyUGdxsutgcPJ0T3p6K6ik7PaRALiEf0uQDGzAMh3hvfFcU06vl2CyyIwfCSO+1VjCLeCTu+X/HIpZNwXx24VwOCW3PE0wwfi2KgowxIA7khmmFkA4I4nh9+QMb0ONmv9+J3R2Xd+ccd13akFQLLjt3MScrnat37zJ8f77vfp15E4bpUFCK51vHkjxxMAloyAsCWAUGhoaJUgxm9LNV9ba73+VtQ/E+j78/mcwsL7jWIAqeqHFRZ3SvbS7//suK+8mpY5bAogTHJnpwKcT2nc501x/pkL3TTnk3VOvnw+FmMzlJOjfgCgGxPHjvj1nlOO4k0+AFh/C3rd8f5D+nFTHE9laKwPAGS59mlTZv0pAFx8A3rdi4PHCzYQB7HB+7UAgFT4T+uq8BOd333Dcb/9ndTXnXx24Mz/+dXyP2+LsRubDgmeYecT5e84DbUz3R9i9P/kYdx/9WRI6FYKADLej5tI+Yv0Ssz81utXMPp/9jhRIMqQ0K8EACRljeue23PG/vl//p32MhrTezKclhcAIbHXdRpuMP3vP1Q57Q43CDxm54+bKPai6J8EYJrRzA+p/0JA4DE7v+1Yc87wxP5cQOAxOL8tlb51vrSY2n9E/P9U52NYQOAxOH9sY36I/l95NVj2TaZ/kfdnoH92EOgywD3r/GXxp1z507WhTp3A05j9w6anelG29ubbJtR/WoqYuWLoZXQ+0c5N6+6lwRTUD6z8+fR/8uVzzo8OQrF5AEi6GVp3Zxd/jLM/bF3JyuYAYBU/T/w/fvLA1CXcVC0ZqzLAthV9Mc7HGj986o9Y+eO0HRU9AAPgcG/Us3E/AQDrhdL/sh7YYQXAfD5vr10d7CAIbywALuae/iVZHw0FKAPQzO+gKU4TYz/S+OGv/Jmlf+VQ4AGzvyNjP1zjtuo/DgCf5nlZ7cBvugywiCfoKleTTGVMNBZ/dLKCTmYAiNlPwq+XBe029kfQf3rjh5FQoMMA25HxzorB0HgYafzgtF5Sm3lLZfYv3rR+xTnaG1n6FxOBs/GDzkdCO1hNPBGC8Whvl0M40kSeqDLAtq7oaYL654r9dC56gLT15k8d70LXP6iplB4ra+mL71gW8FRnvwryrfrH1D8JybOD92JTybMb73GE3RsqDHCDK/bVmf65Gj8ovU6rIzDUYPpRGcEKAOSL+unovwIVP2o7+9fBvj8g9iNMgoAtCwtEMcAGWq4sqjBEg0GLL0yDYpT+09Q/3UOO97GBZAEDillIjCdaOv7kr7k6/tzPf3cqHhLFHo4+cF58dpDrdXA1fqBAYmogoSe2Ns7fnYwiGUAqxc7x/gOoaOGLwQvd/Jz/q+HKwNPf5349zO06VJx29MmHbJkEci7QriWFgMEidu1jTQvoMqiuJankhVLOSZNwNX6iTMLcQ9APLxItA6Cvirg8xCB9RlqcpIGkHDoP53M5rZV/A+mKn70Q/QebK/8/foFxFa2HZ0q3BLjWfvZL6LVrVwfGBRVn6bfAHoJrUQwwWLmJJxjyWgb7BGhWqzAMhQqjAECdlhJCNTeP0LVeFAB6qyjGxKCpVMavjV8dKItFU6FAqfEjZdwYNo/QzQZ6CwCE9thfvRlwDdsEC5wFqT8qFJhYseQs/cJMYq6HoBdmgF4sAkExSDfEKQYprcu63uDX1jOCJ9FpTIs/6FgZ7iG4FAZAN0nNIkUIFVRDs1jTgeQszgUr9N6QsInSv+EWslMMcCnxptCUkCkMIGkfR+3AhPqH6B/sITjef2ASAH7ml8oAAaWhYlA39qqkfdC5FEVknBjlavwoQewPW9eTArCdemPgBekuW6qmfcj5dMvEnI0fKEvm1EHc8RzwUa8XYDqis0KokvapiCNdRoHVf8oYwT0E2fYOymIXCQAd6ObAgoTK/ng6ad/hH38LVypp0Nd+spEZlHDjR8r1wExiOPaH6wEwAMjg9YEMC0QqaR/NDhrs/44+wGfxj97OpE/WYMp+zHauHDuIewSAl9FXo8j0wCdlT83+DbyEe/iXPyxm3dHHu7AgPLehXiaGH/kGGj8K2jwi+bochce9VVITtGVqIfxAwJDDw6GI2tPRWnnQaQsPTgGNHznF/lMAUDJUDKI3rJKq+QCM6EA6VAgFJAjRLKPijR+GAICKQTB39uv2oEOOBPVHqX+6JrQ1TaXOAG/4mJb7l2fziEgAdFTfhIqUtBmk0sRBg5MUfvzQAKaGFAbSagPwci3gtBJtHsEEAHCPm7TuGRVRdiSFX1J4ONzFQ0FaC1lNGj/4Q8Ai5wUvNk4MnpGPP6mkfcjr0NpAGvvUpPHDDAA4wkCWtA8xqg2goSCuhQztc6xA44c5AKDbnUS1juukfQg7obUBH4gRgpBz5a9lfudwbQBMTbNAWARxpH2p1yXegxZT/NpAKBQo7fX/jGnlr7jNIzQBAIrBMKVypH1Q2FAQhOFrUlmurUjjh5kQENAt3DpOIGBM+6D3K9QGgm5idB2jSo0fxgCgIl5oIYQz7ePWD+SsYHMGiP6BR77LHPvDANB6qlLlOUI07aNzcjzs6dcGFICELkdDjR/l3DouEgD/0j0J5/o1OY32xeEyv4bAXGBJ65HM+VtDihOBC6plXMA4/tuH7AUREoRcKhtZ+SvgW0Oy2oQFAFxr2HQeE/sN+Kzy8S4boyB6hzONLrUGQGkRYpK9XWP5sF8bYNAVVW38iLFH3vm7k5n4ZaY9M57pFTPIOabToUPNzAJ5SKbgbw1RtWmQBmpPDZXW8bjZb9rIeTqhAFr5K/5bQ1TsIADAoyLDAFfahwFtlFlkVrnxI8oE+x+wMQBKkabTPigUKLSQqTitzI0fURlAIAIXfxTBAibSvtSZnEFvIPdV5saPKAG4AIAUgiwsoKIDTKV9UChQXGhKXfkr57eGwAzAxgIqixsm0z4o9IBZAWfjR9GlX2kzMel9f4c3ivzIYfpWMGodT2uEyCPtQ8Qnrf6lrVFwNn7Qw6Gt9WJ3W58fH0+cuz9wTgGAEPH1uz0KBdpfCkkxlhycNLB5C784oxYy2qY9jr6RZWmVjTGK3N52abI7yyGA7D7bwNLDmxEZgb9Cl/PWrmk6JG6tgK4faSyp4M7pCz+74X+V3zV3j/OTSBwFqA/W0UsiglZoPLxt+/wfX0Ehil7/0nCvUs53Xfd6JAAkCD53Mjwr0FSj4g/tVVwh2xQAGMWFALJd69ba2izs/DgAjOw44Xby9+dVutwV364AQGQDU04xWHfL2rpekN1JBUDcC63FGy0zF13TAMXfdEXExr1aiMGxk7CDqLVoQUgpYUly/dMz/UL3sgDARAUA5PyxdWstbCJC++VIYMS9Q9aKJ3bsamG3Ypkh6xutVWr2TzIBwLJALWwrURsAJ9i0Y1hZu01tX1oAkHUBGwqqZzPEb+jDobcdhgdIrOVL/bLTK9Fc9Gw2LaxH2peVAQJBeNuObSWoH9ZtqvsDUEw5sGNcatuUuo0fADKmbDoMj5JZM2Ij4SOlhTzlHUJkWrFlx7p0lskvbtZPE6Jwx4n4PnprhcX911SoXxsAEgR2xbAc9lpawYctBCzZdSsKSyH6MvvA1f10+a1j1Ejatr4oxPkjnRNobxMnM4PLNjPI3W7pOp+FAUJMQI8BjS0T5JbusSzSeVxXJOOQZQLztsXlfFYGCDFBx/nm6aKu9VX5Yr5xAISE4diCgDXP3+J2vjEAhIBgi0U8zr+sk+rlogFidAHFKls2zm7k9O+Zcr5xBljKEEgXdKxPYaN2LuOTx83rbqQuoJDQt75NpfzrSZ28lQRACAh9CQRbL1i1+1Lp55ZKu0XcpWSDoRWIC5tKx0/y/mC3yLuWfYbDBqeLNNPvyHhfSAHNLcMoCCAQE2w3TCRSTn8ryxp+7QDQMCCUwvGlBECNgTCTAq80ji81AJY0wqDCYnEqY/yoqBhfaQAsZQ2UPt6ogGCcSZrfNVnBaxQAlsBAYYGY4ZpTnqISOXpSFadXGgAxYYKOi/JnO0eHP3O+eQxrWtXxqzwAYhgiYImXQyGjl8HJMxnHv5B/T6s2w9PsfwIMAOhUCXLerUHIAAAAAElFTkSuQmCC"}));class ke extends d.Component{render(){const{className:e,attributes:t,isSelected:o,setAttributes:n,clientId:r}=this.props,{blockUniqId:l}=t;""==l&&n({blockUniqId:r});const a={brandItem:{},brandImage:{}},i=e=>{let o=t[e]?t[e]:{},n="";if(""!=o.top||""!=o.right||""!=o.bottom||""!=o.left){let e=o.unit?o.unit:"px";n=o.top?n+o.top+e+" ":"0"+e+" ",n=o.right?n+o.right+e+" ":"0"+e+" ",n=o.bottom?n+o.bottom+e+" ":"0"+e+" ",n=o.left?n+o.left+e+" ":"0"+e+" "}return n};a.brandItem=t.singleItemAreaBorderType?{...a.brandItem,borderStyle:t.singleItemAreaBorderType}:"",a.brandItem=t.singleItemAreaBorderWidth?{...a.brandItem,borderWidth:i("singleItemAreaBorderWidth")}:"",a.brandItem=t.singleItemAreaBorderRadius?{...a.brandItem,borderRadius:i("singleItemAreaBorderRadius")}:"",a.brandItem=t.singleItemAreaBorderColor?{...a.brandItem,borderColor:""+t.singleItemAreaBorderColor}:"",a.brandItem=t.singleItemAreaMargin?{...a.brandItem,margin:i("singleItemAreaMargin")}:"",a.brandItem=t.singleItemAreaPadding?{...a.brandItem,padding:i("singleItemAreaPadding")}:"",a.brandImage=t.brandImageBorderType?{...a.brandImage,borderStyle:""+t.brandImageBorderType}:"",a.brandImage=t.brandImageBorderWidth?{...a.brandImage,borderWidth:i("brandImageBorderWidth")}:"",a.brandImage=t.brandImageBorderColor?{...a.brandImage,borderColor:""+t.brandImageBorderColor}:"",a.brandImage=t.brandImageBorderRadius?{...a.brandImage,borderRadius:i("brandImageBorderRadius")}:"";const c=t.brandLogoList.map((e,o)=>Object(d.createElement)("div",{className:"wl-col-"+t.columns,style:{paddingLeft:!t.noGutter&&t.itemSpace+"px",paddingRight:!t.noGutter&&t.itemSpace+"px"}},Object(d.createElement)("div",{className:"wl-single-brand",style:a.brandItem},e.image.url?Object(d.createElement)("img",{src:e.image.url,alt:e.title,style:a.brandImage}):Object(d.createElement)("div",{className:"woolentor-default-brand",style:a.brandImage},Ee))));return Object(d.createElement)(d.Fragment,null,o&&Object(d.createElement)(Ce,this.props),Object(d.createElement)("div",{className:e+" wl-columns-"+t.columns},Object(d.createElement)("div",{className:!0===t.noGutter?"wl-row wlno-gutters":"wl-row"},c)))}}var Se=ke,Ae=o(16),Fe=Object(d.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512"},Object(d.createElement)("path",{d:"M166,0H75C33.645,0,0,33.645,0,75v91c0,41.355,33.645,75,75,75h91c41.355,0,75-33.645,75-75V75 C241,33.645,207.355,0,166,0z M211,166c0,24.813-20.187,45-45,45H75c-24.813,0-45-20.187-45-45V75c0-24.813,20.187-45,45-45h91 c24.813,0,45,20.187,45,45V166z"}),Object(d.createElement)("path",{d:"M437,271h-91c-41.355,0-75,33.645-75,75v91c0,41.355,33.645,75,75,75h91c41.355,0,75-33.645,75-75v-91 C512,304.645,478.355,271,437,271z M482,437c0,24.813-20.187,45-45,45h-91c-24.813,0-45-20.187-45-45v-91 c0-24.813,20.187-45,45-45h91c24.813,0,45,20.187,45,45V437z"}),Object(d.createElement)("path",{d:"M437,0h-91c-41.355,0-75,33.645-75,75v91c0,57.897-47.103,105-105,105H75c-41.355,0-75,33.645-75,75v91 c0,41.355,33.645,75,75,75h91c41.355,0,75-33.645,75-75v-91c0-57.897,47.103-105,105-105h91c41.355,0,75-33.645,75-75V75 C512,33.645,478.355,0,437,0z M211,346v91c0,24.813-20.187,45-45,45H75c-24.813,0-45-20.187-45-45v-91c0-24.813,20.187-45,45-45 h91c20.827,0,40.568-4.741,58.2-13.2C215.741,305.432,211,325.173,211,346z M482,166c0,24.813-20.187,45-45,45h-91 c-20.827,0-40.568,4.741-58.2,13.2c8.459-17.632,13.2-37.373,13.2-58.2V75c0-24.813,20.187-45,45-45h91c24.813,0,45,20.187,45,45 V166z"}));const{name:Te,category:xe,attributes:Pe}=Ae,Be={title:Object(b.__)("WL : Brand Logo","woolentor"),description:Object(b.__)("Display brand logo.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:Fe}),keywords:["woolentor",Object(b.__)("logo","woolentor"),Object(b.__)("brand","woolentor"),Object(b.__)("brand logo","woolentor")],example:{attributes:{brandLogoList:[{title:"Brand Title one",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Two",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Three",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Four",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Five",link:"https://hasthemes.com/",image:{id:"",url:""}},{title:"Brand Title Six",link:"https://hasthemes.com/",image:{id:"",url:""}}],columns:3}},supports:{align:["wide","full"]},attributes:Pe,edit:Se,save:()=>null};var ze=o(21),Me=o.n(ze);class Le extends d.Component{render(){const{attributes:e,setAttributes:t}=this.props,{style:o,displayType:n,productCategory:r,productCategories:l,order:a,displayLimit:i,showCount:c,sliderOn:s,columns:u,noGutter:p,itemSpace:g}=e,f={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.InspectorControls,null,Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Settings","woolentor"),initialOpen:!0},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Style","woolentor"),value:o,options:[{label:Object(b.__)("Style One","woolentor"),value:"1"},{label:Object(b.__)("Style Two","woolentor"),value:"2"},{label:Object(b.__)("Style Three","woolentor"),value:"3"},{label:Object(b.__)("Style Four","woolentor"),value:"4"},{label:Object(b.__)("Style Five","woolentor"),value:"5"}],onChange:e=>t({style:e})}),Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Category Display Type","woolentor"),value:n,options:[{label:Object(b.__)("Single Category","woolentor"),value:"singleCat"},{label:Object(b.__)("Multiple Categories","woolentor"),value:"multipleCat"},{label:Object(b.__)("All Categories","woolentor"),value:"allCat"}],onChange:e=>t({displayType:e})}),"singleCat"==n&&Object(d.createElement)(O,{title:Object(b.__)("Select category","woolentor"),attributesKey:"productCategory",setAttributes:t,selectedTaxonomies:r,type:"single"}),"multipleCat"==n&&Object(d.createElement)(O,{title:Object(b.__)("Select categories","woolentor"),attributesKey:"productCategories",setAttributes:t,selectedTaxonomies:l,type:"multiple"}),"singleCat"!=n&&Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Order","woolentor"),value:a,options:[{label:Object(b.__)("Ascending","woolentor"),value:"asc"},{label:Object(b.__)("Descending","woolentor"),value:"desc"}],onChange:e=>t({order:e})}),"allCat"==n&&Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Limit","woolentor"),value:i,onChange:e=>t({displayLimit:e}),min:1,step:1,max:20}),("1"==o||"4"==o)&&Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Show Count","woolentor"),checked:c,help:c?Object(b.__)("Enable show Count.","woolentor"):Object(b.__)("Toggle to show the count.","woolentor"),onChange:()=>t({showCount:!c})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider On","woolentor"),checked:s,help:s?Object(b.__)("Enable slider.","woolentor"):Object(b.__)("Toggle to show the slider.","woolentor"),onChange:()=>t({sliderOn:!s})})),1==s&&Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Slider Options","woolentor"),initialOpen:!1},Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider Items","woolentor"),value:e.slitems,onChange:e=>t({slitems:e}),min:1,step:1,max:10}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider Arrow","woolentor"),checked:e.slarrows,help:e.slarrows?Object(b.__)("Enable slider arrow.","woolentor"):Object(b.__)("Toggle to show the slider arrow.","woolentor"),onChange:()=>t({slarrows:!e.slarrows})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider dots","woolentor"),checked:e.sldots,help:e.sldots?Object(b.__)("Enable slider pagination.","woolentor"):Object(b.__)("Toggle to show the slider pagination.","woolentor"),onChange:()=>t({sldots:!e.sldots})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Pause on Hover?","woolentor"),checked:e.slpauseOnHover,help:e.slpauseOnHover?Object(b.__)("Enable slider pagination.","woolentor"):Object(b.__)("Toggle to show the slider pagination.","woolentor"),onChange:()=>t({slpauseOnHover:!e.slpauseOnHover})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Is RTL","woolentor"),checked:e.slIsrtl,help:e.slIsrtl?Object(b.__)("Enable RTL.","woolentor"):Object(b.__)("Toggle to show the RTL direction.","woolentor"),onChange:()=>t({slIsrtl:!e.slIsrtl})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("Slider auto play","woolentor"),checked:e.slautolay,help:e.slautolay?Object(b.__)("Enable slider auto play.","woolentor"):Object(b.__)("Toggle to show the slider auto play.","woolentor"),onChange:()=>t({slautolay:!e.slautolay})}),1==e.slautolay&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Autoplay speed","woolentor"),value:e.slautoplaySpeed,onChange:e=>t({slautoplaySpeed:e}),min:1,step:1,max:1e5}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Autoplay animation speed","woolentor"),value:e.slanimationSpeed,onChange:e=>t({slanimationSpeed:e}),min:1,step:1,max:1e5})),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider item to scroll","woolentor"),value:e.slscrollItem,onChange:e=>t({slscrollItem:e}),min:1,step:1,max:1e5}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Tablet Screen options","woolentor")),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider Items","woolentor"),value:e.sltabletDisplayColumns,onChange:e=>t({sltabletDisplayColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider item to scroll","woolentor"),value:e.sltabletScrollColumns,onChange:e=>t({sltabletScrollColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Tablet Screen Resolution","woolentor"),value:e.sltabletWidth,onChange:e=>t({sltabletWidth:e}),min:1,step:1,max:1500}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Mobile Phone Screen options","woolentor")),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider Items","woolentor"),value:e.slMobileDisplayColumns,onChange:e=>t({slMobileDisplayColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Slider item to scroll","woolentor"),value:e.slMobileScrollColumns,onChange:e=>t({slMobileScrollColumns:e}),min:1,step:1,max:8}),Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Mobile Screen Resolution","woolentor"),value:e.slMobileWidth,onChange:e=>t({slMobileWidth:e}),min:1,step:1,max:1500})),0==s&&Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Columns","woolentor"),initialOpen:!1},Object(d.createElement)(m.SelectControl,{label:Object(b.__)("Columns","woolentor"),value:u,options:[{label:Object(b.__)("One","woolentor"),value:1},{label:Object(b.__)("Two","woolentor"),value:2},{label:Object(b.__)("Three","woolentor"),value:3},{label:Object(b.__)("Four","woolentor"),value:4},{label:Object(b.__)("Five","woolentor"),value:5},{label:Object(b.__)("Six","woolentor"),value:6},{label:Object(b.__)("Seven","woolentor"),value:7},{label:Object(b.__)("Eight","woolentor"),value:8},{label:Object(b.__)("Nine","woolentor"),value:9},{label:Object(b.__)("Ten","woolentor"),value:10}],onChange:e=>t({columns:e})}),Object(d.createElement)(m.ToggleControl,{label:Object(b.__)("No Gutters","woolentor"),checked:p,help:p?Object(b.__)("Enable No Gutters.","woolentor"):Object(b.__)("Toggle to show the Gutters.","woolentor"),onChange:()=>t({noGutter:!p})}),!p&&Object(d.createElement)(m.RangeControl,{label:Object(b.__)("Gutter Spacing","woolentor"),value:g,onChange:e=>t({itemSpace:e}),min:0,step:1,max:200})),Object(d.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Area","woolentor")),Object(d.createElement)(U,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.areaPadding,attributesKey:"areaPadding",setAttributes:t}),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Background Color","woolentor"),Object(d.createElement)("span",{style:{...f,backgroundColor:e.areaBackgroundColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.areaBackgroundColor,onChange:e=>t({areaBackgroundColor:e})}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Image","woolentor")),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Box Color","woolentor"),Object(d.createElement)("span",{style:{...f,backgroundColor:e.imageBoxColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.imageBoxColor,onChange:e=>t({imageBoxColor:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.imageMargin,attributesKey:"imageMargin",setAttributes:t}),Object(d.createElement)(U,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:e.imageBorderRadius,attributesKey:"imageBorderRadius",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...f,backgroundColor:e.titleColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleColor,onChange:e=>t({titleColor:e})}),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Hover Color","woolentor"),Object(d.createElement)("span",{style:{...f,backgroundColor:e.titleHoverColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.titleHoverColor,onChange:e=>t({titleHoverColor:e})}),Object(d.createElement)(U,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.titleMargin,attributesKey:"titleMargin",setAttributes:t}),Object(d.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Count","woolentor")),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Color","woolentor"),Object(d.createElement)("span",{style:{...f,backgroundColor:e.countColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.countColor,onChange:e=>t({countColor:e})}),Object(d.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Before Border Color","woolentor"),Object(d.createElement)("span",{style:{...f,backgroundColor:e.countBeforeColor}})),Object(d.createElement)(m.ColorPalette,{colors:[{name:"Black",color:"#000000"},{name:"Orange",color:"#FF6900"},{name:"Vivid Red",color:"#CF2E2E"},{name:"Pink",color:"#F78DA7"},{name:"White",color:"#FFFFFF"},{name:"Blue",color:"#8ED1FC"}],value:e.countBeforeColor,onChange:e=>t({countBeforeColor:e})}))))}}var De=Le,Ie=o(5),Re=o.n(Ie),Ne=o(22),He=o.n(Ne),We=o(23),Ge=o(24),Ue=o.n(Ge);class Ve extends d.Component{constructor(e){super(e),this.state={categoryData:[]}}componentDidMount(){this.fetchCategoryData()}componentDidUpdate(e){var t,o=this.props.attributes,n=o.displayLimit,r=o.order;t="singleCat"==o.displayType?o.productCategory:"multipleCat"==o.displayType?o.productCategories:"";var l=e.attributes;("singleCat"==l.displayType?l.productCategory:"multipleCat"==l.displayType?l.productCategories:"")==t&&e.attributes.displayLimit==n&&e.attributes.order==r||this.fetchCategoryData()}fetchCategoryData(){var e={queryLimit:this.props.attributes.displayLimit,queryOrder:this.props.attributes.order,queryType:"regular",wpnonce:woolentorData.security};"singleCat"==this.props.attributes.displayType?e.querySlug=this.props.attributes.productCategory:"multipleCat"==this.props.attributes.displayType?e.querySlug=this.props.attributes.productCategories:e.querySlug="";var t=Object(We.addQueryArgs)("/woolentor/v1/category",e);He()({path:t}).then(e=>this.setState({categoryData:e}))}render(){const{attributes:e,className:t,isSelected:o,setAttributes:n,clientId:r}=this.props,{blockUniqId:l,style:a}=e;""==l&&n({blockUniqId:r});const i=Re()(t,{["wl-columns-"+e.columns]:e.columns},{["woolentor-area-"+e.align]:e.align}),c=Re()({"wl-row":!0!==e.sliderOn},{"wlno-gutters":1==e.noGutter},{"product-slider":1==e.sliderOn}),{categoryData:s}=this.state;let u=0,b=-1;const p={arrows:e.slarrows,prevArrow:Object(d.createElement)((function(e){const{className:t,onClick:o}=e;return Object(d.createElement)(m.Button,{className:t,onClick:o},Object(d.createElement)("i",{className:"fa fa-angle-left"}))}),null),nextArrow:Object(d.createElement)((function(e){const{className:t,onClick:o}=e;return Object(d.createElement)(m.Button,{className:t,onClick:o},Object(d.createElement)("i",{className:"fa fa-angle-right"}))}),null),dots:e.sldots,infinite:!0,autoplay:e.slautolay,autoplaySpeed:e.slautoplaySpeed,speed:e.slanimationSpeed,fade:!1,pauseOnHover:e.slpauseOnHover,slidesToShow:e.slitems,slidesToScroll:e.slscrollItem,rtl:e.slIsrtl,responsive:[{breakpoint:e.sltabletWidth,settings:{slidesToShow:e.sltabletDisplayColumns,slidesToScroll:e.sltabletScrollColumns}},{breakpoint:e.slMobileWidth,settings:{slidesToShow:e.slMobileDisplayColumns,slidesToScroll:e.slMobileScrollColumns}}]},g={itemArea:{},image:{},title:{},count:{}},f=t=>{let o=e[t]?e[t]:{},n="";if(""!=o.top||""!=o.right||""!=o.bottom||""!=o.left){let e=o.unit?o.unit:"px";n=o.top?n+o.top+e+" ":"0"+e+" ",n=o.right?n+o.right+e+" ":"0"+e+" ",n=o.bottom?n+o.bottom+e+" ":"0"+e+" ",n=o.left?n+o.left+e+" ":"0"+e+" "}return n};let h;return g.count="undefined"!=e.countColor?{...g.count,color:""+e.countColor}:"",g.itemArea=e.areaBackgroundColor?{...g.itemArea,backgroundColor:""+e.areaBackgroundColor}:"",g.itemArea=e.areaPadding?{...g.itemArea,padding:f("areaPadding")}:"",g.image=e.areaPadding?{...g.image,margin:f("imageMargin")}:"",g.image=e.imageBorderRadius?{...g.image,borderRadius:f("imageBorderRadius")}:"",g.title=e.titleColor?{...g.title,color:""+e.titleColor}:"",g.title=e.titleMargin?{...g.title,margin:f("titleMargin")}:"",s.length>0&&(h=s.map((t,o)=>(u=4===u?0:u,u++,b++,Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:e.columns&&"wl-col-"+e.columns,style:{paddingLeft:!e.noGutter&&e.itemSpace+"px",paddingRight:!e.noGutter&&e.itemSpace+"px",marginTop:!0!==e.sliderOn&&!e.noGutter&&b>=e.columns&&e.itemSpace+e.itemSpace+"px"}},"1"===a&&Object(d.createElement)("div",{className:"ht-category-wrap",style:g.itemArea},t.image.src&&Object(d.createElement)("div",{className:"ht-category-image ht-category-image-zoom",style:g.image},Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{className:"ht-category-border",href:t.link},Object(d.createElement)("img",{src:t.image.src,alt:t.name})))),Object(d.createElement)("div",{className:"ht-category-content"},Object(d.createElement)("h3",null,Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link,style:g.title},t.name))),1==e.showCount&&Object(d.createElement)("span",{style:g.count},t.count))),"2"===a&&Object(d.createElement)("div",{className:"ht-category-wrap-2",style:g.itemArea},Object(d.createElement)("div",{className:"ht-category-content-2"},Object(d.createElement)("h3",null,Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link,style:g.title},t.name)))),t.image.src&&Object(d.createElement)("div",{className:"ht-category-image-2",style:g.image},Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link},Object(d.createElement)("img",{src:t.image.src,alt:t.name}))))),"3"===a&&Object(d.createElement)("div",{className:"ht-category-wrap",style:g.itemArea},""!=t.image.src?Object(d.createElement)("div",{className:"ht-category-image ht-category-image-zoom",style:g.image},Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{className:"ht-category-border-2",href:t.link},Object(d.createElement)("img",{src:t.image.src,alt:t.name})))):Object(d.createElement)("div",{className:"ht-category-image ht-category-image-zoom",style:g.image},Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{className:"ht-category-border-2",href:t.link},Object(d.createElement)("img",{src:t.image.placeholderImg,alt:t.name})))),Object(d.createElement)("div",{className:"ht-category-content-3 ht-category-content-3-bg"+u},Object(d.createElement)("h3",null,Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link,style:g.title},t.name))))),"4"===a&&Object(d.createElement)("div",{className:"ht-category-wrap",style:g.itemArea},""!=t.image.src&&Object(d.createElement)("div",{className:"ht-category-image ht-category-image-zoom",style:g.image},Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link},Object(d.createElement)("img",{src:t.image.src,alt:t.name})))),Object(d.createElement)("div",{className:"ht-category-content-4"},Object(d.createElement)("h3",null,Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link,style:g.title},t.name)),1==e.showCount&&Object(d.createElement)("span",{style:g.count},t.count)))),"5"===a&&Object(d.createElement)("div",{className:"ht-category-wrap",style:g.itemArea},""!=t.image.src&&Object(d.createElement)("div",{className:"ht-category-image-3 ht-category-image-zoom",style:g.image},Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link},Object(d.createElement)("img",{src:t.image.src,alt:t.name})))),Object(d.createElement)("div",{className:"ht-category-content-5"},Object(d.createElement)("h3",null,Object(d.createElement)(m.Disabled,null,Object(d.createElement)("a",{href:t.link,style:g.title},t.name)))))))))),Object(d.createElement)(d.Fragment,null,o&&Object(d.createElement)(De,this.props),Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:c},0==s.length?Object(d.createElement)(m.Spinner,null):1==e.sliderOn?Object(d.createElement)(Ue.a,Me()({},p,{className:"product-slider"}),h):h)))}}var Qe=Ve,Ke=o(17),qe=Object(d.createElement)("svg",{"enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)("path",{d:"m22.5 24h-21c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h21c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-21-23c-.276 0-.5.224-.5.5v21c0 .276.224.5.5.5h21c.276 0 .5-.224.5-.5v-21c0-.276-.224-.5-.5-.5z"}),Object(d.createElement)("path",{d:"m23.5 16.5h-23c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h23c.276 0 .5.224.5.5s-.224.5-.5.5z"}),Object(d.createElement)("path",{d:"m23.5 8.5h-23c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h23c.276 0 .5.224.5.5s-.224.5-.5.5z"}),Object(d.createElement)("path",{d:"m8 24c-.276 0-.5-.224-.5-.5v-23c0-.276.224-.5.5-.5s.5.224.5.5v23c0 .276-.224.5-.5.5z"}));const{name:Ye,category:Xe,attributes:Je}=Ke,Ze={title:Object(b.__)("WL : Category Grid","woolentor"),description:Object(b.__)("Display product category grid.","woolentor"),icon:Object(d.createElement)(m.Icon,{icon:qe}),keywords:["woolentor",Object(b.__)("shop category","woolentor"),Object(b.__)("category grid","woolentor"),Object(b.__)("product category","woolentor"),Object(b.__)("woocommerce","woolentor")],example:{attributes:{style:"1",showCount:!0}},supports:{align:["wide","full"]},attributes:Je,edit:Qe,save:()=>null},$e=e=>{if(!e)return;const{name:t,category:o,settings:n}=e;Object(u.registerBlockType)(t,{category:o,...n})},et=()=>{[n,r,l,a,i,c,s].forEach($e)};et()}]);
 
woolentor-blocks/build/styles/blocks.style.build.css ADDED
@@ -0,0 +1,2144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wl-row.slick-slider{
2
+ margin-right: 0;
3
+ margin-left: 0;
4
+ }
5
+ .wl-single-brand {
6
+ text-align: center;
7
+ margin-bottom: 20px;
8
+ }
9
+ .slick-slide .wl-single-brand{
10
+ margin-bottom: 0;
11
+ }
12
+ .slick-slide .wl-single-brand img {
13
+ display: inline-block;
14
+ }
15
+ /** Block: brand-logo Style End **/
16
+ [class*="ht-category-wrap"] [class*="ht-category-image-"]{
17
+ overflow: hidden;
18
+ }
19
+ .ht-category-wrap{
20
+ margin-bottom: 30px;
21
+ }
22
+ .ht-category-wrap .ht-category-image{
23
+ overflow: hidden;
24
+ margin-bottom: 20px;
25
+ }
26
+ .ht-category-wrap .ht-category-image a {
27
+ display: block;
28
+ position: relative;
29
+ }
30
+ .ht-category-wrap .ht-category-image a img {
31
+ width: 100%;
32
+ }
33
+ .ht-category-wrap .ht-category-image a.ht-category-border::before {
34
+ position: absolute;
35
+ z-index: 2;
36
+ top: 15px;
37
+ left: 15px;
38
+ width: calc(100% - 30px);
39
+ height: calc(100% - 30px);
40
+ content: "";
41
+ border: 1px solid #fff;
42
+ transition: all 0.5s ease 0s;
43
+ transform: scale(1);
44
+ }
45
+ .ht-category-wrap .ht-category-image a.ht-category-border-2::before {
46
+ position: absolute;
47
+ z-index: 2;
48
+ top: 15px;
49
+ left: 15px;
50
+ width: calc(100% - 30px);
51
+ height: calc(100% - 30px);
52
+ content: "";
53
+ border: 1px solid #fff;
54
+ transition: all 0.5s ease 0s;
55
+ transform: scale(0.9);
56
+ opacity: 0;
57
+ visibility: hidden;
58
+ }
59
+ .ht-category-wrap .ht-category-image-3 {
60
+ border-radius: 100%;
61
+ border: 1px solid #e1e1e1;
62
+ transition: all 0.3s ease 0s;
63
+ margin-bottom: 20px;
64
+ }
65
+ .ht-category-wrap .ht-category-image-3 a img {
66
+ width: 100%;
67
+ }
68
+ .ht-category-wrap.ht-category-bg-padding {
69
+ background: #f8f8f8;
70
+ padding: 25px 30px 30px;
71
+ }
72
+ .ht-category-wrap .ht-category-image-zoom a img {
73
+ transition: all 0.5s ease 0s;
74
+ }
75
+ .ht-category-wrap .ht-category-content {
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: space-between;
79
+ }
80
+ .ht-category-wrap .ht-category-content h3 {
81
+ margin: 0;
82
+ font-size: 20px;
83
+ }
84
+ .ht-category-wrap .ht-category-content h3 a {
85
+ color: #444;
86
+ }
87
+ .ht-category-wrap .ht-category-content h3 a:hover {
88
+ color: #dc9a0e;
89
+ }
90
+ .ht-category-wrap .ht-category-content span {
91
+ display: inline-block;
92
+ line-height: 1;
93
+ position: relative;
94
+ font-size: 16px;
95
+ }
96
+ .ht-category-wrap .ht-category-content span::before {
97
+ position: absolute;
98
+ top: 50%;
99
+ transform: translateY(-50%);
100
+ right: calc(100% + 10px);
101
+ width: 50px;
102
+ height: 1px;
103
+ content: "";
104
+ background-color: #ccc;
105
+ }
106
+ .ht-category-wrap .ht-category-content-3 {
107
+ position: relative;
108
+ z-index: 9;
109
+ max-width: 80%;
110
+ margin: -43px auto 0;
111
+ padding: 15px 10px 14px;
112
+ }
113
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg1 {
114
+ background-color: #f4ede7;
115
+ }
116
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg2 {
117
+ background-color: #e8f5f2;
118
+ }
119
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg3 {
120
+ background-color: #e3e4f5;
121
+ }
122
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg4 {
123
+ background-color: #faf5e5;
124
+ }
125
+ .ht-category-wrap .ht-category-content-3 h3 {
126
+ font-size: 18px;
127
+ line-height: 1;
128
+ margin: 0;
129
+ text-align: center;
130
+ }
131
+ .ht-category-wrap .ht-category-content-3 h3 span {
132
+ font-size: 14px;
133
+ margin-left: 5px;
134
+ }
135
+ .ht-category-wrap .ht-category-content-3 h3 a {
136
+ color: #444;
137
+ }
138
+ .ht-category-wrap .ht-category-content-3 h3 a:hover {
139
+ color: #dc9a0e;
140
+ }
141
+ .ht-category-wrap .ht-category-content-4{
142
+ text-align: center;
143
+ }
144
+ .ht-category-wrap .ht-category-content-4 h3 {
145
+ font-size: 16px;
146
+ display: inline-block;
147
+ position: relative;
148
+ margin: 0;
149
+ letter-spacing: 0.5px;
150
+ }
151
+ .ht-category-wrap .ht-category-content-4 span {
152
+ position: absolute;
153
+ top: -8px;
154
+ right: -33px;
155
+ font-size: 14px;
156
+ }
157
+ .ht-category-wrap .ht-category-content-4 h3 a {
158
+ color: #444;
159
+ }
160
+ .ht-category-wrap .ht-category-content-4 h3 a:hover {
161
+ color: #dc9a0e;
162
+ }
163
+ .ht-category-wrap .ht-category-content-5{
164
+ text-align: center;
165
+ }
166
+ .ht-category-wrap .ht-category-content-5 h3 {
167
+ font-size: 14px;
168
+ text-transform: uppercase;
169
+ margin: 0;
170
+ font-weight: 500;
171
+ letter-spacing: 0.5px;
172
+ }
173
+ .ht-category-wrap .ht-category-content-5 h3 span {
174
+ margin-left: 5px;
175
+ color: #dc9a0e;
176
+ }
177
+ .ht-category-wrap .ht-category-content-5 h3 a {
178
+ color: #000000;
179
+ display: inline-block;
180
+ border-bottom: 1px solid transparent;
181
+ }
182
+ .ht-category-wrap .ht-category-content-5 h3 a:hover {
183
+ color: #dc9a0e;
184
+ border-bottom: 1px solid #dc9a0e;
185
+ }
186
+ .ht-category-wrap:hover .ht-category-image a.ht-category-border::before {
187
+ transform: scale(0.95);
188
+ }
189
+ .ht-category-wrap:hover .ht-category-image a.ht-category-border-2::before {
190
+ transform: scale(1);
191
+ opacity: 1;
192
+ visibility: visible;
193
+ }
194
+ .ht-category-wrap:hover .ht-category-image-3 {
195
+ border: 1px solid #dc9a0e;
196
+ }
197
+ .ht-category-wrap:hover .ht-category-image-zoom a img {
198
+ transform: scale(1.1);
199
+ }
200
+
201
+ .ht-category-wrap-2 {
202
+ position: relative;
203
+ overflow: hidden;
204
+ padding: 48px 20px 42px;
205
+ box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
206
+ }
207
+ .ht-category-wrap-2::before {
208
+ position: absolute;
209
+ z-index: 2;
210
+ top: 0px;
211
+ bottom: 0px;
212
+ left: 0px;
213
+ right: 0px;
214
+ width: 100%;
215
+ height: 100%;
216
+ content: "";
217
+ opacity: 0;
218
+ visibility: hidden;
219
+ transform: scale(0.9);
220
+ transition: all 0.7s ease 0s;
221
+ border: 4px solid transparent;
222
+ pointer-events: none;
223
+ }
224
+ .ht-category-wrap-2{
225
+ text-align: center;
226
+ }
227
+ .ht-category-wrap-2 .ht-category-image-2 {
228
+ margin-top: 39px;
229
+ display: inline-block;
230
+ }
231
+ .ht-category-wrap-2 .ht-category-image-2 a {
232
+ display: block;
233
+ text-align: center;
234
+ }
235
+ .ht-category-wrap-2 .ht-category-image-2 a img {
236
+ max-width: 100%;
237
+ transition: all 0.7s ease 0s;
238
+ }
239
+ .ht-category-wrap-2 .ht-category-content-2 h3 {
240
+ font-size: 22px;
241
+ text-transform: capitalize;
242
+ line-height: 1;
243
+ margin: 0;
244
+ position: relative;
245
+ display: flex;
246
+ align-items: center;
247
+ justify-content: center;
248
+ }
249
+ .ht-category-wrap-2 .ht-category-content-2 h3 span {
250
+ font-size: 14px;
251
+ margin: 0 0 0 8px;
252
+ }
253
+ .ht-category-wrap-2 .ht-category-content-2 h3 a {
254
+ color: #444;
255
+ display: block;
256
+ }
257
+ .ht-category-wrap-2 .ht-category-content-2 h3 a:hover {
258
+ color: #dc9a0e;
259
+ }
260
+ .ht-category-wrap-2 .ht-category-content-2 h3::before {
261
+ position: absolute;
262
+ content: "";
263
+ left: 0;
264
+ right: 0;
265
+ bottom: -14px;
266
+ margin: 0 auto;
267
+ background-color: #D3D3D3;
268
+ width: 90px;
269
+ height: 2px;
270
+ }
271
+ .ht-category-wrap-2:hover::before {
272
+ opacity: 1;
273
+ visibility: visible;
274
+ transform: scale(1);
275
+ border: 4px solid #dc9a0e;
276
+ }
277
+ .ht-category-wrap-2:hover .ht-category-image-2 a img {
278
+ transform: scale(1.2);
279
+ }
280
+ /** Block: category-grid Style End **/
281
+ /*Marker Style 01*/
282
+ .wlb-marker-style-1 {
283
+ padding: 245px 0;
284
+ }
285
+
286
+ .wlb-marker-style-1 .wlb_image_pointer {
287
+ width: 36px;
288
+ height: 36px;
289
+ border-radius: 100%;
290
+ border: 3px solid #ed552d;
291
+ background-color: #fff;
292
+ position: relative;
293
+ display: inline-block;
294
+ text-align: center;
295
+ cursor: pointer;
296
+ line-height: 32px;
297
+ }
298
+
299
+ .wlb-marker-style-1 .wlb_image_pointer .wlb_pointer_box {
300
+ background: #fff;
301
+ width: 240px;
302
+ position: absolute;
303
+ top: 0;
304
+ right: 50%;
305
+ -webkit-transform: translate3d(50%, -100%, 0);
306
+ transform: translate3d(50%, -100%, 0);
307
+ border-radius: 5px;
308
+ opacity: 0;
309
+ visibility: hidden;
310
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
311
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
312
+ z-index: 10;
313
+ padding: 20px;
314
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
315
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
316
+ text-align: center;
317
+ }
318
+
319
+ .wlb-marker-style-1 .wlb_image_pointer .wlb_pointer_box h4 {
320
+ font-size: 20px;
321
+ margin-bottom: 7px;
322
+ }
323
+
324
+ .wlb-marker-style-1 .wlb_image_pointer .wlb_pointer_box p {
325
+ font-size: 13px;
326
+ line-height: 24px;
327
+ margin: 0;
328
+ }
329
+
330
+ .wlb-marker-style-1 .wlb_image_pointer:hover .wlb_pointer_box {
331
+ visibility: visible;
332
+ opacity: 1;
333
+ -webkit-transition-delay: 0s;
334
+ transition-delay: 0s;
335
+ -webkit-transform: translateY(-110%) translateX(50%);
336
+ transform: translateY(-110%) translateX(50%);
337
+ }
338
+
339
+ .wlb-marker-style-1 .wlb_image_pointer::before {
340
+ content: "\f129";
341
+ position: absolute;
342
+ left: 50%;
343
+ top: 50%;
344
+ transform: translateX(-50%) translateY(-50%);
345
+ font-family: FontAwesome;
346
+ color: #ed552d;
347
+ font-size: 18px;
348
+ width: 100%;
349
+ height: 100%;
350
+ }
351
+
352
+ .wlb-marker-style-1 .wlb_image_pointer {
353
+ position: absolute;
354
+ left: 66%;
355
+ top: 15%;
356
+ }
357
+
358
+ /*Marker Style 02*/
359
+ .wlb-marker-style-2 {
360
+ padding: 245px 0;
361
+ }
362
+
363
+ .wlb-marker-style-2 .wlb_image_pointer {
364
+ width: 46px;
365
+ height: 46px;
366
+ border-radius: 100%;
367
+ border: 5px solid #dddddd;
368
+ background-color: #fff;
369
+ position: relative;
370
+ display: inline-block;
371
+ text-align: center;
372
+ cursor: pointer;
373
+ line-height: 38px;
374
+ }
375
+
376
+ .wlb-marker-style-2 .wlb_image_pointer .wlb_pointer_box {
377
+ background: #fff;
378
+ width: 240px;
379
+ position: absolute;
380
+ top: 0;
381
+ right: 50%;
382
+ -webkit-transform: translate3d(50%, -100%, 0);
383
+ transform: translate3d(50%, -100%, 0);
384
+ border-radius: 5px;
385
+ opacity: 0;
386
+ visibility: hidden;
387
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
388
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
389
+ z-index: 10;
390
+ padding: 20px;
391
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
392
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
393
+ text-align: center;
394
+ }
395
+
396
+ .wlb-marker-style-2 .wlb_image_pointer .wlb_pointer_box h4 {
397
+ font-size: 20px;
398
+ margin-bottom: 7px;
399
+ }
400
+
401
+ .wlb-marker-style-2 .wlb_image_pointer .wlb_pointer_box p {
402
+ font-size: 13px;
403
+ line-height: 24px;
404
+ margin: 0;
405
+ }
406
+
407
+ .wlb-marker-style-2 .wlb_image_pointer:hover .wlb_pointer_box {
408
+ visibility: visible;
409
+ opacity: 1;
410
+ -webkit-transition-delay: 0s;
411
+ transition-delay: 0s;
412
+ -webkit-transform: translateY(-110%) translateX(50%);
413
+ transform: translateY(-110%) translateX(50%);
414
+ }
415
+
416
+ .wlb-marker-style-2 .wlb_image_pointer::before {
417
+ content: "\f067";
418
+ position: absolute;
419
+ left: 50%;
420
+ top: 50%;
421
+ transform: translateX(-50%) translateY(-50%);
422
+ font-family: FontAwesome;
423
+ color: #ed552d;
424
+ font-size: 18px;
425
+ width: 100%;
426
+ height: 100%;
427
+ transition: 0.4s ease-in-out;
428
+ }
429
+
430
+ .wlb-marker-style-2 .wlb_image_pointer:hover::before {
431
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
432
+ }
433
+
434
+ .wlb-marker-style-2 .wlb_image_pointer {
435
+ position: absolute;
436
+ left: 50%;
437
+ top: 26%;
438
+ }
439
+
440
+ /*Marker Style 03*/
441
+ .wlb-marker-style-3 {
442
+ padding: 245px 0;
443
+ }
444
+
445
+ .wlb-marker-style-3 .wlb_image_pointer {
446
+ width: 46px;
447
+ height: 46px;
448
+ border-radius: 100%;
449
+ background-color: #000000;
450
+ position: relative;
451
+ display: inline-block;
452
+ text-align: center;
453
+ cursor: pointer;
454
+ line-height: 49px;
455
+ z-index: 2;
456
+ }
457
+
458
+ .wlb-marker-style-3 .wlb_image_pointer .wlb_pointer_box {
459
+ background: #000000;
460
+ width: 240px;
461
+ position: absolute;
462
+ top: 0;
463
+ right: 50%;
464
+ -webkit-transform: translate3d(50%, -100%, 0);
465
+ transform: translate3d(50%, -100%, 0);
466
+ border-radius: 5px;
467
+ opacity: 0;
468
+ visibility: hidden;
469
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
470
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
471
+ z-index: 10;
472
+ padding: 20px;
473
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
474
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
475
+ text-align: center;
476
+ }
477
+
478
+ .wlb-marker-style-3 .wlb_image_pointer .wlb_pointer_box h4 {
479
+ font-size: 20px;
480
+ margin-bottom: 7px;
481
+ color: #ffffff;
482
+ }
483
+
484
+ .wlb-marker-style-3 .wlb_image_pointer .wlb_pointer_box p {
485
+ font-size: 13px;
486
+ line-height: 24px;
487
+ margin: 0;
488
+ color: #ffffff;
489
+ }
490
+
491
+ .wlb-marker-style-3 .wlb_image_pointer:hover .wlb_pointer_box {
492
+ visibility: visible;
493
+ opacity: 1;
494
+ -webkit-transition-delay: 0s;
495
+ transition-delay: 0s;
496
+ -webkit-transform: translateY(-110%) translateX(50%);
497
+ transform: translateY(-110%) translateX(50%);
498
+ }
499
+
500
+ .wlb-marker-style-3 .wlb_image_pointer::before {
501
+ content: "\f067";
502
+ position: absolute;
503
+ left: 50%;
504
+ top: 50%;
505
+ transform: translateX(-50%) translateY(-50%);
506
+ font-family: FontAwesome;
507
+ color: #ffffff;
508
+ font-size: 18px;
509
+ width: 100%;
510
+ height: 100%;
511
+ transition: 0.4s ease-in-out;
512
+ }
513
+
514
+ .wlb-marker-style-3 .wlb_image_pointer::after {
515
+ position: absolute;
516
+ left: 2px;
517
+ background: #000;
518
+ content: "";
519
+ right: 2px;
520
+ top: 2px;
521
+ bottom: 2px;
522
+ border-radius: 100%;
523
+ border: 2px solid #fff;
524
+ z-index: -1;
525
+ }
526
+
527
+ .wlb-marker-style-3 .wlb_image_pointer:hover::before {
528
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
529
+ }
530
+
531
+ .wlb-marker-style-3 .wlb_image_pointer {
532
+ position: absolute;
533
+ left: 50%;
534
+ top: 26%;
535
+ }
536
+
537
+ /*Marker Style 04*/
538
+ .wlb-marker-style-4 {
539
+ padding: 245px 0;
540
+ }
541
+
542
+ .wlb-marker-style-4 .wlb_image_pointer {
543
+ width: 46px;
544
+ height: 46px;
545
+ border-radius: 100%;
546
+ background-position: center center;
547
+ background-size: cover;
548
+ background-repeat: no-repeat;
549
+ position: relative;
550
+ display: inline-block;
551
+ text-align: center;
552
+ cursor: pointer;
553
+ line-height: 38px;
554
+ border: 5px solid #d88d78;
555
+ z-index: 2;
556
+ }
557
+
558
+ .wlb-marker-style-4 .wlb_image_pointer .wlb_pointer_box {
559
+ background-position: center center;
560
+ background-size: cover;
561
+ background-repeat: no-repeat;
562
+ width: 240px;
563
+ position: absolute;
564
+ top: 0;
565
+ right: 50%;
566
+ -webkit-transform: translate3d(50%, -100%, 0);
567
+ transform: translate3d(50%, -100%, 0);
568
+ border-radius: 5px;
569
+ opacity: 0;
570
+ visibility: hidden;
571
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
572
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
573
+ z-index: 10;
574
+ padding: 20px;
575
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
576
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
577
+ text-align: center;
578
+ }
579
+
580
+ .wlb-marker-style-4 .wlb_image_pointer .wlb_pointer_box h4 {
581
+ font-size: 20px;
582
+ margin-bottom: 7px;
583
+ }
584
+
585
+ .wlb-marker-style-4 .wlb_image_pointer .wlb_pointer_box p {
586
+ font-size: 13px;
587
+ line-height: 24px;
588
+ margin: 0;
589
+ color: #18012c;
590
+ }
591
+
592
+ .wlb-marker-style-4 .wlb_image_pointer:hover .wlb_pointer_box {
593
+ visibility: visible;
594
+ opacity: 1;
595
+ -webkit-transition-delay: 0s;
596
+ transition-delay: 0s;
597
+ -webkit-transform: translateY(-110%) translateX(50%);
598
+ transform: translateY(-110%) translateX(50%);
599
+ }
600
+
601
+ .wlb-marker-style-4 .wlb_image_pointer::before {
602
+ content: "\f067";
603
+ position: absolute;
604
+ left: 50%;
605
+ top: 50%;
606
+ transform: translateX(-50%) translateY(-50%);
607
+ font-family: FontAwesome;
608
+ color: #d88d78;
609
+ font-size: 18px;
610
+ width: 100%;
611
+ height: 100%;
612
+ transition: 0.4s ease-in-out;
613
+ }
614
+
615
+ .wlb-marker-style-4 .wlb_image_pointer:hover::before {
616
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
617
+ }
618
+
619
+ .wlb-marker-style-4 .wlb_image_pointer {
620
+ position: absolute;
621
+ left: 83%;
622
+ top: 37%;
623
+ }
624
+
625
+ /*Marker Style 05*/
626
+ .wlb-marker-style-5 {
627
+ padding: 245px 0;
628
+ }
629
+
630
+ .wlb-marker-style-5 .wlb_image_pointer {
631
+ width: 46px;
632
+ height: 46px;
633
+ border-radius: 4px;
634
+ background: #000;
635
+ position: relative;
636
+ display: inline-block;
637
+ text-align: center;
638
+ cursor: pointer;
639
+ line-height: 47px;
640
+ z-index: 2;
641
+ }
642
+
643
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1 {
644
+ position: relative;
645
+ }
646
+
647
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::before,
648
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::after {
649
+ position: absolute;
650
+ top: 50%;
651
+ left: 50%;
652
+ display: block;
653
+ content: '';
654
+ border: 1px solid #f10;
655
+ border-radius: 50%;
656
+ -webkit-transform: scale(0.35) translateY(-50%) translateX(-50%);
657
+ -ms-transform: scale(0.35) translateY(-50%) translateX(-50%);
658
+ transform: scale(0.35) translateY(-50%) translateX(-50%);
659
+ opacity: 0;
660
+ -webkit-animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0.4s infinite;
661
+ animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0.4s infinite;
662
+ }
663
+
664
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::before {
665
+ width: 32px;
666
+ height: 32px;
667
+ left: 50%;
668
+ top: 50%;
669
+ z-index: -1;
670
+ }
671
+
672
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::after {
673
+ width: 32px;
674
+ height: 32px;
675
+ z-index: -1;
676
+ border-color: rgba(255, 255, 255, 0.4);
677
+ -webkit-animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0s infinite;
678
+ animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0s infinite;
679
+ }
680
+
681
+ .wlb-marker-style-5 .wlb_image_pointer .wlb_pointer_box {
682
+ background: #000000;
683
+ width: 240px;
684
+ position: absolute;
685
+ top: 0;
686
+ right: 50%;
687
+ -webkit-transform: translate3d(50%, -100%, 0);
688
+ transform: translate3d(50%, -100%, 0);
689
+ border-radius: 5px;
690
+ opacity: 0;
691
+ visibility: hidden;
692
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
693
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
694
+ z-index: 10;
695
+ padding: 20px;
696
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
697
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
698
+ text-align: center;
699
+ }
700
+
701
+ .wlb-marker-style-5 .wlb_image_pointer .wlb_pointer_box h4 {
702
+ font-size: 20px;
703
+ margin-bottom: 7px;
704
+ color: #fff;
705
+ }
706
+
707
+ .wlb-marker-style-5 .wlb_image_pointer .wlb_pointer_box p {
708
+ font-size: 13px;
709
+ line-height: 24px;
710
+ margin: 0;
711
+ color: #fff;
712
+ }
713
+
714
+ .wlb-marker-style-5 .wlb_image_pointer:hover .wlb_pointer_box {
715
+ visibility: visible;
716
+ opacity: 1;
717
+ -webkit-transition-delay: 0s;
718
+ transition-delay: 0s;
719
+ -webkit-transform: translateY(-110%) translateX(50%);
720
+ transform: translateY(-110%) translateX(50%);
721
+ }
722
+
723
+ .wlb-marker-style-5 .wlb_image_pointer::before {
724
+ content: "\f067";
725
+ position: absolute;
726
+ left: 50%;
727
+ top: 50%;
728
+ transform: translateX(-50%) translateY(-50%);
729
+ font-family: FontAwesome;
730
+ color: #ffffff;
731
+ font-size: 18px;
732
+ width: 100%;
733
+ height: 100%;
734
+ transition: 0.4s ease-in-out;
735
+ }
736
+
737
+ .wlb-marker-style-5 .wlb_image_pointer:hover::before {
738
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
739
+ }
740
+
741
+ .wlb-marker-style-5 .wlb_image_pointer {
742
+ position: absolute;
743
+ left: 83%;
744
+ top: 37%;
745
+ }
746
+
747
+ /* Marker Animation Css */
748
+ @-webkit-keyframes marker-ripple-animation {
749
+ 0% {
750
+ -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
751
+ opacity: 1;
752
+ }
753
+
754
+ 100% {
755
+ -webkit-transform: translate3d(-50%, -50%, 0) scale(1.7);
756
+ opacity: 0;
757
+ }
758
+ }
759
+
760
+ @keyframes marker-ripple-animation {
761
+ 0% {
762
+ transform: translate3d(-50%, -50%, 0) scale(1);
763
+ opacity: 1;
764
+ }
765
+
766
+ 100% {
767
+ transform: translate3d(-50%, -50%, 0) scale(1.7);
768
+ opacity: 0;
769
+ }
770
+ }
771
+ /** Block: image-marker Style End **/
772
+ svg.woolentor-banner-default{
773
+ fill-opacity: 0.1;
774
+ }
775
+ .wlspcial-banner .banner-thumb a {
776
+ overflow: hidden;
777
+ position: relative;
778
+ display: block;
779
+ }
780
+ .wlspcial-banner .banner-thumb a::before {
781
+ background: #ffffff none repeat scroll 0 0;
782
+ content: "";
783
+ height: 0;
784
+ left: 0;
785
+ opacity: 0;
786
+ pointer-events: none;
787
+ position: absolute;
788
+ top: 0;
789
+ transition: all 0.5s ease 0s;
790
+ width: 0;
791
+ }
792
+
793
+ .wlspcial-banner .banner-thumb a::after {
794
+ background: #ffffff none repeat scroll 0 0;
795
+ bottom: 0;
796
+ content: "";
797
+ height: 0;
798
+ opacity: 0;
799
+ pointer-events: none;
800
+ position: absolute;
801
+ right: 0;
802
+ transition: all 0.5s ease 0s;
803
+ width: 0;
804
+ }
805
+
806
+ .wlspcial-banner .banner-thumb a img {
807
+ width: 100%;
808
+ }
809
+
810
+ .wlspcial-banner:hover .banner-thumb a::before {
811
+ height: 100%;
812
+ opacity: 0.3;
813
+ width: 100%;
814
+ }
815
+
816
+ .wlspcial-banner:hover .banner-thumb a::after {
817
+ height: 100%;
818
+ opacity: 0.3;
819
+ width: 100%;
820
+ }
821
+
822
+ .wlspcial-banner {
823
+ position: relative;
824
+ }
825
+
826
+ .wlspcial-banner .banner-content{
827
+ position: absolute;
828
+ z-index: 2;
829
+ width: 100%;
830
+ text-align: center;
831
+ }
832
+
833
+ .wlspcial-banner .banner-content a {
834
+ color: #383838;
835
+ font-size: 14px;
836
+ font-weight: 700;
837
+ text-transform: uppercase;
838
+ transition: all 0.4s ease 0s;
839
+ text-decoration: none;
840
+ display: inline-block;
841
+ }
842
+
843
+ .woolentor-banner-content-pos-center .banner-content{
844
+ top: 50%;
845
+ right: 0;
846
+ left: auto;
847
+ transform: translateY(-50%);
848
+ }
849
+
850
+ .woolentor-banner-content-pos-bottom .banner-content {
851
+ bottom: 0;
852
+ padding-bottom: 40px;
853
+ }
854
+
855
+ .woolentor-banner-content-pos-top .banner-content {
856
+ top: 0;
857
+ padding-top: 40px;
858
+ }
859
+
860
+ .wlspcial-banner.woolentor-banner-content-pos-right .banner-content {
861
+ top: 50%;
862
+ right: 0;
863
+ width: auto;
864
+ transform: translateY(-50%);
865
+ }
866
+ .wlspcial-banner.woolentor-banner-content-pos-left .banner-content {
867
+ top: 50%;
868
+ left: 0;
869
+ width: auto;
870
+ transform: translateY(-50%);
871
+ }
872
+ .wlbanner-badgeimage {
873
+ position: absolute;
874
+ top: 0;
875
+ left: 0;
876
+ display: inline-block;
877
+ }
878
+ .wlbanner-badgeimage img{
879
+ width: 100%;
880
+ }
881
+ /** Block: special-day-offer Style End **/
882
+ .ht-feature-wrap {
883
+ position: relative;
884
+ text-align: center;
885
+ }
886
+ .ht-feature-style-1 .ht-feature-inner {
887
+ border: 1px solid #e8e8e8;
888
+ padding: 25px 15px 20px;
889
+ transition: all 0.3s ease 0s;
890
+ }
891
+ .ht-feature-wrap .ht-feature-content h4 {
892
+ display: block;
893
+ font-size: 18px;
894
+ font-weight: 500;
895
+ margin-bottom: 6px;
896
+ line-height: 1;
897
+ color: #000000;
898
+ }
899
+ .ht-feature-wrap .ht-feature-content p {
900
+ font-size: 15px;
901
+ color: #6d6d6d;
902
+ margin: 0;
903
+ }
904
+ .ht-feature-wrap .ht-feature-img {
905
+ margin-bottom: 20px;
906
+ display: inline-block;
907
+ }
908
+ .ht-feature-wrap .ht-feature-img img {
909
+ max-width: 100%;
910
+ transition: all 0.5s ease 0s;
911
+ }
912
+ .ht-feature-wrap .ht-feature-img i {
913
+ font-size: 32px;
914
+ color: #dc9a0e;
915
+ display: inline-block;
916
+ }
917
+ .ht-feature-wrap .ht-feature-img svg{
918
+ width: 32px;
919
+ height: 32px;
920
+ }
921
+ .ht-feature-style-2 .ht-feature-inner{
922
+ display: flex;
923
+ align-items: center;
924
+ border: none;
925
+ padding: 0;
926
+ text-align: left;
927
+ }
928
+ .ht-feature-style-2 .ht-feature-content{
929
+ padding-left: 30px;
930
+ margin-left: 24px;
931
+ border-left: 1px solid #ddd9d2;
932
+ }
933
+ .ht-feature-wrap.ht-feature-style-2:hover .ht-feature-img {
934
+ animation: 500ms ease-in-out 0s normal none 1 running rubberBand;
935
+ }
936
+ .ht-feature-style-2 .ht-feature-content {
937
+ padding-left: 30px;
938
+ width: 100%;
939
+ }
940
+ .ht-feature-style-2 .ht-feature-content h4,.ht-feature-style-5 .ht-feature-content h4 {
941
+ font-size: 20px;
942
+ margin: 0 0 12px;
943
+ line-height: 1;
944
+ color: #000000;
945
+ }
946
+ .ht-feature-style-2 .ht-feature-content p {
947
+ margin: 0;
948
+ font-size: 15px;
949
+ color: #6d6d6d;
950
+ }
951
+ .ht-feature-style-2 .ht-feature-img{
952
+ margin: 0;
953
+ }
954
+ .ht-feature-wrap.ht-feature-style-1:hover .ht-feature-inner {
955
+ border: 1px solid #dc9a0e;
956
+ }
957
+ .ht-feature-wrap.ht-feature-style-1:hover .ht-feature-img img,
958
+ .ht-feature-style-5:hover .ht-feature-img{
959
+ animation: 500ms ease-in-out 0s normal none 1 running tada;
960
+ }
961
+ .ht-feature-style-3 .ht-feature-img{
962
+ display: inline-block;
963
+ border: 1px solid #000000;
964
+ width: 55px;
965
+ height: 55px;
966
+ line-height: 55px;
967
+ text-align: center;
968
+ border-radius: 100%;
969
+ transition: all 0.5s ease 0s;
970
+ }
971
+ .ht-feature-style-3 .ht-feature-img img{
972
+ border-radius: 100%;
973
+ }
974
+ .woolentor-blocks.ht-feature-style-3 .ht-feature-img{
975
+ line-height: 48px;
976
+ }
977
+ .ht-feature-style-3 .ht-feature-img i{
978
+ font-size: 20px;
979
+ color: #000000;
980
+ }
981
+ .ht-feature-style-3:hover .ht-feature-img{
982
+ background-color: #dc9a0e;
983
+ border: 1px solid #dc9a0e;
984
+ transform: rotate(360deg);
985
+ }
986
+ .ht-feature-style-3:hover .ht-feature-img i{
987
+ color: #ffffff;
988
+ }
989
+ .ht-feature-style-3 .ht-feature-content h4,.ht-feature-style-4 .ht-feature-content h4 {
990
+ display: block;
991
+ font-size: 18px;
992
+ font-weight: 500;
993
+ margin-bottom: 14px;
994
+ line-height: 1;
995
+ color: #000000;
996
+ }
997
+ .ht-feature-style-3 .ht-feature-content p,.ht-feature-style-4 .ht-feature-content p {
998
+ color: #6d6d6d;
999
+ line-height: 27px;
1000
+ margin: 0 auto;
1001
+ font-size: 15px;
1002
+ width: 82%;
1003
+ }
1004
+ .ht-feature-style-4{
1005
+ text-align: left;
1006
+ }
1007
+ .ht-feature-style-4 .ht-feature-content {
1008
+ border-top: 1px solid #ebebeb;
1009
+ margin-top: 25px;
1010
+ padding-top:25px;
1011
+ }
1012
+ .ht-feature-style-4 .ht-feature-content p{
1013
+ width: 100%;
1014
+ }
1015
+ .ht-feature-style-4 .ht-feature-img{
1016
+ display: inline-block;
1017
+ background-color: #e9ecef;
1018
+ width: 60px;
1019
+ height: 60px;
1020
+ line-height: 60px;
1021
+ text-align: center;
1022
+ border-radius: 100%;
1023
+ transition: all 0.5s ease 0s;
1024
+ margin: 0;
1025
+ }
1026
+ .ht-feature-style-4 .ht-feature-img i {
1027
+ font-size: 20px;
1028
+ color: #000000;
1029
+ }
1030
+ .ht-feature-style-4:hover .ht-feature-img{
1031
+ background-color: #dc9a0e;
1032
+ transform: rotateY(180deg);
1033
+ }
1034
+ .ht-feature-style-4:hover .ht-feature-img i{
1035
+ color: #ffffff;
1036
+ }
1037
+ .ht-feature-style-5 .ht-feature-img {
1038
+ position: absolute;
1039
+ right: 0;
1040
+ bottom: 0;
1041
+ margin: 0;
1042
+ width: 120px;
1043
+ }
1044
+ .ht-feature-style-5 .ht-feature-img img {
1045
+ max-width: 100%;
1046
+ }
1047
+ /** Block: store-feature Style End **/
1048
+ .woolentor-product-tab-area {
1049
+ position: relative;
1050
+ z-index: 35;
1051
+ }
1052
+
1053
+ .product-slider {
1054
+ width: 100%;
1055
+ }
1056
+
1057
+ .product-item {
1058
+ padding-bottom: 10px;
1059
+ margin-bottom: 30px;
1060
+ }
1061
+
1062
+ .product-item mark, .product-item ins {
1063
+ background: transparent;
1064
+ }
1065
+
1066
+ .product-item .product-inner .image-wrap {
1067
+ position: relative;
1068
+ text-align: center;
1069
+ overflow: hidden;
1070
+ }
1071
+
1072
+ .product-item .product-inner .image-wrap .wishlist, .product-item .product-inner .image-wrap .tinv-wraper {
1073
+ display: block;
1074
+ position: absolute;
1075
+ right: 20px;
1076
+ top: 20px;
1077
+ margin-top: 0;
1078
+ }
1079
+
1080
+ .product-item .product-inner .image-wrap .tinv-wraper a, .ht-product-action .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
1081
+ margin: 0;
1082
+ }
1083
+
1084
+ .ht-product-list-action .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
1085
+ margin-top: 0;
1086
+ }
1087
+
1088
+ .product-item .product-inner .image-wrap .tinv-wraper a .tinvwl_add_to_wishlist-text, .ht-product-action .tinv-wraper a .tinvwl_add_to_wishlist-text {
1089
+ display: none;
1090
+ }
1091
+
1092
+ .ht-product-action .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart::before, .ht-product-action .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus::before {
1093
+ font-size: 26px;
1094
+ }
1095
+
1096
+ .yith-wcwl-add-to-wishlist .ajax-loading {
1097
+ left: 20px;
1098
+ margin: 0;
1099
+ position: absolute;
1100
+ top: 4px;
1101
+ }
1102
+
1103
+ .product-item .content {
1104
+ padding-top: 10px;
1105
+ }
1106
+
1107
+ .content h4.title {
1108
+ margin: 0;
1109
+ }
1110
+
1111
+ .product-item .product-inner .content .title {
1112
+ font-size: 20px;
1113
+ margin-bottom: 10px;
1114
+ }
1115
+
1116
+ .product-item .actions {
1117
+ background: #333 none repeat scroll 0 0;
1118
+ border-radius: 20px;
1119
+ color: #fff;
1120
+ display: flex;
1121
+ left: 50%;
1122
+ position: absolute;
1123
+ text-align: center;
1124
+ top: 50%;
1125
+ transform: translateX(-50%);
1126
+ transition: all 0.4s ease 0s;
1127
+ width: 150px;
1128
+ opacity: 0;
1129
+ visibility: hidden;
1130
+ }
1131
+
1132
+ .product-item .actions>* {
1133
+ flex: 1 0 auto;
1134
+ }
1135
+
1136
+ .product-item .product-inner .image-wrap .actions.style_two {
1137
+ width: 85%;
1138
+ border-radius: 0;
1139
+ bottom: 0;
1140
+ top: auto;
1141
+ }
1142
+
1143
+ .product-item .woocommerce.compare-button a.button {
1144
+ background-color: #333;
1145
+ border-radius: 20px;
1146
+ }
1147
+
1148
+ .product-item .product-inner .image-wrap .style_two .wishlist {
1149
+ position: static;
1150
+ }
1151
+
1152
+ .yith-wcwl-add-button {
1153
+ position: relative;
1154
+ }
1155
+
1156
+ .style_two .yith-wcwl-add-to-wishlist .ajax-loading {
1157
+ margin-left: 0;
1158
+ top: 11px;
1159
+ }
1160
+
1161
+ .product-item .woocommerce.product.compare-button, .product-item .actions .htcompare-btn {
1162
+ border-left: 1px solid #999;
1163
+ }
1164
+
1165
+ .product-item .actions .htcompare-btn {
1166
+ border-radius: 0;
1167
+ }
1168
+
1169
+ .product-item:hover .actions {
1170
+ opacity: 1;
1171
+ transform: translateX(-50%) translateY(-50%);
1172
+ visibility: visible;
1173
+ }
1174
+
1175
+ .product-item .actions a, .product-item .woocommerce.compare-button a.button {
1176
+ color: #fff;
1177
+ display: block;
1178
+ font-weight: normal;
1179
+ line-height: inherit;
1180
+ padding: 7px 5px;
1181
+ text-indent: -999999px;
1182
+ position: relative;
1183
+ background: transparent;
1184
+ }
1185
+
1186
+ .product-item .actions a::before {
1187
+ color: #fff;
1188
+ content: "";
1189
+ font-family: fontawesome;
1190
+ height: 100%;
1191
+ left: 0;
1192
+ position: absolute;
1193
+ text-indent: 0;
1194
+ top: 5px;
1195
+ width: 100%;
1196
+ }
1197
+
1198
+ .product-item .actions .compare-button a::before, .product-item .actions .htcompare-btn::before {
1199
+ content: "\f021";
1200
+ }
1201
+
1202
+ .product-item .product-inner .image-wrap .style_two .wishlist a::before {
1203
+ content: "\f08a";
1204
+ }
1205
+
1206
+ .product-item .product-inner .image-wrap .style_two .wishlist .yith-wcwl-wishlistexistsbrowse a::before, .product-item .product-inner .image-wrap .style_two .wishlist .yith-wcwl-wishlistaddedbrowse a::before {
1207
+ content: "\f004";
1208
+ }
1209
+
1210
+ .product-item .product-inner .actions.style_two a {
1211
+ text-indent: 0;
1212
+ }
1213
+
1214
+ .product-item .product-inner .actions.style_two a::before {
1215
+ display: none;
1216
+ }
1217
+
1218
+ .product-item .product-inner .actions.style_two .tinv-wishlist a::before {
1219
+ display: block;
1220
+ font-size: 20px;
1221
+ line-height: 28px;
1222
+ }
1223
+
1224
+ .product-item .product-inner .actions.style_two .tinv-wishlist a {
1225
+ text-indent: -999999px;
1226
+ margin: 0;
1227
+ }
1228
+
1229
+ .product-item.product_style_three .product-inner .image-wrap {
1230
+ overflow: visible;
1231
+ }
1232
+
1233
+ .product_information_area {
1234
+ background: #fff none repeat scroll 0 0;
1235
+ bottom: -90px;
1236
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
1237
+ left: 0;
1238
+ opacity: 0;
1239
+ position: absolute;
1240
+ text-align: left;
1241
+ transition: all 0.4s ease 0s;
1242
+ visibility: hidden;
1243
+ width: 100%;
1244
+ }
1245
+
1246
+ .product_information_area .content {
1247
+ padding-bottom: 15px;
1248
+ text-align: center;
1249
+ }
1250
+
1251
+ .product-item .product-inner .image-wrap .product_information_area .actions.style_two {
1252
+ border-radius: 0;
1253
+ bottom: 0;
1254
+ opacity: 1;
1255
+ overflow: hidden;
1256
+ padding: 0 30px;
1257
+ position: static;
1258
+ top: auto;
1259
+ transform: translateX(0px);
1260
+ visibility: visible;
1261
+ width: 100%;
1262
+ }
1263
+
1264
+ .product-item:hover .product_information_area {
1265
+ bottom: -103px;
1266
+ opacity: 1;
1267
+ visibility: visible;
1268
+ }
1269
+
1270
+ .woocommerce span.onsale, span.onsale {
1271
+ background-color: #23252a;
1272
+ border-radius: 3px;
1273
+ color: #fff;
1274
+ font-size: 14px;
1275
+ font-weight: 500;
1276
+ left: 15px;
1277
+ top: 15px;
1278
+ line-height: 1;
1279
+ min-height: inherit;
1280
+ min-width: inherit;
1281
+ padding: 5px 10px;
1282
+ position: absolute;
1283
+ }
1284
+
1285
+ .product-item a.button.added {
1286
+ display: none !important;
1287
+ }
1288
+
1289
+ .product-item .actions .htcompare-btn.added {
1290
+ display: block !important;
1291
+ }
1292
+
1293
+ .product-item .actions .htcompare-btn.loading {
1294
+ padding: 0;
1295
+ }
1296
+
1297
+ .product-item .actions a.htcompare-btn.loading::after {
1298
+ right: 20px;
1299
+ }
1300
+
1301
+ .product-item .product-inner .image-wrap .actions a.added_to_cart {
1302
+ text-indent: -99999px;
1303
+ }
1304
+
1305
+ .product-item .product-inner .image-wrap .actions a.added_to_cart::before {
1306
+ content: "";
1307
+ font-family: WooCommerce;
1308
+ font-size: 20px;
1309
+ left: auto;
1310
+ position: absolute;
1311
+ text-indent: 0;
1312
+ top: 0;
1313
+ display: block;
1314
+ }
1315
+
1316
+ .product-item a.button.added::after, .product-item a.button.loading::after {
1317
+ color: #fff;
1318
+ content: "";
1319
+ display: block;
1320
+ font-family: "fontawesome";
1321
+ margin: 0 auto;
1322
+ position: absolute;
1323
+ text-indent: 0;
1324
+ top: 5px;
1325
+ }
1326
+
1327
+ /* Tab Menu */
1328
+
1329
+ .ht-tab-menus {
1330
+ margin: 0;
1331
+ padding: 0;
1332
+ list-style: none;
1333
+ }
1334
+
1335
+ .ht-tab-menus {
1336
+ margin-bottom: 45px;
1337
+ }
1338
+
1339
+ .ht-tab-menus li {
1340
+ display: inline-block;
1341
+ margin-right: 20px;
1342
+ }
1343
+
1344
+ .ht-tab-menus li:last-child {
1345
+ margin-right: 0;
1346
+ }
1347
+
1348
+ .ht-tab-menus li a {
1349
+ border: 1px solid transparent;
1350
+ border-radius: 50px;
1351
+ padding: 5px 15px;
1352
+ text-transform: capitalize;
1353
+ }
1354
+
1355
+ .ht-tab-menus li a:focus {
1356
+ outline: none;
1357
+ }
1358
+
1359
+ .ht-tab-menus li a.htactive {
1360
+ border-color: #e5e5e5;
1361
+ }
1362
+
1363
+ .ht-tab-pane {
1364
+ display: none;
1365
+ }
1366
+
1367
+ .ht-tab-pane.htactive {
1368
+ display: block;
1369
+ }
1370
+
1371
+ .product_attribute ul {
1372
+ list-style: outside none none;
1373
+ margin: 0 0 20px;
1374
+ padding: 0;
1375
+ text-align: left;
1376
+ }
1377
+
1378
+ .product_information_area .attribute_label {
1379
+ font-weight: 600;
1380
+ }
1381
+
1382
+ .product_attribute {
1383
+ margin-top: 25px;
1384
+ padding: 0 30px;
1385
+ }
1386
+
1387
+ .product_attribute ul li {
1388
+ display: inline-block;
1389
+ line-height: 1;
1390
+ margin: 0 10px 0 0;
1391
+ }
1392
+
1393
+ .product_attribute ul li.color_attribute {
1394
+ border-radius: 100%;
1395
+ height: 15px;
1396
+ width: 15px;
1397
+ }
1398
+
1399
+ .product-slider .slick-arrow {
1400
+ background: transparent none repeat scroll 0 0;
1401
+ border: 2px solid #ddd;
1402
+ color: #ddd;
1403
+ font-size: 20px;
1404
+ height: 40px;
1405
+ left: -30px;
1406
+ line-height: inherit;
1407
+ padding: 0;
1408
+ position: absolute;
1409
+ top: 50%;
1410
+ transform: translateY(-50%);
1411
+ width: 40px;
1412
+ z-index: 99;
1413
+ transition: 0.4s;
1414
+ }
1415
+
1416
+ .product-slider .slick-arrow.slick-next {
1417
+ right: -30px;
1418
+ left: auto;
1419
+ }
1420
+
1421
+ .product-slider .slick-arrow:hover {
1422
+ border-color: #333;
1423
+ color: #333;
1424
+ }
1425
+
1426
+ .product-slider .slick-dots {
1427
+ bottom: 0px;
1428
+ display: flex;
1429
+ left: 50%;
1430
+ list-style: outside none none;
1431
+ margin: 0;
1432
+ padding: 0;
1433
+ position: absolute;
1434
+ transform: translateX(-50%);
1435
+ }
1436
+
1437
+ .product-slider .slick-dots li {
1438
+ line-height: 12px;
1439
+ margin: 0 4px;
1440
+ }
1441
+
1442
+ .product-slider .slick-dots li button {
1443
+ background-color: transparent;
1444
+ border: 1px solid #4e4f4f;
1445
+ border-radius: 50px;
1446
+ height: 13px;
1447
+ padding: 0;
1448
+ text-indent: -9999px;
1449
+ width: 13px;
1450
+ line-height: 13px;
1451
+ }
1452
+
1453
+ .product-slider .slick-dots li.slick-active button {
1454
+ background-color: #282828;
1455
+ border-color: #282828;
1456
+ }
1457
+ /** Block: product-tab Style End **/
1458
+ .woolentor-banner {
1459
+ align-items: center;
1460
+ display: flex;
1461
+ flex-flow: row wrap;
1462
+ overflow: hidden;
1463
+ }
1464
+
1465
+ .woolentor-banner-img, .woolentor-content {
1466
+ width: 50%;
1467
+ float: left;
1468
+ }
1469
+
1470
+ .woolentor-content {
1471
+ padding-left: 70px;
1472
+ }
1473
+
1474
+ .woolentor-banner .banner_subtitle {
1475
+ font-size: 16px;
1476
+ font-weight: 600;
1477
+ margin: 0;
1478
+ }
1479
+
1480
+ .woolentor-banner .banner_title {
1481
+ font-size: 28px;
1482
+ font-weight: normal;
1483
+ margin: 35px 0;
1484
+ }
1485
+
1486
+ .woolentor-banner .banner_button {
1487
+ border-bottom: 1px solid #000;
1488
+ font-size: 12px;
1489
+ font-weight: 600;
1490
+ text-transform: uppercase;
1491
+ }
1492
+
1493
+ .woolentor-content-align-right .woolentor-banner-img {
1494
+ order: 1;
1495
+ padding-left: 50px;
1496
+ }
1497
+
1498
+ .woolentor-content-align-right .woolentor-content {
1499
+ order: 2;
1500
+ padding-left: 40px;
1501
+ }
1502
+
1503
+ .woolentor-content-align-right.woolentor-banner .banner_title {
1504
+ margin: 20px 0;
1505
+ }
1506
+
1507
+ .woolentor-content-align-bottom .woolentor-banner-img {
1508
+ order: 1;
1509
+ padding-left: 0;
1510
+ width: 100%;
1511
+ }
1512
+
1513
+ .woolentor-content-align-bottom .woolentor-content {
1514
+ order: 2;
1515
+ padding: 30px 0;
1516
+ text-align: center;
1517
+ width: 100%;
1518
+ }
1519
+
1520
+ .woolentor-content-align-bottom .banner_title {
1521
+ margin: 0 0 20px;
1522
+ }
1523
+
1524
+ /* Banner style two */
1525
+
1526
+ .woolentor-banner-layout-2 {
1527
+ display: block;
1528
+ position: relative;
1529
+ }
1530
+
1531
+ .woolentor-banner-layout-2 .woolentor-content {
1532
+ padding-left: 0;
1533
+ }
1534
+
1535
+ .woolentor-banner-layout-2 .woolentor-banner-img {
1536
+ float: none;
1537
+ width: 100%;
1538
+ }
1539
+
1540
+ .woolentor-banner-layout-2 .woolentor-content {
1541
+ padding-left: 50px;
1542
+ position: absolute;
1543
+ top: 50px;
1544
+ left: 0;
1545
+ width: 100%;
1546
+ }
1547
+
1548
+ .woolentor-banner-layout-2 .woolentor-content h2 {
1549
+ margin: 0;
1550
+ }
1551
+
1552
+ .woolentor-banner-layout-2.woolentor-content-align-bottom .woolentor-content {
1553
+ bottom: 50px;
1554
+ padding: 0 0 0 50px;
1555
+ top: auto;
1556
+ text-align: left;
1557
+ }
1558
+
1559
+ .woolentor-banner-layout-2.woolentor-content-align-right .woolentor-content {
1560
+ left: auto;
1561
+ padding-right: 50px;
1562
+ padding-left: 0;
1563
+ right: 0;
1564
+ text-align: right;
1565
+ }
1566
+
1567
+ .woolentor-banner-layout-2.woolentor-content-align-right .woolentor-banner-img {
1568
+ padding-left: 0px;
1569
+ }
1570
+
1571
+ .woocommerce.product-slider div.product.ht-product {
1572
+ float: left;
1573
+ }
1574
+ /** Block: promo-banner Style End **/
1575
+ .htwoolentor-faq-card {
1576
+ margin-bottom: 12px;
1577
+ }
1578
+
1579
+ .htwoolentor-faq-card .htwoolentor-faq-head {
1580
+ font-size: 17px;
1581
+ font-weight: 500;
1582
+ line-height: 1.625;
1583
+ position: relative;
1584
+ display: flex;
1585
+ padding: 19px 25px;
1586
+ cursor: pointer;
1587
+ transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
1588
+ color: #333333;
1589
+ border: 1px solid rgba(0, 0, 0, 0.1);
1590
+ border-radius: 4px;
1591
+ display: flex;
1592
+ align-items: center;
1593
+ justify-content: space-between;
1594
+ }
1595
+
1596
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-close-icon, .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-open-icon {
1597
+ display: block;
1598
+ }
1599
+
1600
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-open-icon, .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-close-icon {
1601
+ display: none;
1602
+ }
1603
+
1604
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon svg :not([stroke="none"]) {
1605
+ fill: #FFFFFF;
1606
+ }
1607
+
1608
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon svg :not([fill="none"]) {
1609
+ stroke: #FFFFFF;
1610
+ }
1611
+
1612
+ .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon svg [fill="none"] {
1613
+ fill: transparent !important;
1614
+ }
1615
+
1616
+ .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon svg [stroke="none"] {
1617
+ stroke: transparent !important;
1618
+ }
1619
+
1620
+ @media only screen and (max-width: 767px) {
1621
+ .htwoolentor-faq-card .htwoolentor-faq-head {
1622
+ padding: 15px 15px;
1623
+ font-size: 16px;
1624
+ line-height: 1.5;
1625
+ }
1626
+ }
1627
+
1628
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator {
1629
+ position: relative;
1630
+ width: 14px;
1631
+ height: 14px;
1632
+ margin-left: 10px;
1633
+ }
1634
+
1635
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator::before, .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator::after {
1636
+ position: absolute;
1637
+ top: 50%;
1638
+ left: 0;
1639
+ width: 14px;
1640
+ height: 2px;
1641
+ content: "";
1642
+ transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
1643
+ transform: translateY(-50%);
1644
+ border-radius: 10px;
1645
+ background-color: #3D3D3D;
1646
+ }
1647
+
1648
+ @media only screen and (max-width: 767px) {
1649
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator {
1650
+ margin-left: 15px;
1651
+ }
1652
+ }
1653
+
1654
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator::after {
1655
+ transform: translateY(-50%) rotate(90deg);
1656
+ }
1657
+
1658
+ .htwoolentor-faq-card .htwoolentor-faq-body {
1659
+ overflow: hidden;
1660
+ }
1661
+
1662
+ .htwoolentor-faq-card .htwoolentor-faq-body .htwoolentor-faq-content {
1663
+ padding: 16px 25px 4px;
1664
+ }
1665
+
1666
+ @media only screen and (max-width: 767px) {
1667
+ .htwoolentor-faq-card .htwoolentor-faq-body .htwoolentor-faq-content {
1668
+ padding: 16px 15px 4px;
1669
+ }
1670
+ }
1671
+
1672
+ .htwoolentor-faq-card .htwoolentor-faq-body .htwoolentor-faq-content p {
1673
+ font-size: 15px;
1674
+ line-height: 30px;
1675
+ margin: 0;
1676
+ }
1677
+
1678
+ .htwoolentor-faq-card.is-active .htwoolentor-faq-head {
1679
+ color: #FFFFFF;
1680
+ border-color: #dc9a0e;
1681
+ background-color: #dc9a0e;
1682
+ }
1683
+
1684
+ .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-indicator::after {
1685
+ background-color: #ffffff;
1686
+ transform: translateY(-50%);
1687
+ }
1688
+ /** Block: faq Style End **/
1689
+ .wl_single-product-item a {
1690
+ color: inherit;
1691
+ display: inline-block;
1692
+ line-height: inherit;
1693
+ text-decoration: none;
1694
+ cursor: pointer;
1695
+ }
1696
+
1697
+ .wl_single-product-item {
1698
+ margin-top: 0 !important;
1699
+ margin-left: auto;
1700
+ margin-right: auto;
1701
+ border: 1px solid #eeeffb;
1702
+ border-radius: 10000px 10000px 20px 20px;
1703
+ background: #f7f7f7;
1704
+ }
1705
+
1706
+ .wl_single-product-item .product-thumbnail {
1707
+ border: 15px solid #fff;
1708
+ text-align: center;
1709
+ border-radius: 50000px;
1710
+ width: 100%;
1711
+ position: relative;
1712
+ z-index: 9;
1713
+ background: #fff;
1714
+ }
1715
+
1716
+ .wl_single-product-item .product-thumbnail .images {
1717
+ height: 100%;
1718
+ width: 100%;
1719
+ -webkit-box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
1720
+ box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
1721
+ border-radius: 50%;
1722
+ }
1723
+
1724
+ .wl_single-product-item .product-thumbnail .images img {
1725
+ display: inline-block;
1726
+ border-radius: 100%;
1727
+ width: 100%;
1728
+ }
1729
+
1730
+ @media only screen and (max-width: 767px) {
1731
+ .wl_single-product-item .product-thumbnail {
1732
+ height: 235px;
1733
+ }
1734
+ }
1735
+
1736
+ @media only screen and (max-width: 575px) {
1737
+ .wl_single-product-item .product-thumbnail {
1738
+ height: 270px;
1739
+ }
1740
+ }
1741
+
1742
+ .wl_single-product-item .product-content {
1743
+ margin-top: -124px;
1744
+ display: -webkit-box;
1745
+ display: -webkit-flex;
1746
+ display: -ms-flexbox;
1747
+ display: flex;
1748
+ -webkit-box-orient: vertical;
1749
+ -webkit-box-direction: normal;
1750
+ -webkit-flex-direction: column;
1751
+ -ms-flex-direction: column;
1752
+ flex-direction: column;
1753
+ -webkit-box-pack: justify;
1754
+ -webkit-justify-content: space-between;
1755
+ -ms-flex-pack: justify;
1756
+ justify-content: space-between;
1757
+ }
1758
+
1759
+ .wl_single-product-item .product-content .product-content-top {
1760
+ padding: 140px 20px 10px;
1761
+ }
1762
+
1763
+ .wl_single-product-item .product-content .product-content-top .title {
1764
+ font-weight: 600;
1765
+ font-size: 18px;
1766
+ margin: 0;
1767
+ text-transform: inherit;
1768
+ }
1769
+
1770
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .title a {
1771
+ color: #fff
1772
+ }
1773
+
1774
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top p {
1775
+ font-weight: 400;
1776
+ font-size: 14px;
1777
+ }
1778
+
1779
+ .wl_single-product-item .product-content .product-content-top .title a {
1780
+ color: #333
1781
+ }
1782
+
1783
+ .wl_single-product-item .product-content .product-content-top .title a:hover {
1784
+ color: #0A3ACA
1785
+ }
1786
+
1787
+ .wl_single-product-item .product-content .product-content-top .product-price {
1788
+ color: #0A3ACA;
1789
+ font-weight: 500;
1790
+ margin-bottom: 15px;
1791
+ margin-top: 10px;
1792
+ font-size: 15px;
1793
+ }
1794
+
1795
+ @media only screen and (min-width: 992px) and (max-width: 1199px) {
1796
+ .wl_single-product-item .product-content .product-content-top .product-price {
1797
+ margin-bottom: 5px;
1798
+ margin-top: 5px;
1799
+ }
1800
+ }
1801
+
1802
+ .wl_single-product-item .product-content .product-content-top .reading {
1803
+ display: -webkit-box;
1804
+ display: -webkit-flex;
1805
+ display: -ms-flexbox;
1806
+ display: flex;
1807
+ }
1808
+
1809
+ .wl_single-product-item .product-content .action {
1810
+ margin-top: 10px;
1811
+ display: -webkit-box;
1812
+ display: -webkit-flex;
1813
+ display: -ms-flexbox;
1814
+ display: flex;
1815
+ -webkit-box-pack: justify;
1816
+ -webkit-justify-content: space-between;
1817
+ -ms-flex-pack: justify;
1818
+ justify-content: space-between;
1819
+ background: #4E7CFF;
1820
+ padding: 10px 30px;
1821
+ border-radius: 0 0 5px 5px;
1822
+ margin: 0;
1823
+ list-style: none;
1824
+ }
1825
+
1826
+ .wl_single-product-item .product-content .action li {
1827
+ margin: 0;
1828
+ position: relative;
1829
+ line-height: 0
1830
+ }
1831
+
1832
+ .wl_single-product-item .product-content .action li a, .wl_single-product-item .product-content .action .action-item {
1833
+ width: 40px;
1834
+ height: 40px;
1835
+ line-height: 40px;
1836
+ background: #285FFC;
1837
+ text-align: center;
1838
+ border-radius: 5px;
1839
+ color: #ffffff;
1840
+ }
1841
+
1842
+ .wl_single-product-item .product-content .action li .yith-wcwl-wishlistaddedbrowse.hide a, .wl_single-product-item .product-content .action li a.add_to_wishlist {
1843
+ padding: 0 !important;
1844
+ }
1845
+
1846
+ .wl_single-product-item .product-content .action .action-item:hover {
1847
+ background: #2B2B4C;
1848
+ }
1849
+
1850
+ .wl_single-product-item.wl_left-item {
1851
+ display: -webkit-box;
1852
+ display: -webkit-flex;
1853
+ display: -ms-flexbox;
1854
+ display: flex;
1855
+ max-width: 100%;
1856
+ border-radius: 500px 0 0 500px;
1857
+ }
1858
+
1859
+ @media only screen and (max-width: 575px) {
1860
+ .wl_single-product-item.wl_left-item {
1861
+ display: inherit;
1862
+ border-radius: 500px 500px 5px 5px;
1863
+ max-width: 270px;
1864
+ margin-left: auto;
1865
+ margin-right: auto;
1866
+ }
1867
+ }
1868
+
1869
+ .wl_single-product-item.wl_left-item .product-thumbnail {
1870
+ height: 270px;
1871
+ width: 340px;
1872
+ line-height: 200px;
1873
+ }
1874
+
1875
+ .wl_single-product-item.wl_left-item .product-thumbnail .images {
1876
+ height: 100%;
1877
+ width: 100%;
1878
+ -webkit-box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
1879
+ box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
1880
+ border-radius: 50%;
1881
+ }
1882
+
1883
+ @media only screen and (max-width: 575px) {
1884
+ .wl_single-product-item.wl_left-item .product-thumbnail {
1885
+ height: 270px;
1886
+ width: 270px;
1887
+ }
1888
+ }
1889
+
1890
+ .wl_single-product-item.wl_left-item .product-content {
1891
+ margin-top: 0px;
1892
+ margin-left: -144px;
1893
+ width: 100%;
1894
+ }
1895
+
1896
+ @media only screen and (max-width: 575px) {
1897
+ .wl_single-product-item.wl_left-item .product-content {
1898
+ margin-top: 0px;
1899
+ margin-left: 0px;
1900
+ }
1901
+ }
1902
+
1903
+ .wl_single-product-item.wl_left-item .product-content .product-price {
1904
+ margin-bottom: 5px;
1905
+ margin-top: 5px;
1906
+ }
1907
+
1908
+ .wl_single-product-item.wl_left-item .product-content .product-content-top {
1909
+ padding: 30px 20px 12px 165px;
1910
+ }
1911
+
1912
+ @media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (max-width: 767px) {
1913
+ .wl_single-product-item.wl_left-item .product-content .product-content-top {
1914
+ padding: 10px 20px 10px 170px;
1915
+ }
1916
+ }
1917
+
1918
+ @media only screen and (max-width: 575px) {
1919
+ .wl_single-product-item.wl_left-item .product-content .product-content-top {
1920
+ padding: 10px 20px 12px 10px;
1921
+ }
1922
+ }
1923
+
1924
+ .wl_single-product-item.wl_left-item .product-content .action {
1925
+ padding: 10px 30px 10px 150px;
1926
+ border-radius: 0 0 5px 5px;
1927
+ }
1928
+
1929
+ @media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (max-width: 767px) {
1930
+ .wl_single-product-item.wl_left-item .product-content .action {
1931
+ padding: 10px 20px 10px 150px;
1932
+ }
1933
+ }
1934
+
1935
+ @media only screen and (max-width: 575px) {
1936
+ .wl_single-product-item.wl_left-item .product-content .action {
1937
+ padding: 10px 20px;
1938
+ }
1939
+ }
1940
+
1941
+ .wl_single-product-item.wl_dark-item .product-thumbnail {
1942
+ border: 15px solid #707070;
1943
+ }
1944
+
1945
+ .wl_single-product-item.wl_dark-item .product-thumbnail .images {
1946
+ -webkit-box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
1947
+ box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
1948
+ }
1949
+
1950
+ .wl_single-product-item.wl_dark-item .product-content {
1951
+ background: #2B2B4C;
1952
+ color: #ffffff;
1953
+ }
1954
+
1955
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top {
1956
+ padding: 140px 20px 10px;
1957
+ }
1958
+
1959
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .title {
1960
+ color: #ffffff;
1961
+ }
1962
+
1963
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .product-price {
1964
+ color: #ffffff;
1965
+ }
1966
+
1967
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .reading {
1968
+ display: -webkit-box;
1969
+ display: -webkit-flex;
1970
+ display: -ms-flexbox;
1971
+ display: flex;
1972
+ color: #75828E;
1973
+ }
1974
+
1975
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting {
1976
+ display: -webkit-box;
1977
+ display: -webkit-flex;
1978
+ display: -ms-flexbox;
1979
+ display: flex;
1980
+ position: relative;
1981
+ margin-left: -3px;
1982
+ margin-right: -3px;
1983
+ }
1984
+
1985
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting .ht-product-user-ratting, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting {
1986
+ display: -webkit-box;
1987
+ display: -webkit-flex;
1988
+ display: -ms-flexbox;
1989
+ display: flex;
1990
+ overflow: hidden;
1991
+ position: absolute;
1992
+ left: 5px;
1993
+ top: 0;
1994
+ z-index: 3;
1995
+ margin-left: -5px;
1996
+ margin-right: -5px;
1997
+ }
1998
+
1999
+ .ht-products .ht-product.ht-product-content-allcenter .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting, .ht-products .ht-product.ht-product-ratting-top-right .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting {
2000
+ position: inherit;
2001
+ }
2002
+
2003
+ .ht-products .ht-product.ht-product-category-right-bottom .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price {
2004
+ margin-bottom: 25px;
2005
+ }
2006
+
2007
+ .ht-products .ht-product.ht-product-category-right-bottom .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting {
2008
+ margin-top: 8px;
2009
+ }
2010
+
2011
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting .ht-product-user-ratting i, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting i {
2012
+ color: #dc9a0e;
2013
+ }
2014
+
2015
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting i, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting i {
2016
+ color: #aaaaaa;
2017
+ }
2018
+
2019
+ .wl_single-product-item .action li .woolentor-compare.compare::before {
2020
+ left: 50%;
2021
+ top: 50%;
2022
+ transform: translateX(-50%) translateY(-50%);
2023
+ color: #fff;
2024
+ font-size: 18px;
2025
+ width: 100%;
2026
+ height: 100%;
2027
+ }
2028
+
2029
+ .wl_single-product-item .product-content .action li a:hover {
2030
+ background: #2B2B4C;
2031
+ }
2032
+
2033
+ .wl_single-product-item .product-content .action span.ht-product-action-tooltip {
2034
+ display: none;
2035
+ }
2036
+
2037
+ .wl_single-product-item .product-content .yith-wcwl-add-to-wishlist {
2038
+ margin-top: 0;
2039
+ }
2040
+
2041
+ .wl_single-product-item .product-content .yith-wcwl-add-button>a i {
2042
+ margin-right: 0;
2043
+ }
2044
+
2045
+ /*--button--*/
2046
+
2047
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action .btn_cart {
2048
+ position: relative;
2049
+ }
2050
+
2051
+ .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.action-item.added, .wl_single-product-item .product-content .action .action-item.added {
2052
+ display: none;
2053
+ }
2054
+
2055
+ .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward {
2056
+ font-size: 0;
2057
+ margin-right: 30px;
2058
+ }
2059
+
2060
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward {
2061
+ font-size: 0;
2062
+ margin-right: 30px;
2063
+ }
2064
+
2065
+ .wl_single-product-item .product-content .action a.added_to_cart.wc-forward {
2066
+ text-indent: -9999px;
2067
+ }
2068
+
2069
+ .wl_single-product-item .product-content .action .action-item.loading:before {
2070
+ position: absolute;
2071
+ text-indent: 0;
2072
+ content: "\e01c";
2073
+ font-family: WooCommerce;
2074
+ left: 0;
2075
+ right: 0;
2076
+ }
2077
+
2078
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after, .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after, .wl_single-product-item .product-content .action a.added_to_cart.wc-forward:after {
2079
+ position: absolute;
2080
+ text-indent: 0;
2081
+ content: "\e017";
2082
+ font-family: WooCommerce;
2083
+ left: 0;
2084
+ right: 0;
2085
+ font-size: 18px;
2086
+ }
2087
+
2088
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after, .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after {
2089
+ font-size: 18px;
2090
+ background: #fff;
2091
+ display: inline-table;
2092
+ height: 34px;
2093
+ line-height: 34px;
2094
+ border-radius: 50%;
2095
+ padding: 0 9px;
2096
+ margin-right: 70px;
2097
+ color: #333;
2098
+ }
2099
+
2100
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action .action-item.added, .wl_horizontal-hover-accordion .accordion-ul li .accordion-product-content .accordion-product-item .product-content .action .action-item.added {
2101
+ display: none;
2102
+ }
2103
+
2104
+ .wl_horizontal-hover-accordion .accordion-ul li .accordion-product-content .accordion-product-item .product-content .action a.added_to_cart.wc-forward {
2105
+ height: 35px;
2106
+ padding: 0 9px;
2107
+ line-height: 35px;
2108
+ background: transparent;
2109
+ text-align: center;
2110
+ border-radius: 35px;
2111
+ border: 1px solid #0A3ACA;
2112
+ color: #333;
2113
+ margin-right: 10px
2114
+ }
2115
+
2116
+ .woolentor-compare.compare{
2117
+ -webkit-text-indent: -99999px;
2118
+ text-indent: -99999px;
2119
+ }
2120
+ .wl_product-accordion .action .woocommerce.product.compare-button a:before,
2121
+ .wl_horizontal-hover-accordion .action .woocommerce.product.compare-button a:before,
2122
+ .wl_single-product-item .action li .woolentor-compare.compare::before {
2123
+ content: "\f0ec";
2124
+ position: absolute;
2125
+ font-family: FontAwesome !important;
2126
+ font-size: 18px;
2127
+ text-indent: 0;
2128
+ }
2129
+ .wl_product-accordion .action .woocommerce.product.compare-button a:before {
2130
+ top: 0;
2131
+ }
2132
+ .wl_horizontal-hover-accordion .action .woocommerce.product.compare-button a:before {
2133
+ text-indent: 0;
2134
+ left: 0;
2135
+ right: 0;
2136
+ color: #000;
2137
+ border: 1px solid #0A3ACA;
2138
+ width: 37px;
2139
+ height: 37px;
2140
+ line-height: 35px;
2141
+ border-radius: 50%;
2142
+ text-align: center;
2143
+ }
2144
+ /** Block: product-curvy Style End **/
woolentor-blocks/includes/classes/Api/Api.php CHANGED
@@ -41,6 +41,25 @@ class Api {
41
  ]
42
  );
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
 
46
  /**
@@ -68,5 +87,112 @@ class Api {
68
 
69
  }
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  }
41
  ]
42
  );
43
 
44
+ register_rest_route( $this->namespace, 'products',
45
+ [
46
+ 'methods' => WP_REST_Server::READABLE,
47
+ 'args' => [
48
+ 'perPage' => [],
49
+ 'categories' => [],
50
+ 'orderBy' => [],
51
+ 'order' => [],
52
+ 'filterBy' => [],
53
+ 'offset' => [],
54
+ 'include' => [],
55
+ 'exclude' => [],
56
+ 'wpnonce' => []
57
+ ],
58
+ 'callback' => [ $this, 'get_post_data' ],
59
+ 'permission_callback' => '__return_true'
60
+ ]
61
+ );
62
+
63
  }
64
 
65
  /**
87
 
88
  }
89
 
90
+ /**
91
+ * Get Post data
92
+ */
93
+ public function get_post_data( $request ){
94
+
95
+ if ( !wp_verify_nonce( $_REQUEST['wpnonce'], 'woolentorblock-nonce') ){
96
+ return rest_ensure_response([]);
97
+ }
98
+
99
+ $data = [];
100
+ $loop = new \WP_Query( woolentorBlocks_Product_Query( $request ) );
101
+
102
+ if( $loop->have_posts() ){
103
+ while( $loop->have_posts() ) {
104
+ $loop->the_post();
105
+
106
+ $item = array();
107
+ $product_id = get_the_ID();
108
+ $product = wc_get_product( $product_id );
109
+ $user_id = get_the_author_meta('ID');
110
+ $item['id'] = $product_id;
111
+ $item['time'] = get_the_date();
112
+ $item['title'] = get_the_title();
113
+ $item['permalink'] = get_permalink();
114
+ $item['excerpt'] = strip_tags( get_the_excerpt() );
115
+ $item['content'] = strip_tags( get_the_content() );
116
+ $item['price_sale'] = $product->get_sale_price();
117
+ $item['price_regular'] = $product->get_regular_price();
118
+ $item['on_sale'] = $product->is_on_sale();
119
+ $item['discount'] = ( $item['price_sale'] && $item['price_regular'] ) ? round( ( $item['price_regular'] - $item['price_sale'] ) / $item['price_regular'] * 100 ).'%' : '';
120
+ $item['price_html'] = $product->get_price_html();
121
+ $item['stock'] = $product->get_stock_status();
122
+ $item['featured'] = $product->is_featured();
123
+ $item['rating'] = [
124
+ 'count' => $product->get_rating_count(),
125
+ 'average' => $product->get_average_rating(),
126
+ 'html' => wc_get_rating_html( $product->get_average_rating(), $product->get_rating_count() ),
127
+ ];
128
+ $cart_btn_class = $product->is_purchasable() && $product->is_in_stock() ? ' add_to_cart_button' : '';
129
+ $cart_btn_class .= $product->supports( 'ajax_add_to_cart' ) && $product->is_purchasable() && $product->is_in_stock() ? ' ajax_add_to_cart' : '';
130
+ $item['addtocart'] = [
131
+ 'link' => $product->add_to_cart_url(),
132
+ 'class' => $cart_btn_class,
133
+ ];
134
+ $item['wishlist'] = [
135
+ 'status' => woolentor_has_wishlist_plugin(),
136
+ 'html' => woolentor_add_to_wishlist_button()
137
+ ];
138
+ $item['compare'] = [
139
+ 'status' => woolentor_exist_compare_plugin(),
140
+ 'html' => woolentorBlocks_compare_button( array( 'style'=>2 ) ),
141
+ ];
142
+
143
+ $time = current_time('timestamp');
144
+ $time_to = strtotime( $product->get_date_on_sale_to() );
145
+ $item['deal'] = ( $item['price_sale'] && $time_to > $time ) ? date( 'Y/m/d', $time_to ) : '';
146
+
147
+
148
+ // Images
149
+ if( has_post_thumbnail() ){
150
+ $thumb_id = get_post_thumbnail_id( $product_id );
151
+ $image_sizes = woolentorBlocks_get_image_size();
152
+ $image_src = array();
153
+ foreach ( $image_sizes as $key => $size ) {
154
+ $image_src[$key] = [
155
+ 'src' => wp_get_attachment_image_src( $thumb_id, $key, false )[0],
156
+ 'html' => $product->get_image( $image_size )
157
+ ];
158
+ }
159
+ $item['image'] = $image_src;
160
+ }
161
+
162
+ // Tags
163
+ $tags = get_the_terms( $product_id, ( isset( $prams['tag'] ) ? esc_attr( $prams['tag'] ) : 'product_tag' ) );
164
+ if( !empty( $tag ) ){
165
+ $tag_list = array();
166
+ foreach ( $tags as $tag ) {
167
+ $tag_list[] = [
168
+ 'slug' => $tag->slug,
169
+ 'name' => $tag->name,
170
+ 'url' => get_term_link( $tag->term_id )
171
+ ];
172
+ }
173
+ $item['tags'] = $tag_list;
174
+ }
175
+
176
+ // Categories
177
+ $categories = get_the_terms( $product_id, ( isset( $prams['cat'] ) ? esc_attr( $prams['cat'] ) : 'product_cat') );
178
+ if( !empty( $categories ) ){
179
+ $category_list = array();
180
+ foreach ( $categories as $category ) {
181
+ $category_list[] = [
182
+ 'slug' => $category->slug,
183
+ 'name' => $category->name,
184
+ 'url' => get_term_link( $category->term_id )
185
+ ];
186
+ }
187
+ $item['categories'] = $category_list;
188
+ }
189
+ $data[] = $item;
190
+ }
191
+ wp_reset_postdata();
192
+ }
193
+ return rest_ensure_response( $data );
194
+
195
+ }
196
+
197
 
198
  }
woolentor-blocks/includes/classes/Blocks_init.php CHANGED
@@ -47,5 +47,62 @@ class Blocks_init {
47
  }
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
  }
47
  }
48
  }
49
 
50
+ /**
51
+ * Block List
52
+ */
53
+ public static function block_list(){
54
+
55
+ $blockList = [
56
+ array(
57
+ 'label' => 'Brand Logo',
58
+ 'name' => 'woolentor/brand-logo',
59
+ 'active' => true,
60
+ ),
61
+ array(
62
+ 'label' => 'Category Grid',
63
+ 'name' => 'woolentor/category-grid',
64
+ 'active' => true,
65
+ ),
66
+ array(
67
+ 'label' => 'Image Marker',
68
+ 'name' => 'woolentor/image-marker',
69
+ 'active' => true,
70
+ ),
71
+ array(
72
+ 'label' => 'Special Day Offer',
73
+ 'name' => 'woolentor/special-day-offer',
74
+ 'active' => true,
75
+ ),
76
+ array(
77
+ 'label' => 'Store Feature',
78
+ 'name' => 'woolentor/store-feature',
79
+ 'active' => true,
80
+ ),
81
+ array(
82
+ 'label' => 'Product tab',
83
+ 'name' => 'woolentor/product-tab',
84
+ 'active' => true,
85
+ ),
86
+ array(
87
+ 'label' => 'Promo Banner',
88
+ 'name' => 'woolentor/promo-banner',
89
+ 'active' => true,
90
+ ),
91
+ array(
92
+ 'label' => 'FAQ',
93
+ 'name' => 'woolentor/faq',
94
+ 'active' => true,
95
+ ),
96
+ array(
97
+ 'label' => 'Product Curvy',
98
+ 'name' => 'woolentor/product-curvy',
99
+ 'active' => true,
100
+ )
101
+
102
+ ];
103
+ return $blockList;
104
+
105
+ }
106
+
107
 
108
  }
woolentor-blocks/includes/classes/Scripts.php CHANGED
@@ -34,24 +34,26 @@ class Scripts {
34
  public function __construct() {
35
  add_action( 'enqueue_block_assets', [ $this, 'block_assets' ] );
36
  add_action( 'enqueue_block_editor_assets', [ $this, 'block_editor_assets' ] );
 
 
37
  }
38
 
39
  /**
40
  * Block assets.
41
  */
42
  public function block_assets() {
43
- $dependencies = require_once( WOOLENTOR_BLOCK_PATH . '/build/index.asset.php' );
44
 
45
  wp_enqueue_script(
46
- 'woolentor-block',
47
- WOOLENTOR_BLOCK_URL . '/build/index.js',
48
  $dependencies['dependencies'],
49
  $dependencies['version'],
50
  true
51
  );
52
 
53
  wp_enqueue_script(
54
- 'woolentor-block-slic-activate',
55
  WOOLENTOR_BLOCK_URL . '/src/assets/js/script.js',
56
  $dependencies['dependencies'],
57
  $dependencies['version'],
@@ -61,21 +63,34 @@ class Scripts {
61
  wp_enqueue_style(
62
  'woolentor-block-style',
63
  WOOLENTOR_BLOCK_URL . '/src/assets/css/style-index.css',
64
- false,
65
- time(),
66
- 'all'
67
  );
68
 
 
 
 
 
 
 
 
69
  /**
70
  * Localize data
71
  */
72
- wp_localize_script( 'woolentor-block', 'woolentorData', array(
73
  'url' => WOOLENTOR_BLOCK_URL,
74
  'ajax' => admin_url('admin-ajax.php'),
75
  'security' => wp_create_nonce('woolentorblock-nonce'),
76
  ));
77
 
78
  }
 
 
 
 
 
 
 
79
  /**
80
  * Block editor assets.
81
  */
@@ -101,7 +116,545 @@ class Scripts {
101
  wp_enqueue_style( 'simple-line-icons' );
102
  wp_enqueue_style( 'slick' );
103
 
104
- wp_enqueue_style( 'woolentor-block-editor-style', WOOLENTOR_BLOCK_URL . '/src/assets/css/editor-style.css', false, time(), 'all' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
  }
107
 
34
  public function __construct() {
35
  add_action( 'enqueue_block_assets', [ $this, 'block_assets' ] );
36
  add_action( 'enqueue_block_editor_assets', [ $this, 'block_editor_assets' ] );
37
+ add_action('wp_head', [ $this, 'block_attribute_css' ], 100 );
38
+ // $this->generater_css_file();
39
  }
40
 
41
  /**
42
  * Block assets.
43
  */
44
  public function block_assets() {
45
+ $dependencies = require_once( WOOLENTOR_BLOCK_PATH . '/build/blocks-woolentor.asset.php' );
46
 
47
  wp_enqueue_script(
48
+ 'woolentor-blocks',
49
+ WOOLENTOR_BLOCK_URL . '/build/blocks-woolentor.js',
50
  $dependencies['dependencies'],
51
  $dependencies['version'],
52
  true
53
  );
54
 
55
  wp_enqueue_script(
56
+ 'woolentor-block-main',
57
  WOOLENTOR_BLOCK_URL . '/src/assets/js/script.js',
58
  $dependencies['dependencies'],
59
  $dependencies['version'],
63
  wp_enqueue_style(
64
  'woolentor-block-style',
65
  WOOLENTOR_BLOCK_URL . '/src/assets/css/style-index.css',
66
+ array(),
67
+ WOOLENTOR_VERSION
 
68
  );
69
 
70
+ if ( is_singular() && has_blocks() ){
71
+ $this->load_css();
72
+ }
73
+ elseif( woolentorBlocks_is_gutenberg_page() ){
74
+ $this->load_css();
75
+ }
76
+
77
  /**
78
  * Localize data
79
  */
80
+ wp_localize_script( 'woolentor-blocks', 'woolentorData', array(
81
  'url' => WOOLENTOR_BLOCK_URL,
82
  'ajax' => admin_url('admin-ajax.php'),
83
  'security' => wp_create_nonce('woolentorblock-nonce'),
84
  ));
85
 
86
  }
87
+
88
+ /**
89
+ * Load Css File
90
+ */
91
+ public function load_css(){
92
+ wp_enqueue_style( 'woolentor-block-style-css', WOOLENTOR_BLOCK_URL . '/build/styles/blocks.style.build.css', array(), WOOLENTOR_VERSION );
93
+ }
94
  /**
95
  * Block editor assets.
96
  */
116
  wp_enqueue_style( 'simple-line-icons' );
117
  wp_enqueue_style( 'slick' );
118
 
119
+ wp_enqueue_style( 'woolentor-block-editor-style', WOOLENTOR_BLOCK_URL . '/src/assets/css/editor-style.css', false, WOOLENTOR_VERSION, 'all' );
120
+
121
+ }
122
+
123
+ public function generater_css_file(){
124
+
125
+ global $wp_filesystem;
126
+ if ( ! $wp_filesystem ) {
127
+ require_once( ABSPATH . 'wp-admin/includes/file.php' );
128
+ }
129
+
130
+ $dirmkpath = trailingslashit( WOOLENTOR_BLOCK_DIR ) . 'build/styles/';
131
+ WP_Filesystem( false, WOOLENTOR_BLOCK_DIR, true );
132
+ if( ! $wp_filesystem->is_dir( $dirmkpath ) ) {
133
+ $wp_filesystem->mkdir( $dirmkpath );
134
+ }
135
+
136
+ $styleFile = fopen( WOOLENTOR_BLOCK_DIR . '/build/styles/blocks.style.build.css', 'w' );
137
+
138
+ $blockList = Blocks_init::block_list();
139
+ $blockDir = WOOLENTOR_BLOCK_URL . '/src/blocks/';
140
+
141
+ foreach ( $blockList as $key => $block ) {
142
+
143
+ $blockDirName = str_replace('woolentor/', '', trim(preg_replace('/\(.+\)/', '', $block['name'])));
144
+ $src = $blockDir . $blockDirName . '/style.css';
145
+
146
+ $css = file_get_contents( $src );
147
+ $css .= sprintf( '%s /** Block: %s Style End **/', "\n", $blockDirName );
148
+
149
+ fwrite( $styleFile, $css."\n" );
150
+
151
+ }
152
+ fclose( $styleFile );
153
+
154
+ }
155
+
156
+ public function block_attribute_css(){
157
+
158
+ $get_blocks = array_unique( woolentorBlocks_get_blocks(), SORT_REGULAR );
159
+ $blocks_css = "";
160
+
161
+ foreach( $get_blocks as $block ){
162
+
163
+ $blockName = str_replace('woolentor/', '', trim(preg_replace('/\(.+\)/', '', $block['blockName'])));
164
+
165
+ if( isset( $blockName ) && isset( $block['attrs']['blockUniqId'] ) && $block['attrs']['blockUniqId'] != '' ){
166
+
167
+ $uniqClass = 'woolentorblock-'.$block['attrs']['blockUniqId'];
168
+
169
+ switch ( $block['blockName'] ){
170
+
171
+ case 'woolentor/brand-logo':
172
+
173
+ $singleItemAreaBorderType = woolentorBlocks_generate_css( $block['attrs'], 'singleItemAreaBorderType', 'border-style' );
174
+ $singleItemAreaBorderWidth = woolentorBlocks_Dimention_Control( $block['attrs'], 'singleItemAreaBorderWidth', 'border-width' );
175
+ $singleItemAreaBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'singleItemAreaBorderRadius', 'border-radius' );
176
+ $singleItemAreaMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'singleItemAreaMargin', 'margin' );
177
+ $singleItemAreaPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'singleItemAreaPadding', 'padding' );
178
+ $brandAlignment = woolentorBlocks_generate_css( $block['attrs'], 'brandAlignment', 'text-align' );
179
+ $singleItemAreaBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'singleItemAreaBorderColor', 'border-color' );
180
+
181
+ $brandImageBorderType = woolentorBlocks_generate_css( $block['attrs'], 'brandImageBorderType', 'border-style' );
182
+ $brandImageBorderWidth = woolentorBlocks_Dimention_Control( $block['attrs'], 'brandImageBorderWidth', 'border-width' );
183
+ $brandImageBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'brandImageBorderRadius', 'border-radius' );
184
+ $brandImageBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'brandImageBorderColor', 'border-color' );
185
+
186
+ $itemSpace = ! isset( $block['attrs']['noGutter'] ) ? ( isset( $block['attrs']['itemSpace'] ) ? $block['attrs']['itemSpace'] : 15 ) : '0';
187
+
188
+ $blocks_css .= "
189
+ .{$uniqClass} .wl-single-brand{
190
+ {$singleItemAreaBorderType}
191
+ {$singleItemAreaBorderWidth}
192
+ {$singleItemAreaBorderRadius}
193
+ {$singleItemAreaMargin}
194
+ {$singleItemAreaPadding}
195
+ {$brandAlignment}
196
+ {$singleItemAreaBorderColor}
197
+ }
198
+ .{$uniqClass} .wl-single-brand img{
199
+ {$brandImageBorderType}
200
+ {$brandImageBorderWidth}
201
+ {$brandImageBorderRadius}
202
+ {$brandImageBorderColor}
203
+ }
204
+ .{$uniqClass} .woolentor-row > [class*='woolentor-col-']{
205
+ padding: 0 {$itemSpace}px;
206
+ }
207
+ ";
208
+ break;
209
+
210
+ case 'woolentor/category-grid':
211
+
212
+ $itemMarginBottom = isset( $block['attrs']['itemSpace'] ) ? ( $block['attrs']['itemSpace'] + $block['attrs']['itemSpace'] ) : 0;
213
+ $areaPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'areaPadding', 'padding' );
214
+ $areaBackground = woolentorBlocks_generate_css( $block['attrs'], 'areaBackgroundColor', 'background-color' );
215
+
216
+ $imageBoxColor = woolentorBlocks_generate_css( $block['attrs'], 'imageBoxColor', 'border-color' );
217
+ $imageMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'imageMargin', 'margin' );
218
+ $imageBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'imageBorderRadius', 'border-radius' );
219
+
220
+ $titleColor = woolentorBlocks_generate_css( $block['attrs'], 'titleColor', 'color' );
221
+ $titleHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'titleHoverColor', 'color' );
222
+ $titleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'titleMargin', 'margin' );
223
+
224
+ $countColor = woolentorBlocks_generate_css( $block['attrs'], 'countColor', 'color' );
225
+ $countBeforeColor = woolentorBlocks_generate_css( $block['attrs'], 'countBeforeColor', 'background-color' );
226
+
227
+ $itemSpace = isset( $block['attrs']['itemSpace'] ) ? $block['attrs']['itemSpace'] : 15;
228
+
229
+ $blocks_css .= "
230
+ .{$uniqClass} .woolentor-row:not(.wlno-gutters) > [class*='woolentor-col-']{
231
+ padding: 0 {$itemSpace}px;
232
+ }
233
+ .{$uniqClass} .woolentor-row:not(.wlno-gutters) > [class*='woolentor-col-'].woolentor_margin_top{
234
+ margin-top: {$itemMarginBottom}px;
235
+ }
236
+ .{$uniqClass} [class*='ht-category-wrap']{
237
+ {$areaPadding}
238
+ {$areaBackground}
239
+ }
240
+ .{$uniqClass} .ht-category-wrap .ht-category-image a.ht-category-border::before,.{$uniqClass} .ht-category-wrap-2:hover::before,.{$uniqClass} .ht-category-wrap .ht-category-image a.ht-category-border-2::before{
241
+ {$imageBoxColor}
242
+ }
243
+ .{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-image']{
244
+ {$imageMargin}
245
+ }
246
+ .{$uniqClass} .ht-category-wrap .ht-category-image, {$uniqClass} .ht-category-wrap .ht-category-image a.ht-category-border::before,{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-image-']{
247
+ {$imageBorderRadius}
248
+ }
249
+ .{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-content'] h3 a{
250
+ {$titleColor}
251
+ {$titleMargin}
252
+ }
253
+ .{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-content'] h3 a:hover{
254
+ {$titleHoverColor}
255
+ }
256
+ .{$uniqClass} .ht-category-wrap [class*='ht-category-content'] span{
257
+ {$countColor}
258
+ }
259
+ .{$uniqClass} .ht-category-wrap [class*='ht-category-content'] span::before{
260
+ {$countBeforeColor}
261
+ }
262
+ ";
263
+ break;
264
+
265
+ case 'woolentor/image-marker':
266
+
267
+ $markerColor = woolentorBlocks_generate_css( $block['attrs'], 'markerColor', 'color' );
268
+ $markerBGColor = woolentorBlocks_generate_css( $block['attrs'], 'markerBGColor', 'background-color' );
269
+ $markerBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'markerBorderColor', 'border-color' );
270
+ $markerBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'markerBorderRadius', 'border-radius' );
271
+ $markerPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'markerPadding', 'padding' );
272
+
273
+ $markerContentBGColor = woolentorBlocks_generate_css( $block['attrs'], 'markerContentBGColor', 'background-color' );
274
+ $markerContentBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'markerContentBorderRadius', 'border-radius' );
275
+ $markerContentPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'markerContentPadding', 'padding' );
276
+
277
+ $markerTitleColor = woolentorBlocks_generate_css( $block['attrs'], 'markerTitleColor', 'color' );
278
+ $markerTitleSize = woolentorBlocks_generate_css( $block['attrs'], 'markerTitleSize', 'font-size' );
279
+ $markerTitleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'markerTitleMargin', 'margin' );
280
+
281
+ $markerDescriptionColor = woolentorBlocks_generate_css( $block['attrs'], 'markerDescriptionColor', 'color' );
282
+ $markerDescriptionSize = woolentorBlocks_generate_css( $block['attrs'], 'markerDescriptionSize', 'font-size' );
283
+ $markerDescriptionMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'markerDescriptionMargin', 'margin' );
284
+
285
+ $blocks_css .= "
286
+ .{$uniqClass} .wlb_image_pointer::before{
287
+ {$markerColor}
288
+ }
289
+ .{$uniqClass} .wlb_image_pointer{
290
+ {$markerBGColor}
291
+ {$markerBorderColor}
292
+ {$markerBorderRadius}
293
+ {$markerPadding}
294
+ }
295
+ .{$uniqClass} .wlb_image_pointer .wlb_pointer_box{
296
+ {$markerContentBGColor}
297
+ {$markerContentBorderRadius}
298
+ {$markerContentPadding}
299
+ }
300
+ .{$uniqClass} .wlb_image_pointer .wlb_pointer_box h4{
301
+ {$markerTitleColor}
302
+ {$markerTitleSize}
303
+ {$markerTitleMargin}
304
+ }
305
+ .{$uniqClass} .wlb_image_pointer .wlb_pointer_box p{
306
+ {$markerDescriptionColor}
307
+ {$markerDescriptionSize}
308
+ {$markerDescriptionMargin}
309
+ }
310
+ ";
311
+ break;
312
+
313
+ case 'woolentor/special-day-offer':
314
+ $badgeHorizontalPos = woolentorBlocks_generate_css( $block['attrs'], 'badgeHorizontalPos', 'left', '%' );
315
+ $badgeVerticlePos = woolentorBlocks_generate_css( $block['attrs'], 'badgeVerticlePos', 'top', '%' );
316
+
317
+ $contentAlignment = woolentorBlocks_generate_css( $block['attrs'], 'contentAlignment', 'text-align' );
318
+ $contentPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'contentAreaPadding', 'padding' );
319
+ $contentMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'contentAreaMargin', 'margin' );
320
+
321
+ $titleColor = woolentorBlocks_generate_css( $block['attrs'], 'titleColor', 'color' );
322
+ $titleSize = woolentorBlocks_generate_css( $block['attrs'], 'titleSize', 'font-size' );
323
+ $titleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'titleMargin', 'margin' );
324
+ $titlePadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'titlePadding', 'padding' );
325
+
326
+ $titleSubColor = woolentorBlocks_generate_css( $block['attrs'], 'titleSubColor', 'color' );
327
+ $titleSubSize = woolentorBlocks_generate_css( $block['attrs'], 'titleSubSize', 'font-size' );
328
+ $subTitleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'subTitleMargin', 'margin' );
329
+ $subTitlePadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'subTitlePadding', 'padding' );
330
+
331
+ $desColor = woolentorBlocks_generate_css( $block['attrs'], 'desColor', 'color' );
332
+ $desSize = woolentorBlocks_generate_css( $block['attrs'], 'desSize', 'font-size' );
333
+ $desMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'desMargin', 'margin' );
334
+ $desPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'desPadding', 'padding' );
335
+
336
+ $offerColor = woolentorBlocks_generate_css( $block['attrs'], 'offerColor', 'color' );
337
+ $offerSize = woolentorBlocks_generate_css( $block['attrs'], 'offerSize', 'font-size' );
338
+ $offerMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'offerMargin', 'margin' );
339
+
340
+ $offerTagColor = woolentorBlocks_generate_css( $block['attrs'], 'offerTagColor', 'color' );
341
+ $offerTagSize = woolentorBlocks_generate_css( $block['attrs'], 'offerTagSize', 'font-size' );
342
+ $offerTagMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'offerTagMargin', 'margin' );
343
+
344
+ $buttonColor = woolentorBlocks_generate_css( $block['attrs'], 'buttonColor', 'color' );
345
+ $buttonHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'buttonHoverColor', 'color' );
346
+ $buttonSize = woolentorBlocks_generate_css( $block['attrs'], 'buttonSize', 'font-size' );
347
+ $buttonMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'buttonMargin', 'margin' );
348
+
349
+ $blocks_css .= "
350
+ .{$uniqClass} .banner-content{
351
+ {$contentAlignment}
352
+ {$contentPadding}
353
+ {$contentMargin}
354
+ }
355
+ .{$uniqClass} .wlbanner-badgeimage{
356
+ {$badgeHorizontalPos}
357
+ {$badgeVerticlePos}
358
+ }
359
+ .{$uniqClass} .banner-content h2{
360
+ {$titleColor}
361
+ {$titleSize}
362
+ {$titleMargin}
363
+ {$titlePadding}
364
+ }
365
+ .{$uniqClass} .banner-content h6{
366
+ {$titleSubColor}
367
+ {$titleSubSize}
368
+ {$subTitleMargin}
369
+ {$subTitlePadding}
370
+ }
371
+ .{$uniqClass} .banner-content p{
372
+ {$desColor}
373
+ {$desSize}
374
+ {$desMargin}
375
+ {$desPadding}
376
+ }
377
+ .{$uniqClass} .banner-content h5{
378
+ {$offerColor}
379
+ {$offerSize}
380
+ {$offerMargin}
381
+ }
382
+ .{$uniqClass} .banner-content h5 span{
383
+ {$offerTagColor}
384
+ {$offerTagSize}
385
+ {$offerTagMargin}
386
+ }
387
+ .{$uniqClass} .banner-content a{
388
+ {$buttonColor}
389
+ {$buttonSize}
390
+ {$buttonMargin}
391
+ }
392
+ .{$uniqClass} .banner-content a:hover{
393
+ {$buttonHoverColor}
394
+ }
395
+ ";
396
+ break;
397
+
398
+ case 'woolentor/store-feature':
399
+
400
+ $areaBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'areaBorderColor', 'border-color' );
401
+ $areaHoverBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'areaHoverBorderColor', 'border-color', ' !important' );
402
+ $areaBackgroundColor = woolentorBlocks_generate_css( $block['attrs'], 'areaBackgroundColor', 'background-color' );
403
+ $areaMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'areaMargin', 'margin' );
404
+ $areaPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'areaPadding', 'padding' );
405
+
406
+ $titleColor = woolentorBlocks_generate_css( $block['attrs'], 'titleColor', 'color' );
407
+ $titleSize = woolentorBlocks_generate_css( $block['attrs'], 'titleSize', 'font-size' );
408
+ $titleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'titleMargin', 'margin' );
409
+
410
+ $subTitleColor = woolentorBlocks_generate_css( $block['attrs'], 'subTitleColor', 'color' );
411
+ $subTitleSize = woolentorBlocks_generate_css( $block['attrs'], 'subTitleSize', 'font-size' );
412
+ $subTitleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'subTitleMargin', 'margin' );
413
+
414
+ $blocks_css .= "
415
+
416
+ .{$uniqClass}.ht-feature-wrap{
417
+ {$areaBackgroundColor}
418
+ }
419
+ .{$uniqClass}.ht-feature-wrap .ht-feature-inner{
420
+ {$areaBorderColor}
421
+ {$areaMargin}
422
+ {$areaPadding}
423
+ }
424
+ .{$uniqClass}.ht-feature-wrap:hover .ht-feature-inner{
425
+ {$areaHoverBorderColor}
426
+ }
427
+ .{$uniqClass}.ht-feature-wrap .ht-feature-content h4{
428
+ {$titleColor}
429
+ {$titleSize}
430
+ {$titleMargin}
431
+ }
432
+ .{$uniqClass}.ht-feature-wrap .ht-feature-content p{
433
+ {$subTitleColor}
434
+ {$subTitleSize}
435
+ {$subTitleMargin}
436
+ }
437
+
438
+ ";
439
+ break;
440
+
441
+ case 'woolentor/product-tab':
442
+
443
+ $titleColor = woolentorBlocks_generate_css( $block['attrs'], 'titleColor', 'color' );
444
+ $titleHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'titleHoverColor', 'color' );
445
+ $titleAlignment = woolentorBlocks_generate_css( $block['attrs'], 'titleAlign', 'text-align' );
446
+
447
+ $priceColor = woolentorBlocks_generate_css( $block['attrs'], 'priceColor', 'color' );
448
+ $contentAlign = woolentorBlocks_generate_css( $block['attrs'], 'contentAlign', 'text-align' );
449
+
450
+ $actionBtnColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnColor', 'color' );
451
+ $actionBtnBgColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnBgColor', 'background-color' );
452
+ $actionBtnHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnHoverColor', 'color' );
453
+ $actionBtnHoverBgColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnHoverBgColor', 'background-color' );
454
+
455
+ $blocks_css .= "
456
+ .{$uniqClass} .product-item .product-inner .content .title a{
457
+ {$titleColor}
458
+ }
459
+ .{$uniqClass} .product-item .product-inner .content .title a:hover{
460
+ {$titleHoverColor}
461
+ }
462
+ .{$uniqClass} .product-item .product-inner .content .title{
463
+ {$titleAlignment}
464
+ }
465
+ .{$uniqClass} .product-item .product-inner .content .price,.{$uniqClass} .product-item .product-inner .content .price .amount{
466
+ {$priceColor}
467
+ }
468
+ .{$uniqClass} .product-item .product-inner .content{
469
+ {$contentAlign}
470
+ }
471
+ .{$uniqClass} .product-item .actions a, .{$uniqClass} .product-item .woocommerce.compare-button a.button, .{$uniqClass} .product-item .actions a::before{
472
+ {$actionBtnColor}
473
+ }
474
+ .{$uniqClass} .product-item .actions{
475
+ {$actionBtnBgColor}
476
+ }
477
+ .{$uniqClass} .product-item .actions a:hover, .{$uniqClass} .product-item .woocommerce.compare-button a.button:hover, .{$uniqClass} .product-item .actions a:hover::before{
478
+ {$actionBtnHoverColor}
479
+ }
480
+ .{$uniqClass} .product-item .actions:hover{
481
+ {$actionBtnHoverBgColor}
482
+ }
483
+ ";
484
+ break;
485
+
486
+ case 'woolentor/faq':
487
+
488
+ $headBGColor = woolentorBlocks_generate_css( $block['attrs'], 'headBackgroundColor', 'background-color' );
489
+ $titleBorderStyle = woolentorBlocks_generate_css( $block['attrs'], 'titleBorderType', 'border-style' );
490
+ $titleBorderWidth = woolentorBlocks_Dimention_Control( $block['attrs'], 'titleBorderWidth', 'border-width' );
491
+ $titleBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'titleBorderColor', 'border-color' );
492
+ $titleBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'titleBorderRadius', 'border-radius' );
493
+ $titleColor = woolentorBlocks_generate_css( $block['attrs'], 'faqTitleColor', 'color' );
494
+ $titleSize = woolentorBlocks_generate_css( $block['attrs'], 'titleSize', 'font-size' );
495
+ $iconColor = woolentorBlocks_generate_css( $block['attrs'], 'iconColor', 'background-color', '!important' );
496
+ $contentColor = woolentorBlocks_generate_css( $block['attrs'], 'contentColor', 'color' );
497
+ $contentSize = woolentorBlocks_generate_css( $block['attrs'], 'contentSize', 'font-size' );
498
+
499
+ $headActiveBGColor = woolentorBlocks_generate_css( $block['attrs'], 'activeHeadBackgroundColor', 'background-color' );
500
+ $titleActiveColor = woolentorBlocks_generate_css( $block['attrs'], 'activeFaqTitleColor', 'color' );
501
+ $iconActiveColor = woolentorBlocks_generate_css( $block['attrs'], 'activeIconColor', 'background-color', '!important' );
502
+
503
+ $blocks_css .= "
504
+ .{$uniqClass} .htwoolentor-faq-head{
505
+ {$headBGColor}
506
+ {$titleBorderStyle}
507
+ {$titleBorderWidth}
508
+ {$titleBorderColor}
509
+ {$titleBorderRadius}
510
+ }
511
+ .{$uniqClass} .htwoolentor-faq-head-text{
512
+ {$titleColor}
513
+ {$titleSize}
514
+ }
515
+ .{$uniqClass} .htwoolentor-faq-head-indicator:before,.{$uniqClass} .htwoolentor-faq-head-indicator:after{
516
+ {$iconColor}
517
+ }
518
+ .{$uniqClass} .htwoolentor-faq-content{
519
+ {$contentColor}
520
+ }
521
+ .{$uniqClass} .htwoolentor-faq-content p,.{$uniqClass} .htwoolentor-faq-content{
522
+ {$contentSize}
523
+ }
524
+
525
+ .{$uniqClass} .is-active .htwoolentor-faq-head{
526
+ {$headActiveBGColor}
527
+ }
528
+ .{$uniqClass} .is-active .htwoolentor-faq-head-text{
529
+ {$titleActiveColor}
530
+ }
531
+ .{$uniqClass} .is-active .htwoolentor-faq-head-indicator:before,.{$uniqClass} .is-active .htwoolentor-faq-head-indicator:after{
532
+ {$iconActiveColor}
533
+ }
534
+
535
+ ";
536
+
537
+ break;
538
+
539
+ case 'woolentor/product-curvy':
540
+
541
+ $itemSpace = isset( $block['attrs']['itemSpace'] ) ? $block['attrs']['itemSpace'] : 15;
542
+ $itemMarginBottom = isset( $block['attrs']['itemMarginBottom'] ) ? $block['attrs']['itemMarginBottom'] : 15;
543
+
544
+ $areaMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'areaMargin', 'margin' );
545
+ $areaPadding = woolentorBlocks_Dimention_Control( $block['attrs'], 'areaPadding', 'padding' );
546
+ $backgroundImage = woolentorBlocks_Background_Control( $block['attrs'], 'areaBGProperty' );
547
+
548
+ $itemAreaBGColor = woolentorBlocks_generate_css( $block['attrs'], 'itemAreaBGColor', 'background-color' );
549
+
550
+ $titleSize = woolentorBlocks_generate_css( $block['attrs'], 'titleSize', 'font-size', '!important' );
551
+ $titleColor = woolentorBlocks_generate_css( $block['attrs'], 'titleColor', 'color', '!important' );
552
+ $titleHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'titleHoverColor', 'color', '!important' );
553
+ $titleMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'titleMargin', 'margin', '!important' );
554
+
555
+ $salePriceColor = woolentorBlocks_generate_css( $block['attrs'], 'salePriceColor', 'color', '!important' );
556
+ $regulerPriceColor = woolentorBlocks_generate_css( $block['attrs'], 'regulerPriceColor', 'color', '!important' );
557
+
558
+ $cotentColor = woolentorBlocks_generate_css( $block['attrs'], 'cotentColor', 'color' );
559
+ $contentSize = woolentorBlocks_generate_css( $block['attrs'], 'contentSize', 'font-size' );
560
+ $contentMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'contentMargin', 'margin' );
561
+
562
+ $emptyRatingColor = woolentorBlocks_generate_css( $block['attrs'], 'emptyRatingColor', 'color' );
563
+ $ratingColor = woolentorBlocks_generate_css( $block['attrs'], 'ratingColor', 'color' );
564
+ $ratingMargin = woolentorBlocks_Dimention_Control( $block['attrs'], 'ratingMargin', 'margin' );
565
+
566
+ $actionBtnAreaBGColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnAreaBGColor', 'background-color', '!important' );
567
+ $actionBtnColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnColor', 'color', '!important' );
568
+ $actionBtnBGColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnBGColor', 'background-color', '!important' );
569
+ $actionBtnHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnHoverColor', 'color', '!important' );
570
+ $actionBtnBgHoverColor = woolentorBlocks_generate_css( $block['attrs'], 'actionBtnBgHoverColor', 'background-color', '!important' );
571
+ $actionBtnBorderRadius = woolentorBlocks_Dimention_Control( $block['attrs'], 'actionBtnBorderRadius', 'border-radius', '!important' );
572
+
573
+ $imageBorderColor = woolentorBlocks_generate_css( $block['attrs'], 'imageBorderColor', 'border-color', '!important' );
574
+
575
+ $blocks_css .= "
576
+ .{$uniqClass} {
577
+ {$areaMargin}
578
+ {$areaPadding}
579
+ {$backgroundImage}
580
+ }
581
+ .{$uniqClass} .woolentor-row:not(.wlno-gutters) > [class*='woolentor-col-']{
582
+ padding: 0 {$itemSpace}px;
583
+ margin-bottom: {$itemMarginBottom}px;
584
+ }
585
+
586
+ .{$uniqClass} .wl_single-product-item, .{$uniqClass} .wl_single-product-item.wl_dark-item .product-content{
587
+ {$itemAreaBGColor}
588
+ }
589
+ .{$uniqClass} .product-content .product-content-top .title{
590
+ {$titleSize}
591
+ {$titleMargin}
592
+ }
593
+ .{$uniqClass} .product-content .product-content-top .title a{
594
+ {$titleColor}
595
+ }
596
+ .{$uniqClass} .product-content .product-content-top .title a:hover{
597
+ {$titleHoverColor}
598
+ }
599
+
600
+ .{$uniqClass} .product-content .product-content-top .product-price{
601
+ {$salePriceColor}
602
+ }
603
+ .{$uniqClass} .product-content .product-content-top .product-price del{
604
+ {$regulerPriceColor}
605
+ }
606
+
607
+ .{$uniqClass} .product-content .product-content-top p{
608
+ {$cotentColor}
609
+ {$contentSize}
610
+ {$contentMargin}
611
+ }
612
+
613
+ .{$uniqClass} .product-content .product-content-top .star-rating,.{$uniqClass} .product-content .product-content-top .star-rating::before{
614
+ {$emptyRatingColor}
615
+ }
616
+ .{$uniqClass} .product-content .product-content-top .star-rating span{
617
+ {$ratingColor}
618
+ }
619
+ .{$uniqClass} .product-content .product-content-top .star-rating{
620
+ {$ratingMargin}
621
+ }
622
+
623
+ .{$uniqClass} .product-content .action{
624
+ {$actionBtnAreaBGColor}
625
+ }
626
+ .{$uniqClass} .product-content .action li a,.{$uniqClass} .product-content .action li .woolentor-compare.compare::before{
627
+ {$actionBtnColor}
628
+ }
629
+ .{$uniqClass} .product-content .action li a{
630
+ {$actionBtnBGColor}
631
+ {$actionBtnBorderRadius}
632
+ }
633
+ .{$uniqClass} .product-content .action li a:hover,.{$uniqClass} .product-content .action li .woolentor-compare.compare:hover::before{
634
+ {$actionBtnHoverColor}
635
+ }
636
+ .{$uniqClass} .product-content .action li a:hover{
637
+ {$actionBtnBgHoverColor}
638
+ }
639
+ .{$uniqClass} .product-thumbnail{
640
+ {$imageBorderColor}
641
+ }
642
+
643
+ ";
644
+ break;
645
+
646
+ default:
647
+ break;
648
+
649
+ }
650
+
651
+ }
652
+
653
+ }
654
+
655
+ if( $blocks_css ) {
656
+ echo '<style type="text/css">'.$blocks_css.'</style>';
657
+ }
658
 
659
  }
660
 
woolentor-blocks/includes/helper-functions.php CHANGED
@@ -29,7 +29,7 @@ function woolentorBlocks_Dimention_Control( $settings, $attribute, $css_attr, $i
29
  $left = ( $dimensions['left'] !== '' ) ? $dimensions['left'].$unit : null;
30
  $css_dimension = ( ($top != null) || ($right !=null) || ($bottom != null) || ($left != '') ) ? ( $css_attr.":{$top} {$right} {$bottom} {$left};" ) : '';
31
 
32
- return $css_dimension;
33
 
34
  }else{
35
  return false;
@@ -66,6 +66,82 @@ function woolentorBlocks_Background_Control( $settings, $attribute ){
66
 
67
  }
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  /**
70
  * Get Category data
71
  */
@@ -95,6 +171,7 @@ function woolentorBlocks_taxnomy_data( $taxnomySlug = '', $number = 20, $order =
95
  $image_src = $thumbnail_id ? wp_get_attachment_url( $thumbnail_id ) : '';
96
  $tempData['link'] = get_term_link( $terms );
97
  $tempData['name'] = $terms->name;
 
98
  $tempData['desc'] = $terms->description;
99
  $tempData['count'] = $terms->count;
100
  $tempData['image'] = [
@@ -109,4 +186,141 @@ function woolentorBlocks_taxnomy_data( $taxnomySlug = '', $number = 20, $order =
109
 
110
  return $data;
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
29
  $left = ( $dimensions['left'] !== '' ) ? $dimensions['left'].$unit : null;
30
  $css_dimension = ( ($top != null) || ($right !=null) || ($bottom != null) || ($left != '') ) ? ( $css_attr.":{$top} {$right} {$bottom} {$left};" ) : '';
31
 
32
+ return $css_dimension."{$important};";
33
 
34
  }else{
35
  return false;
66
 
67
  }
68
 
69
+ /**
70
+ * Check Gutenberg editor page
71
+ */
72
+ function woolentorBlocks_is_gutenberg_page() {
73
+
74
+ if ( !function_exists( 'get_current_screen' ) ) {
75
+ require_once( ABSPATH . 'wp-admin/includes/screen.php' );
76
+ }
77
+
78
+ // Gutenberg plugin is enable.
79
+ if ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
80
+ return true;
81
+ }
82
+
83
+ // Gutenberg editor page
84
+ $current_screen = get_current_screen();
85
+ if ( $current_screen !== NULL && method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
86
+ return true;
87
+ }
88
+
89
+ return false;
90
+
91
+ }
92
+
93
+ /**
94
+ * current page blocks
95
+ */
96
+ function woolentorBlocks_check_inner_blocks( $block ) {
97
+ static $currentBlocks = [];
98
+
99
+ $current = $block;
100
+
101
+ if( $block['blockName'] == 'core/block' ) { //reusable block
102
+ $current = parse_blocks( get_post_field( 'post_content', $block['attrs']['ref'] ) )[0];
103
+ }
104
+
105
+ if( $current['blockName'] != '' ) {
106
+ array_push( $currentBlocks, $current );
107
+ if( count( $current['innerBlocks'] ) > 0 ){
108
+ foreach( $current['innerBlocks'] as $innerBlock ) {
109
+ woolentorBlocks_check_inner_blocks( $innerBlock );
110
+ }
111
+ }
112
+ }
113
+ return $currentBlocks;
114
+ }
115
+
116
+ /**
117
+ * Get All Current page blocks
118
+ */
119
+ function woolentorBlocks_get_blocks(){
120
+ $get_blocks = [];
121
+
122
+ $posts_array = get_post();
123
+ if( $posts_array ){
124
+ foreach( parse_blocks( $posts_array->post_content ) as $block){
125
+ $get_blocks = woolentorBlocks_check_inner_blocks( $block );
126
+ }
127
+ }
128
+
129
+ return $get_blocks;
130
+
131
+ }
132
+
133
+ /**
134
+ * Get Image Sizes
135
+ */
136
+ function woolentorBlocks_get_image_size() {
137
+ $sizes = get_intermediate_image_sizes();
138
+ $filter = array('full' => 'Full');
139
+ foreach ( $sizes as $value ) {
140
+ $filter[$value] = ucwords( str_replace( array('_', '-'), array(' ', ' '), $value ) );
141
+ }
142
+ return $filter;
143
+ }
144
+
145
  /**
146
  * Get Category data
147
  */
171
  $image_src = $thumbnail_id ? wp_get_attachment_url( $thumbnail_id ) : '';
172
  $tempData['link'] = get_term_link( $terms );
173
  $tempData['name'] = $terms->name;
174
+ $tempData['slug'] = $terms->slug;
175
  $tempData['desc'] = $terms->description;
176
  $tempData['count'] = $terms->count;
177
  $tempData['image'] = [
186
 
187
  return $data;
188
 
189
+ }
190
+
191
+ function woolentorBlocks_Product_Query( $params ){
192
+
193
+ $meta_query = $tax_query = array();
194
+
195
+ $query_args = array(
196
+ 'post_type' => 'product',
197
+ 'post_status' => 'publish',
198
+ 'posts_per_page' => isset( $params['perPage'] ) ? $params['perPage'] : 4,
199
+ 'order' => isset( $params['order'] ) ? $params['order'] : 'DESC',
200
+ 'orderby' => isset( $params['orderBy'] ) ? $params['orderBy'] : 'date',
201
+ 'paged' => isset( $params['paged'] ) ? $params['paged'] : 1,
202
+ );
203
+
204
+ // Categories wise
205
+ if( isset( $params['categories'] ) ){
206
+ $field_name = 'slug';
207
+ $tax_query[] = array(
208
+ 'taxonomy' => 'product_cat',
209
+ 'terms' => $params['categories'],
210
+ 'field' => $field_name,
211
+ 'include_children' => false
212
+ );
213
+ }
214
+
215
+ // Tag wise
216
+ if( isset( $params['tags'] ) ){
217
+ $field_name = 'slug';
218
+ $tax_query[] = array(
219
+ 'taxonomy' => 'product_tag',
220
+ 'terms' => $params['tags'],
221
+ 'field' => $field_name,
222
+ 'include_children' => false
223
+ );
224
+ }
225
+ $query_args['tax_query'] = $tax_query;
226
+
227
+ if( isset( $params['offset'] ) && $params['offset'] && !( $query_args['paged'] > 1 ) ){
228
+ $query_args['offset'] = isset( $params['offset'] ) ? $params['offset'] : 0;
229
+ }
230
+
231
+ if( isset( $params['include'] ) && $params['include'] ){
232
+ $query_args['post__in'] = explode( ',', $params['include'] );
233
+ }
234
+
235
+ if( isset( $params['exclude'] ) && $params['exclude'] ){
236
+ $query_args['post__not_in'] = explode( ',', $params['exclude'] );
237
+ }
238
+
239
+ if( isset( $params['filterBy'] ) ){
240
+
241
+ switch ( $params['filterBy'] ) {
242
+
243
+ case 'featured':
244
+ $query_args['post__in'] = wc_get_featured_product_ids();
245
+ break;
246
+
247
+ case 'best_selling':
248
+ $query_args['meta_key'] = 'total_sales';
249
+ $query_args['orderby'] = 'meta_value_num';
250
+ $query_args['order'] = 'desc';
251
+ break;
252
+
253
+ case 'sale':
254
+ $query_args['post__in'] = array_merge( array( 0 ), wc_get_product_ids_on_sale() );
255
+ break;
256
+
257
+ case 'top_rated':
258
+ $query_args['meta_key'] = '_wc_average_rating';
259
+ $query_args['orderby'] = 'meta_value_num';
260
+ $query_args['order'] = 'desc';
261
+ break;
262
+
263
+ case 'mixed_order':
264
+ $query_args['orderby'] = 'rand';
265
+ break;
266
+
267
+ default: /* Recent */
268
+ $query_args['orderby'] = 'date';
269
+ $query_args['order'] = 'desc';
270
+ break;
271
+
272
+ }
273
+
274
+ }
275
+
276
+ /**
277
+ * Custom Order
278
+ */
279
+ if( isset( $params['orderBy'] ) && 'none' != $params['orderBy'] ){
280
+ $query_args['orderby'] = $params['orderBy'];
281
+ }
282
+ if( isset( $params['order'] ) ){
283
+ $query_args['order'] = $params['order'];
284
+ }
285
+
286
+ $query_args['wpnonce'] = wp_create_nonce( 'woolentorblock-nonce' );
287
+
288
+ return $query_args;
289
+ }
290
+
291
+ function woolentorBlocks_compare_button( $button_arg = array() ){
292
+
293
+ global $product;
294
+ $product_id = $product->get_id();
295
+
296
+ $output = '';
297
+
298
+ $button_style = !empty( $button_arg['style'] ) ? $button_arg['style'] : 1;
299
+
300
+ if( class_exists('Ever_Compare') ){
301
+
302
+ $button_title = !empty( $button_arg['title'] ) ? $button_arg['title'] : esc_html__('Add to Compare','woolentor');
303
+ $button_text = !empty( $button_arg['btn_text'] ) ? $button_arg['btn_text'] : esc_html__('Add to Compare','woolentor');
304
+ $button_added_text = !empty( $button_arg['btn_added_txt'] ) ? $button_arg['btn_added_txt'] : esc_html__( 'Product Added','woolentor' );
305
+
306
+ $comp_link = \EverCompare\Frontend\Manage_Compare::instance()->get_compare_page_url();
307
+ $output = '<a title="'.esc_attr( $button_title ).'" href="'.esc_url( $comp_link ).'" class="htcompare-btn woolentor-compare" data-added-text="'.esc_attr( $button_added_text ).'" data-product_id="'.esc_attr( $product_id ).'">'.$button_text.'</a>';
308
+ return $output;
309
+
310
+ }elseif( class_exists('YITH_Woocompare') ){
311
+ $comp_link = home_url() . '?action=yith-woocompare-add-product';
312
+ $comp_link = add_query_arg('id', $product_id, $comp_link);
313
+
314
+ if( $button_style == 1 ){
315
+ if( class_exists('YITH_Woocompare_Frontend') ){
316
+ $output = do_shortcode('[yith_compare_button]');
317
+ }
318
+ }else{
319
+ $output = '<a title="'. esc_attr__('Add to Compare', 'woolentor') .'" href="'. esc_url( $comp_link ) .'" class="woolentor-compare compare" data-product_id="'. esc_attr( $product_id ) .'" rel="nofollow">'.esc_html__( 'Compare', 'woolentor' ).'</a>';
320
+ }
321
+ return $output;
322
+ }else{
323
+ return 0;
324
+ }
325
+
326
  }
woolentor-blocks/src/assets/css/editor-style.css CHANGED
@@ -2,12 +2,18 @@
2
  background-color: inherit;
3
  border-radius: 20px;
4
  }
 
 
 
 
 
 
 
5
  .woolentor-alignment-btn-group{
6
  justify-content: start;
7
  align-items: center;
8
  display: flex;
9
  }
10
-
11
  .woolentor-alignment-btn-group button:focus{
12
  box-shadow: none !important;
13
  }
@@ -41,6 +47,10 @@ span.woolentor-reset-btn:hover{
41
  margin-bottom: 0;
42
  }
43
 
 
 
 
 
44
  /* Category grid */
45
  .wp-block-woolentor-category-grid .components-spinner{
46
  margin: 0 auto;
@@ -54,6 +64,15 @@ span.woolentor-reset-btn:hover{
54
  .product-slider .slick-dots{
55
  display: flex !important;
56
  }
 
 
 
 
 
 
 
 
 
57
  /* Section Title */
58
  h2.woolentor-blocks-section-title {
59
  margin: 0;
@@ -67,6 +86,52 @@ h2.woolentor-blocks-section-title {
67
  background-color: #eee;
68
  }
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  /* Dimensions control */
71
  .wp-block-selector-woolentor-dimensions-control{
72
  margin: 15px 0;
2
  background-color: inherit;
3
  border-radius: 20px;
4
  }
5
+ [class*="wlb-marker-style-"] .wlb_image_pointer .wlb_pointer_box h4{
6
+ margin-top: 0;
7
+ }
8
+ .wlspcial-banner .banner-content h5{
9
+ margin: 0;
10
+ }
11
+
12
  .woolentor-alignment-btn-group{
13
  justify-content: start;
14
  align-items: center;
15
  display: flex;
16
  }
 
17
  .woolentor-alignment-btn-group button:focus{
18
  box-shadow: none !important;
19
  }
47
  margin-bottom: 0;
48
  }
49
 
50
+ .wp-block-woolentor-product-curvy .wl_single-product-item.wl_left-item .product-thumbnail{
51
+ width: 267px;
52
+ }
53
+
54
  /* Category grid */
55
  .wp-block-woolentor-category-grid .components-spinner{
56
  margin: 0 auto;
64
  .product-slider .slick-dots{
65
  display: flex !important;
66
  }
67
+
68
+ /*Product tab*/
69
+ .wp-block-woolentor-product-tab .ht-product-action-tooltip{
70
+ display: none;
71
+ }
72
+ .wp-block-woolentor-product-tab .wishlist i{
73
+ font-style: normal;
74
+ }
75
+
76
  /* Section Title */
77
  h2.woolentor-blocks-section-title {
78
  margin: 0;
86
  background-color: #eee;
87
  }
88
 
89
+ /* Tabs Menu */
90
+ .woolentor-tabs-menu-btn-group {
91
+ display: flex;
92
+ }
93
+ .woolentor-tab-menu-item {
94
+ border: 0 !important;
95
+ outline: none !important;
96
+ padding: 12px 10px !important;
97
+ height: auto !important;
98
+ border-radius: 0 !important;
99
+ box-shadow: none !important;
100
+ color: #222222 !important;
101
+ }
102
+ .woolentor-tab-menu-item.woolentor-tab-menu-active{
103
+ color: #ffffff !important;
104
+ }
105
+ .woolentor-tabs-menu-btn-group .components-button.has-icon.has-text .dashicon {
106
+ margin-right: 5px;
107
+ height: 18px;
108
+ }
109
+ .woolentor-tabs-menu-btn-group .components-button-group .components-button{
110
+ border-radius: 0;
111
+ }
112
+ .woolentor-tabs-menu-btn-group .components-button-group .components-button,.woolentor-tabs-menu-btn-group .components-button:focus {
113
+ box-shadow: none !important;
114
+ }
115
+
116
+ button.components-button.woolentor-elements-tab-menu-item {
117
+ flex: 0 0 50%;
118
+ justify-content: center;
119
+ box-shadow: inset 0 0 0 1px #d5dadf;
120
+ color: #222222 !important;
121
+ }
122
+ button.components-button.woolentor-elements-tab-menu-item:hover{
123
+ box-shadow: inset 0 0 0 1px #d5dadf !important;
124
+ }
125
+ button.components-button.woolentor-elements-tab-menu-item.tab-menu-active{
126
+ background-color: #a4afb7 !important;
127
+ color: #ffffff !important;
128
+ box-shadow: inset 0 0 0 1px #a4afb7 !important;
129
+ }
130
+ .woolentor-element-tab-content {
131
+ padding-top: 15px;
132
+ }
133
+
134
+
135
  /* Dimensions control */
136
  .wp-block-selector-woolentor-dimensions-control{
137
  margin: 15px 0;
woolentor-blocks/src/assets/css/style-index.css CHANGED
@@ -6,6 +6,10 @@
6
  margin-bottom: 0;
7
  }
8
 
 
 
 
 
9
  .woolentor-text-align-left{
10
  text-align: left !important;
11
  }
@@ -19,7 +23,6 @@
19
  text-decoration: none !important;
20
  }
21
 
22
-
23
  /* Alignment support */
24
  [class*="woolentor"].alignfull {
25
  margin-left: calc(-50vw + 50%);
@@ -76,15 +79,219 @@
76
  margin-right: -1em;
77
  }
78
  }
79
-
80
  [class*="woolentor"].alignwide {
81
  margin-left: -20px;
82
  margin-right: -20px;
83
  }
84
-
85
  .wp-block-column [class*="woolentor"].alignfull,
86
  .wp-block-column [class*="woolentor"].alignwide {
87
  margin-left: auto;
88
  margin-right: auto;
89
  width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
6
  margin-bottom: 0;
7
  }
8
 
9
+ [class*="woolentor-"] i{
10
+ font-style: normal;
11
+ }
12
+
13
  .woolentor-text-align-left{
14
  text-align: left !important;
15
  }
23
  text-decoration: none !important;
24
  }
25
 
 
26
  /* Alignment support */
27
  [class*="woolentor"].alignfull {
28
  margin-left: calc(-50vw + 50%);
79
  margin-right: -1em;
80
  }
81
  }
 
82
  [class*="woolentor"].alignwide {
83
  margin-left: -20px;
84
  margin-right: -20px;
85
  }
 
86
  .wp-block-column [class*="woolentor"].alignfull,
87
  .wp-block-column [class*="woolentor"].alignwide {
88
  margin-left: auto;
89
  margin-right: auto;
90
  width: 100%;
91
+ }
92
+
93
+ /* Column Style */
94
+ .woolentor-row{
95
+ display: -ms-flexbox;
96
+ display: -webkit-box;
97
+ display: -webkit-flex;
98
+ display: flex;
99
+ -ms-flex-wrap: wrap;
100
+ -webkit-flex-wrap: wrap;
101
+ flex-wrap: wrap;
102
+ margin-right: -15px;
103
+ margin-left: -15px;
104
+ }
105
+ .woolentor-row.wlno-gutters{
106
+ margin-right: 0;
107
+ margin-left: 0;
108
+ }
109
+ .woolentor-row > [class*="woolentor-col-"] {
110
+ min-height: 1px;
111
+ position: relative;
112
+ width: 100%;
113
+ padding-right: 15px;
114
+ padding-left: 15px;
115
+ }
116
+ .woolentor-row.wlno-gutters > [class*="woolentor-col-"] {
117
+ padding-right: 0;
118
+ padding-left: 0;
119
+ }
120
+ .woolentor-columns-1 .woolentor-row > [class*="woolentor-col-"]{
121
+ -webkit-box-flex: 0;
122
+ -webkit-flex: 0 0 100%;
123
+ -ms-flex: 0 0 100%;
124
+ flex: 0 0 100%;
125
+ max-width: 100%;
126
+ }
127
+ .woolentor-columns-2 .woolentor-row > [class*="woolentor-col-"]{
128
+ -webkit-box-flex: 0;
129
+ -webkit-flex: 0 0 50%;
130
+ -ms-flex: 0 0 50%;
131
+ flex: 0 0 50%;
132
+ max-width: 50%;
133
+ }
134
+ .woolentor-columns-3 .woolentor-row > [class*="woolentor-col-"]{
135
+ -webkit-box-flex: 0;
136
+ -webkit-flex: 0 0 33.333%;
137
+ -ms-flex: 0 0 33.333%;
138
+ flex: 0 0 33.333%;
139
+ max-width: 33.333%;
140
+ }
141
+ .woolentor-columns-4 .woolentor-row > [class*="woolentor-col-"]{
142
+ -webkit-box-flex: 0;
143
+ -webkit-flex: 0 0 25%;
144
+ -ms-flex: 0 0 25%;
145
+ flex: 0 0 25%;
146
+ max-width: 25%;
147
+ }
148
+ .woolentor-columns-5 .woolentor-row > [class*="woolentor-col-"]{
149
+ -webkit-box-flex: 0;
150
+ -webkit-flex: 0 0 20%;
151
+ -ms-flex: 0 0 20%;
152
+ flex: 0 0 20%;
153
+ max-width: 20%;
154
+ }
155
+ .woolentor-columns-6 .woolentor-row > [class*="woolentor-col-"]{
156
+ -webkit-box-flex: 0;
157
+ -webkit-flex: 0 0 16.666%;
158
+ -ms-flex: 0 0 16.666%;
159
+ flex: 0 0 16.666%;
160
+ max-width: 16.666%;
161
+ }
162
+ .woolentor-columns-7 .woolentor-row > [class*="woolentor-col-"]{
163
+ -webkit-box-flex: 0;
164
+ -webkit-flex: 0 0 14.285%;
165
+ -ms-flex: 0 0 14.285%;
166
+ flex: 0 0 14.285%;
167
+ max-width: 14.285%;
168
+ }
169
+ .woolentor-columns-8 .woolentor-row > [class*="woolentor-col-"]{
170
+ -webkit-box-flex: 0;
171
+ -webkit-flex: 0 0 12.5%;
172
+ -ms-flex: 0 0 12.5%;
173
+ flex: 0 0 12.5%;
174
+ max-width: 12.5%;
175
+ }
176
+ .woolentor-columns-9 .woolentor-row > [class*="woolentor-col-"]{
177
+ -webkit-box-flex: 0;
178
+ -webkit-flex: 0 0 11.111%;
179
+ -ms-flex: 0 0 11.111%;
180
+ flex: 0 0 11.111%;
181
+ max-width: 11.111%;
182
+ }
183
+ .woolentor-columns-10 .woolentor-row > [class*="woolentor-col-"]{
184
+ -webkit-box-flex: 0;
185
+ -webkit-flex: 0 0 10%;
186
+ -ms-flex: 0 0 10%;
187
+ flex: 0 0 10%;
188
+ max-width: 10%;
189
+ }
190
+
191
+ /* Product Slider Control */
192
+ .woolentor-row .product-slider [class*="woolentor-col-"] {
193
+ width: 100%;
194
+ padding-right: 15px;
195
+ padding-left: 15px;
196
+ }
197
+ .product-slider .slick-arrow {
198
+ background: transparent none repeat scroll 0 0;
199
+ border: 2px solid #ddd;
200
+ color: #ddd;
201
+ font-size: 20px;
202
+ height: 40px;
203
+ left: -30px;
204
+ line-height: inherit;
205
+ padding: 0;
206
+ position: absolute;
207
+ top: 50%;
208
+ transform: translateY(-50%);
209
+ width: 40px;
210
+ z-index: 99;
211
+ transition: 0.4s;
212
+ }
213
+ .product-slider .slick-arrow.slick-next{
214
+ right: -30px;
215
+ left: auto;
216
+ }
217
+ .product-slider .slick-arrow:hover{
218
+ border-color: #333;
219
+ color: #333;
220
+ }
221
+ .product-slider .slick-dots {
222
+ bottom: 0px;
223
+ display: flex;
224
+ left: 50%;
225
+ list-style: outside none none;
226
+ margin: 0;
227
+ padding: 0;
228
+ position: absolute;
229
+ transform: translateX(-50%);
230
+ }
231
+ .product-slider .slick-dots li {
232
+ line-height: 12px;
233
+ margin: 0 4px;
234
+ }
235
+ .product-slider .slick-dots li button {
236
+ background-color: transparent;
237
+ border: 1px solid #4e4f4f;
238
+ border-radius: 50px;
239
+ height: 13px;
240
+ padding: 0;
241
+ text-indent: -9999px;
242
+ width: 13px;
243
+ line-height: 13px;
244
+ }
245
+ .product-slider .slick-dots li.slick-active button {
246
+ background-color: #282828;
247
+ border-color: #282828;
248
+ }
249
+
250
+ /* Normal :1366px. */
251
+ @media (min-width: 1200px) and (max-width: 1400px) {
252
+
253
+ }
254
+
255
+ /* Normal desktop :992px. */
256
+ @media (min-width: 992px) and (max-width: 1200px) {
257
+
258
+ }
259
+
260
+ /* Tablet desktop :768px. */
261
+ @media (min-width: 768px) and (max-width: 991px) {
262
+
263
+ [class*="woolentor-columns-"] .woolentor-row > [class*="woolentor-col-"]{
264
+ -webkit-box-flex: 0;
265
+ -webkit-flex: 0 0 33.333%;
266
+ -ms-flex: 0 0 33.333%;
267
+ flex: 0 0 33.333%;
268
+ max-width: 33.333%;
269
+ }
270
+
271
+ }
272
+
273
+ /* small mobile :320px. */
274
+ @media (max-width: 767px) {
275
+
276
+ [class*="woolentor-columns-"] .woolentor-row > [class*="woolentor-col-"]{
277
+ -webkit-box-flex: 0;
278
+ -webkit-flex: 0 0 100%;
279
+ -ms-flex: 0 0 100%;
280
+ flex: 0 0 100%;
281
+ max-width: 100%;
282
+ }
283
+
284
+ }
285
+
286
+ /* Large Mobile :480px. */
287
+ @media only screen and (min-width: 480px) and (max-width: 767px) {
288
+
289
+ [class*="woolentor-columns-"] .woolentor-row > [class*="woolentor-col-"]{
290
+ -webkit-box-flex: 0;
291
+ -webkit-flex: 0 0 50%;
292
+ -ms-flex: 0 0 50%;
293
+ flex: 0 0 50%;
294
+ max-width: 50%;
295
+ }
296
+
297
  }
woolentor-blocks/src/assets/images/banner-image.svg ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve" class="woolentor-banner-default">
5
+ <g>
6
+ <g>
7
+ <path d="M446.575,0H65.425C29.349,0,0,29.35,0,65.426v381.149C0,482.65,29.349,512,65.425,512h381.15
8
+ C482.651,512,512,482.65,512,446.574V65.426C512,29.35,482.651,0,446.575,0z M481.842,446.575
9
+ c0,19.447-15.821,35.267-35.267,35.267H65.425c-19.447,0-35.268-15.821-35.268-35.267v-55.007l99.255-84.451
10
+ c3.622-3.082,8.906-3.111,12.562-0.075l62.174,51.628c5.995,4.977,14.795,4.569,20.304-0.946L372.181,209.77
11
+ c2.67-2.675,5.783-2.935,7.408-2.852c1.62,0.083,4.695,0.661,7.078,3.596l95.176,117.19V446.575z M481.842,279.865l-71.766-88.366
12
+ c-7.117-8.764-17.666-14.122-28.942-14.701c-11.268-0.57-22.317,3.672-30.294,11.662L212.832,326.681l-51.59-42.839
13
+ c-14.959-12.422-36.563-12.293-51.373,0.308l-79.712,67.822V65.426c0-19.447,15.821-35.268,35.268-35.268h381.15
14
+ c19.447,0,35.267,15.821,35.267,35.268V279.865z"/>
15
+ </g>
16
+ </g>
17
+ <g>
18
+ <g>
19
+ <path d="M161.174,62.995c-40.095,0-72.713,32.62-72.713,72.713c0,40.094,32.619,72.713,72.713,72.713s72.713-32.619,72.713-72.713
20
+ S201.269,62.995,161.174,62.995z M161.174,178.264c-23.466,0-42.556-19.091-42.556-42.556c0-23.466,19.09-42.556,42.556-42.556
21
+ c23.466,0,42.556,19.091,42.556,42.556S184.64,178.264,161.174,178.264z"/>
22
+ </g>
23
+ </g>
24
+ <g>
25
+ </g>
26
+ <g>
27
+ </g>
28
+ <g>
29
+ </g>
30
+ <g>
31
+ </g>
32
+ <g>
33
+ </g>
34
+ <g>
35
+ </g>
36
+ <g>
37
+ </g>
38
+ <g>
39
+ </g>
40
+ <g>
41
+ </g>
42
+ <g>
43
+ </g>
44
+ <g>
45
+ </g>
46
+ <g>
47
+ </g>
48
+ <g>
49
+ </g>
50
+ <g>
51
+ </g>
52
+ <g>
53
+ </g>
54
+ </svg>
woolentor-blocks/src/assets/js/script.js CHANGED
@@ -1,83 +1,128 @@
1
- ( function( $, window ) {
2
- 'use strict';
3
-
4
- function woolentor_tabs( $tabmenus, $tabpane ){
5
- $tabmenus.on('click', 'a', function(e){
6
- e.preventDefault();
7
- var $this = $(this),
8
- $target = $this.attr('href');
9
- $this.addClass('htactive').parent().siblings().children('a').removeClass('htactive');
10
- $( $tabpane + $target ).addClass('htactive').siblings().removeClass('htactive');
11
-
12
- // slick refresh
13
- if( $('.slick-slider').length > 0 ){
14
- var $id = $this.attr('href');
15
- $( $id ).find('.slick-slider').slick('refresh');
16
- }
17
 
18
- });
19
- }
20
- woolentor_tabs( $(".ht-tab-menus"),'.ht-tab-pane' );
21
-
22
- var initializeProductSlider = function( $block ) {
23
-
24
- var settings = $($block).data('settings');
25
- var arrows = settings['arrows'];
26
- var dots = settings['dots'];
27
- var autoplay = settings['autoplay'];
28
- var rtl = settings['rtl'];
29
- var autoplay_speed = parseInt(settings['autoplay_speed']) || 3000;
30
- var animation_speed = parseInt(settings['animation_speed']) || 300;
31
- var fade = false;
32
- var pause_on_hover = settings['pause_on_hover'];
33
- var display_columns = parseInt(settings['product_items']) || 4;
34
- var scroll_columns = parseInt(settings['scroll_columns']) || 4;
35
- var tablet_width = parseInt(settings['tablet_width']) || 800;
36
- var tablet_display_columns = parseInt(settings['tablet_display_columns']) || 2;
37
- var tablet_scroll_columns = parseInt(settings['tablet_scroll_columns']) || 2;
38
- var mobile_width = parseInt(settings['mobile_width']) || 480;
39
- var mobile_display_columns = parseInt(settings['mobile_display_columns']) || 1;
40
- var mobile_scroll_columns = parseInt(settings['mobile_scroll_columns']) || 1;
41
-
42
- $($block).slick({
43
- arrows: arrows,
44
- prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>',
45
- nextArrow: '<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>',
46
- dots: dots,
47
- infinite: true,
48
- autoplay: autoplay,
49
- autoplaySpeed: autoplay_speed,
50
- speed: animation_speed,
51
- fade: fade,
52
- pauseOnHover: pause_on_hover,
53
- slidesToShow: display_columns,
54
- slidesToScroll: scroll_columns,
55
- rtl: rtl,
56
- responsive: [
57
- {
58
- breakpoint: tablet_width,
59
- settings: {
60
- slidesToShow: tablet_display_columns,
61
- slidesToScroll: tablet_scroll_columns
62
- }
63
- },
64
- {
65
- breakpoint: mobile_width,
66
- settings: {
67
- slidesToShow: mobile_display_columns,
68
- slidesToScroll: mobile_scroll_columns
69
- }
70
  }
71
- ]
72
- });
 
 
73
 
74
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
- $(document).ready(function(){
77
- $('.product-slider').each(function(){
78
- initializeProductSlider( $(this) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  });
80
- });
81
 
 
 
 
 
 
82
 
83
- } )( jQuery, window );
1
+ ;(function( $, window ){
2
+ "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ var WooLentorBlocks = {
5
+
6
+ /**
7
+ * [init]
8
+ * @return {[void]} Initial Function
9
+ */
10
+ init: function(){
11
+ this.TabsMenu( $(".ht-tab-menus"), '.ht-tab-pane' );
12
+ },
13
+
14
+ /**
15
+ * [TabsMenu] Active first menu item
16
+ */
17
+ TabsMenu: function( $tabmenus, $tabpane ){
18
+
19
+ $tabmenus.on('click', 'a', function(e){
20
+ e.preventDefault();
21
+ var $this = $(this),
22
+ $target = $this.attr('href');
23
+ $this.addClass('htactive').parent().siblings().children('a').removeClass('htactive');
24
+ $( $tabpane + $target ).addClass('htactive').siblings().removeClass('htactive');
25
+
26
+ // slick refresh
27
+ if( $('.slick-slider').length > 0 ){
28
+ var $id = $this.attr('href');
29
+ $( $id ).find('.slick-slider').slick('refresh');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
+
32
+ });
33
+
34
+ },
35
 
36
+ /**
37
+ * Slick Slider
38
+ */
39
+ initSlickSlider: function( $block ){
40
+
41
+ var settings = $($block).data('settings');
42
+ var arrows = settings['arrows'];
43
+ var dots = settings['dots'];
44
+ var autoplay = settings['autoplay'];
45
+ var rtl = settings['rtl'];
46
+ var autoplay_speed = parseInt(settings['autoplay_speed']) || 3000;
47
+ var animation_speed = parseInt(settings['animation_speed']) || 300;
48
+ var fade = false;
49
+ var pause_on_hover = settings['pause_on_hover'];
50
+ var display_columns = parseInt(settings['product_items']) || 4;
51
+ var scroll_columns = parseInt(settings['scroll_columns']) || 4;
52
+ var tablet_width = parseInt(settings['tablet_width']) || 800;
53
+ var tablet_display_columns = parseInt(settings['tablet_display_columns']) || 2;
54
+ var tablet_scroll_columns = parseInt(settings['tablet_scroll_columns']) || 2;
55
+ var mobile_width = parseInt(settings['mobile_width']) || 480;
56
+ var mobile_display_columns = parseInt(settings['mobile_display_columns']) || 1;
57
+ var mobile_scroll_columns = parseInt(settings['mobile_scroll_columns']) || 1;
58
+
59
+ $($block).not('.slick-initialized').slick({
60
+ arrows: arrows,
61
+ prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>',
62
+ nextArrow: '<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>',
63
+ dots: dots,
64
+ infinite: true,
65
+ autoplay: autoplay,
66
+ autoplaySpeed: autoplay_speed,
67
+ speed: animation_speed,
68
+ fade: fade,
69
+ pauseOnHover: pause_on_hover,
70
+ slidesToShow: display_columns,
71
+ slidesToScroll: scroll_columns,
72
+ rtl: rtl,
73
+ responsive: [
74
+ {
75
+ breakpoint: tablet_width,
76
+ settings: {
77
+ slidesToShow: tablet_display_columns,
78
+ slidesToScroll: tablet_scroll_columns
79
+ }
80
+ },
81
+ {
82
+ breakpoint: mobile_width,
83
+ settings: {
84
+ slidesToShow: mobile_display_columns,
85
+ slidesToScroll: mobile_scroll_columns
86
+ }
87
+ }
88
+ ]
89
+ });
90
 
91
+ },
92
+
93
+ /**
94
+ * Accordion
95
+ */
96
+ initAccordion: function( $block ){
97
+
98
+ var settings = $($block).data('settings');
99
+ if ( $block.length > 0 ) {
100
+ var $id = $block.attr('id');
101
+ new Accordion('#' + $id, {
102
+ duration: 500,
103
+ showItem: settings.showitem,
104
+ elementClass: 'htwoolentor-faq-card',
105
+ questionClass: 'htwoolentor-faq-head',
106
+ answerClass: 'htwoolentor-faq-body',
107
+ });
108
+ }
109
+
110
+ },
111
+
112
+
113
+ };
114
+
115
+ $( document ).ready( function() {
116
+ WooLentorBlocks.init();
117
+
118
+ $("[class*='woolentorblock-'] .product-slider").each(function(){
119
+ WooLentorBlocks.initSlickSlider( $(this) );
120
  });
 
121
 
122
+ $("[class*='woolentorblock-'] .htwoolentor-faq").each(function(){
123
+ WooLentorBlocks.initAccordion( $(this) );
124
+ });
125
+
126
+ });
127
 
128
+ })(jQuery, window);
woolentor-blocks/src/blocks/brand-logo/index.php CHANGED
@@ -45,10 +45,8 @@ class WooLentorBlocks_Brand_Logo{
45
  register_block_type(
46
  $metadata['name'],
47
  array(
48
- 'attributes' => $metadata['attributes'],
49
- 'render_callback' => [ $this, 'render_content' ],
50
- 'editor_style' => 'woolentor-store-feature',
51
- 'style' => 'woolentor-store-feature'
52
  )
53
  );
54
 
@@ -56,77 +54,34 @@ class WooLentorBlocks_Brand_Logo{
56
 
57
  public function render_content( $settings, $content ){
58
 
59
- $uniqClass = 'woolentor-'.$settings['blockUniqId'];
60
- $classes = array( $uniqClass, 'ht-brand-wrap' );
61
  $areaClasses = array( 'woolentor-brand-area' );
62
 
63
  !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
64
 
65
- !empty( $settings['columns'] ) ? $classes[] = 'wl-columns-'.$settings['columns'] : 'wl-columns-6';
66
 
67
  $default_img = '<img src="'.WOOLENTOR_BLOCK_URL.'/src/assets/images/brand.png'.'" alt="'.esc_html__('Brand Logo','woolentor').'">';
68
  $brands = $settings['brandLogoList'];
69
 
70
-
71
- /** Custom Styles */
72
- $singleItemAreaBorderType = woolentorBlocks_generate_css( $settings, 'singleItemAreaBorderType', 'border-style' );
73
- $singleItemAreaBorderWidth = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaBorderWidth', 'border-width' );
74
- $singleItemAreaBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaBorderRadius', 'border-radius' );
75
- $singleItemAreaMargin = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaMargin', 'margin' );
76
- $singleItemAreaPadding = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaPadding', 'padding' );
77
- $brandAlignment = woolentorBlocks_generate_css( $settings, 'brandAlignment', 'text-align' );
78
- $singleItemAreaBorderColor = woolentorBlocks_generate_css( $settings, 'singleItemAreaBorderColor', 'border-color' );
79
-
80
- $brandImageBorderType = woolentorBlocks_generate_css( $settings, 'brandImageBorderType', 'border-style' );
81
- $brandImageBorderWidth = woolentorBlocks_Dimention_Control( $settings, 'brandImageBorderWidth', 'border-width' );
82
- $brandImageBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'brandImageBorderRadius', 'border-radius' );
83
- $brandImageBorderColor = woolentorBlocks_generate_css( $settings, 'brandImageBorderColor', 'border-color' );
84
-
85
- $itemSpace = ! $settings['noGutter'] ? $settings['itemSpace'] : '0';
86
-
87
- $all_styles = "
88
- .{$uniqClass} .wl-single-brand{
89
- {$singleItemAreaBorderType}
90
- {$singleItemAreaBorderWidth}
91
- {$singleItemAreaBorderRadius}
92
- {$singleItemAreaMargin}
93
- {$singleItemAreaPadding}
94
- {$brandAlignment}
95
- {$singleItemAreaBorderColor}
96
- }
97
- .{$uniqClass} .wl-single-brand img{
98
- {$brandImageBorderType}
99
- {$brandImageBorderWidth}
100
- {$brandImageBorderRadius}
101
- {$brandImageBorderColor}
102
- }
103
- .{$uniqClass} .wl-row > [class*='col-']{
104
- padding: 0 {$itemSpace}px;
105
- }
106
- ";
107
-
108
  ob_start();
 
109
  ?>
110
- <style><?php echo $all_styles; ?></style>
111
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
112
  <div class="<?php echo implode(' ', $classes ); ?>">
113
  <?php
114
- $collumval = 'wl-col-6';
115
  if( !empty( $settings['columns'] ) ){
116
- $collumval = 'wl-col-'.$settings['columns'];
117
  }
118
 
119
  if( is_array( $brands ) ){
120
- echo '<div class="wl-row '.( $settings['noGutter'] === true ? 'wlno-gutters' : '' ).'">';
121
  foreach ( $brands as $key => $brand ) {
122
 
123
  $image = !empty( $brand['image']['id'] ) ? wp_get_attachment_image( $brand['image']['id'], 'full' ) : $default_img;
124
-
125
- if( !empty( $brand['link'] ) ){
126
- $logo = sprintf('<a href="%s" target="_blank">%s</a>',esc_url( $brand['link'] ), $image );
127
- }else{
128
- $logo = $image;
129
- }
130
 
131
  ?>
132
  <div class="<?php echo esc_attr( esc_attr( $collumval ) ); ?>">
45
  register_block_type(
46
  $metadata['name'],
47
  array(
48
+ 'attributes' => $metadata['attributes'],
49
+ 'render_callback' => [ $this, 'render_content' ]
 
 
50
  )
51
  );
52
 
54
 
55
  public function render_content( $settings, $content ){
56
 
57
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
58
+ $classes = array( $uniqClass, 'ht-brand-wrap' );
59
  $areaClasses = array( 'woolentor-brand-area' );
60
 
61
  !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
62
 
63
+ !empty( $settings['columns'] ) ? $classes[] = 'woolentor-columns-'.$settings['columns'] : 'woolentor-columns-6';
64
 
65
  $default_img = '<img src="'.WOOLENTOR_BLOCK_URL.'/src/assets/images/brand.png'.'" alt="'.esc_html__('Brand Logo','woolentor').'">';
66
  $brands = $settings['brandLogoList'];
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ob_start();
69
+
70
  ?>
 
71
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
72
  <div class="<?php echo implode(' ', $classes ); ?>">
73
  <?php
74
+ $collumval = 'woolentor-col-6';
75
  if( !empty( $settings['columns'] ) ){
76
+ $collumval = 'woolentor-col-'.$settings['columns'];
77
  }
78
 
79
  if( is_array( $brands ) ){
80
+ echo '<div class="woolentor-row '.( $settings['noGutter'] === true ? 'wlno-gutters' : '' ).'">';
81
  foreach ( $brands as $key => $brand ) {
82
 
83
  $image = !empty( $brand['image']['id'] ) ? wp_get_attachment_image( $brand['image']['id'], 'full' ) : $default_img;
84
+ $logo = !empty( $brand['link'] ) ? sprintf('<a href="%s" target="_blank">%s</a>',esc_url( $brand['link'] ), $image ) : $image;
 
 
 
 
 
85
 
86
  ?>
87
  <div class="<?php echo esc_attr( esc_attr( $collumval ) ); ?>">
woolentor-blocks/src/blocks/brand-logo/style.css ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wl-row.slick-slider{
2
+ margin-right: 0;
3
+ margin-left: 0;
4
+ }
5
+ .wl-single-brand {
6
+ text-align: center;
7
+ margin-bottom: 20px;
8
+ }
9
+ .slick-slide .wl-single-brand{
10
+ margin-bottom: 0;
11
+ }
12
+ .slick-slide .wl-single-brand img {
13
+ display: inline-block;
14
+ }
woolentor-blocks/src/blocks/category-grid/index.php CHANGED
@@ -45,11 +45,9 @@ class WooLentorBlocks_Category_Grid{
45
  register_block_type(
46
  $metadata['name'],
47
  array(
48
- 'attributes' => $metadata['attributes'],
49
  'render_callback' => [ $this, 'render_content' ],
50
- 'editor_style' => 'woolentor-category-grid',
51
- 'style' => 'woolentor-category-grid',
52
- 'script' => 'slick',
53
  )
54
  );
55
 
@@ -57,12 +55,12 @@ class WooLentorBlocks_Category_Grid{
57
 
58
  public function render_content( $settings, $content ){
59
 
60
- $uniqClass = 'woolentor-'.$settings['blockUniqId'];
61
  $areaClasses = array( $uniqClass, );
62
- $rowClasses = array( 'wl-row' );
63
 
64
  !empty( $settings['className'] ) ? $areaClasses[] = $settings['className'] : '';
65
- !empty( $settings['columns'] ) ? $areaClasses[] = 'wl-columns-'.$settings['columns'] : 'wl-columns-6';
66
  !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
67
 
68
  $settings['noGutter'] === true ? $rowClasses[] = 'wlno-gutters' : '';
@@ -73,9 +71,9 @@ class WooLentorBlocks_Category_Grid{
73
  $column = $settings['columns'];
74
  $layout = $settings['style'];
75
 
76
- $collumval = 'wl-col-1';
77
  if( $column !='' ){
78
- $collumval = 'wl-col-'.$column;
79
  }
80
 
81
  $catargs = array(
@@ -145,64 +143,8 @@ class WooLentorBlocks_Category_Grid{
145
 
146
  $counter = $bgc = 0;
147
 
148
- /** Custom Styles */
149
- $itemMarginBottom = ( $settings['itemSpace'] + $settings['itemSpace'] );
150
-
151
- // Area
152
- $areaPadding = woolentorBlocks_Dimention_Control( $settings, 'areaPadding', 'padding' );
153
- $areaBackground = woolentorBlocks_generate_css( $settings, 'areaBackgroundColor', 'background-color' );
154
-
155
- $imageBoxColor = woolentorBlocks_generate_css( $settings, 'imageBoxColor', 'border-color' );
156
- $imageMargin = woolentorBlocks_Dimention_Control( $settings, 'imageMargin', 'margin' );
157
- $imageBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'imageBorderRadius', 'border-radius' );
158
-
159
- $titleColor = woolentorBlocks_generate_css( $settings, 'titleColor', 'color' );
160
- $titleHoverColor = woolentorBlocks_generate_css( $settings, 'titleHoverColor', 'color' );
161
- $titleMargin = woolentorBlocks_Dimention_Control( $settings, 'titleMargin', 'margin' );
162
-
163
- $countColor = woolentorBlocks_generate_css( $settings, 'countColor', 'color' );
164
- $countBeforeColor = woolentorBlocks_generate_css( $settings, 'countBeforeColor', 'background-color' );
165
-
166
-
167
- $all_styles = "
168
- .{$uniqClass} .wl-row:not(.wlno-gutters) > [class*='col-']{
169
- padding: 0 {$settings['itemSpace']}px;
170
- }
171
- .{$uniqClass} .wl-row:not(.wlno-gutters) > [class*='col-'].woolentor_margin_top{
172
- margin-top: {$itemMarginBottom}px;
173
- }
174
-
175
- .{$uniqClass} [class*='ht-category-wrap']{
176
- {$areaPadding}
177
- {$areaBackground}
178
- }
179
- .{$uniqClass} .ht-category-wrap .ht-category-image a.ht-category-border::before,.{$uniqClass} .ht-category-wrap-2:hover::before,.{$uniqClass} .ht-category-wrap .ht-category-image a.ht-category-border-2::before{
180
- {$imageBoxColor}
181
- }
182
- .{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-image']{
183
- {$imageMargin}
184
- }
185
- .{$uniqClass} .ht-category-wrap .ht-category-image, {$uniqClass} .ht-category-wrap .ht-category-image a.ht-category-border::before,{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-image-']{
186
- {$imageBorderRadius}
187
- }
188
- .{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-content'] h3 a{
189
- {$titleColor}
190
- {$titleMargin}
191
- }
192
- .{$uniqClass} [class*='ht-category-wrap'] [class*='ht-category-content'] h3 a:hover{
193
- {$titleHoverColor}
194
- }
195
- .{$uniqClass} .ht-category-wrap [class*='ht-category-content'] span{
196
- {$countColor}
197
- }
198
- .{$uniqClass} .ht-category-wrap [class*='ht-category-content'] span::before{
199
- {$countBeforeColor}
200
- }
201
- ";
202
-
203
  ob_start();
204
  ?>
205
- <style><?php echo $all_styles; ?></style>
206
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
207
  <div class="<?php echo implode(' ', $rowClasses ); ?>" <?php echo $sliderOptions; ?> <?php echo esc_attr( $direction ); ?>>
208
  <?php
45
  register_block_type(
46
  $metadata['name'],
47
  array(
48
+ 'attributes' => $metadata['attributes'],
49
  'render_callback' => [ $this, 'render_content' ],
50
+ 'script' => 'slick'
 
 
51
  )
52
  );
53
 
55
 
56
  public function render_content( $settings, $content ){
57
 
58
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
59
  $areaClasses = array( $uniqClass, );
60
+ $rowClasses = array( 'woolentor-row' );
61
 
62
  !empty( $settings['className'] ) ? $areaClasses[] = $settings['className'] : '';
63
+ !empty( $settings['columns'] ) ? $areaClasses[] = 'woolentor-columns-'.$settings['columns'] : 'woolentor-columns-6';
64
  !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
65
 
66
  $settings['noGutter'] === true ? $rowClasses[] = 'wlno-gutters' : '';
71
  $column = $settings['columns'];
72
  $layout = $settings['style'];
73
 
74
+ $collumval = 'woolentor-col-1';
75
  if( $column !='' ){
76
+ $collumval = 'woolentor-col-'.$column;
77
  }
78
 
79
  $catargs = array(
143
 
144
  $counter = $bgc = 0;
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  ob_start();
147
  ?>
 
148
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
149
  <div class="<?php echo implode(' ', $rowClasses ); ?>" <?php echo $sliderOptions; ?> <?php echo esc_attr( $direction ); ?>>
150
  <?php
woolentor-blocks/src/blocks/category-grid/style.css ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [class*="ht-category-wrap"] [class*="ht-category-image-"]{
2
+ overflow: hidden;
3
+ }
4
+ .ht-category-wrap{
5
+ margin-bottom: 30px;
6
+ }
7
+ .ht-category-wrap .ht-category-image{
8
+ overflow: hidden;
9
+ margin-bottom: 20px;
10
+ }
11
+ .ht-category-wrap .ht-category-image a {
12
+ display: block;
13
+ position: relative;
14
+ }
15
+ .ht-category-wrap .ht-category-image a img {
16
+ width: 100%;
17
+ }
18
+ .ht-category-wrap .ht-category-image a.ht-category-border::before {
19
+ position: absolute;
20
+ z-index: 2;
21
+ top: 15px;
22
+ left: 15px;
23
+ width: calc(100% - 30px);
24
+ height: calc(100% - 30px);
25
+ content: "";
26
+ border: 1px solid #fff;
27
+ transition: all 0.5s ease 0s;
28
+ transform: scale(1);
29
+ }
30
+ .ht-category-wrap .ht-category-image a.ht-category-border-2::before {
31
+ position: absolute;
32
+ z-index: 2;
33
+ top: 15px;
34
+ left: 15px;
35
+ width: calc(100% - 30px);
36
+ height: calc(100% - 30px);
37
+ content: "";
38
+ border: 1px solid #fff;
39
+ transition: all 0.5s ease 0s;
40
+ transform: scale(0.9);
41
+ opacity: 0;
42
+ visibility: hidden;
43
+ }
44
+ .ht-category-wrap .ht-category-image-3 {
45
+ border-radius: 100%;
46
+ border: 1px solid #e1e1e1;
47
+ transition: all 0.3s ease 0s;
48
+ margin-bottom: 20px;
49
+ }
50
+ .ht-category-wrap .ht-category-image-3 a img {
51
+ width: 100%;
52
+ }
53
+ .ht-category-wrap.ht-category-bg-padding {
54
+ background: #f8f8f8;
55
+ padding: 25px 30px 30px;
56
+ }
57
+ .ht-category-wrap .ht-category-image-zoom a img {
58
+ transition: all 0.5s ease 0s;
59
+ }
60
+ .ht-category-wrap .ht-category-content {
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: space-between;
64
+ }
65
+ .ht-category-wrap .ht-category-content h3 {
66
+ margin: 0;
67
+ font-size: 20px;
68
+ }
69
+ .ht-category-wrap .ht-category-content h3 a {
70
+ color: #444;
71
+ }
72
+ .ht-category-wrap .ht-category-content h3 a:hover {
73
+ color: #dc9a0e;
74
+ }
75
+ .ht-category-wrap .ht-category-content span {
76
+ display: inline-block;
77
+ line-height: 1;
78
+ position: relative;
79
+ font-size: 16px;
80
+ }
81
+ .ht-category-wrap .ht-category-content span::before {
82
+ position: absolute;
83
+ top: 50%;
84
+ transform: translateY(-50%);
85
+ right: calc(100% + 10px);
86
+ width: 50px;
87
+ height: 1px;
88
+ content: "";
89
+ background-color: #ccc;
90
+ }
91
+ .ht-category-wrap .ht-category-content-3 {
92
+ position: relative;
93
+ z-index: 9;
94
+ max-width: 80%;
95
+ margin: -43px auto 0;
96
+ padding: 15px 10px 14px;
97
+ }
98
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg1 {
99
+ background-color: #f4ede7;
100
+ }
101
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg2 {
102
+ background-color: #e8f5f2;
103
+ }
104
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg3 {
105
+ background-color: #e3e4f5;
106
+ }
107
+ .ht-category-wrap .ht-category-content-3.ht-category-content-3-bg4 {
108
+ background-color: #faf5e5;
109
+ }
110
+ .ht-category-wrap .ht-category-content-3 h3 {
111
+ font-size: 18px;
112
+ line-height: 1;
113
+ margin: 0;
114
+ text-align: center;
115
+ }
116
+ .ht-category-wrap .ht-category-content-3 h3 span {
117
+ font-size: 14px;
118
+ margin-left: 5px;
119
+ }
120
+ .ht-category-wrap .ht-category-content-3 h3 a {
121
+ color: #444;
122
+ }
123
+ .ht-category-wrap .ht-category-content-3 h3 a:hover {
124
+ color: #dc9a0e;
125
+ }
126
+ .ht-category-wrap .ht-category-content-4{
127
+ text-align: center;
128
+ }
129
+ .ht-category-wrap .ht-category-content-4 h3 {
130
+ font-size: 16px;
131
+ display: inline-block;
132
+ position: relative;
133
+ margin: 0;
134
+ letter-spacing: 0.5px;
135
+ }
136
+ .ht-category-wrap .ht-category-content-4 span {
137
+ position: absolute;
138
+ top: -8px;
139
+ right: -33px;
140
+ font-size: 14px;
141
+ }
142
+ .ht-category-wrap .ht-category-content-4 h3 a {
143
+ color: #444;
144
+ }
145
+ .ht-category-wrap .ht-category-content-4 h3 a:hover {
146
+ color: #dc9a0e;
147
+ }
148
+ .ht-category-wrap .ht-category-content-5{
149
+ text-align: center;
150
+ }
151
+ .ht-category-wrap .ht-category-content-5 h3 {
152
+ font-size: 14px;
153
+ text-transform: uppercase;
154
+ margin: 0;
155
+ font-weight: 500;
156
+ letter-spacing: 0.5px;
157
+ }
158
+ .ht-category-wrap .ht-category-content-5 h3 span {
159
+ margin-left: 5px;
160
+ color: #dc9a0e;
161
+ }
162
+ .ht-category-wrap .ht-category-content-5 h3 a {
163
+ color: #000000;
164
+ display: inline-block;
165
+ border-bottom: 1px solid transparent;
166
+ }
167
+ .ht-category-wrap .ht-category-content-5 h3 a:hover {
168
+ color: #dc9a0e;
169
+ border-bottom: 1px solid #dc9a0e;
170
+ }
171
+ .ht-category-wrap:hover .ht-category-image a.ht-category-border::before {
172
+ transform: scale(0.95);
173
+ }
174
+ .ht-category-wrap:hover .ht-category-image a.ht-category-border-2::before {
175
+ transform: scale(1);
176
+ opacity: 1;
177
+ visibility: visible;
178
+ }
179
+ .ht-category-wrap:hover .ht-category-image-3 {
180
+ border: 1px solid #dc9a0e;
181
+ }
182
+ .ht-category-wrap:hover .ht-category-image-zoom a img {
183
+ transform: scale(1.1);
184
+ }
185
+
186
+ .ht-category-wrap-2 {
187
+ position: relative;
188
+ overflow: hidden;
189
+ padding: 48px 20px 42px;
190
+ box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
191
+ }
192
+ .ht-category-wrap-2::before {
193
+ position: absolute;
194
+ z-index: 2;
195
+ top: 0px;
196
+ bottom: 0px;
197
+ left: 0px;
198
+ right: 0px;
199
+ width: 100%;
200
+ height: 100%;
201
+ content: "";
202
+ opacity: 0;
203
+ visibility: hidden;
204
+ transform: scale(0.9);
205
+ transition: all 0.7s ease 0s;
206
+ border: 4px solid transparent;
207
+ pointer-events: none;
208
+ }
209
+ .ht-category-wrap-2{
210
+ text-align: center;
211
+ }
212
+ .ht-category-wrap-2 .ht-category-image-2 {
213
+ margin-top: 39px;
214
+ display: inline-block;
215
+ }
216
+ .ht-category-wrap-2 .ht-category-image-2 a {
217
+ display: block;
218
+ text-align: center;
219
+ }
220
+ .ht-category-wrap-2 .ht-category-image-2 a img {
221
+ max-width: 100%;
222
+ transition: all 0.7s ease 0s;
223
+ }
224
+ .ht-category-wrap-2 .ht-category-content-2 h3 {
225
+ font-size: 22px;
226
+ text-transform: capitalize;
227
+ line-height: 1;
228
+ margin: 0;
229
+ position: relative;
230
+ display: flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ }
234
+ .ht-category-wrap-2 .ht-category-content-2 h3 span {
235
+ font-size: 14px;
236
+ margin: 0 0 0 8px;
237
+ }
238
+ .ht-category-wrap-2 .ht-category-content-2 h3 a {
239
+ color: #444;
240
+ display: block;
241
+ }
242
+ .ht-category-wrap-2 .ht-category-content-2 h3 a:hover {
243
+ color: #dc9a0e;
244
+ }
245
+ .ht-category-wrap-2 .ht-category-content-2 h3::before {
246
+ position: absolute;
247
+ content: "";
248
+ left: 0;
249
+ right: 0;
250
+ bottom: -14px;
251
+ margin: 0 auto;
252
+ background-color: #D3D3D3;
253
+ width: 90px;
254
+ height: 2px;
255
+ }
256
+ .ht-category-wrap-2:hover::before {
257
+ opacity: 1;
258
+ visibility: visible;
259
+ transform: scale(1);
260
+ border: 4px solid #dc9a0e;
261
+ }
262
+ .ht-category-wrap-2:hover .ht-category-image-2 a img {
263
+ transform: scale(1.2);
264
+ }
woolentor-blocks/src/blocks/faq/block.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "woolentor/faq",
3
+ "category": "woolentor-blocks",
4
+ "attributes": {
5
+ "blockUniqId":{
6
+ "type": "string",
7
+ "default": ""
8
+ },
9
+ "faqList":{
10
+ "type": "array",
11
+ "default": [
12
+ {
13
+ "title" : "Words To Live By",
14
+ "content": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."
15
+ },
16
+ {
17
+ "title" : "Producing Perfume From Home",
18
+ "content": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."
19
+ },
20
+ {
21
+ "title" : "The Basics Of Western Astrology Explained",
22
+ "content": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."
23
+ },
24
+ {
25
+ "title" : "What Curling Irons Are The Best Ones",
26
+ "content": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris niesi ut aliquip ex ea commodo consequat.sed do eiusmod tempor incididunt ut quis labore et doliore magna aliqua."
27
+ }
28
+ ]
29
+ },
30
+ "showFirstItem":{
31
+ "type": "boolean",
32
+ "default": true
33
+ },
34
+ "iconPosition":{
35
+ "type": "string",
36
+ "default": "right"
37
+ },
38
+ "headBackgroundColor":{
39
+ "type": "string"
40
+ },
41
+ "faqTitleColor":{
42
+ "type": "string"
43
+ },
44
+ "titleSize":{
45
+ "type": "string"
46
+ },
47
+ "titleBorderType":{
48
+ "type": "string"
49
+ },
50
+ "titleBorderWidth": {
51
+ "type": "object",
52
+ "default": {
53
+ "top":"",
54
+ "right":"",
55
+ "bottom":"",
56
+ "left":"",
57
+ "unit":"px",
58
+ "link":"yes"
59
+ }
60
+ },
61
+ "titleBorderColor":{
62
+ "type":"string"
63
+ },
64
+ "titleBorderRadius":{
65
+ "type": "object",
66
+ "default": {
67
+ "top":"",
68
+ "right":"",
69
+ "bottom":"",
70
+ "left":"",
71
+ "unit":"px",
72
+ "link":"yes"
73
+ }
74
+ },
75
+ "iconColor":{
76
+ "type": "string"
77
+ },
78
+ "activeHeadBackgroundColor":{
79
+ "type": "string"
80
+ },
81
+ "activeFaqTitleColor":{
82
+ "type": "string"
83
+ },
84
+ "activeIconColor":{
85
+ "type": "string"
86
+ },
87
+ "contentColor":{
88
+ "type": "string"
89
+ },
90
+ "contentSize":{
91
+ "type": "string"
92
+ }
93
+
94
+ }
95
+ }
woolentor-blocks/src/blocks/faq/index.php ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WooLentorBlocks_Faq{
8
+
9
+ /**
10
+ * [$_instance]
11
+ * @var null
12
+ */
13
+ private static $_instance = null;
14
+
15
+ /**
16
+ * [instance] Initializes a singleton instance
17
+ * @return [Actions]
18
+ */
19
+ public static function instance() {
20
+ if ( is_null( self::$_instance ) ) {
21
+ self::$_instance = new self();
22
+ }
23
+ return self::$_instance;
24
+ }
25
+
26
+ /**
27
+ * The Constructor.
28
+ */
29
+ public function __construct() {
30
+ add_action( 'init', [ $this, 'init' ] );
31
+ }
32
+
33
+ public function init(){
34
+
35
+ // Return early if this function does not exist.
36
+ if ( ! function_exists( 'register_block_type' ) ) {
37
+ return;
38
+ }
39
+
40
+ // Load attributes from block.json.
41
+ ob_start();
42
+ include WOOLENTOR_BLOCK_PATH . '/src/blocks/faq/block.json';
43
+ $metadata = json_decode( ob_get_clean(), true );
44
+
45
+ register_block_type(
46
+ $metadata['name'],
47
+ array(
48
+ 'attributes' => $metadata['attributes'],
49
+ 'render_callback' => [ $this, 'render_content' ],
50
+ 'script' => 'woolentor-accordion-min',
51
+ )
52
+ );
53
+
54
+ }
55
+
56
+ public function render_content( $settings, $content ){
57
+
58
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
59
+ $areaClasses = array( $uniqClass, 'woolentorfaq-block-area' );
60
+ $classes = array( 'htwoolentor-faq' );
61
+
62
+ !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
63
+ !empty( $settings['className'] ) ? $areaClasses[] = $settings['className'] : '';
64
+
65
+
66
+ !empty( $settings['iconPosition'] ) ? $classes[] = 'woolentorfaq-icon-pos-'.$settings['iconPosition'] : '';
67
+
68
+
69
+ $icon = '<span class="htwoolentor-faq-head-indicator"></span>';
70
+
71
+ $accordion_settings = [
72
+ 'showitem' => ( $settings['showFirstItem'] === true ),
73
+ ];
74
+ $dataOptions = 'data-settings='.wp_json_encode( $accordion_settings );
75
+
76
+ ob_start();
77
+ ?>
78
+ <div class="<?php echo implode(' ', $areaClasses ); ?>">
79
+ <div class="<?php echo implode(' ', $classes ); ?>" id="<?php echo 'htwoolentor-faq-'.$settings['blockUniqId'] ?>" <?php echo $dataOptions; ?>>
80
+
81
+ <?php
82
+ foreach ( $settings['faqList'] as $item ):
83
+
84
+ $title = ( !empty( $item['title'] ) ? '<span class="htwoolentor-faq-head-text">'.$item['title'].'</span>' : '' );
85
+
86
+ ?>
87
+ <div class="htwoolentor-faq-card">
88
+ <?php
89
+ if( $settings['iconPosition'] == 'right'){
90
+ echo sprintf( '<div class="htwoolentor-faq-head">%2$s %1$s</div>',$icon, $title );
91
+ }else{
92
+ echo sprintf( '<div class="htwoolentor-faq-head">%1$s %2$s</div>',$icon, $title );
93
+ }
94
+ ?>
95
+ <div class="htwoolentor-faq-body">
96
+ <div class="htwoolentor-faq-content">
97
+ <?php
98
+ if ( !empty( $item['content'] ) ) {
99
+ echo wp_kses_post( $item['content'] );
100
+ }
101
+ ?>
102
+ </div>
103
+ </div>
104
+ </div>
105
+
106
+ <?php
107
+ endforeach;
108
+ ?>
109
+
110
+ </div>
111
+ </div>
112
+
113
+ <?php
114
+ return ob_get_clean();
115
+ }
116
+
117
+ }
118
+ WooLentorBlocks_Faq::instance();
woolentor-blocks/src/blocks/faq/style.css ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .htwoolentor-faq-card {
2
+ margin-bottom: 12px;
3
+ }
4
+
5
+ .htwoolentor-faq-card .htwoolentor-faq-head {
6
+ font-size: 17px;
7
+ font-weight: 500;
8
+ line-height: 1.625;
9
+ position: relative;
10
+ display: flex;
11
+ padding: 19px 25px;
12
+ cursor: pointer;
13
+ transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
14
+ color: #333333;
15
+ border: 1px solid rgba(0, 0, 0, 0.1);
16
+ border-radius: 4px;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: space-between;
20
+ }
21
+
22
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-close-icon, .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-open-icon {
23
+ display: block;
24
+ }
25
+
26
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-open-icon, .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon.htwoolentor-faq-close-icon {
27
+ display: none;
28
+ }
29
+
30
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon svg :not([stroke="none"]) {
31
+ fill: #FFFFFF;
32
+ }
33
+
34
+ .htwoolentor-faq .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-icon svg :not([fill="none"]) {
35
+ stroke: #FFFFFF;
36
+ }
37
+
38
+ .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon svg [fill="none"] {
39
+ fill: transparent !important;
40
+ }
41
+
42
+ .htwoolentor-faq .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-icon svg [stroke="none"] {
43
+ stroke: transparent !important;
44
+ }
45
+
46
+ @media only screen and (max-width: 767px) {
47
+ .htwoolentor-faq-card .htwoolentor-faq-head {
48
+ padding: 15px 15px;
49
+ font-size: 16px;
50
+ line-height: 1.5;
51
+ }
52
+ }
53
+
54
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator {
55
+ position: relative;
56
+ width: 14px;
57
+ height: 14px;
58
+ margin-left: 10px;
59
+ }
60
+
61
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator::before, .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator::after {
62
+ position: absolute;
63
+ top: 50%;
64
+ left: 0;
65
+ width: 14px;
66
+ height: 2px;
67
+ content: "";
68
+ transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
69
+ transform: translateY(-50%);
70
+ border-radius: 10px;
71
+ background-color: #3D3D3D;
72
+ }
73
+
74
+ @media only screen and (max-width: 767px) {
75
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator {
76
+ margin-left: 15px;
77
+ }
78
+ }
79
+
80
+ .htwoolentor-faq-card .htwoolentor-faq-head .htwoolentor-faq-head-indicator::after {
81
+ transform: translateY(-50%) rotate(90deg);
82
+ }
83
+
84
+ .htwoolentor-faq-card .htwoolentor-faq-body {
85
+ overflow: hidden;
86
+ }
87
+
88
+ .htwoolentor-faq-card .htwoolentor-faq-body .htwoolentor-faq-content {
89
+ padding: 16px 25px 4px;
90
+ }
91
+
92
+ @media only screen and (max-width: 767px) {
93
+ .htwoolentor-faq-card .htwoolentor-faq-body .htwoolentor-faq-content {
94
+ padding: 16px 15px 4px;
95
+ }
96
+ }
97
+
98
+ .htwoolentor-faq-card .htwoolentor-faq-body .htwoolentor-faq-content p {
99
+ font-size: 15px;
100
+ line-height: 30px;
101
+ margin: 0;
102
+ }
103
+
104
+ .htwoolentor-faq-card.is-active .htwoolentor-faq-head {
105
+ color: #FFFFFF;
106
+ border-color: #dc9a0e;
107
+ background-color: #dc9a0e;
108
+ }
109
+
110
+ .htwoolentor-faq-card.is-active .htwoolentor-faq-head .htwoolentor-faq-head-indicator::after {
111
+ background-color: #ffffff;
112
+ transform: translateY(-50%);
113
+ }
woolentor-blocks/src/blocks/image-marker/index.php CHANGED
@@ -45,9 +45,8 @@ class WooLentorBlocks_Image_Marker{
45
  register_block_type(
46
  $metadata['name'],
47
  array(
48
- 'attributes' => $metadata['attributes'],
49
- 'render_callback' => [ $this, 'render_content' ],
50
- 'editor_style' => 'woolentor-widgets',
51
  )
52
  );
53
 
@@ -55,7 +54,7 @@ class WooLentorBlocks_Image_Marker{
55
 
56
  public function render_content( $settings, $content ){
57
 
58
- $uniqClass = 'woolentor-'.$settings['blockUniqId'];
59
  $areaClasses = array( 'woolentor-marker-area' );
60
  $classes = array( $uniqClass, 'wlb-marker-wrapper' );
61
 
@@ -66,55 +65,8 @@ class WooLentorBlocks_Image_Marker{
66
 
67
  $background_image = woolentorBlocks_Background_Control( $settings, 'bgProperty' );
68
 
69
- /** Custom Styles */
70
- $markerColor = woolentorBlocks_generate_css( $settings, 'markerColor', 'color' );
71
- $markerBGColor = woolentorBlocks_generate_css( $settings, 'markerBGColor', 'background-color' );
72
- $markerBorderColor = woolentorBlocks_generate_css( $settings, 'markerBorderColor', 'border-color' );
73
- $markerBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'markerBorderRadius', 'border-radius' );
74
- $markerPadding = woolentorBlocks_Dimention_Control( $settings, 'markerPadding', 'padding' );
75
-
76
- $markerContentBGColor = woolentorBlocks_generate_css( $settings, 'markerContentBGColor', 'background-color' );
77
- $markerContentBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'markerContentBorderRadius', 'border-radius' );
78
- $markerContentPadding = woolentorBlocks_Dimention_Control( $settings, 'markerContentPadding', 'padding' );
79
-
80
- $markerTitleColor = woolentorBlocks_generate_css( $settings, 'markerTitleColor', 'color' );
81
- $markerTitleSize = woolentorBlocks_generate_css( $settings, 'markerTitleSize', 'font-size' );
82
- $markerTitleMargin = woolentorBlocks_Dimention_Control( $settings, 'markerTitleMargin', 'margin' );
83
-
84
- $markerDescriptionColor = woolentorBlocks_generate_css( $settings, 'markerDescriptionColor', 'color' );
85
- $markerDescriptionSize = woolentorBlocks_generate_css( $settings, 'markerDescriptionSize', 'font-size' );
86
- $markerDescriptionMargin = woolentorBlocks_Dimention_Control( $settings, 'markerDescriptionMargin', 'margin' );
87
-
88
- $all_styles = "
89
- .{$uniqClass} .wlb_image_pointer::before{
90
- {$markerColor}
91
- }
92
- .{$uniqClass} .wlb_image_pointer{
93
- {$markerBGColor}
94
- {$markerBorderColor}
95
- {$markerBorderRadius}
96
- {$markerPadding}
97
- }
98
- .{$uniqClass} .wlb_image_pointer .wlb_pointer_box{
99
- {$markerContentBGColor}
100
- {$markerContentBorderRadius}
101
- {$markerContentPadding}
102
- }
103
- .{$uniqClass} .wlb_image_pointer .wlb_pointer_box h4{
104
- {$markerTitleColor}
105
- {$markerTitleSize}
106
- {$markerTitleMargin}
107
- }
108
- .{$uniqClass} .wlb_image_pointer .wlb_pointer_box p{
109
- {$markerDescriptionColor}
110
- {$markerDescriptionSize}
111
- {$markerDescriptionMargin}
112
- }
113
- ";
114
-
115
  ob_start();
116
  ?>
117
- <style><?php echo $all_styles; ?></style>
118
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
119
  <div class="<?php echo implode(' ', $classes ); ?>" style="<?php echo $background_image; ?> position:relative;">
120
 
45
  register_block_type(
46
  $metadata['name'],
47
  array(
48
+ 'attributes' => $metadata['attributes'],
49
+ 'render_callback' => [ $this, 'render_content' ]
 
50
  )
51
  );
52
 
54
 
55
  public function render_content( $settings, $content ){
56
 
57
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
58
  $areaClasses = array( 'woolentor-marker-area' );
59
  $classes = array( $uniqClass, 'wlb-marker-wrapper' );
60
 
65
 
66
  $background_image = woolentorBlocks_Background_Control( $settings, 'bgProperty' );
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ob_start();
69
  ?>
 
70
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
71
  <div class="<?php echo implode(' ', $classes ); ?>" style="<?php echo $background_image; ?> position:relative;">
72
 
woolentor-blocks/src/blocks/image-marker/style.css ADDED
@@ -0,0 +1,490 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*Marker Style 01*/
2
+ .wlb-marker-style-1 {
3
+ padding: 245px 0;
4
+ }
5
+
6
+ .wlb-marker-style-1 .wlb_image_pointer {
7
+ width: 36px;
8
+ height: 36px;
9
+ border-radius: 100%;
10
+ border: 3px solid #ed552d;
11
+ background-color: #fff;
12
+ position: relative;
13
+ display: inline-block;
14
+ text-align: center;
15
+ cursor: pointer;
16
+ line-height: 32px;
17
+ }
18
+
19
+ .wlb-marker-style-1 .wlb_image_pointer .wlb_pointer_box {
20
+ background: #fff;
21
+ width: 240px;
22
+ position: absolute;
23
+ top: 0;
24
+ right: 50%;
25
+ -webkit-transform: translate3d(50%, -100%, 0);
26
+ transform: translate3d(50%, -100%, 0);
27
+ border-radius: 5px;
28
+ opacity: 0;
29
+ visibility: hidden;
30
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
31
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
32
+ z-index: 10;
33
+ padding: 20px;
34
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
35
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
36
+ text-align: center;
37
+ }
38
+
39
+ .wlb-marker-style-1 .wlb_image_pointer .wlb_pointer_box h4 {
40
+ font-size: 20px;
41
+ margin-bottom: 7px;
42
+ }
43
+
44
+ .wlb-marker-style-1 .wlb_image_pointer .wlb_pointer_box p {
45
+ font-size: 13px;
46
+ line-height: 24px;
47
+ margin: 0;
48
+ }
49
+
50
+ .wlb-marker-style-1 .wlb_image_pointer:hover .wlb_pointer_box {
51
+ visibility: visible;
52
+ opacity: 1;
53
+ -webkit-transition-delay: 0s;
54
+ transition-delay: 0s;
55
+ -webkit-transform: translateY(-110%) translateX(50%);
56
+ transform: translateY(-110%) translateX(50%);
57
+ }
58
+
59
+ .wlb-marker-style-1 .wlb_image_pointer::before {
60
+ content: "\f129";
61
+ position: absolute;
62
+ left: 50%;
63
+ top: 50%;
64
+ transform: translateX(-50%) translateY(-50%);
65
+ font-family: FontAwesome;
66
+ color: #ed552d;
67
+ font-size: 18px;
68
+ width: 100%;
69
+ height: 100%;
70
+ }
71
+
72
+ .wlb-marker-style-1 .wlb_image_pointer {
73
+ position: absolute;
74
+ left: 66%;
75
+ top: 15%;
76
+ }
77
+
78
+ /*Marker Style 02*/
79
+ .wlb-marker-style-2 {
80
+ padding: 245px 0;
81
+ }
82
+
83
+ .wlb-marker-style-2 .wlb_image_pointer {
84
+ width: 46px;
85
+ height: 46px;
86
+ border-radius: 100%;
87
+ border: 5px solid #dddddd;
88
+ background-color: #fff;
89
+ position: relative;
90
+ display: inline-block;
91
+ text-align: center;
92
+ cursor: pointer;
93
+ line-height: 38px;
94
+ }
95
+
96
+ .wlb-marker-style-2 .wlb_image_pointer .wlb_pointer_box {
97
+ background: #fff;
98
+ width: 240px;
99
+ position: absolute;
100
+ top: 0;
101
+ right: 50%;
102
+ -webkit-transform: translate3d(50%, -100%, 0);
103
+ transform: translate3d(50%, -100%, 0);
104
+ border-radius: 5px;
105
+ opacity: 0;
106
+ visibility: hidden;
107
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
108
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
109
+ z-index: 10;
110
+ padding: 20px;
111
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
112
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
113
+ text-align: center;
114
+ }
115
+
116
+ .wlb-marker-style-2 .wlb_image_pointer .wlb_pointer_box h4 {
117
+ font-size: 20px;
118
+ margin-bottom: 7px;
119
+ }
120
+
121
+ .wlb-marker-style-2 .wlb_image_pointer .wlb_pointer_box p {
122
+ font-size: 13px;
123
+ line-height: 24px;
124
+ margin: 0;
125
+ }
126
+
127
+ .wlb-marker-style-2 .wlb_image_pointer:hover .wlb_pointer_box {
128
+ visibility: visible;
129
+ opacity: 1;
130
+ -webkit-transition-delay: 0s;
131
+ transition-delay: 0s;
132
+ -webkit-transform: translateY(-110%) translateX(50%);
133
+ transform: translateY(-110%) translateX(50%);
134
+ }
135
+
136
+ .wlb-marker-style-2 .wlb_image_pointer::before {
137
+ content: "\f067";
138
+ position: absolute;
139
+ left: 50%;
140
+ top: 50%;
141
+ transform: translateX(-50%) translateY(-50%);
142
+ font-family: FontAwesome;
143
+ color: #ed552d;
144
+ font-size: 18px;
145
+ width: 100%;
146
+ height: 100%;
147
+ transition: 0.4s ease-in-out;
148
+ }
149
+
150
+ .wlb-marker-style-2 .wlb_image_pointer:hover::before {
151
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
152
+ }
153
+
154
+ .wlb-marker-style-2 .wlb_image_pointer {
155
+ position: absolute;
156
+ left: 50%;
157
+ top: 26%;
158
+ }
159
+
160
+ /*Marker Style 03*/
161
+ .wlb-marker-style-3 {
162
+ padding: 245px 0;
163
+ }
164
+
165
+ .wlb-marker-style-3 .wlb_image_pointer {
166
+ width: 46px;
167
+ height: 46px;
168
+ border-radius: 100%;
169
+ background-color: #000000;
170
+ position: relative;
171
+ display: inline-block;
172
+ text-align: center;
173
+ cursor: pointer;
174
+ line-height: 49px;
175
+ z-index: 2;
176
+ }
177
+
178
+ .wlb-marker-style-3 .wlb_image_pointer .wlb_pointer_box {
179
+ background: #000000;
180
+ width: 240px;
181
+ position: absolute;
182
+ top: 0;
183
+ right: 50%;
184
+ -webkit-transform: translate3d(50%, -100%, 0);
185
+ transform: translate3d(50%, -100%, 0);
186
+ border-radius: 5px;
187
+ opacity: 0;
188
+ visibility: hidden;
189
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
190
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
191
+ z-index: 10;
192
+ padding: 20px;
193
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
194
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
195
+ text-align: center;
196
+ }
197
+
198
+ .wlb-marker-style-3 .wlb_image_pointer .wlb_pointer_box h4 {
199
+ font-size: 20px;
200
+ margin-bottom: 7px;
201
+ color: #ffffff;
202
+ }
203
+
204
+ .wlb-marker-style-3 .wlb_image_pointer .wlb_pointer_box p {
205
+ font-size: 13px;
206
+ line-height: 24px;
207
+ margin: 0;
208
+ color: #ffffff;
209
+ }
210
+
211
+ .wlb-marker-style-3 .wlb_image_pointer:hover .wlb_pointer_box {
212
+ visibility: visible;
213
+ opacity: 1;
214
+ -webkit-transition-delay: 0s;
215
+ transition-delay: 0s;
216
+ -webkit-transform: translateY(-110%) translateX(50%);
217
+ transform: translateY(-110%) translateX(50%);
218
+ }
219
+
220
+ .wlb-marker-style-3 .wlb_image_pointer::before {
221
+ content: "\f067";
222
+ position: absolute;
223
+ left: 50%;
224
+ top: 50%;
225
+ transform: translateX(-50%) translateY(-50%);
226
+ font-family: FontAwesome;
227
+ color: #ffffff;
228
+ font-size: 18px;
229
+ width: 100%;
230
+ height: 100%;
231
+ transition: 0.4s ease-in-out;
232
+ }
233
+
234
+ .wlb-marker-style-3 .wlb_image_pointer::after {
235
+ position: absolute;
236
+ left: 2px;
237
+ background: #000;
238
+ content: "";
239
+ right: 2px;
240
+ top: 2px;
241
+ bottom: 2px;
242
+ border-radius: 100%;
243
+ border: 2px solid #fff;
244
+ z-index: -1;
245
+ }
246
+
247
+ .wlb-marker-style-3 .wlb_image_pointer:hover::before {
248
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
249
+ }
250
+
251
+ .wlb-marker-style-3 .wlb_image_pointer {
252
+ position: absolute;
253
+ left: 50%;
254
+ top: 26%;
255
+ }
256
+
257
+ /*Marker Style 04*/
258
+ .wlb-marker-style-4 {
259
+ padding: 245px 0;
260
+ }
261
+
262
+ .wlb-marker-style-4 .wlb_image_pointer {
263
+ width: 46px;
264
+ height: 46px;
265
+ border-radius: 100%;
266
+ background-position: center center;
267
+ background-size: cover;
268
+ background-repeat: no-repeat;
269
+ position: relative;
270
+ display: inline-block;
271
+ text-align: center;
272
+ cursor: pointer;
273
+ line-height: 38px;
274
+ border: 5px solid #d88d78;
275
+ z-index: 2;
276
+ }
277
+
278
+ .wlb-marker-style-4 .wlb_image_pointer .wlb_pointer_box {
279
+ background-position: center center;
280
+ background-size: cover;
281
+ background-repeat: no-repeat;
282
+ width: 240px;
283
+ position: absolute;
284
+ top: 0;
285
+ right: 50%;
286
+ -webkit-transform: translate3d(50%, -100%, 0);
287
+ transform: translate3d(50%, -100%, 0);
288
+ border-radius: 5px;
289
+ opacity: 0;
290
+ visibility: hidden;
291
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
292
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
293
+ z-index: 10;
294
+ padding: 20px;
295
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
296
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
297
+ text-align: center;
298
+ }
299
+
300
+ .wlb-marker-style-4 .wlb_image_pointer .wlb_pointer_box h4 {
301
+ font-size: 20px;
302
+ margin-bottom: 7px;
303
+ }
304
+
305
+ .wlb-marker-style-4 .wlb_image_pointer .wlb_pointer_box p {
306
+ font-size: 13px;
307
+ line-height: 24px;
308
+ margin: 0;
309
+ color: #18012c;
310
+ }
311
+
312
+ .wlb-marker-style-4 .wlb_image_pointer:hover .wlb_pointer_box {
313
+ visibility: visible;
314
+ opacity: 1;
315
+ -webkit-transition-delay: 0s;
316
+ transition-delay: 0s;
317
+ -webkit-transform: translateY(-110%) translateX(50%);
318
+ transform: translateY(-110%) translateX(50%);
319
+ }
320
+
321
+ .wlb-marker-style-4 .wlb_image_pointer::before {
322
+ content: "\f067";
323
+ position: absolute;
324
+ left: 50%;
325
+ top: 50%;
326
+ transform: translateX(-50%) translateY(-50%);
327
+ font-family: FontAwesome;
328
+ color: #d88d78;
329
+ font-size: 18px;
330
+ width: 100%;
331
+ height: 100%;
332
+ transition: 0.4s ease-in-out;
333
+ }
334
+
335
+ .wlb-marker-style-4 .wlb_image_pointer:hover::before {
336
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
337
+ }
338
+
339
+ .wlb-marker-style-4 .wlb_image_pointer {
340
+ position: absolute;
341
+ left: 83%;
342
+ top: 37%;
343
+ }
344
+
345
+ /*Marker Style 05*/
346
+ .wlb-marker-style-5 {
347
+ padding: 245px 0;
348
+ }
349
+
350
+ .wlb-marker-style-5 .wlb_image_pointer {
351
+ width: 46px;
352
+ height: 46px;
353
+ border-radius: 4px;
354
+ background: #000;
355
+ position: relative;
356
+ display: inline-block;
357
+ text-align: center;
358
+ cursor: pointer;
359
+ line-height: 47px;
360
+ z-index: 2;
361
+ }
362
+
363
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1 {
364
+ position: relative;
365
+ }
366
+
367
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::before,
368
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::after {
369
+ position: absolute;
370
+ top: 50%;
371
+ left: 50%;
372
+ display: block;
373
+ content: '';
374
+ border: 1px solid #f10;
375
+ border-radius: 50%;
376
+ -webkit-transform: scale(0.35) translateY(-50%) translateX(-50%);
377
+ -ms-transform: scale(0.35) translateY(-50%) translateX(-50%);
378
+ transform: scale(0.35) translateY(-50%) translateX(-50%);
379
+ opacity: 0;
380
+ -webkit-animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0.4s infinite;
381
+ animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0.4s infinite;
382
+ }
383
+
384
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::before {
385
+ width: 32px;
386
+ height: 32px;
387
+ left: 50%;
388
+ top: 50%;
389
+ z-index: -1;
390
+ }
391
+
392
+ .wlb-marker-style-5 .wlb_image_pointer .effect-1::after {
393
+ width: 32px;
394
+ height: 32px;
395
+ z-index: -1;
396
+ border-color: rgba(255, 255, 255, 0.4);
397
+ -webkit-animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0s infinite;
398
+ animation: marker-ripple-animation 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) 0s infinite;
399
+ }
400
+
401
+ .wlb-marker-style-5 .wlb_image_pointer .wlb_pointer_box {
402
+ background: #000000;
403
+ width: 240px;
404
+ position: absolute;
405
+ top: 0;
406
+ right: 50%;
407
+ -webkit-transform: translate3d(50%, -100%, 0);
408
+ transform: translate3d(50%, -100%, 0);
409
+ border-radius: 5px;
410
+ opacity: 0;
411
+ visibility: hidden;
412
+ -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
413
+ transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
414
+ z-index: 10;
415
+ padding: 20px;
416
+ -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
417
+ box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.07);
418
+ text-align: center;
419
+ }
420
+
421
+ .wlb-marker-style-5 .wlb_image_pointer .wlb_pointer_box h4 {
422
+ font-size: 20px;
423
+ margin-bottom: 7px;
424
+ color: #fff;
425
+ }
426
+
427
+ .wlb-marker-style-5 .wlb_image_pointer .wlb_pointer_box p {
428
+ font-size: 13px;
429
+ line-height: 24px;
430
+ margin: 0;
431
+ color: #fff;
432
+ }
433
+
434
+ .wlb-marker-style-5 .wlb_image_pointer:hover .wlb_pointer_box {
435
+ visibility: visible;
436
+ opacity: 1;
437
+ -webkit-transition-delay: 0s;
438
+ transition-delay: 0s;
439
+ -webkit-transform: translateY(-110%) translateX(50%);
440
+ transform: translateY(-110%) translateX(50%);
441
+ }
442
+
443
+ .wlb-marker-style-5 .wlb_image_pointer::before {
444
+ content: "\f067";
445
+ position: absolute;
446
+ left: 50%;
447
+ top: 50%;
448
+ transform: translateX(-50%) translateY(-50%);
449
+ font-family: FontAwesome;
450
+ color: #ffffff;
451
+ font-size: 18px;
452
+ width: 100%;
453
+ height: 100%;
454
+ transition: 0.4s ease-in-out;
455
+ }
456
+
457
+ .wlb-marker-style-5 .wlb_image_pointer:hover::before {
458
+ transform: translateX(-50%) translateY(-50%) rotate(47deg);
459
+ }
460
+
461
+ .wlb-marker-style-5 .wlb_image_pointer {
462
+ position: absolute;
463
+ left: 83%;
464
+ top: 37%;
465
+ }
466
+
467
+ /* Marker Animation Css */
468
+ @-webkit-keyframes marker-ripple-animation {
469
+ 0% {
470
+ -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
471
+ opacity: 1;
472
+ }
473
+
474
+ 100% {
475
+ -webkit-transform: translate3d(-50%, -50%, 0) scale(1.7);
476
+ opacity: 0;
477
+ }
478
+ }
479
+
480
+ @keyframes marker-ripple-animation {
481
+ 0% {
482
+ transform: translate3d(-50%, -50%, 0) scale(1);
483
+ opacity: 1;
484
+ }
485
+
486
+ 100% {
487
+ transform: translate3d(-50%, -50%, 0) scale(1.7);
488
+ opacity: 0;
489
+ }
490
+ }
woolentor-blocks/src/blocks/product-curvy/block.json ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "woolentor/product-curvy",
3
+ "category": "woolentor-blocks",
4
+ "attributes": {
5
+ "blockUniqId":{
6
+ "type": "string",
7
+ "default": ""
8
+ },
9
+ "areaMargin": {
10
+ "type": "object",
11
+ "default": {
12
+ "top":"",
13
+ "right":"",
14
+ "bottom":"",
15
+ "left":"",
16
+ "unit":"px",
17
+ "link":"yes"
18
+ }
19
+ },
20
+ "areaPadding": {
21
+ "type": "object",
22
+ "default": {
23
+ "top":"",
24
+ "right":"",
25
+ "bottom":"",
26
+ "left":"",
27
+ "unit":"px",
28
+ "link":"yes"
29
+ }
30
+ },
31
+ "areaBGProperty":{
32
+ "type": "object",
33
+ "default": {
34
+ "imageId": null,
35
+ "imageUrl":"",
36
+ "position": "",
37
+ "attachment": "",
38
+ "repeat": "",
39
+ "size": ""
40
+ }
41
+ },
42
+ "layout":{
43
+ "type": "string"
44
+ },
45
+ "columns":{
46
+ "type": "number",
47
+ "default": 4
48
+ },
49
+ "noGutter":{
50
+ "type": "boolean",
51
+ "default": false
52
+ },
53
+ "itemSpace":{
54
+ "type": "number",
55
+ "default": 15
56
+ },
57
+ "productFilterType":{
58
+ "type": "string",
59
+ "default": "recent"
60
+ },
61
+ "perPage":{
62
+ "type": "number",
63
+ "default": 4
64
+ },
65
+ "customOrder":{
66
+ "type": "boolean",
67
+ "default": false
68
+ },
69
+ "orderBy":{
70
+ "type": "string",
71
+ "default": "none"
72
+ },
73
+ "order":{
74
+ "type": "string",
75
+ "default": "DESC"
76
+ },
77
+ "selectedCategories":{
78
+ "type": "array",
79
+ "default": []
80
+ },
81
+ "contentLimit":{
82
+ "type": "number",
83
+ "default": 6
84
+ },
85
+ "showTitle":{
86
+ "type": "boolean",
87
+ "default": true
88
+ },
89
+ "showPrice":{
90
+ "type": "boolean",
91
+ "default": true
92
+ },
93
+ "showContent":{
94
+ "type": "boolean",
95
+ "default": true
96
+ },
97
+ "showRating":{
98
+ "type": "boolean",
99
+ "default": true
100
+ },
101
+ "itemAreaBGColor":{
102
+ "type": "string"
103
+ },
104
+ "itemMarginBottom":{
105
+ "type": "number",
106
+ "default":15
107
+ },
108
+ "titleSize":{
109
+ "type": "string"
110
+ },
111
+ "titleColor":{
112
+ "type": "string"
113
+ },
114
+ "titleHoverColor":{
115
+ "type": "string"
116
+ },
117
+ "titleMargin": {
118
+ "type": "object",
119
+ "default": {
120
+ "top":"",
121
+ "right":"",
122
+ "bottom":"",
123
+ "left":"",
124
+ "unit":"px",
125
+ "link":"yes"
126
+ }
127
+ },
128
+ "salePriceColor":{
129
+ "type": "string"
130
+ },
131
+ "regulerPriceColor":{
132
+ "type": "string"
133
+ },
134
+ "contentSize":{
135
+ "type": "string"
136
+ },
137
+ "cotentColor":{
138
+ "type": "string"
139
+ },
140
+ "contentMargin": {
141
+ "type": "object",
142
+ "default": {
143
+ "top":"",
144
+ "right":"",
145
+ "bottom":"",
146
+ "left":"",
147
+ "unit":"px",
148
+ "link":"yes"
149
+ }
150
+ },
151
+ "emptyRatingColor":{
152
+ "type": "string"
153
+ },
154
+ "ratingColor":{
155
+ "type": "string"
156
+ },
157
+ "ratingMargin": {
158
+ "type": "object",
159
+ "default": {
160
+ "top":"",
161
+ "right":"",
162
+ "bottom":"",
163
+ "left":"",
164
+ "unit":"px",
165
+ "link":"yes"
166
+ }
167
+ },
168
+ "actionBtnAreaBGColor":{
169
+ "type": "string"
170
+ },
171
+ "actionBtnColor":{
172
+ "type": "string"
173
+ },
174
+ "actionBtnBGColor":{
175
+ "type": "string"
176
+ },
177
+ "actionBtnBorderRadius": {
178
+ "type": "object",
179
+ "default": {
180
+ "top":"",
181
+ "right":"",
182
+ "bottom":"",
183
+ "left":"",
184
+ "unit":"px",
185
+ "link":"yes"
186
+ }
187
+ },
188
+ "actionBtnHoverColor":{
189
+ "type": "string"
190
+ },
191
+ "actionBtnBgHoverColor":{
192
+ "type": "string"
193
+ },
194
+ "imageBorderColor":{
195
+ "type": "string"
196
+ }
197
+
198
+ }
199
+ }
woolentor-blocks/src/blocks/product-curvy/index.php ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WooLentorBlocks_Product_Curvy{
8
+
9
+ /**
10
+ * [$_instance]
11
+ * @var null
12
+ */
13
+ private static $_instance = null;
14
+
15
+ /**
16
+ * [instance] Initializes a singleton instance
17
+ * @return [Actions]
18
+ */
19
+ public static function instance() {
20
+ if ( is_null( self::$_instance ) ) {
21
+ self::$_instance = new self();
22
+ }
23
+ return self::$_instance;
24
+ }
25
+
26
+ /**
27
+ * The Constructor.
28
+ */
29
+ public function __construct() {
30
+ add_action( 'init', [ $this, 'init' ] );
31
+ }
32
+
33
+ public function init(){
34
+
35
+ // Return early if this function does not exist.
36
+ if ( ! function_exists( 'register_block_type' ) ) {
37
+ return;
38
+ }
39
+
40
+ // Load attributes from block.json.
41
+ ob_start();
42
+ include WOOLENTOR_BLOCK_PATH . '/src/blocks/product-curvy/block.json';
43
+ $metadata = json_decode( ob_get_clean(), true );
44
+
45
+ register_block_type(
46
+ $metadata['name'],
47
+ array(
48
+ 'attributes' => $metadata['attributes'],
49
+ 'render_callback' => [ $this, 'render_content' ]
50
+ )
51
+ );
52
+
53
+ }
54
+
55
+ public function render_content( $settings, $content ){
56
+
57
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
58
+ $areaClasses = array( $uniqClass, 'woocommerce', 'woolentor-product-curvy' );
59
+
60
+ !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
61
+ !empty( $settings['className'] ) ? $areaClasses[] = $settings['className'] : '';
62
+
63
+ !empty( $settings['columns'] ) ? $areaClasses[] = 'woolentor-columns-'.$settings['columns'] : '';
64
+
65
+ $queryArgs = [
66
+ 'perPage' => $settings['perPage'],
67
+ 'filterBy' => $settings['productFilterType']
68
+ ];
69
+ if( $settings['customOrder'] ){
70
+ $queryArgs['orderBy'] = $settings['orderBy'];
71
+ $queryArgs['order'] = $settings['order'];
72
+ }
73
+ if( is_array( $settings['selectedCategories'] ) && count( $settings['selectedCategories'] ) > 0 ){
74
+ $queryArgs['categories'] = $settings['selectedCategories'];
75
+ }
76
+ $products = new \WP_Query( woolentorBlocks_Product_Query( $queryArgs ) );
77
+
78
+
79
+ $content_style = '';
80
+ if( isset( $settings['layout'] ) ){
81
+ if ( $settings['layout'] == '2' ) {
82
+ $content_style = 'wl_left-item';
83
+ }elseif ( $settings['layout']=='3' ) {
84
+ $content_style = 'wl_dark-item';
85
+ }else{
86
+ $content_style = '';
87
+ }
88
+ }
89
+
90
+
91
+ ob_start();
92
+ ?>
93
+ <div class="<?php echo implode(' ', $areaClasses ); ?>">
94
+
95
+ <?php if( $products->have_posts() ): ?>
96
+
97
+ <div class="woolentor-row <?php echo ( $settings['noGutter'] === true ? 'wlno-gutters' : '' ); ?>">
98
+ <?php
99
+ while( $products->have_posts() ) {
100
+ $products->the_post();
101
+
102
+ $product = wc_get_product( get_the_ID() );
103
+
104
+ $btn_class = $product->is_purchasable() && $product->is_in_stock() ? ' add_to_cart_button' : '';
105
+
106
+ $btn_class .= $product->supports( 'ajax_add_to_cart' ) && $product->is_purchasable() && $product->is_in_stock() ? ' ajax_add_to_cart' : '';
107
+ $description = wp_trim_words ( get_the_content(), $settings['contentLimit'], '' );
108
+
109
+ ?>
110
+ <div class="woolentor-col-<?php echo $settings['columns']; ?>">
111
+ <div class="wl_single-product-item <?php echo $content_style; ?>">
112
+
113
+ <a href="<?php the_permalink(); ?>" class="product-thumbnail">
114
+ <div class="images">
115
+ <?php woocommerce_template_loop_product_thumbnail(); ?>
116
+ </div>
117
+ </a>
118
+
119
+ <div class="product-content">
120
+ <div class="product-content-top">
121
+
122
+ <?php if( $settings['showTitle'] === true ): ?>
123
+ <h6 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
124
+ <?php endif; ?>
125
+
126
+ <?php if( $settings['showPrice'] === true ): ?>
127
+ <div class="product-price">
128
+ <span class="new-price"><?php woocommerce_template_loop_price();?></span>
129
+ </div>
130
+ <?php endif; ?>
131
+
132
+ <?php
133
+ if( $settings['showContent'] === true ){
134
+ echo '<p>'.$description.'</p>';
135
+ }
136
+ ?>
137
+
138
+ <?php if( $settings['showRating'] === true ): ?>
139
+ <div class="reading">
140
+ <?php woocommerce_template_loop_rating(); ?>
141
+ </div>
142
+ <?php endif; ?>
143
+
144
+ </div>
145
+ <ul class="action">
146
+ <li class="wl_cart">
147
+ <a href="<?php echo $product->add_to_cart_url(); ?>" data-quantity="1" class="action-item <?php echo $btn_class; ?>" data-product_id="<?php echo $product->get_id(); ?>"><?php echo __( '<i class="fa fa-shopping-cart"></i>', 'woolentor' );?></a>
148
+ </li>
149
+ <?php
150
+ if( true === woolentor_has_wishlist_plugin() ){
151
+ echo '<li>'.woolentor_add_to_wishlist_button('<i class="fa fa-heart-o"></i>','<i class="fa fa-heart"></i>').'</li>';
152
+ }
153
+ ?>
154
+ <?php
155
+ if( function_exists('woolentor_compare_button') && true === woolentor_exist_compare_plugin() ){
156
+ echo '<li>';
157
+ woolentor_compare_button(
158
+ array(
159
+ 'style' => 2,
160
+ 'btn_text' => '<i class="fas fa-exchange-alt"></i>',
161
+ 'btn_added_txt' => '<i class="fas fa-exchange-alt"></i>'
162
+ )
163
+ );
164
+ echo '</li>';
165
+ }
166
+ ?>
167
+ </ul>
168
+ </div>
169
+
170
+ </div>
171
+ </div>
172
+ <?php
173
+ }
174
+ ?>
175
+ </div>
176
+
177
+ <?php wp_reset_postdata(); endif; ?>
178
+
179
+ </div>
180
+
181
+ <?php
182
+ return ob_get_clean();
183
+ }
184
+
185
+ }
186
+ WooLentorBlocks_Product_Curvy::instance();
woolentor-blocks/src/blocks/product-curvy/style.css ADDED
@@ -0,0 +1,455 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wl_single-product-item a {
2
+ color: inherit;
3
+ display: inline-block;
4
+ line-height: inherit;
5
+ text-decoration: none;
6
+ cursor: pointer;
7
+ }
8
+
9
+ .wl_single-product-item {
10
+ margin-top: 0 !important;
11
+ margin-left: auto;
12
+ margin-right: auto;
13
+ border: 1px solid #eeeffb;
14
+ border-radius: 10000px 10000px 20px 20px;
15
+ background: #f7f7f7;
16
+ }
17
+
18
+ .wl_single-product-item .product-thumbnail {
19
+ border: 15px solid #fff;
20
+ text-align: center;
21
+ border-radius: 50000px;
22
+ width: 100%;
23
+ position: relative;
24
+ z-index: 9;
25
+ background: #fff;
26
+ }
27
+
28
+ .wl_single-product-item .product-thumbnail .images {
29
+ height: 100%;
30
+ width: 100%;
31
+ -webkit-box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
32
+ box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
33
+ border-radius: 50%;
34
+ }
35
+
36
+ .wl_single-product-item .product-thumbnail .images img {
37
+ display: inline-block;
38
+ border-radius: 100%;
39
+ width: 100%;
40
+ }
41
+
42
+ @media only screen and (max-width: 767px) {
43
+ .wl_single-product-item .product-thumbnail {
44
+ height: 235px;
45
+ }
46
+ }
47
+
48
+ @media only screen and (max-width: 575px) {
49
+ .wl_single-product-item .product-thumbnail {
50
+ height: 270px;
51
+ }
52
+ }
53
+
54
+ .wl_single-product-item .product-content {
55
+ margin-top: -124px;
56
+ display: -webkit-box;
57
+ display: -webkit-flex;
58
+ display: -ms-flexbox;
59
+ display: flex;
60
+ -webkit-box-orient: vertical;
61
+ -webkit-box-direction: normal;
62
+ -webkit-flex-direction: column;
63
+ -ms-flex-direction: column;
64
+ flex-direction: column;
65
+ -webkit-box-pack: justify;
66
+ -webkit-justify-content: space-between;
67
+ -ms-flex-pack: justify;
68
+ justify-content: space-between;
69
+ }
70
+
71
+ .wl_single-product-item .product-content .product-content-top {
72
+ padding: 140px 20px 10px;
73
+ }
74
+
75
+ .wl_single-product-item .product-content .product-content-top .title {
76
+ font-weight: 600;
77
+ font-size: 18px;
78
+ margin: 0;
79
+ text-transform: inherit;
80
+ }
81
+
82
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .title a {
83
+ color: #fff
84
+ }
85
+
86
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top p {
87
+ font-weight: 400;
88
+ font-size: 14px;
89
+ }
90
+
91
+ .wl_single-product-item .product-content .product-content-top .title a {
92
+ color: #333
93
+ }
94
+
95
+ .wl_single-product-item .product-content .product-content-top .title a:hover {
96
+ color: #0A3ACA
97
+ }
98
+
99
+ .wl_single-product-item .product-content .product-content-top .product-price {
100
+ color: #0A3ACA;
101
+ font-weight: 500;
102
+ margin-bottom: 15px;
103
+ margin-top: 10px;
104
+ font-size: 15px;
105
+ }
106
+
107
+ @media only screen and (min-width: 992px) and (max-width: 1199px) {
108
+ .wl_single-product-item .product-content .product-content-top .product-price {
109
+ margin-bottom: 5px;
110
+ margin-top: 5px;
111
+ }
112
+ }
113
+
114
+ .wl_single-product-item .product-content .product-content-top .reading {
115
+ display: -webkit-box;
116
+ display: -webkit-flex;
117
+ display: -ms-flexbox;
118
+ display: flex;
119
+ }
120
+
121
+ .wl_single-product-item .product-content .action {
122
+ margin-top: 10px;
123
+ display: -webkit-box;
124
+ display: -webkit-flex;
125
+ display: -ms-flexbox;
126
+ display: flex;
127
+ -webkit-box-pack: justify;
128
+ -webkit-justify-content: space-between;
129
+ -ms-flex-pack: justify;
130
+ justify-content: space-between;
131
+ background: #4E7CFF;
132
+ padding: 10px 30px;
133
+ border-radius: 0 0 5px 5px;
134
+ margin: 0;
135
+ list-style: none;
136
+ }
137
+
138
+ .wl_single-product-item .product-content .action li {
139
+ margin: 0;
140
+ position: relative;
141
+ line-height: 0
142
+ }
143
+
144
+ .wl_single-product-item .product-content .action li a, .wl_single-product-item .product-content .action .action-item {
145
+ width: 40px;
146
+ height: 40px;
147
+ line-height: 40px;
148
+ background: #285FFC;
149
+ text-align: center;
150
+ border-radius: 5px;
151
+ color: #ffffff;
152
+ }
153
+
154
+ .wl_single-product-item .product-content .action li .yith-wcwl-wishlistaddedbrowse.hide a, .wl_single-product-item .product-content .action li a.add_to_wishlist {
155
+ padding: 0 !important;
156
+ }
157
+
158
+ .wl_single-product-item .product-content .action .action-item:hover {
159
+ background: #2B2B4C;
160
+ }
161
+
162
+ .wl_single-product-item.wl_left-item {
163
+ display: -webkit-box;
164
+ display: -webkit-flex;
165
+ display: -ms-flexbox;
166
+ display: flex;
167
+ max-width: 100%;
168
+ border-radius: 500px 0 0 500px;
169
+ }
170
+
171
+ @media only screen and (max-width: 575px) {
172
+ .wl_single-product-item.wl_left-item {
173
+ display: inherit;
174
+ border-radius: 500px 500px 5px 5px;
175
+ max-width: 270px;
176
+ margin-left: auto;
177
+ margin-right: auto;
178
+ }
179
+ }
180
+
181
+ .wl_single-product-item.wl_left-item .product-thumbnail {
182
+ height: 270px;
183
+ width: 340px;
184
+ line-height: 200px;
185
+ }
186
+
187
+ .wl_single-product-item.wl_left-item .product-thumbnail .images {
188
+ height: 100%;
189
+ width: 100%;
190
+ -webkit-box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
191
+ box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
192
+ border-radius: 50%;
193
+ }
194
+
195
+ @media only screen and (max-width: 575px) {
196
+ .wl_single-product-item.wl_left-item .product-thumbnail {
197
+ height: 270px;
198
+ width: 270px;
199
+ }
200
+ }
201
+
202
+ .wl_single-product-item.wl_left-item .product-content {
203
+ margin-top: 0px;
204
+ margin-left: -144px;
205
+ width: 100%;
206
+ }
207
+
208
+ @media only screen and (max-width: 575px) {
209
+ .wl_single-product-item.wl_left-item .product-content {
210
+ margin-top: 0px;
211
+ margin-left: 0px;
212
+ }
213
+ }
214
+
215
+ .wl_single-product-item.wl_left-item .product-content .product-price {
216
+ margin-bottom: 5px;
217
+ margin-top: 5px;
218
+ }
219
+
220
+ .wl_single-product-item.wl_left-item .product-content .product-content-top {
221
+ padding: 30px 20px 12px 165px;
222
+ }
223
+
224
+ @media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (max-width: 767px) {
225
+ .wl_single-product-item.wl_left-item .product-content .product-content-top {
226
+ padding: 10px 20px 10px 170px;
227
+ }
228
+ }
229
+
230
+ @media only screen and (max-width: 575px) {
231
+ .wl_single-product-item.wl_left-item .product-content .product-content-top {
232
+ padding: 10px 20px 12px 10px;
233
+ }
234
+ }
235
+
236
+ .wl_single-product-item.wl_left-item .product-content .action {
237
+ padding: 10px 30px 10px 150px;
238
+ border-radius: 0 0 5px 5px;
239
+ }
240
+
241
+ @media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (max-width: 767px) {
242
+ .wl_single-product-item.wl_left-item .product-content .action {
243
+ padding: 10px 20px 10px 150px;
244
+ }
245
+ }
246
+
247
+ @media only screen and (max-width: 575px) {
248
+ .wl_single-product-item.wl_left-item .product-content .action {
249
+ padding: 10px 20px;
250
+ }
251
+ }
252
+
253
+ .wl_single-product-item.wl_dark-item .product-thumbnail {
254
+ border: 15px solid #707070;
255
+ }
256
+
257
+ .wl_single-product-item.wl_dark-item .product-thumbnail .images {
258
+ -webkit-box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
259
+ box-shadow: 0 0px 6px rgba(112, 112, 112, 0.2);
260
+ }
261
+
262
+ .wl_single-product-item.wl_dark-item .product-content {
263
+ background: #2B2B4C;
264
+ color: #ffffff;
265
+ }
266
+
267
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top {
268
+ padding: 140px 20px 10px;
269
+ }
270
+
271
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .title {
272
+ color: #ffffff;
273
+ }
274
+
275
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .product-price {
276
+ color: #ffffff;
277
+ }
278
+
279
+ .wl_single-product-item.wl_dark-item .product-content .product-content-top .reading {
280
+ display: -webkit-box;
281
+ display: -webkit-flex;
282
+ display: -ms-flexbox;
283
+ display: flex;
284
+ color: #75828E;
285
+ }
286
+
287
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting {
288
+ display: -webkit-box;
289
+ display: -webkit-flex;
290
+ display: -ms-flexbox;
291
+ display: flex;
292
+ position: relative;
293
+ margin-left: -3px;
294
+ margin-right: -3px;
295
+ }
296
+
297
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting .ht-product-user-ratting, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting {
298
+ display: -webkit-box;
299
+ display: -webkit-flex;
300
+ display: -ms-flexbox;
301
+ display: flex;
302
+ overflow: hidden;
303
+ position: absolute;
304
+ left: 5px;
305
+ top: 0;
306
+ z-index: 3;
307
+ margin-left: -5px;
308
+ margin-right: -5px;
309
+ }
310
+
311
+ .ht-products .ht-product.ht-product-content-allcenter .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting, .ht-products .ht-product.ht-product-ratting-top-right .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting {
312
+ position: inherit;
313
+ }
314
+
315
+ .ht-products .ht-product.ht-product-category-right-bottom .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price {
316
+ margin-bottom: 25px;
317
+ }
318
+
319
+ .ht-products .ht-product.ht-product-category-right-bottom .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting {
320
+ margin-top: 8px;
321
+ }
322
+
323
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting .ht-product-user-ratting i, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting i {
324
+ color: #dc9a0e;
325
+ }
326
+
327
+ .ht-products .wl_single-product-item .product-content .product-content-top .reading .top-rated-rating .ht-product-ratting i, .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting i {
328
+ color: #aaaaaa;
329
+ }
330
+
331
+ .wl_single-product-item .action li .woolentor-compare.compare::before {
332
+ left: 50%;
333
+ top: 50%;
334
+ transform: translateX(-50%) translateY(-50%);
335
+ color: #fff;
336
+ font-size: 18px;
337
+ width: 100%;
338
+ height: 100%;
339
+ }
340
+
341
+ .wl_single-product-item .product-content .action li a:hover {
342
+ background: #2B2B4C;
343
+ }
344
+
345
+ .wl_single-product-item .product-content .action span.ht-product-action-tooltip {
346
+ display: none;
347
+ }
348
+
349
+ .wl_single-product-item .product-content .yith-wcwl-add-to-wishlist {
350
+ margin-top: 0;
351
+ }
352
+
353
+ .wl_single-product-item .product-content .yith-wcwl-add-button>a i {
354
+ margin-right: 0;
355
+ }
356
+
357
+ /*--button--*/
358
+
359
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action .btn_cart {
360
+ position: relative;
361
+ }
362
+
363
+ .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.action-item.added, .wl_single-product-item .product-content .action .action-item.added {
364
+ display: none;
365
+ }
366
+
367
+ .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward {
368
+ font-size: 0;
369
+ margin-right: 30px;
370
+ }
371
+
372
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward {
373
+ font-size: 0;
374
+ margin-right: 30px;
375
+ }
376
+
377
+ .wl_single-product-item .product-content .action a.added_to_cart.wc-forward {
378
+ text-indent: -9999px;
379
+ }
380
+
381
+ .wl_single-product-item .product-content .action .action-item.loading:before {
382
+ position: absolute;
383
+ text-indent: 0;
384
+ content: "\e01c";
385
+ font-family: WooCommerce;
386
+ left: 0;
387
+ right: 0;
388
+ }
389
+
390
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after, .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after, .wl_single-product-item .product-content .action a.added_to_cart.wc-forward:after {
391
+ position: absolute;
392
+ text-indent: 0;
393
+ content: "\e017";
394
+ font-family: WooCommerce;
395
+ left: 0;
396
+ right: 0;
397
+ font-size: 18px;
398
+ }
399
+
400
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after, .wl_shop-accordion-wrap .card-body .product-content .product-acontent-bottom .action a.added_to_cart.wc-forward:after {
401
+ font-size: 18px;
402
+ background: #fff;
403
+ display: inline-table;
404
+ height: 34px;
405
+ line-height: 34px;
406
+ border-radius: 50%;
407
+ padding: 0 9px;
408
+ margin-right: 70px;
409
+ color: #333;
410
+ }
411
+
412
+ .wl_product-accordion .card-body .product-content .product-acontent-bottom .action .action-item.added, .wl_horizontal-hover-accordion .accordion-ul li .accordion-product-content .accordion-product-item .product-content .action .action-item.added {
413
+ display: none;
414
+ }
415
+
416
+ .wl_horizontal-hover-accordion .accordion-ul li .accordion-product-content .accordion-product-item .product-content .action a.added_to_cart.wc-forward {
417
+ height: 35px;
418
+ padding: 0 9px;
419
+ line-height: 35px;
420
+ background: transparent;
421
+ text-align: center;
422
+ border-radius: 35px;
423
+ border: 1px solid #0A3ACA;
424
+ color: #333;
425
+ margin-right: 10px
426
+ }
427
+
428
+ .woolentor-compare.compare{
429
+ -webkit-text-indent: -99999px;
430
+ text-indent: -99999px;
431
+ }
432
+ .wl_product-accordion .action .woocommerce.product.compare-button a:before,
433
+ .wl_horizontal-hover-accordion .action .woocommerce.product.compare-button a:before,
434
+ .wl_single-product-item .action li .woolentor-compare.compare::before {
435
+ content: "\f0ec";
436
+ position: absolute;
437
+ font-family: FontAwesome !important;
438
+ font-size: 18px;
439
+ text-indent: 0;
440
+ }
441
+ .wl_product-accordion .action .woocommerce.product.compare-button a:before {
442
+ top: 0;
443
+ }
444
+ .wl_horizontal-hover-accordion .action .woocommerce.product.compare-button a:before {
445
+ text-indent: 0;
446
+ left: 0;
447
+ right: 0;
448
+ color: #000;
449
+ border: 1px solid #0A3ACA;
450
+ width: 37px;
451
+ height: 37px;
452
+ line-height: 35px;
453
+ border-radius: 50%;
454
+ text-align: center;
455
+ }
woolentor-blocks/src/blocks/product-tab/index.php CHANGED
@@ -45,10 +45,16 @@ class WooLentorBlocks_Product_Tab{
45
  array(
46
  'attributes' => $metadata['attributes'],
47
  'render_callback' => [ $this,'product_tab_render' ],
48
- 'editor_script' => 'slick',
49
- 'editor_style' => register_block_style_handle( $metadata, 'woolentor-widgets' ),
50
  'script' => 'slick',
51
  )
 
 
 
 
 
 
 
 
52
  );
53
 
54
  }
@@ -84,7 +90,7 @@ class WooLentorBlocks_Product_Tab{
84
  if( $custom_order == true ){
85
  $orderby = $settings['orderBy'];
86
  $order = $settings['order'];
87
- $query_args['custom_order'] = array(
88
  'orderby' => $orderby,
89
  'order' => $order,
90
  );
@@ -124,72 +130,20 @@ class WooLentorBlocks_Product_Tab{
124
  }
125
 
126
  if( ( $proslider == 'yes' ) && ( $producttab != 'yes' ) ){
127
- $collumval = 'slide-item ht-col-xs-12';
128
  }else{
129
- $collumval = 'ht-col-lg-3 ht-col-md-6 ht-col-sm-6 ht-col-xs-12 mb-50';
130
- if( $columns !='' ){
131
- if( $columns == 5){
132
- $collumval = 'cus-col-5 ht-col-md-6 ht-col-sm-6 ht-col-xs-12 mb-50';
133
- }else{
134
- $colwidth = round(12/$columns);
135
- $collumval = 'ht-col-lg-'.$colwidth.' ht-col-md-6 ht-col-sm-6 ht-col-xs-12 mb-50';
136
- }
137
- }
138
  }
139
 
140
  $tabuniqid = $settings['blockUniqId'];
141
- $uniqClass = 'woolentor-'.$settings['blockUniqId'];
142
  $customClass .= ' '.$uniqClass;
143
  !empty( $settings['className'] ) ? $customClass .= ' '.$settings['className'] : '';
144
 
145
- /** Custom Styles */
146
- $titleColor = woolentorBlocks_generate_css( $settings, 'titleColor', 'color' );
147
- $titleHoverColor = woolentorBlocks_generate_css( $settings, 'titleHoverColor', 'color' );
148
- $titleAlignment = woolentorBlocks_generate_css( $settings, 'titleAlign', 'text-align' );
149
-
150
- $priceColor = woolentorBlocks_generate_css( $settings, 'priceColor', 'color' );
151
- $contentAlign = woolentorBlocks_generate_css( $settings, 'contentAlign', 'text-align' );
152
-
153
- $actionBtnColor = woolentorBlocks_generate_css( $settings, 'actionBtnColor', 'color' );
154
- $actionBtnBgColor = woolentorBlocks_generate_css( $settings, 'actionBtnBgColor', 'background-color' );
155
- $actionBtnHoverColor = woolentorBlocks_generate_css( $settings, 'actionBtnHoverColor', 'color' );
156
- $actionBtnHoverBgColor = woolentorBlocks_generate_css( $settings, 'actionBtnHoverBgColor', 'background-color' );
157
-
158
- $all_styles = "
159
- .{$uniqClass} .product-item .product-inner .content .title a{
160
- {$titleColor}
161
- }
162
- .{$uniqClass} .product-item .product-inner .content .title a:hover{
163
- {$titleHoverColor}
164
- }
165
- .{$uniqClass} .product-item .product-inner .content .title{
166
- {$titleAlignment}
167
- }
168
- .{$uniqClass} .product-item .product-inner .content .price,.{$uniqClass} .product-item .product-inner .content .price .amount{
169
- {$priceColor}
170
- }
171
- .{$uniqClass} .product-item .product-inner .content{
172
- {$contentAlign}
173
- }
174
- .{$uniqClass} .product-item .actions a, .{$uniqClass} .product-item .woocommerce.compare-button a.button, .{$uniqClass} .product-item .actions a::before{
175
- {$actionBtnColor}
176
- }
177
- .{$uniqClass} .product-item .actions{
178
- {$actionBtnBgColor}
179
- }
180
- .{$uniqClass} .product-item .actions a:hover, .{$uniqClass} .product-item .woocommerce.compare-button a.button:hover, .{$uniqClass} .product-item .actions a:hover::before{
181
- {$actionBtnHoverColor}
182
- }
183
- .{$uniqClass} .product-item .actions:hover{
184
- {$actionBtnHoverBgColor}
185
- }
186
- ";
187
-
188
  ob_start();
189
  ?>
190
- <style><?php echo $all_styles; ?></style>
191
  <div class="<?php echo $customClass; ?>">
192
- <div class="product-style">
193
 
194
  <?php if ( $producttab == 'yes' ) { ?>
195
  <div class="product-tab-list ht-text-center">
@@ -276,8 +230,9 @@ class WooLentorBlocks_Product_Tab{
276
 
277
  if( $products->have_posts() ):
278
  ?>
279
- <div class="ht-tab-pane <?php if($j==1){echo 'htactive';} ?>" id="<?php echo 'woolentortab'.$tabuniqid.$j;?>">
280
- <div class="ht-row">
 
281
  <!-- product item start -->
282
  <div class="<?php echo esc_attr( $collumval );?>">
283
  <?php
@@ -299,7 +254,7 @@ class WooLentorBlocks_Product_Tab{
299
  <?php endif; endforeach;?>
300
 
301
  <?php else:?>
302
- <div class="ht-row">
303
 
304
  <?php if( $proslider == 'yes' ){ echo '<div id="product-slider-' . $settings['blockUniqId'] . '" dir="'.$direction.'" class="product-slider" data-settings=\'' . wp_json_encode($slider_settings) . '\'>';}?>
305
 
@@ -340,7 +295,7 @@ class WooLentorBlocks_Product_Tab{
340
  $rows = $settings['rows'];
341
 
342
  ?>
343
- <div class="product-item <?php if ( $rows > 1 && ($loopitem % $rows != 0)){ echo 'mb-30 ';} if( $settings['style'] == 3){ echo 'product_style_three'; }?> ">
344
 
345
  <div class="product-inner">
346
  <div class="image-wrap">
45
  array(
46
  'attributes' => $metadata['attributes'],
47
  'render_callback' => [ $this,'product_tab_render' ],
 
 
48
  'script' => 'slick',
49
  )
50
+
51
+ // array(
52
+ // 'attributes' => $metadata['attributes'],
53
+ // 'render_callback' => [ $this,'product_tab_render' ],
54
+ // 'editor_script' => 'slick',
55
+ // 'editor_style' => 'woolentor-widgets',
56
+ // 'script' => 'slick',
57
+ // )
58
  );
59
 
60
  }
90
  if( $custom_order == true ){
91
  $orderby = $settings['orderBy'];
92
  $order = $settings['order'];
93
+ $query_args['custom_order'] = array (
94
  'orderby' => $orderby,
95
  'order' => $order,
96
  );
130
  }
131
 
132
  if( ( $proslider == 'yes' ) && ( $producttab != 'yes' ) ){
133
+ $collumval = 'slide-item woolentor-col-1';
134
  }else{
135
+ $collumval = !empty( $settings['columns'] ) ? 'woolentor-col-'.$settings['columns'] : 'woolentor-col-4';
 
 
 
 
 
 
 
 
136
  }
137
 
138
  $tabuniqid = $settings['blockUniqId'];
139
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
140
  $customClass .= ' '.$uniqClass;
141
  !empty( $settings['className'] ) ? $customClass .= ' '.$settings['className'] : '';
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  ob_start();
144
  ?>
 
145
  <div class="<?php echo $customClass; ?>">
146
+ <div class="woolentor-product-tab-area <?php echo !empty( $settings['columns'] ) ? 'woolentor-columns-'.$settings['columns'] : 'woolentor-columns-1'; ?>">
147
 
148
  <?php if ( $producttab == 'yes' ) { ?>
149
  <div class="product-tab-list ht-text-center">
230
 
231
  if( $products->have_posts() ):
232
  ?>
233
+ <div class="ht-tab-pane <?php if( $j==1 ){ echo 'htactive'; } ?>" id="<?php echo 'woolentortab'.$tabuniqid.$j;?>">
234
+ <div class="woolentor-row">
235
+
236
  <!-- product item start -->
237
  <div class="<?php echo esc_attr( $collumval );?>">
238
  <?php
254
  <?php endif; endforeach;?>
255
 
256
  <?php else:?>
257
+ <div class="woolentor-row">
258
 
259
  <?php if( $proslider == 'yes' ){ echo '<div id="product-slider-' . $settings['blockUniqId'] . '" dir="'.$direction.'" class="product-slider" data-settings=\'' . wp_json_encode($slider_settings) . '\'>';}?>
260
 
295
  $rows = $settings['rows'];
296
 
297
  ?>
298
+ <div class="product-item <?php if ( $rows > 1 && ( $loopitem % $rows != 0 ) ){ echo 'mb-30 ';} if( $settings['style'] == 3){ echo 'product_style_three'; }?> ">
299
 
300
  <div class="product-inner">
301
  <div class="image-wrap">
woolentor-blocks/src/blocks/product-tab/style.css ADDED
@@ -0,0 +1,409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .woolentor-product-tab-area {
2
+ position: relative;
3
+ z-index: 35;
4
+ }
5
+
6
+ .product-slider {
7
+ width: 100%;
8
+ }
9
+
10
+ .product-item {
11
+ padding-bottom: 10px;
12
+ margin-bottom: 30px;
13
+ }
14
+
15
+ .product-item mark, .product-item ins {
16
+ background: transparent;
17
+ }
18
+
19
+ .product-item .product-inner .image-wrap {
20
+ position: relative;
21
+ text-align: center;
22
+ overflow: hidden;
23
+ }
24
+
25
+ .product-item .product-inner .image-wrap .wishlist, .product-item .product-inner .image-wrap .tinv-wraper {
26
+ display: block;
27
+ position: absolute;
28
+ right: 20px;
29
+ top: 20px;
30
+ margin-top: 0;
31
+ }
32
+
33
+ .product-item .product-inner .image-wrap .tinv-wraper a, .ht-product-action .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
34
+ margin: 0;
35
+ }
36
+
37
+ .ht-product-list-action .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
38
+ margin-top: 0;
39
+ }
40
+
41
+ .product-item .product-inner .image-wrap .tinv-wraper a .tinvwl_add_to_wishlist-text, .ht-product-action .tinv-wraper a .tinvwl_add_to_wishlist-text {
42
+ display: none;
43
+ }
44
+
45
+ .ht-product-action .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart::before, .ht-product-action .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus::before {
46
+ font-size: 26px;
47
+ }
48
+
49
+ .yith-wcwl-add-to-wishlist .ajax-loading {
50
+ left: 20px;
51
+ margin: 0;
52
+ position: absolute;
53
+ top: 4px;
54
+ }
55
+
56
+ .product-item .content {
57
+ padding-top: 10px;
58
+ }
59
+
60
+ .content h4.title {
61
+ margin: 0;
62
+ }
63
+
64
+ .product-item .product-inner .content .title {
65
+ font-size: 20px;
66
+ margin-bottom: 10px;
67
+ }
68
+
69
+ .product-item .actions {
70
+ background: #333 none repeat scroll 0 0;
71
+ border-radius: 20px;
72
+ color: #fff;
73
+ display: flex;
74
+ left: 50%;
75
+ position: absolute;
76
+ text-align: center;
77
+ top: 50%;
78
+ transform: translateX(-50%);
79
+ transition: all 0.4s ease 0s;
80
+ width: 150px;
81
+ opacity: 0;
82
+ visibility: hidden;
83
+ }
84
+
85
+ .product-item .actions>* {
86
+ flex: 1 0 auto;
87
+ }
88
+
89
+ .product-item .product-inner .image-wrap .actions.style_two {
90
+ width: 85%;
91
+ border-radius: 0;
92
+ bottom: 0;
93
+ top: auto;
94
+ }
95
+
96
+ .product-item .woocommerce.compare-button a.button {
97
+ background-color: #333;
98
+ border-radius: 20px;
99
+ }
100
+
101
+ .product-item .product-inner .image-wrap .style_two .wishlist {
102
+ position: static;
103
+ }
104
+
105
+ .yith-wcwl-add-button {
106
+ position: relative;
107
+ }
108
+
109
+ .style_two .yith-wcwl-add-to-wishlist .ajax-loading {
110
+ margin-left: 0;
111
+ top: 11px;
112
+ }
113
+
114
+ .product-item .woocommerce.product.compare-button, .product-item .actions .htcompare-btn {
115
+ border-left: 1px solid #999;
116
+ }
117
+
118
+ .product-item .actions .htcompare-btn {
119
+ border-radius: 0;
120
+ }
121
+
122
+ .product-item:hover .actions {
123
+ opacity: 1;
124
+ transform: translateX(-50%) translateY(-50%);
125
+ visibility: visible;
126
+ }
127
+
128
+ .product-item .actions a, .product-item .woocommerce.compare-button a.button {
129
+ color: #fff;
130
+ display: block;
131
+ font-weight: normal;
132
+ line-height: inherit;
133
+ padding: 7px 5px;
134
+ text-indent: -999999px;
135
+ position: relative;
136
+ background: transparent;
137
+ }
138
+
139
+ .product-item .actions a::before {
140
+ color: #fff;
141
+ content: "";
142
+ font-family: fontawesome;
143
+ height: 100%;
144
+ left: 0;
145
+ position: absolute;
146
+ text-indent: 0;
147
+ top: 5px;
148
+ width: 100%;
149
+ }
150
+
151
+ .product-item .actions .compare-button a::before, .product-item .actions .htcompare-btn::before {
152
+ content: "\f021";
153
+ }
154
+
155
+ .product-item .product-inner .image-wrap .style_two .wishlist a::before {
156
+ content: "\f08a";
157
+ }
158
+
159
+ .product-item .product-inner .image-wrap .style_two .wishlist .yith-wcwl-wishlistexistsbrowse a::before, .product-item .product-inner .image-wrap .style_two .wishlist .yith-wcwl-wishlistaddedbrowse a::before {
160
+ content: "\f004";
161
+ }
162
+
163
+ .product-item .product-inner .actions.style_two a {
164
+ text-indent: 0;
165
+ }
166
+
167
+ .product-item .product-inner .actions.style_two a::before {
168
+ display: none;
169
+ }
170
+
171
+ .product-item .product-inner .actions.style_two .tinv-wishlist a::before {
172
+ display: block;
173
+ font-size: 20px;
174
+ line-height: 28px;
175
+ }
176
+
177
+ .product-item .product-inner .actions.style_two .tinv-wishlist a {
178
+ text-indent: -999999px;
179
+ margin: 0;
180
+ }
181
+
182
+ .product-item.product_style_three .product-inner .image-wrap {
183
+ overflow: visible;
184
+ }
185
+
186
+ .product_information_area {
187
+ background: #fff none repeat scroll 0 0;
188
+ bottom: -90px;
189
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
190
+ left: 0;
191
+ opacity: 0;
192
+ position: absolute;
193
+ text-align: left;
194
+ transition: all 0.4s ease 0s;
195
+ visibility: hidden;
196
+ width: 100%;
197
+ }
198
+
199
+ .product_information_area .content {
200
+ padding-bottom: 15px;
201
+ text-align: center;
202
+ }
203
+
204
+ .product-item .product-inner .image-wrap .product_information_area .actions.style_two {
205
+ border-radius: 0;
206
+ bottom: 0;
207
+ opacity: 1;
208
+ overflow: hidden;
209
+ padding: 0 30px;
210
+ position: static;
211
+ top: auto;
212
+ transform: translateX(0px);
213
+ visibility: visible;
214
+ width: 100%;
215
+ }
216
+
217
+ .product-item:hover .product_information_area {
218
+ bottom: -103px;
219
+ opacity: 1;
220
+ visibility: visible;
221
+ }
222
+
223
+ .woocommerce span.onsale, span.onsale {
224
+ background-color: #23252a;
225
+ border-radius: 3px;
226
+ color: #fff;
227
+ font-size: 14px;
228
+ font-weight: 500;
229
+ left: 15px;
230
+ top: 15px;
231
+ line-height: 1;
232
+ min-height: inherit;
233
+ min-width: inherit;
234
+ padding: 5px 10px;
235
+ position: absolute;
236
+ }
237
+
238
+ .product-item a.button.added {
239
+ display: none !important;
240
+ }
241
+
242
+ .product-item .actions .htcompare-btn.added {
243
+ display: block !important;
244
+ }
245
+
246
+ .product-item .actions .htcompare-btn.loading {
247
+ padding: 0;
248
+ }
249
+
250
+ .product-item .actions a.htcompare-btn.loading::after {
251
+ right: 20px;
252
+ }
253
+
254
+ .product-item .product-inner .image-wrap .actions a.added_to_cart {
255
+ text-indent: -99999px;
256
+ }
257
+
258
+ .product-item .product-inner .image-wrap .actions a.added_to_cart::before {
259
+ content: "";
260
+ font-family: WooCommerce;
261
+ font-size: 20px;
262
+ left: auto;
263
+ position: absolute;
264
+ text-indent: 0;
265
+ top: 0;
266
+ display: block;
267
+ }
268
+
269
+ .product-item a.button.added::after, .product-item a.button.loading::after {
270
+ color: #fff;
271
+ content: "";
272
+ display: block;
273
+ font-family: "fontawesome";
274
+ margin: 0 auto;
275
+ position: absolute;
276
+ text-indent: 0;
277
+ top: 5px;
278
+ }
279
+
280
+ /* Tab Menu */
281
+
282
+ .ht-tab-menus {
283
+ margin: 0;
284
+ padding: 0;
285
+ list-style: none;
286
+ }
287
+
288
+ .ht-tab-menus {
289
+ margin-bottom: 45px;
290
+ }
291
+
292
+ .ht-tab-menus li {
293
+ display: inline-block;
294
+ margin-right: 20px;
295
+ }
296
+
297
+ .ht-tab-menus li:last-child {
298
+ margin-right: 0;
299
+ }
300
+
301
+ .ht-tab-menus li a {
302
+ border: 1px solid transparent;
303
+ border-radius: 50px;
304
+ padding: 5px 15px;
305
+ text-transform: capitalize;
306
+ }
307
+
308
+ .ht-tab-menus li a:focus {
309
+ outline: none;
310
+ }
311
+
312
+ .ht-tab-menus li a.htactive {
313
+ border-color: #e5e5e5;
314
+ }
315
+
316
+ .ht-tab-pane {
317
+ display: none;
318
+ }
319
+
320
+ .ht-tab-pane.htactive {
321
+ display: block;
322
+ }
323
+
324
+ .product_attribute ul {
325
+ list-style: outside none none;
326
+ margin: 0 0 20px;
327
+ padding: 0;
328
+ text-align: left;
329
+ }
330
+
331
+ .product_information_area .attribute_label {
332
+ font-weight: 600;
333
+ }
334
+
335
+ .product_attribute {
336
+ margin-top: 25px;
337
+ padding: 0 30px;
338
+ }
339
+
340
+ .product_attribute ul li {
341
+ display: inline-block;
342
+ line-height: 1;
343
+ margin: 0 10px 0 0;
344
+ }
345
+
346
+ .product_attribute ul li.color_attribute {
347
+ border-radius: 100%;
348
+ height: 15px;
349
+ width: 15px;
350
+ }
351
+
352
+ .product-slider .slick-arrow {
353
+ background: transparent none repeat scroll 0 0;
354
+ border: 2px solid #ddd;
355
+ color: #ddd;
356
+ font-size: 20px;
357
+ height: 40px;
358
+ left: -30px;
359
+ line-height: inherit;
360
+ padding: 0;
361
+ position: absolute;
362
+ top: 50%;
363
+ transform: translateY(-50%);
364
+ width: 40px;
365
+ z-index: 99;
366
+ transition: 0.4s;
367
+ }
368
+
369
+ .product-slider .slick-arrow.slick-next {
370
+ right: -30px;
371
+ left: auto;
372
+ }
373
+
374
+ .product-slider .slick-arrow:hover {
375
+ border-color: #333;
376
+ color: #333;
377
+ }
378
+
379
+ .product-slider .slick-dots {
380
+ bottom: 0px;
381
+ display: flex;
382
+ left: 50%;
383
+ list-style: outside none none;
384
+ margin: 0;
385
+ padding: 0;
386
+ position: absolute;
387
+ transform: translateX(-50%);
388
+ }
389
+
390
+ .product-slider .slick-dots li {
391
+ line-height: 12px;
392
+ margin: 0 4px;
393
+ }
394
+
395
+ .product-slider .slick-dots li button {
396
+ background-color: transparent;
397
+ border: 1px solid #4e4f4f;
398
+ border-radius: 50px;
399
+ height: 13px;
400
+ padding: 0;
401
+ text-indent: -9999px;
402
+ width: 13px;
403
+ line-height: 13px;
404
+ }
405
+
406
+ .product-slider .slick-dots li.slick-active button {
407
+ background-color: #282828;
408
+ border-color: #282828;
409
+ }
woolentor-blocks/src/blocks/special-day-offer/index.php CHANGED
@@ -47,7 +47,7 @@ class WooLentorBlocks_Special_Day_Offer_Banner{
47
  array(
48
  'attributes' => $metadata['attributes'],
49
  'render_callback' => [ $this, 'render_content' ],
50
- 'editor_style' => 'woolentor-widgets',
51
  )
52
  );
53
 
@@ -55,139 +55,66 @@ class WooLentorBlocks_Special_Day_Offer_Banner{
55
 
56
  public function render_content( $settings, $content ){
57
 
58
- $uniqClass = 'woolentor-'.$settings['blockUniqId'];
59
- $classes = array( $uniqClass, 'wlspcial-banner' );
 
 
 
 
60
 
61
- !empty( $settings['className'] ) ? $classes[] = $settings['className'] : '';
62
  !empty( $settings['contentPosition'] ) ? $classes[] = 'woolentor-banner-content-pos-'.$settings['contentPosition'] : '';
63
 
64
- $banner_url = !empty( $settings['bannerLink'] ) ? $settings['bannerLink'] : '#';
65
- $banner_image = !empty( $settings['bannerImage']['id'] ) ? wp_get_attachment_image( $settings['bannerImage']['id'], 'full' ) : ( function_exists('wc_placeholder_img') ? wc_placeholder_img('full') : '' );
66
- $badge_image = !empty( $settings['badgeImage']['id'] ) ? wp_get_attachment_image( $settings['badgeImage']['id'], 'full' ) : '';
67
-
68
- /** Custom Styles */
69
- $badgeHorizontalPos = woolentorBlocks_generate_css( $settings, 'badgeHorizontalPos', 'left', '%' );
70
- $badgeVerticlePos = woolentorBlocks_generate_css( $settings, 'badgeVerticlePos', 'top', '%' );
71
-
72
- $contentAlignment = woolentorBlocks_generate_css( $settings, 'contentAlignment', 'text-align' );
73
- $contentPadding = woolentorBlocks_Dimention_Control( $settings, 'contentAreaPadding', 'padding' );
74
- $contentMargin = woolentorBlocks_Dimention_Control( $settings, 'contentAreaMargin', 'margin' );
75
-
76
- $titleColor = woolentorBlocks_generate_css( $settings, 'titleColor', 'color' );
77
- $titleSize = woolentorBlocks_generate_css( $settings, 'titleSize', 'font-size' );
78
- $titleMargin = woolentorBlocks_Dimention_Control( $settings, 'titleMargin', 'margin' );
79
- $titlePadding = woolentorBlocks_Dimention_Control( $settings, 'titlePadding', 'padding' );
80
-
81
- $titleSubColor = woolentorBlocks_generate_css( $settings, 'titleSubColor', 'color' );
82
- $titleSubSize = woolentorBlocks_generate_css( $settings, 'titleSubSize', 'font-size' );
83
- $subTitleMargin = woolentorBlocks_Dimention_Control( $settings, 'subTitleMargin', 'margin' );
84
- $subTitlePadding = woolentorBlocks_Dimention_Control( $settings, 'subTitlePadding', 'padding' );
85
-
86
- $desColor = woolentorBlocks_generate_css( $settings, 'desColor', 'color' );
87
- $desSize = woolentorBlocks_generate_css( $settings, 'desSize', 'font-size' );
88
- $desMargin = woolentorBlocks_Dimention_Control( $settings, 'desMargin', 'margin' );
89
- $desPadding = woolentorBlocks_Dimention_Control( $settings, 'desPadding', 'padding' );
90
-
91
- $offerColor = woolentorBlocks_generate_css( $settings, 'offerColor', 'color' );
92
- $offerSize = woolentorBlocks_generate_css( $settings, 'offerSize', 'font-size' );
93
- $offerMargin = woolentorBlocks_Dimention_Control( $settings, 'offerMargin', 'margin' );
94
-
95
- $offerTagColor = woolentorBlocks_generate_css( $settings, 'offerTagColor', 'color' );
96
- $offerTagSize = woolentorBlocks_generate_css( $settings, 'offerTagSize', 'font-size' );
97
- $offerTagMargin = woolentorBlocks_Dimention_Control( $settings, 'offerTagMargin', 'margin' );
98
-
99
- $buttonColor = woolentorBlocks_generate_css( $settings, 'buttonColor', 'color' );
100
- $buttonHoverColor = woolentorBlocks_generate_css( $settings, 'buttonHoverColor', 'color' );
101
- $buttonSize = woolentorBlocks_generate_css( $settings, 'buttonSize', 'font-size' );
102
- $buttonMargin = woolentorBlocks_Dimention_Control( $settings, 'buttonMargin', 'margin' );
103
-
104
- $all_styles = "
105
-
106
- .{$uniqClass} .banner-content{
107
- {$contentAlignment}
108
- {$contentPadding}
109
- {$contentMargin}
110
- }
111
- .{$uniqClass} .wlbanner-badgeimage{
112
- {$badgeHorizontalPos}
113
- {$badgeVerticlePos}
114
- }
115
- .{$uniqClass} .banner-content h2{
116
- {$titleColor}
117
- {$titleSize}
118
- {$titleMargin}
119
- {$titlePadding}
120
- }
121
- .{$uniqClass} .banner-content h6{
122
- {$titleSubColor}
123
- {$titleSubSize}
124
- {$subTitleMargin}
125
- {$subTitlePadding}
126
- }
127
- .{$uniqClass} .banner-content p{
128
- {$desColor}
129
- {$desSize}
130
- {$desMargin}
131
- {$desPadding}
132
- }
133
- .{$uniqClass} .banner-content h5{
134
- {$offerColor}
135
- {$offerSize}
136
- {$offerMargin}
137
- }
138
- .{$uniqClass} .banner-content h5 span{
139
- {$offerTagColor}
140
- {$offerTagSize}
141
- {$offerTagMargin}
142
- }
143
- .{$uniqClass} .banner-content a{
144
- {$buttonColor}
145
- {$buttonSize}
146
- {$buttonMargin}
147
- }
148
- .{$uniqClass} .banner-content a:hover{
149
- {$buttonHoverColor}
150
- }
151
- ";
152
 
153
  ob_start();
154
  ?>
155
- <style><?php echo $all_styles; ?></style>
156
- <div class="<?php echo implode(' ', $classes ); ?>">
157
-
158
- <div class="banner-thumb">
159
- <a href="<?php echo esc_url( $banner_url ); ?>">
160
- <?php echo $banner_image; ?>
161
- </a>
162
- </div>
163
-
164
- <?php
165
- if( !empty( $badge_image ) ){
166
- echo '<div class="wlbanner-badgeimage">'.$badge_image.'</div>';
167
- }
168
- ?>
169
-
170
- <div class="banner-content">
171
- <?php
172
- if( !empty( $settings['title'] ) ){
173
- echo '<h2>'.$settings['title'].'</h2>';
174
- }
175
- if( !empty( $settings['subTitle'] ) ){
176
- echo '<h6>'.$settings['subTitle'].'</h6>';
177
- }
178
- if( !empty( $settings['offerAmount'] ) ){
179
- echo '<h5>'.$settings['offerAmount'].'<span>'.$settings['offerTagLine'].'</span></h5>';
180
- }
181
- if( !empty( $settings['bannerDescription'] ) ){
182
- echo '<p>'.$settings['bannerDescription'].'</p>';
183
- }
184
-
185
- if( !empty( $settings['buttonText'] ) ){
186
- echo '<a href="'.esc_url( $banner_url ).'">'.esc_html__( $settings['buttonText'],'woolentor' ).'</a>';
187
- }
188
- ?>
189
- </div>
190
-
 
191
  </div>
192
  <?php
193
  return ob_get_clean();
47
  array(
48
  'attributes' => $metadata['attributes'],
49
  'render_callback' => [ $this, 'render_content' ],
50
+ // 'editor_style' => 'woolentor-widgets',
51
  )
52
  );
53
 
55
 
56
  public function render_content( $settings, $content ){
57
 
58
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
59
+ $areaClasses = array( $uniqClass );
60
+ $classes = array( 'wlspcial-banner' );
61
+
62
+ !empty( $settings['className'] ) ? $areaClasses[] = $settings['className'] : '';
63
+ !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
64
 
 
65
  !empty( $settings['contentPosition'] ) ? $classes[] = 'woolentor-banner-content-pos-'.$settings['contentPosition'] : '';
66
 
67
+ $arrContextOptions = [
68
+ 'ssl' => [
69
+ 'verify_peer' => false,
70
+ 'verify_peer_name' => false,
71
+ ]
72
+ ];
73
+ $default_img = file_get_contents( WOOLENTOR_BLOCK_URL . '/src/assets/images/banner-image.svg', false, stream_context_create($arrContextOptions) );
74
+
75
+ $banner_url = !empty( $settings['bannerLink'] ) ? $settings['bannerLink'] : '#';
76
+ $banner_image = !empty( $settings['bannerImage']['id'] ) ? wp_get_attachment_image( $settings['bannerImage']['id'], 'full' ) : $default_img;
77
+ $badge_image = !empty( $settings['badgeImage']['id'] ) ? wp_get_attachment_image( $settings['badgeImage']['id'], 'full' ) : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  ob_start();
80
  ?>
81
+ <div class="<?php echo implode(' ', $areaClasses ); ?>">
82
+ <div class="<?php echo implode(' ', $classes ); ?>">
83
+
84
+ <div class="banner-thumb">
85
+ <a href="<?php echo esc_url( $banner_url ); ?>">
86
+ <?php echo $banner_image; ?>
87
+ </a>
88
+ </div>
89
+
90
+ <?php
91
+ if( !empty( $badge_image ) ){
92
+ echo '<div class="wlbanner-badgeimage">'.$badge_image.'</div>';
93
+ }
94
+ ?>
95
+
96
+ <div class="banner-content">
97
+ <?php
98
+ if( !empty( $settings['title'] ) ){
99
+ echo '<h2>'.$settings['title'].'</h2>';
100
+ }
101
+ if( !empty( $settings['subTitle'] ) ){
102
+ echo '<h6>'.$settings['subTitle'].'</h6>';
103
+ }
104
+ if( !empty( $settings['offerAmount'] ) ){
105
+ echo '<h5>'.$settings['offerAmount'].'<span>'.$settings['offerTagLine'].'</span></h5>';
106
+ }
107
+ if( !empty( $settings['bannerDescription'] ) ){
108
+ echo '<p>'.$settings['bannerDescription'].'</p>';
109
+ }
110
+
111
+ if( !empty( $settings['buttonText'] ) ){
112
+ echo '<a href="'.esc_url( $banner_url ).'">'.esc_html__( $settings['buttonText'],'woolentor' ).'</a>';
113
+ }
114
+ ?>
115
+ </div>
116
+
117
+ </div>
118
  </div>
119
  <?php
120
  return ob_get_clean();
woolentor-blocks/src/blocks/special-day-offer/style.css ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ svg.woolentor-banner-default{
2
+ fill-opacity: 0.1;
3
+ }
4
+ .wlspcial-banner .banner-thumb a {
5
+ overflow: hidden;
6
+ position: relative;
7
+ display: block;
8
+ }
9
+ .wlspcial-banner .banner-thumb a::before {
10
+ background: #ffffff none repeat scroll 0 0;
11
+ content: "";
12
+ height: 0;
13
+ left: 0;
14
+ opacity: 0;
15
+ pointer-events: none;
16
+ position: absolute;
17
+ top: 0;
18
+ transition: all 0.5s ease 0s;
19
+ width: 0;
20
+ }
21
+
22
+ .wlspcial-banner .banner-thumb a::after {
23
+ background: #ffffff none repeat scroll 0 0;
24
+ bottom: 0;
25
+ content: "";
26
+ height: 0;
27
+ opacity: 0;
28
+ pointer-events: none;
29
+ position: absolute;
30
+ right: 0;
31
+ transition: all 0.5s ease 0s;
32
+ width: 0;
33
+ }
34
+
35
+ .wlspcial-banner .banner-thumb a img {
36
+ width: 100%;
37
+ }
38
+
39
+ .wlspcial-banner:hover .banner-thumb a::before {
40
+ height: 100%;
41
+ opacity: 0.3;
42
+ width: 100%;
43
+ }
44
+
45
+ .wlspcial-banner:hover .banner-thumb a::after {
46
+ height: 100%;
47
+ opacity: 0.3;
48
+ width: 100%;
49
+ }
50
+
51
+ .wlspcial-banner {
52
+ position: relative;
53
+ }
54
+
55
+ .wlspcial-banner .banner-content{
56
+ position: absolute;
57
+ z-index: 2;
58
+ width: 100%;
59
+ text-align: center;
60
+ }
61
+
62
+ .wlspcial-banner .banner-content a {
63
+ color: #383838;
64
+ font-size: 14px;
65
+ font-weight: 700;
66
+ text-transform: uppercase;
67
+ transition: all 0.4s ease 0s;
68
+ text-decoration: none;
69
+ display: inline-block;
70
+ }
71
+
72
+ .woolentor-banner-content-pos-center .banner-content{
73
+ top: 50%;
74
+ right: 0;
75
+ left: auto;
76
+ transform: translateY(-50%);
77
+ }
78
+
79
+ .woolentor-banner-content-pos-bottom .banner-content {
80
+ bottom: 0;
81
+ padding-bottom: 40px;
82
+ }
83
+
84
+ .woolentor-banner-content-pos-top .banner-content {
85
+ top: 0;
86
+ padding-top: 40px;
87
+ }
88
+
89
+ .wlspcial-banner.woolentor-banner-content-pos-right .banner-content {
90
+ top: 50%;
91
+ right: 0;
92
+ width: auto;
93
+ transform: translateY(-50%);
94
+ }
95
+ .wlspcial-banner.woolentor-banner-content-pos-left .banner-content {
96
+ top: 50%;
97
+ left: 0;
98
+ width: auto;
99
+ transform: translateY(-50%);
100
+ }
101
+ .wlbanner-badgeimage {
102
+ position: absolute;
103
+ top: 0;
104
+ left: 0;
105
+ display: inline-block;
106
+ }
107
+ .wlbanner-badgeimage img{
108
+ width: 100%;
109
+ }
woolentor-blocks/src/blocks/store-feature/index.php CHANGED
@@ -46,9 +46,7 @@ class WooLentorBlocks_Store_Feature{
46
  $metadata['name'],
47
  array(
48
  'attributes' => $metadata['attributes'],
49
- 'render_callback' => [ $this, 'render_content' ],
50
- 'editor_style' => 'woolentor-store-feature',
51
- 'style' => 'woolentor-store-feature'
52
  )
53
  );
54
 
@@ -56,7 +54,7 @@ class WooLentorBlocks_Store_Feature{
56
 
57
  public function render_content( $settings, $content ){
58
 
59
- $uniqClass = 'woolentor-'.$settings['blockUniqId'];
60
  $areaClasses = array('woolentor-store-feature-area');
61
  $classes = array( $uniqClass, 'woolentor-blocks ht-feature-wrap' );
62
 
@@ -68,53 +66,10 @@ class WooLentorBlocks_Store_Feature{
68
 
69
  $store_image = !empty( $settings['featureImage']['id'] ) ? wp_get_attachment_image( $settings['featureImage']['id'], 'full' ) : '';
70
 
71
- /** Custom Styles */
72
- $areaBorderColor = woolentorBlocks_generate_css( $settings, 'areaBorderColor', 'border-color' );
73
- $areaHoverBorderColor = woolentorBlocks_generate_css( $settings, 'areaHoverBorderColor', 'border-color', ' !important' );
74
- $areaBackgroundColor = woolentorBlocks_generate_css( $settings, 'areaBackgroundColor', 'background-color' );
75
- $areaMargin = woolentorBlocks_Dimention_Control( $settings, 'areaMargin', 'margin' );
76
- $areaPadding = woolentorBlocks_Dimention_Control( $settings, 'areaPadding', 'padding' );
77
-
78
- $titleColor = woolentorBlocks_generate_css( $settings, 'titleColor', 'color' );
79
- $titleSize = woolentorBlocks_generate_css( $settings, 'titleSize', 'font-size' );
80
- $titleMargin = woolentorBlocks_Dimention_Control( $settings, 'titleMargin', 'margin' );
81
-
82
- $subTitleColor = woolentorBlocks_generate_css( $settings, 'subTitleColor', 'color' );
83
- $subTitleSize = woolentorBlocks_generate_css( $settings, 'subTitleSize', 'font-size' );
84
- $subTitleMargin = woolentorBlocks_Dimention_Control( $settings, 'subTitleMargin', 'margin' );
85
-
86
- $all_styles = "
87
-
88
- .{$uniqClass}.ht-feature-wrap{
89
- {$areaBackgroundColor}
90
- }
91
- .{$uniqClass}.ht-feature-wrap .ht-feature-inner{
92
- {$areaBorderColor}
93
- {$areaMargin}
94
- {$areaPadding}
95
- }
96
- .{$uniqClass}.ht-feature-wrap:hover .ht-feature-inner{
97
- {$areaHoverBorderColor}
98
- }
99
- .{$uniqClass}.ht-feature-wrap .ht-feature-content h4{
100
- {$titleColor}
101
- {$titleSize}
102
- {$titleMargin}
103
- }
104
- .{$uniqClass}.ht-feature-wrap .ht-feature-content p{
105
- {$subTitleColor}
106
- {$subTitleSize}
107
- {$subTitleMargin}
108
- }
109
-
110
- ";
111
-
112
  ob_start();
113
  ?>
114
- <style><?php echo $all_styles; ?></style>
115
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
116
  <div class="<?php echo implode(' ', $classes ); ?>">
117
-
118
  <div class="ht-feature-inner">
119
  <?php
120
  if( !empty( $store_image ) ){
@@ -132,7 +87,6 @@ class WooLentorBlocks_Store_Feature{
132
  ?>
133
  </div>
134
  </div>
135
-
136
  </div>
137
  </div>
138
  <?php
46
  $metadata['name'],
47
  array(
48
  'attributes' => $metadata['attributes'],
49
+ 'render_callback' => [ $this, 'render_content' ]
 
 
50
  )
51
  );
52
 
54
 
55
  public function render_content( $settings, $content ){
56
 
57
+ $uniqClass = 'woolentorblock-'.$settings['blockUniqId'];
58
  $areaClasses = array('woolentor-store-feature-area');
59
  $classes = array( $uniqClass, 'woolentor-blocks ht-feature-wrap' );
60
 
66
 
67
  $store_image = !empty( $settings['featureImage']['id'] ) ? wp_get_attachment_image( $settings['featureImage']['id'], 'full' ) : '';
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  ob_start();
70
  ?>
 
71
  <div class="<?php echo implode(' ', $areaClasses ); ?>">
72
  <div class="<?php echo implode(' ', $classes ); ?>">
 
73
  <div class="ht-feature-inner">
74
  <?php
75
  if( !empty( $store_image ) ){
87
  ?>
88
  </div>
89
  </div>
 
90
  </div>
91
  </div>
92
  <?php
woolentor-blocks/src/blocks/store-feature/style.css ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ht-feature-wrap {
2
+ position: relative;
3
+ text-align: center;
4
+ }
5
+ .ht-feature-style-1 .ht-feature-inner {
6
+ border: 1px solid #e8e8e8;
7
+ padding: 25px 15px 20px;
8
+ transition: all 0.3s ease 0s;
9
+ }
10
+ .ht-feature-wrap .ht-feature-content h4 {
11
+ display: block;
12
+ font-size: 18px;
13
+ font-weight: 500;
14
+ margin-bottom: 6px;
15
+ line-height: 1;
16
+ color: #000000;
17
+ }
18
+ .ht-feature-wrap .ht-feature-content p {
19
+ font-size: 15px;
20
+ color: #6d6d6d;
21
+ margin: 0;
22
+ }
23
+ .ht-feature-wrap .ht-feature-img {
24
+ margin-bottom: 20px;
25
+ display: inline-block;
26
+ }
27
+ .ht-feature-wrap .ht-feature-img img {
28
+ max-width: 100%;
29
+ transition: all 0.5s ease 0s;
30
+ }
31
+ .ht-feature-wrap .ht-feature-img i {
32
+ font-size: 32px;
33
+ color: #dc9a0e;
34
+ display: inline-block;
35
+ }
36
+ .ht-feature-wrap .ht-feature-img svg{
37
+ width: 32px;
38
+ height: 32px;
39
+ }
40
+ .ht-feature-style-2 .ht-feature-inner{
41
+ display: flex;
42
+ align-items: center;
43
+ border: none;
44
+ padding: 0;
45
+ text-align: left;
46
+ }
47
+ .ht-feature-style-2 .ht-feature-content{
48
+ padding-left: 30px;
49
+ margin-left: 24px;
50
+ border-left: 1px solid #ddd9d2;
51
+ }
52
+ .ht-feature-wrap.ht-feature-style-2:hover .ht-feature-img {
53
+ animation: 500ms ease-in-out 0s normal none 1 running rubberBand;
54
+ }
55
+ .ht-feature-style-2 .ht-feature-content {
56
+ padding-left: 30px;
57
+ width: 100%;
58
+ }
59
+ .ht-feature-style-2 .ht-feature-content h4,.ht-feature-style-5 .ht-feature-content h4 {
60
+ font-size: 20px;
61
+ margin: 0 0 12px;
62
+ line-height: 1;
63
+ color: #000000;
64
+ }
65
+ .ht-feature-style-2 .ht-feature-content p {
66
+ margin: 0;
67
+ font-size: 15px;
68
+ color: #6d6d6d;
69
+ }
70
+ .ht-feature-style-2 .ht-feature-img{
71
+ margin: 0;
72
+ }
73
+ .ht-feature-wrap.ht-feature-style-1:hover .ht-feature-inner {
74
+ border: 1px solid #dc9a0e;
75
+ }
76
+ .ht-feature-wrap.ht-feature-style-1:hover .ht-feature-img img,
77
+ .ht-feature-style-5:hover .ht-feature-img{
78
+ animation: 500ms ease-in-out 0s normal none 1 running tada;
79
+ }
80
+ .ht-feature-style-3 .ht-feature-img{
81
+ display: inline-block;
82
+ border: 1px solid #000000;
83
+ width: 55px;
84
+ height: 55px;
85
+ line-height: 55px;
86
+ text-align: center;
87
+ border-radius: 100%;
88
+ transition: all 0.5s ease 0s;
89
+ }
90
+ .ht-feature-style-3 .ht-feature-img img{
91
+ border-radius: 100%;
92
+ }
93
+ .woolentor-blocks.ht-feature-style-3 .ht-feature-img{
94
+ line-height: 48px;
95
+ }
96
+ .ht-feature-style-3 .ht-feature-img i{
97
+ font-size: 20px;
98
+ color: #000000;
99
+ }
100
+ .ht-feature-style-3:hover .ht-feature-img{
101
+ background-color: #dc9a0e;
102
+ border: 1px solid #dc9a0e;
103
+ transform: rotate(360deg);
104
+ }
105
+ .ht-feature-style-3:hover .ht-feature-img i{
106
+ color: #ffffff;
107
+ }
108
+ .ht-feature-style-3 .ht-feature-content h4,.ht-feature-style-4 .ht-feature-content h4 {
109
+ display: block;
110
+ font-size: 18px;
111
+ font-weight: 500;
112
+ margin-bottom: 14px;
113
+ line-height: 1;
114
+ color: #000000;
115
+ }
116
+ .ht-feature-style-3 .ht-feature-content p,.ht-feature-style-4 .ht-feature-content p {
117
+ color: #6d6d6d;
118
+ line-height: 27px;
119
+ margin: 0 auto;
120
+ font-size: 15px;
121
+ width: 82%;
122
+ }
123
+ .ht-feature-style-4{
124
+ text-align: left;
125
+ }
126
+ .ht-feature-style-4 .ht-feature-content {
127
+ border-top: 1px solid #ebebeb;
128
+ margin-top: 25px;
129
+ padding-top:25px;
130
+ }
131
+ .ht-feature-style-4 .ht-feature-content p{
132
+ width: 100%;
133
+ }
134
+ .ht-feature-style-4 .ht-feature-img{
135
+ display: inline-block;
136
+ background-color: #e9ecef;
137
+ width: 60px;
138
+ height: 60px;
139
+ line-height: 60px;
140
+ text-align: center;
141
+ border-radius: 100%;
142
+ transition: all 0.5s ease 0s;
143
+ margin: 0;
144
+ }
145
+ .ht-feature-style-4 .ht-feature-img i {
146
+ font-size: 20px;
147
+ color: #000000;
148
+ }
149
+ .ht-feature-style-4:hover .ht-feature-img{
150
+ background-color: #dc9a0e;
151
+ transform: rotateY(180deg);
152
+ }
153
+ .ht-feature-style-4:hover .ht-feature-img i{
154
+ color: #ffffff;
155
+ }
156
+ .ht-feature-style-5 .ht-feature-img {
157
+ position: absolute;
158
+ right: 0;
159
+ bottom: 0;
160
+ margin: 0;
161
+ width: 120px;
162
+ }
163
+ .ht-feature-style-5 .ht-feature-img img {
164
+ max-width: 100%;
165
+ }
woolentor_addons_elementor.php CHANGED
@@ -3,21 +3,21 @@
3
  * Plugin Name: WooLentor - WooCommerce Elementor Addons + Builder
4
  * Description: The WooCommerce elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://woolentor.com/
6
- * Version: 1.9.5
7
  * Author: HasThemes
8
  * Author URI: https://hasthemes.com/plugins/woolentor-pro/
9
  * License: GPL-2.0+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  * Text Domain: woolentor
12
  * Domain Path: /languages
13
- * WC tested up to: 5.5.2
14
- * Elementor tested up to: 3.3.1
15
  * Elementor Pro tested up to: 3.3.4
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
 
20
- define( 'WOOLENTOR_VERSION', '1.9.5' );
21
  define( 'WOOLENTOR_ADDONS_PL_ROOT', __FILE__ );
22
  define( 'WOOLENTOR_ADDONS_PL_URL', plugins_url( '/', WOOLENTOR_ADDONS_PL_ROOT ) );
23
  define( 'WOOLENTOR_ADDONS_PL_PATH', plugin_dir_path( WOOLENTOR_ADDONS_PL_ROOT ) );
3
  * Plugin Name: WooLentor - WooCommerce Elementor Addons + Builder
4
  * Description: The WooCommerce elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://woolentor.com/
6
+ * Version: 1.9.6
7
  * Author: HasThemes
8
  * Author URI: https://hasthemes.com/plugins/woolentor-pro/
9
  * License: GPL-2.0+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  * Text Domain: woolentor
12
  * Domain Path: /languages
13
+ * WC tested up to: 5.6.0
14
+ * Elementor tested up to: 3.4.3
15
  * Elementor Pro tested up to: 3.3.4
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
 
20
+ define( 'WOOLENTOR_VERSION', '1.9.6' );
21
  define( 'WOOLENTOR_ADDONS_PL_ROOT', __FILE__ );
22
  define( 'WOOLENTOR_ADDONS_PL_URL', plugins_url( '/', WOOLENTOR_ADDONS_PL_ROOT ) );
23
  define( 'WOOLENTOR_ADDONS_PL_PATH', plugin_dir_path( WOOLENTOR_ADDONS_PL_ROOT ) );