require("./chunk-9hOWP6kD.cjs");
const require_static_dict_adapter = require("./static-dict-adapter-BP_TjyiI.cjs");
const require_src = require("./src-B0ut9PTw.cjs");
const require_translation_api_context_factory = require("./translation-api-context-factory-CFtMAp8h.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
let lucide_react = require("lucide-react");
let clsx = require("clsx");
let tailwind_merge = require("tailwind-merge");
//#region ../pro-upgrade-ui/src/translation-api-context.ts
const { Provider, useTranslation } = require_translation_api_context_factory.createTranslationContext("Upgrade");
const UpgradeTranslationProvider = Provider;
const useUpgradeTranslation = useTranslation;
//#endregion
//#region ../pro-upgrade-ui/src/lib/cn.ts
function cn(...inputs) {
	return (0, tailwind_merge.twMerge)((0, clsx.clsx)(inputs));
}
//#endregion
//#region ../pro-upgrade-ui/src/components/PortalProUpgradeScreen.tsx
const FEATURES = [
	{
		icon: lucide_react.Sparkles,
		titleKey: "feature_generative_ai_title",
		descriptionKey: "feature_generative_ai_description"
	},
	{
		icon: lucide_react.Phone,
		titleKey: "feature_business_phone_title",
		descriptionKey: "feature_business_phone_description"
	},
	{
		icon: lucide_react.MessagesSquare,
		titleKey: "feature_mass_messaging_title",
		descriptionKey: "feature_mass_messaging_description"
	},
	{
		icon: lucide_react.CalendarMinus,
		titleKey: "feature_scheduled_messages_title",
		descriptionKey: "feature_scheduled_messages_description"
	},
	{
		icon: lucide_react.MessageSquareHeart,
		titleKey: "feature_unified_messaging_title",
		descriptionKey: "feature_unified_messaging_description"
	}
];
function FeatureCard({ icon: Icon, titleKey, descriptionKey }) {
	const { t } = useUpgradeTranslation();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.Card, {
		className: "bg-background text-foreground h-auto gap-0 border-none py-4",
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_src.CardHeader, {
			className: "gap-3 px-4",
			children: [
				/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
					className: "size-6",
					strokeWidth: 1.5
				}),
				/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.CardTitle, {
					className: "text-sm font-bold",
					children: t(titleKey)
				}),
				/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.CardDescription, {
					className: "text-xs",
					children: t(descriptionKey)
				})
			]
		})
	});
}
function PortalProUpgradeScreen({ onJoinWaitlist, waitlistLoading = false, className }) {
	const { t } = useUpgradeTranslation();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
		className: cn("relative flex h-full w-full flex-col overflow-hidden md:flex-row", className),
		children: [
			/* @__PURE__ */ (0, react_jsx_runtime.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__ */ (0, react_jsx_runtime.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__ */ (0, react_jsx_runtime.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__ */ (0, react_jsx_runtime.jsxs)("div", {
					className: "flex flex-col items-center gap-4",
					children: [/* @__PURE__ */ (0, react_jsx_runtime.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__ */ (0, react_jsx_runtime.jsx)(require_src.Button, {
						className: "hidden w-full md:w-auto",
						size: "xl",
						onClick: onJoinWaitlist,
						disabled: waitlistLoading,
						children: waitlistLoading ? t("joining_waitlist") : t("join_waitlist")
					})]
				})
			}),
			/* @__PURE__ */ (0, react_jsx_runtime.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__ */ (0, react_jsx_runtime.jsxs)("div", {
					className: "flex shrink-0 flex-col gap-2.5",
					children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h1", {
						className: "text-3xl leading-tight font-semibold tracking-tight text-black md:text-5xl",
						children: [
							t("heading_line1"),
							/* @__PURE__ */ (0, react_jsx_runtime.jsx)("br", {}),
							t("heading_line2")
						]
					}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
						className: "text-sm leading-5 font-medium text-black",
						children: t("subheading")
					})]
				}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
					className: "flex flex-col gap-4 pb-4",
					children: FEATURES.map((feature) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FeatureCard, { ...feature }, feature.titleKey))
				})]
			})
		]
	});
}
//#endregion
//#region ../pro-upgrade-ui/src/translation-adapter.ts
const upgradeDomain = require_static_dict_adapter.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: () => Promise.resolve().then(() => require("./de-CUZi6t6x.cjs")).then((m) => m.default),
		el: () => Promise.resolve().then(() => require("./el-BJAsvlBy.cjs")).then((m) => m.default),
		es: () => Promise.resolve().then(() => require("./es-C-LFAOgJ.cjs")).then((m) => m.default),
		fr: () => Promise.resolve().then(() => require("./fr-CjBXuYrE.cjs")).then((m) => m.default),
		he: () => Promise.resolve().then(() => require("./he-DXXh7noO.cjs")).then((m) => m.default),
		hu: () => Promise.resolve().then(() => require("./hu-CCzO70Q3.cjs")).then((m) => m.default),
		id: () => Promise.resolve().then(() => require("./id-B6FNYe1g.cjs")).then((m) => m.default),
		it: () => Promise.resolve().then(() => require("./it-BTD0OdIk.cjs")).then((m) => m.default),
		ja: () => Promise.resolve().then(() => require("./ja-CaGAez5_.cjs")).then((m) => m.default),
		ko: () => Promise.resolve().then(() => require("./ko-CpfBLBGF.cjs")).then((m) => m.default),
		nl: () => Promise.resolve().then(() => require("./nl-DzUwWg7W.cjs")).then((m) => m.default),
		pl: () => Promise.resolve().then(() => require("./pl-dppvaQ8R.cjs")).then((m) => m.default),
		pt: () => Promise.resolve().then(() => require("./pt-IcZK4CB7.cjs")).then((m) => m.default),
		ro: () => Promise.resolve().then(() => require("./ro-yajQoa8m.cjs")).then((m) => m.default),
		ru: () => Promise.resolve().then(() => require("./ru-Ntqb0Zvy.cjs")).then((m) => m.default),
		th: () => Promise.resolve().then(() => require("./th-ZBrKWVxx.cjs")).then((m) => m.default),
		tl: () => Promise.resolve().then(() => require("./tl-DuDu3ry8.cjs")).then((m) => m.default),
		tr: () => Promise.resolve().then(() => require("./tr-CLAHFRQ8.cjs")).then((m) => m.default),
		zh_CN: () => Promise.resolve().then(() => require("./zh_CN-D87IKl3u.cjs")).then((m) => m.default),
		zh_TW: () => Promise.resolve().then(() => require("./zh_TW-tUKABXhE.cjs")).then((m) => m.default)
	}
});
function createUpgradeTranslationAdapter(locale, dict) {
	return require_static_dict_adapter.createStaticDictAdapter(locale, dict);
}
//#endregion
//#region src/providers/UpgradeTranslationBridge.tsx
function UpgradeTranslationBridge({ children }) {
	const { locale } = require_static_dict_adapter.useActiveLocale();
	const dict = require_static_dict_adapter.useDomainDict(upgradeDomain, locale);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UpgradeTranslationProvider, {
		value: (0, react.useMemo)(() => createUpgradeTranslationAdapter(locale, dict), [locale, dict]),
		children
	});
}
//#endregion
//#region src/screens/UpgradeScreen.tsx
const upgradeScreenPropertySchema = {
	widgetType: "UpgradeScreen",
	displayName: "Upgrade Screen",
	fields: []
};
function UpgradeScreen() {
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UpgradeTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalProUpgradeScreen, { onJoinWaitlist: () => {} }) });
}
//#endregion
Object.defineProperty(exports, "UpgradeScreen", {
	enumerable: true,
	get: function() {
		return UpgradeScreen;
	}
});
Object.defineProperty(exports, "upgradeScreenPropertySchema", {
	enumerable: true,
	get: function() {
		return upgradeScreenPropertySchema;
	}
});

//# sourceMappingURL=UpgradeScreen-BTYWzV7s.cjs.map