SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > src > Launch > pages


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/extendify/src/Launch/pages

NameTypeSizeLast ModifiedActions
ContentGathering.jsx File 2523 bytes July 16 2025 19:39:24.
CreatingSite.jsx File 18008 bytes July 16 2025 19:39:24.
HomeSelect.jsx File 6515 bytes March 13 2025 21:10:44.
NeedsTheme.jsx File 939 bytes December 19 2024 22:43:36.
ObjectiveSelection.jsx File 3768 bytes April 14 2025 20:31:16.
PagesSelect.jsx File 6181 bytes March 13 2025 21:10:44.
SiteInformation.jsx File 7908 bytes July 16 2025 19:39:24.
SitePrep.jsx File 2833 bytes July 16 2025 19:39:24.
SiteQuestions.jsx File 3521 bytes July 16 2025 19:39:24.
SiteStructure.jsx File 3807 bytes April 22 2025 21:31:24.

Reading File: /home/codekrsu//ameliagraphics.com/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 { useGoals } from '@launch/hooks/useGoals';
import { useSiteLogo } from '@launch/hooks/useSiteLogo';
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();
	const { goals } = useGoals({
		disableFetch: showSiteQuestions,
	});
	useSiteLogo();
	const { questions } = useSiteQuestions({
		disableFetch: !showSiteQuestions,
	});

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

	useEffect(() => {
		let id;

		if (goals && !showSiteQuestions) {
			addMany('goals', goals, { 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);
	}, [
		goals,
		nextPage,
		addMany,
		questions,
		setSiteQuestions,
		showSiteQuestions,
	]);

	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>
	);
};

SILENT KILLER Tool