PageSourceSearch

https://harikabirtavsiye.com/assets/bitki-asistani.index-6lOBGF2F.js

js harikabirtavsiye.com collected 2026-09-24 14:45:45 UTC 6,181 bytes, 1 lines download raw bytes

1import{cg as h,bK as b,cm as g,bR as k,ci as p,bs as e,au as y,aw as f,L as j,bD as N}from"./index-B4NHUQaw.js";import{u as v,F as w}from"./flask-conical-DnmwQAxN.js";import{B}from"./Breadcrumbs-D3aXYEoK.js";import{L as o}from"./leaf-DvUweIU5.js";import{I as F}from"./info-CJeECuui.js";import"./chevron-right-De_Z80i3.js";function _(){const r=h(),[s,i]=b.useState(""),c=g(k),x=v(N),t=s.trim(),l=p({queryKey:["bitki-asistani","search",t],queryFn:()=>c({data:{query:t}}),enabled:t.length>=2,staleTime:60*1e3}),n=x.data?.plants??[],d=l.data?.plants??[],u=t.length>=2;return e.jsx("div",{className:"min-h-screen bg-[hsl(var(--background))]",children:e.jsxs("div",{className:"container-page py-6",children:[e.jsx(B,{items:[{label:"Ana Sayfa",to:"/"},{label:"Bitki Asistanı"}]}),e.jsxs("header",{className:"mt-6 max-w-3xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-emerald-300/60 bg-emerald-50 px-3 py-1 text-xs font-medium text-emerald-900 dark:border-emerald-500/30 dark:bg-emerald-950/40 dark:text-emerald-200",children:[e.jsx(o,{className:"h-3.5 w-3.5"}),"Bitki Rehberi ve Güvenli Kullanım Asistanı"]}),e.jsx("h1",{className:"mt-4 text-3xl font-semibold tracking-tight text-foreground sm:text-4xl",children:"Elinizdeki bitkinin adını yazın"}),e.jsx("p",{className:"mt-3 text-base text-muted-foreground",children:"Bitkinin kullanım biçimini, genel güvenlik uyarılarını, bilinen ilaç etkileşimlerini ve çay olarak hazırlanıyorsa demleme bilgilerini tek ekranda inceleyin."}),e.jsxs("div",{role:"note",className:"mt-4 flex items-start gap-2 rounded-lg border border-amber-300/50 bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:border-amber-500/30 dark:bg-amber-950/40 dark:text-amber-200",children:[e.jsx(F,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),e.jsx("span",{children:"Bu uygulama genel bilgilendirme amacı taşır; teşhis, tedavi veya kişisel kullanım onayı vermez."})]})]}),e.jsxs("div",{className:"mt-8 max-w-3xl",children:[e.jsx("label",{htmlFor:"bitki-search",className:"sr-only",children:"Bitki ara"}),e.jsxs("div",{className:"relative",children:[e.jsx(y,{className:"pointer-events-none absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),e.jsx("input",{id:"bitki-search",type:"search",autoComplete:"off",value:s,onChange:a=>i(a.target.value),placeholder:"Örnek: adaçayı, melisa, rezene, sarı kantaron…",className:"w-full rounded-xl border-2 border-emerald-300/60 bg-card py-4 pl-12 pr-4 text-base text-foreground shadow-sm placeholder:text-muted-foreground focus:border-emerald-500 focus:outline-none focus:ring-4 focus:ring-emerald-200/60 dark:border-emerald-500/30 dark:focus:ring-emerald-500/20"})]}),u&&e.jsxs("div",{className:"mt-4 rounded-xl border border-border bg-card p-3",children:[l.isFetching&&e.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"Aranıyor…"}),!l.isFetching&&d.length===0&&e.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"Bu konuda doğrulanmış ve yeterli bilgi bulunamadı. Farklı bir yazımla veya Latince ad ile arayabilirsiniz."}),!l.isFetching&&d.length>0&&e.jsx("ul",{className:"divide-y divide-border",children:d.map(a=>e.jsx(z,{plant:a,onSelect:()=>r({to:"/bitki-asistani/$slug",params:{slug:a.slug}})},a.id))})]})]}),e.jsxs("section",{className:"mt-12 grid gap-4 sm:grid-cols-3",children:[e.jsx(m,{icon:e.jsx(o,{className:"h-5 w-5"}),title:"Bitki tanıma",body:"Yaygın adı, Latince karşılığı ve kullanılan kısmı ile bitkiyi doğrulayın."}),e.jsx(m,{icon:e.jsx(f,{className:"h-5 w-5"}),title:"Güvenlik kontrolü",body:"Kısa sorularla dikkat edilmesi gereken durumları isteğe bağlı olarak inceleyin."}),e.jsx(m,{icon:e.jsx(w,{className:"h-5 w-5"}),title:"İlaç etkileşimi & demleme",body:"Bilinen etkileşim kayıtlarını ve gıda amaçlı demleme ölçüsünü görüntüleyin."})]}),e.jsxs("section",{className:"mt-12",children:[e.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Rehberdeki bitkiler"}),n.length===0?e.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Rehberde henüz yayında bitki bulunmuyor. Editör kaynak doğrulamasını tamamladıkça bitkiler burada listelenecek."}):e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["Toplam ",n.length," bitki. Rehberi geliştirmeye ve doğrulanmış içeriklerle genişletmeye devam ediyoruz."]}),e.jsx("ul",{className:"mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:n.map(a=>e.jsx("li",{children:e.jsx(j,{to:"/bitki-asistani/$slug",params:{slug:a.slug},className:"block rounded-xl border border-border bg-card px-4 py-3 transition hover:border-emerald-400/60 hover:shadow-sm",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground",children:a.common_name}),a.latin_name&&e.jsx("p",{className:"text-xs italic text-muted-foreground",children:a.latin_name})]}),e.jsx("span",{className:"text-xs text-emerald-700 dark:text-emerald-300",children:"İncele →"})]})})},`db-${a.id}`))})]})]})]})})}function z({plant:r,onSelect:s}){return e.jsx("li",{children:e.jsxs("button",{type:"button",onClick:s,className:"flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-left transition hover:bg-surface",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate font-medium text-foreground",children:r.common_name}),r.latin_name&&e.jsx("p",{className:"truncate text-xs italic text-muted-foreground",children:r.latin_name})]}),e.jsx("span",{className:"shrink-0 text-xs text-emerald-700 dark:text-emerald-300",children:"Aç →"})]})})}function m({icon:r,title:s,body:i}){return e.jsxs("div",{className:"rounded-xl border border-border bg-card p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-emerald-700 dark:text-emerald-300",children:[r,e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:s})]}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:i})]})}export{_ 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.