import { t as AdminLayout_default } from "./AdminLayout-DcKfAlG1.js";
import { Head, router, useForm } from "@inertiajs/vue3";
import { Fragment, createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, toDisplayString, unref, useSSRContext, vModelSelect, vModelText, withCtx, withDirectives, withModifiers } from "vue";
import { ssrIncludeBooleanAttr, ssrInterpolate, ssrLooseContain, ssrLooseEqual, ssrRenderAttr, ssrRenderComponent, ssrRenderList } from "vue/server-renderer";
import { Edit2, Phone, Plus, ToggleLeft, ToggleRight, Trash2, Truck, Users, X } from "lucide-vue-next";
//#region resources/js/Pages/CafePOS/Couriers/Index.vue?vue&type=script&setup=true&lang.ts
var Index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
	__name: "Index",
	__ssrInlineRender: true,
	props: {
		couriers: {},
		outlets: {}
	},
	setup(__props) {
		const props = __props;
		const isFormModalOpen = ref(false);
		const editingCourier = ref(null);
		const form = useForm({
			name: "",
			phone: "",
			vehicle_number: "",
			outlet_id: "",
			is_active: true
		});
		const openCreateModal = () => {
			editingCourier.value = null;
			form.clearErrors();
			form.reset();
			if (props.outlets.length > 0) form.outlet_id = String(props.outlets[0].id);
			isFormModalOpen.value = true;
		};
		const openEditModal = (courier) => {
			editingCourier.value = courier;
			form.clearErrors();
			form.name = courier.name;
			form.phone = courier.phone;
			form.vehicle_number = courier.vehicle_number;
			form.outlet_id = String(courier.outlet_id);
			form.is_active = courier.is_active;
			isFormModalOpen.value = true;
		};
		const submitForm = () => {
			const payload = {
				...form.data(),
				outlet_id: Number(form.outlet_id)
			};
			if (editingCourier.value) router.put(route("couriers.update", editingCourier.value.id), payload, { onSuccess: () => {
				isFormModalOpen.value = false;
				form.reset();
			} });
			else router.post(route("couriers.store"), payload, { onSuccess: () => {
				isFormModalOpen.value = false;
				form.reset();
			} });
		};
		const toggleCourierStatus = (courier) => {
			router.put(route("couriers.update", courier.id), {
				name: courier.name,
				phone: courier.phone,
				vehicle_number: courier.vehicle_number,
				outlet_id: courier.outlet_id,
				is_active: !courier.is_active
			});
		};
		const deleteCourier = (courier) => {
			if (confirm(`Apakah Anda yakin ingin menghapus kurir ${courier.name}?`)) router.delete(route("couriers.destroy", courier.id));
		};
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<!--[-->`);
			_push(ssrRenderComponent(unref(Head), { title: "Manajemen Kurir" }, null, _parent));
			_push(ssrRenderComponent(AdminLayout_default, null, {
				default: withCtx((_, _push, _parent, _scopeId) => {
					if (_push) {
						_push(`<div class="space-y-6"${_scopeId}><div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4"${_scopeId}><div${_scopeId}><h1 class="text-2xl font-extrabold text-slate-900 dark:text-slate-50 tracking-tight"${_scopeId}> Manajemen Kurir Internal </h1><p class="text-sm text-slate-500 dark:text-slate-400 mt-1"${_scopeId}> Kelola data staf kurir pengiriman internal kafe dan lacak kendaraan operasional mereka. </p></div><button class="flex items-center justify-center gap-2 px-4 py-2 bg-[#8c5a3c] hover:bg-[#734a31] text-white text-sm font-bold rounded-xl transition-all cursor-pointer shadow-lg shadow-[#8c5a3c]/10"${_scopeId}>`);
						_push(ssrRenderComponent(unref(Plus), { class: "h-4 w-4" }, null, _parent, _scopeId));
						_push(` Tambah Kurir </button></div>`);
						if (__props.couriers.length > 0) {
							_push(`<div class="bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl shadow-sm overflow-hidden"${_scopeId}><div class="overflow-x-auto"${_scopeId}><table class="w-full text-left border-collapse"${_scopeId}><thead${_scopeId}><tr class="border-b border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-900/50"${_scopeId}><th class="px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider"${_scopeId}>Nama Kurir</th><th class="px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider"${_scopeId}>No. Telepon</th><th class="px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider"${_scopeId}>No. Kendaraan</th><th class="px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider"${_scopeId}>Outlet Tugas</th><th class="px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider"${_scopeId}>Status Aktif</th><th class="px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider text-right"${_scopeId}>Aksi</th></tr></thead><tbody class="divide-y divide-slate-100 dark:divide-slate-800"${_scopeId}><!--[-->`);
							ssrRenderList(__props.couriers, (courier) => {
								_push(`<tr class="hover:bg-slate-50/30 dark:hover:bg-slate-800/10"${_scopeId}><td class="px-6 py-4"${_scopeId}><div class="flex items-center gap-2.5"${_scopeId}><div class="h-8 w-8 rounded-xl bg-[#8c5a3c]/10 text-[#8c5a3c] flex items-center justify-center"${_scopeId}>`);
								_push(ssrRenderComponent(unref(Users), { class: "h-4 w-4" }, null, _parent, _scopeId));
								_push(`</div><span class="font-extrabold text-xs text-slate-850 dark:text-slate-100"${_scopeId}>${ssrInterpolate(courier.name)}</span></div></td><td class="px-6 py-4 text-xs font-semibold text-slate-600 dark:text-slate-400"${_scopeId}><div class="flex items-center gap-1"${_scopeId}>`);
								_push(ssrRenderComponent(unref(Phone), { class: "h-3 w-3 text-slate-400" }, null, _parent, _scopeId));
								_push(`<span${_scopeId}>${ssrInterpolate(courier.phone)}</span></div></td><td class="px-6 py-4 text-xs font-bold text-slate-800 dark:text-slate-200"${_scopeId}><div class="flex items-center gap-1"${_scopeId}>`);
								_push(ssrRenderComponent(unref(Truck), { class: "h-3 w-3 text-slate-400" }, null, _parent, _scopeId));
								_push(`<span${_scopeId}>${ssrInterpolate(courier.vehicle_number)}</span></div></td><td class="px-6 py-4 text-xs text-slate-550 dark:text-slate-350"${_scopeId}>${ssrInterpolate(courier.outlet ? courier.outlet.name : "Semua Outlet")}</td><td class="px-6 py-4"${_scopeId}><button class="cursor-pointer transition-colors"${_scopeId}>`);
								if (courier.is_active) _push(ssrRenderComponent(unref(ToggleRight), { class: "h-6 w-6 text-[#8c5a3c]" }, null, _parent, _scopeId));
								else _push(ssrRenderComponent(unref(ToggleLeft), { class: "h-6 w-6 text-slate-300 dark:text-slate-600" }, null, _parent, _scopeId));
								_push(`</button></td><td class="px-6 py-4 text-right"${_scopeId}><div class="flex items-center justify-end gap-2"${_scopeId}><button class="p-1.5 hover:bg-slate-100 dark:hover:bg-slate-800 text-slate-500 hover:text-slate-800 dark:hover:text-slate-200 rounded-lg cursor-pointer"${_scopeId}>`);
								_push(ssrRenderComponent(unref(Edit2), { class: "h-3.5 w-3.5" }, null, _parent, _scopeId));
								_push(`</button><button class="p-1.5 hover:bg-slate-105 dark:hover:bg-slate-800 text-slate-550 hover:text-rose-600 rounded-lg cursor-pointer"${_scopeId}>`);
								_push(ssrRenderComponent(unref(Trash2), { class: "h-3.5 w-3.5" }, null, _parent, _scopeId));
								_push(`</button></div></td></tr>`);
							});
							_push(`<!--]--></tbody></table></div></div>`);
						} else {
							_push(`<div class="text-center py-16 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl shadow-sm"${_scopeId}>`);
							_push(ssrRenderComponent(unref(Users), { class: "h-10 w-10 text-slate-350 dark:text-slate-600 mx-auto mb-3" }, null, _parent, _scopeId));
							_push(`<h3 class="text-sm font-bold text-slate-800 dark:text-slate-200"${_scopeId}>Belum ada kurir</h3><p class="text-xs text-slate-400 mt-1"${_scopeId}>Gunakan tombol di atas untuk mendaftarkan kurir internal pertama Anda.</p></div>`);
						}
						if (isFormModalOpen.value) {
							_push(`<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/60 backdrop-blur-sm"${_scopeId}><div class="bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl shadow-2xl w-full max-w-md overflow-hidden transform transition-all"${_scopeId}><div class="px-6 py-4 border-b border-slate-200 dark:border-slate-800 flex items-center justify-between"${_scopeId}><h3 class="text-sm font-extrabold text-slate-900 dark:text-slate-100"${_scopeId}>${ssrInterpolate(editingCourier.value ? "Edit Data Kurir" : "Daftarkan Kurir Baru")}</h3><button class="p-1.5 hover:bg-slate-100 dark:hover:bg-slate-900 rounded-lg text-slate-400 cursor-pointer"${_scopeId}>`);
							_push(ssrRenderComponent(unref(X), { class: "h-4 w-4" }, null, _parent, _scopeId));
							_push(`</button></div><form class="p-6 space-y-4"${_scopeId}><div${_scopeId}><label class="block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5"${_scopeId}>Nama Lengkap Kurir</label><input type="text"${ssrRenderAttr("value", unref(form).name)} required placeholder="Contoh: Budi Santoso" class="w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c]"${_scopeId}></div><div class="grid grid-cols-2 gap-4"${_scopeId}><div${_scopeId}><label class="block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5"${_scopeId}>No. Telepon (WA)</label><input type="text"${ssrRenderAttr("value", unref(form).phone)} required placeholder="Contoh: 08123456789" class="w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c]"${_scopeId}></div><div${_scopeId}><label class="block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5"${_scopeId}>Plat Nomor Kendaraan</label><input type="text"${ssrRenderAttr("value", unref(form).vehicle_number)} required placeholder="Contoh: B 1234 ABC" class="w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c]"${_scopeId}></div></div><div class="grid grid-cols-2 gap-4"${_scopeId}><div${_scopeId}><label class="block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5"${_scopeId}>Outlet Ditugaskan</label><select required class="w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c] cursor-pointer"${_scopeId}><!--[-->`);
							ssrRenderList(__props.outlets, (o) => {
								_push(`<option${ssrRenderAttr("value", String(o.id))}${ssrIncludeBooleanAttr(Array.isArray(unref(form).outlet_id) ? ssrLooseContain(unref(form).outlet_id, String(o.id)) : ssrLooseEqual(unref(form).outlet_id, String(o.id))) ? " selected" : ""}${_scopeId}>${ssrInterpolate(o.name)}</option>`);
							});
							_push(`<!--]--></select></div><div${_scopeId}><label class="block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5"${_scopeId}>Status Aktif</label><select required class="w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c] cursor-pointer"${_scopeId}><option${ssrRenderAttr("value", true)}${ssrIncludeBooleanAttr(Array.isArray(unref(form).is_active) ? ssrLooseContain(unref(form).is_active, true) : ssrLooseEqual(unref(form).is_active, true)) ? " selected" : ""}${_scopeId}>Aktif</option><option${ssrRenderAttr("value", false)}${ssrIncludeBooleanAttr(Array.isArray(unref(form).is_active) ? ssrLooseContain(unref(form).is_active, false) : ssrLooseEqual(unref(form).is_active, false)) ? " selected" : ""}${_scopeId}>Tidak Aktif</option></select></div></div><div class="pt-4 border-t border-slate-100 dark:border-slate-800 flex justify-end gap-3"${_scopeId}><button type="button" class="px-4 py-2 border border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-500 rounded-xl text-xs font-bold transition-all cursor-pointer"${_scopeId}> Batal </button><button type="submit"${ssrIncludeBooleanAttr(unref(form).processing) ? " disabled" : ""} class="px-4 py-2 bg-[#8c5a3c] hover:bg-[#734a31] text-white rounded-xl text-xs font-bold shadow-lg shadow-[#8c5a3c]/10 transition-all cursor-pointer"${_scopeId}>${ssrInterpolate(editingCourier.value ? "Simpan Perubahan" : "Daftarkan Kurir")}</button></div></form></div></div>`);
						} else _push(`<!---->`);
						_push(`</div>`);
					} else return [createVNode("div", { class: "space-y-6" }, [
						createVNode("div", { class: "flex flex-col sm:flex-row sm:items-center justify-between gap-4" }, [createVNode("div", null, [createVNode("h1", { class: "text-2xl font-extrabold text-slate-900 dark:text-slate-50 tracking-tight" }, " Manajemen Kurir Internal "), createVNode("p", { class: "text-sm text-slate-500 dark:text-slate-400 mt-1" }, " Kelola data staf kurir pengiriman internal kafe dan lacak kendaraan operasional mereka. ")]), createVNode("button", {
							onClick: openCreateModal,
							class: "flex items-center justify-center gap-2 px-4 py-2 bg-[#8c5a3c] hover:bg-[#734a31] text-white text-sm font-bold rounded-xl transition-all cursor-pointer shadow-lg shadow-[#8c5a3c]/10"
						}, [createVNode(unref(Plus), { class: "h-4 w-4" }), createTextVNode(" Tambah Kurir ")])]),
						__props.couriers.length > 0 ? (openBlock(), createBlock("div", {
							key: 0,
							class: "bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl shadow-sm overflow-hidden"
						}, [createVNode("div", { class: "overflow-x-auto" }, [createVNode("table", { class: "w-full text-left border-collapse" }, [createVNode("thead", null, [createVNode("tr", { class: "border-b border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-900/50" }, [
							createVNode("th", { class: "px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider" }, "Nama Kurir"),
							createVNode("th", { class: "px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider" }, "No. Telepon"),
							createVNode("th", { class: "px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider" }, "No. Kendaraan"),
							createVNode("th", { class: "px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider" }, "Outlet Tugas"),
							createVNode("th", { class: "px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider" }, "Status Aktif"),
							createVNode("th", { class: "px-6 py-3.5 text-[11px] font-bold text-slate-400 uppercase tracking-wider text-right" }, "Aksi")
						])]), createVNode("tbody", { class: "divide-y divide-slate-100 dark:divide-slate-800" }, [(openBlock(true), createBlock(Fragment, null, renderList(__props.couriers, (courier) => {
							return openBlock(), createBlock("tr", {
								key: courier.id,
								class: "hover:bg-slate-50/30 dark:hover:bg-slate-800/10"
							}, [
								createVNode("td", { class: "px-6 py-4" }, [createVNode("div", { class: "flex items-center gap-2.5" }, [createVNode("div", { class: "h-8 w-8 rounded-xl bg-[#8c5a3c]/10 text-[#8c5a3c] flex items-center justify-center" }, [createVNode(unref(Users), { class: "h-4 w-4" })]), createVNode("span", { class: "font-extrabold text-xs text-slate-850 dark:text-slate-100" }, toDisplayString(courier.name), 1)])]),
								createVNode("td", { class: "px-6 py-4 text-xs font-semibold text-slate-600 dark:text-slate-400" }, [createVNode("div", { class: "flex items-center gap-1" }, [createVNode(unref(Phone), { class: "h-3 w-3 text-slate-400" }), createVNode("span", null, toDisplayString(courier.phone), 1)])]),
								createVNode("td", { class: "px-6 py-4 text-xs font-bold text-slate-800 dark:text-slate-200" }, [createVNode("div", { class: "flex items-center gap-1" }, [createVNode(unref(Truck), { class: "h-3 w-3 text-slate-400" }), createVNode("span", null, toDisplayString(courier.vehicle_number), 1)])]),
								createVNode("td", { class: "px-6 py-4 text-xs text-slate-550 dark:text-slate-350" }, toDisplayString(courier.outlet ? courier.outlet.name : "Semua Outlet"), 1),
								createVNode("td", { class: "px-6 py-4" }, [createVNode("button", {
									onClick: ($event) => toggleCourierStatus(courier),
									class: "cursor-pointer transition-colors"
								}, [courier.is_active ? (openBlock(), createBlock(unref(ToggleRight), {
									key: 0,
									class: "h-6 w-6 text-[#8c5a3c]"
								})) : (openBlock(), createBlock(unref(ToggleLeft), {
									key: 1,
									class: "h-6 w-6 text-slate-300 dark:text-slate-600"
								}))], 8, ["onClick"])]),
								createVNode("td", { class: "px-6 py-4 text-right" }, [createVNode("div", { class: "flex items-center justify-end gap-2" }, [createVNode("button", {
									onClick: ($event) => openEditModal(courier),
									class: "p-1.5 hover:bg-slate-100 dark:hover:bg-slate-800 text-slate-500 hover:text-slate-800 dark:hover:text-slate-200 rounded-lg cursor-pointer"
								}, [createVNode(unref(Edit2), { class: "h-3.5 w-3.5" })], 8, ["onClick"]), createVNode("button", {
									onClick: ($event) => deleteCourier(courier),
									class: "p-1.5 hover:bg-slate-105 dark:hover:bg-slate-800 text-slate-550 hover:text-rose-600 rounded-lg cursor-pointer"
								}, [createVNode(unref(Trash2), { class: "h-3.5 w-3.5" })], 8, ["onClick"])])])
							]);
						}), 128))])])])])) : (openBlock(), createBlock("div", {
							key: 1,
							class: "text-center py-16 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl shadow-sm"
						}, [
							createVNode(unref(Users), { class: "h-10 w-10 text-slate-350 dark:text-slate-600 mx-auto mb-3" }),
							createVNode("h3", { class: "text-sm font-bold text-slate-800 dark:text-slate-200" }, "Belum ada kurir"),
							createVNode("p", { class: "text-xs text-slate-400 mt-1" }, "Gunakan tombol di atas untuk mendaftarkan kurir internal pertama Anda.")
						])),
						isFormModalOpen.value ? (openBlock(), createBlock("div", {
							key: 2,
							class: "fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/60 backdrop-blur-sm"
						}, [createVNode("div", { class: "bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl shadow-2xl w-full max-w-md overflow-hidden transform transition-all" }, [createVNode("div", { class: "px-6 py-4 border-b border-slate-200 dark:border-slate-800 flex items-center justify-between" }, [createVNode("h3", { class: "text-sm font-extrabold text-slate-900 dark:text-slate-100" }, toDisplayString(editingCourier.value ? "Edit Data Kurir" : "Daftarkan Kurir Baru"), 1), createVNode("button", {
							onClick: ($event) => isFormModalOpen.value = false,
							class: "p-1.5 hover:bg-slate-100 dark:hover:bg-slate-900 rounded-lg text-slate-400 cursor-pointer"
						}, [createVNode(unref(X), { class: "h-4 w-4" })], 8, ["onClick"])]), createVNode("form", {
							onSubmit: withModifiers(submitForm, ["prevent"]),
							class: "p-6 space-y-4"
						}, [
							createVNode("div", null, [createVNode("label", { class: "block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5" }, "Nama Lengkap Kurir"), withDirectives(createVNode("input", {
								type: "text",
								"onUpdate:modelValue": ($event) => unref(form).name = $event,
								required: "",
								placeholder: "Contoh: Budi Santoso",
								class: "w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c]"
							}, null, 8, ["onUpdate:modelValue"]), [[vModelText, unref(form).name]])]),
							createVNode("div", { class: "grid grid-cols-2 gap-4" }, [createVNode("div", null, [createVNode("label", { class: "block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5" }, "No. Telepon (WA)"), withDirectives(createVNode("input", {
								type: "text",
								"onUpdate:modelValue": ($event) => unref(form).phone = $event,
								required: "",
								placeholder: "Contoh: 08123456789",
								class: "w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c]"
							}, null, 8, ["onUpdate:modelValue"]), [[vModelText, unref(form).phone]])]), createVNode("div", null, [createVNode("label", { class: "block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5" }, "Plat Nomor Kendaraan"), withDirectives(createVNode("input", {
								type: "text",
								"onUpdate:modelValue": ($event) => unref(form).vehicle_number = $event,
								required: "",
								placeholder: "Contoh: B 1234 ABC",
								class: "w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c]"
							}, null, 8, ["onUpdate:modelValue"]), [[vModelText, unref(form).vehicle_number]])])]),
							createVNode("div", { class: "grid grid-cols-2 gap-4" }, [createVNode("div", null, [createVNode("label", { class: "block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5" }, "Outlet Ditugaskan"), withDirectives(createVNode("select", {
								"onUpdate:modelValue": ($event) => unref(form).outlet_id = $event,
								required: "",
								class: "w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c] cursor-pointer"
							}, [(openBlock(true), createBlock(Fragment, null, renderList(__props.outlets, (o) => {
								return openBlock(), createBlock("option", {
									key: o.id,
									value: String(o.id)
								}, toDisplayString(o.name), 9, ["value"]);
							}), 128))], 8, ["onUpdate:modelValue"]), [[vModelSelect, unref(form).outlet_id]])]), createVNode("div", null, [createVNode("label", { class: "block text-[11px] font-bold text-slate-450 dark:text-slate-500 uppercase tracking-wider mb-1.5" }, "Status Aktif"), withDirectives(createVNode("select", {
								"onUpdate:modelValue": ($event) => unref(form).is_active = $event,
								required: "",
								class: "w-full h-10 px-3 border border-slate-200 dark:border-slate-700 rounded-xl bg-slate-50 dark:bg-slate-800 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-[#8c5a3c]/20 focus:border-[#8c5a3c] cursor-pointer"
							}, [createVNode("option", { value: true }, "Aktif"), createVNode("option", { value: false }, "Tidak Aktif")], 8, ["onUpdate:modelValue"]), [[vModelSelect, unref(form).is_active]])])]),
							createVNode("div", { class: "pt-4 border-t border-slate-100 dark:border-slate-800 flex justify-end gap-3" }, [createVNode("button", {
								type: "button",
								onClick: ($event) => isFormModalOpen.value = false,
								class: "px-4 py-2 border border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-500 rounded-xl text-xs font-bold transition-all cursor-pointer"
							}, " Batal ", 8, ["onClick"]), createVNode("button", {
								type: "submit",
								disabled: unref(form).processing,
								class: "px-4 py-2 bg-[#8c5a3c] hover:bg-[#734a31] text-white rounded-xl text-xs font-bold shadow-lg shadow-[#8c5a3c]/10 transition-all cursor-pointer"
							}, toDisplayString(editingCourier.value ? "Simpan Perubahan" : "Daftarkan Kurir"), 9, ["disabled"])])
						], 32)])])) : createCommentVNode("", true)
					])];
				}),
				_: 1
			}, _parent));
			_push(`<!--]-->`);
		};
	}
});
//#endregion
//#region resources/js/Pages/CafePOS/Couriers/Index.vue
var _sfc_setup = Index_vue_vue_type_script_setup_true_lang_default.setup;
Index_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/CafePOS/Couriers/Index.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var Index_default = Index_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { Index_default as default };
