1import{r as y,s as g,j as e,m as We,L as Qe,B as A}from"./index-DjWZhdIJ.js";import{h as He,o as Ve,L as N,A as Te,u as Ee,p as Je,e as Xe,t as Ze,D as $e,v as _e,f as Re,m as Y,M as et,R as tt}from"./AppShell-DIIIFI5e.js";import{H as de,F as ce}from"./Footer-YRBPl-u9.js";import{B as Ke}from"./Breadcrumb-BYlY9qqH.js";import{u as U}from"./useQuery-BLZABCTV.js";import{A as rt,b as at,a as st}from"./avatar-C9uHReyX.js";import qe from"./purify.es-CLGrRn1w.js";import{D as me,a as xe,c as pe,b as ue,e as he}from"./dialog-CeoP3_kO.js";import{u as Ce}from"./useMutation-CC5IU5ke.js";import{P as it}from"./ProUpsellDialog-2XAvToYC.js";import{s as nt}from"./usePointToast-rBsUSOfX.js";import{E as lt}from"./eye-CcGbhqBO.js";import{H as ot}from"./heart-C1j61H5V.js";import{B as dt}from"./bookmark-B_5d6mFT.js";import{B as be}from"./book-open-DeapWmqq.js";import{S as Ue}from"./share-2-BlKWAaEv.js";import{L as ct}from"./linkedin-C033zBGM.js";import{M as mt}from"./message-circle-C6NdfGBe.js";import{A as xt,a as pt,b as ut,c as ht}from"./accordion-CCYxFe9y.js";import{a as gt}from"./profileLinks-DyFKSEtS.js";import{f as ie,a as V,m as ft,d as bt,g as yt}from"./regEvents-DxCqXCPW.js";import{T as J}from"./ticket-DnEwHYeE.js";import{C as jt}from"./calendar-days-Da2QDqxq.js";import{C as Q}from"./clock-DSnr6DTq.js";import{V as se}from"./video-Dp51rEMa.js";import{M as fe}from"./map-pin-DQAuuLQQ.js";import{U as ze}from"./users-CI3nX5gY.js";import{C as vt}from"./calendar-plus-BiGyHh96.js";import{C as Nt}from"./circle-alert-CRfLJCMR.js";import{C as wt}from"./copy-z1UTU1z1.js";import{s as kt,I as _t}from"./regButton-ETL6SisJ.js";import{A as ge}from"./arrow-left-Bl2-Nwht.js";import{G as Oe}from"./globe--9WE8iXq.js";import{G as ae}from"./graduation-cap-DepnemuM.js";import{A as Se}from"./award-BdBvPIuA.js";import{C as Ae}from"./calendar-D0dOafb-.js";import{C as G}from"./circle-check-BZWsD5C-.js";import{S as Ye}from"./shield-check-B-2zuA8B.js";import{C as I}from"./crown-BVhhgKaB.js";import{D as Ct}from"./download-ZrDs8SCQ.js";import{F as Le}from"./file-text-BKqAL3NV.js";import{E as At}from"./external-link-B7EuZtEs.js";import{L as Pe}from"./lock-yv3-j80I.js";import{I as Ge}from"./infinity-C_tTbsoA.js";import{U as Tt}from"./user-DC8iHm7r.js";import"./useSiteSections-BNWwsWAW.js";import"./chart-column-B5qRKIpy.js";import"./newspaper-BpJx6EcS.js";import"./building-2-DwyAuFP7.js";import"./briefcase-iR-Q8w3i.js";import"./search-CyDVM567.js";import"./headphones-CkndcY2i.js";import"./wrench-BrNZnm9A.js";import"./radio-b4BUVvqb.js";import"./trending-up-Dk0M4FPK.js";import"./trophy-D65tcbLP.js";import"./scale-hbjlXnXo.js";import"./dropdown-menu-CfEosLsY.js";import"./index-BD7JCDIC.js";import"./Combination-VYKo-5i-.js";import"./index-DqfEZyfD.js";import"./circle-BW625gx4.js";import"./chevron-down-BbMHisZ8.js";import"./wand-sparkles-4qSxjMYr.js";import"./square-pen-DkfckxKp.js";import"./log-out-CkPu592d.js";import"./log-in-CpUtB64i.js";import"./user-plus-VKdCIJEq.js";import"./zap-4Oe9rsAu.js";import"./layers-BErubKfl.js";import"./rocket-BEMOKlD7.js";import"./brain-C4vYRRNl.js";import"./flag-BrN3OI35.js";import"./lightbulb-B7Swalnp.js";import"./folder-open-k1r_3dK6.js";import"./popover-Ck3IpHzB.js";import"./command-D7YslF8U.js";import"./index-BkMevF67.js";import"./factory-BTJAxtqx.js";import"./chevrons-up-down-BecmHmDb.js";import"./eye-off-Cn0ai5X6.js";import"./label-QoRcQcxj.js";import"./select-B7P1W3a2.js";import"./chevron-up-Bxi7sicd.js";import"./scroll-area-D8buMPJA.js";import"./types-D_W-_0Fk.js";import"./house-Bd5o5xUQ.js";import"./index-B1gVQaHE.js";import"./ProComparisonTable-Cl0R589R.js";import"./index-D7wn3e3e.js";import"./exceljs.min-4fyyFux4.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";function W({label:l,children:r,badge:a,isActive:o}){return e.jsxs("div",{className:"relative group flex items-center",children:[e.jsx("div",{className:"absolute bottom-full mb-2 left-1/2 -translate-x-1/2 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-out whitespace-nowrap z-50",children:e.jsxs("div",{className:`px-2.5 py-1 rounded-lg text-[11px] font-medium shadow-lg backdrop-blur-md border border-border/60 ${o?"bg-signature/10 text-signature border-signature/30":"bg-background/90 text-foreground"}`,children:[l,a&&e.jsx("span",{className:"ml-1.5 text-[10px] opacity-70",children:a})]})}),r]})}function Et({title:l,publicationUrl:r,publicationId:a,viewCount:o=0,likeCount:j=0}){const[S,L]=y.useState(!1),[B,X]=y.useState(""),{user:s,hasProAccess:Z}=He(),z=Ve(),{data:O}=U({queryKey:["saved-publication",a,s==null?void 0:s.id],queryFn:async()=>
1{if(!s||!a)return!1;const{data:h}=await g.from("saved_publications").select("id").eq("user_id",s.id).eq("publication_id",a).maybeSingle();return!!h},enabled:!!s&&!!a}),{data:t}=U({queryKey:["publication-reading-list-item",a,s==null?void 0:s.id],queryFn:async()=>{if(!s||!a)return!1;const{data:h}=await g.from("publication_reading_list").select("id").eq("user_id",s.id).eq("publication_id",a).maybeSingle();return!!h},enabled:!!s&&!!a}),{data:P}=U({queryKey:["publication-liked",a,s==null?void 0:s.id],queryFn:async()=>{if(!s||!a)return!1;const{data:h}=await g.from("publication_likes").select("id").eq("user_id",s.id).eq("publication_id",a).maybeSingle();return!!h},enabled:!!s&&!!a}),ye=Ce({mutationFn:async()=>{!s||!a||(O?await g.from("saved_publications").delete().eq("user_id",s.id).eq("publication_id",a):await g.from("saved_publications").insert({user_id:s.id,publication_id:a}))},onSuccess:()=>{z.invalidateQueries({queryKey:["saved-publication",a,s==null?void 0:s.id]})}}),ne=Ce({mutationFn:async()=>{!s||!a||(t?await g.from("publication_reading_list").delete().eq("user_id",s.id).eq("publication_id",a):await g.from("publication_reading_list").insert({user_id:s.id,publication_id:a}))},onSuccess:()=>{z.invalidateQueries({queryKey:["publication-reading-list-item",a,s==null?void 0:s.id]})}}),ee=Ce({mutationFn:async()=>{if(a){if(!s){const h=`pub-liked:${a}`;if(typeof window<"u"&&localStorage.getItem(h)==="1")return;await g.rpc("increment_publication_like_count",{p_publication_id:a}),typeof window<"u"&&localStorage.setItem(h,"1");return}P?(await g.from("publication_likes").delete().eq("user_id",s.id).eq("publication_id",a),await g.from("publications").update({like_count:Math.max(0,j-1)}).eq("id",a)):(await g.from("publication_likes").insert({user_id:s.id,publication_id:a}),await g.from("publications").update({like_count:j+1}).eq("id",a))}},onSuccess:()=>{z.invalidateQueries({queryKey:["publication-liked",a,s==null?void 0:s.id]}),z.invalidateQueries({queryKey:["publication",a]}),P||s&&nt(1,"Yayın beÄeni puanı eklendi")}}),je=()=>{if(!s||!Z){X("Yayın Kaydetme"),L(!0);return}ye.mutate()},F=()=>{if(!s||!Z){X("Okuma Listesi"),L(!0);return}ne.mutate()},te=()=>{ee.mutate()},T=r||(typeof window<"u"?window.location.href:""),H=encodeURIComponent(T),ve=encodeURIComponent(l),le=[{name:"LinkedIn",icon:ct,url:`https://www.linkedin.com/sharing/share-offsite/?url=${H}`,hoverClass:"hover:text-[hsl(210,80%,45%)] hover:border-[hsl(210,80%,45%)]/30 hover:bg-[hsl(210,80%,45%)]/10"},{name:"X (Twitter)",icon:()=>e.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4 fill-current",children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),url:`https://twitter.com/intent/tweet?text=${ve}&url=${H}
1`,hoverClass:"hover:text-foreground hover:border-foreground/30 hover:bg-foreground/5"},{name:"WhatsApp",icon:mt,url:`https://wa.me/?text=${ve}%20${H}`,hoverClass:"hover:text-[hsl(142,70%,40%)] hover:border-[hsl(142,70%,40%)]/30 hover:bg-[hsl(142,70%,40%)]/10"}],R="flex items-center justify-center h-9 w-9 rounded-xl bg-transparent border border-transparent transition-all duration-200";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-1.5 sm:gap-2 rounded-2xl border border-border/50 bg-background/70 backdrop-blur-md shadow-sm px-2 py-1.5",children:[!(typeof window<"u"&&window.location.pathname.startsWith("/connect"))&&e.jsx(W,{label:"Görüntülenme",badge:o.toLocaleString("tr-TR"),children:e.jsx("div",{className:`${R} text-muted-foreground`,children:e.jsx(lt,{className:"h-4 w-4"})})}),e.jsx(W,{label:P?"BeÄenildi":"BeÄen",badge:j.toLocaleString("tr-TR"),isActive:!!P,children:e.jsx("button",{onClick:te,className:`group ${R} hover:shadow-md ${P?"text-signature bg-signature/10 border-signature/30":"text-muted-foreground hover:text-signature hover:border-signature/30 hover:bg-signature/10"}`,children:e.jsx(ot,{className:`h-4 w-4 transition-transform group-hover:scale-110 ${P?"fill-current":""}`})})}),e.jsx(W,{label:O?"Kaydedildi":"Kaydet",isActive:!!O,children:e.jsx("button",{onClick:je,className:`group ${R} hover:shadow-md ${O?"text-gold bg-gold/10 border-gold/30":"text-muted-foreground hover:text-gold hover:border-gold/30 hover:bg-gold/10"}`,children:e.jsx(dt,{className:`h-4 w-4 transition-transform group-hover:scale-110 ${O?"fill-current":""}`})})}),e.jsx(W,{label:t?"Listede":"Okuma Listesi",isActive:!!t,children:e.jsx("button",{onClick:F,className:`group ${R} hover:shadow-md ${t?"text-primary bg-primary/10 border-primary/30":"text-muted-foreground hover:text-primary hover:border-primary/30 hover:bg-primary/10"}`,children:e.jsx(be,{className:`h-4 w-4 transition-transform group-hover:scale-110 ${t?"fill-current":""}`})})}),e.jsx("div",{className:"h-6 border-l border-border/50 mx-1"}),e.jsx(W,{label:"BaÄlantıyı Kopyala",children:e.jsx("button",{onClick:()=>{navigator.share?navigator.share({title:l,url:T}):navigator.clipboard.writeText(T)},className:`group ${R} text-muted-foreground hover:shadow-md hover:text-signature hover:border-signature/30 hover:bg-signature/10`,children:e.jsx(Ue,{className:"h-4 w-4 transition-transform group-hover:scale-110"})})}),le.map(h=>{const oe=h.icon;return e.jsx(W,{label:h.name,children:e.jsx("a",{href:h.url,target:"_blank",rel:"noopener noreferrer",className:`group ${R} text-muted-foreground hover:shadow-md ${h.hoverClass}`,children:e.jsx(oe,{className:"h-4 w-4 transition-transform group-hover:scale-110"})})},h.name)})]}),e.jsx(it,{open:S,onOpenChange:L,featureName:B})]})}const De=({publicationId:l,eventId:r,variant:a="banner"})=>{const{data:o}=U({queryKey:["reg-cta",l,r],enabled:!!(l||r),queryFn:async()=>{let j=g.from("reg_events").select("slug, title, start_at, status").eq("status","published").limit(1);j=l?j.eq("source_publication_id",l):j.eq("source_event_id",r);const{data:S}=await j.maybeSingle();return S}});return o?a==="inline"?e.jsxs("div",{className:"-mt-4 mb-8 flex flex-wrap items-center gap-3",children:[e.jsxs(N,{to:`/kayit/${o.slug}`,className:"group relative inline-flex items-center gap-3 overflow-hidden rounded-full bg-primary pl-2 pr-6 py-2 text-primary-foreground shadow-lg shadow-primary/25 ring-1 ring-primary/40 transition-all hover:-translate-y-0.5 hover:shadow-xl hover:shadow-primary/30",children:[e.jsx("span",{className:"absolute inset-0 -translate-x-full bg-gradient-to-r from-transparent via-primary-foreground/20 to-transparent transition-transform duration-700 group-hover:translate-x-full"}),e.jsx("span",{className:"relative grid h-9 w-9 place-items-center rounded-full bg-primary-foreground/15",children:e.jsx(J,{className:"h-4 w-4"})}),e.jsxs("span",{className:"relative flex flex-col leading-tight",children:[e.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.18em] opacity-80",children:"Kayıtlar açık"}),e.jsx("span",{className:"text-sm font-semibold",children:"Hemen kayıt ol"})]}),e.jsx(Te,{className:"relative h-4 w-4 transition-transform group-hover:translate-x-1"})]}),o.start_at&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border bg-card px-3 py-1.5 text-xs text-muted-foreground capitalize",children:[e.jsx(jt,{className:"h-3.5 w-3.5 text-primary"}),ie(o.start_at)," · ",V(o.start_at)]})]}):e.jsx("div",{className:"container max-w-5xl my-8",children:e.jsxs(N,{to:`/kayit/${o.slug}
1`,className:"group flex flex-wrap items-center gap-4 rounded-2xl border bg-card p-5 hover:border-primary/60 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:e.jsx(J,{className:"w-6 h-6"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs uppercase tracking-widest text-primary font-semibold",children:"Kayıtlar açık"}),e.jsx("p",{className:"font-medium truncate",children:o.title}),o.start_at&&e.jsxs("p",{className:"text-sm text-muted-foreground capitalize",children:[ie(o.start_at)," · ",V(o.start_at)]})]}),e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-primary text-primary-foreground px-5 py-2.5 text-sm font-medium",children:["Kayıt ol ",e.jsx(Te,{className:"w-4 h-4 group-hover:translate-x-0.5 transition-transform"})]})]})}):null},Ie=l=>U({queryKey:["reg-rails",l],enabled:!!l,queryFn:async()=>{const{data:r}=await g.from("reg_events").select("*").in("status",["published","closed"]).eq("source_publication_id",l).limit(1).maybeSingle();return r}}),Me=l=>(l.closed_message||"").trim()||"Kontenjan doldu. Bu etkinlik için kayıtlar kapanmıÅtır.",St=l=>{if(l.status!=="published")return!0;const r=l.registration_closes_at;if(r&&new Date(r).getTime()<Date.now())return!0;const a=l.registration_deadline||l.end_at||l.start_at;return a?new Date(a).getTime()<Date.now():!1},Lt=l=>l.location_type==="online"?"Online etkinlik":[l.venue_name,l.city].filter(Boolean).join(", ")||"Fiziksel etkinlik",zt=({publicationId:l})=>{const{data:r}=Ie(l);if(!r)return null;const a=r.location_type==="online";return e.jsx("aside",{className:"hidden xl:block w-56 shrink-0 sticky top-24 self-start",children:e.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/80 backdrop-blur-md shadow-sm overflow-hidden",children:[e.jsx("div",{className:"px-4 pt-4 pb-3 border-b border-border/50",children:e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-primary",children:"Etkinlik bilgisi"})}),e.jsxs("div",{className:"p-4 space-y-4",children:[r.start_at&&e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"w-12 shrink-0 rounded-xl border border-border/60 overflow-hidden text-center bg-background",children:[e.jsx("div",{className:"bg-primary text-primary-foreground text-[10px] font-semibold uppercase py-0.5",children:ft(r.start_at)}),e.jsx("div",{className:"text-lg font-semibold py-1",children:bt(r.start_at)})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium leading-tight capitalize",children:ie(r.start_at)}),e.jsxs("p",{className:"mt-1 flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(Q,{className:"h-3 w-3"}),V(r.start_at),r.end_at?` â ${V(r.end_at)}`:""]})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary",children:a?e.jsx(se,{className:"h-4 w-4"}):e.jsx(fe,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium leading-tight",children:Lt(r)}),a&&e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"BaÄlantı onaylı katılımcılarla paylaÅılır"})]})]}),r.capacity?e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary",children:e.jsx(ze,{className:"h-4 w-4"})}),e.jsxs("p",{className:"text-sm font-medium",children:[r.capacity," kiÅilik kontenjan"]})]}):null]}),r.start_at&&e.jsxs("a",{href:yt(r),target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 border-t border-border/50 px-4 py-3 text-xs font-medium text-muted-foreground hover:text-primary hover:bg-primary/5 transition-colors",children:[e.jsx(vt,{className:"h-3.5 w-3.5"})," Takvime ekle"]})]})})},$t=({publicationId:l})=>{const{data:r}=Ie(l);if(!r)return null;const a=r.end_at||r.start_at;if(a&&new Date(a).getTime()<Date.now())return null;const o=St(r),j=`/kayit/${r.slug}`,S=r.cta_label||"Hemen kayıt ol",L=async()=>{const B=window.location.href;if(navigator.share)try{await navigator.share({title:r.title,url:B})}catch{}else await navigator.clipboard.writeText(B),Ee.success("BaÄlantı kopyalandı")};return e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:"hidden xl:block w-64 shrink-0 sticky top-24 self-start",children:e.jsxs("div",{className:"relative rounded-2xl border border-primary/30 bg-card shadow-lg shadow-primary/10 overflow-hidden",children:[e.jsx("div",{className:"absolute -top-16 -right-16 h-40 w-40 rounded-full bg-primary/15 blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative p-5",children:[e.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.18em] ${o?"bg-muted text-muted-foreground":"bg-primary/10 text-primary"}`,children:[e.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${o?"bg-muted-foreground":"bg-primary animate-pulse"}`}),o?"Kayıtlar kapandı":"Kayıtlar açık"]}),e.jsx("p",{className:"mt-3 font-semibold leading-snug line-clamp-3",children:r.title}),r.start_at&&e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground capitalize",children:[ie(r.start_at)," · ",V(r.start_at)]}),o?e.jsxs("div",{className:"mt-4 flex items-start gap-2 rounded-xl border border-destructive/30 bg-destructive/10 px-3 py-3 text-sm font-medium text-destructive",children:[e.jsx(Nt,{className:"h-4 w-4 shrink-0 mt-0.5"}),e.jsx("span",{children:Me(r)})]}):e.jsxs(N,{to:j,className:"group mt-4 flex items-center justify-center gap-2 rounded-xl bg-primary px-4 py-3 text-sm font-semibold text-primary-foreground shadow-md shadow-primary/25 transition-all hover:-translate-y-0.5 hover:shadow-lg",children:[e.jsx(J,{className:"h-4 w-4"})," ",S,e.jsx(Te,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]}),e.jsx("p",{className:"mt-3 text-center text-[11px] text-muted-foreground",children:"Kayıtlar organizatör onayından sonra kesinleÅir."})]}),e.jsxs("div",{className:"relative grid grid-cols-2 border-t border-border/50 text-xs",children:[e.jsxs("button",{onClick:L,className:"flex items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:text-primary hover:bg-primary/5 transition-colors",children:[e.jsx(Ue,{className:"h-3.5 w-3.5"})," PaylaÅ"]}),e.jsxs("button",{onClick:async()=>{await navigator.clipboard.writeText(window.location.href),Ee.success("BaÄlantı kopyalandı")},className:"flex items-center justify-center gap-1.5 border-l border-border/50 py-2.5 text-muted-foreground hover:text-primary hover:bg-primary/5 transition-colors",children:[e.jsx(wt,{className:"h-3.5 w-3.5"})," Kopyala"]})]})]})}),e.jsx("div",{className:"xl:hidden fixed inset-x-0 bottom-0 z-40 border-t border-border/60 bg-background/90 backdrop-blur-md px-4 py-3 shadow-[0_-8px_24px_-12px_hsl(var(--foreground)/0.25)]",children:e.jsxs("div",{className:"mx-auto flex max-w-3xl items-center gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:`text-[10px] font-semibold uppercase tracking-[0.18em] ${o?"text-destructive":"text-primary"}`,children:o?"Kayıtlar kapandı":"Kayıtlar açık"}),e.jsx("p",{className:"truncate text-sm font-medium capitalize",children:r.start_at?`${ie(r.start_at)} · ${V(r.start_at)}`:r.title})]}),o?e.jsx("span",{className:"max-w-[55%] text-right text-xs font-medium text-destructive line-clamp-2",children:Me(r)}):e.jsxs(N,{to:j,className:"inline-flex shrink-0 items-center gap-2 rounded-xl bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground shadow-md shadow-primary/25",children:[e.jsx(J,{className:"h-4 w-4"})," Kayıt ol"]})]})})]})},Be={violet:{hero:"from-violet-600 to-purple-700",chip:"bg-violet-100 text-violet-700 dark:bg-violet-950/40 dark:text-violet-300",btn:"from-violet-600 to-purple-700 hover:from-violet-700 hover:to-purple-800",ring:"border-violet-300/40",soft:"from-violet-900 to-purple-900"},blue:{hero:"from-blue-600 to-indigo-700",chip:"bg-blue-100 text-blue-700 dark:bg-blue-950/40 dark:text-blue-300",btn:"from-blue-600 to-indigo-700 hover:from-blue-700 hover:to-indigo-800",ring:"border-blue-300/40",soft:"from-blue-900 to-indigo-900"},emerald:{hero:"from-emerald-600 to-teal-700",chip:"bg-emerald-100 text-emerald-700 dark:bg-emerald-950/40 dark:text-emerald-300",btn:"from-emerald-600 to-teal-700 hover:from-emerald-700 hover:to-teal-800",ring:"border-emerald-300/40",soft:"from-emerald-900 to-teal-900"},amber:{hero:"from-amber-500 to-orange-600",chip:"bg-amber-100 text-amber-800 dark:bg-amber-950/40 dark:text-amber-300",btn:"from-amber-500 to-orange-600 hover:from-amber-600 hover:to-orange-700",ring:"border-amber-300/40",soft:"from-amber-900 to-orange-900"},rose:{hero:"from-rose-500 to-pink-700",chip:"bg-rose-100 text-rose-700 dark:bg-rose-950/40 dark:text-rose-300",btn:"from-rose-500 to-pink-700 hover:from-rose-600 hover:to-pink-800",ring:"border-rose-300/40",soft:"from-rose-900 to-pink-900"},slate:{hero:"from-slate-700 to-slate-900",chip:"bg-slate-200 text-slate-800 dark:bg-slate-800/60 dark:text-slate-200",btn:"from-slate-700 to-slate-900 hover:from-slate-800 hover:to-black",ring:"border-slate-400/40",soft:"from-slate-800 to-slate-950"}},Rt={Video:se,Infinity:Ge,FileText:Le,Award:Se,RefreshCw:tt,Clock:Q,Users:ze,ShieldCheck:Ye,GraduationCap:ae,BookOpen:be},Fe={live:"LIVE",connect:"CONNECT",masterclass:"MASTERCLASS",podcast:"PODCAST"},Kt={live:"Live",connect:"Connect",masterclass:"Masterclass",podcast:"Podcast"};function ja(){var oe;const{publicationType:l,publicationId:r}=Je(),{hasProAccess:a}=He(),o=y.useRef(null),[j,S]=y.useState(!1),[L,B]=y.useState(!1),[X,s]=y.useState(!1),Z=y.useRef(!1),z=y.useMemo(()=>r?`publication-registered:${r}`:"",[r]);y.useEffect(()=>{if(z)try{localStorage.getItem(z)==="1"&&B(!0)}catch{}},[z]);const O=i=>{if(S(i),!i&&!L){B(!0);try{z&&localStorage.setItem(z,"1")}catch{}s(!0),Ee.success("Kayıt baÅvurunuz alındı",{description:"Lütfen e-posta kutunuzu kontrol edin."})}},{data:t,isLoading:P,error:ye}=U({queryKey:["publication",r],queryFn:async()=>
1{if(!r)throw new Error("No publication ID");const i=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(r),{data:f,error:w}=await g.from("publications").select("*").eq(i?"id":"slug",i?r:r.toLowerCase()).eq("status","published").single();if(w)throw w;return f},enabled:!!r}),ne=Xe();y.useEffect(()=>{const i=t==null?void 0:t.slug;i&&r&&r!==i&&(t!=null&&t.publication_type)&&ne(`/${t.publication_type}/${i}${window.location.search}${window.location.hash}`,{replace:!0})},[t,r,ne]),y.useEffect(()=>{!(t!=null&&t.id)||Z.current||(Z.current=!0,g.rpc("increment_publication_view_count",{p_publication_id:t.id}).then(()=>{}))},[t==null?void 0:t.id]);const ee=t==null?void 0:t.host_attorney_id,{data:je}=U({queryKey:["masterclass-hero-instructor",ee],queryFn:async()=>{const{data:i,error:f}=await g.from("attorneys").select("id, name, title, photo, bio, location, specialties, firm:firms!attorneys_firm_id_fkey(id, name)").eq("id",ee).eq("status","published").maybeSingle();if(f)throw f;return i},enabled:!!ee&&(t==null?void 0:t.publication_type)==="masterclass"}),F=y.useMemo(()=>t!=null&&t.content?qe.sanitize(t.content,{ALLOWED_TAGS:["p","br","strong","em","u","h1","h2","h3","h4","h5","h6","ul","ol","li","a","blockquote","img","span","div","details","summary","code","pre","hr"],ALLOWED_ATTR:["href","target","rel","src","alt","class","style","data-details-content","data-article-link-embed","data-article-id","data-article-title","data-article-image","data-article-type","data-article-excerpt","data-article-category","data-top3-rank"],ALLOW_DATA_ATTR:!0}).replace(/<details([^>]*)\s+open(?:="[^"]*")?/g,"<details$1"):"",[t==null?void 0:t.content]),te=t==null?void 0:t.registration_embed,T=y.useMemo(()=>te?qe.sanitize(te,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","src","width","height","style","aria-hidden","tabindex","referrerpolicy","loading","title"]}):"",[te]);y.useEffect(()=>{const i=o.current;if(!i)return;const f=[];return i.querySelectorAll("[data-reg-button]").forEach(w=>{let d;try{d=kt(JSON.parse(w.getAttribute("data-rb-config")||"{}"))}catch{return}if(!d.eventId)return;w.innerHTML="";const k=We(w);f.push(k),k.render(e.jsx(_t,{config:d}))}),()=>{const w=[...f];setTimeout(()=>w.forEach(d=>d.unmount()),0)}},[F]),y.useEffect(()=>{const i=o.current;if(!i)return;const f=i.querySelectorAll("[data-article-link-embed]");let d=Array.from(f).filter(c=>{const b=parseInt(c.getAttribute("data-top3-rank")||"0",10)||0;return b>=1&&b<=3}).length;f.forEach(c=>{const b=c.getAttribute("data-article-id")||"",_=c.getAttribute("data-article-title")||"",p=c.getAttribute("data-article-image")||"",K=c.getAttribute("data-article-type")||"news",v=c.getAttribute("data-article-excerpt")||"",n=parseInt(c.getAttribute("data-top3-rank")||"0",10)||0;if(!b||!_)return;let x;n>=1&&n<=3?x=n:(d+=1,x=d);const C=K==="analysis",M=C?"ANALİZ":"HABER",$={1:{label:"TOP 1 â Katılımcıların Seçimi",bg:"linear-gradient(135deg,#fde047,#f59e0b)",ring:"#f59e0b",text:"#78350f",emoji:"ð¥"},2:{label:"TOP 2 â Katılımcıların Seçimi",bg:"linear-gradient(135deg,#e5e7eb,#9ca3af)",ring:"#6b7280",text:"#1f2937",emoji:"ð¥"},3:{label:"TOP 3 â Katılımcıların Seçimi",bg:"linear-gradient(135deg,#fed7aa,#c2410c)",ring:"#c2410c",text:"#ffffff",emoji:"ð¥"}};c.innerHTML="",c.className="not-prose my-4 relative";const m=document.createElement("a");if(m.href=`/article/${b}`,m.target="_blank",m.rel="noopener noreferrer",m.className="group relative flex items-stretch gap-0 rounded-2xl border bg-card overflow-hidden no-underline hover:shadow-xl transition-all duration-300",m.style.textDecoration="none",n>0){const u=$[n];m.style.borderColor=u.ring,m.style.boxShadow=`0 0 0 2px ${u.ring}33, 0 12px 32px -12px ${u.ring}66`}else m.style.borderColor="hsl(var(--border) / 0.6)";if(n>0){const u=$[n],E=document.createElement("div");E.className="absolute top-2 right-2 px-2 py-0.5 rounded-full text-[8px] sm:text-[9px] font-black uppercase tracking-[0.1em] flex items-center gap-1 shadow-md z-10 backdrop-blur-sm",E.style.background=u.bg,E.style.color=u.text,E.innerHTML=`<span style="font-size:10px;line-height:1;">${u.emoji}</span><span>${u.label}</span>`,m.appendChild(E)}const q=document.createElement("div");if(n>0){const u=$[n];q.className="flex items-center justify-center shrink-0 w-14 sm:w-16 text-2xl sm:text-3xl font-black transition-colors",q.style.background=u.bg,q.style.color=u.text,q.textContent=String(n)}else q.className="flex items-center justify-center shrink-0 w-14 sm:w-16 text-2xl sm:text-3xl font-black text-primary/70 bg-gradient-to-br from-primary/10 to-primary/5 group-hover:text-primary transition-colors",q.textContent=String(x).padStart(2,"0");if(m.appendChild(q),p){const u=document.createElement("div");u.className="w-24 h-24 sm:w-32 sm:h-auto shrink-0 bg-muted overflow-hidden flex items-center justify-center p-1";const E=document.createElement("img");E.src=p,E.alt="",E.loading="lazy",E.className="max-w-full max-h-full w-auto h-auto object-contain group-hover:scale-105 transition-transform duration-500",u.appendChild(E),m.a
1ppendChild(u)}const re=document.createElement("div");re.className="flex-1 min-w-0 p-3 sm:p-4 flex flex-col justify-center";const Ne=document.createElement("span");Ne.className=`inline-block self-start text-[9px] font-bold uppercase tracking-[0.15em] px-2 py-0.5 rounded mb-1.5 ${C?"bg-primary/10 text-primary":"bg-accent/40 text-foreground"}`,Ne.textContent=M,re.appendChild(Ne);const we=document.createElement("p");if(we.className="text-sm sm:text-base font-semibold text-foreground leading-snug m-0 line-clamp-2 group-hover:text-primary transition-colors",we.textContent=_,re.appendChild(we),v){const u=document.createElement("p");u.className="text-xs text-muted-foreground line-clamp-2 mt-1 m-0",u.textContent=v,re.appendChild(u)}m.appendChild(re);const ke=document.createElement("div");ke.className="hidden sm:flex items-center pr-4 text-muted-foreground group-hover:text-primary group-hover:translate-x-1 transition-all",ke.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>',m.appendChild(ke),c.appendChild(m)});const k=Array.from(i.querySelectorAll("[data-article-link-embed]")),D=k.map(c=>({el:c,rank:parseInt(c.getAttribute("data-top3-rank")||"0",10)||0})).filter(c=>c.rank>=1&&c.rank<=3).sort((c,b)=>c.rank-b.rank);if(D.length>0){const c=k[0],b=c.parentNode;if(b){const _=document.createComment("top3-marker");b.insertBefore(_,c),D.forEach(({el:p})=>{b.insertBefore(p,_)}),_.remove()}}},[F]),y.useEffect(()=>{const i=o.current;if(!i)return;i.querySelectorAll("[data-source-link-embed]").forEach(w=>{const d=w;if(d.dataset.sourceLinkHydrated==="1")return;const k=d.getAttribute("data-source-url")||"",D=d.getAttribute("data-source-title")||"",c=d.getAttribute("data-source-description")||"",b=d.getAttribute("data-source-name")||"";if(!k)return;let _="";try{_=new URL(k).hostname.replace(/^www\./,"")}catch{}const p=document.createElement("a");p.href=k,p.target="_blank",p.rel="noopener noreferrer",p.className="group block my-6 rounded-2xl border border-border/60 overflow-hidden no-underline not-prose transition-all duration-300 hover:shadow-xl hover:border-primary/30 hover:-translate-y-0.5",p.style.background="linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted) / 0.3))",p.style.textDecoration="none",p.style.color="inherit";const K=document.createElement("div");K.style.height="3px",K.style.background="linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--primary) / 0.4))",p.appendChild(K);const v=document.createElement("div");v.style.padding="20px",v.style.display="flex",v.style.alignItems="flex-start",v.style.gap="16px";const n=document.createElement("div");n.style.cssText="width:44px;height:44px;border-radius:12px;background:hsl(var(--primary) / 0.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:20px;",n.textContent="ð",v.appendChild(n);const x=document.createElement("div");x.style.cssText="flex:1;min-width:0;";const C=document.createElement("span");C.style.cssText="display:inline-block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:0.15em;color:hsl(var(--primary));margin-bottom:6px;",C.textContent=b||"KAYNAK",x.appendChild(C);const M=document.createElement("p");if(M.style.cssText="font-size:14px;font-weight:700;color:hsl(var(--foreground));line-height:1.4;margin:0;",M.textContent=D||k,x.appendChild(M),c){const m=document.createElement("p");m.style.cssText="font-size:12px;color:hsl(var(--muted-foreground));margin:4px 0 0;line-height:1.6;",m.textContent=c,x.appendChild(m)}if(_){const m=document.createElement("span");m.style.cssText="font-size:10px;color:hsl(var(--muted-foreground) / 0.7);display:block;margin-top:8px;",m.textContent=_,x.appendChild(m)}v.appendChild(x);const $=document.createElement("span");$.style.cssText="font-size:11px;font-weight:600;color:hsl(var(--primary));background:hsl(var(--primary) / 0.05);border:1px solid hsl(var(--primary) / 0.2);border-radius:10px;padding:8px 16px;white-space:nowrap;align-self:center;flex-shrink:0;",$.textContent="KaynaÄa Git â",v.appendChild($),p.appendChild(v),d.innerHTML="",d.tagName.toLowerCase()==="a"?(d.href=k,d.target="_blank",d.rel="noopener noreferrer",d.className=p.className,d.setAttribute("style",p.getAttribute("style")||""),d.appendChild(K),d.appendChild(v)):d.appendChild(p),d.dataset.sourceLinkHydrated="1"})},[F]);const H=i=>i?new Date(i).toLocaleDateString("tr-TR",{day:"numeric",month:"long",year:"numeric"}):"";if(P)return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(de,{}),e.jsx("main",{className:"flex-1 flex items-center justify-center",children:e.jsx(Qe,{className:"w-8 h-8 animate-spin text-muted-foreground"})}),e.jsx(ce,{})]});if(ye||!t)return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(de,{}),e.jsxs("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[e.jsx("h1",{className:"text-2xl font-serif font-semibold",children:"İçerik bulunamadı"}),e.jsx("p",{className:"text-muted-foreground",children:"Bu yayın mevcut deÄil veya henüz yayınlanmamıÅ."}),e.jsx(A,{asChild:!0,variant:"outline",children:e.jsxs(N,{to:"/yayinlar",children:[e.jsx(ge,{className:"w-4 h-4 mr-2"}),"Yayınlara Dön"]})})]}),e.jsx(ce,{})]});const le=`${t.publication_type==="podcast"?"/podcast":t.publication_type==="connect"?"/connect":t.publication_type==="masterclass"?"/masterclass":"/live"}/${t.id}`,R=(t.description||"").replace(/<[^>]*>
1/g," ").replace(/\s+/g," ").trim(),h=e.jsx(Ze,{title:t.title,description:R||`${t.title} â Patent Raporu yayınları: podcast, canlı yayın ve masterclass içerikleri.`,path:le,type:"article",image:t.image||void 0,jsonLd:{"@context":"https://schema.org","@type":t.publication_type==="podcast"?"PodcastEpisode":t.publication_type==="masterclass"?"Course":"Event",name:t.title,headline:t.title,description:R||void 0,datePublished:t.published_at||void 0,inLanguage:"tr-TR",image:t.image||void 0,isAccessibleForFree:t.is_premium!==!0,provider:{"@type":"Organization",name:$e,url:_e},publisher:{"@type":"Organization",name:$e,url:_e},url:`${_e}${le}`}});if(t.publication_type==="masterclass"){const i=je,f=(i==null?void 0:i.name)||t.host_name,w=i==null?void 0:i.title,d=(oe=i==null?void 0:i.firm)==null?void 0:oe.name,k=t.accent_color||"violet",D=Be[k]||Be.violet,c=D.hero,b=t.learning_outcomes||[],_=t.included_items||[],p=t.curriculum||[],K=t.downloadable_resources||[],v=p.reduce((n,x)=>{var C;return n+(((C=x.lessons)==null?void 0:C.length)||0)},0);return e.jsxs("div",{className:"min-h-screen bg-background",children:[h,e.jsx(de,{}),e.jsxs("div",{className:`relative bg-gradient-to-br ${c} text-white overflow-hidden`,children:[e.jsx("div",{className:"absolute inset-0 bg-black/10"}),e.jsx("div",{className:"absolute -top-24 -right-24 w-80 h-80 bg-white/10 rounded-full blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-24 -left-24 w-80 h-80 bg-amber-300/10 rounded-full blur-3xl pointer-events-none"}),e.jsx("div",{className:"container mx-auto px-4 py-12 lg:py-16 relative",children:e.jsxs("div",{className:"grid lg:grid-cols-5 gap-8 items-start",children:[e.jsxs("div",{className:"lg:col-span-3 space-y-5",children:[e.jsxs(N,{to:"/yayinlar?tab=masterclass",className:"inline-flex items-center gap-1.5 text-white/70 hover:text-white transition-colors text-sm group",children:[e.jsx(ge,{className:"h-4 w-4 group-hover:-translate-x-0.5 transition-transform"}),"Geri Dön"]}),e.jsxs("div",{className:"flex items-center gap-2 text-white/70 text-sm",children:[e.jsx(N,{to:"/yayinlar",className:"hover:text-white transition-colors",children:"Yayınlar"}),e.jsx(Re,{className:"h-3 w-3"}),e.jsx(N,{to:"/yayinlar?tab=masterclass",className:"hover:text-white transition-colors",children:"Masterclass"}),e.jsx(Re,{className:"h-3 w-3"}),e.jsx("span",{className:"text-white/90 line-clamp-1",children:t.title})]}),e.jsx(Y.h1,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:"text-3xl lg:text-4xl font-bold leading-tight",children:t.title}),t.description&&e.jsx("p",{className:"text-lg text-white/85 leading-relaxed max-w-2xl",children:t.description}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 pt-1",children:[t.duration&&e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-white/80",children:[e.jsx(Q,{className:"h-4 w-4"})," ",t.duration]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-white/80",children:[e.jsx(Oe,{className:"h-4 w-4"})," Türkçe"]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-white/80",children:[e.jsx(ae,{className:"h-4 w-4"})," Masterclass"]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-white/80",children:[e.jsx(Se,{className:"h-4 w-4"})," Sertifika"]}),(t.scheduled_date||t.published_at)&&e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-white/80",children:[e.jsx(Ae,{className:"h-4 w-4"}),H(t.scheduled_date||t.published_at)]}),t.location&&e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-white/80",children:[e.jsx(fe,{className:"h-4 w-4"})," ",t.location]})]}),i?e.jsxs(N,{to:gt(i),className:"inline-flex items-center gap-3 group hover:opacity-90 transition-opacity",children:[e.jsxs(rt,{className:"h-11 w-11 border-2 border-white/30",children:[i.photo&&e.jsx(at,{src:i.photo}),e.jsx(st,{className:"text-xs font-bold bg-white/20 text-white",children:i.name.split(" ").map(n=>n[0]).join("").slice(0,2)})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm font-semibold",children:["EÄitmen:"," ",e.jsx("span",{className:"underline decoration-white/40 group-hover:decoration-white",children:i.name})]}),e.jsxs("p",{className:"text-xs text-white/60",children:[w,d?` ⢠${d}`:""]})]})]}):f?e.jsxs("p",{className:"text-sm text-white/70",children:["EÄitmen: ",f]}):null,e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 pt-3",children:[b.length>0&&e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-4 space-y-2.5",children:[e.jsxs("h3",{className:"text-sm font-bold flex items-center gap-1.5 text-white/95",children:[e.jsx(ae,{className:"h-4 w-4"}),"ÃÄrenecekleriniz"]}),e.jsx("ul",{className:"space-y-1.5",children:b.map((n,x)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-white/85 leading-relaxed",children:[e.jsx(G,{className:"h-3 w-3 text-green-300 shrink-0 mt-0.5"}),e.jsx("span",{children:n})]},x))})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-4 space-y-2.5",children:[e.jsxs("h3",{className:"text-sm font-bold flex items-center gap-1.5 text-white/95",children:[e.jsx(Ye,{className:"h-4 w-4"}),"Neler Dahil?"]}),e.jsx("ul",{className:"space-y-1.5",children:(_.length>0?_:[{icon:"Video",label:`${t.duration||"Uzun formatlı"} video / canlı oturum`},{icon:"Infinity",label:"YaÅam boyu eriÅim"},{icon:"FileText",label:"EÄitim materyalleri"},{icon:"Award",label:"Katılım sertifikası"},{icon:"RefreshCw",label:"Yeni güncellemelere eriÅim"}]).map((n,x)=>{const C=Rt[n.icon]||se;return e.jsxs("li",{className:"flex items-center gap-2 text-xs text-white/85",children:[e.jsx(C,{className:"h-3 w-3 text-white/60 shrink-0"}),e.jsx("span",{children:n.label})]},x)})})]})]}),e.jsxs("div",{className:"bg-gradient-to-r from-white/15 to-white/5 backdrop-blur-sm rounded-xl p-5 ring-1 ring-white/15 mt-1",children:[e.jsxs("h3",{className:"text-sm font-bold flex items-center gap-1.5 text-white/95 mb-3",children:[e.jsx(ze,{className:"h-4 w-4"}),"Kimler Katılmalı?"]}),e.jsx("ul",{className:"grid sm:grid-cols-2 gap-x-4 gap-y-1.5",children:["Teknoloji Transfer Ofisi profesyonelleri","Ar-Ge ve inovasyon yöneticileri","Ãniversite araÅtırmacıları","GiriÅimciler ve teknoloji Åirketleri","Yatırımcılar ve fon yöneticileri","Fikri mülkiyet uzmanları","Patent vekilleri","Lisanslama ve ticarileÅtirme profesyonelleri"].map((n,x)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-white/85 leading-relaxed",children:[e.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 rounded-full bg-amber-300 shrink-0"}),e.jsx("span",{children:n})]},x))})]})]}),e.jsxs(Y.div,{initial:{opacity:0,x:20}
1,animate:{opacity:1,x:0},transition:{delay:.2},className:"lg:col-span-2 lg:sticky lg:top-24 bg-card text-foreground rounded-2xl shadow-2xl overflow-hidden border border-border",children:[e.jsxs("div",{className:`relative h-[340px] sm:h-[420px] lg:h-[560px] bg-gradient-to-br ${D.soft} flex items-center justify-center overflow-hidden group`,children:[t.image?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:t.image,alt:t.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-[1200ms] group-hover:scale-105"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-black/30"}),e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,transparent_40%,rgba(0,0,0,0.45)_100%)]"})]}):e.jsx(ae,{className:"h-20 w-20 text-white/40"}),e.jsxs("div",{className:"absolute top-4 left-4 flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-black/50 backdrop-blur-md ring-1 ring-white/15 text-[10px] font-bold uppercase tracking-[0.18em] text-amber-200 shadow-lg",children:[e.jsx(ae,{className:"h-3 w-3"}),"Masterclass"]}),t.duration&&e.jsxs("div",{className:"absolute top-4 right-4 flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/10 backdrop-blur-md ring-1 ring-white/20 text-[11px] font-semibold text-white shadow-lg",children:[e.jsx(Q,{className:"h-3 w-3"}),t.duration]}),t.image&&e.jsxs("div",{className:"relative z-10 flex items-center justify-center",children:[e.jsx("div",{className:"absolute h-20 w-20 rounded-full bg-white/20 backdrop-blur-sm animate-ping opacity-40"}),e.jsx("div",{className:"relative h-16 w-16 rounded-full bg-white/95 flex items-center justify-center shadow-2xl ring-4 ring-white/30 group-hover:scale-110 transition-transform",children:e.jsx(se,{className:"h-6 w-6 text-foreground translate-x-0.5"})})]}),e.jsxs("div",{className:"absolute bottom-0 inset-x-0 p-5 z-10",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-white/70 mb-1.5",children:"Patent Stüdyo ⢠Masterclass"}),e.jsx("h3",{className:"text-white font-bold text-lg leading-tight line-clamp-2 drop-shadow-lg",children:t.title}),f&&e.jsxs("p",{className:"text-xs text-white/80 mt-1.5 flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-amber-300"}),"EÄitmen: ",e.jsx("span",{className:"font-semibold text-white",children:f})]})]})]}),e.jsxs("div",{className:"p-5 space-y-4",children:[a?e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-xl bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-950/30 dark:to-orange-950/30 border border-amber-200/60 dark:border-amber-800/40",children:[e.jsx(I,{className:"h-4 w-4 text-amber-600 shrink-0"}),e.jsx("p",{className:"text-sm font-semibold text-amber-800 dark:text-amber-300",children:"PRO üye olduÄunuz için bu masterclass'a eriÅim hakkınız var."})]}):e.jsx("div",{className:"relative p-3.5 rounded-xl bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-950/30 dark:to-orange-950/30 border border-amber-200 dark:border-amber-800",children:e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx(I,{className:"h-5 w-5 text-amber-600 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-amber-800 dark:text-amber-300",children:"PRO ile Ãcretsiz EriÅin!"}),e.jsxs("p",{className:"text-xs text-amber-700/80 dark:text-amber-400/70 mt-1",children:["Yıllık PRO üyelik ile ",e.jsx("strong",{children:"tüm masterclass'lara"})," ücretsiz eriÅim."]})]})]})}),T&&!L?e.jsxs(A,{className:`w-full gap-2 bg-gradient-to-r ${D.btn} text-white`,size:"lg",onClick:()=>S(!0),children:[e.jsx(J,{className:"h-4 w-4"}),"Kayıt Ol"]}):T&&L?e.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-xl bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-200 dark:border-emerald-800",children:[e.jsx(G,{className:"h-5 w-5 text-emerald-600 shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-emerald-800 dark:text-emerald-300",children:"Kaydınız alındı"}),e.jsx("p",{className:"text-xs text-emerald-700/70 dark:text-emerald-400/70",children:"E-posta kutunuzu kontrol edin."})]})]}):a?null:e.jsx(N,{to:"/pro",className:"block",children:e.jsxs(A,{className:"w-full gap-2 bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white",children:[e.jsx(I,{className:"h-4 w-4"}),"PRO Ãye Ol"]})})]})]})]})})]}),e.jsxs("div",{className:"container mx-auto px-4 py-10",children:[e.jsx(Ke,{items:[{label:"Yayınlar",href:"/yayinlar"},{label:"Masterclass",href:"/yayinlar?tab=masterclass"},{label:t.title}]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-10 mt-4",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[t.content&&e.jsxs(Y.section,{initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{delay:.1},children:[e.jsx("div",{className:"flex items-center justify-between mb-5 flex-wrap gap-3",children:e.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[e.jsx(be,{className:"h-5 w-5 text-primary"}),"MASTERCLASS Hakkında"]})}),e.jsx("div",{className:"border rounded-2xl p-6 md:p-8",children:e.jsx("div",{ref:o,className:"prose prose-lg max-w-none publication-content font-grotesk",dangerouslySetInnerHTML:{__html:F}})})]}),p.length>0&&e.jsxs(Y.section,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.15},children:[e.jsxs("div",{className:"flex items-center justify-between mb-5 flex-wrap gap-3",children:[e.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[e.jsx(be,{className:"h-5 w-5 text-primary"}),"MASTERCLASS İçeriÄi"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[p.length," bölüm ⢠",v," ders",t.duration&&` ⢠${t.duration}`]})]}),e.jsx(xt,{type:"multiple",defaultValue:["section-0"],className:"border rounded-2xl overflow-hidden",children:p.map((n,x)=>{var M,$;const C=((M=n.lessons)==null?void 0:M.length)||0;return e.jsxs(pt,{value:`section-${x}`,className:"border-b last:border-b-0",children:[e.jsx(ut,{className:"px-5 py-4 hover:no-underline hover:bg-muted/30",children:e.jsxs("div",{className:"flex items-center justify-between w-full pr-4",children:[e.jsx("span",{className:"font-semibold text-left",children:n.title||`Bölüm ${x+1}`}),e.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[C," ders"]})]})}),e.jsx(ht,{className:"px-0 pb-0",children:($=n.lessons)==null?void 0:$.map((m,q)=>e.jsxs("div",{className:"flex items-center gap-3 px-5 py-3 border-t hover:bg-muted/30 transition-colors",children:[e.jsx(se,{className:"h-4 w-4 text-muted-foreground shrink-0"}),e.jsx("span",{className:"text-sm flex-1",children:m.title}),m.duration&&e.jsx("span",{className:"text-xs text-muted-foreground",children:m.duration})]},q))})]},x)})})]}),K.length>0&&e.jsxs(Y.section,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.2},className:"border rounded-2xl p-6 space-y-4",children:[e.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[e.jsx(Ct,{className:"h-5 w-5 text-primary"}),"İndirilebilir İçerikler"]}),e.jsx("div",{className:"space-y-3",children:K.map((n,x)=>e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-muted/30 border gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center shrink-0",children:e.jsx(Le,{className:"h-5 w-5 text-blue-600 dark:text-blue-400"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold truncate",children:n.title}),n.description&&e.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:n.description})]})]}),n.url&&(a?e.jsx(A,{asChild:!0,variant:"outline",size:"sm",className:"gap-1.5 shrink-0",children:e.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(At,{className:"h-3.5 w-3.5"})," Aç"]})}):e.jsx(A,{asChild:!0,variant:"outline",size:"sm",className:"gap-1.5 shrink-0",children:e.jsxs(N,{to:"/pro",children:[e.jsx(Pe,{className:"h-3.5 w-3.5"})," PRO"]})}))]},x))})]}),e.jsx("div",{className:"pt-4",children:e.jsx(A,{asChild:!0,variant:"outline",children:e.jsxs(N,{to:"/yayinlar?tab=masterclass",children:[e.jsx(ge,{className:"w-4 h-4 mr-2"}),"Tüm Masterclass'lar"]})})})]}),e.jsx("div",{className:"hidden lg:block",children:e.jsxs("div",{className:"sticky top-24 space-y-6",children:[e.jsxs("div",{className:"border rounded-2xl p-5 space-y-3.5",children:[e.jsx("h3",{className:"font-semibold text-base",children:"Bu Masterclass'ta:"}),t.duration&&e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(Q,{className:"h-4 w-4 text-muted-foreground"}),t.duration]}),e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(Oe,{className:"h-4 w-4 text-muted-foreground"}),"Türkçe"]}),e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(Ge,{className:"h-4 w-4 text-muted-foreground"}),"YaÅam boyu eriÅim"]}),e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(Le,{className:"h-4 w-4 text-muted-foreground"}),"EÄitim materyalleri"]}),e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(Se,{className:"h-4 w-4 text-muted-foreground"}),"Katılım sertifikası"]}),(t.scheduled_date||t.published_at)&&e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(Ae,{className:"h-4 w-4 text-muted-foreground"}),H(t.scheduled_date||t.published_at)]}),t.location&&e.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[e.jsx(fe,{className:"h-4 w-4 text-muted-foreground"}),t.location]})]}),a?e.jsxs("div",{className:"bg-gradient-to-br from-green-50 to-emerald-50 dark:from-green-950/20 dark:to-emerald-950/20 border border-green-200 dark:border-green-800 rounded-2xl p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{className:"h-5 w-5 text-green-600"}),e.jsx("h3",{className:"font-semibold text-green-800 dark:text-green-300",children:"PRO Ãye EriÅimi"})]}),e.jsxs("p",{className:"text-sm text-green-700/80 dark:text-green-400/70",children:["PRO üye olduÄunuz için ",e.jsx("strong",{children:"tüm masterclass içeriklerine"})," eriÅim hakkınız bulunmaktadır."]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-green-600 dark:text-green-400 font-medium pt-1",children:[e.jsx(G,{className:"h-3.5 w-3.5"}),"EriÅim aktif"]})]}):e.jsxs("div",{className:"bg-gradient-to-br from-amber-50 to-orange-50 dark:from-amber-950/20 dark:to-orange-950/20 border border-amber-200 dark:border-amber-800 rounded-2xl p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{className:"h-5 w-5 text-amber-600"}),e.jsx("h3",{className:"font-semibold text-amber-800 dark:text-amber-300",children:"PRO Fırsatını Kaçırma!"})]}),e.jsxs("p",{className:"text-sm text-amber-700/80 dark:text-amber-400/70",children:["PRO üyelik ile ",e.jsx("strong",{children:"tüm masterclass içeriklerine"})," sınırsız eriÅim kazanın."]}),e.jsx(N,{to:"/pro",children:e.jsxs(A,{className:"w-full bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white gap-2",children:[e.jsx(I,{className:"h-4 w-4"})," PRO'ya Yükselt"]})})]})]})})]})]}),(t==null?void 0:t.id)&&e.jsx(De,{publicationId:t.id}),e.jsx(ce,{}),T&&e.jsx(me,{open:j,onOpenChange:O,children:e.jsxs(xe,{className:"max-w-2xl p-0 overflow-hidden bg-background",children:[e.jsxs(pe,{className:"px-6 pt-6 pb-4 border-b",children:[e.jsx(ue,{className:"font-serif text-xl",children:"Kayıt Ol"}),e.jsx(he,{children:t.title})]}),e.jsx("div",{className:"flex justify-center items-center p-4 sm:p-6 bg-muted/30 [&_iframe]:max-w-full [&_iframe]:rounded-md",dangerouslySetInnerHTML:{__html:T}}),e.jsx("div",{className:"px-6 py-3 border-t bg-muted/20 text-xs text-muted-foreground text-center",children:"Formu doldurduktan sonra bu pencereyi kapatabilirsiniz."})]})}),e.jsx(me,{open:X,onOpenChange:s,children:e.jsxs(xe,{className:"max-w-md text-center",children:[e.jsx("div",{className:"mx-auto flex items-center justify-center w-16 h-16 rounded-full bg-emerald-500/15 text-emerald-600 mb-2",children:e.jsx(G,{className:"w-9 h-9"})}),e.jsxs(pe,{children:[e.jsx(ue,{className:"font-serif text-2xl text-center",children:"Kaydınız alınmıÅtır"}),e.jsxs(he,{className:"text-center pt-2",children:["Kayıt baÅvurunuz baÅarıyla iletildi. Onay için lütfen"," ",e.jsx("span",{className:"font-semibold text-foreground",children:"e-posta kutunuzu"})," kontrol edin."]})]}),e.jsx(A,{onClick:()=>s(!1),className:"mt-4 bg-signature text-signature-foreground hover:bg-signature/90",children:"Tamam"})]})})]})}return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[h,e.jsx(de,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx("div",{className:"container mx-auto px-4",children:e.jsx(Ke,{items:[{label:"Yayınlar",href:"/yayinlar"},{label:Kt[t.publication_type]||"Yayın",href:`/yayinlar?tab=${t.publication_type}`},{label:t.title}]})}),e.jsx("article",{className:"container mx-auto px-4 pb-16",children:e.jsx("div",{className:"pt-4 md:pt-8",children:e.jsxs("div",{className:"flex justify-center gap-4 lg:gap-6 items-start",children:[e.jsx(zt,{publicationId:t.id}),e.jsxs(Y.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},className:"w-full max-w-3xl min-w-0",children:[e.jsx("div",{className:"mb-3 w-full",children:e.jsx(Et,{title:t.title,publicationId:t.id,viewCount:t.view_count||0,likeCount:t.like_count||0})}),e.jsxs("div",{className:"relative rounded-2xl border border-border/50 bg-background/60 backdrop-blur-md shadow-elegant-lg overflow-hidden",children:[e.jsx("div",{className:"absolute -top-20 -right-20 w-60 h-60 bg-signature/5 rounded-full blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-20 -left-20 w-60 h-60 bg-gold/5 rounded-full blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative p-6 md:p-10 lg:p-14",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("span",{className:"text-xs font-bold uppercase tracking-wider px-2.5 py-1 rounded bg-signature/10 text-signature",children:Fe[t.publication_type]||t.publication_type.toUpperCase()}),t.is_premium&&e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold uppercase tracking-wider px-2.5 py-1 rounded bg-gold-light text-gold-dark",children:[e.jsx(Pe,{className:"w-3 h-3"})," Premium"]}),t.is_live&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-bold uppercase tracking-wider px-2.5 py-1 rounded bg-red-500/10 text-red-500",children:[e.jsx("span",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse"}),"Canlı"]})]}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-[2.75rem] font-serif font-bold text-foreground mb-8 leading-tight tracking-tight",children:t.title}),e.jsx(De,{publicationId:t.id,variant:"inline"}),t.description&&e.jsx("div",{className:"border-l-4 border-muted-foreground/30 pl-6 mb-8",children:e.jsx("p",{className:"text-lg font-grotesk text-muted-foreground leading-relaxed",children:t.description})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-6 pb-8 border-b border-border text-sm text-muted-foreground",children:[(t.scheduled_date||t.published_at)&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Ae,{className:"w-4 h-4"}),H(t.scheduled_date||t.published_at)]}),t.location&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(fe,{className:"w-4 h-4"}),t.location]}),t.duration&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Q,{className:"w-4 h-4"}),t.duration]}),t.host_name&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Tt,{className:"w-4 h-4"}),t.host_name]}),t.episode_number&&e.jsxs("span",{className:"font-medium",children:["Bölüm ",t.episode_number]})]}),T&&(L?e.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row sm:items-center gap-4 p-5 rounded-2xl border border-emerald-500/30 bg-gradient-to-r from-emerald-500/10 via-background to-emerald-500/5",children:[e.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-emerald-500/15 text-emerald-600 shrink-0",children:e.jsx(G,{className:"w-6 h-6"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Kayıt baÅvurunuz alındı"}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5 flex items-center gap-1.5",children:[e.jsx(et,{className:"w-3.5 h-3.5"}),"Onay için lütfen e-posta kutunuzu kontrol edin."]})]}),e.jsx(A,{variant:"outline",size:"sm",onClick:()=>S(!0),className:"border-emerald-500/30 text-emerald-700 hover:bg-emerald-500/10",children:"Formu tekrar aç"})]}):e.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row sm:items-center gap-3 p-5 rounded-2xl border border-signature/20 bg-gradient-to-r from-signature/5 via-background to-gold/5",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"EtkinliÄe katılmak ister misin?"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Yerini ayırmak için aÅaÄıdaki butona tıkla."})]}),e.jsxs(A,{size:"lg",onClick:()=>S(!0),className:"bg-signature text-signature-foreground hover:bg-signature/90 shadow-md",children:[e.jsx(J,{className:"w-4 h-4 mr-2"}),"Kayıt Ol"]})]})),t.image&&e.jsx("div",{className:"my-8 -mx-6 md:-mx-10 lg:-mx-14",children:e.jsx("img",{src:t.image,alt:t.title,className:"w-full h-auto object-cover"})}),t.content&&e.jsx("div",{ref:o,className:"prose prose-lg max-w-none publication-content font-grotesk",dangerouslySetInnerHTML:{__html:F}}),t.media_url&&e.jsxs("div",{className:"mt-8 p-6 bg-muted rounded-xl",children:[e.jsx("h3",{className:"font-semibold mb-4",children:"Medya"}),e.jsx("a",{href:t.media_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t.media_url})]}),e.jsx("div",{className:"mt-12 pt-8 border-t",children:e.jsx(A,{asChild:!0,variant:"outline",children:e.jsxs(N,{to:`/yayinlar?tab=${t.publication_type}`,children:[e.jsx(ge,{className:"w-4 h-4 mr-2"}),"Tüm ",Fe[t.publication_type]||"Yayınlar"]})})})]})]})]}),e.jsx($t,{publicationId:t.id})]})})})]}),e.jsx(ce,{}),T&&e.jsx(me,{open:j,onOpenChange:O,children:e.jsxs(xe,{className:"max-w-2xl p-0 overflow-hidden bg-background",children:[e.jsxs(pe,{className:"px-6 pt-6 pb-4 border-b",children:[e.jsx(ue,{className:"font-serif text-xl",children:"Kayıt Ol"}
1),e.jsx(he,{children:t==null?void 0:t.title})]}),e.jsx("div",{className:"flex justify-center items-center p-4 sm:p-6 bg-muted/30 [&_iframe]:max-w-full [&_iframe]:rounded-md",dangerouslySetInnerHTML:{__html:T}}),e.jsx("div",{className:"px-6 py-3 border-t bg-muted/20 text-xs text-muted-foreground text-center",children:"Formu doldurduktan sonra bu pencereyi kapatabilirsiniz. Onay e-postası birkaç dakika içinde gelir."})]})}),e.jsx(me,{open:X,onOpenChange:s,children:e.jsxs(xe,{className:"max-w-md text-center",children:[e.jsx("div",{className:"mx-auto flex items-center justify-center w-16 h-16 rounded-full bg-emerald-500/15 text-emerald-600 mb-2",children:e.jsx(G,{className:"w-9 h-9"})}),e.jsxs(pe,{children:[e.jsx(ue,{className:"font-serif text-2xl text-center",children:"Kaydınız alınmıÅtır"}),e.jsxs(he,{className:"text-center pt-2",children:["Etkinlik kayıt baÅvurunuz baÅarıyla iletildi. Onay ve etkinlik detayları için lütfen ",e.jsx("span",{className:"font-semibold text-foreground",children:"e-posta kutunuzu"})," (ve spam klasörünüzü) kontrol edin."]})]}),e.jsx(A,{onClick:()=>s(!1),className:"mt-4 bg-signature text-signature-foreground hover:bg-signature/90",children:"Tamam"})]})})]})}export{ja 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.