Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/leadin/scripts/entries
File: elementor.ts
import elementorWidget from '../elementor/elementorWidget';
[0] Fix | Delete
import registerFormWidget from '../elementor/FormWidget/registerFormWidget';
[1] Fix | Delete
import { initBackgroundApp } from '../utils/backgroundAppUtils';
[2] Fix | Delete
import registerMeetingsWidget from '../elementor/MeetingWidget/registerMeetingWidget';
[3] Fix | Delete
[4] Fix | Delete
const ELEMENTOR_READY_INTERVAL = 500;
[5] Fix | Delete
const MAX_POLL_TIMEOUT = 30000;
[6] Fix | Delete
[7] Fix | Delete
const registerElementorWidgets = () => {
[8] Fix | Delete
initBackgroundApp(() => {
[9] Fix | Delete
let FormWidget: any;
[10] Fix | Delete
let MeetingsWidget: any;
[11] Fix | Delete
[12] Fix | Delete
const leadinSelectFormItemView = elementorWidget(
[13] Fix | Delete
//@ts-expect-error global
[14] Fix | Delete
window.elementor,
[15] Fix | Delete
{
[16] Fix | Delete
widgetName: 'hubspot-form',
[17] Fix | Delete
controlSelector: '.elementor-hbspt-form-selector',
[18] Fix | Delete
containerSelector: '.hubspot-form-edit-mode',
[19] Fix | Delete
},
[20] Fix | Delete
(controlContainer: any, widgetContainer: any, setValue: Function) => {
[21] Fix | Delete
FormWidget = new registerFormWidget(
[22] Fix | Delete
controlContainer,
[23] Fix | Delete
widgetContainer,
[24] Fix | Delete
setValue
[25] Fix | Delete
);
[26] Fix | Delete
FormWidget.render();
[27] Fix | Delete
},
[28] Fix | Delete
() => {
[29] Fix | Delete
FormWidget.done();
[30] Fix | Delete
}
[31] Fix | Delete
);
[32] Fix | Delete
[33] Fix | Delete
const leadinSelectMeetingItemView = elementorWidget(
[34] Fix | Delete
//@ts-expect-error global
[35] Fix | Delete
window.elementor,
[36] Fix | Delete
{
[37] Fix | Delete
widgetName: 'hubspot-meeting',
[38] Fix | Delete
controlSelector: '.elementor-hbspt-meeting-selector',
[39] Fix | Delete
containerSelector: '.hubspot-meeting-edit-mode',
[40] Fix | Delete
},
[41] Fix | Delete
(controlContainer: any, widgetContainer: any, setValue: Function) => {
[42] Fix | Delete
MeetingsWidget = new registerMeetingsWidget(
[43] Fix | Delete
controlContainer,
[44] Fix | Delete
widgetContainer,
[45] Fix | Delete
setValue
[46] Fix | Delete
);
[47] Fix | Delete
MeetingsWidget.render();
[48] Fix | Delete
},
[49] Fix | Delete
() => {
[50] Fix | Delete
MeetingsWidget.done();
[51] Fix | Delete
}
[52] Fix | Delete
);
[53] Fix | Delete
[54] Fix | Delete
//@ts-expect-error global
[55] Fix | Delete
window.elementor.addControlView(
[56] Fix | Delete
'leadinformselect',
[57] Fix | Delete
leadinSelectFormItemView
[58] Fix | Delete
);
[59] Fix | Delete
//@ts-expect-error global
[60] Fix | Delete
window.elementor.addControlView(
[61] Fix | Delete
'leadinmeetingselect',
[62] Fix | Delete
leadinSelectMeetingItemView
[63] Fix | Delete
);
[64] Fix | Delete
});
[65] Fix | Delete
};
[66] Fix | Delete
[67] Fix | Delete
const pollForElementorReady = setInterval(() => {
[68] Fix | Delete
const elementorFrontend = (window as any).elementorFrontend;
[69] Fix | Delete
if (elementorFrontend) {
[70] Fix | Delete
registerElementorWidgets();
[71] Fix | Delete
clearInterval(pollForElementorReady);
[72] Fix | Delete
}
[73] Fix | Delete
}, ELEMENTOR_READY_INTERVAL);
[74] Fix | Delete
[75] Fix | Delete
setTimeout(() => {
[76] Fix | Delete
clearInterval(pollForElementorReady);
[77] Fix | Delete
}, MAX_POLL_TIMEOUT);
[78] Fix | Delete
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function