!function(){function e(e){var n,t=null===(n=e.get("settings"))||void 0===n?void 0:n.get("form_list");if(t&&"0"!==t){var o=document.querySelector("#elementor-panel");if(o){var i=o.querySelectorAll(".fluentform-edit-link"),r=function(e){var n,t=(null===(n=window.fluentformElementor)||void 0===n?void 0:n.adminUrl)||"/wp-admin/admin.php",o=new URLSearchParams({page:"fluent_forms",route:"editor",form_id:e});return t+"?"+o.toString()}(t);i.forEach(function(e){e.href=r,e.setAttribute("data-form-id",t)})}}}document.addEventListener("DOMContentLoaded",function(){window.elementor&&elementor.hooks&&elementor.hooks.addAction("panel/open_editor/widget/fluent-form-widget",function(n,t){e(t),t.get("settings").on("change:form_list",function(){e(t)})})})}();