????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/eaabusiness.com/tirterrassa/wp-content/plugins/extendify/src/Agent/ |
Upload File : |
import domReady from '@wordpress/dom-ready';
import { render } from '@shared/lib/dom';
import { isOnLaunch } from '@shared/lib/utils';
import { Agent } from '@agent/Agent.jsx';
import '@agent/agent.css';
import '@agent/buttons';
import { GuidedTour } from '@agent/components/GuidedTour';
import { ReOpenToolTip } from '@agent/components/tooltip/ReOpenToolTip';
const isInsideIframe = () => !!document.querySelector('#plugin-information');
domReady(() => {
const bg =
// admin area
document.getElementById('wpwrap') ||
// TODO: is this on all block themes?
document.querySelector('.wp-site-blocks');
if (isOnLaunch() || isInsideIframe() || !bg) return;
const id = 'extendify-agent-main';
if (document.getElementById(id)) return;
const agent = Object.assign(document.createElement('div'), {
className: 'extendify-agent',
id,
});
document.body.appendChild(agent);
render(<Agent />, agent);
// tours
const tourId = 'extendify-agent-tour';
if (document.getElementById(tourId)) return;
const tour = Object.assign(document.createElement('div'), {
className: 'extendify-agent-tour',
id: tourId,
});
render(<GuidedTour />, tour);
// tooltip
const div = Object.assign(document.createElement('div'), {
id: 'extendify-agent-modal-tooltip',
});
document.body.appendChild(div);
render(<ReOpenToolTip />, div);
});