Server IP : 162.213.251.212 / Your IP : 18.222.20.237 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/bestvalleywater.com/wp-content/plugins/extendify/src/Launch/pages/ |
Upload File : |
import { useEffect } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { updateOption } from '@launch/api/WPApi'; import { Title } from '@launch/components/Title'; import { VideoPlayer } from '@launch/components/VideoPlayer'; import { useGoals } from '@launch/hooks/useGoals'; import { useSiteProfile } from '@launch/hooks/useSiteProfile'; import { PageLayout } from '@launch/layouts/PageLayout'; import { usePagesStore } from '@launch/state/Pages'; import { pageState } from '@launch/state/factory'; import { useUserSelectionStore } from '@launch/state/user-selections'; export const state = pageState('Content Gathering', () => ({ ready: true, canSkip: false, useNav: false, onRemove: () => {}, })); export const SitePrep = () => { const { nextPage } = usePagesStore(); const { setSiteProfile } = useUserSelectionStore(); const { siteProfile } = useSiteProfile(); const { goals } = useGoals(); useEffect(() => { if (!siteProfile) return; setSiteProfile(siteProfile); updateOption('extendify_site_profile', siteProfile); }, [siteProfile, setSiteProfile]); useEffect(() => { if (!goals) return; let id = setTimeout(nextPage, 1000); return () => clearTimeout(id); }, [goals, nextPage]); return ( <PageLayout> <div className="mx-auto grow overflow-y-auto px-4 py-8 md:p-12 md:px-6 3xl:p-16"> <div className="mx-auto flex h-full flex-col justify-center"> <VideoPlayer path="https://assets.extendify.com/launch/data-processing.webm" className="mx-auto h-auto w-72" /> <Title title={__('Customizing Your Experience', 'extendify-local')} description={__( 'Please wait while we analyze your inputs and tailor your experience.', 'extendify-local', )} /> </div> </div> </PageLayout> ); };