$64 GRAYBYTE WORDPRESS FILE MANAGER $92

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/dantho.rw/wp-content/plugins/extendify/src/Launch/pages/

HOME
Current File : /home/bravrvjk/dantho.rw/wp-content/plugins/extendify/src/Launch/pages//SitePrep.jsx
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 { useSiteLogo } from '@launch/hooks/useSiteLogo';
import { useSitePlugins } from '@launch/hooks/useSitePlugins';
import { useSiteProfile } from '@launch/hooks/useSiteProfile';
import { useSiteQuestions } from '@launch/hooks/useSiteQuestions';
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 showSiteQuestions = window.extSharedData?.showSiteQuestions ?? false;
	const { nextPage } = usePagesStore();
	const { setSiteProfile, addMany, setSiteQuestions } = useUserSelectionStore();
	const { siteProfile } = useSiteProfile();
	useSiteLogo();
	const { questions } = useSiteQuestions({
		disableFetch: !showSiteQuestions,
	});
	const { sitePlugins } = useSitePlugins({
		disableFetch: showSiteQuestions,
	});

	useEffect(() => {
		if (!siteProfile) return;
		setSiteProfile(siteProfile);
		updateOption('extendify_site_profile', siteProfile);
	}, [siteProfile, setSiteProfile]);

	useEffect(() => {
		let id;

		if (sitePlugins && !showSiteQuestions) {
			addMany('sitePlugins', sitePlugins, { clearExisting: true });
			id = setTimeout(nextPage, 1000);
		}

		if (questions && showSiteQuestions) {
			const visible = (questions?.visible || []).map((q) => ({
				...q,
				group: 'visible',
			}));
			const hidden = (questions?.hidden || []).map((q) => ({
				...q,
				group: 'hidden',
			}));
			const allQuestions = [...visible, ...hidden];
			setSiteQuestions({
				showHidden: false,
				questions: allQuestions,
			});
			id = setTimeout(nextPage, 1000);
		}

		return () => clearTimeout(id);
	}, [
		nextPage,
		addMany,
		questions,
		setSiteQuestions,
		showSiteQuestions,
		sitePlugins,
	]);

	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
						poster={`${window.extSharedData.assetPath}/data-processing.webp`}
						path="https://images.extendify-cdn.com/launch/data-processing.webm"
						className="mx-auto h-auto w-72 md:h-[288px]"
					/>

					<Title
						title={__('Customizing Your Experience', 'extendify-local')}
						description={__(
							'Please wait while we analyze your inputs and tailor your experience.',
							'extendify-local',
						)}
					/>
				</div>
			</div>
		</PageLayout>
	);
};


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 Nov 2025 10.43 AM
bravrvjk / bravrvjk
0755
ContentGathering.jsx
2.486 KB
27 Aug 2025 5.47 PM
bravrvjk / bravrvjk
0644
CreatingSite.jsx
20.333 KB
23 Oct 2025 8.20 PM
bravrvjk / bravrvjk
0644
HomeSelect.jsx
6.362 KB
13 Mar 2025 9.10 PM
bravrvjk / bravrvjk
0644
NeedsTheme.jsx
0.916 KB
27 Aug 2025 5.47 PM
bravrvjk / bravrvjk
0644
ObjectiveSelection.jsx
3.68 KB
14 Apr 2025 8.31 PM
bravrvjk / bravrvjk
0644
PagesSelect.jsx
5.787 KB
25 Sep 2025 8.59 PM
bravrvjk / bravrvjk
0644
SiteInformation.jsx
8.643 KB
25 Sep 2025 8.59 PM
bravrvjk / bravrvjk
0644
SitePrep.jsx
2.813 KB
27 Aug 2025 5.47 PM
bravrvjk / bravrvjk
0644
SiteQuestions.jsx
5.913 KB
23 Oct 2025 8.20 PM
bravrvjk / bravrvjk
0644
SiteStructure.jsx
3.718 KB
22 Apr 2025 9.31 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF