!function(){"use strict";jQuery(document).ready(function(t){var e=document.querySelector("#metform-form-modalinput-settings");e&&e.addEventListener("metform-integration-settings-event",function(e){var n;n=e.detail.data,t(".metform-settings-field-toggler").each(function(e){var i=t(this).find("input"),o=i.attr("name");n[o]&&(i.val(n[o]).prop("checked",!0),t(".metform-settings-field-toggler + .metform-settings-hidden-field-container").show())})}),t(".metform-settings-field-toggler").find("input").change(function(){var e=t(this).prop("checked"),n=t(this).closest(".metform-settings-field-toggler").next(".metform-settings-hidden-field-container");e?n.slideDown():n.slideUp()})})}();