Files
service-finder/frontend_admin/.nuxt/dist/client/_nuxt/Di7O2dT-.js

2 lines
79 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{e as Ge,h as Je,x as Qe,s as qe,c as i,a as e,t as o,F as _,r as V,j as d,d as m,n as v,H as O,l as g,y as ne,v as p,b as We,w as Xe,T as Ke,I as Ye,q as c,z as f,B as $,J as Ze,o as n}from"./CGTxeHv7.js";const et={key:0,class:"flex items-center justify-center py-20"},tt={class:"flex flex-col items-center gap-3"},st={class:"text-slate-400 text-sm"},ot={key:1,class:"flex flex-col items-center justify-center py-20 text-center"},lt={class:"text-red-400 text-sm mb-2"},at={key:0,class:"mb-6 p-4 bg-amber-500/10 border border-amber-500/30 rounded-xl"},it={class:"flex items-start gap-3"},nt={class:"flex-1 min-w-0"},rt={class:"flex items-center justify-between"},dt={class:"text-sm font-semibold text-amber-300"},ut={class:"text-xs text-amber-400/70"},ct={class:"text-xs text-amber-400/80 mt-1"},gt={class:"flex flex-wrap gap-2 mt-3"},pt={class:"mb-8"},mt={class:"flex items-center justify-between"},vt={class:"flex items-center gap-4"},xt={class:"flex items-center gap-3"},bt={class:"text-2xl font-bold text-white"},ft={class:"text-sm text-slate-400 mt-0.5"},ht={key:0,class:"ml-2 text-slate-500"},_t={class:"flex items-center gap-3"},yt={class:"border-b border-slate-700 mb-6"},wt={class:"flex gap-6"},kt=["onClick"],$t={key:1,class:"space-y-6"},Ct={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},Mt={class:"px-6 py-4 border-b border-slate-700 flex items-center gap-3"},zt={class:"text-base font-semibold text-white"},jt={class:"px-6 py-5"},Bt={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Vt={class:"space-y-4"},Lt={class:"text-xs text-slate-500 uppercase tracking-wider"},At={class:"text-sm text-white mt-1"},Ut={class:"text-xs text-slate-500 uppercase tracking-wider"},Tt={class:"text-sm text-white mt-1"},Ht={class:"text-xs text-slate-500 uppercase tracking-wider"},St={class:"text-sm text-white mt-1"},Et={class:"space-y-4"},Ft={class:"text-xs text-slate-500 uppercase tracking-wider"},Dt={class:"text-sm text-white mt-1"},Rt={class:"text-xs text-slate-500 uppercase tracking-wider"},It={class:"text-sm text-white mt-1"},Nt={class:"text-xs text-slate-500 uppercase tracking-wider"},Pt={class:"text-sm text-white mt-1"},Ot={class:"mt-6 pt-6 border-t border-slate-700/50"},Gt={class:"text-xs text-slate-500 uppercase tracking-wider mb-3"},Jt={class:"text-sm text-white"},Qt={key:0,class:"mt-4 pt-4 border-t border-slate-700/50"},qt={class:"text-xs text-slate-500 uppercase tracking-wider mb-3"},Wt={class:"text-sm text-white"},Xt={key:1,class:"mt-4 pt-4 border-t border-slate-700/50"},Kt={class:"text-xs text-slate-500 uppercase tracking-wider mb-3"},Yt={class:"text-sm text-white"},Zt={class:"mt-6 pt-4 border-t border-slate-700/50"},es={class:"flex gap-6 text-xs font-mono text-slate-500"},ts={class:"text-slate-400"},ss={class:"text-slate-400"},os={class:"text-slate-400"},ls={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},as={class:"px-6 py-4 border-b border-slate-700 flex items-center gap-3"},is={class:"text-base font-semibold text-white"},ns={class:"px-6 py-5"},rs={key:0,class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ds={class:"space-y-4"},us={class:"text-xs text-slate-500 uppercase tracking-wider"},cs={class:"text-sm text-white mt-1 font-medium"},gs={class:"text-xs text-slate-500 uppercase tracking-wider"},ps={class:"text-sm text-white mt-1 flex items-center gap-1.5"},ms={class:"space-y-4"},vs={class:"text-xs text-slate-500 uppercase tracking-wider"},xs={class:"text-sm text-white mt-1 flex items-center gap-1.5"},bs={key:0},fs={class:"text-xs text-slate-500 uppercase tracking-wider"},hs={class:"text-sm text-white mt-1"},_s={key:0},ys={key:1,class:"text-center py-4"},ws={class:"text-sm text-slate-400"},ks={key:2,class:"space-y-6"},$s={class:"flex items-center justify-between"},Cs={class:"flex items-center gap-3"},Ms={class:"text-base font-semibold text-white"},zs={class:"text-xs text-slate-400 mt-0.5"},js={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},Bs={class:"overflow-x-auto"},Vs={class:"w-full text-sm"},Ls={class:"border-b border-slate-700"},As={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Us={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Ts={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Hs={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Ss={class:"text-right px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Es={class:"px-4 py-3"},Fs={class:"flex items-center gap-3"},Ds={class:"text-sm font-medium text-white"},Rs={class:"text-xs text-slate-500"},Is={class:"px-4 py-3"},Ns={class:"space-y-0.5"},Ps={key:0,class:"text-sm text-slate-300"},Os={key:1,class:"text-sm text-slate-500 italic"},Gs={key:2,class:"text-xs text-slate-400"},Js={class:"px-4 py-3"},Qs={class:"px-4 py-3"},qs={class:"px-4 py-3 text-right"},Ws={class:"flex items-center justify-end gap-2"},Xs=["onClick"],Ks=["onClick"],Ys={key:0},Zs={colspan:"5",class:"px-4 py-12 text-center"},eo={class:"text-sm text-slate-400"},to={key:3,class:"space-y-6"},so={class:"flex items-center justify-between"},oo={class:"flex items-center gap-3"},lo={class:"text-base font-semibold text-white"},ao={class:"text-xs text-slate-400 mt-0.5"},io={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},no={class:"overflow-x-auto"},ro={class:"w-full text-sm"},uo={class:"border-b border-slate-700"},co={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},go={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},po={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},mo={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},vo={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},xo={class:"px-4 py-3"},bo={class:"text-sm font-bold text-white"},fo={class:"px-4 py-3"},ho={class:"text-sm text-slate-300"},_o={key:0,class:"text-slate-500 mx-1"},yo={key:1,class:"text-sm text-slate-300"},wo={class:"px-4 py-3 text-sm text-slate-300"},ko={class:"px-4 py-3"},$o={class:"text-xs font-mono text-slate-400"},Co={class:"px-4 py-3"},Mo={key:0},zo={colspan:"5",class:"px-4 py-12 text-center"},jo={class:"text-sm text-slate-400"},Bo={key:1},Vo={colspan:"5",class:"px-4 py-12 text-center"},Lo={class:"text-sm text-slate-400 mt-2"},Ao={key:1,class:"bg-slate-800/50 border border-slate-700 rounded-xl p-12 text-center"},Uo={class:"text-sm text-slate-400"},To={key:4,class:"space-y-6"},Ho={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},So={class:"px-6 py-4 border-b border-slate-700 flex items-center gap-3"},Eo={class:"text-base font-semibold text-white"},Fo={class:"px-6 py-5"},Do={key:0,class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Ro={class:"bg-slate-900/30 rounded-lg p-3"},Io={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},No={class:"bg-slate-900/30 rounded-lg p-3"},Po={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},Oo={class:"text-sm font-semibold text-white"},Go={class:"bg-slate-900/30 rounded-lg p-3"},Jo={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},Qo={key:0,class:"text-sm font-semibold text-white"},qo={key:1,class:"text-sm text-slate-400 italic"},Wo={class:"bg-slate-900/30 rounded-lg p-3"},Xo={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},Ko={class:"text-sm font-semibold text-white"},Yo={key:1,class:"mt-4 grid grid-cols-2 md:grid-cols-4 gap-4"},Zo={class:"bg-slate-900/30 rounded-lg p-3"},el={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},tl={class:"text-sm font-semibold text-white"},sl={class:"mt-2 w-full h-1.5 bg-slate-700 rounded-full overflow-hidden"},ol={class:"bg-slate-900/30 rounded-lg p-3"},ll={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},al={class:"text-sm font-semibold text-white"},il={class:"mt-2 w-full h-1.5 bg-slate-700 rounded-full overflow-hidden"},nl={class:"bg-slate-900/30 rounded-lg p-3"},rl={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},dl={class:"text-sm font-semibold text-white"},ul={class:"mt-2 w-full h-1.5 bg-slate-700 rounded-full overflow-hidden"},cl={class:"bg-slate-900/30 rounded-lg p-3 flex flex-col justify-center"},gl={class:"text-xs text-slate-500 uppercase tracking-wider mb-1"},pl={key:2,class:"text-center py-4"},ml={class:"text-sm text-slate-400"},vl={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},xl={class:"px-6 py-4 border-b border-slate-700 flex items-center gap-3"},bl={class:"text-base font-semibold text-white"},fl={class:"px-6 py-5 space-y-5"},hl={class:"block text-sm font-medium text-slate-300 mb-2"},_l={value:"",disabled:""},yl=["value"],wl={class:"block text-sm font-medium text-slate-300 mb-2"},kl={class:"text-xs text-slate-500 ml-1"},$l={class:"text-xs text-slate-500 mt-1.5"},Cl={key:0,class:"bg-red-500/10 border border-red-500/20 rounded-lg px-4 py-3"},Ml={class:"text-sm text-red-400"},zl={class:"flex items-center justify-end gap-3 pt-2"},jl=["disabled"],Bl={key:0,class:"flex items-center gap-2"},Vl={key:1},Ll={class:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden"},Al={class:"px-6 py-4 border-b border-slate-700 flex items-center gap-3"},Ul={class:"text-base font-semibold text-white"},Tl={class:"px-6 py-5"},Hl={class:"overflow-x-auto"},Sl={class:"w-full text-sm"},El={class:"border-b border-slate-700"},Fl={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Dl={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Rl={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Il={class:"text-left px-4 py-3 text-xs font-medium text-slate-400 uppercase tracking-wider"},Nl={colspan:"4",class:"px-4 py-12 text-center"},Pl={class:"flex flex-col items-center gap-3"},Ol={class:"text-sm text-slate-400"},Gl={key:5,class:"space-y-6"},Jl={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},Ql={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},ql={class:"flex items-center gap-3 mb-3"},Wl={class:"text-xs font-medium text-slate-400 uppercase tracking-wider"},Xl={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},Kl={class:"flex items-center gap-3 mb-3"},Yl={class:"text-xs font-medium text-slate-400 uppercase tracking-wider"},Zl={class:"text-xs text-slate-400 mt-1"},ea={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},ta={class:"flex items-center gap-3 mb-3"},sa={class:"text-xs font-medium text-slate-400 uppercase tracking-wider"},oa={class:"text-xs text-emerald-400 mt-1 flex items-center gap-1"},la={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},aa={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},ia={class:"flex items-center gap-3 mb-3"},na={class:"text-xs font-medium text-slate-400 uppercase tracking-wider"},ra={class:"text-xs text-slate-400 mt-1"},da={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},ua={class:"flex items-center gap-3 mb-3"},ca={class:"text-xs font-medium text-slate-400 uppercase tracking-wider"},ga={class:"text-xs text-slate-400 mt-1"},pa={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},ma={class:"flex items-center gap-3 mb-3"},va={class:"text-xs font-medium text-slate-400 uppercase tracking-wider"},xa={class:"text-xs text-slate-400 mt-1"},ba={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},fa={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},ha={class:"flex items-center gap-3 mb-4"},_a={class:"text-sm font-semibold text-white"},ya={class:"mb-4"},wa={class:"flex items-center justify-between mb-1.5"},ka={class:"text-xs text-slate-400"},$a={class:"text-xs text-slate-500"},Ca={class:"w-full h-2 bg-slate-700 rounded-full overflow-hidden"},Ma={class:"text-xs text-slate-500 mt-1"},za={class:"flex items-center justify-between mb-1.5"},ja={class:"text-xs text-slate-400"},Ba={class:"text-xs text-slate-500"},Va={class:"w-full h-2 bg-slate-700 rounded-full overflow-hidden"},La={class:"text-xs text-slate-500 mt-1"},Aa={class:"bg-slate-800/50 border border-slate-700 rounded-xl p-5"},Ua={class:"flex items-center gap-3 mb-4"},Ta={class:"text-sm font-semibold text-white"},Ha={class:"flex items-center justify-between py-2 border-b border-slate-700/50"},Sa={class:"text-xs text-slate-400"},Ea={class:"flex items-center gap-1.5"},Fa={class:"flex items-center"},Da={class:"flex items-center justify-between py-2 border-b border-slate-700/50"},Ra={class:"text-xs text-slate-400"},Ia={class:"text-sm text-white font-medium"},Na={class:"flex items-center justify-between py-2 border-b border-slate-700/50"},Pa={class:"text-xs text-slate-400"},Oa={class:"text-sm text-white font-medium"},Ga={class:"flex items-center justify-between py-2"},Ja={class:"text-xs text-slate-400"},Qa={key:3,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},qa={class:"relative w-full max-w-2xl bg-slate-800 border border-slate-700 rounded-2xl shadow-2xl max-h-[90vh] overflow-hidden flex flex-col"},Wa={class:"px-6 py-4 border-b border-slate-700 flex items-center justify-between flex-shrink-0"},Xa={class:"text-lg font-semibold text-white"},Ka={class:"px-6 pt-4 border-b border-slate-700 flex-shrink-0"},Ya={class:"flex gap-4"},Za=["onClick"],ei={class:"flex-1 overflow-y-auto p-6 space-y-6"},ti={key:0,class:"space-y-5"},si={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},oi={class:"block text-xs font-medium text-slate-400 mb-1.5"},li={class:"block text-xs font-medium text-slate-400 mb-1.5"},ai={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},ii={class:"block text-xs font-medium text-slate-400 mb-1.5"},ni={class:"block text-xs font-medium text-slate-400 mb-1.5"},ri={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},di={class:"block text-xs font-medium text-slate-400 mb-1.5"},ui={class:"block text-xs font-medium text-slate-400 mb-1.5"},ci={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},gi={class:"md:col-span-2"},pi={class:"block text-xs font-medium text-slate-400 mb-1.5"},mi={class:"block text-xs font-medium text-slate-400 mb-1.5"},vi={class:"block text-xs font-medium text-slate-400 mb-1.5"},xi={key:1,class:"space-y-5"},bi={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},fi={class:"block text-xs font-medium text-slate-400 mb-1.5"},hi={class:"block text-xs font-medium text-slate-400 mb-1.5"},_i={class:"block text-xs font-medium text-slate-400 mb-1.5"},yi={key:2,class:"space-y-6"},wi={class:"text-sm font-semibold text-white mb-3"},ki={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},$i={class:"block text-xs font-medium text-slate-400 mb-1.5"},Ci={class:"block text-xs font-medium text-slate-400 mb-1.5"},Mi={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-4"},zi={class:"md:col-span-1"},ji={class:"block text-xs font-medium text-slate-400 mb-1.5"},Bi={class:"block text-xs font-medium text-slate-400 mb-1.5"},Vi={class:"block text-xs font-medium text-slate-400 mb-1.5"},Li={class:"pt-4 border-t border-slate-700/50"},Ai={class:"text-sm font-semibold text-white mb-3"},Ui={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Ti={class:"block text-xs font-medium text-slate-400 mb-1.5"},Hi={class:"block text-xs font-medium text-slate-400 mb-1.5"},Si={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-4"},Ei={class:"md:col-span-1"},Fi={class:"block text-xs font-medium text-slate-400 mb-1.5"},Di={class:"block text-xs font-medium text-slate-400 mb-1.5"},Ri={class:"block text-xs font-medium text-slate-400 mb-1.5"},Ii={class:"px-6 py-4 border-t border-slate-700 flex items-center justify-end gap-3 flex-shrink-0"},Ni=["disabled"],Pi={key:0,class:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},Oi={key:4,class:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},Gi={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Ji={class:"inline-block align-bottom bg-slate-800 rounded-2xl px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl border border-slate-700 transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6"},Qi={class:"sm:flex sm:items-start"},qi={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Wi={class:"text-lg leading-6 font-medium text-white",id:"modal-title"},Xi={class:"mt-4 space-y-4"},Ki={class:"block text-sm font-medium text-slate-300"},Yi=["placeholder"],Zi={class:"block text-sm font-medium text-slate-300"},en={value:"member"},tn={value:"manager"},sn={value:"admin"},on={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-2"},ln=["disabled"],an={key:0,class:"w-4 h-4 animate-spin mr-2",fill:"none",viewBox:"0 0 24 24"},nn={key:5,class:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},rn={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},dn={class:"inline-block align-bottom bg-slate-800 rounded-2xl px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl border border-slate-700 transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6"},un={class:"sm:flex sm:items-start"},cn={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},gn={class:"text-lg leading-6 font-medium text-white"},pn={class:"text-sm text-slate-400 mt-1"},mn={class:"mt-4"},vn={value:"member"},xn={value:"manager"},bn={value:"admin"},fn={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-2"},hn=["disabled"],_n={key:0,class:"w-4 h-4 animate-spin mr-2",fill:"none",viewBox:"0 0 24 24"},yn={key:6,class:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},wn={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},kn={class:"inline-block align-bottom bg-slate-800 rounded-2xl px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl border border-slate-700 transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6"},$n={class:"sm:flex sm:items-start"},Cn={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Mn={class:"text-lg leading-6 font-medium text-white"},zn={class:"mt-2"},jn={class:"text-sm text-slate-400"},Bn={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-2"},Vn=["disabled"],Ln={key:0,class:"w-4 h-4 animate-spin mr-2",fill:"none",viewBox:"0 0 24 24"},An={key:0,class:"fixed top-4 right-4 z-[100] max-w-sm w-full bg-slate-800 border border-slate-700 shadow-lg rounded-xl pointer-events-auto overflow-hidden"},Un={class:"p-4"},Tn={class:"flex items-start"},Hn={class:"flex-shrink-0"},Sn={key:0,class:"h-6 w-6 text-green-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},En={key:1,class:"h-6 w-6 text-red-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Fn={class:"ml-3 w-0 flex-1 pt-0.5"},Dn={class:"text-sm font-medium text-white"},Rn={class:"ml-4 flex-shrink-0 flex"},Pn=Ge({__name:"index",setup(In){const fe=Ye(),he=Ze(),x=Je(),y=fe.params.id,te=c(!0),G=c(null),a=c(null),C=c([]),w=c("general"),h=c([]),J=c(!1),se=c(!1),L=c("basic"),T=c(!1),r=c({full_name:"",name:"",display_name:"",email:"",phone:"",tax_number:"",reg_number:"",org_type:"",address_zip:"",address_city:"",address_street_name:"",address_street_type:"",address_house_number:"",contact_person_name:"",contact_email:"",contact_phone:"",billing_zip:"",billing_city:"",billing_street_name:"",billing_street_type:"",billing_house_number:"",notification_zip:"",notification_city:"",notification_street_name:"",notification_street_type:"",notification_house_number:""}),Q=c(!1),A=c(""),q=c("member"),H=c(!1),S=c(!1),E=c(null),W=c("member"),F=c(!1),X=c(!1),K=c(null),D=c(!1),M=c({show:!1,type:"success",message:""}),oe=c([]),U=c(""),R=c(""),I=c(!1),Y=c(null),_e=[{key:"general",label:"garages.details.generalTab"},{key:"employees",label:"garages.details.employeesTab"},{key:"fleet",label:"garages.details.fleetTab"},{key:"subscription",label:"garages.details.subscriptionTab"},{key:"analytics",label:"garages.details.analyticsTab"}],ye=[{key:"basic",label:"garages.details.editBasicTab"},{key:"contact",label:"garages.details.editContactTab"},{key:"addresses",label:"garages.details.editAddressTab"}];function N(t){return!!(x.isAdmin||x.user?.system_capabilities?.[t]||x.user?.org_capabilities?.[y]?.[t])}const re=f(()=>a.value?.subscription?.asset_limit?a.value.subscription.asset_limit:5),z=f(()=>{const t=re.value;return t<=0?0:Math.min(100,Math.round(h.value.length/t*100))}),le=f(()=>a.value?.subscription?.employee_limit?a.value.subscription.employee_limit:10),ae=f(()=>{const t=a.value?.branches?.length||0,s=a.value?.subscription?.branch_limit;return!s||s<=0?0:Math.min(100,Math.round(t/s*100))}),j=f(()=>{const t=le.value;return t<=0?0:Math.min(100,Math.round(C.value.length/t*100))}),ie=f(()=>{if(!a.value)return[];const t=[],s=a.value,l=s.org_type==="individual";return l||s.tax_number||t.push({key:"tax_number",label:"garages.details.missing_tax_number"}),!s.contact_email&&!s.email&&t.push({key:"contact_email",label:"garages.details.missing_contact_email"}),!s.contact_phone&&!s.phone&&t.push({key:"contact_phone",label:"garages.details.missing_contact_phone"}),l||(!s.billing_city||!s.billing_zip)&&t.push({key:"billing",label:"garages.details.missing_billing"}),!s.subscription||s.subscription.tier_name,t}),we=f(()=>a.value?[a.value.address_zip,a.value.address_city,a.value.address_street_name,a.value.address_street_type,a.value.address_house_number].filter(Boolean).join(" ")||"-":""),de=f(()=>a.value&&[a.value.billing_zip,a.value.billing_city,a.value.billing_street_name,a.value.billing_street_type,a.value.billing_house_number].filter(Boolean).join(" ")||""),ue=f(()=>a.value&&[a.value.notification_zip,a.value.notification_city,a.value.notification_street_name,a.value.notification_street_type,a.value.notification_house_number].filter(Boolean).join(" ")||"");async function B(){te.value=!0,G.value=null;try{const l={Authorization:`Bearer ${($("access_token").value||x.token||"").trim()}`,"Content-Type":"application/json"},u=await fetch(`/api/v1/admin/organizations/${y}/details`,{headers:l});if(!u.ok)throw new Error(`Failed to fetch organization: ${u.status}`);const k=await u.json();a.value=k,C.value=k.members||[]}catch(t){G.value=t.message||"Failed to load garage details"}finally{te.value=!1}}async function ke(){J.value=!0;try{const s=($("access_token").value||x.token||"").trim(),l=await fetch(`/api/v1/admin/organizations/${y}/vehicles`,{headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"}});if(!l.ok)throw new Error(`Failed to fetch fleet: ${l.status}`);const u=await l.json();h.value=u.vehicles||[]}catch(t){console.error("Fleet fetch error:",t),h.value=[]}finally{J.value=!1}}function $e(){a.value&&(r.value={full_name:a.value.full_name||"",name:a.value.name||"",display_name:a.value.display_name||"",email:a.value.email||"",phone:a.value.phone||"",tax_number:a.value.tax_number||"",reg_number:a.value.reg_number||"",org_type:a.value.org_type||"",address_zip:a.value.address_zip||"",address_city:a.value.address_city||"",address_street_name:a.value.address_street_name||"",address_street_type:a.value.address_street_type||"",address_house_number:a.value.address_house_number||"",contact_person_name:a.value.contact_person_name||"",contact_email:a.value.contact_email||"",contact_phone:a.value.contact_phone||"",billing_zip:a.value.billing_zip||"",billing_city:a.value.billing_city||"",billing_street_name:a.value.billing_street_name||"",billing_street_type:a.value.billing_street_type||"",billing_house_number:a.value.billing_house_number||"",notification_zip:a.value.notification_zip||"",notification_city:a.value.notification_city||"",notification_street_name:a.value.notification_street_name||"",notification_street_type:a.value.notification_street_type||"",notification_house_number:a.value.notification_house_number||""},L.value="basic",se.value=!0)}function Z(){se.value=!1}async function Ce(){T.value=!0;try{const s=($("access_token").value||x.token||"").trim(),l={};for(const[Oe,ee]of Object.entries(r.value))ee!==""&&ee!==null&&ee!==void 0&&(l[Oe]=ee);a.value?.org_type==="individual"&&(l.contact_email&&!l.email&&(l.email=l.contact_email),l.contact_phone&&!l.phone&&(l.phone=l.contact_phone));const u=await fetch(`/api/v1/admin/organizations/${y}`,{method:"PUT",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify(l)});if(!u.ok)throw new Error(`Save failed: ${u.status}`);const k=await u.json();k.organization?a.value={...a.value,...k.organization}:a.value={...a.value,...k},Z(),b("success","Garage updated successfully"),await B()}catch(t){b("error",t.message||"Failed to save")}finally{T.value=!1}}async function Me(){if(A.value){H.value=!0;try{const s=($("access_token").value||x.token||"").trim(),l=await fetch(`/api/v1/admin/organizations/${y}/members`,{method:"POST",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify({email:A.value,role:q.value})});if(!l.ok){const u=await l.json().catch(()=>({}));throw new Error(u.detail||`Add member failed: ${l.status}`)}Q.value=!1,A.value="",q.value="member",b("success","Member added successfully"),await B()}catch(t){b("error",t.message||"Failed to add member")}finally{H.value=!1}}}function ze(t){E.value=t,W.value=t.role||"member",S.value=!0}async function je(){if(E.value){F.value=!0;try{const s=($("access_token").value||x.token||"").trim(),l=await fetch(`/api/v1/admin/organizations/${y}/members/${E.value.id}`,{method:"PUT",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify({role:W.value})});if(!l.ok)throw new Error(`Update role failed: ${l.status}`);S.value=!1,E.value=null,b("success","Role updated successfully"),await B()}catch(t){b("error",t.message||"Failed to update role")}finally{F.value=!1}}}async function Be(){if(K.value){D.value=!0;try{const s=($("access_token").value||x.token||"").trim(),l=await fetch(`/api/v1/admin/organizations/${y}/members/${K.value.id}`,{method:"DELETE",headers:{Authorization:`Bearer ${s}`}});if(!l.ok)throw new Error(`Remove failed: ${l.status}`);X.value=!1,K.value=null,b("success","Member removed successfully"),await B()}catch(t){b("error",t.message||"Failed to remove member")}finally{D.value=!1}}}function b(t,s){M.value={show:!0,type:t,message:s},setTimeout(()=>{M.value.show=!1},4e3)}async function Ve(){try{const s=($("access_token").value||x.token||"").trim(),l=await fetch("/api/v1/admin/packages?include_hidden=true&limit=100",{headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"}});if(!l.ok)throw new Error(`Failed to fetch tiers: ${l.status}`);const u=await l.json();oe.value=u.tiers||[]}catch(t){console.error("[GarageDetails] Failed to fetch tiers:",t)}}async function Le(){if(U.value){I.value=!0,Y.value=null;try{const s=($("access_token").value||x.token||"").trim(),l={tier_id:U.value};R.value&&(l.expires_at=new Date(R.value).toISOString());const u=await fetch(`/api/v1/admin/organizations/${y}/subscription`,{method:"PATCH",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify(l)});if(!u.ok){const k=await u.json().catch(()=>({}));throw new Error(k.detail||`Update subscription failed: ${u.status}`)}b("success","Subscription updated successfully"),U.value="",R.value="",await B()}catch(t){Y.value=t.message||"Failed to update subscription",b("error",t.message||"Failed to update subscription")}finally{I.value=!1}}}function Ae(){he.push("/garages")}const Ue=f(()=>a.value?(a.value.display_name||a.value.name||a.value.full_name||"").replace(/[\s-]*#\d+\s*$/g,"").trim()||"Garage #"+a.value.id:"");function ce(){return a.value?a.value.name||a.value.email||a.value.full_name||"Garage #"+a.value.id:""}function ge(t){return t?t.split(" ").map(s=>s[0]).join("").toUpperCase().slice(0,2):"?"}function pe(t){const s=["bg-red-500","bg-yellow-500","bg-green-500","bg-blue-500","bg-indigo-500","bg-purple-500","bg-pink-500","bg-teal-500"];let l=0;for(let u=0;u<(t||"").length;u++)l=t.charCodeAt(u)+((l<<5)-l);return s[Math.abs(l)%s.length]}function me(t){return{active:"Active",inactive:"Inactive",suspended:"Suspended",pending:"Pending"}[t?.toLowerCase()]||t}function ve(t){return{active:"bg-green-100 text-green-800",inactive:"bg-gray-100 text-gray-800",suspended:"bg-red-100 text-red-800",pending:"bg-yellow-100 text-yellow-800"}[t?.toLowerCase()]||"bg-gray-100 text-gray-800"}function xe(t){return{active:"bg-green-400",inactive:"bg-gray-400",suspended:"bg-red-400",pending:"bg-yellow-400"}[t?.toLowerCase()]||"bg-gray-400"}function Te(t){return{dealership:"Dealership",service:"Service Center",rental:"Rental Agency",fleet:"Fleet Operator",individual:"Individual",workshop:"Workshop",garage:"Garage",other:"Other"}[t?.toLowerCase()]||t||"-"}function be(t){if(!t)return"-";try{return new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return t}}function He(t){return{basic:"bg-gray-100 text-gray-800",premium:"bg-yellow-100 text-yellow-800",enterprise:"bg-purple-100 text-purple-800",trial:"bg-blue-100 text-blue-800"}[t?.toLowerCase()]||"bg-gray-100 text-gray-800"}function P(t){if(!t)return"";if(t.display_name)return t.display_name;if(t.name)return t.name;if(t.email)return t.email;if(t.person){const s=t.person.first_name||"",u=`${t.person.last_name||""} ${s}`.trim();if(u)return u;if(t.person.email)return t.person.email}return t.user_id?String(t.user_id):"Unknown"}function Se(t){return{admin:"Admin",manager:"Manager",member:"Member",owner:"Owner"}[t?.toLowerCase()]||t||"Member"}function Ee(t){return{admin:"bg-purple-100 text-purple-800",manager:"bg-blue-100 text-blue-800",member:"bg-green-100 text-green-800",owner:"bg-yellow-100 text-yellow-800"}[t?.toLowerCase()]||"bg-gray-100 text-gray-800"}function Fe(t){return{active:"Active",invited:"Invited",suspended:"Suspended",inactive:"Inactive"}[t?.toLowerCase()]||t||"Unknown"}function De(t){return{active:"bg-green-100 text-green-800",invited:"bg-blue-100 text-blue-800",suspended:"bg-red-100 text-red-800",inactive:"bg-gray-100 text-gray-800"}[t?.toLowerCase()]||"bg-gray-100 text-gray-800"}function Re(t){return{active:"bg-green-400",invited:"bg-blue-400",suspended:"bg-red-400",inactive:"bg-gray-400"}[t?.toLowerCase()]||"bg-gray-400"}function Ie(t){return{active:"Active",inactive:"Inactive",sold:"Sold",scrapped:"Scrapped",pending:"Pending",draft:"Draft"}[t?.toLowerCase()]||t||"Unknown"}function Ne(t){return{active:"bg-green-500/10 text-green-400",inactive:"bg-gray-500/10 text-gray-400",sold:"bg-red-500/10 text-red-400",scrapped:"bg-red-500/10 text-red-400",pending:"bg-yellow-500/10 text-yellow-400",draft:"bg-gray-500/10 text-gray-400"}[t?.toLowerCase()]||"bg-gray-500/10 text-gray-400"}function Pe(t){return{active:"bg-green-400",inactive:"bg-gray-400",sold:"bg-red-400",scrapped:"bg-red-400",pending:"bg-yellow-400",draft:"bg-gray-400"}[t?.toLowerCase()]||"bg-gray-400"}return Qe(()=>{B()}),qe(w,t=>{t==="fleet"&&h.value.length===0&&ke(),t==="subscription"&&oe.value.length===0&&Ve()}),(t,s)=>(n(),i("div",null,[te.value?(n(),i("div",et,[e("div",tt,[s[35]||(s[35]=e("svg",{class:"w-8 h-8 text-indigo-400 animate-spin",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)),e("p",st,o(t.$t("garages.details.loading")),1)])])):G.value?(n(),i("div",ot,[s[36]||(s[36]=e("svg",{class:"w-12 h-12 text-red-500 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),e("p",lt,o(G.value),1),e("button",{onClick:B,class:"px-4 py-2 text-sm bg-indigo-600/20 text-indigo-300 hover:bg-indigo-600/30 rounded-lg transition"},o(t.$t("garages.details.retry")),1)])):a.value?(n(),i(_,{key:2},[ie.value.length>0?(n(),i("div",at,[e("div",it,[s[38]||(s[38]=e("div",{class:"p-1.5 rounded-lg bg-amber-500/20 text-amber-400 flex-shrink-0"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})])],-1)),e("div",nt,[e("div",rt,[e("p",dt,o(t.$t("garages.details.missing_data_title")),1),e("span",ut,o(t.$t("garages.details.missing_data_count",{count:ie.value.length})),1)]),e("p",ct,o(a.value.status!=="active"?t.$t("garages.details.missing_data_activation_required"):t.$t("garages.details.missing_data_desc")),1),e("div",gt,[(n(!0),i(_,null,V(ie.value,l=>(n(),i("span",{key:l.key,class:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium bg-amber-500/10 text-amber-300"},[s[37]||(s[37]=e("svg",{class:"w-3 h-3",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)),m(" "+o(t.$t(l.label)),1)]))),128))])])])])):d("",!0),e("div",pt,[e("button",{onClick:Ae,class:"inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4"},[s[39]||(s[39]=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)),m(" "+o(t.$t("garages.details.back")),1)]),e("div",mt,[e("div",vt,[e("div",{class:v(["w-12 h-12 rounded-xl flex items-center justify-center text-lg font-bold text-white",pe(ce(a.value))])},o(ge(ce(a.value))),3),e("div",null,[e("div",xt,[e("h1",bt,o(Ue.value),1),e("span",{class:v(["inline-flex items-center px-3 py-1 rounded-full text-xs font-medium",ve(a.value.status)])},[e("span",{class:v(["w-1.5 h-1.5 rounded-full mr-1.5",xe(a.value.status)])},null,2),m(" "+o(me(a.value.status)),1)],2)]),e("p",ft,[m(o(a.value.full_name)+" ",1),a.value.tax_number?(n(),i("span",ht,"· "+o(t.$t("garages.details.tax_number"))+": "+o(a.value.tax_number),1)):d("",!0)])])]),e("div",_t,[N("org:edit")?(n(),i("button",{key:0,onClick:$e,class:"inline-flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-indigo-600/20 text-indigo-300 hover:bg-indigo-600/30 rounded-lg transition"},[s[40]||(s[40]=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)),m(" "+o(t.$t("garages.details.edit_details")),1)])):d("",!0)])])]),e("div",yt,[e("nav",wt,[(n(),i(_,null,V(_e,l=>e("button",{key:l.key,onClick:u=>w.value=l.key,class:v(["pb-3 text-sm font-medium transition border-b-2 -mb-px",w.value===l.key?"text-indigo-400 border-indigo-400":"text-slate-400 border-transparent hover:text-slate-300"])},o(t.$t(l.label)),11,kt)),64))])]),w.value==="general"?(n(),i("div",$t,[e("div",Ct,[e("div",Mt,[s[41]||(s[41]=e("div",{class:"p-2 rounded-lg bg-indigo-500/10 text-indigo-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})])],-1)),e("h3",zt,o(t.$t("garages.details.company_info")),1)]),e("div",jt,[e("div",Bt,[e("div",Vt,[e("div",null,[e("p",Lt,o(t.$t("garages.details.company_name")),1),e("p",At,o(a.value.full_name),1)]),e("div",null,[e("p",Ut,o(t.$t("garages.details.display_name")),1),e("p",Tt,o(a.value.display_name||"—"),1)]),e("div",null,[e("p",Ht,o(t.$t("garages.details.org_type")),1),e("p",St,o(Te(a.value.org_type)),1)])]),e("div",Et,[e("div",null,[e("p",Ft,o(t.$t("garages.details.tax_number")),1),e("p",Dt,o(a.value.tax_number||"—"),1)]),e("div",null,[e("p",Rt,o(t.$t("garages.details.reg_number")),1),e("p",It,o(a.value.reg_number||"—"),1)]),e("div",null,[e("p",Nt,o(t.$t("garages.details.created_at")),1),e("p",Pt,o(be(a.value.created_at)),1)])])]),e("div",Ot,[e("p",Gt,o(t.$t("garages.details.address")),1),e("p",Jt,o(we.value),1)]),de.value?(n(),i("div",Qt,[e("p",qt,o(t.$t("garages.details.billing_address")),1),e("p",Wt,o(de.value),1)])):d("",!0),ue.value?(n(),i("div",Xt,[e("p",Kt,o(t.$t("garages.details.notification_address")),1),e("p",Yt,o(ue.value),1)])):d("",!0),e("div",Zt,[s[45]||(s[45]=e("p",{class:"text-xs text-slate-500 uppercase tracking-wider mb-3"},"Rendszer Azonosítók",-1)),e("div",es,[e("span",null,[s[42]||(s[42]=m("Garázs ID: ",-1)),e("span",ts,o(a.value.id),1)]),e("span",null,[s[43]||(s[43]=m("User ID: ",-1)),e("span",ss,o(a.value.owner?.id||"N/A"),1)]),e("span",null,[s[44]||(s[44]=m("Person ID: ",-1)),e("span",os,o(a.value.owner?.person?.id||"N/A"),1)])])])])]),e("div",ls,[e("div",as,[s[46]||(s[46]=e("div",{class:"p-2 rounded-lg bg-emerald-500/10 text-emerald-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})])],-1)),e("h3",is,o(t.$t("garages.details.contact_info")),1)]),e("div",ns,[a.value.contact_person_name||a.value.contact_email||a.value.contact_phone||a.value.primary_contact?(n(),i("div",rs,[e("div",ds,[e("div",null,[e("p",us,o(t.$t("garages.details.contact_name")),1),e("p",cs,o(a.value.contact_person_name||a.value.primary_contact?.full_name||"—"),1)]),e("div",null,[e("p",gs,o(t.$t("garages.details.contact_email")),1),e("p",ps,[s[47]||(s[47]=e("svg",{class:"w-4 h-4 text-slate-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)),e("span",null,o(a.value.contact_email||a.value.primary_contact?.email||"—"),1)])])]),e("div",ms,[e("div",null,[e("p",vs,o(t.$t("garages.details.contact_phone")),1),e("p",xs,[s[48]||(s[48]=e("svg",{class:"w-4 h-4 text-slate-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})],-1)),e("span",null,o(a.value.contact_phone||a.value.primary_contact?.phone||"—"),1)])]),a.value.primary_contact?.role||a.value.primary_contact?.department?(n(),i("div",bs,[e("p",fs,o(t.$t("garages.details.contact_role")),1),e("p",hs,[m(o(a.value.primary_contact.role||"—"),1),a.value.primary_contact?.department?(n(),i("span",_s," · "+o(a.value.primary_contact.department),1)):d("",!0)])])):d("",!0)])])):(n(),i("div",ys,[e("p",ws,o(t.$t("garages.details.no_contact")),1)]))])])])):d("",!0),w.value==="employees"?(n(),i("div",ks,[e("div",$s,[e("div",Cs,[s[49]||(s[49]=e("div",{class:"p-2 rounded-lg bg-cyan-500/10 text-cyan-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197m13.5-9a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"})])],-1)),e("div",null,[e("h3",Ms,o(t.$t("garages.employees.title")),1),e("p",zs,o(t.$t("garages.employees.total_count",{count:C.value.length})),1)])]),N("org:manage-members")?(n(),i("button",{key:0,onClick:s[0]||(s[0]=(...l)=>t.openAddEmployeeModal&&t.openAddEmployeeModal(...l)),class:"inline-flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-emerald-600/20 text-emerald-300 hover:bg-emerald-600/30 rounded-lg transition"},[s[50]||(s[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:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"})],-1)),m(" "+o(t.$t("garages.employees.add_employee")),1)])):d("",!0)]),e("div",js,[e("div",Bs,[e("table",Vs,[e("thead",null,[e("tr",Ls,[e("th",As,o(t.$t("garages.employees.name")),1),e("th",Us,o(t.$t("garages.employees.email_phone")),1),e("th",Ts,o(t.$t("garages.employees.role")),1),e("th",Hs,o(t.$t("garages.employees.status")),1),e("th",Ss,o(t.$t("garages.employees.actions")),1)])]),e("tbody",null,[(n(!0),i(_,null,V(C.value,l=>(n(),i("tr",{key:l.id,class:"border-b border-slate-700/50 last:border-b-0 hover:bg-slate-700/30 transition"},[e("td",Es,[e("div",Fs,[e("div",{class:v(["w-8 h-8 rounded-lg flex items-center justify-center text-xs font-bold text-white flex-shrink-0",pe(P(l))])},o(ge(P(l))),3),e("div",null,[e("p",Ds,o(P(l)),1),e("p",Rs,"ID: "+o(l.user_id||l.id),1)])])]),e("td",Is,[e("div",Ns,[l.person?.email?(n(),i("p",Ps,o(l.person.email),1)):(n(),i("p",Os,"—")),l.person?.phone?(n(),i("p",Gs,o(l.person.phone),1)):d("",!0)])]),e("td",Js,[e("span",{class:v(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Ee(l.role)])},o(Se(l.role)),3)]),e("td",Qs,[e("span",{class:v(["inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium",De(l.status)])},[e("span",{class:v(["w-1.5 h-1.5 rounded-full",Re(l.status)])},null,2),m(" "+o(Fe(l.status)),1)],2)]),e("td",qs,[e("div",Ws,[N("org:manage-members")?(n(),i("button",{key:0,onClick:u=>ze(l),class:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-indigo-300 bg-indigo-500/10 hover:bg-indigo-500/20 rounded-lg transition"},[s[51]||(s[51]=e("svg",{class:"w-3.5 h-3.5",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)),m(" "+o(t.$t("garages.employees.edit_role")),1)],8,Xs)):d("",!0),N("org:manage-members")?(n(),i("button",{key:1,onClick:u=>t.confirmRemoveMember(l),class:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-red-300 bg-red-500/10 hover:bg-red-500/20 rounded-lg transition"},[s[52]||(s[52]=e("svg",{class:"w-3.5 h-3.5",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)),m(" "+o(t.$t("garages.employees.remove")),1)],8,Ks)):d("",!0)])])]))),128)),C.value.length===0?(n(),i("tr",Ys,[e("td",Zs,[s[53]||(s[53]=e("svg",{class:"w-10 h-10 text-slate-600 mx-auto mb-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})],-1)),e("p",eo,o(t.$t("garages.employees.no_employees")),1)])])):d("",!0)])])])])])):d("",!0),w.value==="fleet"?(n(),i("div",to,[N("fleet:view")?(n(),i(_,{key:0},[e("div",so,[e("div",oo,[s[54]||(s[54]=e("div",{class:"p-2 rounded-lg bg-indigo-500/10 text-indigo-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 17a2 2 0 11-4 0 2 2 0 014 0zM19 17a2 2 0 11-4 0 2 2 0 014 0z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16V6a1 1 0 00-1-1H4a1 1 0 00-1 1v10a1 1 0 001 1h1m8-1a1 1 0 01-1 1H9m4-1V8a1 1 0 011-1h2.586a1 1 0 01.707.293l3.414 3.414a1 1 0 01.293.707V16a1 1 0 01-1 1h-1m-6-1a1 1 0 001 1h1M5 17a2 2 0 104 0m-4 0a2 2 0 114 0m6 0a2 2 0 104 0m-4 0a2 2 0 114 0"})])],-1)),e("div",null,[e("h3",lo,o(t.$t("garages.fleet.title")),1),e("p",ao,o(t.$t("garages.fleet.total_vehicles",{count:h.value.length})),1)])])]),e("div",io,[e("div",no,[e("table",ro,[e("thead",null,[e("tr",uo,[e("th",co,o(t.$t("garages.fleet.plate")),1),e("th",go,o(t.$t("garages.fleet.brand_model")),1),e("th",po,o(t.$t("garages.fleet.year")),1),e("th",mo,o(t.$t("garages.fleet.vin")),1),e("th",vo,o(t.$t("garages.fleet.status")),1)])]),e("tbody",null,[(n(!0),i(_,null,V(h.value,l=>(n(),i("tr",{key:l.id,class:"border-b border-slate-700/50 last:border-b-0 hover:bg-slate-700/30 transition"},[e("td",xo,[e("span",bo,o(l.license_plate||"—"),1)]),e("td",fo,[e("span",ho,o(l.brand||"—"),1),l.brand&&l.model?(n(),i("span",_o,"·")):d("",!0),l.model?(n(),i("span",yo,o(l.model),1)):d("",!0)]),e("td",wo,o(l.year||"—"),1),e("td",ko,[e("span",$o,o(l.vin||"—"),1)]),e("td",Co,[e("span",{class:v(["inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium",Ne(l.status)])},[e("span",{class:v(["w-1.5 h-1.5 rounded-full",Pe(l.status)])},null,2),m(" "+o(Ie(l.status)),1)],2)])]))),128)),h.value.length===0&&!J.value?(n(),i("tr",Mo,[e("td",zo,[s[55]||(s[55]=e("svg",{class:"w-12 h-12 text-slate-600 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 17a2 2 0 11-4 0 2 2 0 014 0zM19 17a2 2 0 11-4 0 2 2 0 014 0z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13 16V6a1 1 0 00-1-1H4a1 1 0 00-1 1v10a1 1 0 001 1h1m8-1a1 1 0 01-1 1H9m4-1V8a1 1 0 011-1h2.586a1 1 0 01.707.293l3.414 3.414a1 1 0 01.293.707V16a1 1 0 01-1 1h-1m-6-1a1 1 0 001 1h1M5 17a2 2 0 104 0m-4 0a2 2 0 114 0m6 0a2 2 0 104 0m-4 0a2 2 0 114 0"})],-1)),e("p",jo,o(t.$t("garages.fleet.no_vehicles")),1)])])):d("",!0),J.value?(n(),i("tr",Bo,[e("td",Vo,[s[56]||(s[56]=e("svg",{class:"w-8 h-8 text-indigo-400 animate-spin mx-auto",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)),e("p",Lo,o(t.$t("garages.details.loading")),1)])])):d("",!0)])])])])],64)):(n(),i("div",Ao,[s[57]||(s[57]=e("svg",{class:"w-12 h-12 text-slate-600 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)),e("p",Uo,o(t.$t("garages.fleet.no_fleet_access")),1)]))])):d("",!0),w.value==="subscription"?(n(),i("div",To,[e("div",Ho,[e("div",So,[s[58]||(s[58]=e("div",{class:"p-2 rounded-lg bg-amber-500/10 text-amber-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})])],-1)),e("h3",Eo,o(t.$t("garages.details.subscription_info")),1)]),e("div",Fo,[a.value.subscription?(n(),i("div",Do,[e("div",Ro,[e("p",Io,o(t.$t("garages.details.tier_name")),1),e("span",{class:v(["inline-flex px-2.5 py-0.5 rounded-full text-xs font-medium",He(a.value.subscription.tier_name)])},o(a.value.subscription.tier_name),3)]),e("div",No,[e("p",Po,o(t.$t("garages.details.tier_level")),1),e("p",Oo,o(t.$t("garages.details.level_n",{n:a.value.subscription.tier_level})),1)]),e("div",Go,[e("p",Jo,o(t.$t("garages.details.expires_at")),1),a.value.subscription.expires_at?(n(),i("p",Qo,o(be(a.value.subscription.expires_at)),1)):(n(),i("p",qo,o(t.$t("garages.indefinite")),1))]),e("div",Wo,[e("p",Xo,o(t.$t("garages.details.asset_limit")),1),e("p",Ko,o(a.value.subscription.asset_limit)+" "+o(t.$t("garages.details.vehicles")),1)])])):d("",!0),a.value.subscription?(n(),i("div",Yo,[e("div",Zo,[e("p",el,o(t.$t("garages.details.vehicles_used")),1),e("p",tl,o(h.value.length)+" / "+o(a.value.subscription?.asset_limit||"∞"),1),e("div",sl,[e("div",{class:v(["h-full rounded-full transition-all duration-500",z.value>=90?"bg-red-500":z.value>=70?"bg-amber-500":"bg-blue-500"]),style:O({width:Math.min(100,z.value)+"%"})},null,6)])]),e("div",ol,[e("p",ll,o(t.$t("garages.details.branches_used")),1),e("p",al,o(a.value.branches?.length||0)+" / "+o(a.value.subscription?.branch_limit||"∞"),1),e("div",il,[e("div",{class:v(["h-full rounded-full transition-all duration-500",ae.value>=90?"bg-red-500":ae.value>=70?"bg-amber-500":"bg-emerald-500"]),style:O({width:Math.min(100,ae.value)+"%"})},null,6)])]),e("div",nl,[e("p",rl,o(t.$t("garages.details.employees_used")),1),e("p",dl,o(C.value.length)+" / "+o(le.value),1),e("div",ul,[e("div",{class:v(["h-full rounded-full transition-all duration-500",j.value>=90?"bg-red-500":j.value>=70?"bg-amber-500":"bg-emerald-500"]),style:O({width:Math.min(100,j.value)+"%"})},null,6)])]),e("div",cl,[e("p",gl,o(t.$t("garages.details.status")),1),e("span",{class:v(["inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium self-start",ve(a.value.status)])},[e("span",{class:v(["w-1.5 h-1.5 rounded-full",xe(a.value.status)])},null,2),m(" "+o(me(a.value.status)),1)],2)])])):(n(),i("div",pl,[e("p",ml,o(t.$t("garages.details.no_subscription")),1)]))])]),e("div",vl,[e("div",xl,[s[59]||(s[59]=e("div",{class:"p-2 rounded-lg bg-indigo-500/10 text-indigo-400"},[e("svg",{class:"w-5 h-5",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)),e("h3",bl,o(t.$t("garages.change_package")),1)]),e("div",fl,[e("div",null,[e("label",hl,o(t.$t("garages.select_package")),1),g(e("select",{"onUpdate:modelValue":s[1]||(s[1]=l=>U.value=l),class:"w-full px-3 py-2.5 bg-slate-900 border border-slate-700 rounded-lg text-sm text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 transition"},[e("option",_l,o(t.$t("garages.select_package_placeholder")),1),(n(!0),i(_,null,V(oe.value,l=>(n(),i("option",{key:l.id,value:l.id},o(l.name)+" (Level "+o(l.tier_level)+") ",9,yl))),128))],512),[[ne,U.value]])]),e("div",null,[e("label",wl,[m(o(t.$t("garages.custom_expiration"))+" ",1),e("span",kl,"("+o(t.$t("garages.optional"))+")",1)]),g(e("input",{"onUpdate:modelValue":s[2]||(s[2]=l=>R.value=l),type:"datetime-local",class:"w-full px-3 py-2.5 bg-slate-900 border border-slate-700 rounded-lg text-sm text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 transition"},null,512),[[p,R.value]]),e("p",$l,o(t.$t("garages.custom_expiration_hint")),1)]),Y.value?(n(),i("div",Cl,[e("p",Ml,o(Y.value),1)])):d("",!0),e("div",zl,[e("button",{onClick:Le,disabled:I.value||!U.value,class:v(["px-5 py-2 text-sm font-medium rounded-lg transition disabled:opacity-50 disabled:cursor-not-allowed",I.value?"bg-indigo-600/50 text-indigo-200 cursor-wait":"bg-indigo-600 text-white hover:bg-indigo-500"])},[I.value?(n(),i("span",Bl,[s[60]||(s[60]=e("svg",{class:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)),m(" "+o(t.$t("garages.saving")),1)])):(n(),i("span",Vl,o(t.$t("garages.save")),1))],10,jl)])])]),e("div",Ll,[e("div",Al,[s[61]||(s[61]=e("div",{class:"p-2 rounded-lg bg-cyan-500/10 text-cyan-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[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"})])],-1)),e("h3",Ul,o(t.$t("garages.details.subscription_history")),1)]),e("div",Tl,[e("div",Hl,[e("table",Sl,[e("thead",null,[e("tr",El,[e("th",Fl,o(t.$t("garages.details.history_date")),1),e("th",Dl,o(t.$t("garages.details.history_package")),1),e("th",Rl,o(t.$t("garages.details.history_action")),1),e("th",Il,o(t.$t("garages.details.history_status")),1)])]),e("tbody",null,[e("tr",null,[e("td",Nl,[e("div",Pl,[s[62]||(s[62]=e("svg",{class:"w-10 h-10 text-slate-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),e("p",Ol,o(t.$t("garages.details.no_subscription_history")),1)])])])])])])])])])):d("",!0),w.value==="analytics"?(n(),i("div",Gl,[e("div",Jl,[e("div",Ql,[e("div",ql,[s[63]||(s[63]=e("div",{class:"p-2 rounded-lg bg-emerald-500/10 text-emerald-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})])],-1)),e("span",Wl,o(t.$t("garages.analytics.ltv")),1)]),s[64]||(s[64]=e("p",{class:"text-2xl font-bold text-white"},"150 000 Ft",-1)),s[65]||(s[65]=e("p",{class:"text-xs text-emerald-400 mt-1 flex items-center gap-1"},[e("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 10l7-7m0 0l7 7m-7-7v18"})]),m(" +12% ezen a hónapon ")],-1))]),e("div",Xl,[e("div",Kl,[s[66]||(s[66]=e("div",{class:"p-2 rounded-lg bg-blue-500/10 text-blue-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),e("span",Yl,o(t.$t("garages.analytics.mrr")),1)]),s[67]||(s[67]=e("p",{class:"text-2xl font-bold text-white"},"15 000 Ft",-1)),e("p",Zl,o(t.$t("garages.analytics.monthly_recurring")),1)]),e("div",ea,[e("div",ta,[s[68]||(s[68]=e("div",{class:"p-2 rounded-lg bg-amber-500/10 text-amber-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2zM10 8.5a.5.5 0 11-1 0 .5.5 0 011 0zm5 5a.5.5 0 11-1 0 .5.5 0 011 0z"})])],-1)),e("span",sa,o(t.$t("garages.analytics.outstanding")),1)]),s[70]||(s[70]=e("p",{class:"text-2xl font-bold text-white"},"0 Ft",-1)),e("p",oa,[s[69]||(s[69]=e("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),m(" "+o(t.$t("garages.analytics.all_settled")),1)])])]),e("div",la,[e("div",aa,[e("div",ia,[s[71]||(s[71]=e("div",{class:"p-2 rounded-lg bg-yellow-500/10 text-yellow-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})])],-1)),e("span",na,o(t.$t("garages.analytics.earned_credits")),1)]),s[72]||(s[72]=e("p",{class:"text-2xl font-bold text-yellow-300"},"450 XP",-1)),e("p",ra,o(t.$t("garages.analytics.contribution_xp")),1)]),e("div",da,[e("div",ua,[s[73]||(s[73]=e("div",{class:"p-2 rounded-lg bg-purple-500/10 text-purple-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"})])],-1)),e("span",ca,o(t.$t("garages.analytics.invited_companies")),1)]),s[74]||(s[74]=e("p",{class:"text-2xl font-bold text-white"},"12",-1)),e("p",ga,o(t.$t("garages.analytics.companies_joined")),1)]),e("div",pa,[e("div",ma,[s[75]||(s[75]=e("div",{class:"p-2 rounded-lg bg-cyan-500/10 text-cyan-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})])],-1)),e("span",va,o(t.$t("garages.analytics.validated_garages")),1)]),s[76]||(s[76]=e("p",{class:"text-2xl font-bold text-white"},"8",-1)),e("p",xa,o(t.$t("garages.analytics.garages_confirmed")),1)])]),e("div",ba,[e("div",fa,[e("div",ha,[s[77]||(s[77]=e("div",{class:"p-2 rounded-lg bg-indigo-500/10 text-indigo-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})])],-1)),e("h3",_a,o(t.$t("garages.analytics.utilization")),1)]),e("div",ya,[e("div",wa,[e("span",ka,o(t.$t("garages.analytics.vehicle_quota")),1),e("span",$a,o(h.value.length)+" / "+o(re.value),1)]),e("div",Ca,[e("div",{class:v(["h-full rounded-full transition-all duration-500",z.value>=90?"bg-red-500":z.value>=70?"bg-amber-500":"bg-blue-500"]),style:O({width:z.value+"%"})},null,6)]),e("p",Ma,o(z.value)+"% "+o(t.$t("garages.analytics.utilized")),1)]),e("div",null,[e("div",za,[e("span",ja,o(t.$t("garages.analytics.employee_quota")),1),e("span",Ba,o(C.value.length)+" / "+o(le.value),1)]),e("div",Va,[e("div",{class:v(["h-full rounded-full transition-all duration-500",j.value>=90?"bg-red-500":j.value>=70?"bg-amber-500":"bg-emerald-500"]),style:O({width:j.value+"%"})},null,6)]),e("p",La,o(j.value)+"% "+o(t.$t("garages.analytics.utilized")),1)])]),e("div",Aa,[e("div",Ua,[s[78]||(s[78]=e("div",{class:"p-2 rounded-lg bg-pink-500/10 text-pink-400"},[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"})])],-1)),e("h3",Ta,o(t.$t("garages.analytics.marketplace_engagement")),1)]),e("div",Ha,[e("span",Sa,o(t.$t("garages.analytics.avg_rating")),1),e("div",Ea,[e("div",Fa,[(n(),i(_,null,V(5,l=>e("svg",{key:l,class:v(["w-4 h-4",l<=4?"text-yellow-400":"text-slate-600"]),fill:"currentColor",viewBox:"0 0 20 20"},[...s[79]||(s[79]=[e("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)])],2)),64))]),s[80]||(s[80]=e("span",{class:"text-sm font-semibold text-white"},"4.8",-1)),s[81]||(s[81]=e("span",{class:"text-xs text-slate-500"},"/ 5.0",-1))])]),e("div",Da,[e("span",Ra,o(t.$t("garages.analytics.reviews")),1),e("span",Ia,"124 "+o(t.$t("garages.analytics.reviews_count")),1)]),e("div",Na,[e("span",Pa,o(t.$t("garages.analytics.last_activity")),1),e("span",Oa,o(t.$t("garages.analytics.last_login_mock")),1)]),e("div",Ga,[e("span",Ja,o(t.$t("garages.analytics.services_30d")),1),s[82]||(s[82]=e("span",{class:"text-sm text-white font-medium"},"42",-1))])])])])):d("",!0)],64)):d("",!0),se.value?(n(),i("div",Qa,[e("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:Z}),e("div",qa,[e("div",Wa,[e("h3",Xa,o(t.$t("garages.details.edit_details")),1),e("button",{onClick:Z,class:"p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-700 transition"},[...s[83]||(s[83]=[e("svg",{class:"w-5 h-5",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)])])]),e("div",Ka,[e("nav",Ya,[(n(),i(_,null,V(ye,l=>e("button",{key:l.key,onClick:u=>L.value=l.key,class:v(["pb-3 text-sm font-medium transition border-b-2 -mb-px",L.value===l.key?"text-indigo-400 border-indigo-400":"text-slate-400 border-transparent hover:text-slate-300"])},o(t.$t(l.label)),11,Za)),64))])]),e("div",ei,[L.value==="basic"?(n(),i("div",ti,[e("div",si,[e("div",null,[e("label",oi,o(t.$t("garages.details.company_name")),1),g(e("input",{"onUpdate:modelValue":s[3]||(s[3]=l=>r.value.full_name=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.full_name]])]),e("div",null,[e("label",li,o(t.$t("garages.details.display_name")),1),g(e("input",{"onUpdate:modelValue":s[4]||(s[4]=l=>r.value.display_name=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.display_name]])])]),e("div",ai,[e("div",null,[e("label",ii,o(t.$t("garages.details.tax_number")),1),g(e("input",{"onUpdate:modelValue":s[5]||(s[5]=l=>r.value.tax_number=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.tax_number]])]),e("div",null,[e("label",ni,o(t.$t("garages.details.reg_number")),1),g(e("input",{"onUpdate:modelValue":s[6]||(s[6]=l=>r.value.reg_number=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.reg_number]])])]),e("div",ri,[e("div",null,[e("label",di,o(t.$t("garages.details.zip")),1),g(e("input",{"onUpdate:modelValue":s[7]||(s[7]=l=>r.value.address_zip=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.address_zip]])]),e("div",null,[e("label",ui,o(t.$t("garages.details.city")),1),g(e("input",{"onUpdate:modelValue":s[8]||(s[8]=l=>r.value.address_city=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.address_city]])])]),e("div",ci,[e("div",gi,[e("label",pi,o(t.$t("garages.details.street_name")),1),g(e("input",{"onUpdate:modelValue":s[9]||(s[9]=l=>r.value.address_street_name=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.address_street_name]])]),e("div",null,[e("label",mi,o(t.$t("garages.details.street_type")),1),g(e("input",{"onUpdate:modelValue":s[10]||(s[10]=l=>r.value.address_street_type=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.address_street_type]])]),e("div",null,[e("label",vi,o(t.$t("garages.details.house_number")),1),g(e("input",{"onUpdate:modelValue":s[11]||(s[11]=l=>r.value.address_house_number=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.address_house_number]])])])])):d("",!0),L.value==="contact"?(n(),i("div",xi,[e("div",bi,[e("div",null,[e("label",fi,o(t.$t("garages.details.contact_person_name")),1),g(e("input",{"onUpdate:modelValue":s[12]||(s[12]=l=>r.value.contact_person_name=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.contact_person_name]])]),e("div",null,[e("label",hi,o(t.$t("garages.details.contact_email")),1),g(e("input",{"onUpdate:modelValue":s[13]||(s[13]=l=>r.value.contact_email=l),type:"email",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.contact_email]])])]),e("div",null,[e("label",_i,o(t.$t("garages.details.contact_phone")),1),g(e("input",{"onUpdate:modelValue":s[14]||(s[14]=l=>r.value.contact_phone=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.contact_phone]])])])):d("",!0),L.value==="addresses"?(n(),i("div",yi,[e("div",null,[e("h4",wi,o(t.$t("garages.details.billing_address")),1),e("div",ki,[e("div",null,[e("label",$i,o(t.$t("garages.details.billing_zip")),1),g(e("input",{"onUpdate:modelValue":s[15]||(s[15]=l=>r.value.billing_zip=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.billing_zip]])]),e("div",null,[e("label",Ci,o(t.$t("garages.details.billing_city")),1),g(e("input",{"onUpdate:modelValue":s[16]||(s[16]=l=>r.value.billing_city=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.billing_city]])])]),e("div",Mi,[e("div",zi,[e("label",ji,o(t.$t("garages.details.billing_street_name")),1),g(e("input",{"onUpdate:modelValue":s[17]||(s[17]=l=>r.value.billing_street_name=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.billing_street_name]])]),e("div",null,[e("label",Bi,o(t.$t("garages.details.billing_street_type")),1),g(e("input",{"onUpdate:modelValue":s[18]||(s[18]=l=>r.value.billing_street_type=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.billing_street_type]])]),e("div",null,[e("label",Vi,o(t.$t("garages.details.billing_house_number")),1),g(e("input",{"onUpdate:modelValue":s[19]||(s[19]=l=>r.value.billing_house_number=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.billing_house_number]])])])]),e("div",Li,[e("h4",Ai,o(t.$t("garages.details.notification_address")),1),e("div",Ui,[e("div",null,[e("label",Ti,o(t.$t("garages.details.notification_zip")),1),g(e("input",{"onUpdate:modelValue":s[20]||(s[20]=l=>r.value.notification_zip=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.notification_zip]])]),e("div",null,[e("label",Hi,o(t.$t("garages.details.notification_city")),1),g(e("input",{"onUpdate:modelValue":s[21]||(s[21]=l=>r.value.notification_city=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.notification_city]])])]),e("div",Si,[e("div",Ei,[e("label",Fi,o(t.$t("garages.details.notification_street_name")),1),g(e("input",{"onUpdate:modelValue":s[22]||(s[22]=l=>r.value.notification_street_name=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.notification_street_name]])]),e("div",null,[e("label",Di,o(t.$t("garages.details.notification_street_type")),1),g(e("input",{"onUpdate:modelValue":s[23]||(s[23]=l=>r.value.notification_street_type=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.notification_street_type]])]),e("div",null,[e("label",Ri,o(t.$t("garages.details.notification_house_number")),1),g(e("input",{"onUpdate:modelValue":s[24]||(s[24]=l=>r.value.notification_house_number=l),type:"text",class:"w-full px-3 py-2 text-sm bg-slate-700/50 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"},null,512),[[p,r.value.notification_house_number]])])])])])):d("",!0)]),e("div",Ii,[e("button",{onClick:Z,class:"px-4 py-2 text-sm font-medium text-slate-300 hover:text-white bg-slate-700/50 hover:bg-slate-700 rounded-lg transition"},o(t.$t("garages.details.cancel")),1),e("button",{onClick:Ce,disabled:T.value,class:"px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition inline-flex items-center gap-2"},[T.value?(n(),i("svg",Pi,[...s[84]||(s[84]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):d("",!0),m(" "+o(T.value?t.$t("garages.details.saving"):t.$t("garages.details.save")),1)],8,Ni)])])])):d("",!0),Q.value?(n(),i("div",Oi,[e("div",Gi,[e("div",{class:"fixed inset-0 bg-slate-900/80 backdrop-blur-sm transition-opacity",onClick:s[25]||(s[25]=l=>Q.value=!1)}),s[87]||(s[87]=e("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),e("div",Ji,[e("div",Qi,[s[85]||(s[85]=e("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-500/20 sm:mx-0 sm:h-10 sm:w-10"},[e("svg",{class:"h-6 w-6 text-indigo-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7.5v-1m0 0a3 3 0 00-3-3m3 3a3 3 0 013 3m0 0v1m0 0a3 3 0 01-3 3m3-3h-1m-4-3a3 3 0 01-3 3m0 0a3 3 0 01-3-3m3 3v1m0 0a3 3 0 013 3m-3-3H8m4 3h1m-4-3a3 3 0 01-3-3m3 3v-1m0 0a3 3 0 013-3m-3 3h1m4-3h-1"})])],-1)),e("div",qi,[e("h3",Wi,o(t.$t("garages.employees.addTitle")),1),e("div",Xi,[e("div",null,[e("label",Ki,o(t.$t("garages.employees.email")),1),g(e("input",{"onUpdate:modelValue":s[26]||(s[26]=l=>A.value=l),type:"email",class:"mt-1 block w-full rounded-lg border-slate-600 bg-slate-700/50 text-white shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm px-3 py-2.5 border placeholder-slate-400",placeholder:t.$t("garages.employees.emailPlaceholder")},null,8,Yi),[[p,A.value]])]),e("div",null,[e("label",Zi,o(t.$t("garages.employees.role")),1),g(e("select",{"onUpdate:modelValue":s[27]||(s[27]=l=>q.value=l),class:"mt-1 block w-full rounded-lg border-slate-600 bg-slate-700/50 text-white shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm px-3 py-2.5 border"},[e("option",en,o(t.$t("garages.employees.roleMember")),1),e("option",tn,o(t.$t("garages.employees.roleManager")),1),e("option",sn,o(t.$t("garages.employees.roleAdmin")),1)],512),[[ne,q.value]])])])])]),e("div",on,[e("button",{onClick:Me,disabled:H.value||!A.value,type:"button",class:"w-full inline-flex justify-center rounded-xl border border-transparent shadow-sm px-4 py-2.5 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:w-auto sm:text-sm disabled:opacity-50 disabled:cursor-not-allowed transition"},[H.value?(n(),i("svg",an,[...s[86]||(s[86]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):d("",!0),m(" "+o(H.value?t.$t("garages.employees.adding"):t.$t("garages.employees.add")),1)],8,ln),e("button",{onClick:s[28]||(s[28]=l=>Q.value=!1),type:"button",class:"mt-3 w-full inline-flex justify-center rounded-xl border border-slate-600 shadow-sm px-4 py-2.5 bg-slate-700/50 text-base font-medium text-slate-300 hover:bg-slate-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm transition"},o(t.$t("garages.employees.cancel")),1)])])])])):d("",!0),S.value?(n(),i("div",nn,[e("div",rn,[e("div",{class:"fixed inset-0 bg-slate-900/80 backdrop-blur-sm transition-opacity",onClick:s[29]||(s[29]=l=>S.value=!1)}),s[90]||(s[90]=e("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),e("div",dn,[e("div",un,[s[88]||(s[88]=e("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-yellow-500/20 sm:mx-0 sm:h-10 sm:w-10"},[e("svg",{class:"h-6 w-6 text-yellow-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})])],-1)),e("div",cn,[e("h3",gn,o(t.$t("garages.employees.editRoleTitle")),1),e("p",pn,o(t.$t("garages.employees.editRoleFor",{name:P(E.value)})),1),e("div",mn,[g(e("select",{"onUpdate:modelValue":s[30]||(s[30]=l=>W.value=l),class:"mt-1 block w-full rounded-lg border-slate-600 bg-slate-700/50 text-white shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm px-3 py-2.5 border"},[e("option",vn,o(t.$t("garages.employees.roleMember")),1),e("option",xn,o(t.$t("garages.employees.roleManager")),1),e("option",bn,o(t.$t("garages.employees.roleAdmin")),1)],512),[[ne,W.value]])])])]),e("div",fn,[e("button",{onClick:je,disabled:F.value,type:"button",class:"w-full inline-flex justify-center rounded-xl border border-transparent shadow-sm px-4 py-2.5 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:w-auto sm:text-sm disabled:opacity-50 disabled:cursor-not-allowed transition"},[F.value?(n(),i("svg",_n,[...s[89]||(s[89]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):d("",!0),m(" "+o(F.value?t.$t("garages.employees.saving"):t.$t("garages.employees.saveRole")),1)],8,hn),e("button",{onClick:s[31]||(s[31]=l=>S.value=!1),type:"button",class:"mt-3 w-full inline-flex justify-center rounded-xl border border-slate-600 shadow-sm px-4 py-2.5 bg-slate-700/50 text-base font-medium text-slate-300 hover:bg-slate-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm transition"},o(t.$t("garages.employees.cancel")),1)])])])])):d("",!0),X.value?(n(),i("div",yn,[e("div",wn,[e("div",{class:"fixed inset-0 bg-slate-900/80 backdrop-blur-sm transition-opacity",onClick:s[32]||(s[32]=l=>X.value=!1)}),s[93]||(s[93]=e("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),e("div",kn,[e("div",$n,[s[91]||(s[91]=e("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-500/20 sm:mx-0 sm:h-10 sm:w-10"},[e("svg",{class:"h-6 w-6 text-red-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])],-1)),e("div",Cn,[e("h3",Mn,o(t.$t("garages.employees.removeTitle")),1),e("div",zn,[e("p",jn,o(t.$t("garages.employees.removeConfirm",{name:P(K.value)})),1)])])]),e("div",Bn,[e("button",{onClick:Be,disabled:D.value,type:"button",class:"w-full inline-flex justify-center rounded-xl border border-transparent shadow-sm px-4 py-2.5 bg-red-600 text-base font-medium text-white hover:bg-red-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:w-auto sm:text-sm disabled:opacity-50 disabled:cursor-not-allowed transition"},[D.value?(n(),i("svg",Ln,[...s[92]||(s[92]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):d("",!0),m(" "+o(D.value?t.$t("garages.employees.removing"):t.$t("garages.employees.remove")),1)],8,Vn),e("button",{onClick:s[33]||(s[33]=l=>X.value=!1),type:"button",class:"mt-3 w-full inline-flex justify-center rounded-xl border border-slate-600 shadow-sm px-4 py-2.5 bg-slate-700/50 text-base font-medium text-slate-300 hover:bg-slate-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm transition"},o(t.$t("garages.employees.cancel")),1)])])])])):d("",!0),We(Ke,{"enter-active-class":"transition ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:Xe(()=>[M.value.show?(n(),i("div",An,[e("div",Un,[e("div",Tn,[e("div",Hn,[M.value.type==="success"?(n(),i("svg",Sn,[...s[94]||(s[94]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):d("",!0),M.value.type==="error"?(n(),i("svg",En,[...s[95]||(s[95]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"},null,-1)])])):d("",!0)]),e("div",Fn,[e("p",Dn,o(M.value.message),1)]),e("div",Rn,[e("button",{onClick:s[34]||(s[34]=l=>M.value.show=!1),class:"bg-slate-700/50 rounded-md inline-flex text-slate-400 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[...s[96]||(s[96]=[e("span",{class:"sr-only"},"Close",-1),e("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])])])])):d("",!0)]),_:1})]))}});export{Pn as default};