(()=>{"use strict";const e=".js-form-submit-btn",{$:n}=window;class t{constructor(){n(document).on("click",e,(e=>{e.preventDefault();const t=n(e.target);if(t.data("form-confirm-message")&&!1===window.confirm(t.data("form-confirm-message")))return;let o="POST",s=null;if(t.data("method")){const e=t.data("method"),i=["GET","POST"].includes(e);o=i?e:"POST",i||(s=n("",{type:"_hidden",name:"_method",value:e}))}const i=n("