!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){n.p=window.flatsomeVars?window.flatsomeVars.assets_url:"/"},function(e,t,n){n(0),e.exports=n(2)},function(e,t){jQuery((function(e){"use strict";var t,n,i=window.wp,r=e("body");e(".ux-color-field").wpColorPicker(),e(".ux-swatches-add-color").off("click").on("click",(function(){var t=e(this),n=t.data("content"),i=t.nextAll(".wp-picker-container"),r=i.find(".wp-picker-clear");t.data("content",t.html()),t.html(n),r.click(),i.toggle()})),(n=e(".ux-swatches-bicolor-picker")).val()||n.closest(".wp-picker-container").hide(),r.on("click",".ux-swatches-upload-image-button",(function(n){n.preventDefault();var r=e(this);(t=i.media.frames.downloadable_file=i.media({multiple:!1})).on("select",(function(){var e=t.state().get("selection").first().toJSON(),n=e.sizes&&e.sizes.thumbnail?e.sizes.thumbnail.url:e.url;r.siblings("input.ux-swatches-term-image").val(e.id),r.siblings(".ux-swatches-remove-image-button").show(),r.parent().prev(".ux-swatches-term-image-thumbnail").find("img").attr("src",n)})),t.open()})).on("click",".ux-swatches-remove-image-button",(function(){var t=e(this);return t.siblings("input.ux-swatches-term-image").val(""),t.hide(),t.parent().prev(".ux-swatches-term-image-thumbnail").find("img").attr("src",flatsome_swatches.placeholder),!1}));var o=e(".product_page_product_attributes #attribute_label").closest("form");o.find("select#attribute_type").bind("change",(function(){var t=e(this).val(),n=o.find("#attribute_swatch_shape").closest(".form-field"),i=o.find("#attribute_swatch_size").closest(".form-field"),r=o.find("#attribute_swatch_variation_images").closest(".form-field");""!==t&&"select"!==t||[n,i,r].forEach((function(e){e.addClass("ux-dim")})),"ux_color"!==t&&"ux_image"!==t&&"ux_label"!==t||function(e){e.forEach((function(e){e.removeClass("ux-dim")}))}([n,i,r])})).change()}))}]);