1import{c as Ue,x as gt,u as yt,r as x,I as ft,j as e,S as de,d as bt,E as jt,J as Pe,q as De,L as j,K as kt,P as vt,U as Nt,F as Me,k as wt,t as He,f as Ge,Q as St,o as _t,X as Lt,R as Et,V as zt,W as At}from"./index-GcR74Bk4.js";import{E as Tt,a as Ct}from"./EntityHeader-D8cGHsC-.js";import{P as $e,L as Ot,N as Pt}from"./pencil-line-TIQfTdua.js";import{C as Ye}from"./calendar-days-Bov8kTDw.js";import{B as Dt}from"./book-open-uN8GJccq.js";import{S as Mt}from"./scale-B5bQm0Ex.js";import{I as We}from"./info-mZTs_Zeb.js";import{U as Be}from"./user-round-Bu5xQ0YP.js";import{L as $t}from"./link-2-BRKLzqX6.js";import{E as he}from"./external-link-Dt8kN77c.js";import{C as Bt}from"./circle-check-CgD0pxMx.js";import{S as Kt}from"./send-BvO_mqpk.js";const It=Ue("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);const Rt=Ue("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]),pe=[{value:"summary",label:"Kısa özet",description:"Profil baÅlıÄının altında görünen kısa ve tarafsız ansiklopedik özet.",multiline:!0,maxLength:1200,minLength:20},{value:"description",label:"Genel bakıŠmetni",description:"KiÅinin yaÅamı, çalıÅmaları ve ansiklopedik önemini açıklayan ana metin.",multiline:!0,maxLength:8e3,minLength:30},{value:"name",label:"Ad veya profil baÅlıÄı",description:"KiÅinin yaygın veya resmî adındaki yazım hatasını düzeltin.",multiline:!1,maxLength:300,minLength:2},{value:"birth_date",label:"DoÄum tarihi",description:"YYYY-AA-GG biçiminde doÄrulanabilir doÄum tarihi.",multiline:!1,maxLength:10,minLength:4},{value:"birth_place",label:"DoÄum yeri",description:"İlçe, Åehir ve ülke bilgisiyle doÄrulanabilir doÄum yeri.",multiline:!1,maxLength:300,minLength:2},{value:"nationality",label:"Milliyet",description:"Kamuya açık kaynaklarla doÄrulanabilen milliyet veya milliyetler.",multiline:!1,maxLength:300,minLength:2},{value:"occupations",label:"Meslekler",description:"Birden fazla mesleÄi noktalı virgülle ayırabilirsiniz.",multiline:!0,maxLength:1500,minLength:2},{value:"education",label:"EÄitim",description:"Okul, program veya derece bilgilerini noktalı virgülle ayırabilirsiniz.",multiline:!0,maxLength:2e3,minLength:2},{value:"positions",label:"Görevler",description:"Kamuya açık kurumsal görev ve unvanları noktalı virgülle ayırabilirsiniz.",multiline:!0,maxLength:3e3,minLength:2},{value:"notable_works",label:"ÃalıÅmalar ve giriÅimler",description:"Ãnemli eser, proje, Åirket veya giriÅimleri noktalı virgülle ayırabilirsiniz.",multiline:!0,maxLength:3e3,minLength:2},{value:"awards",label:"Ãdüller",description:"DoÄrulanabilir ödül ve unvanları noktalı virgülle ayırabilirsiniz.",multiline:!0,maxLength:2e3,minLength:2},{value:"source_urls",label:"Profil kaynakları",description:"Her satıra bir kaynak baÄlantısı ekleyin.",multiline:!0,maxLength:5e3,minLength:8},{value:"official_website",label:"Resmî web sitesi",description:"KiÅiye ait doÄrulanabilir resmî internet adresi.",multiline:!1,maxLength:500,minLength:8},{value:"email",label:"Kamuya açık e-posta",description:"Yalnızca kamuya açık kurumsal veya mesleki e-posta adresi.",multiline:!1,maxLength:320,minLength:5},{value:"phone",label:"Kamuya açık telefon",description:"Yalnızca kamuya açık kurumsal veya mesleki telefon numarası.",multiline:!1,maxLength:100,minLength:5},{value:"address",label:"Kamuya açık adres",description:"Ãzel konut adresi deÄil, kamuya açık kurumsal veya mesleki adres.",multiline:!0,maxLength:1e3,minLength:10}],Ut={suggestionType:"correction",field:"description",proposedValue:"",explanation:"",sourceUrls:"",submitterName:"",submitterEmail:"",privacyAccepted:!1},Ht=new Set(["A","BLOCKQUOTE","BR","EM","H2","H3","H4","LI","OL","P","STRONG","UL"]),Ke={person:"/kisi",organization:"/kurum",company:"/kurum",institution:"/kurum",place:"/kurum",brand:"/marka",expert
1:"/uzman"};function d(l){return Array.isArray(l)?l.length>0:l&&typeof l=="object"?Object.keys(l).length>0:l!=null&&String(l).trim()!==""}function Gt(l){if(!l)return{};if(typeof l=="object"&&!Array.isArray(l))return l;if(typeof l=="string")try{const a=JSON.parse(l);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch{return{}}return{}}function h(l){if(!l)return[];if(Array.isArray(l))return l.flatMap(t=>h(t)).map(t=>String(t).trim()).filter(Boolean);if(typeof l=="object")return Object.values(l).flatMap(t=>h(t)).map(t=>String(t).trim()).filter(Boolean);const a=String(l).trim();if(!a)return[];if(a.startsWith("[")&&a.endsWith("]")||a.startsWith("{")&&a.endsWith("}"))try{return h(JSON.parse(a))}catch{}return a.split(/\r?\n|;|\s\|\s/g).map(t=>t.trim()).filter(Boolean)}function Yt(l){if(!l)return[];let a=l;if(typeof l=="string")try{a=JSON.parse(l)}catch{return[]}return!a||typeof a!="object"||Array.isArray(a)?[]:Object.entries(a).map(([t,i])=>({label:String(t||"Sosyal profil").trim(),url:String(i||"").trim()})).filter(t=>/^https?:\/\//i.test(t.url))}function Wt(l){return h(l).map(a=>String(a).trim()).filter(a=>/^https?:\/\//i.test(a)).map((a,t)=>{try{const i=new URL(a);return{id:`${i.hostname}-${t}`,url:a,host:i.hostname.replace(/^www\./,"")}}catch{return{id:`source-${t}`,url:a,host:"Kaynak"}}})}function Vt(l){return l?(Array.isArray(l)?l:[l]).map(t=>t?typeof t=="string"?{name:t,slug:""}:{name:t.name||t.title||t.label||"",slug:t.slug||""}:null).filter(t=>t?.name):[]}function xe(l,a="organization"){if(!l)return[];let t=l;if(typeof l=="string"){const r=l.trim();if(r.startsWith("[")&&r.endsWith("]")||r.startsWith("{")&&r.endsWith("}"))try{t=JSON.parse(r)}catch{t=h(l)}else t=h(l)}return(Array.isArray(t)?t:t&&typeof t=="object"?Object.values(t):[]).map(r=>r?typeof r=="string"?{name:r.trim(),slug:"",entityType:a,description:""}:{name:String(r.name||r.title||r.label||"").trim(),slug:String(r.slug||"").trim(),entityType:String(r.entity_type||r.entityType||r.type||a).trim(),description:String(r.description||r.role||r.note||"").trim()}:null).filter(r=>r?.name)}function Ft(l){if(!l)return[];let a=l;if(typeof l=="string"){const i=l.trim();if(i.startsWith("[")&&i.endsWith("]")||i.startsWith("{")&&i.endsWith("}"))try{a=JSON.parse(i)}catch{a=h(l)}else a=h(l)}return(Array.isArray(a)?a:a&&typeof a=="object"?Object.values(a):[]).map((i,r)=>{if(!i)return null;if(typeof i=="string"){const c=i.split(/\s+[ââ-]\s+/);return{id:`timeline-${r}`,date:c.length>1?c.shift():"",title:c.join(" â ")||i,description:"",sourceUrl:""}}return{id:String(i.id||`timeline-${r}`),date:String(i.date||i.year||i.period||"").trim(),title:String(i.title||i.event||i.name||"").trim(),description:String(i.description||i.summary||i.note||"").trim(),sourceUrl:String(i.source_url||i.sourceUrl||"").trim()}}).filter(i=>i?.title)}function Jt(l){if(!l)return[];let a=l;if(typeof l=="string")try{a=JSON.parse(l)}catch{return[]}return Array.isArray(a)?a.map((t,i)=>{if(!t||typeof t!="object")return null;const r=String(t.title||t.heading||t.name||"").trim(),c=String(t.body||t.content||t.description||"").trim();return!r||!c?null:{id:String(t.id||t.slug||`ozel-bolum-${i+1}`).toLocaleLowerCase("tr-TR").replace(/[çÄıöÅü]/g,v=>({ç:"c",Ä:"g",ı:"i",ö:"o",Å:"s",ü:"u"})[v]).replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),title:r,body:c,sortOrder:Number(t.sort_order||t.sortOrder||i+1)}}).filter(Boolean).sort((t,i)=>t.sortOrder-i.sortOrder):[]}function qt(l){if(!l)return[];let a=l;if(typeof l=="string")try{a=JSON.parse(l)}catch{return[]}return Array.isArray(a)?a.map(t=>{if(!t||typeof t!="object")return null;const i=String(t.label||t.name||t.title||"").trim(),r=t.value??t.content??t.text;return!i||!d(r)?null:{label:i,value:r}}).filter(Boolean):a&&typeof a=="object"?Object.entries(a).map(([t,i])=>({label:t,value:i})).filter(t=>d(t.value)):[]}function Qt(l){if(!l)return[];let a=l;if(typeof l=="string")try{a=JSON.parse(l)}catch{return[]}return!a||typeof a!="object"||Array.isArray(a)?[]:Object.entries(a).map(([t,i])=>d(i)?i&&typeof i=="object"&&!Array.isArray(i)?{label:t,value:String(i.value||i.id||"").trim(),url:String(i.url||"").trim()}:{label:t,value:String(i).trim(),url:""}:null).filter(t=>t?.value)}function n(l,a){for(const t of l)for(const i of a)if(d(t?.[i]))return t[i];return""}function Z(l=""){return String(l).replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi," ").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi," ").replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/\s+/g," ").trim()}function Xt(l=""){return String(l).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ve(l=""){return String(l).trim().split(/\n{2,}/).map(a=>`<p>${Xt(a).replace(/\n/g,"<br>")}</p>`).join("")}function B(l=""){const a=String(l||"").trim();if(!a)return"";const t=/<\/?[a-z][\s\S]*>/i.test(a)?a:Ve(a);if(typeof window>"u"||typeof window.DOMParser>"u")return t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>
1/gi,"").replace(/\son\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\shref\s*=\s*(?:"|')?\s*(?:javascript|data|vbscript):[^"' >]*/gi,"");const r=new window.DOMParser().parseFromString(`<div>${t}</div>`,"text/html"),c=r.body.firstElementChild;if(!c)return"";const v=L=>{Array.from(L.childNodes).forEach(k=>{if(k.nodeType===window.Node.COMMENT_NODE){k.remove();return}if(k.nodeType!==window.Node.ELEMENT_NODE)return;const g=k;if(!Ht.has(g.tagName)){if(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED","FORM"].includes(g.tagName)){g.remove();return}const f=r.createDocumentFragment();for(;g.firstChild;)f.appendChild(g.firstChild);g.replaceWith(f),v(L);return}if(Array.from(g.attributes).forEach(f=>{const p=f.name.toLowerCase();(!(g.tagName==="A"&&["href","title"].includes(p))||p.startsWith("on"))&&g.removeAttribute(f.name)}),g.tagName==="A"){const f=String(g.getAttribute("href")||"").trim();f.startsWith("/")||f.startsWith("#")||/^https?:\/\//i.test(f)?/^https?:\/\//i.test(f)&&(g.setAttribute("target","_blank"),g.setAttribute("rel","noopener noreferrer")):g.removeAttribute("href")}v(g)})};return v(c),c.innerHTML.trim()}function me(l){if(!l)return"";const a=He(l);return a&&a!=="-"?a:String(l)}function Zt(l){const a=h(l);return a.length>1?a.join(", "):a.length===1?a[0]:String(l||"").trim()}function ei(l,a){const t=l?.[a];return a==="description"?Z(t):t==null||t===""?"":typeof t=="object"?JSON.stringify(t,null,2):String(t).trim()}function ti(l,a){const t=String(a||"").trim();if(l==="official_website")try{const i=new URL(t);if(!["http:","https:"].includes(i.protocol))throw new Error}catch{throw new Error("Resmî web sitesi http:// veya https:// ile baÅlayan geçerli bir adres olmalıdır.")}if(l==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))throw new Error("Geçerli bir e-posta adresi girilmelidir.");if(l==="birth_date"&&!/^\d{4}(?:-\d{2}(?:-\d{2})?)?$/.test(t))throw new Error("DoÄum tarihi YYYY, YYYY-AA veya YYYY-AA-GG biçiminde olmalıdır.");return t}function m({label:l,value:a,children:t}){return!d(a)&&!t?null:e.jsxs("div",{children:[e.jsx("dt",{children:l}),e.jsx("dd",{children:t||Zt(a)})]})}function P({values:l}){const a=h(l);return a.length?e.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:a.map(t=>e.jsx("li",{className:"border-l-2 border-sky-600 bg-slate-50 px-4 py-3 text-sm leading-6 text-slate-700",children:t},t))}):null}function Ie({id:l,title:a,values:t,icon:i,children:r}){const c=h(t);return!c.length&&!r?null:e.jsxs("section",{id:l,className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[i?e.jsx(i,{className:"h-5 w-5 text-sky-700"}):null,e.jsx("h2",{children:a})]}),r||e.jsx("div",{className:"mt-4",children:e.jsx(P,{values:c})})]})}function $({id:l,title:a,value:t,icon:i,notice:r}){const c=B(t);return c?e.jsxs("section",{id:l,className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[i?e.jsx(i,{className:"h-5 w-5 text-sky-700"}):null,e.jsx("h2",{children:a})]}),r?e.jsx("div",{className:"mt-4 border-l-4 border-amber-400 bg-amber-50 px-4 py-3 text-sm leading-6 text-amber-950",children:r}):null,e.jsx("div",{className:"tr-prose tr-public-prose mt-4",dangerouslySetInnerHTML:{__html:c}})]}):null}function ii(l,a=""){let t=l;if(typeof l=="string"){const i=l.trim();if(i.startsWith("{")&&i.endsWith("}"))try{t=JSON.parse(i)}catch{t=null}else t=null}return!t||typeof t!="object"||Array.isArray(t)?{display:String(a||"").trim(),districtName:"",districtSlug:"",cityName:"",citySlug:"",countryName:"",countryCode:""}:{display:String(t.display||t.label||a||"").trim(),districtName:String(t.district_name||t.districtName||t.district||"").trim(),districtSlug:String(t.district_slug||t.districtSlug||"").trim(),cityName:String(t.city_name||t.cityName||t.city||"").trim(),citySlug:String(t.city_slug||t.citySlug||"").trim(),countryName:String(t.country_name||t.countryName||t.country||"").trim(),countryCode:String(t.country_code||t.countryCode||"").trim().toUpperCase()}}function ue({value:l,data:a}){const t=ii(a,l),i=[];return t.districtName&&i.push({key:"district",label:t.districtName,to:t.citySlug&&t.districtSlug?`/sehir/${t.citySlug}/${t.districtSlug}`:""}),t.cityName&&t.cityName.toLocaleLowerCase("tr-TR")!==t.districtName.toLocaleLowerCase("tr-TR")&&i.push({key:"city",label:t.cityName,to:t.citySlug?`/sehir/${t.citySlug}`:""}),t.countryName&&!i.some(r=>r.label.toLocaleLowerCase("tr-TR")===t.countryName.toLocaleLowerCase("tr-TR"))&&i.push({key:"country",label:t.countryName,to:""}),i.length?e.jsx("span",{children:i.map((r,c)=>e.jsxs(At.Fragment,{children:[c>0?", ":null,r.to?e.jsx(j,{to:r.to,className:"text-sky-700 underline-offset-2 hover:underline",children:r.label}):r.label]}
1,`${r.key}-${r.label}`))}):l?e.jsx(e.Fragment,{children:String(l)}):null}function Re({values:l,fallbackType:a="organization"}){const t=xe(l,a);return t.length?e.jsx("ul",{className:"grid gap-3 sm:grid-cols-2",children:t.map(i=>{const r=Ke[i.entityType]||Ke[a]||"",c=e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"block text-sm text-slate-900",children:i.name}),i.description?e.jsx("span",{className:"mt-1 block text-xs leading-5 text-slate-500",children:i.description}):null]});return e.jsx("li",{className:"border border-slate-200 bg-slate-50 px-4 py-3",children:i.slug&&r?e.jsx(j,{to:`${r}/${i.slug}`,className:"block hover:text-sky-800",children:c}):c},`${i.entityType}-${i.slug||i.name}`)})}):null}function ai({items:l}){return l.length?e.jsxs("section",{id:"kronoloji",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Ye,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"Kronoloji"})]}),e.jsx("ol",{className:"mt-5 space-y-0 border-l border-slate-300",children:l.map(a=>e.jsxs("li",{className:"relative pb-6 pl-6 last:pb-0",children:[e.jsx("span",{className:"absolute -left-[5px] top-2 h-2.5 w-2.5 rounded-full border-2 border-white bg-sky-700 ring-1 ring-slate-300"}),a.date?e.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.08em] text-sky-700",children:a.date}):null,e.jsx("h3",{className:"mt-1 font-semibold text-slate-950",children:a.title}),a.description?e.jsx("p",{className:"mt-1 text-sm leading-6 text-slate-600",children:a.description}):null,/^https?:\/\//i.test(a.sourceUrl)?e.jsxs("a",{href:a.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-1 text-xs font-semibold text-sky-700 hover:underline",children:["KaynaÄı aç",e.jsx(he,{className:"h-3.5 w-3.5"})]}):null]},a.id))})]}):null}function li({isAuthenticated:l,user:a,selectedField:t,currentFieldValue:i,suggestionForm:r,setSuggestionForm:c,suggestionError:v,suggestionSuccess:L,suggesting:k,onClose:g,onFieldChange:f,onSubmit:p,onResetSuccess:E}){return e.jsxs("section",{id:"bilgiyi-gelistir",className:"tr-entity-section scroll-mt-28 border border-sky-200 bg-sky-50/30","aria-labelledby":"suggestion-heading",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-sky-700",children:"Topluluk katkısı"}),e.jsx("h2",{id:"suggestion-heading",className:"mt-1",children:"KiÅi bilgisini geliÅtirin"}),e.jsx("p",{className:"mt-2 max-w-3xl text-sm leading-6 text-slate-600",children:"Ãneriniz doÄrudan yayımlanmaz. Editörler mevcut kayıt, gerekçe ve kaynakları karÅılaÅtırarak karar verir."})]}),e.jsx("button",{type:"button",className:"inline-flex h-9 w-9 shrink-0 items-center justify-center border border-slate-200 bg-white text-slate-500 hover:border-red-300 hover:text-red-700",onClick:g,"aria-label":"Bilgi geliÅtirme formunu kapat",disabled:k,children:e.jsx(Lt,{className:"h-4 w-4"})})]}),L?e.jsx("div",{className:"mt-6 border border-emerald-200 bg-emerald-50 p-5 text-emerald-950",role:"status",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0"}),e.jsxs("div",{children:[e.jsx("strong",{children:"Ãneriniz editörlere iletildi."}),e.jsx("p",{className:"mt-1 text-sm leading-6",children:"DeÄiÅiklik editoryal incelemeden geçmeden profile uygulanmaz."}),e.jsx("button",{type:"button",className:"mt-3 text-sm font-bold underline",onClick:E,children:"BaÅka bir öneri gönder"})]})]})}):e.jsxs("form",{onSubmit:p,className:"mt-6 space-y-5",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-type",children:"Ãneri türü"}),e.jsx("select",{id:"suggestion-type",className:"tr-input rounded-none",value:r.suggestionType,onChange:u=>c(y=>({...y,suggestionType:u.target.value})),children:Et.map(u=>e.jsx("option",{value:u.value,children:u.label},u.value))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-field",children:"DeÄiÅtirilecek alan"}),e.jsx("select",{id:"suggestion-field",className:"tr-input rounded-none",value:r.field,onChange:u=>f(u.target.value),children:pe.map(u=>e.jsx("option",{value:u.value,children:u.label},u.value))}),e.jsx("p",{className:"mt-1 text-xs leading-5 text-slate-500",children:t.description})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"tr-label",children:"Mevcut bilgi"}),e.jsx("div",{className:"max-h-52 overflow-auto border border-slate-200 bg-white px-4 py-3 text-sm leading-6 text-slate-600",children:i||e.jsx("span",{className:"italic text-slate-400",children:"Bu alan Åu anda boÅ."})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-value",children:"Ãnerilen yeni bilgi"}),t.multiline?e.jsx("textarea",{id:"suggestion-value",className:"tr-input min-h-44 rounded-none",value:r.proposedValue,onChange:u=>c(y=>({...y,proposedValue:u.target.value})),minLength:t.minLength,maxLength:t.maxLength,required:!0}):e.jsx("input",{id:"suggestion-value",className:"tr-input rounded-none",type:r.field==="email"?"email":r.field==="official_website"?"url":(r.field==="birth_date","text"),value:r.proposedValue,onChange:u=>c(y=>({...y,proposedValue:u.target.value})),minLength:t.minLength,maxLength:t.maxLength,required:!0}),e.jsxs("div",{className:"mt-1 flex justify-between gap-3 text-xs text-slate-500",children:[e.jsx("span",{children:"Bu bilgi mevcut alanın yerine önerilir."}),e.jsxs("span",{children:[r.proposedValue.length,"/",t.maxLength]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-explanation",children:"DeÄiÅiklik gerekçesi"}),e.jsx("textarea",{id:"suggestion-explanation",className:"tr-input min-h-32 rounded-none",value:r.explanation,onChange:u=>c(y=>({...y,explanation:u.target.value})),minLength:20,maxLength:1500,placeholder:"Mevcut bilginin neden eksik veya yanlıŠolduÄunu açıklayın.",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-sources",children:"Kaynak baÄlantıları"}),e.jsx("textarea",{id:"suggestion-sources",className:"tr-input min-h-28 rounded-none",value:r.sourceUrls,onChange:u=>c(y=>({...y,sourceUrls:u.target.value})),placeholder:`Her satıra bir kaynak baÄlantısı yazın. 2https://...`,required:!0}),e.jsxs("p",{className:"mt-1 text-xs leading-5 text-slate-500",children:["Resmî kurumlar, akademik yayınlar, kitaplar, arÅivler ve güvenilir haber k
2aynakları tercih edilmelidir."," ",e.jsx(j,{to:"/kaynak-politikasi",className:"font-bold text-sky-700 hover:underline",children:"Kaynak politikasını inceleyin"})]})]}),l?e.jsxs("div",{className:"flex items-start gap-3 border border-slate-200 bg-white px-4 py-3 text-sm text-slate-600",children:[e.jsx(Ge,{className:"mt-0.5 h-5 w-5 shrink-0 text-emerald-700"}),e.jsxs("p",{children:["Ãneri, hesabınızla"," ",e.jsx("strong",{className:"text-slate-900",children:a?.display_name||a?.email||"TRPedia kullanıcısı"})," ","olarak gönderilecektir."]})]}):e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-name",children:"Ad Soyad"}),e.jsx("input",{id:"suggestion-name",className:"tr-input rounded-none",autoComplete:"name",value:r.submitterName,onChange:u=>c(y=>({...y,submitterName:u.target.value})),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"tr-label",htmlFor:"suggestion-email",children:"E-posta"}),e.jsx("input",{id:"suggestion-email",type:"email",className:"tr-input rounded-none",autoComplete:"email",value:r.submitterEmail,onChange:u=>c(y=>({...y,submitterEmail:u.target.value})),required:!0})]})]}),e.jsxs("label",{className:"flex items-start gap-3 border border-slate-200 bg-white px-4 py-3 text-sm leading-6 text-slate-600",children:[e.jsx("input",{type:"checkbox",className:"mt-1 h-4 w-4 shrink-0",checked:r.privacyAccepted,onChange:u=>c(y=>({...y,privacyAccepted:u.target.checked})),required:!0}),e.jsxs("span",{children:["GönderdiÄim bilgilerin editoryal inceleme amacıyla iÅlenmesini kabul ediyor;"," ",e.jsx(j,{to:"/kvkk-aydinlatma-metni",className:"font-bold text-sky-700 hover:underline",children:"KVKK Aydınlatma Metni"})," ","ile"," ",e.jsx(j,{to:"/gizlilik-politikasi",className:"font-bold text-sky-700 hover:underline",children:"Gizlilik Politikası"}),"ânı okuduÄumu beyan ediyorum."]})]}),v?e.jsx("div",{className:"border border-red-200 bg-red-50 px-4 py-3 text-sm leading-6 text-red-800",role:"alert",children:v}):null,e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-t border-slate-200 pt-5",children:[e.jsxs("div",{className:"flex max-w-2xl items-start gap-2 text-xs leading-5 text-slate-500",children:[e.jsx(We,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsx("span",{children:"Editör onayı olmadan bilgi canlı profile uygulanmaz."})]}),e.jsxs("button",{type:"submit",className:"tr-public-primary-button",disabled:k,children:[k?e.jsx(zt,{className:"h-4 w-4 animate-spin"}):e.jsx(Kt,{className:"h-4 w-4"}),k?"Gönderiliyor...":"Ãneriyi editöre gönder"]})]})]})]})}function yi(){const{slug:l}=gt(),{user:a,isAuthenticated:t}=yt(),[i,r]=x.useState(null),[c,v]=x.useState(!0),[L,k]=x.useState(""),[g,f]=x.useState(!1),[p,E]=x.useState(Ut),[u,y]=x.useState(!1),[Fe,z]=x.useState(""),[Je,D]=x.useState(!1);x.useEffect(()=>{let s=!0;return v(!0),k(""),r(null),f(!1),D(!1),z(""),ft(l,"person").then(b=>{s&&r(b)}).catch(b=>{s&&k(b?.message||"Profil bulunamadı.")}).finally(()=>{s&&v(!1)}),()=>{s=!1}},[l]),x.useEffect(()=>{E(s=>({...s,submitterName:s.submitterName||a?.display_name||"",submitterEmail:s.submitterEmail||a?.email||""}))},[a?.display_name,a?.email]);const N=x.useMemo(()=>Gt(i?.profile_data),[i?.profile_data]),ge=x.useMemo(()=>B(i?.description),[i?.description]),w=i?.expand?.category||null,K=i?.expand?.city||null,ee=i?.expand?.district||null,W=x.useMemo(()=>Vt(i?.expand?.tags||i?.expand?.tag||i?.expand?.topics||i?.expand?.topic),[i?.expand?.tags,i?.expand?.tag,i?.expand?.topics,i?.expand?.topic]),ye=x.useMemo(()=>Yt(i?.social_links),[i?.social_links]),V=x.useMemo(()=>Wt(n([N,i||{}],["source_urls","sources","references"])),[i,N]),fe=x.useMemo(()=>Jt(n([N],["custom_sections","sections"])),[N]),be=x.useMemo(()=>Ft(n([N],["timeline","chronology"])),[N]),qe=x.useMemo(()=>qt(n([N],["additional_info","infobox_extra"])),[N]),te=x.useMemo(()=>Qt(n([N],["authority_control","authority_ids"])),[N]),o=[N,i||{}],Qe=n(o,["full_name","legal_name"]),Xe=n(o,["birth_name","name_at_birth"]),ie=h(n(o,["alternative_names","other_names","nicknames"])),_=n(o,["birth_date"]),S=n(o,["birth_place"]),Ze
2=n(o,["birth_place_data","birth_location"]),F=n(o,["death_date"]),I=n(o,["death_place"]),et=n(o,["death_place_data","death_location"]),ae=h(n(o,["nationality"])),tt=h(n(o,["citizenship","citizenships"])),je=n(o,["residence","place_of_residence"]),ke=n(o,["residence_place_data","residence_location"]),A=h(n(o,["occupations","occupation","professions"])),T=h(n(o,["education","education_institutions","alma_mater"])),R=n(o,["active_years","years_active"]),U=h(n(o,["positions","roles","offices"])),H=h(n(o,["known_for","notability"])),G=h(n(o,["notable_works","works","projects"])),M=h(n(o,["awards","honours"])),J=n(o,["early_life","childhood","life"]),q=n(o,["education_details","education_history"]),Q=n(o,["career","professional_career"]),X=n(o,["entrepreneurship","business_career","ventures_text"]),ve=n(o,["social_activities","philanthropy","social_responsibility"]),Ne=n(o,["media_activities","press_activities","public_appearances"]),le=n(o,["publications","books","bibliography"]),we=n(o,["personal_life","private_life"]),Se=n(o,["legal_processes","legal_history"]),_e=n(o,["controversies","criticism"]),it=h(n(o,["movements","movement"])),se=h(n(o,["affiliations","memberships"])),at=h(n(o,["languages"])),lt=n(o,["spouse","spouses"]),st=n(o,["children"]),rt=n(o,["parents"]),nt=n(o,["relatives"]),ot=n(o,["organizations","associated_organizations","works_for"]),ct=n(o,["founded_organizations","founded_companies","ventures"]),C=pe.find(s=>s.value===p.field)||pe[0],Le=x.useMemo(()=>ei(i,p.field),[i,p.field]),re=()=>{f(!0),D(!1),z(""),window.setTimeout(()=>{document.getElementById("bilgiyi-gelistir")?.scrollIntoView({behavior:"smooth",block:"start"})},50)},dt=()=>{u||(f(!1),z(""))},mt=s=>{E(b=>({...b,field:s,proposedValue:""})),z(""),D(!1)},ut=async s=>{s.preventDefault(),y(!0),z(""),D(!1);try{const b=ti(p.field,p.proposedValue);if(b.length<C.minLength)throw new Error(`${C.label} önerisi en az ${C.minLength} karakter olmalıdır.`);if(b.length>C.maxLength)throw new Error(`${C.label} önerisi en fazla ${C.maxLength} karakter olabilir.`);if(Z(Le).toLocaleLowerCase("tr-TR")===Z(b).toLocaleLowerCase("tr-TR"))throw new Error("Ãnerilen bilgi mevcut bilgiyle aynı görünüyor.");const Ce=p.explanation.trim();if(Ce.length<20)throw new Error("DeÄiÅiklik gerekçesi en az 20 karakter olmalıdır.");const Oe=p.sourceUrls.split(/\n+/).map(ce=>ce.trim()).filter(Boolean);if(!Oe.length)throw new Error("Ãneriyi doÄrulayabilmek için en az bir güvenilir kaynak baÄlantısı eklenmelidir.");if(!p.privacyAccepted)throw new Error("Gizlilik ve kiÅisel veri bilgilendirmesini kabul etmelisiniz.");const xt=p.field==="description"?Ve(b):b;await St({entity:i,submittedBy:t&&a?.id||"",submitterName:p.submitterName,submitterEmail:p.submitterEmail,suggestionType:p.suggestionType,proposedChanges:{[p.field]:xt},explanation:Ce,sourceUrls:Oe}),D(!0),E(ce=>({...ce,proposedValue:"",explanation:"",sourceUrls:"",privacyAccepted:!1}))}catch(b){z(_t(b,b?.message||"Ãneriniz gönderilemedi."))}finally{y(!1)}};if(c)return e.jsxs(e.Fragment,{children:[e.jsx(de,{pageType:"noindex",record:{title:"KiÅi profili yükleniyor"}}),e.jsx("div",{className:"tr-public-container py-16",children:e.jsx(bt,{})})]});if(L||!i)return e.jsxs(e.Fragment,{children:[e.jsx(de,{pageType:"notFound"}),e.jsx("div",{className:"tr-public-container py-16",children:e.jsx(jt,{title:"Profil bulunamadı",message:L||"Profil yayımlanmamıŠveya kaldırılmıŠolabilir."})})]});const ne=`${Pe}/kisi/${i.slug}`,oe=De(i,"profile_image"),Ee=De(i,"profile_image",{thumb:"900x1200"})||oe,ze=(i.seo_description||i.summary||Z(i.description)||`${i.name} hakkında kaynaklandırılmıŠTRPedia kiÅi profili.`).slice(0,170),ht={...i,seo_title:i.seo_title||i.name,seo_description:ze},Ae=[i.official_website,...ye.map(s=>s.url)].filter(Boolean),O=xe(ot||se,"organization"),Y=xe(ct,"organization"),pt={"@context":"https://schema.org","@type":"Person","@id":`${ne}#entity`,name:i.name,alternateName:ie.length?ie:void 0,description:ze,url:ne,image:oe||void 0,birthDate:_||void 0,birthPlace:S?{"@type":"Place",name:S}:void 0,deathDate:F||void 0,deathPlace:I?{"@type":"Place",name:I}:void 0,nationality:ae.length?ae.join(", "):void 0,jobTitle:A.length?A:void 0,alumniOf:T.length?T.map(s=>({"@type":"EducationalOrganization",name:s})):void 0,affiliation:O.length?O.map(s=>({"@type":"Organization",name:s.name,url:s.slug?`${Pe}/kurum/${s.slug}`:void 0})):void 0,award:M.length?M:void 0,sameAs:Ae.length?[...new Set(Ae)]:void 0},Te=[{id:"genel-bakis",label:"Genel BakıÅ",show:!0},{id:"hayati",label:"Hayatı",show:d(J)||d(_)||d(S)},{id:"egitimi",label:"EÄitimi",show:d(q)||T.length>0},{id:"kariyeri",label:"Kariyeri",show:d(Q)||U.length>0||A.length>0||d(R)},{id:"girisimleri-ve-kurumlari",label:"GiriÅimleri ve Kurumları",show:d(X)||Y.length>0||O.length>0},{id:"calismalari",label:"ÃalıÅmaları",show:G.length>0||H.length>0},{id:"sosyal-faaliyetleri",label:"Sosyal Faaliyetleri",show:d(ve)},{id:"basin-ve-medya",label:"Basın ve Medya",show:d(Ne)},{id:"yayinlari",label:"Yayınları",show:d(le)},{id:"odulleri",label:"Ãdülleri",show:M.length>0},{id:"kronoloji",label:"Kronoloji",show:be.length>0},...fe.map(s=>({id:s.id,label:s.title,show:!0})),{id:"hukuki-surecler",label:"Hukuki Süreçler",show:d(Se)},{id:"tartismalar-ve-elestiriler",label:"TartıÅmalar ve EleÅtiriler",show:d(_e)},{id:"ozel-hayati",label:"Ãzel Hayatı",show:d(we)},{id:"kaynakca",label:"Kaynakça",show:V.length>0||d(i.official_website)},{id:"ilgili-konular",label:"İlgili Konular",show:!!(w||W.length)},{id:"otorite-kontrolu",label:"Otorite Kontrolü",show:te.length>0}].filter(s=>s.show);return e.jsxs(e.Fragment,{children:[e.jsx(de,{pageType:"person",record:ht,image:oe,currentUrl:ne}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(pt).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}}),e.jsxs("main",{className:"tr-public-container py-6 sm:py-9",children:[e.jsxs("nav",{"aria-label":"Sayfa yolu",className:"mb-4 flex flex-wrap items-center gap-2 text-sm text-slate-500",children:[e.jsx(j,{to:"/",className:"hover:text-sky-700 hover:underline",children:"Ana Sayfa"}),e.jsx("span",{"aria-hidden":"true",children:"/"}),w?e.jsxs(e.Fragment,{children:[e.jsx(j,{to:`/kategori/${w.slug}`,className:"hover:text-sky-700 hover:underline",children:w.name}),e.jsx("span",{"aria-hidden":"true",children:"/"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"KiÅiler"}),e.jsx("span",{"aria-hidden":"true",children:"/"})]}),e.jsx("span",{className:"max-w-full truncate text-slate-700","aria-current":"page",children:i.name})]}),e.jsx(Tt,{entity:i}),e.jsxs("div",{className:"tr-entity-layout",children:[e.jsxs("article",{className:"tr-entity-main",children:[Te.length>1?e.jsxs("nav",{className:"mb-6 border border-slate-200 bg-slate-50 px-5 py-4","aria-label":"Sayfa içeriÄi",children:[e.jsx("strong",{className:"block text-sm text-slate-950",children:"İçindekiler"}),e.jsx("div",{className:"mt-3 grid gap-x-6 gap-y-2 sm:grid-cols-2 xl:grid-cols-3",children:Te.map((s,b)=>e.jsxs("a",{href:`#${s.id}`,className:"text-sm font-semibold text-sky-700 hover:underline",children:[e.jsxs("span",{className:"mr-1 text-slate-400",children:[b+1,"."]}),s.label]},s.id))})]}):null,e.jsxs("section",{id:"genel-bakis",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("h2",{children:"Genel BakıÅ"}),e.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 border border-sky-200 bg-sky-50 px-3 py-2 text-sm font-bold text-sky-800 transition hover:border-sky-400 hover:bg-sky-100",onClick:re,children:[e.jsx($e,{className:"h-4 w-4"}),"Bu bilgiyi geliÅtirin"]})]}),ge?e.jsx("div",{className:"tr-prose tr-public-prose",dangerouslySetInnerHTML:{__html:ge}}):e.jsxs("div",{className:"tr-editorial-empty",children:[e.jsx("p",{children:"Bu kiÅi profili için ayrıntılı genel bakıŠhenüz eklenmemiÅtir."}),e.jsxs("button",{type:"button",className:"mt-3 inline-flex items-center gap-2 font-bold text-sky-700 hover:underline",onClick:re,children:[e.jsx(Ot,{className:"h-4 w-4"}),"Kaynaklı bilgi önerin"]})]})]}),d(J)||d(_)||d(S)?e.jsxs("section",{id:"hayati",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Ye,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"Hayatı"})]}),d(J)?e.jsx("div",{className:"tr-prose tr-public-prose mt-4",dangerouslySetInnerHTML:{__html:B(J)}}):e.jsx("div",{className:"tr-prose tr-public-prose mt-4",children:e.jsxs("p",{children:[i.name,_?`, ${me(_)} tarihinde`:"",S?` ${S} doÄdu`:" doÄdu","."]})})]}):null,d(q)||T.length>0?e.jsxs("section",{id:"egitimi",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(kt,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"EÄitimi"})]}),d(q)?e.jsx("div",{className:"tr-prose tr-public-prose mt-4",dangerouslySetInnerHTML:{__html:B(q)}}):null,T.length>0?e.jsx("div",{className:"mt-4",children:e.jsx(P,{values:T})}):null]}):null,d(Q)||U.length>0||A.length>0||d(R)?e.jsxs("section",{id:"kariyeri",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Rt,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"Kariyeri"})]}),d(Q)?e.jsx("div",{className:"tr-prose tr-public-prose mt-4",dangerouslySetInnerHTML:{__html:B(Q)}}):null,d(R)?e.jsxs("p",{className:"mt-4 text-sm leading-7 text-slate-700",children:[e.jsx("strong",{className:"text-slate-950",children:"Etkin yıllar:"})," ",R]}):null,U.length>0?e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"mb-3 font-semibold text-slate-950",children:"Görevleri"}),e.jsx(P,{values:U})]}):A.length>0?e.jsx("div",{className:"mt-4",children:e.jsx(P,{values:A})}):null]}):null,d(X)||Y.length>0||O.length>0?e.jsxs("section",{id:"girisimleri-ve-kurumlari",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(vt,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"GiriÅimleri ve Kurumları"})]}),d(X)?e.jsx("div",{className:"tr-prose tr-public-prose mt-4",dangerouslySetInnerHTML:{__html:B(X)}}):null,Y.length>0?e.jsxs("div",{className:"mt-5",children:[e.jsx("h3",{className:"mb-3 font-semibold text-slate-950",children:"KurduÄu giriÅimler"}),e.jsx(Re,{values:Y,fallbackType:"organization"})]}):null,O.length>0?e.jsxs("div",{className:"mt-5",children:[e.jsx("h3",{className:"mb-3 font-semibold text-slate-950",children:"İliÅkili kurumlar ve üyelikler"}),e.jsx(Re,{values:O,fallbackType:"organization"})]}):se.length>0?e.jsx("div",{className:"mt-5",children:e.jsx(P,{values:se})}):null]}):null,G.length>0||H.length>0?e.jsxs("section",{id:"calismalari",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Dt,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"ÃalıÅmaları ve TanınırlıÄı"})]}),H.length>0?e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"mb-3 font-semibold text-slate-950",children:"TanındıÄı alanlar"}),e.jsx(P,{values:H})]}):null,G.length>0?e.jsxs("div",{className:"mt-5",children:[e.jsx("h3",{className:"mb-3 font-semibold text-slate-950",children:"Ãnemli çalıÅmalar ve projeler"}),e.jsx(P,{values:G})]}):null]}):null,e.jsx($,{id:"sosyal-faaliyetleri",title:"Sosyal Faaliyetleri",value:ve,icon:Nt}),e.jsx($,{id:"basin-ve-medya",title:"Basın ve Medya Faaliyetleri",value:Ne,icon:Pt}),d(le)?e.jsx(Ie,{id:"yayinlari",title:"Yayınları ve Eserleri",values:le,icon:Me}):null,M.length>0?e.jsx(Ie,{id:"odulleri",title:"Ãdülleri ve Unvanları",values:M,icon:It}):null,e.jsx(ai,{items:be}),fe.map(s=>e.jsx($,{id:s.id,title:s.title,value:s.body,icon:Me},s.id)),e.jsx($,{id:"hukuki-surecler",title:"Hukuki Süreçler",value:Se,icon:Mt,notice:"İddia, soruÅturma, dava ve kesinleÅmiÅ hüküm birbirinden açıkça ayrılmalı; masumiyet karinesi ve güncel yargı durumu gözetilmelidir."}),e.jsx($,{id:"tartismalar-ve-elestiriler",title:"TartıÅmalar ve EleÅtiriler",value:_e,icon:We,notice:"Bu bölüm yalnızca kiÅinin ansiklopedik önem taÅıyan, güvenilir ve çoklu kaynaklarla doÄrulanabilen kamusal tartıÅmalarını içermelidir."}),e.jsx($,{id:"ozel-hayati",title:"Ãzel Hayatı",value:we,icon:Be,notice:"Ãzel hayat bilgileri yalnızca kiÅinin kamusal rolüyle ilgili, kamuya açık ve güvenilir kaynaklarla doÄrulanmıÅsa yayımlanmalıdır."}),V.length>0||i.official_website?e.jsxs("section",{id:"kaynakca",className:"tr-entity-section scroll-mt-28",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx($t,{className:"h-5 w-5 text-sky-700"}),e.jsx("h2",{children:"Kaynakça ve DıŠBaÄlantılar"})]}),e.jsxs("ol",{className:"mt-5 space-y-3 pl-5 text-sm leading-6 text-slate-700",children:[V.map(s=>e.jsx("li",{className:"list-decimal break-all",children:e.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-sky-700 hover:underline",children:s.host})},s.id)),i.official_website&&!V.some(s=>s.url===i.official_website)?e.jsx("li",{className:"list-decimal",children:e.jsxs("a",{href:i.official_website,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-sky-700 hover:underline",children:[i.name," resmî internet sitesi"]})}):null,ye.map(s=>e.jsx("li",{className:"list-decimal",children:e.jsxs("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-semibold text-sky-700 hover:underline",children:[s.label,e.jsx(he,{className:"h-3.5 w-3.5"})]})},s.url))]})]}):null,w||W.length>0?e.jsxs("section",{id:"ilgili-konular",className:"tr-entity-section scroll-mt-28",children:[e.jsx("h2",{children:"İlgili Konular"}),e.jsxs("div",{className:"border border-slate-200",children:[w?e.jsxs("div",{className:"grid gap-2 border-b border-slate-200 px-4 py-3 sm:grid-cols-[150px_1fr]",children:[e.jsx("strong",{className:"text-sm text-slate-700",children:"Kategori"}),e.jsx("div",{children:e.jsx(j,{to:`/kategori/${w.slug}`,className:"text-sm font-semibold text-sky-700 hover:underline",children:w.name})})]}):null,W.length>0?e.jsxs("div",{className:"grid gap-2 px-4 py-3 sm:grid-cols-[150px_1fr]",children:[e.jsx("strong",{className:"text-sm text-slate-700",children:"Etiketler"}),e.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:W.map(s=>s.slug?e.jsx(j,{to:`/etiket/${s.slug}`,className:"text-sm font-semibold text-sky-700 hover:underline",children:s.name},s.slug):e.jsx("span",{className:"text-sm text-slate-700",children:s.name},s.name))})]}):null]})]}):null,te.length>0?e.jsxs("section",{id:"otorite-kontrolu",className:"tr-entity-section scroll-mt-28",children:[e.jsx("h2",{children:"Otorite Kontrolü"}),e.jsx("div",{className:"flex flex-wrap gap-x-5 gap-y-2 text-sm",children:te.map(s=>s.url?e.jsxs("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-sky-700 hover:underline",children:[s.label,": ",s.value]},s.label):e.jsxs("span",{children:[e.jsxs("strong",{children:[s.label,":"]}
2)," ",s.value]},s.label))})]}):null,g?e.jsx(li,{isAuthenticated:t,user:a,selectedField:C,currentFieldValue:Le,suggestionForm:p,setSuggestionForm:E,suggestionError:Fe,suggestionSuccess:Je,suggesting:u,onClose:dt,onFieldChange:mt,onSubmit:ut,onResetSuccess:()=>{D(!1),z("")}}):null]}),e.jsxs("aside",{className:"tr-entity-side",children:[e.jsxs("section",{className:"tr-info-box",children:[e.jsx("h2",{className:"tr-info-box-title",children:i.name}),Ee?e.jsx("div",{className:"border-b border-slate-200 bg-white p-4 text-center",children:e.jsx("img",{src:Ee,alt:`${i.name} profil görseli`,className:"mx-auto aspect-square max-h-[420px] w-full max-w-[420px] object-cover",loading:"eager",fetchPriority:"high"})}):e.jsx("div",{className:"border-b border-slate-200 bg-white p-4",children:e.jsx("div",{className:"flex aspect-[4/3] items-center justify-center bg-slate-100 text-slate-400",children:e.jsx(Be,{className:"h-20 w-20"})})}),e.jsxs("dl",{className:"tr-info-box-list",children:[e.jsx(m,{label:"Profil türü",value:wt(i.entity_type)}),e.jsx(m,{label:"Tam adı",value:Qe}),e.jsx(m,{label:"DoÄum adı",value:Xe}),e.jsx(m,{label:"DiÄer adları",value:ie}),_||S?e.jsx(m,{label:"DoÄum",children:e.jsxs("div",{children:[_?e.jsx("div",{children:me(_)}):null,S?e.jsx("div",{children:e.jsx(ue,{value:S,data:Ze})}):null]})}):null,F||I?e.jsx(m,{label:"Ãlüm",children:e.jsxs("div",{children:[F?e.jsx("div",{children:me(F)}):null,I?e.jsx("div",{children:e.jsx(ue,{value:I,data:et})}):null]})}):null,je||ke?e.jsx(m,{label:"İkamet",children:e.jsx(ue,{value:je,data:ke})}):null,e.jsx(m,{label:"Milliyet",value:ae}),e.jsx(m,{label:"VatandaÅlık",value:tt}),e.jsx(m,{label:"Meslek",value:A}),e.jsx(m,{label:"EÄitim",value:T}),e.jsx(m,{label:"Etkin yıllar",value:R}),e.jsx(m,{label:"Görevler",value:U}),e.jsx(m,{label:"TanındıÄı alanlar",value:H}),e.jsx(m,{label:"ÃalıÅmalar",value:G}),e.jsx(m,{label:"Kurumlar",value:[...Y.map(s=>s.name),...O.map(s=>s.name)]}),e.jsx(m,{label:"Hareket / ekol",value:it}),e.jsx(m,{label:"Diller",value:at}),e.jsx(m,{label:"Ãdüller",value:M}),e.jsx(m,{label:"EÅ",value:lt}),e.jsx(m,{label:"Ãocuklar",value:st}),e.jsx(m,{label:"Ebeveynler",value:rt}),e.jsx(m,{label:"Akrabalar",value:nt}),qe.map(s=>e.jsx(m,{label:s.label,value:s.value},s.label)),w?e.jsx(m,{label:"Kategori",children:e.jsx(j,{to:`/kategori/${w.slug}`,children:w.name})}):null,K?e.jsx(m,{label:"Åehir",children:e.jsx(j,{to:`/sehir/${K.slug}`,children:K.name})}):null,ee&&K?e.jsx(m,{label:"İlçe",children:e.jsx(j,{to:`/sehir/${K.slug}/${ee.slug}`,children:ee.name})}):null,e.jsx(m,{label:"DoÄrulama",value:i.verification_status==="verified"?"DoÄrulanmıŠprofil":"DoÄrulanmamıŠprofil"}),e.jsx(m,{label:"Son güncelleme",value:He(i.updated)})]})]}),e.jsx(Ct,{entity:i}),e.jsxs("section",{className:"tr-side-actions",children:[e.jsx("h2",{children:"Bu bilgiyi geliÅtirin"}),e.jsx("p",{children:"Eksik veya hatalı kiÅi bilgisini güvenilir kaynaklarla birlikte editörlere önerebilirsiniz."}),e.jsxs("button",{type:"button",className:"tr-side-action-link w-full text-left",onClick:re,children:[e.jsx($e,{className:"h-4 w-4"}),"Bilgi düzenlemesi öner"]})]}),e.jsxs("section",{className:"tr-side-actions",children:[e.jsx("h2",{children:"Bu profil size mi ait?"}),e.jsx("p",{children:"Profil sahibi veya yetkili temsilciyseniz profil sahiplenme talebi gönderebilirsiniz."}),e.jsxs(j,{to:`/profil-sahiplen/${i.slug}`,className:"tr-side-action-link",children:[e.jsx(Ge,{className:"h-4 w-4"}),"Profili sahiplen"]})]}),i.official_website?e.jsxs("section",{className:"tr-side-actions",children:[e.jsx("h2",{children:"Resmî baÄlantı"}),e.jsxs("a",{href:i.official_website,target:"_blank",rel:"noopener noreferrer",className:"tr-side-action-link",children:[e.jsx(he,{className:"h-4 w-4"}),"Resmî web sitesini aç"]})]}):null]})]})]})]})}export{yi 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.