WooCommerce Variation Swatches - Version 2.0.5

Version Description

  • 20-07-2022 =

  • Add: woo_variation_swatches_html filter to modify swatches output

  • Add: woo_variation_swatches_nav_widget_html filter to modify widget output

  • Update: [wvs_show_archive_variation] shortcode updated, now product_id can be added like: [wvs_show_archive_variation product_id="ID"].

  • Update: data-dependency attribute to data-gwp_dependency for possible conflict.

  • Update: translation string.

Download this release

Release Info

Developer EmranAhmed
Plugin Icon 128x128 WooCommerce Variation Swatches
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

README.txt CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
5
  Requires at least: 5.5
6
  Tested up to: 6.0
7
  WC requires at least: 5.5
8
- WC tested up to: 6.6
9
  Stable tag: trunk
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -530,7 +530,6 @@ We provide exclusive technical support to our customers. Our plugin has plenty o
530
 
531
  </blockquote>
532
 
533
-
534
  == Installation ==
535
 
536
  ### Automatic Install From WordPress Dashboard
@@ -617,6 +616,14 @@ And your are ready to go.
617
 
618
  == Changelog ==
619
 
 
 
 
 
 
 
 
 
620
  = 2.0.4 - 08-07-2022 =
621
 
622
  * Fix: Composite Product Selecting Issue
5
  Requires at least: 5.5
6
  Tested up to: 6.0
7
  WC requires at least: 5.5
8
+ WC tested up to: 6.7
9
  Stable tag: trunk
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
530
 
531
  </blockquote>
532
 
 
533
  == Installation ==
534
 
535
  ### Automatic Install From WordPress Dashboard
616
 
617
  == Changelog ==
618
 
619
+ = 2.0.5 - 20-07-2022 =
620
+
621
+ * Add: `woo_variation_swatches_html` filter to modify swatches output
622
+ * Add: `woo_variation_swatches_nav_widget_html` filter to modify widget output
623
+ * Update: `[wvs_show_archive_variation]` shortcode updated, now `product_id` can be added like: `[wvs_show_archive_variation product_id="ID"]`.
624
+ * Update: `data-dependency` attribute to `data-gwp_dependency` for possible conflict.
625
+ * Update: translation string.
626
+
627
  = 2.0.4 - 08-07-2022 =
628
 
629
  * Fix: Composite Product Selecting Issue
assets/css/admin.css CHANGED
@@ -1,8 +1,8 @@
1
  /*!
2
- * Variation Swatches for WooCommerce
3
- *
4
- * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 7/8/2022, 11:04:45 PM
6
  * Released under the GPLv3 license.
7
  */
8
  .button.button-danger {
@@ -18,7 +18,7 @@
18
  background: #C9302C;
19
  }
20
 
21
- [data-dependency]:not(.dependency-show) {
22
  display: none !important;
23
  }
24
 
@@ -199,7 +199,7 @@
199
 
200
  .woo-variation-swatches-group-section-wrapper .woocommerce-BlankState-message::before {
201
  font-family: "Dashicons";
202
- content: "\F307";
203
  }
204
 
205
  .woo-variation-swatches-variation-product-options-wrapper {
@@ -344,4 +344,4 @@
344
  }
345
  .woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination .tablenav-pages .displaying-num {
346
  padding: 0 2px;
347
- }
1
  /*!
2
+ * Variation Swatches for WooCommerce
3
+ *
4
+ * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 7/20/2022, 7:03:48 PM
6
  * Released under the GPLv3 license.
7
  */
8
  .button.button-danger {
18
  background: #C9302C;
19
  }
20
 
21
+ [data-gwp_dependency]:not(.dependency-show) {
22
  display: none !important;
23
  }
24
 
199
 
200
  .woo-variation-swatches-group-section-wrapper .woocommerce-BlankState-message::before {
201
  font-family: "Dashicons";
202
+ content: "\f307";
203
  }
204
 
205
  .woo-variation-swatches-variation-product-options-wrapper {
344
  }
345
  .woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination .tablenav-pages .displaying-num {
346
  padding: 0 2px;
347
+ }
assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;-webkit-box-shadow:0 1px 0 #a72d2b;box-shadow:0 1px 0 #a72d2b;vertical-align:top}.button.button-danger.active,.button.button-danger:active,.button.button-danger:focus,.button.button-danger:hover{color:#fff;background:#c9302c}[data-dependency]:not(.dependency-show){display:none!important}.meta-image-field-wrapper{display:table}.meta-image-field-wrapper .button{margin:5px 0;display:block}.meta-image-field-wrapper .image-preview{display:table-cell;width:60px;padding-right:10px}.meta-image-field-wrapper .button-wrapper{display:table-cell;vertical-align:top}.wvs-go-pro-action-link>a{font-weight:700;text-transform:capitalize;color:#9c27b0;text-shadow:1px 1px 1px #eee}#wvs-meta-preview{width:30px}.wvs-preview{width:30px;height:30px;border:1px solid rgba(0,0,0,.2);border-radius:2px}.woo-variation-swatches-pro_tab.pro-inactive a{background-color:var(--wc-primary);color:var(--wc-content-bg)}#woo-variation-swatches-tutorials-wrapper{background:#fff;border-radius:2px;border:1px solid #ddd}#woo-variation-swatches-tutorials-wrapper img{width:100%}#woo-variation-swatches-tutorials-wrapper ul{margin:0}#woo-variation-swatches-tutorials-wrapper li{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:50px 30px;margin:0;border-bottom:1px solid #ddd;position:relative}#woo-variation-swatches-tutorials-wrapper li:last-child{border:0}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper,#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper{float:left;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper{position:relative;width:60%}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper .ribbon{position:absolute;left:-5px;top:-5px;z-index:1;overflow:hidden;width:75px;height:75px;text-align:right;margin:1px 22px}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper .ribbon span{font-size:10px;font-weight:700;color:#fff;text-transform:uppercase;text-align:center;line-height:20px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);width:100px;display:block;background:#bc0808;-webkit-box-shadow:0 3px 10px -5px #000;box-shadow:0 3px 10px -5px #000;position:absolute;top:19px;left:-21px}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper .ribbon span:after{content:"";position:absolute;right:0;top:100%;z-index:-1;border-color:#8f0808 #8f0808 transparent transparent;border-style:solid;border-width:3px}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper{width:40%}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper h3{margin:0 0 20px;font-size:1.5em}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-contents{font-size:15px;line-height:1.5em;margin-bottom:20px}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button{border-radius:3px;line-height:1;padding:13px 20px;font-size:13px;height:40px;-webkit-box-shadow:none;box-shadow:none;text-shadow:none}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button:active{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo{background-color:#f44336;color:#fff;border:0}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo:hover{background:#c71609}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs{background-color:#36373a;color:#fff;border:0}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs:hover{background:#5d5e61;border-color:#5d5e61}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-pro{background-color:#39b54a;color:#fff;border:1px solid #39b54a}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-pro:hover{background:#3fc851;border-color:#3fc851}.woo-variation-swatches-group-table-list tbody>:nth-child(odd){background-color:#f6f7f7}.woo-variation-swatches-group-section-wrapper .woocommerce-BlankState-message:before{font-family:Dashicons;content:"\F307"}.woo-variation-swatches-variation-product-options-wrapper .woocommerce-message{margin:10px}.woo-variation-swatches-variation-product-options-wrapper #saved-message{display:none}.woo-variation-swatches-variation-product-options-wrapper h4{margin:0!important;padding:10px 18px;font-size:1em!important;overflow:hidden;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.woo-variation-swatches-variation-product-options-wrapper .woocommerce-help-tip{margin:0 5px!important}.woo-variation-swatches-variation-product-options-wrapper [data-gwpdepends].has-dependent-data.show{display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches-variation-product-options-wrapper .product-label-settings{background-color:#fff}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group{padding:5px;border-bottom:1px solid #eee;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group .form-label{vertical-align:middle;line-height:2;width:280px;margin:5px 10px;font-weight:700}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group .form-field{vertical-align:middle;line-height:2;margin:5px 10px}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group .form-field .description{display:inline-block;vertical-align:middle;padding:0 10px}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group-inline{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border-bottom:none!important;border-radius:0!important}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox>h4{cursor:pointer;background-color:#fafafa;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:1px solid #eee}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox>h4 .attribute-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox.open>h4{background-color:#eee}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox .wc-metabox{border:1px solid #eee}.woo-variation-swatches-variation-product-options-wrapper .woo-variation-swatches-attribute-data{background-color:#fff}.woo-variation-swatches-variation-product-options-wrapper .woo-variation-swatches-attribute-data-inner{margin:5px 0;padding:0 5px}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings{margin:15px}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination{margin:10px 0}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination .tablenav-pages{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;line-height:2;vertical-align:center}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination .tablenav-pages .displaying-num{padding:0 2px}
1
+ .button.button-danger{background-color:#af2d2b;border-color:#a62d2b;-webkit-box-shadow:0 1px 0 #a72d2b;box-shadow:0 1px 0 #a72d2b;color:#fff;vertical-align:top}.button.button-danger.active,.button.button-danger:active,.button.button-danger:focus,.button.button-danger:hover{background:#c9302c;color:#fff}[data-gwp_dependency]:not(.dependency-show){display:none!important}.meta-image-field-wrapper{display:table}.meta-image-field-wrapper .button{display:block;margin:5px 0}.meta-image-field-wrapper .image-preview{display:table-cell;padding-right:10px;width:60px}.meta-image-field-wrapper .button-wrapper{display:table-cell;vertical-align:top}.wvs-go-pro-action-link>a{color:#9c27b0;font-weight:700;text-shadow:1px 1px 1px #eee;text-transform:capitalize}#wvs-meta-preview{width:30px}.wvs-preview{border:1px solid rgba(0,0,0,.2);border-radius:2px;height:30px;width:30px}.woo-variation-swatches-pro_tab.pro-inactive a{background-color:var(--wc-primary);color:var(--wc-content-bg)}#woo-variation-swatches-tutorials-wrapper{background:#fff;border:1px solid #ddd;border-radius:2px}#woo-variation-swatches-tutorials-wrapper img{width:100%}#woo-variation-swatches-tutorials-wrapper ul{margin:0}#woo-variation-swatches-tutorials-wrapper li{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #ddd;display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;overflow:hidden;padding:50px 30px;position:relative}#woo-variation-swatches-tutorials-wrapper li:last-child{border:0}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper,#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box;float:left;padding:0 20px}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper{position:relative;width:60%}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper .ribbon{height:75px;left:-5px;margin:1px 22px;overflow:hidden;position:absolute;text-align:right;top:-5px;width:75px;z-index:1}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper .ribbon span{background:#bc0808;-webkit-box-shadow:0 3px 10px -5px #000;box-shadow:0 3px 10px -5px #000;color:#fff;display:block;font-size:10px;font-weight:700;left:-21px;line-height:20px;position:absolute;text-align:center;text-transform:uppercase;top:19px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);width:100px}#woo-variation-swatches-tutorials-wrapper .tutorial-image-wrapper .ribbon span:after{border-color:#8f0808 #8f0808 transparent transparent;border-style:solid;border-width:3px;content:"";position:absolute;right:0;top:100%;z-index:-1}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper{width:40%}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper h3{font-size:1.5em;margin:0 0 20px}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-contents{font-size:15px;line-height:1.5em;margin-bottom:20px}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button{border-radius:3px;-webkit-box-shadow:none;box-shadow:none;font-size:13px;height:40px;line-height:1;padding:13px 20px;text-shadow:none}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button:active{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo{background-color:#f44336;border:0;color:#fff}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo:hover{background:#c71609}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs{background-color:#36373a;border:0;color:#fff}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs:hover{background:#5d5e61;border-color:#5d5e61}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-pro{background-color:#39b54a;border:1px solid #39b54a;color:#fff}#woo-variation-swatches-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-pro:hover{background:#3fc851;border-color:#3fc851}.woo-variation-swatches-group-table-list tbody>:nth-child(odd){background-color:#f6f7f7}.woo-variation-swatches-group-section-wrapper .woocommerce-BlankState-message:before{content:"\f307";font-family:Dashicons}.woo-variation-swatches-variation-product-options-wrapper .woocommerce-message{margin:10px}.woo-variation-swatches-variation-product-options-wrapper #saved-message{display:none}.woo-variation-swatches-variation-product-options-wrapper h4{-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:1em!important;margin:0!important;overflow:hidden;padding:10px 18px}.woo-variation-swatches-variation-product-options-wrapper .woocommerce-help-tip{margin:0 5px!important}.woo-variation-swatches-variation-product-options-wrapper [data-gwpdepends].has-dependent-data.show{display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches-variation-product-options-wrapper .product-label-settings{background-color:#fff}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group{-webkit-box-orient:horizontal;-webkit-box-direction:normal;border-bottom:1px solid #eee;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:5px}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group .form-label{font-weight:700;line-height:2;margin:5px 10px;vertical-align:middle;width:280px}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group .form-field{line-height:2;margin:5px 10px;vertical-align:middle}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group .form-field .description{display:inline-block;padding:0 10px;vertical-align:middle}.woo-variation-swatches-variation-product-options-wrapper .form-settings-group-inline{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox{-webkit-box-orient:vertical;-webkit-box-direction:normal;border-bottom:none!important;border-radius:0!important;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox>h4{background-color:#fafafa;border-bottom:1px solid #eee;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox>h4 .attribute-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox.open>h4{background-color:#eee}.woo-variation-swatches-variation-product-options-wrapper .wc-metabox .wc-metabox{border:1px solid #eee}.woo-variation-swatches-variation-product-options-wrapper .woo-variation-swatches-attribute-data{background-color:#fff}.woo-variation-swatches-variation-product-options-wrapper .woo-variation-swatches-attribute-data-inner{margin:5px 0;padding:0 5px}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings{margin:15px}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination{margin:10px 0}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination .tablenav-pages{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-pack:end;-ms-flex-pack:end;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;justify-content:flex-end;line-height:2;vertical-align:center}.woo-variation-swatches-variation-product-options-wrapper .product-term-label-settings-pagination .tablenav-pages .displaying-num{padding:0 2px}
assets/css/frontend.css CHANGED
@@ -1,8 +1,8 @@
1
  /*!
2
- * Variation Swatches for WooCommerce
3
- *
4
- * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 7/8/2022, 11:04:45 PM
6
  * Released under the GPLv3 license.
7
  */
8
  .woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip] {
@@ -659,12 +659,9 @@
659
  display: none !important;
660
  }
661
  .woo-variation-swatches .variable-items-wrapper .variable-item img {
662
- margin: 0;
663
- /** Storefront FIX */
664
- padding: 0;
665
- /** ShopIsle Fix */
666
- width: 100%;
667
- /** TheGem Fix */
668
  height: 100%;
669
  pointer-events: none;
670
  }
@@ -803,9 +800,9 @@
803
  color: #fff;
804
  padding: 2px;
805
  border-radius: 2px !important;
806
- text-shadow: 0 1px #00000040;
807
- -webkit-box-shadow: 0 0 2px #00000061;
808
- box-shadow: 0 0 2px #00000061;
809
  }
810
  .woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled).radio-variable-item .wvs-stock-left-info::after {
811
  margin-left: 5px;
@@ -965,4 +962,4 @@
965
  }
966
  .woo-variation-swatches .grouped-variable-items .group-variable-items-name {
967
  font-style: italic;
968
- }
1
  /*!
2
+ * Variation Swatches for WooCommerce
3
+ *
4
+ * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 7/20/2022, 7:03:48 PM
6
  * Released under the GPLv3 license.
7
  */
8
  .woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip] {
659
  display: none !important;
660
  }
661
  .woo-variation-swatches .variable-items-wrapper .variable-item img {
662
+ margin: 0; /** Storefront FIX */
663
+ padding: 0; /** ShopIsle Fix */
664
+ width: 100%; /** TheGem Fix */
 
 
 
665
  height: 100%;
666
  pointer-events: none;
667
  }
800
  color: #fff;
801
  padding: 2px;
802
  border-radius: 2px !important;
803
+ text-shadow: 0 1px rgba(0, 0, 0, 0.2509803922);
804
+ -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.3803921569);
805
+ box-shadow: 0 0 2px rgba(0, 0, 0, 0.3803921569);
806
  }
807
  .woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled).radio-variable-item .wvs-stock-left-info::after {
808
  margin-left: 5px;
962
  }
963
  .woo-variation-swatches .grouped-variable-items .group-variable-items-name {
964
  font-style: italic;
965
+ }
assets/css/frontend.min.css CHANGED
@@ -1 +1 @@
1
- .woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip]{position:relative}.woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip]:before{left:8px;bottom:100%}.woo-variation-swatches.wvs-tooltip .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:8px}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-tooltip.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:50%}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:50%}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-tooltip.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:100%}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:100%}.wvs-has-image-tooltip,[data-wvstooltip]{position:relative;cursor:pointer;outline:none}.wvs-has-image-tooltip:after,.wvs-has-image-tooltip:before,[data-wvstooltip]:after,[data-wvstooltip]:before{visibility:hidden;opacity:0;pointer-events:none;-webkit-box-sizing:inherit;box-sizing:inherit;position:absolute;bottom:130%;left:50%;z-index:999;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-box-shadow:0 7px 15px rgba(0,0,0,.3);box-shadow:0 7px 15px rgba(0,0,0,.3);-webkit-transition:opacity .5s ease-in-out;-o-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}.wvs-has-image-tooltip:before,[data-wvstooltip]:before{margin-bottom:5px;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);padding:7px;border-radius:3px;background-color:var(--wvs-tooltip-background-color,#333);color:var(--wvs-tooltip-text-color,#fff);text-align:center;font-size:14px;line-height:1.2}[data-wvstooltip]:before{min-width:100px;content:attr(data-wvstooltip) " " attr(data-wvstooltip-out-of-stock)}.wvs-has-image-tooltip:before{content:attr(data-title);background-image:var(--tooltip-background);background-repeat:no-repeat;width:var(--tooltip-width);height:calc(var(--tooltip-height) + 20px);background-size:contain;background-position:top;padding:0;line-height:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-line-pack:center;align-content:center;font-size:12px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.wvs-has-image-tooltip:after,[data-wvstooltip]:after{margin-left:-5px;width:0;border-top:5px solid var(--wvs-tooltip-background-color,#333);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.wvs-has-image-tooltip:hover:after,.wvs-has-image-tooltip:hover:before,[data-wvstooltip]:hover:after,[data-wvstooltip]:hover:before{bottom:120%;visibility:visible;opacity:1}.wvs-theme-sober-child .product form.cart .variations .variable,.wvs-theme-sober .product form.cart .variations .variable{margin-bottom:15px!important}.wvs-theme-sober-child .product form.cart .variations .variable-options,.wvs-theme-sober .product form.cart .variations .variable-options{border:0!important}.wvs-theme-sober-child .product form.cart .variations .arrow,.wvs-theme-sober-child .product form.cart .variations .variable-options:after,.wvs-theme-sober .product form.cart .variations .arrow,.wvs-theme-sober .product form.cart .variations .variable-options:after{display:none}.wvs-theme-sober-child .product form.cart .variations .label,.wvs-theme-sober .product form.cart .variations .label{display:block;text-align:right;margin-right:10px}.wvs-theme-sober-child .product form.cart .variations .value,.wvs-theme-sober .product form.cart .variations .value{-webkit-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset}.wvs-theme-sober-child .product form.cart .variations select,.wvs-theme-sober .product form.cart .variations select{border:1px solid #e4e6eb!important;padding:.5em 1em!important;text-align:left!important;-moz-text-align-last:left!important;text-align-last:left!important;-webkit-appearance:menulist-button!important}.wvs-theme-sober-child .product form.cart .radio-variable-item,.wvs-theme-sober .product form.cart .radio-variable-item{margin:5px;text-align:left}.wvs-theme-sober-child .product form.cart .radio-variable-item:last-child,.wvs-theme-sober .product form.cart .radio-variable-item:last-child{margin-right:0}.wvs-theme-sober-child .product form.cart .radio-variable-item label,.wvs-theme-sober .product form.cart .radio-variable-item label{padding-left:30px;margin:0}.wvs-theme-sober-child .product form.cart .radio-variable-item label:before,.wvs-theme-sober .product form.cart .radio-variable-item label:before{top:0;border-radius:100%}.wvs-theme-sober-child .product form.cart .radio-variable-item label:after,.wvs-theme-sober .product form.cart .radio-variable-item label:after{top:8px}.wvs-theme-shophistic-lite.woocommerce #main .entry-summary .variations{display:block!important}.wvs-theme-shophistic-lite .ql_custom_variations{display:none!important}.wvs-theme-shophistic-lite .radio-variable-item input[type=radio]{display:inline-block;margin:0}.wvs-theme-flatsome .variations .reset_variations{position:relative;bottom:0;left:0}.wvs-theme-storefront-child.single-product div.product,.wvs-theme-storefront.single-product div.product{overflow:visible!important}.wvs-theme-stockholm .variations .reset_variations{position:relative;bottom:0;left:0;-webkit-transform:none;-ms-transform:none;transform:none}.wvs-theme-kalium-child .image-variable-item img,.wvs-theme-kalium .image-variable-item img{width:100%!important}.wvs-theme-kalium-child .radio-variable-item input,.wvs-theme-kalium .radio-variable-item input{width:16px!important;height:16px!important}.wvs-theme-kalium-child .woo-variation-items-wrapper .select-option-ui,.wvs-theme-kalium .woo-variation-items-wrapper .select-option-ui{display:none}.wvs-theme-aurum-child .variable-items-wrapper .image-variable-item>img,.wvs-theme-aurum .variable-items-wrapper .image-variable-item>img{width:100%}.wvs-theme-hestia .woo-variation-items-wrapper.value:before{display:none!important}.wvs-theme-thegem-child .woo-variation-items-wrapper .combobox-wrapper,.wvs-theme-thegem-elementor .woo-variation-items-wrapper .combobox-wrapper,.wvs-theme-thegem .woo-variation-items-wrapper .combobox-wrapper{display:none}.wvs-theme-thegem-child .wvs-archive-variation-wrapper .variations,.wvs-theme-thegem-elementor .wvs-archive-variation-wrapper .variations,.wvs-theme-thegem .wvs-archive-variation-wrapper .variations{padding:0}.wvs-theme-ushop-child .variations_form,.wvs-theme-ushop .variations_form{overflow:visible!important}.wvs-theme-ushop-child .single-product-summary .product_meta,.wvs-theme-ushop .single-product-summary .product_meta{display:inline-table}.wvs-theme-savoy-child .woo-variation-items-wrapper,.wvs-theme-savoy .woo-variation-items-wrapper{position:relative!important}.wvs-theme-savoy-child .woo-variation-items-wrapper .sod_select,.wvs-theme-savoy .woo-variation-items-wrapper .sod_select{display:none!important}.wvs-theme-savoy-child .nm-variation-row,.wvs-theme-savoy .nm-variation-row{display:-webkit-box;display:-ms-flexbox;display:flex}.wvs-theme-woodstock-child .woo-variation-items-wrapper .variation-select,.wvs-theme-woodstock .woo-variation-items-wrapper .variation-select{display:none!important}.wvs-theme-woodmart-child .wd-attr-selected,.wvs-theme-woodmart-child .woo-variation-items-wrapper>.swatches-select,.wvs-theme-woodmart .wd-attr-selected,.wvs-theme-woodmart .woo-variation-items-wrapper>.swatches-select{display:none}.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper,.wvs-theme-gecko .variations .value.woo-variation-items-wrapper{border:0!important}.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper:after,.wvs-theme-gecko .variations .value.woo-variation-items-wrapper:after{display:none!important}.woo-variation-gallery-theme-massive-dynamic-child .woo-variation-items-wrapper .clear-selection,.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection{border:0;height:auto;width:auto}.woo-variation-gallery-theme-massive-dynamic-child .woo-variation-items-wrapper .clear-selection .reset_variations,.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection .reset_variations{font-size:8px!important;width:20px;height:20px;padding:5px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;border:1px solid #f04040;color:#f04040}.wvs-theme-claue-child .woo-variation-items-wrapper,.wvs-theme-claue .woo-variation-items-wrapper{border:none}.wvs-theme-claue-child .woo-variation-items-wrapper:after,.wvs-theme-claue .woo-variation-items-wrapper:after{display:none}.wvs-theme-jupiter-child table.variations,.wvs-theme-jupiter table.variations{overflow:initial}.wvs-theme-oxygen-child .woo-variation-items-wrapper .select-wrapper,.wvs-theme-oxygen .woo-variation-items-wrapper .select-wrapper{display:none}.wvs-theme-oxygen-child .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.wvs-theme-oxygen .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{width:18px}.wvs-theme-simple-elegant-child .woo-variation-items-wrapper .wi-nice-select,.wvs-theme-simple-elegant .woo-variation-items-wrapper .wi-nice-select{display:none}.wvs-theme-twentytwenty-child table.variations,.wvs-theme-twentytwenty table.variations{overflow:auto}.wvs-theme-divi-child .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-divi .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-jevelin-child .sh-woo-layout table.variations td select.woo-variation-raw-select,.wvs-theme-jevelin .sh-woo-layout table.variations td select.woo-variation-raw-select{display:none!important}.wvs-theme-jevelin-child .sh-woo-layout table.variations,.wvs-theme-jevelin .sh-woo-layout table.variations{max-width:100%}.wvs-theme-jevelin-child .radio-variable-item label,.wvs-theme-jevelin .radio-variable-item label{line-height:1!important}.woo-variation-swatches .woo-variation-raw-select+.select2,.wvs-theme-stockie-child .woo-variation-raw-select+.select-styled,.wvs-theme-stockie .woo-variation-raw-select+.select-styled{display:none!important}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:10px 0}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color>a{display:inline-block;position:relative}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .count{padding:0 5px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .wvs-widget-item-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item{display:inline-block;float:left;padding:9px;margin:0 4px;-webkit-box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);border:2px solid #fff;height:20px;width:20px;-webkit-transition:-webkit-box-shadow .2s ease;transition:-webkit-box-shadow .2s ease;-o-transition:box-shadow .2s ease;transition:box-shadow .2s ease;transition:box-shadow .2s ease,-webkit-box-shadow .2s ease}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item.style-squared{border-radius:2px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item.style-rounded{border-radius:100%}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text{display:inline-block}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text :after{content:"";display:inline;clear:both}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color:hover .item{-webkit-box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd);box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd)}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color.woocommerce-widget-layered-nav-list__item--chosen .item{-webkit-box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000);box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000)}.woo-variation-swatches .variations td.value>span:after,.woo-variation-swatches .variations td.value>span:before,.woo-variation-swatches .woo-variation-raw-select,.woo-variation-swatches .woo-variation-raw-select:after,.woo-variation-swatches .woo-variation-raw-select:before{display:none!important}.woo-variation-swatches .woo-variation-swatches-variable-item-more{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches .wvs-archive-variations-wrapper{display:block;width:100%}.woo-variation-swatches .wvs-archive-variations-wrapper .variable-items-wrapper .variable-item:not(.radio-variable-item){width:var(--wvs-archive-product-item-width,30px);height:var(--wvs-archive-product-item-height,30px)}.woo-variation-swatches .wvs-archive-variations-wrapper .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{font-size:var(--wvs-archive-product-item-font-size,16px)}.woo-variation-swatches .wvs-archive-variations-wrapper .variable-items-wrapper.wvs-style-squared.archive-variable-items .variable-item:not(.radio-variable-item).button-variable-item{min-width:var(--wvs-archive-product-item-width,30px)}.woo-variation-swatches ul.variations{list-style:none;margin:0;padding:0;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.woo-variation-swatches ul.variations,.woo-variation-swatches ul.variations>li{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.woo-variation-swatches ul.variations>li{-webkit-box-pack:var(--wvs-position);-ms-flex-pack:var(--wvs-position);justify-content:var(--wvs-position);-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;margin:5px 0}.woo-variation-swatches ul.variations .wvs_archive_reset_variations.hide{visibility:hidden}.woo-variation-swatches ul.variations .wvs_archive_reset_variations.show{visibility:visible}.woo-variation-swatches .variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:0;padding:0;list-style:none}.woo-variation-swatches .variable-items-wrapper.enabled-large-size .variable-item:not(.radio-variable-item){width:var(--wvs-single-product-large-item-width,40px);height:var(--wvs-single-product-large-item-height,40px)}.woo-variation-swatches .variable-items-wrapper.enabled-large-size .variable-item:not(.radio-variable-item).button-variable-item{font-size:var(--wvs-single-product-large-item-font-size,16px)}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;list-style:none;cursor:pointer;padding:0 5px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item label{cursor:pointer;vertical-align:middle}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item input{margin:5px;width:20px;height:20px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item .variable-item-radio-value-wrapper{display:inline-block}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item .variable-item-radio-value-wrapper img{width:40px;display:inline-block;margin:0;padding:0;vertical-align:middle}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item .variable-item-radio-value-wrapper .out-of-stock{display:inline-block;margin:0;padding:0}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item label{width:auto;display:inline-block;padding:2px 0}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover{-webkit-box-shadow:none;box-shadow:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover label,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled label{cursor:not-allowed;opacity:.5}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled .variable-item-radio-value,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover .variable-item-radio-value{text-decoration:line-through}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:after,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:before,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover:after,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:focus,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover:focus{-webkit-box-shadow:none;box-shadow:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock:hover input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock:hover label,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock label{text-decoration:line-through;opacity:.6}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock .variable-item-radio-value,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock:hover .variable-item-radio-value{text-decoration:line-through}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item:hover{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.1);box-shadow:0 0 0 3px rgba(0,0,0,.1)}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item:focus{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.3);box-shadow:0 0 0 3px rgba(0,0,0,.3)}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.selected,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.selected:hover{-webkit-box-shadow:0 0 0 2px rgba(0,0,0,.9);box-shadow:0 0 0 2px rgba(0,0,0,.9)}.woo-variation-swatches .variable-items-wrapper .variable-item{margin:0;padding:0;list-style:none;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}.woo-variation-swatches .variable-items-wrapper .variable-item .variable-item-contents{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;width:100%;height:100%}.woo-variation-swatches .variable-items-wrapper .variable-item.variation-disabled{display:none!important}.woo-variation-swatches .variable-items-wrapper .variable-item img{margin:0;padding:0;width:100%;height:100%;pointer-events:none}.woo-variation-swatches .variable-items-wrapper .variable-item>span{pointer-events:none}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--wvs-item-background-color,#fff);color:var(--wvs-item-text-color,#000);-webkit-box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);padding:2px;margin:4px;width:var(--wvs-single-product-item-width,30px);height:var(--wvs-single-product-item-height,30px)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):last-child{margin-right:0}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock .variable-item-contents,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock img,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock span{opacity:.6}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock .variable-item-contents:before{position:absolute;content:" ";display:block;background-image:var(--wvs-cross);background-repeat:no-repeat;background-position:50%;height:100%;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{background-color:var(--wvs-hover-item-background-color,#fff);color:var(--wvs-hover-item-text-color,#000)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):focus,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{-webkit-box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd);box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{-webkit-box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000);box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000);color:var(--wvs-selected-item-text-color,#000)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover{pointer-events:none;cursor:not-allowed;position:relative;overflow:hidden}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled span{opacity:.6}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents:before,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents:before{position:absolute;content:" ";display:block;background-image:var(--wvs-cross);background-repeat:no-repeat;background-position:50%;height:100%;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item.selected:not(.no-stock) .variable-item-contents:before,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).image-variable-item.selected:not(.no-stock) .variable-item-contents:before{position:absolute;content:" ";display:block;background-image:var(--wvs-tick);background-repeat:no-repeat;background-position:50%;background-size:60%;height:100%;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).image-variable-item .variable-item-span-color{width:100%;height:100%;display:block}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{text-align:center;font-size:var(--wvs-single-product-item-font-size,16px)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item.selected:not(.no-stock){background-color:var(--wvs-selected-item-background-color,#fff);color:var(--wvs-selected-item-text-color,#000)}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled):not(.radio-variable-item) .wvs-stock-left-info:before{content:" ";position:absolute;top:calc(100% - 1px);left:50%;margin-left:-3px;width:0;border-bottom:3px solid #de8604;border-right:3px solid transparent;border-left:3px solid transparent;z-index:1}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled):not(.radio-variable-item) .wvs-stock-left-info:after{position:absolute;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);top:calc(100% + 2px);min-width:36px;text-align:center}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled) .wvs-stock-left-info:after{content:attr(data-wvs-stock-info);line-height:1;font-size:10px;font-style:italic;background:#de8604;color:#fff;padding:2px;border-radius:2px!important;text-shadow:0 1px rgba(0,0,0,.25098039215686274);-webkit-box-shadow:0 0 2px rgba(0,0,0,.3803921568627451);box-shadow:0 0 2px rgba(0,0,0,.3803921568627451)}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled).radio-variable-item .wvs-stock-left-info:after{margin-left:5px}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item){border-radius:100%}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) .variable-item-span,.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) img{border-radius:100%;overflow:hidden;line-height:1;margin:0}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item.radio-variable-item{border-radius:2px}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item.radio-variable-item img{border-radius:100%}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item){border-radius:2px}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{width:auto;min-width:var(--wvs-single-product-item-width)}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item .variable-item-span{padding:0 5px}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item span:after{border-radius:0}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item.radio-variable-item{border-radius:2px}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item.radio-variable-item img{border-radius:5px}.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover label,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled input,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled label{cursor:not-allowed;text-decoration:line-through;opacity:.5}.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:after,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:before,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover:after,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents:before,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents:before,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock .variable-item-contents:before,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock:hover .variable-item-contents:before{background-image:none}.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled:hover{overflow:hidden}.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled:hover label,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled input,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled label{pointer-events:none;opacity:.3}.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled{opacity:0;visibility:hidden;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;font-size:0;width:0!important;height:0!important;padding:0!important;margin:0!important;min-width:0!important;min-height:0!important}.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled.radio-variable-item{width:auto!important}.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.no-stock .variable-item-contents:before{background-image:none}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item{text-align:right}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item:not(.radio-variable-item){margin:4px 0 4px 8px}.woo-variation-swatches.rtl .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{margin-right:0;margin-left:5px}.woo-variation-swatches.woocommerce .product.elementor table.variations td.value:before{display:none!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper{display:block!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper .variable-item:not(.radio-variable-item){float:left}.woo-variation-swatches.wvs-show-label .variations td,.woo-variation-swatches.wvs-show-label .variations th{display:block;width:auto!important}.woo-variation-swatches.wvs-show-label .variations td .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations td label,.woo-variation-swatches.wvs-show-label .variations th .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations th label{display:inline-block;margin:0 2px}.woo-variation-swatches .grouped-variable-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none!important}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-vertical .group-variable-items-wrapper{margin-top:10px}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-vertical .no-group-variable-items-wrapper{margin-top:20px}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal .group-variable-items-wrapper{margin-top:10px;margin-right:20px}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal .group-variable-items-wrapper:last-child,.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal .no-group-variable-items-wrapper{margin-right:0}.woo-variation-swatches .grouped-variable-items .group-variable-item-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;-ms-flex-wrap:wrap;flex-wrap:wrap}.woo-variation-swatches .grouped-variable-items .group-variable-items-name{font-style:italic}
1
+ .woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip]{position:relative}.woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-tooltip .radio-variable-item[data-wvstooltip]:before{bottom:100%;left:8px}.woo-variation-swatches.wvs-tooltip .radio-variable-item .image-tooltip-wrapper{left:8px;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-tooltip.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:50%}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-tooltip.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:100%}.woo-variation-swatches.wvs-tooltip.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{left:100%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wvs-has-image-tooltip,[data-wvstooltip]{cursor:pointer;outline:none;position:relative}.wvs-has-image-tooltip:after,.wvs-has-image-tooltip:before,[data-wvstooltip]:after,[data-wvstooltip]:before{bottom:130%;-webkit-box-shadow:0 7px 15px rgba(0,0,0,.3);box-shadow:0 7px 15px rgba(0,0,0,.3);-webkit-box-sizing:inherit;box-sizing:inherit;left:50%;opacity:0;pointer-events:none;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:opacity .5s ease-in-out;-o-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out;visibility:hidden;z-index:999}.wvs-has-image-tooltip:before,[data-wvstooltip]:before{background-color:var(--wvs-tooltip-background-color,#333);border-radius:3px;color:var(--wvs-tooltip-text-color,#fff);font-size:14px;line-height:1.2;margin-bottom:5px;padding:7px;text-align:center;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}[data-wvstooltip]:before{content:attr(data-wvstooltip) " " attr(data-wvstooltip-out-of-stock);min-width:100px}.wvs-has-image-tooltip:before{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:end;-ms-flex-pack:end;-ms-flex-line-pack:center;align-content:center;align-items:center;-webkit-backface-visibility:hidden;backface-visibility:hidden;background-image:var(--tooltip-background);background-position:top;background-repeat:no-repeat;background-size:contain;content:attr(data-title);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:12px;height:calc(var(--tooltip-height) + 20px);justify-content:flex-end;line-height:20px;padding:0;width:var(--tooltip-width)}.wvs-has-image-tooltip:after,[data-wvstooltip]:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--wvs-tooltip-background-color,#333);content:" ";font-size:0;line-height:0;margin-left:-5px;width:0}.wvs-has-image-tooltip:hover:after,.wvs-has-image-tooltip:hover:before,[data-wvstooltip]:hover:after,[data-wvstooltip]:hover:before{bottom:120%;opacity:1;visibility:visible}.wvs-theme-sober .product form.cart .variations .variable,.wvs-theme-sober-child .product form.cart .variations .variable{margin-bottom:15px!important}.wvs-theme-sober .product form.cart .variations .variable-options,.wvs-theme-sober-child .product form.cart .variations .variable-options{border:0!important}.wvs-theme-sober .product form.cart .variations .arrow,.wvs-theme-sober .product form.cart .variations .variable-options:after,.wvs-theme-sober-child .product form.cart .variations .arrow,.wvs-theme-sober-child .product form.cart .variations .variable-options:after{display:none}.wvs-theme-sober .product form.cart .variations .label,.wvs-theme-sober-child .product form.cart .variations .label{display:block;margin-right:10px;text-align:right}.wvs-theme-sober .product form.cart .variations .value,.wvs-theme-sober-child .product form.cart .variations .value{-webkit-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset}.wvs-theme-sober .product form.cart .variations select,.wvs-theme-sober-child .product form.cart .variations select{-webkit-appearance:menulist-button!important;border:1px solid #e4e6eb!important;padding:.5em 1em!important;text-align:left!important;-moz-text-align-last:left!important;text-align-last:left!important}.wvs-theme-sober .product form.cart .radio-variable-item,.wvs-theme-sober-child .product form.cart .radio-variable-item{margin:5px;text-align:left}.wvs-theme-sober .product form.cart .radio-variable-item:last-child,.wvs-theme-sober-child .product form.cart .radio-variable-item:last-child{margin-right:0}.wvs-theme-sober .product form.cart .radio-variable-item label,.wvs-theme-sober-child .product form.cart .radio-variable-item label{margin:0;padding-left:30px}.wvs-theme-sober .product form.cart .radio-variable-item label:before,.wvs-theme-sober-child .product form.cart .radio-variable-item label:before{border-radius:100%;top:0}.wvs-theme-sober .product form.cart .radio-variable-item label:after,.wvs-theme-sober-child .product form.cart .radio-variable-item label:after{top:8px}.wvs-theme-shophistic-lite.woocommerce #main .entry-summary .variations{display:block!important}.wvs-theme-shophistic-lite .ql_custom_variations{display:none!important}.wvs-theme-shophistic-lite .radio-variable-item input[type=radio]{display:inline-block;margin:0}.wvs-theme-flatsome .variations .reset_variations{bottom:0;left:0;position:relative}.wvs-theme-storefront-child.single-product div.product,.wvs-theme-storefront.single-product div.product{overflow:visible!important}.wvs-theme-stockholm .variations .reset_variations{bottom:0;left:0;position:relative;-webkit-transform:none;-ms-transform:none;transform:none}.wvs-theme-kalium .image-variable-item img,.wvs-theme-kalium-child .image-variable-item img{width:100%!important}.wvs-theme-kalium .radio-variable-item input,.wvs-theme-kalium-child .radio-variable-item input{height:16px!important;width:16px!important}.wvs-theme-kalium .woo-variation-items-wrapper .select-option-ui,.wvs-theme-kalium-child .woo-variation-items-wrapper .select-option-ui{display:none}.wvs-theme-aurum .variable-items-wrapper .image-variable-item>img,.wvs-theme-aurum-child .variable-items-wrapper .image-variable-item>img{width:100%}.wvs-theme-hestia .woo-variation-items-wrapper.value:before{display:none!important}.wvs-theme-thegem .woo-variation-items-wrapper .combobox-wrapper,.wvs-theme-thegem-child .woo-variation-items-wrapper .combobox-wrapper,.wvs-theme-thegem-elementor .woo-variation-items-wrapper .combobox-wrapper{display:none}.wvs-theme-thegem .wvs-archive-variation-wrapper .variations,.wvs-theme-thegem-child .wvs-archive-variation-wrapper .variations,.wvs-theme-thegem-elementor .wvs-archive-variation-wrapper .variations{padding:0}.wvs-theme-ushop .variations_form,.wvs-theme-ushop-child .variations_form{overflow:visible!important}.wvs-theme-ushop .single-product-summary .product_meta,.wvs-theme-ushop-child .single-product-summary .product_meta{display:inline-table}.wvs-theme-savoy .woo-variation-items-wrapper,.wvs-theme-savoy-child .woo-variation-items-wrapper{position:relative!important}.wvs-theme-savoy .woo-variation-items-wrapper .sod_select,.wvs-theme-savoy-child .woo-variation-items-wrapper .sod_select{display:none!important}.wvs-theme-savoy .nm-variation-row,.wvs-theme-savoy-child .nm-variation-row{display:-webkit-box;display:-ms-flexbox;display:flex}.wvs-theme-woodstock .woo-variation-items-wrapper .variation-select,.wvs-theme-woodstock-child .woo-variation-items-wrapper .variation-select{display:none!important}.wvs-theme-woodmart .wd-attr-selected,.wvs-theme-woodmart .woo-variation-items-wrapper>.swatches-select,.wvs-theme-woodmart-child .wd-attr-selected,.wvs-theme-woodmart-child .woo-variation-items-wrapper>.swatches-select{display:none}.wvs-theme-gecko .variations .value.woo-variation-items-wrapper,.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper{border:0!important}.wvs-theme-gecko .variations .value.woo-variation-items-wrapper:after,.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper:after{display:none!important}.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection,.woo-variation-gallery-theme-massive-dynamic-child .woo-variation-items-wrapper .clear-selection{border:0;height:auto;width:auto}.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection .reset_variations,.woo-variation-gallery-theme-massive-dynamic-child .woo-variation-items-wrapper .clear-selection .reset_variations{border:1px solid #f04040;border-radius:100%;-webkit-box-sizing:border-box;box-sizing:border-box;color:#f04040;font-size:8px!important;height:20px;padding:5px;width:20px}.wvs-theme-claue .woo-variation-items-wrapper,.wvs-theme-claue-child .woo-variation-items-wrapper{border:none}.wvs-theme-claue .woo-variation-items-wrapper:after,.wvs-theme-claue-child .woo-variation-items-wrapper:after{display:none}.wvs-theme-jupiter table.variations,.wvs-theme-jupiter-child table.variations{overflow:initial}.wvs-theme-oxygen .woo-variation-items-wrapper .select-wrapper,.wvs-theme-oxygen-child .woo-variation-items-wrapper .select-wrapper{display:none}.wvs-theme-oxygen .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.wvs-theme-oxygen-child .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{width:18px}.wvs-theme-simple-elegant .woo-variation-items-wrapper .wi-nice-select,.wvs-theme-simple-elegant-child .woo-variation-items-wrapper .wi-nice-select{display:none}.wvs-theme-twentytwenty table.variations,.wvs-theme-twentytwenty-child table.variations{overflow:auto}.wvs-theme-divi .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-divi-child .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-jevelin .sh-woo-layout table.variations td select.woo-variation-raw-select,.wvs-theme-jevelin-child .sh-woo-layout table.variations td select.woo-variation-raw-select{display:none!important}.wvs-theme-jevelin .sh-woo-layout table.variations,.wvs-theme-jevelin-child .sh-woo-layout table.variations{max-width:100%}.wvs-theme-jevelin .radio-variable-item label,.wvs-theme-jevelin-child .radio-variable-item label{line-height:1!important}.woo-variation-swatches .woo-variation-raw-select+.select2,.wvs-theme-stockie .woo-variation-raw-select+.select-styled,.wvs-theme-stockie-child .woo-variation-raw-select+.select-styled{display:none!important}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:10px 0}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color>a{display:inline-block;position:relative}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .count{padding:0 5px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .wvs-widget-item-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item{border:2px solid #fff;-webkit-box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);display:inline-block;float:left;height:20px;margin:0 4px;padding:9px;-webkit-transition:-webkit-box-shadow .2s ease;transition:-webkit-box-shadow .2s ease;-o-transition:box-shadow .2s ease;transition:box-shadow .2s ease;transition:box-shadow .2s ease,-webkit-box-shadow .2s ease;width:20px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item.style-squared{border-radius:2px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item.style-rounded{border-radius:100%}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text{display:inline-block}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text :after{clear:both;content:"";display:inline}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color:hover .item{-webkit-box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd);box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd)}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color.woocommerce-widget-layered-nav-list__item--chosen .item{-webkit-box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000);box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000)}.woo-variation-swatches .variations td.value>span:after,.woo-variation-swatches .variations td.value>span:before,.woo-variation-swatches .woo-variation-raw-select,.woo-variation-swatches .woo-variation-raw-select:after,.woo-variation-swatches .woo-variation-raw-select:before{display:none!important}.woo-variation-swatches .woo-variation-swatches-variable-item-more{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches .wvs-archive-variations-wrapper{display:block;width:100%}.woo-variation-swatches .wvs-archive-variations-wrapper .variable-items-wrapper .variable-item:not(.radio-variable-item){height:var(--wvs-archive-product-item-height,30px);width:var(--wvs-archive-product-item-width,30px)}.woo-variation-swatches .wvs-archive-variations-wrapper .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{font-size:var(--wvs-archive-product-item-font-size,16px)}.woo-variation-swatches .wvs-archive-variations-wrapper .variable-items-wrapper.wvs-style-squared.archive-variable-items .variable-item:not(.radio-variable-item).button-variable-item{min-width:var(--wvs-archive-product-item-width,30px)}.woo-variation-swatches ul.variations{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;list-style:none;margin:0;padding:0}.woo-variation-swatches ul.variations,.woo-variation-swatches ul.variations>li{-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex}.woo-variation-swatches ul.variations>li{-webkit-box-pack:var(--wvs-position);-ms-flex-pack:var(--wvs-position);-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;justify-content:var(--wvs-position);margin:5px 0}.woo-variation-swatches ul.variations .wvs_archive_reset_variations.hide{visibility:hidden}.woo-variation-swatches ul.variations .wvs_archive_reset_variations.show{visibility:visible}.woo-variation-swatches .variable-items-wrapper{-webkit-box-pack:start;-ms-flex-pack:start;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:0;padding:0}.woo-variation-swatches .variable-items-wrapper.enabled-large-size .variable-item:not(.radio-variable-item){height:var(--wvs-single-product-large-item-height,40px);width:var(--wvs-single-product-large-item-width,40px)}.woo-variation-swatches .variable-items-wrapper.enabled-large-size .variable-item:not(.radio-variable-item).button-variable-item{font-size:var(--wvs-single-product-large-item-font-size,16px)}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;list-style:none;padding:0 5px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item label{cursor:pointer;vertical-align:middle}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item input{height:20px;margin:5px;width:20px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item .variable-item-radio-value-wrapper{display:inline-block}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item .variable-item-radio-value-wrapper img{display:inline-block;margin:0;padding:0;vertical-align:middle;width:40px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item .variable-item-radio-value-wrapper .out-of-stock{display:inline-block;margin:0;padding:0}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item label{display:inline-block;padding:2px 0;width:auto}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover{-webkit-box-shadow:none;box-shadow:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled label,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover label{cursor:not-allowed;opacity:.5}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled .variable-item-radio-value,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover .variable-item-radio-value{text-decoration:line-through}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:after,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:before,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover:after,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:focus,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.disabled:hover:focus{-webkit-box-shadow:none;box-shadow:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock label,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock:hover input,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock:hover label{opacity:.6;text-decoration:line-through}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock .variable-item-radio-value,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.no-stock:hover .variable-item-radio-value{text-decoration:line-through}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item:hover{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.1);box-shadow:0 0 0 3px rgba(0,0,0,.1)}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item:focus{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.3);box-shadow:0 0 0 3px rgba(0,0,0,.3)}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.selected,.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item.selected:hover{-webkit-box-shadow:0 0 0 2px rgba(0,0,0,.9);box-shadow:0 0 0 2px rgba(0,0,0,.9)}.woo-variation-swatches .variable-items-wrapper .variable-item{list-style:none;margin:0;outline:none;padding:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.woo-variation-swatches .variable-items-wrapper .variable-item .variable-item-contents{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;justify-content:center;position:relative;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item.variation-disabled{display:none!important}.woo-variation-swatches .variable-items-wrapper .variable-item img{height:100%;margin:0;padding:0;pointer-events:none;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item>span{pointer-events:none}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--wvs-item-background-color,#fff);-webkit-box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);box-shadow:var(--wvs-item-box-shadow,0 0 0 1px #a8a8a8);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--wvs-item-text-color,#000);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:var(--wvs-single-product-item-height,30px);justify-content:center;margin:4px;padding:2px;position:relative;width:var(--wvs-single-product-item-width,30px)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):last-child{margin-right:0}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock .variable-item-contents,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock img,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock span{opacity:.6}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock .variable-item-contents:before{background-image:var(--wvs-cross);background-position:50%;background-repeat:no-repeat;content:" ";display:block;height:100%;position:absolute;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{background-color:var(--wvs-hover-item-background-color,#fff);color:var(--wvs-hover-item-text-color,#000)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):focus,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{-webkit-box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd);box-shadow:var(--wvs-hover-item-box-shadow,0 0 0 3px #ddd)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{-webkit-box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000);box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #000);color:var(--wvs-selected-item-text-color,#000)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover{cursor:not-allowed;overflow:hidden;pointer-events:none;position:relative}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled span,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover span{opacity:.6}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents:before,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents:before{background-image:var(--wvs-cross);background-position:50%;background-repeat:no-repeat;content:" ";display:block;height:100%;position:absolute;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item.selected:not(.no-stock) .variable-item-contents:before,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).image-variable-item.selected:not(.no-stock) .variable-item-contents:before{background-image:var(--wvs-tick);background-position:50%;background-repeat:no-repeat;background-size:60%;content:" ";display:block;height:100%;position:absolute;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).image-variable-item .variable-item-span-color{display:block;height:100%;width:100%}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{font-size:var(--wvs-single-product-item-font-size,16px);text-align:center}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item.selected:not(.no-stock){background-color:var(--wvs-selected-item-background-color,#fff);color:var(--wvs-selected-item-text-color,#000)}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled):not(.radio-variable-item) .wvs-stock-left-info:before{border-bottom:3px solid #de8604;border-left:3px solid transparent;border-right:3px solid transparent;content:" ";left:50%;margin-left:-3px;position:absolute;top:calc(100% - 1px);width:0;z-index:1}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled):not(.radio-variable-item) .wvs-stock-left-info:after{left:50%;min-width:36px;position:absolute;text-align:center;top:calc(100% + 2px);-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled) .wvs-stock-left-info:after{background:#de8604;border-radius:2px!important;-webkit-box-shadow:0 0 2px rgba(0,0,0,.38);box-shadow:0 0 2px rgba(0,0,0,.38);color:#fff;content:attr(data-wvs-stock-info);font-size:10px;font-style:italic;line-height:1;padding:2px;text-shadow:0 1px rgba(0,0,0,.251)}.woo-variation-swatches .variable-items-wrapper .variable-item.wvs-show-stock-left-info:not(.disabled).radio-variable-item .wvs-stock-left-info:after{margin-left:5px}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item){border-radius:100%}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) .variable-item-span,.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) img{border-radius:100%;line-height:1;margin:0;overflow:hidden}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item.radio-variable-item{border-radius:2px}.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item.radio-variable-item img{border-radius:100%}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item){border-radius:2px}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{min-width:var(--wvs-single-product-item-width);width:auto}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item .variable-item-span{padding:0 5px}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item span:after{border-radius:0}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item.radio-variable-item{border-radius:2px}.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item.radio-variable-item img{border-radius:5px}.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled input,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled label,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover label{cursor:not-allowed;opacity:.5;text-decoration:line-through}.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:after,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:before,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover:after,.woo-variation-swatches.wvs-behavior-blur .variable-items-wrapper .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled .variable-item-contents:before,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).disabled:hover .variable-item-contents:before,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock .variable-item-contents:before,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .variable-item:not(.radio-variable-item).no-stock:hover .variable-item-contents:before{background-image:none}.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled:hover{overflow:hidden}.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled input,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled label,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-behavior-blur-no-cross .variable-items-wrapper .radio-variable-item.disabled:hover label{opacity:.3;pointer-events:none}.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled{font-size:0;height:0!important;margin:0!important;min-height:0!important;min-width:0!important;opacity:0;padding:0!important;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;visibility:hidden;width:0!important}.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled.radio-variable-item{width:auto!important}.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.no-stock .variable-item-contents:before{background-image:none}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item{text-align:right}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item:not(.radio-variable-item){margin:4px 0 4px 8px}.woo-variation-swatches.rtl .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{margin-left:5px;margin-right:0}.woo-variation-swatches.woocommerce .product.elementor table.variations td.value:before{display:none!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper{display:block!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper .variable-item:not(.radio-variable-item){float:left}.woo-variation-swatches.wvs-show-label .variations td,.woo-variation-swatches.wvs-show-label .variations th{display:block;width:auto!important}.woo-variation-swatches.wvs-show-label .variations td .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations td label,.woo-variation-swatches.wvs-show-label .variations th .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations th label{display:inline-block;margin:0 2px}.woo-variation-swatches .grouped-variable-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none!important}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-vertical .group-variable-items-wrapper{margin-top:10px}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-vertical .no-group-variable-items-wrapper{margin-top:20px}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal .group-variable-items-wrapper{margin-right:20px;margin-top:10px}.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal .group-variable-items-wrapper:last-child,.woo-variation-swatches .grouped-variable-items.grouped-variable-items-display-horizontal .no-group-variable-items-wrapper{margin-right:0}.woo-variation-swatches .grouped-variable-items .group-variable-item-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0}.woo-variation-swatches .grouped-variable-items .group-variable-items-name{font-style:italic}
assets/js/admin.js CHANGED
@@ -1,107 +1,24 @@
1
  /*!
2
- * Variation Swatches for WooCommerce
3
- *
4
- * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 7/8/2022, 11:04:45 PM
6
  * Released under the GPLv3 license.
7
  */
8
- /******/ (function(modules) { // webpackBootstrap
9
- /******/ // The module cache
10
- /******/ var installedModules = {};
11
- /******/
12
- /******/ // The require function
13
- /******/ function __webpack_require__(moduleId) {
14
- /******/
15
- /******/ // Check if module is in cache
16
- /******/ if(installedModules[moduleId]) {
17
- /******/ return installedModules[moduleId].exports;
18
- /******/ }
19
- /******/ // Create a new module (and put it into the cache)
20
- /******/ var module = installedModules[moduleId] = {
21
- /******/ i: moduleId,
22
- /******/ l: false,
23
- /******/ exports: {}
24
- /******/ };
25
- /******/
26
- /******/ // Execute the module function
27
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
28
- /******/
29
- /******/ // Flag the module as loaded
30
- /******/ module.l = true;
31
- /******/
32
- /******/ // Return the exports of the module
33
- /******/ return module.exports;
34
- /******/ }
35
- /******/
36
- /******/
37
- /******/ // expose the modules object (__webpack_modules__)
38
- /******/ __webpack_require__.m = modules;
39
- /******/
40
- /******/ // expose the module cache
41
- /******/ __webpack_require__.c = installedModules;
42
- /******/
43
- /******/ // define getter function for harmony exports
44
- /******/ __webpack_require__.d = function(exports, name, getter) {
45
- /******/ if(!__webpack_require__.o(exports, name)) {
46
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
47
- /******/ }
48
- /******/ };
49
- /******/
50
- /******/ // define __esModule on exports
51
- /******/ __webpack_require__.r = function(exports) {
52
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
53
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
54
- /******/ }
55
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
56
- /******/ };
57
- /******/
58
- /******/ // create a fake namespace object
59
- /******/ // mode & 1: value is a module id, require it
60
- /******/ // mode & 2: merge all properties of value into the ns
61
- /******/ // mode & 4: return value when already ns object
62
- /******/ // mode & 8|1: behave like require
63
- /******/ __webpack_require__.t = function(value, mode) {
64
- /******/ if(mode & 1) value = __webpack_require__(value);
65
- /******/ if(mode & 8) return value;
66
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
67
- /******/ var ns = Object.create(null);
68
- /******/ __webpack_require__.r(ns);
69
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
70
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
71
- /******/ return ns;
72
- /******/ };
73
- /******/
74
- /******/ // getDefaultExport function for compatibility with non-harmony modules
75
- /******/ __webpack_require__.n = function(module) {
76
- /******/ var getter = module && module.__esModule ?
77
- /******/ function getDefault() { return module['default']; } :
78
- /******/ function getModuleExports() { return module; };
79
- /******/ __webpack_require__.d(getter, 'a', getter);
80
- /******/ return getter;
81
- /******/ };
82
- /******/
83
- /******/ // Object.prototype.hasOwnProperty.call
84
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
85
- /******/
86
- /******/ // __webpack_public_path__
87
- /******/ __webpack_require__.p = "/";
88
- /******/
89
- /******/
90
- /******/ // Load entry module and return exports
91
- /******/ return __webpack_require__(__webpack_require__.s = 0);
92
- /******/ })
93
- /************************************************************************/
94
- /******/ ({
95
 
96
  /***/ "./src/js/PluginHelper.js":
97
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
98
 
99
  "use strict";
100
  __webpack_require__.r(__webpack_exports__);
101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PluginHelper", function() { return PluginHelper; });
102
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
 
 
103
 
104
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
105
 
106
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
107
 
@@ -109,7 +26,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
109
 
110
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
111
 
112
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
113
 
114
  /*global woo_variation_swatches_admin, wp, woocommerce_admin_meta_boxes*/
115
  var PluginHelper = function ($) {
@@ -677,7 +594,7 @@ var PluginHelper = function ($) {
677
  }, {
678
  key: "FieldDependency",
679
  value: function FieldDependency() {
680
- var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '[data-dependency]';
681
 
682
  try {
683
  $(document.body).on('init_form_field_dependency', function () {
@@ -803,9 +720,9 @@ var PluginHelper = function ($) {
803
  /***/ }),
804
 
805
  /***/ "./src/js/backend.js":
806
- /***/ (function(module, exports, __webpack_require__) {
807
 
808
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
809
 
810
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
811
 
@@ -866,27 +783,183 @@ jQuery(function ($) {
866
  /***/ }),
867
 
868
  /***/ "./src/scss/backend.scss":
869
- /***/ (function(module, exports) {
870
-
871
- // removed by extract-text-webpack-plugin
872
 
873
- /***/ }),
874
-
875
- /***/ "./src/scss/frontend.scss":
876
- /***/ (function(module, exports) {
877
 
878
- // removed by extract-text-webpack-plugin
879
 
880
  /***/ }),
881
 
882
- /***/ 0:
883
- /***/ (function(module, exports, __webpack_require__) {
884
 
885
- __webpack_require__("./src/js/backend.js");
886
- __webpack_require__("./src/scss/backend.scss");
887
- module.exports = __webpack_require__("./src/scss/frontend.scss");
888
 
889
 
890
  /***/ })
891
 
892
- /******/ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*!
2
+ * Variation Swatches for WooCommerce
3
+ *
4
+ * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 7/20/2022, 7:03:48 PM
6
  * Released under the GPLv3 license.
7
  */
8
+ /******/ (function() { // webpackBootstrap
9
+ /******/ var __webpack_modules__ = ({
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  /***/ "./src/js/PluginHelper.js":
12
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13
 
14
  "use strict";
15
  __webpack_require__.r(__webpack_exports__);
16
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17
+ /* harmony export */ "PluginHelper": function() { return /* binding */ PluginHelper; }
18
+ /* harmony export */ });
19
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
 
21
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
 
23
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24
 
26
 
27
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
28
 
29
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
30
 
31
  /*global woo_variation_swatches_admin, wp, woocommerce_admin_meta_boxes*/
32
  var PluginHelper = function ($) {
594
  }, {
595
  key: "FieldDependency",
596
  value: function FieldDependency() {
597
+ var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '[data-gwp_dependency]';
598
 
599
  try {
600
  $(document.body).on('init_form_field_dependency', function () {
720
  /***/ }),
721
 
722
  /***/ "./src/js/backend.js":
723
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
724
 
725
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
726
 
727
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
728
 
783
  /***/ }),
784
 
785
  /***/ "./src/scss/backend.scss":
786
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
787
 
788
+ "use strict";
789
+ __webpack_require__.r(__webpack_exports__);
790
+ // extracted by mini-css-extract-plugin
 
791
 
 
792
 
793
  /***/ }),
794
 
795
+ /***/ "./src/scss/frontend.scss":
796
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
797
 
798
+ "use strict";
799
+ __webpack_require__.r(__webpack_exports__);
800
+ // extracted by mini-css-extract-plugin
801
 
802
 
803
  /***/ })
804
 
805
+ /******/ });
806
+ /************************************************************************/
807
+ /******/ // The module cache
808
+ /******/ var __webpack_module_cache__ = {};
809
+ /******/
810
+ /******/ // The require function
811
+ /******/ function __webpack_require__(moduleId) {
812
+ /******/ // Check if module is in cache
813
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
814
+ /******/ if (cachedModule !== undefined) {
815
+ /******/ return cachedModule.exports;
816
+ /******/ }
817
+ /******/ // Create a new module (and put it into the cache)
818
+ /******/ var module = __webpack_module_cache__[moduleId] = {
819
+ /******/ // no module.id needed
820
+ /******/ // no module.loaded needed
821
+ /******/ exports: {}
822
+ /******/ };
823
+ /******/
824
+ /******/ // Execute the module function
825
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
826
+ /******/
827
+ /******/ // Return the exports of the module
828
+ /******/ return module.exports;
829
+ /******/ }
830
+ /******/
831
+ /******/ // expose the modules object (__webpack_modules__)
832
+ /******/ __webpack_require__.m = __webpack_modules__;
833
+ /******/
834
+ /************************************************************************/
835
+ /******/ /* webpack/runtime/chunk loaded */
836
+ /******/ !function() {
837
+ /******/ var deferred = [];
838
+ /******/ __webpack_require__.O = function(result, chunkIds, fn, priority) {
839
+ /******/ if(chunkIds) {
840
+ /******/ priority = priority || 0;
841
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
842
+ /******/ deferred[i] = [chunkIds, fn, priority];
843
+ /******/ return;
844
+ /******/ }
845
+ /******/ var notFulfilled = Infinity;
846
+ /******/ for (var i = 0; i < deferred.length; i++) {
847
+ /******/ var chunkIds = deferred[i][0];
848
+ /******/ var fn = deferred[i][1];
849
+ /******/ var priority = deferred[i][2];
850
+ /******/ var fulfilled = true;
851
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
852
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {
853
+ /******/ chunkIds.splice(j--, 1);
854
+ /******/ } else {
855
+ /******/ fulfilled = false;
856
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
857
+ /******/ }
858
+ /******/ }
859
+ /******/ if(fulfilled) {
860
+ /******/ deferred.splice(i--, 1)
861
+ /******/ var r = fn();
862
+ /******/ if (r !== undefined) result = r;
863
+ /******/ }
864
+ /******/ }
865
+ /******/ return result;
866
+ /******/ };
867
+ /******/ }();
868
+ /******/
869
+ /******/ /* webpack/runtime/define property getters */
870
+ /******/ !function() {
871
+ /******/ // define getter functions for harmony exports
872
+ /******/ __webpack_require__.d = function(exports, definition) {
873
+ /******/ for(var key in definition) {
874
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
875
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
876
+ /******/ }
877
+ /******/ }
878
+ /******/ };
879
+ /******/ }();
880
+ /******/
881
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
882
+ /******/ !function() {
883
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
884
+ /******/ }();
885
+ /******/
886
+ /******/ /* webpack/runtime/make namespace object */
887
+ /******/ !function() {
888
+ /******/ // define __esModule on exports
889
+ /******/ __webpack_require__.r = function(exports) {
890
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
891
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
892
+ /******/ }
893
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
894
+ /******/ };
895
+ /******/ }();
896
+ /******/
897
+ /******/ /* webpack/runtime/jsonp chunk loading */
898
+ /******/ !function() {
899
+ /******/ // no baseURI
900
+ /******/
901
+ /******/ // object to store loaded and loading chunks
902
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
903
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
904
+ /******/ var installedChunks = {
905
+ /******/ "/assets/js/admin": 0,
906
+ /******/ "assets/css/frontend": 0,
907
+ /******/ "assets/css/admin": 0
908
+ /******/ };
909
+ /******/
910
+ /******/ // no chunk on demand loading
911
+ /******/
912
+ /******/ // no prefetching
913
+ /******/
914
+ /******/ // no preloaded
915
+ /******/
916
+ /******/ // no HMR
917
+ /******/
918
+ /******/ // no HMR manifest
919
+ /******/
920
+ /******/ __webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };
921
+ /******/
922
+ /******/ // install a JSONP callback for chunk loading
923
+ /******/ var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
924
+ /******/ var chunkIds = data[0];
925
+ /******/ var moreModules = data[1];
926
+ /******/ var runtime = data[2];
927
+ /******/ // add "moreModules" to the modules object,
928
+ /******/ // then flag all "chunkIds" as loaded and fire callback
929
+ /******/ var moduleId, chunkId, i = 0;
930
+ /******/ if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
931
+ /******/ for(moduleId in moreModules) {
932
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
933
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
934
+ /******/ }
935
+ /******/ }
936
+ /******/ if(runtime) var result = runtime(__webpack_require__);
937
+ /******/ }
938
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
939
+ /******/ for(;i < chunkIds.length; i++) {
940
+ /******/ chunkId = chunkIds[i];
941
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
942
+ /******/ installedChunks[chunkId][0]();
943
+ /******/ }
944
+ /******/ installedChunks[chunkId] = 0;
945
+ /******/ }
946
+ /******/ return __webpack_require__.O(result);
947
+ /******/ }
948
+ /******/
949
+ /******/ var chunkLoadingGlobal = self["webpackChunkwoo_variation_swatches"] = self["webpackChunkwoo_variation_swatches"] || [];
950
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
951
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
952
+ /******/ }();
953
+ /******/
954
+ /************************************************************************/
955
+ /******/
956
+ /******/ // startup
957
+ /******/ // Load entry module and return exports
958
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
959
+ /******/ __webpack_require__.O(undefined, ["assets/css/frontend","assets/css/admin"], function() { return __webpack_require__("./src/js/backend.js"); })
960
+ /******/ __webpack_require__.O(undefined, ["assets/css/frontend","assets/css/admin"], function() { return __webpack_require__("./src/scss/backend.scss"); })
961
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["assets/css/frontend","assets/css/admin"], function() { return __webpack_require__("./src/scss/frontend.scss"); })
962
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
963
+ /******/
964
+ /******/ })()
965
+ ;
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function o(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(a,n,function(e){return t[e]}.bind(null,n));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=0)}([function(t,e,o){o(1),o(8),t.exports=o(13)},function(t,e,o){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:e})(t)}jQuery((function(t){Promise.resolve().then((function(){return function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var o=n(e);if(o&&o.has(t))return o.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=r?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(i,c,s):i[c]=t[c]}return i.default=t,o&&o.set(t,i),i}(o(2))})).then((function(e){var o=e.PluginHelper;o.ResetAfterTermCreate(),o.ColorPicker(),o.ImageUploader(),o.FieldDependency(),o.Pagination(),o.MetaboxToggle(),o.AttributeTypeSwitch(),o.SaveProductAttributes(),t(document.body).on("woo_variation_swatches_variation_product_options_reset woo_variation_swatches_product_term_paging_done",(function(t,e){o.InitTooltip(),o.SelectWoo(),o.ColorPicker(),o.FieldDependency(),o.SetAttributeTypePaging(e)}))}))}))},function(t,e,o){"use strict";function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,a)}return o}function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function i(t,e){for(var o=0;o<e.length;o++){var a=e[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}o.r(e),o.d(e,"PluginHelper",(function(){return c}));var r,c=(r=jQuery,function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,o,c;return e=t,c=[{key:"GWPAdmin",value:function(){r().gwp_live_feed&&r().gwp_live_feed(),r().gwp_deactivate_popup&&r().gwp_deactivate_popup("woo-variation-swatches")}},{key:"GalleryNotification",value:function(){r(".woocommerce_variation").each((function(){var t=r(this).find(".options:first");r(this).find(".woo-variation-gallery-message").insertBefore(t)})),r("input.upload_image_id").on("change",(function(t){r.trim(r(this).val())?r(this).closest(".data").find(".woo-variation-gallery-message").addClass("enable"):r(this).closest(".data").find(".woo-variation-gallery-message").removeClass("enable")})),r("a.install-woo-variation-gallery-action").on("click",(function(t){t.preventDefault();var e=r(this).parent(),o=e.data("installing"),a=e.data("activated"),n=e.data("nonce");e.text(o),wp.ajax.send("install_woo_variation_gallery",{data:{nonce:n},success:function(t){e.text(a),_.delay((function(){r(".woocommerce_variable_attributes .woo-variation-gallery-message").remove()}),5e3)},error:function(t){e.text(a),_.delay((function(){r(".woocommerce_variable_attributes .woo-variation-gallery-message").remove()}),5e3)}})}))}},{key:"PaginationAjax",value:function(t,e,o,a,n){r.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_load_product_terms"),method:"POST",data:{offset:a,product_id:t,attribute_id:e,attribute_name:o,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(t,e){n.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(e,o){console.error("not available on: ".concat(t," ").concat($attribute_key,"."),o)})).always((function(){n.unblock()})).done((function(t){t&&(n.html(t),r(document.body).trigger("woo_variation_swatches_product_term_paging_done",n))}))}},{key:"MetaboxToggle",value:function(){r("#woo_variation_swatches_variation_product_options").on("click",".wc-metabox > h4",(function(t){var e=r(this).parent(".wc-metabox"),o=r(this).next(".wc-metabox-content");if(r(t.target).filter(":input, option, .sort, select, label, .select2-selection__rendered").length)return!1;e.hasClass("closed")?(e.removeClass("closed open").addClass("open"),o.slideDown()):(e.removeClass("closed open").addClass("closed"),o.slideUp())}))}},{key:"AttributeTypeSwitch",value:function(){r("#woo_variation_swatches_variation_product_options").on("change","select.woo_variation_swatches_attribute_type_switch",(function(t){var e=r(this).val();["select"].includes(e),["image","color","button"].includes(e)&&r(this).closest(".wc-metabox").find(".wc-metabox-content select.woo_variation_swatches_attribute_term_type_switch").val(e).trigger("change")})).on("change","select.woo_variation_swatches_attribute_term_type_switch",(function(t){var e=r(this).closest(".woo-variation-swatches-attribute-options-wrapper").find("select.woo_variation_swatches_attribute_type_switch").val();r(this).val()!==e&&r(this).closest(".woo-variation-swatches-attribute-options-wrapper").find("select.woo_variation_swatches_attribute_type_switch").val("mixed").trigger("change")}))}},{key:"SetAttributeTypePaging",value:function(t){var e=r(t).closest(".woo-variation-swatches-attribute-options-wrapper").find("select.woo_variation_swatches_attribute_type_switch").val();r(t).find("select.woo_variation_swatches_attribute_term_type_switch").hasClass("new-mode"),["image","color","button"].includes(e)&&r(t).find("select.woo_variation_swatches_attribute_term_type_switch.new-mode").val(e).trigger("change"),r(t).find("select.woo_variation_swatches_attribute_term_type_switch.new-mode").each((function(){r(this).val()}))}},{key:"LoadProductAttributes",value:function(){r("#woocommerce-product-data").on("woocommerce_variations_loaded",(function(t){var e=r("#woo_variation_swatches_variation_product_options").data("product_id");r.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_load_product_options"),method:"POST",data:{product_id:e,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(t,e){r("#woo_variation_swatches_variation_product_options_inner").block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,o){console.error("not load option: ".concat(e,"."),o)})).always((function(){r("#woo_variation_swatches_variation_product_options_inner").unblock()})).done((function(t){r(document.body).trigger("woo_variation_swatches_variation_product_options_loaded",e)}))}))}},{key:"SaveProductAttributes",value:function(){var t=!1,e=r("#woo_variation_swatches_variation_product_options");e.on("change input color-changed",":input:not(.wvs-skip-field)",(function(){t||(window.onbeforeunload=function(){return woo_variation_swatches_admin.nav_warning},t=!0)})).on("click",".woo_variation_swatches_save_product_attributes, .woo_variation_swatches_reset_product_attributes",(function(){window.onbeforeunload=""})).on("click",".woo_variation_swatches_save_product_attributes",(function(t){t.preventDefault();var o,a=e.find(":input:not(.wvs-skip-field)").serializeJSON({disableColonTypes:!0}),n=Object.keys(a)?Object.keys(a).shift():"woo_variation_swatches_product_options",i=e.data("product_id");r.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_save_product_options"),method:"POST",data:{data:a[n],product_id:i,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(t,e){clearTimeout(o),r("#woo_variation_swatches_variation_product_options_inner").block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,e){console.error("not saved on: ".concat(i,"."),e)})).always((function(){r("#woo_variation_swatches_variation_product_options_inner").unblock()})).done((function(t){r("#saved-message").show(),o=setTimeout((function(){r("#saved-message").hide(600)}),5e3),r(document.body).trigger("woo_variation_swatches_variation_product_options_saved",i)}))})).on("click",".woo_variation_swatches_reset_product_attributes",(function(t){if(t.preventDefault(),confirm(woo_variation_swatches_admin.reset_notice)){var e=r(this).data("product_id");r.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_reset_product_options"),method:"POST",data:{product_id:e,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(t,e){r("#woo_variation_swatches_variation_product_options_inner").block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,o){console.error("not reset on: ".concat(e,"."),o)})).always((function(){r("#woo_variation_swatches_variation_product_options_inner").unblock()})).done((function(t){var o=r(t).find("#woo_variation_swatches_variation_product_options_inner").html();r("#woo_variation_swatches_variation_product_options_inner").html(o),r(document.body).trigger("woo_variation_swatches_variation_product_options_reset",e)}))}}))}},{key:"ResetProductAttributes",value:function(){r("#woo_variation_swatches_variation_product_options")}},{key:"Pagination",value:function(){var t=this,e=!1;r("#woo_variation_swatches_variation_product_options").on("change input color-changed",":input:not(.wvs-skip-field)",(function(t){e||(e=!0)})).on("click",".woo_variation_swatches_reset_product_attributes",(function(t){t.preventDefault(),e=!1})).on("click",".woo_variation_swatches_save_product_attributes",(function(t){t.preventDefault(),e=!1})).on("click",".first-page:not(.disabled), .prev-page:not(.disabled), .last-page:not(.disabled), .next-page:not(.disabled)",(function(t){e&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),alert(woo_variation_swatches_admin.nav_warning))})).on("click",".first-page.disabled, .prev-page.disabled, .last-page.disabled, .next-page.disabled",(function(t){t.preventDefault()})).on("click",".first-page:not(.disabled)",(function(e){e.preventDefault();var o=r(e.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),a=r(e.currentTarget).closest(".product-term-label-settings-pagination"),n=o.data("product_id"),i=o.data("attribute_id"),c=o.data("attribute_name");t.PaginationAjax(n,i,c,0,o),a.find(".next-page, .last-page").removeClass("disabled"),a.find(".current-page").text(1),o.data("current",1),a.find(".first-page, .prev-page").addClass("disabled")})).on("click",".prev-page:not(.disabled)",(function(e){e.preventDefault();var o=r(e.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),a=r(e.currentTarget).closest(".product-term-label-settings-pagination");o.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}});var n=o.data("product_id"),i=(o.data("pages"),o.data("attribute_id")),c=o.data("attribute_name"),s=o.data("current"),l=o.data("limit"),d=(o.data("total"),(s-1)*l-l),u=s-1;t.PaginationAjax(n,i,c,d,o),a.find(".next-page, .last-page").removeClass("disabled"),a.find(".current-page").text(u),o.data("current",u),0===d&&a.find(".first-page, .prev-page").addClass("disabled")})).on("click",".next-page:not(.disabled)",(function(e){e.preventDefault();var o=r(e.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),a=r(e.currentTarget).closest(".product-term-label-settings-pagination");o.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}});var n=o.data("product_id"),i=o.data("pages"),c=o.data("attribute_id"),s=o.data("attribute_name"),l=o.data("current"),d=o.data("limit"),u=(o.data("total"),l*d),_=l+1;t.PaginationAjax(n,c,s,u,o),a.find(".first-page, .prev-page").removeClass("disabled"),a.find(".current-page").text(_),o.data("current",_),i===_&&a.find(".next-page, .last-page").addClass("disabled")})).on("click",".last-page:not(.disabled)",(function(e){e.preventDefault();var o=r(e.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),a=r(e.currentTarget).closest(".product-term-label-settings-pagination");o.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}});var n=o.data("product_id"),i=o.data("pages"),c=o.data("attribute_id"),s=o.data("attribute_name"),l=(o.data("current"),o.data("limit")),d=i*l-l;t.PaginationAjax(n,c,s,d,o),a.find(".first-page, .prev-page").removeClass("disabled"),a.find(".current-page").text(i),o.data("current",i),a.find(".next-page, .last-page").addClass("disabled")}))}},{key:"ResetAfterTermCreate",value:function(){r(document.body).on("woo_variation_swatches_admin_term_meta_added",this.ClearImagePicker),r(document.body).on("woo_variation_swatches_admin_term_meta_added",this.ClearColorPicker),r(document).ajaxComplete((function(t,e,o){try{var a=Object.fromEntries(new URLSearchParams(o.data));"add-tag"===a.action&&""===r("#tag-name").val()&&_.delay((function(){r(document.body).trigger("woo_variation_swatches_admin_term_meta_added",a)}),300)}catch(t){}}))}},{key:"ImageUploader",value:function(){r(document.body).off("click","button.wvs_upload_image_button"),r(document.body).on("click","button.wvs_upload_image_button",this.AddImage),r(document.body).on("click","button.wvs_remove_image_button",this.RemoveImage)}},{key:"AddImage",value:function(t){var e,o=this;if(t.preventDefault(),t.stopPropagation(),"undefined"!=typeof wp&&wp.media&&wp.media.editor){if(e)return void e.open();(e=wp.media.frames.select_image=wp.media({title:woo_variation_swatches_admin.media_title,button:{text:woo_variation_swatches_admin.button_title},multiple:!1})).on("select",(function(){var t=e.state().get("selection").first().toJSON();if(""!==r.trim(t.id)){var a=void 0===t.sizes.thumbnail?t.sizes.full.url:t.sizes.thumbnail.url;r(o).prev().val(t.id),r(o).closest(".meta-image-field-wrapper").find("img").attr("src",a),r(o).next().show()}})),e.on("open",(function(){var t=e.state().get("selection"),a=r(o).prev().val(),n=wp.media.attachment(a);n.fetch(),t.add(n?[n]:[])})),e.open()}}},{key:"RemoveImage",value:function(t){t.preventDefault(),t.stopPropagation();var e=r(this).closest(".meta-image-field-wrapper").find("img").data("placeholder");return r(this).closest(".meta-image-field-wrapper").find("img").attr("src",e),r(this).prev().prev().val(""),r(this).hide(),!1}},{key:"ClearImagePicker",value:function(){r("#addtag").find(".wvs_remove_image_button").trigger("click")}},{key:"__SelectWoo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"select.wvs-select-woo";try{r(document.body).on("woo_variation_swatches_select_woo_init",(function(e){r(t).selectWoo({allowClear:!0})})).trigger("woo_variation_swatches_select_woo_init")}catch(t){window.console.log(t)}}},{key:"InitTooltip",value:function(){r(document.body).trigger("init_tooltips")}},{key:"SelectWoo",value:function(){try{r(document.body).trigger("wc-enhanced-select-init")}catch(t){window.console.log(t)}}},{key:"ColorPicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input.wvs-color-picker";try{r(document.body).on("woo_variation_swatches_color_picker_init",(function(e){r(t).wpColorPicker({change:function(e,o){r(t).trigger("color-changed")},clear:function(){r(t).trigger("color-changed")}})})).trigger("woo_variation_swatches_color_picker_init")}catch(t){window.console.log(t)}}},{key:"ClearColorPicker",value:function(){r("#addtag").find(".wp-picker-clear").trigger("click")}},{key:"FieldDependency",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[data-dependency]";try{r(document.body).on("init_form_field_dependency",(function(){r(t).GWPFormFieldDependency()})).trigger("init_form_field_dependency")}catch(t){window.console.log(t)}}},{key:"savingDialog",value:function(t,e,o){var i={},c="";if(e.find("input, select").each((function(){var t=r(this).attr("name"),e=r(this).val();t&&("tag_name"===t?c=e:i[t]=e,r(this).val(""))})),c){r(".product_attributes").block({message:null,overlayCSS:{background:"#FFFFFF",opacity:.6}});var s=function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({action:"woocommerce_add_new_attribute",taxonomy:o,term:c,security:woocommerce_admin_meta_boxes.add_attribute_nonce},i);r.post(woocommerce_admin_meta_boxes.ajax_url,s,(function(e){e.error?window.alert(e.error):e.slug&&(t.find("select.attribute_values").append('<option value="'+e.term_id+'" selected="selected">'+e.name+"</option>"),t.find("select.attribute_values").change()),r(".product_attributes").unblock()}))}else r(".product_attributes").unblock()}},{key:"AttributeDialog",value:function(){var t=this;r(".product_attributes").on("click","button.wvs_add_new_attribute",(function(e){e.preventDefault();var o=r(this).closest(".woocommerce_attribute"),a=o.data("taxonomy"),n=r(this).data("dialog_title");r(".wvs-attribute-dialog-for-"+a).dialog({title:"",dialogClass:"wp-dialog wvs-attribute-dialog",classes:{"ui-dialog":"wp-dialog wvs-attribute-dialog"},autoOpen:!1,draggable:!0,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},open:function(){r(".ui-widget-overlay").bind("click",(function(){r("#attribute-dialog").dialog("close")}))},create:function(){}}).dialog("option","title",n).dialog("option","buttons",[{text:woo_variation_swatches_admin.dialog_save,click:function(){t.savingDialog(o,r(this),a),r(this).dialog("close").dialog("destroy")}},{text:woo_variation_swatches_admin.dialog_cancel,click:function(){r(this).dialog("close").dialog("destroy")}}]).dialog("open")}))}}],(o=null)&&i(e.prototype,o),c&&i(e,c),t}())},,,,,,function(t,e){},,,,,function(t,e){}]);
1
+ !function(){var t,e={825:function(t,e,o){"use strict";function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,a)}return o}function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function i(t,e){for(var o=0;o<e.length;o++){var a=e[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}o.r(e),o.d(e,{PluginHelper:function(){return r}});var r=function(t){var e=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,r,c;return o=e,c=[{key:"GWPAdmin",value:function(){t().gwp_live_feed&&t().gwp_live_feed(),t().gwp_deactivate_popup&&t().gwp_deactivate_popup("woo-variation-swatches")}},{key:"GalleryNotification",value:function(){t(".woocommerce_variation").each((function(){var e=t(this).find(".options:first");t(this).find(".woo-variation-gallery-message").insertBefore(e)})),t("input.upload_image_id").on("change",(function(e){t.trim(t(this).val())?t(this).closest(".data").find(".woo-variation-gallery-message").addClass("enable"):t(this).closest(".data").find(".woo-variation-gallery-message").removeClass("enable")})),t("a.install-woo-variation-gallery-action").on("click",(function(e){e.preventDefault();var o=t(this).parent(),a=o.data("installing"),n=o.data("activated"),i=o.data("nonce");o.text(a),wp.ajax.send("install_woo_variation_gallery",{data:{nonce:i},success:function(e){o.text(n),_.delay((function(){t(".woocommerce_variable_attributes .woo-variation-gallery-message").remove()}),5e3)},error:function(e){o.text(n),_.delay((function(){t(".woocommerce_variable_attributes .woo-variation-gallery-message").remove()}),5e3)}})}))}},{key:"PaginationAjax",value:function(e,o,a,n,i){t.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_load_product_terms"),method:"POST",data:{offset:n,product_id:e,attribute_id:o,attribute_name:a,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(t,e){i.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,o){console.error("not available on: ".concat(e," ").concat($attribute_key,"."),o)})).always((function(){i.unblock()})).done((function(e){e&&(i.html(e),t(document.body).trigger("woo_variation_swatches_product_term_paging_done",i))}))}},{key:"MetaboxToggle",value:function(){t("#woo_variation_swatches_variation_product_options").on("click",".wc-metabox > h4",(function(e){var o=t(this).parent(".wc-metabox"),a=t(this).next(".wc-metabox-content");if(t(e.target).filter(":input, option, .sort, select, label, .select2-selection__rendered").length)return!1;o.hasClass("closed")?(o.removeClass("closed open").addClass("open"),a.slideDown()):(o.removeClass("closed open").addClass("closed"),a.slideUp())}))}},{key:"AttributeTypeSwitch",value:function(){t("#woo_variation_swatches_variation_product_options").on("change","select.woo_variation_swatches_attribute_type_switch",(function(e){var o=t(this).val();["select"].includes(o),["image","color","button"].includes(o)&&t(this).closest(".wc-metabox").find(".wc-metabox-content select.woo_variation_swatches_attribute_term_type_switch").val(o).trigger("change")})).on("change","select.woo_variation_swatches_attribute_term_type_switch",(function(e){var o=t(this).closest(".woo-variation-swatches-attribute-options-wrapper").find("select.woo_variation_swatches_attribute_type_switch").val();t(this).val()!==o&&t(this).closest(".woo-variation-swatches-attribute-options-wrapper").find("select.woo_variation_swatches_attribute_type_switch").val("mixed").trigger("change")}))}},{key:"SetAttributeTypePaging",value:function(e){var o=t(e).closest(".woo-variation-swatches-attribute-options-wrapper").find("select.woo_variation_swatches_attribute_type_switch").val();t(e).find("select.woo_variation_swatches_attribute_term_type_switch").hasClass("new-mode"),["image","color","button"].includes(o)&&t(e).find("select.woo_variation_swatches_attribute_term_type_switch.new-mode").val(o).trigger("change"),t(e).find("select.woo_variation_swatches_attribute_term_type_switch.new-mode").each((function(){t(this).val()}))}},{key:"LoadProductAttributes",value:function(){t("#woocommerce-product-data").on("woocommerce_variations_loaded",(function(e){var o=t("#woo_variation_swatches_variation_product_options").data("product_id");t.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_load_product_options"),method:"POST",data:{product_id:o,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(e,o){t("#woo_variation_swatches_variation_product_options_inner").block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,e){console.error("not load option: ".concat(o,"."),e)})).always((function(){t("#woo_variation_swatches_variation_product_options_inner").unblock()})).done((function(e){t(document.body).trigger("woo_variation_swatches_variation_product_options_loaded",o)}))}))}},{key:"SaveProductAttributes",value:function(){var e=!1,o=t("#woo_variation_swatches_variation_product_options");o.on("change input color-changed",":input:not(.wvs-skip-field)",(function(){e||(window.onbeforeunload=function(){return woo_variation_swatches_admin.nav_warning},e=!0)})).on("click",".woo_variation_swatches_save_product_attributes, .woo_variation_swatches_reset_product_attributes",(function(){window.onbeforeunload=""})).on("click",".woo_variation_swatches_save_product_attributes",(function(e){e.preventDefault();var a,n=o.find(":input:not(.wvs-skip-field)").serializeJSON({disableColonTypes:!0}),i=Object.keys(n)?Object.keys(n).shift():"woo_variation_swatches_product_options",r=o.data("product_id");t.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_save_product_options"),method:"POST",data:{data:n[i],product_id:r,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(e,o){clearTimeout(a),t("#woo_variation_swatches_variation_product_options_inner").block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,e){console.error("not saved on: ".concat(r,"."),e)})).always((function(){t("#woo_variation_swatches_variation_product_options_inner").unblock()})).done((function(e){t("#saved-message").show(),a=setTimeout((function(){t("#saved-message").hide(600)}),5e3),t(document.body).trigger("woo_variation_swatches_variation_product_options_saved",r)}))})).on("click",".woo_variation_swatches_reset_product_attributes",(function(e){if(e.preventDefault(),confirm(woo_variation_swatches_admin.reset_notice)){var o=t(this).data("product_id");t.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_reset_product_options"),method:"POST",data:{product_id:o,nonce:woo_variation_swatches_admin.nonce},beforeSend:function(e,o){t("#woo_variation_swatches_variation_product_options_inner").block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}})}}).fail((function(t,e){console.error("not reset on: ".concat(o,"."),e)})).always((function(){t("#woo_variation_swatches_variation_product_options_inner").unblock()})).done((function(e){var a=t(e).find("#woo_variation_swatches_variation_product_options_inner").html();t("#woo_variation_swatches_variation_product_options_inner").html(a),t(document.body).trigger("woo_variation_swatches_variation_product_options_reset",o)}))}}))}},{key:"ResetProductAttributes",value:function(){t("#woo_variation_swatches_variation_product_options")}},{key:"Pagination",value:function(){var e=this,o=!1;t("#woo_variation_swatches_variation_product_options").on("change input color-changed",":input:not(.wvs-skip-field)",(function(t){o||(o=!0)})).on("click",".woo_variation_swatches_reset_product_attributes",(function(t){t.preventDefault(),o=!1})).on("click",".woo_variation_swatches_save_product_attributes",(function(t){t.preventDefault(),o=!1})).on("click",".first-page:not(.disabled), .prev-page:not(.disabled), .last-page:not(.disabled), .next-page:not(.disabled)",(function(t){o&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),alert(woo_variation_swatches_admin.nav_warning))})).on("click",".first-page.disabled, .prev-page.disabled, .last-page.disabled, .next-page.disabled",(function(t){t.preventDefault()})).on("click",".first-page:not(.disabled)",(function(o){o.preventDefault();var a=t(o.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),n=t(o.currentTarget).closest(".product-term-label-settings-pagination"),i=a.data("product_id"),r=a.data("attribute_id"),c=a.data("attribute_name");e.PaginationAjax(i,r,c,0,a),n.find(".next-page, .last-page").removeClass("disabled"),n.find(".current-page").text(1),a.data("current",1),n.find(".first-page, .prev-page").addClass("disabled")})).on("click",".prev-page:not(.disabled)",(function(o){o.preventDefault();var a=t(o.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),n=t(o.currentTarget).closest(".product-term-label-settings-pagination");a.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}});var i=a.data("product_id"),r=(a.data("pages"),a.data("attribute_id")),c=a.data("attribute_name"),s=a.data("current"),l=a.data("limit"),d=(a.data("total"),(s-1)*l-l),u=s-1;e.PaginationAjax(i,r,c,d,a),n.find(".next-page, .last-page").removeClass("disabled"),n.find(".current-page").text(u),a.data("current",u),0===d&&n.find(".first-page, .prev-page").addClass("disabled")})).on("click",".next-page:not(.disabled)",(function(o){o.preventDefault();var a=t(o.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),n=t(o.currentTarget).closest(".product-term-label-settings-pagination");a.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}});var i=a.data("product_id"),r=a.data("pages"),c=a.data("attribute_id"),s=a.data("attribute_name"),l=a.data("current"),d=a.data("limit"),u=(a.data("total"),l*d),_=l+1;e.PaginationAjax(i,c,s,u,a),n.find(".first-page, .prev-page").removeClass("disabled"),n.find(".current-page").text(_),a.data("current",_),r===_&&n.find(".next-page, .last-page").addClass("disabled")})).on("click",".last-page:not(.disabled)",(function(o){o.preventDefault();var a=t(o.currentTarget).closest(".product-term-label-settings").find(".product-term-label-settings-contents"),n=t(o.currentTarget).closest(".product-term-label-settings-pagination");a.block({message:null,overlayCSS:{background:"#DDDDDD",opacity:.6}});var i=a.data("product_id"),r=a.data("pages"),c=a.data("attribute_id"),s=a.data("attribute_name"),l=(a.data("current"),a.data("limit")),d=r*l-l;e.PaginationAjax(i,c,s,d,a),n.find(".first-page, .prev-page").removeClass("disabled"),n.find(".current-page").text(r),a.data("current",r),n.find(".next-page, .last-page").addClass("disabled")}))}},{key:"ResetAfterTermCreate",value:function(){t(document.body).on("woo_variation_swatches_admin_term_meta_added",this.ClearImagePicker),t(document.body).on("woo_variation_swatches_admin_term_meta_added",this.ClearColorPicker),t(document).ajaxComplete((function(e,o,a){try{var n=Object.fromEntries(new URLSearchParams(a.data));"add-tag"===n.action&&""===t("#tag-name").val()&&_.delay((function(){t(document.body).trigger("woo_variation_swatches_admin_term_meta_added",n)}),300)}catch(t){}}))}},{key:"ImageUploader",value:function(){t(document.body).off("click","button.wvs_upload_image_button"),t(document.body).on("click","button.wvs_upload_image_button",this.AddImage),t(document.body).on("click","button.wvs_remove_image_button",this.RemoveImage)}},{key:"AddImage",value:function(e){var o,a=this;if(e.preventDefault(),e.stopPropagation(),"undefined"!=typeof wp&&wp.media&&wp.media.editor){if(o)return void o.open();(o=wp.media.frames.select_image=wp.media({title:woo_variation_swatches_admin.media_title,button:{text:woo_variation_swatches_admin.button_title},multiple:!1})).on("select",(function(){var e=o.state().get("selection").first().toJSON();if(""!==t.trim(e.id)){var n=void 0===e.sizes.thumbnail?e.sizes.full.url:e.sizes.thumbnail.url;t(a).prev().val(e.id),t(a).closest(".meta-image-field-wrapper").find("img").attr("src",n),t(a).next().show()}})),o.on("open",(function(){var e=o.state().get("selection"),n=t(a).prev().val(),i=wp.media.attachment(n);i.fetch(),e.add(i?[i]:[])})),o.open()}}},{key:"RemoveImage",value:function(e){e.preventDefault(),e.stopPropagation();var o=t(this).closest(".meta-image-field-wrapper").find("img").data("placeholder");return t(this).closest(".meta-image-field-wrapper").find("img").attr("src",o),t(this).prev().prev().val(""),t(this).hide(),!1}},{key:"ClearImagePicker",value:function(){t("#addtag").find(".wvs_remove_image_button").trigger("click")}},{key:"__SelectWoo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"select.wvs-select-woo";try{t(document.body).on("woo_variation_swatches_select_woo_init",(function(o){t(e).selectWoo({allowClear:!0})})).trigger("woo_variation_swatches_select_woo_init")}catch(t){window.console.log(t)}}},{key:"InitTooltip",value:function(){t(document.body).trigger("init_tooltips")}},{key:"SelectWoo",value:function(){try{t(document.body).trigger("wc-enhanced-select-init")}catch(t){window.console.log(t)}}},{key:"ColorPicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input.wvs-color-picker";try{t(document.body).on("woo_variation_swatches_color_picker_init",(function(o){t(e).wpColorPicker({change:function(o,a){t(e).trigger("color-changed")},clear:function(){t(e).trigger("color-changed")}})})).trigger("woo_variation_swatches_color_picker_init")}catch(t){window.console.log(t)}}},{key:"ClearColorPicker",value:function(){t("#addtag").find(".wp-picker-clear").trigger("click")}},{key:"FieldDependency",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[data-gwp_dependency]";try{t(document.body).on("init_form_field_dependency",(function(){t(e).GWPFormFieldDependency()})).trigger("init_form_field_dependency")}catch(t){window.console.log(t)}}},{key:"savingDialog",value:function(e,o,i){var r={},c="";if(o.find("input, select").each((function(){var e=t(this).attr("name"),o=t(this).val();e&&("tag_name"===e?c=o:r[e]=o,t(this).val(""))})),c){t(".product_attributes").block({message:null,overlayCSS:{background:"#FFFFFF",opacity:.6}});var s=function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({action:"woocommerce_add_new_attribute",taxonomy:i,term:c,security:woocommerce_admin_meta_boxes.add_attribute_nonce},r);t.post(woocommerce_admin_meta_boxes.ajax_url,s,(function(o){o.error?window.alert(o.error):o.slug&&(e.find("select.attribute_values").append('<option value="'+o.term_id+'" selected="selected">'+o.name+"</option>"),e.find("select.attribute_values").change()),t(".product_attributes").unblock()}))}else t(".product_attributes").unblock()}},{key:"AttributeDialog",value:function(){var e=this;t(".product_attributes").on("click","button.wvs_add_new_attribute",(function(o){o.preventDefault();var a=t(this).closest(".woocommerce_attribute"),n=a.data("taxonomy"),i=t(this).data("dialog_title");t(".wvs-attribute-dialog-for-"+n).dialog({title:"",dialogClass:"wp-dialog wvs-attribute-dialog",classes:{"ui-dialog":"wp-dialog wvs-attribute-dialog"},autoOpen:!1,draggable:!0,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},open:function(){t(".ui-widget-overlay").bind("click",(function(){t("#attribute-dialog").dialog("close")}))},create:function(){}}).dialog("option","title",i).dialog("option","buttons",[{text:woo_variation_swatches_admin.dialog_save,click:function(){e.savingDialog(a,t(this),n),t(this).dialog("close").dialog("destroy")}},{text:woo_variation_swatches_admin.dialog_cancel,click:function(){t(this).dialog("close").dialog("destroy")}}]).dialog("open")}))}}],(r=null)&&i(o.prototype,r),c&&i(o,c),Object.defineProperty(o,"prototype",{writable:!1}),e}();return e}(jQuery)},794:function(t,e,o){function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:e})(t)}jQuery((function(t){Promise.resolve().then((function(){return function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var o=n(e);if(o&&o.has(t))return o.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=r?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(i,c,s):i[c]=t[c]}return i.default=t,o&&o.set(t,i),i}(o(825))})).then((function(e){var o=e.PluginHelper;o.ResetAfterTermCreate(),o.ColorPicker(),o.ImageUploader(),o.FieldDependency(),o.Pagination(),o.MetaboxToggle(),o.AttributeTypeSwitch(),o.SaveProductAttributes(),t(document.body).on("woo_variation_swatches_variation_product_options_reset woo_variation_swatches_product_term_paging_done",(function(t,e){o.InitTooltip(),o.SelectWoo(),o.ColorPicker(),o.FieldDependency(),o.SetAttributeTypePaging(e)}))}))}))},193:function(){},262:function(){}},o={};function a(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={exports:{}};return e[t](i,i.exports,a),i.exports}a.m=e,t=[],a.O=function(e,o,n,i){if(!o){var r=1/0;for(d=0;d<t.length;d++){o=t[d][0],n=t[d][1],i=t[d][2];for(var c=!0,s=0;s<o.length;s++)(!1&i||r>=i)&&Object.keys(a.O).every((function(t){return a.O[t](o[s])}))?o.splice(s--,1):(c=!1,i<r&&(r=i));if(c){t.splice(d--,1);var l=n();void 0!==l&&(e=l)}}return e}i=i||0;for(var d=t.length;d>0&&t[d-1][2]>i;d--)t[d]=t[d-1];t[d]=[o,n,i]},a.d=function(t,e){for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t={801:0,706:0,438:0};a.O.j=function(e){return 0===t[e]};var e=function(e,o){var n,i,r=o[0],c=o[1],s=o[2],l=0;if(r.some((function(e){return 0!==t[e]}))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);if(s)var d=s(a)}for(e&&e(o);l<r.length;l++)i=r[l],a.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return a.O(d)},o=self.webpackChunkwoo_variation_swatches=self.webpackChunkwoo_variation_swatches||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))}(),a.O(void 0,[706,438],(function(){return a(794)})),a.O(void 0,[706,438],(function(){return a(193)}));var n=a.O(void 0,[706,438],(function(){return a(262)}));n=a.O(n)}();
assets/js/frontend.js CHANGED
@@ -1,102 +1,15 @@
1
  /*!
2
- * Variation Swatches for WooCommerce
3
- *
4
- * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 7/8/2022, 11:04:45 PM
6
  * Released under the GPLv3 license.
7
  */
8
- /******/ (function(modules) { // webpackBootstrap
9
- /******/ // The module cache
10
- /******/ var installedModules = {};
11
- /******/
12
- /******/ // The require function
13
- /******/ function __webpack_require__(moduleId) {
14
- /******/
15
- /******/ // Check if module is in cache
16
- /******/ if(installedModules[moduleId]) {
17
- /******/ return installedModules[moduleId].exports;
18
- /******/ }
19
- /******/ // Create a new module (and put it into the cache)
20
- /******/ var module = installedModules[moduleId] = {
21
- /******/ i: moduleId,
22
- /******/ l: false,
23
- /******/ exports: {}
24
- /******/ };
25
- /******/
26
- /******/ // Execute the module function
27
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
28
- /******/
29
- /******/ // Flag the module as loaded
30
- /******/ module.l = true;
31
- /******/
32
- /******/ // Return the exports of the module
33
- /******/ return module.exports;
34
- /******/ }
35
- /******/
36
- /******/
37
- /******/ // expose the modules object (__webpack_modules__)
38
- /******/ __webpack_require__.m = modules;
39
- /******/
40
- /******/ // expose the module cache
41
- /******/ __webpack_require__.c = installedModules;
42
- /******/
43
- /******/ // define getter function for harmony exports
44
- /******/ __webpack_require__.d = function(exports, name, getter) {
45
- /******/ if(!__webpack_require__.o(exports, name)) {
46
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
47
- /******/ }
48
- /******/ };
49
- /******/
50
- /******/ // define __esModule on exports
51
- /******/ __webpack_require__.r = function(exports) {
52
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
53
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
54
- /******/ }
55
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
56
- /******/ };
57
- /******/
58
- /******/ // create a fake namespace object
59
- /******/ // mode & 1: value is a module id, require it
60
- /******/ // mode & 2: merge all properties of value into the ns
61
- /******/ // mode & 4: return value when already ns object
62
- /******/ // mode & 8|1: behave like require
63
- /******/ __webpack_require__.t = function(value, mode) {
64
- /******/ if(mode & 1) value = __webpack_require__(value);
65
- /******/ if(mode & 8) return value;
66
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
67
- /******/ var ns = Object.create(null);
68
- /******/ __webpack_require__.r(ns);
69
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
70
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
71
- /******/ return ns;
72
- /******/ };
73
- /******/
74
- /******/ // getDefaultExport function for compatibility with non-harmony modules
75
- /******/ __webpack_require__.n = function(module) {
76
- /******/ var getter = module && module.__esModule ?
77
- /******/ function getDefault() { return module['default']; } :
78
- /******/ function getModuleExports() { return module; };
79
- /******/ __webpack_require__.d(getter, 'a', getter);
80
- /******/ return getter;
81
- /******/ };
82
- /******/
83
- /******/ // Object.prototype.hasOwnProperty.call
84
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
85
- /******/
86
- /******/ // __webpack_public_path__
87
- /******/ __webpack_require__.p = "/";
88
- /******/
89
- /******/
90
- /******/ // Load entry module and return exports
91
- /******/ return __webpack_require__(__webpack_require__.s = 1);
92
- /******/ })
93
- /************************************************************************/
94
- /******/ ({
95
-
96
- /***/ "./src/js/WooVariationSwatches.js":
97
- /***/ (function(module, exports) {
98
-
99
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
100
 
101
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
102
 
@@ -116,7 +29,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
116
 
117
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
118
 
119
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
120
 
121
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
122
 
@@ -636,12 +549,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
636
 
637
  jQueryPlugin('WooVariationSwatches', Plugin);
638
  })(window);
639
-
640
- /***/ }),
641
-
642
- /***/ "./src/js/frontend.js":
643
- /***/ (function(module, exports) {
644
-
645
  jQuery(function ($) {
646
  try {
647
  $(document).on('woo_variation_swatches_init', function () {
@@ -680,16 +590,6 @@ jQuery(function ($) {
680
  })*/
681
  });
682
  });
683
-
684
- /***/ }),
685
-
686
- /***/ 1:
687
- /***/ (function(module, exports, __webpack_require__) {
688
-
689
- __webpack_require__("./src/js/WooVariationSwatches.js");
690
- module.exports = __webpack_require__("./src/js/frontend.js");
691
-
692
-
693
- /***/ })
694
-
695
- /******/ });
1
  /*!
2
+ * Variation Swatches for WooCommerce
3
+ *
4
+ * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 7/20/2022, 7:03:48 PM
6
  * Released under the GPLv3 license.
7
  */
8
+ /******/ (function() { // webpackBootstrap
9
+ var __webpack_exports__ = {};
10
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
11
+ !function() {
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
15
 
29
 
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
 
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
 
34
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
 
549
 
550
  jQueryPlugin('WooVariationSwatches', Plugin);
551
  })(window);
552
+ }();
553
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
554
+ !function() {
 
 
 
555
  jQuery(function ($) {
556
  try {
557
  $(document).on('woo_variation_swatches_init', function () {
590
  })*/
591
  });
592
  });
593
+ }();
594
+ /******/ })()
595
+ ;
 
 
 
 
 
 
 
 
 
 
assets/js/frontend.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function i(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(a,n,function(e){return t[e]}.bind(null,n));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=3)}([,,,function(t,e,i){i(4),t.exports=i(5)},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=o(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var a=0,n=function(){};return{s:n,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw r}}}}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var a,n,o=[],r=!0,s=!1;try{for(i=i.call(t);!(r=(a=i.next()).done)&&(o.push(a.value),!e||o.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==i.return||i.return()}finally{if(s)throw n}}return o}(t,e)||o(t,e)||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 o(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}function s(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}!function(t){"use strict";var e,o=(e=jQuery,function(){function t(i,a,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,"defaults",{}),this.name=n,this.element=i,this.$element=e(i),this.settings=e.extend(!0,{},this.defaults,a),this.product_variations=this.$element.data("product_variations")||[],this.is_ajax_variation=this.product_variations.length<1,this.product_id=this.$element.data("product_id"),this.reset_variations=this.$element.find(".reset_variations"),this.attributeFields=this.$element.find(".variations select"),this.selected_item_template='<span class="woo-selected-variation-item-name" data-default=""></span>',this.$element.addClass("wvs-loaded"),this.init(),this.update(),e(document).trigger("woo_variation_swatches_loaded",this)}var i,o,r;return i=t,(o=[{key:"isAjaxVariation",value:function(){return this.is_ajax_variation}},{key:"init",value:function(){this.prepareLabel(),this.prepareItems(),this.setupItems(),this.setupEvents(),this.setUpStockInfo()}},{key:"prepareLabel",value:function(){var t=this;woo_variation_swatches_options.show_variation_label&&this.$element.find(".variations .label").each((function(i,a){e(a).append(t.selected_item_template)}))}},{key:"prepareItems",value:function(){this.$element.find("ul.variable-items-wrapper").each((function(t,i){e(i).parent().addClass("woo-variation-items-wrapper")}))}},{key:"setupItems",value:function(){var t=this;this.$element.find("ul.variable-items-wrapper").each((function(i,a){var n="",o=e(a).parent().prev().find(".woo-selected-variation-item-name"),r=e(a).parent().find("select.woo-variation-raw-select"),s=r.find("option"),l=r.find("option:disabled"),c=r.find("option.enabled.out-of-stock"),u=r.find("option:selected"),d=r.find("option").eq(1),v=[],f=[],h=[];s.each((function(){""!==e(this).val()&&(v.push(e(this).val()),n=0===u.length?d.val():u.val())})),l.each((function(){""!==e(this).val()&&f.push(e(this).val())})),c.each((function(){""!==e(this).val()&&h.push(e(this).val())}));var p=_.difference(v,f);t.setupItem(a,n,p,h,o)}))}},{key:"setupItem",value:function(t,i,a,n,o){var r=this;e(t).find("li.variable-item").each((function(t,s){var l=e(s).attr("data-value"),c=e(s).attr("data-title");e(s).removeClass("selected disabled no-stock").addClass("disabled"),e(s).attr("aria-checked","false"),e(s).attr("tabindex","-1"),e(s).attr("data-wvstooltip-out-of-stock",""),e(s).find("input.variable-item-radio-input:radio").prop("disabled",!0).prop("checked",!1),i.length<1&&woo_variation_swatches_options.show_variation_label&&o.text(""),r.isAjaxVariation()?(e(s).find("input.variable-item-radio-input:radio").prop("disabled",!1),e(s).removeClass("selected disabled no-stock"),l===i&&(e(s).addClass("selected"),e(s).attr("aria-checked","true"),e(s).attr("tabindex","0"),e(s).find("input.variable-item-radio-input:radio").prop("disabled",!1).prop("checked",!0),woo_variation_swatches_options.show_variation_label&&o.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(c)),e(s).trigger("wvs-item-updated",[i,l]))):(_.includes(a,l)&&(e(s).removeClass("selected disabled"),e(s).removeAttr("aria-hidden"),e(s).attr("tabindex","0"),e(s).find("input.variable-item-radio-input:radio").prop("disabled",!1),l===i&&(e(s).addClass("selected"),e(s).attr("aria-checked","true"),e(s).find("input.variable-item-radio-input:radio").prop("checked",!0),woo_variation_swatches_options.show_variation_label&&o.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(c)),e(s).trigger("wvs-item-updated",[i,l]))),_.includes(n,l)&&woo_variation_swatches_options.clickable_out_of_stock&&(e(s).removeClass("disabled").addClass("no-stock"),e(s).attr("data-wvstooltip-out-of-stock",woo_variation_swatches_options.out_of_stock_tooltip_text)))}))}},{key:"setupEvents",value:function(){var t=this;this.$element.find("ul.variable-items-wrapper").each((function(i,a){var n=e(a).parent().find("select.woo-variation-raw-select");woo_variation_swatches_options.clear_on_reselect?(e(a).on("click.wvs","li.variable-item:not(.selected):not(.radio-variable-item)",(function(i){i.preventDefault(),i.stopPropagation();var a=e(this).data("value");n.val(a).trigger("change"),n.trigger("click"),woo_variation_swatches_options.is_mobile,e(this).trigger("wvs-selected-item",[a,n,t.$element])})),e(a).on("click.wvs","li.variable-item.selected:not(.radio-variable-item)",(function(i){i.preventDefault(),i.stopPropagation();var a=e(this).val();n.val("").trigger("change"),n.trigger("click"),woo_variation_swatches_options.is_mobile,e(this).trigger("wvs-unselected-item",[a,n,t.$element])})),e(a).on("click.wvs","input.variable-item-radio-input:radio",(function(t){t.stopPropagation(),e(this).trigger("change.wvs",{radioChange:!0})})),e(a).on("change.wvs","input.variable-item-radio-input:radio",(function(i,a){if(i.preventDefault(),i.stopPropagation(),a&&a.radioChange){var o=e(this).val();e(this).parent("li.radio-variable-item").hasClass("selected")?(n.val("").trigger("change"),e(this).parent("li.radio-variable-item").trigger("wvs-unselected-item",[o,n,t.$element])):(n.val(o).trigger("change"),e(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[o,n,t.$element])),n.trigger("click"),woo_variation_swatches_options.is_mobile}}))):(e(a).on("click.wvs","li.variable-item:not(.radio-variable-item)",(function(i){i.preventDefault(),i.stopPropagation();var a=e(this).data("value");n.val(a).trigger("change"),n.trigger("click"),woo_variation_swatches_options.is_mobile,e(this).trigger("wvs-selected-item",[a,n,t.$element])})),e(a).on("change.wvs","input.variable-item-radio-input:radio",(function(i){i.preventDefault(),i.stopPropagation();var a=e(this).val();n.val(a).trigger("change"),n.trigger("click"),woo_variation_swatches_options.is_mobile,e(this).parent("li.radio-variable-item").removeClass("selected disabled no-stock").addClass("selected"),e(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[a,n,t.$element])}))),e(a).on("keydown.wvs","li.variable-item:not(.disabled)",(function(t){(t.keyCode&&32===t.keyCode||t.key&&" "===t.key||t.keyCode&&13===t.keyCode||t.key&&"enter"===t.key.toLowerCase())&&(t.preventDefault(),e(this).trigger("click"))}))})),this.$element.on("click.wvs",".woo-variation-swatches-variable-item-more",(function(t){t.preventDefault(),e(this).parent().removeClass("enabled-display-limit-mode enabled-catalog-display-limit-mode"),e(this).remove()}))}},{key:"update",value:function(){var t=this;this.$element.on("woocommerce_variation_has_changed.wvs",(function(e){t.setupItems()}))}},{key:"setUpStockInfo",value:function(){var t=this;if(woo_variation_swatches_options.show_variation_stock){var e=parseInt(woo_variation_swatches_options.stock_label_threshold,10);this.$element.on("wvs-selected-item.wvs",(function(i){var a=t.getChosenAttributes(),n=t.findStockVariations(t.product_variations,a);a.count>1&&a.count===a.chosenCount&&t.resetStockInfo(),a.count>1&&a.count===a.mayChosenCount&&n.forEach((function(i){var a='[data-attribute_name="'.concat(i.attribute_name,'"] > [data-value="').concat(i.attribute_value,'"]');i.variation.is_in_stock&&i.variation.max_qty&&i.variation.variation_stock_left&&i.variation.max_qty<=e?(t.$element.find("".concat(a," .wvs-stock-left-info")).attr("data-wvs-stock-info",i.variation.variation_stock_left),t.$element.find(a).addClass("wvs-show-stock-left-info")):(t.$element.find(a).removeClass("wvs-show-stock-left-info"),t.$element.find("".concat(a," .wvs-stock-left-info")).attr("data-wvs-stock-info",""))}))})),this.$element.on("hide_variation.wvs",(function(){t.resetStockInfo()}))}}},{key:"resetStockInfo",value:function(){this.$element.find(".variable-item").removeClass("wvs-show-stock-left-info"),this.$element.find(".wvs-stock-left-info").attr("data-wvs-stock-info","")}},{key:"getChosenAttributes",value:function(){var t={},i=0,a=0;return this.attributeFields.each((function(){var n=e(this).data("attribute_name")||e(this).attr("name"),o=e(this).val()||"";o.length>0&&a++,i++,t[n]=o})),{count:i,chosenCount:a,mayChosenCount:a+1,data:t}}},{key:"findStockVariations",value:function(t,e){for(var i=[],o=0,r=Object.entries(e.data);o<r.length;o++){var s=n(r[o],2),c=s[0];if(0===s[1].length){var u,d=a(this.$element.find("ul[data-attribute_name='".concat(c,"']")).data("attribute_values")||[]);try{for(d.s();!(u=d.n()).done;){var v=u.value,f=_.extend(e.data,l({},c,v)),h=this.findMatchingVariations(t,f);if(h.length>0){var p=h.shift(),m={};m.attribute_name=c,m.attribute_value=v,m.variation=p,i.push(m)}}}catch(t){d.e(t)}finally{d.f()}}}return i}},{key:"findMatchingVariations",value:function(t,e){for(var i=[],a=0;a<t.length;a++){var n=t[a];this.isMatch(n.attributes,e)&&i.push(n)}return i}},{key:"isMatch",value:function(t,e){var i=!0;for(var a in t)if(t.hasOwnProperty(a)){var n=t[a],o=e[a];void 0!==n&&void 0!==o&&0!==n.length&&0!==o.length&&n!==o&&(i=!1)}return i}},{key:"destroy",value:function(){this.$element.removeClass("wvs-loaded"),this.$element.removeData(this.name)}}])&&s(i.prototype,o),r&&s(i,r),t}());(function(t){return function(e,a){t.fn[e]=function(n){for(var o=this,r=arguments.length,s=new Array(r>1?r-1:0),l=1;l<r;l++)s[l-1]=arguments[l];return this.each((function(r,l){var c=t(l),u=c.data(e);if(u||(u=new a(c,t.extend({},n),e),c.data(e,u)),"string"==typeof n){if("object"===i(u[n]))return u[n];var d;if("function"==typeof u[n])return(d=u)[n].apply(d,s)}return o}))},t.fn[e].Constructor=a,t[e]=function(i){for(var a,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(a=t({}))[e].apply(a,[i].concat(o))},t.fn[e].noConflict=function(){return t.fn[e]}}})(jQuery)("WooVariationSwatches",o)}(window)},function(t,e){jQuery((function(t){try{t(document).on("woo_variation_swatches_init",(function(){t(".variations_form:not(.wvs-loaded)").WooVariationSwatches(),t(".woo_variation_swatches_variations_form:not(.wvs-loaded)").WooVariationSwatches(),t(".ywcp_inner_selected_container:not(.wvs-loaded)").WooVariationSwatches()}))}catch(t){window.console.log("Variation Swatches:",t)}t(document).on("wc_variation_form.wvs",(function(e){t(document).trigger("woo_variation_swatches_init")})),t(document).ajaxComplete((function(e,i,a){_.delay((function(){t(".variations_form:not(.wvs-loaded)").each((function(){t(this).wc_variation_form()}))}),100)})),t(document.body).on("wc-composite-initializing",".composite_data",(function(e,i){i.actions.add_action("component_options_state_changed",(function(e){t(e.$component_content).find(".variations_form").WooVariationSwatches("destroy")}))}))}))}]);
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=i(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==a.return||a.return()}finally{if(l)throw r}}}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var i,n,o=[],r=!0,s=!1;try{for(a=a.call(t);!(r=(i=a.next()).done)&&(o.push(i.value),!e||o.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==a.return||a.return()}finally{if(s)throw n}}return o}}(t,e)||i(t,e)||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 i(t,e){if(t){if("string"==typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function o(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}!function(i){"use strict";var n,s=(n=jQuery,function(){function t(e,a,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,"defaults",{}),this.name=i,this.element=e,this.$element=n(e),this.settings=n.extend(!0,{},this.defaults,a),this.product_variations=this.$element.data("product_variations")||[],this.is_ajax_variation=this.product_variations.length<1,this.product_id=this.$element.data("product_id"),this.reset_variations=this.$element.find(".reset_variations"),this.attributeFields=this.$element.find(".variations select"),this.selected_item_template='<span class="woo-selected-variation-item-name" data-default=""></span>',this.$element.addClass("wvs-loaded"),this.init(),this.update(),n(document).trigger("woo_variation_swatches_loaded",this)}var i,s,l;return i=t,(s=[{key:"isAjaxVariation",value:function(){return this.is_ajax_variation}},{key:"init",value:function(){this.prepareLabel(),this.prepareItems(),this.setupItems(),this.setupEvents(),this.setUpStockInfo()}},{key:"prepareLabel",value:function(){var t=this;woo_variation_swatches_options.show_variation_label&&this.$element.find(".variations .label").each((function(e,a){n(a).append(t.selected_item_template)}))}},{key:"prepareItems",value:function(){this.$element.find("ul.variable-items-wrapper").each((function(t,e){n(e).parent().addClass("woo-variation-items-wrapper")}))}},{key:"setupItems",value:function(){var t=this;this.$element.find("ul.variable-items-wrapper").each((function(e,a){var i="",o=n(a).parent().prev().find(".woo-selected-variation-item-name"),r=n(a).parent().find("select.woo-variation-raw-select"),s=r.find("option"),l=r.find("option:disabled"),c=r.find("option.enabled.out-of-stock"),u=r.find("option:selected"),d=r.find("option").eq(1),v=[],f=[],h=[];s.each((function(){""!==n(this).val()&&(v.push(n(this).val()),i=0===u.length?d.val():u.val())})),l.each((function(){""!==n(this).val()&&f.push(n(this).val())})),c.each((function(){""!==n(this).val()&&h.push(n(this).val())}));var p=_.difference(v,f);t.setupItem(a,i,p,h,o)}))}},{key:"setupItem",value:function(t,e,a,i,o){var r=this;n(t).find("li.variable-item").each((function(t,s){var l=n(s).attr("data-value"),c=n(s).attr("data-title");n(s).removeClass("selected disabled no-stock").addClass("disabled"),n(s).attr("aria-checked","false"),n(s).attr("tabindex","-1"),n(s).attr("data-wvstooltip-out-of-stock",""),n(s).find("input.variable-item-radio-input:radio").prop("disabled",!0).prop("checked",!1),e.length<1&&woo_variation_swatches_options.show_variation_label&&o.text(""),r.isAjaxVariation()?(n(s).find("input.variable-item-radio-input:radio").prop("disabled",!1),n(s).removeClass("selected disabled no-stock"),l===e&&(n(s).addClass("selected"),n(s).attr("aria-checked","true"),n(s).attr("tabindex","0"),n(s).find("input.variable-item-radio-input:radio").prop("disabled",!1).prop("checked",!0),woo_variation_swatches_options.show_variation_label&&o.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(c)),n(s).trigger("wvs-item-updated",[e,l]))):(_.includes(a,l)&&(n(s).removeClass("selected disabled"),n(s).removeAttr("aria-hidden"),n(s).attr("tabindex","0"),n(s).find("input.variable-item-radio-input:radio").prop("disabled",!1),l===e&&(n(s).addClass("selected"),n(s).attr("aria-checked","true"),n(s).find("input.variable-item-radio-input:radio").prop("checked",!0),woo_variation_swatches_options.show_variation_label&&o.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(c)),n(s).trigger("wvs-item-updated",[e,l]))),_.includes(i,l)&&woo_variation_swatches_options.clickable_out_of_stock&&(n(s).removeClass("disabled").addClass("no-stock"),n(s).attr("data-wvstooltip-out-of-stock",woo_variation_swatches_options.out_of_stock_tooltip_text)))}))}},{key:"setupEvents",value:function(){var t=this;this.$element.find("ul.variable-items-wrapper").each((function(e,a){var i=n(a).parent().find("select.woo-variation-raw-select");woo_variation_swatches_options.clear_on_reselect?(n(a).on("click.wvs","li.variable-item:not(.selected):not(.radio-variable-item)",(function(e){e.preventDefault(),e.stopPropagation();var a=n(this).data("value");i.val(a).trigger("change"),i.trigger("click"),woo_variation_swatches_options.is_mobile,n(this).trigger("wvs-selected-item",[a,i,t.$element])})),n(a).on("click.wvs","li.variable-item.selected:not(.radio-variable-item)",(function(e){e.preventDefault(),e.stopPropagation();var a=n(this).val();i.val("").trigger("change"),i.trigger("click"),woo_variation_swatches_options.is_mobile,n(this).trigger("wvs-unselected-item",[a,i,t.$element])})),n(a).on("click.wvs","input.variable-item-radio-input:radio",(function(t){t.stopPropagation(),n(this).trigger("change.wvs",{radioChange:!0})})),n(a).on("change.wvs","input.variable-item-radio-input:radio",(function(e,a){if(e.preventDefault(),e.stopPropagation(),a&&a.radioChange){var o=n(this).val();n(this).parent("li.radio-variable-item").hasClass("selected")?(i.val("").trigger("change"),n(this).parent("li.radio-variable-item").trigger("wvs-unselected-item",[o,i,t.$element])):(i.val(o).trigger("change"),n(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[o,i,t.$element])),i.trigger("click"),woo_variation_swatches_options.is_mobile}}))):(n(a).on("click.wvs","li.variable-item:not(.radio-variable-item)",(function(e){e.preventDefault(),e.stopPropagation();var a=n(this).data("value");i.val(a).trigger("change"),i.trigger("click"),woo_variation_swatches_options.is_mobile,n(this).trigger("wvs-selected-item",[a,i,t.$element])})),n(a).on("change.wvs","input.variable-item-radio-input:radio",(function(e){e.preventDefault(),e.stopPropagation();var a=n(this).val();i.val(a).trigger("change"),i.trigger("click"),woo_variation_swatches_options.is_mobile,n(this).parent("li.radio-variable-item").removeClass("selected disabled no-stock").addClass("selected"),n(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[a,i,t.$element])}))),n(a).on("keydown.wvs","li.variable-item:not(.disabled)",(function(t){(t.keyCode&&32===t.keyCode||t.key&&" "===t.key||t.keyCode&&13===t.keyCode||t.key&&"enter"===t.key.toLowerCase())&&(t.preventDefault(),n(this).trigger("click"))}))})),this.$element.on("click.wvs",".woo-variation-swatches-variable-item-more",(function(t){t.preventDefault(),n(this).parent().removeClass("enabled-display-limit-mode enabled-catalog-display-limit-mode"),n(this).remove()}))}},{key:"update",value:function(){var t=this;this.$element.on("woocommerce_variation_has_changed.wvs",(function(e){t.setupItems()}))}},{key:"setUpStockInfo",value:function(){var t=this;if(woo_variation_swatches_options.show_variation_stock){var e=parseInt(woo_variation_swatches_options.stock_label_threshold,10);this.$element.on("wvs-selected-item.wvs",(function(a){var i=t.getChosenAttributes(),n=t.findStockVariations(t.product_variations,i);i.count>1&&i.count===i.chosenCount&&t.resetStockInfo(),i.count>1&&i.count===i.mayChosenCount&&n.forEach((function(a){var i='[data-attribute_name="'.concat(a.attribute_name,'"] > [data-value="').concat(a.attribute_value,'"]');a.variation.is_in_stock&&a.variation.max_qty&&a.variation.variation_stock_left&&a.variation.max_qty<=e?(t.$element.find("".concat(i," .wvs-stock-left-info")).attr("data-wvs-stock-info",a.variation.variation_stock_left),t.$element.find(i).addClass("wvs-show-stock-left-info")):(t.$element.find(i).removeClass("wvs-show-stock-left-info"),t.$element.find("".concat(i," .wvs-stock-left-info")).attr("data-wvs-stock-info",""))}))})),this.$element.on("hide_variation.wvs",(function(){t.resetStockInfo()}))}}},{key:"resetStockInfo",value:function(){this.$element.find(".variable-item").removeClass("wvs-show-stock-left-info"),this.$element.find(".wvs-stock-left-info").attr("data-wvs-stock-info","")}},{key:"getChosenAttributes",value:function(){var t={},e=0,a=0;return this.attributeFields.each((function(){var i=n(this).data("attribute_name")||n(this).attr("name"),o=n(this).val()||"";o.length>0&&a++,e++,t[i]=o})),{count:e,chosenCount:a,mayChosenCount:a+1,data:t}}},{key:"findStockVariations",value:function(t,i){for(var n=[],o=0,s=Object.entries(i.data);o<s.length;o++){var l=a(s[o],2),c=l[0];if(0===l[1].length){var u,d=e(this.$element.find("ul[data-attribute_name='".concat(c,"']")).data("attribute_values")||[]);try{for(d.s();!(u=d.n()).done;){var v=u.value,f=_.extend(i.data,r({},c,v)),h=this.findMatchingVariations(t,f);if(h.length>0){var p=h.shift(),m={};m.attribute_name=c,m.attribute_value=v,m.variation=p,n.push(m)}}}catch(t){d.e(t)}finally{d.f()}}}return n}},{key:"findMatchingVariations",value:function(t,e){for(var a=[],i=0;i<t.length;i++){var n=t[i];this.isMatch(n.attributes,e)&&a.push(n)}return a}},{key:"isMatch",value:function(t,e){var a=!0;for(var i in t)if(t.hasOwnProperty(i)){var n=t[i],o=e[i];void 0!==n&&void 0!==o&&0!==n.length&&0!==o.length&&n!==o&&(a=!1)}return a}},{key:"destroy",value:function(){this.$element.removeClass("wvs-loaded"),this.$element.removeData(this.name)}}])&&o(i.prototype,s),l&&o(i,l),Object.defineProperty(i,"prototype",{writable:!1}),t}()),l=function(e){return function(a,i){e.fn[a]=function(n){for(var o=this,r=arguments.length,s=new Array(r>1?r-1:0),l=1;l<r;l++)s[l-1]=arguments[l];return this.each((function(r,l){var c=e(l),u=c.data(a);if(u||(u=new i(c,e.extend({},n),a),c.data(a,u)),"string"==typeof n){if("object"===t(u[n]))return u[n];var d;if("function"==typeof u[n])return(d=u)[n].apply(d,s)}return o}))},e.fn[a].Constructor=i,e[a]=function(t){for(var i,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(i=e({}))[a].apply(i,[t].concat(o))},e.fn[a].noConflict=function(){return e.fn[a]}}}(jQuery);l("WooVariationSwatches",s)}(window)}(),jQuery((function(t){try{t(document).on("woo_variation_swatches_init",(function(){t(".variations_form:not(.wvs-loaded)").WooVariationSwatches(),t(".woo_variation_swatches_variations_form:not(.wvs-loaded)").WooVariationSwatches(),t(".ywcp_inner_selected_container:not(.wvs-loaded)").WooVariationSwatches()}))}catch(t){window.console.log("Variation Swatches:",t)}t(document).on("wc_variation_form.wvs",(function(e){t(document).trigger("woo_variation_swatches_init")})),t(document).ajaxComplete((function(e,a,i){_.delay((function(){t(".variations_form:not(.wvs-loaded)").each((function(){t(this).wc_variation_form()}))}),100)})),t(document.body).on("wc-composite-initializing",".composite_data",(function(e,a){a.actions.add_action("component_options_state_changed",(function(e){t(e.$component_content).find(".variations_form").WooVariationSwatches("destroy")}))}))}));
assets/js/wp-color-picker-alpha.js CHANGED
@@ -1,101 +1,12 @@
1
  /*!
2
- * Variation Swatches for WooCommerce
3
- *
4
- * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 7/8/2022, 11:04:45 PM
6
  * Released under the GPLv3 license.
7
  */
8
- /******/ (function(modules) { // webpackBootstrap
9
- /******/ // The module cache
10
- /******/ var installedModules = {};
11
- /******/
12
- /******/ // The require function
13
- /******/ function __webpack_require__(moduleId) {
14
- /******/
15
- /******/ // Check if module is in cache
16
- /******/ if(installedModules[moduleId]) {
17
- /******/ return installedModules[moduleId].exports;
18
- /******/ }
19
- /******/ // Create a new module (and put it into the cache)
20
- /******/ var module = installedModules[moduleId] = {
21
- /******/ i: moduleId,
22
- /******/ l: false,
23
- /******/ exports: {}
24
- /******/ };
25
- /******/
26
- /******/ // Execute the module function
27
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
28
- /******/
29
- /******/ // Flag the module as loaded
30
- /******/ module.l = true;
31
- /******/
32
- /******/ // Return the exports of the module
33
- /******/ return module.exports;
34
- /******/ }
35
- /******/
36
- /******/
37
- /******/ // expose the modules object (__webpack_modules__)
38
- /******/ __webpack_require__.m = modules;
39
- /******/
40
- /******/ // expose the module cache
41
- /******/ __webpack_require__.c = installedModules;
42
- /******/
43
- /******/ // define getter function for harmony exports
44
- /******/ __webpack_require__.d = function(exports, name, getter) {
45
- /******/ if(!__webpack_require__.o(exports, name)) {
46
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
47
- /******/ }
48
- /******/ };
49
- /******/
50
- /******/ // define __esModule on exports
51
- /******/ __webpack_require__.r = function(exports) {
52
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
53
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
54
- /******/ }
55
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
56
- /******/ };
57
- /******/
58
- /******/ // create a fake namespace object
59
- /******/ // mode & 1: value is a module id, require it
60
- /******/ // mode & 2: merge all properties of value into the ns
61
- /******/ // mode & 4: return value when already ns object
62
- /******/ // mode & 8|1: behave like require
63
- /******/ __webpack_require__.t = function(value, mode) {
64
- /******/ if(mode & 1) value = __webpack_require__(value);
65
- /******/ if(mode & 8) return value;
66
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
67
- /******/ var ns = Object.create(null);
68
- /******/ __webpack_require__.r(ns);
69
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
70
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
71
- /******/ return ns;
72
- /******/ };
73
- /******/
74
- /******/ // getDefaultExport function for compatibility with non-harmony modules
75
- /******/ __webpack_require__.n = function(module) {
76
- /******/ var getter = module && module.__esModule ?
77
- /******/ function getDefault() { return module['default']; } :
78
- /******/ function getModuleExports() { return module; };
79
- /******/ __webpack_require__.d(getter, 'a', getter);
80
- /******/ return getter;
81
- /******/ };
82
- /******/
83
- /******/ // Object.prototype.hasOwnProperty.call
84
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
85
- /******/
86
- /******/ // __webpack_public_path__
87
- /******/ __webpack_require__.p = "/";
88
- /******/
89
- /******/
90
- /******/ // Load entry module and return exports
91
- /******/ return __webpack_require__(__webpack_require__.s = 2);
92
- /******/ })
93
- /************************************************************************/
94
- /******/ ({
95
-
96
- /***/ "./src/js/wp-color-picker-alpha.js":
97
- /***/ (function(module, exports) {
98
-
99
  /*
100
  * wp-color-picker-alpha
101
  *
@@ -746,15 +657,5 @@
746
  }
747
  });
748
  })(jQuery);
749
-
750
- /***/ }),
751
-
752
- /***/ 2:
753
- /***/ (function(module, exports, __webpack_require__) {
754
-
755
- module.exports = __webpack_require__("./src/js/wp-color-picker-alpha.js");
756
-
757
-
758
- /***/ })
759
-
760
- /******/ });
1
  /*!
2
+ * Variation Swatches for WooCommerce
3
+ *
4
+ * Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 7/20/2022, 7:03:48 PM
6
  * Released under the GPLv3 license.
7
  */
8
+ /******/ (function() { // webpackBootstrap
9
+ var __webpack_exports__ = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  /*
11
  * wp-color-picker-alpha
12
  *
657
  }
658
  });
659
  })(jQuery);
660
+ /******/ })()
661
+ ;
 
 
 
 
 
 
 
 
 
 
assets/js/wp-color-picker-alpha.min.js CHANGED
@@ -1 +1 @@
1
- !function(o){var t={};function a(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return o[r].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=o,a.c=t,a.d=function(o,t,r){a.o(o,t)||Object.defineProperty(o,t,{enumerable:!0,get:r})},a.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,t){if(1&t&&(o=a(o)),8&t)return o;if(4&t&&"object"==typeof o&&o&&o.__esModule)return o;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:o}),2&t&&"string"!=typeof o)for(var i in o)a.d(r,i,function(t){return o[t]}.bind(null,i));return r},a.n=function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(t,"a",t),t},a.o=function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},a.p="/",a(a.s=6)}({6:function(o,t,a){o.exports=a(7)},7:function(o,t){!function(o,t){var a={version:300};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var r=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(r)&&r>=a.version)return}if(!Color.fn.hasOwnProperty("to_s")){Color.fn.to_s=function(o){"hex"===(o=o||"hex")&&this._alpha<1&&(o="rgba");var t="";return"hex"===o?t=this.toString():this.error||(t=this.toCSS(o).replace(/\(\s+/,"(").replace(/\s+\)/,")")),t},window.wpColorPickerAlpha=a;var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==";o.widget("a8c.iris",o.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(o){return void 0===o&&(o=this._color),this.alphaOptions.alphaEnabled?(o=o.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(o=o.replace(/\s+/g,"")),o):o.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(o){}o.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(o){var t=this,a=function(a){var r=o.val(),i=new Color(r),e=(r=r.replace(/^(#|(rgb|hsl)a?)/,""),t.alphaOptions.alphaColorType);o.removeClass("iris-error"),i.error?""!==r&&o.addClass("iris-error"):"hex"===e&&"keyup"===a.type&&r.match(/^[0-9a-fA-F]{3}$/)||i.toIEOctoHex()!==t._color.toIEOctoHex()&&t._setOption("color",t._getColor(i))};o.on("change",a).on("keyup",t._debounce(a,100)),t.options.hide&&o.one("focus",(function(){t.show()}))},_initControls:function(){if(this._super(),this.alphaOptions.alphaEnabled){var t=this,a=t.controls.strip.clone(!1,!1),r=a.find(".iris-slider-offset"),i={stripAlpha:a,stripAlphaSlider:r};a.addClass("iris-strip-alpha"),r.addClass("iris-slider-offset-alpha"),a.appendTo(t.picker.find(".iris-picker-inner")),o.each(i,(function(o,a){t.controls[o]=a})),t.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*t._color._alpha),slide:function(o,a){t.active="strip",t._color._alpha=parseFloat(a.value/100),t._change.apply(t,arguments)}})}},_dimensions:function(o){if(this._super(o),this.alphaOptions.alphaEnabled){var t,a,r,i,e,l=this.options,n=this.controls.square,s=this.picker.find(".iris-strip");for(t=Math.round(this.picker.outerWidth(!0)-(l.border?22:0)),a=Math.round(n.outerWidth()),r=Math.round((t-a)/2),i=Math.round(r/2),e=Math.round(a+2*r+2*i);e>t;)r=Math.round(r-2),i=Math.round(i-1),e=Math.round(a+2*r+2*i);n.css("margin","0"),s.width(r).css("margin-left",i+"px")}},_change:function(){var t=this,a=t.active;if(t._super(),t.alphaOptions.alphaEnabled){var r=t.controls,e=parseInt(100*t._color._alpha),l=t._color.toRgb(),n=["rgb("+l.r+","+l.g+","+l.b+") 0%","rgba("+l.r+","+l.g+","+l.b+", 0) 100%"];t.picker.closest(".wp-picker-container").find(".wp-color-result");t.options.color=t._getColor(),r.stripAlpha.css({background:"linear-gradient(to bottom, "+n.join(", ")+"), url("+i+")"}),a&&r.stripAlphaSlider.slider("value",e),t._color.error||t.element.removeClass("iris-error").val(t.options.color),t.picker.find(".iris-palette-container").on("click.palette",".iris-palette",(function(){var a=o(this).data("color");t.alphaOptions.alphaReset&&(t._color._alpha=1,a=t._getColor()),t._setOption("color",a)}))}},_paintDimension:function(o,t){var a=!1;this.alphaOptions.alphaEnabled&&"strip"===t&&(a=this._color,this._color=new Color(a.toString()),this.hue=this._color.h()),this._super(o,t),a&&(this._color=a)},_setOption:function(o,t){if("color"!==o||!this.alphaOptions.alphaEnabled)return this._super(o,t);t=""+t,newColor=new Color(t).setHSpace(this.options.mode),newColor.error||this._getColor(newColor)===this._getColor()||(this._color=newColor,this.options.color=this._getColor(),this.active="external",this._change())},color:function(o){return!0===o?this._color.clone():void 0===o?this._getColor():void this.option("color",o)}}),o.widget("wp.wpColorPicker",o.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var t=this.element,a=t.data("type")||this.options.type,r=t.data("defaultColor")||t.val(),i={alphaEnabled:t.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return i.alphaEnabled&&(i.alphaEnabled=t.is("input")&&"full"===a),i.alphaEnabled?(i.alphaColorWithSpace=r&&r.match(/\s/),o.each(i,(function(o,a){var e=t.data(o)||a;switch(o){case"alphaCustomWidth":e=e?parseInt(e,10):0,e=isNaN(e)?a:e;break;case"alphaColorType":e.match(/^(hex|(rgb|hsl)a?)$/)||(e=r&&r.match(/^#/)?"hex":r&&r.match(/^hsla?/)?"hsl":a);break;default:e=!!e}i[o]=e})),i):i},_create:function(){o.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var t=this,a=t.element,r=t.toggler.is("a");this.alphaOptions.defaultWidth=a.width(),this.alphaOptions.alphaCustomWidth&&a.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),t.toggler.css({position:"relative","background-image":"url("+i+")"}),r?t.toggler.html('<span class="color-alpha" />'):t.toggler.append('<span class="color-alpha" />'),t.colorAlpha=t.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":a.val()}),"ltr"===t.colorAlpha.css("direction")?t.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):t.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),a.iris({change:function(a,r){t.colorAlpha.css({"background-color":r.color.to_s(t.alphaOptions.alphaColorType)}),o.isFunction(t.options.change)&&t.options.change.call(this,a,r)}}),t.wrap.on("click.wpcolorpicker",(function(o){o.stopPropagation()})),t.toggler.click((function(){t.toggler.hasClass("wp-picker-open")?t.close():t.open()})),a.change((function(i){var e=o(this).val();(a.hasClass("iris-error")||""===e||e.match(/^(#|(rgb|hsl)a?)$/))&&(r&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),o.isFunction(t.options.clear)&&t.options.clear.call(this,i))})),t.button.click((function(i){o(this).hasClass("wp-picker-default")?a.val(t.options.defaultColor).change():o(this).hasClass("wp-picker-clear")&&(a.val(""),r&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),o.isFunction(t.options.clear)&&t.options.clear.call(this,i),a.trigger("change"))}))}})}}(jQuery)}});
1
+ !function(o,a){var t={version:300};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var r=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(r)&&r>=t.version)return}if(!Color.fn.hasOwnProperty("to_s")){Color.fn.to_s=function(o){"hex"===(o=o||"hex")&&this._alpha<1&&(o="rgba");var a="";return"hex"===o?a=this.toString():this.error||(a=this.toCSS(o).replace(/\(\s+/,"(").replace(/\s+\)/,")")),a},window.wpColorPickerAlpha=t;var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==";o.widget("a8c.iris",o.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(o){return o===a&&(o=this._color),this.alphaOptions.alphaEnabled?(o=o.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(o=o.replace(/\s+/g,"")),o):o.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(o){}o.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(o){var a=this,t=function(t){var r=o.val(),i=new Color(r),l=(r=r.replace(/^(#|(rgb|hsl)a?)/,""),a.alphaOptions.alphaColorType);o.removeClass("iris-error"),i.error?""!==r&&o.addClass("iris-error"):"hex"===l&&"keyup"===t.type&&r.match(/^[0-9a-fA-F]{3}$/)||i.toIEOctoHex()!==a._color.toIEOctoHex()&&a._setOption("color",a._getColor(i))};o.on("change",t).on("keyup",a._debounce(t,100)),a.options.hide&&o.one("focus",(function(){a.show()}))},_initControls:function(){if(this._super(),this.alphaOptions.alphaEnabled){var a=this,t=a.controls.strip.clone(!1,!1),r=t.find(".iris-slider-offset"),i={stripAlpha:t,stripAlphaSlider:r};t.addClass("iris-strip-alpha"),r.addClass("iris-slider-offset-alpha"),t.appendTo(a.picker.find(".iris-picker-inner")),o.each(i,(function(o,t){a.controls[o]=t})),a.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*a._color._alpha),slide:function(o,t){a.active="strip",a._color._alpha=parseFloat(t.value/100),a._change.apply(a,arguments)}})}},_dimensions:function(o){if(this._super(o),this.alphaOptions.alphaEnabled){var a,t,r,i,l,e=this,s=e.options,n=e.controls.square,p=e.picker.find(".iris-strip");for(a=Math.round(e.picker.outerWidth(!0)-(s.border?22:0)),t=Math.round(n.outerWidth()),r=Math.round((a-t)/2),i=Math.round(r/2),l=Math.round(t+2*r+2*i);l>a;)r=Math.round(r-2),i=Math.round(i-1),l=Math.round(t+2*r+2*i);n.css("margin","0"),p.width(r).css("margin-left",i+"px")}},_change:function(){var a=this,t=a.active;if(a._super(),a.alphaOptions.alphaEnabled){var r=a.controls,l=parseInt(100*a._color._alpha),e=a._color.toRgb(),s=["rgb("+e.r+","+e.g+","+e.b+") 0%","rgba("+e.r+","+e.g+","+e.b+", 0) 100%"];a.picker.closest(".wp-picker-container").find(".wp-color-result"),a.options.color=a._getColor(),r.stripAlpha.css({background:"linear-gradient(to bottom, "+s.join(", ")+"), url("+i+")"}),t&&r.stripAlphaSlider.slider("value",l),a._color.error||a.element.removeClass("iris-error").val(a.options.color),a.picker.find(".iris-palette-container").on("click.palette",".iris-palette",(function(){var t=o(this).data("color");a.alphaOptions.alphaReset&&(a._color._alpha=1,t=a._getColor()),a._setOption("color",t)}))}},_paintDimension:function(o,a){var t=this,r=!1;t.alphaOptions.alphaEnabled&&"strip"===a&&(r=t._color,t._color=new Color(r.toString()),t.hue=t._color.h()),t._super(o,a),r&&(t._color=r)},_setOption:function(o,a){var t=this;if("color"!==o||!t.alphaOptions.alphaEnabled)return t._super(o,a);a=""+a,newColor=new Color(a).setHSpace(t.options.mode),newColor.error||t._getColor(newColor)===t._getColor()||(t._color=newColor,t.options.color=t._getColor(),t.active="external",t._change())},color:function(o){return!0===o?this._color.clone():o===a?this._getColor():void this.option("color",o)}}),o.widget("wp.wpColorPicker",o.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var a=this.element,t=a.data("type")||this.options.type,r=a.data("defaultColor")||a.val(),i={alphaEnabled:a.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return i.alphaEnabled&&(i.alphaEnabled=a.is("input")&&"full"===t),i.alphaEnabled?(i.alphaColorWithSpace=r&&r.match(/\s/),o.each(i,(function(o,t){var l=a.data(o)||t;switch(o){case"alphaCustomWidth":l=l?parseInt(l,10):0,l=isNaN(l)?t:l;break;case"alphaColorType":l.match(/^(hex|(rgb|hsl)a?)$/)||(l=r&&r.match(/^#/)?"hex":r&&r.match(/^hsla?/)?"hsl":t);break;default:l=!!l}i[o]=l})),i):i},_create:function(){o.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var a=this,t=a.element,r=a.toggler.is("a");this.alphaOptions.defaultWidth=t.width(),this.alphaOptions.alphaCustomWidth&&t.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),a.toggler.css({position:"relative","background-image":"url("+i+")"}),r?a.toggler.html('<span class="color-alpha" />'):a.toggler.append('<span class="color-alpha" />'),a.colorAlpha=a.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":t.val()}),"ltr"===a.colorAlpha.css("direction")?a.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):a.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),t.iris({change:function(t,r){a.colorAlpha.css({"background-color":r.color.to_s(a.alphaOptions.alphaColorType)}),o.isFunction(a.options.change)&&a.options.change.call(this,t,r)}}),a.wrap.on("click.wpcolorpicker",(function(o){o.stopPropagation()})),a.toggler.click((function(){a.toggler.hasClass("wp-picker-open")?a.close():a.open()})),t.change((function(i){var l=o(this).val();(t.hasClass("iris-error")||""===l||l.match(/^(#|(rgb|hsl)a?)$/))&&(r&&a.toggler.removeAttr("style"),a.colorAlpha.css("background-color",""),o.isFunction(a.options.clear)&&a.options.clear.call(this,i))})),a.button.click((function(i){o(this).hasClass("wp-picker-default")?t.val(a.options.defaultColor).change():o(this).hasClass("wp-picker-clear")&&(t.val(""),r&&a.toggler.removeAttr("style"),a.colorAlpha.css("background-color",""),o.isFunction(a.options.clear)&&a.options.clear.call(this,i),t.trigger("change"))}))}})}}(jQuery);
includes/class-woo-variation-swatches-backend.php CHANGED
@@ -163,8 +163,8 @@
163
  'ajaxurl' => esc_url( admin_url( 'admin-ajax.php', 'relative' ) ),
164
  'wc_ajax_url' => WC_AJAX::get_endpoint( '%%endpoint%%' ),
165
  'nonce' => wp_create_nonce( 'woo_variation_swatches_admin' ),
166
- 'reset_notice' => esc_html__( 'Are you sure you want to reset it to default setting?', 'woo-variation-swatches-pro' ),
167
- 'nav_warning' => esc_html__( 'Please save changed first.', 'woo-variation-swatches-pro' ),
168
  ) );
169
  }
170
 
@@ -182,7 +182,7 @@
182
  public function extended_attribute_types() {
183
  $attribute_types = $this->attribute_types();
184
 
185
- // $attribute_types[ 'custom' ] = esc_html__( 'Custom', 'woo-variation-swatches-pro' );
186
  $attribute_types[ 'mixed' ] = esc_html__( 'Mixed', 'woo-variation-swatches' );
187
 
188
  return $attribute_types;
163
  'ajaxurl' => esc_url( admin_url( 'admin-ajax.php', 'relative' ) ),
164
  'wc_ajax_url' => WC_AJAX::get_endpoint( '%%endpoint%%' ),
165
  'nonce' => wp_create_nonce( 'woo_variation_swatches_admin' ),
166
+ 'reset_notice' => esc_html__( 'Are you sure you want to reset it to default setting?', 'woo-variation-swatches' ),
167
+ 'nav_warning' => esc_html__( 'Please save changed first.', 'woo-variation-swatches' ),
168
  ) );
169
  }
170
 
182
  public function extended_attribute_types() {
183
  $attribute_types = $this->attribute_types();
184
 
185
+ // $attribute_types[ 'custom' ] = esc_html__( 'Custom', 'woo-variation-swatches' );
186
  $attribute_types[ 'mixed' ] = esc_html__( 'Mixed', 'woo-variation-swatches' );
187
 
188
  return $attribute_types;
includes/class-woo-variation-swatches-product-page.php CHANGED
@@ -57,7 +57,7 @@
57
  }
58
 
59
  if ( woo_variation_swatches()->is_pro() && wc_string_to_bool( woo_variation_swatches()->get_option( 'show_variation_stock_info', 'no' ) ) ) {
60
- $variation_data[ 'variation_stock_left' ] = $variation->managing_stock() ? sprintf( esc_html__( '%s left', 'woo-variation-swatches-pro' ), $variation->get_stock_quantity() ) : '';
61
  }
62
 
63
  return $variation_data;
@@ -184,7 +184,7 @@
184
  return;
185
  }
186
 
187
- $tick_color = sanitize_hex_color( woo_variation_swatches()->get_option( 'tick_color', '#ffffff' ) );
188
  $cross_color = sanitize_hex_color( woo_variation_swatches()->get_option( 'cross_color', '#ff0000' ) );
189
 
190
  $style = "";
@@ -761,7 +761,7 @@
761
  // End Swatches
762
  $html .= $wrapper . $item . $wrapper_end;
763
 
764
- return $html;
765
  }
766
  }
767
  }
57
  }
58
 
59
  if ( woo_variation_swatches()->is_pro() && wc_string_to_bool( woo_variation_swatches()->get_option( 'show_variation_stock_info', 'no' ) ) ) {
60
+ $variation_data[ 'variation_stock_left' ] = $variation->managing_stock() ? sprintf( esc_html__( '%s left', 'woo-variation-swatches' ), $variation->get_stock_quantity() ) : '';
61
  }
62
 
63
  return $variation_data;
184
  return;
185
  }
186
 
187
+ $tick_color = sanitize_hex_color( woo_variation_swatches()->get_option( 'tick_color', '#ffffff' ) );
188
  $cross_color = sanitize_hex_color( woo_variation_swatches()->get_option( 'cross_color', '#ff0000' ) );
189
 
190
  $style = "";
761
  // End Swatches
762
  $html .= $wrapper . $item . $wrapper_end;
763
 
764
+ return apply_filters( 'woo_variation_swatches_html', $html, $args, $swatches_data, $this );
765
  }
766
  }
767
  }
includes/class-woo-variation-swatches-settings.php CHANGED
@@ -460,7 +460,7 @@
460
  protected function get_settings_for_style_section() {
461
 
462
  $settings = array(
463
-
464
  // Start swatches tick and cross coloring
465
  array(
466
  'id' => 'style_icons_options',
@@ -468,7 +468,7 @@
468
  'title' => esc_html__( 'Swatches indicator', 'woo-variation-swatches' ),
469
  'desc' => esc_html__( 'Change swatches indicator color', 'woo-variation-swatches' ),
470
  ),
471
-
472
  array(
473
  'id' => 'tick_color',
474
  'type' => 'color',
@@ -476,11 +476,11 @@
476
  'desc' => esc_html__( 'Swatches Selected tick color. Default is: #ffffff', 'woo-variation-swatches' ),
477
  'css' => 'width: 6em;',
478
  'default' => '#ffffff',
479
- 'is_new' => true,
480
  'custom_attributes' => array(// 'data-alpha-enabled' => 'true'
481
  )
482
  ),
483
-
484
  array(
485
  'id' => 'cross_color',
486
  'type' => 'color',
@@ -488,11 +488,11 @@
488
  'desc' => esc_html__( 'Swatches cross color. Default is: #ff0000', 'woo-variation-swatches' ),
489
  'css' => 'width: 6em;',
490
  'default' => '#ff0000',
491
- 'is_new' => true,
492
  'custom_attributes' => array(// 'data-alpha-enabled' => 'true'
493
  )
494
  ),
495
-
496
  array(
497
  'type' => 'sectionend',
498
  'id' => 'style_icons_options',
@@ -683,8 +683,8 @@
683
  //'is_pro' => true,
684
  //'is_new' => true,
685
  //'help_preview' => true,
686
- 'title' => esc_html__( 'Show default selected', 'woo-variation-swatches-pro' ),
687
- 'desc' => esc_html__( 'Show default selected attribute swatches on archive / shop page.', 'woo-variation-swatches-pro' ),
688
  'default' => 'yes',
689
  'is_pro' => true
690
  ),
460
  protected function get_settings_for_style_section() {
461
 
462
  $settings = array(
463
+
464
  // Start swatches tick and cross coloring
465
  array(
466
  'id' => 'style_icons_options',
468
  'title' => esc_html__( 'Swatches indicator', 'woo-variation-swatches' ),
469
  'desc' => esc_html__( 'Change swatches indicator color', 'woo-variation-swatches' ),
470
  ),
471
+
472
  array(
473
  'id' => 'tick_color',
474
  'type' => 'color',
476
  'desc' => esc_html__( 'Swatches Selected tick color. Default is: #ffffff', 'woo-variation-swatches' ),
477
  'css' => 'width: 6em;',
478
  'default' => '#ffffff',
479
+ 'is_new' => true,
480
  'custom_attributes' => array(// 'data-alpha-enabled' => 'true'
481
  )
482
  ),
483
+
484
  array(
485
  'id' => 'cross_color',
486
  'type' => 'color',
488
  'desc' => esc_html__( 'Swatches cross color. Default is: #ff0000', 'woo-variation-swatches' ),
489
  'css' => 'width: 6em;',
490
  'default' => '#ff0000',
491
+ 'is_new' => true,
492
  'custom_attributes' => array(// 'data-alpha-enabled' => 'true'
493
  )
494
  ),
495
+
496
  array(
497
  'type' => 'sectionend',
498
  'id' => 'style_icons_options',
683
  //'is_pro' => true,
684
  //'is_new' => true,
685
  //'help_preview' => true,
686
+ 'title' => esc_html__( 'Show default selected', 'woo-variation-swatches' ),
687
+ 'desc' => esc_html__( 'Show default selected attribute swatches on archive / shop page.', 'woo-variation-swatches' ),
688
  'default' => 'yes',
689
  'is_pro' => true
690
  ),
includes/class-woo-variation-swatches-term-meta.php CHANGED
@@ -353,7 +353,7 @@
353
  array( '#show_tooltip' => array( 'type' => 'equal', 'value' => 'yes' ) )
354
  )*/
355
 
356
- $depends = empty( $field[ 'dependency' ] ) ? '' : "data-dependency='" . wc_esc_json( wp_json_encode( $field[ 'dependency' ] ) ) . "'";
357
 
358
  ob_start();
359
  if ( ! $term ) {
353
  array( '#show_tooltip' => array( 'type' => 'equal', 'value' => 'yes' ) )
354
  )*/
355
 
356
+ $depends = empty( $field[ 'dependency' ] ) ? '' : "data-gwp_dependency='" . wc_esc_json( wp_json_encode( $field[ 'dependency' ] ) ) . "'";
357
 
358
  ob_start();
359
  if ( ! $term ) {
includes/class-woo-variation-swatches.php CHANGED
@@ -44,7 +44,8 @@
44
  // Register with hook
45
  add_action( 'init', array( $this, 'language' ), 1 );
46
  add_action( 'init', array( $this, 'add_image_sizes' ) );
47
- add_shortcode( 'wvs_show_archive_variation', array( $this, 'show_archive_page_swatches' ) );
 
48
  }
49
 
50
  public function init() {
@@ -65,6 +66,14 @@
65
  return false;
66
  }
67
 
 
 
 
 
 
 
 
 
68
  public function add_image_sizes() {
69
  add_image_size( 'variation_swatches_image_size', 50, 50, 1 );
70
  add_image_size( 'variation_swatches_tooltip_size', 100, 100, 1 );
44
  // Register with hook
45
  add_action( 'init', array( $this, 'language' ), 1 );
46
  add_action( 'init', array( $this, 'add_image_sizes' ) );
47
+ // [wvs_show_archive_variation product_id="ID"]
48
+ add_shortcode( 'wvs_show_archive_variation', array( $this, 'show_archive_variation_shortcode' ) );
49
  }
50
 
51
  public function init() {
66
  return false;
67
  }
68
 
69
+ public function show_archive_page_swatches_by_id( $product_id ) {
70
+ return false;
71
+ }
72
+
73
+ public function show_archive_variation_shortcode( $raw_attributes = array() ) {
74
+ return false;
75
+ }
76
+
77
  public function add_image_sizes() {
78
  add_image_size( 'variation_swatches_image_size', 50, 50, 1 );
79
  add_image_size( 'variation_swatches_tooltip_size', 100, 100, 1 );
includes/getwooplugins/class-getwooplugins-admin-settings.php CHANGED
@@ -277,7 +277,7 @@ if ( ! class_exists( 'GetWooPlugins_Admin_Settings', false ) ) :
277
  $tooltip_html = $field_description['tooltip_html'];
278
 
279
  // Dependent field
280
- $require = isset( $value['require'] ) ? "data-dependency='" . wc_esc_json(wp_json_encode( $value['require'] )) . "'" : '';
281
 
282
  $classes = array();
283
 
277
  $tooltip_html = $field_description['tooltip_html'];
278
 
279
  // Dependent field
280
+ $require = isset( $value['require'] ) ? "data-gwp_dependency='" . wc_esc_json(wp_json_encode( $value['require'] )) . "'" : '';
281
 
282
  $classes = array();
283
 
includes/getwooplugins/css/getwooplugins-settings.css CHANGED
@@ -1,4 +1,4 @@
1
- [data-dependency]:not(.dependency-show) {
2
  display : none !important;
3
  }
4
 
1
+ [data-gwp_dependency]:not(.dependency-show) {
2
  display : none !important;
3
  }
4
 
includes/getwooplugins/js/getwooplugins-form-field-dependency.js CHANGED
@@ -19,10 +19,11 @@
19
  return class {
20
 
21
  DEFAULTS = {
22
- attribute : 'data-dependency',
23
  }
24
 
25
- constructor(element, options = {}) {
 
26
  this.$element = $(element)
27
  this.settings = $.extend(true, {}, this.DEFAULTS, options)
28
  this.init();
@@ -367,6 +368,10 @@
367
  // $( document.body ).triggerHandler( 'depends-on',[selector, condition, this])
368
 
369
  }
 
 
 
 
370
  }
371
 
372
  })(jQuery)
@@ -382,7 +387,7 @@
382
  let data = $element.data(PluginName)
383
 
384
  if (!data) {
385
- data = new ClassName($element, $.extend({}, options))
386
  $element.data(PluginName, data)
387
  }
388
 
19
  return class {
20
 
21
  DEFAULTS = {
22
+ attribute : 'data-gwp_dependency',
23
  }
24
 
25
+ constructor(element, options, name) {
26
+ this.name = name
27
  this.$element = $(element)
28
  this.settings = $.extend(true, {}, this.DEFAULTS, options)
29
  this.init();
368
  // $( document.body ).triggerHandler( 'depends-on',[selector, condition, this])
369
 
370
  }
371
+
372
+ destroy() {
373
+ this.$element.removeData(this.name)
374
+ }
375
  }
376
 
377
  })(jQuery)
387
  let data = $element.data(PluginName)
388
 
389
  if (!data) {
390
+ data = new ClassName($element, $.extend({}, options), PluginName)
391
  $element.data(PluginName, data)
392
  }
393
 
includes/getwooplugins/js/getwooplugins-settings.js CHANGED
@@ -308,7 +308,7 @@ const GWPAdminHelper = (($) => {
308
 
309
  try {
310
  $(document.body).on('init_form_field_dependency', function () {
311
- $('[data-dependency]').GWPFormFieldDependency()
312
  }).trigger('init_form_field_dependency')
313
 
314
  } catch (err) {
308
 
309
  try {
310
  $(document.body).on('init_form_field_dependency', function () {
311
+ $('[data-gwp_dependency]').GWPFormFieldDependency()
312
  }).trigger('init_form_field_dependency')
313
 
314
  } catch (err) {
languages/woo-variation-swatches.pot CHANGED
@@ -7,6 +7,7 @@ msgstr ""
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
  "Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n"
 
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
@@ -66,6 +67,14 @@ msgstr ""
66
  msgid "Add Media"
67
  msgstr ""
68
 
 
 
 
 
 
 
 
 
69
  #: ../includes/class-woo-variation-swatches-backend.php:175, ../includes/class-woo-variation-swatches-backend.php:235
70
  msgid "Color"
71
  msgstr ""
@@ -158,6 +167,10 @@ msgstr ""
158
  msgid "Please share the reason"
159
  msgstr ""
160
 
 
 
 
 
161
  #: ../includes/class-woo-variation-swatches-settings.php:25
162
  msgid "Variation Swatches"
163
  msgstr ""
@@ -550,6 +563,14 @@ msgstr ""
550
  msgid "Show Product availability stock info"
551
  msgstr ""
552
 
 
 
 
 
 
 
 
 
553
  #: ../includes/class-woo-variation-swatches-settings.php:696
554
  msgid "Display position"
555
  msgstr ""
@@ -650,7 +671,7 @@ msgstr ""
650
  msgid "Remove image"
651
  msgstr ""
652
 
653
- #: ../includes/class-woo-variation-swatches.php:206
654
  msgid "\"Variation Swatches for WooCommerce\" Plugin try to load \"%s\" but template \"%s\" was not found."
655
  msgstr ""
656
 
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
  "Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n"
10
+ "POT-Creation-Date: 2022-07-20 13:03+0000\n"
11
  "X-Poedit-Basepath: ..\n"
12
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
13
  "X-Poedit-SearchPath-0: .\n"
67
  msgid "Add Media"
68
  msgstr ""
69
 
70
+ #: ../includes/class-woo-variation-swatches-backend.php:166
71
+ msgid "Are you sure you want to reset it to default setting?"
72
+ msgstr ""
73
+
74
+ #: ../includes/class-woo-variation-swatches-backend.php:167
75
+ msgid "Please save changed first."
76
+ msgstr ""
77
+
78
  #: ../includes/class-woo-variation-swatches-backend.php:175, ../includes/class-woo-variation-swatches-backend.php:235
79
  msgid "Color"
80
  msgstr ""
167
  msgid "Please share the reason"
168
  msgstr ""
169
 
170
+ #: ../includes/class-woo-variation-swatches-product-page.php:60
171
+ msgid "%s left"
172
+ msgstr ""
173
+
174
  #: ../includes/class-woo-variation-swatches-settings.php:25
175
  msgid "Variation Swatches"
176
  msgstr ""
563
  msgid "Show Product availability stock info"
564
  msgstr ""
565
 
566
+ #: ../includes/class-woo-variation-swatches-settings.php:686
567
+ msgid "Show default selected"
568
+ msgstr ""
569
+
570
+ #: ../includes/class-woo-variation-swatches-settings.php:687
571
+ msgid "Show default selected attribute swatches on archive / shop page."
572
+ msgstr ""
573
+
574
  #: ../includes/class-woo-variation-swatches-settings.php:696
575
  msgid "Display position"
576
  msgstr ""
671
  msgid "Remove image"
672
  msgstr ""
673
 
674
+ #: ../includes/class-woo-variation-swatches.php:215
675
  msgid "\"Variation Swatches for WooCommerce\" Plugin try to load \"%s\" but template \"%s\" was not found."
676
  msgstr ""
677
 
woo-variation-swatches.php CHANGED
@@ -4,13 +4,13 @@
4
  * Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
5
  * Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 5.6+
6
  * Author: Emran Ahmed
7
- * Version: 2.0.4
8
  * Domain Path: /languages
9
  * Requires PHP: 7.0
10
  * Requires at least: 5.6
11
  * WC requires at least: 5.6
12
  * Tested up to: 6.0
13
- * WC tested up to: 6.6
14
  * Text Domain: woo-variation-swatches
15
  * Author URI: https://getwooplugins.com/
16
  */
@@ -18,7 +18,7 @@
18
  defined( 'ABSPATH' ) or die( 'Keep Silent' );
19
 
20
  if ( ! defined( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION' ) ) {
21
- define( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION', '2.0.4' );
22
  }
23
 
24
  if ( ! defined( 'WOO_VARIATION_SWATCHES_PLUGIN_FILE' ) ) {
4
  * Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
5
  * Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 5.6+
6
  * Author: Emran Ahmed
7
+ * Version: 2.0.5
8
  * Domain Path: /languages
9
  * Requires PHP: 7.0
10
  * Requires at least: 5.6
11
  * WC requires at least: 5.6
12
  * Tested up to: 6.0
13
+ * WC tested up to: 6.7
14
  * Text Domain: woo-variation-swatches
15
  * Author URI: https://getwooplugins.com/
16
  */
18
  defined( 'ABSPATH' ) or die( 'Keep Silent' );
19
 
20
  if ( ! defined( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION' ) ) {
21
+ define( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION', '2.0.5' );
22
  }
23
 
24
  if ( ! defined( 'WOO_VARIATION_SWATCHES_PLUGIN_FILE' ) ) {