!function(t,e,a){"use strict";var o=function(t,e){var a,o=t.data("toggleVal");a="radio"===t.attr("type")?t.prop("checked")&&o==t.val():"checkbox"===t.attr("type")?void 0===o||1==o?t.prop("checked"):!t.prop("checked"):o==t.val(),e.toggle(a)},n=function(){t("[data-show-if]").each((function(){var e=t(this).closest("tr"),a=t(this).data("show-if"),o=t(this).data("show-if-value");if(a&&o){var n=t('select[name*="['+a+']"]');if(n.length){var c=n.val();-1!==o.toString().split(",").indexOf(c)?e.show():e.hide()}}}))};t(a).ready((function(){t(".form-table .toggle-parent").each((function(){var e=t(this),a=e.closest(".form-table").find("."+e.data("childClass")).closest("tr");o(e,a),e.on("change",(function(){o(e,a)}))})),n(),t('select[name*="[link_style]"]').on("change",(function(){n()}))}))}(jQuery,window,document);