import { I as __exportAll } from "./portal_tenant_content-DPLnrtOG.mjs";
import { a as useActiveLocale, n as createDomainTranslations, r as useDomainDict, t as createStaticDictAdapter } from "./static-dict-adapter-BxOhLaMD.mjs";
import { St as CardTitle, gt as Card, vn as Button, xt as CardHeader, yt as CardDescription } from "./src-Dk1FJOX0.mjs";
import { t as createTranslationContext } from "./translation-api-context-factory-CQiyQFCV.mjs";
import { useMemo } from "react";
import { jsx, jsxs } from "react/jsx-runtime";
import { CalendarMinus, MessageSquareHeart, MessagesSquare, Phone, Sparkles } from "lucide-react";
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
//#region ../pro-upgrade-ui/src/translation-api-context.ts
const { Provider, useTranslation } = createTranslationContext("Upgrade");
const UpgradeTranslationProvider = Provider;
const useUpgradeTranslation = useTranslation;
//#endregion
//#region ../pro-upgrade-ui/src/lib/cn.ts
function cn(...inputs) {
	return twMerge(clsx(inputs));
}
//#endregion
//#region ../pro-upgrade-ui/src/components/PortalProUpgradeScreen.tsx
const FEATURES = [
	{
		icon: Sparkles,
		titleKey: "feature_generative_ai_title",
		descriptionKey: "feature_generative_ai_description"
	},
	{
		icon: Phone,
		titleKey: "feature_business_phone_title",
		descriptionKey: "feature_business_phone_description"
	},
	{
		icon: MessagesSquare,
		titleKey: "feature_mass_messaging_title",
		descriptionKey: "feature_mass_messaging_description"
	},
	{
		icon: CalendarMinus,
		titleKey: "feature_scheduled_messages_title",
		descriptionKey: "feature_scheduled_messages_description"
	},
	{
		icon: MessageSquareHeart,
		titleKey: "feature_unified_messaging_title",
		descriptionKey: "feature_unified_messaging_description"
	}
];
function FeatureCard({ icon: Icon, titleKey, descriptionKey }) {
	const { t } = useUpgradeTranslation();
	return /* @__PURE__ */ jsx(Card, {
		className: "bg-background text-foreground h-auto gap-0 border-none py-4",
		children: /* @__PURE__ */ jsxs(CardHeader, {
			className: "gap-3 px-4",
			children: [
				/* @__PURE__ */ jsx(Icon, {
					className: "size-6",
					strokeWidth: 1.5
				}),
				/* @__PURE__ */ jsx(CardTitle, {
					className: "text-sm font-bold",
					children: t(titleKey)
				}),
				/* @__PURE__ */ jsx(CardDescription, {
					className: "text-xs",
					children: t(descriptionKey)
				})
			]
		})
	});
}
function PortalProUpgradeScreen({ onJoinWaitlist, waitlistLoading = false, className }) {
	const { t } = useUpgradeTranslation();
	return /* @__PURE__ */ jsxs("div", {
		className: cn("relative flex h-full w-full flex-col overflow-hidden md:flex-row", className),
		children: [
			/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-xl bg-linear-[33deg,rgba(8,148,255,0.2)_4.5%,rgba(201,89,221,0.2)_24.5%,rgba(255,46,84,0.2)_54.6%,rgba(255,144,4,0.2)_69.2%,rgba(255,255,255,0.2)_76.4%] blur-[125px]" }),
			/* @__PURE__ */ jsx("img", {
				src: "https://ik.imagekit.io/fluid/980191006/images/HW87RR/hero-collage_O6DCdkFib.png",
				alt: t("hero_alt"),
				className: "pointer-events-none absolute top-0 left-0 h-full w-full mask-b-from-20% mask-b-to-30% object-contain object-left-top md:w-4/5 md:mask-r-from-50% md:mask-r-to-70% md:mask-b-from-60% md:mask-b-to-80%"
			}),
			/* @__PURE__ */ jsx("div", {
				className: "relative flex w-full shrink-0 flex-col items-center justify-end px-8 pt-40 md:w-1/2 md:pt-0 md:pb-10",
				children: /* @__PURE__ */ jsxs("div", {
					className: "flex flex-col items-center gap-4",
					children: [/* @__PURE__ */ jsx("img", {
						src: "https://ik.imagekit.io/fluid/980191006/images/ZYT78J/co-founder-badge_NcorZNlUY.png",
						alt: t("badge_alt"),
						className: "h-auto w-120 object-contain"
					}), /* @__PURE__ */ jsx(Button, {
						className: "hidden w-full md:w-auto",
						size: "xl",
						onClick: onJoinWaitlist,
						disabled: waitlistLoading,
						children: waitlistLoading ? t("joining_waitlist") : t("join_waitlist")
					})]
				})
			}),
			/* @__PURE__ */ jsxs("div", {
				className: "relative flex min-w-0 flex-1 flex-col gap-6 overflow-y-auto px-8 pt-8 md:pt-16 md:pr-5 md:pb-5 md:pl-10",
				children: [/* @__PURE__ */ jsxs("div", {
					className: "flex shrink-0 flex-col gap-2.5",
					children: [/* @__PURE__ */ jsxs("h1", {
						className: "text-3xl leading-tight font-semibold tracking-tight text-black md:text-5xl",
						children: [
							t("heading_line1"),
							/* @__PURE__ */ jsx("br", {}),
							t("heading_line2")
						]
					}), /* @__PURE__ */ jsx("p", {
						className: "text-sm leading-5 font-medium text-black",
						children: t("subheading")
					})]
				}), /* @__PURE__ */ jsx("div", {
					className: "flex flex-col gap-4 pb-4",
					children: FEATURES.map((feature) => /* @__PURE__ */ jsx(FeatureCard, { ...feature }, feature.titleKey))
				})]
			})
		]
	});
}
//#endregion
//#region ../pro-upgrade-ui/src/translation-adapter.ts
const upgradeDomain = createDomainTranslations({
	fallback: {
		heading_line1: "It's like having an",
		heading_line2: "assistant in your pocket",
		subheading: "Upgrade your business",
		join_waitlist: "Join Waitlist",
		joining_waitlist: "Joining...",
		hero_alt: "People using the app with push notifications",
		badge_alt: "Coming Soon - Co-Founder",
		feature_generative_ai_title: "Generative AI",
		feature_generative_ai_description: "Get quick drafts and creative messaging help.",
		feature_business_phone_title: "Business phone number",
		feature_business_phone_description: "Look professional with a dedicated client line.",
		feature_mass_messaging_title: "Mass Messaging",
		feature_mass_messaging_description: "Save time by messaging multiple clients at once.",
		feature_scheduled_messages_title: "Scheduled messages",
		feature_scheduled_messages_description: "Plan ahead and schedule messages easily.",
		feature_unified_messaging_title: "Unified messaging",
		feature_unified_messaging_description: "Combine email, SMS, and internal messages."
	},
	loaders: {
		de: () => import("./de-BjLYmVs_.mjs").then((m) => m.default),
		el: () => import("./el-ru2yGLoA.mjs").then((m) => m.default),
		es: () => import("./es-BxDX9jdP.mjs").then((m) => m.default),
		fr: () => import("./fr-dP9DF_Uh.mjs").then((m) => m.default),
		he: () => import("./he-CgEnmjVI.mjs").then((m) => m.default),
		hu: () => import("./hu-BGAKjE1c.mjs").then((m) => m.default),
		id: () => import("./id-CxJwX0OB.mjs").then((m) => m.default),
		it: () => import("./it-hWPMmscd.mjs").then((m) => m.default),
		ja: () => import("./ja-IvE3wMXb.mjs").then((m) => m.default),
		ko: () => import("./ko-BNlLnMsr.mjs").then((m) => m.default),
		nl: () => import("./nl-DO8z0d8n.mjs").then((m) => m.default),
		pl: () => import("./pl-Dp6KUw6T.mjs").then((m) => m.default),
		pt: () => import("./pt-CitbnJ4Z.mjs").then((m) => m.default),
		ro: () => import("./ro-CSegDQys.mjs").then((m) => m.default),
		ru: () => import("./ru-BW1seAHp.mjs").then((m) => m.default),
		th: () => import("./th-A4TdUQ_Q.mjs").then((m) => m.default),
		tl: () => import("./tl-CBzm9DOV.mjs").then((m) => m.default),
		tr: () => import("./tr-DyzdRJvU.mjs").then((m) => m.default),
		zh_CN: () => import("./zh_CN-CWZE3mTe.mjs").then((m) => m.default),
		zh_TW: () => import("./zh_TW-wgpTtxoA.mjs").then((m) => m.default)
	}
});
function createUpgradeTranslationAdapter(locale, dict) {
	return createStaticDictAdapter(locale, dict);
}
//#endregion
//#region src/providers/UpgradeTranslationBridge.tsx
function UpgradeTranslationBridge({ children }) {
	const { locale } = useActiveLocale();
	const dict = useDomainDict(upgradeDomain, locale);
	return /* @__PURE__ */ jsx(UpgradeTranslationProvider, {
		value: useMemo(() => createUpgradeTranslationAdapter(locale, dict), [locale, dict]),
		children
	});
}
//#endregion
//#region src/screens/UpgradeScreen.tsx
var UpgradeScreen_exports = /* @__PURE__ */ __exportAll({
	UpgradeScreen: () => UpgradeScreen,
	upgradeScreenPropertySchema: () => upgradeScreenPropertySchema
});
const upgradeScreenPropertySchema = {
	widgetType: "UpgradeScreen",
	displayName: "Upgrade Screen",
	fields: []
};
function UpgradeScreen() {
	return /* @__PURE__ */ jsx(UpgradeTranslationBridge, { children: /* @__PURE__ */ jsx(PortalProUpgradeScreen, { onJoinWaitlist: () => {} }) });
}
//#endregion
export { UpgradeScreen_exports as t };

//# sourceMappingURL=UpgradeScreen-DZ6uZpeX.mjs.map