(()=>{"use strict";$((function(){$(document).on("change",".shortcode-tabs-quantity-select",(function(){var a=$(this),n=parseInt(a.val())||1;a.val(n);for(var e=a.closest(".shortcode-admin-config"),t=1;t<=a.data("max");t++){var o=e.find("[data-tab-id="+t+"]");t<=n?o.hasClass("d-none")&&(o.removeClass("d-none"),o.find("[data-name]").map((function(a,n){$(n).prop("name",$(n).data("name"))}))):(o.addClass("d-none"),o.find("[name]").map((function(a,n){$(n).data("name",$(n).prop("name")),$(n).removeProp("name")})))}}))}))})();