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.3

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.3
Comparing to
See all releases

Code changes from version 1.9.5 to 1.9.3

Files changed (62) hide show
  1. assets/css/woolentor-widgets.css +38 -114
  2. assets/js/accordion.min.js +8 -8
  3. assets/js/select2.min.js +1 -1
  4. assets/lib/css/magnific-popup.css +4 -4
  5. assets/lib/iconpicker/css/iconpicker.svg +18 -18
  6. assets/lib/iconpicker/css/jquery.fonticonpicker.bootstrap.min.css +2 -2
  7. assets/lib/iconpicker/css/jquery.fonticonpicker.min.css +2 -2
  8. assets/lib/iconpicker/js/jquery.fonticonpicker.min.js +12 -12
  9. assets/lib/js/magnific-popup.js +6 -6
  10. classes/class.ajax_actions.php +135 -135
  11. classes/class.default_data.php +1 -1
  12. classes/class.icon_list.php +218 -218
  13. includes/addons/product_accordion.php +1 -1
  14. includes/addons/wb_archive_product.php +1 -1
  15. includes/addons/wb_ever_compare_table.php +205 -205
  16. includes/addons/wb_just_table.php +156 -156
  17. includes/addons/wb_product_upsell.php +1 -2
  18. includes/addons/wb_wc_multicurrency.php +105 -105
  19. includes/addons/wb_whols.php +93 -93
  20. includes/addons/wb_wishsuite_table.php +143 -143
  21. includes/addons/wl_brand.php +3 -3
  22. includes/addons/wl_category_grid.php +2 -1
  23. includes/addons/wl_faq.php +2 -2
  24. includes/addons/wl_product_filter.php +2 -2
  25. includes/addons/wl_product_horizontal_filter.php +10 -16
  26. includes/addons/wl_testimonial.php +2 -2
  27. includes/admin/assets/css/admin_optionspanel.css +8 -17
  28. includes/admin/assets/images/pricing/life_time_agency.png +0 -0
  29. includes/admin/assets/images/pricing/life_time_five_website.png +0 -0
  30. includes/admin/assets/images/pricing/life_time_single_website.png +0 -0
  31. includes/admin/assets/images/pricing/one_year_agency.png +0 -0
  32. includes/admin/assets/images/pricing/one_year_five_website.png +0 -0
  33. includes/admin/assets/images/pricing/one_year_single_website.png +0 -0
  34. includes/admin/include/admin-setting.php +57 -57
  35. includes/admin/include/class.extension-manager.php +363 -363
  36. includes/base.php +1 -14
  37. languages/woolentor.pot +78 -153
  38. readme.txt +1 -11
  39. woolentor-blocks/build/index.asset.php +1 -1
  40. woolentor-blocks/build/index.js +1 -1
  41. woolentor-blocks/includes/classes/Actions.php +0 -47
  42. woolentor-blocks/includes/classes/Api/Api.php +0 -72
  43. woolentor-blocks/includes/classes/Blocks_init.php +51 -51
  44. woolentor-blocks/includes/classes/Scripts.php +97 -108
  45. woolentor-blocks/includes/helper-functions.php +67 -111
  46. woolentor-blocks/src/assets/css/editor-style.css +160 -193
  47. woolentor-blocks/src/assets/css/style-index.css +16 -89
  48. woolentor-blocks/src/assets/js/script.js +2 -2
  49. woolentor-blocks/src/blocks/brand-logo/block.json +6 -12
  50. woolentor-blocks/src/blocks/brand-logo/index.php +142 -148
  51. woolentor-blocks/src/blocks/category-grid/block.json +0 -181
  52. woolentor-blocks/src/blocks/category-grid/index.php +0 -326
  53. woolentor-blocks/src/blocks/image-marker/block.json +6 -12
  54. woolentor-blocks/src/blocks/image-marker/index.php +147 -151
  55. woolentor-blocks/src/blocks/product-tab/block.json +0 -147
  56. woolentor-blocks/src/blocks/product-tab/index.php +0 -448
  57. woolentor-blocks/src/blocks/special-day-offer/block.json +11 -22
  58. woolentor-blocks/src/blocks/special-day-offer/index.php +196 -196
  59. woolentor-blocks/src/blocks/store-feature/block.json +4 -8
  60. woolentor-blocks/src/blocks/store-feature/index.php +137 -142
  61. woolentor-blocks/woolentor-blocks.php +87 -88
  62. woolentor_addons_elementor.php +2 -2
assets/css/woolentor-widgets.css CHANGED
@@ -2053,48 +2053,29 @@
2053
  display: block;
2054
  }
2055
 
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;
2062
- float: left;
2063
  }
2064
 
2065
- .woolentorducts-columns-5 ul.products li.product{
2066
- width: calc(19% - 30px) !important;
2067
- margin-right: 30px !important;
2068
- float: left;
2069
- }
2070
- .woolentorducts-columns-4 ul.products li.product{
2071
- width: calc(25% - 30px) !important;
2072
- margin-right: 30px !important;
2073
- float: left;
2074
  }
2075
- .woolentorducts-columns-3 ul.products li.product{
2076
- width: calc(33.33% - 30px) !important;
2077
- margin-right: 30px !important;
2078
- float: left;
2079
  }
2080
- .woolentorducts-columns-2 ul.products li.product{
2081
- width: calc(50% - 30px) !important;
2082
- margin-right: 30px !important;
2083
- float: left;
2084
  }
2085
- .woolentorducts-columns-1 ul.products li.product{
2086
  width: 100% !important;
2087
  }
2088
- [class*="woolentorducts-columns-"] ul.products li.product.first{
2089
- clear: none !important;
2090
- }
2091
- .woolentorducts-columns-6 ul.products li.product:nth-child(6n),
2092
- .woolentorducts-columns-5 ul.products li.product:nth-child(5n),
2093
- .woolentorducts-columns-4 ul.products li.product:nth-child(4n),
2094
- .woolentorducts-columns-3 ul.products li.product:nth-child(3n),
2095
- .woolentorducts-columns-2 ul.products li.product:nth-child(2n),
2096
- .woolentorducts-columns-1 ul.products li.product{
2097
- margin-right: 0;
2098
  }
2099
 
2100
  .woocommerce #content div.product .woolentor-woo-template-builder div.images,.woocommerce div.product .woolentor-woo-template-builder div.images {
@@ -5039,51 +5020,22 @@ div[class*="woolentor-single-select-drop"] .select2-results__option::before{
5039
  flex: 0 0 10%;
5040
  max-width: 10%;
5041
  }
5042
-
5043
- [class*="woolentorducts-columns-"] ul.products li.product{
5044
- width: calc(50% - 15px) !important;
5045
- margin-right: 15px !important;
5046
- }
5047
- .woolentorducts-columns-tablet-1 ul.products li.product{
5048
- width: 100% !important;
5049
- margin-right: 0 !important;
5050
- }
5051
- .woolentorducts-columns-tablet-2 ul.products li.product{
5052
- width: calc(50% - 15px) !important;
5053
  margin-right: 15px !important;
5054
- float: left;
5055
  }
5056
- .woolentorducts-columns-tablet-3 ul.products li.product{
 
5057
  width: calc(33.33% - 15px) !important;
5058
  margin-right: 15px !important;
5059
- float: left;
5060
  }
5061
- .woolentorducts-columns-tablet-4 ul.products li.product{
5062
- width: calc(25% - 15px) !important;
5063
- margin-right: 15px !important;
5064
- float: left;
5065
- }
5066
- .woolentorducts-columns-tablet-5 ul.products li.product{
5067
- width: calc(19% - 15px) !important;
5068
- margin-right: 15px !important;
5069
- float: left;
5070
- }
5071
- .woolentorducts-columns-tablet-6 ul.products li.product{
5072
- width: calc(16% - 15px) !important;
5073
- margin-right: 15px !important;
5074
- float: left;
5075
- }
5076
-
5077
- [class*="woolentorducts-columns-tablet-"] ul.products li.product.first{
5078
- clear: none !important;
5079
- }
5080
- .woolentorducts-columns-tablet-6 ul.products li.product:nth-child(6n),
5081
- .woolentorducts-columns-tablet-5 ul.products li.product:nth-child(5n),
5082
- .woolentorducts-columns-tablet-4 ul.products li.product:nth-child(4n),
5083
- .woolentorducts-columns-tablet-3 ul.products li.product:nth-child(3n),
5084
- .woolentorducts-columns-tablet-2 ul.products li.product:nth-child(2n),
5085
- .woolentorducts-columns-tablet-1 ul.products li.product{
5086
- margin-right: 0 !important;
5087
  }
5088
 
5089
  }
@@ -5198,49 +5150,21 @@ div[class*="woolentor-single-select-drop"] .select2-results__option::before{
5198
  padding-right: 15px;
5199
  }
5200
 
5201
- [class*="woolentorducts-columns-"] ul.products li.product{
5202
- width: 100% !important;
5203
- }
5204
- .woolentorducts-columns-mobile-1 ul.products li.product{
5205
- width: 100% !important;
5206
- margin-right: 0 !important;
5207
- }
5208
- .woolentorducts-columns-mobile-2 ul.products li.product{
5209
- width: calc(50% - 15px) !important;
5210
  margin-right: 15px !important;
5211
- float: left;
5212
- }
5213
- .woolentorducts-columns-mobile-3 ul.products li.product{
5214
- width: calc(33.33% - 15px) !important;
5215
- margin-right: 15px !important;
5216
- float: left;
5217
  }
5218
- .woolentorducts-columns-mobile-4 ul.products li.product{
5219
- width: calc(25% - 15px) !important;
5220
- margin-right: 15px !important;
5221
- float: left;
5222
- }
5223
- .woolentorducts-columns-mobile-5 ul.products li.product{
5224
- width: calc(19% - 15px) !important;
5225
- margin-right: 15px !important;
5226
- float: left;
5227
- }
5228
- .woolentorducts-columns-mobile-6 ul.products li.product{
5229
- width: calc(16% - 15px) !important;
5230
  margin-right: 15px !important;
5231
- float: left;
5232
  }
5233
-
5234
- [class*="woolentorducts-columns-mobile-"] ul.products li.product.first{
5235
- clear: none !important;
5236
- }
5237
- .woolentorducts-columns-mobile-6 ul.products li.product:nth-child(6n),
5238
- .woolentorducts-columns-mobile-5 ul.products li.product:nth-child(5n),
5239
- .woolentorducts-columns-mobile-4 ul.products li.product:nth-child(4n),
5240
- .woolentorducts-columns-mobile-3 ul.products li.product:nth-child(3n),
5241
- .woolentorducts-columns-mobile-2 ul.products li.product:nth-child(2n),
5242
- .woolentorducts-columns-mobile-1 ul.products li.product{
5243
- margin-right: 0 !important;
5244
  }
5245
 
5246
  }
2053
  display: block;
2054
  }
2055
 
2056
+ .elementor-widget-wl-product-related.woolentorducts-columns-6 .related.products ul.products li.product{
2057
+ width: calc(16% - 15px) !important;
 
 
 
 
 
2058
  }
2059
 
2060
+ .elementor-widget-wl-product-related.woolentorducts-columns-5 .related.products ul.products li.product{
2061
+ width: calc(19% - 15px) !important;
 
 
 
 
 
 
 
2062
  }
2063
+ .elementor-widget-wl-product-related.woolentorducts-columns-3 .related.products ul.products li.product{
2064
+ width: calc(33.33% - 15px) !important;
 
 
2065
  }
2066
+ .elementor-widget-wl-product-related.woolentorducts-columns-2 .related.products ul.products li.product{
2067
+ width: calc(50% - 15px) !important;
 
 
2068
  }
2069
+ .elementor-widget-wl-product-related.woolentorducts-columns-1 .related.products ul.products li.product{
2070
  width: 100% !important;
2071
  }
2072
+ .elementor-widget-wl-product-related.woolentorducts-columns-6 .related.products ul.products li.product:nth-child(6n),
2073
+ .elementor-widget-wl-product-related.woolentorducts-columns-5 .related.products ul.products li.product:nth-child(5n),
2074
+ .elementor-widget-wl-product-related.woolentorducts-columns-4 .related.products ul.products li.product:nth-child(4n),
2075
+ .elementor-widget-wl-product-related.woolentorducts-columns-3 .related.products ul.products li.product:nth-child(3n),
2076
+ .elementor-widget-wl-product-related.woolentorducts-columns-2 .related.products ul.products li.product:nth-child(2n),
2077
+ .elementor-widget-wl-product-related.woolentorducts-columns-1 .related.products ul.products li.product{
2078
+ margin-right: 0 !important;
 
 
 
2079
  }
2080
 
2081
  .woocommerce #content div.product .woolentor-woo-template-builder div.images,.woocommerce div.product .woolentor-woo-template-builder div.images {
5020
  flex: 0 0 10%;
5021
  max-width: 10%;
5022
  }
5023
+
5024
+ .elementor-widget-wl-product-related.woolentorducts-columns-6 .related.products ul.products li.product:nth-child(6n),
5025
+ .elementor-widget-wl-product-related.woolentorducts-columns-5 .related.products ul.products li.product:nth-child(5n),
5026
+ .elementor-widget-wl-product-related.woolentorducts-columns-4 .related.products ul.products li.product:nth-child(4n),
5027
+ .elementor-widget-wl-product-related.woolentorducts-columns-3 .related.products ul.products li.product:nth-child(3n),
5028
+ .elementor-widget-wl-product-related.woolentorducts-columns-2 .related.products ul.products li.product:nth-child(2n){
 
 
 
 
 
5029
  margin-right: 15px !important;
 
5030
  }
5031
+
5032
+ .elementor-widget-wl-product-related[class*="woolentorducts-columns-"] .related.products ul.products li.product{
5033
  width: calc(33.33% - 15px) !important;
5034
  margin-right: 15px !important;
 
5035
  }
5036
+
5037
+ .elementor-widget-wl-product-related[class*="woolentorducts-columns-"] .related.products ul.products li.product:nth-child(3n){
5038
+ margin-right: 0 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5039
  }
5040
 
5041
  }
5150
  padding-right: 15px;
5151
  }
5152
 
5153
+ .elementor-widget-wl-product-related.woolentorducts-columns-6 .related.products ul.products li.product:nth-child(6n),
5154
+ .elementor-widget-wl-product-related.woolentorducts-columns-5 .related.products ul.products li.product:nth-child(5n),
5155
+ .elementor-widget-wl-product-related.woolentorducts-columns-4 .related.products ul.products li.product:nth-child(4n),
5156
+ .elementor-widget-wl-product-related.woolentorducts-columns-3 .related.products ul.products li.product:nth-child(3n),
5157
+ .elementor-widget-wl-product-related.woolentorducts-columns-2 .related.products ul.products li.product:nth-child(2n){
 
 
 
 
5158
  margin-right: 15px !important;
 
 
 
 
 
 
5159
  }
5160
+
5161
+ .elementor-widget-wl-product-related[class*="woolentorducts-columns-"] .related.products ul.products li.product{
5162
+ width: calc(50% - 15px) !important;
 
 
 
 
 
 
 
 
 
5163
  margin-right: 15px !important;
 
5164
  }
5165
+
5166
+ .elementor-widget-wl-product-related[class*="woolentorducts-columns-"] .related.products ul.products li.product:nth-child(2n){
5167
+ margin-right: 0 !important;
 
 
 
 
 
 
 
 
5168
  }
5169
 
5170
  }
assets/js/accordion.min.js CHANGED
@@ -1,9 +1,9 @@
1
- /*!
2
- * Accordion v2.8.0
3
- * Simple accordion created in pure Javascript.
4
- * https://github.com/michu2k/Accordion
5
- *
6
- * Copyright 2017-2019 Michał Strumpf
7
- * Published under MIT License
8
- */
9
  "use strict";!function(i){function u(o,l){var c=this,t={init:function(){if(Array.isArray(o))return o.length&&o.map(function(e){return new u(e,l)}),!1;this.options=h({duration:600,itemNumber:0,aria:!0,closeOthers:!0,showItem:!1,elementClass:"ac",questionClass:"ac-q",answerClass:"ac-a",targetClass:"ac-target",onToggle:function(){}},l),this.container=document.querySelector(o),this.elements=this.container.querySelectorAll("."+this.options.elementClass);var e=this.options,t=e.aria,n=e.showItem,i=e.itemNumber;t&&this.container.setAttribute("role","tablist");for(var s=0;s<this.elements.length;s++){var r=this.elements[s];r.classList.add("js-enabled"),this.hideElement(r),this.setTransition(r),this.generateID(r),t&&this.setARIA(r)}if(n){var a=this.elements[0];"number"==typeof i&&i<this.elements.length&&(a=this.elements[i]),this.toggleElement(a,!1)}c.attachEvents()},setTransition:function(e){var t=this.options,n=t.duration,i=t.answerClass,s=e.querySelector("."+i),r=a("transition");s.style[r]=n+"ms"},generateID:function(e){e.setAttribute("id","ac-".concat(s)),s++},setARIA:function(e){var t=this.options,n=t.questionClass,i=t.answerClass,s=e.querySelector("."+n),r=e.querySelector("."+i);s.setAttribute("role","tab"),s.setAttribute("aria-expanded","false"),r.setAttribute("role","tabpanel")},updateARIA:function(e,t){var n=this.options.questionClass;e.querySelector("."+n).setAttribute("aria-expanded",t)},callSpecificElement:function(e){for(var t=e.target,n=this.options,i=n.questionClass,s=n.targetClass,r=n.closeOthers,a=0;a<this.elements.length;a++)if(this.elements[a].contains(t)){(t.className.match(i)||t.className.match(s))&&(e.preventDefault(),r&&this.closeAllElements(a),this.toggleElement(this.elements[a]));break}},hideElement:function(e){var t=this.options.answerClass;e.querySelector("."+t).style.height=0},toggleElement:function(e,t){var n,i=!(1<arguments.length&&void 0!==t)||t,s=this.options,r=s.answerClass,a=s.aria,o=s.onToggle,l=e.querySelector("."+r),c=l.scrollHeight;e.classList.toggle("is-active"),i||(l.style.height="auto"),0<parseInt(l.style.height)?(n=!1,requestAnimationFrame(function(){l.style.height=0})):(n=!0,requestAnimationFrame(function(){l.style.height=c+"px"})),a&&this.updateARIA(e,n),i&&o(e,this.elements)},closeAllElements:function(e){for(var t=this.options.aria,n=this.elements.length,i=0;i<n;i++)if(i!=e){var s=this.elements[i];s.classList.contains("is-active")&&s.classList.remove("is-active"),t&&this.updateARIA(s,!1),this.hideElement(s)}},resizeHandler:function(){for(var e,t,n=this.options,i=n.elementClass,s=n.answerClass,r=this.container.querySelectorAll("."+i+".is-active"),a=0;a<r.length;a++)t=r[a].querySelector("."+s),requestAnimationFrame(function(){t.style.height="auto",e=t.offsetHeight,requestAnimationFrame(function(){t.style.height=e+"px"})})},clickHandler:function(e){this.callSpecificElement(e)},keydownHandler:function(e){13===e.keyCode&&this.callSpecificElement(e)}};this.attachEvents=function(){var e=t;e.clickHandler=e.clickHandler.bind(e),e.keydownHandler=e.keydownHandler.bind(e),e.resizeHandler=e.resizeHandler.bind(e),e.container.addEventListener("click",e.clickHandler),e.container.addEventListener("keydown",e.keydownHandler),i.addEventListener("resize",e.resizeHandler)},this.detachEvents=function(){var e=t;e.container.removeEventListener("click",e.clickHandler),e.container.removeEventListener("keydown",e.keydownHandler),i.removeEventListener("resize",e.resizeHandler)};var a=function(e){return"string"==typeof document.documentElement.style[e]?e:(e=n(e),e="webkit".concat(e))},n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},h=function(e,t){for(var n in t)e[n]=t[n];return e};i.requestAnimationFrame=i.requestAnimationFrame||i.webkitRequestAnimationFrame||function(e){i.setTimeout(e,1e3/60)},t.init()}var s=0;"undefined"!=typeof module&&void 0!==module.exports?module.exports=u:i.Accordion=u}(window);
1
+ /*!
2
+ * Accordion v2.8.0
3
+ * Simple accordion created in pure Javascript.
4
+ * https://github.com/michu2k/Accordion
5
+ *
6
+ * Copyright 2017-2019 Michał Strumpf
7
+ * Published under MIT License
8
+ */
9
  "use strict";!function(i){function u(o,l){var c=this,t={init:function(){if(Array.isArray(o))return o.length&&o.map(function(e){return new u(e,l)}),!1;this.options=h({duration:600,itemNumber:0,aria:!0,closeOthers:!0,showItem:!1,elementClass:"ac",questionClass:"ac-q",answerClass:"ac-a",targetClass:"ac-target",onToggle:function(){}},l),this.container=document.querySelector(o),this.elements=this.container.querySelectorAll("."+this.options.elementClass);var e=this.options,t=e.aria,n=e.showItem,i=e.itemNumber;t&&this.container.setAttribute("role","tablist");for(var s=0;s<this.elements.length;s++){var r=this.elements[s];r.classList.add("js-enabled"),this.hideElement(r),this.setTransition(r),this.generateID(r),t&&this.setARIA(r)}if(n){var a=this.elements[0];"number"==typeof i&&i<this.elements.length&&(a=this.elements[i]),this.toggleElement(a,!1)}c.attachEvents()},setTransition:function(e){var t=this.options,n=t.duration,i=t.answerClass,s=e.querySelector("."+i),r=a("transition");s.style[r]=n+"ms"},generateID:function(e){e.setAttribute("id","ac-".concat(s)),s++},setARIA:function(e){var t=this.options,n=t.questionClass,i=t.answerClass,s=e.querySelector("."+n),r=e.querySelector("."+i);s.setAttribute("role","tab"),s.setAttribute("aria-expanded","false"),r.setAttribute("role","tabpanel")},updateARIA:function(e,t){var n=this.options.questionClass;e.querySelector("."+n).setAttribute("aria-expanded",t)},callSpecificElement:function(e){for(var t=e.target,n=this.options,i=n.questionClass,s=n.targetClass,r=n.closeOthers,a=0;a<this.elements.length;a++)if(this.elements[a].contains(t)){(t.className.match(i)||t.className.match(s))&&(e.preventDefault(),r&&this.closeAllElements(a),this.toggleElement(this.elements[a]));break}},hideElement:function(e){var t=this.options.answerClass;e.querySelector("."+t).style.height=0},toggleElement:function(e,t){var n,i=!(1<arguments.length&&void 0!==t)||t,s=this.options,r=s.answerClass,a=s.aria,o=s.onToggle,l=e.querySelector("."+r),c=l.scrollHeight;e.classList.toggle("is-active"),i||(l.style.height="auto"),0<parseInt(l.style.height)?(n=!1,requestAnimationFrame(function(){l.style.height=0})):(n=!0,requestAnimationFrame(function(){l.style.height=c+"px"})),a&&this.updateARIA(e,n),i&&o(e,this.elements)},closeAllElements:function(e){for(var t=this.options.aria,n=this.elements.length,i=0;i<n;i++)if(i!=e){var s=this.elements[i];s.classList.contains("is-active")&&s.classList.remove("is-active"),t&&this.updateARIA(s,!1),this.hideElement(s)}},resizeHandler:function(){for(var e,t,n=this.options,i=n.elementClass,s=n.answerClass,r=this.container.querySelectorAll("."+i+".is-active"),a=0;a<r.length;a++)t=r[a].querySelector("."+s),requestAnimationFrame(function(){t.style.height="auto",e=t.offsetHeight,requestAnimationFrame(function(){t.style.height=e+"px"})})},clickHandler:function(e){this.callSpecificElement(e)},keydownHandler:function(e){13===e.keyCode&&this.callSpecificElement(e)}};this.attachEvents=function(){var e=t;e.clickHandler=e.clickHandler.bind(e),e.keydownHandler=e.keydownHandler.bind(e),e.resizeHandler=e.resizeHandler.bind(e),e.container.addEventListener("click",e.clickHandler),e.container.addEventListener("keydown",e.keydownHandler),i.addEventListener("resize",e.resizeHandler)},this.detachEvents=function(){var e=t;e.container.removeEventListener("click",e.clickHandler),e.container.removeEventListener("keydown",e.keydownHandler),i.removeEventListener("resize",e.resizeHandler)};var a=function(e){return"string"==typeof document.documentElement.style[e]?e:(e=n(e),e="webkit".concat(e))},n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},h=function(e,t){for(var n in t)e[n]=t[n];return e};i.requestAnimationFrame=i.requestAnimationFrame||i.webkitRequestAnimationFrame||function(e){i.setTimeout(e,1e3/60)},t.init()}var s=0;"undefined"!=typeof module&&void 0!==module.exports?module.exports=u:i.Accordion=u}(window);
assets/js/select2.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
2
  !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,i,h,s,o,f,g,m,v,y,_,r,a,b;function w(e,t){return r.call(e,t)}function l(e,t){var n,i,r,s,o,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(o=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[o])&&(e[o]=e[o].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(r=(r=f[h.slice(0,d).join("/")])&&r[i]){s=r,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function x(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),o.apply(h,e.concat([t,n]))}}function A(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,s.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},r=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,i=c(e),r=i[0],s=t[1];return e=i[1],r&&(n=D(r=l(r,s))),r?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(s)):l(e,s):(r=(i=c(e=l(e,s)))[0],e=i[1],r&&(n=D(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return x(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},s=function(e,t,n,i){var r,s,o,a,l,c,u,d=[],p=typeof n;if(c=S(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(s=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===s)d[l]=g.exports(e),u=!0;else if("module"===s)r=d[l]=g.module(e);else if(w(m,s)||w(v,s)||w(_,s))d[l]=D(s);else{if(!a.p)throw new Error(e+" missing "+s);a.p.load(a.n,x(i,!0),A(s),{}),d[l]=m[s]}o=n?n.apply(m[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==m[e]?m[e]=r.exports:o===h&&u||(m[e]=o))}else e&&(m[e]=n)},t=n=o=function(e,t,n,i,r){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&o(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?s(h,e,t,n):setTimeout(function(){s(h,e,t,n)},4),o},o.config=function(e){return o(e)},t._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=i),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(s){var r={};function u(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}r.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r.Decorate=function(i,r){var e=u(r),t=u(i);function s(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}r.displayName=i.displayName,s.prototype=new function(){this.constructor=s};for(var n=0;n<t.length;n++){var o=t[n];s.prototype[o]=i.prototype[o]}function a(e){var t=function(){};e in s.prototype&&(t=s.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];s.prototype[c]=a(c)}return s};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var s=n[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),r==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=s(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},r.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+r.generateChars(4),e.setAttribute("data-select2-id",t)),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:s(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter(function(e){return 0===e.indexOf("select2-")});var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter(function(e){return 0!==e.indexOf("select2-")});var r=n.concat(i);e.setAttribute("class",r.join(" "))},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(n["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),n){var s=n[r];t.setAttribute(r,s)}if(e.children){var o=h(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),o.append(a),o.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var s=l.$results.offset().top,o=r.offset().top,a=l.$results.scrollTop()+(o-s);0===i?l.$results.scrollTop(0):o-s<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),o=l.$results.scrollTop()+s-r;0===n?l.$results.scrollTop(0):r<s&&l.$results.scrollTop(o)}}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=h(this),n=f.GetData(this,"data");t.hasClass("select2-results__option--selected")?l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{}):l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),s=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return i.Extend(s,i.Observable),s.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},s.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,d){function s(e,t){s.__super__.constructor.apply(this,arguments)}return d.Extend(s,e),s.prototype.render=function(){var e=s.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},s.prototype.bind=function(e,t){var i=this;s.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=d.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){i.isDisabled()||e.stopPropagation()})},s.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},s.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i<e.length;i++){var r=e[i],s=this.selectionContainer(),o=this.display(r,s),a=n+d.generateChars(4)+"-";r.id?a+=r.id:a+=d.generateChars(4),s.find(".select2-selection__choice__display").append(o).attr("id",a);var l=r.title||r.text;l&&s.attr("title",l);var c=this.options.get("translations").get("removeItem"),u=s.find(".select2-selection__choice__remove");u.attr("title",c()),u.attr("aria-label",c()),u.attr("aria-describedby",a),d.StoreData(s[0],"data",r),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},s}),e.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,a){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:i};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var o=0;o<i.length;o++)if(s={data:i[o]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.$selection.find(".select2-selection__rendered").attr("id"),i=this.options.get("translations").get("removeAllItems"),r=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');r.attr("title",i()),r.attr("aria-label",i()),r.attr("aria-describedby",n),a.StoreData(r[0],"data",t),this.$selection.prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,c){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete"));var n=e.call(this);return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results",s=t.id+"-container";e.call(this,t,n),i.$search.attr("aria-describedby",s),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===c.BACKSPACE&&""===i.$search.val()){var t=i.$selection.find(".select2-selection__choice").last();if(0<t.length){var n=l.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=c.SHIFT&&t!=c.CTRL&&t!=c.ALT&&t!=c.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},e}),e.define("select2/selection/selectionCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==r.indexOf(e)){t=t||{};var n=o.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.indexOf(e)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,l,c){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(c(e))}))},n.prototype.select=function(r){var s=this;if(r.selected=!0,null!=r.element&&"option"===r.element.tagName.toLowerCase())return r.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(r){var s=this;if(this.$element.prop("multiple")){if(r.selected=!1,null!=r.element&&"option"===r.element.tagName.toLowerCase())return r.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],s=this;this.$element.children().each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var e=c(this),t=s.item(e),n=s.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=this._normalizeItem(e);return n.element=t,l.StoreData(t,"data",n),c(t)},n.prototype.item=function(e){var t={};if(null!=(t=l.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),r=[],s=0;s<i.length;s++){var o=c(i[s]),a=this.item(o);r.push(a)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=c.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),c.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,f){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(f(this)).id}).get(),r=[];function s(e){return function(){return f(this).val()==e.id}}for(var o=0;o<e.length;o++){var a=this._normalizeItem(e[o]);if(0<=i.indexOf(a.id)){var l=n.filter(s(a)),c=this.item(l),u=f.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);p.append(h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,n){var i=s.ajax(e);return i.then(t),i.fail(n),i}};return s.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var r=this;null!=this._request&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=s.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&Array.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var s=n.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var a=i[o],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var s=i[r],o=null!=s.children&&!e({results:s.children},!0);if((s.text||"").toUpperCase()===(c.term||"").toUpperCase()||o)return!n&&(t.data=i,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(i,a)}t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=i.option(t);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}!function(e){i.trigger("select",{data:e})}(t)});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],s=t.term,o=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};o<s.length;){var l=s[o];if(-1!==r.indexOf(l)){var c=s.substr(0,o),u=a(d.extend({},t,{term:c}));null!=u?(i(u),s=s.substr(o+1)||"",o=0):o++}else o++}return{term:s}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery"],function(s){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=s('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),t.prepend(n),t},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,s="orientationchange.select2."+t.id,o=this.$container.parents().filter(a.hasScroll);o.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),o.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-o,u=l>r.bottom+o,d={left:r.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=s.top-h.top-o),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=s.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/dropdown/dropdownCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./i18n/en"],function(l,s,o,a,c,u,d,p,h,f,g,t,m,v,y,_,b,$,w,x,A,D,S,E,O,C,L,T,q,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=y:null!=e.data?e.dataAdapter=v:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=s,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=A;else{var t=f.Decorate(A,D);e.dropdownAdapter=t}0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)}null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=o,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],i=0;i<e.language.length;i++){var r=e.language[i];-1===n.indexOf(r)&&n.push(r)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=l.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var s=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return-1<s.indexOf(o)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),s=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(s));return e.language=o,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];var t;t=Array.isArray(e)?e:[e];for(var n=[],i=0;i<t.length;i++)if(n.push(t[i]),"string"==typeof t[i]&&0<t[i].indexOf("-")){var r=t[i].split("-")[0];n.push(r)}return n},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var r=new g,s=e[i];if("string"==typeof s)try{r=g.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=g.loadPath(s)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=l.isPlainObject(s)?new g(s):s;n.extend(r)}return n},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;var i=f._convertData(n);l.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(d,n,p){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var s=e[0].attributes[r].name,o="data-";if(s.substr(0,o.length)==o){var a=s.substring(o.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,i)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<t.indexOf(u)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var s=e.attr("style");if("string"!=typeof s)return null;for(var o=s.split(";"),a=0,l=o.length;a<l;a+=1){var c=o[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.indexOf(e)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length)for(var n=0;n<e.addedNodes.length;n++){if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},d.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},d.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,s,t,o){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new s(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<a.indexOf(t)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),s}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
1
+ /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
2
  !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,i,h,s,o,f,g,m,v,y,_,r,a,b;function w(e,t){return r.call(e,t)}function l(e,t){var n,i,r,s,o,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(o=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[o])&&(e[o]=e[o].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(r=(r=f[h.slice(0,d).join("/")])&&r[i]){s=r,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function x(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),o.apply(h,e.concat([t,n]))}}function A(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,s.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},r=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,i=c(e),r=i[0],s=t[1];return e=i[1],r&&(n=D(r=l(r,s))),r?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(s)):l(e,s):(r=(i=c(e=l(e,s)))[0],e=i[1],r&&(n=D(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return x(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},s=function(e,t,n,i){var r,s,o,a,l,c,u,d=[],p=typeof n;if(c=S(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(s=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===s)d[l]=g.exports(e),u=!0;else if("module"===s)r=d[l]=g.module(e);else if(w(m,s)||w(v,s)||w(_,s))d[l]=D(s);else{if(!a.p)throw new Error(e+" missing "+s);a.p.load(a.n,x(i,!0),A(s),{}),d[l]=m[s]}o=n?n.apply(m[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==m[e]?m[e]=r.exports:o===h&&u||(m[e]=o))}else e&&(m[e]=n)},t=n=o=function(e,t,n,i,r){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&o(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?s(h,e,t,n):setTimeout(function(){s(h,e,t,n)},4),o},o.config=function(e){return o(e)},t._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=i),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(s){var r={};function u(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}r.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r.Decorate=function(i,r){var e=u(r),t=u(i);function s(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}r.displayName=i.displayName,s.prototype=new function(){this.constructor=s};for(var n=0;n<t.length;n++){var o=t[n];s.prototype[o]=i.prototype[o]}function a(e){var t=function(){};e in s.prototype&&(t=s.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];s.prototype[c]=a(c)}return s};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var s=n[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),r==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=s(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},r.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+r.generateChars(4),e.setAttribute("data-select2-id",t)),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:s(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter(function(e){return 0===e.indexOf("select2-")});var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter(function(e){return 0!==e.indexOf("select2-")});var r=n.concat(i);e.setAttribute("class",r.join(" "))},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(n["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),n){var s=n[r];t.setAttribute(r,s)}if(e.children){var o=h(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),o.append(a),o.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var s=l.$results.offset().top,o=r.offset().top,a=l.$results.scrollTop()+(o-s);0===i?l.$results.scrollTop(0):o-s<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),o=l.$results.scrollTop()+s-r;0===n?l.$results.scrollTop(0):r<s&&l.$results.scrollTop(o)}}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=h(this),n=f.GetData(this,"data");t.hasClass("select2-results__option--selected")?l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{}):l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),s=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return i.Extend(s,i.Observable),s.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},s.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,d){function s(e,t){s.__super__.constructor.apply(this,arguments)}return d.Extend(s,e),s.prototype.render=function(){var e=s.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},s.prototype.bind=function(e,t){var i=this;s.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=d.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){i.isDisabled()||e.stopPropagation()})},s.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},s.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i<e.length;i++){var r=e[i],s=this.selectionContainer(),o=this.display(r,s),a=n+d.generateChars(4)+"-";r.id?a+=r.id:a+=d.generateChars(4),s.find(".select2-selection__choice__display").append(o).attr("id",a);var l=r.title||r.text;l&&s.attr("title",l);var c=this.options.get("translations").get("removeItem"),u=s.find(".select2-selection__choice__remove");u.attr("title",c()),u.attr("aria-label",c()),u.attr("aria-describedby",a),d.StoreData(s[0],"data",r),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},s}),e.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,a){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:i};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var o=0;o<i.length;o++)if(s={data:i[o]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.$selection.find(".select2-selection__rendered").attr("id"),i=this.options.get("translations").get("removeAllItems"),r=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');r.attr("title",i()),r.attr("aria-label",i()),r.attr("aria-describedby",n),a.StoreData(r[0],"data",t),this.$selection.prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,c){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete"));var n=e.call(this);return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results",s=t.id+"-container";e.call(this,t,n),i.$search.attr("aria-describedby",s),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===c.BACKSPACE&&""===i.$search.val()){var t=i.$selection.find(".select2-selection__choice").last();if(0<t.length){var n=l.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=c.SHIFT&&t!=c.CTRL&&t!=c.ALT&&t!=c.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},e}),e.define("select2/selection/selectionCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==r.indexOf(e)){t=t||{};var n=o.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.indexOf(e)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,l,c){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(c(e))}))},n.prototype.select=function(r){var s=this;if(r.selected=!0,null!=r.element&&"option"===r.element.tagName.toLowerCase())return r.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(r){var s=this;if(this.$element.prop("multiple")){if(r.selected=!1,null!=r.element&&"option"===r.element.tagName.toLowerCase())return r.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],s=this;this.$element.children().each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var e=c(this),t=s.item(e),n=s.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=this._normalizeItem(e);return n.element=t,l.StoreData(t,"data",n),c(t)},n.prototype.item=function(e){var t={};if(null!=(t=l.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),r=[],s=0;s<i.length;s++){var o=c(i[s]),a=this.item(o);r.push(a)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=c.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),c.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,f){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(f(this)).id}).get(),r=[];function s(e){return function(){return f(this).val()==e.id}}for(var o=0;o<e.length;o++){var a=this._normalizeItem(e[o]);if(0<=i.indexOf(a.id)){var l=n.filter(s(a)),c=this.item(l),u=f.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);p.append(h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,n){var i=s.ajax(e);return i.then(t),i.fail(n),i}};return s.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var r=this;null!=this._request&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=s.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&Array.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var s=n.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var a=i[o],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var s=i[r],o=null!=s.children&&!e({results:s.children},!0);if((s.text||"").toUpperCase()===(c.term||"").toUpperCase()||o)return!n&&(t.data=i,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(i,a)}t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=i.option(t);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}!function(e){i.trigger("select",{data:e})}(t)});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],s=t.term,o=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};o<s.length;){var l=s[o];if(-1!==r.indexOf(l)){var c=s.substr(0,o),u=a(d.extend({},t,{term:c}));null!=u?(i(u),s=s.substr(o+1)||"",o=0):o++}else o++}return{term:s}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery"],function(s){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=s('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),t.prepend(n),t},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,s="orientationchange.select2."+t.id,o=this.$container.parents().filter(a.hasScroll);o.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),o.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-o,u=l>r.bottom+o,d={left:r.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=s.top-h.top-o),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=s.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/dropdown/dropdownCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./i18n/en"],function(l,s,o,a,c,u,d,p,h,f,g,t,m,v,y,_,b,$,w,x,A,D,S,E,O,C,L,T,q,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=y:null!=e.data?e.dataAdapter=v:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=s,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=A;else{var t=f.Decorate(A,D);e.dropdownAdapter=t}0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)}null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=o,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],i=0;i<e.language.length;i++){var r=e.language[i];-1===n.indexOf(r)&&n.push(r)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=l.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var s=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return-1<s.indexOf(o)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),s=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(s));return e.language=o,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];var t;t=Array.isArray(e)?e:[e];for(var n=[],i=0;i<t.length;i++)if(n.push(t[i]),"string"==typeof t[i]&&0<t[i].indexOf("-")){var r=t[i].split("-")[0];n.push(r)}return n},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var r=new g,s=e[i];if("string"==typeof s)try{r=g.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=g.loadPath(s)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=l.isPlainObject(s)?new g(s):s;n.extend(r)}return n},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;var i=f._convertData(n);l.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(d,n,p){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var s=e[0].attributes[r].name,o="data-";if(s.substr(0,o.length)==o){var a=s.substring(o.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,i)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<t.indexOf(u)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var s=e.attr("style");if("string"!=typeof s)return null;for(var o=s.split(";"),a=0,l=o.length;a<l;a+=1){var c=o[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.indexOf(e)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length)for(var n=0;n<e.addedNodes.length;n++){if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},d.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},d.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,s,t,o){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new s(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<a.indexOf(t)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),s}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
assets/lib/css/magnific-popup.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Magnific Popup - v1.1.0 - 2016-02-20
2
- * http://dimsemenov.com/plugins/magnific-popup/
3
- * Copyright (c) 2016 Dmitry Semenov; */
4
- .mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:none!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#FFF}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none;touch-action:manipulation}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;padding:0 0 18px 10px;color:#FFF;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:hover,.mfp-close:focus{opacity:1}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1}.mfp-arrow:before,.mfp-arrow:after{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}
1
+ /*! Magnific Popup - v1.1.0 - 2016-02-20
2
+ * http://dimsemenov.com/plugins/magnific-popup/
3
+ * Copyright (c) 2016 Dmitry Semenov; */
4
+ .mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:none!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#FFF}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none;touch-action:manipulation}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;padding:0 0 18px 10px;color:#FFF;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:hover,.mfp-close:focus{opacity:1}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1}.mfp-arrow:before,.mfp-arrow:after{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}
assets/lib/iconpicker/css/iconpicker.svg CHANGED
@@ -1,19 +1,19 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
5
- <defs>
6
- <font id="iconpicker" horiz-adv-x="1000" >
7
- <font-face font-family="iconpicker" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
- <missing-glyph horiz-adv-x="1000" />
9
- <glyph glyph-name="spin3" unicode="&#xe815;" d="m494 850c-266 0-483-210-494-472c-1-19 13-20 13-20l84 0c16 0 19 10 19 18c10 199 176 358 378 358c107 0 205-45 273-118l-58-57c-11-12-11-27 5-31l247-50c21-5 46 11 37 44l-58 227c-2 9-16 22-29 13l-65-60c-89 91-214 148-352 148z m409-508c-16 0-19-10-19-18c-10-199-176-358-377-358c-108 0-205 45-274 118l59 57c10 12 10 27-5 31l-248 50c-21 5-46-11-37-44l58-227c2-9 16-22 30-13l64 60c89-91 214-148 353-148c265 0 482 210 493 473c1 18-13 19-13 19l-84 0z" horiz-adv-x="1000" />
10
- <glyph glyph-name="search" unicode="&#xe812;" d="m643 386q0 103-74 176t-176 74t-177-74t-73-176t73-177t177-73t176 73t74 177z m286-465q0-29-22-50t-50-21q-30 0-50 21l-191 191q-100-69-223-69q-80 0-153 31t-125 84t-84 125t-31 153t31 152t84 126t125 84t153 31t152-31t126-84t84-126t31-152q0-123-69-223l191-191q21-21 21-51z" horiz-adv-x="928.6" />
11
- <glyph glyph-name="cancel" unicode="&#xe814;" d="m724 112q0-22-15-38l-76-76q-16-15-38-15t-38 15l-164 165l-164-165q-16-15-38-15t-38 15l-76 76q-16 16-16 38t16 38l164 164l-164 164q-16 16-16 38t16 38l76 76q16 16 38 16t38-16l164-164l164 164q16 16 38 16t38-16l76-76q15-15 15-38t-15-38l-164-164l164-164q15-15 15-38z" horiz-adv-x="785.7" />
12
- <glyph glyph-name="block" unicode="&#xe84e;" d="m732 352q0 90-48 164l-421-420q76-50 166-50q62 0 118 25t96 65t65 97t24 119z m-557-167l421 421q-75 50-167 50q-83 0-153-40t-110-112t-41-152q0-91 50-167z m682 167q0-88-34-168t-91-137t-137-92t-166-34t-167 34t-137 92t-91 137t-34 168t34 167t91 137t137 91t167 34t166-34t137-91t91-137t34-167z" horiz-adv-x="857.1" />
13
- <glyph glyph-name="down-dir" unicode="&#xe800;" d="m571 457q0-14-10-25l-250-250q-11-11-25-11t-25 11l-250 250q-11 11-11 25t11 25t25 11h500q14 0 25-11t10-25z" horiz-adv-x="571.4" />
14
- <glyph glyph-name="up-dir" unicode="&#xe813;" d="m571 171q0-14-10-25t-25-10h-500q-15 0-25 10t-11 25t11 26l250 250q10 10 25 10t25-10l250-250q10-11 10-26z" horiz-adv-x="571.4" />
15
- <glyph glyph-name="left-dir" unicode="&#xe801;" d="m357 600v-500q0-14-10-25t-26-11t-25 11l-250 250q-10 11-10 25t10 25l250 250q11 11 25 11t26-11t10-25z" horiz-adv-x="357.1" />
16
- <glyph glyph-name="right-dir" unicode="&#xe802;" d="m321 350q0-14-10-25l-250-250q-11-11-25-11t-25 11t-11 25v500q0 15 11 25t25 11t25-11l250-250q10-10 10-25z" horiz-adv-x="357.1" />
17
- </font>
18
- </defs>
19
  </svg>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
5
+ <defs>
6
+ <font id="iconpicker" horiz-adv-x="1000" >
7
+ <font-face font-family="iconpicker" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
+ <missing-glyph horiz-adv-x="1000" />
9
+ <glyph glyph-name="spin3" unicode="&#xe815;" d="m494 850c-266 0-483-210-494-472c-1-19 13-20 13-20l84 0c16 0 19 10 19 18c10 199 176 358 378 358c107 0 205-45 273-118l-58-57c-11-12-11-27 5-31l247-50c21-5 46 11 37 44l-58 227c-2 9-16 22-29 13l-65-60c-89 91-214 148-352 148z m409-508c-16 0-19-10-19-18c-10-199-176-358-377-358c-108 0-205 45-274 118l59 57c10 12 10 27-5 31l-248 50c-21 5-46-11-37-44l58-227c2-9 16-22 30-13l64 60c89-91 214-148 353-148c265 0 482 210 493 473c1 18-13 19-13 19l-84 0z" horiz-adv-x="1000" />
10
+ <glyph glyph-name="search" unicode="&#xe812;" d="m643 386q0 103-74 176t-176 74t-177-74t-73-176t73-177t177-73t176 73t74 177z m286-465q0-29-22-50t-50-21q-30 0-50 21l-191 191q-100-69-223-69q-80 0-153 31t-125 84t-84 125t-31 153t31 152t84 126t125 84t153 31t152-31t126-84t84-126t31-152q0-123-69-223l191-191q21-21 21-51z" horiz-adv-x="928.6" />
11
+ <glyph glyph-name="cancel" unicode="&#xe814;" d="m724 112q0-22-15-38l-76-76q-16-15-38-15t-38 15l-164 165l-164-165q-16-15-38-15t-38 15l-76 76q-16 16-16 38t16 38l164 164l-164 164q-16 16-16 38t16 38l76 76q16 16 38 16t38-16l164-164l164 164q16 16 38 16t38-16l76-76q15-15 15-38t-15-38l-164-164l164-164q15-15 15-38z" horiz-adv-x="785.7" />
12
+ <glyph glyph-name="block" unicode="&#xe84e;" d="m732 352q0 90-48 164l-421-420q76-50 166-50q62 0 118 25t96 65t65 97t24 119z m-557-167l421 421q-75 50-167 50q-83 0-153-40t-110-112t-41-152q0-91 50-167z m682 167q0-88-34-168t-91-137t-137-92t-166-34t-167 34t-137 92t-91 137t-34 168t34 167t91 137t137 91t167 34t166-34t137-91t91-137t34-167z" horiz-adv-x="857.1" />
13
+ <glyph glyph-name="down-dir" unicode="&#xe800;" d="m571 457q0-14-10-25l-250-250q-11-11-25-11t-25 11l-250 250q-11 11-11 25t11 25t25 11h500q14 0 25-11t10-25z" horiz-adv-x="571.4" />
14
+ <glyph glyph-name="up-dir" unicode="&#xe813;" d="m571 171q0-14-10-25t-25-10h-500q-15 0-25 10t-11 25t11 26l250 250q10 10 25 10t25-10l250-250q10-11 10-26z" horiz-adv-x="571.4" />
15
+ <glyph glyph-name="left-dir" unicode="&#xe801;" d="m357 600v-500q0-14-10-25t-26-11t-25 11l-250 250q-10 11-10 25t10 25l250 250q11 11 25 11t26-11t10-25z" horiz-adv-x="357.1" />
16
+ <glyph glyph-name="right-dir" unicode="&#xe802;" d="m321 350q0-14-10-25l-250-250q-11-11-25-11t-25 11t-11 25v500q0 15 11 25t25 11t25-11l250-250q10-10 10-25z" horiz-adv-x="357.1" />
17
+ </font>
18
+ </defs>
19
  </svg>
assets/lib/iconpicker/css/jquery.fonticonpicker.bootstrap.min.css CHANGED
@@ -1,2 +1,2 @@
1
- /* fontIconPicker Bootstrap Theme {@link https://github.com/micc83/fontIconPicker} */
2
- .fip-bootstrap.icons-selector{font-size:16px}.fip-bootstrap.icons-selector .selector{border:0 none;background-color:#fff;width:102px}.fip-bootstrap.icons-selector .selector-button{background-color:#fff;border:1px solid #ccc;border-radius:0 4px 4px 0;background-image:-webkit-linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-image:-moz-linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:41px;background-repeat:repeat-x}.fip-bootstrap.icons-selector .selector-button:hover{background-color:#e0e0e0;background-position:0 -15px}.fip-bootstrap.icons-selector .selector-button:active{-webkit-box-shadow:0 3px 5px rgba(0,0,0,.125)inset;-moz-box-shadow:0 3px 5px rgba(0,0,0,.125)inset;box-shadow:0 3px 5px rgba(0,0,0,.125)inset}.fip-bootstrap.icons-selector .selector-button:hover i{color:#999}.fip-bootstrap.icons-selector .selector-button i{color:#aaa;text-shadow:0 1px 0 #FFF}.fip-bootstrap.icons-selector .selected-icon{border:1px solid #ccc;border-right:0 none;background-color:#fff;border-radius:4px 0 0 4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fip-bootstrap.icons-selector .selected-icon i{color:#404040}.fip-bootstrap.icons-selector .selector-popup{-moz-box-shadow:0 6px 12px rgba(0,0,0,.176);-webkit-box-shadow:0 6px 12px rgba(0,0,0,.176);box-shadow:0 6px 12px rgba(0,0,0,.176);border:1px solid rgba(0,0,0,.15);border-radius:4px;background-color:#fff}.fip-bootstrap.icons-selector .selector-category select,.fip-bootstrap.icons-selector .selector-search input[type=text]{border:1px solid #ccc;color:#555;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;outline:0;border-radius:4px}.fip-bootstrap.icons-selector .selector-category select:focus,.fip-bootstrap.icons-selector .selector-search input[type=text]:focus{border-color:#66AFE9;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);-moz-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6)}.fip-bootstrap.icons-selector input::-webkit-input-placeholder{color:#aaa}.fip-bootstrap.icons-selector input:-moz-placeholder{color:#aaa}.fip-bootstrap.icons-selector input::-moz-placeholder{color:#aaa}.fip-bootstrap.icons-selector input:-ms-input-placeholder{color:#aaa!important}.fip-bootstrap.icons-selector .selector-search i{color:#aaa}.fip-bootstrap.icons-selector .fip-icons-container{background-color:#fff;border:1px solid #ccc;border-radius:4px}.fip-bootstrap.icons-selector .fip-icons-container .loading{color:#ddd}.fip-bootstrap.icons-selector .fip-box{border:1px solid #ccc;border-radius:2px;background-color:#eee}.fip-bootstrap.icons-selector .fip-box:hover{background-color:#fff;border-color:#66AFE9;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);-moz-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);font-size:1.6em;text-shadow:0 0 1px #fff}.fip-bootstrap.icons-selector .selector-footer,.fip-bootstrap.icons-selector .selector-footer i{color:#428BCA}.fip-bootstrap.icons-selector .selector-arrows i:hover{color:#2A6496}.fip-bootstrap.icons-selector span.current-icon,.fip-bootstrap.icons-selector span.current-icon:hover{background-color:#428BCA;color:#fff;border:1px solid #428BCA}.fip-bootstrap.icons-selector span.current-icon i,.fip-bootstrap.icons-selector span.current-icon:hover i{color:#fff}.fip-bootstrap.icons-selector .icons-picker-error i:before{color:#ccc}.fip-bootstrap.icons-selector .fip-box,.fip-bootstrap.icons-selector .selector-category select,.fip-bootstrap.icons-selector .selector-search input[type=text]{-webkit-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-ms-transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}
1
+ /* fontIconPicker Bootstrap Theme {@link https://github.com/micc83/fontIconPicker} */
2
+ .fip-bootstrap.icons-selector{font-size:16px}.fip-bootstrap.icons-selector .selector{border:0 none;background-color:#fff;width:102px}.fip-bootstrap.icons-selector .selector-button{background-color:#fff;border:1px solid #ccc;border-radius:0 4px 4px 0;background-image:-webkit-linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-image:-moz-linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:41px;background-repeat:repeat-x}.fip-bootstrap.icons-selector .selector-button:hover{background-color:#e0e0e0;background-position:0 -15px}.fip-bootstrap.icons-selector .selector-button:active{-webkit-box-shadow:0 3px 5px rgba(0,0,0,.125)inset;-moz-box-shadow:0 3px 5px rgba(0,0,0,.125)inset;box-shadow:0 3px 5px rgba(0,0,0,.125)inset}.fip-bootstrap.icons-selector .selector-button:hover i{color:#999}.fip-bootstrap.icons-selector .selector-button i{color:#aaa;text-shadow:0 1px 0 #FFF}.fip-bootstrap.icons-selector .selected-icon{border:1px solid #ccc;border-right:0 none;background-color:#fff;border-radius:4px 0 0 4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fip-bootstrap.icons-selector .selected-icon i{color:#404040}.fip-bootstrap.icons-selector .selector-popup{-moz-box-shadow:0 6px 12px rgba(0,0,0,.176);-webkit-box-shadow:0 6px 12px rgba(0,0,0,.176);box-shadow:0 6px 12px rgba(0,0,0,.176);border:1px solid rgba(0,0,0,.15);border-radius:4px;background-color:#fff}.fip-bootstrap.icons-selector .selector-category select,.fip-bootstrap.icons-selector .selector-search input[type=text]{border:1px solid #ccc;color:#555;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;outline:0;border-radius:4px}.fip-bootstrap.icons-selector .selector-category select:focus,.fip-bootstrap.icons-selector .selector-search input[type=text]:focus{border-color:#66AFE9;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);-moz-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6)}.fip-bootstrap.icons-selector input::-webkit-input-placeholder{color:#aaa}.fip-bootstrap.icons-selector input:-moz-placeholder{color:#aaa}.fip-bootstrap.icons-selector input::-moz-placeholder{color:#aaa}.fip-bootstrap.icons-selector input:-ms-input-placeholder{color:#aaa!important}.fip-bootstrap.icons-selector .selector-search i{color:#aaa}.fip-bootstrap.icons-selector .fip-icons-container{background-color:#fff;border:1px solid #ccc;border-radius:4px}.fip-bootstrap.icons-selector .fip-icons-container .loading{color:#ddd}.fip-bootstrap.icons-selector .fip-box{border:1px solid #ccc;border-radius:2px;background-color:#eee}.fip-bootstrap.icons-selector .fip-box:hover{background-color:#fff;border-color:#66AFE9;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);-moz-box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);box-shadow:0 1px 1px rgba(0,0,0,.075)inset,0 0 8px rgba(102,175,233,.6);font-size:1.6em;text-shadow:0 0 1px #fff}.fip-bootstrap.icons-selector .selector-footer,.fip-bootstrap.icons-selector .selector-footer i{color:#428BCA}.fip-bootstrap.icons-selector .selector-arrows i:hover{color:#2A6496}.fip-bootstrap.icons-selector span.current-icon,.fip-bootstrap.icons-selector span.current-icon:hover{background-color:#428BCA;color:#fff;border:1px solid #428BCA}.fip-bootstrap.icons-selector span.current-icon i,.fip-bootstrap.icons-selector span.current-icon:hover i{color:#fff}.fip-bootstrap.icons-selector .icons-picker-error i:before{color:#ccc}.fip-bootstrap.icons-selector .fip-box,.fip-bootstrap.icons-selector .selector-category select,.fip-bootstrap.icons-selector .selector-search input[type=text]{-webkit-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-ms-transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}
assets/lib/iconpicker/css/jquery.fonticonpicker.min.css CHANGED
@@ -1,2 +1,2 @@
1
- /* fontIconPicker main CSS file {@link https://github.com/micc83/fontIconPicker} */
2
- .icons-selector:not('i.sli') *{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline;font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif}.icons-selector,.icons-selector *,.icons-selector :after,.icons-selector :before,.icons-selector:after,.icons-selector:before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.icons-selector{display:inline-block;vertical-align:middle;text-align:left}.icons-selector .selector{width:100px;height:40px}.icons-selector .selector-button{width:39px;height:100%;display:block;text-align:center;cursor:pointer;float:left}.icons-selector .selector-button i{line-height:38px;text-align:center}.icons-selector .selected-icon{display:block;width:60px;height:100%;float:left;text-align:center}.icons-selector .selected-icon i{line-height:40px;font-size:18px;cursor:default}.icons-selector .selector-popup{position:absolute;z-index:10000;background-color:#fefefe;padding:5px;height:auto;width:342px;margin-top:-1px}.icons-selector .selector-category select,.icons-selector .selector-search input[type=text]{border:0;line-height:20px;padding:10px 2.5%;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:5px;font-size:12px;display:block}.icons-selector .selector-category select{height:40px}.icons-selector .selector-category select option{padding:10px}.icons-selector input::-webkit-input-placeholder{text-transform:uppercase}.icons-selector input:-moz-placeholder{text-transform:uppercase}.icons-selector input::-moz-placeholder{text-transform:uppercase}.icons-selector input:-ms-input-placeholder{text-transform:uppercase}.icons-selector .selector-search{position:relative}.icons-selector .selector-search i{position:absolute;right:10px;top:7px}.icons-selector .fip-icons-container{width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px}.icons-selector .fip-icons-container .loading{font-size:24px;margin:0 auto;padding:20px 0;text-align:center;width:100%}.icons-selector .fip-box{display:inline-block;margin:2px;width:60px;line-height:42px;text-align:center;cursor:pointer;vertical-align:top;height:40px}.icons-selector .selector-footer{line-height:12px;padding:5px 5px 0;text-align:center}.icons-selector .selector-footer,.icons-selector .selector-footer i{font-size:14px}.icons-selector .selector-arrows{float:right}.icons-selector .selector-pages{font-size:11px;float:left}.icons-selector .selector-arrows i{cursor:pointer}.icons-selector .selector-footer em{font-style:italic}.icons-selector .icons-picker-error i:before{color:#eee}@font-face{font-family:iconpicker;src:url(iconpicker.eot?90190138);src:url(iconpicker.eot?90190138#iefix) format('embedded-opentype'),url(iconpicker.woff?90190138) format('woff'),url(iconpicker.ttf?90190138) format('truetype'),url(iconpicker.svg?90190138#iconpicker) format('svg');font-weight:400;font-style:normal}.icons-selector [class*=" fip-icon-"]:before,.icons-selector [class^=fip-icon-]:before{font-family:iconpicker;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.icons-selector .fip-icon-search:before{content:'\e812';cursor:default}.icons-selector .fip-icon-cancel:before{content:'\e814';cursor:pointer}.icons-selector .fip-icon-block:before{content:'\e84e';color:#fed0d0}.icons-selector .fip-icon-down-dir:before{content:'\e800'}.icons-selector .fip-icon-up-dir:before{content:'\e813'}.icons-selector .fip-icon-left-dir:before{content:'\e801'}.icons-selector .fip-icon-right-dir:before{content:'\e802'}.icons-selector .fip-icon-spin3:before{content:'\e815'}.icons-selector .fip-icon-spin3{-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-ms-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}
1
+ /* fontIconPicker main CSS file {@link https://github.com/micc83/fontIconPicker} */
2
+ .icons-selector:not('i.sli') *{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline;font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif}.icons-selector,.icons-selector *,.icons-selector :after,.icons-selector :before,.icons-selector:after,.icons-selector:before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.icons-selector{display:inline-block;vertical-align:middle;text-align:left}.icons-selector .selector{width:100px;height:40px}.icons-selector .selector-button{width:39px;height:100%;display:block;text-align:center;cursor:pointer;float:left}.icons-selector .selector-button i{line-height:38px;text-align:center}.icons-selector .selected-icon{display:block;width:60px;height:100%;float:left;text-align:center}.icons-selector .selected-icon i{line-height:40px;font-size:18px;cursor:default}.icons-selector .selector-popup{position:absolute;z-index:10000;background-color:#fefefe;padding:5px;height:auto;width:342px;margin-top:-1px}.icons-selector .selector-category select,.icons-selector .selector-search input[type=text]{border:0;line-height:20px;padding:10px 2.5%;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:5px;font-size:12px;display:block}.icons-selector .selector-category select{height:40px}.icons-selector .selector-category select option{padding:10px}.icons-selector input::-webkit-input-placeholder{text-transform:uppercase}.icons-selector input:-moz-placeholder{text-transform:uppercase}.icons-selector input::-moz-placeholder{text-transform:uppercase}.icons-selector input:-ms-input-placeholder{text-transform:uppercase}.icons-selector .selector-search{position:relative}.icons-selector .selector-search i{position:absolute;right:10px;top:7px}.icons-selector .fip-icons-container{width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px}.icons-selector .fip-icons-container .loading{font-size:24px;margin:0 auto;padding:20px 0;text-align:center;width:100%}.icons-selector .fip-box{display:inline-block;margin:2px;width:60px;line-height:42px;text-align:center;cursor:pointer;vertical-align:top;height:40px}.icons-selector .selector-footer{line-height:12px;padding:5px 5px 0;text-align:center}.icons-selector .selector-footer,.icons-selector .selector-footer i{font-size:14px}.icons-selector .selector-arrows{float:right}.icons-selector .selector-pages{font-size:11px;float:left}.icons-selector .selector-arrows i{cursor:pointer}.icons-selector .selector-footer em{font-style:italic}.icons-selector .icons-picker-error i:before{color:#eee}@font-face{font-family:iconpicker;src:url(iconpicker.eot?90190138);src:url(iconpicker.eot?90190138#iefix) format('embedded-opentype'),url(iconpicker.woff?90190138) format('woff'),url(iconpicker.ttf?90190138) format('truetype'),url(iconpicker.svg?90190138#iconpicker) format('svg');font-weight:400;font-style:normal}.icons-selector [class*=" fip-icon-"]:before,.icons-selector [class^=fip-icon-]:before{font-family:iconpicker;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.icons-selector .fip-icon-search:before{content:'\e812';cursor:default}.icons-selector .fip-icon-cancel:before{content:'\e814';cursor:pointer}.icons-selector .fip-icon-block:before{content:'\e84e';color:#fed0d0}.icons-selector .fip-icon-down-dir:before{content:'\e800'}.icons-selector .fip-icon-up-dir:before{content:'\e813'}.icons-selector .fip-icon-left-dir:before{content:'\e801'}.icons-selector .fip-icon-right-dir:before{content:'\e802'}.icons-selector .fip-icon-spin3:before{content:'\e815'}.icons-selector .fip-icon-spin3{-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-ms-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}
assets/lib/iconpicker/js/jquery.fonticonpicker.min.js CHANGED
@@ -1,13 +1,13 @@
1
- /**
2
- * jQuery fontIconPicker - v2.0.0
3
- *
4
- * An icon picker built on top of font icons and jQuery
5
- *
6
- * http://codeb.it/fontIconPicker
7
- *
8
- * Made by Alessandro Benoit & Swashata
9
- * Under MIT License
10
- *
11
- * {@link https://github.com/micc83/fontIconPicker}
12
- */
13
  !function(a){"use strict";function c(c,d){this.element=a(c),this.settings=a.extend({},b,d),this.settings.emptyIcon&&this.settings.iconsPerPage--,this.iconPicker=a("<div/>",{"class":"icons-selector",style:"position: relative",html:'<div class="selector"><span class="selected-icon"><i class="fip-icon-block"></i></span><span class="selector-button"><i class="fip-icon-down-dir"></i></span></div><div class="selector-popup" style="display: none;">'+(this.settings.hasSearch?'<div class="selector-search"><input type="text" name="" value="" placeholder="Search icon" class="icons-search-input"/><i class="fip-icon-search"></i></div>':"")+'<div class="selector-category">'+'<select name="" class="icon-category-select" style="display: none">'+"</select>"+"</div>"+'<div class="fip-icons-container"></div>'+'<div class="selector-footer" style="display:none;">'+'<span class="selector-pages">1/2</span>'+'<span class="selector-arrows">'+'<span class="selector-arrow-left" style="display:none;">'+'<i class="fip-icon-left-dir"></i>'+"</span>"+'<span class="selector-arrow-right">'+'<i class="fip-icon-right-dir"></i>'+"</span>"+"</span>"+"</div>"+"</div>"}),this.iconContainer=this.iconPicker.find(".fip-icons-container"),this.searchIcon=this.iconPicker.find(".selector-search i"),this.iconsSearched=[],this.isSearch=!1,this.totalPage=1,this.currentPage=1,this.currentIcon=!1,this.iconsCount=0,this.open=!1,this.searchValues=[],this.availableCategoriesSearch=[],this.triggerEvent=null,this.backupSource=[],this.backupSearch=[],this.isCategorized=!1,this.selectCategory=this.iconPicker.find(".icon-category-select"),this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.init()}var b={theme:"fip-grey",source:!1,emptyIcon:!0,emptyIconValue:"",iconsPerPage:20,hasSearch:!0,searchSource:!1,useAttribute:!1,attributeName:"data-icon",convertToHex:!0,allCategoryText:"From all categories",unCategorizedText:"Uncategorized"};c.prototype={init:function(){this.iconPicker.addClass(this.settings.theme),this.iconPicker.css({left:-9999}).appendTo("body");var b=this.iconPicker.outerHeight(),c=this.iconPicker.outerWidth();if(this.iconPicker.css({left:""}),this.element.before(this.iconPicker),this.element.css({visibility:"hidden",top:0,position:"relative",zIndex:"-1",left:"-"+c+"px",display:"inline-block",height:b+"px",width:c+"px",padding:"0",margin:"0 -"+c+"px 0 0",border:"0 none",verticalAlign:"top"}),!this.element.is("select")){var d=function(){for(var a=3,b=document.createElement("div"),c=b.all||[];b.innerHTML="<!--[if gt IE "+ ++a+"]><br><![endif]-->",c[0];);return a>4?a:!a}(),e=document.createElement("div");this.triggerEvent=9!==d&&"oninput"in e?["input","keyup"]:["keyup"]}!this.settings.source&&this.element.is("select")?(this.settings.source=[],this.settings.searchSource=[],this.element.find("optgroup").length?(this.isCategorized=!0,this.element.find("optgroup").each(a.proxy(function(b,c){var d=this.availableCategories.length,e=a("<option />");e.attr("value",d),e.html(a(c).attr("label")),this.selectCategory.append(e),this.availableCategories[d]=[],this.availableCategoriesSearch[d]=[],a(c).find("option").each(a.proxy(function(b,c){var e=a(c).val(),f=a(c).html();e&&e!==this.settings.emptyIconValue&&(this.settings.source.push(e),this.availableCategories[d].push(e),this.searchValues.push(f),this.availableCategoriesSearch[d].push(f))},this))},this)),this.element.find("> option").length&&this.element.find("> option").each(a.proxy(function(b,c){var d=a(c).val(),e=a(c).html();return d&&""!==d&&d!=this.settings.emptyIconValue?(null===this.unCategorizedKey&&(this.unCategorizedKey=this.availableCategories.length,this.availableCategories[this.unCategorizedKey]=[],this.availableCategoriesSearch[this.unCategorizedKey]=[],a("<option />").attr("value",this.unCategorizedKey).html(this.settings.unCategorizedText).appendTo(this.selectCategory)),this.settings.source.push(d),this.availableCategories[this.unCategorizedKey].push(d),this.searchValues.push(e),this.availableCategoriesSearch[this.unCategorizedKey].push(e),void 0):!0},this))):this.element.find("option").each(a.proxy(function(b,c){var d=a(c).val(),e=a(c).html();d&&(this.settings.source.push(d),this.searchValues.push(e))},this)),this.backupSource=this.settings.source.slice(0),this.backupSearch=this.searchValues.slice(0),this.loadCategories()):this.initSourceIndex(),this.loadIcons(),this.selectCategory.on("change keyup",a.proxy(function(b){if(this.isCategorized===!1)return!1;var c=a(b.currentTarget),d=c.val();if("all"===c.val())this.settings.source=this.backupSource,this.searchValues=this.backupSearch;else{var e=parseInt(d,10);this.availableCategories[e]&&(this.settings.source=this.availableCategories[e],this.searchValues=this.availableCategoriesSearch[e])}this.resetSearch(),this.loadIcons()},this)),this.iconPicker.find(".selector-button").click(a.proxy(function(){this.toggleIconSelector()},this)),this.iconPicker.find(".selector-arrow-right").click(a.proxy(function(b){this.currentPage<this.totalPage&&(this.iconPicker.find(".selector-arrow-left").show(),this.currentPage=this.currentPage+1,this.renderIconContainer()),this.currentPage===this.totalPage&&a(b.currentTarget).hide()},this)),this.iconPicker.find(".selector-arrow-left").click(a.proxy(function(b){this.currentPage>1&&(this.iconPicker.find(".selector-arrow-right").show(),this.currentPage=this.currentPage-1,this.renderIconContainer()),1===this.currentPage&&a(b.currentTarget).hide()},this)),this.iconPicker.find(".icons-search-input").keyup(a.proxy(function(b){var c=a(b.currentTarget).val();return""===c?(this.resetSearch(),void 0):(this.searchIcon.removeClass("fip-icon-search"),this.searchIcon.addClass("fip-icon-cancel"),this.isSearch=!0,this.currentPage=1,this.iconsSearched=[],a.grep(this.searchValues,a.proxy(function(a,b){return a.toLowerCase().search(c.toLowerCase())>=0?(this.iconsSearched[this.iconsSearched.length]=this.settings.source[b],!0):void 0},this)),this.renderIconContainer(),void 0)},this)),this.iconPicker.find(".selector-search").on("click",".fip-icon-cancel",a.proxy(function(){this.iconPicker.find(".icons-search-input").focus(),this.resetSearch()},this)),this.iconContainer.on("click",".fip-box",a.proxy(function(b){this.setSelectedIcon(a(b.currentTarget).find("i").attr("data-fip-value")),this.toggleIconSelector()},this)),this.iconPicker.click(function(a){return a.stopPropagation(),!1}),a("html").click(a.proxy(function(){this.open&&this.toggleIconSelector()},this))},initSourceIndex:function(){if("object"==typeof this.settings.source){if(a.isArray(this.settings.source))this.isCategorized=!1,this.selectCategory.html("").hide(),this.settings.source=a.map(this.settings.source,function(a){return"function"==typeof a.toString?a.toString():a}),this.searchValues=a.isArray(this.settings.searchSource)?a.map(this.settings.searchSource,function(a){return"function"==typeof a.toString?a.toString():a}):this.settings.source.slice(0);else{var b=a.extend(!0,{},this.settings.source);this.settings.source=[],this.searchValues=[],this.availableCategoriesSearch=[],this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.isCategorized=!0,this.selectCategory.html("");for(var c in b){var d=this.availableCategories.length,e=a("<option />");e.attr("value",d),e.html(c),this.selectCategory.append(e),this.availableCategories[d]=[],this.availableCategoriesSearch[d]=[];for(var f in b[c]){var g=b[c][f],h=this.settings.searchSource&&this.settings.searchSource[c]&&this.settings.searchSource[c][f]?this.settings.searchSource[c][f]:g;"function"==typeof g.toString&&(g=g.toString()),g&&g!==this.settings.emptyIconValue&&(this.settings.source.push(g),this.availableCategories[d].push(g),this.searchValues.push(h),this.availableCategoriesSearch[d].push(h))}}}this.backupSource=this.settings.source.slice(0),this.backupSearch=this.searchValues.slice(0),this.loadCategories()}},loadCategories:function(){this.isCategorized!==!1&&(a('<option value="all">'+this.settings.allCategoryText+"</option>").prependTo(this.selectCategory),this.selectCategory.show().val("all").trigger("change"))},loadIcons:function(){this.iconContainer.html('<i class="fip-icon-spin3 animate-spin loading"></i>'),this.settings.source instanceof Array&&this.renderIconContainer()},renderIconContainer:function(){var b,c=[];if(c=this.isSearch?this.iconsSearched:this.settings.source,this.iconsCount=c.length,this.totalPage=Math.ceil(this.iconsCount/this.settings.iconsPerPage),this.totalPage>1?this.iconPicker.find(".selector-footer").show():this.iconPicker.find(".selector-footer").hide(),this.iconPicker.find(".selector-pages").html(this.currentPage+"/"+this.totalPage+" <em>("+this.iconsCount+")</em>"),b=(this.currentPage-1)*this.settings.iconsPerPage,this.settings.emptyIcon)this.iconContainer.html('<span class="fip-box"><i class="fip-icon-block" data-fip-value="fip-icon-block"></i></span>');else{if(c.length<1)return this.iconContainer.html('<span class="icons-picker-error"><i class="fip-icon-block" data-fip-value="fip-icon-block"></i></span>'),void 0;this.iconContainer.html("")}c=c.slice(b,b+this.settings.iconsPerPage);for(var e,d=0;e=c[d++];){var f=e;a.grep(this.settings.source,a.proxy(function(a,b){return a===e?(f=this.searchValues[b],!0):!1},this)),a("<span/>",{html:'<i data-fip-value="'+e+'" '+(this.settings.useAttribute?this.settings.attributeName+'="'+(this.settings.convertToHex?"&#x"+parseInt(e,10).toString(16)+";":e)+'"':'class="'+e+'"')+"></i>","class":"fip-box",title:f}).appendTo(this.iconContainer)}this.settings.emptyIcon||this.element.val()&&-1!==a.inArray(this.element.val(),this.settings.source)?-1===a.inArray(this.element.val(),this.settings.source)?this.setSelectedIcon():this.setSelectedIcon(this.element.val()):this.setSelectedIcon(c[0])},setHighlightedIcon:function(){this.iconContainer.find(".current-icon").removeClass("current-icon"),this.currentIcon&&this.iconContainer.find('[data-fip-value="'+this.currentIcon+'"]').parent("span").addClass("current-icon")},setSelectedIcon:function(a){if("fip-icon-block"===a&&(a=""),this.settings.useAttribute?a?this.iconPicker.find(".selected-icon").html("<i "+this.settings.attributeName+'="'+(this.settings.convertToHex?"&#x"+parseInt(a,10).toString(16)+";":a)+'"></i>'):this.iconPicker.find(".selected-icon").html('<i class="fip-icon-block"></i>'):this.iconPicker.find(".selected-icon").html('<i class="'+(a||"fip-icon-block")+'"></i>'),this.element.val(""===a?this.settings.emptyIconValue:a).trigger("change"),null!==this.triggerEvent)for(var b in this.triggerEvent)this.element.trigger(this.triggerEvent[b]);this.currentIcon=a,this.setHighlightedIcon()},toggleIconSelector:function(){this.open=this.open?0:1,this.iconPicker.find(".selector-popup").slideToggle(300),this.iconPicker.find(".selector-button i").toggleClass("fip-icon-down-dir"),this.iconPicker.find(".selector-button i").toggleClass("fip-icon-up-dir"),this.open&&this.iconPicker.find(".icons-search-input").focus().select()},resetSearch:function(){this.iconPicker.find(".icons-search-input").val(""),this.searchIcon.removeClass("fip-icon-cancel"),this.searchIcon.addClass("fip-icon-search"),this.iconPicker.find(".selector-arrow-left").hide(),this.currentPage=1,this.isSearch=!1,this.renderIconContainer(),this.totalPage>1&&this.iconPicker.find(".selector-arrow-right").show()}},a.fn.fontIconPicker=function(b){return this.each(function(){a.data(this,"fontIconPicker")||a.data(this,"fontIconPicker",new c(this,b))}),this.setIcons=a.proxy(function(b,c){void 0===b&&(b=!1),void 0===c&&(c=!1),this.each(function(){a.data(this,"fontIconPicker").settings.source=b,a.data(this,"fontIconPicker").settings.searchSource=c,a.data(this,"fontIconPicker").initSourceIndex(),a.data(this,"fontIconPicker").resetSearch(),a.data(this,"fontIconPicker").loadIcons()})},this),this.destroyPicker=a.proxy(function(){this.each(function(){a.data(this,"fontIconPicker")&&(a.data(this,"fontIconPicker").iconPicker.remove(),a.data(this,"fontIconPicker").element.css({visibility:"",top:"",position:"",zIndex:"",left:"",display:"",height:"",width:"",padding:"",margin:"",border:"",verticalAlign:""}),a.removeData(this,"fontIconPicker"))})},this),this.refreshPicker=a.proxy(function(d){d||(d=b),this.destroyPicker(),this.each(function(){a.data(this,"fontIconPicker")||a.data(this,"fontIconPicker",new c(this,d))})},this),this}}(jQuery);
1
+ /**
2
+ * jQuery fontIconPicker - v2.0.0
3
+ *
4
+ * An icon picker built on top of font icons and jQuery
5
+ *
6
+ * http://codeb.it/fontIconPicker
7
+ *
8
+ * Made by Alessandro Benoit & Swashata
9
+ * Under MIT License
10
+ *
11
+ * {@link https://github.com/micc83/fontIconPicker}
12
+ */
13
  !function(a){"use strict";function c(c,d){this.element=a(c),this.settings=a.extend({},b,d),this.settings.emptyIcon&&this.settings.iconsPerPage--,this.iconPicker=a("<div/>",{"class":"icons-selector",style:"position: relative",html:'<div class="selector"><span class="selected-icon"><i class="fip-icon-block"></i></span><span class="selector-button"><i class="fip-icon-down-dir"></i></span></div><div class="selector-popup" style="display: none;">'+(this.settings.hasSearch?'<div class="selector-search"><input type="text" name="" value="" placeholder="Search icon" class="icons-search-input"/><i class="fip-icon-search"></i></div>':"")+'<div class="selector-category">'+'<select name="" class="icon-category-select" style="display: none">'+"</select>"+"</div>"+'<div class="fip-icons-container"></div>'+'<div class="selector-footer" style="display:none;">'+'<span class="selector-pages">1/2</span>'+'<span class="selector-arrows">'+'<span class="selector-arrow-left" style="display:none;">'+'<i class="fip-icon-left-dir"></i>'+"</span>"+'<span class="selector-arrow-right">'+'<i class="fip-icon-right-dir"></i>'+"</span>"+"</span>"+"</div>"+"</div>"}),this.iconContainer=this.iconPicker.find(".fip-icons-container"),this.searchIcon=this.iconPicker.find(".selector-search i"),this.iconsSearched=[],this.isSearch=!1,this.totalPage=1,this.currentPage=1,this.currentIcon=!1,this.iconsCount=0,this.open=!1,this.searchValues=[],this.availableCategoriesSearch=[],this.triggerEvent=null,this.backupSource=[],this.backupSearch=[],this.isCategorized=!1,this.selectCategory=this.iconPicker.find(".icon-category-select"),this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.init()}var b={theme:"fip-grey",source:!1,emptyIcon:!0,emptyIconValue:"",iconsPerPage:20,hasSearch:!0,searchSource:!1,useAttribute:!1,attributeName:"data-icon",convertToHex:!0,allCategoryText:"From all categories",unCategorizedText:"Uncategorized"};c.prototype={init:function(){this.iconPicker.addClass(this.settings.theme),this.iconPicker.css({left:-9999}).appendTo("body");var b=this.iconPicker.outerHeight(),c=this.iconPicker.outerWidth();if(this.iconPicker.css({left:""}),this.element.before(this.iconPicker),this.element.css({visibility:"hidden",top:0,position:"relative",zIndex:"-1",left:"-"+c+"px",display:"inline-block",height:b+"px",width:c+"px",padding:"0",margin:"0 -"+c+"px 0 0",border:"0 none",verticalAlign:"top"}),!this.element.is("select")){var d=function(){for(var a=3,b=document.createElement("div"),c=b.all||[];b.innerHTML="<!--[if gt IE "+ ++a+"]><br><![endif]-->",c[0];);return a>4?a:!a}(),e=document.createElement("div");this.triggerEvent=9!==d&&"oninput"in e?["input","keyup"]:["keyup"]}!this.settings.source&&this.element.is("select")?(this.settings.source=[],this.settings.searchSource=[],this.element.find("optgroup").length?(this.isCategorized=!0,this.element.find("optgroup").each(a.proxy(function(b,c){var d=this.availableCategories.length,e=a("<option />");e.attr("value",d),e.html(a(c).attr("label")),this.selectCategory.append(e),this.availableCategories[d]=[],this.availableCategoriesSearch[d]=[],a(c).find("option").each(a.proxy(function(b,c){var e=a(c).val(),f=a(c).html();e&&e!==this.settings.emptyIconValue&&(this.settings.source.push(e),this.availableCategories[d].push(e),this.searchValues.push(f),this.availableCategoriesSearch[d].push(f))},this))},this)),this.element.find("> option").length&&this.element.find("> option").each(a.proxy(function(b,c){var d=a(c).val(),e=a(c).html();return d&&""!==d&&d!=this.settings.emptyIconValue?(null===this.unCategorizedKey&&(this.unCategorizedKey=this.availableCategories.length,this.availableCategories[this.unCategorizedKey]=[],this.availableCategoriesSearch[this.unCategorizedKey]=[],a("<option />").attr("value",this.unCategorizedKey).html(this.settings.unCategorizedText).appendTo(this.selectCategory)),this.settings.source.push(d),this.availableCategories[this.unCategorizedKey].push(d),this.searchValues.push(e),this.availableCategoriesSearch[this.unCategorizedKey].push(e),void 0):!0},this))):this.element.find("option").each(a.proxy(function(b,c){var d=a(c).val(),e=a(c).html();d&&(this.settings.source.push(d),this.searchValues.push(e))},this)),this.backupSource=this.settings.source.slice(0),this.backupSearch=this.searchValues.slice(0),this.loadCategories()):this.initSourceIndex(),this.loadIcons(),this.selectCategory.on("change keyup",a.proxy(function(b){if(this.isCategorized===!1)return!1;var c=a(b.currentTarget),d=c.val();if("all"===c.val())this.settings.source=this.backupSource,this.searchValues=this.backupSearch;else{var e=parseInt(d,10);this.availableCategories[e]&&(this.settings.source=this.availableCategories[e],this.searchValues=this.availableCategoriesSearch[e])}this.resetSearch(),this.loadIcons()},this)),this.iconPicker.find(".selector-button").click(a.proxy(function(){this.toggleIconSelector()},this)),this.iconPicker.find(".selector-arrow-right").click(a.proxy(function(b){this.currentPage<this.totalPage&&(this.iconPicker.find(".selector-arrow-left").show(),this.currentPage=this.currentPage+1,this.renderIconContainer()),this.currentPage===this.totalPage&&a(b.currentTarget).hide()},this)),this.iconPicker.find(".selector-arrow-left").click(a.proxy(function(b){this.currentPage>1&&(this.iconPicker.find(".selector-arrow-right").show(),this.currentPage=this.currentPage-1,this.renderIconContainer()),1===this.currentPage&&a(b.currentTarget).hide()},this)),this.iconPicker.find(".icons-search-input").keyup(a.proxy(function(b){var c=a(b.currentTarget).val();return""===c?(this.resetSearch(),void 0):(this.searchIcon.removeClass("fip-icon-search"),this.searchIcon.addClass("fip-icon-cancel"),this.isSearch=!0,this.currentPage=1,this.iconsSearched=[],a.grep(this.searchValues,a.proxy(function(a,b){return a.toLowerCase().search(c.toLowerCase())>=0?(this.iconsSearched[this.iconsSearched.length]=this.settings.source[b],!0):void 0},this)),this.renderIconContainer(),void 0)},this)),this.iconPicker.find(".selector-search").on("click",".fip-icon-cancel",a.proxy(function(){this.iconPicker.find(".icons-search-input").focus(),this.resetSearch()},this)),this.iconContainer.on("click",".fip-box",a.proxy(function(b){this.setSelectedIcon(a(b.currentTarget).find("i").attr("data-fip-value")),this.toggleIconSelector()},this)),this.iconPicker.click(function(a){return a.stopPropagation(),!1}),a("html").click(a.proxy(function(){this.open&&this.toggleIconSelector()},this))},initSourceIndex:function(){if("object"==typeof this.settings.source){if(a.isArray(this.settings.source))this.isCategorized=!1,this.selectCategory.html("").hide(),this.settings.source=a.map(this.settings.source,function(a){return"function"==typeof a.toString?a.toString():a}),this.searchValues=a.isArray(this.settings.searchSource)?a.map(this.settings.searchSource,function(a){return"function"==typeof a.toString?a.toString():a}):this.settings.source.slice(0);else{var b=a.extend(!0,{},this.settings.source);this.settings.source=[],this.searchValues=[],this.availableCategoriesSearch=[],this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.isCategorized=!0,this.selectCategory.html("");for(var c in b){var d=this.availableCategories.length,e=a("<option />");e.attr("value",d),e.html(c),this.selectCategory.append(e),this.availableCategories[d]=[],this.availableCategoriesSearch[d]=[];for(var f in b[c]){var g=b[c][f],h=this.settings.searchSource&&this.settings.searchSource[c]&&this.settings.searchSource[c][f]?this.settings.searchSource[c][f]:g;"function"==typeof g.toString&&(g=g.toString()),g&&g!==this.settings.emptyIconValue&&(this.settings.source.push(g),this.availableCategories[d].push(g),this.searchValues.push(h),this.availableCategoriesSearch[d].push(h))}}}this.backupSource=this.settings.source.slice(0),this.backupSearch=this.searchValues.slice(0),this.loadCategories()}},loadCategories:function(){this.isCategorized!==!1&&(a('<option value="all">'+this.settings.allCategoryText+"</option>").prependTo(this.selectCategory),this.selectCategory.show().val("all").trigger("change"))},loadIcons:function(){this.iconContainer.html('<i class="fip-icon-spin3 animate-spin loading"></i>'),this.settings.source instanceof Array&&this.renderIconContainer()},renderIconContainer:function(){var b,c=[];if(c=this.isSearch?this.iconsSearched:this.settings.source,this.iconsCount=c.length,this.totalPage=Math.ceil(this.iconsCount/this.settings.iconsPerPage),this.totalPage>1?this.iconPicker.find(".selector-footer").show():this.iconPicker.find(".selector-footer").hide(),this.iconPicker.find(".selector-pages").html(this.currentPage+"/"+this.totalPage+" <em>("+this.iconsCount+")</em>"),b=(this.currentPage-1)*this.settings.iconsPerPage,this.settings.emptyIcon)this.iconContainer.html('<span class="fip-box"><i class="fip-icon-block" data-fip-value="fip-icon-block"></i></span>');else{if(c.length<1)return this.iconContainer.html('<span class="icons-picker-error"><i class="fip-icon-block" data-fip-value="fip-icon-block"></i></span>'),void 0;this.iconContainer.html("")}c=c.slice(b,b+this.settings.iconsPerPage);for(var e,d=0;e=c[d++];){var f=e;a.grep(this.settings.source,a.proxy(function(a,b){return a===e?(f=this.searchValues[b],!0):!1},this)),a("<span/>",{html:'<i data-fip-value="'+e+'" '+(this.settings.useAttribute?this.settings.attributeName+'="'+(this.settings.convertToHex?"&#x"+parseInt(e,10).toString(16)+";":e)+'"':'class="'+e+'"')+"></i>","class":"fip-box",title:f}).appendTo(this.iconContainer)}this.settings.emptyIcon||this.element.val()&&-1!==a.inArray(this.element.val(),this.settings.source)?-1===a.inArray(this.element.val(),this.settings.source)?this.setSelectedIcon():this.setSelectedIcon(this.element.val()):this.setSelectedIcon(c[0])},setHighlightedIcon:function(){this.iconContainer.find(".current-icon").removeClass("current-icon"),this.currentIcon&&this.iconContainer.find('[data-fip-value="'+this.currentIcon+'"]').parent("span").addClass("current-icon")},setSelectedIcon:function(a){if("fip-icon-block"===a&&(a=""),this.settings.useAttribute?a?this.iconPicker.find(".selected-icon").html("<i "+this.settings.attributeName+'="'+(this.settings.convertToHex?"&#x"+parseInt(a,10).toString(16)+";":a)+'"></i>'):this.iconPicker.find(".selected-icon").html('<i class="fip-icon-block"></i>'):this.iconPicker.find(".selected-icon").html('<i class="'+(a||"fip-icon-block")+'"></i>'),this.element.val(""===a?this.settings.emptyIconValue:a).trigger("change"),null!==this.triggerEvent)for(var b in this.triggerEvent)this.element.trigger(this.triggerEvent[b]);this.currentIcon=a,this.setHighlightedIcon()},toggleIconSelector:function(){this.open=this.open?0:1,this.iconPicker.find(".selector-popup").slideToggle(300),this.iconPicker.find(".selector-button i").toggleClass("fip-icon-down-dir"),this.iconPicker.find(".selector-button i").toggleClass("fip-icon-up-dir"),this.open&&this.iconPicker.find(".icons-search-input").focus().select()},resetSearch:function(){this.iconPicker.find(".icons-search-input").val(""),this.searchIcon.removeClass("fip-icon-cancel"),this.searchIcon.addClass("fip-icon-search"),this.iconPicker.find(".selector-arrow-left").hide(),this.currentPage=1,this.isSearch=!1,this.renderIconContainer(),this.totalPage>1&&this.iconPicker.find(".selector-arrow-right").show()}},a.fn.fontIconPicker=function(b){return this.each(function(){a.data(this,"fontIconPicker")||a.data(this,"fontIconPicker",new c(this,b))}),this.setIcons=a.proxy(function(b,c){void 0===b&&(b=!1),void 0===c&&(c=!1),this.each(function(){a.data(this,"fontIconPicker").settings.source=b,a.data(this,"fontIconPicker").settings.searchSource=c,a.data(this,"fontIconPicker").initSourceIndex(),a.data(this,"fontIconPicker").resetSearch(),a.data(this,"fontIconPicker").loadIcons()})},this),this.destroyPicker=a.proxy(function(){this.each(function(){a.data(this,"fontIconPicker")&&(a.data(this,"fontIconPicker").iconPicker.remove(),a.data(this,"fontIconPicker").element.css({visibility:"",top:"",position:"",zIndex:"",left:"",display:"",height:"",width:"",padding:"",margin:"",border:"",verticalAlign:""}),a.removeData(this,"fontIconPicker"))})},this),this.refreshPicker=a.proxy(function(d){d||(d=b),this.destroyPicker(),this.each(function(){a.data(this,"fontIconPicker")||a.data(this,"fontIconPicker",new c(this,d))})},this),this}}(jQuery);
assets/lib/js/magnific-popup.js CHANGED
@@ -1,6 +1,6 @@
1
-
2
- /*! Magnific Popup - v1.1.0 - 2016-02-20
3
- * http://dimsemenov.com/plugins/magnific-popup/
4
- * Copyright (c) 2016 Dmitry Semenov; */
5
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
6
-
1
+
2
+ /*! Magnific Popup - v1.1.0 - 2016-02-20
3
+ * http://dimsemenov.com/plugins/magnific-popup/
4
+ * Copyright (c) 2016 Dmitry Semenov; */
5
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
6
+
classes/class.ajax_actions.php CHANGED
@@ -1,135 +1,135 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
-
4
- class Woolentor_Ajax_Action{
5
-
6
- /**
7
- * [$instance]
8
- * @var null
9
- */
10
- private static $instance = null;
11
-
12
- /**
13
- * [instance]
14
- * @return [Woolentor_Ajax_Action]
15
- */
16
- public static function instance(){
17
- if( is_null( self::$instance ) ){
18
- self::$instance = new self();
19
- }
20
- return self::$instance;
21
- }
22
-
23
- /**
24
- * [__construct]
25
- */
26
- function __construct(){
27
-
28
- // For Add to cart
29
- add_action( 'wp_ajax_woolentor_insert_to_cart', [ $this, 'insert_to_cart' ] );
30
- add_action( 'wp_ajax_nopriv_woolentor_insert_to_cart', [ $this, 'insert_to_cart' ] );
31
-
32
- // For Single Product ajax add to cart
33
- add_action( 'wp_ajax_woolentor_single_insert_to_cart', [ $this, 'single_product_insert_to_cart' ] );
34
- add_action( 'wp_ajax_nopriv_woolentor_single_insert_to_cart', [ $this, 'single_product_insert_to_cart' ] );
35
-
36
- // For Quickview
37
- add_action( 'wp_ajax_woolentor_quickview', [ '\WooLentor\Quick_View_Manager', 'wc_quickview' ] );
38
- add_action( 'wp_ajax_nopriv_woolentor_quickview', [ '\WooLentor\Quick_View_Manager', 'wc_quickview' ] );
39
-
40
- // For ajax search
41
- add_action( 'wp_ajax_woolentor_ajax_search', [ $this, 'ajax_search_callback' ] );
42
- add_action( 'wp_ajax_nopriv_woolentor_ajax_search', [ $this, 'ajax_search_callback' ] );
43
-
44
- }
45
-
46
- /**
47
- * [insert_to_cart] Insert add to cart
48
- * @return [JSON]
49
- */
50
- public function insert_to_cart(){
51
-
52
- // phpcs:disable WordPress.Security.NonceVerification.Missing
53
- if ( ! isset( $_POST['product_id'] ) ) {
54
- return;
55
- }
56
-
57
- $product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) );
58
- $quantity = empty( $_POST['quantity'] ) ? 1 : wc_stock_amount( wp_unslash( $_POST['quantity'] ) );
59
- $variation_id = !empty( $_POST['variation_id'] ) ? absint( $_POST['variation_id'] ) : 0;
60
- $variations = !empty( $_POST['variations'] ) ? array_map( 'sanitize_text_field', $_POST['variations'] ) : array();
61
- $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variations );
62
- $product_status = get_post_status( $product_id );
63
-
64
- if ( $passed_validation && \WC()->cart->add_to_cart( $product_id, $quantity, $variation_id, $variations ) && 'publish' === $product_status ) {
65
- do_action( 'woocommerce_ajax_added_to_cart', $product_id );
66
- if ( 'yes' === get_option('woocommerce_cart_redirect_after_add') ) {
67
- wc_add_to_cart_message( array( $product_id => $quantity ), true );
68
- }
69
- \WC_AJAX::get_refreshed_fragments();
70
- } else {
71
- $data = array(
72
- 'error' => true,
73
- 'product_url' => apply_filters('woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id ),
74
- );
75
- echo wp_send_json( $data );
76
- }
77
- wp_send_json_success();
78
-
79
- }
80
-
81
- /**
82
- * [single_product_insert_to_cart] Single product ajax add to cart callable function
83
- * @return [JSON]
84
- */
85
- public function single_product_insert_to_cart(){
86
-
87
- // phpcs:disable WordPress.Security.NonceVerification.Missing
88
- if ( ! isset( $_POST['product_id'] ) ) {
89
- return;
90
- }
91
-
92
- $product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) );
93
- $product = wc_get_product( $product_id );
94
- $quantity = empty( $_POST['quantity'] ) ? 1 : wc_stock_amount( wp_unslash( $_POST['quantity'] ) );
95
- $variation_id = !empty( $_POST['variation_id'] ) ? absint( $_POST['variation_id'] ) : 0;
96
- $variations = !empty( $_POST['variations'] ) ? array_map( 'sanitize_text_field', json_decode( stripslashes( $_POST['variations'] ), true ) ) : array();
97
- $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variations );
98
- $product_status = get_post_status( $product_id );
99
-
100
- $cart_item_data = $_POST;
101
-
102
- if ( $passed_validation && 'publish' === $product_status ) {
103
-
104
- if( count( $variations ) == 0 ){
105
- \WC()->cart->add_to_cart( $product_id, $quantity, $variation_id, $variations, $cart_item_data );
106
- }
107
-
108
- do_action( 'woocommerce_ajax_added_to_cart', $product_id );
109
- if ( 'yes' === get_option('woocommerce_cart_redirect_after_add') ) {
110
- wc_add_to_cart_message( array( $product_id => $quantity ), true );
111
- }
112
- \WC_AJAX::get_refreshed_fragments();
113
- } else {
114
- $data = array(
115
- 'error' => true,
116
- 'product_url' => apply_filters('woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id ),
117
- );
118
- echo wp_send_json( $data );
119
- }
120
- wp_send_json_success();
121
-
122
- }
123
-
124
- /**
125
- * [ajax_search_callback] ajax search
126
- * @return [void]
127
- */
128
- public function ajax_search_callback(){
129
- WooLentor_Ajax_Search_Base::instance()->ajax_search_callback();
130
- }
131
-
132
-
133
- }
134
-
135
- Woolentor_Ajax_Action::instance();
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ class Woolentor_Ajax_Action{
5
+
6
+ /**
7
+ * [$instance]
8
+ * @var null
9
+ */
10
+ private static $instance = null;
11
+
12
+ /**
13
+ * [instance]
14
+ * @return [Woolentor_Ajax_Action]
15
+ */
16
+ public static function instance(){
17
+ if( is_null( self::$instance ) ){
18
+ self::$instance = new self();
19
+ }
20
+ return self::$instance;
21
+ }
22
+
23
+ /**
24
+ * [__construct]
25
+ */
26
+ function __construct(){
27
+
28
+ // For Add to cart
29
+ add_action( 'wp_ajax_woolentor_insert_to_cart', [ $this, 'insert_to_cart' ] );
30
+ add_action( 'wp_ajax_nopriv_woolentor_insert_to_cart', [ $this, 'insert_to_cart' ] );
31
+
32
+ // For Single Product ajax add to cart
33
+ add_action( 'wp_ajax_woolentor_single_insert_to_cart', [ $this, 'single_product_insert_to_cart' ] );
34
+ add_action( 'wp_ajax_nopriv_woolentor_single_insert_to_cart', [ $this, 'single_product_insert_to_cart' ] );
35
+
36
+ // For Quickview
37
+ add_action( 'wp_ajax_woolentor_quickview', [ '\WooLentor\Quick_View_Manager', 'wc_quickview' ] );
38
+ add_action( 'wp_ajax_nopriv_woolentor_quickview', [ '\WooLentor\Quick_View_Manager', 'wc_quickview' ] );
39
+
40
+ // For ajax search
41
+ add_action( 'wp_ajax_woolentor_ajax_search', [ $this, 'ajax_search_callback' ] );
42
+ add_action( 'wp_ajax_nopriv_woolentor_ajax_search', [ $this, 'ajax_search_callback' ] );
43
+
44
+ }
45
+
46
+ /**
47
+ * [insert_to_cart] Insert add to cart
48
+ * @return [JSON]
49
+ */
50
+ public function insert_to_cart(){
51
+
52
+ // phpcs:disable WordPress.Security.NonceVerification.Missing
53
+ if ( ! isset( $_POST['product_id'] ) ) {
54
+ return;
55
+ }
56
+
57
+ $product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) );
58
+ $quantity = empty( $_POST['quantity'] ) ? 1 : wc_stock_amount( wp_unslash( $_POST['quantity'] ) );
59
+ $variation_id = !empty( $_POST['variation_id'] ) ? absint( $_POST['variation_id'] ) : 0;
60
+ $variations = !empty( $_POST['variations'] ) ? array_map( 'sanitize_text_field', $_POST['variations'] ) : array();
61
+ $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variations );
62
+ $product_status = get_post_status( $product_id );
63
+
64
+ if ( $passed_validation && \WC()->cart->add_to_cart( $product_id, $quantity, $variation_id, $variations ) && 'publish' === $product_status ) {
65
+ do_action( 'woocommerce_ajax_added_to_cart', $product_id );
66
+ if ( 'yes' === get_option('woocommerce_cart_redirect_after_add') ) {
67
+ wc_add_to_cart_message( array( $product_id => $quantity ), true );
68
+ }
69
+ \WC_AJAX::get_refreshed_fragments();
70
+ } else {
71
+ $data = array(
72
+ 'error' => true,
73
+ 'product_url' => apply_filters('woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id ),
74
+ );
75
+ echo wp_send_json( $data );
76
+ }
77
+ wp_send_json_success();
78
+
79
+ }
80
+
81
+ /**
82
+ * [single_product_insert_to_cart] Single product ajax add to cart callable function
83
+ * @return [JSON]
84
+ */
85
+ public function single_product_insert_to_cart(){
86
+
87
+ // phpcs:disable WordPress.Security.NonceVerification.Missing
88
+ if ( ! isset( $_POST['product_id'] ) ) {
89
+ return;
90
+ }
91
+
92
+ $product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) );
93
+ $product = wc_get_product( $product_id );
94
+ $quantity = empty( $_POST['quantity'] ) ? 1 : wc_stock_amount( wp_unslash( $_POST['quantity'] ) );
95
+ $variation_id = !empty( $_POST['variation_id'] ) ? absint( $_POST['variation_id'] ) : 0;
96
+ $variations = !empty( $_POST['variations'] ) ? array_map( 'sanitize_text_field', json_decode( stripslashes( $_POST['variations'] ), true ) ) : array();
97
+ $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variations );
98
+ $product_status = get_post_status( $product_id );
99
+
100
+ $cart_item_data = $_POST;
101
+
102
+ if ( $passed_validation && 'publish' === $product_status ) {
103
+
104
+ if( count( $variations ) == 0 ){
105
+ \WC()->cart->add_to_cart( $product_id, $quantity, $variation_id, $variations, $cart_item_data );
106
+ }
107
+
108
+ do_action( 'woocommerce_ajax_added_to_cart', $product_id );
109
+ if ( 'yes' === get_option('woocommerce_cart_redirect_after_add') ) {
110
+ wc_add_to_cart_message( array( $product_id => $quantity ), true );
111
+ }
112
+ \WC_AJAX::get_refreshed_fragments();
113
+ } else {
114
+ $data = array(
115
+ 'error' => true,
116
+ 'product_url' => apply_filters('woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id ),
117
+ );
118
+ echo wp_send_json( $data );
119
+ }
120
+ wp_send_json_success();
121
+
122
+ }
123
+
124
+ /**
125
+ * [ajax_search_callback] ajax search
126
+ * @return [void]
127
+ */
128
+ public function ajax_search_callback(){
129
+ WooLentor_Ajax_Search_Base::instance()->ajax_search_callback();
130
+ }
131
+
132
+
133
+ }
134
+
135
+ Woolentor_Ajax_Action::instance();
classes/class.default_data.php CHANGED
@@ -166,7 +166,7 @@ class WooLentor_Default_Data{
166
  if ( function_exists( 'wc_get_gallery_image_html' ) ) {
167
  ?>
168
  <div class="product">
169
- <div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>" data-columns="<?php echo esc_attr( $columns ); ?>" style="transition: opacity .25s ease-in-out;float: none;width: 100%;">
170
  <figure class="woocommerce-product-gallery__wrapper">
171
  <?php
172
  if ( $product->get_image_id() ) {
166
  if ( function_exists( 'wc_get_gallery_image_html' ) ) {
167
  ?>
168
  <div class="product">
169
+ <div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>" data-columns="<?php echo esc_attr( $columns ); ?>" style="opacity: 0; transition: opacity .25s ease-in-out;">
170
  <figure class="woocommerce-product-gallery__wrapper">
171
  <?php
172
  if ( $product->get_image_id() ) {
classes/class.icon_list.php CHANGED
@@ -1,219 +1,219 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
-
4
- class Woolentor_Icon_List{
5
-
6
- /**
7
- * [get_icons]
8
- * @return [array]
9
- */
10
- public static function get_icons(){
11
- $simple_line_icon = [
12
- 'sli-user' => 'sli sli-user',
13
- 'sli-people' => 'sli sli-people',
14
- 'sli-user-female' => 'sli sli-user-female',
15
- 'sli-user-follow' => 'sli sli-user-follow',
16
- 'sli-user-following' => 'sli sli-user-following',
17
- 'sli-user-unfollow' => 'sli sli-user-unfollow',
18
- 'sli-login' => 'sli sli-login',
19
- 'sli-logout' => 'sli sli-logout',
20
- 'sli-emotsmile' => 'sli sli-emotsmile',
21
- 'sli-phone' => 'sli sli-phone',
22
- 'sli-call-end' => 'sli sli-call-end',
23
- 'sli-call-in' => 'sli sli-call-in',
24
- 'sli-call-out' => 'sli sli-call-out',
25
- 'sli-map' => 'sli sli-map',
26
- 'sli-location-pin' => 'sli sli-location-pin',
27
- 'sli-direction' => 'sli sli-direction',
28
- 'sli-directions' => 'sli sli-directions',
29
- 'sli-compass' => 'sli sli-compass',
30
- 'sli-layers' => 'sli sli-layers',
31
- 'sli-menu' => 'sli sli-menu',
32
- 'sli-list' => 'sli sli-list',
33
- 'sli-options-vertical' => 'sli sli-options-vertical',
34
- 'sli-options' => 'sli sli-options',
35
- 'sli-arrow-down' => 'sli sli-arrow-down',
36
- 'sli-arrow-left' => 'sli sli-arrow-left',
37
- 'sli-arrow-right' => 'sli sli-arrow-right',
38
- 'sli-arrow-up' => 'sli sli-arrow-up',
39
- 'sli-arrow-up-circle' => 'sli sli-arrow-up-circle',
40
- 'sli-arrow-left-circle' => 'sli sli-arrow-left-circle',
41
- 'sli-arrow-right-circle' => 'sli sli-arrow-right-circle',
42
- 'sli-arrow-down-circle' => 'sli sli-arrow-down-circle',
43
- 'sli-check' => 'sli sli-check',
44
- 'sli-clock' => 'sli sli-clock',
45
- 'sli-plus' => 'sli sli-plus',
46
- 'sli-minus' => 'sli sli-minus',
47
- 'sli-close' => 'sli sli-close',
48
- 'sli-event' => 'sli sli-event',
49
- 'sli-exclamation' => 'sli sli-exclamation',
50
- 'sli-organization' => 'sli sli-organization',
51
- 'sli-trophy' => 'sli sli-trophy',
52
- 'sli-screen-smartphone' => 'sli sli-screen-smartphone',
53
- 'sli-screen-desktop' => 'sli sli-screen-desktop',
54
- 'sli-plane' => 'sli sli-plane',
55
- 'sli-notebook' => 'sli sli-notebook',
56
- 'sli-mustache' => 'sli sli-mustache',
57
- 'sli-mouse' => 'sli sli-mouse',
58
- 'sli-magnet' => 'sli sli-magnet',
59
- 'sli-energy' => 'sli sli-energy',
60
- 'sli-disc' => 'sli sli-disc',
61
- 'sli-cursor' => 'sli sli-cursor',
62
- 'sli-cursor-move' => 'sli sli-cursor-move',
63
- 'sli-crop' => 'sli sli-crop',
64
- 'sli-chemistry' => 'sli sli-chemistry',
65
- 'sli-speedometer' => 'sli sli-speedometer',
66
- 'sli-shield' => 'sli sli-shield',
67
- 'sli-screen-tablet' => 'sli sli-screen-tablet',
68
- 'sli-magic-wand' => 'sli sli-magic-wand',
69
- 'sli-hourglass' => 'sli sli-hourglass',
70
- 'sli-graduation' => 'sli sli-graduation',
71
- 'sli-ghost' => 'sli sli-ghost',
72
- 'sli-game-controller' => 'sli sli-game-controller',
73
- 'sli-fire' => 'sli sli-fire',
74
- 'sli-eyeglass' => 'sli sli-eyeglass',
75
- 'sli-envelope-open' => 'sli sli-envelope-open',
76
- 'sli-envelope-letter' => 'sli sli-envelope-letter',
77
- 'sli-bell' => 'sli sli-bell',
78
- 'sli-badge' => 'sli sli-badge',
79
- 'sli-anchor' => 'sli sli-anchor',
80
- 'sli-wallet' => 'sli sli-wallet',
81
- 'sli-vector' => 'sli sli-vector',
82
- 'sli-speech' => 'sli sli-speech',
83
- 'sli-puzzle' => 'sli sli-puzzle',
84
- 'sli-printer' => 'sli sli-printer',
85
- 'sli-present' => 'sli sli-present',
86
- 'sli-playlist' => 'sli sli-playlist',
87
- 'sli-pin' => 'sli sli-pin',
88
- 'sli-picture' => 'sli sli-picture',
89
- 'sli-handbag' => 'sli sli-handbag',
90
- 'sli-globe-alt' => 'sli sli-globe-alt',
91
- 'sli-globe' => 'sli sli-globe',
92
- 'sli-folder-alt' => 'sli sli-folder-alt',
93
- 'sli-folder' => 'sli sli-folder',
94
- 'sli-film' => 'sli sli-film',
95
- 'sli-feed' => 'sli sli-feed',
96
- 'sli-drop' => 'sli sli-drop',
97
- 'sli-drawer' => 'sli sli-drawer',
98
- 'sli-docs' => 'sli sli-docs',
99
- 'sli-doc' => 'sli sli-doc',
100
- 'sli-diamond' => 'sli sli-diamond',
101
- 'sli-cup' => 'sli sli-cup',
102
- 'sli-calculator' => 'sli sli-calculator',
103
- 'sli-bubbles' => 'sli sli-bubbles',
104
- 'sli-briefcase' => 'sli sli-briefcase',
105
- 'sli-book-open' => 'sli sli-book-open',
106
- 'sli-basket-loaded' => 'sli sli-basket-loaded',
107
- 'sli-basket' => 'sli sli-basket',
108
- 'sli-bag' => 'sli sli-bag',
109
- 'sli-action-undo' => 'sli sli-action-undo',
110
- 'sli-action-redo' => 'sli sli-action-redo',
111
- 'sli-wrench' => 'sli sli-wrench',
112
- 'sli-umbrella' => 'sli sli-umbrella',
113
- 'sli-trash' => 'sli sli-trash',
114
- 'sli-tag' => 'sli sli-tag',
115
- 'sli-support' => 'sli sli-support',
116
- 'sli-frame' => 'sli sli-frame',
117
- 'sli-size-fullscreen' => 'sli sli-size-fullscreen',
118
- 'sli-size-actual' => 'sli sli-size-actual',
119
- 'sli-shuffle' => 'sli sli-shuffle',
120
- 'sli-share-alt' => 'sli sli-share-alt',
121
- 'sli-share' => 'sli sli-share',
122
- 'sli-rocket' => 'sli sli-rocket',
123
- 'sli-question' => 'sli sli-question',
124
- 'sli-pie-chart' => 'sli sli-pie-chart',
125
- 'sli-pencil' => 'sli sli-pencil',
126
- 'sli-note' => 'sli sli-note',
127
- 'sli-loop' => 'sli sli-loop',
128
- 'sli-home' => 'sli sli-home',
129
- 'sli-grid' => 'sli sli-grid',
130
- 'sli-graph' => 'sli sli-graph',
131
- 'sli-microphone' => 'sli sli-microphone',
132
- 'sli-music-tone-alt' => 'sli sli-music-tone-alt',
133
- 'sli-music-tone' => 'sli sli-music-tone',
134
- 'sli-earphones-alt' => 'sli sli-earphones-alt',
135
- 'sli-earphones' => 'sli sli-earphones',
136
- 'sli-equalizer' => 'sli sli-equalizer',
137
- 'sli-like' => 'sli sli-like',
138
- 'sli-dislike' => 'sli sli-dislike',
139
- 'sli-control-start' => 'sli sli-control-start',
140
- 'sli-control-rewind' => 'sli sli-control-rewind',
141
- 'sli-control-play' => 'sli sli-control-play',
142
- 'sli-control-pause' => 'sli sli-control-pause',
143
- 'sli-control-forward' => 'sli sli-control-forward',
144
- 'sli-control-end' => 'sli sli-control-end',
145
- 'sli-volume-1' => 'sli sli-volume-1',
146
- 'sli-volume-2' => 'sli sli-volume-2',
147
- 'sli-volume-off' => 'sli sli-volume-off',
148
- 'sli-calendar' => 'sli sli-calendar',
149
- 'sli-bulb' => 'sli sli-bulb',
150
- 'sli-chart' => 'sli sli-chart',
151
- 'sli-ban' => 'sli sli-ban',
152
- 'sli-bubble' => 'sli sli-bubble',
153
- 'sli-camrecorder' => 'sli sli-camrecorder',
154
- 'sli-camera' => 'sli sli-camera',
155
- 'sli-cloud-download' => 'sli sli-cloud-download',
156
- 'sli-cloud-upload' => 'sli sli-cloud-upload',
157
- 'sli-envelope' => 'sli sli-envelope',
158
- 'sli-eye' => 'sli sli-eye',
159
- 'sli-flag' => 'sli sli-flag',
160
- 'sli-heart' => 'sli sli-heart',
161
- 'sli-info' => 'sli sli-info',
162
- 'sli-key' => 'sli sli-key',
163
- 'sli-link' => 'sli sli-link',
164
- 'sli-lock' => 'sli sli-lock',
165
- 'sli-lock-open' => 'sli sli-lock-open',
166
- 'sli-magnifier' => 'sli sli-magnifier',
167
- 'sli-magnifier-add' => 'sli sli-magnifier-add',
168
- 'sli-magnifier-remove' => 'sli sli-magnifier-remove',
169
- 'sli-paper-clip' => 'sli sli-paper-clip',
170
- 'sli-paper-plane' => 'sli sli-paper-plane',
171
- 'sli-power' => 'sli sli-power',
172
- 'sli-refresh' => 'sli sli-refresh',
173
- 'sli-reload' => 'sli sli-reload',
174
- 'sli-settings' => 'sli sli-settings',
175
- 'sli-star' => 'sli sli-star',
176
- 'sli-symbol-female' => 'sli sli-symbol-female',
177
- 'sli-symbol-male' => 'sli sli-symbol-male',
178
- 'sli-target' => 'sli sli-target',
179
- 'sli-credit-card' => 'sli sli-credit-card',
180
- 'sli-paypal' => 'sli sli-paypal',
181
- 'sli-social-tumblr' => 'sli sli-social-tumblr',
182
- 'sli-social-twitter' => 'sli sli-social-twitter',
183
- 'sli-social-facebook' => 'sli sli-social-facebook',
184
- 'sli-social-instagram' => 'sli sli-social-instagram',
185
- 'sli-social-linkedin' => 'sli sli-social-linkedin',
186
- 'sli-social-pinterest' => 'sli sli-social-pinterest',
187
- 'sli-social-github' => 'sli sli-social-github',
188
- 'sli-social-google' => 'sli sli-social-google',
189
- 'sli-social-reddit' => 'sli sli-social-reddit',
190
- 'sli-social-skype' => 'sli sli-social-skype',
191
- 'sli-social-dribbble' => 'sli sli-social-dribbble',
192
- 'sli-social-behance' => 'sli sli-social-behance',
193
- 'sli-social-foursqare' => 'sli sli-social-foursqare',
194
- 'sli-social-soundcloud' => 'sli sli-social-soundcloud',
195
- 'sli-social-spotify' => 'sli sli-social-spotify',
196
- 'sli-social-stumbleupon' => 'sli sli-social-stumbleupon',
197
- 'sli-social-youtube' => 'sli sli-social-youtube',
198
- 'sli-social-dropbox' => 'sli sli-social-dropbox',
199
- 'sli-social-vkontakte' => 'sli sli-social-vkontakte',
200
- 'sli-social-steam' => 'sli sli-social-steam',
201
- ];
202
-
203
- $all_icon = array_merge( $simple_line_icon );
204
- return $all_icon;
205
- }
206
-
207
- public static function icon_sets(){
208
-
209
- $icon_set = [];
210
- $sinple_line = self::get_icons();
211
-
212
- foreach( $sinple_line as $key => $icon ) {
213
- $icon_set['SimpleLineIcon'][] = $icon;
214
- }
215
- return $icon_set;
216
- }
217
-
218
-
219
  }
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ class Woolentor_Icon_List{
5
+
6
+ /**
7
+ * [get_icons]
8
+ * @return [array]
9
+ */
10
+ public static function get_icons(){
11
+ $simple_line_icon = [
12
+ 'sli-user' => 'sli sli-user',
13
+ 'sli-people' => 'sli sli-people',
14
+ 'sli-user-female' => 'sli sli-user-female',
15
+ 'sli-user-follow' => 'sli sli-user-follow',
16
+ 'sli-user-following' => 'sli sli-user-following',
17
+ 'sli-user-unfollow' => 'sli sli-user-unfollow',
18
+ 'sli-login' => 'sli sli-login',
19
+ 'sli-logout' => 'sli sli-logout',
20
+ 'sli-emotsmile' => 'sli sli-emotsmile',
21
+ 'sli-phone' => 'sli sli-phone',
22
+ 'sli-call-end' => 'sli sli-call-end',
23
+ 'sli-call-in' => 'sli sli-call-in',
24
+ 'sli-call-out' => 'sli sli-call-out',
25
+ 'sli-map' => 'sli sli-map',
26
+ 'sli-location-pin' => 'sli sli-location-pin',
27
+ 'sli-direction' => 'sli sli-direction',
28
+ 'sli-directions' => 'sli sli-directions',
29
+ 'sli-compass' => 'sli sli-compass',
30
+ 'sli-layers' => 'sli sli-layers',
31
+ 'sli-menu' => 'sli sli-menu',
32
+ 'sli-list' => 'sli sli-list',
33
+ 'sli-options-vertical' => 'sli sli-options-vertical',
34
+ 'sli-options' => 'sli sli-options',
35
+ 'sli-arrow-down' => 'sli sli-arrow-down',
36
+ 'sli-arrow-left' => 'sli sli-arrow-left',
37
+ 'sli-arrow-right' => 'sli sli-arrow-right',
38
+ 'sli-arrow-up' => 'sli sli-arrow-up',
39
+ 'sli-arrow-up-circle' => 'sli sli-arrow-up-circle',
40
+ 'sli-arrow-left-circle' => 'sli sli-arrow-left-circle',
41
+ 'sli-arrow-right-circle' => 'sli sli-arrow-right-circle',
42
+ 'sli-arrow-down-circle' => 'sli sli-arrow-down-circle',
43
+ 'sli-check' => 'sli sli-check',
44
+ 'sli-clock' => 'sli sli-clock',
45
+ 'sli-plus' => 'sli sli-plus',
46
+ 'sli-minus' => 'sli sli-minus',
47
+ 'sli-close' => 'sli sli-close',
48
+ 'sli-event' => 'sli sli-event',
49
+ 'sli-exclamation' => 'sli sli-exclamation',
50
+ 'sli-organization' => 'sli sli-organization',
51
+ 'sli-trophy' => 'sli sli-trophy',
52
+ 'sli-screen-smartphone' => 'sli sli-screen-smartphone',
53
+ 'sli-screen-desktop' => 'sli sli-screen-desktop',
54
+ 'sli-plane' => 'sli sli-plane',
55
+ 'sli-notebook' => 'sli sli-notebook',
56
+ 'sli-mustache' => 'sli sli-mustache',
57
+ 'sli-mouse' => 'sli sli-mouse',
58
+ 'sli-magnet' => 'sli sli-magnet',
59
+ 'sli-energy' => 'sli sli-energy',
60
+ 'sli-disc' => 'sli sli-disc',
61
+ 'sli-cursor' => 'sli sli-cursor',
62
+ 'sli-cursor-move' => 'sli sli-cursor-move',
63
+ 'sli-crop' => 'sli sli-crop',
64
+ 'sli-chemistry' => 'sli sli-chemistry',
65
+ 'sli-speedometer' => 'sli sli-speedometer',
66
+ 'sli-shield' => 'sli sli-shield',
67
+ 'sli-screen-tablet' => 'sli sli-screen-tablet',
68
+ 'sli-magic-wand' => 'sli sli-magic-wand',
69
+ 'sli-hourglass' => 'sli sli-hourglass',
70
+ 'sli-graduation' => 'sli sli-graduation',
71
+ 'sli-ghost' => 'sli sli-ghost',
72
+ 'sli-game-controller' => 'sli sli-game-controller',
73
+ 'sli-fire' => 'sli sli-fire',
74
+ 'sli-eyeglass' => 'sli sli-eyeglass',
75
+ 'sli-envelope-open' => 'sli sli-envelope-open',
76
+ 'sli-envelope-letter' => 'sli sli-envelope-letter',
77
+ 'sli-bell' => 'sli sli-bell',
78
+ 'sli-badge' => 'sli sli-badge',
79
+ 'sli-anchor' => 'sli sli-anchor',
80
+ 'sli-wallet' => 'sli sli-wallet',
81
+ 'sli-vector' => 'sli sli-vector',
82
+ 'sli-speech' => 'sli sli-speech',
83
+ 'sli-puzzle' => 'sli sli-puzzle',
84
+ 'sli-printer' => 'sli sli-printer',
85
+ 'sli-present' => 'sli sli-present',
86
+ 'sli-playlist' => 'sli sli-playlist',
87
+ 'sli-pin' => 'sli sli-pin',
88
+ 'sli-picture' => 'sli sli-picture',
89
+ 'sli-handbag' => 'sli sli-handbag',
90
+ 'sli-globe-alt' => 'sli sli-globe-alt',
91
+ 'sli-globe' => 'sli sli-globe',
92
+ 'sli-folder-alt' => 'sli sli-folder-alt',
93
+ 'sli-folder' => 'sli sli-folder',
94
+ 'sli-film' => 'sli sli-film',
95
+ 'sli-feed' => 'sli sli-feed',
96
+ 'sli-drop' => 'sli sli-drop',
97
+ 'sli-drawer' => 'sli sli-drawer',
98
+ 'sli-docs' => 'sli sli-docs',
99
+ 'sli-doc' => 'sli sli-doc',
100
+ 'sli-diamond' => 'sli sli-diamond',
101
+ 'sli-cup' => 'sli sli-cup',
102
+ 'sli-calculator' => 'sli sli-calculator',
103
+ 'sli-bubbles' => 'sli sli-bubbles',
104
+ 'sli-briefcase' => 'sli sli-briefcase',
105
+ 'sli-book-open' => 'sli sli-book-open',
106
+ 'sli-basket-loaded' => 'sli sli-basket-loaded',
107
+ 'sli-basket' => 'sli sli-basket',
108
+ 'sli-bag' => 'sli sli-bag',
109
+ 'sli-action-undo' => 'sli sli-action-undo',
110
+ 'sli-action-redo' => 'sli sli-action-redo',
111
+ 'sli-wrench' => 'sli sli-wrench',
112
+ 'sli-umbrella' => 'sli sli-umbrella',
113
+ 'sli-trash' => 'sli sli-trash',
114
+ 'sli-tag' => 'sli sli-tag',
115
+ 'sli-support' => 'sli sli-support',
116
+ 'sli-frame' => 'sli sli-frame',
117
+ 'sli-size-fullscreen' => 'sli sli-size-fullscreen',
118
+ 'sli-size-actual' => 'sli sli-size-actual',
119
+ 'sli-shuffle' => 'sli sli-shuffle',
120
+ 'sli-share-alt' => 'sli sli-share-alt',
121
+ 'sli-share' => 'sli sli-share',
122
+ 'sli-rocket' => 'sli sli-rocket',
123
+ 'sli-question' => 'sli sli-question',
124
+ 'sli-pie-chart' => 'sli sli-pie-chart',
125
+ 'sli-pencil' => 'sli sli-pencil',
126
+ 'sli-note' => 'sli sli-note',
127
+ 'sli-loop' => 'sli sli-loop',
128
+ 'sli-home' => 'sli sli-home',
129
+ 'sli-grid' => 'sli sli-grid',
130
+ 'sli-graph' => 'sli sli-graph',
131
+ 'sli-microphone' => 'sli sli-microphone',
132
+ 'sli-music-tone-alt' => 'sli sli-music-tone-alt',
133
+ 'sli-music-tone' => 'sli sli-music-tone',
134
+ 'sli-earphones-alt' => 'sli sli-earphones-alt',
135
+ 'sli-earphones' => 'sli sli-earphones',
136
+ 'sli-equalizer' => 'sli sli-equalizer',
137
+ 'sli-like' => 'sli sli-like',
138
+ 'sli-dislike' => 'sli sli-dislike',
139
+ 'sli-control-start' => 'sli sli-control-start',
140
+ 'sli-control-rewind' => 'sli sli-control-rewind',
141
+ 'sli-control-play' => 'sli sli-control-play',
142
+ 'sli-control-pause' => 'sli sli-control-pause',
143
+ 'sli-control-forward' => 'sli sli-control-forward',
144
+ 'sli-control-end' => 'sli sli-control-end',
145
+ 'sli-volume-1' => 'sli sli-volume-1',
146
+ 'sli-volume-2' => 'sli sli-volume-2',
147
+ 'sli-volume-off' => 'sli sli-volume-off',
148
+ 'sli-calendar' => 'sli sli-calendar',
149
+ 'sli-bulb' => 'sli sli-bulb',
150
+ 'sli-chart' => 'sli sli-chart',
151
+ 'sli-ban' => 'sli sli-ban',
152
+ 'sli-bubble' => 'sli sli-bubble',
153
+ 'sli-camrecorder' => 'sli sli-camrecorder',
154
+ 'sli-camera' => 'sli sli-camera',
155
+ 'sli-cloud-download' => 'sli sli-cloud-download',
156
+ 'sli-cloud-upload' => 'sli sli-cloud-upload',
157
+ 'sli-envelope' => 'sli sli-envelope',
158
+ 'sli-eye' => 'sli sli-eye',
159
+ 'sli-flag' => 'sli sli-flag',
160
+ 'sli-heart' => 'sli sli-heart',
161
+ 'sli-info' => 'sli sli-info',
162
+ 'sli-key' => 'sli sli-key',
163
+ 'sli-link' => 'sli sli-link',
164
+ 'sli-lock' => 'sli sli-lock',
165
+ 'sli-lock-open' => 'sli sli-lock-open',
166
+ 'sli-magnifier' => 'sli sli-magnifier',
167
+ 'sli-magnifier-add' => 'sli sli-magnifier-add',
168
+ 'sli-magnifier-remove' => 'sli sli-magnifier-remove',
169
+ 'sli-paper-clip' => 'sli sli-paper-clip',
170
+ 'sli-paper-plane' => 'sli sli-paper-plane',
171
+ 'sli-power' => 'sli sli-power',
172
+ 'sli-refresh' => 'sli sli-refresh',
173
+ 'sli-reload' => 'sli sli-reload',
174
+ 'sli-settings' => 'sli sli-settings',
175
+ 'sli-star' => 'sli sli-star',
176
+ 'sli-symbol-female' => 'sli sli-symbol-female',
177
+ 'sli-symbol-male' => 'sli sli-symbol-male',
178
+ 'sli-target' => 'sli sli-target',
179
+ 'sli-credit-card' => 'sli sli-credit-card',
180
+ 'sli-paypal' => 'sli sli-paypal',
181
+ 'sli-social-tumblr' => 'sli sli-social-tumblr',
182
+ 'sli-social-twitter' => 'sli sli-social-twitter',
183
+ 'sli-social-facebook' => 'sli sli-social-facebook',
184
+ 'sli-social-instagram' => 'sli sli-social-instagram',
185
+ 'sli-social-linkedin' => 'sli sli-social-linkedin',
186
+ 'sli-social-pinterest' => 'sli sli-social-pinterest',
187
+ 'sli-social-github' => 'sli sli-social-github',
188
+ 'sli-social-google' => 'sli sli-social-google',
189
+ 'sli-social-reddit' => 'sli sli-social-reddit',
190
+ 'sli-social-skype' => 'sli sli-social-skype',
191
+ 'sli-social-dribbble' => 'sli sli-social-dribbble',
192
+ 'sli-social-behance' => 'sli sli-social-behance',
193
+ 'sli-social-foursqare' => 'sli sli-social-foursqare',
194
+ 'sli-social-soundcloud' => 'sli sli-social-soundcloud',
195
+ 'sli-social-spotify' => 'sli sli-social-spotify',
196
+ 'sli-social-stumbleupon' => 'sli sli-social-stumbleupon',
197
+ 'sli-social-youtube' => 'sli sli-social-youtube',
198
+ 'sli-social-dropbox' => 'sli sli-social-dropbox',
199
+ 'sli-social-vkontakte' => 'sli sli-social-vkontakte',
200
+ 'sli-social-steam' => 'sli sli-social-steam',
201
+ ];
202
+
203
+ $all_icon = array_merge( $simple_line_icon );
204
+ return $all_icon;
205
+ }
206
+
207
+ public static function icon_sets(){
208
+
209
+ $icon_set = [];
210
+ $sinple_line = self::get_icons();
211
+
212
+ foreach( $sinple_line as $key => $icon ) {
213
+ $icon_set['SimpleLineIcon'][] = $icon;
214
+ }
215
+ return $icon_set;
216
+ }
217
+
218
+
219
  }
includes/addons/product_accordion.php CHANGED
@@ -418,7 +418,7 @@ class Woolentor_Product_Accordion_Layout_Widget extends Widget_Base {
418
  $this->add_control(
419
  'product_collapse_icon_color',
420
  [
421
- 'label' => __( 'Collapse Icon Color', 'woolentor' ),
422
  'type' => Controls_Manager::COLOR,
423
  'default' => '#3951E1',
424
  'selectors' => [
418
  $this->add_control(
419
  'product_collapse_icon_color',
420
  [
421
+ 'label' => __( 'Collapse Iocn Color', 'woolentor' ),
422
  'type' => Controls_Manager::COLOR,
423
  'default' => '#3951E1',
424
  'selectors' => [
includes/addons/wb_archive_product.php CHANGED
@@ -49,7 +49,7 @@ class Woolentor_Elementor_Widget_Archive_Product extends Widget_Base {
49
  [
50
  'label' => __( 'Columns', 'woolentor' ),
51
  'type' => Controls_Manager::NUMBER,
52
- 'prefix_class' => 'woolentorducts-columns%s-',
53
  'min' => 1,
54
  'max' => 12,
55
  'default' => 4,
49
  [
50
  'label' => __( 'Columns', 'woolentor' ),
51
  'type' => Controls_Manager::NUMBER,
52
+ 'prefix_class' => 'woolentorproducts-columns%s-',
53
  'min' => 1,
54
  'max' => 12,
55
  'default' => 4,
includes/addons/wb_ever_compare_table.php CHANGED
@@ -1,205 +1,205 @@
1
- <?php
2
- namespace Elementor;
3
-
4
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
-
6
- class WL_EverCompare_Table_Element extends Widget_Base {
7
-
8
- public function get_name() {
9
- return 'wb-evercompare-table';
10
- }
11
-
12
- public function get_title() {
13
- return __( 'WL: EverCompare', 'woolentor' );
14
- }
15
-
16
- public function get_icon() {
17
- return 'eicon-table';
18
- }
19
-
20
- public function get_categories() {
21
- return array( 'woolentor-addons' );
22
- }
23
-
24
- public function get_style_depends(){
25
- return [
26
- 'evercompare-frontend',
27
- 'woolentor-widgets',
28
- ];
29
- }
30
-
31
- public function get_script_depends(){
32
- return ['evercompare-frontend'];
33
- }
34
-
35
- public function get_keywords(){
36
- return ['compare','product compare','ever compare'];
37
- }
38
-
39
- protected function _register_controls() {
40
-
41
- // Content
42
- $this->start_controls_section(
43
- 'evercompare_content',
44
- [
45
- 'label' => __( 'EverCompare', 'woolentor' ),
46
- ]
47
- );
48
-
49
- $this->add_control(
50
- 'empty_table_text',
51
- [
52
- 'label' => __( 'Empty table text', 'woolentor' ),
53
- 'type' => Controls_Manager::TEXT,
54
- 'label_block'=>true,
55
- ]
56
- );
57
-
58
- $this->end_controls_section();
59
-
60
- // Heading Style
61
- $this->start_controls_section(
62
- 'heading_style_section',
63
- [
64
- 'label' => __( 'Heading', 'woolentor' ),
65
- 'tab' => Controls_Manager::TAB_STYLE,
66
- ]
67
- );
68
-
69
- $this->add_control(
70
- 'heading_color',
71
- [
72
- 'label' => __( 'Heading Color', 'woolentor' ),
73
- 'type' => Controls_Manager::COLOR,
74
- 'selectors' => [
75
- '{{WRAPPER}} .htcolumn-field-name' => 'color: {{VALUE}}',
76
- ],
77
- ]
78
- );
79
-
80
- $this->add_group_control(
81
- \Elementor\Group_Control_Typography::get_type(),
82
- [
83
- 'name' => 'heading_typography',
84
- 'label' => __( 'Typography', 'woolentor' ),
85
- 'selector' => '{{WRAPPER}} .htcolumn-field-name',
86
- ]
87
- );
88
-
89
- $this->add_group_control(
90
- Group_Control_Background::get_type(),
91
- [
92
- 'name' => 'heading_background',
93
- 'label' => __( 'Even Heading Background', 'woolentor' ),
94
- 'types' => [ 'classic', 'gradient' ],
95
- 'selector' => '{{WRAPPER}} .htcompare-row:nth-child(2n) .htcompare-col',
96
- 'exclude' =>['image'],
97
- 'fields_options'=>[
98
- 'background'=>[
99
- 'label'=>__( 'Even Heading Background', 'woolentor' )
100
- ]
101
- ]
102
- ]
103
- );
104
-
105
- $this->add_group_control(
106
- Group_Control_Background::get_type(),
107
- [
108
- 'name' => 'heading_background_odd',
109
- 'label' => __( 'Odd Heading Background', 'woolentor' ),
110
- 'types' => [ 'classic', 'gradient' ],
111
- 'selector' => '{{WRAPPER}} .htcompare-row:nth-child(2n+1) .htcompare-col',
112
- 'exclude' =>['image'],
113
- 'fields_options'=>[
114
- 'background'=>[
115
- 'label'=>__( 'Odd Heading Background', 'woolentor' )
116
- ]
117
- ]
118
- ]
119
- );
120
-
121
- $this->end_controls_section();
122
-
123
- // Content Style
124
- $this->start_controls_section(
125
- 'content_style_section',
126
- [
127
- 'label' => __( 'Content', 'woolentor' ),
128
- 'tab' => Controls_Manager::TAB_STYLE,
129
- ]
130
- );
131
- $this->add_control(
132
- 'content_color',
133
- [
134
- 'label' => __( 'Content Color', 'woolentor' ),
135
- 'type' => Controls_Manager::COLOR,
136
- 'selectors' => [
137
- '{{WRAPPER}} .htcolumn-value' => 'color: {{VALUE}}',
138
- ],
139
- ]
140
- );
141
-
142
- $this->add_control(
143
- 'content_link_color',
144
- [
145
- 'label' => __( 'Content Link Color', 'woolentor' ),
146
- 'type' => Controls_Manager::COLOR,
147
- 'selectors' => [
148
- '{{WRAPPER}} .htcolumn-value a' => 'color: {{VALUE}}',
149
- ],
150
- ]
151
- );
152
-
153
- $this->add_control(
154
- 'cart_btn_color',
155
- [
156
- 'label' => __( 'Cart Button Color', 'woolentor' ),
157
- 'type' => Controls_Manager::COLOR,
158
- 'selectors' => [
159
- '{{WRAPPER}} .htcolumn-value a.htcompare-cart-button' => 'color: {{VALUE}}',
160
- ],
161
- ]
162
- );
163
-
164
- $this->add_group_control(
165
- Group_Control_Background::get_type(),
166
- [
167
- 'name' => 'cart_btn_background',
168
- 'label' => __( 'Cart Button Background', 'woolentor' ),
169
- 'types' => [ 'classic', 'gradient' ],
170
- 'selector' => '{{WRAPPER}} .htcolumn-value a.htcompare-cart-button',
171
- 'exclude' =>['image'],
172
- 'fields_options'=>[
173
- 'background'=>[
174
- 'label'=>__( 'Cart Button Background', 'woolentor' )
175
- ]
176
- ]
177
- ]
178
- );
179
-
180
- $this->add_control(
181
- 'border_color',
182
- [
183
- 'label' => __( 'Border Color', 'woolentor' ),
184
- 'type' => Controls_Manager::COLOR,
185
- 'selectors' => [
186
- '{{WRAPPER}} .htcompare-col' => 'border-color: {{VALUE}}',
187
- ],
188
- ]
189
- );
190
-
191
- $this->end_controls_section();
192
-
193
- }
194
-
195
- protected function render( $instance = [] ) {
196
- $settings = $this->get_settings_for_display();
197
-
198
- $short_code_attributes = [
199
- 'empty_compare_text' => $settings['empty_table_text'],
200
- ];
201
- echo woolentor_do_shortcode( 'evercompare_table', $short_code_attributes );
202
- }
203
-
204
- }
205
- Plugin::instance()->widgets_manager->register_widget_type( new WL_EverCompare_Table_Element() );
1
+ <?php
2
+ namespace Elementor;
3
+
4
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
+
6
+ class WL_EverCompare_Table_Element extends Widget_Base {
7
+
8
+ public function get_name() {
9
+ return 'wb-evercompare-table';
10
+ }
11
+
12
+ public function get_title() {
13
+ return __( 'WL: EverCompare', 'woolentor' );
14
+ }
15
+
16
+ public function get_icon() {
17
+ return 'eicon-table';
18
+ }
19
+
20
+ public function get_categories() {
21
+ return array( 'woolentor-addons' );
22
+ }
23
+
24
+ public function get_style_depends(){
25
+ return [
26
+ 'evercompare-frontend',
27
+ 'woolentor-widgets',
28
+ ];
29
+ }
30
+
31
+ public function get_script_depends(){
32
+ return ['evercompare-frontend'];
33
+ }
34
+
35
+ public function get_keywords(){
36
+ return ['compare','product compare','ever compare'];
37
+ }
38
+
39
+ protected function _register_controls() {
40
+
41
+ // Content
42
+ $this->start_controls_section(
43
+ 'evercompare_content',
44
+ [
45
+ 'label' => __( 'EverCompare', 'woolentor' ),
46
+ ]
47
+ );
48
+
49
+ $this->add_control(
50
+ 'empty_table_text',
51
+ [
52
+ 'label' => __( 'Empty table text', 'woolentor' ),
53
+ 'type' => Controls_Manager::TEXT,
54
+ 'label_block'=>true,
55
+ ]
56
+ );
57
+
58
+ $this->end_controls_section();
59
+
60
+ // Heading Style
61
+ $this->start_controls_section(
62
+ 'heading_style_section',
63
+ [
64
+ 'label' => __( 'Heading', 'woolentor' ),
65
+ 'tab' => Controls_Manager::TAB_STYLE,
66
+ ]
67
+ );
68
+
69
+ $this->add_control(
70
+ 'heading_color',
71
+ [
72
+ 'label' => __( 'Heading Color', 'woolentor' ),
73
+ 'type' => Controls_Manager::COLOR,
74
+ 'selectors' => [
75
+ '{{WRAPPER}} .htcolumn-field-name' => 'color: {{VALUE}}',
76
+ ],
77
+ ]
78
+ );
79
+
80
+ $this->add_group_control(
81
+ \Elementor\Group_Control_Typography::get_type(),
82
+ [
83
+ 'name' => 'heading_typography',
84
+ 'label' => __( 'Typography', 'woolentor' ),
85
+ 'selector' => '{{WRAPPER}} .htcolumn-field-name',
86
+ ]
87
+ );
88
+
89
+ $this->add_group_control(
90
+ Group_Control_Background::get_type(),
91
+ [
92
+ 'name' => 'heading_background',
93
+ 'label' => __( 'Even Heading Background', 'woolentor' ),
94
+ 'types' => [ 'classic', 'gradient' ],
95
+ 'selector' => '{{WRAPPER}} .htcompare-row:nth-child(2n) .htcompare-col',
96
+ 'exclude' =>['image'],
97
+ 'fields_options'=>[
98
+ 'background'=>[
99
+ 'label'=>__( 'Even Heading Background', 'woolentor' )
100
+ ]
101
+ ]
102
+ ]
103
+ );
104
+
105
+ $this->add_group_control(
106
+ Group_Control_Background::get_type(),
107
+ [
108
+ 'name' => 'heading_background_odd',
109
+ 'label' => __( 'Odd Heading Background', 'woolentor' ),
110
+ 'types' => [ 'classic', 'gradient' ],
111
+ 'selector' => '{{WRAPPER}} .htcompare-row:nth-child(2n+1) .htcompare-col',
112
+ 'exclude' =>['image'],
113
+ 'fields_options'=>[
114
+ 'background'=>[
115
+ 'label'=>__( 'Odd Heading Background', 'woolentor' )
116
+ ]
117
+ ]
118
+ ]
119
+ );
120
+
121
+ $this->end_controls_section();
122
+
123
+ // Content Style
124
+ $this->start_controls_section(
125
+ 'content_style_section',
126
+ [
127
+ 'label' => __( 'Content', 'woolentor' ),
128
+ 'tab' => Controls_Manager::TAB_STYLE,
129
+ ]
130
+ );
131
+ $this->add_control(
132
+ 'content_color',
133
+ [
134
+ 'label' => __( 'Content Color', 'woolentor' ),
135
+ 'type' => Controls_Manager::COLOR,
136
+ 'selectors' => [
137
+ '{{WRAPPER}} .htcolumn-value' => 'color: {{VALUE}}',
138
+ ],
139
+ ]
140
+ );
141
+
142
+ $this->add_control(
143
+ 'content_link_color',
144
+ [
145
+ 'label' => __( 'Content Link Color', 'woolentor' ),
146
+ 'type' => Controls_Manager::COLOR,
147
+ 'selectors' => [
148
+ '{{WRAPPER}} .htcolumn-value a' => 'color: {{VALUE}}',
149
+ ],
150
+ ]
151
+ );
152
+
153
+ $this->add_control(
154
+ 'cart_btn_color',
155
+ [
156
+ 'label' => __( 'Cart Button Color', 'woolentor' ),
157
+ 'type' => Controls_Manager::COLOR,
158
+ 'selectors' => [
159
+ '{{WRAPPER}} .htcolumn-value a.htcompare-cart-button' => 'color: {{VALUE}}',
160
+ ],
161
+ ]
162
+ );
163
+
164
+ $this->add_group_control(
165
+ Group_Control_Background::get_type(),
166
+ [
167
+ 'name' => 'cart_btn_background',
168
+ 'label' => __( 'Cart Button Background', 'woolentor' ),
169
+ 'types' => [ 'classic', 'gradient' ],
170
+ 'selector' => '{{WRAPPER}} .htcolumn-value a.htcompare-cart-button',
171
+ 'exclude' =>['image'],
172
+ 'fields_options'=>[
173
+ 'background'=>[
174
+ 'label'=>__( 'Cart Button Background', 'woolentor' )
175
+ ]
176
+ ]
177
+ ]
178
+ );
179
+
180
+ $this->add_control(
181
+ 'border_color',
182
+ [
183
+ 'label' => __( 'Border Color', 'woolentor' ),
184
+ 'type' => Controls_Manager::COLOR,
185
+ 'selectors' => [
186
+ '{{WRAPPER}} .htcompare-col' => 'border-color: {{VALUE}}',
187
+ ],
188
+ ]
189
+ );
190
+
191
+ $this->end_controls_section();
192
+
193
+ }
194
+
195
+ protected function render( $instance = [] ) {
196
+ $settings = $this->get_settings_for_display();
197
+
198
+ $short_code_attributes = [
199
+ 'empty_compare_text' => $settings['empty_table_text'],
200
+ ];
201
+ echo woolentor_do_shortcode( 'evercompare_table', $short_code_attributes );
202
+ }
203
+
204
+ }
205
+ Plugin::instance()->widgets_manager->register_widget_type( new WL_EverCompare_Table_Element() );
includes/addons/wb_just_table.php CHANGED
@@ -1,156 +1,156 @@
1
- <?php
2
- namespace Elementor;
3
-
4
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
-
6
- class WL_Just_Table_Element extends Widget_Base {
7
-
8
- public function get_name() {
9
- return 'wb-just-table';
10
- }
11
-
12
- public function get_title() {
13
- return __( 'WL: JustTable', 'woolentor' );
14
- }
15
-
16
- public function get_icon() {
17
- return 'eicon-table';
18
- }
19
-
20
- public function get_categories() {
21
- return array( 'woolentor-addons' );
22
- }
23
-
24
- public function get_style_depends(){
25
- return [
26
- 'woolentor-widgets',
27
- ];
28
- }
29
-
30
- public function get_script_depends(){
31
- return [];
32
- }
33
-
34
- public function get_keywords(){
35
- return ['table','product table','justtable'];
36
- }
37
-
38
- protected function _register_controls() {
39
-
40
- // Content
41
- $this->start_controls_section(
42
- 'justtable_content',
43
- [
44
- 'label' => __( 'JustTable', 'woolentor' ),
45
- ]
46
- );
47
- $this->add_control(
48
- 'table_id',
49
- [
50
- 'label' => __( 'Select Table', 'woolentor' ),
51
- 'type' => Controls_Manager::SELECT,
52
- 'default' => '0',
53
- 'options' => woolentor_post_name('jt-product-table'),
54
- ]
55
- );
56
-
57
- $this->end_controls_section();
58
-
59
- // Heading Style
60
- $this->start_controls_section(
61
- 'heading_style_section',
62
- [
63
- 'label' => __( 'Heading', 'woolentor' ),
64
- 'tab' => Controls_Manager::TAB_STYLE,
65
- ]
66
- );
67
-
68
- $this->add_control(
69
- 'heading_color',
70
- [
71
- 'label' => __( 'Heading Color', 'woolentor' ),
72
- 'type' => Controls_Manager::COLOR,
73
- 'selectors' => [
74
- '{{WRAPPER}} .jtpt-product-table th.jtpt-head-data' => 'color: {{VALUE}}',
75
- ],
76
- ]
77
- );
78
-
79
- $this->add_group_control(
80
- \Elementor\Group_Control_Typography::get_type(),
81
- [
82
- 'name' => 'heading_typography',
83
- 'label' => __( 'Typography', 'woolentor' ),
84
- 'selector' => '{{WRAPPER}} .jtpt-product-table th.jtpt-head-data',
85
- ]
86
- );
87
-
88
- $this->add_group_control(
89
- Group_Control_Background::get_type(),
90
- [
91
- 'name' => 'heading_background',
92
- 'label' => __( 'Heading Background', 'woolentor' ),
93
- 'types' => [ 'classic', 'gradient' ],
94
- 'selector' => '{{WRAPPER}} .jtpt-product-table th.jtpt-head-data',
95
- 'exclude' =>['image'],
96
- 'fields_options'=>[
97
- 'background'=>[
98
- 'label'=>__( 'Heading Background', 'woolentor' )
99
- ]
100
- ]
101
- ]
102
- );
103
-
104
- $this->end_controls_section();
105
-
106
- // Wrapper Style
107
- $this->start_controls_section(
108
- 'content_style_section',
109
- [
110
- 'label' => __( 'Table Content', 'woolentor' ),
111
- 'tab' => Controls_Manager::TAB_STYLE,
112
- ]
113
- );
114
-
115
- $this->add_group_control(
116
- Group_Control_Background::get_type(),
117
- [
118
- 'name' => 'table_wrapper_background',
119
- 'label' => __( 'Background', 'woolentor' ),
120
- 'types' => [ 'classic', 'gradient' ],
121
- 'selector' => '{{WRAPPER}} .jtpt-product-table-wrapper',
122
- 'exclude' =>['image'],
123
- 'fields_options'=>[
124
- 'background'=>[
125
- 'label'=>__( 'Wrapper Background', 'woolentor' )
126
- ]
127
- ]
128
- ]
129
- );
130
-
131
- $this->add_control(
132
- 'table_td_border_color',
133
- [
134
- 'label' => __( 'Item Gap Color', 'woolentor' ),
135
- 'type' => Controls_Manager::COLOR,
136
- 'selectors' => [
137
- '{{WRAPPER}} .jtpt-product-table .jtpt-body-data' => 'border-color: {{VALUE}}',
138
- ],
139
- ]
140
- );
141
-
142
- $this->end_controls_section();
143
-
144
- }
145
-
146
- protected function render( $instance = [] ) {
147
- $settings = $this->get_settings_for_display();
148
-
149
- $short_code_attributes = [
150
- 'id' => $settings['table_id'],
151
- ];
152
- echo woolentor_do_shortcode( 'JT_Product_Table', $short_code_attributes );
153
- }
154
-
155
- }
156
- Plugin::instance()->widgets_manager->register_widget_type( new WL_Just_Table_Element() );
1
+ <?php
2
+ namespace Elementor;
3
+
4
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
+
6
+ class WL_Just_Table_Element extends Widget_Base {
7
+
8
+ public function get_name() {
9
+ return 'wb-just-table';
10
+ }
11
+
12
+ public function get_title() {
13
+ return __( 'WL: JustTable', 'woolentor' );
14
+ }
15
+
16
+ public function get_icon() {
17
+ return 'eicon-table';
18
+ }
19
+
20
+ public function get_categories() {
21
+ return array( 'woolentor-addons' );
22
+ }
23
+
24
+ public function get_style_depends(){
25
+ return [
26
+ 'woolentor-widgets',
27
+ ];
28
+ }
29
+
30
+ public function get_script_depends(){
31
+ return [];
32
+ }
33
+
34
+ public function get_keywords(){
35
+ return ['table','product table','justtable'];
36
+ }
37
+
38
+ protected function _register_controls() {
39
+
40
+ // Content
41
+ $this->start_controls_section(
42
+ 'justtable_content',
43
+ [
44
+ 'label' => __( 'JustTable', 'woolentor' ),
45
+ ]
46
+ );
47
+ $this->add_control(
48
+ 'table_id',
49
+ [
50
+ 'label' => __( 'Select Table', 'woolentor' ),
51
+ 'type' => Controls_Manager::SELECT,
52
+ 'default' => '0',
53
+ 'options' => woolentor_post_name('jt-product-table'),
54
+ ]
55
+ );
56
+
57
+ $this->end_controls_section();
58
+
59
+ // Heading Style
60
+ $this->start_controls_section(
61
+ 'heading_style_section',
62
+ [
63
+ 'label' => __( 'Heading', 'woolentor' ),
64
+ 'tab' => Controls_Manager::TAB_STYLE,
65
+ ]
66
+ );
67
+
68
+ $this->add_control(
69
+ 'heading_color',
70
+ [
71
+ 'label' => __( 'Heading Color', 'woolentor' ),
72
+ 'type' => Controls_Manager::COLOR,
73
+ 'selectors' => [
74
+ '{{WRAPPER}} .jtpt-product-table th.jtpt-head-data' => 'color: {{VALUE}}',
75
+ ],
76
+ ]
77
+ );
78
+
79
+ $this->add_group_control(
80
+ \Elementor\Group_Control_Typography::get_type(),
81
+ [
82
+ 'name' => 'heading_typography',
83
+ 'label' => __( 'Typography', 'woolentor' ),
84
+ 'selector' => '{{WRAPPER}} .jtpt-product-table th.jtpt-head-data',
85
+ ]
86
+ );
87
+
88
+ $this->add_group_control(
89
+ Group_Control_Background::get_type(),
90
+ [
91
+ 'name' => 'heading_background',
92
+ 'label' => __( 'Heading Background', 'woolentor' ),
93
+ 'types' => [ 'classic', 'gradient' ],
94
+ 'selector' => '{{WRAPPER}} .jtpt-product-table th.jtpt-head-data',
95
+ 'exclude' =>['image'],
96
+ 'fields_options'=>[
97
+ 'background'=>[
98
+ 'label'=>__( 'Heading Background', 'woolentor' )
99
+ ]
100
+ ]
101
+ ]
102
+ );
103
+
104
+ $this->end_controls_section();
105
+
106
+ // Wrapper Style
107
+ $this->start_controls_section(
108
+ 'content_style_section',
109
+ [
110
+ 'label' => __( 'Table Content', 'woolentor' ),
111
+ 'tab' => Controls_Manager::TAB_STYLE,
112
+ ]
113
+ );
114
+
115
+ $this->add_group_control(
116
+ Group_Control_Background::get_type(),
117
+ [
118
+ 'name' => 'table_wrapper_background',
119
+ 'label' => __( 'Background', 'woolentor' ),
120
+ 'types' => [ 'classic', 'gradient' ],
121
+ 'selector' => '{{WRAPPER}} .jtpt-product-table-wrapper',
122
+ 'exclude' =>['image'],
123
+ 'fields_options'=>[
124
+ 'background'=>[
125
+ 'label'=>__( 'Wrapper Background', 'woolentor' )
126
+ ]
127
+ ]
128
+ ]
129
+ );
130
+
131
+ $this->add_control(
132
+ 'table_td_border_color',
133
+ [
134
+ 'label' => __( 'Item Gap Color', 'woolentor' ),
135
+ 'type' => Controls_Manager::COLOR,
136
+ 'selectors' => [
137
+ '{{WRAPPER}} .jtpt-product-table .jtpt-body-data' => 'border-color: {{VALUE}}',
138
+ ],
139
+ ]
140
+ );
141
+
142
+ $this->end_controls_section();
143
+
144
+ }
145
+
146
+ protected function render( $instance = [] ) {
147
+ $settings = $this->get_settings_for_display();
148
+
149
+ $short_code_attributes = [
150
+ 'id' => $settings['table_id'],
151
+ ];
152
+ echo woolentor_do_shortcode( 'JT_Product_Table', $short_code_attributes );
153
+ }
154
+
155
+ }
156
+ Plugin::instance()->widgets_manager->register_widget_type( new WL_Just_Table_Element() );
includes/addons/wb_product_upsell.php CHANGED
@@ -45,10 +45,9 @@ class WL_Product_Upsell_Element extends Widget_Base {
45
  [
46
  'label' => __( 'Columns', 'woolentor' ),
47
  'type' => Controls_Manager::NUMBER,
48
- 'prefix_class' => 'woolentorducts-columns%s-',
49
  'default' => 4,
50
  'min' => 1,
51
- 'max' => 6,
52
  ]
53
  );
54
 
45
  [
46
  'label' => __( 'Columns', 'woolentor' ),
47
  'type' => Controls_Manager::NUMBER,
 
48
  'default' => 4,
49
  'min' => 1,
50
+ 'max' => 12,
51
  ]
52
  );
53
 
includes/addons/wb_wc_multicurrency.php CHANGED
@@ -1,106 +1,106 @@
1
- <?php
2
- namespace Elementor;
3
-
4
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
-
6
- class WL_Multi_Currency_Element extends Widget_Base {
7
-
8
- public function get_name() {
9
- return 'wb-multi-currency';
10
- }
11
-
12
- public function get_title() {
13
- return __( 'WL: Multi Currency', 'woolentor' );
14
- }
15
-
16
- public function get_icon() {
17
- return 'eicon-woocommerce';
18
- }
19
-
20
- public function get_categories() {
21
- return array( 'woolentor-addons' );
22
- }
23
-
24
- public function get_style_depends(){
25
- return [
26
- 'woolentor-widgets',
27
- ];
28
- }
29
-
30
- public function get_script_depends(){
31
- return [];
32
- }
33
-
34
- public function get_keywords(){
35
- return ['multi currency','currency','woocommerce currency'];
36
- }
37
-
38
- protected function _register_controls() {
39
-
40
- // Content
41
- $this->start_controls_section(
42
- 'multi_currency_content',
43
- [
44
- 'label' => __( 'MultiCurrency', 'woolentor' ),
45
- ]
46
- );
47
- $this->add_control(
48
- 'multi_currency_style',
49
- [
50
- 'label' => __( 'Style', 'woolentor' ),
51
- 'type' => Controls_Manager::SELECT,
52
- 'default' => 'all',
53
- 'options' => [
54
- 'all' => esc_html__( 'All', 'woolentor' ),
55
- 'flagonly' => esc_html__( 'Flag only', 'woolentor' ),
56
- ],
57
- ]
58
- );
59
-
60
- $this->end_controls_section();
61
-
62
- // Heading Style
63
- $this->start_controls_section(
64
- 'heading_style_section',
65
- [
66
- 'label' => __( 'Heading', 'woolentor' ),
67
- 'tab' => Controls_Manager::TAB_STYLE,
68
- ]
69
- );
70
-
71
- $this->add_control(
72
- 'heading_color',
73
- [
74
- 'label' => __( 'Heading Color', 'woolentor' ),
75
- 'type' => Controls_Manager::COLOR,
76
- 'selectors' => [
77
- '{{WRAPPER}} .ht-mcs-sidebar-widget-list ul li a' => 'color: {{VALUE}}',
78
- ],
79
- ]
80
- );
81
-
82
- $this->add_group_control(
83
- Group_Control_Typography::get_type(),
84
- [
85
- 'name' => 'heading_typography',
86
- 'label' => __( 'Typography', 'woolentor' ),
87
- 'selector' => '{{WRAPPER}} .ht-mcs-sidebar-widget-list ul li a',
88
- ]
89
- );
90
-
91
- $this->end_controls_section();
92
-
93
-
94
- }
95
-
96
- protected function render( $instance = [] ) {
97
- $settings = $this->get_settings_for_display();
98
-
99
- $short_code_attributes = [
100
- 'style' => $settings['multi_currency_style'],
101
- ];
102
- echo woolentor_do_shortcode( 'WCMC', $short_code_attributes );
103
- }
104
-
105
- }
106
  Plugin::instance()->widgets_manager->register_widget_type( new WL_Multi_Currency_Element() );
1
+ <?php
2
+ namespace Elementor;
3
+
4
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
+
6
+ class WL_Multi_Currency_Element extends Widget_Base {
7
+
8
+ public function get_name() {
9
+ return 'wb-multi-currency';
10
+ }
11
+
12
+ public function get_title() {
13
+ return __( 'WL: Multi Currency', 'woolentor' );
14
+ }
15
+
16
+ public function get_icon() {
17
+ return 'eicon-woocommerce';
18
+ }
19
+
20
+ public function get_categories() {
21
+ return array( 'woolentor-addons' );
22
+ }
23
+
24
+ public function get_style_depends(){
25
+ return [
26
+ 'woolentor-widgets',
27
+ ];
28
+ }
29
+
30
+ public function get_script_depends(){
31
+ return [];
32
+ }
33
+
34
+ public function get_keywords(){
35
+ return ['multi currency','currency','woocommerce currency'];
36
+ }
37
+
38
+ protected function _register_controls() {
39
+
40
+ // Content
41
+ $this->start_controls_section(
42
+ 'multi_currency_content',
43
+ [
44
+ 'label' => __( 'MultiCurrency', 'woolentor' ),
45
+ ]
46
+ );
47
+ $this->add_control(
48
+ 'multi_currency_style',
49
+ [
50
+ 'label' => __( 'Style', 'woolentor' ),
51
+ 'type' => Controls_Manager::SELECT,
52
+ 'default' => 'all',
53
+ 'options' => [
54
+ 'all' => esc_html__( 'All', 'woolentor' ),
55
+ 'flagonly' => esc_html__( 'Flag only', 'woolentor' ),
56
+ ],
57
+ ]
58
+ );
59
+
60
+ $this->end_controls_section();
61
+
62
+ // Heading Style
63
+ $this->start_controls_section(
64
+ 'heading_style_section',
65
+ [
66
+ 'label' => __( 'Heading', 'woolentor' ),
67
+ 'tab' => Controls_Manager::TAB_STYLE,
68
+ ]
69
+ );
70
+
71
+ $this->add_control(
72
+ 'heading_color',
73
+ [
74
+ 'label' => __( 'Heading Color', 'woolentor' ),
75
+ 'type' => Controls_Manager::COLOR,
76
+ 'selectors' => [
77
+ '{{WRAPPER}} .ht-mcs-sidebar-widget-list ul li a' => 'color: {{VALUE}}',
78
+ ],
79
+ ]
80
+ );
81
+
82
+ $this->add_group_control(
83
+ Group_Control_Typography::get_type(),
84
+ [
85
+ 'name' => 'heading_typography',
86
+ 'label' => __( 'Typography', 'woolentor' ),
87
+ 'selector' => '{{WRAPPER}} .ht-mcs-sidebar-widget-list ul li a',
88
+ ]
89
+ );
90
+
91
+ $this->end_controls_section();
92
+
93
+
94
+ }
95
+
96
+ protected function render( $instance = [] ) {
97
+ $settings = $this->get_settings_for_display();
98
+
99
+ $short_code_attributes = [
100
+ 'style' => $settings['multi_currency_style'],
101
+ ];
102
+ echo woolentor_do_shortcode( 'WCMC', $short_code_attributes );
103
+ }
104
+
105
+ }
106
  Plugin::instance()->widgets_manager->register_widget_type( new WL_Multi_Currency_Element() );
includes/addons/wb_whols.php CHANGED
@@ -1,94 +1,94 @@
1
- <?php
2
- namespace Elementor;
3
-
4
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
-
6
- class WL_Whols_Element extends Widget_Base {
7
-
8
- public function get_name() {
9
- return 'wb-whols';
10
- }
11
-
12
- public function get_title() {
13
- return __( 'WL: Whols', 'woolentor' );
14
- }
15
-
16
- public function get_icon() {
17
- return 'eicon-woocommerce';
18
- }
19
-
20
- public function get_categories() {
21
- return array( 'woolentor-addons' );
22
- }
23
-
24
- public function get_style_depends(){
25
- return [
26
- 'woolentor-widgets',
27
- ];
28
- }
29
-
30
- public function get_script_depends(){
31
- return [];
32
- }
33
-
34
- public function get_keywords(){
35
- return ['whols','whole sale','woocommerce sale'];
36
- }
37
-
38
- protected function _register_controls() {
39
-
40
- // Button Style
41
- $this->start_controls_section(
42
- 'button_style_section',
43
- [
44
- 'label' => __( 'Button', 'woolentor' ),
45
- 'tab' => Controls_Manager::TAB_STYLE,
46
- ]
47
- );
48
-
49
- $this->add_control(
50
- 'button_color',
51
- [
52
- 'label' => __( 'Color', 'woolentor' ),
53
- 'type' => Controls_Manager::COLOR,
54
- 'selectors' => [
55
- '{{WRAPPER}} .whols_registration_form form input#whols_reg_submit' => 'color: {{VALUE}}',
56
- ],
57
- ]
58
- );
59
-
60
- $this->add_group_control(
61
- Group_Control_Typography::get_type(),
62
- [
63
- 'name' => 'button_typography',
64
- 'label' => __( 'Typography', 'woolentor' ),
65
- 'selector' => '{{WRAPPER}} .whols_registration_form form input#whols_reg_submit',
66
- ]
67
- );
68
-
69
- $this->add_responsive_control(
70
- 'button_padding',
71
- [
72
- 'label' => __( 'Padding', 'woolentor' ),
73
- 'type' => Controls_Manager::DIMENSIONS,
74
- 'size_units' => [ 'px', '%', 'em' ],
75
- 'selectors' => [
76
- '{{WRAPPER}} .whols_registration_form form input#whols_reg_submit' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
77
- ],
78
- ]
79
- );
80
-
81
- $this->end_controls_section();
82
-
83
-
84
- }
85
-
86
- protected function render( $instance = [] ) {
87
- $settings = $this->get_settings_for_display();
88
-
89
- $short_code_attributes = [];
90
- echo woolentor_do_shortcode( 'whols_registration_form', $short_code_attributes );
91
- }
92
-
93
- }
94
  Plugin::instance()->widgets_manager->register_widget_type( new WL_Whols_Element() );
1
+ <?php
2
+ namespace Elementor;
3
+
4
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
+
6
+ class WL_Whols_Element extends Widget_Base {
7
+
8
+ public function get_name() {
9
+ return 'wb-whols';
10
+ }
11
+
12
+ public function get_title() {
13
+ return __( 'WL: Whols', 'woolentor' );
14
+ }
15
+
16
+ public function get_icon() {
17
+ return 'eicon-woocommerce';
18
+ }
19
+
20
+ public function get_categories() {
21
+ return array( 'woolentor-addons' );
22
+ }
23
+
24
+ public function get_style_depends(){
25
+ return [
26
+ 'woolentor-widgets',
27
+ ];
28
+ }
29
+
30
+ public function get_script_depends(){
31
+ return [];
32
+ }
33
+
34
+ public function get_keywords(){
35
+ return ['whols','whole sale','woocommerce sale'];
36
+ }
37
+
38
+ protected function _register_controls() {
39
+
40
+ // Button Style
41
+ $this->start_controls_section(
42
+ 'button_style_section',
43
+ [
44
+ 'label' => __( 'Button', 'woolentor' ),
45
+ 'tab' => Controls_Manager::TAB_STYLE,
46
+ ]
47
+ );
48
+
49
+ $this->add_control(
50
+ 'button_color',
51
+ [
52
+ 'label' => __( 'Color', 'woolentor' ),
53
+ 'type' => Controls_Manager::COLOR,
54
+ 'selectors' => [
55
+ '{{WRAPPER}} .whols_registration_form form input#whols_reg_submit' => 'color: {{VALUE}}',
56
+ ],
57
+ ]
58
+ );
59
+
60
+ $this->add_group_control(
61
+ Group_Control_Typography::get_type(),
62
+ [
63
+ 'name' => 'button_typography',
64
+ 'label' => __( 'Typography', 'woolentor' ),
65
+ 'selector' => '{{WRAPPER}} .whols_registration_form form input#whols_reg_submit',
66
+ ]
67
+ );
68
+
69
+ $this->add_responsive_control(
70
+ 'button_padding',
71
+ [
72
+ 'label' => __( 'Padding', 'woolentor' ),
73
+ 'type' => Controls_Manager::DIMENSIONS,
74
+ 'size_units' => [ 'px', '%', 'em' ],
75
+ 'selectors' => [
76
+ '{{WRAPPER}} .whols_registration_form form input#whols_reg_submit' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
77
+ ],
78
+ ]
79
+ );
80
+
81
+ $this->end_controls_section();
82
+
83
+
84
+ }
85
+
86
+ protected function render( $instance = [] ) {
87
+ $settings = $this->get_settings_for_display();
88
+
89
+ $short_code_attributes = [];
90
+ echo woolentor_do_shortcode( 'whols_registration_form', $short_code_attributes );
91
+ }
92
+
93
+ }
94
  Plugin::instance()->widgets_manager->register_widget_type( new WL_Whols_Element() );
includes/addons/wb_wishsuite_table.php CHANGED
@@ -1,143 +1,143 @@
1
- <?php
2
- namespace Elementor;
3
-
4
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
-
6
- class WL_Wishsuite_Table_Element extends Widget_Base {
7
-
8
- public function get_name() {
9
- return 'wb-wishsuite-table';
10
- }
11
-
12
- public function get_title() {
13
- return __( 'WL: WishSuite Table', 'woolentor' );
14
- }
15
-
16
- public function get_icon() {
17
- return 'eicon-table';
18
- }
19
-
20
- public function get_categories() {
21
- return array( 'woolentor-addons' );
22
- }
23
-
24
- public function get_style_depends(){
25
- return [
26
- 'wishsuite-frontend',
27
- 'woolentor-widgets',
28
- ];
29
- }
30
-
31
- public function get_script_depends(){
32
- return ['wishsuite-frontend'];
33
- }
34
-
35
- public function get_keywords(){
36
- return ['wishlist','product wishlist','wishsuite'];
37
- }
38
-
39
- protected function _register_controls() {
40
-
41
- // Content
42
- $this->start_controls_section(
43
- 'wishsuite_content',
44
- [
45
- 'label' => __( 'WishSuite', 'woolentor' ),
46
- ]
47
- );
48
-
49
- $this->add_control(
50
- 'empty_table_text',
51
- [
52
- 'label' => __( 'Empty table text', 'woolentor' ),
53
- 'type' => Controls_Manager::TEXT,
54
- 'label_block'=>true,
55
- ]
56
- );
57
-
58
- $this->end_controls_section();
59
-
60
- // Table Heading Style
61
- $this->start_controls_section(
62
- 'table_heading_style_section',
63
- [
64
- 'label' => __( 'Table Heading', 'woolentor' ),
65
- 'tab' => Controls_Manager::TAB_STYLE,
66
- ]
67
- );
68
-
69
- $this->add_control(
70
- 'heading_color',
71
- [
72
- 'label' => __( 'Heading Color', 'woolentor' ),
73
- 'type' => Controls_Manager::COLOR,
74
- 'selectors' => [
75
- '{{WRAPPER}} .wishsuite-table-content table thead > tr th' => 'color: {{VALUE}}',
76
- ],
77
- ]
78
- );
79
-
80
- $this->add_group_control(
81
- Group_Control_Background::get_type(),
82
- [
83
- 'name' => 'heading_background',
84
- 'label' => __( 'Heading Background', 'woolentor' ),
85
- 'types' => [ 'classic', 'gradient' ],
86
- 'selector' => '{{WRAPPER}} .wishsuite-table-content table thead > tr th',
87
- 'exclude' =>['image'],
88
- ]
89
- );
90
-
91
- $this->add_group_control(
92
- Group_Control_Border::get_type(),
93
- [
94
- 'name' => 'heading_border',
95
- 'label' => __( 'Border', 'woolentor' ),
96
- 'selector' => '{{WRAPPER}} .wishsuite-table-content table thead > tr',
97
- ]
98
- );
99
-
100
- $this->add_group_control(
101
- \Elementor\Group_Control_Typography::get_type(),
102
- [
103
- 'name' => 'heading_typography',
104
- 'label' => __( 'Typography', 'woolentor' ),
105
- 'selector' => '{{WRAPPER}} .wishsuite-table-content table thead > tr th',
106
- ]
107
- );
108
-
109
- $this->end_controls_section();
110
-
111
- // Table Content Style
112
- $this->start_controls_section(
113
- 'table_content_style_section',
114
- [
115
- 'label' => __( 'Table Body', 'woolentor' ),
116
- 'tab' => Controls_Manager::TAB_STYLE,
117
- ]
118
- );
119
- $this->add_group_control(
120
- Group_Control_Border::get_type(),
121
- [
122
- 'name' => 'table_body_border',
123
- 'label' => __( 'Border', 'woolentor' ),
124
- 'selector' => '{{WRAPPER}} .wishsuite-table-content table,.wishsuite-table-content table tbody > tr',
125
- ]
126
- );
127
-
128
- $this->end_controls_section();
129
-
130
- }
131
-
132
- protected function render( $instance = [] ) {
133
- $settings = $this->get_settings_for_display();
134
-
135
- $short_code_attributes = [
136
- 'empty_text' => $settings['empty_table_text'],
137
- ];
138
- echo woolentor_do_shortcode( 'wishsuite_table', $short_code_attributes );
139
-
140
- }
141
-
142
- }
143
- Plugin::instance()->widgets_manager->register_widget_type( new WL_Wishsuite_Table_Element() );
1
+ <?php
2
+ namespace Elementor;
3
+
4
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
+
6
+ class WL_Wishsuite_Table_Element extends Widget_Base {
7
+
8
+ public function get_name() {
9
+ return 'wb-wishsuite-table';
10
+ }
11
+
12
+ public function get_title() {
13
+ return __( 'WL: WishSuite Table', 'woolentor' );
14
+ }
15
+
16
+ public function get_icon() {
17
+ return 'eicon-table';
18
+ }
19
+
20
+ public function get_categories() {
21
+ return array( 'woolentor-addons' );
22
+ }
23
+
24
+ public function get_style_depends(){
25
+ return [
26
+ 'wishsuite-frontend',
27
+ 'woolentor-widgets',
28
+ ];
29
+ }
30
+
31
+ public function get_script_depends(){
32
+ return ['wishsuite-frontend'];
33
+ }
34
+
35
+ public function get_keywords(){
36
+ return ['wishlist','product wishlist','wishsuite'];
37
+ }
38
+
39
+ protected function _register_controls() {
40
+
41
+ // Content
42
+ $this->start_controls_section(
43
+ 'wishsuite_content',
44
+ [
45
+ 'label' => __( 'WishSuite', 'woolentor' ),
46
+ ]
47
+ );
48
+
49
+ $this->add_control(
50
+ 'empty_table_text',
51
+ [
52
+ 'label' => __( 'Empty table text', 'woolentor' ),
53
+ 'type' => Controls_Manager::TEXT,
54
+ 'label_block'=>true,
55
+ ]
56
+ );
57
+
58
+ $this->end_controls_section();
59
+
60
+ // Table Heading Style
61
+ $this->start_controls_section(
62
+ 'table_heading_style_section',
63
+ [
64
+ 'label' => __( 'Table Heading', 'woolentor' ),
65
+ 'tab' => Controls_Manager::TAB_STYLE,
66
+ ]
67
+ );
68
+
69
+ $this->add_control(
70
+ 'heading_color',
71
+ [
72
+ 'label' => __( 'Heading Color', 'woolentor' ),
73
+ 'type' => Controls_Manager::COLOR,
74
+ 'selectors' => [
75
+ '{{WRAPPER}} .wishsuite-table-content table thead > tr th' => 'color: {{VALUE}}',
76
+ ],
77
+ ]
78
+ );
79
+
80
+ $this->add_group_control(
81
+ Group_Control_Background::get_type(),
82
+ [
83
+ 'name' => 'heading_background',
84
+ 'label' => __( 'Heading Background', 'woolentor' ),
85
+ 'types' => [ 'classic', 'gradient' ],
86
+ 'selector' => '{{WRAPPER}} .wishsuite-table-content table thead > tr th',
87
+ 'exclude' =>['image'],
88
+ ]
89
+ );
90
+
91
+ $this->add_group_control(
92
+ Group_Control_Border::get_type(),
93
+ [
94
+ 'name' => 'heading_border',
95
+ 'label' => __( 'Border', 'woolentor' ),
96
+ 'selector' => '{{WRAPPER}} .wishsuite-table-content table thead > tr',
97
+ ]
98
+ );
99
+
100
+ $this->add_group_control(
101
+ \Elementor\Group_Control_Typography::get_type(),
102
+ [
103
+ 'name' => 'heading_typography',
104
+ 'label' => __( 'Typography', 'woolentor' ),
105
+ 'selector' => '{{WRAPPER}} .wishsuite-table-content table thead > tr th',
106
+ ]
107
+ );
108
+
109
+ $this->end_controls_section();
110
+
111
+ // Table Content Style
112
+ $this->start_controls_section(
113
+ 'table_content_style_section',
114
+ [
115
+ 'label' => __( 'Table Body', 'woolentor' ),
116
+ 'tab' => Controls_Manager::TAB_STYLE,
117
+ ]
118
+ );
119
+ $this->add_group_control(
120
+ Group_Control_Border::get_type(),
121
+ [
122
+ 'name' => 'table_body_border',
123
+ 'label' => __( 'Border', 'woolentor' ),
124
+ 'selector' => '{{WRAPPER}} .wishsuite-table-content table,.wishsuite-table-content table tbody > tr',
125
+ ]
126
+ );
127
+
128
+ $this->end_controls_section();
129
+
130
+ }
131
+
132
+ protected function render( $instance = [] ) {
133
+ $settings = $this->get_settings_for_display();
134
+
135
+ $short_code_attributes = [
136
+ 'empty_text' => $settings['empty_table_text'],
137
+ ];
138
+ echo woolentor_do_shortcode( 'wishsuite_table', $short_code_attributes );
139
+
140
+ }
141
+
142
+ }
143
+ Plugin::instance()->widgets_manager->register_widget_type( new WL_Wishsuite_Table_Element() );
includes/addons/wl_brand.php CHANGED
@@ -58,7 +58,7 @@ class WL_Brand_Element extends Widget_Base {
58
  'default' => esc_html__('Default','woolentor'),
59
  ],
60
  'label_block' => true,
61
- 'description' => sprintf( __( 'Slider layouts are available in the pro version. <a href="%s" target="_blank">Get Pro</a>', 'woolentor' ), esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?fd' ) ),
62
  ]
63
  );
64
 
@@ -219,7 +219,7 @@ class WL_Brand_Element extends Widget_Base {
219
  __( 'Slider Option', 'woolentor' ) .
220
  '</div>
221
  <div class="elementor-nerd-box-message">' .
222
- __( 'Purchase our premium version to unlock these pro features!', 'woolentor' ) .
223
  '</div>
224
  <a class="elementor-nerd-box-link elementor-button elementor-button-default elementor-go-pro" href="' . esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?fd' ) . '" target="_blank">' .
225
  __( 'Go Pro', 'woolentor' ) .
@@ -362,7 +362,7 @@ class WL_Brand_Element extends Widget_Base {
362
  __( 'Slider Controller Style', 'woolentor' ) .
363
  '</div>
364
  <div class="elementor-nerd-box-message">' .
365
- __( 'Purchase our premium version to unlock these pro features!', 'woolentor' ) .
366
  '</div>
367
  <a class="elementor-nerd-box-link elementor-button elementor-button-default elementor-go-pro" href="' . esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?fd' ) . '" target="_blank">' .
368
  __( 'Go Pro', 'woolentor' ) .
58
  'default' => esc_html__('Default','woolentor'),
59
  ],
60
  'label_block' => true,
61
+ 'description' => wp_kses_post( 'Slider layout are available in the pro version. (<a href="'.esc_url('https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?fd').'" target="_blank">Get Pro</a>)', 'woolentor' ),
62
  ]
63
  );
64
 
219
  __( 'Slider Option', 'woolentor' ) .
220
  '</div>
221
  <div class="elementor-nerd-box-message">' .
222
+ __( 'Purchase our premium version to unlock these pro feature!', 'woolentor' ) .
223
  '</div>
224
  <a class="elementor-nerd-box-link elementor-button elementor-button-default elementor-go-pro" href="' . esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?fd' ) . '" target="_blank">' .
225
  __( 'Go Pro', 'woolentor' ) .
362
  __( 'Slider Controller Style', 'woolentor' ) .
363
  '</div>
364
  <div class="elementor-nerd-box-message">' .
365
+ __( 'Purchase our premium version to unlock these pro feature!', 'woolentor' ) .
366
  '</div>
367
  <a class="elementor-nerd-box-link elementor-button elementor-button-default elementor-go-pro" href="' . esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?fd' ) . '" target="_blank">' .
368
  __( 'Go Pro', 'woolentor' ) .
includes/addons/wl_category_grid.php CHANGED
@@ -323,6 +323,7 @@ class WL_Category_Grid_Element extends Widget_Base {
323
  ]
324
  );
325
 
 
326
  $this->add_control(
327
  'slanimation_speed',
328
  [
@@ -1030,7 +1031,7 @@ class WL_Category_Grid_Element extends Widget_Base {
1030
 
1031
  <?php if( '1' === $layout ): ?>
1032
  <div class="ht-category-wrap">
1033
- <?php if( !empty( $thumbnails ) ): ?>
1034
  <div class="ht-category-image ht-category-image-zoom">
1035
  <a class="ht-category-border" href="<?php echo esc_url( $term_link ); ?>">
1036
  <?php echo $thumbnails; ?>
323
  ]
324
  );
325
 
326
+
327
  $this->add_control(
328
  'slanimation_speed',
329
  [
1031
 
1032
  <?php if( '1' === $layout ): ?>
1033
  <div class="ht-category-wrap">
1034
+ <?php if( !empty( $thumbnails ) ):?>
1035
  <div class="ht-category-image ht-category-image-zoom">
1036
  <a class="ht-category-border" href="<?php echo esc_url( $term_link ); ?>">
1037
  <?php echo $thumbnails; ?>
includes/addons/wl_faq.php CHANGED
@@ -172,11 +172,11 @@ class WL_Faq_Element extends Widget_Base {
172
 
173
  $this->end_controls_section();
174
 
175
- // Additional Options area Start
176
  $this->start_controls_section(
177
  'aditional_options',
178
  [
179
- 'label' => esc_html__( 'Additional Options', 'woolentor' ),
180
  ]
181
  );
182
 
172
 
173
  $this->end_controls_section();
174
 
175
+ // Aditional Options area Start
176
  $this->start_controls_section(
177
  'aditional_options',
178
  [
179
+ 'label' => esc_html__( 'Aditional Options', 'woolentor' ),
180
  ]
181
  );
182
 
includes/addons/wl_product_filter.php CHANGED
@@ -587,7 +587,7 @@ class WL_Product_Filter_Element extends Widget_Base {
587
  $this->add_control(
588
  'slider_lavel_options',
589
  [
590
- 'label' => esc_html__( 'Price Label', 'woolentor' ),
591
  'type' => Controls_Manager::HEADING,
592
  'separator' => 'before',
593
  ]
@@ -596,7 +596,7 @@ class WL_Product_Filter_Element extends Widget_Base {
596
  $this->add_control(
597
  'price_lavel_color',
598
  [
599
- 'label' => esc_html__( 'Label Color', 'woolentor' ),
600
  'type' => Controls_Manager::COLOR,
601
  'selectors' => [
602
  '{{WRAPPER}} .woolentor_price_label' => 'color: {{VALUE}}',
587
  $this->add_control(
588
  'slider_lavel_options',
589
  [
590
+ 'label' => esc_html__( 'Price Lavel', 'woolentor' ),
591
  'type' => Controls_Manager::HEADING,
592
  'separator' => 'before',
593
  ]
596
  $this->add_control(
597
  'price_lavel_color',
598
  [
599
+ 'label' => esc_html__( 'Lavel Color', 'woolentor' ),
600
  'type' => Controls_Manager::COLOR,
601
  'selectors' => [
602
  '{{WRAPPER}} .woolentor_price_label' => 'color: {{VALUE}}',
includes/addons/wl_product_horizontal_filter.php CHANGED
@@ -1131,23 +1131,17 @@ class WL_Product_Horizontal_Filter_Element extends Widget_Base {
1131
  // Get newly selected elements
1132
  var currentlySelected = $(this).val();
1133
  if( currentlySelected != null ){
1134
-
1135
- if( currentlySelected.length == 0 ){
1136
- window.location = current_url;
1137
- }else{
1138
- var newSelections = currentlySelected.filter(function (element) {
1139
- return previouslySelected.indexOf(element) == -1;
1140
- });
1141
- previouslySelected = currentlySelected;
1142
- if (newSelections.length) {
1143
- // If there are multiple new selections, we'll take the last in the list
1144
- var lastSelected = newSelections.reverse()[0];
1145
- }
1146
- if ( lastSelected ) {
1147
- window.location = lastSelected;
1148
- }
1149
  }
1150
-
1151
  }else{
1152
  window.location = current_url;
1153
  }
1131
  // Get newly selected elements
1132
  var currentlySelected = $(this).val();
1133
  if( currentlySelected != null ){
1134
+ var newSelections = currentlySelected.filter(function (element) {
1135
+ return previouslySelected.indexOf(element) == -1;
1136
+ });
1137
+ previouslySelected = currentlySelected;
1138
+ if (newSelections.length) {
1139
+ // If there are multiple new selections, we'll take the last in the list
1140
+ var lastSelected = newSelections.reverse()[0];
1141
+ }
1142
+ if ( lastSelected ) {
1143
+ window.location = lastSelected;
 
 
 
 
 
1144
  }
 
1145
  }else{
1146
  window.location = current_url;
1147
  }
includes/addons/wl_testimonial.php CHANGED
@@ -86,7 +86,7 @@ class WL_Testimonial_Element extends Widget_Base {
86
  [
87
  'label' => __( 'Designation', 'woolentor' ),
88
  'type' => Controls_Manager::TEXT,
89
- 'default' => __('Designer','woolentor'),
90
  ]
91
  );
92
 
@@ -139,7 +139,7 @@ class WL_Testimonial_Element extends Widget_Base {
139
 
140
  [
141
  'client_name' => __('Anna Miller','woolentor'),
142
- 'client_designation' => __( 'Designer','woolentor' ),
143
  'client_say' => __( '“ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, laboris consequat. ”', 'woolentor' ),
144
  ],
145
 
86
  [
87
  'label' => __( 'Designation', 'woolentor' ),
88
  'type' => Controls_Manager::TEXT,
89
+ 'default' => __('Deginer','woolentor'),
90
  ]
91
  );
92
 
139
 
140
  [
141
  'client_name' => __('Anna Miller','woolentor'),
142
+ 'client_designation' => __( 'Deginer','woolentor' ),
143
  'client_say' => __( '“ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, laboris consequat. ”', 'woolentor' ),
144
  ],
145
 
includes/admin/assets/css/admin_optionspanel.css CHANGED
@@ -53,7 +53,7 @@ h2.element_section_title.margin_0 {
53
  }
54
 
55
  .woolentor-setting-area .metabox-holder .group{
56
- padding: 25px 0 25px 20px;
57
  }
58
  #wpbody-content .woolentor-setting-area .metabox-holder {
59
  padding-top: 0;
@@ -183,23 +183,14 @@ h2.element_section_title.margin_0 {
183
  #woolentor_elements_tabs table tr.woolentor_table_row{
184
  border: 1px solid #ddd;
185
  float: left;
186
- margin: 0 5px 5px 0px;
187
- padding: 0 14px;
 
188
  }
189
- #woolentor_elements_tabs table tr th {
190
- padding: 15px 0 14px 0;
191
- width: 226px;
192
- line-height: 1;
193
- vertical-align: middle;
194
- }
195
- @media (min-width: 1366px) and (max-width: 1479px) {
196
- #woolentor_elements_tabs table tr th {
197
- width: 198px;
198
- }
199
- }
200
- #woolentor_elements_tabs table tr td, #woolentor_elements_tabs table tr th {
201
  padding-right: 0;
202
  }
 
203
  #woolentor_elements_tabs table tr.htmega_title_row{
204
  border: medium none;
205
  display: block;
@@ -217,7 +208,7 @@ h2.element_section_title.margin_0 {
217
  /* Check box */
218
  .htoptions_element_checkbox label {
219
  padding: 2px;
220
- width: 35px;
221
  height: 15px;
222
  background-color: #2c3e50;
223
  border-radius: 60px;
@@ -267,7 +258,7 @@ h2.element_section_title.margin_0 {
267
  }
268
  .htoptions_element_checkbox input:checked + label::after {
269
  background-color: #22b9ff;
270
- margin-left: 14px;
271
  }
272
 
273
  .woolentor_table_row span{
53
  }
54
 
55
  .woolentor-setting-area .metabox-holder .group{
56
+ padding: 25px;
57
  }
58
  #wpbody-content .woolentor-setting-area .metabox-holder {
59
  padding-top: 0;
183
  #woolentor_elements_tabs table tr.woolentor_table_row{
184
  border: 1px solid #ddd;
185
  float: left;
186
+ margin-bottom: 5px;
187
+ margin-right: 5px;
188
+ padding: 0 20px;
189
  }
190
+ #woolentor_elements_tabs table tr td,#woolentor_elements_tabs table tr th{
 
 
 
 
 
 
 
 
 
 
 
191
  padding-right: 0;
192
  }
193
+
194
  #woolentor_elements_tabs table tr.htmega_title_row{
195
  border: medium none;
196
  display: block;
208
  /* Check box */
209
  .htoptions_element_checkbox label {
210
  padding: 2px;
211
+ width: 43px;
212
  height: 15px;
213
  background-color: #2c3e50;
214
  border-radius: 60px;
258
  }
259
  .htoptions_element_checkbox input:checked + label::after {
260
  background-color: #22b9ff;
261
+ margin-left: 23px;
262
  }
263
 
264
  .woolentor_table_row span{
includes/admin/assets/images/pricing/life_time_agency.png DELETED
Binary file
includes/admin/assets/images/pricing/life_time_five_website.png DELETED
Binary file
includes/admin/assets/images/pricing/life_time_single_website.png DELETED
Binary file
includes/admin/assets/images/pricing/one_year_agency.png DELETED
Binary file
includes/admin/assets/images/pricing/one_year_five_website.png DELETED
Binary file
includes/admin/assets/images/pricing/one_year_single_website.png DELETED
Binary file
includes/admin/include/admin-setting.php CHANGED
@@ -131,7 +131,7 @@ class Woolentor_Admin_Settings {
131
  array(
132
  'name' => 'shoppageproductlimit',
133
  'label' => __( 'Product Limit', 'woolentor' ),
134
- 'desc' => __( 'You can handle the product limit for the Shop page', 'woolentor' ),
135
  'min' => 1,
136
  'max' => 100,
137
  'step' => '1',
@@ -801,7 +801,7 @@ class Woolentor_Admin_Settings {
801
 
802
  array(
803
  'name' => 'wl_stock_progress_barp',
804
- 'label' => __( 'Stock Progress Bar <span>( Pro )</span>', 'woolentor' ),
805
  'type' => 'checkbox',
806
  'default' => 'off',
807
  'class'=>'woolentor_table_row pro',
@@ -1201,7 +1201,7 @@ class Woolentor_Admin_Settings {
1201
  array(
1202
  'name' => 'background_colorp',
1203
  'label' => __( 'Background Color', 'woolentor' ),
1204
- 'desc' => __( 'Set the background color of the notification. <span>( Pro )</span>', 'woolentor' ),
1205
  'type' => 'color',
1206
  'class' => 'notification_real proelement',
1207
  ),
@@ -1209,7 +1209,7 @@ class Woolentor_Admin_Settings {
1209
  array(
1210
  'name' => 'heading_colorp',
1211
  'label' => __( 'Heading Color', 'woolentor' ),
1212
- 'desc' => __( 'Set the heading color of the notification. <span>( Pro )</span>', 'woolentor' ),
1213
  'type' => 'color',
1214
  'class' => 'notification_real proelement',
1215
  ),
@@ -1217,7 +1217,7 @@ class Woolentor_Admin_Settings {
1217
  array(
1218
  'name' => 'content_colorp',
1219
  'label' => __( 'Content Color', 'woolentor' ),
1220
- 'desc' => __( 'Set the content color of the notification. <span>( Pro )</span>', 'woolentor' ),
1221
  'type' => 'color',
1222
  'class' => 'notification_real proelement',
1223
  ),
@@ -1225,7 +1225,7 @@ class Woolentor_Admin_Settings {
1225
  array(
1226
  'name' => 'cross_colorp',
1227
  'label' => __( 'Cross Icon Color', 'woolentor' ),
1228
- 'desc' => __( 'Set the cross icon color of the notification. <span>( Pro )</span>', 'woolentor' ),
1229
  'type' => 'color',
1230
  'class' => 'proelement',
1231
  ),
@@ -1237,7 +1237,7 @@ class Woolentor_Admin_Settings {
1237
  array(
1238
  'name' => 'loadproductlimit',
1239
  'label' => __( 'Load Products in Elementor Addons', 'woolentor' ),
1240
- 'desc' => __( 'Set the number of products to load in Elementor Addons', 'woolentor' ),
1241
  'min' => 1,
1242
  'max' => 100,
1243
  'step' => '1',
@@ -1250,7 +1250,7 @@ class Woolentor_Admin_Settings {
1250
  array(
1251
  'name' => 'ajaxsearch',
1252
  'label' => __( 'Ajax Search Widget', 'woolentor' ),
1253
- 'desc' => __( 'AJAX Search Widget', 'woolentor' ),
1254
  'type' => 'checkbox',
1255
  'default' => 'off',
1256
  'class'=>'woolentor_table_row',
@@ -1259,7 +1259,7 @@ class Woolentor_Admin_Settings {
1259
  array(
1260
  'name' => 'ajaxcart_singleproduct',
1261
  'label' => __( 'Single Product Ajax Add To Cart', 'woolentor' ),
1262
- 'desc' => __( 'AJAX Add to Cart on Single Product page', 'woolentor' ),
1263
  'type' => 'checkbox',
1264
  'default' => 'off',
1265
  'class'=>'woolentor_table_row',
@@ -1268,7 +1268,7 @@ class Woolentor_Admin_Settings {
1268
  array(
1269
  'name' => 'single_product_sticky_add_to_cartp',
1270
  'label' => __( 'Single Product Sticky Add To Cart <span>( Pro )</span>', 'woolentor' ),
1271
- 'desc' => __( 'Sticky Add to Cart on Single Product page', 'woolentor' ),
1272
  'type' => 'checkbox',
1273
  'default' => 'off',
1274
  'class' => 'woolentor_table_row pro',
@@ -1309,7 +1309,7 @@ class Woolentor_Admin_Settings {
1309
  array(
1310
  'name' => 'content_area_bg',
1311
  'label' => __( 'Content area background', 'woolentor' ),
1312
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1313
  'type' => 'color',
1314
  'default'=>'#ffffff',
1315
  ),
@@ -1323,14 +1323,14 @@ class Woolentor_Admin_Settings {
1323
  array(
1324
  'name' => 'title_color',
1325
  'label' => __( 'Title color', 'woolentor' ),
1326
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1327
  'type' => 'color',
1328
  'default'=>'#444444',
1329
  ),
1330
  array(
1331
  'name' => 'title_hover_color',
1332
  'label' => __( 'Title hover color', 'woolentor' ),
1333
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1334
  'type' => 'color',
1335
  'default'=>'#dc9a0e',
1336
  ),
@@ -1344,14 +1344,14 @@ class Woolentor_Admin_Settings {
1344
  array(
1345
  'name' => 'sale_price_color',
1346
  'label' => __( 'Sale price color', 'woolentor' ),
1347
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1348
  'type' => 'color',
1349
  'default'=>'#444444',
1350
  ),
1351
  array(
1352
  'name' => 'regular_price_color',
1353
  'label' => __( 'Regular price color', 'woolentor' ),
1354
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1355
  'type' => 'color',
1356
  'default'=>'#444444',
1357
  ),
@@ -1365,14 +1365,14 @@ class Woolentor_Admin_Settings {
1365
  array(
1366
  'name' => 'category_color',
1367
  'label' => __( 'Category color', 'woolentor' ),
1368
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1369
  'type' => 'color',
1370
  'default'=>'#444444',
1371
  ),
1372
  array(
1373
  'name' => 'category_hover_color',
1374
  'label' => __( 'Category hover color', 'woolentor' ),
1375
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1376
  'type' => 'color',
1377
  'default'=>'#dc9a0e',
1378
  ),
@@ -1386,7 +1386,7 @@ class Woolentor_Admin_Settings {
1386
  array(
1387
  'name' => 'desc_color',
1388
  'label' => __( 'Description color', 'woolentor' ),
1389
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1390
  'type' => 'color',
1391
  'default'=>'#444444',
1392
  ),
@@ -1400,14 +1400,14 @@ class Woolentor_Admin_Settings {
1400
  array(
1401
  'name' => 'empty_rating_color',
1402
  'label' => __( 'Empty rating color', 'woolentor' ),
1403
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1404
  'type' => 'color',
1405
  'default'=>'#aaaaaa',
1406
  ),
1407
  array(
1408
  'name' => 'rating_color',
1409
  'label' => __( 'Rating color', 'woolentor' ),
1410
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1411
  'type' => 'color',
1412
  'default'=>'#dc9a0e',
1413
  ),
@@ -1421,7 +1421,7 @@ class Woolentor_Admin_Settings {
1421
  array(
1422
  'name' => 'badge_color',
1423
  'label' => __( 'Badge color', 'woolentor' ),
1424
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1425
  'type' => 'color',
1426
  'default'=>'#444444',
1427
  ),
@@ -1435,21 +1435,21 @@ class Woolentor_Admin_Settings {
1435
  array(
1436
  'name' => 'tooltip_color',
1437
  'label' => __( 'Tool tip color', 'woolentor' ),
1438
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1439
  'type' => 'color',
1440
  'default'=>'#ffffff',
1441
  ),
1442
  array(
1443
  'name' => 'btn_color',
1444
  'label' => __( 'Button color', 'woolentor' ),
1445
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1446
  'type' => 'color',
1447
  'default'=>'#000000',
1448
  ),
1449
  array(
1450
  'name' => 'btn_hover_color',
1451
  'label' => __( 'Button hover color', 'woolentor' ),
1452
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1453
  'type' => 'color',
1454
  'default'=>'#dc9a0e',
1455
  ),
@@ -1463,28 +1463,28 @@ class Woolentor_Admin_Settings {
1463
  array(
1464
  'name' => 'list_btn_color',
1465
  'label' => __( 'List View Button color', 'woolentor' ),
1466
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1467
  'type' => 'color',
1468
  'default'=>'#000000',
1469
  ),
1470
  array(
1471
  'name' => 'list_btn_hover_color',
1472
  'label' => __( 'List View Button Hover color', 'woolentor' ),
1473
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1474
  'type' => 'color',
1475
  'default'=>'#dc9a0e',
1476
  ),
1477
  array(
1478
  'name' => 'list_btn_bg_color',
1479
  'label' => __( 'List View Button background color', 'woolentor' ),
1480
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1481
  'type' => 'color',
1482
  'default'=>'#ffffff',
1483
  ),
1484
  array(
1485
  'name' => 'list_btn_hover_bg_color',
1486
  'label' => __( 'List View Button hover background color', 'woolentor' ),
1487
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1488
  'type' => 'color',
1489
  'default'=>'#ff3535',
1490
  ),
@@ -1498,7 +1498,7 @@ class Woolentor_Admin_Settings {
1498
  array(
1499
  'name' => 'counter_color',
1500
  'label' => __( 'Counter timer color', 'woolentor' ),
1501
- 'desc' => __( 'Default Color for universal layout.', 'woolentor' ),
1502
  'type' => 'color',
1503
  'default'=>'#ffffff',
1504
  ),
@@ -1634,10 +1634,10 @@ class Woolentor_Admin_Settings {
1634
  <div class="htoption-banner-area">
1635
  <div class="htoption-banner-head">
1636
  <div class="htoption-logo">
1637
- <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/logo.png" alt="<?php echo esc_attr__( 'WooLentor', 'woolentor' ); ?>">
1638
  </div>
1639
  <div class="htoption-intro">
1640
- <p><?php echo esc_html__( 'WooLentor is one of the most popular WooCommerce Elementor Addons on WordPress.org. It has been downloaded more than 528,763 times and 50,000 stores are using WooLentor plugin. Why not you?','woolentor' ); ?></p>
1641
  </div>
1642
  </div>
1643
 
@@ -1652,14 +1652,14 @@ class Woolentor_Admin_Settings {
1652
  <div class="htoption-action-btn">
1653
  <a class="htoption-btn" href="<?php echo esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db' ); ?>" target="_blank">
1654
  <span class="htoption-btn-text"><?php echo esc_html__( 'Get Pro Now', 'woolentor' ); ?></span>
1655
- <span class="htoption-btn-icon"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/icon/plus.png" alt="<?php echo esc_attr__( 'Get pro now', 'woolentor' ); ?>"></span>
1656
  </a>
1657
  </div>
1658
  </div>
1659
 
1660
  <div class="htoption-rating-area">
1661
  <div class="htoption-rating-icon">
1662
- <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/icon/rating.png" alt="<?php echo esc_attr__( 'Rating icon', 'woolentor' ); ?>">
1663
  </div>
1664
  <div class="htoption-rating-intro">
1665
  <?php echo esc_html__('If you’re loving how our product has helped your business, please let the WordPress community know by','woolentor'); ?> <a target="_blank" href="https://wordpress.org/support/plugin/woolentor-addons/reviews/?filter=5#new-post"><?php echo esc_html__( 'leaving us a review on our WP repository', 'woolentor' ); ?></a>. <?php echo esc_html__( 'Which will motivate us a lot.', 'woolentor' ); ?>
@@ -1679,7 +1679,7 @@ class Woolentor_Admin_Settings {
1679
  ob_start();
1680
  ?>
1681
  <div class="woolentor-style-tab-title">
1682
- <h3><?php esc_html_e( 'Universal layout style options', 'woolentor' );?></h3>
1683
  </div>
1684
  <?php
1685
  echo ob_get_clean();
@@ -1691,7 +1691,7 @@ class Woolentor_Admin_Settings {
1691
  ?>
1692
  <div class="woolentor-style-tab-bottom">
1693
  <h3><?php echo esc_html__( 'Helping Screenshot:', 'woolentor' ); ?></h3>
1694
- <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/universal-layout-screen.png" alt="<?php echo esc_attr__( 'Universal layout', 'woolentor' ); ?>">
1695
  </div>
1696
  <?php
1697
  echo ob_get_clean();
@@ -1706,17 +1706,17 @@ class Woolentor_Admin_Settings {
1706
  <div class="woolentor-document-section">
1707
  <div class="woolentor-column">
1708
  <a href="https://www.youtube.com/watch?v=_MOgvsZJ6uA&list=PLk25BQFrj7wH9zCECMNCtEvvUKkpV5TYA" target="_blank">
1709
- <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/video-tutorial.jpg" alt="<?php esc_attr_e( 'Video Tutorial', 'woolentor' ); ?>">
1710
  </a>
1711
  </div>
1712
  <div class="woolentor-column">
1713
  <a href="https://demo.hasthemes.com/doc/woolentor/index.html" target="_blank">
1714
- <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/online-documentation.jpg" alt="<?php esc_attr_e( 'Online Documentation', 'woolentor' ); ?>">
1715
  </a>
1716
  </div>
1717
  <div class="woolentor-column">
1718
  <a href="https://hasthemes.com/contact-us/" target="_blank">
1719
- <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/genral-contact-us.jpg" alt="<?php esc_attr_e( 'Contact Us', 'woolentor' ); ?>">
1720
  </a>
1721
  </div>
1722
  </div>
@@ -1741,7 +1741,7 @@ class Woolentor_Admin_Settings {
1741
  <li class="wldel"><del><?php echo esc_html__( 'My Account Page Builder', 'woolentor' ); ?></del></li>
1742
  <li class="wldel"><del><?php echo esc_html__( 'My Account Login page Builder', 'woolentor' ); ?></del></li>
1743
  </ul>
1744
- <a class="button button-primary" href="<?php echo esc_url( admin_url() ); ?>plugin-install.php?s=woolentor-addons&tab=search&type=term" target="_blank"><?php echo esc_html__( 'Install Now', 'woolentor' ); ?></a>
1745
  </div>
1746
  <div class="features-list-area">
1747
  <h3><?php echo esc_html__( 'WooLentor Pro', 'woolentor' ); ?></h3>
@@ -1759,7 +1759,7 @@ class Woolentor_Admin_Settings {
1759
  <li><?php echo esc_html__( 'My Account Page Builder', 'woolentor' ); ?></li>
1760
  <li><?php echo esc_html__( 'My Account Login page Builder', 'woolentor' ); ?></li>
1761
  </ul>
1762
- <a class="button button-primary" href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><?php echo esc_html__( 'Buy Now', 'woolentor' ); ?></a>
1763
  </div>
1764
  </div>
1765
 
@@ -1818,7 +1818,7 @@ class Woolentor_Admin_Settings {
1818
  <div class="woolentor-themes-area">
1819
  <div class="woolentor-themes-row">
1820
 
1821
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/99fy.png" alt="">
1822
  <div class="woolentor-theme-content">
1823
  <h3><?php echo esc_html__( '99Fy - Free', 'woolentor' ); ?></h3>
1824
  <p><?php echo esc_html__( '99fy is a free WooCommerce theme. 99 demos for 24 niche categories are included in this theme.', 'woolentor' ); ?></p>
@@ -1827,7 +1827,7 @@ class Woolentor_Admin_Settings {
1827
  </div>
1828
  </div>
1829
 
1830
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/parlo.png" alt="">
1831
  <div class="woolentor-theme-content">
1832
  <h3><?php echo esc_html__( 'Parlo - Free', 'woolentor' ); ?></h3>
1833
  <p><?php echo esc_html__( 'Parlo is a free WooCommerce theme developed by our team. You can use this for your store.', 'woolentor' );?></p>
@@ -1836,7 +1836,7 @@ class Woolentor_Admin_Settings {
1836
  </div>
1837
  </div>
1838
 
1839
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/99fy-pro.png" alt="">
1840
  <div class="woolentor-theme-content">
1841
  <h3><?php echo esc_html__( '99Fy Pro - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1842
  <p><?php echo esc_html__( 'Pro version of 99fy is included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' ); ?></p>
@@ -1844,7 +1844,7 @@ class Woolentor_Admin_Settings {
1844
  </div>
1845
  </div>
1846
 
1847
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/flone.png" alt="">
1848
  <div class="woolentor-theme-content">
1849
  <h3><?php echo esc_html__( 'Flone - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1850
  <p><?php echo esc_html__( 'Flone is one of our most popular WooComemrce Themes using by 1000+ stores.', 'wooLentor' );?></p>
@@ -1852,7 +1852,7 @@ class Woolentor_Admin_Settings {
1852
  </div>
1853
  </div>
1854
 
1855
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/parlo.png" alt="">
1856
  <div class="woolentor-theme-content">
1857
  <h3><?php echo esc_html__( 'Parlo Pro - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1858
  <p><?php echo esc_html__( 'Pro version of Parlo is included in WooLentor pro. It will save money for the WooLentor pro users.', 'wooLentor' );?></p>
@@ -1860,26 +1860,26 @@ class Woolentor_Admin_Settings {
1860
  </div>
1861
  </div>
1862
 
1863
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/holmes.png" alt="">
1864
  <div class="woolentor-theme-content">
1865
  <h3><?php echo esc_html__( 'Holmes - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1866
- <p><?php echo esc_html__( 'Holmes is a premium woocommerce theme included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' );?></p>
1867
  <a href="http://demo.hasthemes.com/wp/holmes-preview.html" class="woolentor-button" target="_blank"><?php echo esc_html__( 'Preview', 'woolentor' ); ?></a>
1868
  </div>
1869
  </div>
1870
 
1871
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/daniel-home-1.png" alt="">
1872
  <div class="woolentor-theme-content">
1873
  <h3><?php echo esc_html__( 'Daniel - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1874
- <p><?php echo esc_html__( 'Daniel is a premium woocommerce theme included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' ); ?></p>
1875
  <a href="http://demo.hasthemes.com/wp/daniel-preview.html" class="woolentor-button" target="_blank"><?php echo esc_html__( 'Preview', 'woolentor' ); ?></a>
1876
  </div>
1877
  </div>
1878
 
1879
- <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/hurst-home-1.png" alt="">
1880
  <div class="woolentor-theme-content">
1881
  <h3><?php echo esc_html__( 'Hurst - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1882
- <p><?php echo esc_html__( 'Hurst is a premium woocommerce theme included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' ); ?></p>
1883
  <a href="http://demo.hasthemes.com/wp/hurst-preview.html" class="woolentor-button" target="_blank"><?php echo esc_html__( 'Preview', 'woolentor' ); ?></a>
1884
  </div>
1885
  </div>
@@ -1906,15 +1906,15 @@ class Woolentor_Admin_Settings {
1906
  <div class="woolentor-admin-row">
1907
 
1908
  <div class="woolentor-price-plan">
1909
- <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/pricing/one_year_single_website.png" alt="<?php echo esc_attr__( 'One Year Single Website','woolentor' );?>"></a>
1910
  </div>
1911
 
1912
  <div class="woolentor-price-plan">
1913
- <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/pricing/one_year_five_website.png" alt="<?php echo esc_attr__( 'One Year Unlimited Website','woolentor' );?>"></a>
1914
  </div>
1915
 
1916
  <div class="woolentor-price-plan">
1917
- <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/pricing/one_year_agency.png" alt="<?php echo esc_attr__( 'One Year Unlimited Websites','woolentor' );?>"></a>
1918
  </div>
1919
 
1920
  </div>
@@ -1924,15 +1924,15 @@ class Woolentor_Admin_Settings {
1924
 
1925
  <div class="woolentor-admin-row">
1926
  <div class="woolentor-price-plan">
1927
- <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/pricing/life_time_single_website.png" alt="<?php echo esc_attr__( 'Lifetime Single Website','woolentor' );?>"></a>
1928
  </div>
1929
 
1930
  <div class="woolentor-price-plan">
1931
- <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/pricing/life_time_five_website.png" alt="<?php echo esc_attr__( 'Lifetime Unlimited Website','woolentor' );?>"></a>
1932
  </div>
1933
 
1934
  <div class="woolentor-price-plan">
1935
- <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>includes/admin/assets/images/pricing/life_time_agency.png" alt="<?php echo esc_attr__( 'Lifetime Unlimited Websites','woolentor' );?>"></a>
1936
  </div>
1937
  </div>
1938
 
131
  array(
132
  'name' => 'shoppageproductlimit',
133
  'label' => __( 'Product Limit', 'woolentor' ),
134
+ 'desc' => wp_kses_post( 'You can handle the product limit for the Shop page', 'woolentor' ),
135
  'min' => 1,
136
  'max' => 100,
137
  'step' => '1',
801
 
802
  array(
803
  'name' => 'wl_stock_progress_barp',
804
+ 'label' => __( 'Stock Progressbar <span>( Pro )</span>', 'woolentor' ),
805
  'type' => 'checkbox',
806
  'default' => 'off',
807
  'class'=>'woolentor_table_row pro',
1201
  array(
1202
  'name' => 'background_colorp',
1203
  'label' => __( 'Background Color', 'woolentor' ),
1204
+ 'desc' => wp_kses_post( 'Set the background color of the notification. <span>( Pro )</span>', 'woolentor' ),
1205
  'type' => 'color',
1206
  'class' => 'notification_real proelement',
1207
  ),
1209
  array(
1210
  'name' => 'heading_colorp',
1211
  'label' => __( 'Heading Color', 'woolentor' ),
1212
+ 'desc' => wp_kses_post( 'Set the heading color of the notification. <span>( Pro )</span>', 'woolentor' ),
1213
  'type' => 'color',
1214
  'class' => 'notification_real proelement',
1215
  ),
1217
  array(
1218
  'name' => 'content_colorp',
1219
  'label' => __( 'Content Color', 'woolentor' ),
1220
+ 'desc' => wp_kses_post( 'Set the content color of the notification. <span>( Pro )</span>', 'woolentor' ),
1221
  'type' => 'color',
1222
  'class' => 'notification_real proelement',
1223
  ),
1225
  array(
1226
  'name' => 'cross_colorp',
1227
  'label' => __( 'Cross Icon Color', 'woolentor' ),
1228
+ 'desc' => wp_kses_post( 'Set the cross icon color of the notification. <span>( Pro )</span>', 'woolentor' ),
1229
  'type' => 'color',
1230
  'class' => 'proelement',
1231
  ),
1237
  array(
1238
  'name' => 'loadproductlimit',
1239
  'label' => __( 'Load Products in Elementor Addons', 'woolentor' ),
1240
+ 'desc' => wp_kses_post( 'Set the number of products to load in Elementor Addons', 'woolentor' ),
1241
  'min' => 1,
1242
  'max' => 100,
1243
  'step' => '1',
1250
  array(
1251
  'name' => 'ajaxsearch',
1252
  'label' => __( 'Ajax Search Widget', 'woolentor' ),
1253
+ 'desc' => wp_kses_post( 'AJAX Search Widget', 'woolentor' ),
1254
  'type' => 'checkbox',
1255
  'default' => 'off',
1256
  'class'=>'woolentor_table_row',
1259
  array(
1260
  'name' => 'ajaxcart_singleproduct',
1261
  'label' => __( 'Single Product Ajax Add To Cart', 'woolentor' ),
1262
+ 'desc' => wp_kses_post( 'AJAX Add to Cart on Single Product page', 'woolentor' ),
1263
  'type' => 'checkbox',
1264
  'default' => 'off',
1265
  'class'=>'woolentor_table_row',
1268
  array(
1269
  'name' => 'single_product_sticky_add_to_cartp',
1270
  'label' => __( 'Single Product Sticky Add To Cart <span>( Pro )</span>', 'woolentor' ),
1271
+ 'desc' => wp_kses_post( 'Sticky Add to Cart on Single Product page', 'woolentor' ),
1272
  'type' => 'checkbox',
1273
  'default' => 'off',
1274
  'class' => 'woolentor_table_row pro',
1309
  array(
1310
  'name' => 'content_area_bg',
1311
  'label' => __( 'Content area background', 'woolentor' ),
1312
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1313
  'type' => 'color',
1314
  'default'=>'#ffffff',
1315
  ),
1323
  array(
1324
  'name' => 'title_color',
1325
  'label' => __( 'Title color', 'woolentor' ),
1326
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1327
  'type' => 'color',
1328
  'default'=>'#444444',
1329
  ),
1330
  array(
1331
  'name' => 'title_hover_color',
1332
  'label' => __( 'Title hover color', 'woolentor' ),
1333
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1334
  'type' => 'color',
1335
  'default'=>'#dc9a0e',
1336
  ),
1344
  array(
1345
  'name' => 'sale_price_color',
1346
  'label' => __( 'Sale price color', 'woolentor' ),
1347
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1348
  'type' => 'color',
1349
  'default'=>'#444444',
1350
  ),
1351
  array(
1352
  'name' => 'regular_price_color',
1353
  'label' => __( 'Regular price color', 'woolentor' ),
1354
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1355
  'type' => 'color',
1356
  'default'=>'#444444',
1357
  ),
1365
  array(
1366
  'name' => 'category_color',
1367
  'label' => __( 'Category color', 'woolentor' ),
1368
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1369
  'type' => 'color',
1370
  'default'=>'#444444',
1371
  ),
1372
  array(
1373
  'name' => 'category_hover_color',
1374
  'label' => __( 'Category hover color', 'woolentor' ),
1375
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1376
  'type' => 'color',
1377
  'default'=>'#dc9a0e',
1378
  ),
1386
  array(
1387
  'name' => 'desc_color',
1388
  'label' => __( 'Description color', 'woolentor' ),
1389
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1390
  'type' => 'color',
1391
  'default'=>'#444444',
1392
  ),
1400
  array(
1401
  'name' => 'empty_rating_color',
1402
  'label' => __( 'Empty rating color', 'woolentor' ),
1403
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1404
  'type' => 'color',
1405
  'default'=>'#aaaaaa',
1406
  ),
1407
  array(
1408
  'name' => 'rating_color',
1409
  'label' => __( 'Rating color', 'woolentor' ),
1410
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1411
  'type' => 'color',
1412
  'default'=>'#dc9a0e',
1413
  ),
1421
  array(
1422
  'name' => 'badge_color',
1423
  'label' => __( 'Badge color', 'woolentor' ),
1424
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1425
  'type' => 'color',
1426
  'default'=>'#444444',
1427
  ),
1435
  array(
1436
  'name' => 'tooltip_color',
1437
  'label' => __( 'Tool tip color', 'woolentor' ),
1438
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1439
  'type' => 'color',
1440
  'default'=>'#ffffff',
1441
  ),
1442
  array(
1443
  'name' => 'btn_color',
1444
  'label' => __( 'Button color', 'woolentor' ),
1445
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1446
  'type' => 'color',
1447
  'default'=>'#000000',
1448
  ),
1449
  array(
1450
  'name' => 'btn_hover_color',
1451
  'label' => __( 'Button hover color', 'woolentor' ),
1452
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1453
  'type' => 'color',
1454
  'default'=>'#dc9a0e',
1455
  ),
1463
  array(
1464
  'name' => 'list_btn_color',
1465
  'label' => __( 'List View Button color', 'woolentor' ),
1466
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1467
  'type' => 'color',
1468
  'default'=>'#000000',
1469
  ),
1470
  array(
1471
  'name' => 'list_btn_hover_color',
1472
  'label' => __( 'List View Button Hover color', 'woolentor' ),
1473
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1474
  'type' => 'color',
1475
  'default'=>'#dc9a0e',
1476
  ),
1477
  array(
1478
  'name' => 'list_btn_bg_color',
1479
  'label' => __( 'List View Button background color', 'woolentor' ),
1480
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1481
  'type' => 'color',
1482
  'default'=>'#ffffff',
1483
  ),
1484
  array(
1485
  'name' => 'list_btn_hover_bg_color',
1486
  'label' => __( 'List View Button hover background color', 'woolentor' ),
1487
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1488
  'type' => 'color',
1489
  'default'=>'#ff3535',
1490
  ),
1498
  array(
1499
  'name' => 'counter_color',
1500
  'label' => __( 'Counter timer color', 'woolentor' ),
1501
+ 'desc' => wp_kses_post( 'Default Color for universal layout.', 'woolentor' ),
1502
  'type' => 'color',
1503
  'default'=>'#ffffff',
1504
  ),
1634
  <div class="htoption-banner-area">
1635
  <div class="htoption-banner-head">
1636
  <div class="htoption-logo">
1637
+ <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/logo.png" alt="<?php echo esc_attr__( 'WooLentor', 'woolentor' ); ?>">
1638
  </div>
1639
  <div class="htoption-intro">
1640
+ <p><?php echo wp_kses_post( 'WooLentor is one of the most popular WooCommerce Elementor Addons on WordPress.org. It has been downloaded more than 528,763 times and 50,000 stores are using WooLentor plugin. Why not you?' ); ?></p>
1641
  </div>
1642
  </div>
1643
 
1652
  <div class="htoption-action-btn">
1653
  <a class="htoption-btn" href="<?php echo esc_url( 'https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db' ); ?>" target="_blank">
1654
  <span class="htoption-btn-text"><?php echo esc_html__( 'Get Pro Now', 'woolentor' ); ?></span>
1655
+ <span class="htoption-btn-icon"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/icon/plus.png" alt="<?php echo esc_attr__( 'Get pro now', 'woolentor' ); ?>"></span>
1656
  </a>
1657
  </div>
1658
  </div>
1659
 
1660
  <div class="htoption-rating-area">
1661
  <div class="htoption-rating-icon">
1662
+ <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/icon/rating.png" alt="<?php echo esc_attr__( 'Rating icon', 'woolentor' ); ?>">
1663
  </div>
1664
  <div class="htoption-rating-intro">
1665
  <?php echo esc_html__('If you’re loving how our product has helped your business, please let the WordPress community know by','woolentor'); ?> <a target="_blank" href="https://wordpress.org/support/plugin/woolentor-addons/reviews/?filter=5#new-post"><?php echo esc_html__( 'leaving us a review on our WP repository', 'woolentor' ); ?></a>. <?php echo esc_html__( 'Which will motivate us a lot.', 'woolentor' ); ?>
1679
  ob_start();
1680
  ?>
1681
  <div class="woolentor-style-tab-title">
1682
+ <h3><?php esc_html_e( 'Universal layout style options', 'woolentor-pro' );?></h3>
1683
  </div>
1684
  <?php
1685
  echo ob_get_clean();
1691
  ?>
1692
  <div class="woolentor-style-tab-bottom">
1693
  <h3><?php echo esc_html__( 'Helping Screenshot:', 'woolentor' ); ?></h3>
1694
+ <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/universal-layout-screen.png" alt="<?php echo esc_attr__( 'Universal layout', 'woolentor' ); ?>">
1695
  </div>
1696
  <?php
1697
  echo ob_get_clean();
1706
  <div class="woolentor-document-section">
1707
  <div class="woolentor-column">
1708
  <a href="https://www.youtube.com/watch?v=_MOgvsZJ6uA&list=PLk25BQFrj7wH9zCECMNCtEvvUKkpV5TYA" target="_blank">
1709
+ <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/video-tutorial.jpg" alt="<?php esc_attr_e( 'Video Tutorial', 'woolentor' ); ?>">
1710
  </a>
1711
  </div>
1712
  <div class="woolentor-column">
1713
  <a href="https://demo.hasthemes.com/doc/woolentor/index.html" target="_blank">
1714
+ <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/online-documentation.jpg" alt="<?php esc_attr_e( 'Online Documentation', 'woolentor' ); ?>">
1715
  </a>
1716
  </div>
1717
  <div class="woolentor-column">
1718
  <a href="https://hasthemes.com/contact-us/" target="_blank">
1719
+ <img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/genral-contact-us.jpg" alt="<?php esc_attr_e( 'Contact Us', 'woolentor' ); ?>">
1720
  </a>
1721
  </div>
1722
  </div>
1741
  <li class="wldel"><del><?php echo esc_html__( 'My Account Page Builder', 'woolentor' ); ?></del></li>
1742
  <li class="wldel"><del><?php echo esc_html__( 'My Account Login page Builder', 'woolentor' ); ?></del></li>
1743
  </ul>
1744
+ <a class="button button-primary" href="<?php echo esc_url( admin_url() ); ?>plugin-install.php?s=woolentor-addons&tab=search&type=term" target="_blank"><?php echo esc_html__( 'Install Now', 'woolenror' ); ?></a>
1745
  </div>
1746
  <div class="features-list-area">
1747
  <h3><?php echo esc_html__( 'WooLentor Pro', 'woolentor' ); ?></h3>
1759
  <li><?php echo esc_html__( 'My Account Page Builder', 'woolentor' ); ?></li>
1760
  <li><?php echo esc_html__( 'My Account Login page Builder', 'woolentor' ); ?></li>
1761
  </ul>
1762
+ <a class="button button-primary" href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><?php echo esc_html__( 'Buy Now', 'woolenror' ); ?></a>
1763
  </div>
1764
  </div>
1765
 
1818
  <div class="woolentor-themes-area">
1819
  <div class="woolentor-themes-row">
1820
 
1821
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/99fy.png" alt="">
1822
  <div class="woolentor-theme-content">
1823
  <h3><?php echo esc_html__( '99Fy - Free', 'woolentor' ); ?></h3>
1824
  <p><?php echo esc_html__( '99fy is a free WooCommerce theme. 99 demos for 24 niche categories are included in this theme.', 'woolentor' ); ?></p>
1827
  </div>
1828
  </div>
1829
 
1830
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/parlo.png" alt="">
1831
  <div class="woolentor-theme-content">
1832
  <h3><?php echo esc_html__( 'Parlo - Free', 'woolentor' ); ?></h3>
1833
  <p><?php echo esc_html__( 'Parlo is a free WooCommerce theme developed by our team. You can use this for your store.', 'woolentor' );?></p>
1836
  </div>
1837
  </div>
1838
 
1839
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/99fy-pro.png" alt="">
1840
  <div class="woolentor-theme-content">
1841
  <h3><?php echo esc_html__( '99Fy Pro - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1842
  <p><?php echo esc_html__( 'Pro version of 99fy is included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' ); ?></p>
1844
  </div>
1845
  </div>
1846
 
1847
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/flone.png" alt="">
1848
  <div class="woolentor-theme-content">
1849
  <h3><?php echo esc_html__( 'Flone - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1850
  <p><?php echo esc_html__( 'Flone is one of our most popular WooComemrce Themes using by 1000+ stores.', 'wooLentor' );?></p>
1852
  </div>
1853
  </div>
1854
 
1855
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/parlo.png" alt="">
1856
  <div class="woolentor-theme-content">
1857
  <h3><?php echo esc_html__( 'Parlo Pro - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1858
  <p><?php echo esc_html__( 'Pro version of Parlo is included in WooLentor pro. It will save money for the WooLentor pro users.', 'wooLentor' );?></p>
1860
  </div>
1861
  </div>
1862
 
1863
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/holmes.png" alt="">
1864
  <div class="woolentor-theme-content">
1865
  <h3><?php echo esc_html__( 'Holmes - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1866
+ <p><?php echo esc_html__( 'Holmes is a preimum woocommerce theme included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' );?></p>
1867
  <a href="http://demo.hasthemes.com/wp/holmes-preview.html" class="woolentor-button" target="_blank"><?php echo esc_html__( 'Preview', 'woolentor' ); ?></a>
1868
  </div>
1869
  </div>
1870
 
1871
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/daniel-home-1.png" alt="">
1872
  <div class="woolentor-theme-content">
1873
  <h3><?php echo esc_html__( 'Daniel - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1874
+ <p><?php echo esc_html__( 'Daniel is a preimum woocommerce theme included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' ); ?></p>
1875
  <a href="http://demo.hasthemes.com/wp/daniel-preview.html" class="woolentor-button" target="_blank"><?php echo esc_html__( 'Preview', 'woolentor' ); ?></a>
1876
  </div>
1877
  </div>
1878
 
1879
+ <div class="woolentor-single-theme"><img src="<?php echo WOOLENTOR_ADDONS_PL_URL; ?>/includes/admin/assets/images/hurst-home-1.png" alt="">
1880
  <div class="woolentor-theme-content">
1881
  <h3><?php echo esc_html__( 'Hurst - included in WooLentor Pro', 'woolentor' ); ?> <span><?php echo esc_html__( '( Pro )', 'woolentor' ); ?></span></h3>
1882
+ <p><?php echo esc_html__( 'Hurst is a preimum woocommerce theme included in WooLentor pro. It will save money for the WooLentor pro users.', 'woolentor' ); ?></p>
1883
  <a href="http://demo.hasthemes.com/wp/hurst-preview.html" class="woolentor-button" target="_blank"><?php echo esc_html__( 'Preview', 'woolentor' ); ?></a>
1884
  </div>
1885
  </div>
1906
  <div class="woolentor-admin-row">
1907
 
1908
  <div class="woolentor-price-plan">
1909
+ <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="https://woolentor.com/pricing/admin-add/one_year_single_website.png" alt="<?php echo esc_attr__( 'One Year Single Website','woolentor' );?>"></a>
1910
  </div>
1911
 
1912
  <div class="woolentor-price-plan">
1913
+ <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="https://woolentor.com/pricing/admin-add/one_year_five_website.png" alt="<?php echo esc_attr__( 'One Year Unlimited Website','woolentor' );?>"></a>
1914
  </div>
1915
 
1916
  <div class="woolentor-price-plan">
1917
+ <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="https://woolentor.com/pricing/admin-add/one_year_agency.png" alt="<?php echo esc_attr__( 'One Year Unlimited Websites','woolentor' );?>"></a>
1918
  </div>
1919
 
1920
  </div>
1924
 
1925
  <div class="woolentor-admin-row">
1926
  <div class="woolentor-price-plan">
1927
+ <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="https://woolentor.com/pricing/admin-add/life_time_single_website.png" alt="<?php echo esc_attr__( 'Lifetime Single Website','woolentor' );?>"></a>
1928
  </div>
1929
 
1930
  <div class="woolentor-price-plan">
1931
+ <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="https://woolentor.com/pricing/admin-add/life_time_five_website.png" alt="<?php echo esc_attr__( 'Lifetime Unlimited Website','woolentor' );?>"></a>
1932
  </div>
1933
 
1934
  <div class="woolentor-price-plan">
1935
+ <a href="https://hasthemes.com/plugins/woolentor-pro-woocommerce-page-builder/?db" target="_blank"><img src="https://woolentor.com/pricing/admin-add/life_time_agency.png" alt="<?php echo esc_attr__( 'Lifetime Unlimited Websites','woolentor' );?>"></a>
1936
  </div>
1937
  </div>
1938
 
includes/admin/include/class.extension-manager.php CHANGED
@@ -1,364 +1,364 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
3
-
4
- class Woolentor_Extension_Manager{
5
-
6
- // Get Instance
7
- private static $_instance = null;
8
- public static function instance(){
9
- if( is_null( self::$_instance ) ){
10
- self::$_instance = new self();
11
- }
12
- return self::$_instance;
13
- }
14
-
15
- function __construct(){
16
- if( is_admin() ){
17
- add_action( 'admin_menu', [ $this, 'admin_menu' ], 225 );
18
- add_action( 'admin_enqueue_scripts', [ $this, 'scripts' ] );
19
- }
20
- }
21
-
22
- // Menu for Extension
23
- public function admin_menu() {
24
- add_submenu_page(
25
- 'woolentor_page',
26
- esc_html__( 'Extension', 'woolentor' ),
27
- esc_html__( 'Extension', 'woolentor' ),
28
- 'manage_options',
29
- 'woolentor_extension',
30
- [ $this, 'render_html' ]
31
- );
32
- }
33
-
34
- public function scripts( $hook ) {
35
- if( 'woolentor_page_woolentor_extension' == $hook ){
36
-
37
- //JS
38
- wp_enqueue_script( 'woolentor-install-manager' );
39
- wp_enqueue_script( 'woolentor-admin-main' );
40
-
41
- }
42
- }
43
-
44
- // Extension Menu HTML
45
- public function render_html(){
46
-
47
- if ( ! function_exists('plugins_api') ){ include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); }
48
-
49
- $htplugins_plugins_list = !empty( $this->get_plugins() ) ? $this->get_plugins() : array();
50
- $palscode_plugins_list = !empty( $this->get_plugins( 'palscode' ) ) ? $this->get_plugins( 'palscode' ) : array();
51
-
52
- $org_plugins_list = array_merge( $htplugins_plugins_list, $palscode_plugins_list );
53
-
54
- $prepare_plugin = array();
55
- foreach ( $org_plugins_list as $key => $plugin ) {
56
- $prepare_plugin[$plugin['slug']] = $plugin;
57
- }
58
-
59
- $plugins_list = array(
60
-
61
- 'free' => array(
62
-
63
- array(
64
- 'slug' => 'wishsuite',
65
- 'location' => 'wishsuite.php',
66
- 'name' => esc_html__( 'WishSuite', 'woolentor' )
67
- ),
68
- array(
69
- 'slug' => 'ever-compare',
70
- 'location' => 'ever-compare.php',
71
- 'name' => esc_html__( 'EverCompare', 'woolentor' )
72
- ),
73
- array(
74
- 'slug' => 'whols',
75
- 'location' => 'whols.php',
76
- 'name' => esc_html__( 'Whols', 'woolentor' )
77
- ),
78
- array(
79
- 'slug' => 'just-tables',
80
- 'location' => 'just-tables.php',
81
- 'name' => esc_html__( 'JustTables', 'woolentor' )
82
- ),
83
- array(
84
- 'slug' => 'wc-multi-currency',
85
- 'location' => 'wcmilticurrency.php',
86
- 'name' => esc_html__( 'Multi Currency', 'woolentor' )
87
- )
88
-
89
- ),
90
-
91
- 'pro' => array(
92
-
93
- array(
94
- 'slug' => 'just-tables-pro',
95
- 'location' => 'just-tables-pro.php',
96
- 'name' => esc_html__( 'JustTables Pro', 'woolentor' ),
97
- 'link' => 'https://hasthemes.com/wp/justtables/',
98
- 'author_link'=> 'https://hasthemes.com/',
99
- 'description'=> esc_html__( 'JustTables is an incredible WordPress plugin that lets you showcase all your WooCommerce products in a sortable and filterable table view. It allows your customers to easily navigate through different attributes of the products and compare them on a single page. This plugin will be of great help if you are looking for an easy solution that increases the chances of landing a sale on your online store.', 'woolentor' ),
100
- ),
101
-
102
- array(
103
- 'slug' => 'whols-pro',
104
- 'location' => 'whols-pro.php',
105
- 'name' => esc_html__( 'Whols Pro – WooCommerce Wholesale Prices', 'woolentor' ),
106
- 'link' => 'https://hasthemes.com/plugins/whols-woocommerce-wholesale-prices/',
107
- 'author_link'=> 'https://hasthemes.com/',
108
- 'description'=> esc_html__( 'Whols is an outstanding WordPress plugin for WooCommerce that allows store owners to set wholesale prices for the products of their online stores. This plugin enables you to show special wholesale prices to the wholesaler. Users can easily request to become a wholesale customer by filling out a simple online registration form. Once the registration is complete, the owner of the store will be able to review the request and approve the request either manually or automatically.', 'woolentor' ),
109
- ),
110
-
111
- array(
112
- 'slug' => 'multicurrencypro',
113
- 'location' => 'multicurrencypro.php',
114
- 'name' => esc_html__( 'Multi Currency Pro for WooCommerce', 'woolentor' ),
115
- 'link' => 'https://hasthemes.com/plugins/multi-currency-pro-for-woocommerce/',
116
- 'author_link'=> 'https://hasthemes.com/',
117
- 'description'=> esc_html__( 'Multi-Currency Pro for WooCommerce is a prominent currency switcher plugin for WooCommerce. This plugin allows your website or online store visitors to switch to their preferred currency or their country’s currency.', 'woolentor' ),
118
- ),
119
-
120
- array(
121
- 'slug' => 'email-candy-pro',
122
- 'location' => 'email-candy-pro.php',
123
- 'name' => esc_html__( 'Email Candy Pro - Email customizer for WooCommerce', 'woolentor' ),
124
- 'link' => 'https://hasthemes.com/plugins/email-candy-pro/',
125
- 'author_link'=> 'https://hasthemes.com/',
126
- 'description'=> esc_html__( 'Email Candy is an outstanding WordPress plugin that allows you to customize the default WooCommerce email templates and give a professional look to your WooCommerce emails. If you are tired of using the boring design of WooCommerce emails and want to create customized emails, then this plugin will come in handy.', 'woolentor' ),
127
- ),
128
-
129
- ),
130
- );
131
-
132
- echo '<div class="wrap"><h2>'.get_admin_page_title().'</h2>';
133
-
134
- ?>
135
- <style>
136
- .woolentor-admin-tab-pane{
137
- display: none;
138
- }
139
- .woolentor-admin-tab-pane.wlactive{
140
- display: block;
141
- }
142
- .extension-admin-tab-area .filter-links li>a:focus, .extension-admin-tab-area .filter-links li>a:hover {
143
- color: inherit;
144
- box-shadow: none;
145
- }
146
- .filter-links .wlactive{
147
- box-shadow: none;
148
- border-bottom: 4px solid #646970;
149
- color: #1d2327;
150
- }
151
- .downloaded-count{
152
- display: block;
153
- margin-top:5px;
154
- }
155
- </style>
156
- <div class="extension-admin-tab-area wp-filter">
157
- <ul class="woolentor-admin-tabs filter-links">
158
- <li><a href="#free-extension" class="wlactive"><?php echo esc_html__( 'Free extension', 'woolentor' ); ?></a></li>
159
- <li><a href="#pro-extension"><?php echo esc_html__( 'Pro extension', 'woolentor' ); ?></a></li>
160
- </ul>
161
- </div>
162
-
163
- <div id="pro-extension" class="woolentor-admin-tab-pane">
164
- <?php
165
- foreach ( $plugins_list['pro'] as $key => $plugin ) {
166
-
167
- $data = array(
168
- 'slug' => isset( $plugin['slug'] ) ? $plugin['slug'] : '',
169
- 'location' => isset( $plugin['location'] ) ? $plugin['slug'].'/'.$plugin['location'] : '',
170
- 'name' => isset( $plugin['name'] ) ? $plugin['name'] : '',
171
- 'image' => isset( $plugin['icon'] ) ? $plugin['icon'] : WOOLENTOR_ADDONS_PL_URL.'/includes/admin/assets/images/extension/'.$plugin['slug'].'.png',
172
- );
173
-
174
- if ( ! is_wp_error( $data ) ) {
175
-
176
- // Installed but Inactive.
177
- if ( file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) && is_plugin_inactive( $data['location'] ) ) {
178
-
179
- $button_classes = 'button activate-now button-primary';
180
- $button_text = esc_html__( 'Activate', 'woolentor' );
181
-
182
- // Not Installed.
183
- } elseif ( ! file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) ) {
184
-
185
- $button_classes = 'button install-now';
186
- $button_text = esc_html__( 'Install Now', 'woolentor' );
187
-
188
- // Active.
189
- } else {
190
- $button_classes = 'button disabled';
191
- $button_text = esc_html__( 'Activated', 'woolentor' );
192
- }
193
-
194
- ?>
195
-
196
- <div class="plugin-card htwptemplata-plugin-<?php echo $data['slug']; ?>">
197
-
198
- <div class="plugin-card-top">
199
- <div class="name column-name" style="margin-right: 0;">
200
- <h3>
201
- <a href="<?php echo esc_url( $plugin['link'] ); ?>" target="_blank">
202
- <?php echo $plugin['name']; ?>
203
- <img src="<?php echo $data['image']; ?>" class="plugin-icon" alt="<?php echo $plugin['name']; ?>">
204
- </a>
205
- </h3>
206
- </div>
207
- <div class="desc column-description" style="margin-right: 0;">
208
- <p><?php echo wp_trim_words( $plugin['description'], 23, '....'); ?></p>
209
- <p class="authors">
210
- <cite>
211
- <?php echo esc_html__( 'By ', 'woolentor' ); ?>
212
- <a href="<?php echo esc_url( $plugin['author_link'] ); ?>"><?php echo esc_html__( 'HasThemes', 'woolentor' ); ?></a>
213
- </cite>
214
- </p>
215
- </div>
216
- </div>
217
-
218
- <div class="plugin-card-bottom">
219
- <div class="column-updated">
220
- <?php
221
- if (! file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) ) {
222
- echo '<a class="button button-primary" href="'.esc_url( $plugin['link'] ).'" target="_blank">'.esc_html__( 'Buy Now', 'woolentor' ).'</a>';
223
- }else{
224
- ?>
225
- <button class="<?php echo $button_classes; ?>" data-pluginopt='<?php echo wp_json_encode( $data ); ?>'><?php echo $button_text; ?></button>
226
- <?php } ?>
227
- </div>
228
- <div class="column-downloaded">
229
- <a href="<?php echo esc_url( $plugin['link'] ) ?>" target="_blank"><?php echo esc_html__( 'More Details', 'woolentor' ); ?></a>
230
- </div>
231
- </div>
232
-
233
- </div>
234
-
235
- <?php
236
-
237
- }
238
-
239
- }
240
- ?>
241
- </div>
242
-
243
- <?php
244
-
245
- echo '<div id="free-extension" class="woolentor-admin-tab-pane wlactive">';
246
-
247
- foreach ( $plugins_list['free'] as $key => $plugin ) {
248
-
249
- $data = array(
250
- 'slug' => isset( $plugin['slug'] ) ? $plugin['slug'] : '',
251
- 'location' => isset( $plugin['location'] ) ? $plugin['slug'].'/'.$plugin['location'] : '',
252
- 'name' => isset( $plugin['name'] ) ? $plugin['name'] : '',
253
- );
254
-
255
- if ( ! is_wp_error( $data ) ) {
256
-
257
- // Installed but Inactive.
258
- if ( file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) && is_plugin_inactive( $data['location'] ) ) {
259
-
260
- $button_classes = 'button activate-now button-primary';
261
- $button_text = esc_html__( 'Activate', 'woolentor' );
262
-
263
- // Not Installed.
264
- } elseif ( ! file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) ) {
265
-
266
- $button_classes = 'button install-now';
267
- $button_text = esc_html__( 'Install Now', 'woolentor' );
268
-
269
- // Active.
270
- } else {
271
- $button_classes = 'button disabled';
272
- $button_text = esc_html__( 'Activated', 'woolentor' );
273
- }
274
-
275
- if( !empty( $data['slug'] ) && isset( $prepare_plugin[$data['slug']] ) ){
276
-
277
- ?>
278
-
279
- <div class="plugin-card htwptemplata-plugin-<?php echo $data['slug']; ?>">
280
-
281
- <div class="plugin-card-top">
282
- <div class="name column-name" style="margin-right: 0;">
283
- <h3>
284
- <a href="<?php echo esc_url( admin_url() ) ?>/plugin-install.php?tab=plugin-information&plugin=<?php echo $data['slug']; ?>&TB_iframe=true&width=772&height=577" class="thickbox open-plugin-details-modal">
285
- <?php echo $prepare_plugin[$data['slug']]['name']; ?>
286
- <img src="<?php echo $prepare_plugin[$data['slug']]['icons']['1x']; ?>" class="plugin-icon" alt="<?php echo $prepare_plugin[$data['slug']]['name']; ?>">
287
- </a>
288
- </h3>
289
- </div>
290
- <div class="desc column-description" style="margin-right: 0;">
291
- <p><?php echo wp_trim_words( $prepare_plugin[$data['slug']]['description'], 23, '....'); ?></p>
292
- <p class="authors"> <cite><?php echo esc_html__( 'By ', 'woolentor' ).$prepare_plugin[$data['slug']]['author']; ?></cite></p>
293
- </div>
294
- </div>
295
-
296
- <div class="plugin-card-bottom">
297
- <div class="column-updated">
298
- <button class="<?php echo $button_classes; ?>" data-pluginopt='<?php echo wp_json_encode( $data ); ?>'><?php echo $button_text; ?></button>
299
- </div>
300
- <div class="column-downloaded">
301
- <a href="<?php echo esc_url( admin_url() ) ?>/plugin-install.php?tab=plugin-information&plugin=<?php echo $data['slug']; ?>&TB_iframe=true&width=772&height=577" class="thickbox open-plugin-details-modal"><?php echo esc_html__( 'More Details', 'woolentor' ); ?></a>
302
- <span class="downloaded-count">
303
- <?php
304
- printf( __( '%s Active Installations' ), $this->active_install_count( $prepare_plugin[$data['slug']]['active_installs'] ) );
305
- ?>
306
- </span>
307
- </div>
308
- </div>
309
-
310
- </div>
311
-
312
- <?php
313
- }
314
-
315
- }
316
-
317
- }
318
-
319
- echo '</div>';
320
-
321
- echo '</div>';
322
-
323
-
324
- }
325
-
326
- /**
327
- * [active_install_count] Manage Active install count
328
- * @param [int] $active_installs
329
- * @return [string]
330
- */
331
- public function active_install_count( $active_installs ){
332
-
333
- if ( $active_installs >= 1000000 ) {
334
- $active_installs_millions = floor( $active_installs / 1000000 );
335
- $active_installs_text = sprintf(
336
- /* translators: %s: Number of millions. */
337
- _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
338
- number_format_i18n( $active_installs_millions )
339
- );
340
- } elseif ( 0 === $active_installs ) {
341
- $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
342
- } else {
343
- $active_installs_text = number_format_i18n( $active_installs ) . '+';
344
- }
345
- return $active_installs_text;
346
-
347
- }
348
-
349
- /* Get Plugins list from wp.prg */
350
- public function get_plugins( $username = 'htplugins' ){
351
- $transient_var = 'woolentor_htplugins_list_'.$username;
352
- $org_plugins_list = get_transient( $transient_var );
353
- if ( false === $org_plugins_list ) {
354
- $plugins_list_by_authoir = plugins_api( 'query_plugins', array( 'author' => $username, 'per_page'=>100 ) );
355
- set_transient( $transient_var, $plugins_list_by_authoir->plugins, 1 * DAY_IN_SECONDS );
356
- $org_plugins_list = $plugins_list_by_authoir->plugins;
357
- }
358
- return $org_plugins_list;
359
- }
360
-
361
-
362
- }
363
-
364
  Woolentor_Extension_Manager::instance();
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
3
+
4
+ class Woolentor_Extension_Manager{
5
+
6
+ // Get Instance
7
+ private static $_instance = null;
8
+ public static function instance(){
9
+ if( is_null( self::$_instance ) ){
10
+ self::$_instance = new self();
11
+ }
12
+ return self::$_instance;
13
+ }
14
+
15
+ function __construct(){
16
+ if( is_admin() ){
17
+ add_action( 'admin_menu', [ $this, 'admin_menu' ], 225 );
18
+ add_action( 'admin_enqueue_scripts', [ $this, 'scripts' ] );
19
+ }
20
+ }
21
+
22
+ // Menu for Extension
23
+ public function admin_menu() {
24
+ add_submenu_page(
25
+ 'woolentor_page',
26
+ esc_html__( 'Extension', 'woolentor' ),
27
+ esc_html__( 'Extension', 'woolentor' ),
28
+ 'manage_options',
29
+ 'woolentor_extension',
30
+ [ $this, 'render_html' ]
31
+ );
32
+ }
33
+
34
+ public function scripts( $hook ) {
35
+ if( 'woolentor_page_woolentor_extension' == $hook ){
36
+
37
+ //JS
38
+ wp_enqueue_script( 'woolentor-install-manager' );
39
+ wp_enqueue_script( 'woolentor-admin-main' );
40
+
41
+ }
42
+ }
43
+
44
+ // Extension Menu HTML
45
+ public function render_html(){
46
+
47
+ if ( ! function_exists('plugins_api') ){ include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); }
48
+
49
+ $htplugins_plugins_list = !empty( $this->get_plugins() ) ? $this->get_plugins() : array();
50
+ $palscode_plugins_list = !empty( $this->get_plugins( 'palscode' ) ) ? $this->get_plugins( 'palscode' ) : array();
51
+
52
+ $org_plugins_list = array_merge( $htplugins_plugins_list, $palscode_plugins_list );
53
+
54
+ $prepare_plugin = array();
55
+ foreach ( $org_plugins_list as $key => $plugin ) {
56
+ $prepare_plugin[$plugin['slug']] = $plugin;
57
+ }
58
+
59
+ $plugins_list = array(
60
+
61
+ 'free' => array(
62
+
63
+ array(
64
+ 'slug' => 'wishsuite',
65
+ 'location' => 'wishsuite.php',
66
+ 'name' => esc_html__( 'WishSuite', 'woolentor' )
67
+ ),
68
+ array(
69
+ 'slug' => 'ever-compare',
70
+ 'location' => 'ever-compare.php',
71
+ 'name' => esc_html__( 'EverCompare', 'woolentor' )
72
+ ),
73
+ array(
74
+ 'slug' => 'whols',
75
+ 'location' => 'whols.php',
76
+ 'name' => esc_html__( 'Whols', 'woolentor' )
77
+ ),
78
+ array(
79
+ 'slug' => 'just-tables',
80
+ 'location' => 'just-tables.php',
81
+ 'name' => esc_html__( 'JustTables', 'woolentor' )
82
+ ),
83
+ array(
84
+ 'slug' => 'wc-multi-currency',
85
+ 'location' => 'wcmilticurrency.php',
86
+ 'name' => esc_html__( 'Multi Currency', 'woolentor' )
87
+ )
88
+
89
+ ),
90
+
91
+ 'pro' => array(
92
+
93
+ array(
94
+ 'slug' => 'just-tables-pro',
95
+ 'location' => 'just-tables-pro.php',
96
+ 'name' => esc_html__( 'JustTables Pro', 'woolentor' ),
97
+ 'link' => 'https://hasthemes.com/wp/justtables/',
98
+ 'author_link'=> 'https://hasthemes.com/',
99
+ 'description'=> esc_html__( 'JustTables is an incredible WordPress plugin that lets you showcase all your WooCommerce products in a sortable and filterable table view. It allows your customers to easily navigate through different attributes of the products and compare them on a single page. This plugin will be of great help if you are looking for an easy solution that increases the chances of landing a sale on your online store.', 'woolentor' ),
100
+ ),
101
+
102
+ array(
103
+ 'slug' => 'whols-pro',
104
+ 'location' => 'whols-pro.php',
105
+ 'name' => esc_html__( 'Whols Pro – WooCommerce Wholesale Prices', 'woolentor' ),
106
+ 'link' => 'https://hasthemes.com/plugins/whols-woocommerce-wholesale-prices/',
107
+ 'author_link'=> 'https://hasthemes.com/',
108
+ 'description'=> esc_html__( 'Whols is an outstanding WordPress plugin for WooCommerce that allows store owners to set wholesale prices for the products of their online stores. This plugin enables you to show special wholesale prices to the wholesaler. Users can easily request to become a wholesale customer by filling out a simple online registration form. Once the registration is complete, the owner of the store will be able to review the request and approve the request either manually or automatically.', 'woolentor' ),
109
+ ),
110
+
111
+ array(
112
+ 'slug' => 'multicurrencypro',
113
+ 'location' => 'multicurrencypro.php',
114
+ 'name' => esc_html__( 'Multi Currency Pro for WooCommerce', 'woolentor' ),
115
+ 'link' => 'https://hasthemes.com/plugins/multi-currency-pro-for-woocommerce/',
116
+ 'author_link'=> 'https://hasthemes.com/',
117
+ 'description'=> esc_html__( 'Multi-Currency Pro for WooCommerce is a prominent currency switcher plugin for WooCommerce. This plugin allows your website or online store visitors to switch to their preferred currency or their country’s currency.', 'woolentor' ),
118
+ ),
119
+
120
+ array(
121
+ 'slug' => 'email-candy-pro',
122
+ 'location' => 'email-candy-pro.php',
123
+ 'name' => esc_html__( 'Email Candy Pro - Email customizer for WooCommerce', 'woolentor' ),
124
+ 'link' => 'https://hasthemes.com/plugins/email-candy-pro/',
125
+ 'author_link'=> 'https://hasthemes.com/',
126
+ 'description'=> esc_html__( 'Email Candy is an outstanding WordPress plugin that allows you to customize the default WooCommerce email templates and give a professional look to your WooCommerce emails. If you are tired of using the boring design of WooCommerce emails and want to create customized emails, then this plugin will come in handy.', 'woolentor' ),
127
+ ),
128
+
129
+ ),
130
+ );
131
+
132
+ echo '<div class="wrap"><h2>'.get_admin_page_title().'</h2>';
133
+
134
+ ?>
135
+ <style>
136
+ .woolentor-admin-tab-pane{
137
+ display: none;
138
+ }
139
+ .woolentor-admin-tab-pane.wlactive{
140
+ display: block;
141
+ }
142
+ .extension-admin-tab-area .filter-links li>a:focus, .extension-admin-tab-area .filter-links li>a:hover {
143
+ color: inherit;
144
+ box-shadow: none;
145
+ }
146
+ .filter-links .wlactive{
147
+ box-shadow: none;
148
+ border-bottom: 4px solid #646970;
149
+ color: #1d2327;
150
+ }
151
+ .downloaded-count{
152
+ display: block;
153
+ margin-top:5px;
154
+ }
155
+ </style>
156
+ <div class="extension-admin-tab-area wp-filter">
157
+ <ul class="woolentor-admin-tabs filter-links">
158
+ <li><a href="#free-extension" class="wlactive"><?php echo esc_html__( 'Free extension', 'woolentor' ); ?></a></li>
159
+ <li><a href="#pro-extension"><?php echo esc_html__( 'Pro extension', 'woolentor' ); ?></a></li>
160
+ </ul>
161
+ </div>
162
+
163
+ <div id="pro-extension" class="woolentor-admin-tab-pane">
164
+ <?php
165
+ foreach ( $plugins_list['pro'] as $key => $plugin ) {
166
+
167
+ $data = array(
168
+ 'slug' => isset( $plugin['slug'] ) ? $plugin['slug'] : '',
169
+ 'location' => isset( $plugin['location'] ) ? $plugin['slug'].'/'.$plugin['location'] : '',
170
+ 'name' => isset( $plugin['name'] ) ? $plugin['name'] : '',
171
+ 'image' => isset( $plugin['icon'] ) ? $plugin['icon'] : WOOLENTOR_ADDONS_PL_URL.'/includes/admin/assets/images/extension/'.$plugin['slug'].'.png',
172
+ );
173
+
174
+ if ( ! is_wp_error( $data ) ) {
175
+
176
+ // Installed but Inactive.
177
+ if ( file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) && is_plugin_inactive( $data['location'] ) ) {
178
+
179
+ $button_classes = 'button activate-now button-primary';
180
+ $button_text = esc_html__( 'Activate', 'woolentor' );
181
+
182
+ // Not Installed.
183
+ } elseif ( ! file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) ) {
184
+
185
+ $button_classes = 'button install-now';
186
+ $button_text = esc_html__( 'Install Now', 'woolentor' );
187
+
188
+ // Active.
189
+ } else {
190
+ $button_classes = 'button disabled';
191
+ $button_text = esc_html__( 'Activated', 'woolentor' );
192
+ }
193
+
194
+ ?>
195
+
196
+ <div class="plugin-card htwptemplata-plugin-<?php echo $data['slug']; ?>">
197
+
198
+ <div class="plugin-card-top">
199
+ <div class="name column-name" style="margin-right: 0;">
200
+ <h3>
201
+ <a href="<?php echo esc_url( $plugin['link'] ); ?>" target="_blank">
202
+ <?php echo $plugin['name']; ?>
203
+ <img src="<?php echo $data['image']; ?>" class="plugin-icon" alt="<?php echo $plugin['name']; ?>">
204
+ </a>
205
+ </h3>
206
+ </div>
207
+ <div class="desc column-description" style="margin-right: 0;">
208
+ <p><?php echo wp_trim_words( $plugin['description'], 23, '....'); ?></p>
209
+ <p class="authors">
210
+ <cite>
211
+ <?php echo esc_html__( 'By ', 'woolentor' ); ?>
212
+ <a href="<?php echo esc_url( $plugin['author_link'] ); ?>"><?php echo esc_html__( 'HasThemes', 'woolentor' ); ?></a>
213
+ </cite>
214
+ </p>
215
+ </div>
216
+ </div>
217
+
218
+ <div class="plugin-card-bottom">
219
+ <div class="column-updated">
220
+ <?php
221
+ if (! file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) ) {
222
+ echo '<a class="button button-primary" href="'.esc_url( $plugin['link'] ).'" target="_blank">'.esc_html__( 'Buy Now', 'woolentor' ).'</a>';
223
+ }else{
224
+ ?>
225
+ <button class="<?php echo $button_classes; ?>" data-pluginopt='<?php echo wp_json_encode( $data ); ?>'><?php echo $button_text; ?></button>
226
+ <?php } ?>
227
+ </div>
228
+ <div class="column-downloaded">
229
+ <a href="<?php echo esc_url( $plugin['link'] ) ?>" target="_blank"><?php echo esc_html__( 'More Details', 'woolentor' ); ?></a>
230
+ </div>
231
+ </div>
232
+
233
+ </div>
234
+
235
+ <?php
236
+
237
+ }
238
+
239
+ }
240
+ ?>
241
+ </div>
242
+
243
+ <?php
244
+
245
+ echo '<div id="free-extension" class="woolentor-admin-tab-pane wlactive">';
246
+
247
+ foreach ( $plugins_list['free'] as $key => $plugin ) {
248
+
249
+ $data = array(
250
+ 'slug' => isset( $plugin['slug'] ) ? $plugin['slug'] : '',
251
+ 'location' => isset( $plugin['location'] ) ? $plugin['slug'].'/'.$plugin['location'] : '',
252
+ 'name' => isset( $plugin['name'] ) ? $plugin['name'] : '',
253
+ );
254
+
255
+ if ( ! is_wp_error( $data ) ) {
256
+
257
+ // Installed but Inactive.
258
+ if ( file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) && is_plugin_inactive( $data['location'] ) ) {
259
+
260
+ $button_classes = 'button activate-now button-primary';
261
+ $button_text = esc_html__( 'Activate', 'woolentor' );
262
+
263
+ // Not Installed.
264
+ } elseif ( ! file_exists( WP_PLUGIN_DIR . '/' . $data['location'] ) ) {
265
+
266
+ $button_classes = 'button install-now';
267
+ $button_text = esc_html__( 'Install Now', 'woolentor' );
268
+
269
+ // Active.
270
+ } else {
271
+ $button_classes = 'button disabled';
272
+ $button_text = esc_html__( 'Activated', 'woolentor' );
273
+ }
274
+
275
+ if( !empty( $data['slug'] ) && isset( $prepare_plugin[$data['slug']] ) ){
276
+
277
+ ?>
278
+
279
+ <div class="plugin-card htwptemplata-plugin-<?php echo $data['slug']; ?>">
280
+
281
+ <div class="plugin-card-top">
282
+ <div class="name column-name" style="margin-right: 0;">
283
+ <h3>
284
+ <a href="<?php echo esc_url( admin_url() ) ?>/plugin-install.php?tab=plugin-information&plugin=<?php echo $data['slug']; ?>&TB_iframe=true&width=772&height=577" class="thickbox open-plugin-details-modal">
285
+ <?php echo $prepare_plugin[$data['slug']]['name']; ?>
286
+ <img src="<?php echo $prepare_plugin[$data['slug']]['icons']['1x']; ?>" class="plugin-icon" alt="<?php echo $prepare_plugin[$data['slug']]['name']; ?>">
287
+ </a>
288
+ </h3>
289
+ </div>
290
+ <div class="desc column-description" style="margin-right: 0;">
291
+ <p><?php echo wp_trim_words( $prepare_plugin[$data['slug']]['description'], 23, '....'); ?></p>
292
+ <p class="authors"> <cite><?php echo esc_html__( 'By ', 'woolentor' ).$prepare_plugin[$data['slug']]['author']; ?></cite></p>
293
+ </div>
294
+ </div>
295
+
296
+ <div class="plugin-card-bottom">
297
+ <div class="column-updated">
298
+ <button class="<?php echo $button_classes; ?>" data-pluginopt='<?php echo wp_json_encode( $data ); ?>'><?php echo $button_text; ?></button>
299
+ </div>
300
+ <div class="column-downloaded">
301
+ <a href="<?php echo esc_url( admin_url() ) ?>/plugin-install.php?tab=plugin-information&plugin=<?php echo $data['slug']; ?>&TB_iframe=true&width=772&height=577" class="thickbox open-plugin-details-modal"><?php echo esc_html__( 'More Details', 'woolentor' ); ?></a>
302
+ <span class="downloaded-count">
303
+ <?php
304
+ printf( __( '%s Active Installations' ), $this->active_install_count( $prepare_plugin[$data['slug']]['active_installs'] ) );
305
+ ?>
306
+ </span>
307
+ </div>
308
+ </div>
309
+
310
+ </div>
311
+
312
+ <?php
313
+ }
314
+
315
+ }
316
+
317
+ }
318
+
319
+ echo '</div>';
320
+
321
+ echo '</div>';
322
+
323
+
324
+ }
325
+
326
+ /**
327
+ * [active_install_count] Manage Active install count
328
+ * @param [int] $active_installs
329
+ * @return [string]
330
+ */
331
+ public function active_install_count( $active_installs ){
332
+
333
+ if ( $active_installs >= 1000000 ) {
334
+ $active_installs_millions = floor( $active_installs / 1000000 );
335
+ $active_installs_text = sprintf(
336
+ /* translators: %s: Number of millions. */
337
+ _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
338
+ number_format_i18n( $active_installs_millions )
339
+ );
340
+ } elseif ( 0 === $active_installs ) {
341
+ $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
342
+ } else {
343
+ $active_installs_text = number_format_i18n( $active_installs ) . '+';
344
+ }
345
+ return $active_installs_text;
346
+
347
+ }
348
+
349
+ /* Get Plugins list from wp.prg */
350
+ public function get_plugins( $username = 'htplugins' ){
351
+ $transient_var = 'woolentor_htplugins_list_'.$username;
352
+ $org_plugins_list = get_transient( $transient_var );
353
+ if ( false === $org_plugins_list ) {
354
+ $plugins_list_by_authoir = plugins_api( 'query_plugins', array( 'author' => $username, 'per_page'=>100 ) );
355
+ set_transient( $transient_var, $plugins_list_by_authoir->plugins, 1 * DAY_IN_SECONDS );
356
+ $org_plugins_list = $plugins_list_by_authoir->plugins;
357
+ }
358
+ return $org_plugins_list;
359
+ }
360
+
361
+
362
+ }
363
+
364
  Woolentor_Extension_Manager::instance();
includes/base.php CHANGED
@@ -237,12 +237,7 @@ final class Base {
237
  });
238
  </script>
239
  <?php
240
- $bannerLink = self::$template_info['notices'][0]['bannerlink'] ? self::$template_info['notices'][0]['bannerlink'] : '#';
241
- $bannerTitle = self::$template_info['notices'][0]['title'] ? self::$template_info['notices'][0]['title'] : esc_html__('Promo Banner','woolentor');
242
- $bannerDescription = self::$template_info['notices'][0]['description'] ? '<p>'.self::$template_info['notices'][0]['description'].'</p>' : '';
243
- $bannerImage = self::$template_info['notices'][0]['bannerimage'] ? '<img src='.self::$template_info['notices'][0]['bannerimage'].' alt='.$bannerTitle.'>' : '#';
244
-
245
- printf( '<div class="woolentor-admin-notice is-dismissible notice notice-warning"><a href="%1$s" target="_blank">%2$s</a>%3$s</div>', $bannerLink, $bannerImage, $bannerDescription );
246
 
247
  }
248
  }
@@ -297,14 +292,6 @@ final class Base {
297
  if( !isset( $_GET['activate-multi'] ) ){
298
  wp_redirect( admin_url("admin.php?page=woolentor_extension") );
299
  }
300
-
301
- // Fetch Template Library Data
302
- $transient = get_transient( \Woolentor_Template_Library::TRANSIENT_KEY );
303
- if ( ! $transient ) {
304
- $info = \Woolentor_Template_Library::request_remote_templates_info( true );
305
- set_transient( \Woolentor_Template_Library::TRANSIENT_KEY, $info, DAY_IN_SECONDS );
306
- }
307
-
308
  }
309
  }
310
 
237
  });
238
  </script>
239
  <?php
240
+ printf( '<div class="woolentor-admin-notice is-dismissible notice notice-warning"><a href="%1$s" target="_blank"><img src="%2$s" alt="%3$s"></a><p>%4$s</p></div>', self::$template_info['notices'][0]['bannerlink'], self::$template_info['notices'][0]['bannerimage'], self::$template_info['notices'][0]['title'], self::$template_info['notices'][0]['description'] );
 
 
 
 
 
241
 
242
  }
243
  }
292
  if( !isset( $_GET['activate-multi'] ) ){
293
  wp_redirect( admin_url("admin.php?page=woolentor_extension") );
294
  }
 
 
 
 
 
 
 
 
295
  }
296
  }
297
 
languages/woolentor.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WooLentor - WooCommerce Elementor Addons + Builder\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2021-08-07 10:54+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -238,7 +238,6 @@ msgid "99Fy Pro - included in WooLentor Pro"
238
  msgstr ""
239
 
240
  #: includes/addons/product_tabs.php:1475 includes/addons/product_tabs.php:1601
241
- #: woolentor-blocks/src/blocks/product-tab/index.php:373
242
  msgid ":"
243
  msgstr ""
244
 
@@ -339,7 +338,7 @@ msgstr ""
339
  msgid "Additional information"
340
  msgstr ""
341
 
342
- #: includes/addons/wl_faq.php:179 includes/addons/wl_product_filter.php:83
343
  #: includes/addons/wl_product_horizontal_filter.php:186
344
  msgid "Additional Options"
345
  msgstr ""
@@ -349,6 +348,10 @@ msgstr ""
349
  msgid "Address Optional"
350
  msgstr ""
351
 
 
 
 
 
352
  #: includes/addons/wb_product_suggest_price.php:87
353
  #: includes/addons/wb_product_suggest_price.php:88
354
  msgid "admin@domain.com"
@@ -362,7 +365,7 @@ msgstr ""
362
  msgid "Advance Product Image <span>( Pro )</span>"
363
  msgstr ""
364
 
365
- #: includes/addons/wl_category_grid.php:571
366
  msgid "After Border Color"
367
  msgstr ""
368
 
@@ -370,14 +373,6 @@ msgstr ""
370
  msgid "After Title"
371
  msgstr ""
372
 
373
- #: includes/admin/include/admin-setting.php:1262
374
- msgid "AJAX Add to Cart on Single Product page"
375
- msgstr ""
376
-
377
- #: includes/admin/include/admin-setting.php:1253
378
- msgid "AJAX Search Widget"
379
- msgstr ""
380
-
381
  #: includes/admin/include/admin-setting.php:1252
382
  msgid "Ajax Search Widget"
383
  msgstr ""
@@ -444,7 +439,7 @@ msgid "Archive Product"
444
  msgstr ""
445
 
446
  #: includes/addons/wb_customer_review.php:274
447
- #: includes/addons/wl_category_grid.php:437
448
  #: includes/addons/wl_onepage_slider.php:156
449
  #: includes/addons/wl_product_horizontal_filter.php:291
450
  #: includes/addons/wl_store_features.php:127
@@ -480,7 +475,7 @@ msgid "Ascending"
480
  msgstr ""
481
 
482
  #: includes/addons/product_tabs.php:503
483
- #: includes/addons/wl_category_grid.php:329
484
  #: includes/addons/wl_testimonial.php:363
485
  msgid "Autoplay animation speed"
486
  msgstr ""
@@ -491,7 +486,7 @@ msgstr ""
491
  msgid "Autoplay speed"
492
  msgstr ""
493
 
494
- #: includes/addons/wl_category_grid.php:1013
495
  msgid "Awaiting category image"
496
  msgstr ""
497
 
@@ -525,8 +520,8 @@ msgstr ""
525
  #: includes/addons/wb_product_suggest_price.php:335
526
  #: includes/addons/wb_product_suggest_price.php:433
527
  #: includes/addons/wb_product_suggest_price.php:510
528
- #: includes/addons/wl_category_grid.php:467
529
- #: includes/addons/wl_category_grid.php:849 includes/addons/wl_faq.php:304
530
  #: includes/addons/wl_faq.php:382 includes/addons/wl_faq.php:467
531
  #: includes/addons/wl_faq.php:645 includes/addons/wl_faq.php:780
532
  #: includes/addons/wl_onepage_slider.php:192
@@ -572,9 +567,9 @@ msgstr ""
572
  #: includes/addons/wb_product_suggest_price.php:661
573
  #: includes/addons/wb_product_suggest_price.php:772
574
  #: includes/addons/wb_product_suggest_price.php:804
575
- #: includes/addons/wl_category_grid.php:715
576
- #: includes/addons/wl_category_grid.php:789
577
- #: includes/addons/wl_category_grid.php:889
578
  #: includes/addons/wl_testimonial.php:851
579
  #: includes/addons/wl_testimonial.php:925
580
  #: includes/addons/wl_testimonial.php:1025
@@ -624,7 +619,7 @@ msgstr ""
624
  msgid "Banner Title"
625
  msgstr ""
626
 
627
- #: includes/addons/wl_category_grid.php:629
628
  msgid "Before Border Color"
629
  msgstr ""
630
 
@@ -669,11 +664,11 @@ msgstr ""
669
  #: includes/addons/wb_wishsuite_table.php:95
670
  #: includes/addons/wb_wishsuite_table.php:123 includes/addons/wl_brand.php:246
671
  #: includes/addons/wl_brand.php:327 includes/addons/wl_category.php:268
672
- #: includes/addons/wl_category_grid.php:514
673
- #: includes/addons/wl_category_grid.php:727
674
- #: includes/addons/wl_category_grid.php:801
675
- #: includes/addons/wl_category_grid.php:861
676
- #: includes/addons/wl_category_grid.php:902 includes/addons/wl_faq.php:284
677
  #: includes/addons/wl_faq.php:405 includes/addons/wl_faq.php:489
678
  #: includes/addons/wl_faq.php:674 includes/addons/wl_faq.php:809
679
  #: includes/addons/wl_onepage_slider.php:528
@@ -749,11 +744,11 @@ msgstr ""
749
  #: includes/addons/wb_product_suggest_price.php:618
750
  #: includes/addons/wb_product_suggest_price.php:761
751
  #: includes/addons/wl_brand.php:254 includes/addons/wl_brand.php:335
752
- #: includes/addons/wl_category_grid.php:522
753
- #: includes/addons/wl_category_grid.php:735
754
- #: includes/addons/wl_category_grid.php:809
755
- #: includes/addons/wl_category_grid.php:869
756
- #: includes/addons/wl_category_grid.php:910 includes/addons/wl_faq.php:292
757
  #: includes/addons/wl_faq.php:413 includes/addons/wl_faq.php:497
758
  #: includes/addons/wl_faq.php:685 includes/addons/wl_faq.php:820
759
  #: includes/addons/wl_onepage_slider.php:536
@@ -788,12 +783,12 @@ msgstr ""
788
  msgid "Bottom Space"
789
  msgstr ""
790
 
791
- #: includes/addons/wl_category_grid.php:487
792
  msgid "Box Color"
793
  msgstr ""
794
 
795
  #: includes/addons/wb_archive_product.php:225
796
- #: includes/addons/wl_category_grid.php:458 includes/addons/wl_faq.php:314
797
  #: includes/addons/wl_faq.php:426 includes/addons/wl_faq.php:523
798
  #: includes/addons/wl_faq.php:701 includes/addons/wl_faq.php:836
799
  #: includes/addons/wl_product_horizontal_filter.php:355
@@ -814,7 +809,7 @@ msgid "Brand Link"
814
  msgstr ""
815
 
816
  #: includes/addons/wl_brand.php:47 includes/admin/include/admin-setting.php:372
817
- #: woolentor-blocks/src/blocks/brand-logo/index.php:67
818
  msgid "Brand Logo"
819
  msgstr ""
820
 
@@ -864,7 +859,6 @@ msgid "Buy"
864
  msgstr ""
865
 
866
  #: classes/class.assest_management.php:327
867
- #: includes/admin/include/admin-setting.php:1762
868
  #: includes/admin/include/class.extension-manager.php:222
869
  #: includes/admin/include/template-library.php:272
870
  #: includes/admin/include/template-library.php:324
@@ -1145,7 +1139,7 @@ msgid "Collapse Background"
1145
  msgstr ""
1146
 
1147
  #: includes/addons/product_accordion.php:421
1148
- msgid "Collapse Icon Color"
1149
  msgstr ""
1150
 
1151
  #: includes/addons/add_banner.php:155 includes/addons/add_banner.php:197
@@ -1185,10 +1179,10 @@ msgstr ""
1185
  #: includes/addons/wb_product_suggest_price.php:412
1186
  #: includes/addons/wb_product_suggest_price.php:498
1187
  #: includes/addons/wb_product_upsell.php:112 includes/addons/wb_whols.php:52
1188
- #: includes/addons/wl_category.php:315 includes/addons/wl_category_grid.php:547
1189
- #: includes/addons/wl_category_grid.php:618
1190
- #: includes/addons/wl_category_grid.php:704
1191
- #: includes/addons/wl_category_grid.php:838 includes/addons/wl_faq.php:435
1192
  #: includes/addons/wl_faq.php:476 includes/addons/wl_faq.php:548
1193
  #: includes/addons/wl_faq.php:628 includes/addons/wl_faq.php:657
1194
  #: includes/addons/wl_faq.php:763 includes/addons/wl_faq.php:792
@@ -1309,7 +1303,7 @@ msgstr ""
1309
  msgid "Content Settings"
1310
  msgstr ""
1311
 
1312
- #: includes/addons/wl_category_grid.php:610
1313
  msgid "Count"
1314
  msgstr ""
1315
 
@@ -1375,7 +1369,7 @@ msgstr ""
1375
 
1376
  #: includes/admin/include/admin-setting.php:1874
1377
  msgid ""
1378
- "Daniel is a premium woocommerce theme included in WooLentor pro. It will "
1379
  "save money for the WooLentor pro users."
1380
  msgstr ""
1381
 
@@ -1393,28 +1387,6 @@ msgstr ""
1393
  msgid "Default"
1394
  msgstr ""
1395
 
1396
- #: includes/admin/include/admin-setting.php:1312
1397
- #: includes/admin/include/admin-setting.php:1326
1398
- #: includes/admin/include/admin-setting.php:1333
1399
- #: includes/admin/include/admin-setting.php:1347
1400
- #: includes/admin/include/admin-setting.php:1354
1401
- #: includes/admin/include/admin-setting.php:1368
1402
- #: includes/admin/include/admin-setting.php:1375
1403
- #: includes/admin/include/admin-setting.php:1389
1404
- #: includes/admin/include/admin-setting.php:1403
1405
- #: includes/admin/include/admin-setting.php:1410
1406
- #: includes/admin/include/admin-setting.php:1424
1407
- #: includes/admin/include/admin-setting.php:1438
1408
- #: includes/admin/include/admin-setting.php:1445
1409
- #: includes/admin/include/admin-setting.php:1452
1410
- #: includes/admin/include/admin-setting.php:1466
1411
- #: includes/admin/include/admin-setting.php:1473
1412
- #: includes/admin/include/admin-setting.php:1480
1413
- #: includes/admin/include/admin-setting.php:1487
1414
- #: includes/admin/include/admin-setting.php:1501
1415
- msgid "Default Color for universal layout."
1416
- msgstr ""
1417
-
1418
  #: includes/helper-function.php:508
1419
  msgid "Default sorting"
1420
  msgstr ""
@@ -1423,6 +1395,10 @@ msgstr ""
1423
  msgid "Default title"
1424
  msgstr ""
1425
 
 
 
 
 
1426
  #: includes/addons/wb_archive_product.php:149
1427
  #: includes/addons/wb_product_related.php:96
1428
  #: includes/addons/wb_product_upsell.php:80
@@ -1457,10 +1433,6 @@ msgstr ""
1457
  msgid "Designation"
1458
  msgstr ""
1459
 
1460
- #: includes/addons/wl_testimonial.php:89 includes/addons/wl_testimonial.php:142
1461
- msgid "Designer"
1462
- msgstr ""
1463
-
1464
  #: includes/addons/wb_customer_review.php:154
1465
  #: includes/addons/wl_testimonial.php:148
1466
  msgid "Developer"
@@ -1907,7 +1879,7 @@ msgstr ""
1907
 
1908
  #: includes/admin/include/admin-setting.php:1866
1909
  msgid ""
1910
- "Holmes is a premium woocommerce theme included in WooLentor pro. It will "
1911
  "save money for the WooLentor pro users."
1912
  msgstr ""
1913
 
@@ -1931,7 +1903,7 @@ msgstr ""
1931
  #: includes/addons/wb_product_suggest_price.php:491
1932
  #: includes/addons/wb_product_suggest_price.php:643
1933
  #: includes/addons/wb_product_suggest_price.php:786
1934
- #: includes/addons/wl_category_grid.php:823
1935
  #: includes/addons/wl_product_filter.php:340
1936
  #: includes/addons/wl_product_filter.php:461
1937
  #: includes/addons/wl_product_filter.php:698
@@ -1961,7 +1933,7 @@ msgid "Hover Border Type"
1961
  msgstr ""
1962
 
1963
  #: includes/addons/add_banner.php:251 includes/addons/wl_category.php:327
1964
- #: includes/addons/wl_category_grid.php:559
1965
  #: includes/addons/wl_onepage_slider.php:322
1966
  #: includes/addons/wl_onepage_slider.php:400
1967
  #: includes/addons/wl_product_horizontal_filter.php:707
@@ -1991,7 +1963,7 @@ msgstr ""
1991
 
1992
  #: includes/admin/include/admin-setting.php:1882
1993
  msgid ""
1994
- "Hurst is a premium woocommerce theme included in WooLentor pro. It will save "
1995
  "money for the WooLentor pro users."
1996
  msgstr ""
1997
 
@@ -2055,7 +2027,7 @@ msgstr ""
2055
  #: includes/addons/wb_customer_review.php:357
2056
  #: includes/addons/wb_image_marker.php:39
2057
  #: includes/addons/wb_product_image.php:40
2058
- #: includes/addons/wl_category_grid.php:479
2059
  #: includes/addons/wl_onepage_slider.php:49
2060
  #: includes/addons/wl_store_features.php:68
2061
  #: includes/addons/wl_store_features.php:93
@@ -2121,7 +2093,6 @@ msgstr ""
2121
  msgid "Install Elementor"
2122
  msgstr ""
2123
 
2124
- #: includes/admin/include/admin-setting.php:1744
2125
  #: includes/admin/include/class.extension-manager.php:186
2126
  #: includes/admin/include/class.extension-manager.php:267
2127
  #: includes/admin/include/template-library.php:259
@@ -2194,15 +2165,15 @@ msgctxt "label"
2194
  msgid "Search for:"
2195
  msgstr ""
2196
 
2197
- #: includes/addons/wl_product_filter.php:599
2198
- msgid "Label Color"
2199
- msgstr ""
2200
-
2201
  #: includes/admin/include/admin-setting.php:932
2202
  #: includes/admin/include/admin-setting.php:935
2203
  msgid "Last name"
2204
  msgstr ""
2205
 
 
 
 
 
2206
  #: includes/addons/wl_store_features.php:44
2207
  msgid "Layout"
2208
  msgstr ""
@@ -2397,8 +2368,8 @@ msgstr ""
2397
  #: includes/addons/wb_product_suggest_price.php:740
2398
  #: includes/addons/wb_product_title.php:88
2399
  #: includes/addons/wb_product_upsell.php:138 includes/addons/wl_brand.php:278
2400
- #: includes/addons/wl_category_grid.php:500
2401
- #: includes/addons/wl_category_grid.php:594
2402
  #: includes/addons/wl_onepage_slider.php:236
2403
  #: includes/addons/wl_onepage_slider.php:278
2404
  #: includes/addons/wl_product_filter.php:191
@@ -2487,13 +2458,13 @@ msgid "Mixed order Products"
2487
  msgstr ""
2488
 
2489
  #: includes/addons/product_tabs.php:570
2490
- #: includes/addons/wl_category_grid.php:393
2491
  #: includes/addons/wl_testimonial.php:427
2492
  msgid "Mobile Phone"
2493
  msgstr ""
2494
 
2495
  #: includes/addons/product_tabs.php:603
2496
- #: includes/addons/wl_category_grid.php:424
2497
  #: includes/addons/wl_testimonial.php:458
2498
  msgid "Mobile Resolution"
2499
  msgstr ""
@@ -2596,20 +2567,20 @@ msgid "Name Field Placeholder"
2596
  msgstr ""
2597
 
2598
  #: includes/addons/product_tabs.php:753
2599
- #: includes/addons/wl_category_grid.php:830
2600
  #: includes/addons/wl_testimonial.php:966
2601
  msgid "Navigation"
2602
  msgstr ""
2603
 
2604
  #: includes/addons/product_tabs.php:638
2605
- #: includes/addons/wl_category_grid.php:673
2606
  #: includes/addons/wl_testimonial.php:809
2607
  msgid "Navigation Arrow"
2608
  msgstr ""
2609
 
2610
  #: includes/addons/product_tabs.php:702 includes/addons/product_tabs.php:806
2611
- #: includes/addons/wl_category_grid.php:758
2612
- #: includes/addons/wl_category_grid.php:881
2613
  #: includes/addons/wl_testimonial.php:894
2614
  #: includes/addons/wl_testimonial.php:1017
2615
  msgid "Navigation Dots"
@@ -2678,7 +2649,7 @@ msgstr ""
2678
  #: includes/addons/wb_product_suggest_price.php:405
2679
  #: includes/addons/wb_product_suggest_price.php:558
2680
  #: includes/addons/wb_product_suggest_price.php:701
2681
- #: includes/addons/wl_category_grid.php:666 includes/addons/wl_faq.php:374
2682
  #: includes/addons/wl_faq.php:621 includes/addons/wl_product_filter.php:289
2683
  #: includes/addons/wl_product_filter.php:396
2684
  #: includes/addons/wl_product_filter.php:633
@@ -2865,8 +2836,8 @@ msgstr ""
2865
  #: includes/addons/wb_product_suggest_price.php:585
2866
  #: includes/addons/wb_product_suggest_price.php:728
2867
  #: includes/addons/wb_whols.php:72 includes/addons/wl_brand.php:266
2868
- #: includes/addons/wl_category_grid.php:445
2869
- #: includes/addons/wl_category_grid.php:746 includes/addons/wl_faq.php:322
2870
  #: includes/addons/wl_faq.php:391 includes/addons/wl_faq.php:509
2871
  #: includes/addons/wl_faq.php:594 includes/addons/wl_onepage_slider.php:299
2872
  #: includes/addons/wl_product_filter.php:179
@@ -2977,8 +2948,8 @@ msgid "Popularity"
2977
  msgstr ""
2978
 
2979
  #: includes/addons/wb_archive_product.php:891
2980
- #: includes/addons/wl_category_grid.php:681
2981
- #: includes/addons/wl_category_grid.php:766
2982
  #: includes/addons/wl_testimonial.php:817
2983
  #: includes/addons/wl_testimonial.php:902
2984
  #: includes/admin/include/admin-setting.php:1066
@@ -3036,7 +3007,7 @@ msgid "Price color"
3036
  msgstr ""
3037
 
3038
  #: includes/addons/wl_product_filter.php:590
3039
- msgid "Price Label"
3040
  msgstr ""
3041
 
3042
  #: includes/addons/wl_product_horizontal_filter.php:165
@@ -3321,7 +3292,7 @@ msgid "Purchase our"
3321
  msgstr ""
3322
 
3323
  #: includes/addons/wl_brand.php:222 includes/addons/wl_brand.php:365
3324
- msgid "Purchase our premium version to unlock these pro features!"
3325
  msgstr ""
3326
 
3327
  #: includes/addons/wb_product_qr_code.php:39
@@ -3616,22 +3587,6 @@ msgstr ""
3616
  msgid "Send To Mail"
3617
  msgstr ""
3618
 
3619
- #: includes/admin/include/admin-setting.php:1204
3620
- msgid "Set the background color of the notification. <span>( Pro )</span>"
3621
- msgstr ""
3622
-
3623
- #: includes/admin/include/admin-setting.php:1220
3624
- msgid "Set the content color of the notification. <span>( Pro )</span>"
3625
- msgstr ""
3626
-
3627
- #: includes/admin/include/admin-setting.php:1228
3628
- msgid "Set the cross icon color of the notification. <span>( Pro )</span>"
3629
- msgstr ""
3630
-
3631
- #: includes/admin/include/admin-setting.php:1212
3632
- msgid "Set the heading color of the notification. <span>( Pro )</span>"
3633
- msgstr ""
3634
-
3635
  #: includes/admin/include/admin-setting.php:1079
3636
  msgid "Set the image position of the notification. <span>( Pro )</span>"
3637
  msgstr ""
@@ -3648,10 +3603,6 @@ msgstr ""
3648
  msgid "Set the number of notifications to display."
3649
  msgstr ""
3650
 
3651
- #: includes/admin/include/admin-setting.php:1240
3652
- msgid "Set the number of products to load in Elementor Addons"
3653
- msgstr ""
3654
-
3655
  #: includes/admin/include/admin-setting.php:1288
3656
  msgid "Set the position of the Mini Cart."
3657
  msgstr ""
@@ -3800,7 +3751,7 @@ msgid "Slider autoplay"
3800
  msgstr ""
3801
 
3802
  #: includes/addons/product_tabs.php:616 includes/addons/wl_brand.php:350
3803
- #: includes/addons/wl_brand.php:362 includes/addons/wl_category_grid.php:652
3804
  #: includes/addons/wl_testimonial.php:788
3805
  msgid "Slider Controller Style"
3806
  msgstr ""
@@ -3817,9 +3768,9 @@ msgstr ""
3817
 
3818
  #: includes/addons/product_tabs.php:515 includes/addons/product_tabs.php:548
3819
  #: includes/addons/product_tabs.php:591
3820
- #: includes/addons/wl_category_grid.php:341
3821
- #: includes/addons/wl_category_grid.php:372
3822
- #: includes/addons/wl_category_grid.php:413
3823
  #: includes/addons/wl_testimonial.php:375
3824
  #: includes/addons/wl_testimonial.php:406
3825
  #: includes/addons/wl_testimonial.php:447
@@ -3829,21 +3780,14 @@ msgstr ""
3829
  #: includes/addons/product_tabs.php:423 includes/addons/product_tabs.php:536
3830
  #: includes/addons/product_tabs.php:579
3831
  #: includes/addons/wl_category_grid.php:263
3832
- #: includes/addons/wl_category_grid.php:361
3833
- #: includes/addons/wl_category_grid.php:402
3834
  #: includes/addons/wl_testimonial.php:296
3835
  #: includes/addons/wl_testimonial.php:395
3836
  #: includes/addons/wl_testimonial.php:436
3837
  msgid "Slider Items"
3838
  msgstr ""
3839
 
3840
- #: includes/addons/wl_brand.php:61
3841
- #, php-format
3842
- msgid ""
3843
- "Slider layouts are available in the pro version. <a href=\"%s\" "
3844
- "target=\"_blank\">Get Pro</a>"
3845
- msgstr ""
3846
-
3847
  #: includes/addons/wl_category_grid.php:162
3848
  #: includes/addons/wl_testimonial.php:165
3849
  msgid "Slider On"
@@ -3930,12 +3874,8 @@ msgstr ""
3930
  msgid "State"
3931
  msgstr ""
3932
 
3933
- #: includes/admin/include/admin-setting.php:1271
3934
- msgid "Sticky Add to Cart on Single Product page"
3935
- msgstr ""
3936
-
3937
  #: includes/admin/include/admin-setting.php:804
3938
- msgid "Stock Progress Bar <span>( Pro )</span>"
3939
  msgstr ""
3940
 
3941
  #: includes/addons/wl_store_features.php:37
@@ -4085,13 +4025,13 @@ msgid "Table Heading"
4085
  msgstr ""
4086
 
4087
  #: includes/addons/product_tabs.php:527
4088
- #: includes/addons/wl_category_grid.php:352
4089
  #: includes/addons/wl_testimonial.php:386
4090
  msgid "Tablet"
4091
  msgstr ""
4092
 
4093
  #: includes/addons/product_tabs.php:560
4094
- #: includes/addons/wl_category_grid.php:383
4095
  #: includes/addons/wl_testimonial.php:417
4096
  msgid "Tablet Resolution"
4097
  msgstr ""
@@ -4179,13 +4119,13 @@ msgid "The Basics Of Western Astrology Explained"
4179
  msgstr ""
4180
 
4181
  #: includes/addons/product_tabs.php:604
4182
- #: includes/addons/wl_category_grid.php:425
4183
  #: includes/addons/wl_testimonial.php:459
4184
  msgid "The resolution to mobile."
4185
  msgstr ""
4186
 
4187
  #: includes/addons/product_tabs.php:561
4188
- #: includes/addons/wl_category_grid.php:384
4189
  #: includes/addons/wl_testimonial.php:418
4190
  msgid "The resolution to the tablet."
4191
  msgstr ""
@@ -4239,7 +4179,7 @@ msgstr ""
4239
  #: includes/addons/wb_image_marker.php:300
4240
  #: includes/addons/wb_product_related.php:78
4241
  #: includes/addons/wb_product_upsell.php:62 includes/addons/wl_category.php:307
4242
- #: includes/addons/wl_category_grid.php:539 includes/addons/wl_faq.php:64
4243
  #: includes/addons/wl_onepage_slider.php:69
4244
  #: includes/addons/wl_onepage_slider.php:207
4245
  #: includes/addons/wl_product_filter.php:90
@@ -4385,8 +4325,8 @@ msgstr ""
4385
  #: includes/addons/wb_product_upsell.php:127
4386
  #: includes/addons/wb_wc_multicurrency.php:86 includes/addons/wb_whols.php:64
4387
  #: includes/addons/wb_wishsuite_table.php:104
4388
- #: includes/addons/wl_category.php:340 includes/addons/wl_category_grid.php:586
4389
- #: includes/addons/wl_category_grid.php:641 includes/addons/wl_faq.php:448
4390
  #: includes/addons/wl_faq.php:561 includes/addons/wl_onepage_slider.php:228
4391
  #: includes/addons/wl_onepage_slider.php:270
4392
  #: includes/addons/wl_onepage_slider.php:334
@@ -4405,10 +4345,6 @@ msgstr ""
4405
  msgid "Universal layout"
4406
  msgstr ""
4407
 
4408
- #: includes/admin/include/admin-setting.php:1682
4409
- msgid "Universal layout style options"
4410
- msgstr ""
4411
-
4412
  #: includes/admin/include/admin-setting.php:260
4413
  msgid "Universal Product"
4414
  msgstr ""
@@ -4702,13 +4638,6 @@ msgstr ""
4702
  msgid "WooLentor Free VS WooLentor Pro."
4703
  msgstr ""
4704
 
4705
- #: includes/admin/include/admin-setting.php:1640
4706
- msgid ""
4707
- "WooLentor is one of the most popular WooCommerce Elementor Addons on "
4708
- "WordPress.org. It has been downloaded more than 528,763 times and 50,000 "
4709
- "stores are using WooLentor plugin. Why not you?"
4710
- msgstr ""
4711
-
4712
  #: includes/admin/include/admin-setting.php:1747
4713
  msgid "WooLentor Pro"
4714
  msgstr ""
@@ -4761,10 +4690,6 @@ msgstr ""
4761
  msgid "You can enable duplicator for individual post."
4762
  msgstr ""
4763
 
4764
- #: includes/admin/include/admin-setting.php:134
4765
- msgid "You can handle the product limit for the Shop page"
4766
- msgstr ""
4767
-
4768
  #: includes/admin/include/admin-setting.php:167
4769
  msgid "You can select a custom template for the Product Archive page layout"
4770
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: WooLentor - WooCommerce Elementor Addons + Builder\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2021-07-27 04:57+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
238
  msgstr ""
239
 
240
  #: includes/addons/product_tabs.php:1475 includes/addons/product_tabs.php:1601
 
241
  msgid ":"
242
  msgstr ""
243
 
338
  msgid "Additional information"
339
  msgstr ""
340
 
341
+ #: includes/addons/wl_product_filter.php:83
342
  #: includes/addons/wl_product_horizontal_filter.php:186
343
  msgid "Additional Options"
344
  msgstr ""
348
  msgid "Address Optional"
349
  msgstr ""
350
 
351
+ #: includes/addons/wl_faq.php:179
352
+ msgid "Aditional Options"
353
+ msgstr ""
354
+
355
  #: includes/addons/wb_product_suggest_price.php:87
356
  #: includes/addons/wb_product_suggest_price.php:88
357
  msgid "admin@domain.com"
365
  msgid "Advance Product Image <span>( Pro )</span>"
366
  msgstr ""
367
 
368
+ #: includes/addons/wl_category_grid.php:572
369
  msgid "After Border Color"
370
  msgstr ""
371
 
373
  msgid "After Title"
374
  msgstr ""
375
 
 
 
 
 
 
 
 
 
376
  #: includes/admin/include/admin-setting.php:1252
377
  msgid "Ajax Search Widget"
378
  msgstr ""
439
  msgstr ""
440
 
441
  #: includes/addons/wb_customer_review.php:274
442
+ #: includes/addons/wl_category_grid.php:438
443
  #: includes/addons/wl_onepage_slider.php:156
444
  #: includes/addons/wl_product_horizontal_filter.php:291
445
  #: includes/addons/wl_store_features.php:127
475
  msgstr ""
476
 
477
  #: includes/addons/product_tabs.php:503
478
+ #: includes/addons/wl_category_grid.php:330
479
  #: includes/addons/wl_testimonial.php:363
480
  msgid "Autoplay animation speed"
481
  msgstr ""
486
  msgid "Autoplay speed"
487
  msgstr ""
488
 
489
+ #: includes/addons/wl_category_grid.php:1014
490
  msgid "Awaiting category image"
491
  msgstr ""
492
 
520
  #: includes/addons/wb_product_suggest_price.php:335
521
  #: includes/addons/wb_product_suggest_price.php:433
522
  #: includes/addons/wb_product_suggest_price.php:510
523
+ #: includes/addons/wl_category_grid.php:468
524
+ #: includes/addons/wl_category_grid.php:850 includes/addons/wl_faq.php:304
525
  #: includes/addons/wl_faq.php:382 includes/addons/wl_faq.php:467
526
  #: includes/addons/wl_faq.php:645 includes/addons/wl_faq.php:780
527
  #: includes/addons/wl_onepage_slider.php:192
567
  #: includes/addons/wb_product_suggest_price.php:661
568
  #: includes/addons/wb_product_suggest_price.php:772
569
  #: includes/addons/wb_product_suggest_price.php:804
570
+ #: includes/addons/wl_category_grid.php:716
571
+ #: includes/addons/wl_category_grid.php:790
572
+ #: includes/addons/wl_category_grid.php:890
573
  #: includes/addons/wl_testimonial.php:851
574
  #: includes/addons/wl_testimonial.php:925
575
  #: includes/addons/wl_testimonial.php:1025
619
  msgid "Banner Title"
620
  msgstr ""
621
 
622
+ #: includes/addons/wl_category_grid.php:630
623
  msgid "Before Border Color"
624
  msgstr ""
625
 
664
  #: includes/addons/wb_wishsuite_table.php:95
665
  #: includes/addons/wb_wishsuite_table.php:123 includes/addons/wl_brand.php:246
666
  #: includes/addons/wl_brand.php:327 includes/addons/wl_category.php:268
667
+ #: includes/addons/wl_category_grid.php:515
668
+ #: includes/addons/wl_category_grid.php:728
669
+ #: includes/addons/wl_category_grid.php:802
670
+ #: includes/addons/wl_category_grid.php:862
671
+ #: includes/addons/wl_category_grid.php:903 includes/addons/wl_faq.php:284
672
  #: includes/addons/wl_faq.php:405 includes/addons/wl_faq.php:489
673
  #: includes/addons/wl_faq.php:674 includes/addons/wl_faq.php:809
674
  #: includes/addons/wl_onepage_slider.php:528
744
  #: includes/addons/wb_product_suggest_price.php:618
745
  #: includes/addons/wb_product_suggest_price.php:761
746
  #: includes/addons/wl_brand.php:254 includes/addons/wl_brand.php:335
747
+ #: includes/addons/wl_category_grid.php:523
748
+ #: includes/addons/wl_category_grid.php:736
749
+ #: includes/addons/wl_category_grid.php:810
750
+ #: includes/addons/wl_category_grid.php:870
751
+ #: includes/addons/wl_category_grid.php:911 includes/addons/wl_faq.php:292
752
  #: includes/addons/wl_faq.php:413 includes/addons/wl_faq.php:497
753
  #: includes/addons/wl_faq.php:685 includes/addons/wl_faq.php:820
754
  #: includes/addons/wl_onepage_slider.php:536
783
  msgid "Bottom Space"
784
  msgstr ""
785
 
786
+ #: includes/addons/wl_category_grid.php:488
787
  msgid "Box Color"
788
  msgstr ""
789
 
790
  #: includes/addons/wb_archive_product.php:225
791
+ #: includes/addons/wl_category_grid.php:459 includes/addons/wl_faq.php:314
792
  #: includes/addons/wl_faq.php:426 includes/addons/wl_faq.php:523
793
  #: includes/addons/wl_faq.php:701 includes/addons/wl_faq.php:836
794
  #: includes/addons/wl_product_horizontal_filter.php:355
809
  msgstr ""
810
 
811
  #: includes/addons/wl_brand.php:47 includes/admin/include/admin-setting.php:372
812
+ #: woolentor-blocks/src/blocks/brand-logo/index.php:65
813
  msgid "Brand Logo"
814
  msgstr ""
815
 
859
  msgstr ""
860
 
861
  #: classes/class.assest_management.php:327
 
862
  #: includes/admin/include/class.extension-manager.php:222
863
  #: includes/admin/include/template-library.php:272
864
  #: includes/admin/include/template-library.php:324
1139
  msgstr ""
1140
 
1141
  #: includes/addons/product_accordion.php:421
1142
+ msgid "Collapse Iocn Color"
1143
  msgstr ""
1144
 
1145
  #: includes/addons/add_banner.php:155 includes/addons/add_banner.php:197
1179
  #: includes/addons/wb_product_suggest_price.php:412
1180
  #: includes/addons/wb_product_suggest_price.php:498
1181
  #: includes/addons/wb_product_upsell.php:112 includes/addons/wb_whols.php:52
1182
+ #: includes/addons/wl_category.php:315 includes/addons/wl_category_grid.php:548
1183
+ #: includes/addons/wl_category_grid.php:619
1184
+ #: includes/addons/wl_category_grid.php:705
1185
+ #: includes/addons/wl_category_grid.php:839 includes/addons/wl_faq.php:435
1186
  #: includes/addons/wl_faq.php:476 includes/addons/wl_faq.php:548
1187
  #: includes/addons/wl_faq.php:628 includes/addons/wl_faq.php:657
1188
  #: includes/addons/wl_faq.php:763 includes/addons/wl_faq.php:792
1303
  msgid "Content Settings"
1304
  msgstr ""
1305
 
1306
+ #: includes/addons/wl_category_grid.php:611
1307
  msgid "Count"
1308
  msgstr ""
1309
 
1369
 
1370
  #: includes/admin/include/admin-setting.php:1874
1371
  msgid ""
1372
+ "Daniel is a preimum woocommerce theme included in WooLentor pro. It will "
1373
  "save money for the WooLentor pro users."
1374
  msgstr ""
1375
 
1387
  msgid "Default"
1388
  msgstr ""
1389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1390
  #: includes/helper-function.php:508
1391
  msgid "Default sorting"
1392
  msgstr ""
1395
  msgid "Default title"
1396
  msgstr ""
1397
 
1398
+ #: includes/addons/wl_testimonial.php:89 includes/addons/wl_testimonial.php:142
1399
+ msgid "Deginer"
1400
+ msgstr ""
1401
+
1402
  #: includes/addons/wb_archive_product.php:149
1403
  #: includes/addons/wb_product_related.php:96
1404
  #: includes/addons/wb_product_upsell.php:80
1433
  msgid "Designation"
1434
  msgstr ""
1435
 
 
 
 
 
1436
  #: includes/addons/wb_customer_review.php:154
1437
  #: includes/addons/wl_testimonial.php:148
1438
  msgid "Developer"
1879
 
1880
  #: includes/admin/include/admin-setting.php:1866
1881
  msgid ""
1882
+ "Holmes is a preimum woocommerce theme included in WooLentor pro. It will "
1883
  "save money for the WooLentor pro users."
1884
  msgstr ""
1885
 
1903
  #: includes/addons/wb_product_suggest_price.php:491
1904
  #: includes/addons/wb_product_suggest_price.php:643
1905
  #: includes/addons/wb_product_suggest_price.php:786
1906
+ #: includes/addons/wl_category_grid.php:824
1907
  #: includes/addons/wl_product_filter.php:340
1908
  #: includes/addons/wl_product_filter.php:461
1909
  #: includes/addons/wl_product_filter.php:698
1933
  msgstr ""
1934
 
1935
  #: includes/addons/add_banner.php:251 includes/addons/wl_category.php:327
1936
+ #: includes/addons/wl_category_grid.php:560
1937
  #: includes/addons/wl_onepage_slider.php:322
1938
  #: includes/addons/wl_onepage_slider.php:400
1939
  #: includes/addons/wl_product_horizontal_filter.php:707
1963
 
1964
  #: includes/admin/include/admin-setting.php:1882
1965
  msgid ""
1966
+ "Hurst is a preimum woocommerce theme included in WooLentor pro. It will save "
1967
  "money for the WooLentor pro users."
1968
  msgstr ""
1969
 
2027
  #: includes/addons/wb_customer_review.php:357
2028
  #: includes/addons/wb_image_marker.php:39
2029
  #: includes/addons/wb_product_image.php:40
2030
+ #: includes/addons/wl_category_grid.php:480
2031
  #: includes/addons/wl_onepage_slider.php:49
2032
  #: includes/addons/wl_store_features.php:68
2033
  #: includes/addons/wl_store_features.php:93
2093
  msgid "Install Elementor"
2094
  msgstr ""
2095
 
 
2096
  #: includes/admin/include/class.extension-manager.php:186
2097
  #: includes/admin/include/class.extension-manager.php:267
2098
  #: includes/admin/include/template-library.php:259
2165
  msgid "Search for:"
2166
  msgstr ""
2167
 
 
 
 
 
2168
  #: includes/admin/include/admin-setting.php:932
2169
  #: includes/admin/include/admin-setting.php:935
2170
  msgid "Last name"
2171
  msgstr ""
2172
 
2173
+ #: includes/addons/wl_product_filter.php:599
2174
+ msgid "Lavel Color"
2175
+ msgstr ""
2176
+
2177
  #: includes/addons/wl_store_features.php:44
2178
  msgid "Layout"
2179
  msgstr ""
2368
  #: includes/addons/wb_product_suggest_price.php:740
2369
  #: includes/addons/wb_product_title.php:88
2370
  #: includes/addons/wb_product_upsell.php:138 includes/addons/wl_brand.php:278
2371
+ #: includes/addons/wl_category_grid.php:501
2372
+ #: includes/addons/wl_category_grid.php:595
2373
  #: includes/addons/wl_onepage_slider.php:236
2374
  #: includes/addons/wl_onepage_slider.php:278
2375
  #: includes/addons/wl_product_filter.php:191
2458
  msgstr ""
2459
 
2460
  #: includes/addons/product_tabs.php:570
2461
+ #: includes/addons/wl_category_grid.php:394
2462
  #: includes/addons/wl_testimonial.php:427
2463
  msgid "Mobile Phone"
2464
  msgstr ""
2465
 
2466
  #: includes/addons/product_tabs.php:603
2467
+ #: includes/addons/wl_category_grid.php:425
2468
  #: includes/addons/wl_testimonial.php:458
2469
  msgid "Mobile Resolution"
2470
  msgstr ""
2567
  msgstr ""
2568
 
2569
  #: includes/addons/product_tabs.php:753
2570
+ #: includes/addons/wl_category_grid.php:831
2571
  #: includes/addons/wl_testimonial.php:966
2572
  msgid "Navigation"
2573
  msgstr ""
2574
 
2575
  #: includes/addons/product_tabs.php:638
2576
+ #: includes/addons/wl_category_grid.php:674
2577
  #: includes/addons/wl_testimonial.php:809
2578
  msgid "Navigation Arrow"
2579
  msgstr ""
2580
 
2581
  #: includes/addons/product_tabs.php:702 includes/addons/product_tabs.php:806
2582
+ #: includes/addons/wl_category_grid.php:759
2583
+ #: includes/addons/wl_category_grid.php:882
2584
  #: includes/addons/wl_testimonial.php:894
2585
  #: includes/addons/wl_testimonial.php:1017
2586
  msgid "Navigation Dots"
2649
  #: includes/addons/wb_product_suggest_price.php:405
2650
  #: includes/addons/wb_product_suggest_price.php:558
2651
  #: includes/addons/wb_product_suggest_price.php:701
2652
+ #: includes/addons/wl_category_grid.php:667 includes/addons/wl_faq.php:374
2653
  #: includes/addons/wl_faq.php:621 includes/addons/wl_product_filter.php:289
2654
  #: includes/addons/wl_product_filter.php:396
2655
  #: includes/addons/wl_product_filter.php:633
2836
  #: includes/addons/wb_product_suggest_price.php:585
2837
  #: includes/addons/wb_product_suggest_price.php:728
2838
  #: includes/addons/wb_whols.php:72 includes/addons/wl_brand.php:266
2839
+ #: includes/addons/wl_category_grid.php:446
2840
+ #: includes/addons/wl_category_grid.php:747 includes/addons/wl_faq.php:322
2841
  #: includes/addons/wl_faq.php:391 includes/addons/wl_faq.php:509
2842
  #: includes/addons/wl_faq.php:594 includes/addons/wl_onepage_slider.php:299
2843
  #: includes/addons/wl_product_filter.php:179
2948
  msgstr ""
2949
 
2950
  #: includes/addons/wb_archive_product.php:891
2951
+ #: includes/addons/wl_category_grid.php:682
2952
+ #: includes/addons/wl_category_grid.php:767
2953
  #: includes/addons/wl_testimonial.php:817
2954
  #: includes/addons/wl_testimonial.php:902
2955
  #: includes/admin/include/admin-setting.php:1066
3007
  msgstr ""
3008
 
3009
  #: includes/addons/wl_product_filter.php:590
3010
+ msgid "Price Lavel"
3011
  msgstr ""
3012
 
3013
  #: includes/addons/wl_product_horizontal_filter.php:165
3292
  msgstr ""
3293
 
3294
  #: includes/addons/wl_brand.php:222 includes/addons/wl_brand.php:365
3295
+ msgid "Purchase our premium version to unlock these pro feature!"
3296
  msgstr ""
3297
 
3298
  #: includes/addons/wb_product_qr_code.php:39
3587
  msgid "Send To Mail"
3588
  msgstr ""
3589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3590
  #: includes/admin/include/admin-setting.php:1079
3591
  msgid "Set the image position of the notification. <span>( Pro )</span>"
3592
  msgstr ""
3603
  msgid "Set the number of notifications to display."
3604
  msgstr ""
3605
 
 
 
 
 
3606
  #: includes/admin/include/admin-setting.php:1288
3607
  msgid "Set the position of the Mini Cart."
3608
  msgstr ""
3751
  msgstr ""
3752
 
3753
  #: includes/addons/product_tabs.php:616 includes/addons/wl_brand.php:350
3754
+ #: includes/addons/wl_brand.php:362 includes/addons/wl_category_grid.php:653
3755
  #: includes/addons/wl_testimonial.php:788
3756
  msgid "Slider Controller Style"
3757
  msgstr ""
3768
 
3769
  #: includes/addons/product_tabs.php:515 includes/addons/product_tabs.php:548
3770
  #: includes/addons/product_tabs.php:591
3771
+ #: includes/addons/wl_category_grid.php:342
3772
+ #: includes/addons/wl_category_grid.php:373
3773
+ #: includes/addons/wl_category_grid.php:414
3774
  #: includes/addons/wl_testimonial.php:375
3775
  #: includes/addons/wl_testimonial.php:406
3776
  #: includes/addons/wl_testimonial.php:447
3780
  #: includes/addons/product_tabs.php:423 includes/addons/product_tabs.php:536
3781
  #: includes/addons/product_tabs.php:579
3782
  #: includes/addons/wl_category_grid.php:263
3783
+ #: includes/addons/wl_category_grid.php:362
3784
+ #: includes/addons/wl_category_grid.php:403
3785
  #: includes/addons/wl_testimonial.php:296
3786
  #: includes/addons/wl_testimonial.php:395
3787
  #: includes/addons/wl_testimonial.php:436
3788
  msgid "Slider Items"
3789
  msgstr ""
3790
 
 
 
 
 
 
 
 
3791
  #: includes/addons/wl_category_grid.php:162
3792
  #: includes/addons/wl_testimonial.php:165
3793
  msgid "Slider On"
3874
  msgid "State"
3875
  msgstr ""
3876
 
 
 
 
 
3877
  #: includes/admin/include/admin-setting.php:804
3878
+ msgid "Stock Progressbar <span>( Pro )</span>"
3879
  msgstr ""
3880
 
3881
  #: includes/addons/wl_store_features.php:37
4025
  msgstr ""
4026
 
4027
  #: includes/addons/product_tabs.php:527
4028
+ #: includes/addons/wl_category_grid.php:353
4029
  #: includes/addons/wl_testimonial.php:386
4030
  msgid "Tablet"
4031
  msgstr ""
4032
 
4033
  #: includes/addons/product_tabs.php:560
4034
+ #: includes/addons/wl_category_grid.php:384
4035
  #: includes/addons/wl_testimonial.php:417
4036
  msgid "Tablet Resolution"
4037
  msgstr ""
4119
  msgstr ""
4120
 
4121
  #: includes/addons/product_tabs.php:604
4122
+ #: includes/addons/wl_category_grid.php:426
4123
  #: includes/addons/wl_testimonial.php:459
4124
  msgid "The resolution to mobile."
4125
  msgstr ""
4126
 
4127
  #: includes/addons/product_tabs.php:561
4128
+ #: includes/addons/wl_category_grid.php:385
4129
  #: includes/addons/wl_testimonial.php:418
4130
  msgid "The resolution to the tablet."
4131
  msgstr ""
4179
  #: includes/addons/wb_image_marker.php:300
4180
  #: includes/addons/wb_product_related.php:78
4181
  #: includes/addons/wb_product_upsell.php:62 includes/addons/wl_category.php:307
4182
+ #: includes/addons/wl_category_grid.php:540 includes/addons/wl_faq.php:64
4183
  #: includes/addons/wl_onepage_slider.php:69
4184
  #: includes/addons/wl_onepage_slider.php:207
4185
  #: includes/addons/wl_product_filter.php:90
4325
  #: includes/addons/wb_product_upsell.php:127
4326
  #: includes/addons/wb_wc_multicurrency.php:86 includes/addons/wb_whols.php:64
4327
  #: includes/addons/wb_wishsuite_table.php:104
4328
+ #: includes/addons/wl_category.php:340 includes/addons/wl_category_grid.php:587
4329
+ #: includes/addons/wl_category_grid.php:642 includes/addons/wl_faq.php:448
4330
  #: includes/addons/wl_faq.php:561 includes/addons/wl_onepage_slider.php:228
4331
  #: includes/addons/wl_onepage_slider.php:270
4332
  #: includes/addons/wl_onepage_slider.php:334
4345
  msgid "Universal layout"
4346
  msgstr ""
4347
 
 
 
 
 
4348
  #: includes/admin/include/admin-setting.php:260
4349
  msgid "Universal Product"
4350
  msgstr ""
4638
  msgid "WooLentor Free VS WooLentor Pro."
4639
  msgstr ""
4640
 
 
 
 
 
 
 
 
4641
  #: includes/admin/include/admin-setting.php:1747
4642
  msgid "WooLentor Pro"
4643
  msgstr ""
4690
  msgid "You can enable duplicator for individual post."
4691
  msgstr ""
4692
 
 
 
 
 
4693
  #: includes/admin/include/admin-setting.php:167
4694
  msgid "You can select a custom template for the Product Archive page layout"
4695
  msgstr ""
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,16 +322,6 @@ 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
-
328
- = Version: 1.9.4 - Date: 2021-08-08 =
329
- * Added Category Grid and Product tab blocks.
330
- * Solved Product image showing issue in editor mode.
331
- * Solved Horizontal filter item select issue.
332
- * Solved Translate issue.
333
- * Solved Related Product, Upsale product and Cross sale Product Column issue for storefront theme
334
-
335
  = Version: 1.9.3 - Date: 2021-27-07 =
336
  * Added Title tag change option in universal layout
337
  * Added Product Archive page template override global option
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.3
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.3 - Date: 2021-27-07 =
326
  * Added Title tag change option in universal layout
327
  * Added Product Archive page template override global option
woolentor-blocks/build/index.asset.php CHANGED
@@ -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('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-server-side-render'), 'version' => 'ba5524b40ba0e3db510450dcfb1db868');
woolentor-blocks/build/index.js CHANGED
@@ -1 +1 @@
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()}]);
1
+ !function(e){var t={};function o(l){if(t[l])return t[l].exports;var r=t[l]={i:l,l:!1,exports:{}};return e[l].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,l){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(l,r,function(t){return e[t]}.bind(null,r));return l},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=14)}([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.wp.blocks},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.data},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"},"selector":".wlspcial-banner .banner-content h2"},"titlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"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"}},"subTitlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"}},"contentAlignment":{"type":"string","selector":".wlspcial-banner .banner-content"},"contentAreaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"}},"contentAreaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"}},"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"},"selector":".wlspcial-banner .banner-content p"},"desPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"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"},"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"},"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"},"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"},"selector":".wlb-marker-wrapper .wlb_image_pointer"},"markerPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"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"},"selector":".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"},"markerContentPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"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"},"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"},"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"},"selector":".ht-feature-wrap"},"areaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"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"},"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"},"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"},"selector":".wl-single-brand"},"singleItemAreaBorderColor":{"type":"string","selector":".wl-single-brand"},"singleItemAreaBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"selector":".wl-single-brand"},"singleItemAreaMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"selector":".wl-single-brand"},"singleItemAreaPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"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"},"selector":".wl-single-brand img"},"brandImageBorderColor":{"type":"string","selector":".wl-single-brand img"},"brandImageBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":"","unit":"px"},"selector":".wl-single-brand img"}}}')},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.serverSideRender},function(e,t,o){"use strict";o.r(t),o.d(t,"registerWoolentorBlocks",(function(){return fe}));var l={};o.r(l),o.d(l,"name",(function(){return E})),o.d(l,"category",(function(){return f})),o.d(l,"metadata",(function(){return h})),o.d(l,"settings",(function(){return v}));var r={};o.r(r),o.d(r,"name",(function(){return N})),o.d(r,"category",(function(){return G})),o.d(r,"metadata",(function(){return D})),o.d(r,"settings",(function(){return U}));var n={};o.r(n),o.d(n,"name",(function(){return X})),o.d(n,"category",(function(){return Z})),o.d(n,"metadata",(function(){return J})),o.d(n,"settings",(function(){return ee}));var a={};o.r(a),o.d(a,"name",(function(){return ie})),o.d(a,"category",(function(){return se})),o.d(a,"metadata",(function(){return ae})),o.d(a,"settings",(function(){return me}));var c={};o.r(c),o.d(c,"name",(function(){return we})),o.d(c,"category",(function(){return _e})),o.d(c,"metadata",(function(){return je})),o.d(c,"settings",(function(){return Ce}));var i=o(4),s=o(0),b=o(1),m=o(2);const u=Object(s.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(s.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(i.setCategories)([{slug:"woolentor-blocks",title:Object(b.__)("WooLentor","woolentor"),icon:Object(s.createElement)(m.Icon,{icon:u})},...Object(i.getCategories)().filter(({slug:e})=>"woolentor-blocks"!==e)]);var d=o(3);class g extends s.Component{render(){const{attributes:e,setAttributes:t}=this.props,{style:o,contentAlignment:l,buttonUrl:r}=e,n={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(d.InspectorControls,null,Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Settings","woolentor"),initialOpen:!0},Object(s.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(s.createElement)(m.SelectControl,{label:Object(b.__)("Content Alignment","woolentor"),value:l,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(s.createElement)(m.TextControl,{label:Object(b.__)("Link","woolentor"),value:r,onChange:e=>t({buttonUrl:e})})),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...n,backgroundColor:e.titleColor}})),Object(s.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(s.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(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Sub Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...n,backgroundColor:e.subTitleColor}})),Object(s.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(s.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(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Button","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...n,backgroundColor:e.buttonColor}})),Object(s.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(s.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 p=g,j=o(12),O=Object(s.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(s.createElement)(j.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 w extends s.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:l,setAttributes:r}=this.props,{title:n,subTitle:a,imgUrl:c,imgId:i,style:u,contentAlignment:g,buttonText:j,buttonUrl:w}=t,_=e=>r({imgUrl:e.url,imgId:e.id});return Object(s.createElement)(m.DropZone,{onFilesDrop:this.addImage,label:Object(b.__)("Drop to upload as banner image","woolentor")}),Object(s.createElement)(s.Fragment,null,l&&Object(s.createElement)(p,this.props),Object(s.createElement)("div",{className:o},Object(s.createElement)("div",{className:"woolentor-banner woolentor-banner-layout-"+u+" woolentor-content-align-"+g},Object(s.createElement)("div",{className:"woolentor-content"},Object(s.createElement)(d.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(s.createElement)(d.RichText,{tagName:"h2",className:"banner_title",value:n,onChange:e=>r({title:e}),placeholder:Object(b.__)("Banner title...","woolentor"),keepPlaceholderOnFocus:!0,style:{color:""+t.titleColor,fontSize:""+t.titleSize}}),Object(s.createElement)(d.RichText,{tagName:"a",className:"banner_button",value:j,onChange:e=>r({buttonText:e}),placeholder:Object(b.__)("Shop Now ....","woolentor"),href:w,keepPlaceholderOnFocus:!0,style:{color:""+t.buttonColor,fontSize:""+t.buttonSize}})),c?Object(s.createElement)("div",{class:"woolentor-banner-img"},Object(s.createElement)("img",{className:"wp-block-woolentor-banner-img",src:c,alt:"WooLentor Banner image"}),Object(s.createElement)("div",null,Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(d.MediaUpload,{onSelect:_,allowedTypes:["image","png"],value:c,render:({open:e})=>Object(s.createElement)(m.Button,{onClick:e},c?Object(b.__)("Replace Image","woolentor"):Object(s.createElement)(d.BlockIcon,{icon:O}))})))):Object(s.createElement)("div",{class:"woolentor-banner-img"},Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(d.MediaUpload,{onSelect:_,allowedTypes:["image","png"],value:c,render:({open:e})=>Object(s.createElement)(m.Button,{onClick:e},c?Object(b.__)("Replace Image","woolentor"):Object(s.createElement)(d.BlockIcon,{icon:O}))}))))))}}var _=w,h=o(7),C=Object(s.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(s.createElement)("g",null,Object(s.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(s.createElement)("g",null,Object(s.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(s.createElement)("g",null,Object(s.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(s.createElement)("g",null,Object(s.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:E,category:f,attributes:A}=h,v={title:Object(b.__)("WL : Promo Banner","woolentor"),description:Object(b.__)("Display promo banner.","woolentor"),icon:Object(s.createElement)(m.Icon,{icon:C}),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")}},attributes:A,edit:_,save:({className:e,attributes:t})=>{const{title:o,subTitle:l,imgUrl:r,style:n,contentAlignment:a,buttonText:c,buttonUrl:i}=t;return Object(s.createElement)("div",{className:e},Object(s.createElement)("div",{className:"woolentor-banner woolentor-banner-layout-"+n+" woolentor-content-align-"+a},Object(s.createElement)("div",{className:"woolentor-content"},Object(s.createElement)(d.RichText.Content,{tagName:"h3",className:"banner_subtitle",value:l,style:{color:""+t.subTitleColor,fontSize:""+t.subTitleSize}}),Object(s.createElement)(d.RichText.Content,{tagName:"h2",className:"banner_title",value:o,style:{color:""+t.titleColor,fontSize:""+t.titleSize}}),Object(s.createElement)(d.RichText.Content,{tagName:"a",className:"banner_button",href:i,value:c,style:{color:""+t.buttonColor,fontSize:""+t.buttonSize}})),r&&Object(s.createElement)("div",{className:"woolentor-banner-img"},i?Object(s.createElement)("a",{href:i},Object(s.createElement)("img",{className:"wp-block-woolentor-banner-img",src:r,alt:o})):Object(s.createElement)("img",{className:"wp-block-woolentor-banner-img",src:r,alt:o}))))}};var k=o(5),y=o(6);class F extends s.Component{render(){const{setAttributes:e,title:t,ImageData:o,attributesKey:l,uploadImage:r}=this.props,n=["image","png"],a=Object(s.createElement)("p",null,Object(b.__)("To edit the banner image, you need permission to upload media.","woolentor")),c=t=>{const r={...o};r.id=t.id,r.url=t.url,e({[l]:r})};return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"wp-block-image-selector-woolentor-image-uploader"},Object(s.createElement)("h3",null,t),Object(s.createElement)(d.MediaUploadCheck,{fallback:a},Object(s.createElement)(d.MediaUpload,{title:t,onSelect:c,allowedTypes:n,value:o.id,render:({open:e})=>Object(s.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(s.createElement)(m.Spinner,null),!!o.id&&r&&Object(s.createElement)("img",{src:r.source_url,alt:t}))})),!!o.id&&r&&Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(d.MediaUpload,{title:t,onSelect:c,allowedTypes:n,value:o.id,render:({open:e})=>Object(s.createElement)(m.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(b.__)("Replace image","woolentor"))})),!!o.id&&Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(m.Button,{onClick:()=>{const t={...o};t.id=void 0,t.url=void 0,e({[l]:t})},isLink:!0,isDestructive:!0},Object(b.__)("Remove image","woolentor")))))}}var B=Object(k.compose)(Object(y.withSelect)((e,t)=>{const{getMedia:o}=e("core"),{ImageData:l}=t;return{uploadImage:l.id?o(l.id):null}}))(F),S=e=>{const{setAttributes:t,lavel:o,dimensions:l,attributesKey:r}=e,[n,a]=Object(s.useState)("yes"),c=(e,o)=>{const a={...l};"yes"===n?(a.top=e,a.right=e,a.bottom=e,a.left=e):(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[o]=e),t({[r]:a})},i=e=>{const o={...l};o.unit=e.target.value,t({[r]:o})};return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"wp-block-selector-woolentor-dimensions-control"},Object(s.createElement)(m.PanelRow,{className:"woolentor-panel-row-height-auto",style:{minHeight:"auto"}},Object(s.createElement)("h3",null,o),Object(s.createElement)(m.ButtonGroup,{className:"woolentor-dimensions-btn-group"},Object(s.createElement)(m.Button,{value:"px",text:Object(b.__)("PX","woolentor"),isPrimary:"px"===l.unit,isSecondary:"px"!==l.unit,onClick:i,title:Object(b.__)("PX","woolentor"),focus:!1}),Object(s.createElement)(m.Button,{value:"%",text:Object(b.__)("%","woolentor"),isPrimary:"%"===l.unit,isSecondary:"%"!==l.unit,onClick:i,title:Object(b.__)("%","woolentor"),focus:!1}),Object(s.createElement)(m.Button,{value:"em",text:Object(b.__)("EM","woolentor"),isPrimary:"em"===l.unit,isSecondary:"em"!==l.unit,onClick:i,title:Object(b.__)("EM","woolentor"),focus:!1}))),Object(s.createElement)(m.PanelRow,null,Object(s.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Top","woolentor"),isShiftStepEnabled:!0,onChange:e=>c(e,"top"),shiftStep:10,value:l.top,labelPosition:"bottom"}),Object(s.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Right","woolentor"),isShiftStepEnabled:!0,onChange:e=>c(e,"right"),shiftStep:10,value:l.right,labelPosition:"bottom"}),Object(s.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Bottom","woolentor"),isShiftStepEnabled:!0,onChange:e=>c(e,"bottom"),shiftStep:10,value:l.bottom,labelPosition:"bottom"}),Object(s.createElement)(m.__experimentalNumberControl,{label:Object(b.__)("Left","woolentor"),isShiftStepEnabled:!0,onChange:e=>c(e,"left"),shiftStep:10,value:l.left,labelPosition:"bottom"}),Object(s.createElement)(m.Button,{icon:"admin-links",value:"yes",isPrimary:"yes"===n,isSecondary:"yes"!==n,onClick:()=>{a("yes"===n?"no":"yes")},title:Object(b.__)("Link values together","woolentor"),showTooltip:!0}))))};class x extends s.Component{render(){const{attributes:e,setAttributes:t}=this.props,{title:o,contentPosition:l,bannerImage:r,badgeImage:n,badgeHorizontalPos:a,badgeVerticlePos:c}=e,i={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(d.InspectorControls,null,Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Content Settings","woolentor"),initialOpen:!0},Object(s.createElement)(m.SelectControl,{label:Object(b.__)("Content Position","woolentor"),value:l,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(s.createElement)(B,{title:Object(b.__)("Banner image","woolentor"),ImageData:r,attributesKey:"bannerImage",setAttributes:t}),Object(s.createElement)(B,{title:Object(b.__)("Badge image","woolentor"),ImageData:n,attributesKey:"badgeImage",setAttributes:t}),n.id&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)(m.RangeControl,{label:Object(b.__)("Badge Horizontal Position","woolentor"),value:a,onChange:e=>t({badgeHorizontalPos:e}),min:-1e3,step:1,max:1e3}),Object(s.createElement)(m.RangeControl,{label:Object(b.__)("Badge Vertical Position","woolentor"),value:c,onChange:e=>t({badgeVerticlePos:e}),min:-1e3,step:1,max:1e3})),Object(s.createElement)(m.TextControl,{label:Object(b.__)("Title","woolentor"),value:o,placeholder:Object(b.__)("Banner Title","woolentor"),onChange:e=>t({title:e})}),Object(s.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(s.createElement)(m.TextareaControl,{label:Object(b.__)("Description","woolentor"),help:Object(b.__)("Enter Banner description","woolentor"),value:e.bannerDescription,onChange:e=>t({bannerDescription:e})}),Object(s.createElement)(m.TextControl,{label:Object(b.__)("Offer Amount","woolentor"),placeholder:Object(b.__)("50%","woolentor"),value:e.offerAmount,onChange:e=>t({offerAmount:e})}),Object(s.createElement)(m.TextControl,{label:Object(b.__)("Offer Tag Line","woolentor"),value:e.offerTagLine,placeholder:Object(b.__)("off","woolentor"),onChange:e=>t({offerTagLine:e})}),Object(s.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(s.createElement)(m.TextControl,{label:Object(b.__)("Button Text","woolentor"),value:e.buttonText,placeholder:Object(b.__)("Shop Now","woolentor"),onChange:e=>t({buttonText:e})})),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Content Area","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Alignment","woolentor")),Object(s.createElement)(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},Object(s.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(s.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(s.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(s.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(s.createElement)("span",{onClick:()=>t({contentAlignment:""}),class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})),Object(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.contentAreaMargin,attributesKey:"contentAreaMargin",setAttributes:t}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.contentAreaPadding,attributesKey:"contentAreaPadding",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.titleColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.titleMargin,attributesKey:"titleMargin",setAttributes:t}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.titlePadding,attributesKey:"titlePadding",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Sub Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.titleSubColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.subTitleMargin,attributesKey:"subTitleMargin",setAttributes:t}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.subTitlePadding,attributesKey:"subTitlePadding",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Description","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.desColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.desMargin,attributesKey:"desMargin",setAttributes:t}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.desPadding,attributesKey:"desPadding",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Offer Amount","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.offerColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.offerMargin,attributesKey:"offerMargin",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Offer Tag Line","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.offerTagColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.offerTagMargin,attributesKey:"offerTagMargin",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Button","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.buttonColor}})),Object(s.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(s.createElement)("h3",null,Object(b.__)("Hover Color","woolentor"),Object(s.createElement)("span",{style:{...i,backgroundColor:e.buttonHoverColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.buttonMargin,attributesKey:"buttonMargin",setAttributes:t}))))}}var T=x,z=o(13),P=o.n(z);class I extends s.Component{render(){const{name:e,attributes:t,className:o,isSelected:l,setAttributes:r,clientId:n}=this.props,{blockUniqId:a}=t;return""==a&&r({blockUniqId:n}),Object(s.createElement)(s.Fragment,null,l&&Object(s.createElement)(T,this.props),Object(s.createElement)("div",{className:o},Object(s.createElement)(P.a,{block:e,attributes:t})))}}var L=I,D=o(8),M=Object(s.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(s.createElement)("g",null,Object(s.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(s.createElement)("g",null,Object(s.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(s.createElement)("g",null,Object(s.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(s.createElement)("g",null,Object(s.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:N,category:G,attributes:R}=D,U={title:Object(b.__)("WL : Special Day Offer","woolentor"),description:Object(b.__)("Display spesial day offer banner.","woolentor"),icon:Object(s.createElement)(m.Icon,{icon:M}),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:R,edit:L,save:()=>null};class Q extends s.Component{render(){const{setAttributes:e,title:t,bgProperty:o,attributesKey:l,uploadImage:r}=this.props,n=(t,r)=>{const n={...o};n[r]=t,e({[l]:n})},a=["image","png"],c=Object(s.createElement)("p",null,Object(b.__)("To edit the banner image, you need permission to upload media.","woolentor")),i=t=>{const r={...o};r.imageId=t.id,r.imageUrl=t.url,e({[l]:r})};return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"wp-block-selector-woolentor-background-control"},t&&Object(s.createElement)("h3",null,t),Object(s.createElement)("div",{className:"wp-block-image-selector-woolentor-image-uploader"},Object(s.createElement)(d.MediaUploadCheck,{fallback:c},Object(s.createElement)(d.MediaUpload,{title:t,onSelect:i,allowedTypes:a,value:o.imageId,render:({open:e})=>Object(s.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(s.createElement)(m.Spinner,null),!!o.imageId&&r&&Object(s.createElement)("img",{src:r.source_url,alt:t}))})),!!o.imageId&&r&&Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(d.MediaUpload,{title:t,onSelect:i,allowedTypes:a,value:o.imageId,render:({open:e})=>Object(s.createElement)(m.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(b.__)("Replace image","woolentor"))})),!!o.imageId&&Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(m.Button,{onClick:()=>{const t={...o};t.imageId=void 0,t.imageUrl=void 0,e({[l]:t})},isLink:!0,isDestructive:!0},Object(b.__)("Remove image","woolentor")))),Object(s.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=>n(e,"position")}),Object(s.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=>n(e,"attachment")}),Object(s.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=>n(e,"repeat")}),Object(s.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=>n(e,"size")})))}}var H=Object(k.compose)(Object(y.withSelect)((e,t)=>{const{getMedia:o}=e("core"),{bgProperty:l}=t;return{uploadImage:l.imageId?o(l.imageId):null}}))(Q);class V extends s.Component{render(){const{attributes:e,setAttributes:t}=this.props,{style:o,bgProperty:l}=e,r={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},n=(o,l,r)=>{const n=[...e.markerList];n[r][l]=o,t({markerList:n})};let a;return e.markerList.length&&(a=e.markerList.map((o,l)=>Object(s.createElement)(s.Fragment,{key:l},Object(s.createElement)("div",{className:"woolentor_repeater-fields"},Object(s.createElement)("div",{className:"woolentor_repeater-tools",onClick:e=>((e,t)=>{let o,l=document.getElementsByClassName("woolentor_repeater-controls");for(l[t].style.display="block",o=0;o<l.length;o++)t!=o&&(l[o].style.display="none")})(0,l)},Object(s.createElement)("div",{className:"woolentor_repeater-item-title"},e.markerList[l].title),Object(s.createElement)("div",{className:"woolentor_repeater-item-remove"},Object(s.createElement)(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(b.__)("Delete Marker","woolentor"),onClick:()=>(o=>{const l=[...e.markerList];l.splice(o,1),t({markerList:l})})(l)}))),Object(s.createElement)("div",{className:"woolentor_repeater-controls"},Object(s.createElement)(m.TextControl,{label:Object(b.__)("Marker Title","woolentor"),className:"woolentor__marker-title",placeholder:Object(b.__)("Marker Title","woolentor"),value:e.markerList[l].title,onChange:e=>n(e,"title",l)}),Object(s.createElement)(m.TextareaControl,{label:Object(b.__)("Marker Content","woolentor"),value:e.markerList[l].content,onChange:e=>n(e,"content",l)}),Object(s.createElement)(m.RangeControl,{label:Object(b.__)("Horizontal Position","woolentor"),value:e.markerList[l].horizontal,onChange:e=>n(e,"horizontal",l),min:-1e3,step:1,max:1e3}),Object(s.createElement)(m.RangeControl,{label:Object(b.__)("Vertical Position","woolentor"),value:e.markerList[l].verticle,onChange:e=>n(e,"verticle",l),min:-1e3,step:1,max:1e3})))))),Object(s.createElement)(s.Fragment,null,Object(s.createElement)(d.InspectorControls,null,Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Image","woolentor"),initialOpen:!0},Object(s.createElement)(H,{title:Object(b.__)("Background Image","woolentor"),attributesKey:"bgProperty",setAttributes:t,bgProperty:l})),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Marker","woolentor"),initialOpen:!1},Object(s.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})}),a,Object(s.createElement)(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:(()=>{const o=[...e.markerList];o.push({title:Object(b.__)("Marker Title","woolentor"),content:"",horizontal:"",verticle:""}),t({markerList:o})}).bind(this)},Object(b.__)("Add Marker","woolentor"))),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Marker","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...r,backgroundColor:e.markerColor}})),Object(s.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(s.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(s.createElement)("span",{style:{...r,backgroundColor:e.markerBGColor}})),Object(s.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(s.createElement)("h3",null,Object(b.__)("Border Color","woolentor"),Object(s.createElement)("span",{style:{...r,backgroundColor:e.markerBorderColor}})),Object(s.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(s.createElement)(S,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:e.markerBorderRadius,attributesKey:"markerBorderRadius",setAttributes:t}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.markerPadding,attributesKey:"markerPadding",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Content Area","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(s.createElement)("span",{style:{...r,backgroundColor:e.markerContentBGColor}})),Object(s.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(s.createElement)(S,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:e.markerContentBorderRadius,attributesKey:"markerContentBorderRadius",setAttributes:t}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:e.markerContentPadding,attributesKey:"markerContentPadding",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Marker Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...r,backgroundColor:e.markerTitleColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.markerTitleMargin,attributesKey:"markerTitleMargin",setAttributes:t}),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Marker Description","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...r,backgroundColor:e.markerDescriptionColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:e.markerDescriptionMargin,attributesKey:"markerDescriptionMargin",setAttributes:t}))))}}var K=V;class W extends s.Component{render(){const{name:e,attributes:t,className:o,isSelected:l,setAttributes:r,clientId:n}=this.props,{blockUniqId:a,bgProperty:c}=t;""==a&&r({blockUniqId:n});const i=e=>{let o=t[e]?t[e]:{},l="";if(""!=o.top||""!=o.right||""!=o.bottom||""!=o.left){let e=o.unit?o.unit:"px";l=o.top?l+o.top+e+" ":"0"+e+" ",l=o.right?l+o.right+e+" ":"0"+e+" ",l=o.bottom?l+o.bottom+e+" ":"0"+e+" ",l=o.left?l+o.left+e+" ":"0"+e+" "}return l},b=t.markerList.map((e,o)=>Object(s.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:i("markerBorderRadius"),padding:i("markerPadding")}},Object(s.createElement)("div",{className:"wlb_pointer_box",style:{backgroundColor:t.markerContentBGColor&&""+t.markerContentBGColor,borderRadius:i("markerContentBorderRadius"),padding:i("markerContentPadding")}},e.title&&Object(s.createElement)("h4",{style:{color:t.markerTitleColor&&""+t.markerTitleColor,fontSize:t.markerTitleSize&&""+t.markerTitleSize,margin:i("markerTitleMargin")}},e.title),e.content&&Object(s.createElement)("p",{style:{color:t.markerDescriptionColor&&""+t.markerDescriptionColor,fontSize:t.markerDescriptionSize&&""+t.markerDescriptionSize,margin:i("markerDescriptionMargin")}},e.content))));return Object(s.createElement)(s.Fragment,null,l&&Object(s.createElement)(K,this.props),Object(s.createElement)("div",{className:o+" wlb-marker-style-"+t.style,style:{backgroundImage:c.imageUrl&&`url( ${c.imageUrl} )`,backgroundPosition:c.position&&c.position,backgroundAttachment:c.attachment&&c.attachment,backgroundRepeat:c.repeat&&c.repeat,backgroundSize:c.size&&c.size}},b))}}var Y=W,J=o(9),q=Object(s.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(s.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:X,category:Z,attributes:$}=J,ee={title:Object(b.__)("WL : Image Marker","woolentor"),description:Object(b.__)("Display image marker.","woolentor"),icon:Object(s.createElement)(m.Icon,{icon:q}),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"}},attributes:$,edit:Y,save:()=>null};var te=e=>{const{attributes:t,setAttributes:o}=e,{title:l,subTitle:r,layout:n,featureImage:a}=t,c={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"};return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(d.InspectorControls,null,Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Content","woolentor"),initialOpen:!0},Object(s.createElement)(m.SelectControl,{label:Object(b.__)("Layout","woolentor"),value:n,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(s.createElement)(B,{title:Object(b.__)("Image","woolentor"),ImageData:a,attributesKey:"featureImage",setAttributes:o}),Object(s.createElement)(m.TextControl,{label:Object(b.__)("Title","woolentor"),value:l,onChange:e=>o({title:e})}),Object(s.createElement)(m.TextControl,{label:Object(b.__)("Sub Title","woolentor"),value:r,onChange:e=>o({subTitle:e})})),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Area","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Border Color","woolentor"),Object(s.createElement)("span",{style:{...c,backgroundColor:t.areaBorderColor}})),Object(s.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(s.createElement)("h3",null,Object(b.__)("Hover Border Color","woolentor"),Object(s.createElement)("span",{style:{...c,backgroundColor:t.areaHoverBorderColor}})),Object(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.areaMargin,attributesKey:"areaMargin",setAttributes:o}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:t.areaPadding,attributesKey:"areaPadding",setAttributes:o}),Object(s.createElement)("h3",null,Object(b.__)("Background Color","woolentor"),Object(s.createElement)("span",{style:{...c,backgroundColor:t.areaBackgroundColor}})),Object(s.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(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...c,backgroundColor:t.titleColor}})),Object(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.titleMargin,attributesKey:"titleMargin",setAttributes:o}),Object(s.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(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Sub Title","woolentor")),Object(s.createElement)("h3",null,Object(b.__)("Color","woolentor"),Object(s.createElement)("span",{style:{...c,backgroundColor:t.subTitleColor}})),Object(s.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(s.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(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.subTitleMargin,attributesKey:"subTitleMargin",setAttributes:o}))))};class oe extends s.Component{render(){const{attributes:e,setAttributes:t}=this.props;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(d.BlockControls,null,Object(s.createElement)(d.AlignmentToolbar,{value:e.textAlignment,onChange:e=>t({textAlignment:e})})))}}var le=oe;class re extends s.Component{render(){const{name:e,className:t,attributes:o,isSelected:l,setAttributes:r,clientId:n}=this.props,{blockUniqId:a,featureImage:c}=o;""==a&&r({blockUniqId:n});const i={areaStyle:{}},b=e=>{let t=o[e]?o[e]:{},l="";if(""!=t.top||""!=t.right||""!=t.bottom||""!=t.left){let e=t.unit?t.unit:"px";l=t.top?l+t.top+e+" ":"0"+e+" ",l=t.right?l+t.right+e+" ":"0"+e+" ",l=t.bottom?l+t.bottom+e+" ":"0"+e+" ",l=t.left?l+t.left+e+" ":"0"+e+" "}return l};return i.areaStyle=o.areaBorderColor?{...i.areaStyle,borderColor:""+o.areaBorderColor}:"",i.areaStyle=o.areaBackgroundColor?{...i.areaStyle,backgroundColor:""+o.areaBackgroundColor}:"",i.areaStyle=o.areaMargin?{...i.areaStyle,margin:b("areaMargin")}:"",i.areaStyle=o.areaPadding?{...i.areaStyle,padding:b("areaPadding")}:"",Object(s.createElement)(s.Fragment,null,l&&Object(s.createElement)(te,this.props),l&&Object(s.createElement)(le,this.props),Object(s.createElement)("div",{className:t+" woolentor-blocks ht-feature-wrap ht-feature-style-"+o.layout+" woolentor-text-align-"+o.textAlignment},Object(s.createElement)("div",{className:"ht-feature-inner",style:{...i.areaStyle,borderColor:""+o.areaBorderColor}},c.url&&Object(s.createElement)("div",{className:"ht-feature-img"},Object(s.createElement)("img",{src:c.url,alt:o.title})),Object(s.createElement)("div",{className:"ht-feature-content"},o.title&&Object(s.createElement)("h4",{style:{color:o.titleColor&&""+o.titleColor,fontSize:o.titleSize&&""+o.titleSize,margin:b("titleMargin")}},o.title),o.subTitle&&Object(s.createElement)("p",{style:{color:o.subTitleColor&&""+o.subTitleColor,fontSize:o.subTitleSize&&""+o.subTitleSize,margin:b("subTitleMargin")}},o.subTitle)))))}}var ne=re,ae=o(10),ce=Object(s.createElement)("svg",{viewBox:"-27 0 512 512.00001",xmlns:"http://www.w3.org/2000/svg"},Object(s.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(s.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(s.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(s.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(s.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(s.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(s.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(s.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:ie,category:se,attributes:be}=ae,me={title:Object(b.__)("WL : Store Feature","woolentor"),description:Object(b.__)("Display store feature.","woolentor"),icon:Object(s.createElement)(m.Icon,{icon:ce}),keywords:["woolentor",Object(b.__)("shop feature","woolentor"),Object(b.__)("feature","woolentor"),Object(b.__)("store","woolentor")],example:{attributes:{style:"1"}},attributes:be,edit:ne,save:()=>null};var ue=e=>{const{attributes:t,setAttributes:o}=e,{columns:l,noGutter:r}=t,n={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},a=(e,l,r)=>{const n=[...t.brandLogoList];n[r][l]=e,o({brandLogoList:n})},c=["image","png"],i=Object(s.createElement)("p",null,Object(b.__)("To edit the banner image, you need permission to upload media.","woolentor")),u=(e,l)=>{const r=[...t.brandLogoList];r[l].image.id=e.id,r[l].image.url=e.url,o({brandLogoList:r})};let g;return t.brandLogoList.length&&(g=t.brandLogoList.map((e,l)=>Object(s.createElement)(s.Fragment,{key:l},Object(s.createElement)("div",{className:"woolentor_repeater-fields"},Object(s.createElement)("div",{className:"woolentor_repeater-tools",onClick:e=>((e,t)=>{let o,l=document.getElementsByClassName("woolentor_repeater-controls");for(l[t].style.display="block",o=0;o<l.length;o++)t!=o&&(l[o].style.display="none")})(0,l)},Object(s.createElement)("div",{className:"woolentor_repeater-item-title"},t.brandLogoList[l].title),Object(s.createElement)("div",{className:"woolentor_repeater-item-remove"},Object(s.createElement)(m.IconButton,{className:"woolentor__remove-marker",icon:"no-alt",label:Object(b.__)("Delete Marker","woolentor"),onClick:()=>(e=>{const l=[...t.brandLogoList];l.splice(e,1),o({brandLogoList:l})})(l)}))),Object(s.createElement)("div",{className:"woolentor_repeater-controls"},Object(s.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=>a(e,"title",l)}),Object(s.createElement)("div",{className:"wp-block-image-selector-woolentor-image-uploader"},Object(s.createElement)(d.MediaUploadCheck,{fallback:i},Object(s.createElement)(d.MediaUpload,{title:Object(b.__)("Choose Image","woolentor"),onSelect:e=>u(e,l),allowedTypes:c,value:t.brandLogoList[l].image.id,render:({open:e})=>Object(s.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(s.createElement)("img",{src:t.brandLogoList[l].image.url,alt:t.brandLogoList[l].title}):Object(b.__)("Choose Image","woolentor"))})),!!t.brandLogoList[l].image.id&&Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(d.MediaUpload,{title:Object(b.__)("Choose Image","woolentor"),onSelect:e=>u(e,l),allowedTypes:c,value:t.brandLogoList[l].image.id,render:({open:e})=>Object(s.createElement)(m.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(b.__)("Replace image","woolentor"))})),!!t.brandLogoList[l].image.id&&Object(s.createElement)(d.MediaUploadCheck,null,Object(s.createElement)(m.Button,{onClick:()=>(e=>{const l=[...t.brandLogoList];l[e].image.id=void 0,l[e].image.url=void 0,o({brandLogoList:l})})(l),isLink:!0,isDestructive:!0},Object(b.__)("Remove image","woolentor")))),Object(s.createElement)(m.TextControl,{label:Object(b.__)("Brand Link","woolentor"),value:t.brandLogoList[l].link,placeholder:Object(b.__)("https://your-site.com","woolentor"),onChange:e=>a(e,"link",l)})))))),Object(s.createElement)(s.Fragment,null,Object(s.createElement)(d.InspectorControls,null,Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Brand Logo","woolentor"),initialOpen:!0},g,Object(s.createElement)(m.Button,{isDefault:!0,icon:"plus-alt2",onClick:(()=>{const e=[...t.brandLogoList];e.push({title:"",image:{id:"",url:""},link:""}),o({brandLogoList:e})}).bind(void 0)},Object(b.__)("Add Brand","woolentor"))),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Brand Option","woolentor"),initialOpen:!1},Object(s.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(s.createElement)(m.ToggleControl,{label:Object(b.__)("No Gutters","woolentor"),checked:r,help:r?Object(b.__)("Enable No Gutters.","woolentor"):Object(b.__)("Toggle to show the Gutters.","woolentor"),onChange:()=>o({noGutter:!r})}),!r&&Object(s.createElement)(m.RangeControl,{label:Object(b.__)("Gutter Spacing","woolentor"),value:t.itemSpace,onChange:e=>o({itemSpace:e}),min:0,step:1,max:200})),Object(s.createElement)(m.PanelBody,{title:Object(b.__)("Style","woolentor"),initialOpen:!1},Object(s.createElement)("h2",{className:"woolentor-blocks-section-title"},Object(b.__)("Brand Item","woolentor")),Object(s.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(s.createElement)(s.Fragment,null,Object(s.createElement)(S,{lavel:Object(b.__)("Border Width","woolentor"),dimensions:t.singleItemAreaBorderWidth,attributesKey:"singleItemAreaBorderWidth",setAttributes:o}),Object(s.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Border Color","woolentor"),Object(s.createElement)("span",{style:{...n,backgroundColor:t.singleItemAreaBorderColor}})),Object(s.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(s.createElement)(S,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:t.singleItemAreaBorderRadius,attributesKey:"singleItemAreaBorderRadius",setAttributes:o}),Object(s.createElement)(S,{lavel:Object(b.__)("Margin","woolentor"),dimensions:t.singleItemAreaMargin,attributesKey:"singleItemAreaMargin",setAttributes:o}),Object(s.createElement)(S,{lavel:Object(b.__)("Padding","woolentor"),dimensions:t.singleItemAreaPadding,attributesKey:"singleItemAreaPadding",setAttributes:o}),Object(s.createElement)("h3",null,Object(b.__)("Alignment","woolentor")),Object(s.createElement)(m.ButtonGroup,{className:"woolentor-alignment-btn-group"},Object(s.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(s.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(s.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(s.createElement)("span",{onClick:()=>o({brandAlignment:""}),class:"woolentor-reset-btn dashicon dashicons dashicons-image-rotate"})),Object(s.createElement)("h2",{className:"woolentor-blocks-section-title",style:{marginTop:"20px"}},Object(b.__)("Brand Image","woolentor")),Object(s.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(s.createElement)(s.Fragment,null,Object(s.createElement)(S,{lavel:Object(b.__)("Border Width","woolentor"),dimensions:t.brandImageBorderWidth,attributesKey:"brandImageBorderWidth",setAttributes:o}),Object(s.createElement)("h3",{style:{marginTop:15}},Object(b.__)("Border Color","woolentor"),Object(s.createElement)("span",{style:{...n,backgroundColor:t.brandImageBorderColor}})),Object(s.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(s.createElement)(S,{lavel:Object(b.__)("Border Radius","woolentor"),dimensions:t.brandImageBorderRadius,attributesKey:"brandImageBorderRadius",setAttributes:o}))))};const de=Object(s.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(s.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 ge extends s.Component{render(){const{name:e,className:t,attributes:o,isSelected:l,setAttributes:r,clientId:n}=this.props,{blockUniqId:a}=o;""==a&&r({blockUniqId:n});const c={brandItem:{}},i=e=>{let t=o[e]?o[e]:{},l="";if(""!=t.top||""!=t.right||""!=t.bottom||""!=t.left){let e=t.unit?t.unit:"px";l=t.top?l+t.top+e+" ":"0"+e+" ",l=t.right?l+t.right+e+" ":"0"+e+" ",l=t.bottom?l+t.bottom+e+" ":"0"+e+" ",l=t.left?l+t.left+e+" ":"0"+e+" "}return l};c.brandItem=o.singleItemAreaBorderType?{...c.brandItem,borderStyle:o.singleItemAreaBorderType}:"",c.brandItem=o.singleItemAreaBorderWidth?{...c.brandItem,borderWidth:i("singleItemAreaBorderWidth")}:"",c.brandItem=o.singleItemAreaBorderRadius?{...c.brandItem,borderRadius:i("singleItemAreaBorderRadius")}:"",c.brandItem=o.singleItemAreaBorderColor?{...c.brandItem,borderColor:""+o.singleItemAreaBorderColor}:"",c.brandItem=o.singleItemAreaMargin?{...c.brandItem,margin:i("singleItemAreaMargin")}:"",c.brandItem=o.singleItemAreaPadding?{...c.brandItem,padding:i("singleItemAreaPadding")}:"";const b=o.brandLogoList.map((e,t)=>Object(s.createElement)("div",{className:"wl-col-"+o.columns,style:{paddingLeft:!o.noGutter&&o.itemSpace+"px",paddingRight:!o.noGutter&&o.itemSpace+"px"}},Object(s.createElement)("div",{className:"wl-single-brand",style:c.brandItem},e.image.url?Object(s.createElement)("img",{src:e.image.url,alt:e.title}):de)));return Object(s.createElement)(s.Fragment,null,l&&Object(s.createElement)(ue,this.props),Object(s.createElement)("div",{className:t+" wl-columns-"+o.columns},Object(s.createElement)("div",{className:!0===o.noGutter?"wl-row wlno-gutters":"wl-row"},b)))}}var pe=ge,je=o(11),Oe=Object(s.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(s.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(s.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(s.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:we,category:_e,attributes:he}=je,Ce={title:Object(b.__)("WL : Brand Logo","woolentor"),description:Object(b.__)("Display brand logo.","woolentor"),icon:Object(s.createElement)(m.Icon,{icon:Oe}),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}},attributes:he,edit:pe,save:()=>null},Ee=e=>{if(!e)return;const{name:t,category:o,settings:l}=e;Object(i.registerBlockType)(t,{category:o,...l})},fe=()=>{[l,r,n,a,c].forEach(Ee)};fe()}]);
woolentor-blocks/includes/classes/Actions.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- namespace WooLentorBlocks;
3
-
4
- // Exit if accessed directly.
5
- if ( ! defined( 'ABSPATH' ) ) {
6
- exit;
7
- }
8
-
9
- /**
10
- * Load general WP action hook
11
- */
12
- class Actions {
13
-
14
- /**
15
- * [$_instance]
16
- * @var null
17
- */
18
- private static $_instance = null;
19
-
20
- /**
21
- * [instance] Initializes a singleton instance
22
- * @return [Actions]
23
- */
24
- public static function instance() {
25
- if ( is_null( self::$_instance ) ) {
26
- self::$_instance = new self();
27
- }
28
- return self::$_instance;
29
- }
30
-
31
- /**
32
- * The Constructor.
33
- */
34
- public function __construct() {
35
- add_action( 'rest_api_init', [ $this, 'register_api' ] );
36
- }
37
-
38
- /**
39
- * Register Api
40
- */
41
- public function register_api() {
42
- $api = new Api\Api();
43
- $api->register_routes();
44
- }
45
-
46
-
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/includes/classes/Api/Api.php DELETED
@@ -1,72 +0,0 @@
1
- <?php
2
- namespace WooLentorBlocks\Api;
3
-
4
- use Exception;
5
- use WP_REST_Server;
6
-
7
- // Exit if accessed directly.
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit;
10
- }
11
-
12
- /**
13
- * Load general WP action hook
14
- */
15
- class Api {
16
-
17
- /**
18
- * The Constructor.
19
- */
20
- public function __construct() {
21
- $this->namespace = 'woolentor/v1';
22
- }
23
-
24
- /**
25
- * Resgister routes
26
- */
27
- public function register_routes() {
28
-
29
- register_rest_route( $this->namespace, 'category',
30
- [
31
- 'methods' => WP_REST_Server::READABLE,
32
- 'args' => [
33
- 'querySlug' => [],
34
- 'queryLimit' => [],
35
- 'queryOrder' => [],
36
- 'queryType' => [],
37
- 'wpnonce' => []
38
- ],
39
- 'callback' => [ $this, 'get_category_data' ],
40
- 'permission_callback' => [ $this, 'permission_check' ],
41
- ]
42
- );
43
-
44
- }
45
-
46
- /**
47
- * Api permission check
48
- */
49
- public function permission_check() {
50
- if( current_user_can( 'edit_posts' ) ){
51
- return true;
52
- }else{
53
- return false;
54
- }
55
- }
56
-
57
- /**
58
- * Get category data
59
- */
60
- public function get_category_data( $request ){
61
-
62
- if ( !wp_verify_nonce( $_REQUEST['wpnonce'], 'woolentorblock-nonce') ){
63
- return rest_ensure_response([]);
64
- }
65
-
66
- $data = woolentorBlocks_taxnomy_data( $request['querySlug'], $request['queryLimit'], $request['queryOrder'], $request['queryType'] );
67
- return rest_ensure_response( $data );
68
-
69
- }
70
-
71
-
72
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/includes/classes/Blocks_init.php CHANGED
@@ -1,51 +1,51 @@
1
- <?php
2
- namespace WooLentorBlocks;
3
-
4
- // Exit if accessed directly.
5
- if ( ! defined( 'ABSPATH' ) ) {
6
- exit;
7
- }
8
-
9
- /**
10
- * Load general WP action hook
11
- */
12
- class Blocks_init {
13
-
14
-
15
- /**
16
- * [$_instance]
17
- * @var null
18
- */
19
- private static $_instance = null;
20
-
21
- /**
22
- * [instance] Initializes a singleton instance
23
- * @return [Blocks_init]
24
- */
25
- public static function instance() {
26
- if ( is_null( self::$_instance ) ) {
27
- self::$_instance = new self();
28
- }
29
- return self::$_instance;
30
- }
31
-
32
- /**
33
- * The Constructor.
34
- */
35
- public function __construct() {
36
- $this->dynamic_blocks_include();
37
- }
38
-
39
- /**
40
- * Load Dynamic blocks
41
- */
42
- public function dynamic_blocks_include(){
43
- foreach ( glob( WOOLENTOR_BLOCK_PATH . '/src/blocks/*/index.php' ) as $woolentor_block ) {
44
- if( file_exists( $woolentor_block ) ){
45
- require_once ( $woolentor_block );
46
- }
47
- }
48
- }
49
-
50
-
51
- }
1
+ <?php
2
+ namespace WooLentorBlocks;
3
+
4
+ // Exit if accessed directly.
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+ /**
10
+ * Load general WP action hook
11
+ */
12
+ class Blocks_init {
13
+
14
+
15
+ /**
16
+ * [$_instance]
17
+ * @var null
18
+ */
19
+ private static $_instance = null;
20
+
21
+ /**
22
+ * [instance] Initializes a singleton instance
23
+ * @return [Blocks_init]
24
+ */
25
+ public static function instance() {
26
+ if ( is_null( self::$_instance ) ) {
27
+ self::$_instance = new self();
28
+ }
29
+ return self::$_instance;
30
+ }
31
+
32
+ /**
33
+ * The Constructor.
34
+ */
35
+ public function __construct() {
36
+ $this->dynamic_blocks_include();
37
+ }
38
+
39
+ /**
40
+ * Load Dynamic blocks
41
+ */
42
+ public function dynamic_blocks_include(){
43
+ foreach ( glob( WOOLENTOR_BLOCK_PATH . '/src/blocks/*/index.php' ) as $woolentor_block ) {
44
+ if( file_exists( $woolentor_block ) ){
45
+ require_once ( $woolentor_block );
46
+ }
47
+ }
48
+ }
49
+
50
+
51
+ }
woolentor-blocks/includes/classes/Scripts.php CHANGED
@@ -1,108 +1,97 @@
1
- <?php
2
- namespace WooLentorBlocks;
3
-
4
- // Exit if accessed directly.
5
- if ( ! defined( 'ABSPATH' ) ) {
6
- exit;
7
- }
8
-
9
- /**
10
- * Load general WP action hook
11
- */
12
- class Scripts {
13
-
14
- /**
15
- * [$_instance]
16
- * @var null
17
- */
18
- private static $_instance = null;
19
-
20
- /**
21
- * [instance] Initializes a singleton instance
22
- * @return [Filter]
23
- */
24
- public static function instance() {
25
- if ( is_null( self::$_instance ) ) {
26
- self::$_instance = new self();
27
- }
28
- return self::$_instance;
29
- }
30
-
31
- /**
32
- * The Constructor.
33
- */
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'],
58
- true
59
- );
60
-
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
- */
82
- public function block_editor_assets() {
83
-
84
- $styles = class_exists('\WooLentor\Assets_Management') ? \WooLentor\Assets_Management::instance()->get_styles() : array();
85
- $scripts = class_exists('\WooLentor\Assets_Management') ? \WooLentor\Assets_Management::instance()->get_scripts() : array();
86
-
87
- // Register Styles
88
- foreach ( $styles as $handle => $style ) {
89
- $deps = ( isset( $style['deps'] ) ? $style['deps'] : false );
90
- wp_register_style( $handle, $style['src'], $deps, $style['version'] );
91
- }
92
-
93
- // Register Scripts
94
- foreach ( $scripts as $handle => $script ) {
95
- $deps = ( isset( $script['deps'] ) ? $script['deps'] : false );
96
- wp_register_script( $handle, $script['src'], $deps, $script['version'], true );
97
- }
98
-
99
- wp_enqueue_style( 'font-awesome-four' );
100
- wp_enqueue_style( 'htflexboxgrid' );
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
-
108
- }
1
+ <?php
2
+ namespace WooLentorBlocks;
3
+
4
+ // Exit if accessed directly.
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+ /**
10
+ * Load general WP action hook
11
+ */
12
+ class Scripts {
13
+
14
+ /**
15
+ * [$_instance]
16
+ * @var null
17
+ */
18
+ private static $_instance = null;
19
+
20
+ /**
21
+ * [instance] Initializes a singleton instance
22
+ * @return [Filter]
23
+ */
24
+ public static function instance() {
25
+ if ( is_null( self::$_instance ) ) {
26
+ self::$_instance = new self();
27
+ }
28
+ return self::$_instance;
29
+ }
30
+
31
+ /**
32
+ * The Constructor.
33
+ */
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'],
58
+ true
59
+ );
60
+
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
+ /**
71
+ * Block editor assets.
72
+ */
73
+ public function block_editor_assets() {
74
+
75
+ $styles = class_exists('\WooLentor\Assets_Management') ? \WooLentor\Assets_Management::instance()->get_styles() : array();
76
+ $scripts = class_exists('\WooLentor\Assets_Management') ? \WooLentor\Assets_Management::instance()->get_scripts() : array();
77
+
78
+ // Register Styles
79
+ foreach ( $styles as $handle => $style ) {
80
+ $deps = ( isset( $style['deps'] ) ? $style['deps'] : false );
81
+ wp_register_style( $handle, $style['src'], $deps, $style['version'] );
82
+ }
83
+
84
+ // Register Scripts
85
+ foreach ( $scripts as $handle => $script ) {
86
+ $deps = ( isset( $script['deps'] ) ? $script['deps'] : false );
87
+ wp_register_script( $handle, $script['src'], $deps, $script['version'], true );
88
+ }
89
+
90
+ wp_enqueue_style( 'font-awesome-four' );
91
+
92
+ wp_enqueue_style( 'woolentor-block-editor-style', WOOLENTOR_BLOCK_URL . '/src/assets/css/editor-style.css', false, time(), 'all' );
93
+
94
+ }
95
+
96
+
97
+ }
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/includes/helper-functions.php CHANGED
@@ -1,112 +1,68 @@
1
- <?php
2
- // Exit if accessed directly
3
- if( ! defined( 'ABSPATH' ) ) exit();
4
-
5
- // Generate CSS
6
- function woolentorBlocks_generate_css( $settings, $attribute, $css_attr, $unit = '', $important = '' ){
7
-
8
- $value = !empty( $settings[$attribute] ) ? $settings[$attribute] : '';
9
-
10
- if( !empty( $value ) && 'NaN' !== $value ){
11
- $css_attr .= ":{$value}{$unit}";
12
- return $css_attr."{$important};";
13
- }else{
14
- return false;
15
- }
16
-
17
- }
18
-
19
- // Geterante Dimension
20
- function woolentorBlocks_Dimention_Control( $settings, $attribute, $css_attr, $important = '' ){
21
- $dimensions = !empty( $settings[$attribute] ) ? $settings[$attribute] : array();
22
-
23
- if( isset( $dimensions['top'] ) || isset( $dimensions['right'] ) || isset( $dimensions['bottom'] ) || isset( $dimensions['left'] ) ){
24
- $unit = empty( $dimensions['unit'] ) ? 'px' : $dimensions['unit'];
25
-
26
- $top = ( $dimensions['top'] !== '' ) ? $dimensions['top'].$unit : null;
27
- $right = ( $dimensions['right'] !== '' ) ? $dimensions['right'].$unit : null;
28
- $bottom = ( $dimensions['bottom'] !== '' ) ? $dimensions['bottom'].$unit : null;
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;
36
- }
37
-
38
- }
39
-
40
- // Background Image control
41
- function woolentorBlocks_Background_Control( $settings, $attribute ){
42
- $background_property = !empty( $settings[$attribute] ) ? $settings[$attribute] : array();
43
-
44
- if( !empty( $background_property['imageId'] ) ){
45
- $image_url = wp_get_attachment_image_src( $background_property['imageId'], 'full' );
46
- $background_css = "background-image:url({$image_url[0]});";
47
-
48
- if( !empty( $background_property['position'] ) ){
49
- $background_css .= "background-position:{$background_property['position']};";
50
- }
51
- if( !empty( $background_property['attachment'] ) ){
52
- $background_css .= "background-attachment:{$background_property['attachment']};";
53
- }
54
- if( !empty( $background_property['repeat'] ) ){
55
- $background_css .= "background-repeat:{$background_property['repeat']};";
56
- }
57
- if( !empty( $background_property['size'] ) ){
58
- $background_css .= "background-size:{$background_property['size']};";
59
- }
60
-
61
- return $background_css;
62
-
63
- }else{
64
- return false;
65
- }
66
-
67
- }
68
-
69
- /**
70
- * Get Category data
71
- */
72
- function woolentorBlocks_taxnomy_data( $taxnomySlug = '', $number = 20, $order = 'asc', $type = '' ){
73
-
74
- $data = array();
75
- $taxnomyKey = 'product_cat';
76
-
77
- $queryArg = array(
78
- 'orderby' => 'name',
79
- 'order' => $order,
80
- 'number' => $number,
81
- 'hide_empty' => true,
82
- );
83
-
84
- if( !empty( $taxnomySlug ) ){
85
- $queryArg['slug'] = $taxnomySlug;
86
- }
87
-
88
- $term_data = get_terms( 'product_cat', $queryArg );
89
-
90
- if( !empty( $term_data ) && !is_wp_error( $term_data ) ){
91
-
92
- foreach ( $term_data as $terms ) {
93
- $tempData = array();
94
- $thumbnail_id = get_term_meta( $terms->term_id, 'thumbnail_id', true ) ? get_term_meta( $terms->term_id, 'thumbnail_id', true ) : '';
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'] = [
101
- 'src' => $image_src,
102
- 'id' => $thumbnail_id,
103
- 'placeholderImg' => wc_placeholder_img_src( 'woocommerce_single' )
104
- ];
105
- $data[] = $tempData;
106
- }
107
-
108
- }
109
-
110
- return $data;
111
-
112
  }
1
+ <?php
2
+ // Exit if accessed directly
3
+ if( ! defined( 'ABSPATH' ) ) exit();
4
+
5
+ // Generate CSS
6
+ function woolentorBlocks_generate_css( $settings, $attribute, $css_attr, $unit = '', $important = '' ){
7
+
8
+ $value = !empty( $settings[$attribute] ) ? $settings[$attribute] : '';
9
+
10
+ if( !empty( $value ) && 'NaN' !== $value ){
11
+ $css_attr .= ":{$value}{$unit}";
12
+ return $css_attr."{$important};";
13
+ }else{
14
+ return false;
15
+ }
16
+
17
+ }
18
+
19
+ // Geterante Dimension
20
+ function woolentorBlocks_Dimention_Control( $settings, $attribute, $css_attr, $important = '' ){
21
+ $dimensions = !empty( $settings[$attribute] ) ? $settings[$attribute] : array();
22
+
23
+ if( isset( $dimensions['top'] ) || isset( $dimensions['right'] ) || isset( $dimensions['bottom'] ) || isset( $dimensions['left'] ) ){
24
+ $unit = empty( $dimensions['unit'] ) ? 'px' : $dimensions['unit'];
25
+
26
+ $top = ( $dimensions['top'] !== '' ) ? $dimensions['top'].$unit : null;
27
+ $right = ( $dimensions['right'] !== '' ) ? $dimensions['right'].$unit : null;
28
+ $bottom = ( $dimensions['bottom'] !== '' ) ? $dimensions['bottom'].$unit : null;
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;
36
+ }
37
+
38
+ }
39
+
40
+ // Background Image control
41
+ function woolentorBlocks_Background_Control( $settings, $attribute ){
42
+ $background_property = !empty( $settings[$attribute] ) ? $settings[$attribute] : array();
43
+
44
+ if( !empty( $background_property['imageId'] ) ){
45
+ $image_url = wp_get_attachment_image_src( $background_property['imageId'], 'full' );
46
+ $background_css = "background-image:url({$image_url[0]});";
47
+
48
+ if( !empty( $background_property['position'] ) ){
49
+ $background_css .= "background-position:{$background_property['position']};";
50
+ }
51
+ if( !empty( $background_property['attachment'] ) ){
52
+ $background_css .= "background-attachment:{$background_property['attachment']};";
53
+ }
54
+ if( !empty( $background_property['repeat'] ) ){
55
+ $background_css .= "background-repeat:{$background_property['repeat']};";
56
+ }
57
+ if( !empty( $background_property['size'] ) ){
58
+ $background_css .= "background-size:{$background_property['size']};";
59
+ }
60
+
61
+ return $background_css;
62
+
63
+ }else{
64
+ return false;
65
+ }
66
+
67
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
woolentor-blocks/src/assets/css/editor-style.css CHANGED
@@ -1,194 +1,161 @@
1
- .wp-core-ui .wp-block-woolentor-product-tab .button:hover{
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
- }
14
- span.woolentor-reset-btn {
15
- margin-left: 5px;
16
- cursor: pointer;
17
- }
18
- span.woolentor-reset-btn:hover{
19
- color: #007cba;
20
- }
21
-
22
- .wp-block-image-selector-woolentor-image-uploader{
23
- margin-bottom: 15px;
24
- }
25
-
26
- .wp-block-image-selector-woolentor-image-uploader .components-spinner {
27
- margin: 0;
28
- float: none;
29
- }
30
-
31
- .wp-block-image-selector-woolentor-image-uploader .components-button + .wp-block-image-selector-woolentor-image-uploader .components-button {
32
- margin-top: 1em;
33
- margin-right: 8px;
34
- }
35
- .wp-block-image-selector-woolentor-image-uploader .is-destructive{
36
- float: right;
37
- margin-top: 5px;
38
- }
39
- .editor-styles-wrapper .wp-block-woolentor-special-day-offer p,.editor-styles-wrapper .wp-block-woolentor-special-day-offer h2,.editor-styles-wrapper .wp-block-woolentor-special-day-offer h6{
40
- margin-top: 0;
41
- margin-bottom: 0;
42
- }
43
-
44
- /* Category grid */
45
- .wp-block-woolentor-category-grid .components-spinner{
46
- margin: 0 auto;
47
- }
48
- .product-slider .slick-arrow{
49
- display: block !important;
50
- }
51
- .product-slider .slick-arrow i{
52
- font-style: normal !important;
53
- }
54
- .product-slider .slick-dots{
55
- display: flex !important;
56
- }
57
- /* Section Title */
58
- h2.woolentor-blocks-section-title {
59
- margin: 0;
60
- padding: 10px 0 10px 10px;
61
- box-shadow: 0 0px 4px rgb(0 0 0 / 10%);
62
- text-align: center;
63
- font-size: 14px;
64
- text-transform: uppercase;
65
- font-weight: bold;
66
- margin-bottom: 15px;
67
- background-color: #eee;
68
- }
69
-
70
- /* Dimensions control */
71
- .wp-block-selector-woolentor-dimensions-control{
72
- margin: 15px 0;
73
- }
74
- .wp-block-selector-woolentor-dimensions-control .components-panel__row{
75
- align-items: flex-start;
76
- }
77
- .wp-block-selector-woolentor-dimensions-control h3{
78
- margin: 0 0 5px 0;
79
- }
80
- .wp-block-selector-woolentor-dimensions-control .components-flex__item{
81
- margin: 0;
82
- text-align: center;
83
- }
84
- .wp-block-selector-woolentor-dimensions-control .components-flex__item label{
85
- font-size: 10px;
86
- text-transform: uppercase;
87
- }
88
- .wp-block-selector-woolentor-dimensions-control .components-base-control__field{
89
- display: flex;
90
- flex-flow: row wrap;
91
- flex-direction: column-reverse;
92
- margin: 0 !important;
93
- }
94
- .wp-block-selector-woolentor-dimensions-control .components-base-control__label{
95
- margin-bottom: -3px;
96
- margin-left: 3px;
97
- margin-right: 0;
98
- }
99
- .wp-block-selector-woolentor-dimensions-control .components-input-control__backdrop{
100
- border-right: 0 !important;
101
- border-radius: 0 !important;
102
- }
103
- .wp-block-selector-woolentor-dimensions-control .components-text-control__input{
104
- border-radius: 0;
105
- margin-left: 0px;
106
- padding: 5px 8px;
107
- margin-top: 1px;
108
- }
109
- .wp-block-selector-woolentor-dimensions-control .components-input-control{
110
- align-items: center;
111
- }
112
- .wp-block-selector-woolentor-dimensions-control button.components-button.has-icon{
113
- height: 100%;
114
- width: auto;
115
- padding: 4px 3px;
116
- border-radius: 0;
117
- border: 1px solid #222;
118
- }
119
- .wp-block-selector-woolentor-dimensions-control button.components-button.has-icon .dashicon{
120
- margin-right: 0;
121
- }
122
- .wp-block-selector-woolentor-dimensions-control button.components-button.has-icon:focus,.wp-block-selector-woolentor-dimensions-control .woolentor-dimensions-btn-group button:focus,.wp-block-selector-woolentor-dimensions-control .components-button.is-secondary.has-icon{
123
- box-shadow: none !important;
124
- }
125
- .wp-block-selector-woolentor-dimensions-control .woolentor-dimensions-btn-group button{
126
- padding: 1px 7px;
127
- height: auto;
128
- }
129
- .woolentor-panel-row-height-auto{
130
- min-height: inherit;
131
- }
132
-
133
- /* Background Control */
134
- .wp-block-selector-woolentor-background-control .components-select-control .components-flex__item,.wp-block-selector-woolentor-background-control .components-select-control .components-input-control__container{
135
- width: 50% !important;
136
- flex: 0 1 50%;
137
- }
138
-
139
- /* Repeter Field style */
140
- .woolentor_repeater-fields .woolentor_repeater-controls:not(.woolentor_active_repeter) {
141
- display: none;
142
- }
143
- .woolentor_repeater-fields {
144
- margin: 10px 0;
145
- }
146
- .woolentor_repeater-tools {
147
- display: flex;
148
- justify-content: space-between;
149
- align-items: center;
150
- border: 1px solid #d5dadf;
151
- cursor: pointer;
152
- }
153
- .woolentor_repeater-item-title {
154
- margin-left: 10px;
155
- }
156
- .woolentor_repeater-tools .components-button.has-icon{
157
- padding: 0;
158
- border-left: 1px solid #d5dadf;
159
- border-radius: 0;
160
- }
161
- .woolentor_repeater-tools .components-button.has-icon .dashicon{
162
- margin: 0;
163
- }
164
- .woolentor_repeater-controls {
165
- border: 1px solid #d5dadf;
166
- padding: 10px;
167
- border-top: 0;
168
- }
169
-
170
- /* Taxonomy Field style */
171
- .woolentor-component-taxonomy-area {
172
- margin-bottom: 20px;
173
- }
174
- .woolentor-component-taxonomy-fileds {
175
- max-height: 290px;
176
- overflow: hidden;
177
- transition: 0.4s;
178
- }
179
- .woolentor-component-taxonomy-fileds:hover{
180
- overflow-y: auto;
181
- }
182
- .woolentor-component-taxonomy-fileds::-webkit-scrollbar {
183
- width: 5px;
184
- }
185
- .woolentor-component-taxonomy-fileds::-webkit-scrollbar-track {
186
- background: #f1f1f1;
187
- }
188
- .woolentor-component-taxonomy-fileds::-webkit-scrollbar-thumb {
189
- background: #888;
190
- border-radius: 5px;
191
- }
192
- .woolentor-component-taxonomy-fileds::-webkit-scrollbar-thumb:hover {
193
- background: #555;
194
  }
1
+ .wp-block-woolentor-image-marker .wlb_image_pointer .wlb_pointer_box h4{
2
+ margin-top: 0;
3
+ }
4
+ .wp-core-ui .wp-block-woolentor-product-tab .button:hover{
5
+ background-color: inherit;
6
+ border-radius: 20px;
7
+ }
8
+ .wp-core-ui select[multiple] {
9
+ height: auto !important;
10
+ }
11
+ .woolentor-alignment-btn-group{
12
+ justify-content: start;
13
+ align-items: center;
14
+ display: flex;
15
+ }
16
+
17
+ .woolentor-alignment-btn-group button:focus{
18
+ box-shadow: none !important;
19
+ }
20
+ span.woolentor-reset-btn {
21
+ margin-left: 5px;
22
+ cursor: pointer;
23
+ }
24
+ span.woolentor-reset-btn:hover{
25
+ color: #007cba;
26
+ }
27
+
28
+ .wp-block-image-selector-woolentor-image-uploader{
29
+ margin-bottom: 15px;
30
+ }
31
+
32
+ .wp-block-image-selector-woolentor-image-uploader .components-spinner {
33
+ margin: 0;
34
+ float: none;
35
+ }
36
+
37
+ .wp-block-image-selector-woolentor-image-uploader .components-button + .wp-block-image-selector-woolentor-image-uploader .components-button {
38
+ margin-top: 1em;
39
+ margin-right: 8px;
40
+ }
41
+ .wp-block-image-selector-woolentor-image-uploader .is-destructive{
42
+ float: right;
43
+ margin-top: 5px;
44
+ }
45
+ .editor-styles-wrapper .wp-block-woolentor-special-day-offer p,.editor-styles-wrapper .wp-block-woolentor-special-day-offer h2,.editor-styles-wrapper .wp-block-woolentor-special-day-offer h6{
46
+ margin-top: 0;
47
+ margin-bottom: 0;
48
+ }
49
+
50
+ /* Section Title */
51
+ h2.woolentor-blocks-section-title {
52
+ margin: 0;
53
+ padding: 10px 0 10px 10px;
54
+ box-shadow: 0 0px 4px rgb(0 0 0 / 10%);
55
+ text-align: center;
56
+ font-size: 14px;
57
+ text-transform: uppercase;
58
+ font-weight: bold;
59
+ margin-bottom: 15px;
60
+ background-color: #eee;
61
+ }
62
+
63
+ /* Dimensions control */
64
+ .wp-block-selector-woolentor-dimensions-control{
65
+ margin: 15px 0;
66
+ }
67
+ .wp-block-selector-woolentor-dimensions-control .components-panel__row{
68
+ align-items: flex-start;
69
+ }
70
+ .wp-block-selector-woolentor-dimensions-control h3{
71
+ margin: 0 0 5px 0;
72
+ }
73
+ .wp-block-selector-woolentor-dimensions-control .components-flex__item{
74
+ margin: 0;
75
+ text-align: center;
76
+ }
77
+ .wp-block-selector-woolentor-dimensions-control .components-flex__item label{
78
+ font-size: 10px;
79
+ text-transform: uppercase;
80
+ }
81
+ .wp-block-selector-woolentor-dimensions-control .components-base-control__field{
82
+ display: flex;
83
+ flex-flow: row wrap;
84
+ flex-direction: column-reverse;
85
+ margin: 0 !important;
86
+ }
87
+ .wp-block-selector-woolentor-dimensions-control .components-base-control__label{
88
+ margin-bottom: -3px;
89
+ margin-left: 3px;
90
+ margin-right: 0;
91
+ }
92
+ .wp-block-selector-woolentor-dimensions-control .components-input-control__backdrop{
93
+ border-right: 0 !important;
94
+ border-radius: 0 !important;
95
+ }
96
+ .wp-block-selector-woolentor-dimensions-control .components-text-control__input{
97
+ border-radius: 0;
98
+ margin-left: 0px;
99
+ padding: 5px 8px;
100
+ margin-top: 1px;
101
+ }
102
+ .wp-block-selector-woolentor-dimensions-control .components-input-control{
103
+ align-items: center;
104
+ }
105
+ .wp-block-selector-woolentor-dimensions-control button.components-button.has-icon{
106
+ height: 100%;
107
+ width: auto;
108
+ padding: 4px 3px;
109
+ border-radius: 0;
110
+ border: 1px solid #222;
111
+ }
112
+ .wp-block-selector-woolentor-dimensions-control button.components-button.has-icon .dashicon{
113
+ margin-right: 0;
114
+ }
115
+ .wp-block-selector-woolentor-dimensions-control button.components-button.has-icon:focus,.wp-block-selector-woolentor-dimensions-control .woolentor-dimensions-btn-group button:focus{
116
+ box-shadow: none !important;
117
+ }
118
+ .wp-block-selector-woolentor-dimensions-control .woolentor-dimensions-btn-group button{
119
+ padding: 1px 7px;
120
+ height: auto;
121
+ }
122
+ .woolentor-panel-row-height-auto{
123
+ min-height: inherit;
124
+ }
125
+
126
+ /* Background Control */
127
+ .wp-block-selector-woolentor-background-control .components-select-control .components-flex__item,.wp-block-selector-woolentor-background-control .components-select-control .components-input-control__container{
128
+ width: 50% !important;
129
+ flex: 0 0 50% !important;
130
+ }
131
+
132
+ /* Repeter Field style */
133
+ .woolentor_repeater-fields .woolentor_repeater-controls {
134
+ display: none;
135
+ }
136
+ .woolentor_repeater-fields {
137
+ margin: 10px 0;
138
+ }
139
+ .woolentor_repeater-tools {
140
+ display: flex;
141
+ justify-content: space-between;
142
+ align-items: center;
143
+ border: 1px solid #d5dadf;
144
+ cursor: pointer;
145
+ }
146
+ .woolentor_repeater-item-title {
147
+ margin-left: 10px;
148
+ }
149
+ .woolentor_repeater-tools .components-button.has-icon{
150
+ padding: 0;
151
+ border-left: 1px solid #d5dadf;
152
+ border-radius: 0;
153
+ }
154
+ .woolentor_repeater-tools .components-button.has-icon .dashicon{
155
+ margin: 0;
156
+ }
157
+ .woolentor_repeater-controls {
158
+ border: 1px solid #d5dadf;
159
+ padding: 10px;
160
+ border-top: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  }
woolentor-blocks/src/assets/css/style-index.css CHANGED
@@ -1,90 +1,17 @@
1
- .wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4{
2
- margin: 0 0 7px 0;
3
- }
4
- .editor-styles-wrapper .ht-feature-content h4,.editor-styles-wrapper .ht-feature-content p{
5
- margin-top: 0;
6
- margin-bottom: 0;
7
- }
8
-
9
- .woolentor-text-align-left{
10
- text-align: left !important;
11
- }
12
- .woolentor-text-align-right{
13
- text-align: right !important;
14
- }
15
- .woolentor-text-align-center{
16
- text-align: center !important;
17
- }
18
- [class*="woolentor"] a{
19
- text-decoration: none !important;
20
- }
21
-
22
-
23
- /* Alignment support */
24
- [class*="woolentor"].alignfull {
25
- margin-left: calc(-50vw + 50%);
26
- margin-right: calc(-50vw + 50%);
27
- max-width: 100vw;
28
- width: 100vw;
29
- padding: 0 15px;
30
- }
31
- [class*="woolentor"].alignwide {
32
- margin-left: -100px;
33
- margin-right: -100px;
34
- max-width: unset;
35
- width: unset;
36
- }
37
-
38
- [class*="woolentor"].alignfull .alignfull,
39
- [class*="woolentor"].alignfull .alignwide {
40
- width: 100%;
41
- margin-left: auto;
42
- margin-right: auto;
43
- }
44
-
45
- [class*="woolentor"].alignwide .alignfull,
46
- [class*="woolentor"].alignwide .alignwide {
47
- width: 100%;
48
- margin-left: auto;
49
- margin-right: auto;
50
- }
51
-
52
- .wp-block-column [class*="woolentor"].alignfull,
53
- .wp-block-column [class*="woolentor"].alignwide {
54
- margin-left: auto;
55
- margin-right: auto;
56
- width: 100%;
57
- }
58
-
59
- @media (max-width: 1200px) {
60
- [class*="woolentor"].alignfull {
61
- margin-left: -2.4em;
62
- margin-right: -2.4em;
63
- }
64
- }
65
-
66
- @media (max-width: 768px) {
67
- [class*="woolentor"].alignfull {
68
- margin-left: -2.14em;
69
- margin-right: -2.14em;
70
- }
71
- }
72
-
73
- @media (max-width: 544px) {
74
- [class*="woolentor"].alignfull {
75
- margin-left: -1em;
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
  }
1
+ .wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4{
2
+ margin: 0 0 7px 0;
3
+ }
4
+ .editor-styles-wrapper .ht-feature-content h4,.editor-styles-wrapper .ht-feature-content p{
5
+ margin-top: 0;
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ .woolentor-text-align-left{
10
+ text-align: left !important;
11
+ }
12
+ .woolentor-text-align-right{
13
+ text-align: right !important;
14
+ }
15
+ .woolentor-text-align-center{
16
+ text-align: center !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  }
woolentor-blocks/src/assets/js/script.js CHANGED
@@ -28,7 +28,7 @@
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;
@@ -48,7 +48,7 @@
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,
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 = settings['fade'];
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;
48
  autoplay: autoplay,
49
  autoplaySpeed: autoplay_speed,
50
  speed: animation_speed,
51
+ fade: false,
52
  pauseOnHover: pause_on_hover,
53
  slidesToShow: display_columns,
54
  slidesToScroll: scroll_columns,
woolentor-blocks/src/blocks/brand-logo/block.json CHANGED
@@ -56,8 +56,7 @@
56
  "right":"",
57
  "bottom":"",
58
  "left":"",
59
- "unit":"px",
60
- "link":"yes"
61
  },
62
  "selector": ".wl-single-brand"
63
  },
@@ -72,8 +71,7 @@
72
  "right":"",
73
  "bottom":"",
74
  "left":"",
75
- "unit":"px",
76
- "link":"yes"
77
  },
78
  "selector": ".wl-single-brand"
79
  },
@@ -84,8 +82,7 @@
84
  "right":"",
85
  "bottom":"",
86
  "left":"",
87
- "unit":"px",
88
- "link":"yes"
89
  },
90
  "selector": ".wl-single-brand"
91
  },
@@ -96,8 +93,7 @@
96
  "right":"",
97
  "bottom":"",
98
  "left":"",
99
- "unit":"px",
100
- "link":"yes"
101
  },
102
  "selector": ".wl-single-brand"
103
  },
@@ -118,8 +114,7 @@
118
  "right":"",
119
  "bottom":"",
120
  "left":"",
121
- "unit":"px",
122
- "link":"yes"
123
  },
124
  "selector": ".wl-single-brand img"
125
  },
@@ -134,8 +129,7 @@
134
  "right":"",
135
  "bottom":"",
136
  "left":"",
137
- "unit":"px",
138
- "link":"yes"
139
  },
140
  "selector": ".wl-single-brand img"
141
  }
56
  "right":"",
57
  "bottom":"",
58
  "left":"",
59
+ "unit":"px"
 
60
  },
61
  "selector": ".wl-single-brand"
62
  },
71
  "right":"",
72
  "bottom":"",
73
  "left":"",
74
+ "unit":"px"
 
75
  },
76
  "selector": ".wl-single-brand"
77
  },
82
  "right":"",
83
  "bottom":"",
84
  "left":"",
85
+ "unit":"px"
 
86
  },
87
  "selector": ".wl-single-brand"
88
  },
93
  "right":"",
94
  "bottom":"",
95
  "left":"",
96
+ "unit":"px"
 
97
  },
98
  "selector": ".wl-single-brand"
99
  },
114
  "right":"",
115
  "bottom":"",
116
  "left":"",
117
+ "unit":"px"
 
118
  },
119
  "selector": ".wl-single-brand img"
120
  },
129
  "right":"",
130
  "bottom":"",
131
  "left":"",
132
+ "unit":"px"
 
133
  },
134
  "selector": ".wl-single-brand img"
135
  }
woolentor-blocks/src/blocks/brand-logo/index.php CHANGED
@@ -1,149 +1,143 @@
1
- <?php
2
- // Exit if accessed directly.
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
- class WooLentorBlocks_Brand_Logo{
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/brand-logo/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
- 'editor_style' => 'woolentor-store-feature',
51
- 'style' => 'woolentor-store-feature'
52
- )
53
- );
54
-
55
- }
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 ) ); ?>">
133
- <div class="wl-single-brand">
134
- <?php echo $logo; ?>
135
- </div>
136
- </div>
137
- <?php
138
- }
139
- echo '</div>';
140
- }
141
- ?>
142
- </div>
143
- </div>
144
- <?php
145
- return ob_get_clean();
146
- }
147
-
148
- }
149
  WooLentorBlocks_Brand_Logo::instance();
1
+ <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WooLentorBlocks_Brand_Logo{
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/brand-logo/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
+ 'editor_style' => 'woolentor-store-feature',
51
+ 'style' => 'woolentor-store-feature'
52
+ )
53
+ );
54
+
55
+ }
56
+
57
+ public function render_content( $settings, $content ){
58
+
59
+ $uniqClass = 'woolentor-'.$settings['blockUniqId'];
60
+ $classes = array( $uniqClass, 'ht-brand-wrap' );
61
+
62
+ !empty( $settings['className'] ) ? $classes[] = $settings['className'] : '';
63
+ !empty( $settings['columns'] ) ? $classes[] = 'wl-columns-'.$settings['columns'] : 'wl-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
+
69
+ /** Custom Styles */
70
+ $singleItemAreaBorderType = woolentorBlocks_generate_css( $settings, 'singleItemAreaBorderType', 'border-style' );
71
+ $singleItemAreaBorderWidth = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaBorderWidth', 'border-width' );
72
+ $singleItemAreaBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaBorderRadius', 'border-radius' );
73
+ $singleItemAreaMargin = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaMargin', 'margin' );
74
+ $singleItemAreaPadding = woolentorBlocks_Dimention_Control( $settings, 'singleItemAreaPadding', 'padding' );
75
+ $brandAlignment = woolentorBlocks_generate_css( $settings, 'brandAlignment', 'text-align' );
76
+ $singleItemAreaBorderColor = woolentorBlocks_generate_css( $settings, 'singleItemAreaBorderColor', 'border-color' );
77
+
78
+ $brandImageBorderType = woolentorBlocks_generate_css( $settings, 'brandImageBorderType', 'border-style' );
79
+ $brandImageBorderWidth = woolentorBlocks_Dimention_Control( $settings, 'brandImageBorderWidth', 'border-width' );
80
+ $brandImageBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'brandImageBorderRadius', 'border-radius' );
81
+ $brandImageBorderColor = woolentorBlocks_generate_css( $settings, 'brandImageBorderColor', 'border-color' );
82
+
83
+ $all_styles = "
84
+ .{$uniqClass} .wl-single-brand{
85
+ {$singleItemAreaBorderType}
86
+ {$singleItemAreaBorderWidth}
87
+ {$singleItemAreaBorderRadius}
88
+ {$singleItemAreaMargin}
89
+ {$singleItemAreaPadding}
90
+ {$brandAlignment}
91
+ {$singleItemAreaBorderColor}
92
+ }
93
+ .{$uniqClass} .wl-single-brand img{
94
+ {$brandImageBorderType}
95
+ {$brandImageBorderWidth}
96
+ {$brandImageBorderRadius}
97
+ {$brandImageBorderColor}
98
+ }
99
+ .{$uniqClass} .wl-row > [class*='col-']{
100
+ padding: 0 {$settings['itemSpace']}px;
101
+ }
102
+ ";
103
+
104
+ ob_start();
105
+ ?>
106
+ <style><?php echo $all_styles; ?></style>
107
+ <div class="<?php echo implode(' ', $classes ); ?>">
108
+ <?php
109
+ $collumval = 'wl-col-6';
110
+ if( !empty( $settings['columns'] ) ){
111
+ $collumval = 'wl-col-'.$settings['columns'];
112
+ }
113
+
114
+ if( is_array( $brands ) ){
115
+ echo '<div class="wl-row '.( $settings['noGutter'] === true ? 'wlno-gutters' : '' ).'">';
116
+ foreach ( $brands as $key => $brand ) {
117
+
118
+ $image = !empty( $brand['image']['id'] ) ? wp_get_attachment_image( $brand['image']['id'], 'full' ) : $default_img;
119
+
120
+ if( !empty( $brand['link'] ) ){
121
+ $logo = sprintf('<a href="%s" target="_blank">%s</a>',esc_url( $brand['link'] ), $image );
122
+ }else{
123
+ $logo = $image;
124
+ }
125
+
126
+ ?>
127
+ <div class="<?php echo esc_attr( esc_attr( $collumval ) ); ?>">
128
+ <div class="wl-single-brand">
129
+ <?php echo $logo; ?>
130
+ </div>
131
+ </div>
132
+ <?php
133
+ }
134
+ echo '</div>';
135
+ }
136
+ ?>
137
+ </div>
138
+ <?php
139
+ return ob_get_clean();
140
+ }
141
+
142
+ }
 
 
 
 
 
 
143
  WooLentorBlocks_Brand_Logo::instance();
woolentor-blocks/src/blocks/category-grid/block.json DELETED
@@ -1,181 +0,0 @@
1
- {
2
- "name": "woolentor/category-grid",
3
- "category": "woolentor-blocks",
4
- "attributes": {
5
- "blockUniqId":{
6
- "type": "string",
7
- "default": ""
8
- },
9
- "style":{
10
- "type": "string",
11
- "default": "1"
12
- },
13
- "displayType":{
14
- "type": "string",
15
- "default": "allCat"
16
- },
17
- "productCategory":{
18
- "type": "string"
19
- },
20
- "productCategories":{
21
- "type": "array",
22
- "default": []
23
- },
24
- "order":{
25
- "type": "string",
26
- "default": "asc"
27
- },
28
- "displayLimit":{
29
- "type": "number",
30
- "default": 6
31
- },
32
- "showCount":{
33
- "type": "boolean",
34
- "default": true
35
- },
36
- "sliderOn":{
37
- "type": "boolean",
38
- "default": false
39
- },
40
- "slitems":{
41
- "type": "number",
42
- "default": 3
43
- },
44
- "slarrows":{
45
- "type": "boolean",
46
- "default": true
47
- },
48
- "sldots":{
49
- "type": "boolean",
50
- "default": false
51
- },
52
- "slpauseOnHover":{
53
- "type": "boolean",
54
- "default": true
55
- },
56
- "slIsrtl":{
57
- "type": "boolean",
58
- "default": false
59
- },
60
- "slautolay":{
61
- "type": "boolean",
62
- "default": false
63
- },
64
- "slautoplaySpeed":{
65
- "type": "number",
66
- "default": 3000
67
- },
68
- "slanimationSpeed":{
69
- "type": "number",
70
- "default": 300
71
- },
72
- "slscrollItem":{
73
- "type": "number",
74
- "default": 3
75
- },
76
- "sltabletDisplayColumns":{
77
- "type": "number",
78
- "default": 2
79
- },
80
- "sltabletScrollColumns":{
81
- "type": "number",
82
- "default": 2
83
- },
84
- "sltabletWidth":{
85
- "type": "number",
86
- "default": 750
87
- },
88
- "slMobileDisplayColumns":{
89
- "type": "number",
90
- "default": 1
91
- },
92
- "slMobileScrollColumns":{
93
- "type": "number",
94
- "default": 1
95
- },
96
- "slMobileWidth":{
97
- "type": "number",
98
- "default": 480
99
- },
100
- "columns":{
101
- "type": "number",
102
- "default": 3
103
- },
104
- "noGutter":{
105
- "type": "boolean",
106
- "default": false
107
- },
108
- "itemSpace":{
109
- "type": "number",
110
- "default": 15
111
- },
112
- "areaPadding": {
113
- "type": "object",
114
- "default": {
115
- "top":"",
116
- "right":"",
117
- "bottom":"",
118
- "left":"",
119
- "unit":"px",
120
- "link":"yes"
121
- }
122
- },
123
- "areaBackgroundColor":{
124
- "type":"string"
125
- },
126
- "imageBoxColor":{
127
- "type":"string",
128
- "selector":".ht-category-wrap .ht-category-image a.ht-category-border::before"
129
- },
130
- "imageMargin": {
131
- "type": "object",
132
- "default": {
133
- "top":"",
134
- "right":"",
135
- "bottom":"",
136
- "left":"",
137
- "unit":"px",
138
- "link":"yes"
139
- },
140
- "selector": ".ht-category-wrap .ht-category-image"
141
- },
142
- "imageBorderRadius": {
143
- "type": "object",
144
- "default": {
145
- "top":"",
146
- "right":"",
147
- "bottom":"",
148
- "left":"",
149
- "unit":"px",
150
- "link":"yes"
151
- },
152
- "selector": ".ht-category-wrap .ht-category-image"
153
- },
154
- "titleColor":{
155
- "type":"string",
156
- "selector":".ht-category-wrap .ht-category-content h3 a"
157
- },
158
- "titleHoverColor":{
159
- "type":"string",
160
- "selector":".ht-category-wrap .ht-category-content h3 a:hover"
161
- },
162
- "titleMargin": {
163
- "type": "object",
164
- "default": {
165
- "top":"",
166
- "right":"",
167
- "bottom":"",
168
- "left":"",
169
- "unit":"px",
170
- "link":"yes"
171
- },
172
- "selector": ".ht-category-wrap .ht-category-content h3"
173
- },
174
- "countColor":{
175
- "type":"string"
176
- },
177
- "countBeforeColor":{
178
- "type":"string"
179
- }
180
- }
181
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/src/blocks/category-grid/index.php DELETED
@@ -1,326 +0,0 @@
1
- <?php
2
- // Exit if accessed directly.
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
- class WooLentorBlocks_Category_Grid{
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/category-grid/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
- 'editor_style' => 'woolentor-category-grid',
51
- 'style' => 'woolentor-category-grid',
52
- 'script' => 'slick',
53
- )
54
- );
55
-
56
- }
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' : '';
69
-
70
- $display_type = $settings['displayType'];
71
- $order = ! empty( $settings['order'] ) ? $settings['order'] : '';
72
-
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(
82
- 'orderby' => 'name',
83
- 'order' => $order,
84
- 'hide_empty' => true,
85
- );
86
-
87
- if( $display_type == 'singleCat' ){
88
- $product_category = $settings['productCategory'];
89
- $catargs['slug'] = $product_category;
90
- }
91
- elseif( $display_type == 'multipleCat' ){
92
- $product_categories = !empty( $settings['productCategories'] ) ? $settings['productCategories'] : array();
93
- if( is_array( $product_categories ) && count( $product_categories ) > 0 ){
94
- $catargs['slug'] = $product_categories;
95
- }
96
- }else{
97
- $catargs['slug'] = '';
98
- }
99
-
100
- if( $display_type == 'allCat' ){
101
- $catargs['number'] = $settings['displayLimit'];
102
- }else{
103
- $catargs['number'] = 20;
104
- }
105
-
106
- $prod_categories = woolentorBlocks_taxnomy_data( $catargs['slug'], $catargs['number'], $catargs['order'] );
107
-
108
- $image_size = 'full';
109
-
110
- // Slider Options
111
- $slider_settings = array();
112
- $sliderOptions = $direction = '';
113
- if( $settings['sliderOn'] === true ){
114
-
115
- $rowClasses[] = 'product-slider';
116
-
117
- $direction = $settings['slIsrtl'] ? 'dir=rtl' : 'dir=ltr';
118
- $slider_settings = [
119
- 'arrows' => (true === $settings['slarrows']),
120
- 'dots' => (true === $settings['sldots']),
121
- 'autoplay' => (true === $settings['slautolay']),
122
- 'autoplay_speed' => absint($settings['slautoplaySpeed']),
123
- 'animation_speed' => absint($settings['slanimationSpeed']),
124
- 'pause_on_hover' => ('yes' === $settings['slpauseOnHover']),
125
- 'rtl' => ( true === $settings['slIsrtl'] ),
126
- ];
127
-
128
- $slider_responsive_settings = [
129
- 'product_items' => $settings['slitems'],
130
- 'scroll_columns' => $settings['slscrollItem'],
131
- 'tablet_width' => $settings['sltabletWidth'],
132
- 'tablet_display_columns' => $settings['sltabletDisplayColumns'],
133
- 'tablet_scroll_columns' => $settings['sltabletScrollColumns'],
134
- 'mobile_width' => $settings['slMobileWidth'],
135
- 'mobile_display_columns' => $settings['slMobileDisplayColumns'],
136
- 'mobile_scroll_columns' => $settings['slMobileScrollColumns'],
137
-
138
- ];
139
- $slider_settings = array_merge( $slider_settings, $slider_responsive_settings );
140
- $sliderOptions = 'data-settings='.wp_json_encode( $slider_settings );
141
- }else{
142
- $sliderOptions = '';
143
- $direction = '';
144
- }
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
209
- $topSpace = '';
210
- foreach ( $prod_categories as $key => $prod_cat ):
211
- $bgc++;
212
- $counter++;
213
-
214
- $cat_thumb_id = $prod_cat['image']['id'];
215
- $thumbnails = $cat_thumb_id ? wp_get_attachment_image( $cat_thumb_id, $image_size ) : '';
216
-
217
- ?>
218
- <div class="<?php echo esc_attr( $collumval ); echo esc_attr( $topSpace ); ?>">
219
-
220
- <?php if( '1' === $layout ): ?>
221
- <div class="ht-category-wrap">
222
- <?php if( !empty( $thumbnails ) ):?>
223
- <div class="ht-category-image ht-category-image-zoom">
224
- <a class="ht-category-border" href="<?php echo esc_url( $prod_cat['link'] ); ?>">
225
- <?php echo $thumbnails; ?>
226
- </a>
227
- </div>
228
- <?php endif; ?>
229
-
230
- <div class="ht-category-content">
231
- <h3><a href="<?php echo esc_url( $prod_cat['link'] ); ?>"><?php echo esc_html__( $prod_cat['name'], 'woolentor' ); ?></a></h3>
232
- <?php
233
- if( $settings['showCount'] === true ){
234
- echo '<span>'.esc_html__( $prod_cat['count'], 'woolentor' ).'</span>';
235
- }
236
- ?>
237
- </div>
238
- </div>
239
-
240
- <?php elseif( '2' === $layout ):?>
241
- <div class="ht-category-wrap-2">
242
- <div class="ht-category-content-2">
243
- <h3><a href="<?php echo esc_url( $prod_cat['link'] ); ?>"><?php echo esc_html__( $prod_cat['name'], 'woolentor' ); ?></a></h3>
244
- </div>
245
- <?php if( !empty( $thumbnails ) ):?>
246
- <div class="ht-category-image-2">
247
- <a href="<?php echo esc_url( $prod_cat['link'] ); ?>">
248
- <?php echo $thumbnails; ?>
249
- </a>
250
- </div>
251
- <?php endif; ?>
252
- </div>
253
-
254
- <?php elseif( '3' === $layout ):?>
255
- <div class="ht-category-wrap">
256
- <?php if( !empty( $thumbnails ) ): ?>
257
- <div class="ht-category-image ht-category-image-zoom">
258
- <a class="ht-category-border-2" href="<?php echo esc_url( $prod_cat['link'] ); ?>">
259
- <?php echo $thumbnails; ?>
260
- </a>
261
- </div>
262
- <?php else: ?>
263
- <div class="ht-category-image ht-category-image-zoom">
264
- <a class="ht-category-border-2" href="<?php echo esc_url( $prod_cat['link'] ); ?>">
265
- <img src="<?php echo esc_url( $prod_cat['image']['placeholderImg'] ) ?>">
266
- </a>
267
- </div>
268
- <?php endif; ?>
269
- <div class="ht-category-content-3 ht-category-content-3-bg<?php echo $bgc; ?>">
270
- <h3><a href="<?php echo esc_url( $prod_cat['link'] ); ?>"><?php echo esc_html__( $prod_cat['name'], 'woolentor' ); ?></a></h3>
271
- </div>
272
- </div>
273
-
274
- <?php elseif( '4' === $layout ):?>
275
- <div class="ht-category-wrap">
276
- <?php if( !empty( $thumbnails ) ):?>
277
- <div class="ht-category-image ht-category-image-zoom">
278
- <a href="<?php echo esc_url( $prod_cat['link'] ); ?>">
279
- <?php echo $thumbnails; ?>
280
- </a>
281
- </div>
282
- <?php endif; ?>
283
- <div class="ht-category-content-4">
284
- <h3>
285
- <a href="<?php echo esc_url( $prod_cat['link'] ); ?>"><?php echo esc_html__( $prod_cat['name'], 'woolentor' ); ?></a>
286
- <?php
287
- if( $settings['showCount'] === true ){
288
- echo '<span>('.esc_html__( $prod_cat['count'], 'woolentor' ).')</span>';
289
- }
290
- ?>
291
- </h3>
292
- </div>
293
- </div>
294
-
295
- <?php else:?>
296
- <div class="ht-category-wrap">
297
- <?php if( !empty( $thumbnails ) ):?>
298
- <div class="ht-category-image-3 ht-category-image-zoom">
299
- <a href="<?php echo esc_url( $prod_cat['link'] ); ?>">
300
- <?php echo $thumbnails; ?>
301
- </a>
302
- </div>
303
- <?php endif; ?>
304
- <div class="ht-category-content-5">
305
- <h3><a href="<?php echo esc_url( $prod_cat['link'] ); ?>"><?php echo esc_html__( $prod_cat['name'], 'woolentor' ); ?></a></h3>
306
- </div>
307
- </div>
308
-
309
- <?php endif; ?>
310
-
311
- </div>
312
- <?php
313
- if( $bgc == 4 ){ $bgc = 0; }
314
- if( $counter >= $column ){
315
- $topSpace = ' woolentor_margin_top';
316
- }
317
- endforeach;
318
- ?>
319
- </div>
320
- </div>
321
- <?php
322
- return ob_get_clean();
323
- }
324
-
325
- }
326
- WooLentorBlocks_Category_Grid::instance();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/src/blocks/image-marker/block.json CHANGED
@@ -63,8 +63,7 @@
63
  "right":"",
64
  "bottom":"",
65
  "left":"",
66
- "unit":"px",
67
- "link":"yes"
68
  },
69
  "selector": ".wlb-marker-wrapper .wlb_image_pointer"
70
  },
@@ -75,8 +74,7 @@
75
  "right":"",
76
  "bottom":"",
77
  "left":"",
78
- "unit":"px",
79
- "link":"yes"
80
  },
81
  "selector": ".wlb-marker-wrapper .wlb_image_pointer"
82
  },
@@ -91,8 +89,7 @@
91
  "right":"",
92
  "bottom":"",
93
  "left":"",
94
- "unit":"px",
95
- "link":"yes"
96
  },
97
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"
98
  },
@@ -103,8 +100,7 @@
103
  "right":"",
104
  "bottom":"",
105
  "left":"",
106
- "unit":"px",
107
- "link":"yes"
108
  },
109
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"
110
  },
@@ -123,8 +119,7 @@
123
  "right":"",
124
  "bottom":"",
125
  "left":"",
126
- "unit":"px",
127
- "link":"yes"
128
  },
129
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"
130
  },
@@ -143,8 +138,7 @@
143
  "right":"",
144
  "bottom":"",
145
  "left":"",
146
- "unit":"px",
147
- "link":"yes"
148
  },
149
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"
150
  }
63
  "right":"",
64
  "bottom":"",
65
  "left":"",
66
+ "unit":"px"
 
67
  },
68
  "selector": ".wlb-marker-wrapper .wlb_image_pointer"
69
  },
74
  "right":"",
75
  "bottom":"",
76
  "left":"",
77
+ "unit":"px"
 
78
  },
79
  "selector": ".wlb-marker-wrapper .wlb_image_pointer"
80
  },
89
  "right":"",
90
  "bottom":"",
91
  "left":"",
92
+ "unit":"px"
 
93
  },
94
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"
95
  },
100
  "right":"",
101
  "bottom":"",
102
  "left":"",
103
+ "unit":"px"
 
104
  },
105
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box"
106
  },
119
  "right":"",
120
  "bottom":"",
121
  "left":"",
122
+ "unit":"px"
 
123
  },
124
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box h4"
125
  },
138
  "right":"",
139
  "bottom":"",
140
  "left":"",
141
+ "unit":"px"
 
142
  },
143
  "selector": ".wlb-marker-wrapper .wlb_image_pointer .wlb_pointer_box p"
144
  }
woolentor-blocks/src/blocks/image-marker/index.php CHANGED
@@ -1,152 +1,148 @@
1
- <?php
2
- // Exit if accessed directly.
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
- class WooLentorBlocks_Image_Marker{
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/image-marker/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
- 'editor_style' => 'woolentor-widgets',
51
- )
52
- );
53
-
54
- }
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
-
62
- !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
63
-
64
- !empty( $settings['className'] ) ? $classes[] = $settings['className'] : '';
65
- !empty( $settings['style'] ) ? $classes[] = 'wlb-marker-style-'.$settings['style'] : 'wlb-marker-style-1';
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
-
121
- <?php
122
- foreach ( $settings['markerList'] as $item ):
123
-
124
- $horizontalPos = !empty( $item['horizontal'] ) ? 'left:'.$item['horizontal'].'%;' : 'left:50%;';
125
- $verticlePos = !empty( $item['verticle'] ) ? 'top:'.$item['verticle'].'%;' : '15%;';
126
-
127
- ?>
128
- <div class="wlb_image_pointer" style="<?php echo $horizontalPos.$verticlePos; ?>">
129
- <div class="wlb_pointer_box">
130
- <?php
131
- if( !empty( $item['title'] ) ){
132
- echo '<h4>'.esc_html__( $item['title'], 'woolentor' ).'</h4>';
133
- }
134
- if( !empty( $item['content'] ) ){
135
- echo '<p>'.esc_html__( $item['content'], 'woolentor' ).'</p>';
136
- }
137
- ?>
138
- </div>
139
- </div>
140
-
141
- <?php
142
- endforeach;
143
- ?>
144
- </div>
145
- </div>
146
-
147
- <?php
148
- return ob_get_clean();
149
- }
150
-
151
- }
152
  WooLentorBlocks_Image_Marker::instance();
1
+ <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WooLentorBlocks_Image_Marker{
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/image-marker/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
+ 'editor_style' => 'woolentor-widgets',
51
+ )
52
+ );
53
+
54
+ }
55
+
56
+ public function render_content( $settings, $content ){
57
+
58
+ $uniqClass = 'woolentor-'.$settings['blockUniqId'];
59
+ $classes = array( $uniqClass, 'wlb-marker-wrapper' );
60
+
61
+ !empty( $settings['className'] ) ? $classes[] = $settings['className'] : '';
62
+ !empty( $settings['style'] ) ? $classes[] = 'wlb-marker-style-'.$settings['style'] : 'wlb-marker-style-1';
63
+
64
+ $background_image = woolentorBlocks_Background_Control( $settings, 'bgProperty' );
65
+
66
+ /** Custom Styles */
67
+ $markerColor = woolentorBlocks_generate_css( $settings, 'markerColor', 'color' );
68
+ $markerBGColor = woolentorBlocks_generate_css( $settings, 'markerBGColor', 'background-color' );
69
+ $markerBorderColor = woolentorBlocks_generate_css( $settings, 'markerBorderColor', 'border-color' );
70
+ $markerBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'markerBorderRadius', 'border-radius' );
71
+ $markerPadding = woolentorBlocks_Dimention_Control( $settings, 'markerPadding', 'padding' );
72
+
73
+ $markerContentBGColor = woolentorBlocks_generate_css( $settings, 'markerContentBGColor', 'background-color' );
74
+ $markerContentBorderRadius = woolentorBlocks_Dimention_Control( $settings, 'markerContentBorderRadius', 'border-radius' );
75
+ $markerContentPadding = woolentorBlocks_Dimention_Control( $settings, 'markerContentPadding', 'padding' );
76
+
77
+ $markerTitleColor = woolentorBlocks_generate_css( $settings, 'markerTitleColor', 'color' );
78
+ $markerTitleSize = woolentorBlocks_generate_css( $settings, 'markerTitleSize', 'font-size' );
79
+ $markerTitleMargin = woolentorBlocks_Dimention_Control( $settings, 'markerTitleMargin', 'margin' );
80
+
81
+ $markerDescriptionColor = woolentorBlocks_generate_css( $settings, 'markerDescriptionColor', 'color' );
82
+ $markerDescriptionSize = woolentorBlocks_generate_css( $settings, 'markerDescriptionSize', 'font-size' );
83
+ $markerDescriptionMargin = woolentorBlocks_Dimention_Control( $settings, 'markerDescriptionMargin', 'margin' );
84
+
85
+ $all_styles = "
86
+ .{$uniqClass} .wlb_image_pointer::before{
87
+ {$markerColor}
88
+ }
89
+ .{$uniqClass} .wlb_image_pointer{
90
+ {$markerBGColor}
91
+ {$markerBorderColor}
92
+ {$markerBorderRadius}
93
+ {$markerPadding}
94
+ }
95
+ .{$uniqClass} .wlb_image_pointer .wlb_pointer_box{
96
+ {$markerContentBGColor}
97
+ {$markerContentBorderRadius}
98
+ {$markerContentPadding}
99
+ }
100
+ .{$uniqClass} .wlb_image_pointer .wlb_pointer_box h4{
101
+ {$markerTitleColor}
102
+ {$markerTitleSize}
103
+ {$markerTitleMargin}
104
+ }
105
+ .{$uniqClass} .wlb_image_pointer .wlb_pointer_box p{
106
+ {$markerDescriptionColor}
107
+ {$markerDescriptionSize}
108
+ {$markerDescriptionMargin}
109
+ }
110
+ ";
111
+
112
+ ob_start();
113
+ ?>
114
+ <style><?php echo $all_styles; ?></style>
115
+ <div class="<?php echo implode(' ', $classes ); ?>" style="<?php echo $background_image; ?> position:relative;">
116
+
117
+ <?php
118
+ foreach ( $settings['markerList'] as $item ):
119
+
120
+ $horizontalPos = !empty( $item['horizontal'] ) ? 'left:'.$item['horizontal'].'%;' : 'left:50%;';
121
+ $verticlePos = !empty( $item['verticle'] ) ? 'top:'.$item['verticle'].'%;' : '15%;';
122
+
123
+ ?>
124
+ <div class="wlb_image_pointer" style="<?php echo $horizontalPos.$verticlePos; ?>">
125
+ <div class="wlb_pointer_box">
126
+ <?php
127
+ if( !empty( $item['title'] ) ){
128
+ echo '<h4>'.esc_html__( $item['title'], 'woolentor' ).'</h4>';
129
+ }
130
+ if( !empty( $item['content'] ) ){
131
+ echo '<p>'.esc_html__( $item['content'], 'woolentor' ).'</p>';
132
+ }
133
+ ?>
134
+ </div>
135
+ </div>
136
+
137
+ <?php
138
+ endforeach;
139
+ ?>
140
+
141
+ </div>
142
+
143
+ <?php
144
+ return ob_get_clean();
145
+ }
146
+
147
+ }
 
 
 
 
148
  WooLentorBlocks_Image_Marker::instance();
woolentor-blocks/src/blocks/product-tab/block.json DELETED
@@ -1,147 +0,0 @@
1
- {
2
- "name": "woolentor/product-tab",
3
- "category": "woolentor-blocks",
4
- "attributes": {
5
- "blockUniqId":{
6
- "type": "string",
7
- "default": ""
8
- },
9
- "style":{
10
- "type": "string",
11
- "default": "1"
12
- },
13
- "columns":{
14
- "type": "number",
15
- "default": 4
16
- },
17
- "rows":{
18
- "type": "number",
19
- "default": 1
20
- },
21
- "productTab":{
22
- "type": "boolean",
23
- "default": false
24
- },
25
- "slider":{
26
- "type": "boolean",
27
- "default": false
28
- },
29
- "productFilterType":{
30
- "type": "string",
31
- "default": "recent"
32
- },
33
- "perPage":{
34
- "type": "number",
35
- "default": 4
36
- },
37
- "customOrder":{
38
- "type": "boolean",
39
- "default": false
40
- },
41
- "orderBy":{
42
- "type": "string",
43
- "default": "none"
44
- },
45
- "order":{
46
- "type": "string",
47
- "default": "DESC"
48
- },
49
- "selectedCategories":{
50
- "type": "array",
51
- "default": []
52
- },
53
- "slitems":{
54
- "type": "number",
55
- "default": 4
56
- },
57
- "slarrows":{
58
- "type": "boolean",
59
- "default": true
60
- },
61
- "sldots":{
62
- "type": "boolean",
63
- "default": false
64
- },
65
- "slpauseOnHover":{
66
- "type": "boolean",
67
- "default": true
68
- },
69
- "slautolay":{
70
- "type": "boolean",
71
- "default": false
72
- },
73
- "slautoplaySpeed":{
74
- "type": "number",
75
- "default": 3000
76
- },
77
- "slanimationSpeed":{
78
- "type": "number",
79
- "default": 300
80
- },
81
- "slscrollItem":{
82
- "type": "number",
83
- "default": 3
84
- },
85
- "sltabletDisplayColumns":{
86
- "type": "number",
87
- "default": 2
88
- },
89
- "sltabletScrollColumns":{
90
- "type": "number",
91
- "default": 2
92
- },
93
- "sltabletWidth":{
94
- "type": "number",
95
- "default": 750
96
- },
97
- "slMobileDisplayColumns":{
98
- "type": "number",
99
- "default": 1
100
- },
101
- "slMobileScrollColumns":{
102
- "type": "number",
103
- "default": 1
104
- },
105
- "slMobileWidth":{
106
- "type": "number",
107
- "default": 480
108
- },
109
- "titleColor":{
110
- "type": "string",
111
- "selector": ".product-item .product-inner .content .title a"
112
- },
113
- "titleHoverColor":{
114
- "type": "string",
115
- "selector": ".product-item .product-inner .content .title a:hover"
116
- },
117
- "titleAlign":{
118
- "type": "string",
119
- "selector": ".product-item .product-inner .content .title"
120
- },
121
- "priceColor":{
122
- "type": "string",
123
- "selector": ".product-item .product-inner .content .price"
124
- },
125
- "actionBtnColor":{
126
- "type": "string",
127
- "selector": ".product-item .actions a"
128
- },
129
- "actionBtnBgColor":{
130
- "type": "string",
131
- "selector": ".product-item .actions"
132
- },
133
- "actionBtnHoverColor":{
134
- "type": "string",
135
- "selector": ".product-item .actions a:hover"
136
- },
137
- "actionBtnHoverBgColor":{
138
- "type": "string",
139
- "selector": ".product-item .actions:hover"
140
- },
141
- "contentAlign":{
142
- "type": "string",
143
- "selector": ".product-item .product-inner .content .price"
144
- }
145
-
146
- }
147
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/src/blocks/product-tab/index.php DELETED
@@ -1,448 +0,0 @@
1
- <?php
2
- // Exit if accessed directly.
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
- class WooLentorBlocks_Product_Tab{
8
- /**
9
- * [$_instance]
10
- * @var null
11
- */
12
- private static $_instance = null;
13
-
14
- /**
15
- * [instance] Initializes a singleton instance
16
- * @return [Actions]
17
- */
18
- public static function instance() {
19
- if ( is_null( self::$_instance ) ) {
20
- self::$_instance = new self();
21
- }
22
- return self::$_instance;
23
- }
24
-
25
- /**
26
- * The Constructor.
27
- */
28
- public function __construct() {
29
- add_action( 'init', [ $this, 'init' ] );
30
- }
31
-
32
- public function init(){
33
- // Return early if this function does not exist.
34
- if ( ! function_exists( 'register_block_type' ) ) {
35
- return;
36
- }
37
-
38
- // Load attributes from block.json.
39
- ob_start();
40
- include WOOLENTOR_BLOCK_PATH . '/src/blocks/product-tab/block.json';
41
- $metadata = json_decode( ob_get_clean(), true );
42
-
43
- register_block_type(
44
- $metadata['name'],
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
- }
55
-
56
- /**
57
- * Product tab callable function
58
- */
59
- public function product_tab_render( $settings, $content ){
60
-
61
- $product_style = $settings['style'];
62
- $columns = $settings['columns'];
63
- $rows = $settings['rows'];
64
- $customClass = !empty( $settings['className'] ) ? $settings['className'] : '';
65
- $proslider = $settings['slider'] ? 'yes' : 'no';
66
- $producttab = $settings['productTab'] ? 'yes' : 'no';
67
-
68
- $product_type = $settings['productFilterType'];
69
- $per_page = $settings['perPage'];
70
- $custom_order = $settings['customOrder'];
71
-
72
- $query_args = array(
73
- 'per_page' => $per_page,
74
- 'product_type' => $product_type
75
- );
76
-
77
- // Category Wise
78
- $product_cats = !empty( $settings['selectedCategories'] ) ? $settings['selectedCategories'] : array();
79
- if( is_array( $product_cats ) && count( $product_cats ) > 0 ){
80
- $query_args['categories'] = $product_cats;
81
- }
82
-
83
- // Custom Order
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
- );
91
- }
92
-
93
- $args = woolentor_product_query( $query_args );
94
-
95
- $products = new \WP_Query( $args );
96
-
97
- // Slider Options
98
- $slider_settings = array();
99
- if( $proslider == 'yes' ){
100
- $is_rtl = is_rtl();
101
- $direction = $is_rtl ? 'rtl' : 'ltr';
102
- $slider_settings = [
103
- 'arrows' => (true === $settings['slarrows']),
104
- 'dots' => (true === $settings['sldots']),
105
- 'autoplay' => (true === $settings['slautolay']),
106
- 'autoplay_speed' => absint($settings['slautoplaySpeed']),
107
- 'animation_speed' => absint($settings['slanimationSpeed']),
108
- 'pause_on_hover' => ('yes' === $settings['slpauseOnHover']),
109
- 'rtl' => $is_rtl,
110
- ];
111
-
112
- $slider_responsive_settings = [
113
- 'product_items' => $settings['slitems'],
114
- 'scroll_columns' => $settings['slscrollItem'],
115
- 'tablet_width' => $settings['sltabletWidth'],
116
- 'tablet_display_columns' => $settings['sltabletDisplayColumns'],
117
- 'tablet_scroll_columns' => $settings['sltabletScrollColumns'],
118
- 'mobile_width' => $settings['slMobileWidth'],
119
- 'mobile_display_columns' => $settings['slMobileDisplayColumns'],
120
- 'mobile_scroll_columns' => $settings['slMobileScrollColumns'],
121
-
122
- ];
123
- $slider_settings = array_merge( $slider_settings, $slider_responsive_settings );
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">
196
- <ul class="ht-tab-menus">
197
- <?php
198
- $m=0;
199
- if( is_array( $product_cats ) && count( $product_cats ) > 0 ){
200
-
201
- // Category retrive
202
- $catargs = array(
203
- 'orderby' => 'name',
204
- 'order' => 'ASC',
205
- 'hide_empty' => true,
206
- 'slug' => $product_cats,
207
- );
208
- $prod_categories = get_terms( 'product_cat', $catargs);
209
-
210
- foreach( $prod_categories as $prod_cats ){
211
- $m++;
212
- $field_name = is_numeric( $product_cats[0] ) ? 'term_id' : 'slug';
213
- $args['tax_query'] = array(
214
- array(
215
- 'taxonomy' => 'product_cat',
216
- 'terms' => $prod_cats,
217
- 'field' => $field_name,
218
- 'include_children' => false
219
- ),
220
- );
221
- if( 'featured' == $product_type ){
222
- $args['tax_query'][] = array(
223
- 'taxonomy' => 'product_visibility',
224
- 'field' => 'name',
225
- 'terms' => 'featured',
226
- 'operator' => 'IN',
227
- );
228
- }
229
- $fetchproduct = new \WP_Query( $args );
230
-
231
- if( $fetchproduct->have_posts() ){
232
- ?>
233
- <li><a class="<?php if($m==1){ echo 'htactive';}?>" href="#woolentortab<?php echo $tabuniqid.esc_attr($m);?>">
234
- <?php echo esc_attr( $prod_cats->name,'woolentor' );?>
235
- </a></li>
236
- <?php
237
- }
238
- }
239
- }
240
- ?>
241
- </ul>
242
- </div>
243
- <?php }; ?>
244
-
245
- <?php if( is_array( $product_cats ) && (count( $product_cats ) > 0) && ( $producttab == 'yes' ) ): ?>
246
-
247
- <?php
248
- $j=0;
249
- $tabcatargs = array(
250
- 'orderby' => 'name',
251
- 'order' => 'ASC',
252
- 'hide_empty' => true,
253
- 'slug' => $product_cats,
254
- );
255
- $tabcat_fach = get_terms( 'product_cat', $tabcatargs );
256
- foreach( $tabcat_fach as $cats ):
257
- $j++;
258
- $field_name = is_numeric($product_cats[0])?'term_id':'slug';
259
- $args['tax_query'] = array(
260
- array(
261
- 'taxonomy' => 'product_cat',
262
- 'terms' => $cats,
263
- 'field' => $field_name,
264
- 'include_children' => false
265
- )
266
- );
267
- if( 'featured' == $product_type ){
268
- $args['tax_query'][] = array(
269
- 'taxonomy' => 'product_visibility',
270
- 'field' => 'name',
271
- 'terms' => 'featured',
272
- 'operator' => 'IN',
273
- );
274
- }
275
- $products = new \WP_Query( $args );
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
284
- $loopitem = 1;
285
- while( $products->have_posts() ): $products->the_post();
286
-
287
- $this->render_item( $settings, $loopitem );
288
-
289
- if( $loopitem % $rows == 0 && ($products->post_count != $loopitem ) ){
290
- echo '</div><div class="'.esc_attr( $collumval ).'">';
291
- }
292
- $loopitem++; endwhile; wp_reset_query(); wp_reset_postdata();
293
- echo '</div>';
294
- ?>
295
- <!-- product item end -->
296
-
297
- </div>
298
- </div>
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
-
306
- <!-- product item start -->
307
- <div class="<?php echo esc_attr( $collumval );?>">
308
- <?php
309
- $loopitem = 1;
310
- while( $products->have_posts() ): $products->the_post();
311
-
312
- $this->render_item( $settings, $loopitem );
313
-
314
- if( $loopitem % $rows == 0 && ($products->post_count != $loopitem ) ){
315
- echo '</div><div class="'.esc_attr( $collumval ).'">';
316
- }
317
- $loopitem++; endwhile; wp_reset_query(); wp_reset_postdata();
318
- echo '</div>';
319
- ?>
320
- <!-- product item end -->
321
-
322
- <?php if( $proslider == 'yes' ){ echo '</div>';} ?>
323
-
324
- </div>
325
- <?php endif;?>
326
-
327
- </div>
328
-
329
- </div>
330
- <?php
331
- return ob_get_clean();
332
-
333
- }
334
-
335
- /**
336
- * Tab item
337
- */
338
- public function render_item( $settings, $loopitem ){
339
-
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">
347
- <a href="<?php the_permalink();?>" class="image">
348
- <?php
349
- woocommerce_show_product_loop_sale_flash();
350
- woocommerce_template_loop_product_thumbnail();
351
- ?>
352
- </a>
353
- <?php
354
- if( $settings['style'] == 1){
355
- if( true === woolentor_has_wishlist_plugin() ){
356
- echo woolentor_add_to_wishlist_button();
357
- }
358
- }
359
- ?>
360
- <?php if( $settings['style'] == 3):?>
361
- <div class="product_information_area">
362
-
363
- <?php
364
- global $product;
365
- $attributes = $product->get_attributes();
366
- if($attributes):
367
- echo '<div class="product_attribute">';
368
- foreach ( $attributes as $attribute ) :
369
- $name = $attribute->get_name();
370
- ?>
371
- <ul>
372
- <?php
373
- echo '<li class="attribute_label">'.wc_attribute_label( $attribute->get_name() ).esc_html__(':','woolentor').'</li>';
374
- if ( $attribute->is_taxonomy() ) {
375
- global $wc_product_attributes;
376
- $product_terms = wc_get_product_terms( $product->get_id(), $name, array( 'fields' => 'all' ) );
377
- foreach ( $product_terms as $product_term ) {
378
- $product_term_name = esc_html( $product_term->name );
379
- $link = get_term_link( $product_term->term_id, $name );
380
- $color = get_term_meta( $product_term->term_id, 'color', true );
381
- if ( ! empty ( $wc_product_attributes[ $name ]->attribute_public ) ) {
382
- echo '<li><a href="' . esc_url( $link ) . '" rel="tag">' . $product_term_name . '</a></li>';
383
- } else {
384
- if(!empty($color)){
385
- echo '<li class="color_attribute" style="background-color: '.$color.';">&nbsp;</li>';
386
- }else{
387
- echo '<li>' . $product_term_name . '</li>';
388
- }
389
-
390
- }
391
- }
392
- }
393
- ?>
394
- </ul>
395
- <?php endforeach; echo '</div>'; endif;?>
396
-
397
- <div class="actions style_two">
398
- <?php
399
- woocommerce_template_loop_add_to_cart();
400
- if( true === woolentor_has_wishlist_plugin() ){
401
- echo woolentor_add_to_wishlist_button();
402
- }
403
- ?>
404
- </div>
405
-
406
- <div class="content">
407
- <h4 class="title"><a href="<?php the_permalink();?>"><?php echo get_the_title();?></a></h4>
408
- <?php woocommerce_template_loop_price();?>
409
- </div>
410
-
411
- </div>
412
-
413
- <?php else:?>
414
- <div class="actions <?php if( $settings['style'] == 2){ echo 'style_two'; }?>">
415
- <?php
416
- if( $settings['style'] == 2){
417
- woocommerce_template_loop_add_to_cart();
418
- if( true === woolentor_has_wishlist_plugin() ){
419
- echo woolentor_add_to_wishlist_button();
420
- }
421
- }else{
422
- woocommerce_template_loop_add_to_cart();
423
-
424
- if( function_exists('woolentor_compare_button') && true === woolentor_exist_compare_plugin() ){
425
- woolentor_compare_button();
426
- }
427
-
428
- }
429
- ?>
430
- </div>
431
- <?php endif;?>
432
-
433
-
434
- </div>
435
-
436
- <div class="content">
437
- <h4 class="title"><a href="<?php the_permalink();?>"><?php echo get_the_title();?></a></h4>
438
- <?php woocommerce_template_loop_price();?>
439
- </div>
440
- </div>
441
-
442
- </div>
443
- <?php
444
-
445
- }
446
-
447
- }
448
- WooLentorBlocks_Product_Tab::instance();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woolentor-blocks/src/blocks/special-day-offer/block.json CHANGED
@@ -70,8 +70,7 @@
70
  "right":"",
71
  "bottom":"",
72
  "left":"",
73
- "unit":"px",
74
- "link":"yes"
75
  },
76
  "selector": ".wlspcial-banner .banner-content h2"
77
  },
@@ -82,8 +81,7 @@
82
  "right":"",
83
  "bottom":"",
84
  "left":"",
85
- "unit":"px",
86
- "link":"yes"
87
  },
88
  "selector": ".wlspcial-banner .banner-content h2"
89
  },
@@ -102,8 +100,7 @@
102
  "right":"",
103
  "bottom":"",
104
  "left":"",
105
- "unit":"px",
106
- "link":"yes"
107
  }
108
  },
109
  "subTitlePadding": {
@@ -113,8 +110,7 @@
113
  "right":"",
114
  "bottom":"",
115
  "left":"",
116
- "unit":"px",
117
- "link":"yes"
118
  }
119
  },
120
  "contentAlignment":{
@@ -128,8 +124,7 @@
128
  "right":"",
129
  "bottom":"",
130
  "left":"",
131
- "unit":"px",
132
- "link":"yes"
133
  }
134
  },
135
  "contentAreaMargin": {
@@ -139,8 +134,7 @@
139
  "right":"",
140
  "bottom":"",
141
  "left":"",
142
- "unit":"px",
143
- "link":"yes"
144
  }
145
  },
146
  "desColor":{
@@ -158,8 +152,7 @@
158
  "right":"",
159
  "bottom":"",
160
  "left":"",
161
- "unit":"px",
162
- "link":"yes"
163
  },
164
  "selector": ".wlspcial-banner .banner-content p"
165
  },
@@ -170,8 +163,7 @@
170
  "right":"",
171
  "bottom":"",
172
  "left":"",
173
- "unit":"px",
174
- "link":"yes"
175
  },
176
  "selector": ".wlspcial-banner .banner-content p"
177
  },
@@ -190,8 +182,7 @@
190
  "right":"",
191
  "bottom":"",
192
  "left":"",
193
- "unit":"px",
194
- "link":"yes"
195
  },
196
  "selector": ".wlspcial-banner .banner-content h5"
197
  },
@@ -210,8 +201,7 @@
210
  "right":"",
211
  "bottom":"",
212
  "left":"",
213
- "unit":"px",
214
- "link":"yes"
215
  },
216
  "selector": ".wlspcial-banner .banner-content h5 span"
217
  },
@@ -234,8 +224,7 @@
234
  "right":"",
235
  "bottom":"",
236
  "left":"",
237
- "unit":"px",
238
- "link":"yes"
239
  },
240
  "selector": ".wlspcial-banner .banner-content a"
241
  }
70
  "right":"",
71
  "bottom":"",
72
  "left":"",
73
+ "unit":"px"
 
74
  },
75
  "selector": ".wlspcial-banner .banner-content h2"
76
  },
81
  "right":"",
82
  "bottom":"",
83
  "left":"",
84
+ "unit":"px"
 
85
  },
86
  "selector": ".wlspcial-banner .banner-content h2"
87
  },
100
  "right":"",
101
  "bottom":"",
102
  "left":"",
103
+ "unit":"px"
 
104
  }
105
  },
106
  "subTitlePadding": {
110
  "right":"",
111
  "bottom":"",
112
  "left":"",
113
+ "unit":"px"
 
114
  }
115
  },
116
  "contentAlignment":{
124
  "right":"",
125
  "bottom":"",
126
  "left":"",
127
+ "unit":"px"
 
128
  }
129
  },
130
  "contentAreaMargin": {
134
  "right":"",
135
  "bottom":"",
136
  "left":"",
137
+ "unit":"px"
 
138
  }
139
  },
140
  "desColor":{
152
  "right":"",
153
  "bottom":"",
154
  "left":"",
155
+ "unit":"px"
 
156
  },
157
  "selector": ".wlspcial-banner .banner-content p"
158
  },
163
  "right":"",
164
  "bottom":"",
165
  "left":"",
166
+ "unit":"px"
 
167
  },
168
  "selector": ".wlspcial-banner .banner-content p"
169
  },
182
  "right":"",
183
  "bottom":"",
184
  "left":"",
185
+ "unit":"px"
 
186
  },
187
  "selector": ".wlspcial-banner .banner-content h5"
188
  },
201
  "right":"",
202
  "bottom":"",
203
  "left":"",
204
+ "unit":"px"
 
205
  },
206
  "selector": ".wlspcial-banner .banner-content h5 span"
207
  },
224
  "right":"",
225
  "bottom":"",
226
  "left":"",
227
+ "unit":"px"
 
228
  },
229
  "selector": ".wlspcial-banner .banner-content a"
230
  }
woolentor-blocks/src/blocks/special-day-offer/index.php CHANGED
@@ -1,197 +1,197 @@
1
- <?php
2
- // Exit if accessed directly.
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
- class WooLentorBlocks_Special_Day_Offer_Banner{
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/special-day-offer/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
- 'editor_style' => 'woolentor-widgets',
51
- )
52
- );
53
-
54
- }
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();
194
- }
195
-
196
- }
197
  WooLentorBlocks_Special_Day_Offer_Banner::instance();
1
+ <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WooLentorBlocks_Special_Day_Offer_Banner{
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/special-day-offer/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
+ 'editor_style' => 'woolentor-widgets',
51
+ )
52
+ );
53
+
54
+ }
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();
194
+ }
195
+
196
+ }
197
  WooLentorBlocks_Special_Day_Offer_Banner::instance();
woolentor-blocks/src/blocks/store-feature/block.json CHANGED
@@ -47,8 +47,7 @@
47
  "right":"",
48
  "bottom":"",
49
  "left":"",
50
- "unit":"px",
51
- "link":"yes"
52
  },
53
  "selector": ".ht-feature-wrap"
54
  },
@@ -59,8 +58,7 @@
59
  "right":"",
60
  "bottom":"",
61
  "left":"",
62
- "unit":"px",
63
- "link":"yes"
64
  },
65
  "selector": ".ht-feature-wrap"
66
  },
@@ -83,8 +81,7 @@
83
  "right":"",
84
  "bottom":"",
85
  "left":"",
86
- "unit":"px",
87
- "link":"yes"
88
  },
89
  "selector": ".ht-feature-wrap .ht-feature-content h4"
90
  },
@@ -103,8 +100,7 @@
103
  "right":"",
104
  "bottom":"",
105
  "left":"",
106
- "unit":"px",
107
- "link":"yes"
108
  },
109
  "selector": ".ht-feature-wrap .ht-feature-content p"
110
  }
47
  "right":"",
48
  "bottom":"",
49
  "left":"",
50
+ "unit":"px"
 
51
  },
52
  "selector": ".ht-feature-wrap"
53
  },
58
  "right":"",
59
  "bottom":"",
60
  "left":"",
61
+ "unit":"px"
 
62
  },
63
  "selector": ".ht-feature-wrap"
64
  },
81
  "right":"",
82
  "bottom":"",
83
  "left":"",
84
+ "unit":"px"
 
85
  },
86
  "selector": ".ht-feature-wrap .ht-feature-content h4"
87
  },
100
  "right":"",
101
  "bottom":"",
102
  "left":"",
103
+ "unit":"px"
 
104
  },
105
  "selector": ".ht-feature-wrap .ht-feature-content p"
106
  }
woolentor-blocks/src/blocks/store-feature/index.php CHANGED
@@ -1,143 +1,138 @@
1
- <?php
2
- // Exit if accessed directly.
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
- class WooLentorBlocks_Store_Feature{
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/store-feature/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
- 'editor_style' => 'woolentor-store-feature',
51
- 'style' => 'woolentor-store-feature'
52
- )
53
- );
54
-
55
- }
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
-
63
- !empty( $settings['align'] ) ? $areaClasses[] = 'align'.$settings['align'] : '';
64
-
65
- !empty( $settings['className'] ) ? $classes[] = $settings['className'] : '';
66
- !empty( $settings['layout'] ) ? $classes[] = 'ht-feature-style-'.$settings['layout'] : 'ht-feature-style-1';
67
- !empty( $settings['textAlignment'] ) ? $classes[] = 'woolentor-text-align-'.$settings['textAlignment'] : 'woolentor-text-align-center';
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 ) ){
121
- echo '<div class="ht-feature-img">'.$store_image.'</div>';
122
- }
123
- ?>
124
- <div class="ht-feature-content">
125
- <?php
126
- if( !empty( $settings['title'] ) ){
127
- echo '<h4>'.$settings['title'].'</h4>';
128
- }
129
- if( !empty( $settings['subTitle'] ) ){
130
- echo '<p>'.$settings['subTitle'].'</p>';
131
- }
132
- ?>
133
- </div>
134
- </div>
135
-
136
- </div>
137
- </div>
138
- <?php
139
- return ob_get_clean();
140
- }
141
-
142
- }
143
  WooLentorBlocks_Store_Feature::instance();
1
+ <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WooLentorBlocks_Store_Feature{
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/store-feature/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
+ 'editor_style' => 'woolentor-store-feature',
51
+ 'style' => 'woolentor-store-feature'
52
+ )
53
+ );
54
+
55
+ }
56
+
57
+ public function render_content( $settings, $content ){
58
+
59
+ $uniqClass = 'woolentor-'.$settings['blockUniqId'];
60
+ $classes = array( $uniqClass, 'woolentor-blocks ht-feature-wrap' );
61
+
62
+ !empty( $settings['className'] ) ? $classes[] = $settings['className'] : '';
63
+ !empty( $settings['layout'] ) ? $classes[] = 'ht-feature-style-'.$settings['layout'] : 'ht-feature-style-1';
64
+ !empty( $settings['textAlignment'] ) ? $classes[] = 'woolentor-text-align-'.$settings['textAlignment'] : 'woolentor-text-align-center';
65
+
66
+ $store_image = !empty( $settings['featureImage']['id'] ) ? wp_get_attachment_image( $settings['featureImage']['id'], 'full' ) : '';
67
+
68
+ /** Custom Styles */
69
+ $areaBorderColor = woolentorBlocks_generate_css( $settings, 'areaBorderColor', 'border-color' );
70
+ $areaHoverBorderColor = woolentorBlocks_generate_css( $settings, 'areaHoverBorderColor', 'border-color', ' !important' );
71
+ $areaBackgroundColor = woolentorBlocks_generate_css( $settings, 'areaBackgroundColor', 'background-color' );
72
+ $areaMargin = woolentorBlocks_Dimention_Control( $settings, 'areaMargin', 'margin' );
73
+ $areaPadding = woolentorBlocks_Dimention_Control( $settings, 'areaPadding', 'padding' );
74
+
75
+ $titleColor = woolentorBlocks_generate_css( $settings, 'titleColor', 'color' );
76
+ $titleSize = woolentorBlocks_generate_css( $settings, 'titleSize', 'font-size' );
77
+ $titleMargin = woolentorBlocks_Dimention_Control( $settings, 'titleMargin', 'margin' );
78
+
79
+ $subTitleColor = woolentorBlocks_generate_css( $settings, 'subTitleColor', 'color' );
80
+ $subTitleSize = woolentorBlocks_generate_css( $settings, 'subTitleSize', 'font-size' );
81
+ $subTitleMargin = woolentorBlocks_Dimention_Control( $settings, 'subTitleMargin', 'margin' );
82
+
83
+ $all_styles = "
84
+
85
+ .{$uniqClass}.ht-feature-wrap{
86
+ {$areaBackgroundColor}
87
+ }
88
+ .{$uniqClass}.ht-feature-wrap .ht-feature-inner{
89
+ {$areaBorderColor}
90
+ {$areaMargin}
91
+ {$areaPadding}
92
+ }
93
+ .{$uniqClass}.ht-feature-wrap:hover .ht-feature-inner{
94
+ {$areaHoverBorderColor}
95
+ }
96
+ .{$uniqClass}.ht-feature-wrap .ht-feature-content h4{
97
+ {$titleColor}
98
+ {$titleSize}
99
+ {$titleMargin}
100
+ }
101
+ .{$uniqClass}.ht-feature-wrap .ht-feature-content p{
102
+ {$subTitleColor}
103
+ {$subTitleSize}
104
+ {$subTitleMargin}
105
+ }
106
+
107
+ ";
108
+
109
+ ob_start();
110
+ ?>
111
+ <style><?php echo $all_styles; ?></style>
112
+ <div class="<?php echo implode(' ', $classes ); ?>">
113
+
114
+ <div class="ht-feature-inner">
115
+ <?php
116
+ if( !empty( $store_image ) ){
117
+ echo '<div class="ht-feature-img">'.$store_image.'</div>';
118
+ }
119
+ ?>
120
+ <div class="ht-feature-content">
121
+ <?php
122
+ if( !empty( $settings['title'] ) ){
123
+ echo '<h4>'.$settings['title'].'</h4>';
124
+ }
125
+ if( !empty( $settings['subTitle'] ) ){
126
+ echo '<p>'.$settings['subTitle'].'</p>';
127
+ }
128
+ ?>
129
+ </div>
130
+ </div>
131
+
132
+ </div>
133
+ <?php
134
+ return ob_get_clean();
135
+ }
136
+
137
+ }
 
 
 
 
 
138
  WooLentorBlocks_Store_Feature::instance();
woolentor-blocks/woolentor-blocks.php CHANGED
@@ -1,89 +1,88 @@
1
- <?php
2
- if ( ! class_exists( 'WooLentorBlocks' ) ) :
3
-
4
- /**
5
- * Main WooLentorBlocks Class
6
- */
7
- final class WooLentorBlocks{
8
-
9
- /**
10
- * $_instance
11
- * @var null
12
- */
13
- private static $_instance = null;
14
-
15
- public static function instance(){
16
- if( is_null( self::$_instance ) && ! ( self::$_instance instanceof WooLentorBlocks ) ){
17
- self::$_instance = new self();
18
- self::$_instance->define_constants();
19
- self::$_instance->includes();
20
- self::$_instance->dependency_class_instance();
21
- }
22
- return self::$_instance;
23
- }
24
-
25
- /**
26
- * Define the required plugin constants
27
- *
28
- * @return void
29
- */
30
- public function define_constants() {
31
- $this->define( 'WOOLENTOR_BLOCK_FILE', __FILE__ );
32
- $this->define( 'WOOLENTOR_BLOCK_PATH', __DIR__ );
33
- $this->define( 'WOOLENTOR_BLOCK_URL', plugins_url( '', WOOLENTOR_BLOCK_FILE ) );
34
- $this->define( 'WOOLENTOR_BLOCK_DIR', plugin_dir_path( WOOLENTOR_BLOCK_FILE ) );
35
- $this->define( 'WOOLENTOR_BLOCK_ASSETS', WOOLENTOR_BLOCK_URL . '/assets' );
36
- }
37
-
38
- /**
39
- * Define constant if not already set
40
- *
41
- * @param string $name
42
- * @param string|bool $value
43
- * @return type
44
- */
45
- private function define( $name, $value ) {
46
- if ( ! defined( $name ) ) {
47
- define( $name, $value );
48
- }
49
- }
50
-
51
- /**
52
- * Load actions
53
- *
54
- * @return void
55
- */
56
- private function includes() {
57
- include( WOOLENTOR_BLOCK_PATH . '/vendor/autoload.php' );
58
- }
59
-
60
- /**
61
- * Load actions
62
- *
63
- * @return void
64
- */
65
- private function dependency_class_instance() {
66
- WooLentorBlocks\Scripts::instance();
67
- WooLentorBlocks\Actions::instance();
68
- WooLentorBlocks\Blocks_init::instance();
69
- }
70
-
71
-
72
- }
73
-
74
- endif;
75
-
76
- /**
77
- * The main function for that returns Tutorial
78
- *
79
- */
80
- function woolentorblocks() {
81
- return WooLentorBlocks::instance();
82
- }
83
-
84
- // Get the plugin running. Load on plugins_loaded action to avoid issue on multisite.
85
- if ( function_exists( 'is_multisite' ) && is_multisite() ) {
86
- add_action( 'plugins_loaded', 'woolentorblocks', 90 );
87
- } else {
88
- woolentorblocks();
89
  }
1
+ <?php
2
+ if ( ! class_exists( 'WooLentorBlocks' ) ) :
3
+
4
+ /**
5
+ * Main WooLentorBlocks Class
6
+ */
7
+ final class WooLentorBlocks{
8
+
9
+ /**
10
+ * $_instance
11
+ * @var null
12
+ */
13
+ private static $_instance = null;
14
+
15
+ public static function instance(){
16
+ if( is_null( self::$_instance ) && ! ( self::$_instance instanceof WooLentorBlocks ) ){
17
+ self::$_instance = new self();
18
+ self::$_instance->define_constants();
19
+ self::$_instance->includes();
20
+ self::$_instance->dependency_class_instance();
21
+ }
22
+ return self::$_instance;
23
+ }
24
+
25
+ /**
26
+ * Define the required plugin constants
27
+ *
28
+ * @return void
29
+ */
30
+ public function define_constants() {
31
+ $this->define( 'WOOLENTOR_BLOCK_FILE', __FILE__ );
32
+ $this->define( 'WOOLENTOR_BLOCK_PATH', __DIR__ );
33
+ $this->define( 'WOOLENTOR_BLOCK_URL', plugins_url( '', WOOLENTOR_BLOCK_FILE ) );
34
+ $this->define( 'WOOLENTOR_BLOCK_DIR', plugin_dir_path( WOOLENTOR_BLOCK_FILE ) );
35
+ $this->define( 'WOOLENTOR_BLOCK_ASSETS', WOOLENTOR_BLOCK_URL . '/assets' );
36
+ }
37
+
38
+ /**
39
+ * Define constant if not already set
40
+ *
41
+ * @param string $name
42
+ * @param string|bool $value
43
+ * @return type
44
+ */
45
+ private function define( $name, $value ) {
46
+ if ( ! defined( $name ) ) {
47
+ define( $name, $value );
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Load actions
53
+ *
54
+ * @return void
55
+ */
56
+ private function includes() {
57
+ include( WOOLENTOR_BLOCK_PATH . '/vendor/autoload.php' );
58
+ }
59
+
60
+ /**
61
+ * Load actions
62
+ *
63
+ * @return void
64
+ */
65
+ private function dependency_class_instance() {
66
+ WooLentorBlocks\Scripts::instance();
67
+ WooLentorBlocks\Blocks_init::instance();
68
+ }
69
+
70
+
71
+ }
72
+
73
+ endif;
74
+
75
+ /**
76
+ * The main function for that returns Tutorial
77
+ *
78
+ */
79
+ function woolentorblocks() {
80
+ return WooLentorBlocks::instance();
81
+ }
82
+
83
+ // Get the plugin running. Load on plugins_loaded action to avoid issue on multisite.
84
+ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
85
+ add_action( 'plugins_loaded', 'woolentorblocks', 90 );
86
+ } else {
87
+ woolentorblocks();
 
88
  }
woolentor_addons_elementor.php CHANGED
@@ -3,7 +3,7 @@
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+
@@ -17,7 +17,7 @@
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.3
7
  * Author: HasThemes
8
  * Author URI: https://hasthemes.com/plugins/woolentor-pro/
9
  * License: GPL-2.0+
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
 
20
+ define( 'WOOLENTOR_VERSION', '1.9.3' );
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 ) );