"use strict";!function(n,t,i,r,o){n(t).on("load",function(){var t=0,e=n("#wf_str_replace tbody");function a(t){var e=t.closest("tr").find(".woo_feed_dynamic_attr_condition_value");"between"===t.val()?e.attr("placeholder","Ex: 10,20"):e.attr("placeholder","")}n(i).on("change","#custom2_attribute",function(t){n("#custom2_attribute_value").val("{".concat(n(this).val().trim(),"}"))}).on("change","#is_variations",function(t){var e=n(this).val();"both"===e||"n"===e?n(".WFVariablePriceTR").show():n(".WFVariablePriceTR").hide()}).on("change","#wpf_ptitle",function(){var t=n(this)[0].selectize,e=n("textarea[name='ptitle_show']"),a=e.val().trim().split("|");a.push(n(this).val()),e.val(a.filter(function(t){return""!==t}).join("|")),t.clear(!0),t.refreshOptions(!1)}).on("click","#wf_new_str_replace",function(){0===t?t=e.find("tr").length:t++,e.append(n("#wf_str_replace_template").text().trim().replace(/__idx__/g,t))}).on("click",".wf-add-row",function(t){t.preventDefault();var t=n(this),e=parseInt(t.data("idx")||0)+1,a=(/^'+t.data.backorder+" "+e+" on backorder.")),t.data.outOfStock&&(e=1===t.data.outOfStock?"product is":"products are",n("#wf-tab-content-filter table tr:nth-of-type(2)").find(".help").after('
'+t.data.outOfStock+" "+e+" out of stock.
")),t.data.hidden&&(e=1===t.data.hidden?"product is":"products are",n("#wf-tab-content-filter table tr:nth-of-type(3)").find(".help").after('
'+t.data.hidden+" "+e+" hidden.
")),t.data.noDesc&&(e=1===t.data.noDesc?"product has":"products are",n("#wf-tab-content-filter table tr:nth-of-type(4)").find(".help").after('
'+t.data.noDesc+" "+e+" no description.
")),t.data.noImg&&(e=1===t.data.noImg?"product has":"products have",n("#wf-tab-content-filter table tr:nth-of-type(5)").find(".help").after('
'+t.data.noImg+" "+e+" no image.
")),t.data.noPrice&&(e=1===t.data.noPrice?"product has":"products have",n("#wf-tab-content-filter table tr:nth-of-type(6)").find(".help").after('
'+t.data.noPrice+" "+e+" no price.
"))}})}),n(i).ready(function(){var t;0