refaktor címtár
This commit is contained in:
@@ -3654,7 +3654,22 @@ _1xyvuM2CQDhMlDxE8qY1t3Wi66ocgNUNDNce4pREOrU,
|
||||
_wH6JrtIxmaSoA8lCPWFnE9z4lQeXW6H5z3l5aymEQw
|
||||
];
|
||||
|
||||
const assets = {};
|
||||
const assets = {
|
||||
"/index.mjs": {
|
||||
"type": "text/javascript; charset=utf-8",
|
||||
"etag": "\"248e7-Igi10px+YQpoWileEHP4mJUJvPs\"",
|
||||
"mtime": "2026-07-01T10:06:21.958Z",
|
||||
"size": 149735,
|
||||
"path": "index.mjs"
|
||||
},
|
||||
"/index.mjs.map": {
|
||||
"type": "application/json",
|
||||
"etag": "\"840e4-m5REc9B8WpnuwKHzj4TKXKSFgo0\"",
|
||||
"mtime": "2026-07-01T10:06:21.958Z",
|
||||
"size": 540900,
|
||||
"path": "index.mjs.map"
|
||||
}
|
||||
};
|
||||
|
||||
function readAsset (id) {
|
||||
const serverDir = dirname$1(fileURLToPath(globalThis._importMeta_.url));
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{S as a,h as i,G as o,s as l,U as c}from"./Duy9QquX.js";const h=a(async(s,f)=>{let t,r;if(s.path==="/login")return;if(!i("access_token").value)return o("/login");const e=l();if(!e.user)try{[t,r]=c(()=>e.fetchUser()),await t,r()}catch{return e.logout(),o("/login")}if(!e.user)return e.logout(),o("/login");const n=["SUPERADMIN","ADMIN","MODERATOR","SALES_REP","SERVICE_MGR"],u=(e.user.role||"").toUpperCase();if(!n.includes(u))return e.logout(),o("/login")});export{h as default};
|
||||
import{S as a,h as i,G as o,s as l,U as c}from"./BIbQr1Hg.js";const h=a(async(s,f)=>{let t,r;if(s.path==="/login")return;if(!i("access_token").value)return o("/login");const e=l();if(!e.user)try{[t,r]=c(()=>e.fetchUser()),await t,r()}catch{return e.logout(),o("/login")}if(!e.user)return e.logout(),o("/login");const n=["SUPERADMIN","ADMIN","MODERATOR","SALES_REP","SERVICE_MGR"],u=(e.user.role||"").toUpperCase();if(!n.includes(u))return e.logout(),o("/login")});export{h as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{_ as s}from"./DlAUqK2U.js";import{o,c as t,V as r}from"./Duy9QquX.js";const c={},n={class:"bg-slate-900 min-h-screen"};function a(e,l){return o(),t("div",n,[r(e.$slots,"default")])}const d=s(c,[["render",a]]);export{d as default};
|
||||
import{_ as s}from"./DlAUqK2U.js";import{o,c as t,V as r}from"./BIbQr1Hg.js";const c={},n={class:"bg-slate-900 min-h-screen"};function a(e,l){return o(),t("div",n,[r(e.$slots,"default")])}const d=s(c,[["render",a]]);export{d as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{_ as y}from"./CuTzR9Y8.js";import{p as v,e as h,q as _,s as k,c as r,a as t,v as S,i as s,t as c,j as u,x as V,y as p,z as m,A as x,b as L,w as C,l as f,o as i,d as N}from"./Duy9QquX.js";const A=v("/sf_logo.png"),B={class:"min-h-screen bg-slate-900 flex items-center justify-center px-4"},E={class:"w-full max-w-md"},R={class:"bg-slate-800 rounded-xl shadow-2xl border border-slate-700 p-8"},j={key:0,class:"mb-6 p-3 rounded-lg bg-red-900/40 border border-red-700 text-red-300 text-sm"},q=["disabled"],D={key:0,class:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},F={class:"mt-6 text-center"},z=h({__name:"login",setup(I){const a=f(""),l=f(""),b=_(),o=k();async function g(){try{await o.login(a.value,l.value),b.push("/")}catch(d){console.error("Login failed:",d)}}return(d,e)=>{const w=y;return i(),r("div",B,[t("div",E,[e[6]||(e[6]=S('<div class="text-center mb-8"><div class="flex items-center justify-center gap-3 mb-4"><img src="'+A+'" class="h-12 w-auto drop-shadow-md" alt="ServiceFinder Logo"><span class="text-3xl font-extrabold tracking-wider"><span class="text-white">SERVICE</span><span class="text-cyan-400">FINDER</span></span></div><h1 class="text-xl font-semibold text-slate-300">Staff Portal</h1><p class="text-sm text-slate-500 mt-1">Authorised personnel only</p></div>',1)),t("div",R,[s(o).error?(i(),r("div",j,c(s(o).error),1)):u("",!0),t("form",{onSubmit:V(g,["prevent"]),class:"space-y-5"},[t("div",null,[e[2]||(e[2]=t("label",{for:"email",class:"block text-sm font-medium text-slate-300 mb-1.5"}," Email Address ",-1)),p(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=n=>x(a)?a.value=n:null),type:"email",autocomplete:"email",required:"",placeholder:"admin@example.com",class:"w-full px-4 py-2.5 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition"},null,512),[[m,s(a)]])]),t("div",null,[e[3]||(e[3]=t("label",{for:"password",class:"block text-sm font-medium text-slate-300 mb-1.5"}," Password ",-1)),p(t("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=n=>x(l)?l.value=n:null),type:"password",autocomplete:"current-password",required:"",placeholder:"••••••••",class:"w-full px-4 py-2.5 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition"},null,512),[[m,s(l)]])]),t("button",{type:"submit",disabled:s(o).isLoading,class:"w-full py-2.5 px-4 bg-cyan-600 hover:bg-cyan-500 disabled:bg-cyan-800 disabled:cursor-not-allowed text-white font-semibold rounded-lg transition duration-200 flex items-center justify-center gap-2"},[s(o).isLoading?(i(),r("svg",D,[...e[4]||(e[4]=[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):u("",!0),t("span",null,c(s(o).isLoading?"Signing in...":"Sign In"),1)],8,q)],32),t("div",F,[L(w,{to:"/",class:"text-sm text-slate-500 hover:text-cyan-400 transition"},{default:C(()=>[...e[5]||(e[5]=[N(" ← Back to ServiceFinder ",-1)])]),_:1})])])])])}}});export{z as default};
|
||||
import{_ as y}from"./C2l6xpLd.js";import{p as v,e as h,q as _,s as k,c as r,a as t,v as S,i as s,t as c,j as u,x as V,y as p,z as m,A as x,b as L,w as C,l as f,o as i,d as N}from"./BIbQr1Hg.js";const A=v("/sf_logo.png"),B={class:"min-h-screen bg-slate-900 flex items-center justify-center px-4"},E={class:"w-full max-w-md"},R={class:"bg-slate-800 rounded-xl shadow-2xl border border-slate-700 p-8"},j={key:0,class:"mb-6 p-3 rounded-lg bg-red-900/40 border border-red-700 text-red-300 text-sm"},q=["disabled"],D={key:0,class:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},F={class:"mt-6 text-center"},z=h({__name:"login",setup(I){const a=f(""),l=f(""),b=_(),o=k();async function g(){try{await o.login(a.value,l.value),b.push("/")}catch(d){console.error("Login failed:",d)}}return(d,e)=>{const w=y;return i(),r("div",B,[t("div",E,[e[6]||(e[6]=S('<div class="text-center mb-8"><div class="flex items-center justify-center gap-3 mb-4"><img src="'+A+'" class="h-12 w-auto drop-shadow-md" alt="ServiceFinder Logo"><span class="text-3xl font-extrabold tracking-wider"><span class="text-white">SERVICE</span><span class="text-cyan-400">FINDER</span></span></div><h1 class="text-xl font-semibold text-slate-300">Staff Portal</h1><p class="text-sm text-slate-500 mt-1">Authorised personnel only</p></div>',1)),t("div",R,[s(o).error?(i(),r("div",j,c(s(o).error),1)):u("",!0),t("form",{onSubmit:V(g,["prevent"]),class:"space-y-5"},[t("div",null,[e[2]||(e[2]=t("label",{for:"email",class:"block text-sm font-medium text-slate-300 mb-1.5"}," Email Address ",-1)),p(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=n=>x(a)?a.value=n:null),type:"email",autocomplete:"email",required:"",placeholder:"admin@example.com",class:"w-full px-4 py-2.5 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition"},null,512),[[m,s(a)]])]),t("div",null,[e[3]||(e[3]=t("label",{for:"password",class:"block text-sm font-medium text-slate-300 mb-1.5"}," Password ",-1)),p(t("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=n=>x(l)?l.value=n:null),type:"password",autocomplete:"current-password",required:"",placeholder:"••••••••",class:"w-full px-4 py-2.5 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition"},null,512),[[m,s(l)]])]),t("button",{type:"submit",disabled:s(o).isLoading,class:"w-full py-2.5 px-4 bg-cyan-600 hover:bg-cyan-500 disabled:bg-cyan-800 disabled:cursor-not-allowed text-white font-semibold rounded-lg transition duration-200 flex items-center justify-center gap-2"},[s(o).isLoading?(i(),r("svg",D,[...e[4]||(e[4]=[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):u("",!0),t("span",null,c(s(o).isLoading?"Signing in...":"Sign In"),1)],8,q)],32),t("div",F,[L(w,{to:"/",class:"text-sm text-slate-500 hover:text-cyan-400 transition"},{default:C(()=>[...e[5]||(e[5]=[N(" ← Back to ServiceFinder ",-1)])]),_:1})])])])])}}});export{z as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{_ as a}from"./CuTzR9Y8.js";import{_ as i}from"./DlAUqK2U.js";import{u,o as c,c as l,a as e,t as r,b as d,w as p,d as f}from"./Duy9QquX.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},b=["textContent"],h=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},status:{type:Number,default:404},statusText:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return u({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=a;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.status)},null,8,b),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,h),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},z=i(y,[["__scopeId","data-v-1bd9e11a"]]);export{z as default};
|
||||
import{_ as a}from"./C2l6xpLd.js";import{_ as i}from"./DlAUqK2U.js";import{u,o as c,c as l,a as e,t as r,b as d,w as p,d as f}from"./BIbQr1Hg.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},b=["textContent"],h=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},status:{type:Number,default:404},statusText:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return u({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=a;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.status)},null,8,b),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,h),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},z=i(y,[["__scopeId","data-v-1bd9e11a"]]);export{z as default};
|
||||
@@ -1 +1 @@
|
||||
import{ac as _,l as u,m as a}from"./Duy9QquX.js";const h=_("region",()=>{const t=u([]),n=u(null),c=u(!1),l=u(null),o=a(()=>t.value.find(e=>e.country_code==="DEFAULT")||null),s=a(()=>{const e=new Map;for(const r of t.value)e.set(r.country_code,r);return e}),i=a(()=>n.value?.currency||o.value?.currency||"EUR"),v=a(()=>n.value?.locale_code||o.value?.locale_code||"en-EU"),f=a(()=>n.value?.default_vat_rate??o.value?.default_vat_rate??0),d=a(()=>n.value?.timezone||o.value?.timezone||"Europe/Brussels");async function g(){if(!(t.value.length>0)){c.value=!0,l.value=null;try{const e=await $fetch("/api/v1/system/regions");t.value=e||[]}catch(e){l.value=e?.data?.detail||e?.message||"Failed to load regions",console.error("[RegionStore] Fetch error:",e)}finally{c.value=!1}}}function m(e){const r=t.value.find(R=>R.country_code===e);n.value=r||o.value}function y(e){return s.value.get(e)}return{regions:t,activeRegion:n,isLoading:c,error:l,defaultRegion:o,regionMap:s,activeCurrency:i,activeLocale:v,activeVatRate:f,activeTimezone:d,fetchRegions:g,setActiveRegion:m,getRegion:y}});export{h as u};
|
||||
import{ac as _,l as u,m as a}from"./BIbQr1Hg.js";const h=_("region",()=>{const t=u([]),n=u(null),c=u(!1),l=u(null),o=a(()=>t.value.find(e=>e.country_code==="DEFAULT")||null),s=a(()=>{const e=new Map;for(const r of t.value)e.set(r.country_code,r);return e}),i=a(()=>n.value?.currency||o.value?.currency||"EUR"),v=a(()=>n.value?.locale_code||o.value?.locale_code||"en-EU"),f=a(()=>n.value?.default_vat_rate??o.value?.default_vat_rate??0),d=a(()=>n.value?.timezone||o.value?.timezone||"Europe/Brussels");async function g(){if(!(t.value.length>0)){c.value=!0,l.value=null;try{const e=await $fetch("/api/v1/system/regions");t.value=e||[]}catch(e){l.value=e?.data?.detail||e?.message||"Failed to load regions",console.error("[RegionStore] Fetch error:",e)}finally{c.value=!1}}}function m(e){const r=t.value.find(R=>R.country_code===e);n.value=r||o.value}function y(e){return s.value.get(e)}return{regions:t,activeRegion:n,isLoading:c,error:l,defaultRegion:o,regionMap:s,activeCurrency:i,activeLocale:v,activeVatRate:f,activeTimezone:d,fetchRegions:g,setActiveRegion:m,getRegion:y}});export{h as u};
|
||||
1
frontend_admin/.nuxt/dist/client/_nuxt/D_wdxHVu.js
vendored
Normal file
1
frontend_admin/.nuxt/dist/client/_nuxt/D_wdxHVu.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
frontend_admin/.nuxt/dist/client/_nuxt/DlWXh2WJ.js
vendored
Normal file
1
frontend_admin/.nuxt/dist/client/_nuxt/DlWXh2WJ.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{u as v}from"./BmPpcd_L.js";function h(){const o=v();function u(t,e){const r=o.activeLocale||"en-EU";try{return new Intl.NumberFormat(r,e).format(t)}catch{return new Intl.NumberFormat("en-EU",e).format(t)}}function a(t,e,r){const c=o.activeLocale||"en-EU",n=e||o.activeCurrency||"EUR";try{return new Intl.NumberFormat(c,{style:"currency",currency:n,minimumFractionDigits:2,maximumFractionDigits:2,...r}).format(t)}catch{return`${t.toFixed(2)} ${n}`}}function s(t,e){const r=o.activeLocale||"en-EU",c=o.activeTimezone||"Europe/Brussels",n=typeof t=="string"||typeof t=="number"?new Date(t):t;try{return new Intl.DateTimeFormat(r,{timezone:c,year:"numeric",month:"2-digit",day:"2-digit",...e}).format(n)}catch{return n.toLocaleDateString("en-GB")}}function l(t,e){const r=o.activeLocale||"en-EU",c=o.activeTimezone||"Europe/Brussels",n=typeof t=="string"||typeof t=="number"?new Date(t):t;try{return new Intl.DateTimeFormat(r,{timezone:c,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",...e}).format(n)}catch{return n.toLocaleString("en-GB")}}function f(t,e){const r=o.activeLocale||"en-EU";try{return new Intl.NumberFormat(r,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...e}).format(t/100)}catch{return`${t}%`}}function m(t,e){const r=e??o.activeVatRate??0,c=t*(r/100),n=t+c;return{net:t,vat:c,gross:n,vatRate:r}}function y(t,e,r){const{net:c,vat:n,gross:g,vatRate:F}=m(t,e),i=r||o.activeCurrency||"EUR";return`Net: ${a(c,i)} | VAT: ${a(n,i)} (${F}%) | Gross: ${a(g,i)}`}return{formatNumber:u,formatCurrency:a,formatDate:s,formatDateTime:l,formatPercent:f,calculatePriceWithVat:m,formatPriceWithVat:y}}export{h as u};
|
||||
import{u as v}from"./DXATb271.js";function h(){const o=v();function u(t,e){const r=o.activeLocale||"en-EU";try{return new Intl.NumberFormat(r,e).format(t)}catch{return new Intl.NumberFormat("en-EU",e).format(t)}}function a(t,e,r){const c=o.activeLocale||"en-EU",n=e||o.activeCurrency||"EUR";try{return new Intl.NumberFormat(c,{style:"currency",currency:n,minimumFractionDigits:2,maximumFractionDigits:2,...r}).format(t)}catch{return`${t.toFixed(2)} ${n}`}}function s(t,e){const r=o.activeLocale||"en-EU",c=o.activeTimezone||"Europe/Brussels",n=typeof t=="string"||typeof t=="number"?new Date(t):t;try{return new Intl.DateTimeFormat(r,{timezone:c,year:"numeric",month:"2-digit",day:"2-digit",...e}).format(n)}catch{return n.toLocaleDateString("en-GB")}}function l(t,e){const r=o.activeLocale||"en-EU",c=o.activeTimezone||"Europe/Brussels",n=typeof t=="string"||typeof t=="number"?new Date(t):t;try{return new Intl.DateTimeFormat(r,{timezone:c,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",...e}).format(n)}catch{return n.toLocaleString("en-GB")}}function f(t,e){const r=o.activeLocale||"en-EU";try{return new Intl.NumberFormat(r,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...e}).format(t/100)}catch{return`${t}%`}}function m(t,e){const r=e??o.activeVatRate??0,c=t*(r/100),n=t+c;return{net:t,vat:c,gross:n,vatRate:r}}function y(t,e,r){const{net:c,vat:n,gross:g,vatRate:F}=m(t,e),i=r||o.activeCurrency||"EUR";return`Net: ${a(c,i)} | VAT: ${a(n,i)} (${F}%) | Gross: ${a(g,i)}`}return{formatNumber:u,formatCurrency:a,formatDate:s,formatDateTime:l,formatPercent:f,calculatePriceWithVat:m,formatPriceWithVat:y}}export{h as u};
|
||||
@@ -1 +0,0 @@
|
||||
input[type=range][data-v-cbc29188]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}input[type=range][data-v-cbc29188]::-moz-range-thumb{background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}.timeline-enter-active[data-v-cbc29188]{transition:all .3s ease-out}.timeline-enter-from[data-v-cbc29188]{opacity:0;transform:translate(-10px)}
|
||||
@@ -1 +1 @@
|
||||
import{_ as s}from"./DlAUqK2U.js";import{u as a,o as i,c as u,a as e,t as o}from"./Duy9QquX.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},status:{type:Number,default:500},statusText:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.status} - ${r.statusText} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(i(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.status)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},h=s(f,[["__scopeId","data-v-a01dd0ba"]]);export{h as default};
|
||||
import{_ as s}from"./DlAUqK2U.js";import{u as a,o as i,c as u,a as e,t as o}from"./BIbQr1Hg.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},status:{type:Number,default:500},statusText:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.status} - ${r.statusText} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(i(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.status)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},h=s(f,[["__scopeId","data-v-a01dd0ba"]]);export{h as default};
|
||||
File diff suppressed because one or more lines are too long
1
frontend_admin/.nuxt/dist/client/_nuxt/edit.BOptDYkB.css
vendored
Normal file
1
frontend_admin/.nuxt/dist/client/_nuxt/edit.BOptDYkB.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar{width:6px}.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar-track{background:transparent}.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar-thumb{background-color:#64748b80;border-radius:3px}.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar-thumb:hover{background-color:#64748bb3}
|
||||
@@ -1 +0,0 @@
|
||||
.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar{width:6px}.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar-track{background:transparent}.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar-thumb{background-color:#64748b80;border-radius:3px}.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar-thumb:hover{background-color:#64748bb3}
|
||||
1
frontend_admin/.nuxt/dist/client/_nuxt/index.oH-TzkFb.css
vendored
Normal file
1
frontend_admin/.nuxt/dist/client/_nuxt/index.oH-TzkFb.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
input[type=range][data-v-aa1d3c94]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}input[type=range][data-v-aa1d3c94]::-moz-range-thumb{background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}.timeline-enter-active[data-v-aa1d3c94]{transition:all .3s ease-out}.timeline-enter-from[data-v-aa1d3c94]{opacity:0;transform:translate(-10px)}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +0,0 @@
|
||||
const _id__vue_vue_type_style_index_0_scoped_cbc29188_lang = "input[type=range][data-v-cbc29188]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}input[type=range][data-v-cbc29188]::-moz-range-thumb{background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}.timeline-enter-active[data-v-cbc29188]{transition:all .3s ease-out}.timeline-enter-from[data-v-cbc29188]{opacity:0;transform:translate(-10px)}";
|
||||
export {
|
||||
_id__vue_vue_type_style_index_0_scoped_cbc29188_lang as default
|
||||
};
|
||||
//# sourceMappingURL=_id_-styles-1.mjs-QmIN6AFS.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"_id_-styles-1.mjs-QmIN6AFS.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
@@ -1 +0,0 @@
|
||||
{"file":"_id_-styles-1.mjs-QmIN6AFS.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
@@ -1,4 +0,0 @@
|
||||
import style_0 from "./_id_-styles-1.mjs-QmIN6AFS.js";
|
||||
export default [
|
||||
style_0
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, useSSRContext, computed, ref, reactive, createVNode, resolveDynamicComponent } from "vue";
|
||||
import { ssrRenderAttrs, ssrRenderClass, ssrIncludeBooleanAttr, ssrInterpolate, ssrRenderList, ssrRenderComponent, ssrRenderVNode, ssrRenderAttr } from "vue/server-renderer";
|
||||
import { ssrRenderAttrs, ssrRenderClass, ssrIncludeBooleanAttr, ssrInterpolate, ssrRenderList, ssrRenderComponent, ssrRenderVNode, ssrRenderAttr, ssrLooseContain } from "vue/server-renderer";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import "/app/node_modules/klona/dist/index.mjs";
|
||||
import "/app/node_modules/hookable/dist/index.mjs";
|
||||
@@ -83,7 +83,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const tabs = [
|
||||
{ key: "basic", label: "Alapadatok & Kapcsolat", icon: "svg" },
|
||||
{ key: "matrix", label: "Szolgáltatások & Járművek", icon: "svg" },
|
||||
{ key: "location", label: "Helyszín & Lokáció", icon: "svg" }
|
||||
{ key: "location", label: "Helyszín & Lokáció", icon: "svg" },
|
||||
{ key: "hours", label: "Nyitvatartás", icon: "svg" }
|
||||
];
|
||||
const categoryTree = ref([]);
|
||||
const treeLoading = ref(false);
|
||||
@@ -108,12 +109,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
specializations: {
|
||||
brands: [],
|
||||
propulsion: []
|
||||
}
|
||||
},
|
||||
opening_hours: {},
|
||||
is_always_open: false
|
||||
});
|
||||
const hasChanges = computed(() => {
|
||||
if (!provider.value) return false;
|
||||
const p = provider.value;
|
||||
return form.name !== (p.name || "") || form.city !== (p.city || "") || form.address_zip !== (p.address_zip || "") || form.address_street_name !== (p.address_street_name || "") || form.address_house_number !== (p.address_house_number || "") || form.plus_code !== (p.plus_code || "") || form.contact_phone !== (p.contact_phone || "") || form.contact_email !== (p.contact_email || "") || form.website !== (p.website || "") || form.category !== (p.category || "") || JSON.stringify(form.category_ids.sort()) !== JSON.stringify((p.category_ids || []).sort()) || JSON.stringify(form.supported_vehicle_classes.sort()) !== JSON.stringify((p.supported_vehicle_classes || []).sort()) || JSON.stringify(form.specializations) !== JSON.stringify(p.specializations || { brands: [], propulsion: [] });
|
||||
if (form.name !== (p.name || "")) return true;
|
||||
if (form.address !== (p.address || "")) return true;
|
||||
if (form.city !== (p.city || "")) return true;
|
||||
if (form.address_zip !== (p.address_zip || "")) return true;
|
||||
if (form.address_street_name !== (p.address_street_name || "")) return true;
|
||||
if (form.address_street_type !== (p.address_street_type || "")) return true;
|
||||
if (form.address_house_number !== (p.address_house_number || "")) return true;
|
||||
if (form.plus_code !== (p.plus_code || "")) return true;
|
||||
if (form.contact_phone !== (p.contact_phone || "")) return true;
|
||||
if (form.contact_email !== (p.contact_email || "")) return true;
|
||||
if (form.website !== (p.website || "")) return true;
|
||||
if (form.category !== (p.category || "")) return true;
|
||||
const sortedFormCategories = [...form.category_ids].sort();
|
||||
const sortedOrigCategories = [...p.category_ids || []].sort();
|
||||
if (JSON.stringify(sortedFormCategories) !== JSON.stringify(sortedOrigCategories)) return true;
|
||||
const sortedFormClasses = [...form.supported_vehicle_classes].sort();
|
||||
const sortedOrigClasses = [...p.supported_vehicle_classes || []].sort();
|
||||
if (JSON.stringify(sortedFormClasses) !== JSON.stringify(sortedOrigClasses)) return true;
|
||||
const normalizeSpec = (spec) => ({
|
||||
brands: Array.isArray(spec?.brands) ? [...spec.brands].sort() : [],
|
||||
propulsion: Array.isArray(spec?.propulsion) ? [...spec.propulsion].sort() : []
|
||||
});
|
||||
if (JSON.stringify(normalizeSpec(form.specializations)) !== JSON.stringify(normalizeSpec(p.specializations))) return true;
|
||||
const DAYS2 = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
||||
const normalizeHours = (hours) => {
|
||||
const result = {};
|
||||
const daysSource = hours?.days || hours;
|
||||
for (const day of DAYS2) {
|
||||
const slot = daysSource?.[day];
|
||||
if (slot && typeof slot === "object" && slot.open && slot.close) {
|
||||
result[day] = { open: slot.open, close: slot.close };
|
||||
} else {
|
||||
result[day] = null;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
if (JSON.stringify(normalizeHours(form.opening_hours)) !== JSON.stringify(normalizeHours(p.opening_hours))) return true;
|
||||
if (form.is_always_open !== (p.opening_hours?.always_open === true)) return true;
|
||||
return false;
|
||||
});
|
||||
function findCategoryById(id, nodes) {
|
||||
for (const node of nodes) {
|
||||
@@ -150,44 +192,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
function isCategorySelected(id) {
|
||||
return form.category_ids.includes(id);
|
||||
}
|
||||
const DAYS = [
|
||||
{ key: "monday", label: "Hétfő" },
|
||||
{ key: "tuesday", label: "Kedd" },
|
||||
{ key: "wednesday", label: "Szerda" },
|
||||
{ key: "thursday", label: "Csütörtök" },
|
||||
{ key: "friday", label: "Péntek" },
|
||||
{ key: "saturday", label: "Szombat" },
|
||||
{ key: "sunday", label: "Vasárnap" }
|
||||
];
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_TreeNode = _sfc_main$1;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-03c94385><div class="mb-8" data-v-03c94385><button class="inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4" data-v-03c94385><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" data-v-03c94385></path></svg> Vissza a szolgáltatóhoz </button><h1 class="text-2xl font-bold text-white" data-v-03c94385>Szolgáltató szerkesztése</h1><p class="text-slate-400 mt-1" data-v-03c94385>Szolgáltató #${ssrInterpolate(_ctx.$route.params.id)}</p></div>`);
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-4a0954df><div class="mb-8" data-v-4a0954df><button class="inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4" data-v-4a0954df><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" data-v-4a0954df></path></svg> Vissza a szolgáltatóhoz </button><h1 class="text-2xl font-bold text-white" data-v-4a0954df>Szolgáltató szerkesztése</h1><p class="text-slate-400 mt-1" data-v-4a0954df>Szolgáltató #${ssrInterpolate(_ctx.$route.params.id)}</p></div>`);
|
||||
if (loading.value) {
|
||||
_push(`<div class="flex items-center justify-center py-20" data-v-03c94385><div class="text-slate-400 flex items-center gap-3" data-v-03c94385><svg class="w-5 h-5 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-03c94385></path></svg><span data-v-03c94385>Szolgáltató betöltése...</span></div></div>`);
|
||||
_push(`<div class="flex items-center justify-center py-20" data-v-4a0954df><div class="text-slate-400 flex items-center gap-3" data-v-4a0954df><svg class="w-5 h-5 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-4a0954df></path></svg><span data-v-4a0954df>Szolgáltató betöltése...</span></div></div>`);
|
||||
} else if (error.value) {
|
||||
_push(`<div class="bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8" data-v-03c94385><p class="text-rose-400" data-v-03c94385>Hiba történt a szolgáltató betöltése közben.</p><button class="mt-3 text-sm text-rose-300 hover:text-rose-200 underline" data-v-03c94385>Újrapróbálkozás</button></div>`);
|
||||
_push(`<div class="bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8" data-v-4a0954df><p class="text-rose-400" data-v-4a0954df>Hiba történt a szolgáltató betöltése közben.</p><button class="mt-3 text-sm text-rose-300 hover:text-rose-200 underline" data-v-4a0954df>Újrapróbálkozás</button></div>`);
|
||||
} else if (!provider.value) {
|
||||
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-03c94385><p class="text-slate-400 text-center py-12" data-v-03c94385>A szolgáltató nem található.</p></div>`);
|
||||
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-4a0954df><p class="text-slate-400 text-center py-12" data-v-4a0954df>A szolgáltató nem található.</p></div>`);
|
||||
} else {
|
||||
_push(`<!--[--><div class="border-b border-slate-700 mb-6" data-v-03c94385><nav class="flex gap-6 -mb-px" data-v-03c94385><!--[-->`);
|
||||
_push(`<!--[--><div class="border-b border-slate-700 mb-6" data-v-4a0954df><nav class="flex gap-6 -mb-px" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(tabs, (tab) => {
|
||||
_push(`<button class="${ssrRenderClass([activeTab.value === tab.key ? "text-indigo-400 border-indigo-400" : "text-slate-400 border-transparent hover:text-slate-300", "pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2"])}" data-v-03c94385>`);
|
||||
_push(`<button class="${ssrRenderClass([activeTab.value === tab.key ? "text-indigo-400 border-indigo-400" : "text-slate-400 border-transparent hover:text-slate-300", "pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2"])}" data-v-4a0954df>`);
|
||||
ssrRenderVNode(_push, createVNode(resolveDynamicComponent(tab.icon), { class: "w-4 h-4" }, null), _parent);
|
||||
_push(` ${ssrInterpolate(tab.label)}</button>`);
|
||||
});
|
||||
_push(`<!--]--></nav></div>`);
|
||||
if (activeTab.value === "basic") {
|
||||
_push(`<div class="max-w-3xl" data-v-03c94385><form data-v-03c94385><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-03c94385><h2 class="text-lg font-semibold text-white mb-4" data-v-03c94385>Alapadatok</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-03c94385><div class="md:col-span-2" data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Név *</label><input${ssrRenderAttr("value", form.name)} required 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Kategória</label><input${ssrRenderAttr("value", form.category)} placeholder="pl. Autószerviz, Gumiszerviz" 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Forrás</label><div class="w-full px-3 py-2 bg-slate-700/50 border border-slate-600 rounded-lg text-slate-400 text-sm" data-v-03c94385>${ssrInterpolate(provider.value.source)}</div></div></div></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-03c94385><h2 class="text-lg font-semibold text-white mb-4" data-v-03c94385>Elérhetőség</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-03c94385><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Telefon</label><input${ssrRenderAttr("value", form.contact_phone)} placeholder="+36 30 123 4567" 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Email</label><input${ssrRenderAttr("value", form.contact_email)} type="email" placeholder="info@example.com" 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" data-v-03c94385></div><div class="md:col-span-2" data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Weboldal</label><input${ssrRenderAttr("value", form.website)} placeholder="https://..." 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" data-v-03c94385></div></div></div></form></div>`);
|
||||
_push(`<div class="max-w-3xl" data-v-4a0954df><form data-v-4a0954df><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-4a0954df><h2 class="text-lg font-semibold text-white mb-4" data-v-4a0954df>Alapadatok</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-4a0954df><div class="md:col-span-2" data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Név *</label><input${ssrRenderAttr("value", form.name)} required 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Kategória</label><input${ssrRenderAttr("value", form.category)} placeholder="pl. Autószerviz, Gumiszerviz" 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Forrás</label><div class="w-full px-3 py-2 bg-slate-700/50 border border-slate-600 rounded-lg text-slate-400 text-sm" data-v-4a0954df>${ssrInterpolate(provider.value.source)}</div></div></div></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-4a0954df><h2 class="text-lg font-semibold text-white mb-4" data-v-4a0954df>Elérhetőség</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-4a0954df><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Telefon</label><input${ssrRenderAttr("value", form.contact_phone)} placeholder="+36 30 123 4567" 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Email</label><input${ssrRenderAttr("value", form.contact_email)} type="email" placeholder="info@example.com" 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" data-v-4a0954df></div><div class="md:col-span-2" data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Weboldal</label><input${ssrRenderAttr("value", form.website)} placeholder="https://..." 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" data-v-4a0954df></div></div></div></form></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (activeTab.value === "matrix") {
|
||||
_push(`<div class="max-w-4xl" data-v-03c94385><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-03c94385><h2 class="text-lg font-semibold text-white mb-2" data-v-03c94385>3D Képesség Mátrix</h2><p class="text-sm text-slate-400 mb-6" data-v-03c94385> Állítsd be, hogy a szolgáltató milyen járműosztályokhoz, szolgáltatási kategóriákhoz és specializációkhoz tartozik. </p><div class="mb-8" data-v-03c94385><h3 class="text-md font-medium text-white mb-3 flex items-center gap-2" data-v-03c94385><span class="w-6 h-6 rounded-full bg-indigo-500/20 text-indigo-400 flex items-center justify-center text-xs font-bold" data-v-03c94385>A</span> Járműosztályok (Vehicle Classes) </h3><p class="text-xs text-slate-500 mb-3" data-v-03c94385>Mely járműtípusokat szervizeli a szolgáltató?</p><div class="grid grid-cols-2 md:grid-cols-4 gap-3" data-v-03c94385><!--[-->`);
|
||||
_push(`<div class="max-w-4xl" data-v-4a0954df><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-4a0954df><h2 class="text-lg font-semibold text-white mb-2" data-v-4a0954df>3D Képesség Mátrix</h2><p class="text-sm text-slate-400 mb-6" data-v-4a0954df> Állítsd be, hogy a szolgáltató milyen járműosztályokhoz, szolgáltatási kategóriákhoz és specializációkhoz tartozik. </p><div class="mb-8" data-v-4a0954df><h3 class="text-md font-medium text-white mb-3 flex items-center gap-2" data-v-4a0954df><span class="w-6 h-6 rounded-full bg-indigo-500/20 text-indigo-400 flex items-center justify-center text-xs font-bold" data-v-4a0954df>A</span> Járműosztályok (Vehicle Classes) </h3><p class="text-xs text-slate-500 mb-3" data-v-4a0954df>Mely járműtípusokat szervizeli a szolgáltató?</p><div class="grid grid-cols-2 md:grid-cols-4 gap-3" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(VEHICLE_CLASSES, (vc) => {
|
||||
_push(`<label class="${ssrRenderClass([form.supported_vehicle_classes.includes(vc.key) ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-300" : "bg-slate-700/50 border-slate-600 hover:border-slate-500 text-slate-300", "flex items-center gap-3 p-3 rounded-lg border cursor-pointer transition"])}" data-v-03c94385><input type="checkbox"${ssrRenderAttr("value", vc.key)}${ssrIncludeBooleanAttr(form.supported_vehicle_classes.includes(vc.key)) ? " checked" : ""} class="w-4 h-4 rounded border-slate-500 bg-slate-700 text-indigo-500 focus:ring-indigo-500/50" data-v-03c94385><span class="text-sm" data-v-03c94385>${ssrInterpolate(vc.label)}</span></label>`);
|
||||
_push(`<label class="${ssrRenderClass([form.supported_vehicle_classes.includes(vc.key) ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-300" : "bg-slate-700/50 border-slate-600 hover:border-slate-500 text-slate-300", "flex items-center gap-3 p-3 rounded-lg border cursor-pointer transition"])}" data-v-4a0954df><input type="checkbox"${ssrRenderAttr("value", vc.key)}${ssrIncludeBooleanAttr(form.supported_vehicle_classes.includes(vc.key)) ? " checked" : ""} class="w-4 h-4 rounded border-slate-500 bg-slate-700 text-indigo-500 focus:ring-indigo-500/50" data-v-4a0954df><span class="text-sm" data-v-4a0954df>${ssrInterpolate(vc.label)}</span></label>`);
|
||||
});
|
||||
_push(`<!--]--></div></div><div class="mb-8" data-v-03c94385><h3 class="text-md font-medium text-white mb-3 flex items-center gap-2" data-v-03c94385><span class="w-6 h-6 rounded-full bg-emerald-500/20 text-emerald-400 flex items-center justify-center text-xs font-bold" data-v-03c94385>B</span> Szolgáltatási Kategóriák (Expertise Tags) </h3><p class="text-xs text-slate-500 mb-3" data-v-03c94385>Válaszd ki a szolgáltatóhoz tartozó kategóriákat a hierarchikus fából.</p>`);
|
||||
_push(`<!--]--></div></div><div class="mb-8" data-v-4a0954df><h3 class="text-md font-medium text-white mb-3 flex items-center gap-2" data-v-4a0954df><span class="w-6 h-6 rounded-full bg-emerald-500/20 text-emerald-400 flex items-center justify-center text-xs font-bold" data-v-4a0954df>B</span> Szolgáltatási Kategóriák (Expertise Tags) </h3><p class="text-xs text-slate-500 mb-3" data-v-4a0954df>Válaszd ki a szolgáltatóhoz tartozó kategóriákat a hierarchikus fából.</p>`);
|
||||
if (treeLoading.value) {
|
||||
_push(`<div class="flex items-center gap-2 text-sm text-slate-400 py-4" data-v-03c94385><svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-03c94385></path></svg><span data-v-03c94385>Kategóriák betöltése...</span></div>`);
|
||||
_push(`<div class="flex items-center gap-2 text-sm text-slate-400 py-4" data-v-4a0954df><svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-4a0954df></path></svg><span data-v-4a0954df>Kategóriák betöltése...</span></div>`);
|
||||
} else {
|
||||
_push(`<div class="space-y-1 max-h-96 overflow-y-auto pr-2" data-v-03c94385><!--[-->`);
|
||||
_push(`<div class="space-y-1 max-h-96 overflow-y-auto pr-2" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(categoryTree.value, (node) => {
|
||||
_push(`<div class="ml-0" data-v-03c94385><div class="flex items-center gap-2 py-1" data-v-03c94385><button class="text-slate-500 hover:text-slate-300 transition w-4 h-4 flex items-center justify-center" data-v-03c94385><svg class="${ssrRenderClass([expandedNodes.value.has(node.id) ? "rotate-90" : "", "w-3 h-3 transition-transform"])}" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" data-v-03c94385></path></svg></button><label class="flex items-center gap-2 cursor-pointer flex-1" data-v-03c94385><input type="checkbox"${ssrIncludeBooleanAttr(isCategorySelected(node.id)) ? " checked" : ""} class="w-4 h-4 rounded border-slate-500 bg-slate-700 text-indigo-500 focus:ring-indigo-500/50" data-v-03c94385><span class="text-sm font-medium text-white" data-v-03c94385>${ssrInterpolate(node.name_hu || node.name_en || node.key)}</span><span class="text-xs text-slate-500" data-v-03c94385>(Szint ${ssrInterpolate(node.level)})</span></label></div>`);
|
||||
_push(`<div class="ml-0" data-v-4a0954df><div class="flex items-center gap-2 py-1" data-v-4a0954df><button class="text-slate-500 hover:text-slate-300 transition w-4 h-4 flex items-center justify-center" data-v-4a0954df><svg class="${ssrRenderClass([expandedNodes.value.has(node.id) ? "rotate-90" : "", "w-3 h-3 transition-transform"])}" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" data-v-4a0954df></path></svg></button><label class="flex items-center gap-2 cursor-pointer flex-1" data-v-4a0954df><input type="checkbox"${ssrIncludeBooleanAttr(isCategorySelected(node.id)) ? " checked" : ""} class="w-4 h-4 rounded border-slate-500 bg-slate-700 text-indigo-500 focus:ring-indigo-500/50" data-v-4a0954df><span class="text-sm font-medium text-white" data-v-4a0954df>${ssrInterpolate(node.name_hu || node.name_en || node.key)}</span><span class="text-xs text-slate-500" data-v-4a0954df>(Szint ${ssrInterpolate(node.level)})</span></label></div>`);
|
||||
if (expandedNodes.value.has(node.id) && node.children?.length) {
|
||||
_push(`<div class="ml-6 border-l border-slate-700 pl-3" data-v-03c94385><!--[-->`);
|
||||
_push(`<div class="ml-6 border-l border-slate-700 pl-3" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(node.children, (child) => {
|
||||
_push(`<div data-v-03c94385>`);
|
||||
_push(`<div data-v-4a0954df>`);
|
||||
_push(ssrRenderComponent(_component_TreeNode, {
|
||||
node: child,
|
||||
"selected-ids": form.category_ids,
|
||||
@@ -206,47 +257,62 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<!--]--></div>`);
|
||||
}
|
||||
if (form.category_ids.length > 0) {
|
||||
_push(`<div class="mt-4 flex flex-wrap gap-2" data-v-03c94385><!--[-->`);
|
||||
_push(`<div class="mt-4 flex flex-wrap gap-2" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(form.category_ids, (id) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-2 py-1 bg-indigo-500/10 text-indigo-300 rounded-full text-xs" data-v-03c94385>${ssrInterpolate(getCategoryName(id))} <button class="hover:text-white transition" data-v-03c94385><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-03c94385></path></svg></button></span>`);
|
||||
_push(`<span class="inline-flex items-center gap-1 px-2 py-1 bg-indigo-500/10 text-indigo-300 rounded-full text-xs" data-v-4a0954df>${ssrInterpolate(getCategoryName(id))} <button class="hover:text-white transition" data-v-4a0954df><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-4a0954df></path></svg></button></span>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="mb-4" data-v-03c94385><h3 class="text-md font-medium text-white mb-3 flex items-center gap-2" data-v-03c94385><span class="w-6 h-6 rounded-full bg-amber-500/20 text-amber-400 flex items-center justify-center text-xs font-bold" data-v-03c94385>C</span> Specializációk </h3><p class="text-xs text-slate-500 mb-3" data-v-03c94385>Adj meg speciális márkákat, hajtáslánc típusokat vagy egyéb címkéket.</p><div class="grid grid-cols-1 md:grid-cols-2 gap-6" data-v-03c94385><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Márkák (Brands)</label><div class="flex flex-wrap gap-2 mb-2" data-v-03c94385><!--[-->`);
|
||||
_push(`</div><div class="mb-4" data-v-4a0954df><h3 class="text-md font-medium text-white mb-3 flex items-center gap-2" data-v-4a0954df><span class="w-6 h-6 rounded-full bg-amber-500/20 text-amber-400 flex items-center justify-center text-xs font-bold" data-v-4a0954df>C</span> Specializációk </h3><p class="text-xs text-slate-500 mb-3" data-v-4a0954df>Adj meg speciális márkákat, hajtáslánc típusokat vagy egyéb címkéket.</p><div class="grid grid-cols-1 md:grid-cols-2 gap-6" data-v-4a0954df><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Márkák (Brands)</label><div class="flex flex-wrap gap-2 mb-2" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(form.specializations.brands, (brand, idx) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-2 py-1 bg-amber-500/10 text-amber-300 rounded-full text-xs" data-v-03c94385>${ssrInterpolate(brand)} <button class="hover:text-white transition" data-v-03c94385><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-03c94385></path></svg></button></span>`);
|
||||
_push(`<span class="inline-flex items-center gap-1 px-2 py-1 bg-amber-500/10 text-amber-300 rounded-full text-xs" data-v-4a0954df>${ssrInterpolate(brand)} <button class="hover:text-white transition" data-v-4a0954df><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-4a0954df></path></svg></button></span>`);
|
||||
});
|
||||
_push(`<!--]--></div><div class="flex gap-2" data-v-03c94385><input${ssrRenderAttr("value", brandInput.value)} placeholder="pl. Volvo, Scania" class="flex-1 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" data-v-03c94385><button${ssrIncludeBooleanAttr(!brandInput.value.trim()) ? " disabled" : ""} class="px-3 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm transition" data-v-03c94385> Hozzáad </button></div></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Hajtáslánc (Propulsion)</label><div class="flex flex-wrap gap-2 mb-2" data-v-03c94385><!--[-->`);
|
||||
_push(`<!--]--></div><div class="flex gap-2" data-v-4a0954df><input${ssrRenderAttr("value", brandInput.value)} placeholder="pl. Volvo, Scania" class="flex-1 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" data-v-4a0954df><button${ssrIncludeBooleanAttr(!brandInput.value.trim()) ? " disabled" : ""} class="px-3 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm transition" data-v-4a0954df> Hozzáad </button></div></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Hajtáslánc (Propulsion)</label><div class="flex flex-wrap gap-2 mb-2" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(form.specializations.propulsion, (prop, idx) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-2 py-1 bg-emerald-500/10 text-emerald-300 rounded-full text-xs" data-v-03c94385>${ssrInterpolate(prop)} <button class="hover:text-white transition" data-v-03c94385><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-03c94385></path></svg></button></span>`);
|
||||
_push(`<span class="inline-flex items-center gap-1 px-2 py-1 bg-emerald-500/10 text-emerald-300 rounded-full text-xs" data-v-4a0954df>${ssrInterpolate(prop)} <button class="hover:text-white transition" data-v-4a0954df><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-4a0954df></path></svg></button></span>`);
|
||||
});
|
||||
_push(`<!--]--></div><div class="flex gap-2" data-v-03c94385><input${ssrRenderAttr("value", propulsionInput.value)} placeholder="pl. EV, Hybrid, Diesel" class="flex-1 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" data-v-03c94385><button${ssrIncludeBooleanAttr(!propulsionInput.value.trim()) ? " disabled" : ""} class="px-3 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm transition" data-v-03c94385> Hozzáad </button></div></div></div></div></div></div>`);
|
||||
_push(`<!--]--></div><div class="flex gap-2" data-v-4a0954df><input${ssrRenderAttr("value", propulsionInput.value)} placeholder="pl. EV, Hybrid, Diesel" class="flex-1 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" data-v-4a0954df><button${ssrIncludeBooleanAttr(!propulsionInput.value.trim()) ? " disabled" : ""} class="px-3 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm transition" data-v-4a0954df> Hozzáad </button></div></div></div></div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (activeTab.value === "location") {
|
||||
_push(`<div class="max-w-3xl" data-v-03c94385><form data-v-03c94385><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-03c94385><h2 class="text-lg font-semibold text-white mb-4" data-v-03c94385>Cím adatok</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-03c94385><div class="md:col-span-2" data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Teljes cím</label><input${ssrRenderAttr("value", form.address)} placeholder="Teljes cím szövege" 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Város</label><input${ssrRenderAttr("value", form.city)} placeholder="Budapest" 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Irányítószám</label><input${ssrRenderAttr("value", form.address_zip)} placeholder="1011" 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Utca</label><input${ssrRenderAttr("value", form.address_street_name)} placeholder="Egressy" 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" data-v-03c94385></div><div data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Házszám</label><input${ssrRenderAttr("value", form.address_house_number)} placeholder="4/b" 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" data-v-03c94385></div><div class="md:col-span-2" data-v-03c94385><label class="block text-sm font-medium text-slate-300 mb-1" data-v-03c94385>Plus Code</label><input${ssrRenderAttr("value", form.plus_code)} placeholder="8FVC9X8V+XV" 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" data-v-03c94385></div></div></div></form></div>`);
|
||||
_push(`<div class="max-w-3xl" data-v-4a0954df><form data-v-4a0954df><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-4a0954df><h2 class="text-lg font-semibold text-white mb-4" data-v-4a0954df>Cím adatok</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-4a0954df><div class="md:col-span-2" data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Teljes cím</label><input${ssrRenderAttr("value", form.address)} placeholder="Teljes cím szövege" 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Város</label><input${ssrRenderAttr("value", form.city)} placeholder="Budapest" 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Irányítószám</label><input${ssrRenderAttr("value", form.address_zip)} placeholder="1011" 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Utca</label><input${ssrRenderAttr("value", form.address_street_name)} placeholder="Egressy" 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" data-v-4a0954df></div><div data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Házszám</label><input${ssrRenderAttr("value", form.address_house_number)} placeholder="4/b" 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" data-v-4a0954df></div><div class="md:col-span-2" data-v-4a0954df><label class="block text-sm font-medium text-slate-300 mb-1" data-v-4a0954df>Plus Code</label><input${ssrRenderAttr("value", form.plus_code)} placeholder="8FVC9X8V+XV" 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" data-v-4a0954df></div></div></div></form></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="sticky bottom-0 bg-slate-900/90 backdrop-blur-sm border-t border-slate-700 -mx-6 px-6 py-4 mt-8" data-v-03c94385><div class="flex items-center justify-between max-w-4xl" data-v-03c94385><div class="text-sm text-slate-400" data-v-03c94385>`);
|
||||
if (hasChanges.value) {
|
||||
_push(`<span class="text-amber-400" data-v-03c94385>● Módosítások el nem mentve</span>`);
|
||||
if (activeTab.value === "hours") {
|
||||
_push(`<div class="max-w-3xl" data-v-4a0954df><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 mb-6" data-v-4a0954df><h2 class="text-lg font-semibold text-white mb-2" data-v-4a0954df>Nyitvatartás</h2><p class="text-sm text-slate-400 mb-6" data-v-4a0954df> Állítsd be a szolgáltató nyitvatartási idejét napokra bontva. </p><div class="mb-6 p-4 rounded-lg border bg-indigo-500/5 border-indigo-500/20" data-v-4a0954df><label class="flex items-center gap-3 cursor-pointer" data-v-4a0954df><input type="checkbox"${ssrIncludeBooleanAttr(Array.isArray(form.is_always_open) ? ssrLooseContain(form.is_always_open, null) : form.is_always_open) ? " checked" : ""} class="w-5 h-5 rounded border-slate-500 bg-slate-700 text-indigo-500 focus:ring-indigo-500/50" data-v-4a0954df><div data-v-4a0954df><span class="text-sm font-medium text-white" data-v-4a0954df>Folyamatos (0-24) nyitvatartás</span><p class="text-xs text-slate-400 mt-0.5" data-v-4a0954df>A szolgáltató a hét minden napján 0-24 óráig nyitva van</p></div></label></div><div class="${ssrRenderClass([{ "opacity-50 pointer-events-none": form.is_always_open }, "flex flex-wrap gap-2 mb-6"])}" data-v-4a0954df><button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-emerald-600/30 text-emerald-400 hover:bg-emerald-600/10 transition" data-v-4a0954df> 24/7 Folyamatos nyitvatartás </button><button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-indigo-600/30 text-indigo-400 hover:bg-indigo-600/10" data-v-4a0954df> Hétköznapok másolása (Hétfő → K-P) </button><button class="px-3 py-1.5 text-xs font-medium rounded-lg border border-rose-600/30 text-rose-400 hover:bg-rose-600/10" data-v-4a0954df> Összes törlése </button></div><div class="${ssrRenderClass([{ "opacity-50 pointer-events-none": form.is_always_open }, "space-y-3"])}" data-v-4a0954df><!--[-->`);
|
||||
ssrRenderList(DAYS, (day) => {
|
||||
_push(`<div class="${ssrRenderClass([form.opening_hours[day.key] ? "bg-indigo-500/5 border-indigo-500/20" : "bg-slate-700/30 border-slate-600", "flex items-center gap-4 p-4 rounded-lg border"])}" data-v-4a0954df><label class="flex items-center gap-2 w-36 flex-shrink-0 cursor-pointer" data-v-4a0954df><input type="checkbox"${ssrIncludeBooleanAttr(!!form.opening_hours[day.key]) ? " checked" : ""}${ssrIncludeBooleanAttr(form.is_always_open) ? " disabled" : ""} class="w-4 h-4 rounded border-slate-500 bg-slate-700 text-indigo-500 focus:ring-indigo-500/50" data-v-4a0954df><span class="text-sm font-medium text-white" data-v-4a0954df>${ssrInterpolate(day.label)}</span></label>`);
|
||||
if (form.opening_hours[day.key]) {
|
||||
_push(`<div class="flex items-center gap-2" data-v-4a0954df><input type="time"${ssrRenderAttr("value", form.opening_hours[day.key]?.open || "08:00")}${ssrIncludeBooleanAttr(form.is_always_open) ? " disabled" : ""} class="w-28 px-2 py-1.5 bg-slate-700 border border-slate-600 rounded-lg text-white text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 disabled:opacity-50" data-v-4a0954df><span class="text-slate-500 text-sm" data-v-4a0954df>–</span><input type="time"${ssrRenderAttr("value", form.opening_hours[day.key]?.close || "17:00")}${ssrIncludeBooleanAttr(form.is_always_open) ? " disabled" : ""} class="w-28 px-2 py-1.5 bg-slate-700 border border-slate-600 rounded-lg text-white text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 disabled:opacity-50" data-v-4a0954df></div>`);
|
||||
} else {
|
||||
_push(`<span class="text-sm text-slate-500 italic" data-v-4a0954df>Zárva</span>`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
});
|
||||
_push(`<!--]--></div></div></div>`);
|
||||
} else {
|
||||
_push(`<span class="text-slate-500" data-v-03c94385>Nincs változás</span>`);
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="flex gap-3" data-v-03c94385><button class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-03c94385> Mégse </button><button${ssrIncludeBooleanAttr(saveLoading.value || !hasChanges.value) ? " disabled" : ""} class="px-6 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-03c94385>`);
|
||||
if (saveLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-03c94385></path></svg>`);
|
||||
_push(`<div class="sticky bottom-0 bg-slate-900/90 backdrop-blur-sm border-t border-slate-700 -mx-6 px-6 py-4 mt-8" data-v-4a0954df><div class="flex items-center justify-between max-w-4xl" data-v-4a0954df><div class="text-sm text-slate-400" data-v-4a0954df>`);
|
||||
if (hasChanges.value) {
|
||||
_push(`<span class="text-amber-400" data-v-4a0954df>● Módosítások el nem mentve</span>`);
|
||||
} else {
|
||||
_push(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-03c94385><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-03c94385></path></svg>`);
|
||||
_push(`<span class="text-slate-500" data-v-4a0954df>Nincs változás</span>`);
|
||||
}
|
||||
_push(`</div><div class="flex gap-3" data-v-4a0954df><button class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-4a0954df> Mégse </button><button${ssrIncludeBooleanAttr(saveLoading.value || !hasChanges.value) ? " disabled" : ""} class="px-6 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-4a0954df>`);
|
||||
if (saveLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-4a0954df></path></svg>`);
|
||||
} else {
|
||||
_push(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-4a0954df><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-4a0954df></path></svg>`);
|
||||
}
|
||||
_push(` Mentés </button></div></div></div><!--]-->`);
|
||||
}
|
||||
if (toast.value) {
|
||||
_push(`<div class="${ssrRenderClass([toast.value.type === "success" ? "bg-emerald-600 text-white" : "bg-rose-600 text-white", "fixed top-4 right-4 z-50 px-4 py-3 rounded-lg shadow-xl text-sm font-medium transition-all duration-300"])}" data-v-03c94385>${ssrInterpolate(toast.value.message)}</div>`);
|
||||
_push(`<div class="${ssrRenderClass([toast.value.type === "success" ? "bg-emerald-600 text-white" : "bg-rose-600 text-white", "fixed top-4 right-4 z-50 px-4 py-3 rounded-lg shadow-xl text-sm font-medium transition-all duration-300"])}" data-v-4a0954df>${ssrInterpolate(toast.value.message)}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -260,8 +326,8 @@ _sfc_main.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/providers/[id]/edit.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-03c94385"]]);
|
||||
const edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4a0954df"]]);
|
||||
export {
|
||||
edit as default
|
||||
};
|
||||
//# sourceMappingURL=edit-Db3uK3sd.js.map
|
||||
//# sourceMappingURL=edit-DQMBygGu.js.map
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-DQMBygGu.js.map
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-DQMBygGu.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-DQMBygGu.js.map.json
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-DQMBygGu.js.map.json
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +0,0 @@
|
||||
const edit_vue_vue_type_style_index_0_scoped_03c94385_lang = ".overflow-y-auto[data-v-03c94385]::-webkit-scrollbar{width:6px}.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar-track{background:transparent}.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar-thumb{background-color:#64748b80;border-radius:3px}.overflow-y-auto[data-v-03c94385]::-webkit-scrollbar-thumb:hover{background-color:#64748bb3}";
|
||||
export {
|
||||
edit_vue_vue_type_style_index_0_scoped_03c94385_lang as default
|
||||
};
|
||||
//# sourceMappingURL=edit-styles-1.mjs-BA90eYv2.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"edit-styles-1.mjs-BA90eYv2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
@@ -1 +0,0 @@
|
||||
{"file":"edit-styles-1.mjs-BA90eYv2.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
5
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles-1.mjs-YVNjgFq6.js
vendored
Normal file
5
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles-1.mjs-YVNjgFq6.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
const edit_vue_vue_type_style_index_0_scoped_4a0954df_lang = ".overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar{width:6px}.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar-track{background:transparent}.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar-thumb{background-color:#64748b80;border-radius:3px}.overflow-y-auto[data-v-4a0954df]::-webkit-scrollbar-thumb:hover{background-color:#64748bb3}";
|
||||
export {
|
||||
edit_vue_vue_type_style_index_0_scoped_4a0954df_lang as default
|
||||
};
|
||||
//# sourceMappingURL=edit-styles-1.mjs-YVNjgFq6.js.map
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles-1.mjs-YVNjgFq6.js.map
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles-1.mjs-YVNjgFq6.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-styles-1.mjs-YVNjgFq6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles-1.mjs-YVNjgFq6.js.map.json
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles-1.mjs-YVNjgFq6.js.map.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"file":"edit-styles-1.mjs-YVNjgFq6.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
@@ -1,4 +0,0 @@
|
||||
import style_0 from "./edit-styles-1.mjs-BA90eYv2.js";
|
||||
export default [
|
||||
style_0
|
||||
]
|
||||
4
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles.DRyZamYQ.mjs
vendored
Normal file
4
frontend_admin/.nuxt/dist/server/_nuxt/edit-styles.DRyZamYQ.mjs
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import style_0 from "./edit-styles-1.mjs-YVNjgFq6.js";
|
||||
export default [
|
||||
style_0
|
||||
]
|
||||
5
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-1.mjs-BTLckatc.js
vendored
Normal file
5
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-1.mjs-BTLckatc.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-1.mjs-BTLckatc.js.map
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-1.mjs-BTLckatc.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"entry-styles-1.mjs-BTLckatc.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-1.mjs-BTLckatc.js.map.json
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-1.mjs-BTLckatc.js.map.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"file":"entry-styles-1.mjs-BTLckatc.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"entry-styles-1.mjs-Dwi00BYZ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
@@ -1 +0,0 @@
|
||||
{"file":"entry-styles-1.mjs-Dwi00BYZ.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
5
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-2.mjs-CjBdWjhK.js
vendored
Normal file
5
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-2.mjs-CjBdWjhK.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-2.mjs-CjBdWjhK.js.map
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-2.mjs-CjBdWjhK.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"entry-styles-2.mjs-CjBdWjhK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-2.mjs-CjBdWjhK.js.map.json
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles-2.mjs-CjBdWjhK.js.map.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"file":"entry-styles-2.mjs-CjBdWjhK.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"entry-styles-2.mjs-DlODQeqc.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
@@ -1 +0,0 @@
|
||||
{"file":"entry-styles-2.mjs-DlODQeqc.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
8
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles.CDharU4c.mjs
vendored
Normal file
8
frontend_admin/.nuxt/dist/server/_nuxt/entry-styles.CDharU4c.mjs
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import style_0 from "./entry-styles-1.mjs-BTLckatc.js";
|
||||
import style_1 from "./entry-styles-2.mjs-CjBdWjhK.js";
|
||||
import style_2 from "./entry-styles-3.mjs-C1rWf53M.js";
|
||||
export default [
|
||||
style_0,
|
||||
style_1,
|
||||
style_2
|
||||
]
|
||||
@@ -1,8 +0,0 @@
|
||||
import style_0 from "./entry-styles-1.mjs-Dwi00BYZ.js";
|
||||
import style_1 from "./entry-styles-2.mjs-DlODQeqc.js";
|
||||
import style_2 from "./entry-styles-3.mjs-C1rWf53M.js";
|
||||
export default [
|
||||
style_0,
|
||||
style_1,
|
||||
style_2
|
||||
]
|
||||
@@ -19,7 +19,7 @@ import "/app/node_modules/ohash/dist/index.mjs";
|
||||
import "/app/node_modules/@unhead/vue/dist/index.mjs";
|
||||
import "@vue/devtools-api";
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "[id]",
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const route = useRoute();
|
||||
@@ -33,9 +33,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const rejectReason = ref("");
|
||||
const showFlagModal = ref(false);
|
||||
const flagReason = ref("");
|
||||
const showEditModal = ref(false);
|
||||
const editLoading = ref(false);
|
||||
const editForm = ref({});
|
||||
const activeTab = ref("data");
|
||||
const validations = ref([]);
|
||||
const validationsLoading = ref(false);
|
||||
@@ -93,6 +90,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
return "text-rose-400/60";
|
||||
}
|
||||
});
|
||||
const hasOpeningHours = computed(() => {
|
||||
const hours = provider.value?.opening_hours;
|
||||
if (!hours || typeof hours !== "object") return false;
|
||||
return DAYS.some((day) => {
|
||||
const slot = hours[day.key];
|
||||
return slot && typeof slot === "object" && slot.open && slot.close;
|
||||
});
|
||||
});
|
||||
const hasSpecializations = computed(() => {
|
||||
const spec = provider.value?.specializations;
|
||||
if (!spec || typeof spec !== "object") return false;
|
||||
return Array.isArray(spec.brands) && spec.brands.length > 0 || Array.isArray(spec.propulsion) && spec.propulsion.length > 0;
|
||||
});
|
||||
const DAYS = [
|
||||
{ key: "monday", label: "Hétfő" },
|
||||
{ key: "tuesday", label: "Kedd" },
|
||||
{ key: "wednesday", label: "Szerda" },
|
||||
{ key: "thursday", label: "Csütörtök" },
|
||||
{ key: "friday", label: "Péntek" },
|
||||
{ key: "saturday", label: "Szombat" },
|
||||
{ key: "sunday", label: "Vasárnap" }
|
||||
];
|
||||
function getDayHours(dayKey) {
|
||||
const hours = provider.value?.opening_hours;
|
||||
if (!hours || typeof hours !== "object") return null;
|
||||
const slot = hours[dayKey];
|
||||
if (slot && typeof slot === "object" && slot.open && slot.close) {
|
||||
return { open: slot.open, close: slot.close };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function statusLabel(status) {
|
||||
switch (status) {
|
||||
case "approved":
|
||||
@@ -117,6 +145,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
return "";
|
||||
}
|
||||
}
|
||||
function vehicleClassLabel(key) {
|
||||
const labels = {
|
||||
car: "Személyautó",
|
||||
motorcycle: "Motorkerékpár",
|
||||
truck: "Teherautó",
|
||||
hgv: "Nehézgépjármű (HGV)",
|
||||
light_commercial: "Kishaszonjármű",
|
||||
personal: "Személyes",
|
||||
boat: "Csónak/Vízi",
|
||||
other: "Egyéb"
|
||||
};
|
||||
return labels[key] || key;
|
||||
}
|
||||
function validationTypeLabel(type) {
|
||||
const labels = {
|
||||
phone_verified: "Telefon igazolt",
|
||||
@@ -239,54 +280,115 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
watch(activeTab, onTabChange);
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_NuxtLink = __nuxt_component_0;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-cbc29188><div class="mb-8" data-v-cbc29188><button class="inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" data-v-cbc29188></path></svg> Vissza a szolgáltatókhoz </button><h1 class="text-2xl font-bold text-white" data-v-cbc29188>Szolgáltató részletek</h1><p class="text-slate-400 mt-1" data-v-cbc29188>Szolgáltató #${ssrInterpolate(_ctx.$route.params.id)}</p></div>`);
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-aa1d3c94><div class="mb-8" data-v-aa1d3c94><button class="inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-white transition mb-4" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" data-v-aa1d3c94></path></svg> Vissza a szolgáltatókhoz </button><h1 class="text-2xl font-bold text-white" data-v-aa1d3c94>Szolgáltató részletek</h1><p class="text-slate-400 mt-1" data-v-aa1d3c94>Szolgáltató #${ssrInterpolate(_ctx.$route.params.id)}</p></div>`);
|
||||
if (loading.value) {
|
||||
_push(`<div class="flex items-center justify-center py-20" data-v-cbc29188><div class="text-slate-400 flex items-center gap-3" data-v-cbc29188><svg class="w-5 h-5 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg><span data-v-cbc29188>Szolgáltató betöltése...</span></div></div>`);
|
||||
_push(`<div class="flex items-center justify-center py-20" data-v-aa1d3c94><div class="text-slate-400 flex items-center gap-3" data-v-aa1d3c94><svg class="w-5 h-5 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg><span data-v-aa1d3c94>Szolgáltató betöltése...</span></div></div>`);
|
||||
} else if (error.value) {
|
||||
_push(`<div class="bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8" data-v-cbc29188><p class="text-rose-400" data-v-cbc29188>Hiba történt a szolgáltató betöltése közben.</p><button class="mt-3 text-sm text-rose-300 hover:text-rose-200 underline" data-v-cbc29188>Újrapróbálkozás</button></div>`);
|
||||
_push(`<div class="bg-rose-500/10 border border-rose-500/30 rounded-xl p-6 mb-8" data-v-aa1d3c94><p class="text-rose-400" data-v-aa1d3c94>Hiba történt a szolgáltató betöltése közben.</p><button class="mt-3 text-sm text-rose-300 hover:text-rose-200 underline" data-v-aa1d3c94>Újrapróbálkozás</button></div>`);
|
||||
} else if (!provider.value) {
|
||||
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><p class="text-slate-400 text-center py-12" data-v-cbc29188>A szolgáltató nem található.</p></div>`);
|
||||
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><p class="text-slate-400 text-center py-12" data-v-aa1d3c94>A szolgáltató nem található.</p></div>`);
|
||||
} else {
|
||||
_push(`<!--[--><div class="${ssrRenderClass([statusBannerClass.value, "rounded-xl border p-4 mb-6 flex items-center gap-3"])}" data-v-cbc29188><span class="${ssrRenderClass([statusIconClass.value, "flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center"])}" data-v-cbc29188>`);
|
||||
_push(`<!--[--><div class="${ssrRenderClass([statusBannerClass.value, "rounded-xl border p-4 mb-6 flex items-center gap-3"])}" data-v-aa1d3c94><span class="${ssrRenderClass([statusIconClass.value, "flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center"])}" data-v-aa1d3c94>`);
|
||||
if (provider.value.status === "approved") {
|
||||
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-cbc29188></path></svg>`);
|
||||
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-aa1d3c94></path></svg>`);
|
||||
} else if (provider.value.status === "pending") {
|
||||
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" data-v-cbc29188></path></svg>`);
|
||||
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" data-v-aa1d3c94></path></svg>`);
|
||||
} else {
|
||||
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-cbc29188></path></svg>`);
|
||||
_push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-aa1d3c94></path></svg>`);
|
||||
}
|
||||
_push(`</span><div data-v-cbc29188><p class="${ssrRenderClass([statusTextClass.value, "text-sm font-medium"])}" data-v-cbc29188>${ssrInterpolate(statusLabel(provider.value.status))}</p><p class="${ssrRenderClass([statusSubtextClass.value, "text-xs mt-0.5"])}" data-v-cbc29188>${ssrInterpolate(statusDescription(provider.value.status))}</p></div></div><div class="border-b border-slate-700 mb-6" data-v-cbc29188><nav class="flex gap-6 -mb-px" data-v-cbc29188><!--[-->`);
|
||||
_push(`</span><div data-v-aa1d3c94><p class="${ssrRenderClass([statusTextClass.value, "text-sm font-medium"])}" data-v-aa1d3c94>${ssrInterpolate(statusLabel(provider.value.status))}</p><p class="${ssrRenderClass([statusSubtextClass.value, "text-xs mt-0.5"])}" data-v-aa1d3c94>${ssrInterpolate(statusDescription(provider.value.status))}</p></div></div><div class="border-b border-slate-700 mb-6" data-v-aa1d3c94><nav class="flex gap-6 -mb-px" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(tabs, (tab) => {
|
||||
_push(`<button class="${ssrRenderClass([activeTab.value === tab.key ? "text-indigo-400 border-indigo-400" : "text-slate-400 border-transparent hover:text-slate-300", "pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2"])}" data-v-cbc29188>`);
|
||||
_push(`<button class="${ssrRenderClass([activeTab.value === tab.key ? "text-indigo-400 border-indigo-400" : "text-slate-400 border-transparent hover:text-slate-300", "pb-3 text-sm font-medium border-b-2 transition flex items-center gap-2"])}" data-v-aa1d3c94>`);
|
||||
ssrRenderVNode(_push, createVNode(resolveDynamicComponent(tab.icon), { class: "w-4 h-4" }, null), _parent);
|
||||
_push(` ${ssrInterpolate(tab.label)}</button>`);
|
||||
});
|
||||
_push(`<!--]--></nav></div>`);
|
||||
if (activeTab.value === "data") {
|
||||
_push(`<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" data-v-cbc29188><div class="lg:col-span-2 space-y-6" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Alapadatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-cbc29188><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Név</dt><dd class="text-sm text-white mt-1 font-medium" data-v-cbc29188>${ssrInterpolate(provider.value.name)}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Kategória</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.category || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Forrás</dt><dd class="mt-1" data-v-cbc29188><code class="text-sm font-mono text-amber-300 bg-amber-500/10 px-2 py-0.5 rounded" data-v-cbc29188>${ssrInterpolate(provider.value.source)}</code></dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Validációs pontszám</dt><dd class="mt-1" data-v-cbc29188><div class="flex items-center gap-2" data-v-cbc29188><div class="w-24 h-2 bg-slate-700 rounded-full overflow-hidden" data-v-cbc29188><div class="${ssrRenderClass([provider.value.validation_score >= 50 ? "bg-emerald-500" : provider.value.validation_score >= 20 ? "bg-amber-500" : "bg-slate-500", "h-full rounded-full transition-all"])}" style="${ssrRenderStyle({ width: Math.min(provider.value.validation_score, 100) + "%" })}" data-v-cbc29188></div></div><span class="text-sm text-white font-medium" data-v-cbc29188>${ssrInterpolate(provider.value.validation_score)}</span></div></dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Létrehozva</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(formatDate(provider.value.created_at))}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Beküldő user ID</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.added_by_user_id || "—")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Cím adatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-cbc29188><div class="md:col-span-2" data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Teljes cím</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Város</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.city || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Irányítószám</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address_zip || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Utca</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address_street_name || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Házszám</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.address_house_number || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Plus Code</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.plus_code || "—")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Elérhetőség</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-cbc29188><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Telefon</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.contact_phone || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Email</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>${ssrInterpolate(provider.value.contact_email || "—")}</dd></div><div data-v-cbc29188><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-cbc29188>Weboldal</dt><dd class="text-sm text-white mt-1" data-v-cbc29188>`);
|
||||
_push(`<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" data-v-aa1d3c94><div class="lg:col-span-2 space-y-6" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Alapadatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-aa1d3c94><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Név</dt><dd class="text-sm text-white mt-1 font-medium" data-v-aa1d3c94>${ssrInterpolate(provider.value.name)}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Kategória</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.category || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Forrás</dt><dd class="mt-1" data-v-aa1d3c94><code class="text-sm font-mono text-amber-300 bg-amber-500/10 px-2 py-0.5 rounded" data-v-aa1d3c94>${ssrInterpolate(provider.value.source)}</code></dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Validációs pontszám</dt><dd class="mt-1" data-v-aa1d3c94><div class="flex items-center gap-2" data-v-aa1d3c94><div class="w-24 h-2 bg-slate-700 rounded-full overflow-hidden" data-v-aa1d3c94><div class="${ssrRenderClass([provider.value.validation_score >= 50 ? "bg-emerald-500" : provider.value.validation_score >= 20 ? "bg-amber-500" : "bg-slate-500", "h-full rounded-full transition-all"])}" style="${ssrRenderStyle({ width: Math.min(provider.value.validation_score, 100) + "%" })}" data-v-aa1d3c94></div></div><span class="text-sm text-white font-medium" data-v-aa1d3c94>${ssrInterpolate(provider.value.validation_score)}</span></div></dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Létrehozva</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(formatDate(provider.value.created_at))}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Beküldő user ID</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.added_by_user_id || "—")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Cím adatok</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-aa1d3c94><div class="md:col-span-2" data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Teljes cím</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Város</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.city || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Irányítószám</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address_zip || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Utca</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address_street_name || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Házszám</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.address_house_number || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Plus Code</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.plus_code || "—")}</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Elérhetőség</h2><dl class="grid grid-cols-1 md:grid-cols-2 gap-4" data-v-aa1d3c94><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Telefon</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.contact_phone || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Email</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>${ssrInterpolate(provider.value.contact_email || "—")}</dd></div><div data-v-aa1d3c94><dt class="text-xs text-slate-500 uppercase tracking-wider" data-v-aa1d3c94>Weboldal</dt><dd class="text-sm text-white mt-1" data-v-aa1d3c94>`);
|
||||
if (provider.value.website) {
|
||||
_push(`<a${ssrRenderAttr("href", provider.value.website)} target="_blank" class="text-indigo-400 hover:text-indigo-300 underline" data-v-cbc29188>${ssrInterpolate(provider.value.website)}</a>`);
|
||||
_push(`<a${ssrRenderAttr("href", provider.value.website)} target="_blank" class="text-indigo-400 hover:text-indigo-300 underline" data-v-aa1d3c94>${ssrInterpolate(provider.value.website)}</a>`);
|
||||
} else {
|
||||
_push(`<span data-v-cbc29188>—</span>`);
|
||||
_push(`<span data-v-aa1d3c94>—</span>`);
|
||||
}
|
||||
_push(`</dd></div></dl></div></div><div class="space-y-4" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Moderációs műveletek</h2>`);
|
||||
if (provider.value.status === "pending") {
|
||||
_push(`<div class="space-y-3" data-v-cbc29188><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188>`);
|
||||
if (actionLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
||||
_push(`</dd></div></dl></div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Szolgáltatások</h2>`);
|
||||
if (provider.value.category_ids && provider.value.category_ids.length > 0) {
|
||||
_push(`<div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(provider.value.category_ids, (catId) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-indigo-500/10 text-indigo-300 rounded-full text-xs font-medium" data-v-aa1d3c94> #${ssrInterpolate(catId)}</span>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
} else {
|
||||
_push(`<p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincsenek kategóriák beállítva</p>`);
|
||||
}
|
||||
_push(`</div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Járműosztályok</h2>`);
|
||||
if (provider.value.supported_vehicle_classes && provider.value.supported_vehicle_classes.length > 0) {
|
||||
_push(`<div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(provider.value.supported_vehicle_classes, (vc) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-emerald-500/10 text-emerald-300 rounded-full text-xs font-medium" data-v-aa1d3c94>${ssrInterpolate(vehicleClassLabel(vc))}</span>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
} else {
|
||||
_push(`<p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincsenek járműosztályok beállítva</p>`);
|
||||
}
|
||||
_push(`</div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Specializációk</h2>`);
|
||||
if (hasSpecializations.value) {
|
||||
_push(`<div class="space-y-3" data-v-aa1d3c94>`);
|
||||
if (provider.value.specializations?.brands?.length) {
|
||||
_push(`<div data-v-aa1d3c94><h3 class="text-xs text-slate-500 uppercase tracking-wider mb-2" data-v-aa1d3c94>Márkák</h3><div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(provider.value.specializations.brands, (brand) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-amber-500/10 text-amber-300 rounded-full text-xs font-medium" data-v-aa1d3c94>${ssrInterpolate(brand)}</span>`);
|
||||
});
|
||||
_push(`<!--]--></div></div>`);
|
||||
} else {
|
||||
_push(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-cbc29188></path></svg>`);
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(` Jóváhagyás </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-cbc29188></path></svg> Elutasítás </button></div>`);
|
||||
if (provider.value.specializations?.propulsion?.length) {
|
||||
_push(`<div data-v-aa1d3c94><h3 class="text-xs text-slate-500 uppercase tracking-wider mb-2" data-v-aa1d3c94>Hajtáslánc</h3><div class="flex flex-wrap gap-2" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(provider.value.specializations.propulsion, (prop) => {
|
||||
_push(`<span class="inline-flex items-center gap-1 px-3 py-1.5 bg-cyan-500/10 text-cyan-300 rounded-full text-xs font-medium" data-v-aa1d3c94>${ssrInterpolate(prop)}</span>`);
|
||||
});
|
||||
_push(`<!--]--></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincsenek specializációk beállítva</p>`);
|
||||
}
|
||||
_push(`</div><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Nyitvatartás</h2>`);
|
||||
if (hasOpeningHours.value) {
|
||||
_push(`<div class="overflow-hidden" data-v-aa1d3c94><table class="w-full text-sm" data-v-aa1d3c94><thead data-v-aa1d3c94><tr class="border-b border-slate-700" data-v-aa1d3c94><th class="text-left text-xs text-slate-500 uppercase tracking-wider pb-2 pr-4" data-v-aa1d3c94>Nap</th><th class="text-left text-xs text-slate-500 uppercase tracking-wider pb-2" data-v-aa1d3c94>Nyitva</th></tr></thead><tbody data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(DAYS, (day) => {
|
||||
_push(`<tr class="border-b border-slate-700/50 last:border-0" data-v-aa1d3c94><td class="py-2 pr-4 text-white font-medium" data-v-aa1d3c94>${ssrInterpolate(day.label)}</td><td class="py-2" data-v-aa1d3c94>`);
|
||||
if (getDayHours(day.key)) {
|
||||
_push(`<!--[--><span class="text-white" data-v-aa1d3c94>${ssrInterpolate(getDayHours(day.key)?.open)}</span><span class="text-slate-500 mx-1" data-v-aa1d3c94>–</span><span class="text-white" data-v-aa1d3c94>${ssrInterpolate(getDayHours(day.key)?.close)}</span><!--]-->`);
|
||||
} else {
|
||||
_push(`<span class="text-slate-500 italic" data-v-aa1d3c94>Zárva</span>`);
|
||||
}
|
||||
_push(`</td></tr>`);
|
||||
});
|
||||
_push(`<!--]--></tbody></table></div>`);
|
||||
} else {
|
||||
_push(`<div data-v-aa1d3c94><p class="text-sm text-slate-500 italic" data-v-aa1d3c94>Nincs beállítva nyitvatartás</p></div>`);
|
||||
}
|
||||
_push(`</div></div><div class="space-y-4" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Moderációs műveletek</h2>`);
|
||||
if (provider.value.status === "pending") {
|
||||
_push(`<div class="space-y-3" data-v-aa1d3c94><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94>`);
|
||||
if (actionLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
||||
} else {
|
||||
_push(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-aa1d3c94></path></svg>`);
|
||||
}
|
||||
_push(` Jóváhagyás </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" data-v-aa1d3c94></path></svg> Elutasítás </button></div>`);
|
||||
} else if (provider.value.status === "approved") {
|
||||
_push(`<div class="space-y-3" data-v-cbc29188>`);
|
||||
_push(`<div class="space-y-3" data-v-aa1d3c94>`);
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: `/providers/${provider.value.id}/edit`,
|
||||
class: "w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-cbc29188${_scopeId}></path></svg> Szerkesztés `);
|
||||
_push2(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-aa1d3c94${_scopeId}></path></svg> Szerkesztés `);
|
||||
} else {
|
||||
return [
|
||||
(openBlock(), createBlock("svg", {
|
||||
@@ -308,19 +410,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-purple-600/20 hover:bg-purple-600/40 disabled:opacity-50 text-purple-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9" data-v-cbc29188></path></svg> Megjelölés (Flag) </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-cbc29188></path></svg> Törlés (Soft Delete) </button></div>`);
|
||||
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-purple-600/20 hover:bg-purple-600/40 disabled:opacity-50 text-purple-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9" data-v-aa1d3c94></path></svg> Megjelölés (Flag) </button><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-aa1d3c94></path></svg> Törlés (Soft Delete) </button></div>`);
|
||||
} else {
|
||||
_push(`<div class="space-y-3" data-v-cbc29188><p class="text-sm text-slate-400 text-center py-2" data-v-cbc29188> A szolgáltató ${ssrInterpolate(provider.value.status === "rejected" ? "elutasításra" : "megjelölésre")} került. </p><button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-cbc29188></path></svg> Szerkesztés </button>`);
|
||||
_push(`<div class="space-y-3" data-v-aa1d3c94><p class="text-sm text-slate-400 text-center py-2" data-v-aa1d3c94> A szolgáltató ${ssrInterpolate(provider.value.status === "rejected" ? "elutasításra" : "megjelölésre")} került. </p>`);
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: `/providers/${provider.value.id}/edit`,
|
||||
class: "w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" data-v-aa1d3c94${_scopeId}></path></svg> Szerkesztés `);
|
||||
} else {
|
||||
return [
|
||||
(openBlock(), createBlock("svg", {
|
||||
class: "w-4 h-4",
|
||||
fill: "none",
|
||||
stroke: "currentColor",
|
||||
viewBox: "0 0 24 24"
|
||||
}, [
|
||||
createVNode("path", {
|
||||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
"stroke-width": "2",
|
||||
d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
|
||||
})
|
||||
])),
|
||||
createTextVNode(" Szerkesztés ")
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
if (provider.value.status === "rejected") {
|
||||
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg> Visszaállítás </button>`);
|
||||
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-emerald-600/50 text-white rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg> Visszaállítás </button>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-cbc29188><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-cbc29188></path></svg> Törlés </button></div>`);
|
||||
_push(`<button${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="w-full px-4 py-3 bg-rose-600/20 hover:bg-rose-600/40 disabled:opacity-50 text-rose-400 rounded-lg text-sm font-medium transition flex items-center justify-center gap-2" data-v-aa1d3c94><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" data-v-aa1d3c94></path></svg> Törlés </button></div>`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
if (provider.value.evidence_image_path) {
|
||||
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Bizonyíték kép</h2><img${ssrRenderAttr("src", provider.value.evidence_image_path)} alt="Evidence" class="w-full rounded-lg border border-slate-600" data-v-cbc29188></div>`);
|
||||
_push(`<div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Bizonyíték kép</h2><img${ssrRenderAttr("src", provider.value.evidence_image_path)} alt="Evidence" class="w-full rounded-lg border border-slate-600" data-v-aa1d3c94></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -329,9 +459,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (activeTab.value === "status") {
|
||||
_push(`<div class="max-w-2xl" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Státusz kezelés</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188>Módosítsd a szolgáltató státuszát és validációs pontszámát.</p><form data-v-cbc29188><div class="space-y-4 mb-6" data-v-cbc29188><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Státusz</label><select class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188><option value="pending" data-v-cbc29188${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "pending") : ssrLooseEqual(statusForm.value.status, "pending")) ? " selected" : ""}>Függőben</option><option value="approved" data-v-cbc29188${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "approved") : ssrLooseEqual(statusForm.value.status, "approved")) ? " selected" : ""}>Jóváhagyott</option><option value="rejected" data-v-cbc29188${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "rejected") : ssrLooseEqual(statusForm.value.status, "rejected")) ? " selected" : ""}>Elutasított</option></select></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188> Validációs pontszám (0-100) </label><div class="flex items-center gap-3" data-v-cbc29188><input${ssrRenderAttr("value", statusForm.value.validation_score)} type="range" min="0" max="100" class="w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer accent-indigo-500" data-v-cbc29188><span class="text-sm text-white font-medium w-8 text-right" data-v-cbc29188>${ssrInterpolate(statusForm.value.validation_score)}</span></div></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Indoklás (opcionális)</label><textarea 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" data-v-cbc29188>${ssrInterpolate(statusForm.value.reason)}</textarea></div></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>Mégsem</button><button type="submit"${ssrIncludeBooleanAttr(statusLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
||||
_push(`<div class="max-w-2xl" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Státusz kezelés</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94>Módosítsd a szolgáltató státuszát és validációs pontszámát.</p><form data-v-aa1d3c94><div class="space-y-4 mb-6" data-v-aa1d3c94><div data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Státusz</label><select class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-aa1d3c94><option value="pending" data-v-aa1d3c94${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "pending") : ssrLooseEqual(statusForm.value.status, "pending")) ? " selected" : ""}>Függőben</option><option value="approved" data-v-aa1d3c94${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "approved") : ssrLooseEqual(statusForm.value.status, "approved")) ? " selected" : ""}>Jóváhagyott</option><option value="rejected" data-v-aa1d3c94${ssrIncludeBooleanAttr(Array.isArray(statusForm.value.status) ? ssrLooseContain(statusForm.value.status, "rejected") : ssrLooseEqual(statusForm.value.status, "rejected")) ? " selected" : ""}>Elutasított</option></select></div><div data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94> Validációs pontszám (0-100) </label><div class="flex items-center gap-3" data-v-aa1d3c94><input${ssrRenderAttr("value", statusForm.value.validation_score)} type="range" min="0" max="100" class="w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer accent-indigo-500" data-v-aa1d3c94><span class="text-sm text-white font-medium w-8 text-right" data-v-aa1d3c94>${ssrInterpolate(statusForm.value.validation_score)}</span></div></div><div data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Indoklás (opcionális)</label><textarea 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" data-v-aa1d3c94>${ssrInterpolate(statusForm.value.reason)}</textarea></div></div><div class="flex justify-end gap-3" data-v-aa1d3c94><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-aa1d3c94>Mégsem</button><button type="submit"${ssrIncludeBooleanAttr(statusLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-aa1d3c94>`);
|
||||
if (statusLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -340,21 +470,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (activeTab.value === "validations") {
|
||||
_push(`<div data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Gamification Validációk</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188>A szolgáltatóhoz tartozó gamification validációs bejegyzések listája.</p>`);
|
||||
_push(`<div data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Gamification Validációk</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94>A szolgáltatóhoz tartozó gamification validációs bejegyzések listája.</p>`);
|
||||
if (validationsLoading.value) {
|
||||
_push(`<div class="flex items-center justify-center py-8" data-v-cbc29188><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg></div>`);
|
||||
_push(`<div class="flex items-center justify-center py-8" data-v-aa1d3c94><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg></div>`);
|
||||
} else if (validations.value.length === 0) {
|
||||
_push(`<div class="text-center py-8" data-v-cbc29188><p class="text-slate-500" data-v-cbc29188>Nincsenek validációs bejegyzések ehhez a szolgáltatóhoz.</p></div>`);
|
||||
_push(`<div class="text-center py-8" data-v-aa1d3c94><p class="text-slate-500" data-v-aa1d3c94>Nincsenek validációs bejegyzések ehhez a szolgáltatóhoz.</p></div>`);
|
||||
} else {
|
||||
_push(`<div class="space-y-3" data-v-cbc29188><!--[-->`);
|
||||
_push(`<div class="space-y-3" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(validations.value, (v) => {
|
||||
_push(`<div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-cbc29188><div class="flex items-start justify-between gap-4" data-v-cbc29188><div class="flex-1" data-v-cbc29188><div class="flex items-center gap-2 mb-1" data-v-cbc29188><span class="${ssrRenderClass([validationTypeClass(v.validation_type), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-cbc29188>${ssrInterpolate(validationTypeLabel(v.validation_type))}</span><span class="text-xs text-slate-500" data-v-cbc29188>súly: ${ssrInterpolate(v.weight)}</span></div><p class="text-sm text-slate-300" data-v-cbc29188><span class="text-slate-400" data-v-cbc29188>Szavazó:</span> ${ssrInterpolate(v.voter_name || `User #${v.voter_user_id}`)}</p>`);
|
||||
_push(`<div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-aa1d3c94><div class="flex items-start justify-between gap-4" data-v-aa1d3c94><div class="flex-1" data-v-aa1d3c94><div class="flex items-center gap-2 mb-1" data-v-aa1d3c94><span class="${ssrRenderClass([validationTypeClass(v.validation_type), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-aa1d3c94>${ssrInterpolate(validationTypeLabel(v.validation_type))}</span><span class="text-xs text-slate-500" data-v-aa1d3c94>súly: ${ssrInterpolate(v.weight)}</span></div><p class="text-sm text-slate-300" data-v-aa1d3c94><span class="text-slate-400" data-v-aa1d3c94>Szavazó:</span> ${ssrInterpolate(v.voter_name || `User #${v.voter_user_id}`)}</p>`);
|
||||
if (v.validation_metadata?.reason) {
|
||||
_push(`<p class="text-xs text-slate-500 mt-1" data-v-cbc29188> Indoklás: ${ssrInterpolate(v.validation_metadata.reason)}</p>`);
|
||||
_push(`<p class="text-xs text-slate-500 mt-1" data-v-aa1d3c94> Indoklás: ${ssrInterpolate(v.validation_metadata.reason)}</p>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-cbc29188>${ssrInterpolate(formatDate(v.created_at))}</div></div></div>`);
|
||||
_push(`</div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-aa1d3c94>${ssrInterpolate(formatDate(v.created_at))}</div></div></div>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
}
|
||||
@@ -363,31 +493,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (activeTab.value === "history") {
|
||||
_push(`<div data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-4" data-v-cbc29188>Állapotváltoztatások előzményei</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188>Idővonal: ki, mikor és mit változtatott a szolgáltatóval kapcsolatban.</p>`);
|
||||
_push(`<div data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-4" data-v-aa1d3c94>Állapotváltoztatások előzményei</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94>Idővonal: ki, mikor és mit változtatott a szolgáltatóval kapcsolatban.</p>`);
|
||||
if (historyLoading.value) {
|
||||
_push(`<div class="flex items-center justify-center py-8" data-v-cbc29188><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg></div>`);
|
||||
_push(`<div class="flex items-center justify-center py-8" data-v-aa1d3c94><svg class="w-5 h-5 animate-spin text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg></div>`);
|
||||
} else if (history.value.length === 0) {
|
||||
_push(`<div class="text-center py-8" data-v-cbc29188><p class="text-slate-500" data-v-cbc29188>Nincsenek előzmények ehhez a szolgáltatóhoz.</p></div>`);
|
||||
_push(`<div class="text-center py-8" data-v-aa1d3c94><p class="text-slate-500" data-v-aa1d3c94>Nincsenek előzmények ehhez a szolgáltatóhoz.</p></div>`);
|
||||
} else {
|
||||
_push(`<div class="relative" data-v-cbc29188><div class="absolute left-4 top-0 bottom-0 w-0.5 bg-slate-700" data-v-cbc29188></div><!--[-->`);
|
||||
ssrRenderList(history.value, (entry, index) => {
|
||||
_push(`<div class="relative pl-10 pb-6 last:pb-0" data-v-cbc29188><div class="${ssrRenderClass([historyDotClass(entry.action), "absolute left-2.5 w-3 h-3 rounded-full border-2 mt-1.5"])}" data-v-cbc29188></div><div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-cbc29188><div class="flex items-start justify-between gap-4 mb-2" data-v-cbc29188><div data-v-cbc29188><span class="${ssrRenderClass([historyActionClass(entry.action), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-cbc29188>${ssrInterpolate(historyActionLabel(entry.action))}</span><span class="text-xs text-slate-500 ml-2" data-v-cbc29188> User #${ssrInterpolate(entry.user_id || "?")}</span></div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-cbc29188>${ssrInterpolate(formatDate(entry.timestamp))}</div></div>`);
|
||||
_push(`<div class="relative" data-v-aa1d3c94><div class="absolute left-4 top-0 bottom-0 w-0.5 bg-slate-700" data-v-aa1d3c94></div><!--[-->`);
|
||||
ssrRenderList(history.value, (entry, index2) => {
|
||||
_push(`<div class="relative pl-10 pb-6 last:pb-0" data-v-aa1d3c94><div class="${ssrRenderClass([historyDotClass(entry.action), "absolute left-2.5 w-3 h-3 rounded-full border-2 mt-1.5"])}" data-v-aa1d3c94></div><div class="bg-slate-700/50 rounded-lg border border-slate-600 p-4" data-v-aa1d3c94><div class="flex items-start justify-between gap-4 mb-2" data-v-aa1d3c94><div data-v-aa1d3c94><span class="${ssrRenderClass([historyActionClass(entry.action), "text-xs font-medium px-2 py-0.5 rounded-full"])}" data-v-aa1d3c94>${ssrInterpolate(historyActionLabel(entry.action))}</span><span class="text-xs text-slate-500 ml-2" data-v-aa1d3c94> User #${ssrInterpolate(entry.user_id || "?")}</span></div><div class="text-xs text-slate-500 whitespace-nowrap" data-v-aa1d3c94>${ssrInterpolate(formatDate(entry.timestamp))}</div></div>`);
|
||||
if (entry.new_data) {
|
||||
_push(`<div class="text-xs text-slate-400 space-y-1 mt-2" data-v-cbc29188>`);
|
||||
_push(`<div class="text-xs text-slate-400 space-y-1 mt-2" data-v-aa1d3c94>`);
|
||||
if (entry.new_data.old_status || entry.new_data.new_status) {
|
||||
_push(`<div class="flex items-center gap-2" data-v-cbc29188><span class="text-slate-500" data-v-cbc29188>Státusz:</span><span class="text-rose-400" data-v-cbc29188>${ssrInterpolate(entry.new_data.old_status || "?")}</span><svg class="w-3 h-3 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" data-v-cbc29188></path></svg><span class="text-emerald-400" data-v-cbc29188>${ssrInterpolate(entry.new_data.new_status || "?")}</span></div>`);
|
||||
_push(`<div class="flex items-center gap-2" data-v-aa1d3c94><span class="text-slate-500" data-v-aa1d3c94>Státusz:</span><span class="text-rose-400" data-v-aa1d3c94>${ssrInterpolate(entry.new_data.old_status || "?")}</span><svg class="w-3 h-3 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" data-v-aa1d3c94></path></svg><span class="text-emerald-400" data-v-aa1d3c94>${ssrInterpolate(entry.new_data.new_status || "?")}</span></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (entry.new_data.reason && entry.new_data.reason !== "Admin edit") {
|
||||
_push(`<div data-v-cbc29188><span class="text-slate-500" data-v-cbc29188>Indoklás:</span> ${ssrInterpolate(entry.new_data.reason)}</div>`);
|
||||
_push(`<div data-v-aa1d3c94><span class="text-slate-500" data-v-aa1d3c94>Indoklás:</span> ${ssrInterpolate(entry.new_data.reason)}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (entry.new_data.changes) {
|
||||
_push(`<div class="mt-2" data-v-cbc29188><details class="text-xs" data-v-cbc29188><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-cbc29188>Részletes változások</summary><div class="mt-2 space-y-1" data-v-cbc29188><!--[-->`);
|
||||
_push(`<div class="mt-2" data-v-aa1d3c94><details class="text-xs" data-v-aa1d3c94><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-aa1d3c94>Részletes változások</summary><div class="mt-2 space-y-1" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(entry.new_data.changes, (value, key) => {
|
||||
_push(`<div class="flex gap-2" data-v-cbc29188><span class="text-slate-500 w-28 flex-shrink-0" data-v-cbc29188>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-cbc29188>${ssrInterpolate(value ?? "—")}</span></div>`);
|
||||
_push(`<div class="flex gap-2" data-v-aa1d3c94><span class="text-slate-500 w-28 flex-shrink-0" data-v-aa1d3c94>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-aa1d3c94>${ssrInterpolate(value ?? "—")}</span></div>`);
|
||||
});
|
||||
_push(`<!--]--></div></details></div>`);
|
||||
} else {
|
||||
@@ -398,9 +528,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (entry.old_data) {
|
||||
_push(`<div class="mt-2" data-v-cbc29188><details class="text-xs" data-v-cbc29188><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-cbc29188>Régi adatok</summary><div class="mt-2 space-y-1" data-v-cbc29188><!--[-->`);
|
||||
_push(`<div class="mt-2" data-v-aa1d3c94><details class="text-xs" data-v-aa1d3c94><summary class="text-slate-500 cursor-pointer hover:text-slate-400" data-v-aa1d3c94>Régi adatok</summary><div class="mt-2 space-y-1" data-v-aa1d3c94><!--[-->`);
|
||||
ssrRenderList(entry.old_data, (value, key) => {
|
||||
_push(`<div class="flex gap-2" data-v-cbc29188><span class="text-slate-500 w-28 flex-shrink-0" data-v-cbc29188>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-cbc29188>${ssrInterpolate(value ?? "—")}</span></div>`);
|
||||
_push(`<div class="flex gap-2" data-v-aa1d3c94><span class="text-slate-500 w-28 flex-shrink-0" data-v-aa1d3c94>${ssrInterpolate(key)}:</span><span class="text-slate-300 truncate" data-v-aa1d3c94>${ssrInterpolate(value ?? "—")}</span></div>`);
|
||||
});
|
||||
_push(`<!--]--></div></details></div>`);
|
||||
} else {
|
||||
@@ -417,9 +547,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<!--]-->`);
|
||||
}
|
||||
if (showRejectModal.value) {
|
||||
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-2" data-v-cbc29188>Szolgáltató elutasítása</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188> Biztosan elutasítod a(z) <strong class="text-white" data-v-cbc29188>${ssrInterpolate(provider.value?.name)}</strong> szolgáltatót? </p><form data-v-cbc29188><div class="mb-4" data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Indoklás (opcionális)</label><textarea 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" data-v-cbc29188>${ssrInterpolate(rejectReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>Mégse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-rose-600 hover:bg-rose-500 disabled:bg-rose-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
||||
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-2" data-v-aa1d3c94>Szolgáltató elutasítása</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94> Biztosan elutasítod a(z) <strong class="text-white" data-v-aa1d3c94>${ssrInterpolate(provider.value?.name)}</strong> szolgáltatót? </p><form data-v-aa1d3c94><div class="mb-4" data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Indoklás (opcionális)</label><textarea 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" data-v-aa1d3c94>${ssrInterpolate(rejectReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-aa1d3c94><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-aa1d3c94>Mégse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-rose-600 hover:bg-rose-500 disabled:bg-rose-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-aa1d3c94>`);
|
||||
if (actionLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -427,21 +557,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (showEditModal.value) {
|
||||
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl max-h-[90vh] overflow-y-auto" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-2" data-v-cbc29188>Szolgáltató szerkesztése</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188> Módosítsd a(z) <strong class="text-white" data-v-cbc29188>${ssrInterpolate(provider.value?.name)}</strong> szolgáltató adatait. </p><form data-v-cbc29188><div class="space-y-4 mb-6" data-v-cbc29188><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Név</label><input${ssrRenderAttr("value", editForm.value.name)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Város</label><input${ssrRenderAttr("value", editForm.value.city)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Irányítószám</label><input${ssrRenderAttr("value", editForm.value.address_zip)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Utca</label><input${ssrRenderAttr("value", editForm.value.address_street_name)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Házszám</label><input${ssrRenderAttr("value", editForm.value.address_house_number)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Plus Code</label><input${ssrRenderAttr("value", editForm.value.plus_code)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Telefon</label><input${ssrRenderAttr("value", editForm.value.contact_phone)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Email</label><input${ssrRenderAttr("value", editForm.value.contact_email)} type="email" class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Weboldal</label><input${ssrRenderAttr("value", editForm.value.website)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div><div data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Kategória</label><input${ssrRenderAttr("value", editForm.value.category)} class="w-full px-3 py-2 bg-slate-700 border border-slate-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 text-sm" data-v-cbc29188></div></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>Mégse</button><button type="submit"${ssrIncludeBooleanAttr(editLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:bg-indigo-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
||||
if (editLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(` Mentés </button></div></form></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (showFlagModal.value) {
|
||||
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-cbc29188><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-cbc29188><h2 class="text-lg font-semibold text-white mb-2" data-v-cbc29188>Szolgáltató megjelölése</h2><p class="text-sm text-slate-400 mb-6" data-v-cbc29188> Biztosan megjelölöd a(z) <strong class="text-white" data-v-cbc29188>${ssrInterpolate(provider.value?.name)}</strong> szolgáltatót? </p><form data-v-cbc29188><div class="mb-4" data-v-cbc29188><label class="block text-sm font-medium text-slate-300 mb-1" data-v-cbc29188>Indoklás (opcionális)</label><textarea 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" data-v-cbc29188>${ssrInterpolate(flagReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-cbc29188><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-cbc29188>Mégse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-purple-600 hover:bg-purple-500 disabled:bg-purple-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-cbc29188>`);
|
||||
_push(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm" data-v-aa1d3c94><div class="bg-slate-800 rounded-xl border border-slate-700 p-6 w-full max-w-lg mx-4 shadow-2xl" data-v-aa1d3c94><h2 class="text-lg font-semibold text-white mb-2" data-v-aa1d3c94>Szolgáltató megjelölése</h2><p class="text-sm text-slate-400 mb-6" data-v-aa1d3c94> Biztosan megjelölöd a(z) <strong class="text-white" data-v-aa1d3c94>${ssrInterpolate(provider.value?.name)}</strong> szolgáltatót? </p><form data-v-aa1d3c94><div class="mb-4" data-v-aa1d3c94><label class="block text-sm font-medium text-slate-300 mb-1" data-v-aa1d3c94>Indoklás (opcionális)</label><textarea 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" data-v-aa1d3c94>${ssrInterpolate(flagReason.value)}</textarea></div><div class="flex justify-end gap-3" data-v-aa1d3c94><button type="button" class="px-4 py-2 text-sm text-slate-400 hover:text-white transition" data-v-aa1d3c94>Mégse</button><button type="submit"${ssrIncludeBooleanAttr(actionLoading.value) ? " disabled" : ""} class="px-4 py-2 bg-purple-600 hover:bg-purple-500 disabled:bg-purple-600/50 text-white rounded-lg text-sm font-medium transition flex items-center gap-2" data-v-aa1d3c94>`);
|
||||
if (actionLoading.value) {
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-cbc29188><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-cbc29188></path></svg>`);
|
||||
_push(`<svg class="w-4 h-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-aa1d3c94><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" data-v-aa1d3c94></path></svg>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -456,11 +575,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/providers/[id].vue");
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/providers/[id]/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const _id_ = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cbc29188"]]);
|
||||
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aa1d3c94"]]);
|
||||
export {
|
||||
_id_ as default
|
||||
index as default
|
||||
};
|
||||
//# sourceMappingURL=_id_-YGQP6BWl.js.map
|
||||
//# sourceMappingURL=index-Dzq5Dk7S.js.map
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/index-Dzq5Dk7S.js.map
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/index-Dzq5Dk7S.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend_admin/.nuxt/dist/server/_nuxt/index-Dzq5Dk7S.js.map.json
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/index-Dzq5Dk7S.js.map.json
vendored
Normal file
File diff suppressed because one or more lines are too long
5
frontend_admin/.nuxt/dist/server/_nuxt/index-styles-1.mjs-C1Gt4hz3.js
vendored
Normal file
5
frontend_admin/.nuxt/dist/server/_nuxt/index-styles-1.mjs-C1Gt4hz3.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
const index_vue_vue_type_style_index_0_scoped_aa1d3c94_lang = "input[type=range][data-v-aa1d3c94]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}input[type=range][data-v-aa1d3c94]::-moz-range-thumb{background:#6366f1;border:2px solid #1e293b;border-radius:50%;cursor:pointer;height:16px;width:16px}.timeline-enter-active[data-v-aa1d3c94]{transition:all .3s ease-out}.timeline-enter-from[data-v-aa1d3c94]{opacity:0;transform:translate(-10px)}";
|
||||
export {
|
||||
index_vue_vue_type_style_index_0_scoped_aa1d3c94_lang as default
|
||||
};
|
||||
//# sourceMappingURL=index-styles-1.mjs-C1Gt4hz3.js.map
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/index-styles-1.mjs-C1Gt4hz3.js.map
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/index-styles-1.mjs-C1Gt4hz3.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index-styles-1.mjs-C1Gt4hz3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
1
frontend_admin/.nuxt/dist/server/_nuxt/index-styles-1.mjs-C1Gt4hz3.js.map.json
vendored
Normal file
1
frontend_admin/.nuxt/dist/server/_nuxt/index-styles-1.mjs-C1Gt4hz3.js.map.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"file":"index-styles-1.mjs-C1Gt4hz3.js","mappings":";","names":[],"sources":[],"sourcesContent":[],"version":3}
|
||||
4
frontend_admin/.nuxt/dist/server/_nuxt/index-styles.3Ehc3-Kw.mjs
vendored
Normal file
4
frontend_admin/.nuxt/dist/server/_nuxt/index-styles.3Ehc3-Kw.mjs
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import style_0 from "./index-styles-1.mjs-C1Gt4hz3.js";
|
||||
export default [
|
||||
style_0
|
||||
]
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
22
frontend_admin/.nuxt/dist/server/server.mjs
vendored
22
frontend_admin/.nuxt/dist/server/server.mjs
vendored
@@ -499,18 +499,6 @@ const _routes = [
|
||||
meta: { "middleware": "auth" },
|
||||
component: () => import("./_nuxt/index-BOjUVIK8.js")
|
||||
},
|
||||
{
|
||||
name: "providers-id",
|
||||
path: "/providers/:id()",
|
||||
component: () => import("./_nuxt/_id_-YGQP6BWl.js"),
|
||||
children: [
|
||||
{
|
||||
name: "providers-id-edit",
|
||||
path: "edit",
|
||||
component: () => import("./_nuxt/edit-Db3uK3sd.js")
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "providers",
|
||||
path: "/providers",
|
||||
@@ -580,12 +568,22 @@ const _routes = [
|
||||
meta: { "middleware": "auth" },
|
||||
component: () => import("./_nuxt/levels-D2gwg9KO.js")
|
||||
},
|
||||
{
|
||||
name: "providers-id-edit",
|
||||
path: "/providers/:id()/edit",
|
||||
component: () => import("./_nuxt/edit-DQMBygGu.js")
|
||||
},
|
||||
{
|
||||
name: "gamification-seasons",
|
||||
path: "/gamification/seasons",
|
||||
meta: { "middleware": "auth" },
|
||||
component: () => import("./_nuxt/seasons-B_EJxQ8K.js")
|
||||
},
|
||||
{
|
||||
name: "providers-id",
|
||||
path: "/providers/:id()",
|
||||
component: () => import("./_nuxt/index-Dzq5Dk7S.js")
|
||||
},
|
||||
{
|
||||
name: "gamification-parameters",
|
||||
path: "/gamification/parameters",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
frontend_admin/.nuxt/dist/server/styles.mjs
vendored
8
frontend_admin/.nuxt/dist/server/styles.mjs
vendored
@@ -1,17 +1,17 @@
|
||||
const interopDefault = r => r.default || r || []
|
||||
export default {
|
||||
"node_modules/nuxt/dist/app/entry.js": () => import('./_nuxt/entry-styles.rnjKdtip.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/entry.js": () => import('./_nuxt/entry-styles.CDharU4c.mjs').then(interopDefault),
|
||||
"app.vue": () => import('./_nuxt/app-styles.BKebClGy.mjs').then(interopDefault),
|
||||
"pages/providers/[id]/edit.vue": () => import('./_nuxt/edit-styles.C6EseCac.mjs').then(interopDefault),
|
||||
"pages/providers/index.vue": () => import('./_nuxt/index-styles.DvNtzTM4.mjs').then(interopDefault),
|
||||
"pages/providers/[id].vue": () => import('./_nuxt/_id_-styles.nF0K7NP3.mjs').then(interopDefault),
|
||||
"pages/providers/pending.vue": () => import('./_nuxt/pending-styles.B1sSYHqL.mjs').then(interopDefault),
|
||||
"pages/providers/rejected.vue": () => import('./_nuxt/rejected-styles.B0U6TQLK.mjs').then(interopDefault),
|
||||
"pages/gamification/config.vue": () => import('./_nuxt/config-styles.gyyxQIjl.mjs').then(interopDefault),
|
||||
"pages/gamification/levels.vue": () => import('./_nuxt/levels-styles.DHsDOMqa.mjs').then(interopDefault),
|
||||
"pages/gamification/ledger.vue": () => import('./_nuxt/ledger-styles.C-WKuu1_.mjs').then(interopDefault),
|
||||
"pages/gamification/levels.vue": () => import('./_nuxt/levels-styles.DHsDOMqa.mjs').then(interopDefault),
|
||||
"pages/gamification/parameters.vue": () => import('./_nuxt/parameters-styles.BGHWwS0S.mjs').then(interopDefault),
|
||||
"pages/providers/[id]/index.vue": () => import('./_nuxt/index-styles.3Ehc3-Kw.mjs').then(interopDefault),
|
||||
"pages/gamification/point-rules.vue": () => import('./_nuxt/point-rules-styles.Dzr7IExe.mjs').then(interopDefault),
|
||||
"pages/providers/[id]/edit.vue": () => import('./_nuxt/edit-styles.DRyZamYQ.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-404.vue": () => import('./_nuxt/error-404-styles.CiJjK6WX.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-500.vue": () => import('./_nuxt/error-500-styles.ulHNpcF1.mjs').then(interopDefault)
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
{"id":"dev","timestamp":1782870468233}
|
||||
{"id":"9690941d-48a2-40dc-830a-194c40a17965","timestamp":1782900376271}
|
||||
@@ -1 +0,0 @@
|
||||
{"id":"4c3848a1-194c-473b-9dda-e023b39983cf","timestamp":1782867731884,"prerendered":[]}
|
||||
@@ -0,0 +1 @@
|
||||
{"id":"9690941d-48a2-40dc-830a-194c40a17965","timestamp":1782900376271,"prerendered":[]}
|
||||
@@ -1 +1 @@
|
||||
{"id":"dev","timestamp":1782870468233,"prerendered":[]}
|
||||
{"id":"dev","timestamp":1782900376639,"prerendered":[]}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"date": "2026-07-01T01:47:54.831Z",
|
||||
"date": "2026-07-01T10:06:36.052Z",
|
||||
"preset": "nitro-dev",
|
||||
"framework": {
|
||||
"name": "nuxt",
|
||||
@@ -11,7 +11,7 @@
|
||||
"dev": {
|
||||
"pid": 19,
|
||||
"workerAddress": {
|
||||
"socketPath": "\u0000nitro-worker-19-1-1-9109.sock"
|
||||
"socketPath": "\u0000nitro-worker-19-3-3-8340.sock"
|
||||
}
|
||||
}
|
||||
}
|
||||
4
frontend_admin/.nuxt/nuxt.d.ts
vendored
4
frontend_admin/.nuxt/nuxt.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
/// <reference types="@nuxtjs/tailwindcss" />
|
||||
/// <reference types="@pinia/nuxt" />
|
||||
/// <reference types="@nuxt/devtools" />
|
||||
/// <reference types="@pinia/nuxt" />
|
||||
/// <reference types="@nuxtjs/tailwindcss" />
|
||||
/// <reference types="@nuxtjs/i18n" />
|
||||
/// <reference types="@nuxt/telemetry" />
|
||||
/// <reference path="types/nitro-layouts.d.ts" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// generated by the @nuxtjs/tailwindcss <https://github.com/nuxt-modules/tailwindcss> module at 7/1/2026, 2:17:14 AM
|
||||
// generated by the @nuxtjs/tailwindcss <https://github.com/nuxt-modules/tailwindcss> module at 7/1/2026, 10:06:21 AM
|
||||
import "@nuxtjs/tailwindcss/config-ctx"
|
||||
import configMerger from "@nuxtjs/tailwindcss/merger";
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"nuxt": [
|
||||
"../node_modules/nuxt"
|
||||
],
|
||||
"@unhead/vue": [
|
||||
"../node_modules/@unhead/vue"
|
||||
],
|
||||
@@ -19,6 +16,9 @@
|
||||
"@nuxt/schema": [
|
||||
"../node_modules/@nuxt/schema"
|
||||
],
|
||||
"nuxt": [
|
||||
"../node_modules/nuxt"
|
||||
],
|
||||
"vue-i18n": [
|
||||
"../node_modules/vue-i18n/dist/vue-i18n",
|
||||
"../node_modules/vue-i18n"
|
||||
@@ -47,6 +47,9 @@
|
||||
"../node_modules/@intlify/message-compiler/dist/message-compiler",
|
||||
"../node_modules/@intlify/message-compiler"
|
||||
],
|
||||
"nitropack": [
|
||||
"../node_modules/nitropack"
|
||||
],
|
||||
"defu": [
|
||||
"../node_modules/defu"
|
||||
],
|
||||
@@ -65,9 +68,6 @@
|
||||
"unplugin-vue-router/client": [
|
||||
"../node_modules/unplugin-vue-router/client"
|
||||
],
|
||||
"nitropack": [
|
||||
"../node_modules/nitropack"
|
||||
],
|
||||
"vite/client": [
|
||||
"../node_modules/vite/client"
|
||||
],
|
||||
|
||||
@@ -29,9 +29,6 @@
|
||||
"@@/*": [
|
||||
"../*"
|
||||
],
|
||||
"nuxt": [
|
||||
"../node_modules/nuxt"
|
||||
],
|
||||
"@unhead/vue": [
|
||||
"../node_modules/@unhead/vue"
|
||||
],
|
||||
@@ -47,6 +44,9 @@
|
||||
"@nuxt/schema": [
|
||||
"../node_modules/@nuxt/schema"
|
||||
],
|
||||
"nuxt": [
|
||||
"../node_modules/nuxt"
|
||||
],
|
||||
"vue-i18n": [
|
||||
"../node_modules/vue-i18n"
|
||||
],
|
||||
@@ -68,6 +68,9 @@
|
||||
"@intlify/message-compiler": [
|
||||
"../node_modules/@intlify/message-compiler"
|
||||
],
|
||||
"nitropack": [
|
||||
"../node_modules/nitropack"
|
||||
],
|
||||
"defu": [
|
||||
"../node_modules/defu"
|
||||
],
|
||||
@@ -86,9 +89,6 @@
|
||||
"unplugin-vue-router/client": [
|
||||
"../node_modules/unplugin-vue-router/client"
|
||||
],
|
||||
"nitropack": [
|
||||
"../node_modules/nitropack"
|
||||
],
|
||||
"vite/client": [
|
||||
"../node_modules/vite/client"
|
||||
],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"date": "2026-07-01T01:02:36.844Z",
|
||||
"date": "2026-07-01T10:06:41.810Z",
|
||||
"preset": "node-server",
|
||||
"framework": {
|
||||
"name": "nuxt",
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user