PageSourceSearch

https://tokat.bel.tr/_nuxt/IBFx3-iN.js

js tokat.bel.tr collected 2026-10-02 20:12:24 UTC 7,797 bytes, 1 lines download raw bytes

1import{_ as j}from"./CRCDaTmA.js";import{Q as B}from"./vylfqG9E.js";import{d as D,S as A,O as C,g as p,Q as M,b2 as V,j as s,u as a,v as t,a4 as b,p as i,w as u,z as c,e as z,x as n,ac as L,o,D as P}from"./vOe0WySJ.js";import"./CYMKTxm-.js";const N={class:"min-h-screen bg-gray-50 dark:bg-gray-950 font-sans pt-24"},T={key:0,class:"flex justify-center items-center h-screen"},U={key:1,class:"flex flex-col items-center justify-center min-h-[80vh] px-4 text-center"},S={class:"bg-white dark:bg-gray-900 p-8 rounded-2xl shadow-xl max-w-lg w-full"},Q={key:2,class:"container mx-auto px-4 py-12"},E={class:"grid grid-cols-1 lg:grid-cols-4 gap-8"},F={class:"hidden lg:block lg:col-span-1"},$={class:"lg:col-span-3"},H={class:"mb-8 animate-fade-in-up"},I={class:"flex flex-wrap items-center gap-4 mb-4 text-sm"},R={class:"px-3 py-1 rounded-full bg-red-50 text-red-700 text-xs font-bold border border-red-100 dark:bg-red-900/30 dark:text-red-300 dark:border-red-800"},O={class:"text-3xl md:text-4xl font-black text-gray-900 dark:text-white mb-6 leading-tight tracking-tight"},Y={class:"bg-white dark:bg-gray-800 rounded-2xl shadow-xl overflow-hidden border border-gray-100 dark:border-gray-700"},q={class:"relative h-64 md:h-96 w-full overflow-hidden border-b border-gray-100 dark:border-gray-700"},G=["src","alt"],J={key:1,class:"w-full h-full bg-gray-100 dark:bg-gray-800 flex items-center justify-center"},K={class:"p-8 md:p-12"},W={class:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8 pb-8 border-b border-gray-100 dark:border-gray-700"},X={class:"flex items-center gap-4"},Z={class:"text-sm text-gray-500 mt-1"},tt={class:"font-medium text-gray-800 dark:text-gray-200"},et=["innerHTML"],rt={key:1,class:"text-center py-12 px-4 bg-gray-50 dark:bg-gray-900/50 rounded-xl border border-dashed border-gray-200 dark:border-gray-700"},at={class:"bg-gray-50 dark:bg-gray-900/50 px-8 py-6 border-t border-gray-100 dark:border-gray-700"},st={class:"text-sm text-gray-500 dark:text-gray-400"},ot=D({__name:"[id]",async setup(nt){let d,x;const y=A(),{getEndpoint:k}=C(),h=p(()=>y.params.id),{data:v,pending:f,error:w}=([d,x]=M(()=>L(()=>k(`/api/zoning-plans/${h.value}`),"$UavQrxhnPo")),d=await d,x(),d),r=p(()=>v.value?.data);V({title:()=>r.value?`${r.value.title} - İmar Askı Planları`:"İmar Askı Planı",description:()=>r.value?.description?.replace(/<[^>]*>/g,"").substring(0,160)||"Tokat Belediyesi imar askı planı detayı"});const _=()=>{r.value?.documentUrl&&window.open(r.value.documentUrl,"_blank")},l=g=>{if(!g)return"";try{const e=new Date(g);return isNaN(e.getTime())?"":e.toLocaleDateString("tr-TR",{year:"numeric",month:"long",day:"numeric"})}catch{return""}};return(g,e)=>{const m=j;return o(),s("div",N,[a(f)?(o(),s("div",T,[...e[0]||(e[0]=[t("div",{class:"relative"},[t("div",{class:"h-24 w-24 rounded-full border-t-4 border-b-4 border-red-600 animate-spin"}),t("div",{class:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-red-600 font-bold"}," Yükleniyor ")],-1)])])):a(w)||!a(r)?(o(),s("div",U,[t("div",S,[e[2]||(e[2]=b('<div class="h-20 w-20 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center mx-auto mb-6" data-v-92ba2535><svg class="w-10 h-10 text-red-600 dark:text-red-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-92ba2535><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" data-v-92ba2535></path></svg></div><h1 class="text-3xl font-bold text-gray-900 dark:text-white mb-2" data-v-92ba2535>Plan Bulunamadı</h1><p class="text-gray-600 dark:text-gray-400 mb-8" data-v-92ba2535>Aradığınız imar planı bulunamadı veya süresi dolmuş olabilir.</p>',3)),i(m,{to:"/hizmetler/imar-aski-planlari",class:"inline-flex w-full justify-center items-center px-6 py-4 bg-gray-900 dark:bg-gray-800 text-white rounded-xl hover:bg-gray-800 dark:hover:bg-gray-700 transition-all transform hover:-translate-y-1 shadow-lg hover:shadow-xl font-medium"},{default:u(()=>[...e[1]||(e[1]=[t("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})],-1),n(" Tüm Planlara Dön ",-1)])]),_:1})])])):(o(),s("div",Q,[t("div",E,[t("div",F,[i(B,{class:"sticky top-24"})]),t("div",$,[t("div",H,[t("div",I,[i(m,{to:"/",class:"text-gray-500 hover:text-red-600 transition-colors"},{default:u(()=>[...e[3]||(e[3]=[n("Ana Sayfa ",-1)])]),_:1}),e[5]||(e[5]=t("span",{class:"text-gray-300"},"/",-1)),i(m,{to:"/hizmetler/imar-aski-planlari",class:"text-gray-500 hover:text-red-600 transition-colors"},{default:u(()=>[...e[4]||(e[4]=[n("İmar Askı Planları ",-1)])]),_:1}),e[6]||(e[6]=t("span",{class:"text-gray-300"},"/",-1)),t("span",R," Askı Bitiş: "+c(l(a(r).endDate)),1)]),t("h1",O,c(a(r).title),1)]),t("div",Y,[t("div",q,[a(r).imageUrl?(o(),s("img",{key:0,src:a(r).imageUrl,alt:a(r).title,class:"w-full h-full object-cover"},null,8,G)):(o(),s("div",J,[...e[7]||(e[7]=[t("svg",{class:"w-20 h-20 text-gray-300 dark:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})],-1)])]))]),t("div",K,[t("div",W,[t("div",X,[e[10]||(e[10]=t("div",{class:"w-1.5 h-8 bg-red-600 rounded-full"},null,-1)),t("div",null,[e[9]||(e[9]=t("h2",{class:"text-xl font-bold text-gray-900 dark:text-white"},"Plan Detayları ",-1)),t("p",Z,[e[8]||(e[8]=n(" Askı Başlangıç: ",-1)),t("span",tt,c(l(a(r).startDate)),1)])])]),a(r).documentUrl?(o(),s("button",{key:0,onClick:_,class:"inline-flex items-center justify-center px-4 py-2 text-sm font-bold text-white transition-all bg-red-600 rounded-lg hover:bg-red-700 shadow-sm hover:shadow dark:bg-red-600 dark:hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-600 shrink-0"},[...e[11]||(e[11]=[t("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1),n(" PDF İndir ",-1)])])):z("",!0)]),a(r).description?(o(),s("div",{key:0,class:"prose prose-lg dark:prose-invert max-w-none prose-headings:font-bold prose-headings:text-gray-900 dark:prose-headings:text-white prose-p:text-gray-600 dark:prose-p:text-gray-300 prose-a:text-red-600 hover:prose-a:text-red-700 transition-colors",innerHTML:a(r).description},null,8,et)):(o(),s("div",rt,[...e[12]||(e[12]=[b('<div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4" data-v-92ba2535><svg class="w-8 h-8 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-92ba2535><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" data-v-92ba2535></path></svg></div><h3 class="text-lg font-medium text-gray-900 dark:text-white mb-2" data-v-92ba2535>Açıklama Bulunamadı</h3><p class="text-gray-500 dark:text-gray-400 max-w-sm mx-auto" data-v-92ba2535> Bu imar planı için henüz detaylı bir açıklama metni eklenmemiştir. PDF dosyasını indirerek planı inceleyebilirsiniz. </p>',3)])]))]),t("div",at,[t("div",st,[e[13]||(e[13]=t("span",{class:"font-medium"},"Eklenme Tarihi:",-1)),n(" "+c(l(a(r).createdAt?.toString())||l(a(r).startDate)),1)])])])])])]))])}}}),gt=P(ot,[["__scopeId","data-v-92ba2535"]]);export{gt 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.