X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/extendify/src/Agent
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
extendify
/
src
/
Agent
/
📁
..
📄
Agent.jsx
(17.4 KB)
📄
Chat.jsx
(2.42 KB)
📄
agent.css
(3.8 KB)
📄
agent.js
(1.29 KB)
📄
api.js
(4.82 KB)
📄
buttons.js
(2.29 KB)
📁
components
📁
hooks
📄
icons.jsx
(6.92 KB)
📁
lib
📁
state
📁
tours
📁
workflows
Editing: agent.js
import { Agent } from '@agent/Agent.jsx'; import { render } from '@shared/lib/dom'; import { isOnLaunch } from '@shared/lib/utils'; import domReady from '@wordpress/dom-ready'; import '@agent/agent.css'; import '@agent/buttons'; import { GuidedTour } from '@agent/components/GuidedTour'; import { throwSideConfetti } from './lib/confetti'; const isInsideIframe = () => !!document.querySelector('body.iframe'); domReady(() => { // disableForReducedMotion // 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); 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); // Runs when extendify-launch-success is in the url if (window.extAgentData?.startOnboarding) { requestAnimationFrame(() => { throwSideConfetti(); }); } });
Upload File
Create Folder