1import{Q as f}from"./BPtofk8d.js";import{D as x,O as k,Q as b,g as c,G as D,c as w,w as B,R as C,o as a,v as e,j as r,e as n,u as d,z as u}from"./vOe0WySJ.js";import"./vylfqG9E.js";import"./CRCDaTmA.js";import"./CYMKTxm-.js";const K={class:"page-content"},L={key:0,class:"loading-state"},T={key:1,class:"error-state"},j={class:"flex items-center justify-center min-h-[400px]"},z={class:"text-center text-destructive"},E={key:2,class:"content-wrapper"},H={key:0,class:"image-container"},M=["src"],Q={class:"page-title"},V={key:1,class:"page-description"},A=["innerHTML"],N={key:3,class:"empty-state"},O={__name:"koyler",async setup(S){let i,l;const{getEndpoint:p}=k(),{data:m,pending:_,error:v,refresh:y}=([i,l]=b(()=>C("villages",()=>$fetch(p("/api/public/villages"),{method:"POST"}),{server:!0,getCachedData:(o,t)=>t.payload.data[o]||t.static.data[o]})),i=await i,l(),i),s=c(()=>m.value?.data||null),g=c(()=>v.value?.message||null),h=y;return D({title:"Köyler"}),(o,t)=>(a(),w(f,null,{default:B(()=>[e("div",K,[d(_)?(a(),r("div",L,[...t[1]||(t[1]=[e("div",{class:"flex items-center justify-center min-h-[400px]"},[e("div",{class:"text-center"},[e("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto mb-4"}),e("p",null,"Yükleniyor...")])],-1)])])):g.value?(a(),r("div",T,[e("div",j,[e("div",z,[t[2]||(t[2]=e("p",{class:"text-gray-600 mb-8"}," Bir Åeyler ters gitti. Lütfen internet baÄlantınızı kontrol edip tekrar deneyiniz. ",-1)),e("button",{onClick:t[0]||(t[0]=$=>d(h)()),class:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded hover:bg-primary/90"}," Tekrar Dene ")])])])):s.value?(a(),r("div",E,[s.value.image?(a(),r("div",H,[e("img",{src:s.value.image,alt:"Köyler",class:"featured-image"},null,8,M)])):n("",!0),e("h1",Q,u(s.value.title||"Köyler"),1),s.value.description?(a(),r("p",V,u(s.value.description),1)):n("",!0),s.value.htmltext?(a(),r("div",{key:2,class:"html-content",innerHTML:s.value.htmltext},null,8,A)):(a(),r("div",N,[...t[3]||(t[3]=[e("p",{class:"text-muted-foreground"},"Köy bilgisi bulunamadı.",-1)])]))])):n("",!0)])]),_:1}))}},Y=x(O,[["__scopeId","data-v-c420c17c"]]);export{Y 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.