import { n as head_default, o as vue_exports, r as link_default } from "../ssr.js";
import { n as server_renderer_exports, t } from "./i18n-CXLOYfyq.js";
import { t as MarketingLayout_default } from "./MarketingLayout-B4vwnMD8.js";
//#region resources/js/Pages/Store/Success.vue?vue&type=script&setup=true&lang.ts
var Success_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue_exports.defineComponent)({
	__name: "Success",
	__ssrInlineRender: true,
	props: { license: {} },
	setup(__props) {
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<!--[-->`);
			_push((0, server_renderer_exports.ssrRenderComponent)((0, vue_exports.unref)(head_default), { title: (0, vue_exports.unref)(t)("Thank you") }, null, _parent));
			_push((0, server_renderer_exports.ssrRenderComponent)(MarketingLayout_default, null, {
				default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
					if (_push) {
						_push(`<section class="mx-auto max-w-xl px-6 py-24 text-center"${_scopeId}><div class="text-5xl"${_scopeId}>🎉</div><h1 class="mt-4 text-3xl font-black tracking-tight"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Thank you!"))}</h1>`);
						if (__props.license) _push(`<!--[--><p class="mt-3 text-ink-2"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Your purchase of"))} <strong${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)(__props.license.product)}</strong> ${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("is complete. Here’s your license key:"))}</p><div class="mt-5 select-all rounded-xl border border-line bg-surface-2 px-5 py-4 font-mono text-lg font-bold tracking-wide text-primary"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)(__props.license.key)}</div><p class="mt-3 text-sm text-ink-muted"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Enter this key in your site’s"))} <strong${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Admin → Marketplace"))}</strong> ${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("to install it. It’s also saved to your account."))}</p><!--]-->`);
						else _push(`<p class="mt-3 text-ink-2"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Your payment is being confirmed. Your license key will appear in your account momentarily — and we’ve emailed it to you."))}</p>`);
						_push(`<div class="mt-8 flex justify-center gap-3"${_scopeId}>`);
						_push((0, server_renderer_exports.ssrRenderComponent)((0, vue_exports.unref)(link_default), {
							href: "/account/licenses",
							class: "rounded-xl bg-primary px-5 py-3 font-bold text-white hover:bg-primary-600"
						}, {
							default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
								if (_push) _push(`${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("View my licenses"))}`);
								else return [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("View my licenses")), 1)];
							}),
							_: 1
						}, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)((0, vue_exports.unref)(link_default), {
							href: "/extensions",
							class: "rounded-xl border border-line px-5 py-3 font-bold text-ink-2 hover:bg-surface-2"
						}, {
							default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
								if (_push) _push(`${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Back to extensions"))}`);
								else return [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Back to extensions")), 1)];
							}),
							_: 1
						}, _parent, _scopeId));
						_push(`</div></section>`);
					} else return [(0, vue_exports.createVNode)("section", { class: "mx-auto max-w-xl px-6 py-24 text-center" }, [
						(0, vue_exports.createVNode)("div", { class: "text-5xl" }, "🎉"),
						(0, vue_exports.createVNode)("h1", { class: "mt-4 text-3xl font-black tracking-tight" }, (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Thank you!")), 1),
						__props.license ? ((0, vue_exports.openBlock)(), (0, vue_exports.createBlock)(vue_exports.Fragment, { key: 0 }, [
							(0, vue_exports.createVNode)("p", { class: "mt-3 text-ink-2" }, [
								(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Your purchase of")) + " ", 1),
								(0, vue_exports.createVNode)("strong", null, (0, vue_exports.toDisplayString)(__props.license.product), 1),
								(0, vue_exports.createTextVNode)(" " + (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("is complete. Here’s your license key:")), 1)
							]),
							(0, vue_exports.createVNode)("div", { class: "mt-5 select-all rounded-xl border border-line bg-surface-2 px-5 py-4 font-mono text-lg font-bold tracking-wide text-primary" }, (0, vue_exports.toDisplayString)(__props.license.key), 1),
							(0, vue_exports.createVNode)("p", { class: "mt-3 text-sm text-ink-muted" }, [
								(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Enter this key in your site’s")) + " ", 1),
								(0, vue_exports.createVNode)("strong", null, (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Admin → Marketplace")), 1),
								(0, vue_exports.createTextVNode)(" " + (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("to install it. It’s also saved to your account.")), 1)
							])
						], 64)) : ((0, vue_exports.openBlock)(), (0, vue_exports.createBlock)("p", {
							key: 1,
							class: "mt-3 text-ink-2"
						}, (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Your payment is being confirmed. Your license key will appear in your account momentarily — and we’ve emailed it to you.")), 1)),
						(0, vue_exports.createVNode)("div", { class: "mt-8 flex justify-center gap-3" }, [(0, vue_exports.createVNode)((0, vue_exports.unref)(link_default), {
							href: "/account/licenses",
							class: "rounded-xl bg-primary px-5 py-3 font-bold text-white hover:bg-primary-600"
						}, {
							default: (0, vue_exports.withCtx)(() => [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("View my licenses")), 1)]),
							_: 1
						}), (0, vue_exports.createVNode)((0, vue_exports.unref)(link_default), {
							href: "/extensions",
							class: "rounded-xl border border-line px-5 py-3 font-bold text-ink-2 hover:bg-surface-2"
						}, {
							default: (0, vue_exports.withCtx)(() => [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Back to extensions")), 1)]),
							_: 1
						})])
					])];
				}),
				_: 1
			}, _parent));
			_push(`<!--]-->`);
		};
	}
});
//#endregion
//#region resources/js/Pages/Store/Success.vue
var _sfc_setup = Success_vue_vue_type_script_setup_true_lang_default.setup;
Success_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = (0, vue_exports.useSSRContext)();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Pages/Store/Success.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var Success_default = Success_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { Success_default as default };
