Plugin Directory

Changeset 3393500


Ignore:
Timestamp:
11/11/2025 09:23:42 AM (5 months ago)
Author:
EmranAhmed
Message:

Update to 2.2.2

Location:
woo-variation-swatches
Files:
62 added
17 edited

Legend:

Unmodified
Added
Removed
  • woo-variation-swatches/trunk/README.txt

    r3359797 r3393500  
    11=== Variation Swatches for WooCommerce ===
    2 Contributors: EmranAhmed, getwooplugins
     2Contributors: EmranAhmed, getwooplugins, storepress
    33Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, woocommerce attributes, product attributes, product color, product size, variable product attributes, variation product swatches, color variation swatch, image variation swatch, printful color swatches
    44Requires PHP: 7.4
    5 Requires at least: 5.9
     5Requires at least: 6.4
    66Tested up to: 6.8
    77WC requires at least: 8.0
    8 WC tested up to: 10.1
    9 Stable tag: 2.2.1
     8WC tested up to: 10.3
     9Stable tag: 2.2.2
    1010License: GPLv3 or later
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    616616== Changelog ==
    617617
     618= 2.2.2 - 11-11-2025 =
     619
     620* Added: WC 10.3+ compatibility.
     621
    618622= 2.2.1 - 11-09-2025 =
    619623
  • woo-variation-swatches/trunk/assets/css/admin.css

    r3359797 r3393500  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 9/11/2025, 5:36:23 PM
     5 * Date: 11/11/2025, 3:19:45 PM
    66 * Released under the GPLv3 license.
    77 */
     
    232232}
    233233
     234.woo-variation-swatches-variation-product-options-wrapper .woocommerce-message {
     235  margin: 10px;
     236}
     237.woo-variation-swatches-variation-product-options-wrapper #saved-message {
     238  display: none;
     239}
     240.woo-variation-swatches-variation-product-options-wrapper #individual-swatches-info.swatches-info-hide {
     241  display: none;
     242}
     243.woo-variation-swatches-variation-product-options-wrapper h4 {
     244  margin: 0 !important;
     245  padding: 10px 18px;
     246  font-size: 1em !important;
     247  overflow: hidden;
     248  -webkit-box-align: center;
     249      -ms-flex-align: center;
     250          align-items: center;
     251}
     252.woo-variation-swatches-variation-product-options-wrapper .woocommerce-help-tip {
     253  margin: 0 5px !important;
     254}
     255.woo-variation-swatches-variation-product-options-wrapper [data-gwpdepends].has-dependent-data.show {
     256  display: -webkit-box;
     257  display: -ms-flexbox;
     258  display: flex;
     259}
     260.woo-variation-swatches-variation-product-options-wrapper .product-label-settings {
     261  background-color: #fff;
     262}
    234263.woo-variation-swatches-variation-product-options-wrapper {
    235264  /*.woo-variation-swatches-settings-heading {
     
    242271  }*/
    243272}
    244 .woo-variation-swatches-variation-product-options-wrapper .woocommerce-message {
    245   margin: 10px;
    246 }
    247 .woo-variation-swatches-variation-product-options-wrapper #saved-message {
    248   display: none;
    249 }
    250 .woo-variation-swatches-variation-product-options-wrapper #individual-swatches-info.swatches-info-hide {
    251   display: none;
    252 }
    253 .woo-variation-swatches-variation-product-options-wrapper h4 {
    254   margin: 0 !important;
    255   padding: 10px 18px;
    256   font-size: 1em !important;
    257   overflow: hidden;
    258   -webkit-box-align: center;
    259       -ms-flex-align: center;
    260           align-items: center;
    261 }
    262 .woo-variation-swatches-variation-product-options-wrapper .woocommerce-help-tip {
    263   margin: 0 5px !important;
    264 }
    265 .woo-variation-swatches-variation-product-options-wrapper [data-gwpdepends].has-dependent-data.show {
    266   display: -webkit-box;
    267   display: -ms-flexbox;
    268   display: flex;
    269 }
    270 .woo-variation-swatches-variation-product-options-wrapper .product-label-settings {
    271   background-color: #fff;
    272 }
    273273.woo-variation-swatches-variation-product-options-wrapper .form-settings-group {
    274274  padding: 5px;
  • woo-variation-swatches/trunk/assets/css/frontend.css

    r3359797 r3393500  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 9/11/2025, 5:36:23 PM
     5 * Date: 11/11/2025, 3:19:45 PM
    66 * Released under the GPLv3 license.
    77 */
     
    929929  opacity: 0.3;
    930930}
     931.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled.radio-variable-item {
     932  width: auto !important;
     933}
    931934.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled {
    932935  opacity: 0;
     
    946949  min-height: 0 !important;
    947950}
    948 .woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled.radio-variable-item {
    949   width: auto !important;
    950 }
    951951.woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.no-stock .variable-item-contents::before {
    952952  background-image: none;
  • woo-variation-swatches/trunk/assets/css/frontend.min.css

    r3241269 r3393500  
    1 .wvs-has-image-tooltip,[data-wvstooltip]{--font-size:14px;--arrow-width:5px;--arrow-distance:10px;--arrow-position:calc(var(--arrow-distance)*-1);--tip-redius:3px;--tip-min-width:100px;--tip-min-height:100px;--tip-height:30px;--tip-breakpoint-start:53vw;--tip-distance:calc(var(--arrow-distance) + var(--tip-height));--tip-position:calc(var(--tip-distance)*-1);--image-tip-min-height:calc(var(--tip-min-height) + var(--tip-height));--image-tip-max-height:calc(var(--tooltip-height) + var(--tip-height));--image-tip-width-dynamic:clamp(var(--tip-min-width),var(--tip-breakpoint-start),var(--tooltip-width));--image-tip-height-dynamic:clamp(var(--tip-min-height),var(--tip-breakpoint-start),var(--tooltip-height));--image-tip-ratio:calc(var(--tooltip-height)/var(--tooltip-width));--image-tip-position:calc(100% + var(--arrow-distance));--horizontal-position:0px;cursor:pointer;outline:none;position:relative}.wvs-has-image-tooltip:after,.wvs-has-image-tooltip:before,[data-wvstooltip]:after,[data-wvstooltip]:before{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;justify-content:center;opacity:0;pointer-events:none;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-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:var(--tip-redius);bottom:var(--image-tip-position);-webkit-box-shadow:0 0 5px 1px rgba(0,0,0,.3);box-shadow:0 0 5px 1px rgba(0,0,0,.3);color:var(--wvs-tooltip-text-color,#fff);font-size:var(--font-size);height:var(--tip-height);line-height:var(--tip-height);min-width:var(--tip-min-width);padding-inline:10px;top:auto;-webkit-transform:translateX(var(--horizontal-position));-ms-transform:translateX(var(--horizontal-position));transform:translateX(var(--horizontal-position));width:-webkit-max-content;width:-moz-max-content;width:max-content}[data-wvstooltip]:before{content:attr(data-wvstooltip) " " attr(data-wvstooltip-out-of-stock)}.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;height:calc(var(--image-tip-height-dynamic) + var(--tip-height));justify-content:flex-end;min-width:var(--image-tip-width-dynamic)}.wvs-has-image-tooltip:after,[data-wvstooltip]:after{border-top-color:transparent;border:var(--arrow-width) solid transparent;border-top-color:var(--wvs-tooltip-background-color,#333);bottom:auto;content:" ";font-size:0;line-height:0;top:var(--arrow-position);width:0}.wvs-has-image-tooltip:hover:after,.wvs-has-image-tooltip:hover:before,[data-wvstooltip]:hover:after,[data-wvstooltip]:hover:before{opacity:1;visibility:visible}.wvs-tooltip-position-bottom.wvs-has-image-tooltip:after,.wvs-tooltip-position-bottom[data-wvstooltip]:after{border-bottom-color:var(--wvs-tooltip-background-color,#333);border-top-color:transparent;bottom:var(--arrow-position);top:auto}.wvs-tooltip-position-bottom.wvs-has-image-tooltip:before,.wvs-tooltip-position-bottom[data-wvstooltip]:before{bottom:auto;top:calc(var(--tip-position)*-1)}.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}.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 .wp-block-getwooplugins-variation-swatches.swatches-align-center{--wvs-position:center}.woo-variation-swatches .wp-block-getwooplugins-variation-swatches.swatches-align-left{--wvs-position:flex-start}.woo-variation-swatches .wp-block-getwooplugins-variation-swatches.swatches-align-right{--wvs-position:flex-end}.woo-variation-swatches .woo-variation-raw-select+.select2{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;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-pack:center;-ms-flex-pack:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;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;width:20px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item input+span{margin-inline:10px}.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 .variable-item{list-style:none;margin:0;outline:none;padding:0;-webkit-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;-webkit-box-align:center;-ms-flex-align:center;align-items: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{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 .variable-items-wrapper .wvs-item-label{position:absolute;top:30px}.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 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 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;text-align:start;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.wvs-show-label .variations td .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations th .woo-selected-variation-item-name{font-weight:600}.woo-variation-swatches .variations .woo-variation-item-label{-webkit-margin-before:5px;margin:0;margin-block-start:5px}.woo-variation-swatches .variations .woo-variation-item-label .woo-selected-variation-item-name{font-weight:600}.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}.woo-variation-swatches .wvs-hide-view-cart-link{display:none}
     1.wvs-has-image-tooltip,[data-wvstooltip]{--font-size:14px;--arrow-width:5px;--arrow-distance:10px;--arrow-position:calc(var(--arrow-distance)*-1);--tip-redius:3px;--tip-min-width:100px;--tip-min-height:100px;--tip-height:30px;--tip-breakpoint-start:53vw;--tip-distance:calc(var(--arrow-distance) + var(--tip-height));--tip-position:calc(var(--tip-distance)*-1);--image-tip-min-height:calc(var(--tip-min-height) + var(--tip-height));--image-tip-max-height:calc(var(--tooltip-height) + var(--tip-height));--image-tip-width-dynamic:clamp(var(--tip-min-width),var(--tip-breakpoint-start),var(--tooltip-width));--image-tip-height-dynamic:clamp(var(--tip-min-height),var(--tip-breakpoint-start),var(--tooltip-height));--image-tip-ratio:calc(var(--tooltip-height)/var(--tooltip-width));--image-tip-position:calc(100% + var(--arrow-distance));--horizontal-position:0px;cursor:pointer;outline:none;position:relative}.wvs-has-image-tooltip:after,.wvs-has-image-tooltip:before,[data-wvstooltip]:after,[data-wvstooltip]:before{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;justify-content:center;opacity:0;pointer-events:none;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-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:var(--tip-redius);bottom:var(--image-tip-position);-webkit-box-shadow:0 0 5px 1px rgba(0,0,0,.3);box-shadow:0 0 5px 1px rgba(0,0,0,.3);color:var(--wvs-tooltip-text-color,#fff);font-size:var(--font-size);height:var(--tip-height);line-height:var(--tip-height);min-width:var(--tip-min-width);padding-inline:10px;top:auto;-webkit-transform:translateX(var(--horizontal-position));-ms-transform:translateX(var(--horizontal-position));transform:translateX(var(--horizontal-position));width:-webkit-max-content;width:-moz-max-content;width:max-content}[data-wvstooltip]:before{content:attr(data-wvstooltip) " " attr(data-wvstooltip-out-of-stock)}.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;height:calc(var(--image-tip-height-dynamic) + var(--tip-height));justify-content:flex-end;min-width:var(--image-tip-width-dynamic)}.wvs-has-image-tooltip:after,[data-wvstooltip]:after{border-top-color:transparent;border:var(--arrow-width) solid transparent;border-top-color:var(--wvs-tooltip-background-color,#333);bottom:auto;content:" ";font-size:0;line-height:0;top:var(--arrow-position);width:0}.wvs-has-image-tooltip:hover:after,.wvs-has-image-tooltip:hover:before,[data-wvstooltip]:hover:after,[data-wvstooltip]:hover:before{opacity:1;visibility:visible}.wvs-tooltip-position-bottom.wvs-has-image-tooltip:after,.wvs-tooltip-position-bottom[data-wvstooltip]:after{border-bottom-color:var(--wvs-tooltip-background-color,#333);border-top-color:transparent;bottom:var(--arrow-position);top:auto}.wvs-tooltip-position-bottom.wvs-has-image-tooltip:before,.wvs-tooltip-position-bottom[data-wvstooltip]:before{bottom:auto;top:calc(var(--tip-position)*-1)}.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}.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 .wp-block-getwooplugins-variation-swatches.swatches-align-center{--wvs-position:center}.woo-variation-swatches .wp-block-getwooplugins-variation-swatches.swatches-align-left{--wvs-position:flex-start}.woo-variation-swatches .wp-block-getwooplugins-variation-swatches.swatches-align-right{--wvs-position:flex-end}.woo-variation-swatches .woo-variation-raw-select+.select2{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;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-pack:center;-ms-flex-pack:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;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;width:20px}.woo-variation-swatches .variable-items-wrapper.radio-variable-items-wrapper .radio-variable-item input+span{margin-inline:10px}.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 .variable-item{list-style:none;margin:0;outline:none;padding:0;-webkit-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;-webkit-box-align:center;-ms-flex-align:center;align-items: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{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 .variable-items-wrapper .wvs-item-label{position:absolute;top:30px}.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 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 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.radio-variable-item{width:auto!important}.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.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;text-align:start;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.wvs-show-label .variations td .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations th .woo-selected-variation-item-name{font-weight:600}.woo-variation-swatches .variations .woo-variation-item-label{-webkit-margin-before:5px;margin:0;margin-block-start:5px}.woo-variation-swatches .variations .woo-variation-item-label .woo-selected-variation-item-name{font-weight:600}.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}.woo-variation-swatches .wvs-hide-view-cart-link{display:none}
  • woo-variation-swatches/trunk/assets/js/admin.js

    r3359797 r3393500  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 9/11/2025, 5:36:23 PM
     5 * Date: 11/11/2025, 3:19:45 PM
    66 * Released under the GPLv3 license.
    77 */
     
    1717/* harmony export */   PluginHelper: function() { return /* binding */ PluginHelper; }
    1818/* 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 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; }
    21 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; }
    22 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
    23 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); } }
    24 function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
     19function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
     20function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
     21function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
     22function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
     23function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
     24function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
     25function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
     26function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
     27function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
    2528/*global woo_variation_swatches_admin, wp, woocommerce_admin_meta_boxes*/
    2629
     
    3033      _classCallCheck(this, PluginHelper);
    3134    }
    32     _createClass(PluginHelper, null, [{
     35    return _createClass(PluginHelper, null, [{
    3336      key: "GWPAdmin",
    3437      value: function GWPAdmin() {
     
    631634      }
    632635    }]);
    633     return PluginHelper;
    634636  }();
    635637  return PluginHelper;
     
    642644/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
    643645
    644 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); }
    645 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); }
    646 function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
     646function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
     647function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
    647648jQuery(function ($) {
    648649  Promise.resolve().then(function () {
  • woo-variation-swatches/trunk/assets/js/admin.min.js

    r3098501 r3393500  
    1 !function(){var t,e={571: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){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){i(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}function i(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function r(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 c=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,a,i;return o=e,i=[{key:"GWPAdmin",value:function(){t().gwp_live_feed&&t().gwp_live_feed(),t().gwp_deactivate_popup&&t().gwp_deactivate_popup("woo-variation-swatches")}},{key:"PaginationAjax",value:function(e,o,a,n,i){var r={offset:n,product_id:e,attribute_id:o,attribute_name:a,_wpnonce:woo_variation_swatches_admin._wpnonce};t.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_load_product_terms"),method:"POST",data:r,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,_wpnonce:woo_variation_swatches_admin._wpnonce},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,_wpnonce:woo_variation_swatches_admin._wpnonce},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,(function(){t("#individual-swatches-info").removeClass("swatches-info-hide")}))}),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,_wpnonce:woo_variation_swatches_admin._wpnonce},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"),d=a.data("limit"),l=(a.data("total"),(s-1)*d-d),u=s-1;e.PaginationAjax(i,r,c,l,a),n.find(".next-page, .last-page").removeClass("disabled"),n.find(".current-page").text(u),a.data("current",u),0===l&&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"),d=a.data("current"),l=a.data("limit"),u=(a.data("total"),d*l),_=d+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"),d=(a.data("current"),a.data("limit")),l=r*d-d;e.PaginationAjax(i,c,s,l,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:"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:"FieldDependencyTrigger",value:function(){t(document.body).trigger("init_form_field_dependency")}},{key:"savingDialog",value:function(e,o,a){var i={},r="";if(o.find("input, select").each((function(){var e=t(this).attr("name"),o=t(this).val();e&&("tag_name"===e?r=o:i[e]=o,t(this).val(""))})),r){t(".product_attributes").block({message:null,overlayCSS:{background:"#FFFFFF",opacity:.6}});var c=n(n({},i),{},{action:"woocommerce_add_new_attribute",taxonomy:a,term:r,security:woocommerce_admin_meta_boxes.add_attribute_nonce});t.post(woocommerce_admin_meta_boxes.ajax_url,c,(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")}))}}],(a=null)&&r(o.prototype,a),i&&r(o,i),Object.defineProperty(o,"prototype",{writable:!1}),e}();return e}(jQuery)},206: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(571))})).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.FieldDependencyTrigger(),o.SetAttributeTypePaging(e)}))}))}))},630:function(){},672: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(l=0;l<t.length;l++){o=t[l][0],n=t[l][1],i=t[l][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(l--,1);var d=n();void 0!==d&&(e=d)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[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={683:0,577:0,846: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],d=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 l=s(a)}for(e&&e(o);d<r.length;d++)i=r[d],a.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return a.O(l)},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,[577,846],(function(){return a(206)})),a.O(void 0,[577,846],(function(){return a(630)}));var n=a.O(void 0,[577,846],(function(){return a(672)}));n=a.O(n)}();
     1!function(){var t,e={206: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,e){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(n=function(t,e){if(!e&&t&&t.__esModule)return t;var n,r,c={__proto__:null,default:t};if(null===t||"object"!=a(t)&&"function"!=typeof t)return c;if(n=e?i:o){if(n.has(t))return n.get(t);n.set(t,c)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(r.get||r.set)?n(c,s,r):c[s]=t[s]);return c})(t,e)}jQuery(function(t){Promise.resolve().then(function(){return n(o(571))}).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.FieldDependencyTrigger(),o.SetAttributeTypePaging(e)})})})},571:function(t,e,o){"use strict";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,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 i(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach(function(e){r(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function r(t,e,o){return(e=s(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function c(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,s(a.key),a)}}function s(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}o.r(e),o.d(e,{PluginHelper:function(){return l}});var l=function(t){var e=function(){return e=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},a=[{key:"GWPAdmin",value:function(){t().gwp_live_feed&&t().gwp_live_feed(),t().gwp_deactivate_popup&&t().gwp_deactivate_popup("woo-variation-swatches")}},{key:"PaginationAjax",value:function(e,o,a,n,i){var r={offset:n,product_id:e,attribute_id:o,attribute_name:a,_wpnonce:woo_variation_swatches_admin._wpnonce};t.ajax({global:!1,url:woo_variation_swatches_admin.wc_ajax_url.toString().replace("%%endpoint%%","woo_variation_swatches_load_product_terms"),method:"POST",data:r,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,_wpnonce:woo_variation_swatches_admin._wpnonce},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,_wpnonce:woo_variation_swatches_admin._wpnonce},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,function(){t("#individual-swatches-info").removeClass("swatches-info-hide")})},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,_wpnonce:woo_variation_swatches_admin._wpnonce},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:"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:"FieldDependencyTrigger",value:function(){t(document.body).trigger("init_form_field_dependency")}},{key:"savingDialog",value:function(e,o,a){var n={},r="";if(o.find("input, select").each(function(){var e=t(this).attr("name"),o=t(this).val();e&&("tag_name"===e?r=o:n[e]=o,t(this).val(""))}),r){t(".product_attributes").block({message:null,overlayCSS:{background:"#FFFFFF",opacity:.6}});var c=i(i({},n),{},{action:"woocommerce_add_new_attribute",taxonomy:a,term:r,security:woocommerce_admin_meta_boxes.add_attribute_nonce});t.post(woocommerce_admin_meta_boxes.ajax_url,c,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")})}}],(o=null)&&c(e.prototype,o),a&&c(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o,a}();return e}(jQuery)},630:function(){},672: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={683:0,577:0,846: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,[577,846],function(){return a(206)}),a.O(void 0,[577,846],function(){return a(630)});var n=a.O(void 0,[577,846],function(){return a(672)});n=a.O(n)}();
  • woo-variation-swatches/trunk/assets/js/frontend.js

    r3359797 r3393500  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 9/11/2025, 5:36:23 PM
     5 * Date: 11/11/2025, 3:19:45 PM
    66 * Released under the GPLv3 license.
    77 */
    88/******/ (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.
     9// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
    1110!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 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; }
    14 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; }
    15 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; } } }; }
    16 function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
     11function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
     12function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
     13function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
     14function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
     15function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
    1716function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
    18 function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
    19 function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
    20 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
    21 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); } }
    22 function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
    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 function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
     17function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
     18function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
     19function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
     20function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
     21function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
     22function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
     23function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
     24function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
     25function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
    2526function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
    26 function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
    27 function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
    28 function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
    29 function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
     27function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
     28function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
     29function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
     30function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
    3031// ================================================================
    3132// WooCommerce Variation Swatches
     
    113114  var Plugin = function ($) {
    114115    return /*#__PURE__*/function () {
    115       function _class2(element, options, name) {
    116         _classCallCheck(this, _class2);
     116      function _class(element, options, name) {
     117        _classCallCheck(this, _class);
    117118        _defineProperty(this, "defaults", {});
    118119        // Assign
     
    137138        $(document).trigger('woo_variation_swatches_loaded', this);
    138139      }
    139       _createClass(_class2, [{
     140      return _createClass(_class, [{
    140141        key: "isAjaxVariation",
    141142        value: function isAjaxVariation() {
     
    656657        }
    657658      }]);
    658       return _class2;
    659659    }();
    660660  }(jQuery);
     
    709709})(window);
    710710}();
    711 // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
     711// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
    712712!function() {
    713713/*global wp, _, wc_add_to_cart_variation_params, woo_variation_swatches_options */
     714
    714715jQuery(function ($) {
    715716  try {
    716717    $(document).on('woo_variation_swatches_init', function () {
    717       $('.variations_form:not(.wvs-loaded)').WooVariationSwatches(); // Any custom product with .woo_variation_swatches_variations_form class to support
    718 
    719       $('.woo_variation_swatches_variations_form:not(.wvs-loaded)').WooVariationSwatches(); // Yith Composite Product
    720 
     718      $('.variations_form:not(.wvs-loaded)').WooVariationSwatches();
     719
     720      // Any custom product with .woo_variation_swatches_variations_form class to support
     721      $('.woo_variation_swatches_variations_form:not(.wvs-loaded)').WooVariationSwatches();
     722
     723      // Yith Composite Product
    721724      $('.ywcp_inner_selected_container:not(.wvs-loaded)').WooVariationSwatches();
    722     }); //.trigger('woo_variation_swatches_init')
     725    });
     726    //.trigger('woo_variation_swatches_init')
    723727  } catch (err) {
    724728    // If failed (conflict?) log the error but don't stop other scripts breaking.
    725729    window.console.log('Variation Swatches:', err);
    726   } // Init WooVariationSwatches after wc_variation_form script loaded.
    727 
    728 
     730  }
     731
     732  // Init WooVariationSwatches after wc_variation_form script loaded.
    729733  $(document).on('wc_variation_form.wvs', function (event) {
    730734    $(document).trigger('woo_variation_swatches_init');
    731   }); // Try to cover global ajax data complete
    732 
     735  });
     736
     737  // Try to cover global ajax data complete
    733738  $(document).ajaxComplete(function (event, request, settings) {
    734739    _.delay(function () {
     
    737742      });
    738743    }, 1000);
    739   }); // Composite Product Load
     744  });
     745
     746  // Composite Product Load
    740747  // JS API: https://docs.woocommerce.com/document/composite-products/composite-products-js-api-reference/
    741 
    742748  $(document.body).on('wc-composite-initializing', '.composite_data', function (event, composite) {
    743749    composite.actions.add_action('component_options_state_changed', function (self) {
    744750      $(self.$component_content).find('.variations_form').WooVariationSwatches('destroy');
    745751    });
     752
    746753    /* composite.actions.add_action('active_scenarios_updated', (self) => {
    747754       console.log('active_scenarios_updated')
  • woo-variation-swatches/trunk/assets/js/frontend.min.js

    r3359797 r3393500  
    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=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function a(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=l(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},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 o,r=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return r=t.done,t},e:function(t){s=!0,o=t},f:function(){try{r||null==a.return||a.return()}finally{if(s)throw o}}}}function n(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 s(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)||l(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 l(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(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(e){"use strict";function l(t){if(!t)return!1;if("boolean"==typeof t)return t;var e=String(t).toLowerCase().trim();return!!["1","true","yes","on"].includes(e)||1===t}e.createMiddlewareForExtraQueryParams=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,a){if(function(t){return!!t.path&&-1!==t.path.indexOf("woo-variation-swatches")||!!t.url&&-1!==t.url.indexOf("woo-variation-swatches")}(e)&&Object.keys(t).length>0)for(var i=0,n=Object.entries(t);i<n.length;i++){var o=s(n[i],2),l=o[0],c=o[1];"string"!=typeof e.url||wp.url.hasQueryArg(e.url,l)||(e.url=wp.url.addQueryArgs(e.url,r({},l,c))),"string"!=typeof e.path||wp.url.hasQueryArg(e.path,l)||(e.path=wp.url.addQueryArgs(e.path,r({},l,c)))}return a(e)}};var c,u=(c=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=c(e),this.settings=c.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.attributeSwatchesFields=this.$element.find("ul.variable-items-wrapper"),this.selected_item_template='<span class="woo-selected-variation-item-name" data-default=""></span>',this.$element.addClass("wvs-loaded"),this.init(),this.update(),c(document).trigger("woo_variation_swatches_loaded",this)}var u,d,v;return u=t,(d=[{key:"isAjaxVariation",value:function(){return this.is_ajax_variation}},{key:"init",value:function(){this.prepareLabel(),this.prepareItems(),this.setupItems(),this.setupEvents(),this.setUpStockInfo(),this.deselectNonAvailable()}},{key:"prepareLabel",value:function(){var t=this;l(woo_variation_swatches_options.show_variation_label)&&this.$element.find(".variations .label").each((function(e,a){0===c(a).find(".woo-selected-variation-item-name").length&&c(a).append(t.selected_item_template)}))}},{key:"prepareItems",value:function(){this.attributeSwatchesFields.each((function(t,e){c(e).parent().addClass("woo-variation-items-wrapper")}))}},{key:"setupItems",value:function(){var t=this;this.attributeSwatchesFields.each((function(e,a){var i="",o=c(a).parent().find("select.woo-variation-raw-select"),r=o.find("option"),s=o.find("option:disabled"),l=o.find("option.enabled.out-of-stock"),u=o.find("option:selected"),d=o.find("option").eq(1),v=(c(a).data("attribute_name"),c(a).data("attribute_values")),f=[],h=[],p=[];r.each((function(){""!==c(this).val()&&(f.push(c(this).val()),i=0===u.length?d.val():u.val())})),s.each((function(){""!==c(this).val()&&p.push(c(this).val())})),l.each((function(){""!==c(this).val()&&h.push(c(this).val())}));var m=_.difference(f,p),b=[].concat(n(_.difference(v,f)),p);t.setupItem(a,i,m,h,b)}))}},{key:"setupItem",value:function(t,e,a,i,n){var o=this,r=c(t).parent().prev().find(".woo-selected-variation-item-name");c(t).find("li.variable-item").each((function(t,s){var u=c(s).attr("data-value"),d=c(s).attr("data-title");c(s).removeClass("selected disabled no-stock").addClass("disabled"),c(s).attr("aria-checked","false"),c(s).attr("tabindex","-1"),c(s).attr("data-wvstooltip-out-of-stock",""),c(s).find("input.variable-item-radio-input:radio").prop("disabled",!0).prop("checked",!1),e.length<1&&l(woo_variation_swatches_options.show_variation_label)&&r.text(""),o.isAjaxVariation()?(c(s).find("input.variable-item-radio-input:radio").prop("disabled",!1),c(s).removeClass("selected disabled no-stock"),u===e&&(c(s).addClass("selected"),c(s).attr("aria-checked","true"),c(s).attr("tabindex","0"),c(s).find("input.variable-item-radio-input:radio").prop("disabled",!1).prop("checked",!0),l(woo_variation_swatches_options.show_variation_label)&&r.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(d)),c(s).trigger("wvs-item-updated",[e,u]))):(_.includes(a,u)&&(c(s).removeClass("selected disabled"),c(s).removeAttr("aria-hidden"),c(s).attr("tabindex","0"),c(s).find("input.variable-item-radio-input:radio").prop("disabled",!1),u===e&&(c(s).addClass("selected"),c(s).attr("aria-checked","true"),c(s).find("input.variable-item-radio-input:radio").prop("checked",!0),l(woo_variation_swatches_options.show_variation_label)&&r.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(d)),c(s).trigger("wvs-item-updated",[e,u]))),_.includes(i,u)&&(c(s).attr("data-wvstooltip-out-of-stock",woo_variation_swatches_options.out_of_stock_tooltip_text),l(woo_variation_swatches_options.clickable_out_of_stock)&&c(s).removeClass("disabled").addClass("no-stock")),_.includes(n,u)&&c(s).attr("data-wvstooltip-out-of-stock",woo_variation_swatches_options.unavailable_tooltip_text))}))}},{key:"setupEvents",value:function(){var t=this.$element;this.attributeSwatchesFields.each((function(e,a){var i=c(a).parent().find("select.woo-variation-raw-select");l(woo_variation_swatches_options.clear_on_reselect)?(c(a).on("click.wvs","li.variable-item:not(.selected):not(.radio-variable-item)",(function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).data("value");i.val(n).trigger("change"),i.trigger("click"),c(this).trigger("wvs-selected-item",[a,n,i,t])})),c(a).on("click.wvs","li.variable-item.selected:not(.radio-variable-item)",(function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).data("value");i.val("").trigger("change"),i.trigger("click"),c(this).trigger("wvs-unselected-item",[a,n,i,t])})),c(a).on("click.wvs","input.variable-item-radio-input:radio",(function(t){t.stopPropagation(),c(this).trigger("change.wvs",{radioChange:!0})})),c(a).on("change.wvs","input.variable-item-radio-input:radio",(function(e,a){if(e.preventDefault(),e.stopPropagation(),a&&a.radioChange){var n=c(this).data("attribute_name"),o=c(this).val();c(this).parent("li.radio-variable-item").hasClass("selected")?(i.val("").trigger("change"),c(this).closest("li.radio-variable-item").trigger("wvs-unselected-item",[n,o,i,t])):(i.val(o).trigger("change"),c(this).closest("li.radio-variable-item").trigger("wvs-selected-item",[n,o,i,t])),i.trigger("click")}}))):(c(a).on("click.wvs","li.variable-item:not(.radio-variable-item)",(function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).data("value");i.val(n).trigger("change"),i.trigger("click"),c(this).trigger("wvs-selected-item",[a,n,i,t])})),c(a).on("change.wvs","input.variable-item-radio-input:radio",(function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).val();i.val(n).trigger("change"),i.trigger("click"),c(this).closest("li.radio-variable-item").removeClass("selected disabled no-stock").addClass("selected"),c(this).closest("li.radio-variable-item").trigger("wvs-selected-item",[a,n,i,t])}))),c(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(),c(this).trigger("click"))}))})),this.$element.on("click.wvs",".woo-variation-swatches-variable-item-more",(function(t){t.preventDefault(),c(this).parent().removeClass("enabled-display-limit-mode enabled-catalog-display-limit-mode"),c(this).remove()})),this.$element.find("[data-wvstooltip]").each((function(t,a){c(a).on("mouseenter",(function(t){var i=a.getBoundingClientRect(),n=e.getComputedStyle(a,":before"),o=e.getComputedStyle(a,":after"),r=parseInt(o.getPropertyValue("border-top-width"),10),s=parseInt(n.getPropertyValue("height"),10),l=parseInt(n.getPropertyValue("width"),10),c=s+r+2;a.classList.toggle("wvs-tooltip-position-bottom",i.top<c);var u=l/2,d=i.left+i.width/2,v=u-d,f=u>d,h=u+d,p=document.body.clientWidth<h,m=document.body.clientWidth-h;a.style.setProperty("--horizontal-position","0px"),f&&a.style.setProperty("--horizontal-position","".concat(v+2,"px")),p&&a.style.setProperty("--horizontal-position","".concat(m-2,"px"))}))}))}},{key:"extractAttributes",value:function(t){var e,a=new Set,n=i(this.product_variations);try{for(n.s();!(e=n.n()).done;){var o=e.value.attributes;for(var r in o)o[r].length>0&&a.add(r)}}catch(t){n.e(t)}finally{n.f()}return a.delete(t),Array.from(a)}},{key:"getUnavailableAttributes",value:function(t,e){return 0===this.findMatchingVariations(this.product_variations,t).filter((function(t){return!l(woo_variation_swatches_options.disable_out_of_stock)||t.is_in_stock})).length?this.extractAttributes(e):[]}},{key:"deselectNonAvailable",value:function(){var t=this;l(woo_variation_swatches_options.deselect_unavailable)&&this.$element.on("wvs-selected-item.wvs",(function(e,n,o){var s=a(a({},t.getChosenAttributes().data),{},r({},n,o.toString())),l=t.getUnavailableAttributes(s,n);if(l.length>0){var u,d=i(l);try{for(d.s();!(u=d.n()).done;){var v=u.value;t.attributeSwatchesFields.find('li[data-attribute_name="'.concat(v,'"]')).removeClass("selected"),t.attributeFields.filter('[data-attribute_name="'.concat(v,'"]')).each((function(t,e){c(e).val("").trigger("change")}))}}catch(t){d.e(t)}finally{d.f()}t.attributeSwatchesFields.filter('[data-attribute_name="'.concat(n,'"]')).each((function(){c(this).find('[data-value="'.concat(o,'"]')).removeClass("disabled").addClass("selected")})),t.attributeFields.filter('[data-attribute_name="'.concat(n,'"]')).each((function(t,e){c(e).val(o).trigger("change")}))}}))}},{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(l(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=c(this).data("attribute_name")||c(this).attr("name"),n=c(this).val()||"";n.length>0&&a++,e++,t[i]=n})),{count:e,chosenCount:a,mayChosenCount:a+1,data:t}}},{key:"findStockVariations",value:function(t,e){for(var a=[],n=0,o=Object.entries(e.data);n<o.length;n++){var l=s(o[n],2),c=l[0];if(0===l[1].length){var u,d=i(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,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,a.push(m)}}}catch(t){d.e(t)}finally{d.f()}}}return a}},{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:"findMatchingVariations2",value:function(t,e){return t.filter((function(t){return Object.entries(e).every((function(e){var a=s(e,2),i=a[0],n=a[1],o=t.attributes[i];return!(void 0!==o&&void 0!==n&&0!==o.length&&0!==n.length&&o!==n)}))}))}},{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(u.prototype,d),v&&o(u,v),Object.defineProperty(u,"prototype",{writable:!1}),t}()),d=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);d("WooVariationSwatches",u)}(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()}))}),1e3)})),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")}))}))}));
     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=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function a(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?e(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function i(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=c(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},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 o,r=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return r=t.done,t},e:function(t){s=!0,o=t},f:function(){try{r||null==a.return||a.return()}finally{if(s)throw o}}}}function n(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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,s(i.key),i)}}function r(t,e,a){return(e=s(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(e){var a=function(e,a){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,a||"default");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}(e,"string");return"symbol"==t(a)?a:a+""}function l(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,s=[],l=!0,c=!1;try{if(o=(a=a.call(t)).next,0===e){if(Object(a)!==a)return;l=!1}else for(;!(l=(i=o.call(a)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(c)throw n}}return s}}(t,e)||c(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 c(t,e){if(t){if("string"==typeof t)return u(t,e);var a={}.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)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}!function(e){"use strict";function s(t){if(!t)return!1;if("boolean"==typeof t)return t;var e=String(t).toLowerCase().trim();return!!["1","true","yes","on"].includes(e)||1===t}e.createMiddlewareForExtraQueryParams=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,a){if(function(t){return!!t.path&&-1!==t.path.indexOf("woo-variation-swatches")||!!t.url&&-1!==t.url.indexOf("woo-variation-swatches")}(e)&&Object.keys(t).length>0)for(var i=0,n=Object.entries(t);i<n.length;i++){var o=l(n[i],2),s=o[0],c=o[1];"string"!=typeof e.url||wp.url.hasQueryArg(e.url,s)||(e.url=wp.url.addQueryArgs(e.url,r({},s,c))),"string"!=typeof e.path||wp.url.hasQueryArg(e.path,s)||(e.path=wp.url.addQueryArgs(e.path,r({},s,c)))}return a(e)}};var c,u=(c=jQuery,function(){return t=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=c(e),this.settings=c.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.attributeSwatchesFields=this.$element.find("ul.variable-items-wrapper"),this.selected_item_template='<span class="woo-selected-variation-item-name" data-default=""></span>',this.$element.addClass("wvs-loaded"),this.init(),this.update(),c(document).trigger("woo_variation_swatches_loaded",this)},(u=[{key:"isAjaxVariation",value:function(){return this.is_ajax_variation}},{key:"init",value:function(){this.prepareLabel(),this.prepareItems(),this.setupItems(),this.setupEvents(),this.setUpStockInfo(),this.deselectNonAvailable()}},{key:"prepareLabel",value:function(){var t=this;s(woo_variation_swatches_options.show_variation_label)&&this.$element.find(".variations .label").each(function(e,a){0===c(a).find(".woo-selected-variation-item-name").length&&c(a).append(t.selected_item_template)})}},{key:"prepareItems",value:function(){this.attributeSwatchesFields.each(function(t,e){c(e).parent().addClass("woo-variation-items-wrapper")})}},{key:"setupItems",value:function(){var t=this;this.attributeSwatchesFields.each(function(e,a){var i="",o=c(a).parent().find("select.woo-variation-raw-select"),r=o.find("option"),s=o.find("option:disabled"),l=o.find("option.enabled.out-of-stock"),u=o.find("option:selected"),d=o.find("option").eq(1),v=(c(a).data("attribute_name"),c(a).data("attribute_values")),f=[],h=[],p=[];r.each(function(){""!==c(this).val()&&(f.push(c(this).val()),i=0===u.length?d.val():u.val())}),s.each(function(){""!==c(this).val()&&p.push(c(this).val())}),l.each(function(){""!==c(this).val()&&h.push(c(this).val())});var m=_.difference(f,p),b=[].concat(n(_.difference(v,f)),p);t.setupItem(a,i,m,h,b)})}},{key:"setupItem",value:function(t,e,a,i,n){var o=this,r=c(t).parent().prev().find(".woo-selected-variation-item-name");c(t).find("li.variable-item").each(function(t,l){var u=c(l).attr("data-value"),d=c(l).attr("data-title");c(l).removeClass("selected disabled no-stock").addClass("disabled"),c(l).attr("aria-checked","false"),c(l).attr("tabindex","-1"),c(l).attr("data-wvstooltip-out-of-stock",""),c(l).find("input.variable-item-radio-input:radio").prop("disabled",!0).prop("checked",!1),e.length<1&&s(woo_variation_swatches_options.show_variation_label)&&r.text(""),o.isAjaxVariation()?(c(l).find("input.variable-item-radio-input:radio").prop("disabled",!1),c(l).removeClass("selected disabled no-stock"),u===e&&(c(l).addClass("selected"),c(l).attr("aria-checked","true"),c(l).attr("tabindex","0"),c(l).find("input.variable-item-radio-input:radio").prop("disabled",!1).prop("checked",!0),s(woo_variation_swatches_options.show_variation_label)&&r.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(d)),c(l).trigger("wvs-item-updated",[e,u]))):(_.includes(a,u)&&(c(l).removeClass("selected disabled"),c(l).removeAttr("aria-hidden"),c(l).attr("tabindex","0"),c(l).find("input.variable-item-radio-input:radio").prop("disabled",!1),u===e&&(c(l).addClass("selected"),c(l).attr("aria-checked","true"),c(l).find("input.variable-item-radio-input:radio").prop("checked",!0),s(woo_variation_swatches_options.show_variation_label)&&r.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(d)),c(l).trigger("wvs-item-updated",[e,u]))),_.includes(i,u)&&(c(l).attr("data-wvstooltip-out-of-stock",woo_variation_swatches_options.out_of_stock_tooltip_text),s(woo_variation_swatches_options.clickable_out_of_stock)&&c(l).removeClass("disabled").addClass("no-stock")),_.includes(n,u)&&c(l).attr("data-wvstooltip-out-of-stock",woo_variation_swatches_options.unavailable_tooltip_text))})}},{key:"setupEvents",value:function(){var t=this.$element;this.attributeSwatchesFields.each(function(e,a){var i=c(a).parent().find("select.woo-variation-raw-select");s(woo_variation_swatches_options.clear_on_reselect)?(c(a).on("click.wvs","li.variable-item:not(.selected):not(.radio-variable-item)",function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).data("value");i.val(n).trigger("change"),i.trigger("click"),c(this).trigger("wvs-selected-item",[a,n,i,t])}),c(a).on("click.wvs","li.variable-item.selected:not(.radio-variable-item)",function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).data("value");i.val("").trigger("change"),i.trigger("click"),c(this).trigger("wvs-unselected-item",[a,n,i,t])}),c(a).on("click.wvs","input.variable-item-radio-input:radio",function(t){t.stopPropagation(),c(this).trigger("change.wvs",{radioChange:!0})}),c(a).on("change.wvs","input.variable-item-radio-input:radio",function(e,a){if(e.preventDefault(),e.stopPropagation(),a&&a.radioChange){var n=c(this).data("attribute_name"),o=c(this).val();c(this).parent("li.radio-variable-item").hasClass("selected")?(i.val("").trigger("change"),c(this).closest("li.radio-variable-item").trigger("wvs-unselected-item",[n,o,i,t])):(i.val(o).trigger("change"),c(this).closest("li.radio-variable-item").trigger("wvs-selected-item",[n,o,i,t])),i.trigger("click")}})):(c(a).on("click.wvs","li.variable-item:not(.radio-variable-item)",function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).data("value");i.val(n).trigger("change"),i.trigger("click"),c(this).trigger("wvs-selected-item",[a,n,i,t])}),c(a).on("change.wvs","input.variable-item-radio-input:radio",function(e){e.preventDefault(),e.stopPropagation();var a=c(this).data("attribute_name"),n=c(this).val();i.val(n).trigger("change"),i.trigger("click"),c(this).closest("li.radio-variable-item").removeClass("selected disabled no-stock").addClass("selected"),c(this).closest("li.radio-variable-item").trigger("wvs-selected-item",[a,n,i,t])})),c(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(),c(this).trigger("click"))})}),this.$element.on("click.wvs",".woo-variation-swatches-variable-item-more",function(t){t.preventDefault(),c(this).parent().removeClass("enabled-display-limit-mode enabled-catalog-display-limit-mode"),c(this).remove()}),this.$element.find("[data-wvstooltip]").each(function(t,a){c(a).on("mouseenter",function(t){var i=a.getBoundingClientRect(),n=e.getComputedStyle(a,":before"),o=e.getComputedStyle(a,":after"),r=parseInt(o.getPropertyValue("border-top-width"),10),s=parseInt(n.getPropertyValue("height"),10),l=parseInt(n.getPropertyValue("width"),10),c=s+r+2;a.classList.toggle("wvs-tooltip-position-bottom",i.top<c);var u=l/2,d=i.left+i.width/2,v=u-d,f=u>d,h=u+d,p=document.body.clientWidth<h,m=document.body.clientWidth-h;a.style.setProperty("--horizontal-position","0px"),f&&a.style.setProperty("--horizontal-position","".concat(v+2,"px")),p&&a.style.setProperty("--horizontal-position","".concat(m-2,"px"))})})}},{key:"extractAttributes",value:function(t){var e,a=new Set,n=i(this.product_variations);try{for(n.s();!(e=n.n()).done;){var o=e.value.attributes;for(var r in o)o[r].length>0&&a.add(r)}}catch(t){n.e(t)}finally{n.f()}return a.delete(t),Array.from(a)}},{key:"getUnavailableAttributes",value:function(t,e){return 0===this.findMatchingVariations(this.product_variations,t).filter(function(t){return!s(woo_variation_swatches_options.disable_out_of_stock)||t.is_in_stock}).length?this.extractAttributes(e):[]}},{key:"deselectNonAvailable",value:function(){var t=this;s(woo_variation_swatches_options.deselect_unavailable)&&this.$element.on("wvs-selected-item.wvs",function(e,n,o){var s=a(a({},t.getChosenAttributes().data),{},r({},n,o.toString())),l=t.getUnavailableAttributes(s,n);if(l.length>0){var u,d=i(l);try{for(d.s();!(u=d.n()).done;){var v=u.value;t.attributeSwatchesFields.find('li[data-attribute_name="'.concat(v,'"]')).removeClass("selected"),t.attributeFields.filter('[data-attribute_name="'.concat(v,'"]')).each(function(t,e){c(e).val("").trigger("change")})}}catch(t){d.e(t)}finally{d.f()}t.attributeSwatchesFields.filter('[data-attribute_name="'.concat(n,'"]')).each(function(){c(this).find('[data-value="'.concat(o,'"]')).removeClass("disabled").addClass("selected")}),t.attributeFields.filter('[data-attribute_name="'.concat(n,'"]')).each(function(t,e){c(e).val(o).trigger("change")})}})}},{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(s(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=c(this).data("attribute_name")||c(this).attr("name"),n=c(this).val()||"";n.length>0&&a++,e++,t[i]=n}),{count:e,chosenCount:a,mayChosenCount:a+1,data:t}}},{key:"findStockVariations",value:function(t,e){for(var a=[],n=0,o=Object.entries(e.data);n<o.length;n++){var s=l(o[n],2),c=s[0];if(0===s[1].length){var u,d=i(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,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,a.push(m)}}}catch(t){d.e(t)}finally{d.f()}}}return a}},{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:"findMatchingVariations2",value:function(t,e){return t.filter(function(t){return Object.entries(e).every(function(e){var a=l(e,2),i=a[0],n=a[1],o=t.attributes[i];return!(void 0!==o&&void 0!==n&&0!==o.length&&0!==n.length&&o!==n)})})}},{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(t.prototype,u),d&&o(t,d),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,u,d}()),d=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);d("WooVariationSwatches",u)}(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()})},1e3)}),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")})})});
  • woo-variation-swatches/trunk/assets/js/wp-color-picker-alpha.js

    r3359797 r3393500  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 9/11/2025, 5:36:23 PM
     5 * Date: 11/11/2025, 3:19:45 PM
    66 * Released under the GPLv3 license.
    77 */
    88/******/ (function() { // webpackBootstrap
    9 var __webpack_exports__ = {};
    109/*
    1110 * wp-color-picker-alpha
     
    1817 * Licensed under the GPLv2 license or later.
    1918 */
     19
    2020(function ($, undef) {
    2121  var wpColorPickerAlpha = {
    2222    'version': 300
    23   }; // Always try to use the last version of this script.
    24 
     23  };
     24
     25  // Always try to use the last version of this script.
    2526  if ('wpColorPickerAlpha' in window && 'version' in window.wpColorPickerAlpha) {
    2627    var version = parseInt(window.wpColorPickerAlpha.version, 10);
    27 
    2828    if (!isNaN(version) && version >= wpColorPickerAlpha.version) {
    2929      return;
    3030    }
    31   } // Prevent multiple initiations
    32 
    33 
     31  }
     32
     33  // Prevent multiple initiations
    3434  if (Color.fn.hasOwnProperty('to_s')) {
    3535    return;
    36   } // Create new method to replace the `Color.toString()` inside the scripts.
    37 
    38 
     36  }
     37
     38  // Create new method to replace the `Color.toString()` inside the scripts.
    3939  Color.fn.to_s = function (type) {
    40     type = type || 'hex'; // Change hex to rgba to return the correct color.
    41 
     40    type = type || 'hex';
     41    // Change hex to rgba to return the correct color.
    4242    if ('hex' === type && this._alpha < 1) {
    4343      type = 'rgba';
    4444    }
    45 
    4645    var color = '';
    47 
    4846    if ('hex' === type) {
    4947      color = this.toString();
     
    5149      color = this.toCSS(type).replace(/\(\s+/, '(').replace(/\s+\)/, ')');
    5250    }
    53 
    5451    return color;
    55   }; // Register the global variable.
    56 
    57 
    58   window.wpColorPickerAlpha = wpColorPickerAlpha; // Background image encoded
    59 
     52  };
     53
     54  // Register the global variable.
     55  window.wpColorPickerAlpha = wpColorPickerAlpha;
     56
     57  // Background image encoded
    6058  var backgroundImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==';
     59
    6160  /**
    6261   * Iris
    6362   */
    64 
    6563  $.widget('a8c.iris', $.a8c.iris, {
    6664    /**
     
    7472      alphaEnabled: false
    7573    },
    76 
    7774    /**
    7875     * Get the current color or the new color.
     
    8986        color = this._color;
    9087      }
    91 
    9288      if (this.alphaOptions.alphaEnabled) {
    9389        color = color.to_s(this.alphaOptions.alphaColorType);
    94 
    9590        if (!this.alphaOptions.alphaColorWithSpace) {
    9691          color = color.replace(/\s+/g, '');
    9792        }
    98 
    9993        return color;
    10094      }
    101 
    10295      return color.toString();
    10396    },
    104 
    10597    /**
    10698     * Create widget
     
    115107        // Try to get the wpColorPicker alpha options.
    116108        this.alphaOptions = this.element.wpColorPicker('instance').alphaOptions;
    117       } catch (e) {} // We make sure there are all options
    118 
    119 
     109      } catch (e) {}
     110
     111      // We make sure there are all options
    120112      $.extend({}, this.alphaOptions, {
    121113        alphaEnabled: false,
     
    125117        alphaColorWithSpace: false
    126118      });
    127 
    128119      this._super();
    129120    },
    130 
    131121    /**
    132122     * Binds event listeners to the Iris.
     
    139129    _addInputListeners: function _addInputListeners(input) {
    140130      var self = this,
    141           debounceTimeout = 100,
    142           callback = function callback(event) {
    143         var val = input.val(),
     131        debounceTimeout = 100,
     132        callback = function callback(event) {
     133          var val = input.val(),
    144134            color = new Color(val),
    145135            val = val.replace(/^(#|(rgb|hsl)a?)/, ''),
    146136            type = self.alphaOptions.alphaColorType;
    147         input.removeClass('iris-error');
    148 
    149         if (!color.error) {
    150           // let's not do this on keyup for hex shortcodes
    151           if ('hex' !== type || !(event.type === 'keyup' && val.match(/^[0-9a-fA-F]{3}$/))) {
    152             // Compare color ( #AARRGGBB )
    153             if (color.toIEOctoHex() !== self._color.toIEOctoHex()) {
    154               self._setOption('color', self._getColor(color));
     137          input.removeClass('iris-error');
     138          if (!color.error) {
     139            // let's not do this on keyup for hex shortcodes
     140            if ('hex' !== type || !(event.type === 'keyup' && val.match(/^[0-9a-fA-F]{3}$/))) {
     141              // Compare color ( #AARRGGBB )
     142              if (color.toIEOctoHex() !== self._color.toIEOctoHex()) {
     143                self._setOption('color', self._getColor(color));
     144              }
    155145            }
    156           }
    157         } else if (val !== '') {
    158           input.addClass('iris-error');
    159         }
    160       };
    161 
    162       input.on('change', callback).on('keyup', self._debounce(callback, debounceTimeout)); // If we initialized hidden, show on first focus. The rest is up to you.
    163 
     146          } else if (val !== '') {
     147            input.addClass('iris-error');
     148          }
     149        };
     150      input.on('change', callback).on('keyup', self._debounce(callback, debounceTimeout));
     151
     152      // If we initialized hidden, show on first focus. The rest is up to you.
    164153      if (self.options.hide) {
    165154        input.one('focus', function () {
     
    168157      }
    169158    },
    170 
    171159    /**
    172160     * Init Controls
     
    179167    _initControls: function _initControls() {
    180168      this._super();
    181 
    182169      if (this.alphaOptions.alphaEnabled) {
    183170        // Create Alpha controls
    184171        var self = this,
    185             stripAlpha = self.controls.strip.clone(false, false),
    186             stripAlphaSlider = stripAlpha.find('.iris-slider-offset'),
    187             controls = {
    188           stripAlpha: stripAlpha,
    189           stripAlphaSlider: stripAlphaSlider
    190         };
     172          stripAlpha = self.controls.strip.clone(false, false),
     173          stripAlphaSlider = stripAlpha.find('.iris-slider-offset'),
     174          controls = {
     175            stripAlpha: stripAlpha,
     176            stripAlphaSlider: stripAlphaSlider
     177          };
    191178        stripAlpha.addClass('iris-strip-alpha');
    192179        stripAlphaSlider.addClass('iris-slider-offset-alpha');
    193         stripAlpha.appendTo(self.picker.find('.iris-picker-inner')); // Push new controls
    194 
     180        stripAlpha.appendTo(self.picker.find('.iris-picker-inner'));
     181
     182        // Push new controls
    195183        $.each(controls, function (k, v) {
    196184          self.controls[k] = v;
    197         }); // Create slider
    198 
     185        });
     186
     187        // Create slider
    199188        self.controls.stripAlphaSlider.slider({
    200189          orientation: 'vertical',
     
    204193          value: parseInt(self._color._alpha * 100),
    205194          slide: function slide(event, ui) {
    206             self.active = 'strip'; // Update alpha value
    207 
     195            self.active = 'strip';
     196            // Update alpha value
    208197            self._color._alpha = parseFloat(ui.value / 100);
    209 
    210198            self._change.apply(self, arguments);
    211199          }
     
    213201      }
    214202    },
    215 
    216203    /**
    217204     * Create the controls sizes
     
    226213    _dimensions: function _dimensions(reset) {
    227214      this._super(reset);
    228 
    229215      if (this.alphaOptions.alphaEnabled) {
    230216        var self = this,
    231             opts = self.options,
    232             controls = self.controls,
    233             square = controls.square,
    234             strip = self.picker.find('.iris-strip'),
    235             innerWidth,
    236             squareWidth,
    237             stripWidth,
    238             stripMargin,
    239             totalWidth;
     217          opts = self.options,
     218          controls = self.controls,
     219          square = controls.square,
     220          strip = self.picker.find('.iris-strip'),
     221          innerWidth,
     222          squareWidth,
     223          stripWidth,
     224          stripMargin,
     225          totalWidth;
     226
    240227        /**
    241228         * I use Math.round() to avoid possible size errors,
     
    248235         * 2 for css border
    249236         */
    250 
    251         innerWidth = Math.round(self.picker.outerWidth(true) - (opts.border ? 22 : 0)); // The width of the draggable, aka square.
    252 
    253         squareWidth = Math.round(square.outerWidth()); // The width for the sliders
    254 
    255         stripWidth = Math.round((innerWidth - squareWidth) / 2); // The margin for the sliders
    256 
    257         stripMargin = Math.round(stripWidth / 2); // The total width of the elements.
    258 
    259         totalWidth = Math.round(squareWidth + stripWidth * 2 + stripMargin * 2); // Check and change if necessary.
    260 
     237        innerWidth = Math.round(self.picker.outerWidth(true) - (opts.border ? 22 : 0));
     238        // The width of the draggable, aka square.
     239        squareWidth = Math.round(square.outerWidth());
     240        // The width for the sliders
     241        stripWidth = Math.round((innerWidth - squareWidth) / 2);
     242        // The margin for the sliders
     243        stripMargin = Math.round(stripWidth / 2);
     244        // The total width of the elements.
     245        totalWidth = Math.round(squareWidth + stripWidth * 2 + stripMargin * 2);
     246
     247        // Check and change if necessary.
    261248        while (totalWidth > innerWidth) {
    262249          stripWidth = Math.round(stripWidth - 2);
     
    264251          totalWidth = Math.round(squareWidth + stripWidth * 2 + stripMargin * 2);
    265252        }
    266 
    267253        square.css('margin', '0');
    268254        strip.width(stripWidth).css('margin-left', stripMargin + 'px');
    269255      }
    270256    },
    271 
    272257    /**
    273258     * Callback to update the controls and the current color.
     
    280265    _change: function _change() {
    281266      var self = this,
    282           active = self.active;
    283 
     267        active = self.active;
    284268      self._super();
    285 
    286269      if (self.alphaOptions.alphaEnabled) {
    287270        var controls = self.controls,
    288             alpha = parseInt(self._color._alpha * 100),
    289             color = self._color.toRgb(),
    290             gradient = ['rgb(' + color.r + ',' + color.g + ',' + color.b + ') 0%', 'rgba(' + color.r + ',' + color.g + ',' + color.b + ', 0) 100%'],
    291             target = self.picker.closest('.wp-picker-container').find('.wp-color-result');
    292 
    293         self.options.color = self._getColor(); // Generate background slider alpha, only for CSS3.
    294 
     271          alpha = parseInt(self._color._alpha * 100),
     272          color = self._color.toRgb(),
     273          gradient = ['rgb(' + color.r + ',' + color.g + ',' + color.b + ') 0%', 'rgba(' + color.r + ',' + color.g + ',' + color.b + ', 0) 100%'],
     274          target = self.picker.closest('.wp-picker-container').find('.wp-color-result');
     275        self.options.color = self._getColor();
     276        // Generate background slider alpha, only for CSS3.
    295277        controls.stripAlpha.css({
    296278          'background': 'linear-gradient(to bottom, ' + gradient.join(', ') + '), url(' + backgroundImage + ')'
    297         }); // Update alpha value
    298 
     279        });
     280        // Update alpha value
    299281        if (active) {
    300282          controls.stripAlphaSlider.slider('value', alpha);
    301283        }
    302 
    303284        if (!self._color.error) {
    304285          self.element.removeClass('iris-error').val(self.options.color);
    305286        }
    306 
    307287        self.picker.find('.iris-palette-container').on('click.palette', '.iris-palette', function () {
    308288          var color = $(this).data('color');
    309 
    310289          if (self.alphaOptions.alphaReset) {
    311290            self._color._alpha = 1;
    312291            color = self._getColor();
    313292          }
    314 
    315293          self._setOption('color', color);
    316294        });
    317295      }
    318296    },
    319 
    320297    /**
    321298     * Paint dimensions.
     
    331308    _paintDimension: function _paintDimension(origin, control) {
    332309      var self = this,
    333           color = false; // Fix for slider hue opacity.
    334 
     310        color = false;
     311
     312      // Fix for slider hue opacity.
    335313      if (self.alphaOptions.alphaEnabled && 'strip' === control) {
    336314        color = self._color;
     
    338316        self.hue = self._color.h();
    339317      }
    340 
    341       self._super(origin, control); // Restore the color after paint.
    342 
    343 
     318      self._super(origin, control);
     319
     320      // Restore the color after paint.
    344321      if (color) {
    345322        self._color = color;
    346323      }
    347324    },
    348 
    349325    /**
    350326     * To update the options, see original source to view the available options.
     
    359335    _setOption: function _setOption(key, value) {
    360336      var self = this;
    361 
    362337      if ('color' === key && self.alphaOptions.alphaEnabled) {
    363338        // cast to string in case we have a number
    364339        value = '' + value;
    365         newColor = new Color(value).setHSpace(self.options.mode); // Check if error && Check the color to prevent callbacks with the same color.
    366 
     340        newColor = new Color(value).setHSpace(self.options.mode);
     341        // Check if error && Check the color to prevent callbacks with the same color.
    367342        if (!newColor.error && self._getColor(newColor) !== self._getColor()) {
    368343          self._color = newColor;
    369344          self.options.color = self._getColor();
    370345          self.active = 'external';
    371 
    372346          self._change();
    373347        }
     
    376350      }
    377351    },
    378 
    379352    /**
    380353     * Returns the iris object if no new color is provided. If a new color is provided, it sets the new color.
     
    390363        return this._color.clone();
    391364      }
    392 
    393365      if (newColor === undef) {
    394366        return this._getColor();
    395367      }
    396 
    397368      this.option('color', newColor);
    398369    }
    399370  });
     371
    400372  /**
    401373   * wpColorPicker
    402374   */
    403 
    404375  $.widget('wp.wpColorPicker', $.wp.wpColorPicker, {
    405376    /**
     
    413384      alphaEnabled: false
    414385    },
    415 
    416386    /**
    417387     * Get the alpha options.
     
    424394    _getAlphaOptions: function _getAlphaOptions() {
    425395      var el = this.element,
    426           type = el.data('type') || this.options.type,
    427           color = el.data('defaultColor') || el.val(),
    428           options = {
    429         alphaEnabled: el.data('alphaEnabled') || false,
    430         alphaCustomWidth: 130,
    431         alphaReset: false,
    432         alphaColorType: 'rgb',
    433         alphaColorWithSpace: false
    434       };
    435 
     396        type = el.data('type') || this.options.type,
     397        color = el.data('defaultColor') || el.val(),
     398        options = {
     399          alphaEnabled: el.data('alphaEnabled') || false,
     400          alphaCustomWidth: 130,
     401          alphaReset: false,
     402          alphaColorType: 'rgb',
     403          alphaColorWithSpace: false
     404        };
    436405      if (options.alphaEnabled) {
    437406        options.alphaEnabled = el.is('input') && 'full' === type;
    438407      }
    439 
    440408      if (!options.alphaEnabled) {
    441409        return options;
    442410      }
    443 
    444411      options.alphaColorWithSpace = color && color.match(/\s/);
    445412      $.each(options, function (name, defaultValue) {
    446413        var value = el.data(name) || defaultValue;
    447 
    448414        switch (name) {
    449415          case 'alphaCustomWidth':
     
    451417            value = isNaN(value) ? defaultValue : value;
    452418            break;
    453 
    454419          case 'alphaColorType':
    455420            if (!value.match(/^(hex|(rgb|hsl)a?)$/)) {
     
    462427              }
    463428            }
    464 
    465429            break;
    466 
    467430          default:
    468431            value = !!value;
    469432            break;
    470433        }
    471 
    472434        options[name] = value;
    473435      });
    474436      return options;
    475437    },
    476 
    477438    /**
    478439     * Create widget
     
    487448      if (!$.support.iris) {
    488449        return;
    489       } // Set the alpha options for the current instance.
    490 
    491 
    492       this.alphaOptions = this._getAlphaOptions(); // Create widget.
    493 
     450      }
     451
     452      // Set the alpha options for the current instance.
     453      this.alphaOptions = this._getAlphaOptions();
     454
     455      // Create widget.
    494456      this._super();
    495457    },
    496 
    497458    /**
    498459     * Binds event listeners to the color picker and create options, etc...
     
    507468        return this._super();
    508469      }
    509 
    510470      var self = this,
    511           el = self.element,
    512           isDeprecated = self.toggler.is('a');
     471        el = self.element,
     472        isDeprecated = self.toggler.is('a');
    513473      this.alphaOptions.defaultWidth = el.width();
    514 
    515474      if (this.alphaOptions.alphaCustomWidth) {
    516475        el.width(parseInt(this.alphaOptions.defaultWidth + this.alphaOptions.alphaCustomWidth, 10));
    517476      }
    518 
    519477      self.toggler.css({
    520478        'position': 'relative',
    521479        'background-image': 'url(' + backgroundImage + ')'
    522480      });
    523 
    524481      if (isDeprecated) {
    525482        self.toggler.html('<span class="color-alpha" />');
     
    527484        self.toggler.append('<span class="color-alpha" />');
    528485      }
    529 
    530486      self.colorAlpha = self.toggler.find('span.color-alpha').css({
    531487        'width': '30px',
     
    534490        'top': 0,
    535491        'background-color': el.val()
    536       }); // Define the correct position for ltr or rtl direction.
    537 
     492      });
     493
     494      // Define the correct position for ltr or rtl direction.
    538495      if ('ltr' === self.colorAlpha.css('direction')) {
    539496        self.colorAlpha.css({
     
    549506        });
    550507      }
    551 
    552508      el.iris({
    553509        /**
     
    567523          self.colorAlpha.css({
    568524            'background-color': ui.color.to_s(self.alphaOptions.alphaColorType)
    569           }); // fire change callback if we have one
    570 
     525          });
     526
     527          // fire change callback if we have one
    571528          if ($.isFunction(self.options.change)) {
    572529            self.options.change.call(this, event, ui);
     
    574531        }
    575532      });
     533
    576534      /**
    577535       * Prevent any clicks inside this widget from leaking to the top and closing it.
     
    583541       * @return {void}
    584542       */
    585 
    586543      self.wrap.on('click.wpcolorpicker', function (event) {
    587544        event.stopPropagation();
    588545      });
     546
    589547      /**
    590548       * Open or close the color picker depending on the class.
     
    592550       * @since 3.0.0
    593551       */
    594 
    595552      self.toggler.click(function () {
    596553        if (self.toggler.hasClass('wp-picker-open')) {
     
    600557        }
    601558      });
     559
    602560      /**
    603561       * Checks if value is empty when changing the color in the color picker.
     
    610568       * @return {void}
    611569       */
    612 
    613570      el.change(function (event) {
    614571        var val = $(this).val();
    615 
    616572        if (el.hasClass('iris-error') || val === '' || val.match(/^(#|(rgb|hsl)a?)$/)) {
    617573          if (isDeprecated) {
    618574            self.toggler.removeAttr('style');
    619575          }
    620 
    621           self.colorAlpha.css('background-color', ''); // fire clear callback if we have one
    622 
     576          self.colorAlpha.css('background-color', '');
     577
     578          // fire clear callback if we have one
    623579          if ($.isFunction(self.options.clear)) {
    624580            self.options.clear.call(this, event);
     
    626582        }
    627583      });
     584
    628585      /**
    629586       * Enables the user to either clear the color in the color picker or revert back to the default color.
     
    635592       * @return {void}
    636593       */
    637 
    638594      self.button.click(function (event) {
    639595        if ($(this).hasClass('wp-picker-default')) {
     
    641597        } else if ($(this).hasClass('wp-picker-clear')) {
    642598          el.val('');
    643 
    644599          if (isDeprecated) {
    645600            self.toggler.removeAttr('style');
    646601          }
    647 
    648           self.colorAlpha.css('background-color', ''); // fire clear callback if we have one
    649 
     602          self.colorAlpha.css('background-color', '');
     603
     604          // fire clear callback if we have one
    650605          if ($.isFunction(self.options.clear)) {
    651606            self.options.clear.call(this, event);
    652607          }
    653 
    654608          el.trigger('change');
    655609        }
  • woo-variation-swatches/trunk/assets/js/wp-color-picker-alpha.min.js

    r2759215 r3393500  
    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);
     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);
  • woo-variation-swatches/trunk/changelog.txt

    r3359797 r3393500  
    11*** Variation Swatches for WooCommerce ***
     2
     32025-11-11 - version 2.2.2
     4
     5* Added - WC 10.3+ compatibility.
    26
    372025-09-11 - version 2.2.1
  • woo-variation-swatches/trunk/includes/class-woo-variation-swatches-backend.php

    r3143748 r3393500  
    190190
    191191        public function admin_scripts() {
     192
     193
    192194            $suffix    = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    193195            $screen    = get_current_screen();
     
    197199            wp_enqueue_style( 'woo-variation-swatches-admin', woo_variation_swatches()->assets_url( "/css/admin{$suffix}.css" ), array(), woo_variation_swatches()->assets_version( "/css/admin{$suffix}.css" ) );
    198200
    199             if ( in_array( $screen_id, array( 'product' ), true ) ) {
    200                 wp_deregister_script( 'serializejson' );
    201                 wp_register_script( 'serializejson', woo_variation_swatches()->assets_url( "/js/jquery.serializejson{$suffix}.js" ), array( 'jquery' ), '3.2.1', true );
     201            $prefix_wc_handle = version_compare(WC()->version, '10.3', '>=') ? 'wc-':'';
     202            $serializejson_handle = sprintf( '%sserializejson', $prefix_wc_handle);
     203
     204            if ( 'product' === $screen_id ) {
     205                wp_deregister_script( $serializejson_handle );
     206                wp_register_script( $serializejson_handle, woo_variation_swatches()->assets_url( "/js/jquery.serializejson{$suffix}.js" ), array( 'jquery' ), '3.2.1', true );
    202207            }
    203208
     
    214219                'wp-color-picker-alpha',
    215220                'wc-enhanced-select',
    216                 'serializejson',
     221                $serializejson_handle,
    217222            ), woo_variation_swatches()->assets_version( "/js/admin{$suffix}.js" ), true );
    218223
     
    329334            foreach ( $taxonomy_attributes as $attribute ) {
    330335
    331                 // Skip taxonomy attributes that didn't match the query.
    332                 /*if ( false === stripos( $attribute->attribute_name, $attribute_name ) ) {
    333                     continue;
    334                 }*/
    335 
    336336                if ( $attribute->attribute_name !== $attribute_name ) {
    337337                    continue;
  • woo-variation-swatches/trunk/includes/class-woo-variation-swatches-product-page.php

    r3241269 r3393500  
    216216            // $is_defer = is_wp_version_compatible( '6.3' ) ? array( 'strategy' => 'defer' ) : true;
    217217
     218            $prefix_wc_handle = version_compare(WC()->version, '10.3', '>=') ? 'wc-':'';
     219            $jquery_blockui_handle = sprintf( '%sjquery-blockui', $prefix_wc_handle);
     220
    218221            wp_register_script( 'woo-variation-swatches', woo_variation_swatches()->assets_url( "/js/frontend{$suffix}.js" ), array(
    219222                'jquery',
    220223                'wp-util',
    221224                'underscore',
    222                 'jquery-blockui',
     225                $jquery_blockui_handle,
    223226                'wp-api-request',
    224227                'wp-api-fetch',
  • woo-variation-swatches/trunk/includes/getwooplugins/class-getwooplugins-admin-menus.php

    r3111209 r3393500  
    101101                wp_enqueue_style( 'getwooplugins_settings', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/css/getwooplugins-settings.css', array(), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'css/getwooplugins-settings.css' ) );
    102102
    103                 wp_enqueue_script( 'jquery-tiptip', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/js/jquery.tipTip.js', array( 'jquery' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'js/jquery.tipTip.js' ), true );
     103                wp_enqueue_script( 'gwp-jquery-tiptip', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/js/jquery.tipTip.js', array( 'jquery' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'js/jquery.tipTip.js' ), true );
    104104
    105105                wp_enqueue_script( 'gwp-form-field-dependency', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/js/getwooplugins-form-field-dependency.js', array( 'jquery' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'js/getwooplugins-form-field-dependency.js' ), true );
     
    116116                    'backbone',
    117117                    'wp-util',
    118                     'jquery-tiptip',
     118                    'gwp-jquery-tiptip',
    119119                    'iris'
    120120                );
  • woo-variation-swatches/trunk/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php

    r3098501 r3393500  
    3333                wp_enqueue_style( 'getwooplugins_settings', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'css/getwooplugins-settings.css', array( 'dashicons' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'css/getwooplugins-settings.css' ) );
    3434
    35                 wp_enqueue_script( 'jquery-tiptip', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/js/jquery.tipTip.js', array( 'jquery' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'js/jquery.tipTip.js' ), true );
     35                wp_enqueue_script( 'gwp-jquery-tiptip', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/js/jquery.tipTip.js', array( 'jquery' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'js/jquery.tipTip.js' ), true );
    3636
    3737                wp_enqueue_script( 'gwp-form-field-dependency', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/js/getwooplugins-form-field-dependency.js', array( 'jquery' ), filemtime( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'js/getwooplugins-form-field-dependency.js' ), true );
     
    4747                    'backbone',
    4848                    'wp-util',
    49                     'jquery-tiptip',
     49                    'gwp-jquery-tiptip',
    5050                    'iris'
    5151                );
  • woo-variation-swatches/trunk/languages/woo-variation-swatches.pot

    r3359797 r3393500  
    88"Content-Transfer-Encoding: 8bit\n"
    99"Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n"
    10 "POT-Creation-Date: 2025-09-11 11:36+0000\n"
     10"POT-Creation-Date: 2025-11-11 09:19+0000\n"
    1111"X-Poedit-Basepath: ..\n"
    1212"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"
     
    1616"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1717
    18 #: ../includes/class-woo-variation-swatches-backend.php:117
     18#: ../includes/class-woo-variation-swatches-backend.php:117, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:117
    1919msgid "View documentation"
    2020msgstr ""
    2121
    22 #: ../includes/class-woo-variation-swatches-backend.php:117, ../includes/html-settings-sidebar.php:7
     22#: ../includes/class-woo-variation-swatches-backend.php:117, ../includes/html-settings-sidebar.php:7, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:117, ../woo-variation-swatches/includes/html-settings-sidebar.php:7
    2323msgid "Documentation"
    2424msgstr ""
    2525
    26 #: ../includes/class-woo-variation-swatches-backend.php:118, ../includes/class-woo-variation-swatches-backend.php:118
     26#: ../includes/class-woo-variation-swatches-backend.php:118, ../includes/class-woo-variation-swatches-backend.php:118, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:118, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:118
    2727msgid "Video Tutorials"
    2828msgstr ""
    2929
    30 #: ../includes/class-woo-variation-swatches-backend.php:119, ../includes/class-woo-variation-swatches-backend.php:119
     30#: ../includes/class-woo-variation-swatches-backend.php:119, ../includes/class-woo-variation-swatches-backend.php:119, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:119, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:119
    3131msgid "Help & Support"
    3232msgstr ""
    3333
    34 #: ../includes/class-woo-variation-swatches-backend.php:127
     34#: ../includes/class-woo-variation-swatches-backend.php:127, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:127
    3535msgid "View Swatches settings"
    3636msgstr ""
    3737
    38 #: ../includes/class-woo-variation-swatches-backend.php:127
     38#: ../includes/class-woo-variation-swatches-backend.php:127, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:127
    3939msgid "Settings"
    4040msgstr ""
    4141
    42 #: ../includes/class-woo-variation-swatches-backend.php:132, ../includes/class-woo-variation-swatches-backend.php:132
     42#: ../includes/class-woo-variation-swatches-backend.php:132, ../includes/class-woo-variation-swatches-backend.php:132, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:132, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:132
    4343msgid "Go Pro"
    4444msgstr ""
    4545
    46 #: ../includes/class-woo-variation-swatches-backend.php:161
     46#: ../includes/class-woo-variation-swatches-backend.php:161, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:161
    4747msgid "Select values"
    4848msgstr ""
    4949
    50 #: ../includes/class-woo-variation-swatches-backend.php:182
     50#: ../includes/class-woo-variation-swatches-backend.php:182, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:182
    5151msgid "Select all"
    5252msgstr ""
    5353
    54 #: ../includes/class-woo-variation-swatches-backend.php:183
     54#: ../includes/class-woo-variation-swatches-backend.php:183, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:183
    5555msgid "Select none"
    5656msgstr ""
    5757
    58 #: ../includes/class-woo-variation-swatches-backend.php:184
     58#: ../includes/class-woo-variation-swatches-backend.php:184, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:184
    5959msgid "Create value"
    6060msgstr ""
    6161
    62 #: ../includes/class-woo-variation-swatches-backend.php:221, ../includes/class-woo-variation-swatches-backend.php:310
     62#: ../includes/class-woo-variation-swatches-backend.php:226, ../includes/class-woo-variation-swatches-backend.php:315, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:226, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:315
    6363msgid "Choose an Image"
    6464msgstr ""
    6565
    66 #: ../includes/class-woo-variation-swatches-backend.php:222
     66#: ../includes/class-woo-variation-swatches-backend.php:227, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:227
    6767msgid "Add Attribute"
    6868msgstr ""
    6969
    70 #: ../includes/class-woo-variation-swatches-backend.php:223
     70#: ../includes/class-woo-variation-swatches-backend.php:228, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:228
    7171msgid "Add"
    7272msgstr ""
    7373
    74 #: ../includes/class-woo-variation-swatches-backend.php:224
     74#: ../includes/class-woo-variation-swatches-backend.php:229, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:229
    7575msgid "Cancel"
    7676msgstr ""
    7777
    78 #: ../includes/class-woo-variation-swatches-backend.php:225
     78#: ../includes/class-woo-variation-swatches-backend.php:230, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:230
    7979msgid "Use Image"
    8080msgstr ""
    8181
    82 #: ../includes/class-woo-variation-swatches-backend.php:226
     82#: ../includes/class-woo-variation-swatches-backend.php:231, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:231
    8383msgid "Add Media"
    8484msgstr ""
    8585
    86 #: ../includes/class-woo-variation-swatches-backend.php:230
     86#: ../includes/class-woo-variation-swatches-backend.php:235, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:235
    8787msgid "Variation Swatches Settings"
    8888msgstr ""
    8989
    90 #: ../includes/class-woo-variation-swatches-backend.php:232
     90#: ../includes/class-woo-variation-swatches-backend.php:237, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:237
    9191msgid "Are you sure you want to reset it to default setting?"
    9292msgstr ""
    9393
    94 #: ../includes/class-woo-variation-swatches-backend.php:233
     94#: ../includes/class-woo-variation-swatches-backend.php:238, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:238
    9595msgid "Please save changed first."
    9696msgstr ""
    9797
    98 #: ../includes/class-woo-variation-swatches-backend.php:240
     98#: ../includes/class-woo-variation-swatches-backend.php:245, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:245
    9999msgid "Select"
    100100msgstr ""
    101101
    102 #: ../includes/class-woo-variation-swatches-backend.php:241, ../includes/class-woo-variation-swatches-backend.php:300
     102#: ../includes/class-woo-variation-swatches-backend.php:246, ../includes/class-woo-variation-swatches-backend.php:305, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:246, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:305
    103103msgid "Color"
    104104msgstr ""
    105105
    106 #: ../includes/class-woo-variation-swatches-backend.php:242, ../includes/class-woo-variation-swatches-backend.php:309
     106#: ../includes/class-woo-variation-swatches-backend.php:247, ../includes/class-woo-variation-swatches-backend.php:314, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:247, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:314
    107107msgid "Image"
    108108msgstr ""
    109109
    110 #: ../includes/class-woo-variation-swatches-backend.php:243
     110#: ../includes/class-woo-variation-swatches-backend.php:248, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:248
    111111msgid "Button"
    112112msgstr ""
    113113
    114 #: ../includes/class-woo-variation-swatches-backend.php:244
     114#: ../includes/class-woo-variation-swatches-backend.php:249, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:249
    115115msgid "Radio"
    116116msgstr ""
    117117
    118 #: ../includes/class-woo-variation-swatches-backend.php:252
     118#: ../includes/class-woo-variation-swatches-backend.php:257, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:257
    119119msgid "Mixed"
    120120msgstr ""
    121121
    122 #: ../includes/class-woo-variation-swatches-backend.php:301
     122#: ../includes/class-woo-variation-swatches-backend.php:306, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:306
    123123msgid "Choose a color"
    124124msgstr ""
    125125
    126 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:48
     126#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:48, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:48
    127127msgid "It's a temporary deactivation."
    128128msgstr ""
    129129
    130 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:53
     130#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:53, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:53
    131131msgid "I couldn't understand how to make it work."
    132132msgstr ""
    133133
    134 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:55
     134#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:55, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:55
    135135msgid "It converts variation select box to beautiful swatches.<br><a target=\"_blank\" href=\"https://demo.getwooplugins.com/woocommerce-variation-swatches/\">Please check live demo</a>."
    136136msgstr ""
    137137
    138 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:59
     138#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:59, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:59
    139139msgid "I no longer need the plugin."
    140140msgstr ""
    141141
    142 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:64
     142#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:64, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:64
    143143msgid "I found a better plugin."
    144144msgstr ""
    145145
    146 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:65
     146#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:65, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:65
    147147msgid "Please share which plugin."
    148148msgstr ""
    149149
    150 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:69
     150#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:69, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:69
    151151msgid "The plugin <strong>broke my layout</strong> or some functionality."
    152152msgstr ""
    153153
    154 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:71
     154#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:71, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:71
    155155msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/tickets/\">Please open a support ticket</a>, we will fix it immediately."
    156156msgstr ""
    157157
    158 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:75
     158#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:75, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:75
    159159msgid "I need someone to <strong>setup this plugin.</strong>"
    160160msgstr ""
    161161
    162 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:76
     162#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:76, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:76
    163163msgid "Your email address."
    164164msgstr ""
    165165
    166 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:78
     166#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:78, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:78
    167167msgid "Please provide your email address to contact with you <br>and help you to set up and configure this plugin."
    168168msgstr ""
    169169
    170 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:82
     170#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:82, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:82
    171171msgid "The plugin is <strong>too complicated to configure.</strong>"
    172172msgstr ""
    173173
    174 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:84
     174#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:84, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:84
    175175msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/documentation/woocommerce-variation-swatches/\">Have you checked our documentation?</a>."
    176176msgstr ""
    177177
    178 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:88
     178#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:88, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:88
    179179msgid "I need specific feature that you don't support."
    180180msgstr ""
    181181
    182 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:89
     182#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:89, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:89
    183183msgid "Please share with us."
    184184msgstr ""
    185185
    186 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:94
     186#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:94, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:94
    187187msgid "Other"
    188188msgstr ""
    189189
    190 #: ../includes/class-woo-variation-swatches-deactivate-feedback.php:95
     190#: ../includes/class-woo-variation-swatches-deactivate-feedback.php:95, ../woo-variation-swatches/includes/class-woo-variation-swatches-deactivate-feedback.php:95
    191191msgid "Please share the reason"
    192192msgstr ""
    193193
    194194#. translators: %s: image URL
    195 #: ../includes/class-woo-variation-swatches-export-import.php:253
     195#: ../includes/class-woo-variation-swatches-export-import.php:253, ../woo-variation-swatches/includes/class-woo-variation-swatches-export-import.php:253
    196196msgid "Not able to attach \"%s\"."
    197197msgstr ""
    198198
    199199#. translators: %s: image URL
    200 #: ../includes/class-woo-variation-swatches-export-import.php:262
     200#: ../includes/class-woo-variation-swatches-export-import.php:262, ../woo-variation-swatches/includes/class-woo-variation-swatches-export-import.php:262
    201201msgid "Unable to use image \"%s\"."
    202202msgstr ""
    203203
    204 #: ../includes/class-woo-variation-swatches-manage-cache.php:83
     204#: ../includes/class-woo-variation-swatches-manage-cache.php:83, ../woo-variation-swatches/includes/class-woo-variation-swatches-manage-cache.php:83
    205205msgid "Clear swatches transient"
    206206msgstr ""
    207207
    208 #: ../includes/class-woo-variation-swatches-product-edit-panel.php:31, ../includes/class-woo-variation-swatches-settings.php:29
     208#: ../includes/class-woo-variation-swatches-product-edit-panel.php:31, ../includes/class-woo-variation-swatches-settings.php:29, ../woo-variation-swatches/includes/class-woo-variation-swatches-product-edit-panel.php:31, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:29
    209209msgid "Swatches Settings"
    210210msgstr ""
    211211
    212212#. translators: %s Product Stock Left.
    213 #: ../includes/class-woo-variation-swatches-product-page.php:131
     213#: ../includes/class-woo-variation-swatches-product-page.php:131, ../woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:131
    214214msgid "%s left"
    215215msgstr ""
    216216
    217 #: ../includes/class-woo-variation-swatches-product-page.php:827, ../includes/class-woo-variation-swatches-product-page.php:853
     217#: ../includes/class-woo-variation-swatches-product-page.php:830, ../includes/class-woo-variation-swatches-product-page.php:856, ../woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:830, ../woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:856
    218218msgid "Choose an option"
    219219msgstr ""
    220220
    221 #: ../includes/class-woo-variation-swatches-settings.php:25
     221#: ../includes/class-woo-variation-swatches-settings.php:25, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:25
    222222msgid "Variation Swatches"
    223223msgstr ""
    224224
    225 #: ../includes/class-woo-variation-swatches-settings.php:33
     225#: ../includes/class-woo-variation-swatches-settings.php:33, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:33
    226226msgid "Variation Swatches for WooCommerce Settings"
    227227msgstr ""
    228228
    229 #: ../includes/class-woo-variation-swatches-settings.php:87, ../includes/class-woo-variation-swatches-settings.php:106
     229#: ../includes/class-woo-variation-swatches-settings.php:87, ../includes/class-woo-variation-swatches-settings.php:106, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:87, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:106
    230230msgid "See Documentation"
    231231msgstr ""
    232232
    233 #: ../includes/class-woo-variation-swatches-settings.php:89, ../includes/class-woo-variation-swatches-settings.php:220
     233#: ../includes/class-woo-variation-swatches-settings.php:89, ../includes/class-woo-variation-swatches-settings.php:220, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:89, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:220
    234234msgid "Help &amp; Support"
    235235msgstr ""
    236236
    237 #: ../includes/class-woo-variation-swatches-settings.php:103
     237#: ../includes/class-woo-variation-swatches-settings.php:103, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:103
    238238msgid "Buy Now"
    239239msgstr ""
    240240
    241 #: ../includes/class-woo-variation-swatches-settings.php:115
     241#: ../includes/class-woo-variation-swatches-settings.php:115, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:115
    242242msgid "Swatches Shape Style"
    243243msgstr ""
    244244
    245 #: ../includes/class-woo-variation-swatches-settings.php:121
     245#: ../includes/class-woo-variation-swatches-settings.php:121, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:121
    246246msgid "Swatches Default To Button"
    247247msgstr ""
    248248
    249 #: ../includes/class-woo-variation-swatches-settings.php:127
     249#: ../includes/class-woo-variation-swatches-settings.php:127, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:127
    250250msgid "Swatches Default To Image"
    251251msgstr ""
    252252
    253 #: ../includes/class-woo-variation-swatches-settings.php:133
     253#: ../includes/class-woo-variation-swatches-settings.php:133, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:133
    254254msgid "Swatches Clear on Reselect"
    255255msgstr ""
    256256
    257 #: ../includes/class-woo-variation-swatches-settings.php:139
     257#: ../includes/class-woo-variation-swatches-settings.php:139, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:139
    258258msgid "Swatches Hide Out Of Stock"
    259259msgstr ""
    260260
    261 #: ../includes/class-woo-variation-swatches-settings.php:145
     261#: ../includes/class-woo-variation-swatches-settings.php:145, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:145
    262262msgid "Swatches Clickable Out Of Stock"
    263263msgstr ""
    264264
    265 #: ../includes/class-woo-variation-swatches-settings.php:151
     265#: ../includes/class-woo-variation-swatches-settings.php:151, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:151
    266266msgid "Swatches Show variation stock info."
    267267msgstr ""
    268268
    269 #: ../includes/class-woo-variation-swatches-settings.php:157
     269#: ../includes/class-woo-variation-swatches-settings.php:157, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:157
    270270msgid "Swatches Attribute Display Limit"
    271271msgstr ""
    272272
    273 #: ../includes/class-woo-variation-swatches-settings.php:163
     273#: ../includes/class-woo-variation-swatches-settings.php:163, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:163
    274274msgid "Swatches Show Product Availability"
    275275msgstr ""
    276276
    277 #: ../includes/class-woo-variation-swatches-settings.php:169
     277#: ../includes/class-woo-variation-swatches-settings.php:169, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:169
    278278msgid "Swatches Display Position"
    279279msgstr ""
    280280
    281 #: ../includes/class-woo-variation-swatches-settings.php:175
     281#: ../includes/class-woo-variation-swatches-settings.php:175, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:175
    282282msgid "Swatches Display On Widget"
    283283msgstr ""
    284284
    285 #: ../includes/class-woo-variation-swatches-settings.php:181
     285#: ../includes/class-woo-variation-swatches-settings.php:181, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:181
    286286msgid "Swatches Show as catalog mode"
    287287msgstr ""
    288288
    289 #: ../includes/class-woo-variation-swatches-settings.php:187, ../includes/class-woo-variation-swatches-settings.php:193, ../includes/class-woo-variation-swatches-settings.php:199
     289#: ../includes/class-woo-variation-swatches-settings.php:187, ../includes/class-woo-variation-swatches-settings.php:193, ../includes/class-woo-variation-swatches-settings.php:199, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:187, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:193, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:199
    290290msgid "Swatches Show variation preview"
    291291msgstr ""
    292292
    293 #: ../includes/class-woo-variation-swatches-settings.php:205
     293#: ../includes/class-woo-variation-swatches-settings.php:205, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:205
    294294msgid "Swatches Disabled Attribute style"
    295295msgstr ""
    296296
    297 #: ../includes/class-woo-variation-swatches-settings.php:211
     297#: ../includes/class-woo-variation-swatches-settings.php:211, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:211
    298298msgid "Swatches Generate Sharable URL"
    299299msgstr ""
    300300
    301 #: ../includes/class-woo-variation-swatches-settings.php:218
     301#: ../includes/class-woo-variation-swatches-settings.php:218, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:218
    302302msgid "Get license"
    303303msgstr ""
    304304
    305 #: ../includes/class-woo-variation-swatches-settings.php:224
     305#: ../includes/class-woo-variation-swatches-settings.php:224, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:224
    306306msgid "Swatches License"
    307307msgstr ""
    308308
    309 #: ../includes/class-woo-variation-swatches-settings.php:230
     309#: ../includes/class-woo-variation-swatches-settings.php:230, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:230
    310310msgid "Swatches On Archive Page"
    311311msgstr ""
    312312
    313 #: ../includes/class-woo-variation-swatches-settings.php:236
     313#: ../includes/class-woo-variation-swatches-settings.php:236, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:236
    314314msgid "Swatches Archive Default Selected"
    315315msgstr ""
    316316
    317 #: ../includes/class-woo-variation-swatches-settings.php:242
     317#: ../includes/class-woo-variation-swatches-settings.php:242, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:242
    318318msgid "Swatches Settings Reset."
    319319msgstr ""
    320320
    321 #: ../includes/class-woo-variation-swatches-settings.php:296, ../includes/getwooplugins/class-getwooplugins-settings-page.php:128
     321#: ../includes/class-woo-variation-swatches-settings.php:296, ../includes/getwooplugins/class-getwooplugins-settings-page.php:128, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:296, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-settings-page.php:128
    322322msgid "General"
    323323msgstr ""
    324324
    325 #: ../includes/class-woo-variation-swatches-settings.php:297
     325#: ../includes/class-woo-variation-swatches-settings.php:297, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:297
    326326msgid "Advanced"
    327327msgstr ""
    328328
    329 #: ../includes/class-woo-variation-swatches-settings.php:298
     329#: ../includes/class-woo-variation-swatches-settings.php:298, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:298
    330330msgid "Styling"
    331331msgstr ""
    332332
    333 #: ../includes/class-woo-variation-swatches-settings.php:299
     333#: ../includes/class-woo-variation-swatches-settings.php:299, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:299
    334334msgid "Product Page"
    335335msgstr ""
    336336
    337 #: ../includes/class-woo-variation-swatches-settings.php:300
     337#: ../includes/class-woo-variation-swatches-settings.php:300, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:300
    338338msgid "Archive / Shop"
    339339msgstr ""
    340340
    341 #: ../includes/class-woo-variation-swatches-settings.php:301
     341#: ../includes/class-woo-variation-swatches-settings.php:301, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:301
    342342msgid "Special Attributes"
    343343msgstr ""
    344344
    345 #: ../includes/class-woo-variation-swatches-settings.php:302, ../includes/class-woo-variation-swatches-term-meta.php:195
     345#: ../includes/class-woo-variation-swatches-settings.php:302, ../includes/class-woo-variation-swatches-term-meta.php:195, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:302, ../woo-variation-swatches/includes/class-woo-variation-swatches-term-meta.php:195
    346346msgid "Group"
    347347msgstr ""
    348348
    349 #: ../includes/class-woo-variation-swatches-settings.php:304
     349#: ../includes/class-woo-variation-swatches-settings.php:304, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:304
    350350msgid "License"
    351351msgstr ""
    352352
    353 #: ../includes/class-woo-variation-swatches-settings.php:307
     353#: ../includes/class-woo-variation-swatches-settings.php:307, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:307
    354354msgid "Tutorial"
    355355msgstr ""
    356356
    357 #: ../includes/class-woo-variation-swatches-settings.php:312
     357#: ../includes/class-woo-variation-swatches-settings.php:312, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:312
    358358msgid "Useful Free Plugins"
    359359msgstr ""
    360360
    361 #: ../includes/class-woo-variation-swatches-settings.php:337
     361#: ../includes/class-woo-variation-swatches-settings.php:337, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:337
    362362msgid "General options"
    363363msgstr ""
    364364
    365 #: ../includes/class-woo-variation-swatches-settings.php:344
     365#: ../includes/class-woo-variation-swatches-settings.php:344, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:344
    366366msgid "Enable Stylesheet"
    367367msgstr ""
    368368
    369 #: ../includes/class-woo-variation-swatches-settings.php:345
     369#: ../includes/class-woo-variation-swatches-settings.php:345, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:345
    370370msgid "Enable default stylesheet."
    371371msgstr ""
    372372
    373 #: ../includes/class-woo-variation-swatches-settings.php:352
     373#: ../includes/class-woo-variation-swatches-settings.php:352, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:352
    374374msgid "Enable Tooltip"
    375375msgstr ""
    376376
    377 #: ../includes/class-woo-variation-swatches-settings.php:353
     377#: ../includes/class-woo-variation-swatches-settings.php:353, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:353
    378378msgid "Enable tooltip on each product attribute."
    379379msgstr ""
    380380
    381 #: ../includes/class-woo-variation-swatches-settings.php:360
     381#: ../includes/class-woo-variation-swatches-settings.php:360, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:360
    382382msgid "Shape Style"
    383383msgstr ""
    384384
    385 #: ../includes/class-woo-variation-swatches-settings.php:362
     385#: ../includes/class-woo-variation-swatches-settings.php:362, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:362
    386386msgid "This controls which shape style used by default."
    387387msgstr ""
    388388
    389 #: ../includes/class-woo-variation-swatches-settings.php:366
     389#: ../includes/class-woo-variation-swatches-settings.php:366, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:366
    390390msgid "Rounded Shape"
    391391msgstr ""
    392392
    393 #: ../includes/class-woo-variation-swatches-settings.php:367
     393#: ../includes/class-woo-variation-swatches-settings.php:367, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:367
    394394msgid "Squared Shape"
    395395msgstr ""
    396396
    397 #: ../includes/class-woo-variation-swatches-settings.php:374
     397#: ../includes/class-woo-variation-swatches-settings.php:374, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:374
    398398msgid "Dropdowns to Button"
    399399msgstr ""
    400400
    401 #: ../includes/class-woo-variation-swatches-settings.php:375
     401#: ../includes/class-woo-variation-swatches-settings.php:375, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:375
    402402msgid "Convert default dropdowns to button."
    403403msgstr ""
    404404
    405 #: ../includes/class-woo-variation-swatches-settings.php:384
     405#: ../includes/class-woo-variation-swatches-settings.php:384, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:384
    406406msgid "Dropdowns to Image"
    407407msgstr ""
    408408
    409 #: ../includes/class-woo-variation-swatches-settings.php:385
     409#: ../includes/class-woo-variation-swatches-settings.php:385, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:385
    410410msgid "Convert default dropdowns to image type if variation has an image."
    411411msgstr ""
    412412
    413 #: ../includes/class-woo-variation-swatches-settings.php:402
     413#: ../includes/class-woo-variation-swatches-settings.php:402, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:402
    414414msgid "Media Settings"
    415415msgstr ""
    416416
    417 #: ../includes/class-woo-variation-swatches-settings.php:403
     417#: ../includes/class-woo-variation-swatches-settings.php:403, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:403
    418418msgid "Regenerate Thumbnails"
    419419msgstr ""
    420420
    421421#. translators: %s: filter name
    422 #: ../includes/class-woo-variation-swatches-settings.php:406
     422#: ../includes/class-woo-variation-swatches-settings.php:406, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:406
    423423msgid "Attribute image size can be changed by %s filter hook. So this option will not apply any effect."
    424424msgstr ""
    425425
    426426#. translators: %1$s = Media Settings Link, %2$s = Regenerate Thumbnails Plugin name
    427 #: ../includes/class-woo-variation-swatches-settings.php:408
     427#: ../includes/class-woo-variation-swatches-settings.php:408, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:408
    428428msgid "Choose attribute image size. %1$s or use %2$s plugin."
    429429msgstr ""
    430430
    431 #: ../includes/class-woo-variation-swatches-settings.php:419
     431#: ../includes/class-woo-variation-swatches-settings.php:419, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:419
    432432msgid "Advanced options"
    433433msgstr ""
    434434
    435 #: ../includes/class-woo-variation-swatches-settings.php:426
     435#: ../includes/class-woo-variation-swatches-settings.php:426, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:426
    436436msgid "Clear on Reselect"
    437437msgstr ""
    438438
    439 #: ../includes/class-woo-variation-swatches-settings.php:427
     439#: ../includes/class-woo-variation-swatches-settings.php:427, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:427
    440440msgid "Clear selected attribute on select again."
    441441msgstr ""
    442442
    443 #: ../includes/class-woo-variation-swatches-settings.php:435
     443#: ../includes/class-woo-variation-swatches-settings.php:435, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:435
    444444msgid "Disable Out of Stock"
    445445msgstr ""
    446446
    447 #: ../includes/class-woo-variation-swatches-settings.php:436
     447#: ../includes/class-woo-variation-swatches-settings.php:436, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:436
    448448msgid "Disable Out Of Stock item."
    449449msgstr ""
    450450
    451 #: ../includes/class-woo-variation-swatches-settings.php:445
     451#: ../includes/class-woo-variation-swatches-settings.php:445, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:445
    452452msgid "Clickable Out Of Stock"
    453453msgstr ""
    454454
    455 #: ../includes/class-woo-variation-swatches-settings.php:446
     455#: ../includes/class-woo-variation-swatches-settings.php:446, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:446
    456456msgid "Clickable Out Of Stock item."
    457457msgstr ""
    458458
    459 #: ../includes/class-woo-variation-swatches-settings.php:455
     459#: ../includes/class-woo-variation-swatches-settings.php:455, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:455
    460460msgid "Disabled Attribute style"
    461461msgstr ""
    462462
    463 #: ../includes/class-woo-variation-swatches-settings.php:456
     463#: ../includes/class-woo-variation-swatches-settings.php:456, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:456
    464464msgid "Disabled / Out Of Stock attribute will be hide / blur / crossed."
    465465msgstr ""
    466466
    467 #: ../includes/class-woo-variation-swatches-settings.php:459
     467#: ../includes/class-woo-variation-swatches-settings.php:459, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:459
    468468msgid "Blur with cross"
    469469msgstr ""
    470470
    471 #: ../includes/class-woo-variation-swatches-settings.php:460
     471#: ../includes/class-woo-variation-swatches-settings.php:460, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:460
    472472msgid "Blur without cross"
    473473msgstr ""
    474474
    475 #: ../includes/class-woo-variation-swatches-settings.php:461
     475#: ../includes/class-woo-variation-swatches-settings.php:461, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:461
    476476msgid "Hide"
    477477msgstr ""
    478478
    479 #: ../includes/class-woo-variation-swatches-settings.php:471
     479#: ../includes/class-woo-variation-swatches-settings.php:471, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:471
    480480msgid "Attribute image size"
    481481msgstr ""
    482482
    483 #: ../includes/class-woo-variation-swatches-settings.php:494
     483#: ../includes/class-woo-variation-swatches-settings.php:494, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:494
    484484msgid "Swatches indicator"
    485485msgstr ""
    486486
    487 #: ../includes/class-woo-variation-swatches-settings.php:495
     487#: ../includes/class-woo-variation-swatches-settings.php:495, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:495
    488488msgid "Change swatches indicator color"
    489489msgstr ""
    490490
    491 #: ../includes/class-woo-variation-swatches-settings.php:501
     491#: ../includes/class-woo-variation-swatches-settings.php:501, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:501
    492492msgid "Tick Color"
    493493msgstr ""
    494494
    495 #: ../includes/class-woo-variation-swatches-settings.php:502
     495#: ../includes/class-woo-variation-swatches-settings.php:502, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:502
    496496msgid "Swatches Selected tick color. Default is: #ffffff"
    497497msgstr ""
    498498
    499 #: ../includes/class-woo-variation-swatches-settings.php:513
     499#: ../includes/class-woo-variation-swatches-settings.php:513, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:513
    500500msgid "Cross Color"
    501501msgstr ""
    502502
    503 #: ../includes/class-woo-variation-swatches-settings.php:514
     503#: ../includes/class-woo-variation-swatches-settings.php:514, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:514
    504504msgid "Swatches cross color. Default is: #ff0000"
    505505msgstr ""
    506506
    507 #: ../includes/class-woo-variation-swatches-settings.php:531
     507#: ../includes/class-woo-variation-swatches-settings.php:531, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:531
    508508msgid "Product Page Swatches Size"
    509509msgstr ""
    510510
    511 #: ../includes/class-woo-variation-swatches-settings.php:532
     511#: ../includes/class-woo-variation-swatches-settings.php:532, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:532
    512512msgid "Change swatches style on product page"
    513513msgstr ""
    514514
    515 #: ../includes/class-woo-variation-swatches-settings.php:538
     515#: ../includes/class-woo-variation-swatches-settings.php:538, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:538
    516516msgid "Width"
    517517msgstr ""
    518518
    519 #: ../includes/class-woo-variation-swatches-settings.php:539
     519#: ../includes/class-woo-variation-swatches-settings.php:539, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:539
    520520msgid "Single product variation item width. Default is: 30"
    521521msgstr ""
    522522
    523 #: ../includes/class-woo-variation-swatches-settings.php:553
     523#: ../includes/class-woo-variation-swatches-settings.php:553, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:553
    524524msgid "Height"
    525525msgstr ""
    526526
    527 #: ../includes/class-woo-variation-swatches-settings.php:554
     527#: ../includes/class-woo-variation-swatches-settings.php:554, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:554
    528528msgid "Single product variation item height. Default is: 30"
    529529msgstr ""
    530530
    531 #: ../includes/class-woo-variation-swatches-settings.php:568
     531#: ../includes/class-woo-variation-swatches-settings.php:568, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:568
    532532msgid "Font Size"
    533533msgstr ""
    534534
    535 #: ../includes/class-woo-variation-swatches-settings.php:569
     535#: ../includes/class-woo-variation-swatches-settings.php:569, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:569
    536536msgid "Single product variation item font size. Default is: 16"
    537537msgstr ""
    538538
    539 #: ../includes/class-woo-variation-swatches-settings.php:595
     539#: ../includes/class-woo-variation-swatches-settings.php:595, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:595
    540540msgid "Single Product Page"
    541541msgstr ""
    542542
    543 #: ../includes/class-woo-variation-swatches-settings.php:596
     543#: ../includes/class-woo-variation-swatches-settings.php:596, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:596
    544544msgid "Settings for single product page"
    545545msgstr ""
    546546
    547 #: ../includes/class-woo-variation-swatches-settings.php:602
     547#: ../includes/class-woo-variation-swatches-settings.php:602, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:602
    548548msgid "Show selected attribute"
    549549msgstr ""
    550550
    551 #: ../includes/class-woo-variation-swatches-settings.php:603
     551#: ../includes/class-woo-variation-swatches-settings.php:603, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:603
    552552msgid "Show selected attribute variation name beside the title."
    553553msgstr ""
    554554
    555 #: ../includes/class-woo-variation-swatches-settings.php:611
     555#: ../includes/class-woo-variation-swatches-settings.php:611, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:611
    556556msgid "Variation label separator"
    557557msgstr ""
    558558
    559559#. translators: %s: default separator :
    560 #: ../includes/class-woo-variation-swatches-settings.php:613
     560#: ../includes/class-woo-variation-swatches-settings.php:613, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:613
    561561msgid "Variation label separator. Default: %s."
    562562msgstr ""
    563563
    564 #: ../includes/class-woo-variation-swatches-settings.php:629, ../includes/class-woo-variation-swatches-settings.php:704
     564#: ../includes/class-woo-variation-swatches-settings.php:629, ../includes/class-woo-variation-swatches-settings.php:704, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:629, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:704
    565565msgid "Enable Preloader"
    566566msgstr ""
    567567
    568 #: ../includes/class-woo-variation-swatches-settings.php:630
     568#: ../includes/class-woo-variation-swatches-settings.php:630, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:630
    569569msgid "Enable single product page swatches preloader."
    570570msgstr ""
    571571
    572 #: ../includes/class-woo-variation-swatches-settings.php:638
     572#: ../includes/class-woo-variation-swatches-settings.php:638, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:638
    573573msgid "Generate variation url"
    574574msgstr ""
    575575
    576 #: ../includes/class-woo-variation-swatches-settings.php:639
     576#: ../includes/class-woo-variation-swatches-settings.php:639, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:639
    577577msgid "Generate sharable url based on selected variation attributes."
    578578msgstr ""
    579579
    580 #: ../includes/class-woo-variation-swatches-settings.php:647
     580#: ../includes/class-woo-variation-swatches-settings.php:647, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:647
    581581msgid "Variation stock info"
    582582msgstr ""
    583583
    584 #: ../includes/class-woo-variation-swatches-settings.php:648
     584#: ../includes/class-woo-variation-swatches-settings.php:648, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:648
    585585msgid "Show variation product stock info."
    586586msgstr ""
    587587
    588 #: ../includes/class-woo-variation-swatches-settings.php:657
     588#: ../includes/class-woo-variation-swatches-settings.php:657, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:657
    589589msgid "Attribute display limit"
    590590msgstr ""
    591591
    592 #: ../includes/class-woo-variation-swatches-settings.php:658
     592#: ../includes/class-woo-variation-swatches-settings.php:658, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:658
    593593msgid "Single Product page attribute display limit. Default is 0. Means no limit."
    594594msgstr ""
    595595
    596 #: ../includes/class-woo-variation-swatches-settings.php:678
     596#: ../includes/class-woo-variation-swatches-settings.php:678, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:678
    597597msgid "Note:"
    598598msgstr ""
    599599
    600 #: ../includes/class-woo-variation-swatches-settings.php:679
     600#: ../includes/class-woo-variation-swatches-settings.php:679, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:679
    601601msgid "please open a ticket"
    602602msgstr ""
    603603
    604604#. translators: %1$s = Note markup, %2$s = Open ticket link.
    605 #: ../includes/class-woo-variation-swatches-settings.php:681
     605#: ../includes/class-woo-variation-swatches-settings.php:681, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:681
    606606msgid "Show archive swatches position. %1$s Some theme remove default woocommerce hooks that why it's may not work as expected. For theme compatibility %2$s."
    607607msgstr ""
    608608
    609 #: ../includes/class-woo-variation-swatches-settings.php:688
     609#: ../includes/class-woo-variation-swatches-settings.php:688, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:688
    610610msgid "Visual Section"
    611611msgstr ""
    612612
    613 #: ../includes/class-woo-variation-swatches-settings.php:689
     613#: ../includes/class-woo-variation-swatches-settings.php:689, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:689
    614614msgid "Advanced change some visual styles on shop / archive page"
    615615msgstr ""
    616616
    617 #: ../includes/class-woo-variation-swatches-settings.php:695
     617#: ../includes/class-woo-variation-swatches-settings.php:695, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:695
    618618msgid "Enable Swatches"
    619619msgstr ""
    620620
    621 #: ../includes/class-woo-variation-swatches-settings.php:696
     621#: ../includes/class-woo-variation-swatches-settings.php:696, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:696
    622622msgid "Show swatches on archive / shop page."
    623623msgstr ""
    624624
    625 #: ../includes/class-woo-variation-swatches-settings.php:705
     625#: ../includes/class-woo-variation-swatches-settings.php:705, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:705
    626626msgid "Enable archive page swatches preloader."
    627627msgstr ""
    628628
    629 #: ../includes/class-woo-variation-swatches-settings.php:713
     629#: ../includes/class-woo-variation-swatches-settings.php:713, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:713
    630630msgid "Show Product Availability"
    631631msgstr ""
    632632
    633 #: ../includes/class-woo-variation-swatches-settings.php:714
     633#: ../includes/class-woo-variation-swatches-settings.php:714, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:714
    634634msgid "Show Product availability stock info."
    635635msgstr ""
    636636
    637 #: ../includes/class-woo-variation-swatches-settings.php:725
     637#: ../includes/class-woo-variation-swatches-settings.php:725, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:725
    638638msgid "Show default selected"
    639639msgstr ""
    640640
    641 #: ../includes/class-woo-variation-swatches-settings.php:726
     641#: ../includes/class-woo-variation-swatches-settings.php:726, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:726
    642642msgid "Show default selected attribute swatches on archive / shop page."
    643643msgstr ""
    644644
    645 #: ../includes/class-woo-variation-swatches-settings.php:735
     645#: ../includes/class-woo-variation-swatches-settings.php:735, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:735
    646646msgid "Display position"
    647647msgstr ""
    648648
    649 #: ../includes/class-woo-variation-swatches-settings.php:740
     649#: ../includes/class-woo-variation-swatches-settings.php:740, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:740
    650650msgid "Before add to cart button"
    651651msgstr ""
    652652
    653 #: ../includes/class-woo-variation-swatches-settings.php:741
     653#: ../includes/class-woo-variation-swatches-settings.php:741, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:741
    654654msgid "After add to cart button"
    655655msgstr ""
    656656
    657 #: ../includes/class-woo-variation-swatches-settings.php:750
     657#: ../includes/class-woo-variation-swatches-settings.php:750, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:750
    658658msgid "Swatches align"
    659659msgstr ""
    660660
    661 #: ../includes/class-woo-variation-swatches-settings.php:751
     661#: ../includes/class-woo-variation-swatches-settings.php:751, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:751
    662662msgid "Swatches align on archive page"
    663663msgstr ""
    664664
    665 #: ../includes/class-woo-variation-swatches-settings.php:756
     665#: ../includes/class-woo-variation-swatches-settings.php:756, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:756
    666666msgid "Left"
    667667msgstr ""
    668668
    669 #: ../includes/class-woo-variation-swatches-settings.php:757
     669#: ../includes/class-woo-variation-swatches-settings.php:757, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:757
    670670msgid "Center"
    671671msgstr ""
    672672
    673 #: ../includes/class-woo-variation-swatches-settings.php:758
     673#: ../includes/class-woo-variation-swatches-settings.php:758, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:758
    674674msgid "Right"
    675675msgstr ""
    676676
    677 #: ../includes/class-woo-variation-swatches-settings.php:766
     677#: ../includes/class-woo-variation-swatches-settings.php:766, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:766
    678678msgid "Show on filter widget"
    679679msgstr ""
    680680
    681 #: ../includes/class-woo-variation-swatches-settings.php:767
     681#: ../includes/class-woo-variation-swatches-settings.php:767, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:767
    682682msgid "Show variation swatches on filter widget."
    683683msgstr ""
    684684
    685 #: ../includes/class-woo-variation-swatches-settings.php:788
     685#: ../includes/class-woo-variation-swatches-settings.php:788, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:788
    686686msgid "Catalog mode"
    687687msgstr ""
    688688
    689 #: ../includes/class-woo-variation-swatches-settings.php:789
     689#: ../includes/class-woo-variation-swatches-settings.php:789, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:789
    690690msgid "Show single attribute as catalog mode on shop / archive pages. Catalog mode only change image based on selected variation."
    691691msgstr ""
    692692
    693 #: ../includes/class-woo-variation-swatches-settings.php:795
     693#: ../includes/class-woo-variation-swatches-settings.php:795, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:795
    694694msgid "Show Single Attribute"
    695695msgstr ""
    696696
    697 #: ../includes/class-woo-variation-swatches-settings.php:796
     697#: ../includes/class-woo-variation-swatches-settings.php:796, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:796
    698698msgid "Show Single Attribute taxonomies on archive page."
    699699msgstr ""
    700700
    701 #: ../includes/class-woo-variation-swatches-settings.php:809
     701#: ../includes/class-woo-variation-swatches-settings.php:809, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:809
    702702msgid "Single Variation Image Preview"
    703703msgstr ""
    704704
    705 #: ../includes/class-woo-variation-swatches-settings.php:810
     705#: ../includes/class-woo-variation-swatches-settings.php:810, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:810
    706706msgid "Switch variation image when single attribute selected on product page."
    707707msgstr ""
    708708
    709 #: ../includes/class-woo-variation-swatches-settings.php:816
     709#: ../includes/class-woo-variation-swatches-settings.php:816, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:816
    710710msgid "Variation Image Preview"
    711711msgstr ""
    712712
    713 #: ../includes/class-woo-variation-swatches-settings.php:817
     713#: ../includes/class-woo-variation-swatches-settings.php:817, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:817
    714714msgid "Show single attribute variation image based on first attribute select on product page."
    715715msgstr ""
    716716
    717 #: ../includes/class-woo-variation-swatches-settings.php:831
     717#: ../includes/class-woo-variation-swatches-settings.php:831, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:831
    718718msgid "Large Size Attribute Section"
    719719msgstr ""
    720720
    721 #: ../includes/class-woo-variation-swatches-settings.php:832
     721#: ../includes/class-woo-variation-swatches-settings.php:832, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:832
    722722msgid "Make a attribute taxonomies size large on single product"
    723723msgstr ""
    724724
    725 #: ../includes/class-woo-variation-swatches-settings.php:838
     725#: ../includes/class-woo-variation-swatches-settings.php:838, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:838
    726726msgid "Show First Attribute In Large Size"
    727727msgstr ""
    728728
    729 #: ../includes/class-woo-variation-swatches-settings.php:839
     729#: ../includes/class-woo-variation-swatches-settings.php:839, ../woo-variation-swatches/includes/class-woo-variation-swatches-settings.php:839
    730730msgid "Show Attribute taxonomies in large size."
    731731msgstr ""
    732732
    733 #: ../includes/class-woo-variation-swatches-term-meta.php:418
     733#: ../includes/class-woo-variation-swatches-term-meta.php:418, ../woo-variation-swatches/includes/class-woo-variation-swatches-term-meta.php:418
    734734msgid "Upload / Add image"
    735735msgstr ""
    736736
    737 #: ../includes/class-woo-variation-swatches-term-meta.php:424
     737#: ../includes/class-woo-variation-swatches-term-meta.php:424, ../woo-variation-swatches/includes/class-woo-variation-swatches-term-meta.php:424
    738738msgid "Remove image"
    739739msgstr ""
    740740
    741741#. translators: %1$s = Template location, %2$s = Template Name.
    742 #: ../includes/class-woo-variation-swatches.php:240
     742#: ../includes/class-woo-variation-swatches.php:240, ../woo-variation-swatches/includes/class-woo-variation-swatches.php:240
    743743msgid "\"Variation Swatches for WooCommerce\" Plugin try to load \"%1$s\" but template \"%2$s\" was not found."
    744744msgstr ""
    745745
    746 #: ../includes/html-product-settings-panel.php:60, ../includes/html-settings-sidebar.php:29
     746#: ../includes/html-product-settings-panel.php:60, ../includes/html-settings-sidebar.php:29, ../woo-variation-swatches/includes/html-product-settings-panel.php:60, ../woo-variation-swatches/includes/html-settings-sidebar.php:29
    747747msgid "Variation Swatches for WooCommerce"
    748748msgstr ""
    749749
    750750#. translators: %s: Pro Link
    751 #: ../includes/html-product-settings-panel.php:62
     751#: ../includes/html-product-settings-panel.php:62, ../woo-variation-swatches/includes/html-product-settings-panel.php:62
    752752msgid "With the premium version of %s, you can do:"
    753753msgstr ""
    754754
    755 #: ../includes/html-product-settings-panel.php:68
     755#: ../includes/html-product-settings-panel.php:68, ../woo-variation-swatches/includes/html-product-settings-panel.php:68
    756756msgid "Individual Product Basis Attribute Variation Swatches Customization"
    757757msgstr ""
    758758
    759 #: ../includes/html-product-settings-panel.php:71, ../includes/html-product-settings-panel.php:79, ../includes/html-product-settings-panel.php:94, ../includes/html-product-settings-panel.php:102, ../includes/html-product-settings-panel.php:110, ../includes/html-product-settings-panel.php:118, ../includes/html-product-settings-panel.php:126, ../includes/html-product-settings-panel.php:134, ../includes/html-product-settings-panel.php:142, ../includes/html-product-settings-panel.php:150, ../includes/html-product-settings-panel.php:165, ../includes/html-product-settings-panel.php:180
     759#: ../includes/html-product-settings-panel.php:71, ../includes/html-product-settings-panel.php:79, ../includes/html-product-settings-panel.php:94, ../includes/html-product-settings-panel.php:102, ../includes/html-product-settings-panel.php:110, ../includes/html-product-settings-panel.php:118, ../includes/html-product-settings-panel.php:126, ../includes/html-product-settings-panel.php:134, ../includes/html-product-settings-panel.php:142, ../includes/html-product-settings-panel.php:150, ../includes/html-product-settings-panel.php:165, ../includes/html-product-settings-panel.php:180, ../woo-variation-swatches/includes/html-product-settings-panel.php:71, ../woo-variation-swatches/includes/html-product-settings-panel.php:79, ../woo-variation-swatches/includes/html-product-settings-panel.php:94, ../woo-variation-swatches/includes/html-product-settings-panel.php:102, ../woo-variation-swatches/includes/html-product-settings-panel.php:110, ../woo-variation-swatches/includes/html-product-settings-panel.php:118, ../woo-variation-swatches/includes/html-product-settings-panel.php:126, ../woo-variation-swatches/includes/html-product-settings-panel.php:134, ../woo-variation-swatches/includes/html-product-settings-panel.php:142, ../woo-variation-swatches/includes/html-product-settings-panel.php:150, ../woo-variation-swatches/includes/html-product-settings-panel.php:165, ../woo-variation-swatches/includes/html-product-settings-panel.php:180
    760760msgid "Live Demo"
    761761msgstr ""
    762762
    763 #: ../includes/html-product-settings-panel.php:72, ../includes/html-product-settings-panel.php:80, ../includes/html-product-settings-panel.php:87, ../includes/html-product-settings-panel.php:95, ../includes/html-product-settings-panel.php:103, ../includes/html-product-settings-panel.php:111, ../includes/html-product-settings-panel.php:119, ../includes/html-product-settings-panel.php:127, ../includes/html-product-settings-panel.php:135, ../includes/html-product-settings-panel.php:143, ../includes/html-product-settings-panel.php:151, ../includes/html-product-settings-panel.php:166, ../includes/html-product-settings-panel.php:181
     763#: ../includes/html-product-settings-panel.php:72, ../includes/html-product-settings-panel.php:80, ../includes/html-product-settings-panel.php:87, ../includes/html-product-settings-panel.php:95, ../includes/html-product-settings-panel.php:103, ../includes/html-product-settings-panel.php:111, ../includes/html-product-settings-panel.php:119, ../includes/html-product-settings-panel.php:127, ../includes/html-product-settings-panel.php:135, ../includes/html-product-settings-panel.php:143, ../includes/html-product-settings-panel.php:151, ../includes/html-product-settings-panel.php:166, ../includes/html-product-settings-panel.php:181, ../woo-variation-swatches/includes/html-product-settings-panel.php:72, ../woo-variation-swatches/includes/html-product-settings-panel.php:80, ../woo-variation-swatches/includes/html-product-settings-panel.php:87, ../woo-variation-swatches/includes/html-product-settings-panel.php:95, ../woo-variation-swatches/includes/html-product-settings-panel.php:103, ../woo-variation-swatches/includes/html-product-settings-panel.php:111, ../woo-variation-swatches/includes/html-product-settings-panel.php:119, ../woo-variation-swatches/includes/html-product-settings-panel.php:127, ../woo-variation-swatches/includes/html-product-settings-panel.php:135, ../woo-variation-swatches/includes/html-product-settings-panel.php:143, ../woo-variation-swatches/includes/html-product-settings-panel.php:151, ../woo-variation-swatches/includes/html-product-settings-panel.php:166, ../woo-variation-swatches/includes/html-product-settings-panel.php:181
    764764msgid "Video Tutorial"
    765765msgstr ""
    766766
    767 #: ../includes/html-product-settings-panel.php:77
     767#: ../includes/html-product-settings-panel.php:77, ../woo-variation-swatches/includes/html-product-settings-panel.php:77
    768768msgid "Show Image, Color, Button Variation Swatches in Same Attribute"
    769769msgstr ""
    770770
    771 #: ../includes/html-product-settings-panel.php:85
     771#: ../includes/html-product-settings-panel.php:85, ../woo-variation-swatches/includes/html-product-settings-panel.php:85
    772772msgid "Convert Manually Created Attribute Variations Into Color, Image, and Label Swatches"
    773773msgstr ""
    774774
    775 #: ../includes/html-product-settings-panel.php:92
     775#: ../includes/html-product-settings-panel.php:92, ../woo-variation-swatches/includes/html-product-settings-panel.php:92
    776776msgid "Group based swatches display."
    777777msgstr ""
    778778
    779 #: ../includes/html-product-settings-panel.php:100
     779#: ../includes/html-product-settings-panel.php:100, ../woo-variation-swatches/includes/html-product-settings-panel.php:100
    780780msgid "Convert attribute variations into radio button."
    781781msgstr ""
    782782
    783 #: ../includes/html-product-settings-panel.php:108
     783#: ../includes/html-product-settings-panel.php:108, ../woo-variation-swatches/includes/html-product-settings-panel.php:108
    784784msgid "Show Entire Color, Image, Label And Radio Attributes Swatches In Catalog/ Category / Archive / Store/ Shop Pages"
    785785msgstr ""
    786786
    787 #: ../includes/html-product-settings-panel.php:116
     787#: ../includes/html-product-settings-panel.php:116, ../woo-variation-swatches/includes/html-product-settings-panel.php:116
    788788msgid "Show Selected Single Color or Image Or Label Attribute Swatches In Catelog/ Category / Archive / Store / Shop Pages"
    789789msgstr ""
    790790
    791 #: ../includes/html-product-settings-panel.php:124
     791#: ../includes/html-product-settings-panel.php:124, ../woo-variation-swatches/includes/html-product-settings-panel.php:124
    792792msgid "Change Variation Product Gallery After Selecting Single Attribute Like Amazon Or AliExpress"
    793793msgstr ""
    794794
    795 #: ../includes/html-product-settings-panel.php:132
     795#: ../includes/html-product-settings-panel.php:132, ../woo-variation-swatches/includes/html-product-settings-panel.php:132
    796796msgid "Generate Selected Attribute Variation Link"
    797797msgstr ""
    798798
    799 #: ../includes/html-product-settings-panel.php:140
     799#: ../includes/html-product-settings-panel.php:140, ../woo-variation-swatches/includes/html-product-settings-panel.php:140
    800800msgid "Option to Select ROUNDED and SQUARED Attribute Variation Swatches Shape In the Same Product."
    801801msgstr ""
    802802
    803 #: ../includes/html-product-settings-panel.php:148
     803#: ../includes/html-product-settings-panel.php:148, ../woo-variation-swatches/includes/html-product-settings-panel.php:148
    804804msgid "Blur Or Hide Or Show Cross Sign For Out of Stock Variation Swatches (Unlimited Variations Without hiding out of stock item from catalog)"
    805805msgstr ""
    806806
    807 #: ../includes/html-product-settings-panel.php:156
     807#: ../includes/html-product-settings-panel.php:156, ../woo-variation-swatches/includes/html-product-settings-panel.php:156
    808808msgid "Shop Page Swatches Size Control"
    809809msgstr ""
    810810
    811 #: ../includes/html-product-settings-panel.php:158, ../includes/html-product-settings-panel.php:173
     811#: ../includes/html-product-settings-panel.php:158, ../includes/html-product-settings-panel.php:173, ../woo-variation-swatches/includes/html-product-settings-panel.php:158, ../woo-variation-swatches/includes/html-product-settings-panel.php:173
    812812msgid "Live Preview"
    813813msgstr ""
    814814
    815 #: ../includes/html-product-settings-panel.php:163
     815#: ../includes/html-product-settings-panel.php:163, ../woo-variation-swatches/includes/html-product-settings-panel.php:163
    816816msgid "Make Selected Attribute Variation Swatches Size Larger Than Other Default Attribute Variations"
    817817msgstr ""
    818818
    819 #: ../includes/html-product-settings-panel.php:171
     819#: ../includes/html-product-settings-panel.php:171, ../woo-variation-swatches/includes/html-product-settings-panel.php:171
    820820msgid "Show Custom Text in Variation Tooltip In Product and Shop Page"
    821821msgstr ""
    822822
    823 #: ../includes/html-product-settings-panel.php:178
     823#: ../includes/html-product-settings-panel.php:178, ../woo-variation-swatches/includes/html-product-settings-panel.php:178
    824824msgid "Show Custom Image in Variation Swatches Tooltip In Product And Shop Page"
    825825msgstr ""
    826826
    827 #: ../includes/html-product-settings-panel.php:186
     827#: ../includes/html-product-settings-panel.php:186, ../woo-variation-swatches/includes/html-product-settings-panel.php:186
    828828msgid "Archive page swatches positioning."
    829829msgstr ""
    830830
    831 #: ../includes/html-product-settings-panel.php:189
     831#: ../includes/html-product-settings-panel.php:189, ../woo-variation-swatches/includes/html-product-settings-panel.php:189
    832832msgid "Archive page swatches alignment."
    833833msgstr ""
    834834
    835 #: ../includes/html-product-settings-panel.php:192
     835#: ../includes/html-product-settings-panel.php:192, ../woo-variation-swatches/includes/html-product-settings-panel.php:192
    836836msgid "Tooltip display setting on archive/shop page."
    837837msgstr ""
    838838
    839 #: ../includes/html-product-settings-panel.php:195
     839#: ../includes/html-product-settings-panel.php:195, ../woo-variation-swatches/includes/html-product-settings-panel.php:195
    840840msgid "Variation clear button display setting."
    841841msgstr ""
    842842
    843 #: ../includes/html-product-settings-panel.php:198
     843#: ../includes/html-product-settings-panel.php:198, ../woo-variation-swatches/includes/html-product-settings-panel.php:198
    844844msgid "Customize tooltip text and background color."
    845845msgstr ""
    846846
    847 #: ../includes/html-product-settings-panel.php:201
     847#: ../includes/html-product-settings-panel.php:201, ../woo-variation-swatches/includes/html-product-settings-panel.php:201
    848848msgid "Customize tooltip image and image size."
    849849msgstr ""
    850850
    851 #: ../includes/html-product-settings-panel.php:204
     851#: ../includes/html-product-settings-panel.php:204, ../woo-variation-swatches/includes/html-product-settings-panel.php:204
    852852msgid "Customize font size, swatches height and width."
    853853msgstr ""
    854854
    855 #: ../includes/html-product-settings-panel.php:207
     855#: ../includes/html-product-settings-panel.php:207, ../woo-variation-swatches/includes/html-product-settings-panel.php:207
    856856msgid "Customize swatches colors, background and border sizes."
    857857msgstr ""
    858858
    859 #: ../includes/html-product-settings-panel.php:210
     859#: ../includes/html-product-settings-panel.php:210, ../woo-variation-swatches/includes/html-product-settings-panel.php:210
    860860msgid "Automatic updates and exclusive technical support."
    861861msgstr ""
    862862
    863 #: ../includes/html-product-settings-panel.php:215
     863#: ../includes/html-product-settings-panel.php:215, ../woo-variation-swatches/includes/html-product-settings-panel.php:215
    864864msgid "Ok, I need this feature!"
    865865msgstr ""
    866866
    867 #: ../includes/html-settings-group.php:5
     867#: ../includes/html-settings-group.php:5, ../woo-variation-swatches/includes/html-settings-group.php:5
    868868msgid "Swatches Group"
    869869msgstr ""
    870870
    871 #: ../includes/html-settings-group.php:11
     871#: ../includes/html-settings-group.php:11, ../woo-variation-swatches/includes/html-settings-group.php:11
    872872msgid "Show your swatches individually or in groups. Split variation swatches into group to make it much more user friendly."
    873873msgstr ""
    874874
    875 #: ../includes/html-settings-group.php:14
     875#: ../includes/html-settings-group.php:14, ../woo-variation-swatches/includes/html-settings-group.php:14
    876876msgid "Show me, How it works!"
    877877msgstr ""
    878878
    879 #: ../includes/html-settings-sidebar.php:9
     879#: ../includes/html-settings-sidebar.php:9, ../woo-variation-swatches/includes/html-settings-sidebar.php:9
    880880msgid "Get started by spending some time with the"
    881881msgstr ""
    882882
    883 #: ../includes/html-settings-sidebar.php:10
     883#: ../includes/html-settings-sidebar.php:10, ../woo-variation-swatches/includes/html-settings-sidebar.php:10
    884884msgid "documentation"
    885885msgstr ""
    886886
    887 #: ../includes/html-settings-sidebar.php:11
     887#: ../includes/html-settings-sidebar.php:11, ../woo-variation-swatches/includes/html-settings-sidebar.php:11
    888888msgid "Check Official"
    889889msgstr ""
    890890
    891 #: ../includes/html-settings-sidebar.php:12
     891#: ../includes/html-settings-sidebar.php:12, ../woo-variation-swatches/includes/html-settings-sidebar.php:12
    892892msgid "demo"
    893893msgstr ""
    894894
    895 #: ../includes/html-settings-sidebar.php:17
     895#: ../includes/html-settings-sidebar.php:17, ../woo-variation-swatches/includes/html-settings-sidebar.php:17
    896896msgid "Facing issue?"
    897897msgstr ""
    898898
    899 #: ../includes/html-settings-sidebar.php:19
     899#: ../includes/html-settings-sidebar.php:19, ../woo-variation-swatches/includes/html-settings-sidebar.php:19
    900900msgid "Stuck with something?"
    901901msgstr ""
    902902
    903 #: ../includes/html-settings-sidebar.php:20
     903#: ../includes/html-settings-sidebar.php:20, ../woo-variation-swatches/includes/html-settings-sidebar.php:20
    904904msgid "Please open a ticket"
    905905msgstr ""
    906906
    907 #: ../includes/html-settings-sidebar.php:20
     907#: ../includes/html-settings-sidebar.php:20, ../woo-variation-swatches/includes/html-settings-sidebar.php:20
    908908msgid "For emergency case join our live chat."
    909909msgstr ""
    910910
    911 #: ../includes/html-settings-sidebar.php:25
     911#: ../includes/html-settings-sidebar.php:25, ../woo-variation-swatches/includes/html-settings-sidebar.php:25
    912912msgid "Love Our Plugin?"
    913913msgstr ""
    914914
    915 #: ../includes/html-settings-sidebar.php:28
     915#: ../includes/html-settings-sidebar.php:28, ../woo-variation-swatches/includes/html-settings-sidebar.php:28
    916916msgid "Thank you for choosing"
    917917msgstr ""
    918918
    919 #: ../includes/html-settings-sidebar.php:30
     919#: ../includes/html-settings-sidebar.php:30, ../woo-variation-swatches/includes/html-settings-sidebar.php:30
    920920msgid "If you have found our plugin useful and makes you smile,"
    921921msgstr ""
    922922
    923 #: ../includes/html-settings-sidebar.php:31
     923#: ../includes/html-settings-sidebar.php:31, ../woo-variation-swatches/includes/html-settings-sidebar.php:31
    924924msgid "please consider giving us a 5-star rating."
    925925msgstr ""
    926926
    927 #: ../includes/html-settings-sidebar.php:31
     927#: ../includes/html-settings-sidebar.php:31, ../woo-variation-swatches/includes/html-settings-sidebar.php:31
    928928msgid "It will help us to grow."
    929929msgstr ""
    930930
    931 #: ../includes/html-settings-tutorial.php:6
     931#: ../includes/html-settings-tutorial.php:6, ../woo-variation-swatches/includes/html-settings-tutorial.php:6
    932932msgid "How to tutorials"
    933933msgstr ""
    934934
    935 #: ../includes/html-settings-tutorial.php:107, ../includes/html-settings-tutorial.php:145, ../includes/html-settings-tutorial.php:156, ../includes/html-settings-tutorial.php:195, ../includes/html-settings-tutorial.php:206, ../includes/html-settings-tutorial.php:244, ../includes/html-settings-tutorial.php:255, ../includes/html-settings-tutorial.php:293, ../includes/html-settings-tutorial.php:304, ../includes/html-settings-tutorial.php:342, ../includes/html-settings-tutorial.php:353, ../includes/html-settings-tutorial.php:391, ../includes/html-settings-tutorial.php:402, ../includes/html-settings-tutorial.php:469
     935#: ../includes/html-settings-tutorial.php:107, ../includes/html-settings-tutorial.php:145, ../includes/html-settings-tutorial.php:156, ../includes/html-settings-tutorial.php:195, ../includes/html-settings-tutorial.php:206, ../includes/html-settings-tutorial.php:244, ../includes/html-settings-tutorial.php:255, ../includes/html-settings-tutorial.php:293, ../includes/html-settings-tutorial.php:304, ../includes/html-settings-tutorial.php:342, ../includes/html-settings-tutorial.php:353, ../includes/html-settings-tutorial.php:391, ../includes/html-settings-tutorial.php:402, ../includes/html-settings-tutorial.php:469, ../woo-variation-swatches/includes/html-settings-tutorial.php:107, ../woo-variation-swatches/includes/html-settings-tutorial.php:145, ../woo-variation-swatches/includes/html-settings-tutorial.php:156, ../woo-variation-swatches/includes/html-settings-tutorial.php:195, ../woo-variation-swatches/includes/html-settings-tutorial.php:206, ../woo-variation-swatches/includes/html-settings-tutorial.php:244, ../woo-variation-swatches/includes/html-settings-tutorial.php:255, ../woo-variation-swatches/includes/html-settings-tutorial.php:293, ../woo-variation-swatches/includes/html-settings-tutorial.php:304, ../woo-variation-swatches/includes/html-settings-tutorial.php:342, ../woo-variation-swatches/includes/html-settings-tutorial.php:353, ../woo-variation-swatches/includes/html-settings-tutorial.php:391, ../woo-variation-swatches/includes/html-settings-tutorial.php:402, ../woo-variation-swatches/includes/html-settings-tutorial.php:469
    936936msgid "PRO"
    937937msgstr ""
    938938
    939 #: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:129, ../includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php:60
     939#: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:129, ../includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php:60, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-menus.php:129, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php:60
    940940msgid "The changes you made will be lost if you navigate away from this page."
    941941msgstr ""
    942942
    943 #: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:145, ../includes/getwooplugins/class-getwooplugins-admin-menus.php:171
     943#: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:145, ../includes/getwooplugins/class-getwooplugins-admin-menus.php:171, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-menus.php:145, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-menus.php:171
    944944msgid "GetWooPlugins Settings"
    945945msgstr ""
    946946
    947 #: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:145
     947#: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:145, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-menus.php:145
    948948msgid "GetWooPlugins"
    949949msgstr ""
    950950
    951 #: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:171
     951#: ../includes/getwooplugins/class-getwooplugins-admin-menus.php:171, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-menus.php:171
    952952msgid "Home"
    953953msgstr ""
    954954
    955 #: ../includes/getwooplugins/class-getwooplugins-admin-settings.php:65
     955#: ../includes/getwooplugins/class-getwooplugins-admin-settings.php:65, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-settings.php:65
    956956msgid "Your settings have been saved."
    957957msgstr ""
    958958
    959 #: ../includes/getwooplugins/class-getwooplugins-admin-settings.php:215
     959#: ../includes/getwooplugins/class-getwooplugins-admin-settings.php:215, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-settings.php:215
    960960msgid "Check how this feature works."
    961961msgstr ""
    962962
    963 #: ../includes/getwooplugins/class-getwooplugins-admin-settings.php:220
     963#: ../includes/getwooplugins/class-getwooplugins-admin-settings.php:220, ../woo-variation-swatches/includes/getwooplugins/class-getwooplugins-admin-settings.php:220
    964964msgid "See how this feature works"
    965965msgstr ""
    966966
    967 #: ../includes/getwooplugins/html/deactive-feedback-dialog.php:18
     967#: ../includes/getwooplugins/html/deactive-feedback-dialog.php:18, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:18
    968968msgid "QUICK FEEDBACK"
    969969msgstr ""
    970970
    971 #: ../includes/getwooplugins/html/deactive-feedback-dialog.php:20, ../includes/getwooplugins/html/dialog.php:22
     971#: ../includes/getwooplugins/html/deactive-feedback-dialog.php:20, ../includes/getwooplugins/html/dialog.php:22, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:20, ../woo-variation-swatches/includes/getwooplugins/html/dialog.php:22
    972972msgid "Close modal panel"
    973973msgstr ""
    974974
    975 #: ../includes/getwooplugins/html/deactive-feedback-dialog.php:26
     975#: ../includes/getwooplugins/html/deactive-feedback-dialog.php:26, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:26
    976976msgid "May we have a little info about why you are deactivating?"
    977977msgstr ""
    978978
    979 #: ../includes/getwooplugins/html/deactive-feedback-dialog.php:53, ../includes/getwooplugins/html/deactive-feedback-dialog.php:53
     979#: ../includes/getwooplugins/html/deactive-feedback-dialog.php:53, ../includes/getwooplugins/html/deactive-feedback-dialog.php:53, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:53, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:53
    980980msgid "Send feedback &amp; Deactivate"
    981981msgstr ""
    982982
    983 #: ../includes/getwooplugins/html/deactive-feedback-dialog.php:53
     983#: ../includes/getwooplugins/html/deactive-feedback-dialog.php:53, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:53
    984984msgid "Deactivating..."
    985985msgstr ""
    986986
    987 #: ../includes/getwooplugins/html/deactive-feedback-dialog.php:57
     987#: ../includes/getwooplugins/html/deactive-feedback-dialog.php:57, ../woo-variation-swatches/includes/getwooplugins/html/deactive-feedback-dialog.php:57
    988988msgid "Skip &amp; Deactivate"
    989989msgstr ""
    990990
    991 #: ../includes/getwooplugins/html/settings-page.php:85, ../includes/getwooplugins/html/settings-page.php:85
     991#: ../includes/getwooplugins/html/settings-page.php:85, ../includes/getwooplugins/html/settings-page.php:85, ../woo-variation-swatches/includes/getwooplugins/html/settings-page.php:85, ../woo-variation-swatches/includes/getwooplugins/html/settings-page.php:85
    992992msgid "Save changes"
    993993msgstr ""
    994994
    995 #: ../includes/getwooplugins/html/settings-page.php:86
     995#: ../includes/getwooplugins/html/settings-page.php:86, ../woo-variation-swatches/includes/getwooplugins/html/settings-page.php:86
    996996msgid "Are you sure to reset?"
    997997msgstr ""
    998998
    999 #: ../includes/getwooplugins/html/settings-page.php:86
     999#: ../includes/getwooplugins/html/settings-page.php:86, ../woo-variation-swatches/includes/getwooplugins/html/settings-page.php:86
    10001000msgid "Reset all"
    10011001msgstr ""
    10021002
    1003 #: ../woo-variation-swatches.php:65
     1003#: ../woo-variation-swatches/woo-variation-swatches.php:65, ../woo-variation-swatches.php:65
    10041004msgid "<strong>Variation Swatches for WooCommerce</strong> is an add-on of "
    10051005msgstr ""
    10061006
    1007 #: ../woo-variation-swatches.php:67
     1007#: ../woo-variation-swatches/woo-variation-swatches.php:67, ../woo-variation-swatches.php:67
    10081008msgid "WooCommerce"
    10091009msgstr ""
    10101010
    10111011#. translators: %s: Pro Plugin Version
    1012 #: ../woo-variation-swatches.php:140
     1012#: ../woo-variation-swatches/woo-variation-swatches.php:140, ../woo-variation-swatches.php:140
    10131013msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper and continue."
    10141014msgstr ""
    10151015
    10161016#. translators: %s: Pro Plugin Version
    1017 #: ../woo-variation-swatches.php:158
     1017#: ../woo-variation-swatches/woo-variation-swatches.php:158, ../woo-variation-swatches.php:158
    10181018msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper."
    10191019msgstr ""
  • woo-variation-swatches/trunk/woo-variation-swatches.php

    r3359797 r3393500  
    55     * Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 8.0+
    66     * Author: Emran Ahmed
    7      * Version: 2.2.1
     7     * Version: 2.2.2
    88     * Requires PHP: 7.4
    99     * Requires at least: 5.9
    1010     * Tested up to: 6.8
    1111     * WC requires at least: 8.0
    12      * WC tested up to: 10.1
     12     * WC tested up to: 10.3
    1313     * Text Domain: woo-variation-swatches
    1414     * Domain Path: /languages
     
    2222
    2323if ( ! defined( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION' ) ) {
    24     define( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION', '2.2.1' );
     24    define( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION', '2.2.2' );
    2525}
    2626
Note: See TracChangeset for help on using the changeset viewer.