PageSourceSearch

https://zengora.ai/assets/emsal-analiz-DfTkfIha.js

js zengora.ai collected 2026-09-24 14:31:18 UTC 8,005 bytes, 1 lines download raw bytes

1import{o as e}from"./chunk-CMxvf4Kt.js";import{n as t,t as n}from"./jsx-runtime-CWteFE1C.js";import{t as r}from"./link-CaMwX57H.js";import{t as i}from"./arrow-left-_-m6FLzj.js";import{t as a}from"./book-open-B5Q3B1ug.js";import{t as o}from"./loader-circle-Chk7P5Bi.js";import{t as s}from"./scale-FYXv9FSG.js";import{t as c}from"./search-CpXRPEhx.js";import{t as l}from"./utils-DJF9gtYK.js";import{t as u}from"./button-Brvujq8V.js";import{$t as d,n as f}from"./index-CPJpIk_a.js";import{t as p}from"./input-Dne7DTi8.js";import{t as m}from"./textarea-C8HwKO_x.js";import{r as h}from"./EmsalCitations-Dj2BRS63.js";var g=e(t(),1),_=n(),v=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:l(`rounded-xl border bg-card text-card-foreground shadow`,e),...t}));v.displayName=`Card`;var y=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:l(`flex flex-col space-y-1.5 p-6`,e),...t}));y.displayName=`CardHeader`;var b=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:l(`font-semibold leading-none tracking-tight`,e),...t}));b.displayName=`CardTitle`;var x=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:l(`text-sm text-muted-foreground`,e),...t}));x.displayName=`CardDescription`;var S=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:l(`p-6 pt-0`,e),...t}));S.displayName=`CardContent`;var C=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:l(`flex items-center p-6 pt-0`,e),...t}));C.displayName=`CardFooter`;function w({className:e,...t}){return(0,_.jsx)(o,{role:`status`,"aria-label":`Loading`,className:l(`size-4 animate-spin`,e),...t})}var T=`https://api.zengora.ai/api/emsal-analiz`,E=`/api/emsal-analiz`;function D(){let[e,t]=(0,g.useState)(``),[n,r]=(0,g.useState)(``),[i,o]=(0,g.useState)(!1),[l,f]=(0,g.useState)(null);async function x(t){if(t.preventDefault(),!e.trim()){d.error(`Lütfen bir hukuki soru yazın.`);return}o(!0),f(null);try{let t=await O(T,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({soru:e.trim(),kelime:n.trim()})}),r=await t.json();if(!t.ok||!r.ok){d.error((`error`in r?r.error:null)||`Analiz sırasında bir hata oluştu.`);return}f(r)}catch(e){console.error(`[emsal-analiz] istek hatası`,e),d.error(`Sunucuya ulaşılamadı. Lütfen internet bağlantınızı kontrol edin.`)}finally{o(!1)}}return(0,_.jsxs)(`div`,{className:`min-h-screen flex flex-col bg-background`,children:[(0,_.jsx)(k,{}),(0,_.jsxs)(`main`,{className:`flex-1`,children:[(0,_.jsxs)(`section`,{className:`relative overflow-hidden bg-[#0a1628] py-16 md:py-24 text-white`,children:[(0,_.jsxs)(`div`,{className:`pointer-events-none absolute inset-0 opacity-10`,children:[(0,_.jsx)(`div`,{className:`absolute -left-20 -top-20 h-96 w-96 rounded-full bg-[var(--zengora-blue)] blur-3xl`}),(0,_.jsx)(`div`,{className:`absolute bottom-0 right-0 h-80 w-80 rounded-full bg-[var(--zengora-blue)] blur-3xl`})]}),(0,_.jsxs)(`div`,{className:`relative mx-auto max-w-4xl px-6 text-center`,children:[(0,_.jsxs)(`div`,{className:`inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/10 px-3 py-1 text-xs uppercase tracking-wider text-slate-200`,children:[(0,_.jsx)(s,{className:`size-3.5`}),` ZengoraAi`]}),(0,_.jsx)(`h1`,{className:`mt-6 font-display text-3xl font-semibold tracking-tight md:text-5xl`,children:`Zengora Emsal ve Analiz Motoru`}),(0,_.jsx)(`p`,{className:`mx-auto mt-4 max-w-2xl text-base leading-relaxed text-slate-300 md:text-lg`,children:`Yargıtay emsalleri ve yapay zeka destekli hukuki analiz için sorunuzu yazın, kapsamlı bir değerlendirme alın.`})]})]}),(0,_.jsx)(`section`,{className:`py-10 md:py-16`,children:(0,_.jsxs)(`div`,{className:`mx-auto max-w-3xl px-6`,children:[(0,_.jsxs)(`form`,{onSubmit:x,className:`space-y-6`,children:[(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`label`,{htmlFor:`soru`,className:`text-sm font-medium text-foreground`,children:`Hukuki Sorunuz`}),(0,_.jsx)(m,{id:`soru`,value:e,onChange:e=>t(e.target.value),placeholder:`Örn: İşçinin haksız fesih durumunda kıdem tazminatı hakkı nedir?`,className:`min-h-[160px] resize-y`,required:!0})]}),(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`label`,{htmlFor:`kelime`,className:`text-sm font-medium text-foreground`,children:`Arama Terimi`}),(0,_.jsx)(p,{id:`kelime`,value:n,onChange:e=>
1r(e.target.value),placeholder:`Arama Terimi (Örn: haksız fesih)`})]}),(0,_.jsx)(`div`,{className:`flex justify-end`,children:(0,_.jsx)(u,{type:`submit`,size:`lg`,disabled:i,className:`gap-2 bg-[var(--zengora-blue)] px-8 text-white hover:bg-[var(--zengora-blue-soft)]`,children:i?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(w,{className:`size-4`}),`Zengora Yargıtay emsallerini inceliyor...`]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c,{className:`size-4`}),`Analiz Et`]})})})]}),i&&(0,_.jsxs)(`div`,{className:`mt-12 rounded-2xl border border-border bg-card p-12 text-center shadow-lg`,children:[(0,_.jsx)(`div`,{className:`mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-[var(--zengora-blue)]/10`,children:(0,_.jsx)(w,{className:`size-8 text-[var(--zengora-blue)]`})}),(0,_.jsx)(`p`,{className:`text-lg font-medium text-foreground`,children:`Zengora Yargıtay emsallerini inceliyor...`}),(0,_.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Lütfen kısa bir süre bekleyin.`})]}),l?.ok&&l.analiz_sonucu&&(0,_.jsxs)(`div`,{className:`mt-10 space-y-6`,children:[(0,_.jsxs)(v,{className:`border-t-4 border-t-[var(--zengora-blue)] shadow-lg`,children:[(0,_.jsx)(y,{children:(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(a,{className:`size-5 text-[var(--zengora-blue)]`}),(0,_.jsx)(b,{children:`Hukuki Analiz Sonucu`})]})}),(0,_.jsx)(S,{children:(0,_.jsx)(`div`,{className:`whitespace-pre-wrap text-sm leading-relaxed text-foreground`,children:l.analiz_sonucu})})]}),l.kaynaklar&&l.kaynaklar.length>0&&(0,_.jsxs)(v,{className:`shadow`,children:[(0,_.jsx)(y,{children:(0,_.jsx)(b,{className:`text-base`,children:`Kullanılan Emsal Kararlar`})}),(0,_.jsx)(S,{className:`space-y-4`,children:l.kaynaklar.map((e,t)=>(0,_.jsxs)(`div`,{className:`rounded-lg border border-border bg-muted/50 p-4`,children:[(0,_.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs font-medium text-[var(--zengora-blue)]`,children:[(0,_.jsx)(`span`,{children:e.daire}),(0,_.jsx)(`span`,{className:`text-muted-foreground`,children:`•`}),(0,_.jsxs)(`span`,{children:[`E.`,e.esas_no,` / K.`,e.karar_no]}),(0,_.jsx)(`span`,{className:`text-muted-foreground`,children:`•`}),(0,_.jsx)(`span`,{children:e.karar_tarihi})]}),(0,_.jsx)(`p`,{className:`mt-2 line-clamp-3 text-sm text-muted-foreground`,children:h(e.ozet)})]},t))})]})]})]})})]}),(0,_.jsx)(A,{})]})}function O(e,t){return fetch(e,t).catch(e=>(console.warn(`[emsal-analiz] Birincil uç nokta başarısız, yedek deneniyor:`,e),fetch(E,t)))}function k(){return(0,_.jsx)(`header`,{className:`sticky top-0 z-40 border-b border-white/10 bg-[#0a1628]/90 backdrop-blur`,children:(0,_.jsxs)(`div`,{className:`mx-auto flex h-16 max-w-7xl items-center justify-between px-6`,children:[(0,_.jsxs)(r,{to:`/`,className:`flex items-center gap-2.5`,children:[(0,_.jsx)(`img`,{src:f,alt:`ZengoraAi`,className:`h-8 w-auto`}),(0,_.jsx)(`span`,{className:`text-lg font-semibold text-white`,style:{fontFamily:`'Playfair Display', serif`},children:`ZengoraAi`})]}),(0,_.jsxs)(r,{to:`/`,className:`inline-flex items-center gap-1.5 text-sm text-slate-300 hover:text-white`,children:[(0,_.jsx)(i,{className:`size-4`}),` Ana Sayfa`]})]})})}function A(){return(0,_.jsx)(`div`,{className:`border-t border-border bg-muted/50 py-3`,children:(0,_.jsx)(`div`,{className:`mx-auto max-w-4xl px-6 text-center text-xs text-muted-foreground`,children:`Zengora profesyonel kullanım içindir. Sunulan bilgiler hukuki görüş veya avukat-müvekkil ilişkisi kurmaz; kesin yargı kaynağı yerine geçmez.`})})}export{D as component};

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.