1import{_ as V,r as v,j as e,B}from"./index-DjWZhdIJ.js";import{u as R}from"./AppShell-DIIIFI5e.js";import{R as X}from"./RankBadge-BILAEAWn.js";import{T as M}from"./trending-up-Dk0M4FPK.js";import{T as J}from"./trending-down-CFWCqSCc.js";import{R as L,T as O}from"./_baseAssignValue-D2N9PPeQ.js";import{B as E}from"./BarChart-p_M0enKC.js";import{C as _}from"./CartesianGrid-BTlQ8lMW.js";import{X as G,Y as K}from"./YAxis-DULFD3pE.js";import{B as P,C as S,L as C}from"./generateCategoricalChart-DFt2Wptm.js";import{b as Q,c as q}from"./PieChart-BVb13Kob.js";import{D as z}from"./download-ZrDs8SCQ.js";import{C as Z}from"./cpu-6uozI48G.js";import{U as ee}from"./users-CI3nX5gY.js";import{T as te}from"./trophy-D65tcbLP.js";const F="/assets/patentspotlight-2-CylW1SLQ.png",W="/assets/patent-raporu-logo-2-DYDwJrio.png",m={dark:"#0f2b46",accent:"#ff6b4a",green:"#10b981",red:"#ef4444",light:"#e2e8f0",gold:"#f59e0b",darkBg:"#0c1f33",darkCard:"#132d4a"},H=["Ocak","Åubat","Mart","Nisan","Mayıs","Haziran","Temmuz","AÄustos","Eylül","Ekim","Kasım","Aralık"];function N(t,a){return t===0?a>0?100:0:(a-t)/t*100}function se(t){if(!t)return 0;let a=t.trim();if(a=a.replace(/%/g,""),a.includes(".")&&a.includes(","))a=a.replace(/\./g,"").replace(/,/g,".");else if(a.includes(",")){const i=a.split(",");i.length===2&&i[1].length<=2?a=a.replace(/,/g,"."):a=a.replace(/,/g,"")}else if(a.includes(".")){const i=a.split(".");i.length===2&&i[1].length===3&&(a=a.replace(/\./g,""))}const h=parseFloat(a);return isNaN(h)?0:h}function D(t){var i;const a={turkpatent:{},pct:{},epc:{},toplam:{}},h=t.filter(l=>{var n;const c=(n=l[0])==null?void 0:n.trim();return H.includes(c)||c==="TOPLAM"});for(const l of h){const c=(i=l[0])==null?void 0:i.trim();if(c==="TOPLAM")continue;const n=l.slice(1).map(d=>se(d));n.length>=2&&(a.turkpatent[c]={prev:n[0],curr:n[1]}),n.length>=5&&(a.pct[c]={prev:n[3],curr:n[4]}),n.length>=8&&(a.epc[c]={prev:n[6],curr:n[7]}),n.length>=11&&(a.toplam[c]={prev:n[9],curr:n[10]})}return a}function ye(t,a,h,i){const l=D(t),c=D(a),n=H.filter(x=>{const b=l.toplam[x];return b&&(b.prev>0||b.curr>0)}),d=n[n.length-1]||"Ocak";return{yerli:l,yabanci:c,prevYear:h,currYear:i,lastMonth:d}}function ve(t){const a=Object.values(t.yerli.toplam).reduce((l,c)=>l+c.prev,0),h=Object.values(t.yerli.toplam).reduce((l,c)=>
1l+c.curr,0),i=N(a,h);return i>=20?`Yerli Patent BaÅvuruları ${t.lastMonth} Ayında Rekor ArtıÅla Yükseliyor!`:i>=5?"Yerli Patent BaÅvurularında İstikrarlı YükseliÅ Sürüyor":i>=0?"Yerli Patent BaÅvurularında Dengeli Seyir Devam Ediyor":i>=-10?"Yerli Patent BaÅvurularında Hafif Gerileme Gözleniyor":"Yerli Patent BaÅvurularında Dikkat Ãekici DüÅüÅ"}function je(t){const a=Object.values(t.yerli.toplam).reduce((d,x)=>d+x.prev,0),h=Object.values(t.yerli.toplam).reduce((d,x)=>d+x.curr,0),i=N(a,h),l=Object.values(t.yabanci.toplam).reduce((d,x)=>d+x.prev,0),c=Object.values(t.yabanci.toplam).reduce((d,x)=>d+x.curr,0),n=N(l,c);return`${t.currYear} yılında yapılan yerli patent baÅvurularında, geçen yılın aynı dönemine göre kümülatifte %${Math.abs(i).toFixed(1)} ${i>=0?"artıÅ":"düÅüÅ"} meydana geldi ve baÅvuru sayısı ${a.toLocaleString("tr-TR")}'den ${h.toLocaleString("tr-TR")}'ye ${i>=0?"yükseldi":"geriledi"}. DiÄer yandan, yabancı buluÅ sahiplerinin Türkiye koruması için yaptıkları patent baÅvurusu sayısı ise ${t.prevYear} yılının aynı dönemine (${t.lastMonth}) kıyasla kümülatifte %${Math.abs(n).toFixed(1)} ${n>=0?"artıÅ":"düÅüÅ"} gösterdi.`}function re(t){const a=[],h=Object.keys(t.yerli.toplam);let i="",l=-1/0;for(const u of h){const p=t.yerli.toplam[u];if(p){const j=N(p.prev,p.curr);j>l&&(l=j,i=u)}}i&&a.push(`ð En yüksek artıÅ: ${i} (%${l.toFixed(0)})`);const c=Object.values(t.yerli.turkpatent).reduce((u,p)=>u+p.curr,0),n=Object.values(t.yerli.pct).reduce((u,p)=>u+p.curr,0),d=Object.values(t.yerli.epc).reduce((u,p)=>u+p.curr,0),x=c+n+d;if(x>0){const u=(c/x*100).toFixed(0);a.push(`ðï¸ TÃRKPATENT kanalı baÅvuruların %${u}'ini oluÅturuyor`)}const b=Object.values(t.yabanci.toplam).reduce((u,p)=>u+p.curr,0),y=Object.values(t.yerli.toplam).reduce((u,p)=>u+p.curr,0);if(b>0&&y>0){const u=(y/b).toFixed(1);a.push(`ð Yerli/Yabancı oranı: ${u}x`)}return a}async function U(t,a){const h=(await V(async()=>{const{default:c}=await import("./html2canvas.esm-CBrSDip1.js");return{default:c}},[])).default,i=await h(t,{backgroundColor:null,scale:3,useCORS:!0,logging:!1,width:t.scrollWidth,height:t.scrollHeight}),l=document.createElement("a");l.download=a,l.href=i.toDataURL("image/png"),l.click()}const Y={"Elektronik ve BiliÅim":"#3b82f6","Mekanik ve Ãretim":"#ef4444","Yapı ve Tüketici Ãrünleri":"#f59e0b","Ãlçüm ve Tıbbi Sistemler":"#10b981"},A={"Ar-Ge Merkezleri":"#ef4444","Teknoloji GeliÅtirme Bölgeleri":"#10b981","DiÄer Ãzel Sektör Firmaları":"#f59e0b"};function ke({data:t,title:a,embedded:h}){var T,o,f;const i=v.useRef(null),[l,c]=v.useState("basvuru"),n=v.useCallback(async()=>{if(i.current)try{await U(i.current,`turkpatent-stats-${t.year}.png`),R.success("Görsel indirildi")}catch{R.error("İndirme baÅarısız")}},[t]),d=[{key:"basvuru",label:"BaÅvuru & Tescil",icon:M},{key:"tech",label:"Teknoloji DaÄılımı",icon:Z},{key:"applicant",label:"Kurum DaÄılımı",icon:ee},{key:"leaders",label:"BaÅvuru Liderleri",icon:te}],x=t.basvuruTescil.years.map((s,r)=>({name:s,basvuru:t.basvuruTescil.basvuru[r],tescil:t.basvuruTescil.tescil[r]})),b=t.basvuruTescil.basvuru.map((s,r)=>{if(r===0)return null;const g=t.basvuruTescil.basvuru[r-1];return g>0?(s-g)/g*100:0}),y=t.basvuruTescil.tescil.map((s,r)=>{if(r===0)return null;const g=t.basvuruTescil.tescil[r-1];return g>0?(s-g)/g*100:0}),u=[...t.techDistribution].sort((s,r)=>r.value-s.value),p=((T=u[0])==null?void 0:T.value)||1,j=[...t.leaders].sort((s,r)=>r.value-s.value),$=((o=j[0])==null?void 0:o.value)||1,w=a||`${t.year} Yılı Yerli Patent İstatistikleri`;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{ref:i,className:"relative overflow-hidden rounded-2xl",style:{background:"linear-gradient(160deg, #0c1f33 0%, #132d4a 50%, #0f2b46 100%)"},children:[e.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 rounded-full opacity-8",style:{background:"radial-gradient(circle, #3b82f6 0%, transparent 70%)"}}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 rounded-full opacity-5",style:{background:"radial-gradient(circle, #10b981 0%, transparent 70%)"}}),e.jsxs("div",{className:"relative p-8 lg:p-10",children:[e.jsx("div",{className:"flex items-start justify-between mb-6",children:e.jsxs("div",{children:[e.jsx("img",{src:F,alt:"Patent Spotlight",className:"h-16 object-contain mb-4"}),e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold text-white leading-tight",children:w}),e.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Kaynak: TÃRKPATENT · ",new Date().toLocaleDateString("tr-TR")]})]})}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-8",children:d.map(s=>e.jsxs("button",{onClick:()=>c(s.key),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-semibold transition-all duration-300",style:{background:l===s.key?"linear-gradient(135deg, #ff6b4a 0%, #ff8a6a 100%)":"rgba(255,255,255,0.06)",color:l===s.key?"#fff":"#94a3b8",border:`1px solid ${l===s.key?"transparent":"rgba(255,255,255,0.08)"}`,transform:l===s.key?"scale(1.02)":"scale(1)",boxShadow:l===s.key?"0 4px 20px rgba(255,107,74,0.3)":"none"},children:[e.jsx(s.icon,{className:"w-4 h-4"}),s.label]},s.key))}),l==="basvuru"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[x.map((s,r)=>e.jsxs("div",{className:"rounded-xl p-4",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.08)"},children:[e.jsxs("div",{className:"text-xs text-slate-400 mb-1",children:[s.name," BaÅvuru"]}),e.jsx("div",{className:"text-2xl font-black text-white",children:s.basvuru.toLocaleStr
1ing("tr-TR")}),b[r]!==null&&e.jsxs("div",{className:"text-xs font-semibold mt-1 flex items-center gap-1",style:{color:b[r]>=0?m.green:m.red},children:[b[r]>=0?e.jsx(M,{className:"w-3 h-3"}):e.jsx(J,{className:"w-3 h-3"}),"%",Math.abs(b[r]).toFixed(1)]})]},`b-${r}`)),e.jsxs("div",{className:"rounded-xl p-4",style:{background:"rgba(16,185,129,0.1)",border:"1px solid rgba(16,185,129,0.2)"},children:[e.jsxs("div",{className:"text-xs text-emerald-400 mb-1",children:[t.year," Tescil"]}),e.jsx("div",{className:"text-2xl font-black text-emerald-300",children:(f=x[x.length-1])==null?void 0:f.tescil.toLocaleString("tr-TR")}),y[y.length-1]!==null&&e.jsxs("div",{className:"text-xs font-semibold mt-1",style:{color:m.green},children:["%",Math.abs(y[y.length-1]).toFixed(1)," artıÅ"]})]})]}),e.jsxs("div",{className:"rounded-xl p-6",style:{background:"rgba(255,255,255,0.04)"},children:[e.jsx("h3",{className:"text-white font-bold text-lg mb-4",children:"Yerli Patent BaÅvuru ve Tescil Sayıları"}),e.jsx("div",{style:{height:320},children:e.jsx(L,{width:"100%",height:"100%",children:e.jsxs(E,{data:x,barGap:8,children:[e.jsx(_,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.06)",vertical:!1}),e.jsx(G,{dataKey:"name",tick:{fill:"#94a3b8",fontSize:13,fontWeight:600},axisLine:!1,tickLine:!1}),e.jsx(K,{tick:{fill:"#475569",fontSize:11},axisLine:!1,tickLine:!1,tickFormatter:s=>s>=1e3?`${(s/1e3).toFixed(0)}K`:String(s)}),e.jsx(O,{contentStyle:{background:"#132d4a",border:"1px solid rgba(255,255,255,0.1)",borderRadius:12,color:"#fff"},labelStyle:{color:"#fff"},itemStyle:{color:"#fff"},formatter:s=>s.toLocaleString("tr-TR"),cursor:{fill:"rgba(255,255,255,0.06)"}}),e.jsxs(P,{dataKey:"basvuru",name:"BaÅvuru",radius:[6,6,0,0],barSize:50,children:[x.map((s,r)=>e.jsx(S,{fill:["#ef4444","#10b981","#3b82f6"][r]||"#3b82f6"},r)),e.jsx(C,{dataKey:"basvuru",position:"top",formatter:s=>s.toLocaleString("tr-TR"),style:{fill:"#fff",fontSize:13,fontWeight:700}})]}),e.jsxs(P,{dataKey:"tescil",name:"Tescil",radius:[6,6,0,0],barSize:50,children:[x.map((s,r)=>e.jsx(S,{fill:["#ef444480","#10b98180","#3b82f680"][r]||"#3b82f680"},r)),e.jsx(C,{dataKey:"tescil",position:"top",formatter:s=>s.toLocaleString("tr-TR"),style:{fill:"#94a3b8",fontSize:11,fontWeight:600}})]})]})})}),e.jsx("div",{className:"flex items-center justify-center gap-6 mt-3",children:x.map((s,r)=>e.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[e.jsx("div",{className:"w-3 h-3 rounded-sm",style:{background:["#ef4444","#10b981","#3b82f6"][r]}}),s.name," Yılı"]},r))})]})]}),l==="tech"&&e.jsxs("div",{className:"rounded-xl p-6",style:{background:"rgba(255,255,255,0.04)"},children:[e.jsx("h3",{className:"text-white font-bold text-lg mb-2",children:"BaÅvuruların Teknoloji DaÄılımı"}),e.jsxs("p",{className:"text-slate-400 text-sm mb-6",children:["İlk ",u.length," Teknoloji Kategorisi"]}),e.jsx("div",{className:"space-y-3",children:u.map((s,r)=>{const g=s.value/p*100,k=Y[s.category]||"#3b82f6";return e.jsx("div",{className:"group",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-[200px] text-right text-sm text-slate-300 font-medium shrink-0 truncate",children:s.name}),e.jsx("div",{className:"flex-1 h-10 rounded-lg relative overflow-hidden",style:{background:"rgba(255,255,255,0.04)"},children:e.jsx("div",{className:"h-full rounded-lg transition-all duration-700 ease-out flex items-center",style:{width:`${g}%`,background:`linear-gradient(90deg, ${k} 0%, ${k}cc 100%)`,boxShadow:`0 0 20px ${k}30`},children:e.jsx("span",{className:"text-white font-bold text-sm pl-3 whitespace-nowrap drop-shadow-lg",children:s.value.toLocaleString("tr-TR")})})}),r===0&&e.jsx("span",{className:"text-xs px-2 py-1 rounded-full font-bold shrink-0",style:{background:"rgba(245,158,11,0.15)",color:"#f59e0b"},children:"ð¥ 1."})]})},r)})}),e.jsx("div",{className:"flex flex-wrap gap-4 mt-6 pt-4",style:{borderTop:"1px solid rgba(255,255,255,0.08)"},children:Object.entries(Y).map(([s,r])=>e.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[e.jsx("div",{className:"w-3 h-3 rounded-sm",style:{background:r}}),s]},s))})]}),l==="applicant"&&e.jsxs("div",{className:"rounded-xl p-6",style:{background:"rgba(255,255,255,0.04)"},children:[e.jsx("h3",{className:"text-white font-bold text-lg mb-2",children:"BaÅvuru Sahiplerinin DaÄılımı"}),e.jsxs("p",{className:"text-slate-400 text-sm mb-6",children:[t.year," Yılı Yerli Patent ve Faydalı Model"]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center",children:[e.jsx("div",{style:{height:300},children:e.jsx(L,{width:"100%",height:"100%",children:e.jsxs(Q,{children:[e.jsx(q,{data:t.applicantDistribution,cx:"50%",cy:"50%",innerRadius:60,outerRadius:120,paddingAngle:3,dataKey:"value",stroke:"none",children:t.applicantDistribution.map((s,r)=>e.jsx(S,{fill:s.color},r))}),e.jsx(O,{contentStyle:{background:"#132d4a",border:"1px solid rgba(255,255,255,0.1)",borderRadius:12,color:"#fff"},labelStyle:{color:"#fff"},itemStyle:{color:"#fff"},formatter:s=>`%${s}`,cursor:{fill:"rgba(255,255,255,0.06)"}})]})})}),e.jsx("div",{className:"space-y-3",children:t.applicantDistribution.sort((s,r)=>r.value-s.value).map((s,r)=>e.jsxs("div",{className:"flex items-center gap-3 rounded-xl p-3",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx("div",{className:"w-4 h-4 rounded-full shrink-0",style:{background:s.
1color}}),e.jsx("div",{className:"flex-1",children:e.jsx("div",{className:"text-sm text-slate-200 font-medium",children:s.name})}),e.jsxs("div",{className:"text-xl font-black text-white",children:["%",s.value]})]},r))})]})]}),l==="leaders"&&e.jsxs("div",{className:"rounded-xl p-6",style:{background:"rgba(255,255,255,0.04)"},children:[e.jsx("h3",{className:"text-white font-bold text-lg mb-2",children:"Yerli Patent ve Faydalı Model BaÅvuru Liderleri"}),e.jsxs("p",{className:"text-slate-400 text-sm mb-6",children:[t.year," Yılı · İlk 10"]}),e.jsx("div",{className:"space-y-2.5",children:j.map((s,r)=>{const g=s.value/$*100,k=A[s.category]||"#ef4444",I=r<3;return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-6 text-center text-sm font-bold text-slate-500 shrink-0 flex items-center justify-center",children:I?e.jsx(X,{rank:r+1,size:22}):r+1}),e.jsx("div",{className:"w-[160px] text-right text-sm text-slate-200 font-bold shrink-0 truncate uppercase",children:s.name}),e.jsx("div",{className:"flex-1 h-9 rounded-lg relative overflow-hidden",style:{background:"rgba(255,255,255,0.04)"},children:e.jsx("div",{className:"h-full rounded-lg transition-all duration-700 ease-out flex items-center justify-end pr-3",style:{width:`${Math.max(g,8)}%`,background:`linear-gradient(90deg, ${k}90 0%, ${k} 100%)`,boxShadow:r<3?`0 0 20px ${k}40`:"none"},children:e.jsx("span",{className:"text-white font-bold text-sm whitespace-nowrap drop-shadow-lg",children:s.value.toLocaleString("tr-TR")})})})]},r)})}),e.jsx("div",{className:"flex flex-wrap gap-4 mt-6 pt-4",style:{borderTop:"1px solid rgba(255,255,255,0.08)"},children:Object.entries(A).map(([s,r])=>e.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[e.jsx("div",{className:"w-3 h-3 rounded-sm",style:{background:r}}),s]},s))})]})]}),e.jsxs("div",{className:"flex items-center justify-between px-8 py-3 w-full",style:{background:`linear-gradient(135deg, ${m.dark} 0%, #1a3d5c 100%)`},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-white flex items-center justify-center flex-shrink-0",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:m.dark,children:e.jsx("path",{d:"M8 5v14l11-7z"})})}),e.jsx("span",{className:"text-white font-bold text-base tracking-widest uppercase leading-none",children:"PATENTRAPORU.COM"})]}),e.jsx("img",{src:W,alt:"Patent Raporu",className:"h-14 object-contain flex-shrink-0"})]})]}),!h&&e.jsx("div",{className:"flex justify-end",children:e.jsxs(B,{onClick:n,variant:"outline",className:"gap-2",children:[e.jsx(z,{className:"w-4 h-4"})," PNG İndir"]})})]})}function Ne({data:t,title:a,bodyText:h,config:i}){const l=v.useRef(null),c=Object.values(t.yerli.toplam).reduce((o,f)=>o+f.prev,0),n=Object.values(t.yerli.toplam).reduce((o,f)=>o+f.curr,0),d=N(c,n),x=Object.values(t.yabanci.toplam).reduce((o,f)=>o+f.prev,0),b=Object.values(t.yabanci.toplam).reduce((o,f)=>o+f.curr,0),y=N(x,b),u=[{name:`${t.prevYear} ${t.lastMonth}`,value:c},{name:`${t.currYear} ${t.lastMonth}`,value:n}],p=v.useCallback(async()=>{if(l.current)try{await U(l.current,`patent-spotlight-${t.currYear}-${t.lastMonth}.png`),R.success("Görsel indirildi")}catch{R.error("İndirme baÅarısız")}},[t]),j=a||`Yerli Patent BaÅvuruları ${t.lastMonth} Ayında da YükseliÅte!`,$=h||`${t.currYear} yılında yapılan yerli patent baÅvurularında, geçen yılın aynı dönemine göre kümülatifte %${Math.abs(d).toFixed(1)} ${d>=0?"artıÅ":"düÅüÅ"} meydana geldi ve baÅvuru sayısı ${c.toLocaleString("tr-TR")}'den ${n.toLocaleString("tr-TR")}'ye ${d>=0?"yükseldi":"geriledi"}. DiÄer yandan, yabancı buluÅ sahiplerinin Türkiye koruması için yaptıkları patent baÅvurusu sayısı ise ${t.prevYear} yılının aynı dönemine (${t.lastMonth}) kıyasla kümülatifte %${Math.abs(y).toFixed(1)} ${y>=0?"artıÅ":"düÅüÅ"} gösterdi.`,w=re(t),T=Object.keys(t.yerli.toplam);return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{ref:l,className:"relative overflow-hidden rounded-2xl",style:{background:"#ffffff"},children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[45%_55%] ga
1p-0",children:[e.jsxs("div",{className:"p-8 lg:p-10 flex flex-col justify-between",style:{background:"linear-gradient(160deg, #e8edf2 0%, #d4dce6 100%)"},children:[e.jsxs("div",{children:[e.jsx("div",{className:"mb-6",children:e.jsx("img",{src:F,alt:"Patent Spotlight",className:"h-20 object-contain",style:{filter:"brightness(0) saturate(100%)"}})}),e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold leading-tight mb-4",style:{color:m.dark},children:j}),e.jsx("p",{className:"text-base leading-relaxed mb-4",style:{color:"#334155"},dangerouslySetInnerHTML:{__html:$.replace(/%[\d.,]+\s*(artıÅ|yükseliÅ)/g,o=>`<strong style="color:${m.green}">${o}</strong>`).replace(/%[\d.,]+\s*(düÅüÅ|gerileme)/g,o=>`<strong style="color:${m.red}">${o}</strong>`)}}),w.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:w.map((o,f)=>e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium",style:{background:"#0f2b4612",color:m.dark},children:o},f))})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",style:{color:"#64748b"},children:[e.jsx("span",{children:"Kaynak: TÃRKPATENT"}),e.jsx("span",{children:new Date().toLocaleDateString("tr-TR",{day:"2-digit",month:"2-digit",year:"2-digit"})})]})]}),e.jsxs("div",{className:"p-6 lg:p-8 flex flex-col items-center justify-center bg-white",children:[e.jsxs("div",{className:"flex items-baseline gap-2 mb-4",children:[e.jsxs("svg",{width:"48",height:"32",viewBox:"0 0 48 32",fill:"none",className:"self-center",children:[e.jsx("path",{d:"M4 28L16 16L24 22L44 4",stroke:d>=0?m.green:m.red,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M32 4H44V16",stroke:d>=0?m.green:m.red,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]}),e.jsxs("span",{className:"text-5xl font-black leading-none",style:{color:d>=0?m.green:m.red},children:["%",Math.abs(d).toFixed(0)]})]}),e.jsx("div",{className:"w-full",style:{height:320},children:e.jsx(L,{width:"100%",height:"100%",children:e.jsxs(E,{data:u,barSize:100,children:[e.jsx(_,{strokeDasharray:"3 3",stroke:"#e2e8f0",vertical:!1}),e.jsx(G,{dataKey:"name",tick:{fill:"#334155",fontSize:13,fontWeight:600},axisLine:!1,tickLine:!1}),e.jsx(K,{tick:{fill:"#94a3b8",fontSize:11},axisLine:!1,tickLine:!1}),e.jsxs(P,{dataKey:"value",radius:[8,8,0,0],children:[u.map((o,f)=>e.jsx(S,{fill:f===1?m.dark:"#94a3b8"},f)),e.jsx(C,{dataKey:"value",position:"center",formatter:o=>o.toLocaleString("tr-TR"),style:{fill:"#fff",fontSize:24,fontWeight:800}})]})]})})}),e.jsxs("p",{className:"text-center text-xs mt-2 font-medium",style:{color:"#64748b"},children:[t.prevYear," ve ",t.currYear," yıllarında İlgili Dönemlerde (",t.lastMonth,") TÃRKPATENT'e yapılan yerli patent baÅvuruları (PCT, EPC dahil)"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between px-8 py-3 w-full",style:{background:`linear-gradient(135deg, ${m.dark} 0%, #1a3d5c 100%)`},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-white flex items-center justify-center flex-shrink-0",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:m.dark,children:e.jsx("path",{d:"M8 5v14l11-7z"})})}),e.jsx("span",{className:"text-white font-bold text-base tracking-widest uppercase leading-none",children:"PATENTRAPORU.COM"})]}),e.jsx("img",{src:W,alt:"Patent Raporu",className:"h-14 object-contain flex-shrink-0"})]})]}),e.jsx("div",{className:"flex justify-end",children:e.jsxs(B,{onClick:p,variant:"outline",className:"gap-2",children:[e.jsx(z,{className:"w-4 h-4"}),"PNG İndir"]})}),e.jsx("div",{className:"rounded-xl border overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsxs("thead",{children:[e.jsxs("tr",{style:{background:m.dark},children:[e.jsx("th",{className:"px-3 py-2 text-left text-white font-medium",children:"Ay"}),e.jsx("th",{className:"px-3 py-2 text-right text-white font-medium",colSpan:3,children:"TÃRKPATENT"}),e.jsx("th",{className:"px-3 py-2 text-right text-white font-medium",colSpan:3,children:"PCT"}),e.jsx("th",{className:"px-3 py-2 text-right text-white font-medium",colSpan:3,children:"EPC"}),e.jsx("th",{className:"px-3 py-2 text-right text-white font-medium",colSpan:3,children:"Toplam"})]}),e.jsxs("tr",{className:"bg-muted/50",children:[e.jsx("th",{className:"px-3 py-1 text-left text-xs text-muted-foreground"}),["TÃRKPATENT","PCT","EPC","Toplam"].map(o=>e.jsxs(v.Fragment,{children:[e.jsx("th",{className:"px-2 py-1 text-right text-xs text-muted-foreground",children:t.prevYear}),e.jsx("th",{className:"px-2 py-1 text-right text-xs text-muted-foreground",children:t.currYear}),e.jsx("th",{className:"px-2 py-1 text-right text-xs text-muted-foreground",children:"ArtıÅ"})]},o))]})]}),e.jsx("tbody",{children:T.map(o=>{const f=["turkpatent","pct","epc","toplam"];return e.jsxs("tr",{className:"border-t hover:bg-muted/30",children:[e.jsx("td",{className:"px-3 py-1.5 font-medium",children:o}),f.map(s=>{const r=t.yerli[s][o];if(!r)return e.jsxs(v.Fragment,{children:[e.jsx("td",{className:"px-2 py-1.5 text-right text-muted-foreground",children:"-"}),e.jsx("td",{className:"px-2 py-1.5 text-right text-muted-foreground",children:"-"}),e.jsx("td",{className:"px-2 py-1.5 text-right text-muted-foreground",children:"-"})]},s);const g=N(r.prev,r.curr);return e.jsxs(v.Fragment,{children:[e.jsx("td",{className:"px-2 py-1.5 text-right tabular-nums",children:r.prev.toLocaleStr
1ing("tr-TR")}),e.jsx("td",{className:"px-2 py-1.5 text-right tabular-nums font-semibold",children:r.curr.toLocaleString("tr-TR")}),e.jsxs("td",{className:"px-2 py-1.5 text-right tabular-nums font-medium",style:{color:g>=0?m.green:m.red},children:[g>=0?"+":"",g.toFixed(1),"%"]})]},s)})]},o)})})]})})]})}export{m as B,ke as S,Ne as a,W as b,N as c,U as d,ve as e,je as f,re as g,ye as p,F as s};
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.