!function(t,a,e,c){"use strict";const o=function(a){let e=!1;const c=a.data("toggleVal"),o=a.data("ancestorTag")||"tr";a.closest(".form-table").find("."+a.data("child-class")).closest(o).each((function(){"radio"===a.attr("type")?e=a.prop("checked")&&c==a.val():"checkbox"===a.attr("type")?e=void 0===c||1==c?a.prop("checked"):!a.prop("checked"):"SELECT"===a.prop("tagName")?t(this).find(`.${a.data("child-class")}-${a.val()}`).length>0?e=!0:a.val()===a.data("toggle-val")&&(e=t(this).find(`.${a.data("child-class")}`).length>0):e=c==a.val(),t(this).toggle(e)}))};t(e).ready((function(){t(".color-picker").wpColorPicker(),t(".form-table .dlp-toggle-parent").each((function(){const a=t(this);a.closest(".form-table").find("."+a.data("childClass")).closest("tr"),o(a),a.on("change",(function(){o(a)}))})),t(".barn2-help-tip").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0})}))}(jQuery,window,document);