| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/send-app/modules/cf7/assets/js/ |
Upload File : |
import FormFeEvents from "../../../../core/assets/js/form-fe-events";
declare const eSendCf7FormsSettings: {
observer: MutationObserver | null;
formSelectors: string[];
ajaxUrl: string;
nonce: string;
viewedThreshold: number;
viewedAction: string;
abandonedAction: string;
debugOn: boolean;
idPrefix: string;
};
export default class Cf7FormFeEvents extends FormFeEvents {
init() {
this.formSelectors = eSendCf7FormsSettings.formSelectors;
this.ajaxUrl= eSendCf7FormsSettings.ajaxUrl;
this.nonce = eSendCf7FormsSettings.nonce;
this.viewedThreshold = eSendCf7FormsSettings.viewedThreshold;
this.viewedAction = eSendCf7FormsSettings.viewedAction;
this.abandonedAction = eSendCf7FormsSettings.abandonedAction;
this.debugOn = eSendCf7FormsSettings.debugOn;
this.idPrefix = eSendCf7FormsSettings.idPrefix;
}
getFormId(form: Element): string {
return form.querySelector( 'input[name="_wpcf7"]' )?.getAttribute( 'value' ) || '';
}
getPostId(form: Element): string {
return form.querySelector( 'input[name="_wpcf7_container_post"]' )?.getAttribute( 'value' ) || '';
}
}
window.addEventListener( 'load', () => {
new Cf7FormFeEvents();
} );