Files
service-finder/frontend_admin/.nuxt/dist/client/_nuxt/dxAJkDQw.js
2026-07-01 02:27:38 +00:00

2 lines
38 KiB
JavaScript

import{_ as we}from"./CuTzR9Y8.js";import{e as ke,B as he,g as ye,c as n,a as e,d as u,t as i,P as _e,F as _,k as w,r as $,n as ze,b as je,w as Ce,j as m,x as y,y as c,C as Me,z as b,l as v,m as L,K as He,h as Se,D as Be,o as a,L as Ve,M as $e}from"./Duy9QquX.js";import{_ as Ae}from"./DlAUqK2U.js";const Te={class:"mb-8"},Le={class:"text-slate-400 mt-1"},Ee={key:0,class:"flex items-center justify-center py-20"},Ue={key:1,class:"bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8"},Pe={key:2,class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},Fe={key:0,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},De={key:1,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ie={key:2,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ne={class:"border-b border-slate-700 mb-6"},Re={class:"flex gap-6 -mb-px"},Ke=["onClick"],Je={key:0,class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},Oe={class:"lg:col-span-2 space-y-6"},We={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},Ge={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},qe={class:"text-sm text-white mt-1 font-medium"},Qe={class:"text-sm text-white mt-1"},Xe={class:"mt-1"},Ye={class:"text-sm font-mono text-amber-300 bg-amber-500/10 px-2 py-0.5 rounded"},Ze={class:"mt-1"},et={class:"flex items-center gap-2"},tt={class:"w-24 h-2 bg-slate-700 rounded-full overflow-hidden"},st={class:"text-sm text-white font-medium"},lt={class:"text-sm text-white mt-1"},ot={class:"text-sm text-white mt-1"},at={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},nt={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},it={class:"md:col-span-2"},rt={class:"text-sm text-white mt-1"},dt={class:"text-sm text-white mt-1"},ut={class:"text-sm text-white mt-1"},mt={class:"text-sm text-white mt-1"},vt={class:"text-sm text-white mt-1"},pt={class:"text-sm text-white mt-1"},ct={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},xt={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},bt={class:"text-sm text-white mt-1"},gt={class:"text-sm text-white mt-1"},ft={class:"text-sm text-white mt-1"},wt=["href"],kt={key:1},ht={class:"space-y-4"},yt={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},_t={key:0,class:"space-y-3"},zt=["disabled"],jt={key:0,class:"w-4 h-4 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ct={key:1,class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Mt=["disabled"],Ht={key:1,class:"space-y-3"},St=["disabled"],Bt=["disabled"],Vt={key:2,class:"space-y-3"},$t={class:"text-sm text-slate-400 text-center py-2"},At=["disabled"],Tt=["disabled"],Lt=["disabled"],Et={key:0,class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},Ut=["src"],Pt={key:1,class:"max-w-2xl"},Ft={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},Dt={class:"space-y-4 mb-6"},It={class:"flex items-center gap-3"},Nt={class:"text-sm text-white font-medium w-8 text-right"},Rt={class:"flex justify-end gap-3"},Kt=["disabled"],Jt={key:0,class:"w-4 h-4 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ot={key:2},Wt={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},Gt={key:0,class:"flex items-center justify-center py-8"},qt={key:1,class:"text-center py-8"},Qt={key:2,class:"space-y-3"},Xt={class:"flex items-start justify-between gap-4"},Yt={class:"flex-1"},Zt={class:"flex items-center gap-2 mb-1"},es={class:"text-xs text-slate-500"},ts={class:"text-sm text-slate-300"},ss={key:0,class:"text-xs text-slate-500 mt-1"},ls={class:"text-xs text-slate-500 whitespace-nowrap"},os={key:3},as={class:"bg-slate-800 rounded-xl border border-slate-700 p-6"},ns={key:0,class:"flex items-center justify-center py-8"},is={key:1,class:"text-center py-8"},rs={key:2,class:"relative"},ds={class:"bg-slate-700/50 rounded-lg border border-slate-600 p-4"},us={class:"flex items-start justify-between gap-4 mb-2"},ms={class:"text-xs text-slate-500 ml-2"},vs={class:"text-xs text-slate-500 whitespace-nowrap"},ps={key:0,class:"text-xs text-slate-400 space-y-1 mt-2"},cs={key:0,class:"flex items-center gap-2"},xs={class:"text-rose-400"},bs={class:"text-emerald-400"},gs={key:1},fs={key:2,class:"mt-2"},ws={class:"text-xs"},ks={class:"mt-2 space-y-1"},hs={class:"text-slate-500 w-28 flex-shrink-0"},ys={class:"text-slate-300 truncate"},_s={key:1,class:"mt-2"},zs={class:"text-xs"},js={class:"mt-2 space-y-1"},Cs={class:"text-slate-500 w-28 flex-shrink-0"},Ms={class:"text-slate-300 truncate"},Hs={class:"bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl"},Ss={class:"text-sm text-slate-400 mb-6"},Bs={class:"text-white"},Vs={class:"mb-4"},$s={class:"flex justify-end gap-3"},As=["disabled"],Ts={key:0,class:"w-4 h-4 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ls={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"},Es={class:"text-sm text-slate-400 mb-6"},Us={class:"text-white"},Ps={class:"space-y-4 mb-6"},Fs={class:"flex justify-end gap-3"},Ds=["disabled"],Is={key:0,class:"w-4 h-4 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ns={class:"bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl"},Rs={class:"text-sm text-slate-400 mb-6"},Ks={class:"text-white"},Js={class:"mb-4"},Os={class:"flex justify-end gap-3"},Ws=["disabled"],Gs={key:0,class:"w-4 h-4 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},qs=ke({__name:"[id]",setup(Qs){const g=He(),N=Be(),E=v(!0),U=v(!1),o=v(null),r=v(!1),R=v(null),z=v(!1),j=v(""),C=v(!1),M=v(""),H=v(!1),A=v(!1),d=v({}),h=v("data"),S=v([]),P=v(!1),B=v([]),F=v(!1),p=v({status:"pending",validation_score:0,reason:""}),T=v(!1),J=[{key:"data",label:"Adatok",icon:"svg"},{key:"status",label:"Státusz",icon:"svg"},{key:"validations",label:"Validációk",icon:"svg"},{key:"history",label:"Előzmények",icon:"svg"}],O=L(()=>{switch(o.value?.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"}}),W=L(()=>{switch(o.value?.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"}}),G=L(()=>{switch(o.value?.status){case"approved":return"text-emerald-400";case"pending":return"text-amber-400";default:return"text-rose-400"}}),q=L(()=>{switch(o.value?.status){case"approved":return"text-emerald-400/60";case"pending":return"text-amber-400/60";default:return"text-rose-400/60"}});function Q(l){switch(l){case"approved":return"Jóváhagyva";case"pending":return"Függőben";case"rejected":return"Elutasítva";default:return"Ismeretlen"}}function X(l){switch(l){case"approved":return"A szolgáltató aktív és látható a felhasználók számára.";case"pending":return"A szolgáltató még nem lett jóváhagyva, moderálásra vár.";case"rejected":return"A szolgáltató elutasításra került, nem látható a felhasználók számára.";default:return""}}function Y(l){return{phone_verified:"Telefon igazolt",email_verified:"Email igazolt",address_verified:"Cím igazolt",website_verified:"Weboldal igazolt",manual_review:"Kézi ellenőrzés",community_vouch:"Közösségi ajánlás",business_hours:"Nyitvatartás ellenőrzött",photo_evidence:"Fénykép bizonyíték"}[l]||l}function Z(l){return{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"}[l]||"bg-slate-500/20 text-slate-400"}function ee(l){return{approve:"Jóváhagyás",reject:"Elutasítás",restore:"Visszaállítás",flag:"Megjelölés",update:"Módosítás",delete:"Törlés",create:"Létrehozás"}[l]||l}function te(l){return{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"}[l]||"bg-slate-500/20 text-slate-400"}function se(l){return{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"}[l]||"border-slate-500 bg-slate-500/30"}function D(l){if(!l)return"—";try{return new Date(l).toLocaleDateString("hu-HU",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return l}}function f(){const l=Se("access_token").value,t={"Content-Type":"application/json"};return l&&(t.Authorization=`Bearer ${l}`),t}async function k(){E.value=!0,U.value=!1;try{const l=await $fetch(`/api/v1/admin/providers/${g.params.id}`,{headers:f()});o.value=l,p.value.status=l.status||"pending",p.value.validation_score=l.validation_score||0}catch(l){console.error("Failed to fetch provider:",l),U.value=!0}finally{E.value=!1}}async function le(){P.value=!0;try{const l=await $fetch(`/api/v1/admin/providers/${g.params.id}/validations`,{headers:f()});S.value=l||[]}catch(l){console.error("Failed to fetch validations:",l),S.value=[]}finally{P.value=!1}}async function oe(){F.value=!0;try{const l=await $fetch(`/api/v1/admin/providers/${g.params.id}/history`,{headers:f()});B.value=l||[]}catch(l){console.error("Failed to fetch history:",l),B.value=[]}finally{F.value=!1}}async function ae(){r.value=!0;try{await $fetch(`/api/v1/admin/providers/${g.params.id}/approve`,{method:"POST",headers:f()}),x("Szolgáltató jóváhagyva!","success"),await k()}catch(l){x(l?.data?.detail||"Hiba a jóváhagyás során","error")}finally{r.value=!1}}async function ne(){r.value=!0;try{await $fetch(`/api/v1/admin/providers/${g.params.id}/reject`,{method:"POST",headers:f(),body:{reason:j.value||void 0}}),z.value=!1,j.value="",x("Szolgáltató elutasítva!","success"),await k()}catch(l){x(l?.data?.detail||"Hiba az elutasítás során","error")}finally{r.value=!1}}async function ie(){r.value=!0;try{await $fetch(`/api/v1/admin/providers/${g.params.id}/restore`,{method:"POST",headers:f(),body:{}}),x("Szolgáltató visszaállítva!","success"),await k()}catch(l){x(l?.data?.detail||"Hiba a visszaállítás során","error")}finally{r.value=!1}}async function re(){r.value=!0;try{await $fetch(`/api/v1/admin/providers/${g.params.id}/flag`,{method:"POST",headers:f(),body:{reason:M.value||void 0}}),C.value=!1,M.value="",x("Szolgáltató megjelölve!","success"),await k()}catch(l){x(l?.data?.detail||"Hiba a megjelölés során","error")}finally{r.value=!1}}async function K(){if(confirm("Biztosan törlöd ezt a szolgáltatót? Ez a művelet nem visszavonható.")){r.value=!0;try{await $fetch(`/api/v1/admin/providers/${g.params.id}`,{method:"DELETE",headers:f()}),x("Szolgáltató törölve!","success"),N.push("/providers")}catch(l){x(l?.data?.detail||"Hiba a törlés során","error")}finally{r.value=!1}}}async function de(){A.value=!0;try{await $fetch(`/api/v1/admin/providers/${g.params.id}`,{method:"PATCH",headers:f(),body:d.value}),H.value=!1,x("Szolgáltató adatai frissítve!","success"),await k()}catch(l){x(l?.data?.detail||"Hiba a mentés során","error")}finally{A.value=!1}}async function ue(){T.value=!0;try{const l={status:p.value.status,validation_score:p.value.validation_score};p.value.reason&&(l.reason=p.value.reason),await $fetch(`/api/v1/admin/providers/${g.params.id}`,{method:"PATCH",headers:f(),body:l}),x("Státusz frissítve!","success"),await k()}catch(l){x(l?.data?.detail||"Hiba a státusz mentése során","error")}finally{T.value=!1}}function me(){o.value&&(d.value={name:o.value.name,city:o.value.city,address:o.value.address,address_zip:o.value.address_zip,address_street_name:o.value.address_street_name,address_house_number:o.value.address_house_number,plus_code:o.value.plus_code,contact_phone:o.value.contact_phone,contact_email:o.value.contact_email,website:o.value.website,category:o.value.category},H.value=!0)}function ve(){j.value="",z.value=!0}function pe(){M.value="",C.value=!0}function ce(){N.push("/providers")}function x(l,t){R.value={message:l,type:t},setTimeout(()=>{R.value=null},4e3)}function xe(){o.value&&(p.value.status=o.value.status||"pending",p.value.validation_score=o.value.validation_score||0),p.value.reason=""}function be(l){l==="validations"&&S.value.length===0&&le(),l==="history"&&B.value.length===0&&oe()}return he(h,be),ye(()=>{k()}),(l,t)=>{const ge=we;return a(),n("div",null,[e("div",Te,[e("button",{onClick:ce,class:"inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4"},[...t[21]||(t[21]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1),u(" Vissza a szolgáltatókhoz ",-1)])]),t[22]||(t[22]=e("h1",{class:"text-2xl font-bold text-white"},"Szolgáltató részletek",-1)),e("p",Le,"Szolgáltató #"+i((l._.provides[_e]||l.$route).params.id),1)]),E.value?(a(),n("div",Ee,[...t[23]||(t[23]=[e("div",{class:"text-slate-400 flex items-center gap-3"},[e("svg",{class:"w-5 h-5 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})]),e("span",null,"Szolgáltató betöltése...")],-1)])])):U.value?(a(),n("div",Ue,[t[24]||(t[24]=e("p",{class:"text-rose-400"},"Hiba történt a szolgáltató betöltése közben.",-1)),e("button",{onClick:k,class:"mt-3 text-sm text-rose-300 hover:text-rose-200 underline"},"Újrapróbálkozás")])):o.value?(a(),n(_,{key:3},[e("div",{class:w(["rounded-xl border p-4 mb-6 flex items-center gap-3",O.value])},[e("span",{class:w(["flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center",W.value])},[o.value.status==="approved"?(a(),n("svg",Fe,[...t[26]||(t[26]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):o.value.status==="pending"?(a(),n("svg",De,[...t[27]||(t[27]=[e("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"},null,-1)])])):(a(),n("svg",Ie,[...t[28]||(t[28]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])]))],2),e("div",null,[e("p",{class:w(["text-sm font-medium",G.value])},i(Q(o.value.status)),3),e("p",{class:w(["text-xs mt-0.5",q.value])},i(X(o.value.status)),3)])],2),e("div",Ne,[e("nav",Re,[(a(),n(_,null,$(J,s=>e("button",{key:s.key,onClick:fe=>h.value=s.key,class:w(["pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2",h.value===s.key?"text-indigo-400 border-indigo-400":"text-slate-400 border-transparent hover:text-slate-300"])},[(a(),Ve($e(s.icon),{class:"w-4 h-4"})),u(" "+i(s.label),1)],10,Ke)),64))])]),h.value==="data"?(a(),n("div",Je,[e("div",Oe,[e("div",We,[t[35]||(t[35]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Alapadatok",-1)),e("dl",Ge,[e("div",null,[t[29]||(t[29]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Név",-1)),e("dd",qe,i(o.value.name),1)]),e("div",null,[t[30]||(t[30]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Kategória",-1)),e("dd",Qe,i(o.value.category||"—"),1)]),e("div",null,[t[31]||(t[31]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Forrás",-1)),e("dd",Xe,[e("code",Ye,i(o.value.source),1)])]),e("div",null,[t[32]||(t[32]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Validációs pontszám",-1)),e("dd",Ze,[e("div",et,[e("div",tt,[e("div",{class:w(["h-full rounded-full transition-all",o.value.validation_score>=50?"bg-emerald-500":o.value.validation_score>=20?"bg-amber-500":"bg-slate-500"]),style:ze({width:Math.min(o.value.validation_score,100)+"%"})},null,6)]),e("span",st,i(o.value.validation_score),1)])])]),e("div",null,[t[33]||(t[33]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Létrehozva",-1)),e("dd",lt,i(D(o.value.created_at)),1)]),e("div",null,[t[34]||(t[34]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Beküldő user ID",-1)),e("dd",ot,i(o.value.added_by_user_id||"—"),1)])])]),e("div",at,[t[42]||(t[42]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Cím adatok",-1)),e("dl",nt,[e("div",it,[t[36]||(t[36]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Teljes cím",-1)),e("dd",rt,i(o.value.address||"—"),1)]),e("div",null,[t[37]||(t[37]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Város",-1)),e("dd",dt,i(o.value.city||"—"),1)]),e("div",null,[t[38]||(t[38]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Irányítószám",-1)),e("dd",ut,i(o.value.address_zip||"—"),1)]),e("div",null,[t[39]||(t[39]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Utca",-1)),e("dd",mt,i(o.value.address_street_name||"—"),1)]),e("div",null,[t[40]||(t[40]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Házszám",-1)),e("dd",vt,i(o.value.address_house_number||"—"),1)]),e("div",null,[t[41]||(t[41]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Plus Code",-1)),e("dd",pt,i(o.value.plus_code||"—"),1)])])]),e("div",ct,[t[46]||(t[46]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Elérhetőség",-1)),e("dl",xt,[e("div",null,[t[43]||(t[43]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Telefon",-1)),e("dd",bt,i(o.value.contact_phone||"—"),1)]),e("div",null,[t[44]||(t[44]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Email",-1)),e("dd",gt,i(o.value.contact_email||"—"),1)]),e("div",null,[t[45]||(t[45]=e("dt",{class:"text-xs text-slate-500 uppercase tracking-wider"},"Weboldal",-1)),e("dd",ft,[o.value.website?(a(),n("a",{key:0,href:o.value.website,target:"_blank",class:"text-indigo-400 hover:text-indigo-300 underline"},i(o.value.website),9,wt)):(a(),n("span",kt,"—"))])])])])]),e("div",ht,[e("div",yt,[t[57]||(t[57]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Moderációs műveletek",-1)),o.value.status==="pending"?(a(),n("div",_t,[e("button",{onClick:ae,disabled:r.value,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"},[r.value?(a(),n("svg",jt,[...t[47]||(t[47]=[e("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"},null,-1)])])):(a(),n("svg",Ct,[...t[48]||(t[48]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])),t[49]||(t[49]=u(" Jóváhagyás ",-1))],8,zt),e("button",{onClick:ve,disabled:r.value,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"},[...t[50]||(t[50]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),u(" Elutasítás ",-1)])],8,Mt)])):o.value.status==="approved"?(a(),n("div",Ht,[je(ge,{to:`/providers/${o.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:Ce(()=>[...t[51]||(t[51]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1),u(" Szerkesztés ",-1)])]),_:1},8,["to"]),e("button",{onClick:pe,disabled:r.value,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"},[...t[52]||(t[52]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1),u(" Megjelölés (Flag) ",-1)])],8,St),e("button",{onClick:K,disabled:r.value,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"},[...t[53]||(t[53]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1),u(" Törlés (Soft Delete) ",-1)])],8,Bt)])):(a(),n("div",Vt,[e("p",$t," A szolgáltató "+i(o.value.status==="rejected"?"elutasításra":"megjelölésre")+" került. ",1),e("button",{onClick:me,disabled:r.value,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"},[...t[54]||(t[54]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1),u(" Szerkesztés ",-1)])],8,At),o.value.status==="rejected"?(a(),n("button",{key:0,onClick:ie,disabled:r.value,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"},[...t[55]||(t[55]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1),u(" Visszaállítás ",-1)])],8,Tt)):m("",!0),e("button",{onClick:K,disabled:r.value,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"},[...t[56]||(t[56]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1),u(" Törlés ",-1)])],8,Lt)]))]),o.value.evidence_image_path?(a(),n("div",Et,[t[58]||(t[58]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Bizonyíték kép",-1)),e("img",{src:o.value.evidence_image_path,alt:"Evidence",class:"w-full rounded-lg border border-slate-600"},null,8,Ut)])):m("",!0)])])):m("",!0),h.value==="status"?(a(),n("div",Pt,[e("div",Ft,[t[65]||(t[65]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Státusz kezelés",-1)),t[66]||(t[66]=e("p",{class:"text-sm text-slate-400 mb-6"},"Módosítsd a szolgáltató státuszát és validációs pontszámát.",-1)),e("form",{onSubmit:y(ue,["prevent"])},[e("div",Dt,[e("div",null,[t[60]||(t[60]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Státusz",-1)),c(e("select",{"onUpdate:modelValue":t[0]||(t[0]=s=>p.value.status=s),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"},[...t[59]||(t[59]=[e("option",{value:"pending"},"Függőben",-1),e("option",{value:"approved"},"Jóváhagyott",-1),e("option",{value:"rejected"},"Elutasított",-1)])],512),[[Me,p.value.status]])]),e("div",null,[t[61]||(t[61]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"}," Validációs pontszám (0-100) ",-1)),e("div",It,[c(e("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>p.value.validation_score=s),type:"range",min:"0",max:"100",class:"w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer accent-indigo-500"},null,512),[[b,p.value.validation_score,void 0,{number:!0}]]),e("span",Nt,i(p.value.validation_score),1)])]),e("div",null,[t[62]||(t[62]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Indoklás (opcionális)",-1)),c(e("textarea",{"onUpdate:modelValue":t[2]||(t[2]=s=>p.value.reason=s),rows:"3",placeholder:"Add meg a státuszváltoztatás okát...",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"},null,512),[[b,p.value.reason]])])]),e("div",Rt,[e("button",{type:"button",onClick:xe,class:"px-4 py-2 text-sm text-slate-400 hover:text-white transition"},"Mégsem"),e("button",{type:"submit",disabled:T.value,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"},[T.value?(a(),n("svg",Jt,[...t[63]||(t[63]=[e("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"},null,-1)])])):m("",!0),t[64]||(t[64]=u(" Státusz mentése ",-1))],8,Kt)])],32)])])):m("",!0),h.value==="validations"?(a(),n("div",Ot,[e("div",Wt,[t[70]||(t[70]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Gamification Validációk",-1)),t[71]||(t[71]=e("p",{class:"text-sm text-slate-400 mb-6"},"A szolgáltatóhoz tartozó gamification validációs bejegyzések listája.",-1)),P.value?(a(),n("div",Gt,[...t[67]||(t[67]=[e("svg",{class:"w-5 h-5 animate-spin text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1)])])):S.value.length===0?(a(),n("div",qt,[...t[68]||(t[68]=[e("p",{class:"text-slate-500"},"Nincsenek validációs bejegyzések ehhez a szolgáltatóhoz.",-1)])])):(a(),n("div",Qt,[(a(!0),n(_,null,$(S.value,s=>(a(),n("div",{key:s.id,class:"bg-slate-700/50 rounded-lg border border-slate-600 p-4"},[e("div",Xt,[e("div",Yt,[e("div",Zt,[e("span",{class:w(["text-xs font-medium px-2 py-0.5 rounded-full",Z(s.validation_type)])},i(Y(s.validation_type)),3),e("span",es,"súly: "+i(s.weight),1)]),e("p",ts,[t[69]||(t[69]=e("span",{class:"text-slate-400"},"Szavazó:",-1)),u(" "+i(s.voter_name||`User #${s.voter_user_id}`),1)]),s.validation_metadata?.reason?(a(),n("p",ss," Indoklás: "+i(s.validation_metadata.reason),1)):m("",!0)]),e("div",ls,i(D(s.created_at)),1)])]))),128))]))])])):m("",!0),h.value==="history"?(a(),n("div",os,[e("div",as,[t[80]||(t[80]=e("h2",{class:"text-lg font-semibold text-white mb-4"},"Állapotváltoztatások előzményei",-1)),t[81]||(t[81]=e("p",{class:"text-sm text-slate-400 mb-6"},"Idővonal: ki, mikor és mit változtatott a szolgáltatóval kapcsolatban.",-1)),F.value?(a(),n("div",ns,[...t[72]||(t[72]=[e("svg",{class:"w-5 h-5 animate-spin text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("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"})],-1)])])):B.value.length===0?(a(),n("div",is,[...t[73]||(t[73]=[e("p",{class:"text-slate-500"},"Nincsenek előzmények ehhez a szolgáltatóhoz.",-1)])])):(a(),n("div",rs,[t[79]||(t[79]=e("div",{class:"absolute left-4 top-0 bottom-0 w-0.5 bg-slate-700"},null,-1)),(a(!0),n(_,null,$(B.value,(s,fe)=>(a(),n("div",{key:s.id,class:"relative pl-10 pb-6 last:pb-0"},[e("div",{class:w(["absolute left-2.5 w-3 h-3 rounded-full border-2 mt-1.5",se(s.action)])},null,2),e("div",ds,[e("div",us,[e("div",null,[e("span",{class:w(["text-xs font-medium px-2 py-0.5 rounded-full",te(s.action)])},i(ee(s.action)),3),e("span",ms," User #"+i(s.user_id||"?"),1)]),e("div",vs,i(D(s.timestamp)),1)]),s.new_data?(a(),n("div",ps,[s.new_data.old_status||s.new_data.new_status?(a(),n("div",cs,[t[74]||(t[74]=e("span",{class:"text-slate-500"},"Státusz:",-1)),e("span",xs,i(s.new_data.old_status||"?"),1),t[75]||(t[75]=e("svg",{class:"w-3 h-3 text-slate-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)),e("span",bs,i(s.new_data.new_status||"?"),1)])):m("",!0),s.new_data.reason&&s.new_data.reason!=="Admin edit"?(a(),n("div",gs,[t[76]||(t[76]=e("span",{class:"text-slate-500"},"Indoklás:",-1)),u(" "+i(s.new_data.reason),1)])):m("",!0),s.new_data.changes?(a(),n("div",fs,[e("details",ws,[t[77]||(t[77]=e("summary",{class:"text-slate-500 cursor-pointer hover:text-slate-400"},"Részletes változások",-1)),e("div",ks,[(a(!0),n(_,null,$(s.new_data.changes,(I,V)=>(a(),n("div",{key:V,class:"flex gap-2"},[e("span",hs,i(V)+":",1),e("span",ys,i(I??"—"),1)]))),128))])])])):m("",!0)])):m("",!0),s.old_data?(a(),n("div",_s,[e("details",zs,[t[78]||(t[78]=e("summary",{class:"text-slate-500 cursor-pointer hover:text-slate-400"},"Régi adatok",-1)),e("div",js,[(a(!0),n(_,null,$(s.old_data,(I,V)=>(a(),n("div",{key:V,class:"flex gap-2"},[e("span",Cs,i(V)+":",1),e("span",Ms,i(I??"—"),1)]))),128))])])])):m("",!0)])]))),128))]))])])):m("",!0)],64)):(a(),n("div",Pe,[...t[25]||(t[25]=[e("p",{class:"text-slate-400 text-center py-12"},"A szolgáltató nem található.",-1)])])),z.value?(a(),n("div",{key:4,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:t[5]||(t[5]=y(s=>z.value=!1,["self"]))},[e("div",Hs,[t[87]||(t[87]=e("h2",{class:"text-lg font-semibold text-white mb-2"},"Szolgáltató elutasítása",-1)),e("p",Ss,[t[82]||(t[82]=u(" Biztosan elutasítod a(z) ",-1)),e("strong",Bs,i(o.value?.name),1),t[83]||(t[83]=u(" szolgáltatót? ",-1))]),e("form",{onSubmit:y(ne,["prevent"])},[e("div",Vs,[t[84]||(t[84]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Indoklás (opcionális)",-1)),c(e("textarea",{"onUpdate:modelValue":t[3]||(t[3]=s=>j.value=s),rows:"3",placeholder:"Add meg az elutasítás okát...",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"},null,512),[[b,j.value]])]),e("div",$s,[e("button",{type:"button",onClick:t[4]||(t[4]=s=>z.value=!1),class:"px-4 py-2 text-sm text-slate-400 hover:text-white transition"},"Mégse"),e("button",{type:"submit",disabled:r.value,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"},[r.value?(a(),n("svg",Ts,[...t[85]||(t[85]=[e("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"},null,-1)])])):m("",!0),t[86]||(t[86]=u(" Elutasítás ",-1))],8,As)])],32)])])):m("",!0),H.value?(a(),n("div",{key:5,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:t[17]||(t[17]=y(s=>H.value=!1,["self"]))},[e("div",Ls,[t[102]||(t[102]=e("h2",{class:"text-lg font-semibold text-white mb-2"},"Szolgáltató szerkesztése",-1)),e("p",Es,[t[88]||(t[88]=u(" Módosítsd a(z) ",-1)),e("strong",Us,i(o.value?.name),1),t[89]||(t[89]=u(" szolgáltató adatait. ",-1))]),e("form",{onSubmit:y(de,["prevent"])},[e("div",Ps,[e("div",null,[t[90]||(t[90]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Név",-1)),c(e("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>d.value.name=s),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"},null,512),[[b,d.value.name]])]),e("div",null,[t[91]||(t[91]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Város",-1)),c(e("input",{"onUpdate:modelValue":t[7]||(t[7]=s=>d.value.city=s),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"},null,512),[[b,d.value.city]])]),e("div",null,[t[92]||(t[92]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Irányítószám",-1)),c(e("input",{"onUpdate:modelValue":t[8]||(t[8]=s=>d.value.address_zip=s),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"},null,512),[[b,d.value.address_zip]])]),e("div",null,[t[93]||(t[93]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Utca",-1)),c(e("input",{"onUpdate:modelValue":t[9]||(t[9]=s=>d.value.address_street_name=s),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"},null,512),[[b,d.value.address_street_name]])]),e("div",null,[t[94]||(t[94]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Házszám",-1)),c(e("input",{"onUpdate:modelValue":t[10]||(t[10]=s=>d.value.address_house_number=s),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"},null,512),[[b,d.value.address_house_number]])]),e("div",null,[t[95]||(t[95]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Plus Code",-1)),c(e("input",{"onUpdate:modelValue":t[11]||(t[11]=s=>d.value.plus_code=s),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"},null,512),[[b,d.value.plus_code]])]),e("div",null,[t[96]||(t[96]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Telefon",-1)),c(e("input",{"onUpdate:modelValue":t[12]||(t[12]=s=>d.value.contact_phone=s),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"},null,512),[[b,d.value.contact_phone]])]),e("div",null,[t[97]||(t[97]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Email",-1)),c(e("input",{"onUpdate:modelValue":t[13]||(t[13]=s=>d.value.contact_email=s),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"},null,512),[[b,d.value.contact_email]])]),e("div",null,[t[98]||(t[98]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Weboldal",-1)),c(e("input",{"onUpdate:modelValue":t[14]||(t[14]=s=>d.value.website=s),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"},null,512),[[b,d.value.website]])]),e("div",null,[t[99]||(t[99]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Kategória",-1)),c(e("input",{"onUpdate:modelValue":t[15]||(t[15]=s=>d.value.category=s),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"},null,512),[[b,d.value.category]])])]),e("div",Fs,[e("button",{type:"button",onClick:t[16]||(t[16]=s=>H.value=!1),class:"px-4 py-2 text-sm text-slate-400 hover:text-white transition"},"Mégse"),e("button",{type:"submit",disabled:A.value,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"},[A.value?(a(),n("svg",Is,[...t[100]||(t[100]=[e("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"},null,-1)])])):m("",!0),t[101]||(t[101]=u(" Mentés ",-1))],8,Ds)])],32)])])):m("",!0),C.value?(a(),n("div",{key:6,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:t[20]||(t[20]=y(s=>C.value=!1,["self"]))},[e("div",Ns,[t[108]||(t[108]=e("h2",{class:"text-lg font-semibold text-white mb-2"},"Szolgáltató megjelölése",-1)),e("p",Rs,[t[103]||(t[103]=u(" Biztosan megjelölöd a(z) ",-1)),e("strong",Ks,i(o.value?.name),1),t[104]||(t[104]=u(" szolgáltatót? ",-1))]),e("form",{onSubmit:y(re,["prevent"])},[e("div",Js,[t[105]||(t[105]=e("label",{class:"block text-sm font-medium text-slate-300 mb-1"},"Indoklás (opcionális)",-1)),c(e("textarea",{"onUpdate:modelValue":t[18]||(t[18]=s=>M.value=s),rows:"3",placeholder:"Add meg a megjelölés okát...",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"},null,512),[[b,M.value]])]),e("div",Os,[e("button",{type:"button",onClick:t[19]||(t[19]=s=>C.value=!1),class:"px-4 py-2 text-sm text-slate-400 hover:text-white transition"},"Mégse"),e("button",{type:"submit",disabled:r.value,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"},[r.value?(a(),n("svg",Gs,[...t[106]||(t[106]=[e("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"},null,-1)])])):m("",!0),t[107]||(t[107]=u(" Megjelölés ",-1))],8,Ws)])],32)])])):m("",!0)])}}}),el=Ae(qs,[["__scopeId","data-v-cbc29188"]]);export{el as default};