Changeset 3393500
- Timestamp:
- 11/11/2025 09:23:42 AM (5 months ago)
- Location:
- woo-variation-swatches
- Files:
-
- 62 added
- 17 edited
-
tags/2.2.2 (added)
-
tags/2.2.2/README.txt (added)
-
tags/2.2.2/assets (added)
-
tags/2.2.2/assets/css (added)
-
tags/2.2.2/assets/css/admin.css (added)
-
tags/2.2.2/assets/css/admin.min.css (added)
-
tags/2.2.2/assets/css/frontend.css (added)
-
tags/2.2.2/assets/css/frontend.min.css (added)
-
tags/2.2.2/assets/js (added)
-
tags/2.2.2/assets/js/admin.js (added)
-
tags/2.2.2/assets/js/admin.min.js (added)
-
tags/2.2.2/assets/js/frontend.js (added)
-
tags/2.2.2/assets/js/frontend.min.js (added)
-
tags/2.2.2/assets/js/jquery.serializejson.js (added)
-
tags/2.2.2/assets/js/jquery.serializejson.min.js (added)
-
tags/2.2.2/assets/js/wp-color-picker-alpha.js (added)
-
tags/2.2.2/assets/js/wp-color-picker-alpha.min.js (added)
-
tags/2.2.2/changelog.txt (added)
-
tags/2.2.2/images (added)
-
tags/2.2.2/images/placeholder.png (added)
-
tags/2.2.2/includes (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-backend.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-blocks.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-cache.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-compatibility.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-deactivate-feedback.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-export-import.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-frontend.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-manage-cache.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-product-edit-panel.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-product-page.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-settings.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-term-meta.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches-wc-api-response.php (added)
-
tags/2.2.2/includes/class-woo-variation-swatches.php (added)
-
tags/2.2.2/includes/functions.php (added)
-
tags/2.2.2/includes/getwooplugins (added)
-
tags/2.2.2/includes/getwooplugins/class-getwooplugins-admin-menus.php (added)
-
tags/2.2.2/includes/getwooplugins/class-getwooplugins-admin-settings.php (added)
-
tags/2.2.2/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php (added)
-
tags/2.2.2/includes/getwooplugins/class-getwooplugins-settings-page.php (added)
-
tags/2.2.2/includes/getwooplugins/css (added)
-
tags/2.2.2/includes/getwooplugins/css/getwooplugins-settings.css (added)
-
tags/2.2.2/includes/getwooplugins/html (added)
-
tags/2.2.2/includes/getwooplugins/html/deactive-feedback-dialog.php (added)
-
tags/2.2.2/includes/getwooplugins/html/dialog.php (added)
-
tags/2.2.2/includes/getwooplugins/html/settings-page.php (added)
-
tags/2.2.2/includes/getwooplugins/js (added)
-
tags/2.2.2/includes/getwooplugins/js/getwooplugins-form-field-dependency.js (added)
-
tags/2.2.2/includes/getwooplugins/js/getwooplugins-settings.js (added)
-
tags/2.2.2/includes/getwooplugins/js/jquery.tipTip.js (added)
-
tags/2.2.2/includes/getwooplugins/js/wp-color-picker-alpha.js (added)
-
tags/2.2.2/includes/html-product-settings-panel.php (added)
-
tags/2.2.2/includes/html-settings-group.php (added)
-
tags/2.2.2/includes/html-settings-sidebar.php (added)
-
tags/2.2.2/includes/html-settings-tutorial.php (added)
-
tags/2.2.2/includes/themes-support.php (added)
-
tags/2.2.2/languages (added)
-
tags/2.2.2/languages/woo-variation-swatches.pot (added)
-
tags/2.2.2/uninstall.php (added)
-
tags/2.2.2/woo-variation-swatches.php (added)
-
tags/2.2.2/wpml-config.xml (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/css/admin.css (modified) (3 diffs)
-
trunk/assets/css/frontend.css (modified) (3 diffs)
-
trunk/assets/css/frontend.min.css (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (5 diffs)
-
trunk/assets/js/admin.min.js (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (6 diffs)
-
trunk/assets/js/frontend.min.js (modified) (1 diff)
-
trunk/assets/js/wp-color-picker-alpha.js (modified) (39 diffs)
-
trunk/assets/js/wp-color-picker-alpha.min.js (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/class-woo-variation-swatches-backend.php (modified) (4 diffs)
-
trunk/includes/class-woo-variation-swatches-product-page.php (modified) (1 diff)
-
trunk/includes/getwooplugins/class-getwooplugins-admin-menus.php (modified) (2 diffs)
-
trunk/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php (modified) (2 diffs)
-
trunk/languages/woo-variation-swatches.pot (modified) (2 diffs)
-
trunk/woo-variation-swatches.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-variation-swatches/trunk/README.txt
r3359797 r3393500 1 1 === Variation Swatches for WooCommerce === 2 Contributors: EmranAhmed, getwooplugins 2 Contributors: EmranAhmed, getwooplugins, storepress 3 3 Tags: 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 4 4 Requires PHP: 7.4 5 Requires at least: 5.95 Requires at least: 6.4 6 6 Tested up to: 6.8 7 7 WC requires at least: 8.0 8 WC tested up to: 10. 19 Stable tag: 2.2. 18 WC tested up to: 10.3 9 Stable tag: 2.2.2 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 616 616 == Changelog == 617 617 618 = 2.2.2 - 11-11-2025 = 619 620 * Added: WC 10.3+ compatibility. 621 618 622 = 2.2.1 - 11-09-2025 = 619 623 -
woo-variation-swatches/trunk/assets/css/admin.css
r3359797 r3393500 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 9/11/2025, 5:36:23PM5 * Date: 11/11/2025, 3:19:45 PM 6 6 * Released under the GPLv3 license. 7 7 */ … … 232 232 } 233 233 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 } 234 263 .woo-variation-swatches-variation-product-options-wrapper { 235 264 /*.woo-variation-swatches-settings-heading { … … 242 271 }*/ 243 272 } 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 }273 273 .woo-variation-swatches-variation-product-options-wrapper .form-settings-group { 274 274 padding: 5px; -
woo-variation-swatches/trunk/assets/css/frontend.css
r3359797 r3393500 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 9/11/2025, 5:36:23PM5 * Date: 11/11/2025, 3:19:45 PM 6 6 * Released under the GPLv3 license. 7 7 */ … … 929 929 opacity: 0.3; 930 930 } 931 .woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled.radio-variable-item { 932 width: auto !important; 933 } 931 934 .woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled { 932 935 opacity: 0; … … 946 949 min-height: 0 !important; 947 950 } 948 .woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.disabled.radio-variable-item {949 width: auto !important;950 }951 951 .woo-variation-swatches.wvs-behavior-hide .variable-items-wrapper .variable-item.no-stock .variable-item-contents::before { 952 952 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 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 9/11/2025, 5:36:23PM5 * Date: 11/11/2025, 3:19:45 PM 6 6 * Released under the GPLv3 license. 7 7 */ … … 17 17 /* harmony export */ PluginHelper: function() { return /* binding */ PluginHelper; } 18 18 /* harmony export */ }); 19 function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } 20 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; } 19 function _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); } 20 function 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; } 21 function _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; } 22 function _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; } 23 function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } 24 function _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); } } 25 function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } 26 function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } 27 function _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); } 25 28 /*global woo_variation_swatches_admin, wp, woocommerce_admin_meta_boxes*/ 26 29 … … 30 33 _classCallCheck(this, PluginHelper); 31 34 } 32 _createClass(PluginHelper, null, [{35 return _createClass(PluginHelper, null, [{ 33 36 key: "GWPAdmin", 34 37 value: function GWPAdmin() { … … 631 634 } 632 635 }]); 633 return PluginHelper;634 636 }(); 635 637 return PluginHelper; … … 642 644 /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { 643 645 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; } 646 function _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); } 647 function _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); } 647 648 jQuery(function ($) { 648 649 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 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 9/11/2025, 5:36:23PM5 * Date: 11/11/2025, 3:19:45 PM 6 6 * Released under the GPLv3 license. 7 7 */ 8 8 /******/ (function() { // webpackBootstrap 9 var __webpack_exports__ = {}; 10 // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules. 9 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. 11 10 !function() { 12 function _typeof(o bj) { "@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(); }11 function _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); } 12 function 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; } 13 function _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; } 14 function _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; } } }; } 15 function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } 17 16 function _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(); } 17 function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } 18 function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } 19 function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } 20 function _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); } } 21 function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } 22 function _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; } 23 function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } 24 function _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); } 25 function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } 25 26 function _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; }27 function _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; } } 28 function _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; } 29 function _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; } } 30 function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } 30 31 // ================================================================ 31 32 // WooCommerce Variation Swatches … … 113 114 var Plugin = function ($) { 114 115 return /*#__PURE__*/function () { 115 function _class 2(element, options, name) {116 _classCallCheck(this, _class 2);116 function _class(element, options, name) { 117 _classCallCheck(this, _class); 117 118 _defineProperty(this, "defaults", {}); 118 119 // Assign … … 137 138 $(document).trigger('woo_variation_swatches_loaded', this); 138 139 } 139 _createClass(_class2, [{140 return _createClass(_class, [{ 140 141 key: "isAjaxVariation", 141 142 value: function isAjaxVariation() { … … 656 657 } 657 658 }]); 658 return _class2;659 659 }(); 660 660 }(jQuery); … … 709 709 })(window); 710 710 }(); 711 // This entry need to be wrapped in an IIFE because it needto 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. 712 712 !function() { 713 713 /*global wp, _, wc_add_to_cart_variation_params, woo_variation_swatches_options */ 714 714 715 jQuery(function ($) { 715 716 try { 716 717 $(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 721 724 $('.ywcp_inner_selected_container:not(.wvs-loaded)').WooVariationSwatches(); 722 }); //.trigger('woo_variation_swatches_init') 725 }); 726 //.trigger('woo_variation_swatches_init') 723 727 } catch (err) { 724 728 // If failed (conflict?) log the error but don't stop other scripts breaking. 725 729 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. 729 733 $(document).on('wc_variation_form.wvs', function (event) { 730 734 $(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 733 738 $(document).ajaxComplete(function (event, request, settings) { 734 739 _.delay(function () { … … 737 742 }); 738 743 }, 1000); 739 }); // Composite Product Load 744 }); 745 746 // Composite Product Load 740 747 // JS API: https://docs.woocommerce.com/document/composite-products/composite-products-js-api-reference/ 741 742 748 $(document.body).on('wc-composite-initializing', '.composite_data', function (event, composite) { 743 749 composite.actions.add_action('component_options_state_changed', function (self) { 744 750 $(self.$component_content).find('.variations_form').WooVariationSwatches('destroy'); 745 751 }); 752 746 753 /* composite.actions.add_action('active_scenarios_updated', (self) => { 747 754 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 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 9/11/2025, 5:36:23PM5 * Date: 11/11/2025, 3:19:45 PM 6 6 * Released under the GPLv3 license. 7 7 */ 8 8 /******/ (function() { // webpackBootstrap 9 var __webpack_exports__ = {};10 9 /* 11 10 * wp-color-picker-alpha … … 18 17 * Licensed under the GPLv2 license or later. 19 18 */ 19 20 20 (function ($, undef) { 21 21 var wpColorPickerAlpha = { 22 22 '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. 25 26 if ('wpColorPickerAlpha' in window && 'version' in window.wpColorPickerAlpha) { 26 27 var version = parseInt(window.wpColorPickerAlpha.version, 10); 27 28 28 if (!isNaN(version) && version >= wpColorPickerAlpha.version) { 29 29 return; 30 30 } 31 } // Prevent multiple initiations32 33 31 } 32 33 // Prevent multiple initiations 34 34 if (Color.fn.hasOwnProperty('to_s')) { 35 35 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. 39 39 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. 42 42 if ('hex' === type && this._alpha < 1) { 43 43 type = 'rgba'; 44 44 } 45 46 45 var color = ''; 47 48 46 if ('hex' === type) { 49 47 color = this.toString(); … … 51 49 color = this.toCSS(type).replace(/\(\s+/, '(').replace(/\s+\)/, ')'); 52 50 } 53 54 51 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 60 58 var backgroundImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg=='; 59 61 60 /** 62 61 * Iris 63 62 */ 64 65 63 $.widget('a8c.iris', $.a8c.iris, { 66 64 /** … … 74 72 alphaEnabled: false 75 73 }, 76 77 74 /** 78 75 * Get the current color or the new color. … … 89 86 color = this._color; 90 87 } 91 92 88 if (this.alphaOptions.alphaEnabled) { 93 89 color = color.to_s(this.alphaOptions.alphaColorType); 94 95 90 if (!this.alphaOptions.alphaColorWithSpace) { 96 91 color = color.replace(/\s+/g, ''); 97 92 } 98 99 93 return color; 100 94 } 101 102 95 return color.toString(); 103 96 }, 104 105 97 /** 106 98 * Create widget … … 115 107 // Try to get the wpColorPicker alpha options. 116 108 this.alphaOptions = this.element.wpColorPicker('instance').alphaOptions; 117 } catch (e) {} // We make sure there are all options118 119 109 } catch (e) {} 110 111 // We make sure there are all options 120 112 $.extend({}, this.alphaOptions, { 121 113 alphaEnabled: false, … … 125 117 alphaColorWithSpace: false 126 118 }); 127 128 119 this._super(); 129 120 }, 130 131 121 /** 132 122 * Binds event listeners to the Iris. … … 139 129 _addInputListeners: function _addInputListeners(input) { 140 130 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(), 144 134 color = new Color(val), 145 135 val = val.replace(/^(#|(rgb|hsl)a?)/, ''), 146 136 type = self.alphaOptions.alphaColorType; 147 input.removeClass('iris-error');148 149 if (!color.error) {150 // let's not do this on keyup for hex shortcodes151 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 } 155 145 } 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. 164 153 if (self.options.hide) { 165 154 input.one('focus', function () { … … 168 157 } 169 158 }, 170 171 159 /** 172 160 * Init Controls … … 179 167 _initControls: function _initControls() { 180 168 this._super(); 181 182 169 if (this.alphaOptions.alphaEnabled) { 183 170 // Create Alpha controls 184 171 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: stripAlphaSlider190 };172 stripAlpha = self.controls.strip.clone(false, false), 173 stripAlphaSlider = stripAlpha.find('.iris-slider-offset'), 174 controls = { 175 stripAlpha: stripAlpha, 176 stripAlphaSlider: stripAlphaSlider 177 }; 191 178 stripAlpha.addClass('iris-strip-alpha'); 192 179 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 195 183 $.each(controls, function (k, v) { 196 184 self.controls[k] = v; 197 }); // Create slider 198 185 }); 186 187 // Create slider 199 188 self.controls.stripAlphaSlider.slider({ 200 189 orientation: 'vertical', … … 204 193 value: parseInt(self._color._alpha * 100), 205 194 slide: function slide(event, ui) { 206 self.active = 'strip'; // Update alpha value207 195 self.active = 'strip'; 196 // Update alpha value 208 197 self._color._alpha = parseFloat(ui.value / 100); 209 210 198 self._change.apply(self, arguments); 211 199 } … … 213 201 } 214 202 }, 215 216 203 /** 217 204 * Create the controls sizes … … 226 213 _dimensions: function _dimensions(reset) { 227 214 this._super(reset); 228 229 215 if (this.alphaOptions.alphaEnabled) { 230 216 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 240 227 /** 241 228 * I use Math.round() to avoid possible size errors, … … 248 235 * 2 for css border 249 236 */ 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 sliders254 255 stripWidth = Math.round((innerWidth - squareWidth) / 2);// The margin for the sliders256 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. 261 248 while (totalWidth > innerWidth) { 262 249 stripWidth = Math.round(stripWidth - 2); … … 264 251 totalWidth = Math.round(squareWidth + stripWidth * 2 + stripMargin * 2); 265 252 } 266 267 253 square.css('margin', '0'); 268 254 strip.width(stripWidth).css('margin-left', stripMargin + 'px'); 269 255 } 270 256 }, 271 272 257 /** 273 258 * Callback to update the controls and the current color. … … 280 265 _change: function _change() { 281 266 var self = this, 282 active = self.active; 283 267 active = self.active; 284 268 self._super(); 285 286 269 if (self.alphaOptions.alphaEnabled) { 287 270 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. 295 277 controls.stripAlpha.css({ 296 278 'background': 'linear-gradient(to bottom, ' + gradient.join(', ') + '), url(' + backgroundImage + ')' 297 }); // Update alpha value298 279 }); 280 // Update alpha value 299 281 if (active) { 300 282 controls.stripAlphaSlider.slider('value', alpha); 301 283 } 302 303 284 if (!self._color.error) { 304 285 self.element.removeClass('iris-error').val(self.options.color); 305 286 } 306 307 287 self.picker.find('.iris-palette-container').on('click.palette', '.iris-palette', function () { 308 288 var color = $(this).data('color'); 309 310 289 if (self.alphaOptions.alphaReset) { 311 290 self._color._alpha = 1; 312 291 color = self._getColor(); 313 292 } 314 315 293 self._setOption('color', color); 316 294 }); 317 295 } 318 296 }, 319 320 297 /** 321 298 * Paint dimensions. … … 331 308 _paintDimension: function _paintDimension(origin, control) { 332 309 var self = this, 333 color = false; // Fix for slider hue opacity. 334 310 color = false; 311 312 // Fix for slider hue opacity. 335 313 if (self.alphaOptions.alphaEnabled && 'strip' === control) { 336 314 color = self._color; … … 338 316 self.hue = self._color.h(); 339 317 } 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. 344 321 if (color) { 345 322 self._color = color; 346 323 } 347 324 }, 348 349 325 /** 350 326 * To update the options, see original source to view the available options. … … 359 335 _setOption: function _setOption(key, value) { 360 336 var self = this; 361 362 337 if ('color' === key && self.alphaOptions.alphaEnabled) { 363 338 // cast to string in case we have a number 364 339 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. 367 342 if (!newColor.error && self._getColor(newColor) !== self._getColor()) { 368 343 self._color = newColor; 369 344 self.options.color = self._getColor(); 370 345 self.active = 'external'; 371 372 346 self._change(); 373 347 } … … 376 350 } 377 351 }, 378 379 352 /** 380 353 * Returns the iris object if no new color is provided. If a new color is provided, it sets the new color. … … 390 363 return this._color.clone(); 391 364 } 392 393 365 if (newColor === undef) { 394 366 return this._getColor(); 395 367 } 396 397 368 this.option('color', newColor); 398 369 } 399 370 }); 371 400 372 /** 401 373 * wpColorPicker 402 374 */ 403 404 375 $.widget('wp.wpColorPicker', $.wp.wpColorPicker, { 405 376 /** … … 413 384 alphaEnabled: false 414 385 }, 415 416 386 /** 417 387 * Get the alpha options. … … 424 394 _getAlphaOptions: function _getAlphaOptions() { 425 395 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 }; 436 405 if (options.alphaEnabled) { 437 406 options.alphaEnabled = el.is('input') && 'full' === type; 438 407 } 439 440 408 if (!options.alphaEnabled) { 441 409 return options; 442 410 } 443 444 411 options.alphaColorWithSpace = color && color.match(/\s/); 445 412 $.each(options, function (name, defaultValue) { 446 413 var value = el.data(name) || defaultValue; 447 448 414 switch (name) { 449 415 case 'alphaCustomWidth': … … 451 417 value = isNaN(value) ? defaultValue : value; 452 418 break; 453 454 419 case 'alphaColorType': 455 420 if (!value.match(/^(hex|(rgb|hsl)a?)$/)) { … … 462 427 } 463 428 } 464 465 429 break; 466 467 430 default: 468 431 value = !!value; 469 432 break; 470 433 } 471 472 434 options[name] = value; 473 435 }); 474 436 return options; 475 437 }, 476 477 438 /** 478 439 * Create widget … … 487 448 if (!$.support.iris) { 488 449 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. 494 456 this._super(); 495 457 }, 496 497 458 /** 498 459 * Binds event listeners to the color picker and create options, etc... … … 507 468 return this._super(); 508 469 } 509 510 470 var self = this, 511 el = self.element,512 isDeprecated = self.toggler.is('a');471 el = self.element, 472 isDeprecated = self.toggler.is('a'); 513 473 this.alphaOptions.defaultWidth = el.width(); 514 515 474 if (this.alphaOptions.alphaCustomWidth) { 516 475 el.width(parseInt(this.alphaOptions.defaultWidth + this.alphaOptions.alphaCustomWidth, 10)); 517 476 } 518 519 477 self.toggler.css({ 520 478 'position': 'relative', 521 479 'background-image': 'url(' + backgroundImage + ')' 522 480 }); 523 524 481 if (isDeprecated) { 525 482 self.toggler.html('<span class="color-alpha" />'); … … 527 484 self.toggler.append('<span class="color-alpha" />'); 528 485 } 529 530 486 self.colorAlpha = self.toggler.find('span.color-alpha').css({ 531 487 'width': '30px', … … 534 490 'top': 0, 535 491 '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. 538 495 if ('ltr' === self.colorAlpha.css('direction')) { 539 496 self.colorAlpha.css({ … … 549 506 }); 550 507 } 551 552 508 el.iris({ 553 509 /** … … 567 523 self.colorAlpha.css({ 568 524 '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 571 528 if ($.isFunction(self.options.change)) { 572 529 self.options.change.call(this, event, ui); … … 574 531 } 575 532 }); 533 576 534 /** 577 535 * Prevent any clicks inside this widget from leaking to the top and closing it. … … 583 541 * @return {void} 584 542 */ 585 586 543 self.wrap.on('click.wpcolorpicker', function (event) { 587 544 event.stopPropagation(); 588 545 }); 546 589 547 /** 590 548 * Open or close the color picker depending on the class. … … 592 550 * @since 3.0.0 593 551 */ 594 595 552 self.toggler.click(function () { 596 553 if (self.toggler.hasClass('wp-picker-open')) { … … 600 557 } 601 558 }); 559 602 560 /** 603 561 * Checks if value is empty when changing the color in the color picker. … … 610 568 * @return {void} 611 569 */ 612 613 570 el.change(function (event) { 614 571 var val = $(this).val(); 615 616 572 if (el.hasClass('iris-error') || val === '' || val.match(/^(#|(rgb|hsl)a?)$/)) { 617 573 if (isDeprecated) { 618 574 self.toggler.removeAttr('style'); 619 575 } 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 623 579 if ($.isFunction(self.options.clear)) { 624 580 self.options.clear.call(this, event); … … 626 582 } 627 583 }); 584 628 585 /** 629 586 * Enables the user to either clear the color in the color picker or revert back to the default color. … … 635 592 * @return {void} 636 593 */ 637 638 594 self.button.click(function (event) { 639 595 if ($(this).hasClass('wp-picker-default')) { … … 641 597 } else if ($(this).hasClass('wp-picker-clear')) { 642 598 el.val(''); 643 644 599 if (isDeprecated) { 645 600 self.toggler.removeAttr('style'); 646 601 } 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 650 605 if ($.isFunction(self.options.clear)) { 651 606 self.options.clear.call(this, event); 652 607 } 653 654 608 el.trigger('change'); 655 609 } -
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 1 1 *** Variation Swatches for WooCommerce *** 2 3 2025-11-11 - version 2.2.2 4 5 * Added - WC 10.3+ compatibility. 2 6 3 7 2025-09-11 - version 2.2.1 -
woo-variation-swatches/trunk/includes/class-woo-variation-swatches-backend.php
r3143748 r3393500 190 190 191 191 public function admin_scripts() { 192 193 192 194 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 193 195 $screen = get_current_screen(); … … 197 199 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" ) ); 198 200 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 ); 202 207 } 203 208 … … 214 219 'wp-color-picker-alpha', 215 220 'wc-enhanced-select', 216 'serializejson',221 $serializejson_handle, 217 222 ), woo_variation_swatches()->assets_version( "/js/admin{$suffix}.js" ), true ); 218 223 … … 329 334 foreach ( $taxonomy_attributes as $attribute ) { 330 335 331 // Skip taxonomy attributes that didn't match the query.332 /*if ( false === stripos( $attribute->attribute_name, $attribute_name ) ) {333 continue;334 }*/335 336 336 if ( $attribute->attribute_name !== $attribute_name ) { 337 337 continue; -
woo-variation-swatches/trunk/includes/class-woo-variation-swatches-product-page.php
r3241269 r3393500 216 216 // $is_defer = is_wp_version_compatible( '6.3' ) ? array( 'strategy' => 'defer' ) : true; 217 217 218 $prefix_wc_handle = version_compare(WC()->version, '10.3', '>=') ? 'wc-':''; 219 $jquery_blockui_handle = sprintf( '%sjquery-blockui', $prefix_wc_handle); 220 218 221 wp_register_script( 'woo-variation-swatches', woo_variation_swatches()->assets_url( "/js/frontend{$suffix}.js" ), array( 219 222 'jquery', 220 223 'wp-util', 221 224 'underscore', 222 'jquery-blockui',225 $jquery_blockui_handle, 223 226 'wp-api-request', 224 227 'wp-api-fetch', -
woo-variation-swatches/trunk/includes/getwooplugins/class-getwooplugins-admin-menus.php
r3111209 r3393500 101 101 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' ) ); 102 102 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 ); 104 104 105 105 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 ); … … 116 116 'backbone', 117 117 'wp-util', 118 ' jquery-tiptip',118 'gwp-jquery-tiptip', 119 119 'iris' 120 120 ); -
woo-variation-swatches/trunk/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php
r3098501 r3393500 33 33 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' ) ); 34 34 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 ); 36 36 37 37 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 ); … … 47 47 'backbone', 48 48 'wp-util', 49 ' jquery-tiptip',49 'gwp-jquery-tiptip', 50 50 'iris' 51 51 ); -
woo-variation-swatches/trunk/languages/woo-variation-swatches.pot
r3359797 r3393500 8 8 "Content-Transfer-Encoding: 8bit\n" 9 9 "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" 11 11 "X-Poedit-Basepath: ..\n" 12 12 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 16 16 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 17 17 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 19 19 msgid "View documentation" 20 20 msgstr "" 21 21 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 23 23 msgid "Documentation" 24 24 msgstr "" 25 25 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 27 27 msgid "Video Tutorials" 28 28 msgstr "" 29 29 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 31 31 msgid "Help & Support" 32 32 msgstr "" 33 33 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 35 35 msgid "View Swatches settings" 36 36 msgstr "" 37 37 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 39 39 msgid "Settings" 40 40 msgstr "" 41 41 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 43 43 msgid "Go Pro" 44 44 msgstr "" 45 45 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 47 47 msgid "Select values" 48 48 msgstr "" 49 49 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 51 51 msgid "Select all" 52 52 msgstr "" 53 53 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 55 55 msgid "Select none" 56 56 msgstr "" 57 57 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 59 59 msgid "Create value" 60 60 msgstr "" 61 61 62 #: ../includes/class-woo-variation-swatches-backend.php:22 1, ../includes/class-woo-variation-swatches-backend.php:31062 #: ../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 63 63 msgid "Choose an Image" 64 64 msgstr "" 65 65 66 #: ../includes/class-woo-variation-swatches-backend.php:22 266 #: ../includes/class-woo-variation-swatches-backend.php:227, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:227 67 67 msgid "Add Attribute" 68 68 msgstr "" 69 69 70 #: ../includes/class-woo-variation-swatches-backend.php:22 370 #: ../includes/class-woo-variation-swatches-backend.php:228, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:228 71 71 msgid "Add" 72 72 msgstr "" 73 73 74 #: ../includes/class-woo-variation-swatches-backend.php:22 474 #: ../includes/class-woo-variation-swatches-backend.php:229, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:229 75 75 msgid "Cancel" 76 76 msgstr "" 77 77 78 #: ../includes/class-woo-variation-swatches-backend.php:2 2578 #: ../includes/class-woo-variation-swatches-backend.php:230, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:230 79 79 msgid "Use Image" 80 80 msgstr "" 81 81 82 #: ../includes/class-woo-variation-swatches-backend.php:2 2682 #: ../includes/class-woo-variation-swatches-backend.php:231, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:231 83 83 msgid "Add Media" 84 84 msgstr "" 85 85 86 #: ../includes/class-woo-variation-swatches-backend.php:23 086 #: ../includes/class-woo-variation-swatches-backend.php:235, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:235 87 87 msgid "Variation Swatches Settings" 88 88 msgstr "" 89 89 90 #: ../includes/class-woo-variation-swatches-backend.php:23 290 #: ../includes/class-woo-variation-swatches-backend.php:237, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:237 91 91 msgid "Are you sure you want to reset it to default setting?" 92 92 msgstr "" 93 93 94 #: ../includes/class-woo-variation-swatches-backend.php:23 394 #: ../includes/class-woo-variation-swatches-backend.php:238, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:238 95 95 msgid "Please save changed first." 96 96 msgstr "" 97 97 98 #: ../includes/class-woo-variation-swatches-backend.php:24 098 #: ../includes/class-woo-variation-swatches-backend.php:245, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:245 99 99 msgid "Select" 100 100 msgstr "" 101 101 102 #: ../includes/class-woo-variation-swatches-backend.php:24 1, ../includes/class-woo-variation-swatches-backend.php:300102 #: ../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 103 103 msgid "Color" 104 104 msgstr "" 105 105 106 #: ../includes/class-woo-variation-swatches-backend.php:24 2, ../includes/class-woo-variation-swatches-backend.php:309106 #: ../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 107 107 msgid "Image" 108 108 msgstr "" 109 109 110 #: ../includes/class-woo-variation-swatches-backend.php:24 3110 #: ../includes/class-woo-variation-swatches-backend.php:248, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:248 111 111 msgid "Button" 112 112 msgstr "" 113 113 114 #: ../includes/class-woo-variation-swatches-backend.php:24 4114 #: ../includes/class-woo-variation-swatches-backend.php:249, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:249 115 115 msgid "Radio" 116 116 msgstr "" 117 117 118 #: ../includes/class-woo-variation-swatches-backend.php:25 2118 #: ../includes/class-woo-variation-swatches-backend.php:257, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:257 119 119 msgid "Mixed" 120 120 msgstr "" 121 121 122 #: ../includes/class-woo-variation-swatches-backend.php:30 1122 #: ../includes/class-woo-variation-swatches-backend.php:306, ../woo-variation-swatches/includes/class-woo-variation-swatches-backend.php:306 123 123 msgid "Choose a color" 124 124 msgstr "" 125 125 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 127 127 msgid "It's a temporary deactivation." 128 128 msgstr "" 129 129 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 131 131 msgid "I couldn't understand how to make it work." 132 132 msgstr "" 133 133 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 135 135 msgid "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>." 136 136 msgstr "" 137 137 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 139 139 msgid "I no longer need the plugin." 140 140 msgstr "" 141 141 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 143 143 msgid "I found a better plugin." 144 144 msgstr "" 145 145 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 147 147 msgid "Please share which plugin." 148 148 msgstr "" 149 149 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 151 151 msgid "The plugin <strong>broke my layout</strong> or some functionality." 152 152 msgstr "" 153 153 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 155 155 msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/tickets/\">Please open a support ticket</a>, we will fix it immediately." 156 156 msgstr "" 157 157 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 159 159 msgid "I need someone to <strong>setup this plugin.</strong>" 160 160 msgstr "" 161 161 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 163 163 msgid "Your email address." 164 164 msgstr "" 165 165 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 167 167 msgid "Please provide your email address to contact with you <br>and help you to set up and configure this plugin." 168 168 msgstr "" 169 169 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 171 171 msgid "The plugin is <strong>too complicated to configure.</strong>" 172 172 msgstr "" 173 173 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 175 175 msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/documentation/woocommerce-variation-swatches/\">Have you checked our documentation?</a>." 176 176 msgstr "" 177 177 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 179 179 msgid "I need specific feature that you don't support." 180 180 msgstr "" 181 181 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 183 183 msgid "Please share with us." 184 184 msgstr "" 185 185 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 187 187 msgid "Other" 188 188 msgstr "" 189 189 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 191 191 msgid "Please share the reason" 192 192 msgstr "" 193 193 194 194 #. 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 196 196 msgid "Not able to attach \"%s\"." 197 197 msgstr "" 198 198 199 199 #. 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 201 201 msgid "Unable to use image \"%s\"." 202 202 msgstr "" 203 203 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 205 205 msgid "Clear swatches transient" 206 206 msgstr "" 207 207 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 209 209 msgid "Swatches Settings" 210 210 msgstr "" 211 211 212 212 #. 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 214 214 msgid "%s left" 215 215 msgstr "" 216 216 217 #: ../includes/class-woo-variation-swatches-product-page.php:8 27, ../includes/class-woo-variation-swatches-product-page.php:853217 #: ../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 218 218 msgid "Choose an option" 219 219 msgstr "" 220 220 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 222 222 msgid "Variation Swatches" 223 223 msgstr "" 224 224 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 226 226 msgid "Variation Swatches for WooCommerce Settings" 227 227 msgstr "" 228 228 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 230 230 msgid "See Documentation" 231 231 msgstr "" 232 232 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 234 234 msgid "Help & Support" 235 235 msgstr "" 236 236 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 238 238 msgid "Buy Now" 239 239 msgstr "" 240 240 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 242 242 msgid "Swatches Shape Style" 243 243 msgstr "" 244 244 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 246 246 msgid "Swatches Default To Button" 247 247 msgstr "" 248 248 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 250 250 msgid "Swatches Default To Image" 251 251 msgstr "" 252 252 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 254 254 msgid "Swatches Clear on Reselect" 255 255 msgstr "" 256 256 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 258 258 msgid "Swatches Hide Out Of Stock" 259 259 msgstr "" 260 260 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 262 262 msgid "Swatches Clickable Out Of Stock" 263 263 msgstr "" 264 264 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 266 266 msgid "Swatches Show variation stock info." 267 267 msgstr "" 268 268 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 270 270 msgid "Swatches Attribute Display Limit" 271 271 msgstr "" 272 272 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 274 274 msgid "Swatches Show Product Availability" 275 275 msgstr "" 276 276 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 278 278 msgid "Swatches Display Position" 279 279 msgstr "" 280 280 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 282 282 msgid "Swatches Display On Widget" 283 283 msgstr "" 284 284 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 286 286 msgid "Swatches Show as catalog mode" 287 287 msgstr "" 288 288 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 290 290 msgid "Swatches Show variation preview" 291 291 msgstr "" 292 292 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 294 294 msgid "Swatches Disabled Attribute style" 295 295 msgstr "" 296 296 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 298 298 msgid "Swatches Generate Sharable URL" 299 299 msgstr "" 300 300 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 302 302 msgid "Get license" 303 303 msgstr "" 304 304 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 306 306 msgid "Swatches License" 307 307 msgstr "" 308 308 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 310 310 msgid "Swatches On Archive Page" 311 311 msgstr "" 312 312 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 314 314 msgid "Swatches Archive Default Selected" 315 315 msgstr "" 316 316 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 318 318 msgid "Swatches Settings Reset." 319 319 msgstr "" 320 320 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 322 322 msgid "General" 323 323 msgstr "" 324 324 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 326 326 msgid "Advanced" 327 327 msgstr "" 328 328 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 330 330 msgid "Styling" 331 331 msgstr "" 332 332 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 334 334 msgid "Product Page" 335 335 msgstr "" 336 336 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 338 338 msgid "Archive / Shop" 339 339 msgstr "" 340 340 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 342 342 msgid "Special Attributes" 343 343 msgstr "" 344 344 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 346 346 msgid "Group" 347 347 msgstr "" 348 348 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 350 350 msgid "License" 351 351 msgstr "" 352 352 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 354 354 msgid "Tutorial" 355 355 msgstr "" 356 356 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 358 358 msgid "Useful Free Plugins" 359 359 msgstr "" 360 360 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 362 362 msgid "General options" 363 363 msgstr "" 364 364 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 366 366 msgid "Enable Stylesheet" 367 367 msgstr "" 368 368 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 370 370 msgid "Enable default stylesheet." 371 371 msgstr "" 372 372 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 374 374 msgid "Enable Tooltip" 375 375 msgstr "" 376 376 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 378 378 msgid "Enable tooltip on each product attribute." 379 379 msgstr "" 380 380 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 382 382 msgid "Shape Style" 383 383 msgstr "" 384 384 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 386 386 msgid "This controls which shape style used by default." 387 387 msgstr "" 388 388 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 390 390 msgid "Rounded Shape" 391 391 msgstr "" 392 392 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 394 394 msgid "Squared Shape" 395 395 msgstr "" 396 396 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 398 398 msgid "Dropdowns to Button" 399 399 msgstr "" 400 400 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 402 402 msgid "Convert default dropdowns to button." 403 403 msgstr "" 404 404 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 406 406 msgid "Dropdowns to Image" 407 407 msgstr "" 408 408 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 410 410 msgid "Convert default dropdowns to image type if variation has an image." 411 411 msgstr "" 412 412 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 414 414 msgid "Media Settings" 415 415 msgstr "" 416 416 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 418 418 msgid "Regenerate Thumbnails" 419 419 msgstr "" 420 420 421 421 #. 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 423 423 msgid "Attribute image size can be changed by %s filter hook. So this option will not apply any effect." 424 424 msgstr "" 425 425 426 426 #. 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 428 428 msgid "Choose attribute image size. %1$s or use %2$s plugin." 429 429 msgstr "" 430 430 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 432 432 msgid "Advanced options" 433 433 msgstr "" 434 434 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 436 436 msgid "Clear on Reselect" 437 437 msgstr "" 438 438 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 440 440 msgid "Clear selected attribute on select again." 441 441 msgstr "" 442 442 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 444 444 msgid "Disable Out of Stock" 445 445 msgstr "" 446 446 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 448 448 msgid "Disable Out Of Stock item." 449 449 msgstr "" 450 450 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 452 452 msgid "Clickable Out Of Stock" 453 453 msgstr "" 454 454 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 456 456 msgid "Clickable Out Of Stock item." 457 457 msgstr "" 458 458 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 460 460 msgid "Disabled Attribute style" 461 461 msgstr "" 462 462 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 464 464 msgid "Disabled / Out Of Stock attribute will be hide / blur / crossed." 465 465 msgstr "" 466 466 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 468 468 msgid "Blur with cross" 469 469 msgstr "" 470 470 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 472 472 msgid "Blur without cross" 473 473 msgstr "" 474 474 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 476 476 msgid "Hide" 477 477 msgstr "" 478 478 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 480 480 msgid "Attribute image size" 481 481 msgstr "" 482 482 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 484 484 msgid "Swatches indicator" 485 485 msgstr "" 486 486 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 488 488 msgid "Change swatches indicator color" 489 489 msgstr "" 490 490 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 492 492 msgid "Tick Color" 493 493 msgstr "" 494 494 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 496 496 msgid "Swatches Selected tick color. Default is: #ffffff" 497 497 msgstr "" 498 498 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 500 500 msgid "Cross Color" 501 501 msgstr "" 502 502 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 504 504 msgid "Swatches cross color. Default is: #ff0000" 505 505 msgstr "" 506 506 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 508 508 msgid "Product Page Swatches Size" 509 509 msgstr "" 510 510 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 512 512 msgid "Change swatches style on product page" 513 513 msgstr "" 514 514 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 516 516 msgid "Width" 517 517 msgstr "" 518 518 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 520 520 msgid "Single product variation item width. Default is: 30" 521 521 msgstr "" 522 522 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 524 524 msgid "Height" 525 525 msgstr "" 526 526 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 528 528 msgid "Single product variation item height. Default is: 30" 529 529 msgstr "" 530 530 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 532 532 msgid "Font Size" 533 533 msgstr "" 534 534 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 536 536 msgid "Single product variation item font size. Default is: 16" 537 537 msgstr "" 538 538 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 540 540 msgid "Single Product Page" 541 541 msgstr "" 542 542 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 544 544 msgid "Settings for single product page" 545 545 msgstr "" 546 546 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 548 548 msgid "Show selected attribute" 549 549 msgstr "" 550 550 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 552 552 msgid "Show selected attribute variation name beside the title." 553 553 msgstr "" 554 554 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 556 556 msgid "Variation label separator" 557 557 msgstr "" 558 558 559 559 #. 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 561 561 msgid "Variation label separator. Default: %s." 562 562 msgstr "" 563 563 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 565 565 msgid "Enable Preloader" 566 566 msgstr "" 567 567 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 569 569 msgid "Enable single product page swatches preloader." 570 570 msgstr "" 571 571 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 573 573 msgid "Generate variation url" 574 574 msgstr "" 575 575 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 577 577 msgid "Generate sharable url based on selected variation attributes." 578 578 msgstr "" 579 579 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 581 581 msgid "Variation stock info" 582 582 msgstr "" 583 583 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 585 585 msgid "Show variation product stock info." 586 586 msgstr "" 587 587 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 589 589 msgid "Attribute display limit" 590 590 msgstr "" 591 591 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 593 593 msgid "Single Product page attribute display limit. Default is 0. Means no limit." 594 594 msgstr "" 595 595 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 597 597 msgid "Note:" 598 598 msgstr "" 599 599 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 601 601 msgid "please open a ticket" 602 602 msgstr "" 603 603 604 604 #. 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 606 606 msgid "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." 607 607 msgstr "" 608 608 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 610 610 msgid "Visual Section" 611 611 msgstr "" 612 612 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 614 614 msgid "Advanced change some visual styles on shop / archive page" 615 615 msgstr "" 616 616 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 618 618 msgid "Enable Swatches" 619 619 msgstr "" 620 620 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 622 622 msgid "Show swatches on archive / shop page." 623 623 msgstr "" 624 624 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 626 626 msgid "Enable archive page swatches preloader." 627 627 msgstr "" 628 628 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 630 630 msgid "Show Product Availability" 631 631 msgstr "" 632 632 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 634 634 msgid "Show Product availability stock info." 635 635 msgstr "" 636 636 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 638 638 msgid "Show default selected" 639 639 msgstr "" 640 640 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 642 642 msgid "Show default selected attribute swatches on archive / shop page." 643 643 msgstr "" 644 644 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 646 646 msgid "Display position" 647 647 msgstr "" 648 648 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 650 650 msgid "Before add to cart button" 651 651 msgstr "" 652 652 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 654 654 msgid "After add to cart button" 655 655 msgstr "" 656 656 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 658 658 msgid "Swatches align" 659 659 msgstr "" 660 660 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 662 662 msgid "Swatches align on archive page" 663 663 msgstr "" 664 664 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 666 666 msgid "Left" 667 667 msgstr "" 668 668 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 670 670 msgid "Center" 671 671 msgstr "" 672 672 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 674 674 msgid "Right" 675 675 msgstr "" 676 676 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 678 678 msgid "Show on filter widget" 679 679 msgstr "" 680 680 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 682 682 msgid "Show variation swatches on filter widget." 683 683 msgstr "" 684 684 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 686 686 msgid "Catalog mode" 687 687 msgstr "" 688 688 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 690 690 msgid "Show single attribute as catalog mode on shop / archive pages. Catalog mode only change image based on selected variation." 691 691 msgstr "" 692 692 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 694 694 msgid "Show Single Attribute" 695 695 msgstr "" 696 696 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 698 698 msgid "Show Single Attribute taxonomies on archive page." 699 699 msgstr "" 700 700 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 702 702 msgid "Single Variation Image Preview" 703 703 msgstr "" 704 704 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 706 706 msgid "Switch variation image when single attribute selected on product page." 707 707 msgstr "" 708 708 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 710 710 msgid "Variation Image Preview" 711 711 msgstr "" 712 712 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 714 714 msgid "Show single attribute variation image based on first attribute select on product page." 715 715 msgstr "" 716 716 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 718 718 msgid "Large Size Attribute Section" 719 719 msgstr "" 720 720 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 722 722 msgid "Make a attribute taxonomies size large on single product" 723 723 msgstr "" 724 724 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 726 726 msgid "Show First Attribute In Large Size" 727 727 msgstr "" 728 728 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 730 730 msgid "Show Attribute taxonomies in large size." 731 731 msgstr "" 732 732 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 734 734 msgid "Upload / Add image" 735 735 msgstr "" 736 736 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 738 738 msgid "Remove image" 739 739 msgstr "" 740 740 741 741 #. 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 743 743 msgid "\"Variation Swatches for WooCommerce\" Plugin try to load \"%1$s\" but template \"%2$s\" was not found." 744 744 msgstr "" 745 745 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 747 747 msgid "Variation Swatches for WooCommerce" 748 748 msgstr "" 749 749 750 750 #. 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 752 752 msgid "With the premium version of %s, you can do:" 753 753 msgstr "" 754 754 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 756 756 msgid "Individual Product Basis Attribute Variation Swatches Customization" 757 757 msgstr "" 758 758 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 760 760 msgid "Live Demo" 761 761 msgstr "" 762 762 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 764 764 msgid "Video Tutorial" 765 765 msgstr "" 766 766 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 768 768 msgid "Show Image, Color, Button Variation Swatches in Same Attribute" 769 769 msgstr "" 770 770 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 772 772 msgid "Convert Manually Created Attribute Variations Into Color, Image, and Label Swatches" 773 773 msgstr "" 774 774 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 776 776 msgid "Group based swatches display." 777 777 msgstr "" 778 778 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 780 780 msgid "Convert attribute variations into radio button." 781 781 msgstr "" 782 782 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 784 784 msgid "Show Entire Color, Image, Label And Radio Attributes Swatches In Catalog/ Category / Archive / Store/ Shop Pages" 785 785 msgstr "" 786 786 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 788 788 msgid "Show Selected Single Color or Image Or Label Attribute Swatches In Catelog/ Category / Archive / Store / Shop Pages" 789 789 msgstr "" 790 790 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 792 792 msgid "Change Variation Product Gallery After Selecting Single Attribute Like Amazon Or AliExpress" 793 793 msgstr "" 794 794 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 796 796 msgid "Generate Selected Attribute Variation Link" 797 797 msgstr "" 798 798 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 800 800 msgid "Option to Select ROUNDED and SQUARED Attribute Variation Swatches Shape In the Same Product." 801 801 msgstr "" 802 802 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 804 804 msgid "Blur Or Hide Or Show Cross Sign For Out of Stock Variation Swatches (Unlimited Variations Without hiding out of stock item from catalog)" 805 805 msgstr "" 806 806 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 808 808 msgid "Shop Page Swatches Size Control" 809 809 msgstr "" 810 810 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 812 812 msgid "Live Preview" 813 813 msgstr "" 814 814 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 816 816 msgid "Make Selected Attribute Variation Swatches Size Larger Than Other Default Attribute Variations" 817 817 msgstr "" 818 818 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 820 820 msgid "Show Custom Text in Variation Tooltip In Product and Shop Page" 821 821 msgstr "" 822 822 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 824 824 msgid "Show Custom Image in Variation Swatches Tooltip In Product And Shop Page" 825 825 msgstr "" 826 826 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 828 828 msgid "Archive page swatches positioning." 829 829 msgstr "" 830 830 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 832 832 msgid "Archive page swatches alignment." 833 833 msgstr "" 834 834 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 836 836 msgid "Tooltip display setting on archive/shop page." 837 837 msgstr "" 838 838 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 840 840 msgid "Variation clear button display setting." 841 841 msgstr "" 842 842 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 844 844 msgid "Customize tooltip text and background color." 845 845 msgstr "" 846 846 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 848 848 msgid "Customize tooltip image and image size." 849 849 msgstr "" 850 850 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 852 852 msgid "Customize font size, swatches height and width." 853 853 msgstr "" 854 854 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 856 856 msgid "Customize swatches colors, background and border sizes." 857 857 msgstr "" 858 858 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 860 860 msgid "Automatic updates and exclusive technical support." 861 861 msgstr "" 862 862 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 864 864 msgid "Ok, I need this feature!" 865 865 msgstr "" 866 866 867 #: ../includes/html-settings-group.php:5 867 #: ../includes/html-settings-group.php:5, ../woo-variation-swatches/includes/html-settings-group.php:5 868 868 msgid "Swatches Group" 869 869 msgstr "" 870 870 871 #: ../includes/html-settings-group.php:11 871 #: ../includes/html-settings-group.php:11, ../woo-variation-swatches/includes/html-settings-group.php:11 872 872 msgid "Show your swatches individually or in groups. Split variation swatches into group to make it much more user friendly." 873 873 msgstr "" 874 874 875 #: ../includes/html-settings-group.php:14 875 #: ../includes/html-settings-group.php:14, ../woo-variation-swatches/includes/html-settings-group.php:14 876 876 msgid "Show me, How it works!" 877 877 msgstr "" 878 878 879 #: ../includes/html-settings-sidebar.php:9 879 #: ../includes/html-settings-sidebar.php:9, ../woo-variation-swatches/includes/html-settings-sidebar.php:9 880 880 msgid "Get started by spending some time with the" 881 881 msgstr "" 882 882 883 #: ../includes/html-settings-sidebar.php:10 883 #: ../includes/html-settings-sidebar.php:10, ../woo-variation-swatches/includes/html-settings-sidebar.php:10 884 884 msgid "documentation" 885 885 msgstr "" 886 886 887 #: ../includes/html-settings-sidebar.php:11 887 #: ../includes/html-settings-sidebar.php:11, ../woo-variation-swatches/includes/html-settings-sidebar.php:11 888 888 msgid "Check Official" 889 889 msgstr "" 890 890 891 #: ../includes/html-settings-sidebar.php:12 891 #: ../includes/html-settings-sidebar.php:12, ../woo-variation-swatches/includes/html-settings-sidebar.php:12 892 892 msgid "demo" 893 893 msgstr "" 894 894 895 #: ../includes/html-settings-sidebar.php:17 895 #: ../includes/html-settings-sidebar.php:17, ../woo-variation-swatches/includes/html-settings-sidebar.php:17 896 896 msgid "Facing issue?" 897 897 msgstr "" 898 898 899 #: ../includes/html-settings-sidebar.php:19 899 #: ../includes/html-settings-sidebar.php:19, ../woo-variation-swatches/includes/html-settings-sidebar.php:19 900 900 msgid "Stuck with something?" 901 901 msgstr "" 902 902 903 #: ../includes/html-settings-sidebar.php:20 903 #: ../includes/html-settings-sidebar.php:20, ../woo-variation-swatches/includes/html-settings-sidebar.php:20 904 904 msgid "Please open a ticket" 905 905 msgstr "" 906 906 907 #: ../includes/html-settings-sidebar.php:20 907 #: ../includes/html-settings-sidebar.php:20, ../woo-variation-swatches/includes/html-settings-sidebar.php:20 908 908 msgid "For emergency case join our live chat." 909 909 msgstr "" 910 910 911 #: ../includes/html-settings-sidebar.php:25 911 #: ../includes/html-settings-sidebar.php:25, ../woo-variation-swatches/includes/html-settings-sidebar.php:25 912 912 msgid "Love Our Plugin?" 913 913 msgstr "" 914 914 915 #: ../includes/html-settings-sidebar.php:28 915 #: ../includes/html-settings-sidebar.php:28, ../woo-variation-swatches/includes/html-settings-sidebar.php:28 916 916 msgid "Thank you for choosing" 917 917 msgstr "" 918 918 919 #: ../includes/html-settings-sidebar.php:30 919 #: ../includes/html-settings-sidebar.php:30, ../woo-variation-swatches/includes/html-settings-sidebar.php:30 920 920 msgid "If you have found our plugin useful and makes you smile," 921 921 msgstr "" 922 922 923 #: ../includes/html-settings-sidebar.php:31 923 #: ../includes/html-settings-sidebar.php:31, ../woo-variation-swatches/includes/html-settings-sidebar.php:31 924 924 msgid "please consider giving us a 5-star rating." 925 925 msgstr "" 926 926 927 #: ../includes/html-settings-sidebar.php:31 927 #: ../includes/html-settings-sidebar.php:31, ../woo-variation-swatches/includes/html-settings-sidebar.php:31 928 928 msgid "It will help us to grow." 929 929 msgstr "" 930 930 931 #: ../includes/html-settings-tutorial.php:6 931 #: ../includes/html-settings-tutorial.php:6, ../woo-variation-swatches/includes/html-settings-tutorial.php:6 932 932 msgid "How to tutorials" 933 933 msgstr "" 934 934 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 936 936 msgid "PRO" 937 937 msgstr "" 938 938 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 940 940 msgid "The changes you made will be lost if you navigate away from this page." 941 941 msgstr "" 942 942 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 944 944 msgid "GetWooPlugins Settings" 945 945 msgstr "" 946 946 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 948 948 msgid "GetWooPlugins" 949 949 msgstr "" 950 950 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 952 952 msgid "Home" 953 953 msgstr "" 954 954 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 956 956 msgid "Your settings have been saved." 957 957 msgstr "" 958 958 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 960 960 msgid "Check how this feature works." 961 961 msgstr "" 962 962 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 964 964 msgid "See how this feature works" 965 965 msgstr "" 966 966 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 968 968 msgid "QUICK FEEDBACK" 969 969 msgstr "" 970 970 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 972 972 msgid "Close modal panel" 973 973 msgstr "" 974 974 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 976 976 msgid "May we have a little info about why you are deactivating?" 977 977 msgstr "" 978 978 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 980 980 msgid "Send feedback & Deactivate" 981 981 msgstr "" 982 982 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 984 984 msgid "Deactivating..." 985 985 msgstr "" 986 986 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 988 988 msgid "Skip & Deactivate" 989 989 msgstr "" 990 990 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 992 992 msgid "Save changes" 993 993 msgstr "" 994 994 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 996 996 msgid "Are you sure to reset?" 997 997 msgstr "" 998 998 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 1000 1000 msgid "Reset all" 1001 1001 msgstr "" 1002 1002 1003 #: ../woo-variation-swatches .php:651003 #: ../woo-variation-swatches/woo-variation-swatches.php:65, ../woo-variation-swatches.php:65 1004 1004 msgid "<strong>Variation Swatches for WooCommerce</strong> is an add-on of " 1005 1005 msgstr "" 1006 1006 1007 #: ../woo-variation-swatches .php:671007 #: ../woo-variation-swatches/woo-variation-swatches.php:67, ../woo-variation-swatches.php:67 1008 1008 msgid "WooCommerce" 1009 1009 msgstr "" 1010 1010 1011 1011 #. translators: %s: Pro Plugin Version 1012 #: ../woo-variation-swatches .php:1401012 #: ../woo-variation-swatches/woo-variation-swatches.php:140, ../woo-variation-swatches.php:140 1013 1013 msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper and continue." 1014 1014 msgstr "" 1015 1015 1016 1016 #. translators: %s: Pro Plugin Version 1017 #: ../woo-variation-swatches .php:1581017 #: ../woo-variation-swatches/woo-variation-swatches.php:158, ../woo-variation-swatches.php:158 1018 1018 msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper." 1019 1019 msgstr "" -
woo-variation-swatches/trunk/woo-variation-swatches.php
r3359797 r3393500 5 5 * Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 8.0+ 6 6 * Author: Emran Ahmed 7 * Version: 2.2. 17 * Version: 2.2.2 8 8 * Requires PHP: 7.4 9 9 * Requires at least: 5.9 10 10 * Tested up to: 6.8 11 11 * WC requires at least: 8.0 12 * WC tested up to: 10. 112 * WC tested up to: 10.3 13 13 * Text Domain: woo-variation-swatches 14 14 * Domain Path: /languages … … 22 22 23 23 if ( ! 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' ); 25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.