1import{l as f,am as $,a2 as g,W as t,h as n,e as o,ae as e,ac as i,g as p,O as C,d as h,av as L,ak as T,ay as F,al as V,R as D,aF as R,F as v,a4 as j,I as B,k as K,aD as N}from"./Df_b3hni.js";import{G as w}from"./PEA_d2hA.js";const O={class:"overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-theme-xs"},S={class:"min-w-0 flex-1"},z={class:"text-base font-bold text-gray-900"},E={key:0,class:"mt-1 line-clamp-1 text-sm text-gray-500"},G={key:0,class:"border-t border-gray-100 px-4 pb-4 pt-3"},H={class:"text-sm leading-relaxed text-gray-700"},M=f({__name:"KnownIssueCard",props:{issue:{}},setup(r){const l=r,{t:s}=$(),u=g((l.issue.severity||"").toLocaleLowerCase("tr-TR").includes("önemli")||(l.issue.severity||"").toLocaleLowerCase("en").includes("critical")||(l.issue.severity||"").toLocaleLowerCase("en").includes("important")),y=h(()=>l.issue.issue||l.issue.description||""),x=h(()=>{const c=l.issue.category||s("vehicle.knownIssues.categoryOther"),a=y.value;if(!a)return c;const d=a.length>40?`${a.slice(0,40)}â¦`:a;return`${c}: ${d}`});return(c,a)=>(t(),n("article",O,[o("button",{type:"button",class:"flex w-full items-start justify-between gap-3 p-4 text-left",onClick:a[0]||(a[0]=d=>u.value=!e(u))},[o("div",S,[o("p",z,i(e(x)),1),!e(u)&&e(y)?(t(),n("p",E,i(e(y)),1)):p("",!0)]),r.issue.severity?(t(),n("span",{key:0,class:"shrink-0 rounded px-1.5 py-0.5 text-[10px] font-bold uppercase",style:C({color:e(w)(r.issue.severity),backgroundColor:`${e(w)(r.issue.severity)}18`})},i(r.issue.severity),5)):p("",!0)]),e(u)?(t(),n("div",G,[o("p",H,i(r.issue.issue||r.issue.description||e(s)("vehicle.knownIssues.noDetails")),1)])):p("",!0)]))}}),W=Object.assign(M,{__name:"KnownIssueCard"}),q={class:"pb-10"},A={key:0,class:"py-16 text-center text-sm text-gray-500"},J={key:1,class:"py-16 text-center text-sm text-gray-500"},P={class:"mb-4 flex items-center gap-3"},Q={class:"truncate text-lg font-bold text-gray-900"},U={class:"mx-auto max-w-3xl"},X={key:0,class:"rounded-xl border border-gray-200 bg-white p-8 text-center text-sm text-gray-500"},Y={class:"mb-4 flex items-center justify-between gap-3"},Z={class:"text-xs font-bold uppercase tracking-wide text-gray-500"},ee={class:"rounded-xl bg-red-50 px-2 py-1 text-xs font-bold text-brand-600"},se={class:"space-y-4"},oe=f({__name:"known-issues",setup(r){const l=L(),{t:s}=$(),{localize:u}=T(),{fetchVehicle:y}=F(),x=h(()=>String(l.params.id)),c=g(null),a=g(!0),d=h(()=>c.value?.knownIssues||[]);V({title:h(()=>c.value?`${s("vehicle.knownIssues")} · ${N(c.value)}`:s("vehicle.knownIssues"))}),D(m),R(x,m);async function m(){a.value=!0,c.value=await y(x.value),a.value=!1}return(b,_)=>(t(),n("div",q,[e(a)?(t(),n("div",A,i(e(s)("app.loading")),1)):e(c)?(t(),n(v,{key:2},[o("div",P,[o("button",{type:"button",class:"rounded-lg border border-gray-200 px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-50",onClick:_[0]||(_[0]=k=>("navigateTo"in b?b.navigateTo:e(B))(e(u)(`/vehicles/${e(x)}`)))}," â "+i(e(s)("action.back")),1),o("h1",Q,i(e(s)("vehicle.knownIssues")),1)]),o("div",U,[e(d).length?(t(),n(v,{key:1},[o("div",Y,[o("p",Z,i(e(s)("vehicle.knownIssues.commonFaults")),1),o("span",ee,i(e(s)("vehicle.knownIssues.detected",{count:e(d).length})),1)]),o("ul",se,[(t(!0),n(v,null,j(e(d),(k,I)=>(t(),n("li",{key:I},[K(W,{issue:k},null,8,["issue"])]))),128))])],64)):(t(),n("p",X,i(e(s)("vehicle.knownIssues.empty")),1))])],64)):(t(),n("div",J,i(e(s)("vehicle.notFound")),1))]))}});export{oe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.