Files
service-finder/frontend_admin/.output/server/chunks/build/_id_-YGQP6BWl.mjs
2026-07-01 02:27:38 +00:00

475 lines
46 KiB
JavaScript

import { _ as __nuxt_component_0 } from './nuxt-link-1NBbHb-h.mjs';
import { defineComponent, ref, computed, watch, createVNode, resolveDynamicComponent, withCtx, openBlock, createBlock, createTextVNode, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderList, ssrRenderVNode, ssrRenderStyle, ssrRenderAttr, ssrIncludeBooleanAttr, ssrRenderComponent, ssrLooseContain, ssrLooseEqual } from 'vue/server-renderer';
import { useRoute, useRouter } from 'vue-router';
import { d as useCookie } from './server.mjs';
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import 'pinia';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/utils';
import 'unhead/plugins';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "[id]",
__ssrInlineRender: true,
setup(__props) {
const route = useRoute();
useRouter();
const loading = ref(true);
const error = ref(false);
const provider = ref(null);
const actionLoading = ref(false);
ref(null);
const showRejectModal = ref(false);
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);
const history = ref([]);
const historyLoading = ref(false);
const statusForm = ref({
status: "pending",
validation_score: 0,
reason: ""
});
const statusLoading = ref(false);
const tabs = [
{ key: "data", label: "Adatok", icon: "svg" },
{ key: "status", label: "St\xE1tusz", icon: "svg" },
{ key: "validations", label: "Valid\xE1ci\xF3k", icon: "svg" },
{ key: "history", label: "El\u0151zm\xE9nyek", icon: "svg" }
];
const statusBannerClass = computed(() => {
var _a;
switch ((_a = provider.value) == null ? void 0 : _a.status) {
case "approved":
return "bg-emerald-500/10 border-emerald-500/30";
case "pending":
return "bg-amber-500/10 border-amber-500/30";
default:
return "bg-rose-500/10 border-rose-500/30";
}
});
const statusIconClass = computed(() => {
var _a;
switch ((_a = provider.value) == null ? void 0 : _a.status) {
case "approved":
return "bg-emerald-500/20 text-emerald-400";
case "pending":
return "bg-amber-500/20 text-amber-400";
default:
return "bg-rose-500/20 text-rose-400";
}
});
const statusTextClass = computed(() => {
var _a;
switch ((_a = provider.value) == null ? void 0 : _a.status) {
case "approved":
return "text-emerald-400";
case "pending":
return "text-amber-400";
default:
return "text-rose-400";
}
});
const statusSubtextClass = computed(() => {
var _a;
switch ((_a = provider.value) == null ? void 0 : _a.status) {
case "approved":
return "text-emerald-400/60";
case "pending":
return "text-amber-400/60";
default:
return "text-rose-400/60";
}
});
function statusLabel(status) {
switch (status) {
case "approved":
return "J\xF3v\xE1hagyva";
case "pending":
return "F\xFCgg\u0151ben";
case "rejected":
return "Elutas\xEDtva";
default:
return "Ismeretlen";
}
}
function statusDescription(status) {
switch (status) {
case "approved":
return "A szolg\xE1ltat\xF3 akt\xEDv \xE9s l\xE1that\xF3 a felhaszn\xE1l\xF3k sz\xE1m\xE1ra.";
case "pending":
return "A szolg\xE1ltat\xF3 m\xE9g nem lett j\xF3v\xE1hagyva, moder\xE1l\xE1sra v\xE1r.";
case "rejected":
return "A szolg\xE1ltat\xF3 elutas\xEDt\xE1sra ker\xFClt, nem l\xE1that\xF3 a felhaszn\xE1l\xF3k sz\xE1m\xE1ra.";
default:
return "";
}
}
function validationTypeLabel(type) {
const labels = {
phone_verified: "Telefon igazolt",
email_verified: "Email igazolt",
address_verified: "C\xEDm igazolt",
website_verified: "Weboldal igazolt",
manual_review: "K\xE9zi ellen\u0151rz\xE9s",
community_vouch: "K\xF6z\xF6ss\xE9gi aj\xE1nl\xE1s",
business_hours: "Nyitvatart\xE1s ellen\u0151rz\xF6tt",
photo_evidence: "F\xE9nyk\xE9p bizony\xEDt\xE9k"
};
return labels[type] || type;
}
function validationTypeClass(type) {
const classes = {
phone_verified: "bg-emerald-500/20 text-emerald-400",
email_verified: "bg-blue-500/20 text-blue-400",
address_verified: "bg-amber-500/20 text-amber-400",
website_verified: "bg-purple-500/20 text-purple-400",
manual_review: "bg-indigo-500/20 text-indigo-400",
community_vouch: "bg-pink-500/20 text-pink-400",
business_hours: "bg-cyan-500/20 text-cyan-400",
photo_evidence: "bg-orange-500/20 text-orange-400"
};
return classes[type] || "bg-slate-500/20 text-slate-400";
}
function historyActionLabel(action) {
const labels = {
approve: "J\xF3v\xE1hagy\xE1s",
reject: "Elutas\xEDt\xE1s",
restore: "Vissza\xE1ll\xEDt\xE1s",
flag: "Megjel\xF6l\xE9s",
update: "M\xF3dos\xEDt\xE1s",
delete: "T\xF6rl\xE9s",
create: "L\xE9trehoz\xE1s"
};
return labels[action] || action;
}
function historyActionClass(action) {
const classes = {
approve: "bg-emerald-500/20 text-emerald-400",
reject: "bg-rose-500/20 text-rose-400",
restore: "bg-blue-500/20 text-blue-400",
flag: "bg-purple-500/20 text-purple-400",
update: "bg-amber-500/20 text-amber-400",
delete: "bg-red-500/20 text-red-400",
create: "bg-green-500/20 text-green-400"
};
return classes[action] || "bg-slate-500/20 text-slate-400";
}
function historyDotClass(action) {
const classes = {
approve: "border-emerald-500 bg-emerald-500/30",
reject: "border-rose-500 bg-rose-500/30",
restore: "border-blue-500 bg-blue-500/30",
flag: "border-purple-500 bg-purple-500/30",
update: "border-amber-500 bg-amber-500/30",
delete: "border-red-500 bg-red-500/30",
create: "border-green-500 bg-green-500/30"
};
return classes[action] || "border-slate-500 bg-slate-500/30";
}
function formatDate(dateStr) {
if (!dateStr) return "\u2014";
try {
const d = new Date(dateStr);
return d.toLocaleDateString("hu-HU", {
year: "numeric",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
});
} catch {
return dateStr;
}
}
function getHeaders() {
const token = useCookie("access_token").value;
const headers = { "Content-Type": "application/json" };
if (token) headers["Authorization"] = `Bearer ${token}`;
return headers;
}
async function fetchValidations() {
validationsLoading.value = true;
try {
const res = await $fetch(`/api/v1/admin/providers/${route.params.id}/validations`, {
headers: getHeaders()
});
validations.value = res || [];
} catch (err) {
console.error("Failed to fetch validations:", err);
validations.value = [];
} finally {
validationsLoading.value = false;
}
}
async function fetchHistory() {
historyLoading.value = true;
try {
const res = await $fetch(`/api/v1/admin/providers/${route.params.id}/history`, {
headers: getHeaders()
});
history.value = res || [];
} catch (err) {
console.error("Failed to fetch history:", err);
history.value = [];
} finally {
historyLoading.value = false;
}
}
function onTabChange(tab) {
if (tab === "validations" && validations.value.length === 0) {
fetchValidations();
}
if (tab === "history" && history.value.length === 0) {
fetchHistory();
}
}
watch(activeTab, onTabChange);
return (_ctx, _push, _parent, _attrs) => {
var _a, _b, _c;
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>`);
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>`);
} 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>`);
} 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>`);
} 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>`);
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>`);
} 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>`);
} 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(`</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><!--[-->`);
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>`);
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>`);
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>`);
} else {
_push(`<span data-v-cbc29188>\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>`);
} 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(` 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>`);
} else if (provider.value.status === "approved") {
_push(`<div class="space-y-3" data-v-cbc29188>`);
_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 `);
} 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));
_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>`);
} 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>`);
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>`);
} 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(`</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>`);
} else {
_push(`<!---->`);
}
_push(`</div></div>`);
} else {
_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>`);
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>`);
} else {
_push(`<!---->`);
}
_push(` St\xE1tusz ment\xE9se </button></div></form></div></div>`);
} else {
_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>`);
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>`);
} 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>`);
} else {
_push(`<div class="space-y-3" data-v-cbc29188><!--[-->`);
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>`);
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>`);
} 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>`);
}
_push(`</div></div>`);
} else {
_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>`);
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>`);
} 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>`);
} 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>`);
if (entry.new_data) {
_push(`<div class="text-xs text-slate-400 space-y-1 mt-2" data-v-cbc29188>`);
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>`);
} 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>`);
} 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><!--[-->`);
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></details></div>`);
} else {
_push(`<!---->`);
}
_push(`</div>`);
} else {
_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><!--[-->`);
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></details></div>`);
} else {
_push(`<!---->`);
}
_push(`</div></div>`);
});
_push(`<!--]--></div>`);
}
_push(`</div></div>`);
} else {
_push(`<!---->`);
}
_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>`);
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>`);
} else {
_push(`<!---->`);
}
_push(` Elutas\xEDt\xE1s </button></div></form></div></div>`);
} 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>`);
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>`);
} else {
_push(`<!---->`);
}
_push(` Megjel\xF6l\xE9s </button></div></form></div></div>`);
} else {
_push(`<!---->`);
}
_push(`</div>`);
};
}
});
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");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const _id_ = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cbc29188"]]);
export { _id_ as default };
//# sourceMappingURL=_id_-YGQP6BWl.mjs.map