|
|
|
|
@@ -22,7 +22,7 @@ import 'unhead/utils';
|
|
|
|
|
import 'unhead/plugins';
|
|
|
|
|
|
|
|
|
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
__name: "[id]",
|
|
|
|
|
__name: "index",
|
|
|
|
|
__ssrInlineRender: true,
|
|
|
|
|
setup(__props) {
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
@@ -36,9 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
const rejectReason = ref("");
|
|
|
|
|
const showFlagModal = ref(false);
|
|
|
|
|
const flagReason = ref("");
|
|
|
|
|
const showEditModal = ref(false);
|
|
|
|
|
const editLoading = ref(false);
|
|
|
|
|
const editForm = ref({});
|
|
|
|
|
const activeTab = ref("data");
|
|
|
|
|
const validations = ref([]);
|
|
|
|
|
const validationsLoading = ref(false);
|
|
|
|
|
@@ -100,6 +97,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
return "text-rose-400/60";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const hasOpeningHours = computed(() => {
|
|
|
|
|
var _a;
|
|
|
|
|
const hours = (_a = provider.value) == null ? void 0 : _a.opening_hours;
|
|
|
|
|
if (!hours || typeof hours !== "object") return false;
|
|
|
|
|
return DAYS.some((day) => {
|
|
|
|
|
const slot = hours[day.key];
|
|
|
|
|
return slot && typeof slot === "object" && slot.open && slot.close;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
const hasSpecializations = computed(() => {
|
|
|
|
|
var _a;
|
|
|
|
|
const spec = (_a = provider.value) == null ? void 0 : _a.specializations;
|
|
|
|
|
if (!spec || typeof spec !== "object") return false;
|
|
|
|
|
return Array.isArray(spec.brands) && spec.brands.length > 0 || Array.isArray(spec.propulsion) && spec.propulsion.length > 0;
|
|
|
|
|
});
|
|
|
|
|
const DAYS = [
|
|
|
|
|
{ key: "monday", label: "H\xE9tf\u0151" },
|
|
|
|
|
{ key: "tuesday", label: "Kedd" },
|
|
|
|
|
{ key: "wednesday", label: "Szerda" },
|
|
|
|
|
{ key: "thursday", label: "Cs\xFCt\xF6rt\xF6k" },
|
|
|
|
|
{ key: "friday", label: "P\xE9ntek" },
|
|
|
|
|
{ key: "saturday", label: "Szombat" },
|
|
|
|
|
{ key: "sunday", label: "Vas\xE1rnap" }
|
|
|
|
|
];
|
|
|
|
|
function getDayHours(dayKey) {
|
|
|
|
|
var _a;
|
|
|
|
|
const hours = (_a = provider.value) == null ? void 0 : _a.opening_hours;
|
|
|
|
|
if (!hours || typeof hours !== "object") return null;
|
|
|
|
|
const slot = hours[dayKey];
|
|
|
|
|
if (slot && typeof slot === "object" && slot.open && slot.close) {
|
|
|
|
|
return { open: slot.open, close: slot.close };
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
function statusLabel(status) {
|
|
|
|
|
switch (status) {
|
|
|
|
|
case "approved":
|
|
|
|
|
@@ -124,6 +155,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function vehicleClassLabel(key) {
|
|
|
|
|
const labels = {
|
|
|
|
|
car: "Szem\xE9lyaut\xF3",
|
|
|
|
|
motorcycle: "Motorker\xE9kp\xE1r",
|
|
|
|
|
truck: "Teheraut\xF3",
|
|
|
|
|
hgv: "Neh\xE9zg\xE9pj\xE1rm\u0171 (HGV)",
|
|
|
|
|
light_commercial: "Kishaszonj\xE1rm\u0171",
|
|
|
|
|
personal: "Szem\xE9lyes",
|
|
|
|
|
boat: "Cs\xF3nak/V\xEDzi",
|
|
|
|
|
other: "Egy\xE9b"
|
|
|
|
|
};
|
|
|
|
|
return labels[key] || key;
|
|
|
|
|
}
|
|
|
|
|
function validationTypeLabel(type) {
|
|
|
|
|
const labels = {
|
|
|
|
|
phone_verified: "Telefon igazolt",
|
|
|
|
|
@@ -245,56 +289,118 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
}
|
|
|
|
|
watch(activeTab, onTabChange);
|
|
|
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
|
|
|
var _a, _b, _c;
|
|
|
|
|
var _a, _b, _c, _d, _e, _f;
|
|
|
|
|
const _component_NuxtLink = __nuxt_component_0;
|
|
|
|
|
_push(`<div${ssrRenderAttrs(_attrs)} data-v-cbc29188><div class="mb-8" data-v-cbc29188><button class="inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" data-v-cbc29188></path></svg> Vissza a szolg\xE1ltat\xF3khoz </button><h1 class="text-2xl font-bold text-white" data-v-cbc29188>Szolg\xE1ltat\xF3 r\xE9szletek</h1><p class="text-slate-400 mt-1" data-v-cbc29188>Szolg\xE1ltat\xF3 #${ssrInterpolate(_ctx.$route.params.id)}</p></div>`);
|
|
|
|
|
_push(`<div${ssrRenderAttrs(_attrs)} data-v-aa1d3c94><div class="mb-8" data-v-aa1d3c94><button class="inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" data-v-aa1d3c94></path></svg> Vissza a szolg\xE1ltat\xF3khoz </button><h1 class="text-2xl font-bold text-white" data-v-aa1d3c94>Szolg\xE1ltat\xF3 r\xE9szletek</h1><p class="text-slate-400 mt-1" data-v-aa1d3c94>Szolg\xE1ltat\xF3 #${ssrInterpolate(_ctx.$route.params.id)}</p></div>`);
|
|
|
|
|
if (loading.value) {
|
|
|
|
|
_push(`<div class="flex items-center justify-center py-20" data-v-cbc29188><div class="text-slate-400 flex items-center gap-3" data-v-cbc29188><svg class="w-5 h-5 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg><span data-v-cbc29188>Szolg\xE1ltat\xF3 bet\xF6lt\xE9se...</span></div></div>`);
|
|
|
|
|
_push(`<div class="flex items-center justify-center py-20" data-v-aa1d3c94><div class="text-slate-400 flex items-center gap-3" data-v-aa1d3c94><svg class="w-5 h-5 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg><span data-v-aa1d3c94>Szolg\xE1ltat\xF3 bet\xF6lt\xE9se...</span></div></div>`);
|
|
|
|
|
} else if (error.value) {
|
|
|
|
|
_push(`<div class="bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8" data-v-cbc29188><p class="text-rose-400" data-v-cbc29188>Hiba t\xF6rt\xE9nt a szolg\xE1ltat\xF3 bet\xF6lt\xE9se k\xF6zben.</p><button class="mt-3 text-sm text-rose-300 hover:text-rose-200 underline" data-v-cbc29188>\xDAjrapr\xF3b\xE1lkoz\xE1s</button></div>`);
|
|
|
|
|
_push(`<div class="bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8" data-v-aa1d3c94><p class="text-rose-400" data-v-aa1d3c94>Hiba t\xF6rt\xE9nt a szolg\xE1ltat\xF3 bet\xF6lt\xE9se k\xF6zben.</p><button class="mt-3 text-sm text-rose-300 hover:text-rose-200 underline" data-v-aa1d3c94>\xDAjrapr\xF3b\xE1lkoz\xE1s</button></div>`);
|
|
|
|
|
} else if (!provider.value) {
|
|
|
|
|
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><p class="text-slate-400 text-center py-12" data-v-cbc29188>A szolg\xE1ltat\xF3 nem tal\xE1lhat\xF3.</p></div>`);
|
|
|
|
|
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><p class="text-slate-400 text-center py-12" data-v-aa1d3c94>A szolg\xE1ltat\xF3 nem tal\xE1lhat\xF3.</p></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!--[--><div class="${ssrRenderClass([statusBannerClass.value, "rounded-xl border p-4 mb-6 flex items-center gap-3"])}" data-v-cbc29188><span class="${ssrRenderClass([statusIconClass.value, "flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center"])}" data-v-cbc29188>`);
|
|
|
|
|
_push(`<!--[--><div class="${ssrRenderClass([statusBannerClass.value, "rounded-xl border p-4 mb-6 flex items-center gap-3"])}" data-v-aa1d3c94><span class="${ssrRenderClass([statusIconClass.value, "flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center"])}" data-v-aa1d3c94>`);
|
|
|
|
|
if (provider.value.status === "approved") {
|
|
|
|
|
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
} else if (provider.value.status === "pending") {
|
|
|
|
|
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</span><div data-v-cbc29188><p class="${ssrRenderClass([statusTextClass.value, "text-sm font-medium"])}" data-v-cbc29188>${ssrInterpolate(statusLabel(provider.value.status))}</p><p class="${ssrRenderClass([statusSubtextClass.value, "text-xs mt-0.5"])}" data-v-cbc29188>${ssrInterpolate(statusDescription(provider.value.status))}</p></div></div><div class="border-b border-slate-700 mb-6" data-v-cbc29188><nav class="flex gap-6 -mb-px" data-v-cbc29188><!--[-->`);
|
|
|
|
|
_push(`</span><div data-v-aa1d3c94><p class="${ssrRenderClass([statusTextClass.value, "text-sm font-medium"])}" data-v-aa1d3c94>${ssrInterpolate(statusLabel(provider.value.status))}</p><p class="${ssrRenderClass([statusSubtextClass.value, "text-xs mt-0.5"])}" data-v-aa1d3c94>${ssrInterpolate(statusDescription(provider.value.status))}</p></div></div><div class="border-b border-slate-700 mb-6" data-v-aa1d3c94><nav class="flex gap-6 -mb-px" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(tabs, (tab) => {
|
|
|
|
|
_push(`<button class="${ssrRenderClass([activeTab.value === tab.key ? "text-indigo-400 border-indigo-400" : "text-slate-400 border-transparent hover:text-slate-300", "pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2"])}" data-v-cbc29188>`);
|
|
|
|
|
_push(`<button class="${ssrRenderClass([activeTab.value === tab.key ? "text-indigo-400 border-indigo-400" : "text-slate-400 border-transparent hover:text-slate-300", "pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2"])}" data-v-aa1d3c94>`);
|
|
|
|
|
ssrRenderVNode(_push, createVNode(resolveDynamicComponent(tab.icon), { class: "w-4 h-4" }, null), _parent);
|
|
|
|
|
_push(` ${ssrInterpolate(tab.label)}</button>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></nav></div>`);
|
|
|
|
|
if (activeTab.value === "data") {
|
|
|
|
|
_push(`<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" data-v-cbc29188><div class="lg:col-span-2 space-y-6" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Alapadatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-cbc29188><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>N\xE9v</dt><dd class="text-sm text-white mt-1 font-medium" data-v-cbc29188>${ssrInterpolate(provider.value.name)}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Kateg\xF3ria</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.category || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Forr\xE1s</dt><dd class="mt-1" data-v-cbc29188><code class="text-sm font-mono text-amber-300 bg-amber-500/10 px-2 py-0.5 rounded" data-v-cbc29188>${ssrInterpolate(provider.value.source)}</code></dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Valid\xE1ci\xF3s pontsz\xE1m</dt><dd class="mt-1" data-v-cbc29188><div class="flex items-center gap-2" data-v-cbc29188><div class="w-24 h-2 bg-slate-700 rounded-full overflow-hidden" data-v-cbc29188><div class="${ssrRenderClass([provider.value.validation_score >= 50 ? "bg-emerald-500" : provider.value.validation_score >= 20 ? "bg-amber-500" : "bg-slate-500", "h-full rounded-full transition-all"])}" style="${ssrRenderStyle({ width: Math.min(provider.value.validation_score, 100) + "%" })}" data-v-cbc29188></div></div><span class="text-sm text-white font-medium" data-v-cbc29188>${ssrInterpolate(provider.value.validation_score)}</span></div></dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>L\xE9trehozva</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(formatDate(provider.value.created_at))}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Bek\xFCld\u0151 user ID</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.added_by_user_id || "\u2014")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>C\xEDm adatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-cbc29188><div class="md:col-span-2" data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Teljes c\xEDm</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>V\xE1ros</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.city || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Ir\xE1ny\xEDt\xF3sz\xE1m</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address_zip || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Utca</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address_street_name || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>H\xE1zsz\xE1m</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address_house_number || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Plus Code</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.plus_code || "\u2014")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>El\xE9rhet\u0151s\xE9g</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-cbc29188><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Telefon</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.contact_phone || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Email</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.contact_email || "\u2014")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Weboldal</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>`);
|
|
|
|
|
_push(`<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" data-v-aa1d3c94><div class="lg:col-span-2 space-y-6" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Alapadatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-aa1d3c94><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>N\xE9v</dt><dd class="text-sm text-white mt-1 font-medium" data-v-aa1d3c94>${ssrInterpolate(provider.value.name)}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Kateg\xF3ria</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.category || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Forr\xE1s</dt><dd class="mt-1" data-v-aa1d3c94><code class="text-sm font-mono text-amber-300 bg-amber-500/10 px-2 py-0.5 rounded" data-v-aa1d3c94>${ssrInterpolate(provider.value.source)}</code></dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Valid\xE1ci\xF3s pontsz\xE1m</dt><dd class="mt-1" data-v-aa1d3c94><div class="flex items-center gap-2" data-v-aa1d3c94><div class="w-24 h-2 bg-slate-700 rounded-full overflow-hidden" data-v-aa1d3c94><div class="${ssrRenderClass([provider.value.validation_score >= 50 ? "bg-emerald-500" : provider.value.validation_score >= 20 ? "bg-amber-500" : "bg-slate-500", "h-full rounded-full transition-all"])}" style="${ssrRenderStyle({ width: Math.min(provider.value.validation_score, 100) + "%" })}" data-v-aa1d3c94></div></div><span class="text-sm text-white font-medium" data-v-aa1d3c94>${ssrInterpolate(provider.value.validation_score)}</span></div></dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>L\xE9trehozva</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(formatDate(provider.value.created_at))}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Bek\xFCld\u0151 user ID</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.added_by_user_id || "\u2014")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>C\xEDm adatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-aa1d3c94><div class="md:col-span-2" data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Teljes c\xEDm</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>V\xE1ros</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.city || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Ir\xE1ny\xEDt\xF3sz\xE1m</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address_zip || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Utca</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address_street_name || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>H\xE1zsz\xE1m</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address_house_number || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Plus Code</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.plus_code || "\u2014")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>El\xE9rhet\u0151s\xE9g</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-aa1d3c94><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Telefon</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.contact_phone || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Email</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.contact_email || "\u2014")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Weboldal</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>`);
|
|
|
|
|
if (provider.value.website) {
|
|
|
|
|
_push(`<a${ssrRenderAttr("href", provider.value.website)} target="_blank" class="text-indigo-400 hover:text-indigo-300 underline" data-v-cbc29188>${ssrInterpolate(provider.value.website)}</a>`);
|
|
|
|
|
_push(`<a${ssrRenderAttr("href", provider.value.website)} target="_blank" class="text-indigo-400 hover:text-indigo-300 underline" data-v-aa1d3c94>${ssrInterpolate(provider.value.website)}</a>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<span data-v-cbc29188>\u2014</span>`);
|
|
|
|
|
_push(`<span data-v-aa1d3c94>\u2014</span>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</dd></div></dl></div></div><div class="space-y-4" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Moder\xE1ci\xF3s m\u0171veletek</h2>`);
|
|
|
|
|
if (provider.value.status === "pending") {
|
|
|
|
|
_push(`<div class="space-y-3" data-v-cbc29188><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188>`);
|
|
|
|
|
if (actionLoading.value) {
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Szolg\xE1ltat\xE1sok</h2>`);
|
|
|
|
|
if (provider.value.category_ids && provider.value.category_ids.length > 0) {
|
|
|
|
|
_push(`<div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(provider.value.category_ids, (catId) => {
|
|
|
|
|
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-indigo-500/10 text-indigo-300 rounded-full text-xs font-medium" data-v-aa1d3c94> #${ssrInterpolate(catId)}</span>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincsenek kateg\xF3ri\xE1k be\xE1ll\xEDtva</p>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>J\xE1rm\u0171oszt\xE1lyok</h2>`);
|
|
|
|
|
if (provider.value.supported_vehicle_classes && provider.value.supported_vehicle_classes.length > 0) {
|
|
|
|
|
_push(`<div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(provider.value.supported_vehicle_classes, (vc) => {
|
|
|
|
|
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-emerald-500/10 text-emerald-300 rounded-full text-xs font-medium" data-v-aa1d3c94>${ssrInterpolate(vehicleClassLabel(vc))}</span>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincsenek j\xE1rm\u0171oszt\xE1lyok be\xE1ll\xEDtva</p>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Specializ\xE1ci\xF3k</h2>`);
|
|
|
|
|
if (hasSpecializations.value) {
|
|
|
|
|
_push(`<div class="space-y-3" data-v-aa1d3c94>`);
|
|
|
|
|
if ((_b = (_a = provider.value.specializations) == null ? void 0 : _a.brands) == null ? void 0 : _b.length) {
|
|
|
|
|
_push(`<div data-v-aa1d3c94><h3 class="text-xs text-slate-500 uppercase tracking-wider mb-2" data-v-aa1d3c94>M\xE1rk\xE1k</h3><div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(provider.value.specializations.brands, (brand) => {
|
|
|
|
|
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-amber-500/10 text-amber-300 rounded-full text-xs font-medium" data-v-aa1d3c94>${ssrInterpolate(brand)}</span>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
_push(` J\xF3v\xE1hagy\xE1s </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-cbc29188></path></svg> Elutas\xEDt\xE1s </button></div>`);
|
|
|
|
|
if ((_d = (_c = provider.value.specializations) == null ? void 0 : _c.propulsion) == null ? void 0 : _d.length) {
|
|
|
|
|
_push(`<div data-v-aa1d3c94><h3 class="text-xs text-slate-500 uppercase tracking-wider mb-2" data-v-aa1d3c94>Hajt\xE1sl\xE1nc</h3><div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(provider.value.specializations.propulsion, (prop) => {
|
|
|
|
|
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-cyan-500/10 text-cyan-300 rounded-full text-xs font-medium" data-v-aa1d3c94>${ssrInterpolate(prop)}</span>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincsenek specializ\xE1ci\xF3k be\xE1ll\xEDtva</p>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Nyitvatart\xE1s</h2>`);
|
|
|
|
|
if (hasOpeningHours.value) {
|
|
|
|
|
_push(`<div class="overflow-hidden" data-v-aa1d3c94><table class="w-full text-sm" data-v-aa1d3c94><thead data-v-aa1d3c94><tr class="border-b border-slate-700" data-v-aa1d3c94><th class="text-left text-xs text-slate-500 uppercase tracking-wider pb-2 pr-4" data-v-aa1d3c94>Nap</th><th class="text-left text-xs text-slate-500 uppercase tracking-wider pb-2" data-v-aa1d3c94>Nyitva</th></tr></thead><tbody data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(DAYS, (day) => {
|
|
|
|
|
var _a2, _b2;
|
|
|
|
|
_push(`<tr class="border-b border-slate-700/50 last:border-0" data-v-aa1d3c94><td class="py-2 pr-4 text-white font-medium" data-v-aa1d3c94>${ssrInterpolate(day.label)}</td><td class="py-2" data-v-aa1d3c94>`);
|
|
|
|
|
if (getDayHours(day.key)) {
|
|
|
|
|
_push(`<!--[--><span class="text-white" data-v-aa1d3c94>${ssrInterpolate((_a2 = getDayHours(day.key)) == null ? void 0 : _a2.open)}</span><span class="text-slate-500 mx-1" data-v-aa1d3c94>\u2013</span><span class="text-white" data-v-aa1d3c94>${ssrInterpolate((_b2 = getDayHours(day.key)) == null ? void 0 : _b2.close)}</span><!--]-->`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<span class="text-slate-500 italic" data-v-aa1d3c94>Z\xE1rva</span>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</td></tr>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></tbody></table></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<div data-v-aa1d3c94><p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincs be\xE1ll\xEDtva nyitvatart\xE1s</p></div>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div></div><div class="space-y-4" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Moder\xE1ci\xF3s m\u0171veletek</h2>`);
|
|
|
|
|
if (provider.value.status === "pending") {
|
|
|
|
|
_push(`<div class="space-y-3" data-v-aa1d3c94><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94>`);
|
|
|
|
|
if (actionLoading.value) {
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
}
|
|
|
|
|
_push(` J\xF3v\xE1hagy\xE1s </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-aa1d3c94></path></svg> Elutas\xEDt\xE1s </button></div>`);
|
|
|
|
|
} else if (provider.value.status === "approved") {
|
|
|
|
|
_push(`<div class="space-y-3" data-v-cbc29188>`);
|
|
|
|
|
_push(`<div class="space-y-3" data-v-aa1d3c94>`);
|
|
|
|
|
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
|
|
|
to: `/providers/${provider.value.id}/edit`,
|
|
|
|
|
class: "w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2"
|
|
|
|
|
}, {
|
|
|
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
|
|
|
if (_push2) {
|
|
|
|
|
_push2(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-cbc29188${_scopeId}></path></svg> Szerkeszt\xE9s `);
|
|
|
|
|
_push2(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-aa1d3c94${_scopeId}></path></svg> Szerkeszt\xE9s `);
|
|
|
|
|
} else {
|
|
|
|
|
return [
|
|
|
|
|
(openBlock(), createBlock("svg", {
|
|
|
|
|
@@ -316,19 +422,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
}),
|
|
|
|
|
_: 1
|
|
|
|
|
}, _parent));
|
|
|
|
|
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-purple-600/20 hover:bg-purple-600/40 disabled:opacity-50 text-purple-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9" data-v-cbc29188></path></svg> Megjel\xF6l\xE9s (Flag) </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-cbc29188></path></svg> T\xF6rl\xE9s (Soft Delete) </button></div>`);
|
|
|
|
|
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-purple-600/20 hover:bg-purple-600/40 disabled:opacity-50 text-purple-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9" data-v-aa1d3c94></path></svg> Megjel\xF6l\xE9s (Flag) </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-aa1d3c94></path></svg> T\xF6rl\xE9s (Soft Delete) </button></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<div class="space-y-3" data-v-cbc29188><p class="text-sm text-slate-400 text-center py-2" data-v-cbc29188> A szolg\xE1ltat\xF3 ${ssrInterpolate(provider.value.status === "rejected" ? "elutas\xEDt\xE1sra" : "megjel\xF6l\xE9sre")} ker\xFClt. </p><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-cbc29188></path></svg> Szerkeszt\xE9s </button>`);
|
|
|
|
|
_push(`<div class="space-y-3" data-v-aa1d3c94><p class="text-sm text-slate-400 text-center py-2" data-v-aa1d3c94> A szolg\xE1ltat\xF3 ${ssrInterpolate(provider.value.status === "rejected" ? "elutas\xEDt\xE1sra" : "megjel\xF6l\xE9sre")} ker\xFClt. </p>`);
|
|
|
|
|
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
|
|
|
to: `/providers/${provider.value.id}/edit`,
|
|
|
|
|
class: "w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2"
|
|
|
|
|
}, {
|
|
|
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
|
|
|
if (_push2) {
|
|
|
|
|
_push2(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-aa1d3c94${_scopeId}></path></svg> Szerkeszt\xE9s `);
|
|
|
|
|
} else {
|
|
|
|
|
return [
|
|
|
|
|
(openBlock(), createBlock("svg", {
|
|
|
|
|
class: "w-4 h-4",
|
|
|
|
|
fill: "none",
|
|
|
|
|
stroke: "currentColor",
|
|
|
|
|
viewBox: "0 0 24 24"
|
|
|
|
|
}, [
|
|
|
|
|
createVNode("path", {
|
|
|
|
|
"stroke-linecap": "round",
|
|
|
|
|
"stroke-linejoin": "round",
|
|
|
|
|
"stroke-width": "2",
|
|
|
|
|
d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
|
|
|
|
|
})
|
|
|
|
|
])),
|
|
|
|
|
createTextVNode(" Szerkeszt\xE9s ")
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
_: 1
|
|
|
|
|
}, _parent));
|
|
|
|
|
if (provider.value.status === "rejected") {
|
|
|
|
|
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg> Vissza\xE1ll\xEDt\xE1s </button>`);
|
|
|
|
|
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg> Vissza\xE1ll\xEDt\xE1s </button>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-cbc29188></path></svg> T\xF6rl\xE9s </button></div>`);
|
|
|
|
|
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-aa1d3c94></path></svg> T\xF6rl\xE9s </button></div>`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div>`);
|
|
|
|
|
if (provider.value.evidence_image_path) {
|
|
|
|
|
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Bizony\xEDt\xE9k k\xE9p</h2><img${ssrRenderAttr("src", provider.value.evidence_image_path)} alt="Evidence" class="w-full rounded-lg border border-slate-600" data-v-cbc29188></div>`);
|
|
|
|
|
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Bizony\xEDt\xE9k k\xE9p</h2><img${ssrRenderAttr("src", provider.value.evidence_image_path)} alt="Evidence" class="w-full rounded-lg border border-slate-600" data-v-aa1d3c94></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
@@ -337,9 +471,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (activeTab.value === "status") {
|
|
|
|
|
_push(`<div class="max-w-2xl" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>St\xE1tusz kezel\xE9s</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188>M\xF3dos\xEDtsd a szolg\xE1ltat\xF3 st\xE1tusz\xE1t \xE9s valid\xE1ci\xF3s pontsz\xE1m\xE1t.</p><form data-v-cbc29188><div class="space-y-4 mb-6" data-v-cbc29188><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>St\xE1tusz</label><select class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188><option value="pending" data-v-cbc29188${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "pending") : ssrLooseEqual(statusForm.value.status, "pending")) ? " selected" : ""}>F\xFCgg\u0151ben</option><option value="approved" data-v-cbc29188${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "approved") : ssrLooseEqual(statusForm.value.status, "approved")) ? " selected" : ""}>J\xF3v\xE1hagyott</option><option value="rejected" data-v-cbc29188${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "rejected") : ssrLooseEqual(statusForm.value.status, "rejected")) ? " selected" : ""}>Elutas\xEDtott</option></select></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188> Valid\xE1ci\xF3s pontsz\xE1m (0-100) </label><div class="flex items-center gap-3" data-v-cbc29188><input${ssrRenderAttr("value", statusForm.value.validation_score)} type="range" min="0" max="100" class="w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer accent-indigo-500" data-v-cbc29188><span class="text-sm text-white font-medium w-8 text-right" data-v-cbc29188>${ssrInterpolate(statusForm.value.validation_score)}</span></div></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Indokl\xE1s (opcion\xE1lis)</label><textarea rows="3" placeholder="Add meg a st\xE1tuszv\xE1ltoztat\xE1s ok\xE1t..." class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm resize-none" data-v-cbc29188>${ssrInterpolate(statusForm.value.reason)}</textarea></div></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>M\xE9gsem</button><button type="submit"${ssrIncludeBooleanAttr(statusLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
|
|
|
|
_push(`<div class="max-w-2xl" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>St\xE1tusz kezel\xE9s</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94>M\xF3dos\xEDtsd a szolg\xE1ltat\xF3 st\xE1tusz\xE1t \xE9s valid\xE1ci\xF3s pontsz\xE1m\xE1t.</p><form data-v-aa1d3c94><div class="space-y-4 mb-6" data-v-aa1d3c94><div data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>St\xE1tusz</label><select class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-aa1d3c94><option value="pending" data-v-aa1d3c94${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "pending") : ssrLooseEqual(statusForm.value.status, "pending")) ? " selected" : ""}>F\xFCgg\u0151ben</option><option value="approved" data-v-aa1d3c94${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "approved") : ssrLooseEqual(statusForm.value.status, "approved")) ? " selected" : ""}>J\xF3v\xE1hagyott</option><option value="rejected" data-v-aa1d3c94${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "rejected") : ssrLooseEqual(statusForm.value.status, "rejected")) ? " selected" : ""}>Elutas\xEDtott</option></select></div><div data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94> Valid\xE1ci\xF3s pontsz\xE1m (0-100) </label><div class="flex items-center gap-3" data-v-aa1d3c94><input${ssrRenderAttr("value", statusForm.value.validation_score)} type="range" min="0" max="100" class="w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer accent-indigo-500" data-v-aa1d3c94><span class="text-sm text-white font-medium w-8 text-right" data-v-aa1d3c94>${ssrInterpolate(statusForm.value.validation_score)}</span></div></div><div data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Indokl\xE1s (opcion\xE1lis)</label><textarea rows="3" placeholder="Add meg a st\xE1tuszv\xE1ltoztat\xE1s ok\xE1t..." class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm resize-none" data-v-aa1d3c94>${ssrInterpolate(statusForm.value.reason)}</textarea></div></div><div class="flex justify-end gap-3" data-v-aa1d3c94><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-aa1d3c94>M\xE9gsem</button><button type="submit"${ssrIncludeBooleanAttr(statusLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-aa1d3c94>`);
|
|
|
|
|
if (statusLoading.value) {
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
@@ -348,22 +482,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (activeTab.value === "validations") {
|
|
|
|
|
_push(`<div data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Gamification Valid\xE1ci\xF3k</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188>A szolg\xE1ltat\xF3hoz tartoz\xF3 gamification valid\xE1ci\xF3s bejegyz\xE9sek list\xE1ja.</p>`);
|
|
|
|
|
_push(`<div data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Gamification Valid\xE1ci\xF3k</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94>A szolg\xE1ltat\xF3hoz tartoz\xF3 gamification valid\xE1ci\xF3s bejegyz\xE9sek list\xE1ja.</p>`);
|
|
|
|
|
if (validationsLoading.value) {
|
|
|
|
|
_push(`<div class="flex items-center justify-center py-8" data-v-cbc29188><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg></div>`);
|
|
|
|
|
_push(`<div class="flex items-center justify-center py-8" data-v-aa1d3c94><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg></div>`);
|
|
|
|
|
} else if (validations.value.length === 0) {
|
|
|
|
|
_push(`<div class="text-center py-8" data-v-cbc29188><p class="text-slate-500" data-v-cbc29188>Nincsenek valid\xE1ci\xF3s bejegyz\xE9sek ehhez a szolg\xE1ltat\xF3hoz.</p></div>`);
|
|
|
|
|
_push(`<div class="text-center py-8" data-v-aa1d3c94><p class="text-slate-500" data-v-aa1d3c94>Nincsenek valid\xE1ci\xF3s bejegyz\xE9sek ehhez a szolg\xE1ltat\xF3hoz.</p></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<div class="space-y-3" data-v-cbc29188><!--[-->`);
|
|
|
|
|
_push(`<div class="space-y-3" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(validations.value, (v) => {
|
|
|
|
|
var _a2;
|
|
|
|
|
_push(`<div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-cbc29188><div class="flex items-start justify-between gap-4" data-v-cbc29188><div class="flex-1" data-v-cbc29188><div class="flex items-center gap-2 mb-1" data-v-cbc29188><span class="${ssrRenderClass([validationTypeClass(v.validation_type), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-cbc29188>${ssrInterpolate(validationTypeLabel(v.validation_type))}</span><span class="text-xs text-slate-500" data-v-cbc29188>s\xFAly: ${ssrInterpolate(v.weight)}</span></div><p class="text-sm text-slate-300" data-v-cbc29188><span class="text-slate-400" data-v-cbc29188>Szavaz\xF3:</span> ${ssrInterpolate(v.voter_name || `User #${v.voter_user_id}`)}</p>`);
|
|
|
|
|
_push(`<div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-aa1d3c94><div class="flex items-start justify-between gap-4" data-v-aa1d3c94><div class="flex-1" data-v-aa1d3c94><div class="flex items-center gap-2 mb-1" data-v-aa1d3c94><span class="${ssrRenderClass([validationTypeClass(v.validation_type), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-aa1d3c94>${ssrInterpolate(validationTypeLabel(v.validation_type))}</span><span class="text-xs text-slate-500" data-v-aa1d3c94>s\xFAly: ${ssrInterpolate(v.weight)}</span></div><p class="text-sm text-slate-300" data-v-aa1d3c94><span class="text-slate-400" data-v-aa1d3c94>Szavaz\xF3:</span> ${ssrInterpolate(v.voter_name || `User #${v.voter_user_id}`)}</p>`);
|
|
|
|
|
if ((_a2 = v.validation_metadata) == null ? void 0 : _a2.reason) {
|
|
|
|
|
_push(`<p class="text-xs text-slate-500 mt-1" data-v-cbc29188> Indokl\xE1s: ${ssrInterpolate(v.validation_metadata.reason)}</p>`);
|
|
|
|
|
_push(`<p class="text-xs text-slate-500 mt-1" data-v-aa1d3c94> Indokl\xE1s: ${ssrInterpolate(v.validation_metadata.reason)}</p>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
_push(`</div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-cbc29188>${ssrInterpolate(formatDate(v.created_at))}</div></div></div>`);
|
|
|
|
|
_push(`</div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-aa1d3c94>${ssrInterpolate(formatDate(v.created_at))}</div></div></div>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div>`);
|
|
|
|
|
}
|
|
|
|
|
@@ -372,31 +506,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (activeTab.value === "history") {
|
|
|
|
|
_push(`<div data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>\xC1llapotv\xE1ltoztat\xE1sok el\u0151zm\xE9nyei</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188>Id\u0151vonal: ki, mikor \xE9s mit v\xE1ltoztatott a szolg\xE1ltat\xF3val kapcsolatban.</p>`);
|
|
|
|
|
_push(`<div data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>\xC1llapotv\xE1ltoztat\xE1sok el\u0151zm\xE9nyei</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94>Id\u0151vonal: ki, mikor \xE9s mit v\xE1ltoztatott a szolg\xE1ltat\xF3val kapcsolatban.</p>`);
|
|
|
|
|
if (historyLoading.value) {
|
|
|
|
|
_push(`<div class="flex items-center justify-center py-8" data-v-cbc29188><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg></div>`);
|
|
|
|
|
_push(`<div class="flex items-center justify-center py-8" data-v-aa1d3c94><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg></div>`);
|
|
|
|
|
} else if (history.value.length === 0) {
|
|
|
|
|
_push(`<div class="text-center py-8" data-v-cbc29188><p class="text-slate-500" data-v-cbc29188>Nincsenek el\u0151zm\xE9nyek ehhez a szolg\xE1ltat\xF3hoz.</p></div>`);
|
|
|
|
|
_push(`<div class="text-center py-8" data-v-aa1d3c94><p class="text-slate-500" data-v-aa1d3c94>Nincsenek el\u0151zm\xE9nyek ehhez a szolg\xE1ltat\xF3hoz.</p></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<div class="relative" data-v-cbc29188><div class="absolute left-4 top-0 bottom-0 w-0.5 bg-slate-700" data-v-cbc29188></div><!--[-->`);
|
|
|
|
|
ssrRenderList(history.value, (entry, index) => {
|
|
|
|
|
_push(`<div class="relative pl-10 pb-6 last:pb-0" data-v-cbc29188><div class="${ssrRenderClass([historyDotClass(entry.action), "absolute left-2.5 w-3 h-3 rounded-full border-2 mt-1.5"])}" data-v-cbc29188></div><div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-cbc29188><div class="flex items-start justify-between gap-4 mb-2" data-v-cbc29188><div data-v-cbc29188><span class="${ssrRenderClass([historyActionClass(entry.action), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-cbc29188>${ssrInterpolate(historyActionLabel(entry.action))}</span><span class="text-xs text-slate-500 ml-2" data-v-cbc29188> User #${ssrInterpolate(entry.user_id || "?")}</span></div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-cbc29188>${ssrInterpolate(formatDate(entry.timestamp))}</div></div>`);
|
|
|
|
|
_push(`<div class="relative" data-v-aa1d3c94><div class="absolute left-4 top-0 bottom-0 w-0.5 bg-slate-700" data-v-aa1d3c94></div><!--[-->`);
|
|
|
|
|
ssrRenderList(history.value, (entry, index2) => {
|
|
|
|
|
_push(`<div class="relative pl-10 pb-6 last:pb-0" data-v-aa1d3c94><div class="${ssrRenderClass([historyDotClass(entry.action), "absolute left-2.5 w-3 h-3 rounded-full border-2 mt-1.5"])}" data-v-aa1d3c94></div><div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-aa1d3c94><div class="flex items-start justify-between gap-4 mb-2" data-v-aa1d3c94><div data-v-aa1d3c94><span class="${ssrRenderClass([historyActionClass(entry.action), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-aa1d3c94>${ssrInterpolate(historyActionLabel(entry.action))}</span><span class="text-xs text-slate-500 ml-2" data-v-aa1d3c94> User #${ssrInterpolate(entry.user_id || "?")}</span></div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-aa1d3c94>${ssrInterpolate(formatDate(entry.timestamp))}</div></div>`);
|
|
|
|
|
if (entry.new_data) {
|
|
|
|
|
_push(`<div class="text-xs text-slate-400 space-y-1 mt-2" data-v-cbc29188>`);
|
|
|
|
|
_push(`<div class="text-xs text-slate-400 space-y-1 mt-2" data-v-aa1d3c94>`);
|
|
|
|
|
if (entry.new_data.old_status || entry.new_data.new_status) {
|
|
|
|
|
_push(`<div class="flex items-center gap-2" data-v-cbc29188><span class="text-slate-500" data-v-cbc29188>St\xE1tusz:</span><span class="text-rose-400" data-v-cbc29188>${ssrInterpolate(entry.new_data.old_status || "?")}</span><svg class="w-3 h-3 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" data-v-cbc29188></path></svg><span class="text-emerald-400" data-v-cbc29188>${ssrInterpolate(entry.new_data.new_status || "?")}</span></div>`);
|
|
|
|
|
_push(`<div class="flex items-center gap-2" data-v-aa1d3c94><span class="text-slate-500" data-v-aa1d3c94>St\xE1tusz:</span><span class="text-rose-400" data-v-aa1d3c94>${ssrInterpolate(entry.new_data.old_status || "?")}</span><svg class="w-3 h-3 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" data-v-aa1d3c94></path></svg><span class="text-emerald-400" data-v-aa1d3c94>${ssrInterpolate(entry.new_data.new_status || "?")}</span></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (entry.new_data.reason && entry.new_data.reason !== "Admin edit") {
|
|
|
|
|
_push(`<div data-v-cbc29188><span class="text-slate-500" data-v-cbc29188>Indokl\xE1s:</span> ${ssrInterpolate(entry.new_data.reason)}</div>`);
|
|
|
|
|
_push(`<div data-v-aa1d3c94><span class="text-slate-500" data-v-aa1d3c94>Indokl\xE1s:</span> ${ssrInterpolate(entry.new_data.reason)}</div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (entry.new_data.changes) {
|
|
|
|
|
_push(`<div class="mt-2" data-v-cbc29188><details class="text-xs" data-v-cbc29188><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-cbc29188>R\xE9szletes v\xE1ltoz\xE1sok</summary><div class="mt-2 space-y-1" data-v-cbc29188><!--[-->`);
|
|
|
|
|
_push(`<div class="mt-2" data-v-aa1d3c94><details class="text-xs" data-v-aa1d3c94><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-aa1d3c94>R\xE9szletes v\xE1ltoz\xE1sok</summary><div class="mt-2 space-y-1" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(entry.new_data.changes, (value, key) => {
|
|
|
|
|
_push(`<div class="flex gap-2" data-v-cbc29188><span class="text-slate-500 w-28 flex-shrink-0" data-v-cbc29188>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-cbc29188>${ssrInterpolate(value != null ? value : "\u2014")}</span></div>`);
|
|
|
|
|
_push(`<div class="flex gap-2" data-v-aa1d3c94><span class="text-slate-500 w-28 flex-shrink-0" data-v-aa1d3c94>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-aa1d3c94>${ssrInterpolate(value != null ? value : "\u2014")}</span></div>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div></details></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
@@ -407,9 +541,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (entry.old_data) {
|
|
|
|
|
_push(`<div class="mt-2" data-v-cbc29188><details class="text-xs" data-v-cbc29188><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-cbc29188>R\xE9gi adatok</summary><div class="mt-2 space-y-1" data-v-cbc29188><!--[-->`);
|
|
|
|
|
_push(`<div class="mt-2" data-v-aa1d3c94><details class="text-xs" data-v-aa1d3c94><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-aa1d3c94>R\xE9gi adatok</summary><div class="mt-2 space-y-1" data-v-aa1d3c94><!--[-->`);
|
|
|
|
|
ssrRenderList(entry.old_data, (value, key) => {
|
|
|
|
|
_push(`<div class="flex gap-2" data-v-cbc29188><span class="text-slate-500 w-28 flex-shrink-0" data-v-cbc29188>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-cbc29188>${ssrInterpolate(value != null ? value : "\u2014")}</span></div>`);
|
|
|
|
|
_push(`<div class="flex gap-2" data-v-aa1d3c94><span class="text-slate-500 w-28 flex-shrink-0" data-v-aa1d3c94>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-aa1d3c94>${ssrInterpolate(value != null ? value : "\u2014")}</span></div>`);
|
|
|
|
|
});
|
|
|
|
|
_push(`<!--]--></div></details></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
@@ -426,9 +560,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
_push(`<!--]-->`);
|
|
|
|
|
}
|
|
|
|
|
if (showRejectModal.value) {
|
|
|
|
|
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-2" data-v-cbc29188>Szolg\xE1ltat\xF3 elutas\xEDt\xE1sa</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188> Biztosan elutas\xEDtod a(z) <strong class="text-white" data-v-cbc29188>${ssrInterpolate((_a = provider.value) == null ? void 0 : _a.name)}</strong> szolg\xE1ltat\xF3t? </p><form data-v-cbc29188><div class="mb-4" data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Indokl\xE1s (opcion\xE1lis)</label><textarea rows="3" placeholder="Add meg az elutas\xEDt\xE1s ok\xE1t..." class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-rose-500/50 focus:border-rose-500 text-sm resize-none" data-v-cbc29188>${ssrInterpolate(rejectReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>M\xE9gse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-rose-600 hover:bg-rose-500 disabled:bg-rose-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
|
|
|
|
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-2" data-v-aa1d3c94>Szolg\xE1ltat\xF3 elutas\xEDt\xE1sa</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94> Biztosan elutas\xEDtod a(z) <strong class="text-white" data-v-aa1d3c94>${ssrInterpolate((_e = provider.value) == null ? void 0 : _e.name)}</strong> szolg\xE1ltat\xF3t? </p><form data-v-aa1d3c94><div class="mb-4" data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Indokl\xE1s (opcion\xE1lis)</label><textarea rows="3" placeholder="Add meg az elutas\xEDt\xE1s ok\xE1t..." class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-rose-500/50 focus:border-rose-500 text-sm resize-none" data-v-aa1d3c94>${ssrInterpolate(rejectReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-aa1d3c94><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-aa1d3c94>M\xE9gse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-rose-600 hover:bg-rose-500 disabled:bg-rose-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-aa1d3c94>`);
|
|
|
|
|
if (actionLoading.value) {
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
@@ -436,21 +570,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (showEditModal.value) {
|
|
|
|
|
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl max-h-[90vh] overflow-y-auto" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-2" data-v-cbc29188>Szolg\xE1ltat\xF3 szerkeszt\xE9se</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188> M\xF3dos\xEDtsd a(z) <strong class="text-white" data-v-cbc29188>${ssrInterpolate((_b = provider.value) == null ? void 0 : _b.name)}</strong> szolg\xE1ltat\xF3 adatait. </p><form data-v-cbc29188><div class="space-y-4 mb-6" data-v-cbc29188><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>N\xE9v</label><input${ssrRenderAttr("value", editForm.value.name)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>V\xE1ros</label><input${ssrRenderAttr("value", editForm.value.city)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Ir\xE1ny\xEDt\xF3sz\xE1m</label><input${ssrRenderAttr("value", editForm.value.address_zip)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Utca</label><input${ssrRenderAttr("value", editForm.value.address_street_name)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>H\xE1zsz\xE1m</label><input${ssrRenderAttr("value", editForm.value.address_house_number)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Plus Code</label><input${ssrRenderAttr("value", editForm.value.plus_code)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Telefon</label><input${ssrRenderAttr("value", editForm.value.contact_phone)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Email</label><input${ssrRenderAttr("value", editForm.value.contact_email)} type="email" class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Weboldal</label><input${ssrRenderAttr("value", editForm.value.website)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Kateg\xF3ria</label><input${ssrRenderAttr("value", editForm.value.category)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>M\xE9gse</button><button type="submit"${ssrIncludeBooleanAttr(editLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
|
|
|
|
if (editLoading.value) {
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
_push(` Ment\xE9s </button></div></form></div></div>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
if (showFlagModal.value) {
|
|
|
|
|
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-2" data-v-cbc29188>Szolg\xE1ltat\xF3 megjel\xF6l\xE9se</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188> Biztosan megjel\xF6l\xF6d a(z) <strong class="text-white" data-v-cbc29188>${ssrInterpolate((_c = provider.value) == null ? void 0 : _c.name)}</strong> szolg\xE1ltat\xF3t? </p><form data-v-cbc29188><div class="mb-4" data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Indokl\xE1s (opcion\xE1lis)</label><textarea rows="3" placeholder="Add meg a megjel\xF6l\xE9s ok\xE1t..." class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-purple-500 text-sm resize-none" data-v-cbc29188>${ssrInterpolate(flagReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>M\xE9gse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-purple-600 hover:bg-purple-500 disabled:bg-purple-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
|
|
|
|
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-2" data-v-aa1d3c94>Szolg\xE1ltat\xF3 megjel\xF6l\xE9se</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94> Biztosan megjel\xF6l\xF6d a(z) <strong class="text-white" data-v-aa1d3c94>${ssrInterpolate((_f = provider.value) == null ? void 0 : _f.name)}</strong> szolg\xE1ltat\xF3t? </p><form data-v-aa1d3c94><div class="mb-4" data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Indokl\xE1s (opcion\xE1lis)</label><textarea rows="3" placeholder="Add meg a megjel\xF6l\xE9s ok\xE1t..." class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-purple-500 text-sm resize-none" data-v-aa1d3c94>${ssrInterpolate(flagReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-aa1d3c94><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-aa1d3c94>M\xE9gse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-purple-600 hover:bg-purple-500 disabled:bg-purple-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-aa1d3c94>`);
|
|
|
|
|
if (actionLoading.value) {
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
|
|
|
|
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
|
|
|
|
} else {
|
|
|
|
|
_push(`<!---->`);
|
|
|
|
|
}
|
|
|
|
|
@@ -465,10 +588,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
|
|
const _sfc_setup = _sfc_main.setup;
|
|
|
|
|
_sfc_main.setup = (props, ctx) => {
|
|
|
|
|
const ssrContext = useSSRContext();
|
|
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/providers/[id].vue");
|
|
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/providers/[id]/index.vue");
|
|
|
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
|
|
|
};
|
|
|
|
|
const _id_ = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cbc29188"]]);
|
|
|
|
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aa1d3c94"]]);
|
|
|
|
|
|
|
|
|
|
export { _id_ as default };
|
|
|
|
|
//# sourceMappingURL=_id_-YGQP6BWl.mjs.map
|
|
|
|
|
export { index as default };
|
|
|
|
|
//# sourceMappingURL=index-Dzq5Dk7S.mjs.map
|