PageSourceSearch

https://brix.tr/assets/CustomPage-BHPvP5TZ.js

js brix.tr collected 2026-10-09 22:46:22 UTC 4,691 bytes, 1 lines download raw bytes

1import{bb as k,bG as D,bp as n,aq as S,bk as e,ba as h,ah as b,W as z,a9 as f,l as p,e as g,bm as A}from"./index-BpaMHpJs.js";import{C as j,a as y}from"./card-D8n7AgYj.js";import{u as N}from"./forumI18n-CqrK9zwI.js";import{localizeBrixContentLinks as F}from"./brix-localized-links-BLV5oVFz.js";const P={tr:"Yalnızca bilgilendirme amaçlıdır",en:"For information purposes only",fr:"À titre informatif uniquement",de:"Nur zu Informationszwecken",it:"Solo a scopo informativo",nl:"Uitsluitend ter informatie",es:"Solo con fines informativos",pt:"Apenas para fins informativos",ru:"Только в информационных целях",ar:"لأغراض المعلومات فقط",az:"Yalnız məlumatlandırma məqsədi daşıyır",el:"Μόνο για ενημερωτικούς σκοπούς",bg:"Само с информационна цел",ro:"Doar în scop informativ",fa:"صرفاً برای اطلاع‌رسانی"};function B(t){return{informationOnly:P[t]}}const E={ALLOWED_TAGS:["p","br","b","strong","i","em","u","a","img","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","table","thead","tbody","tr","th","td","blockquote","pre","code"],ALLOWED_ATTR:["href","target","rel","src","alt","style","class","title"],ALLOW_DATA_ATTR:!1};function L({content:t,className:i}){const{language:r}=N(),c=n.useRef(null),m=n.useMemo(()=>F(A.sanitize(t||"",E),r,window.location.pathname),[t,r]);return n.useEffect(()=>{const a=c.current;if(a){for(;a.firstChild;)a.removeChild(a.firstChild);const x=new DOMParser().parseFromString(`<!DOCTYPE html><body>${m}</body>`,"text/html"),d=document.createDocumentFragment(),o=x.body.childNodes;for(;o.length>0;)d.appendChild(o[0]);a.appendChild(d)}},[m]),e.jsx("div",{ref:c,className:i})}function M(){const{language:t,path:i}=N(),r=k(t),c=B(t),[m,a]=D("/:slug"),[s,x]=n.useState(null),[d,o]=n.useState(!0),[v,u]=n.useState(null);n.useEffect(()=>{a!=null&&a.slug&&w(a.slug)},[a==null?void 0:a.slug]);const w=async C=>{try{o(!0),u(null);const l=await S.getPageBySlug(C);if(!l||!l.isPublished){u("Sayfa bulunamadı");return}x(l)}catch(l){console.error("Sayfa yükleme hatası:",l),u("Sayfa yüklenirken bir hata oluştu")}finally{o(!1)}};return d?e.jsx("div",{lang:t,dir:h(t),className:"brix-workstation-page min-h-screen",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 py-8",children:e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("div",{role:"status","aria-label":r.loading,className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})})})}):v||!s?e.jsxs("div",{lang:t,dir:h(t),className:"brix-workstation-page min-h-screen",children:[e.jsx(b,{title:`${r.notFound} | Brix Mühendislik`,description:r.notFoundDescription,lang:t,robots:"noindex, nofollow"}),e.jsx("div",{className:"max-w-4xl mx-auto px-4 py-8",children:e.jsx(j,{children:e.jsxs(y,{className:"pt-6 text-center",children:[e.jsx(z,{className:"h-16 w-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:r.notFound}),e.jsx("p",{className:"text-muted-foreground mb-6",children:r.notFoundDescription}),e.jsx(f,{href:i("/"),children:e.jsxs(p,{children:[e.jsx(g,{className:"h-4 w-4 me-2 rtl:rotate-180"}),r.home]})})]})})})]}):e.jsxs("div",{lang:t,dir:h(t),className:"brix-workstation-page min-h-screen",children:[e.jsx(b,{title:`${s.title} | Brix Mühendislik`,description:s.metaDescription||s.title,keywords:`${s.title}, Brix Mühendislik`,lang:t,canonicalUrl:`https://brix.tr/${s.slug}`}),e.jsx("header",{className:"sticky top-0 z-50 border-b border-[var(--brix-line)] bg-[var(--brix-surface)]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(f,{href:i("/"),children:e.jsxs(p,{variant:"ghost",size:"sm",children:[e.jsx(g,{className:"h-4 w-4 me-2 rtl:rotate-180"}),r.home]})}),e.jsx(f,{href:i("/ai/qa"),children:e.jsx(p,{variant:"outline",size:"sm",children:r.qa})})]})})}),e.jsx("main",{className:"max-w-4xl mx-auto px-4 py-8",children:e.jsx(j,{className:"border-[var(--brix-line)] bg-[var(--brix-surface)] shadow-sm",children:e.jsxs(y,{className:"p-6 lg:p-8",children:[e.jsx("h1",{className:"text-3xl lg:text-4xl font-bold text-gray-900 dark:text-white mb-6",children:s.title}),e.jsx(L,{content:s.content,className:"prose prose-lg dark:prose-invert max-w-none"})]})})}),e.jsx("footer",{className:"mt-8 border-t border-[var(--brix-line)] bg-[var(--brix-surface)] py-6",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 text-center",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Brix Mühendislik • ",c.informationOnly]})})})]})}export{M as default};

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.