1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9974],{79974:function(e,t,s){s.r(t),s.d(t,{default:function(){return m}});var r=s(57437),a=s(2265),l=s(60429),i=s(98617),n=s(32489),d=s(95805),c=s(10407),x=s(42097),h=s(26544),o=s(91193);function m({onClose:e}){let t=(0,h.NT)(),s=(0,h.Jr)(),[m,p]=(0,a.useState)([]),[u,b]=(0,a.useState)(!0),[f,j]=(0,a.useState)(null),[k,N]=(0,a.useState)("time"),{setSelectedYear:v}=(0,x.D)();(0,a.useEffect)(()=>{fetch("/api/dynasty?gender=female").then(e=>e.json()).then(e=>{p(e.rulers||[])}).catch(console.error).finally(()=>b(!1))},[]);let g=(()=>{if("civ"===k){let e={};return m.forEach(r=>{let a=(0,o.UH)(r.civilization,s)||t("Bilinmeyen");e[a]||(e[a]=[]),e[a].push(r)}),Object.entries(e).sort((e,t)=>e[0].localeCompare(t[0],"en"===s?"en":"tr"))}let e={"Antik \xc7aÄ (M\xd6)":[],"Klasik D\xf6nem (0-500)":[],"Orta \xc7aÄ (500-1453)":[],"Erken Modern (1453-1789)":[],"Modern D\xf6nem (1789+)":[]};return m.forEach(t=>{t.startYear<0?e["Antik \xc7aÄ (M\xd6)"].push(t):t.startYear<500?e["Klasik D\xf6nem (0-500)"].push(t):t.startYear<1453?e["Orta \xc7aÄ (500-1453)"].push(t):t.startYear<1789?e["Erken Modern (1453-1789)"].push(t):e["Modern D\xf6nem (1789+)"].push(t)}),Object.entries(e).filter(([,e])=>e.length>0)})();return(0,r.jsxs)(l.E.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},className:"fixed right-0 top-0 h-full w-[380px] max-w-[95vw] bg-lh-surface backdrop-blur-xl border-l border-pink-500/20 z-[1000] flex flex-col overflow-hidden",children:[(0,r.jsxs)("div",{className:"p-4 border-b border-lh-border flex items-center justify-between bg-gradient-to-r from-pink-950/50 to-gray-950",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(i.Z,{className:"w-5 h-5 text-pink-400"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-sm font-bold text-lh-text",children:t("Kadın Tarihi")}),(0,r.jsxs)("p",{className:"text-[10px] text-pink-300/70",children:[m.length," ",t("kadın h\xfck\xfcmdar")]})]})]}),(0,r.jsx)("button",{onClick:e,"aria-label":t("Kapat"),className:"p-1 hover:bg-lh-surface-3 rounded",children:(0,r.jsx)(n.Z,{className:"w-4 h-4 text-lh-muted-2"})})]}),(0,r.jsxs)("div",{className:"px-4 py-2 flex gap-2 border-b border-lh-border-subtle",children:[(0,r.jsx)("button",{onClick:()=>N("time"),className:`px-3 py-1 rounded text-[10px] transition ${"time"===k?"bg-pink-500/20 text-pink-300 border border-pink-500/30":"bg-lh-surface-3 text-lh-muted-2 border border-lh-border hover:text-lh-text"}`,children:t("D\xf6neme G\xf6re")}),(0,r.jsx)("button",{onClick:()=>N("civ"),className:`px-3 py-1 rounded text-[10px] transition ${"civ"===k?"bg-pink-500/20 text-pink-300 border border-pink-500/30":"bg-lh-surface-3 text-lh-muted-2 border border-lh-border hover:text-lh-text"}`,children:t("Medeniyete G\xf6re")})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto",children:u?(0,r.jsx)("div",{className:"flex items-center justify-center h-40",children:(0,r.jsx)("div",{className:"text-pink-300 animate-pulse",children:t("Y\xfckleniyor...")})}):0===m.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center h-40 text-lh-muted-3",children:[(0,r.jsx)(d.Z,{className:"w-8 h-8 mb-2"}),(0,r.jsx)("p",{className:"text-sm",children:t("Kadın h\xfck\xfcmdar verisi bulunamadı")})]}):(0,r.jsx)("div",{className:"space-y-1 p-2",children:g.map(([e,a])=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"px-2 py-1.5 text-[10px] font-medium text-pink-400/80 uppercase tracking-wider sticky top-0 bg-lh-surface backdrop-blur-sm",children:["civ"===k?e:t(e)," (",a.length,")"]}),a.map(e=>(0,r.jsxs)("button",{onClick:()=>{j(f?.id===e.id?null:e),v(e.startYear)},className:`w-full text-left px-3 py-2 rounded-lg mb-0.5 transition-all ${f?.id===e.id?"bg-pink-500/15 border border-pink-500/30":"hover:bg-lh-surface-3 border border-transparent"}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-pink-400 text-sm",children:"â"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("div",{className:"flex items-center gap-1",children:(0,r.jsxs)("span",{className:"text-[11px] font-medium text-lh-text truncate",children:[e.title&&(0,r.jsxs)("span",{className:"text-lh-muted-2",children:[(0,o.ko)(e.title,s)," "]}),(0,o.UH)(e,s)]})}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 mt-0.5",children:[(0,r.jsxs)("span",{className:"text-[9px] text-lh-muted-2",children:[(0,h.b)(e.startYear,s),e.endYear?` â ${(0,h.b)(e.endYear,s)}`:""]}),e.civilization&&(0,r.jsx)("span",{className:"text-[9px] px-1.5 py-0.5 rounded-full",style:{backgroundColor:`${e.civilization.color}20`,color:e.civilization.color},children:(0,o.UH)(e.civilization,s)})]})]}),(0,r.jsx)(c.Z,{className:"w-3 h-3 text-lh-muted-2 flex-shrink-0"})]}),f?.id===e.id&&(0,r.jsxs)("div",{className:"mt-2 pt-2 border-t border-lh-border-subtle space-y-1.5",children:[e.dynastyName&&(0,r.jsxs)("p",{className:"text-[10px] text-lh-muted-2",children:[(0,r.jsx)("span",{className:"text-lh-muted-3",children:t("Hanedan:")})," ",e.dynastyName]}),e.succession&&(0,r.jsxs)("p",{className:"text-[10px] text-lh-muted-2",children:[(0,r.jsx)("span",{className:"text-lh-muted-3",children:t("Tahta Ge\xe7iÅ:")})," ",t(e.succession)]}),e.notableAgeEvent&&(0,r.jsxs)("p",{className:"text-[10px] text-purple-300",children:["â ",e.notableAge," ",t("yaÅında"),": ",e.notableAgeEvent]}),(0,o.H5)(e,s)&&(0,r.jsx)("p",{className:"text-[10px] text-lh-muted-2 leading-relaxed",children:(0,o.H5)(e,s)})]})]},e.id))]},e))})}),(0,r.jsx)("div",{className:"p-3 border-t border-lh-border bg-lh-surface-2",children:(0,r.jsx)("p",{className:"text-[10px] text-lh-muted-3 text-center",children:t("Tarih boyunca kadın liderler, imparatorlar ve krali\xe7eler. Bir h\xfck\xfcmdarı se\xe7erek haritada d\xf6nemine gidebilirsiniz.")})})]})}}}]);
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.