import { Head, useForm } from "@inertiajs/vue3";
import { defineComponent, mergeProps, unref, useSSRContext } from "vue";
import { ssrIncludeBooleanAttr, ssrInterpolate, ssrRenderAttr, ssrRenderAttrs, ssrRenderComponent } from "vue/server-renderer";
import { AlertCircle, Cpu, Database, Globe, Key, Loader2, ShieldCheck, Zap } from "lucide-vue-next";
//#region resources/js/Pages/Auth/ActivateLicense.vue?vue&type=script&setup=true&lang.ts
var ActivateLicense_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
	__name: "ActivateLicense",
	__ssrInlineRender: true,
	props: {
		domain: {},
		status: {},
		error: {}
	},
	setup(__props) {
		const form = useForm({ license_code: "" });
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<div${ssrRenderAttrs(mergeProps({ class: "min-h-screen w-full flex bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 font-sans antialiased overflow-hidden" }, _attrs))}>`);
			_push(ssrRenderComponent(unref(Head), { title: `Activate License - ${_ctx.$page.props.settings.site_name || "CafePOS"}` }, null, _parent));
			_push(`<div class="hidden lg:flex lg:w-1/2 relative flex-col justify-between p-12 bg-white dark:bg-slate-950 border-r border-slate-200/50 dark:border-slate-800/30 overflow-hidden"><div class="absolute inset-0 bg-[linear-gradient(to_right,#f1f5f9_1px,transparent_1px),linear-gradient(to_bottom,#f1f5f9_1px,transparent_1px)] dark:bg-[linear-gradient(to_right,#1e293b_1px,transparent_1px),linear-gradient(to_bottom,#1e293b_1px,transparent_1px)] bg-[size:4rem_4rem] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_50%,#000_70%,transparent_100%)] opacity-70"></div><div class="relative z-10 flex items-center gap-3">`);
			if (_ctx.$page.props.settings.site_logo) _push(`<img${ssrRenderAttr("src", _ctx.$page.props.settings.site_logo)} alt="Logo" class="h-9 w-9 object-contain flex-shrink-0">`);
			else _push(`<div class="h-9 w-9 rounded-lg bg-[#8c5a3c] flex items-center justify-center flex-shrink-0 text-white font-bold text-lg shadow-md shadow-[#8c5a3c]/20"><span>${ssrInterpolate(_ctx.$page.props.settings.site_name?.charAt(0) ?? "C")}</span></div>`);
			_push(`<span class="font-extrabold text-lg tracking-wider text-slate-900 dark:text-white uppercase leading-none">${ssrInterpolate(_ctx.$page.props.settings.site_name || "CafePOS")}</span></div><div class="relative z-10 space-y-8 my-auto"><div class="space-y-4 max-w-lg"><div class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-semibold bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 border border-slate-200/50 dark:border-slate-700/30">`);
			_push(ssrRenderComponent(unref(Zap), { class: "h-3.5 w-3.5 text-[#8c5a3c] dark:text-[#a06d4e]" }, null, _parent));
			_push(`<span>Security &amp; Licensing</span></div><h1 class="text-4xl font-extrabold tracking-tight text-slate-950 dark:text-white leading-[1.15]"> Sistem Aktivasi <span class="text-[#8c5a3c] dark:text-[#a06d4e]">Lisensi Terproteksi.</span></h1><p class="text-slate-500 dark:text-slate-400 text-sm leading-relaxed"> Aplikasi ini membutuhkan verifikasi lisensi satu kali untuk dapat berjalan di lingkungan produksi (production environment) demi menjamin keamanan dan keaslian kode sumber. </p></div><div class="grid grid-cols-2 gap-x-8 gap-y-4 max-w-md"><div class="flex items-center gap-3"><div class="h-8 w-8 rounded-lg bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 flex items-center justify-center text-slate-400">`);
			_push(ssrRenderComponent(unref(ShieldCheck), { class: "h-4.5 w-4.5" }, null, _parent));
			_push(`</div><span class="text-xs font-medium text-slate-600 dark:text-slate-300">Kriptografi APP_KEY</span></div><div class="flex items-center gap-3"><div class="h-8 w-8 rounded-lg bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 flex items-center justify-center text-slate-400">`);
			_push(ssrRenderComponent(unref(Globe), { class: "h-4.5 w-4.5" }, null, _parent));
			_push(`</div><span class="text-xs font-medium text-slate-600 dark:text-slate-300">Verifikasi Hostname</span></div><div class="flex items-center gap-3"><div class="h-8 w-8 rounded-lg bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 flex items-center justify-center text-slate-400">`);
			_push(ssrRenderComponent(unref(Database), { class: "h-4.5 w-4.5" }, null, _parent));
			_push(`</div><span class="text-xs font-medium text-slate-600 dark:text-slate-300">Tanda Tangan Lokal</span></div><div class="flex items-center gap-3"><div class="h-8 w-8 rounded-lg bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 flex items-center justify-center text-slate-400">`);
			_push(ssrRenderComponent(unref(Cpu), { class: "h-4.5 w-4.5" }, null, _parent));
			_push(`</div><span class="text-xs font-medium text-slate-600 dark:text-slate-300">Aktivasi Satu Kali</span></div></div></div><div class="relative z-10 text-xs text-slate-400 dark:text-slate-600"><span>© 2026 ${ssrInterpolate(_ctx.$page.props.settings.site_name || "CafePOS")}. All rights reserved.</span></div></div><div class="w-full lg:w-1/2 flex items-center justify-center p-6 sm:p-12 relative"><div class="absolute top-6 left-6 lg:hidden flex items-center gap-2.5">`);
			if (_ctx.$page.props.settings.site_logo) _push(`<img${ssrRenderAttr("src", _ctx.$page.props.settings.site_logo)} alt="Logo" class="h-8 w-8 object-contain flex-shrink-0">`);
			else _push(`<div class="h-8 w-8 rounded-lg bg-[#8c5a3c] flex items-center justify-center flex-shrink-0 text-white font-bold text-md"><span>${ssrInterpolate(_ctx.$page.props.settings.site_name?.charAt(0) ?? "C")}</span></div>`);
			_push(`<span class="font-extrabold text-sm tracking-wider uppercase text-slate-900 dark:text-white leading-none">${ssrInterpolate(_ctx.$page.props.settings.site_name || "CafePOS")}</span></div><div class="w-full max-w-md bg-white dark:bg-slate-955 border border-slate-200 dark:border-slate-800 rounded-2xl p-8 shadow-xl shadow-slate-105/50 dark:shadow-none space-y-6"><div class="space-y-1"><h2 class="text-2xl font-bold tracking-tight text-slate-900 dark:text-white">Aktivasi Lisensi</h2><p class="text-xs text-slate-500 dark:text-slate-400">Masukkan kode lisensi produk Anda untuk membuka akses sistem</p></div>`);
			if (__props.status) _push(`<div class="p-3 bg-emerald-50 dark:bg-emerald-950/20 border border-emerald-200 dark:border-emerald-900/40 rounded-lg text-xs font-medium text-emerald-600 dark:text-emerald-400">${ssrInterpolate(__props.status)}</div>`);
			else _push(`<!---->`);
			if (__props.error) {
				_push(`<div class="p-3 bg-rose-50 dark:bg-rose-955/20 border border-rose-200 dark:border-rose-900/40 rounded-lg text-xs font-medium text-rose-600 dark:text-rose-400 flex items-start gap-2">`);
				_push(ssrRenderComponent(unref(AlertCircle), { class: "h-4 w-4 shrink-0 mt-0.5" }, null, _parent));
				_push(`<span>${ssrInterpolate(__props.error)}</span></div>`);
			} else _push(`<!---->`);
			_push(`<div class="p-3.5 bg-slate-50 dark:bg-slate-900/50 border border-slate-200/60 dark:border-slate-800 rounded-xl text-xs flex items-center justify-between"><span class="text-slate-500 dark:text-slate-400 font-medium">Domain Aktif:</span><span class="font-mono font-semibold text-slate-800 dark:text-slate-200 flex items-center gap-1.5">`);
			_push(ssrRenderComponent(unref(Globe), { class: "h-3.5 w-3.5 text-slate-400" }, null, _parent));
			_push(` ${ssrInterpolate(__props.domain)}</span></div><form class="space-y-5"><div class="space-y-1.5"><label for="license_code" class="text-xs font-semibold text-slate-700 dark:text-slate-300">Kode Lisensi</label><div class="relative flex items-center"><span class="absolute left-3.5 text-slate-400 dark:text-slate-600">`);
			_push(ssrRenderComponent(unref(Key), { class: "h-4.5 w-4.5" }, null, _parent));
			_push(`</span><input id="license_code"${ssrRenderAttr("value", unref(form).license_code)} type="text" required autofocus placeholder="CP-XXXX-XXXX-XXXX-XXXX" class="w-full pl-12 pr-3.5 py-2.5 rounded-lg border border-slate-200 dark:border-slate-800 bg-transparent text-sm font-mono tracking-wider text-slate-900 dark:text-slate-100 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c] transition-all"></div>`);
			if (unref(form).errors.license_code) {
				_push(`<p class="text-[11px] text-rose-600 flex items-start gap-1 mt-1 font-medium leading-normal">`);
				_push(ssrRenderComponent(unref(AlertCircle), { class: "h-3.5 w-3.5 shrink-0 mt-0.5" }, null, _parent));
				_push(`<span>${ssrInterpolate(unref(form).errors.license_code)}</span></p>`);
			} else _push(`<!---->`);
			_push(`</div><button type="submit"${ssrIncludeBooleanAttr(unref(form).processing) ? " disabled" : ""} class="w-full py-2.5 bg-[#8c5a3c] hover:bg-[#734a31] dark:bg-[#8c5a3c] dark:hover:bg-[#734a31] text-white font-bold rounded-lg text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 disabled:opacity-50 cursor-pointer flex items-center justify-center gap-2 shadow-lg shadow-[#8c5a3c]/20">`);
			if (unref(form).processing) _push(ssrRenderComponent(unref(Loader2), { class: "h-4 w-4 animate-spin" }, null, _parent));
			else _push(`<!---->`);
			_push(`<span>${ssrInterpolate(unref(form).processing ? "Memverifikasi..." : "Aktivasi Lisensi")}</span></button></form><p class="text-[10px] text-center text-slate-400 dark:text-slate-655 leading-normal"> Kode lisensi didapatkan setelah pembelian source code. Mengalami kendala? Hubungi <a href="mailto:support@radhian.my.id" class="hover:underline font-semibold text-slate-500 dark:text-slate-500">Support Center</a> kami. </p></div></div></div>`);
		};
	}
});
//#endregion
//#region resources/js/Pages/Auth/ActivateLicense.vue
var _sfc_setup = ActivateLicense_vue_vue_type_script_setup_true_lang_default.setup;
ActivateLicense_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = useSSRContext();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Pages/Auth/ActivateLicense.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var ActivateLicense_default = ActivateLicense_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { ActivateLicense_default as default };
