!function(i){"use strict";var t={init:function(){this.show_or_hide_unit_variation(),i(document).on("change","input#_unit_product, input#_unit_base, select#_unit",this.show_or_hide_unit_variation),i(document).on("click",".dokan-product-variation-itmes",this.show_or_hide_unit_variation)},show_or_hide_unit_variation:function(){var t=i(".dokan-product-variation-itmes");i.each(["unit","unit_base","unit_product"],(function(n,e){var a=i("#_"+e).val();t.each((function(){i(".wc-gzd-parent-"+e).val(a)}))})),"variable"===i("select#product_type").val()&&"0"!==i("select#_unit").val()&&0!==i("input#_unit_base").val().length?(i(".variable_unit_price_notice").hide(),i(".variable_unit_price_section").show()):(i(".variable_unit_price_notice").show(),i(".variable_unit_price_section").hide())}};i(document).ready((function(){t.init()}))}(jQuery);