!function(){"use strict";document.addEventListener("bricks/ajax/popup/loaded",function(t){const o=t.detail?.popupElement;o&&function(t){if("undefined"==typeof jQuery||void 0===window.JetPlugins)return;if(1!=t.dataset.popupAjax)return;const o=t.querySelectorAll?t.querySelectorAll('[data-block-name="jet-forms/form-block"], .wp-block-jet-forms-form-block, form.jet-form-builder'):[];0!==o.length&&o.forEach(function(t){if("true"===t.dataset.jfbInitialized)return;const o=t.querySelector("form.jet-form-builder")||("FORM"===t.tagName&&t.classList.contains("jet-form-builder")?t:null);if(o&&o.closest(".brx-popup[data-popup-ajax]")&&o.action&&o.action.includes("bricks/v1/load_popup_content")){const t=window.location.origin+window.location.pathname,e=window.location.search;o.action=t+e}jQuery(()=>JetPlugins.init()),t.dataset.jfbInitialized="true"})}(o)})}();