PageSourceSearch

https://harikabirtavsiye.com/assets/yazilar._slug-KcNwpWVd.js

js harikabirtavsiye.com collected 2026-09-24 14:45:47 UTC 11,588 bytes, 1 lines download raw bytes

1import{b3 as z,bs as e,L as p,ax as _,am as A,bC as B,bK as $,bM as L,aG as c,aC as E,aw as M,t as f,at as S}from"./index-B4NHUQaw.js";import{A as x}from"./arrow-right-DtpsqgMN.js";import{B as T}from"./Breadcrumbs-D3aXYEoK.js";import{S as P}from"./ShareButtons-XzDF-Fvb.js";import{A as H,a as R}from"./ArticleAuthorHeader-BRqGaSFf.js";import{A as Y}from"./ArticleSources-C8mA8xrL.js";import{L as C}from"./ListenButton-Ch0sHXi9.js";import{L as y}from"./leaf-DvUweIU5.js";import{r as D}from"./internal-article-links-DJqvBR99.js";import{M as V,r as F,a as G}from"./index-EYSOtlvt.js";import"./chevron-right-De_Z80i3.js";import"./SharePreviewModal-Cu17jFV8.js";import"./loader-circle-Dhd4cV8X.js";import"./download-C6tQ0MQN.js";import"./share-2-BBt2srrj.js";import"./send-Bl9VTmgA.js";import"./link-2-CQvPWEly.js";import"./pencil-line-BnalvSbl.js";import"./calendar-days-DQCqdCxd.js";import"./refresh-cw-D8H2lbJL.js";import"./clock-DeeRJ4lv.js";import"./external-link-CEIEjp_U.js";import"./mic-CkcF6P9e.js";import"./headphones-BljmcxT9.js";const I=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],U=z("newspaper",I);function K({posts:r}){return!r||r.length===0?null:e.jsxs("nav",{"aria-label":"İlgili yazılar",className:"mt-12 rounded-2xl border border-border bg-surface p-5 md:p-6",children:[e.jsxs("h2",{className:"inline-flex items-center gap-2 text-lg font-serif",children:[e.jsx(U,{className:"h-4 w-4 text-primary"}),"İlgili yazılar"]}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Bu konuya benzer diğer rehberlerimize göz atın."}),e.jsx("ul",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:r.map(a=>e.jsx("li",{children:e.jsxs(p,{to:"/yazilar/$slug",params:{slug:a.slug},className:"group flex items-start gap-3 rounded-xl border border-border bg-card p-3 transition hover:border-primary/40 hover:shadow-sm",children:[a.thumbnail_url?e.jsx("img",{src:a.thumbnail_url,alt:a.title,loading:"lazy",className:"h-16 w-24 shrink-0 rounded-lg object-cover"}):e.jsx("div",{className:"h-16 w-24 shrink-0 rounded-lg bg-gradient-to-br from-primary/20 to-primary/5"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"line-clamp-2 text-sm font-medium text-foreground/90 group-hover:text-primary",children:a.title}),e.jsxs("span",{className:"mt-1 inline-flex items-center gap-1 text-xs text-primary",children:["Devamını oku",e.jsx(x,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})]})]})},a.slug))})]})}function j({variant:r="strip",className:a=""}){return r==="strip"?e.jsxs(p,{to:"/bitki-asistani",className:`group flex flex-wrap items-center gap-3 rounded-xl border border-primary/30 bg-primary/5 px-4 py-3 text-sm transition-colors hover:bg-primary/10 ${a}`,"aria-label":"Bitki Asistanı aracını aç",children:[e.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/15 text-primary",children:e.jsx(y,{className:"h-4 w-4","aria-hidden":!0})}),e.jsxs("span",{className:"flex-1 min-w-[12rem] leading-snug",children:[e.jsx("span",{className:"font-medium text-foreground",children:"Bitki Asistanı"}),e.jsx("span",{className:"text-muted-foreground",children:" — elindeki bitkiyi tanı, uyarıları öğren."})]}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-primary font-medium whitespace-nowrap group-hover:gap-2 transition-all",children:["Aracı Aç ",e.jsx(x,{className:"h-4 w-4","aria-hidden":!0})]})]}):e.jsx("aside",{className:`rounded-2xl border border-primary/30 bg-gradient-to-br from-primary/10 via-primary/5 to-transparent p-6 md:p-7 ${a}`,"aria-label":"Bitki Asistanı önerisi",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-primary/15 text-primary",children:e.jsx(y,{className:"h-6 w-6","aria-hidden":!0})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("p",{className:"inline-flex items-center gap-1.5 text-xs uppercase tracking-[0.18em] text-primary",children:[e.jsx(_,{className:"h-3.5 w-3.5","aria-hidden":!0})," İlgili Araç"]}),e.jsx("h2",{className:"mt-2 font-serif text-2xl leading-tight text-foreground",children:"Bitki Asistanı — elindeki bitkiyi tanı, uyarıları öğren"}),e.jsx("p",{className:"mt-2 text-sm md:text-base text-muted-foreground leading-relaxed",children:"Fotoğraf ya da isimle elindeki bitkinin hangisi olduğunu keşfet; faydalarını, güvenli kullanımı ve dikkat edilecek uyarıları tek yerden gör."}),e.jsxs(p,{to:"/bitki-asistani",className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-primary px-4 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:["Bitki Asistanını Aç ",e.jsx(x,{className:"h-4 w-4","aria-hidden":!0})]})]})]})})}const O="bitki-caylari-dogal-icecekler";function W(r,a){if(!r)return"";let s=r;/^\s*---\s*\n/.test(s)&&(s=s.replace(/^\s*---\s*\n[\s\S]*?\n---\s*\n?/,""));const l=t=>t.replace(/\s+/g," ").trim().toLowerCase();return s=s.replace(/^\s*\n?#{1,2} (.+?)\s*\n/,(t,n)=>l(n)===l(a)?"":t),s.trimStart()}function q(r){return[...r.matchAll(/^##\s+(.+)$/gm)].map(a=>
1a[1].replace(/[*_`]/g,"").trim()).filter(Boolean).slice(0,6)}function je(){const{post:r,related:a,hub:s,sources:l}=A.useLoaderData(),t=!!r.video_url,n=!t&&(r.source?.startsWith("hub")??!1),k=!t&&r.source==="editorial",u=t?"Video tabanlı rehber":n?"Rehber serisi":k?"Editör yazısı":"Editör rehberi",N=Math.max(3,Math.round(r.word_count/220)),{published:h,updated:m}=B({published_at:r.published_at,generated_at:r.generated_at,updated_at:r.updated_at,created_at:r.created_at}),v=m!==h,o=W(r.content,r.title),g=q(o),b=r.category_slug===O;return $.useEffect(()=>{L({data:{slug:r.slug}}).catch(()=>{})},[r.slug]),e.jsxs("article",{className:"container-page py-8",children:[e.jsx(T,{items:[{label:"Anasayfa",to:"/"},{label:"Tavsiye Yazıları",to:"/yazilar"},...s?[{label:s.title,to:`/rehber/${s.slug}`}]:[],{label:r.title}]}),e.jsxs("header",{className:"mt-6 max-w-3xl",children:[e.jsxs("p",{className:"text-xs uppercase tracking-[0.18em] text-primary inline-flex items-center gap-1.5",children:[t?e.jsx(c,{className:"h-3.5 w-3.5"}):e.jsx(E,{className:"h-3.5 w-3.5"})," ",u]}),e.jsx("h1",{className:"mt-3 font-serif text-3xl md:text-5xl leading-tight",children:r.title}),r.excerpt&&e.jsx("p",{className:"mt-4 text-lg text-muted-foreground leading-relaxed",children:r.excerpt}),e.jsx(H,{className:"mt-5",role:"Derleyen ve yayına hazırlayan",publishedAt:h,updatedAt:v?m:void 0,readingTime:`${N} dk okuma`,contentType:u}),e.jsxs("div",{className:"mt-4 inline-flex items-start gap-2 rounded-lg border border-border bg-surface px-3 py-2 text-xs text-muted-foreground",children:[e.jsx(M,{className:"mt-0.5 h-3.5 w-3.5 text-primary shrink-0"}),e.jsx("span",{children:t?"Bu rehber, kendi YouTube kanalımızdaki videodan yola çıkarak editör ekibimiz tarafından yazılmış özgün bir içeriktir.":n&&s?`Bu yazı, "${s.title}" merkez rehberimizin bir parçasıdır ve editör ekibimiz tarafından hazırlanmış özgün bir içeriktir.`:"Bu yazı, editör ekibimiz tarafından hazırlanmış özgün bir içeriktir."})]}),e.jsx(C,{contentType:"yazilar",slug:r.slug,parts:[r.title,r.excerpt,o.replace(/```[\s\S]*?```/g," ").replace(/`[^`]*`/g," ").replace(/!\[[^\]]*\]\([^)]*\)/g," ").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^#{1,6}\s+/gm,"").replace(/[*_>#-]+/g," ").replace(/\s+/g," ").trim()]}),b&&e.jsx(j,{variant:"strip",className:"mt-5"})]}),t&&r.video_id?e.jsx("div",{className:"mt-8 max-w-3xl overflow-hidden rounded-2xl border border-border bg-black",children:e.jsx("div",{className:"aspect-video",children:e.jsx("iframe",{className:"h-full w-full",src:`https://www.youtube-nocookie.com/embed/${r.video_id}`,title:r.video_title||r.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}):r.thumbnail_url?e.jsx("figure",{className:"mt-8 overflow-hidden rounded-2xl border border-border max-w-3xl",children:e.jsx("img",{src:r.thumbnail_url,alt:r.title,width:1280,height:720,loading:"eager",fetchPriority:"high",decoding:"async",className:"aspect-video w-full object-cover"})}):null,e.jsxs("div",{className:"mt-10 grid gap-10 lg:grid-cols-[1fr_280px]",children:[e.jsxs("div",{className:"prose-article max-w-none",children:[e.jsx(f,{variant:"prominent",className:"mb-6"}),e.jsx(V,{remarkPlugins:[G],rehypePlugins:[F],components:{h1:i=>e.jsx("h2",{...i}),a:({node:i,href:d,...w})=>e.jsx("a",{...w,href:D(d)})},children:o}),e.jsx(f,{variant:"prominent",className:"mt-8"}),e.jsx(Y,{sources:l??[],className:"mt-8"}),e.jsx(R,{updatedAt:m,className:"mt-8"}),b&&e.jsx(j,{variant:"card",className:"mt-8"}),t&&e.jsxs("div",{className:"mt-10 rounded-2xl border border-primary/30 bg-primary/5 p-5",children:[e.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-semibold",children:"Videoyu izleyin"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:r.video_title}),e.jsxs("a",{href:r.video_url,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-2 rounded-full bg-primary px-5 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:[e.jsx(c,{className:"h-4 w-4"})," YouTube'da aç"]})]}),e.jsxs("div",{className:"mt-10 border-t border-border pt-6 space-y-5",children:[r.tags&&r.tags.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-xs uppercase tracking-[0.18em] text-primary",children:"Etiketler"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.tags.map(i=>e.jsx("span",{className:"rounded-full bg-primary/10 px-3 py-1 text-xs font-medium text-primary",children:i},i))})]}),e.jsx(P,{url:`${S.url}/yazilar/${r.slug}`,title:r.title,excerpt:r.excerpt??void 0,kicker:"Yazılar",tags:r.tags,imageUrl:r.thumbnail_url??void 0})]})]}),e.jsxs("aside",{className:"space-y-6",children:[t&&g.length>0&&e.jsxs("nav",{"aria-label":"Bu rehberde",className:"rounded-xl border border-border bg-card p-5",children:[e.jsx("p",{className:"mb-3 text-xs uppercase tracking-[0.18em] text-primary",children:"Bu rehberde"}),e.jsx("ol",{className:"space-y-3",children:g.map((i,d)=>e.jsxs("li",{className:"flex gap-2.5 text-sm text-muted-foreground",children:[e.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-[10px] font-semibold text-primary",children:d+1}),e.jsx("span",{className:"leading-relaxed",children:i})]},`${i}-${d}`))})]}),e.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[e.jsx("p",{className:"mb-2 text-xs uppercase tracking-[0.18em] text-primary",children:"Kaynak"}),t?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Bu yazı, kendi kanalımızdaki videodan yola çıkılarak editör ekibimiz tarafından hazırlanıp gözden geçirilmiştir."}),e.jsxs("a",{href:r.video_url,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-1.5 text-sm text-primary hover:underline",children:[e.jsx(c,{className:"h-4 w-4"})," Orijinal video"]})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Bu yazı, editör ekibimiz tarafından hazırlanıp gözden geçirilmiş özgün bir içeriktir."})]})]})]}),e.jsx(K,{posts:a})]})}export{je 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.