YITH WooCommerce Quick View - Version 1.6.0

Version Description

Released 15 April 2021

  • New: support for WooCommerce 5.2
  • Update: YITH plugin framework
  • Fix: compatibility issue with YITH WooCommerce Color and Label Variations Premium
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Quick View
Version 1.6.0
Comparing to
See all releases

Code changes from version 1.5.1 to 1.6.0

Files changed (38) hide show
  1. README.txt +12 -4
  2. assets/css/yith-quick-view.css +3 -0
  3. assets/js/frontend.js +173 -168
  4. assets/js/frontend.min.js +8 -8
  5. includes/class.yith-wcqv-frontend.php +13 -4
  6. init.php +5 -5
  7. plugin-fw/assets/css/metaboxes.css +0 -1
  8. plugin-fw/assets/css/yit-plugin-panel.css +9 -17
  9. plugin-fw/assets/css/yith-fields.css +41 -30
  10. plugin-fw/assets/css/yith-icon.css +24 -4
  11. plugin-fw/assets/fonts/yith-icon.eot +0 -0
  12. plugin-fw/assets/fonts/yith-icon.ttf +0 -0
  13. plugin-fw/assets/fonts/yith-icon.woff2 +0 -0
  14. plugin-fw/assets/js/metabox.js +37 -30
  15. plugin-fw/assets/js/metabox.min.js +1 -1
  16. plugin-fw/assets/js/yit-plugin-panel.js +10 -17
  17. plugin-fw/assets/js/yit-plugin-panel.min.js +1 -1
  18. plugin-fw/assets/js/yith-fields.js +20 -10
  19. plugin-fw/assets/js/yith-fields.min.js +1 -1
  20. plugin-fw/dist/gutenberg/index.asset.php +1 -1
  21. plugin-fw/dist/gutenberg/index.js +1 -1
  22. plugin-fw/dist/gutenberg/style-index.css +1 -1
  23. plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php +23 -7
  24. plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js +11 -5
  25. plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js +30 -5
  26. plugin-fw/includes/builders/gutenberg/src/components/shortcode/index.js +13 -10
  27. plugin-fw/includes/builders/gutenberg/src/components/shortcode/style.scss +8 -0
  28. plugin-fw/includes/class-yit-plugin-panel.php +1 -1
  29. plugin-fw/init.php +2 -2
  30. plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
  31. plugin-fw/languages/yith-plugin-fw-el.po +5 -6
  32. plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
  33. plugin-fw/languages/yith-plugin-fw-es_ES.po +6 -7
  34. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  35. plugin-fw/languages/yith-plugin-fw-it_IT.po +5 -6
  36. plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
  37. plugin-fw/languages/yith-plugin-fw-nl_NL.po +5 -6
  38. plugin-fw/languages/yith-plugin-fw.pot +2 -2
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: yithemes
3
  Tags: woocommerce, quick view, woocommerce quick view, products quick view
4
  Requires at least: 5.3
5
  Tested up to: 5.7
6
- Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -40,6 +40,12 @@ Full documentation is available [here](https://docs.yithemes.com/yith-woocommerc
40
 
41
  == Changelog ==
42
 
 
 
 
 
 
 
43
  = 1.5.1 = Released 05 March 2021
44
 
45
  * Fix: compatibility issue with YITH WooCommerce Wishlist
@@ -47,7 +53,7 @@ Full documentation is available [here](https://docs.yithemes.com/yith-woocommerc
47
  = 1.5.0 = Released 02 March 2021
48
 
49
  * New: Support for WordPress 5.7
50
- * New: support for WooCommerce 5.0
51
  * Update: YITH plugin framework
52
  * Fix: issue with YITH Proteo and button "add to cart" position on image hover
53
 
@@ -328,6 +334,8 @@ Or, if you have created your own language pack, or have an update for an existin
328
 
329
  == Upgrade notice ==
330
 
331
- = 1.5.1 = Released 05 March 2021
332
 
333
- * Fix: compatibility issue with YITH WooCommerce Wishlist
 
 
3
  Tags: woocommerce, quick view, woocommerce quick view, products quick view
4
  Requires at least: 5.3
5
  Tested up to: 5.7
6
+ Stable tag: 1.6.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
40
 
41
  == Changelog ==
42
 
43
+ = 1.6.0 = Released 15 April 2021
44
+
45
+ * New: support for WooCommerce 5.2
46
+ * Update: YITH plugin framework
47
+ * Fix: compatibility issue with YITH WooCommerce Color and Label Variations Premium
48
+
49
  = 1.5.1 = Released 05 March 2021
50
 
51
  * Fix: compatibility issue with YITH WooCommerce Wishlist
53
  = 1.5.0 = Released 02 March 2021
54
 
55
  * New: Support for WordPress 5.7
56
+ * New: support for WooCommerce 5.1
57
  * Update: YITH plugin framework
58
  * Fix: issue with YITH Proteo and button "add to cart" position on image hover
59
 
334
 
335
  == Upgrade notice ==
336
 
337
+ = 1.6.0 = Released 15 April 2021
338
 
339
+ * New: support for WooCommerce 5.2
340
+ * Update: YITH plugin framework
341
+ * Fix: compatibility issue with YITH WooCommerce Color and Label Variations Premium
assets/css/yith-quick-view.css CHANGED
@@ -137,6 +137,9 @@ html.yith-quick-view-is-open body {
137
  right: auto;
138
  left: 5px;
139
  }
 
 
 
140
 
141
  li.product .yith-wcqv-button .blockUI.blockOverlay:before {
142
  background: none;
137
  right: auto;
138
  left: 5px;
139
  }
140
+ #yith-quick-view-content figure.woocommerce-product-gallery__wrapper > div:not(:first-child) {
141
+ display: none;
142
+ }
143
 
144
  li.product .yith-wcqv-button .blockUI.blockOverlay:before {
145
  background: none;
assets/js/frontend.js CHANGED
@@ -1,169 +1,174 @@
1
- /**
2
- * frontend.js
3
- *
4
- * @author Your Inspiration Themes
5
- * @package YITH WooCommerce Quick View
6
- * @version 1.0.0
7
- */
8
-
9
- jQuery(document).ready(function($){
10
- "use strict";
11
-
12
- if( typeof yith_qv === 'undefined' ) {
13
- return;
14
- }
15
-
16
- var qv_modal = $(document).find( '#yith-quick-view-modal' ),
17
- qv_overlay = qv_modal.find( '.yith-quick-view-overlay'),
18
- qv_content = qv_modal.find( '#yith-quick-view-content' ),
19
- qv_close = qv_modal.find( '#yith-quick-view-close' ),
20
- qv_wrapper = qv_modal.find( '.yith-wcqv-wrapper'),
21
- qv_wrapper_w = qv_wrapper.width(),
22
- qv_wrapper_h = qv_wrapper.height(),
23
- center_modal = function() {
24
-
25
- var window_w = $(window).width(),
26
- window_h = $(window).height(),
27
- width = ( ( window_w - 60 ) > qv_wrapper_w ) ? qv_wrapper_w : ( window_w - 60 ),
28
- height = ( ( window_h - 120 ) > qv_wrapper_h ) ? qv_wrapper_h : ( window_h - 120 );
29
-
30
- qv_wrapper.css({
31
- 'left' : (( window_w/2 ) - ( width/2 )),
32
- 'top' : (( window_h/2 ) - ( height/2 )),
33
- 'width' : width + 'px',
34
- 'height' : height + 'px'
35
- });
36
- };
37
-
38
-
39
- /*==================
40
- *MAIN BUTTON OPEN
41
- ==================*/
42
-
43
- $.fn.yith_quick_view = function() {
44
-
45
- $(document).off( 'click', '.yith-wcqv-button' ).on( 'click', '.yith-wcqv-button', function(e){
46
- e.preventDefault();
47
-
48
- var t = $(this),
49
- product_id = t.data( 'product_id' ),
50
- is_blocked = false;
51
-
52
- if ( typeof yith_qv.loader !== 'undefined' ) {
53
- is_blocked = true;
54
- t.block({
55
- message: null,
56
- overlayCSS : {
57
- background: '#fff url(' + yith_qv.loader + ') no-repeat center',
58
- opacity : 0.5,
59
- cursor : 'none'
60
- }
61
- });
62
-
63
- if( ! qv_modal.hasClass( 'loading' ) ) {
64
- qv_modal.addClass('loading');
65
- }
66
-
67
- // stop loader
68
- $(document).trigger( 'qv_loading' );
69
- }
70
- ajax_call( t, product_id, is_blocked );
71
- });
72
- };
73
-
74
- /*================
75
- * MAIN AJAX CALL
76
- ================*/
77
-
78
- var ajax_call = function( t, product_id, is_blocked ) {
79
-
80
- $.ajax({
81
- url: yith_qv.ajaxurl,
82
- data: {
83
- action: 'yith_load_product_quick_view',
84
- product_id: product_id,
85
- lang: yith_qv.lang
86
- },
87
- dataType: 'html',
88
- type: 'POST',
89
- success: function (data) {
90
-
91
- qv_content.html(data);
92
-
93
- // Variation Form
94
- var form_variation = qv_content.find('.variations_form');
95
- form_variation.each( function() {
96
- $( this ).wc_variation_form();
97
- // add Color and Label Integration
98
- if( typeof $.fn.yith_wccl !== 'undefined' ) {
99
- $(this).yith_wccl();
100
- }
101
- });
102
-
103
- form_variation.trigger( 'check_variations' );
104
- form_variation.trigger( 'reset_image' );
105
-
106
- if( typeof $.fn.wc_product_gallery !== 'undefined' ) {
107
- qv_content.find('.woocommerce-product-gallery').each(function () {
108
- $(this).wc_product_gallery();
109
- });
110
- }
111
-
112
- if (!qv_modal.hasClass('open')) {
113
- qv_modal.removeClass('loading').addClass('open');
114
- if (is_blocked)
115
- t.unblock();
116
- }
117
-
118
- // stop loader
119
- $(document).trigger('qv_loader_stop');
120
-
121
- }
122
- });
123
- };
124
-
125
- /*===================
126
- * CLOSE QUICK VIEW
127
- ===================*/
128
-
129
- var close_modal_qv = function() {
130
-
131
- // Close box by click overlay
132
- qv_overlay.on( 'click', function(e){
133
- close_qv();
134
- });
135
- // Close box with esc key
136
- $(document).keyup(function(e){
137
- if( e.keyCode === 27 )
138
- close_qv();
139
- });
140
- // Close box by click close button
141
- qv_close.on( 'click', function(e) {
142
- e.preventDefault();
143
- close_qv();
144
- });
145
-
146
- var close_qv = function() {
147
- qv_modal.removeClass('open').removeClass('loading');
148
-
149
- setTimeout(function () {
150
- qv_content.html('');
151
- }, 1000);
152
- }
153
- };
154
-
155
- close_modal_qv();
156
-
157
-
158
- center_modal();
159
- $( window ).on( 'resize', center_modal );
160
-
161
- // START
162
- $.fn.yith_quick_view();
163
-
164
- $( document ).on( 'yith_infs_adding_elem yith-wcan-ajax-filtered', function(){
165
- // RESTART
166
- $.fn.yith_quick_view();
167
- });
168
-
 
 
 
 
 
169
  });
1
+ /**
2
+ * frontend.js
3
+ *
4
+ * @author Your Inspiration Themes
5
+ * @package YITH WooCommerce Quick View
6
+ * @version 1.0.0
7
+ */
8
+
9
+ jQuery(document).ready(function($){
10
+ "use strict";
11
+
12
+ if( typeof yith_qv === 'undefined' ) {
13
+ return;
14
+ }
15
+
16
+ var qv_modal = $(document).find( '#yith-quick-view-modal' ),
17
+ qv_overlay = qv_modal.find( '.yith-quick-view-overlay'),
18
+ qv_content = qv_modal.find( '#yith-quick-view-content' ),
19
+ qv_close = qv_modal.find( '#yith-quick-view-close' ),
20
+ qv_wrapper = qv_modal.find( '.yith-wcqv-wrapper'),
21
+ qv_wrapper_w = qv_wrapper.width(),
22
+ qv_wrapper_h = qv_wrapper.height(),
23
+ center_modal = function() {
24
+
25
+ var window_w = $(window).width(),
26
+ window_h = $(window).height(),
27
+ width = ( ( window_w - 60 ) > qv_wrapper_w ) ? qv_wrapper_w : ( window_w - 60 ),
28
+ height = ( ( window_h - 120 ) > qv_wrapper_h ) ? qv_wrapper_h : ( window_h - 120 );
29
+
30
+ qv_wrapper.css({
31
+ 'left' : (( window_w/2 ) - ( width/2 )),
32
+ 'top' : (( window_h/2 ) - ( height/2 )),
33
+ 'width' : width + 'px',
34
+ 'height' : height + 'px'
35
+ });
36
+ };
37
+
38
+
39
+ /*==================
40
+ *MAIN BUTTON OPEN
41
+ ==================*/
42
+
43
+ $.fn.yith_quick_view = function() {
44
+
45
+ $(document).off( 'click', '.yith-wcqv-button' ).on( 'click', '.yith-wcqv-button', function(e){
46
+ e.preventDefault();
47
+
48
+ var t = $(this),
49
+ product_id = t.data( 'product_id' ),
50
+ is_blocked = false;
51
+
52
+ if ( typeof yith_qv.loader !== 'undefined' ) {
53
+ is_blocked = true;
54
+ t.block({
55
+ message: null,
56
+ overlayCSS : {
57
+ background: '#fff url(' + yith_qv.loader + ') no-repeat center',
58
+ opacity : 0.5,
59
+ cursor : 'none'
60
+ }
61
+ });
62
+
63
+ if( ! qv_modal.hasClass( 'loading' ) ) {
64
+ qv_modal.addClass('loading');
65
+ }
66
+
67
+ // stop loader
68
+ $(document).trigger( 'qv_loading' );
69
+ }
70
+ ajax_call( t, product_id, is_blocked );
71
+ });
72
+ };
73
+
74
+ /*================
75
+ * MAIN AJAX CALL
76
+ ================*/
77
+
78
+ var ajax_call = function( t, product_id, is_blocked ) {
79
+
80
+ $.ajax({
81
+ url: yith_qv.ajaxurl,
82
+ data: {
83
+ action: 'yith_load_product_quick_view',
84
+ product_id: product_id,
85
+ lang: yith_qv.lang,
86
+ context: 'frontend',
87
+ },
88
+ dataType: 'json',
89
+ type: 'POST',
90
+ success: function (data) {
91
+
92
+ qv_content.html(data.html);
93
+
94
+ // Variation Form
95
+ var form_variation = qv_content.find('.variations_form');
96
+ form_variation.each( function() {
97
+ $( this ).wc_variation_form();
98
+ // add Color and Label Integration
99
+ if( typeof $.fn.yith_wccl !== 'undefined' ) {
100
+ $(this).yith_wccl();
101
+ }
102
+ else if( typeof $.yith_wccl != 'undefined' && data.prod_attr ) {
103
+
104
+ $.yith_wccl( data.prod_attr );
105
+ }
106
+ });
107
+
108
+ form_variation.trigger( 'check_variations' );
109
+ form_variation.trigger( 'reset_image' );
110
+
111
+ if( typeof $.fn.wc_product_gallery !== 'undefined' ) {
112
+ qv_content.find('.woocommerce-product-gallery').each(function () {
113
+ $(this).wc_product_gallery();
114
+ });
115
+ }
116
+
117
+ if (!qv_modal.hasClass('open')) {
118
+ qv_modal.removeClass('loading').addClass('open');
119
+ if (is_blocked)
120
+ t.unblock();
121
+ }
122
+
123
+ // stop loader
124
+ $(document).trigger('qv_loader_stop');
125
+
126
+ }
127
+ });
128
+ };
129
+
130
+ /*===================
131
+ * CLOSE QUICK VIEW
132
+ ===================*/
133
+
134
+ var close_modal_qv = function() {
135
+
136
+ // Close box by click overlay
137
+ qv_overlay.on( 'click', function(e){
138
+ close_qv();
139
+ });
140
+ // Close box with esc key
141
+ $(document).keyup(function(e){
142
+ if( e.keyCode === 27 )
143
+ close_qv();
144
+ });
145
+ // Close box by click close button
146
+ qv_close.on( 'click', function(e) {
147
+ e.preventDefault();
148
+ close_qv();
149
+ });
150
+
151
+ var close_qv = function() {
152
+ qv_modal.removeClass('open').removeClass('loading');
153
+
154
+ setTimeout(function () {
155
+ qv_content.html('');
156
+ }, 1000);
157
+ }
158
+ };
159
+
160
+ close_modal_qv();
161
+
162
+
163
+ center_modal();
164
+ $( window ).on( 'resize', center_modal );
165
+
166
+ // START
167
+ $.fn.yith_quick_view();
168
+
169
+ $( document ).on( 'yith_infs_adding_elem yith-wcan-ajax-filtered', function(){
170
+ // RESTART
171
+ $.fn.yith_quick_view();
172
+ });
173
+
174
  });
assets/js/frontend.min.js CHANGED
@@ -1,8 +1,8 @@
1
- /**
2
- * frontend.js
3
- *
4
- * @author Your Inspiration Themes
5
- * @package YITH WooCommerce Quick View
6
- * @version 1.0.0
7
- */
8
- jQuery(document).ready(function(o){"use strict";if("undefined"!=typeof yith_qv){var c=o(document).find("#yith-quick-view-modal"),i=c.find(".yith-quick-view-overlay"),a=c.find("#yith-quick-view-content"),n=c.find("#yith-quick-view-close"),d=c.find(".yith-wcqv-wrapper"),r=d.width(),u=d.height(),t=function(){var i=o(window).width(),t=o(window).height(),n=r<i-60?r:i-60,e=u<t-120?u:t-120;d.css({left:i/2-n/2,top:t/2-e/2,width:n+"px",height:e+"px"})};o.fn.yith_quick_view=function(){o(document).off("click",".yith-wcqv-button").on("click",".yith-wcqv-button",function(i){i.preventDefault();var t=o(this),n=t.data("product_id"),e=!1;void 0!==yith_qv.loader&&(e=!0,t.block({message:null,overlayCSS:{background:"#fff url("+yith_qv.loader+") no-repeat center",opacity:.5,cursor:"none"}}),c.hasClass("loading")||c.addClass("loading"),o(document).trigger("qv_loading")),l(t,n,e)})};var l=function(n,i,e){o.ajax({url:yith_qv.ajaxurl,data:{action:"yith_load_product_quick_view",product_id:i,lang:yith_qv.lang},dataType:"html",type:"POST",success:function(i){a.html(i);var t=a.find(".variations_form");t.each(function(){o(this).wc_variation_form(),void 0!==o.fn.yith_wccl&&o(this).yith_wccl()}),t.trigger("check_variations"),t.trigger("reset_image"),void 0!==o.fn.wc_product_gallery&&a.find(".woocommerce-product-gallery").each(function(){o(this).wc_product_gallery()}),c.hasClass("open")||(c.removeClass("loading").addClass("open"),e&&n.unblock()),o(document).trigger("qv_loader_stop")}})};!function(){i.on("click",function(i){t()}),o(document).keyup(function(i){27===i.keyCode&&t()}),n.on("click",function(i){i.preventDefault(),t()});var t=function(){c.removeClass("open").removeClass("loading"),setTimeout(function(){a.html("")},1e3)}}(),t(),o(window).on("resize",t),o.fn.yith_quick_view(),o(document).on("yith_infs_adding_elem yith-wcan-ajax-filtered",function(){o.fn.yith_quick_view()})}});
1
+ /**
2
+ * frontend.js
3
+ *
4
+ * @author Your Inspiration Themes
5
+ * @package YITH WooCommerce Quick View
6
+ * @version 1.0.0
7
+ */
8
+ jQuery(document).ready(function(a){"use strict";if("undefined"!=typeof yith_qv){var b=a(document).find("#yith-quick-view-modal"),c=b.find(".yith-quick-view-overlay"),d=b.find("#yith-quick-view-content"),e=b.find("#yith-quick-view-close"),f=b.find(".yith-wcqv-wrapper"),g=f.width(),h=f.height(),i=function(){var b=a(window).width(),c=a(window).height(),d=b-60>g?g:b-60,e=c-120>h?h:c-120;f.css({left:b/2-d/2,top:c/2-e/2,width:d+"px",height:e+"px"})};a.fn.yith_quick_view=function(){a(document).off("click",".yith-wcqv-button").on("click",".yith-wcqv-button",function(c){c.preventDefault();var d=a(this),e=d.data("product_id"),f=!1;"undefined"!=typeof yith_qv.loader&&(f=!0,d.block({message:null,overlayCSS:{background:"#fff url("+yith_qv.loader+") no-repeat center",opacity:.5,cursor:"none"}}),!b.hasClass("loading")&&b.addClass("loading"),a(document).trigger("qv_loading")),j(d,e,f)})};var j=function(c,e,f){a.ajax({url:yith_qv.ajaxurl,data:{action:"yith_load_product_quick_view",product_id:e,lang:yith_qv.lang,context:"frontend"},dataType:"json",type:"POST",success:function(e){d.html(e.html);var g=d.find(".variations_form");g.each(function(){a(this).wc_variation_form(),"undefined"==typeof a.fn.yith_wccl?"undefined"!=typeof a.yith_wccl&&e.prod_attr&&a.yith_wccl(e.prod_attr):a(this).yith_wccl()}),g.trigger("check_variations"),g.trigger("reset_image"),"undefined"!=typeof a.fn.wc_product_gallery&&d.find(".woocommerce-product-gallery").each(function(){a(this).wc_product_gallery()}),b.hasClass("open")||(b.removeClass("loading").addClass("open"),f&&c.unblock()),a(document).trigger("qv_loader_stop")}})},k=function(){c.on("click",function(){f()}),a(document).keyup(function(a){27===a.keyCode&&f()}),e.on("click",function(a){a.preventDefault(),f()});var f=function(){b.removeClass("open").removeClass("loading"),setTimeout(function(){d.html("")},1e3)}};k(),i(),a(window).on("resize",i),a.fn.yith_quick_view(),a(document).on("yith_infs_adding_elem yith-wcan-ajax-filtered",function(){a.fn.yith_quick_view()})}});
includes/class.yith-wcqv-frontend.php CHANGED
@@ -283,6 +283,7 @@ if ( ! class_exists( 'YITH_WCQV_Frontend' ) ) {
283
  global $sitepress;
284
 
285
  $product_id = intval( $_REQUEST['product_id'] );
 
286
 
287
  /**
288
  * WPML Suppot: Localize Ajax Call
@@ -297,16 +298,24 @@ if ( ! class_exists( 'YITH_WCQV_Frontend' ) ) {
297
 
298
  // Remove product thumbnails gallery.
299
  remove_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );
300
-
301
  // Change template for variable products.
302
  if ( isset( $GLOBALS['yith_wccl'] ) ) {
303
  $GLOBALS['yith_wccl']->obj = new YITH_WCCL_Frontend();
304
  $GLOBALS['yith_wccl']->obj->override();
 
 
305
  }
306
-
307
- ob_start();
308
  wc_get_template( 'yith-quick-view-content.php', array(), '', YITH_WCQV_DIR . 'templates/' );
309
- echo ob_get_clean(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
 
 
 
 
 
 
 
 
310
 
311
  die();
312
  // phpcs:enable WordPress.Security.NonceVerification.Recommended
283
  global $sitepress;
284
 
285
  $product_id = intval( $_REQUEST['product_id'] );
286
+ $attributes = array();
287
 
288
  /**
289
  * WPML Suppot: Localize Ajax Call
298
 
299
  // Remove product thumbnails gallery.
300
  remove_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );
 
301
  // Change template for variable products.
302
  if ( isset( $GLOBALS['yith_wccl'] ) ) {
303
  $GLOBALS['yith_wccl']->obj = new YITH_WCCL_Frontend();
304
  $GLOBALS['yith_wccl']->obj->override();
305
+ }elseif( defined( 'YITH_WCCL_PREMIUM' ) && YITH_WCCL_PREMIUM && class_exists( 'YITH_WCCL_Frontend' ) ) {
306
+ $attributes = YITH_WCCL_Frontend()->create_attributes_json( $product_id, true );
307
  }
308
+ ob_start();
 
309
  wc_get_template( 'yith-quick-view-content.php', array(), '', YITH_WCQV_DIR . 'templates/' );
310
+ $html = ob_get_contents(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
311
+ ob_end_clean();
312
+
313
+ wp_send_json(
314
+ array(
315
+ 'html' => $html,
316
+ 'prod_attr' => $attributes,
317
+ )
318
+ );
319
 
320
  die();
321
  // phpcs:enable WordPress.Security.NonceVerification.Recommended
init.php CHANGED
@@ -3,17 +3,17 @@
3
  * Plugin Name: YITH WooCommerce Quick View
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-quick-view
5
  * Description: The <code><strong>YITH WooCommerce Quick View</strong></code> plugin allows your customers to have a quick look about products. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
- * Version: 1.5.1
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-quick-view
10
  * Domain Path: /languages/
11
- * WC requires at least: 3.7
12
- * WC tested up to: 5.1
13
  *
14
  * @author YITH
15
  * @package YITH WooCommerce Quick View
16
- * @version 1.5.1
17
  */
18
  /** Copyright 2015-2021 - YITH (email : plugins@yithemes.com)
19
  *
@@ -62,7 +62,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
62
 
63
 
64
  if ( ! defined( 'YITH_WCQV_VERSION' ) ) {
65
- define( 'YITH_WCQV_VERSION', '1.5.1' );
66
  }
67
 
68
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
3
  * Plugin Name: YITH WooCommerce Quick View
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-quick-view
5
  * Description: The <code><strong>YITH WooCommerce Quick View</strong></code> plugin allows your customers to have a quick look about products. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
+ * Version: 1.6.0
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-quick-view
10
  * Domain Path: /languages/
11
+ * WC requires at least: 4.0
12
+ * WC tested up to: 5.2
13
  *
14
  * @author YITH
15
  * @package YITH WooCommerce Quick View
16
+ * @version 1.6.0
17
  */
18
  /** Copyright 2015-2021 - YITH (email : plugins@yithemes.com)
19
  *
62
 
63
 
64
  if ( ! defined( 'YITH_WCQV_VERSION' ) ) {
65
+ define( 'YITH_WCQV_VERSION', '1.6.0' );
66
  }
67
 
68
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
plugin-fw/assets/css/metaboxes.css CHANGED
@@ -179,7 +179,6 @@
179
  display : inline-block;
180
  line-height : 23px;
181
  width : auto;
182
- vertical-align : middle;
183
  margin : 0;
184
  }
185
 
179
  display : inline-block;
180
  line-height : 23px;
181
  width : auto;
 
182
  margin : 0;
183
  }
184
 
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -117,9 +117,9 @@
117
  }
118
 
119
  .yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
120
- color : #2a8db0;
121
- font-size : 16px;
122
- font-weight : 600;
123
  }
124
 
125
  .yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action,
@@ -514,9 +514,9 @@
514
  }
515
 
516
  #wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
517
- border-bottom : 1px solid #ccc;
518
- margin-right : 15px;
519
- text-transform: uppercase;
520
  }
521
 
522
  /* === YIT FRAMEWORK === */
@@ -535,9 +535,7 @@
535
  .yith-plugin-ui .yit-admin-panel-container {
536
  position : relative;
537
  margin-right : 15px;
538
- margin-top : -3px;
539
  z-index : 0;
540
- border-top : 1px solid #dbdada;
541
  }
542
 
543
  .yit-admin-panel-content-wrap {
@@ -576,12 +574,11 @@
576
  */
577
  .yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
578
  background : #fff;
579
- padding : 10px 14px 0px 20px;
580
  box-sizing : border-box;
581
  margin-right : 15px;
582
  border-left : 1px solid #d8d8d8;
583
  border-right : 1px solid #d8d8d8;
584
- margin-top : -2px;
585
  }
586
 
587
  .yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap {
@@ -683,13 +680,12 @@ li.yith-plugin-fw-tab-element {
683
  margin : 0;
684
  padding : 0;
685
  display : inline-block;
686
- height : 37px;
687
  overflow : visible;
688
  z-index : 10;
689
  }
690
 
691
- .yith-plugin-fw-panel-custom-tab-container {
692
- margin-top : -2px;
693
  }
694
 
695
  li.yith-plugin-fw-tab-element:hover {
@@ -736,10 +732,6 @@ li.yith-plugin-fw-tab-element a.nav-tab i:before {
736
  color : #fff;
737
  }
738
 
739
- .yith-plugin-fw-panel .woocommerce-page {
740
- margin-top : -2px;
741
- }
742
-
743
  .yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
744
  margin-top : 0;
745
  padding-top : 0;
117
  }
118
 
119
  .yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
120
+ color : #2a8db0;
121
+ font-size : 16px;
122
+ font-weight : 600;
123
  }
124
 
125
  .yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action,
514
  }
515
 
516
  #wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
517
+ border-bottom : 1px solid #ccc;
518
+ margin-right : 15px;
519
+ text-transform : uppercase;
520
  }
521
 
522
  /* === YIT FRAMEWORK === */
535
  .yith-plugin-ui .yit-admin-panel-container {
536
  position : relative;
537
  margin-right : 15px;
 
538
  z-index : 0;
 
539
  }
540
 
541
  .yit-admin-panel-content-wrap {
574
  */
575
  .yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
576
  background : #fff;
577
+ padding : 10px 14px 0 20px;
578
  box-sizing : border-box;
579
  margin-right : 15px;
580
  border-left : 1px solid #d8d8d8;
581
  border-right : 1px solid #d8d8d8;
 
582
  }
583
 
584
  .yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap {
680
  margin : 0;
681
  padding : 0;
682
  display : inline-block;
 
683
  overflow : visible;
684
  z-index : 10;
685
  }
686
 
687
+ .yith-plugin-ui li.yith-plugin-fw-tab-element {
688
+ margin-bottom: -1px;
689
  }
690
 
691
  li.yith-plugin-fw-tab-element:hover {
732
  color : #fff;
733
  }
734
 
 
 
 
 
735
  .yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
736
  margin-top : 0;
737
  padding-top : 0;
plugin-fw/assets/css/yith-fields.css CHANGED
@@ -8,8 +8,10 @@
8
  }
9
 
10
  .yith-plugin-fw span.description.inline {
11
- display : inline-block;
12
- margin : 0 0 0 5px;
 
 
13
  }
14
 
15
  .yith-disabled {
@@ -95,7 +97,8 @@
95
  .yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
96
  .woocommerce .yith-plugin-fw input.select2-search__field,
97
  .woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
98
- padding : 3px;
 
99
  }
100
 
101
  .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
@@ -530,18 +533,15 @@ YITH UI
530
  }
531
 
532
  .yith-plugin-ui .nav-tab {
533
- margin-left : 0px;
534
- margin-right : 2px;
535
  background-color : #336374;
536
  color : #fff;
537
  font-size : 15px;
538
  padding : 7px 20px;
539
  border : 0;
 
540
  transition : background-color 0.3s linear;
541
- }
542
-
543
- .yith-plugin-ui .nav-tab:first-child {
544
- border-left : 1px solid #d9d9d9;
545
  }
546
 
547
  .yith-plugin-ui .nav-tab.yith-premium {
@@ -556,7 +556,11 @@ YITH UI
556
  .yith-plugin-ui .nav-tab-active {
557
  background-color : #fff;
558
  color : #336374;
559
- border-bottom : 1px solid #fff;
 
 
 
 
560
  }
561
 
562
  .yith-plugin-ui .nav-tab-active.yith-premium {
@@ -599,7 +603,7 @@ YITH UI
599
 
600
  #wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
601
  border : 0;
602
- /* border-bottom : 1px solid #ccc; */
603
  margin-right : 15px;
604
  margin-bottom : 0;
605
  background-color : transparent;
@@ -1467,9 +1471,13 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
1467
  display : block !important;
1468
  }
1469
 
1470
- .woocommerce .yith-plugin-ui .iris-picker {
1471
- border : 0;
1472
- margin-top : 20px;
 
 
 
 
1473
  }
1474
 
1475
  .yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
@@ -2078,8 +2086,8 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2078
  .metaboxes-tab .yith-plugin-fw-dimensions__dimension__label,
2079
  .yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label {
2080
  text-transform : uppercase;
2081
- letter-spacing : 2px;
2082
- font-size : 11px;
2083
  margin-bottom : 5px;
2084
  display : inline-block;
2085
  }
@@ -2149,7 +2157,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2149
  height : 38px;
2150
  width : 100%;
2151
  background : transparent;
2152
- padding : 0;
2153
  border : 0;
2154
  border-radius : 0;
2155
  }
@@ -2167,10 +2175,13 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2167
  border-radius : 2px;
2168
  padding : 1px;
2169
  user-select : none;
 
 
2170
  }
2171
 
2172
  .yith-plugin-fw-copy-to-clipboard__copy:hover {
2173
- box-shadow : 0 0 0 2px #2470ff;
 
2174
  }
2175
 
2176
  .yith-plugin-fw-copy-to-clipboard__copy__text {
@@ -2338,16 +2349,16 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2338
  }
2339
 
2340
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
2341
- width : 48px;
2342
- height : 20px;
2343
- padding: 2px;
2344
  }
2345
 
2346
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
2347
- top : 4px;
2348
- left : 3px;
2349
- width: 10px;
2350
- height: 10px;
2351
  }
2352
 
2353
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
@@ -2355,15 +2366,15 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2355
  }
2356
 
2357
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
2358
- font-size : 11px;
2359
- padding-right: 12px;
2360
- margin-top : 0;
2361
  }
2362
 
2363
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
2364
  font-size : 11px;
2365
- padding-left: 12px;
2366
- margin-top: 0;
2367
  }
2368
 
2369
  .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
8
  }
9
 
10
  .yith-plugin-fw span.description.inline {
11
+ display : inline-block;
12
+ margin : 0 0 0 5px;
13
+ min-width : 0;
14
+ max-width : 100%;
15
  }
16
 
17
  .yith-disabled {
97
  .yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
98
  .woocommerce .yith-plugin-fw input.select2-search__field,
99
  .woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
100
+ padding : 3px;
101
+ min-width : 380px;
102
  }
103
 
104
  .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
533
  }
534
 
535
  .yith-plugin-ui .nav-tab {
 
 
536
  background-color : #336374;
537
  color : #fff;
538
  font-size : 15px;
539
  padding : 7px 20px;
540
  border : 0;
541
+ margin : 0 4px 0 0;
542
  transition : background-color 0.3s linear;
543
+ float : none;
544
+ display : inline-block;
 
 
545
  }
546
 
547
  .yith-plugin-ui .nav-tab.yith-premium {
556
  .yith-plugin-ui .nav-tab-active {
557
  background-color : #fff;
558
  color : #336374;
559
+ box-shadow : 0 3px 0 -1px #fff;
560
+ }
561
+
562
+ .yith-plugin-ui .yith-plugin-fw-tab-element:first-child .nav-tab-active {
563
+ border-left : 1px solid #ddd;
564
  }
565
 
566
  .yith-plugin-ui .nav-tab-active.yith-premium {
603
 
604
  #wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
605
  border : 0;
606
+ border-bottom : 1px solid #ddd;
607
  margin-right : 15px;
608
  margin-bottom : 0;
609
  background-color : transparent;
1471
  display : block !important;
1472
  }
1473
 
1474
+ .woocommerce .yith-plugin-ui .wp-picker-container .iris-picker, .yith-plugin-ui .wp-picker-container .iris-picker {
1475
+ z-index : 100;
1476
+ position : absolute;
1477
+ margin-top : 20px;
1478
+ border : 1px solid #d8d8d8;
1479
+ border-radius : 4px;
1480
+ box-shadow : 0 1px 3px rgba(0, 0, 0, .2);
1481
  }
1482
 
1483
  .yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
2086
  .metaboxes-tab .yith-plugin-fw-dimensions__dimension__label,
2087
  .yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label {
2088
  text-transform : uppercase;
2089
+ letter-spacing : 1px;
2090
+ font-size : 9px;
2091
  margin-bottom : 5px;
2092
  display : inline-block;
2093
  }
2157
  height : 38px;
2158
  width : 100%;
2159
  background : transparent;
2160
+ padding : 0 10px 0 0;
2161
  border : 0;
2162
  border-radius : 0;
2163
  }
2175
  border-radius : 2px;
2176
  padding : 1px;
2177
  user-select : none;
2178
+ line-height : 1;
2179
+ transition : all .2s ease-in-out;
2180
  }
2181
 
2182
  .yith-plugin-fw-copy-to-clipboard__copy:hover {
2183
+ box-shadow : 0 0 0 4px rgba(15, 67, 60, .12);
2184
+ background-color : rgba(15, 67, 60, .12);
2185
  }
2186
 
2187
  .yith-plugin-fw-copy-to-clipboard__copy__text {
2349
  }
2350
 
2351
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
2352
+ width : 48px;
2353
+ height : 20px;
2354
+ padding : 2px;
2355
  }
2356
 
2357
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
2358
+ top : 4px;
2359
+ left : 3px;
2360
+ width : 10px;
2361
+ height : 10px;
2362
  }
2363
 
2364
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
2366
  }
2367
 
2368
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
2369
+ font-size : 11px;
2370
+ padding-right : 12px;
2371
+ margin-top : 0;
2372
  }
2373
 
2374
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
2375
  font-size : 11px;
2376
+ padding-left : 12px;
2377
+ margin-top : 0;
2378
  }
2379
 
2380
  .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
plugin-fw/assets/css/yith-icon.css CHANGED
@@ -6,10 +6,10 @@
6
  /* stylelint-disable function-url-quotes, declaration-colon-newline-after */
7
  @font-face {
8
  font-family: yith-icon;
9
- src: url("../fonts/yith-icon.eot?c433269285442943176e8d23fe8a0d79");
10
- src: url("../fonts/yith-icon.eot?c433269285442943176e8d23fe8a0d79#iefix") format("embedded-opentype"),
11
- url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABZ4AAsAAAAAJlgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQAAAAFY4xkrtY21hcAAAAXwAAAEiAAADjOVDAG5nbHlmAAACoAAAEKUAABxIxW96k2hlYWQAABNIAAAAMAAAADYZ8YY2aGhlYQAAE3gAAAAeAAAAJAQ1AhtobXR4AAATmAAAACIAAACUSAT/7GxvY2EAABO8AAAATAAAAEx7BICobWF4cAAAFAgAAAAfAAAAIAFDAVZuY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IFWAVqBYQF8gZoBpwGwAc8B5QHxAf6CGoIlgk6CcIJ1goGCk4K1AtMC4wLvAvoDbwOJHicY2BkYGBQZfRiEGEAASYg5gJCBob/YD4DABVRAZsAeJxtjz1uwkAQhZ/5iwJShBIpUrpVijQR5qeg4ADQU9Abs/5BttdaFiQukBPkDDlDTpAyZ8hR8mxGLhJ2pdX33rzZ0QAY4gsequPhtn6r08IN1YXbpKFwh/wk3MUAz8I9+iPhPl4xFx7gAQF/8DrVb/dwwi3c4U24Tf9duEP+EO7iEZ/CPfrfwn1s8CM8wIs3P6cuGaWhKdY6PmaBbXQDG20PqSnU1J803koX2gZO79T2rA6neOZcpCJrcrU0hdNZZlRpzV6Hzk+cKxfjcSS+H5ocZ6TcJuHWKUIYFFhDI8YRGTe2V+r/nQ07LA7UlVKYwsfkSm7FXFFnA1Y0dsxumVPsPXHmjK5DRB0xY5CTlnVnlc54DZ2yru3phPR9Tqi6Siww5o3+5P16dv4LqwRgqnicbZDZboMwEEW5jaEJoWm673vTN3+Ua0/AirFdY4T4+0Jo+9R5GJ0jzZVmJjlIpkqT/2uDA8zAkCLDIeZYIMcSBY6wwjHWOMEpznCOC1ziCte4wS3ucI8HPOIJz3jBK97wjg0+klxI6VobtS1zEYLruHKd/UFD27icMOiyivOJW59/CrvjsiK5YyMWUhiySgQulFr9Se0s9fNfZVI0VbEPcamDNJTuJZXGNcSk8/1SBlI6cimCYiqIko2aU098P6RmAxbabh1vvloxDLNRFrUord5qCqx2gTIvei9M5sl5Q8ybtkkDedMPvaFYNJUmo6bt8qhrmi5JYxgWzFpvnFDrTgQ7PIXHoIUtDa06F4bQkB9/1bBexypJvgEkfHYEAA==") format("woff"),
12
- url("../fonts/yith-icon.ttf?c433269285442943176e8d23fe8a0d79") format("truetype");
13
  font-weight: 400;
14
  font-style: normal;
15
  }
@@ -91,6 +91,10 @@
91
  content: "\e905";
92
  }
93
 
 
 
 
 
94
  .yith-icon-close:before {
95
  content: "\e906";
96
  }
@@ -131,6 +135,10 @@
131
  content: "\e908";
132
  }
133
 
 
 
 
 
134
  .yith-icon-more:before {
135
  content: "\f102";
136
  }
@@ -139,6 +147,10 @@
139
  content: "\e91b";
140
  }
141
 
 
 
 
 
142
  .yith-icon-pencil:before {
143
  content: "\e909";
144
  }
@@ -163,6 +175,10 @@
163
  content: "\e917";
164
  }
165
 
 
 
 
 
166
  .yith-icon-time-check:before {
167
  content: "\e918";
168
  }
@@ -179,6 +195,10 @@
179
  content: "\e90c";
180
  }
181
 
 
 
 
 
182
  .yith-icon-warning-triangle:before {
183
  content: "\e923";
184
  }
6
  /* stylelint-disable function-url-quotes, declaration-colon-newline-after */
7
  @font-face {
8
  font-family: yith-icon;
9
+ src: url("../fonts/yith-icon.eot?9b110ae71c86256f1bb853df2050290b");
10
+ src: url("../fonts/yith-icon.eot?9b110ae71c86256f1bb853df2050290b#iefix") format("embedded-opentype"),
11
+ url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABjwAAsAAAAAKlQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQAAAAFY4xkr2Y21hcAAAAXwAAAFHAAAD2mDI02dnbHlmAAACxAAAEsoAAB+oFAg03mhlYWQAABWQAAAAMAAAADYaWpUuaGhlYQAAFcAAAAAeAAAAJAQ1AiBobXR4AAAV4AAAACIAAACoUgT/7GxvY2EAABYEAAAAVgAAAFakFJwibWF4cAAAFlwAAAAfAAAAIAFIAVZuYW1lAAAWfAAAATAAAAIiyMcJZnBvc3QAABesAAABQQAAAdfFCO7/eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/MI4gYGVgYNBjDGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHF4yfORkAnH1mNgYeIE0I4gDAI1KCDp4nO3TW1LCQBSE4T8hCQTwBirgFfBe5WIsV+WCfHJH53FWgH3SLsNQH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Fce5JYOLY7drTK2zfZtP3F/Bh9n3Q8Gk9xUqxVFk/XA06wgUCJLU5R4Qw1dmjwDHs8xzku8AIvcYlXuMI1XuMN3uId3uMDPuITPuMLbnCLO3zFN3zHD9zjAT+LWmkdRp+t72rFHA7ShIP/i47avFuRbdfnauUx1r+Uf5S6J/0oFmy0cuSNYqmM2f+XIXiaqn8qtEp9c3wktWXtqDxKqd2cW3oioUOcdprJ2Cy1YiMMq04sWtNE8hgymxkb69sg0+9RzWGxyNmgOm9bS1wNyjoZxiyGwLSNaorKbaJpt5FCdCSiG1PJFN0090S5Sb0lZ9aFRQqc62wHWn9YZp4X347RBWWqMRHL0LbnB8V+vprMbJXvHO0PgecR87TlmElMNvdF8Qc7rIJZAAAA") format("woff"),
12
+ url("../fonts/yith-icon.ttf?9b110ae71c86256f1bb853df2050290b") format("truetype");
13
  font-weight: 400;
14
  font-style: normal;
15
  }
91
  content: "\e905";
92
  }
93
 
94
+ .yith-icon-clone:before {
95
+ content: "\f105";
96
+ }
97
+
98
  .yith-icon-close:before {
99
  content: "\e906";
100
  }
135
  content: "\e908";
136
  }
137
 
138
+ .yith-icon-mail-out:before {
139
+ content: "\f109";
140
+ }
141
+
142
  .yith-icon-more:before {
143
  content: "\f102";
144
  }
147
  content: "\e91b";
148
  }
149
 
150
+ .yith-icon-pdf:before {
151
+ content: "\f107";
152
+ }
153
+
154
  .yith-icon-pencil:before {
155
  content: "\e909";
156
  }
175
  content: "\e917";
176
  }
177
 
178
+ .yith-icon-sort:before {
179
+ content: "\f106";
180
+ }
181
+
182
  .yith-icon-time-check:before {
183
  content: "\e918";
184
  }
195
  content: "\e90c";
196
  }
197
 
198
+ .yith-icon-user-off:before {
199
+ content: "\f108";
200
+ }
201
+
202
  .yith-icon-warning-triangle:before {
203
  content: "\e923";
204
  }
plugin-fw/assets/fonts/yith-icon.eot CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.ttf CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.woff2 CHANGED
Binary file
plugin-fw/assets/js/metabox.js CHANGED
@@ -9,39 +9,46 @@
9
  ( function ( $ ) {
10
 
11
  $( '.metaboxes-tab' ).each( function () {
12
- $( '.tabs-panel', this ).hide();
 
13
 
14
- var active_tab = wpCookies.get( 'active_metabox_tab' );
15
- if ( active_tab == null ) {
16
- active_tab = $( 'ul.metaboxes-tabs li:first-child a', this ).attr( 'href' );
 
 
 
17
  } else {
18
- active_tab = '#' + active_tab;
19
  }
20
 
21
- $( active_tab ).show();
22
 
23
- $( '.metaboxes-tabs a', this ).click( function ( e ) {
24
- if ( $( this ).parent().hasClass( 'tabs' ) ) {
25
- e.preventDefault();
26
- return;
27
- }
28
 
29
- var t = $( this ).attr( 'href' );
30
- $( this ).parent().addClass( 'tabs' ).siblings( 'li' ).removeClass( 'tabs' );
31
- $( this ).closest( '.metaboxes-tab' ).find( '.tabs-panel' ).hide();
32
- $( t ).show();
33
 
34
- return false;
 
 
 
 
35
  } );
36
  } );
37
 
38
- var act_page_option = $( '#_active_page_options-container' ).parent().html();
39
- $( '#_active_page_options-container' ).parent().remove();
40
- $( act_page_option ).insertAfter( '#yit-post-setting .handlediv' );
41
- $( act_page_option ).insertAfter( '#yit-page-setting .handlediv' );
42
-
 
43
 
44
- $( '#_active_page_options-container' ).on( 'click', function () {
45
  if ( $( '#_active_page_options' ).is( ":checked" ) ) {
46
  $( '#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab' ).css( {
47
  'opacity' : 1,
@@ -53,7 +60,7 @@
53
  'pointer-events': 'none'
54
  } );
55
  }
56
- } ).click();
57
 
58
 
59
  //dependencies handler
@@ -62,17 +69,17 @@
62
  $( '.metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)' ).each( function () {
63
  var t = $( this );
64
 
65
- var field = '#' + t.data( 'dep-target' ),
66
- dep = '#' + t.data( 'dep-id' ),
67
- value = t.data( 'dep-value' ),
68
- type = t.data( 'dep-type' );
69
 
70
 
71
  dependencies_handler( field, dep, value.toString(), type );
72
 
73
- $( dep ).on( 'change', function () {
74
- dependencies_handler( field, dep, value.toString(), type );
75
- } ).change();
76
 
77
  t.addClass( 'yith-plugin-fw-metabox-deps-initialized' );
78
  } );
9
  ( function ( $ ) {
10
 
11
  $( '.metaboxes-tab' ).each( function () {
12
+ var theMetaBox = $( this ),
13
+ panels = theMetaBox.find( '.tabs-panel' )
14
 
15
+ panels.hide();
16
+
17
+ // TODO: check if someone is directly using it, otherwise it could be removed because: 1. it doesn't take into account the possibility to have more than one meta-box in the same page; 2. it's not set anywhere.
18
+ var activeTab = wpCookies.get( 'active_metabox_tab' );
19
+ if ( activeTab == null ) {
20
+ activeTab = theMetaBox.find( 'ul.metaboxes-tabs li:first-child a' ).attr( 'href' );
21
  } else {
22
+ activeTab = '#' + activeTab;
23
  }
24
 
25
+ theMetaBox.find( activeTab ).show();
26
 
27
+ theMetaBox.find( '.metaboxes-tabs a' ).on( 'click', function ( e ) {
28
+ e.preventDefault();
29
+
30
+ var wrapper = $( this ).parent(),
31
+ isActive = wrapper.hasClass( 'tabs' );
32
 
33
+ if ( !isActive ) {
34
+ var tabID = $( this ).attr( 'href' );
 
 
35
 
36
+ wrapper.addClass( 'tabs' ).siblings( 'li' ).removeClass( 'tabs' );
37
+
38
+ panels.hide();
39
+ $( tabID ).show();
40
+ }
41
  } );
42
  } );
43
 
44
+ // TODO: check if someone is directly using it, otherwise it could be removed, since it's not used by the fw.
45
+ var actPageOptionContainer = $( '#_active_page_options-container' ),
46
+ actPageOption = actPageOptionContainer.parent().html();
47
+ actPageOptionContainer.parent().remove();
48
+ $( actPageOption ).insertAfter( '#yit-post-setting .handlediv' );
49
+ $( actPageOption ).insertAfter( '#yit-page-setting .handlediv' );
50
 
51
+ actPageOptionContainer.on( 'click', function () {
52
  if ( $( '#_active_page_options' ).is( ":checked" ) ) {
53
  $( '#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab' ).css( {
54
  'opacity' : 1,
60
  'pointer-events': 'none'
61
  } );
62
  }
63
+ } ).trigger( 'click' );
64
 
65
 
66
  //dependencies handler
69
  $( '.metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)' ).each( function () {
70
  var t = $( this );
71
 
72
+ var field = '#' + t.data( 'dep-target' ),
73
+ dep = '#' + t.data( 'dep-id' ),
74
+ value = t.data( 'dep-value' ),
75
+ type = t.data( 'dep-type' );
76
 
77
 
78
  dependencies_handler( field, dep, value.toString(), type );
79
 
80
+ $( dep ).on( 'change', function () {
81
+ dependencies_handler( field, dep, value.toString(), type );
82
+ } ).change();
83
 
84
  t.addClass( 'yith-plugin-fw-metabox-deps-initialized' );
85
  } );
plugin-fw/assets/js/metabox.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){e(".metaboxes-tab").each(function(){e(".tabs-panel",this).hide();var t=wpCookies.get("active_metabox_tab");t=null==t?e("ul.metaboxes-tabs li:first-child a",this).attr("href"):"#"+t,e(t).show(),e(".metaboxes-tabs a",this).click(function(t){if(!e(this).parent().hasClass("tabs")){var a=e(this).attr("href");return e(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),e(this).closest(".metaboxes-tab").find(".tabs-panel").hide(),e(a).show(),!1}t.preventDefault()})});var t=e("#_active_page_options-container").parent().html();function a(t,a,i,s){var n=!0;if("string"==typeof a){":radio"==a.substr(0,6)&&(a+=":checked");var o=e(a).val();if("checkbox"==e(a).attr("type"))o=e(a).is(":checked")?"yes":"no";i=i.split(",");for(var d=0;d<i.length;d++){if(o==i[d]){n=!0;break}n=!1}}var r,c=e(t),h=e(t+"-container").parent(),b=s.split("-");for(r in b){var p=b[r];if(n)switch(p){case"disable":h.removeClass("yith-disabled"),c.attr("disabled",!1);break;case"hide":case"hideNow":h.show();break;case"hideme":c.show();break;case"fadeOut":h.show();break;case"fadeInOut":case"fadeIn":default:h.show(500)}else switch(p){case"disable":h.addClass("yith-disabled"),c.attr("disabled",!0);break;case"hide":case"hideNow":h.hide();break;case"hideme":c.hide();break;case"fadeInOut":case"fadeOut":h.hide(500);break;case"fadeIn":default:h.hide()}}}e("#_active_page_options-container").parent().remove(),e(t).insertAfter("#yit-post-setting .handlediv"),e(t).insertAfter("#yit-page-setting .handlediv"),e("#_active_page_options-container").on("click",function(){e("#_active_page_options").is(":checked")?e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).click(),e(document.body).on("yith-plugin-fw-metabox-init-deps",function(){e(document.body).trigger("yith-plugin-fw-init-radio"),e(".metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)").each(function(){var t=e(this),i="#"+t.data("dep-target"),s="#"+t.data("dep-id"),n=t.data("dep-value"),o=t.data("dep-type");a(i,s,n.toString(),o),e(s).on("change",function(){a(i,s,n.toString(),o)}).change(),t.addClass("yith-plugin-fw-metabox-deps-initialized")})}).trigger("yith-plugin-fw-metabox-init-deps")}(jQuery);
1
+ !function(e){e(".metaboxes-tab").each(function(){var t=e(this),a=t.find(".tabs-panel");a.hide();var i=wpCookies.get("active_metabox_tab");i=null==i?t.find("ul.metaboxes-tabs li:first-child a").attr("href"):"#"+i,t.find(i).show(),t.find(".metaboxes-tabs a").on("click",function(t){t.preventDefault();var i=e(this).parent();if(!i.hasClass("tabs")){var s=e(this).attr("href");i.addClass("tabs").siblings("li").removeClass("tabs"),a.hide(),e(s).show()}})});var t=e("#_active_page_options-container"),a=t.parent().html();function i(t,a,i,s){var n=!0;if("string"==typeof a){":radio"==a.substr(0,6)&&(a+=":checked");var d=e(a).val();if("checkbox"==e(a).attr("type"))d=e(a).is(":checked")?"yes":"no";i=i.split(",");for(var o=0;o<i.length;o++){if(d==i[o]){n=!0;break}n=!1}}var r,c=e(t),h=e(t+"-container").parent(),b=s.split("-");for(r in b){var l=b[r];if(n)switch(l){case"disable":h.removeClass("yith-disabled"),c.attr("disabled",!1);break;case"hide":case"hideNow":h.show();break;case"hideme":c.show();break;case"fadeOut":h.show();break;case"fadeInOut":case"fadeIn":default:h.show(500)}else switch(l){case"disable":h.addClass("yith-disabled"),c.attr("disabled",!0);break;case"hide":case"hideNow":h.hide();break;case"hideme":c.hide();break;case"fadeInOut":case"fadeOut":h.hide(500);break;case"fadeIn":default:h.hide()}}}t.parent().remove(),e(a).insertAfter("#yit-post-setting .handlediv"),e(a).insertAfter("#yit-page-setting .handlediv"),t.on("click",function(){e("#_active_page_options").is(":checked")?e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).trigger("click"),e(document.body).on("yith-plugin-fw-metabox-init-deps",function(){e(document.body).trigger("yith-plugin-fw-init-radio"),e(".metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)").each(function(){var t=e(this),a="#"+t.data("dep-target"),s="#"+t.data("dep-id"),n=t.data("dep-value"),d=t.data("dep-type");i(a,s,n.toString(),d),e(s).on("change",function(){i(a,s,n.toString(),d)}).change(),t.addClass("yith-plugin-fw-metabox-deps-initialized")})}).trigger("yith-plugin-fw-metabox-init-deps")}(jQuery);
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
@@ -113,23 +113,16 @@ jQuery( function ( $ ) {
113
  // init field deps
114
  t.addClass( 'deps-initialized' );
115
 
116
- var field = '#' + t.data( 'dep-target' ),
117
- dep = '#' + t.data( 'dep-id' ),
118
- value = t.data( 'dep-value' ),
119
- type = t.data( 'dep-type' ),
120
- event = 'change',
121
- wrapper = $( dep + '-wrapper' ),
122
- field_type = wrapper.data( 'type' );
123
-
124
- if ( field_type === 'select-images' ) {
125
- event = 'yith_select_images_value_changed';
126
- }
127
-
128
- $( dep ).on( event, function () {
129
- dependencies_handler( field, dep, value.toString(), type );
130
- } ).trigger( event );
131
- } );
132
- }
133
 
134
  init_dependencies();
135
  // re-init deps after an add toggle action
113
  // init field deps
114
  t.addClass( 'deps-initialized' );
115
 
116
+ var field = '#' + t.data( 'dep-target' ),
117
+ dep = '#' + t.data( 'dep-id' ),
118
+ value = t.data( 'dep-value' ),
119
+ type = t.data( 'dep-type' );
120
+
121
+ $( dep ).on( 'change', function () {
122
+ dependencies_handler( field, dep, value.toString(), type );
123
+ } ).trigger( 'change' );
124
+ } );
125
+ }
 
 
 
 
 
 
 
126
 
127
  init_dependencies();
128
  // re-init deps after an add toggle action
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(e){function a(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var a=e(this);if(!a.closest(".metaboxes-tab").length){a.addClass("deps-initialized");var t="#"+a.data("dep-target"),i="#"+a.data("dep-id"),n=a.data("dep-value"),s=a.data("dep-type"),d="change";"select-images"===e(i+"-wrapper").data("type")&&(d="yith_select_images_value_changed"),e(i).on(d,function(){!function(a,t,i,n){var s=!0;if("string"==typeof t){":radio"==t.substr(0,6)&&(t+=":checked");var d=e(t).data("type"),r=e(t).val();"checkbox"===d?r=e(t).is(":checked")?"yes":"no":"radio"===d&&(r=e(t).find('input[type="radio"]').filter(":checked").val()),"select-images"===e(t+"-wrapper").data("type")&&(r=e(t+"-wrapper").find("select").first().val()),i=i.split(",");for(var c=0;c<i.length;c++){if(r==i[c]){s=!0;break}s=!1}}var o=e(a),l=e(a+"-container").closest("tr");l.length<1&&(l=o.closest(".yith-plugin-fw-panel-wc-row, .yith-toggle-content-row"));var h,p=n.split("-");for(h in p){var g=p[h];if(s)switch(g){case"disable":l.removeClass("yith-disabled"),o.attr("disabled",!1);break;case"hide":case"hideNow":l.show();break;case"hideme":o.show();break;case"fadeOut":l.show();break;case"fadeInOut":case"fadeIn":default:l.show(500)}else switch(g){case"disable":l.addClass("yith-disabled"),o.attr("disabled",!0);break;case"hide":case"hideNow":l.hide();break;case"hideme":o.hide();break;case"fadeInOut":case"fadeOut":l.hide(500);break;case"fadeIn":default:l.hide()}}}(t,i,n.toString(),s)}).trigger(d)}})}a(),e(document).on("yith-add-box-button-toggle",a),e(".rm_connectedlist").each(function(){var a=e(this).find("ul"),t=e(this).find(":hidden");a.sortable({connectWith:a,update:function(i,n){var s={};a.each(function(){var a={};e(this).children().each(function(){a[e(this).data("option")]=e(this).text()}),s[e(this).data("list")]=a}),t.val(JSON.stringify(s).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),e(function(){e(".google-analytic-generate").click(function(){var a=e("#"+e(this).data("textarea")).data("codemirrorInstance"),t="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";t+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",t+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",t+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",t+="ga('create', '"+e("#"+e(this).data("input")).val()+"', '"+e(this).data("basename")+"');\n",t+="ga('send', 'pageview');\n",a.replaceRange(t,a.getCursor("start"),a.getCursor("end"))})}),e(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t=e(".wrap.yith-plugin-ui").first(),i=e("div.updated, div.error, div.notice");if(i.addClass("inline"),t.length&&t.prepend(i),e(document).find(".yith-nav-sub-tab.nav-tab-active").length){var n=e(document).find(".yith-plugin-fw-wp-page-wrapper");if(n.length||(n=e(document).find("#wpbody-content > .yith-plugin-ui")),n)(t=n.find(".yit-admin-panel-content-wrap")).length?t.addClass("has-subnav"):n.find(".wrap").wrap('<div class="wrap subnav-wrap"></div>')}});
1
+ jQuery(function(e){function a(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var a=e(this);if(!a.closest(".metaboxes-tab").length){a.addClass("deps-initialized");var t="#"+a.data("dep-target"),i="#"+a.data("dep-id"),n=a.data("dep-value"),d=a.data("dep-type");e(i).on("change",function(){!function(a,t,i,n){var d=!0;if("string"==typeof t){":radio"==t.substr(0,6)&&(t+=":checked");var s=e(t).data("type"),r=e(t).val();"checkbox"===s?r=e(t).is(":checked")?"yes":"no":"radio"===s&&(r=e(t).find('input[type="radio"]').filter(":checked").val()),"select-images"===e(t+"-wrapper").data("type")&&(r=e(t+"-wrapper").find("select").first().val()),i=i.split(",");for(var c=0;c<i.length;c++){if(r==i[c]){d=!0;break}d=!1}}var o=e(a),l=e(a+"-container").closest("tr");l.length<1&&(l=o.closest(".yith-plugin-fw-panel-wc-row, .yith-toggle-content-row"));var h,p=n.split("-");for(h in p){var u=p[h];if(d)switch(u){case"disable":l.removeClass("yith-disabled"),o.attr("disabled",!1);break;case"hide":case"hideNow":l.show();break;case"hideme":o.show();break;case"fadeOut":l.show();break;case"fadeInOut":case"fadeIn":default:l.show(500)}else switch(u){case"disable":l.addClass("yith-disabled"),o.attr("disabled",!0);break;case"hide":case"hideNow":l.hide();break;case"hideme":o.hide();break;case"fadeInOut":case"fadeOut":l.hide(500);break;case"fadeIn":default:l.hide()}}}(t,i,n.toString(),d)}).trigger("change")}})}a(),e(document).on("yith-add-box-button-toggle",a),e(".rm_connectedlist").each(function(){var a=e(this).find("ul"),t=e(this).find(":hidden");a.sortable({connectWith:a,update:function(i,n){var d={};a.each(function(){var a={};e(this).children().each(function(){a[e(this).data("option")]=e(this).text()}),d[e(this).data("list")]=a}),t.val(JSON.stringify(d).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),e(function(){e(".google-analytic-generate").click(function(){var a=e("#"+e(this).data("textarea")).data("codemirrorInstance"),t="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";t+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",t+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",t+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",t+="ga('create', '"+e("#"+e(this).data("input")).val()+"', '"+e(this).data("basename")+"');\n",t+="ga('send', 'pageview');\n",a.replaceRange(t,a.getCursor("start"),a.getCursor("end"))})}),e(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t=e(".wrap.yith-plugin-ui").first(),i=e("div.updated, div.error, div.notice");if(i.addClass("inline"),t.length&&t.prepend(i),e(document).find(".yith-nav-sub-tab.nav-tab-active").length){var n=e(document).find(".yith-plugin-fw-wp-page-wrapper");if(n.length||(n=e(document).find("#wpbody-content > .yith-plugin-ui")),n)(t=n.find(".yit-admin-panel-content-wrap")).length?t.addClass("has-subnav"):n.find(".wrap").wrap('<div class="wrap subnav-wrap"></div>')}});
plugin-fw/assets/js/yith-fields.js CHANGED
@@ -23,7 +23,9 @@
23
 
24
  /* Datepicker */
25
  $datepicker.each( function () {
26
- var args = $( this ).data();
 
 
27
 
28
  // set animation to false to prevent style 'glitches' when removing class on closing
29
  args.showAnim = false;
@@ -34,7 +36,12 @@
34
  instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
35
  };
36
 
37
- $( this ).datepicker( args );
 
 
 
 
 
38
  } );
39
 
40
  /* Colorpicker */
@@ -388,7 +395,7 @@
388
  select = wrapper.find( 'select' ).first();
389
 
390
  if ( select.length ) {
391
- select.val( key ).trigger( 'yith_select_images_value_changed' );
392
  items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
393
  item.addClass( 'yith-plugin-fw-select-images__item--selected' );
394
  }
@@ -427,20 +434,23 @@
427
  /* on-off */
428
  $( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
429
  var input = $( this ).prev( 'input' ),
430
- checked = input.prop( 'checked' ),
431
  disabled = input.prop( 'disabled' );
432
 
433
  if ( disabled ) {
434
  return;
435
  }
436
 
437
- if ( checked ) {
438
- input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
 
 
 
 
 
439
  } else {
440
- input.prop( 'checked', true ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
441
  }
442
-
443
- input.change();
444
  } );
445
 
446
 
@@ -817,7 +827,7 @@
817
  /**
818
  * Copy to clip-board
819
  */
820
- var clearSelection = function () {
821
  var selection = 'getSelection' in window ? window.getSelection() : false;
822
  if ( selection ) {
823
  if ( 'empty' in selection ) { // Chrome.
23
 
24
  /* Datepicker */
25
  $datepicker.each( function () {
26
+ var currentDatePicker = $( this ),
27
+ args = currentDatePicker.data(),
28
+ icon = currentDatePicker.next( '.yith-icon-calendar' );
29
 
30
  // set animation to false to prevent style 'glitches' when removing class on closing
31
  args.showAnim = false;
36
  instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
37
  };
38
 
39
+ currentDatePicker.datepicker( args );
40
+ if ( icon ) {
41
+ icon.on( 'click', function () {
42
+ currentDatePicker.datepicker( 'show' );
43
+ } )
44
+ }
45
  } );
46
 
47
  /* Colorpicker */
395
  select = wrapper.find( 'select' ).first();
396
 
397
  if ( select.length ) {
398
+ select.val( key ).trigger( 'yith_select_images_value_changed' ).trigger( 'change' );
399
  items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
400
  item.addClass( 'yith-plugin-fw-select-images__item--selected' );
401
  }
434
  /* on-off */
435
  $( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
436
  var input = $( this ).prev( 'input' ),
 
437
  disabled = input.prop( 'disabled' );
438
 
439
  if ( disabled ) {
440
  return;
441
  }
442
 
443
+ input.trigger( 'click' );
444
+ } );
445
+
446
+ // Useful for triggering deps when clicking on field label.
447
+ $( document ).on( 'click', '.yith-plugin-fw-onoff-container input', function ( e ) {
448
+ if ( $( this ).is( ':checked' ) ) {
449
+ $( this ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
450
  } else {
451
+ $( this ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
452
  }
453
+ $( this ).trigger( 'change' );
 
454
  } );
455
 
456
 
827
  /**
828
  * Copy to clip-board
829
  */
830
+ var clearSelection = function () {
831
  var selection = 'getSelection' in window ? window.getSelection() : false;
832
  if ( selection ) {
833
  if ( 'empty' in selection ) { // Chrome.
plugin-fw/assets/js/yith-fields.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input"),i=t.prop("checked");t.prop("disabled")||(i?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change())}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)})}(jQuery);
1
+ !function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this),i=t.data(),n=t.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},t.datepicker(i),n&&n.on("click",function(){t.datepicker("show")})}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed").trigger("change"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("disabled")||t.trigger("click")}),e(document).on("click",".yith-plugin-fw-onoff-container input",function(t){e(this).is(":checked")?e(this).attr("value","yes").addClass("onoffchecked"):e(this).attr("value","no").removeClass("onoffchecked"),e(this).trigger("change")}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)})}(jQuery);
plugin-fw/dist/gutenberg/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '78c76690eb3cb207e0c4cd2d0a155af6');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => 'ef3cdcc6d1490e83026aab4f8e255fab');
plugin-fw/dist/gutenberg/index.js CHANGED
@@ -1 +1 @@
1
- (window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,a,l=t[0],i=t[1],s=t[2],f=0,p=[];f<l.length;f++)a=l[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={0:0},c=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var l=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var s=0;s<l.length;s++)t(l[s]);var u=i;c.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),c=n(19),a=n(21);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r,o,c,a,l;r=n(22),o=n(9).utf8,c=n(23),a=n(9).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):c(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),i=8*e.length,s=1732584193,u=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var b=l._ff,d=l._gg,y=l._hh,g=l._ii;for(h=0;h<n.length;h+=16){var m=s,v=u,_=f,w=p;s=b(s,u,f,p,n[h+0],7,-680876936),p=b(p,s,u,f,n[h+1],12,-389564586),f=b(f,p,s,u,n[h+2],17,606105819),u=b(u,f,p,s,n[h+3],22,-1044525330),s=b(s,u,f,p,n[h+4],7,-176418897),p=b(p,s,u,f,n[h+5],12,1200080426),f=b(f,p,s,u,n[h+6],17,-1473231341),u=b(u,f,p,s,n[h+7],22,-45705983),s=b(s,u,f,p,n[h+8],7,1770035416),p=b(p,s,u,f,n[h+9],12,-1958414417),f=b(f,p,s,u,n[h+10],17,-42063),u=b(u,f,p,s,n[h+11],22,-1990404162),s=b(s,u,f,p,n[h+12],7,1804603682),p=b(p,s,u,f,n[h+13],12,-40341101),f=b(f,p,s,u,n[h+14],17,-1502002290),s=d(s,u=b(u,f,p,s,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=d(p,s,u,f,n[h+6],9,-1069501632),f=d(f,p,s,u,n[h+11],14,643717713),u=d(u,f,p,s,n[h+0],20,-373897302),s=d(s,u,f,p,n[h+5],5,-701558691),p=d(p,s,u,f,n[h+10],9,38016083),f=d(f,p,s,u,n[h+15],14,-660478335),u=d(u,f,p,s,n[h+4],20,-405537848),s=d(s,u,f,p,n[h+9],5,568446438),p=d(p,s,u,f,n[h+14],9,-1019803690),f=d(f,p,s,u,n[h+3],14,-187363961),u=d(u,f,p,s,n[h+8],20,1163531501),s=d(s,u,f,p,n[h+13],5,-1444681467),p=d(p,s,u,f,n[h+2],9,-51403784),f=d(f,p,s,u,n[h+7],14,1735328473),s=y(s,u=d(u,f,p,s,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,s,u,f,n[h+8],11,-2022574463),f=y(f,p,s,u,n[h+11],16,1839030562),u=y(u,f,p,s,n[h+14],23,-35309556),s=y(s,u,f,p,n[h+1],4,-1530992060),p=y(p,s,u,f,n[h+4],11,1272893353),f=y(f,p,s,u,n[h+7],16,-155497632),u=y(u,f,p,s,n[h+10],23,-1094730640),s=y(s,u,f,p,n[h+13],4,681279174),p=y(p,s,u,f,n[h+0],11,-358537222),f=y(f,p,s,u,n[h+3],16,-722521979),u=y(u,f,p,s,n[h+6],23,76029189),s=y(s,u,f,p,n[h+9],4,-640364487),p=y(p,s,u,f,n[h+12],11,-421815835),f=y(f,p,s,u,n[h+15],16,530742520),s=g(s,u=y(u,f,p,s,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,s,u,f,n[h+7],10,1126891415),f=g(f,p,s,u,n[h+14],15,-1416354905),u=g(u,f,p,s,n[h+5],21,-57434055),s=g(s,u,f,p,n[h+12],6,1700485571),p=g(p,s,u,f,n[h+3],10,-1894986606),f=g(f,p,s,u,n[h+10],15,-1051523),u=g(u,f,p,s,n[h+1],21,-2054922799),s=g(s,u,f,p,n[h+8],6,1873313359),p=g(p,s,u,f,n[h+15],10,-30611744),f=g(f,p,s,u,n[h+6],15,-1560198380),u=g(u,f,p,s,n[h+13],21,1309151649),s=g(s,u,f,p,n[h+4],6,-145523070),p=g(p,s,u,f,n[h+11],10,-1120210379),f=g(f,p,s,u,n[h+2],15,718787259),u=g(u,f,p,s,n[h+9],21,-343485551),s=s+m>>>0,u=u+v>>>0,f=f+_>>>0,p=p+w>>>0}return r.endian([s,u,f,p])})._ff=function(e,t,n,r,o,c,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._gg=function(e,t,n,r,o,c,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._hh=function(e,t,n,r,o,c,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._ii=function(e,t,n,r,o,c,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=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&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=window.lodash},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],c=0;c<4;c++)8*r+6*c<=8*e.length?t.push(n.charAt(o>>>6*(3-c)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),c=n(0),a=n(2),l=n(5),i=n.n(l),s=n(10),u=n(11);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(c.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(c.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),b=function(e,t){var n=e.controlType,r=!0;if(e.deps&&e.deps.id&&"value"in e.deps){var o=e.deps.value;"toggle"!==n&&"checkbox"!==n||(o=!0===o||"yes"===o||1===o),r=void 0!==t[e.deps.id]&&o===t[e.deps.id]}return r},d=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var c=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],c=n[1],a=b(c,t),l=t[r];if(a&&void 0!==l)return r+"="+(c.remove_quotes?l:'"'.concat(l,'"'))})):[],a=c.length?" "+c.join(" "):"";n="[".concat(e.shortcode_name).concat(a,"]")}return n},y=n(1),g=n(6),m=n(12),v=n.n(m),_=n(13),w=n.n(_),j=n(14),x=n.n(j),O=n(15),C=n.n(O),k=n(8),E=n.n(k),S=n(16),T=n(4);n(27);var A=function(e){x()(o,e);var t,n,r=(t=o,n=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,r=E()(t);if(n){var o=E()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return C()(this,e)});function o(){var e;return v()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1},e.ajaxTimeout=!1,e}return w()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,c=r.shortcodeHash,a=r.ajaxSuccess,l=r.ajaxResponse,i=r.ajaxUpdated;Object(S.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&i&&(a&&Object(T.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,c,l),Object(T.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,c,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=d(r,n),c=i()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(T.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,c),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(u.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,html:t.html,shortcode:o,shortcodeHash:c,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,html:o,shortcode:o,shortcodeHash:c})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.shortcode,o=e.shortcodeHash,a=this.props.blockArgs,l=a.do_shortcode,i=a.title,s=a.empty_message,u="block-editor-yith-plugin-fw-shortcode-block",f=[u],p=l?"html":"shortcode",b=t,d="";l&&!t&&(p="empty-html",b=r,s&&(d=s));var g=["shortcode","empty-html"].includes(p),m="empty-html"!==p,v=!!d;return f.push("".concat(u,"--").concat(p)),f.push("".concat(u,v?"--has-message":"--no-message")),f.push("yith_block_".concat(o)),Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:f.join(" ")},n?Object(c.createElement)("div",{className:"".concat(u,"__spinner-wrap")},Object(c.createElement)(y.Spinner,null)):"",g&&Object(c.createElement)("div",{className:"".concat(u,"__title components-placeholder__label")},h,i),v&&Object(c.createElement)(c.RawHTML,{className:"".concat(u,"__message")},d),m&&Object(c.createElement)(c.RawHTML,{className:"".concat(u,"__content")},b)))}}]),o}(a.Component),B=n(7);function N(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.disableAlpha,i=Object(B.useInstanceId)(N),s="inspector-yith-color-picker-control-".concat(i);return Object(c.createElement)(y.BaseControl,{id:s,label:n,className:"block-editor-yith-color-control ".concat(t),help:a},Object(c.createElement)(y.ColorPicker,{color:o,disableAlpha:l,onChangeComplete:r}))}function R(e){var t=e.label,n=e.colorValue;return Object(c.createElement)(c.Fragment,null,t,!!n&&Object(c.createElement)(y.ColorIndicator,{colorValue:n}))}function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.palette,i=e.clearable;l=l||Object(g.__experimentalUseEditorFeature)("color.palette");var s=Object(B.useInstanceId)(P),u="inspector-yith-color-palette-control-".concat(s);return Object(c.createElement)(y.BaseControl,{id:u,className:"block-editor-yith-color-palette-control ".concat(t),help:a},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",null,Object(c.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(c.createElement)(y.BaseControl.VisualLabel,null,Object(c.createElement)(R,{colorValue:o,label:n})))),Object(c.createElement)(y.ColorPalette,{value:o,onChange:r,colors:l,clearable:i})))}n(28);for(var M=function(e,t){return function(n){var r=n.attributes,a=(n.className,n.setAttributes),l=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,a(r)};return Object(c.createElement)(c.Fragment,null,!!t.attributes&&Object(c.createElement)(g.InspectorControls,null,Object(c.createElement)(y.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),a=function(t,n){var o=n.controlType,a=r[t],i=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,a),s="".concat(e,"__").concat(t,"-field-wrapper"),u=b(n,r);n.wrapper_class&&(s+=" "+n.wrapper_class);var f=!1;if(u)switch(o){case"select":f=Object(c.createElement)(y.SelectControl,{className:s,key:t,value:a,label:n.label,options:n.options,selected:a,help:i,multiple:!!n.multiple,onChange:function(e){l(e,t,o)}});break;case"text":f=Object(c.createElement)(y.TextControl,{className:s,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"textarea":f=Object(c.createElement)(y.TextareaControl,{className:s,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"toggle":f=Object(c.createElement)(y.ToggleControl,{className:s,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"checkbox":f=Object(c.createElement)(y.CheckboxControl,{className:s,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"number":case"range":f=Object(c.createElement)(y.RangeControl,{className:s,key:t,value:a,label:n.label,help:i,min:n.min,max:n.max,onChange:function(e){l(e,t,o)}});break;case"color":case"colorpicker":f=Object(c.createElement)(N,{className:s,key:t,label:n.label,help:i,value:a,disableAlpha:n.disableAlpha,onChange:function(e){l(e,t,o)}});break;case"color-palette":f=Object(c.createElement)(P,{className:s,key:t,label:n.label,help:i,value:a,clearable:n.clearable||!1,onChange:function(e){l(e,t,o)}});break;case"radio":f=Object(c.createElement)(y.RadioControl,{key:t,value:a,label:n.label,options:n.options,selected:a,checked:a,help:i,onChange:function(e){l(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(a)return a})))),Object(c.createElement)(A,{attributes:r,blockArgs:t}))}},I=function(){var e=U[H];Object(T.addAction)(e,"yith-plugin-fw/jquery-events",(function(){if("jQuery"in window){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];jQuery(document).trigger(e,Object.values(n))}}))},H=0,U=["yith_plugin_fw_gutenberg_before_do_shortcode","yith_plugin_fw_gutenberg_success_do_shortcode","yith_plugin_fw_gutenberg_after_do_shortcode"];H<U.length;H++)I();for(var L=function(){var e=o()(F[Q],2),t=e[0],n=e[1];Object(s.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:M(t,n),save:function(e){var t=e.attributes;return d(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=d(n,t),o='<span class="yith_block_'+i()(r)+'">'+r+"</span>";return Object(c.createElement)(c.RawHTML,null,o)}}]})},Q=0,F=Object.entries(yithGutenbergBlocks);Q<F.length;Q++)L()}]);
1
+ (window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,c,i=t[0],l=t[1],s=t[2],f=0,p=[];f<i.length;f++)c=i[f],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&p.push(o[c][0]),o[c]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,i=1;i<n.length;i++){var l=n[i];0!==o[l]&&(r=!1)}r&&(a.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},o={0:0},a=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var i=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var u=l;a.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),a=n(19),c=n(21);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||c()}},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.lodash},function(e,t,n){var r,o,a,c,i;r=n(22),o=n(10).utf8,a=n(23),c=n(10).bin,(i=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?c.stringToBytes(e):o.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),l=8*e.length,s=1732584193,u=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[l>>>5]|=128<<l%32,n[14+(l+64>>>9<<4)]=l;var d=i._ff,b=i._gg,y=i._hh,g=i._ii;for(h=0;h<n.length;h+=16){var m=s,v=u,_=f,j=p;s=d(s,u,f,p,n[h+0],7,-680876936),p=d(p,s,u,f,n[h+1],12,-389564586),f=d(f,p,s,u,n[h+2],17,606105819),u=d(u,f,p,s,n[h+3],22,-1044525330),s=d(s,u,f,p,n[h+4],7,-176418897),p=d(p,s,u,f,n[h+5],12,1200080426),f=d(f,p,s,u,n[h+6],17,-1473231341),u=d(u,f,p,s,n[h+7],22,-45705983),s=d(s,u,f,p,n[h+8],7,1770035416),p=d(p,s,u,f,n[h+9],12,-1958414417),f=d(f,p,s,u,n[h+10],17,-42063),u=d(u,f,p,s,n[h+11],22,-1990404162),s=d(s,u,f,p,n[h+12],7,1804603682),p=d(p,s,u,f,n[h+13],12,-40341101),f=d(f,p,s,u,n[h+14],17,-1502002290),s=b(s,u=d(u,f,p,s,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=b(p,s,u,f,n[h+6],9,-1069501632),f=b(f,p,s,u,n[h+11],14,643717713),u=b(u,f,p,s,n[h+0],20,-373897302),s=b(s,u,f,p,n[h+5],5,-701558691),p=b(p,s,u,f,n[h+10],9,38016083),f=b(f,p,s,u,n[h+15],14,-660478335),u=b(u,f,p,s,n[h+4],20,-405537848),s=b(s,u,f,p,n[h+9],5,568446438),p=b(p,s,u,f,n[h+14],9,-1019803690),f=b(f,p,s,u,n[h+3],14,-187363961),u=b(u,f,p,s,n[h+8],20,1163531501),s=b(s,u,f,p,n[h+13],5,-1444681467),p=b(p,s,u,f,n[h+2],9,-51403784),f=b(f,p,s,u,n[h+7],14,1735328473),s=y(s,u=b(u,f,p,s,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,s,u,f,n[h+8],11,-2022574463),f=y(f,p,s,u,n[h+11],16,1839030562),u=y(u,f,p,s,n[h+14],23,-35309556),s=y(s,u,f,p,n[h+1],4,-1530992060),p=y(p,s,u,f,n[h+4],11,1272893353),f=y(f,p,s,u,n[h+7],16,-155497632),u=y(u,f,p,s,n[h+10],23,-1094730640),s=y(s,u,f,p,n[h+13],4,681279174),p=y(p,s,u,f,n[h+0],11,-358537222),f=y(f,p,s,u,n[h+3],16,-722521979),u=y(u,f,p,s,n[h+6],23,76029189),s=y(s,u,f,p,n[h+9],4,-640364487),p=y(p,s,u,f,n[h+12],11,-421815835),f=y(f,p,s,u,n[h+15],16,530742520),s=g(s,u=y(u,f,p,s,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,s,u,f,n[h+7],10,1126891415),f=g(f,p,s,u,n[h+14],15,-1416354905),u=g(u,f,p,s,n[h+5],21,-57434055),s=g(s,u,f,p,n[h+12],6,1700485571),p=g(p,s,u,f,n[h+3],10,-1894986606),f=g(f,p,s,u,n[h+10],15,-1051523),u=g(u,f,p,s,n[h+1],21,-2054922799),s=g(s,u,f,p,n[h+8],6,1873313359),p=g(p,s,u,f,n[h+15],10,-30611744),f=g(f,p,s,u,n[h+6],15,-1560198380),u=g(u,f,p,s,n[h+13],21,1309151649),s=g(s,u,f,p,n[h+4],6,-145523070),p=g(p,s,u,f,n[h+11],10,-1120210379),f=g(f,p,s,u,n[h+2],15,718787259),u=g(u,f,p,s,n[h+9],21,-343485551),s=s+m>>>0,u=u+v>>>0,f=f+_>>>0,p=p+j>>>0}return r.endian([s,u,f,p])})._ff=function(e,t,n,r,o,a,c){var i=e+(t&n|~t&r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._gg=function(e,t,n,r,o,a,c){var i=e+(t&r|n&~r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._hh=function(e,t,n,r,o,a,c){var i=e+(t^n^r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._ii=function(e,t,n,r,o,a,c){var i=e+(n^(t|~r))+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(i(e,t));return t&&t.asBytes?n:t&&t.asString?c.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=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&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?t.push(n.charAt(o>>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),a=n(0),c=n(2),i=n(6),l=n.n(i),s=n(11),u=n(12);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(a.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(a.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),d=n(5),b=n.n(d),y=function(e,t,n){var r=!0;if(t&&t.id&&"value"in t){var o=t.value;["toggle","checkbox"].includes(n)&&(o=!0===o||"yes"===o||1===o),o=b.a.isArray(o)?o:[o],r=void 0!==e[t.id]&&o.includes(e[t.id])}return r},g=function(e,t){var n=e.controlType,r=!0;if(e.deps)if(b.a.isArray(e.deps))for(var o in e.deps){var a=e.deps[o];if(!(r=y(t,a,n)))break}else r=y(t,e.deps,n);return r},m=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var a=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],a=n[1],c=g(a,t),i=t[r];if(c&&void 0!==i)return r+"="+(a.remove_quotes?i:'"'.concat(i,'"'))})):[],c=a.length?" "+a.join(" "):"";n="[".concat(e.shortcode_name).concat(c,"]")}return n},v=n(1),_=n(7),j=n(13),w=n.n(j),k=n(14),x=n.n(k),O=n(15),C=n.n(O),E=n(16),S=n.n(E),T=n(9),A=n.n(T),B=n(4);n(27);var N=function(e){C()(o,e);var t,n,r=(t=o,n=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,r=A()(t);if(n){var o=A()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return S()(this,e)});function o(){var e;return w()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},e.ajaxTimeout=!1,e}return x()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,a=r.shortcodeHash,c=r.ajaxSuccess,i=r.ajaxResponse,l=r.ajaxUpdated;Object(d.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&l&&(c&&Object(B.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,a,i),Object(B.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,a,i),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=m(r,n),a=l()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(B.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,a),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(u.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,firstLoading:!1,html:t.html,shortcode:o,shortcodeHash:a,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:o,shortcode:o,shortcodeHash:a})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.firstLoading,o=e.shortcode,c=e.shortcodeHash,i=this.props.blockArgs,l=i.do_shortcode,s=i.title,u=i.empty_message,f="block-editor-yith-plugin-fw-shortcode-block",p=[f],d=l?"html":"shortcode",b=t,y="";r&&n?d="first-loading":l&&!t&&(d="empty-html",b=o,!n&&u&&(y=u));var g=["first-loading","empty-html","shortcode"].includes(d),m=!["first-loading","empty-html"].includes(d),_=!!y;return p.push("".concat(f,"--").concat(d)),p.push("".concat(f,_?"--has-message":"--no-message")),p.push("yith_block_".concat(c)),Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:p.join(" ")},n?Object(a.createElement)("div",{className:"".concat(f,"__spinner-wrap")},Object(a.createElement)(v.Spinner,null)):"",g&&Object(a.createElement)("div",{className:"".concat(f,"__title components-placeholder__label")},h,s),_&&Object(a.createElement)(a.RawHTML,{className:"".concat(f,"__message")},y),m&&Object(a.createElement)(a.RawHTML,{className:"".concat(f,"__content")},b)))}}]),o}(c.Component),R=n(8);function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,c=e.help,i=e.disableAlpha,l=Object(R.useInstanceId)(P),s="inspector-yith-color-picker-control-".concat(l);return Object(a.createElement)(v.BaseControl,{id:s,label:n,className:"block-editor-yith-color-control ".concat(t),help:c},Object(a.createElement)(v.ColorPicker,{color:o,disableAlpha:i,onChangeComplete:r}))}function M(e){var t=e.label,n=e.colorValue;return Object(a.createElement)(a.Fragment,null,t,!!n&&Object(a.createElement)(v.ColorIndicator,{colorValue:n}))}function I(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,c=e.help,i=e.palette,l=e.clearable;i=i||Object(_.__experimentalUseEditorFeature)("color.palette");var s=Object(R.useInstanceId)(I),u="inspector-yith-color-palette-control-".concat(s);return Object(a.createElement)(v.BaseControl,{id:u,className:"block-editor-yith-color-palette-control ".concat(t),help:c},Object(a.createElement)("fieldset",null,Object(a.createElement)("legend",null,Object(a.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(a.createElement)(v.BaseControl.VisualLabel,null,Object(a.createElement)(M,{colorValue:o,label:n})))),Object(a.createElement)(v.ColorPalette,{value:o,onChange:r,colors:i,clearable:l})))}n(28);for(var H=function(e,t){return function(n){var r=n.attributes,c=(n.className,n.setAttributes),i=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,c(r)};return Object(a.createElement)(a.Fragment,null,!!t.attributes&&Object(a.createElement)(_.InspectorControls,null,Object(a.createElement)(v.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),c=function(t,n){var o=n.controlType,c=r[t],l=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,c),s="".concat(e,"__").concat(t,"-field-wrapper"),u=g(n,r);n.wrapper_class&&(s+=" "+n.wrapper_class);var f=!1;if(u)switch(o){case"select":f=Object(a.createElement)(v.SelectControl,{className:s,key:t,value:c,label:n.label,options:n.options,selected:c,help:l,multiple:!!n.multiple,onChange:function(e){i(e,t,o)}});break;case"text":f=Object(a.createElement)(v.TextControl,{className:s,key:t,value:c,label:n.label,help:l,onChange:function(e){i(e,t,o)}});break;case"textarea":f=Object(a.createElement)(v.TextareaControl,{className:s,key:t,value:c,label:n.label,help:l,onChange:function(e){i(e,t,o)}});break;case"toggle":f=Object(a.createElement)(v.ToggleControl,{className:s,key:t,value:c,label:n.label,help:l,checked:c,onChange:function(e){i(e,t,o)}});break;case"checkbox":f=Object(a.createElement)(v.CheckboxControl,{className:s,key:t,value:c,label:n.label,help:l,checked:c,onChange:function(e){i(e,t,o)}});break;case"number":case"range":f=Object(a.createElement)(v.RangeControl,{className:s,key:t,value:c,label:n.label,help:l,min:n.min,max:n.max,onChange:function(e){i(e,t,o)}});break;case"color":case"colorpicker":f=Object(a.createElement)(P,{className:s,key:t,label:n.label,help:l,value:c,disableAlpha:n.disableAlpha,onChange:function(e){i(e,t,o)}});break;case"color-palette":f=Object(a.createElement)(I,{className:s,key:t,label:n.label,help:l,value:c,clearable:n.clearable||!1,onChange:function(e){i(e,t,o)}});break;case"radio":f=Object(a.createElement)(v.RadioControl,{key:t,value:c,label:n.label,options:n.options,selected:c,checked:c,help:l,onChange:function(e){i(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(c)return c})))),Object(a.createElement)(N,{attributes:r,blockArgs:t}))}},L=function(){var e=Q[U];Object(B.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}))},U=0,Q=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];U<Q.length;U++)L();for(var F=function(){var e=o()(J[D],2),t=e[0],n=e[1];Object(s.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:H(t,n),save:function(e){var t=e.attributes;return m(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=m(n,t),o='<span class="yith_block_'+l()(r)+'">'+r+"</span>";return Object(a.createElement)(a.RawHTML,null,o)}}]})},D=0,J=Object.entries(yithGutenbergBlocks);D<J.length;D++)F()}]);
plugin-fw/dist/gutenberg/style-index.css CHANGED
@@ -1,2 +1,2 @@
1
- .block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode{padding:1em 1em 1.2em;border:1px solid #1e1e1e;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode .block-editor-yith-plugin-fw-shortcode-block__content{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;font-size:13px;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block{position:relative;min-height:30px}.block-editor-yith-plugin-fw-shortcode-block .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html.block-editor-yith-plugin-fw-shortcode-block--no-message .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__message{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:italic;font-size:13px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__content{display:none}
2
  .block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
1
+ .block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--first-loading{padding:1em 1em 1.2em;border:1px solid #1e1e1e;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode .block-editor-yith-plugin-fw-shortcode-block__content{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;font-size:13px;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block{position:relative;min-height:30px}.block-editor-yith-plugin-fw-shortcode-block .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--first-loading .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html.block-editor-yith-plugin-fw-shortcode-block--no-message .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__message{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:italic;font-size:13px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__content{display:none}
2
  .block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php CHANGED
@@ -401,15 +401,31 @@ if ( ! class_exists( 'YITH_Elementor_Widget' ) ) {
401
  $option = $this->override_elementor_specific_data( $option );
402
  $type = isset( $option['type'] ) ? $option['type'] : false;
403
 
404
- if ( isset( $option['deps'], $option['deps']['id'], $option['deps']['value'] ) && ! isset( $option['condition'] ) ) {
 
 
 
 
 
 
 
 
 
 
405
 
406
- $value = $option['deps']['value'];
407
- if ( in_array( $type, array( 'toggle', 'onoff', 'checkbox' ), true ) ) {
408
- $value = yith_plugin_fw_is_true( $value ) ? 'yes' : 'no';
 
 
 
 
 
 
 
 
409
  }
410
- $option['condition'] = array(
411
- $option['deps']['id'] => $value,
412
- );
413
  unset( $option['deps'] );
414
  }
415
 
401
  $option = $this->override_elementor_specific_data( $option );
402
  $type = isset( $option['type'] ) ? $option['type'] : false;
403
 
404
+ if ( ! empty( $option['deps'] ) && ! isset( $option['condition'] ) ) {
405
+ if ( isset( $option['deps']['id'], $option['deps']['value'] ) ) {
406
+ $deps = array(
407
+ array(
408
+ 'id' => $option['deps']['id'],
409
+ 'value' => $option['deps']['value'],
410
+ ),
411
+ );
412
+ } else {
413
+ $deps = $option['deps'];
414
+ }
415
 
416
+ $option['condition'] = array();
417
+
418
+ foreach ( $deps as $dep ) {
419
+ if ( isset( $dep['id'], $dep['value'] ) ) {
420
+ $dep_value = $dep['value'];
421
+ $dep_id = $dep['id'];
422
+ if ( in_array( $type, array( 'toggle', 'onoff', 'checkbox' ), true ) ) {
423
+ $dep_value = yith_plugin_fw_is_true( $dep_value ) ? 'yes' : 'no';
424
+ }
425
+ $option['condition'][ $dep_id ] = $dep_value;
426
+ }
427
  }
428
+
 
 
429
  unset( $option['deps'] );
430
  }
431
 
plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js CHANGED
@@ -8,18 +8,24 @@
8
  import { addAction } from '@wordpress/hooks';
9
 
10
  const actions = [
11
- 'yith_plugin_fw_gutenberg_before_do_shortcode',
12
- 'yith_plugin_fw_gutenberg_success_do_shortcode',
13
- 'yith_plugin_fw_gutenberg_after_do_shortcode'
14
  ];
15
 
16
  for ( const action of actions ) {
17
  addAction(
18
- action,
19
  'yith-plugin-fw/jquery-events',
20
  ( ...params ) => {
21
  if ( 'jQuery' in window ) {
22
- jQuery( document ).trigger( action, Object.values( params ) );
 
 
 
 
 
 
23
  }
24
  }
25
  );
8
  import { addAction } from '@wordpress/hooks';
9
 
10
  const actions = [
11
+ { key: 'yith_plugin_fw_gutenberg_before_do_shortcode', delay: 0 },
12
+ { key: 'yith_plugin_fw_gutenberg_success_do_shortcode', delay: 200 },
13
+ { key: 'yith_plugin_fw_gutenberg_after_do_shortcode', delay: 200 }
14
  ];
15
 
16
  for ( const action of actions ) {
17
  addAction(
18
+ action.key,
19
  'yith-plugin-fw/jquery-events',
20
  ( ...params ) => {
21
  if ( 'jQuery' in window ) {
22
+ if ( action.delay ) {
23
+ setTimeout( () => {
24
+ jQuery( document ).trigger( action.key, Object.values( params ) );
25
+ }, action.delay );
26
+ } else {
27
+ jQuery( document ).trigger( action.key, Object.values( params ) );
28
+ }
29
  }
30
  }
31
  );
plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js CHANGED
@@ -5,16 +5,41 @@
5
  * @param {object} attributes The attributes.
6
  * @returns {boolean}
7
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  export const checkForDeps = ( attributeArgs, attributes ) => {
9
  const { controlType } = attributeArgs;
10
  let show = true;
11
 
12
- if ( attributeArgs.deps && attributeArgs.deps.id && 'value' in attributeArgs.deps ) {
13
- let depsValue = attributeArgs.deps.value;
14
- if ( 'toggle' === controlType || 'checkbox' === controlType ) {
15
- depsValue = true === depsValue || 'yes' === depsValue || 1 === depsValue;
 
 
 
 
 
 
 
16
  }
17
- show = typeof attributes[ attributeArgs.deps.id ] !== 'undefined' && depsValue === attributes[ attributeArgs.deps.id ];
18
  }
19
 
20
  return show;
5
  * @param {object} attributes The attributes.
6
  * @returns {boolean}
7
  */
8
+
9
+ import _ from 'lodash';
10
+
11
+ const checkForSingleDep = ( attributes, dep, controlType ) => {
12
+ let show = true;
13
+
14
+ if ( dep && dep.id && 'value' in dep ) {
15
+ let depValue = dep.value;
16
+ if ( ['toggle', 'checkbox'].includes( controlType ) ) {
17
+ depValue = true === depValue || 'yes' === depValue || 1 === depValue;
18
+ }
19
+ depValue = _.isArray( depValue ) ? depValue : [depValue];
20
+
21
+ show = typeof attributes[ dep.id ] !== 'undefined' && depValue.includes( attributes[ dep.id ] );
22
+ }
23
+
24
+ return show;
25
+ };
26
+
27
  export const checkForDeps = ( attributeArgs, attributes ) => {
28
  const { controlType } = attributeArgs;
29
  let show = true;
30
 
31
+ if ( attributeArgs.deps ) {
32
+ if ( _.isArray( attributeArgs.deps ) ) {
33
+ for ( let i in attributeArgs.deps ) {
34
+ const singleDep = attributeArgs.deps[ i ];
35
+ show = checkForSingleDep( attributes, singleDep, controlType );
36
+ if ( !show ) {
37
+ break;
38
+ }
39
+ }
40
+ } else {
41
+ show = checkForSingleDep( attributes, attributeArgs.deps, controlType );
42
  }
 
43
  }
44
 
45
  return show;
plugin-fw/includes/builders/gutenberg/src/components/shortcode/index.js CHANGED
@@ -40,7 +40,8 @@ export class Shortcode extends Component {
40
  ajaxUpdated : false,
41
  ajaxSuccess : false,
42
  ajaxResponse : false,
43
- loading : false
 
44
  };
45
 
46
  this.ajaxTimeout = false;
@@ -90,21 +91,21 @@ export class Shortcode extends Component {
90
  };
91
 
92
  ajaxFetch( ajaxData ).then( response => {
93
- this.setState( { loading: false, html: response.html, shortcode, shortcodeHash, ajaxSuccess: true, ajaxUpdated: true, ajaxResponse: response } );
94
  } )
95
  .catch( error => {
96
  console.log( { error } );
97
  } );
98
  }, 300 );
99
  } else {
100
- this.setState( { loading: false, html: shortcode, shortcode, shortcodeHash } );
101
  }
102
  }
103
 
104
  render() {
105
- const { html, loading, shortcode, shortcodeHash } = this.state;
106
- const { blockArgs } = this.props;
107
- const { do_shortcode, title, empty_message } = blockArgs;
108
 
109
  const mainClass = 'block-editor-yith-plugin-fw-shortcode-block';
110
 
@@ -113,16 +114,18 @@ export class Shortcode extends Component {
113
  let htmlToShow = html;
114
  let message = '';
115
 
116
- if ( do_shortcode && !html ) {
 
 
117
  type = 'empty-html';
118
  htmlToShow = shortcode;
119
- if ( empty_message ) {
120
  message = empty_message;
121
  }
122
  }
123
 
124
- const showTitle = ['shortcode', 'empty-html'].includes( type );
125
- const showContent = 'empty-html' !== type;
126
  const showMessage = !!message;
127
 
128
  wrapperClasses.push( `${mainClass}--${type}` );
40
  ajaxUpdated : false,
41
  ajaxSuccess : false,
42
  ajaxResponse : false,
43
+ loading : false,
44
+ firstLoading : true
45
  };
46
 
47
  this.ajaxTimeout = false;
91
  };
92
 
93
  ajaxFetch( ajaxData ).then( response => {
94
+ this.setState( { loading: false, firstLoading: false, html: response.html, shortcode, shortcodeHash, ajaxSuccess: true, ajaxUpdated: true, ajaxResponse: response } );
95
  } )
96
  .catch( error => {
97
  console.log( { error } );
98
  } );
99
  }, 300 );
100
  } else {
101
+ this.setState( { loading: false, firstLoading: false, html: shortcode, shortcode, shortcodeHash } );
102
  }
103
  }
104
 
105
  render() {
106
+ const { html, loading, firstLoading, shortcode, shortcodeHash } = this.state;
107
+ const { blockArgs } = this.props;
108
+ const { do_shortcode, title, empty_message } = blockArgs;
109
 
110
  const mainClass = 'block-editor-yith-plugin-fw-shortcode-block';
111
 
114
  let htmlToShow = html;
115
  let message = '';
116
 
117
+ if ( firstLoading && loading ) {
118
+ type = 'first-loading';
119
+ } else if ( do_shortcode && !html ) {
120
  type = 'empty-html';
121
  htmlToShow = shortcode;
122
+ if ( !loading && empty_message ) {
123
  message = empty_message;
124
  }
125
  }
126
 
127
+ const showTitle = ['first-loading', 'empty-html', 'shortcode'].includes( type );
128
+ const showContent = !['first-loading', 'empty-html'].includes( type );
129
  const showMessage = !!message;
130
 
131
  wrapperClasses.push( `${mainClass}--${type}` );
plugin-fw/includes/builders/gutenberg/src/components/shortcode/style.scss CHANGED
@@ -24,6 +24,14 @@
24
  transform: translateX(-50%) translateY(-50%);
25
  }
26
 
 
 
 
 
 
 
 
 
27
  &.block-editor-yith-plugin-fw-shortcode-block--shortcode {
28
 
29
  @extend %bordered-block;
24
  transform: translateX(-50%) translateY(-50%);
25
  }
26
 
27
+ &.block-editor-yith-plugin-fw-shortcode-block--first-loading{
28
+ @extend %bordered-block;
29
+
30
+ .block-editor-yith-plugin-fw-shortcode-block__title {
31
+ margin-bottom: 0;
32
+ }
33
+ }
34
+
35
  &.block-editor-yith-plugin-fw-shortcode-block--shortcode {
36
 
37
  @extend %bordered-block;
plugin-fw/includes/class-yit-plugin-panel.php CHANGED
@@ -1343,7 +1343,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
1343
  esc_html__( 'We need your support', 'yith-plugin-fw' ),
1344
  esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
1345
  esc_url( $rate_link ),
1346
- esc_html__( 'help us by leaving a five-star rating', 'yith-plugin-fw' ),
1347
  esc_html__( ':) Thanks!', 'yith-plugin-fw' )
1348
  );
1349
  ?>
1343
  esc_html__( 'We need your support', 'yith-plugin-fw' ),
1344
  esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
1345
  esc_url( $rate_link ),
1346
+ esc_html__( 'help us by leaving a good review', 'yith-plugin-fw' ),
1347
  esc_html__( ':) Thanks!', 'yith-plugin-fw' )
1348
  );
1349
  ?>
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.6.2
5
  * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author YITH
10
- * @version 3.6.2
11
  * @package YITH\PluginFramework
12
  */
13
 
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.6.8
5
  * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author YITH
10
+ * @version 3.6.8
11
  * @package YITH\PluginFramework
12
  */
13
 
plugin-fw/languages/yith-plugin-fw-el.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-el.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-03-05 09:22:31+00:00\n"
8
  "PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
9
  "Language: el_GR\n"
10
  "MIME-Version: 1.0\n"
@@ -133,7 +133,8 @@ msgstr ""
133
  "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
134
 
135
  #: includes/class-yit-plugin-panel.php:1346
136
- msgid "help us by leaving a five-star rating"
 
137
  msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
138
 
139
  #: includes/class-yit-plugin-panel.php:1347
@@ -648,16 +649,14 @@ msgid "Payments"
648
  msgstr "Πληρωμές"
649
 
650
  #: templates/fields/copy-to-clipboard.php:41
651
- #, fuzzy
652
  msgctxt "Copy-to-clipboard message"
653
  msgid "Copied!"
654
- msgstr "Έγινε αντιγραφή!"
655
 
656
  #: templates/fields/copy-to-clipboard.php:45
657
- #, fuzzy
658
  msgctxt "Copy-to-clipboard button text"
659
  msgid "Copy"
660
- msgstr "Αντιγραφή Κώδικα"
661
 
662
  #: templates/fields/dimensions.php:13
663
  msgctxt "Position in the \"Dimensions\" field"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
8
  "PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
9
  "Language: el_GR\n"
10
  "MIME-Version: 1.0\n"
133
  "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
134
 
135
  #: includes/class-yit-plugin-panel.php:1346
136
+ #, fuzzy
137
+ msgid "help us by leaving a good review"
138
  msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
139
 
140
  #: includes/class-yit-plugin-panel.php:1347
649
  msgstr "Πληρωμές"
650
 
651
  #: templates/fields/copy-to-clipboard.php:41
 
652
  msgctxt "Copy-to-clipboard message"
653
  msgid "Copied!"
654
+ msgstr ""
655
 
656
  #: templates/fields/copy-to-clipboard.php:45
 
657
  msgctxt "Copy-to-clipboard button text"
658
  msgid "Copy"
659
+ msgstr ""
660
 
661
  #: templates/fields/dimensions.php:13
662
  msgctxt "Position in the \"Dimensions\" field"
plugin-fw/languages/yith-plugin-fw-es_ES.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-es_ES.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-03-05 09:22:31+00:00\n"
8
- "PO-Revision-Date: 2021-02-15 20:26:24+0000\n"
9
  "Language: es\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -133,7 +133,8 @@ msgid "to keep updating and improving the plugin. Please,"
133
  msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
134
 
135
  #: includes/class-yit-plugin-panel.php:1346
136
- msgid "help us by leaving a five-star rating"
 
137
  msgstr "ayúdanos con una valoración de cinco estrellas"
138
 
139
  #: includes/class-yit-plugin-panel.php:1347
@@ -587,7 +588,7 @@ msgstr "YITH"
587
  #: includes/builders/elementor/class-yith-elementor-widget.php:252
588
  msgctxt "Elementor Widget - section title"
589
  msgid "%s - Options"
590
- msgstr ""
591
 
592
  #: includes/builders/gutenberg/class-yith-gutenberg.php:147
593
  msgctxt "[gutenberg]: Category Name"
@@ -652,16 +653,14 @@ msgid "Payments"
652
  msgstr "Pagos"
653
 
654
  #: templates/fields/copy-to-clipboard.php:41
655
- #, fuzzy
656
  msgctxt "Copy-to-clipboard message"
657
  msgid "Copied!"
658
  msgstr "¡Copiado!"
659
 
660
  #: templates/fields/copy-to-clipboard.php:45
661
- #, fuzzy
662
  msgctxt "Copy-to-clipboard button text"
663
  msgid "Copy"
664
- msgstr "Copiar código"
665
 
666
  #: templates/fields/dimensions.php:13
667
  msgctxt "Position in the \"Dimensions\" field"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
8
+ "PO-Revision-Date: 2021-03-15 15:43:52+0000\n"
9
  "Language: es\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
133
  msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
134
 
135
  #: includes/class-yit-plugin-panel.php:1346
136
+ #, fuzzy
137
+ msgid "help us by leaving a good review"
138
  msgstr "ayúdanos con una valoración de cinco estrellas"
139
 
140
  #: includes/class-yit-plugin-panel.php:1347
588
  #: includes/builders/elementor/class-yith-elementor-widget.php:252
589
  msgctxt "Elementor Widget - section title"
590
  msgid "%s - Options"
591
+ msgstr "%s - Opciones"
592
 
593
  #: includes/builders/gutenberg/class-yith-gutenberg.php:147
594
  msgctxt "[gutenberg]: Category Name"
653
  msgstr "Pagos"
654
 
655
  #: templates/fields/copy-to-clipboard.php:41
 
656
  msgctxt "Copy-to-clipboard message"
657
  msgid "Copied!"
658
  msgstr "¡Copiado!"
659
 
660
  #: templates/fields/copy-to-clipboard.php:45
 
661
  msgctxt "Copy-to-clipboard button text"
662
  msgid "Copy"
663
+ msgstr "Copiar"
664
 
665
  #: templates/fields/dimensions.php:13
666
  msgctxt "Position in the \"Dimensions\" field"
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-03-05 09:22:31+00:00\n"
8
- "PO-Revision-Date: 2021-03-01 21:20:50+0000\n"
9
  "Language: it\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -131,7 +131,8 @@ msgid "to keep updating and improving the plugin. Please,"
131
  msgstr "per poter continuare ad aggiornare e migliorare il plugin."
132
 
133
  #: includes/class-yit-plugin-panel.php:1346
134
- msgid "help us by leaving a five-star rating"
 
135
  msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
136
 
137
  #: includes/class-yit-plugin-panel.php:1347
@@ -653,16 +654,14 @@ msgid "Payments"
653
  msgstr "Pagamenti"
654
 
655
  #: templates/fields/copy-to-clipboard.php:41
656
- #, fuzzy
657
  msgctxt "Copy-to-clipboard message"
658
  msgid "Copied!"
659
  msgstr "Copiato!"
660
 
661
  #: templates/fields/copy-to-clipboard.php:45
662
- #, fuzzy
663
  msgctxt "Copy-to-clipboard button text"
664
  msgid "Copy"
665
- msgstr "Copia codice"
666
 
667
  #: templates/fields/dimensions.php:13
668
  msgctxt "Position in the \"Dimensions\" field"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
8
+ "PO-Revision-Date: 2021-04-02 11:09:29+0000\n"
9
  "Language: it\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
131
  msgstr "per poter continuare ad aggiornare e migliorare il plugin."
132
 
133
  #: includes/class-yit-plugin-panel.php:1346
134
+ #, fuzzy
135
+ msgid "help us by leaving a good review"
136
  msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
137
 
138
  #: includes/class-yit-plugin-panel.php:1347
654
  msgstr "Pagamenti"
655
 
656
  #: templates/fields/copy-to-clipboard.php:41
 
657
  msgctxt "Copy-to-clipboard message"
658
  msgid "Copied!"
659
  msgstr "Copiato!"
660
 
661
  #: templates/fields/copy-to-clipboard.php:45
 
662
  msgctxt "Copy-to-clipboard button text"
663
  msgid "Copy"
664
+ msgstr "Copia"
665
 
666
  #: templates/fields/dimensions.php:13
667
  msgctxt "Position in the \"Dimensions\" field"
plugin-fw/languages/yith-plugin-fw-nl_NL.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-nl_NL.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-03-05 09:22:31+00:00\n"
8
- "PO-Revision-Date: 2021-03-02 10:41:26+0000\n"
9
  "Language: nl\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -130,7 +130,8 @@ msgid "to keep updating and improving the plugin. Please,"
130
  msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
131
 
132
  #: includes/class-yit-plugin-panel.php:1346
133
- msgid "help us by leaving a five-star rating"
 
134
  msgstr "help ons door een 5-sterren waardering achter te laten"
135
 
136
  #: includes/class-yit-plugin-panel.php:1347
@@ -649,16 +650,14 @@ msgid "Payments"
649
  msgstr "Betalingen"
650
 
651
  #: templates/fields/copy-to-clipboard.php:41
652
- #, fuzzy
653
  msgctxt "Copy-to-clipboard message"
654
  msgid "Copied!"
655
  msgstr "Gekopieerd!"
656
 
657
  #: templates/fields/copy-to-clipboard.php:45
658
- #, fuzzy
659
  msgctxt "Copy-to-clipboard button text"
660
  msgid "Copy"
661
- msgstr "Code kopiëren"
662
 
663
  #: templates/fields/dimensions.php:13
664
  msgctxt "Position in the \"Dimensions\" field"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
8
+ "PO-Revision-Date: 2021-04-05 19:01:01+0000\n"
9
  "Language: nl\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
130
  msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
131
 
132
  #: includes/class-yit-plugin-panel.php:1346
133
+ #, fuzzy
134
+ msgid "help us by leaving a good review"
135
  msgstr "help ons door een 5-sterren waardering achter te laten"
136
 
137
  #: includes/class-yit-plugin-panel.php:1347
650
  msgstr "Betalingen"
651
 
652
  #: templates/fields/copy-to-clipboard.php:41
 
653
  msgctxt "Copy-to-clipboard message"
654
  msgid "Copied!"
655
  msgstr "Gekopieerd!"
656
 
657
  #: templates/fields/copy-to-clipboard.php:45
 
658
  msgctxt "Copy-to-clipboard button text"
659
  msgid "Copy"
660
+ msgstr "Kopieer"
661
 
662
  #: templates/fields/dimensions.php:13
663
  msgctxt "Position in the \"Dimensions\" field"
plugin-fw/languages/yith-plugin-fw.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-03-05 09:22:31+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -138,7 +138,7 @@ msgid "to keep updating and improving the plugin. Please,"
138
  msgstr ""
139
 
140
  #: includes/class-yit-plugin-panel.php:1346
141
- msgid "help us by leaving a five-star rating"
142
  msgstr ""
143
 
144
  #: includes/class-yit-plugin-panel.php:1347
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
138
  msgstr ""
139
 
140
  #: includes/class-yit-plugin-panel.php:1346
141
+ msgid "help us by leaving a good review"
142
  msgstr ""
143
 
144
  #: includes/class-yit-plugin-panel.php:1347