1import{r as I,ah as S,$ as j,a3 as a,O as l,l as f,i,F as A,W,a0 as C,k as $,h as y,j as T,d as U,ap as D,q as z,c as K,a7 as q,ac as F,ai as E,ao as L,a4 as P,K as M,G as R,am as O,V,_ as H,p as J,an as X}from"./Dd8GYhUw.js";import{u as Y}from"./Z9Y9ui-_.js";import{_ as Q}from"./CtTM5RFl.js";import{_ as Z}from"./BZ80ogkA.js";import{u as G}from"./pjZfDC5y.js";const tt={key:0,class:"min-w-0 text-xs text-gray-500 leading-snug"},et={class:"flex min-w-0 items-center"},st={class:"min-w-0 truncate"},ot={key:0,class:"mx-1 text-gray-300"},nt=["title"],rt=I({__name:"CategoryAncesstors",props:{categoryIds:{},max:{default:2}},setup(m){const n=m,c=S(),{categories:_}=j(c);function p(o,e){for(const t of o){if(t.id===e)return t;if(t.childs?.length){const r=p(t.childs,e);if(r)return r}}}const g=y(()=>_.value?.length?(n.categoryIds??[]).map(o=>p(_.value,o)?.title).filter(Boolean):[]),u=y(()=>g.value.slice(-n.max)),h=y(()=>Math.max(0,g.value.length-u.value.length));return(o,e)=>a(g).length?(l(),f("div",tt,[i("div",et,[(l(!0),f(A,null,W(a(u),(t,r)=>(l(),f(A,{key:`${t}-${r}`},[i("span",st,C(t),1),r<a(u).length-1?(l(),f("span",ot,"âº")):$("",!0)],64))),128)),a(h)>0?(l(),f("span",{key:0,class:"ml-1 shrink-0 text-gray-400",title:a(g).join(" / ")}," +"+C(a(h)),9,nt)):$("",!0)])])):$("",!0)}}),it={class:"flex h-full flex-col overflow-hidden rounded-xl border border-gray-100 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-md hover:border-solutions-200"},at={class:"relative aspect-[16/9] overflow-hidden bg-gray-100"},lt=["src","alt"],ct={key:1,class:"absolute inset-0 flex items-center justify-center"},ut={class:"absolute inset-0 flex items-center justify-center"},dt={class:"flex flex-1 flex-col gap-3 p-6"},mt={class:"space-y-2"},gt={class:"font-semibold leading-snug text-gray-900 transition group-hover:text-solutions-700 line-clamp-2"},ft={key:0,class:"text-sm leading-relaxed text-gray-600 line-clamp-2"},_t=I({__name:"Card",props:{item:{}},setup(m){const n=m,{getImageUrl:c}=Y(),_=y(()=>c(n.item.featuredImage)),p=S(),{categories:g}=j(p);function u(o,e){for(const t of o){if(t.id===e)return t;if(t.childs?.length){const r=u(t.childs,e);if(r)return r}}}const h=o=>{const e=(o.categoryIds??[]).map(t=>u(g.value||[],t)?.slug??"").filter(Boolean);return e.push(o.slug??""),`/cozumler/${e.join("/")}`};return(o,e)=>{const t=K,r=rt,d=U;return l(),T(d,{to:h(m.item),class:"group block h-full rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-solutions-300 focus-visible:ring-offset-2"},{default:D(()=>[i("article",it,[i("div",at,[m.item.featuredImage?(l(),f("img",{key:0,src:a(_),alt:m.item.title,loading:"lazy",decoding:"async",class:"h-full w-full object-cover transition duration-700 group-hover:scale-[1.04]"},null,8,lt)):(l(),f("div",ct,[e[0]||(e[0]=i("div",{class:"h-full w-full bg-[radial-gradient(600px_300px_at_30%_20%,rgba(0,0,0,0.06),transparent_60%),radial-gradient(600px_300px_at_70%_80%,rgba(0,0,0,0.05),transparent_60%)]"},null,-1)),i("div",ut,[z(t,{name:"lucide:image",class:"h-6 w-6 text-gray-300"})])])),e[1]||(e[1]=i("div",{class:"pointer-events-none absolute inset-0 bg-gradient-to-t from-gray-900/10 via-trans
1parent to-transparent"},null,-1))]),i("div",dt,[i("div",mt,[i("h3",gt,C(m.item.title),1),z(r,{"category-ids":m.item.categoryIds||[],max:2},null,8,["category-ids"])]),m.item.description?(l(),f("p",ft,C(m.item.description||""),1)):$("",!0)])])]),_:1},8,["to"])}}}),pt={key:0,class:"space-y-4 max-w-3xl"},ht={class:"text-3xl font-semibold tracking-tight text-gray-900"},vt={key:0,class:"text-base leading-relaxed text-gray-600"},yt={class:"grid gap-8 grid-cols-1 md:grid-cols-2 xl:grid-cols-3"},xt=I({__name:"List",async setup(m){let n,c;const{locale:_}=q(),p=F(),g=S(),{categories:u}=j(g),h=E("previous-route-path",()=>null),o=y(()=>p.params.segments??[]),e=y(()=>{if(o.value.length)return g.getCategoryIdBySegments(o.value)}),{data:t}=([n,c]=L(()=>P(()=>`solutions:${e.value||"root"}:${_.value}`,()=>$fetch(`/api/${_.value}/solutions`,{params:{...e.value&&{p:e.value}}}),{watch:[e,_]})),n=await n,c(),n),r=y(()=>{if(!u.value?.length||!e.value)return;function v(b,B){for(const w of b){if(w.id===B)return w;if(w.childs?.length){const N=v(w.childs,B);if(N)return N}}}return v(u.value,e.value)}),d=V(null),s=V(!0);function x(v){return v?v.startsWith("/cozumler")||v.startsWith("/solutions"):!1}function k(v="smooth"){if(!d.value)return;const b=window.scrollY+d.value.getBoundingClientRect().top-30;window.scrollTo({top:b,behavior:v})}return M(async()=>{await R(),requestAnimationFrame(()=>{x(h.value)?k("smooth"):window.scrollTo({top:0,behavior:"auto"})})}),O(()=>o.value&&o.value.join("/"),async()=>{if(s.value){s.value=!1;return}await R(),requestAnimationFrame(()=>{k("smooth")})}),(v,b)=>{const B=_t;return l(),f("div",{class:"space-y-8 min-h-screen",ref_key:"listRoot",ref:d},[a(r)?(l(),f("header",pt,[i("h2",ht,C(a(r).title),1),a(r).description?(l(),f("p",vt,C(a(r).description),1)):$("",!0),b[0]||(b[0]=i("div",{class:"h-[2px] w-16 bg-solutions-500 rounded-full"},null,-1))])):$("",!0),i("div",yt,[(l(!0),f(A,null,W(a(t),w=>(l(),T(B,{key:w.id,item:w},null,8,["item"]))),128))])],512)}}}),bt={class:"px-5 py-4"},kt={class:"rounded-2xl border border-solutions-100 bg-solutions-50 px-4 py-4"},wt=I({__name:"Detail",async setup(m){let n,c;const _=F(),{locale:p}=q(),u=(_.params.segments??[]).at(-1)||"",h=S(),{categories:o}=j(h);[n,c]=L(()=>h.ensureCategories()),await n,c();const e=(d,s)=>{for(const x of d){if(x.id===s)return x;if(x.childs&&x.childs.length>0){const k=e(x.childs,s);if(k)return k}}},{data:t}=([n,c]=L(()=>P(()=>`solutiondetail:${p.value}:${u}`,()=>$fetch(`/api/${p.value}/solutions/${u}`),"$JVEaEiGq03")),n=await n,c(),n),r=y(()=>{const d=t.value?.categoryAncestors;return d&&d.length>0?d:!o.value||o.value.length===0?[]:(t.value?.categoryIds||[]).map(s=>e(o.value,s)).filter(s=>s!==void 0).map(s=>({title:s.title,slug:s.slug}))});return G({title:()=>t.value?.title||"Ãözüm",description:()=>t.value?.description||void 0}),(d,s)=>{const x=Q,k=H,v=Z;return l(),f(A,null,[z(x,{theme:"solutions",eyebrow:"Karfo Ãözümler","eyebrow-to":"/cozumler",breadcrumbs:a(r)?.map(b=>({label:b.title,to:`/cozumler/${b.slug}`}))||[],title:a(t)?.title||"",subtitle:a(t)?.description||""},null,8,["breadcrumbs","title","subtitle"]),z(v,{contents:a(t)?.contents||[],theme:"solutions","toc-mode":"h2-only"},{"sidebar-footer":D(()=>[s[3]||(s[3]=i("div",{class:"mx-5 h-px bg-gradient-to-r from-transparent via-gray-100 to-transparent"},null,-1)),i("section",bt,[i("div",kt,[s[1]||(s[1]=i("div",{class:"text-sm font-semibold text-gray-900"}," Bu çözümle ilgileniyor musunuz? ",-1)),s[2]||(s[2]=i("p",{class:"mt-1 text-sm leading-6 text-gray-600"}," Uygulama ve ekipman hakkında bizimle iletiÅime geçin. ",-1)),z(k,{to:"/kurumsal/iletisim",class:"mt-3 inline-flex items-center gap-1.5 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 ring-1 ring-solutions-200 transition hover:bg-solutions-500 hover:text-white hover:ring-solutions-500"},{default:D(()=>[...s[0]||(s[0]=[J(" İletiÅime Geçin ",-1)])]),_:1})])])]),_:1},8,["contents"])],64)}}}),Bt=I({__name:"[[...segments]]",async setup(m){let n,c;const _=F(),p=S();[n,c]=L(()=>p.ensureCategories()),await n,c();const g=y(()=>_.params.segments??[]),u=y(()=>g.value.length===0?!0:!!p.getCategoryIdBySegments(g.value)),h=y(()=>!u.value),o=E("previous-route-path",()=>null);function e(t){return t?t.startsWith("/cozumler")||t.startsWith("/solutions"):!1}return X(()=>{h.value&&requestAnimationFrame(()=>{window.scrollTo({top:0,behavior:e(o.value)?"smooth":"auto"})})}),G({title:"Ãözümler",description:"X-Ray CT, boyutsal ölçüm, elektronik inceleme, endü
1striyel mikroskop ve geniŠhacimli ölçüm çözümleri. Sektörünüze özel endüstriyel ölçüm ve görüntüleme çözümleri.",keywords:["endüstriyel çözümler","x-ray ct çözümleri","boyutsal ölçüm çözümleri","elektronik inceleme","endüstriyel mikroskop çözümleri"]}),(t,r)=>{const d=xt,s=wt;return a(h)?(l(),T(s,{key:1})):(l(),T(d,{key:0}))}}});export{Bt 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.