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