PageSourceSearch

https://karfo-endustriyel.com.tr/_nuxt/0LtQJ5uF.js

js karfo-endustriyel.com.tr collected 2026-10-08 05:53:14 UTC 11,255 bytes, 1 lines download raw bytes

1import{_ as Z}from"./BE40FlEo.js";import{r as F,l as n,i as a,a0 as l,a3 as e,H as b,O as s,h as c,ac as G,a7 as J,a9 as Q,V as X,am as ee,ao as B,ab as te,m as ae,af as se,j,q as i,ap as I,k as r,p as y,F as K,W as E,d as oe,a4 as Y,c as ne}from"./Dd8GYhUw.js";import{_ as re,a as ie}from"./CvitNSR7.js";import{f as S}from"./BcAFVK0U.js";import{i as z}from"./BGCYTD6V.js";import{u as le}from"./CG_mEGTM.js";import{u as de}from"./Z9Y9ui-_.js";import{u as ce}from"./pjZfDC5y.js";import"./Z-SNg7od.js";import"./o2Py5RzP.js";const me=F({__name:"DateBadge",props:{date:{},size:{default:"md"},variant:{default:"default"}},setup(O){const u=O,x=c(()=>u.date?new Date(u.date):null),f=c(()=>x.value?x.value.toLocaleDateString("tr-TR",{weekday:"short"}):"—"),g=c(()=>x.value?x.value.getDate():"—"),L=c(()=>x.value?x.value.toLocaleDateString("tr-TR",{month:"short",year:"numeric"}):"—"),h=c(()=>{switch(u.size){case"sm":return{container:"h-24 w-28",weekday:"text-[11px]",day:"text-3xl mt-0.5",monthYear:"text-[11px] mt-0.5"};case"lg":return{container:"h-36 w-40",weekday:"text-sm",day:"text-6xl mt-1",monthYear:"text-sm mt-1"};default:return{container:"h-28 w-32",weekday:"text-xs",day:"text-4xl mt-1",monthYear:"text-xs mt-1"}}}),_=c(()=>u.variant==="hero"?{container:"border border-white/15 bg-white/10 shadow-[0_10px_30px_rgba(0,0,0,0.18)]",weekday:"text-white/70 uppercase tracking-[0.12em]",day:"text-white",monthYear:"text-white/75"}:{container:"border border-gray-100 bg-gray-50 text-gray-600",weekday:"text-gray-500",day:"text-gray-900",monthYear:"text-gray-500"});return(D,T)=>(s(),n("div",{class:b(["flex flex-col items-center justify-center rounded-2xl text-center backdrop-blur-sm",e(_).container,e(h).container])},[a("span",{class:b([e(_).weekday,e(h).weekday])},l(e(f)),3),a("span",{class:b(["font-semibold leading-none",e(_).day,e(h).day])},l(e(g)),3),a("span",{class:b([e(_).monthYear,e(h).monthYear])},l(e(L)),3)],2))}}),ue={key:0,class:"bg-white"},xe={class:"relative overflow-hidden bg-academia-900 text-white min-h-[280px] md:min-h-[320px]"},pe={class:"relative max-w-6xl mx-auto px-4 md:px-6 py-12 md:py-16 flex flex-col md:flex-row md:items-end gap-6"},ye={class:"flex-1"},ge={class:"mb-3 flex items-center gap-2 text-xs text-gray-100/80"},he={class:"text-gray-100 truncate max-w-[12rem] md:max-w-none"},_e={class:"flex flex-wrap items-center gap-2 mb-3"},fe={key:0,class:"text-xs font-medium uppercase tracking-wide text-academia-200 bg-white/10 px-2.5 py-1 rounded-full"},ke={key:1,class:"text-sm text-gray-100/90 inline-flex items-center gap-1.5"},ve={class:"text-2xl md:text-4xl font-extrabold leading-tight text-white"},we={key:0,class:"flex-none hidden md:block rounded-2xl border border-white/20 bg-white/10 p-3 backdrop-blur-sm"},be={class:"max-w-6xl mx-auto px-4 md:px-6 py-10 md:py-14"},De={class:"flex flex-col lg:flex-row gap-10"},Te={class:"flex-1 min-w-0"},$e={key:0,class:"mb-8 rounded-2xl overflow-hidden border border-gray-100 shadow-sm"},Le=["innerHTML"],Ce=["id"],je={key:0,class:"text-xl md:text-2xl font-bold text-gray-900 mb-4"},Ie=["innerHTML"],Ke={key:2,class:"text-gray-700 leading-relaxed"},Oe={key:3,id:"kayit-ol",class:"mt-10 pt-8 border-t border-gray-100 scroll-mt-28"},Re={key:0,class:"text-sm text-gray-600"},Ae={class:"lg:w-80 flex-shrink-0"},Be={class:"lg:sticky lg:top-8 rounded-2xl border border-gray-100 bg-gray-50/50 p-5 md:p-6 space-y-6"},Ee={class:"space-y-4"},Ye={class:"flex flex-col gap-2"},Se=["href"],ze=["href"],Fe={key:2,href:"#kayit-ol",class:"inline-flex items-center justify-center gap-2 rounded-xl bg-academia-600 px-4 py-3 text-sm font-medium text-white hover:bg-academia-700 transition-colors w-full"},Me={key:3,class:"inline-flex items-center justify-center gap-2 rounded-xl bg-gray-200 px-4 py-3 text-sm font-medium text-gray-600 w-full"},Ne={class:"border-t border-gray-200 pt-4"},Ue={class:"space-y-3 text-sm"},He={key:0,class:"flex gap-3"},Ve={class:"flex-none w-8 text-gray-400"},qe={class:"text-gray-700"},Pe={key:1,class:"flex gap-3"},We={class:"flex-none w-8 text-gray-400"},Ze={class:"text-gray-700"},Ge={key:2,class:"flex gap-3"},Je={class:"flex-none w-8 text-gray-400"},Qe={class:"text-gray-700"},Xe={key:3,class:"flex gap-3"},et={class:"flex-none w-8 text-gray-400"},tt={class:"text-gray-700"},at={key:4,class:"flex gap-3"},st={class:"flex-none w-8 text-gray-400"},ot={class:"text-gray-700"},nt={key:0,class:"mt-4 pt-4 border-t border-gray-200"},rt={class:"space-y-1"},it={key:1,class:"min-h-[60vh] flex items-center justify-center"},_t=F({__name:"[slug]",async setup(O){let u,x;const f=G(),{locale:g}
1=J(),L=Q(),h=le(),{getImageUrl:_}=de(),D=c(()=>f.params.slug),T=X(f.hash==="#kayit-ol");ee(()=>f.hash,m=>{m==="#kayit-ol"&&(T.value=!0)});const{data:t}=([u,x]=B(()=>Y(()=>`academy:event:${g.value}:${D.value}`,()=>$fetch(`/api/${g.value}/academy/events/${D.value}`),"$qZfKw3tpr_")),u=await u,x(),u);[u,x]=B(()=>Y(()=>`academy:eventCategories:${g.value}`,()=>h.getEventCategories(g.value),"$L-IW0s4IYy")),await u,x();const R=c(()=>h.getEventCategoryTitleFromAncestors(t.value?.categoryAncestorIds)),k=c(()=>_(t.value?.featuredImage)),M=c(()=>[...t.value?.details??[]].sort((o,w)=>(o.order??0)-(w.order??0))),N=c(()=>new Date(t.value?.eventDate?.replace(" ","T")??"")),v=c(()=>t.value&&N.value.getTime()<Date.now()),A=te(),U=`${A.protocol}//${A.host}`,H=c(()=>U+L(`/karfo-akademi/etkinlik-detay/${D.value}`)),V=c(()=>`${t.value?.title??""} – Karfo Akademi`);if(!t.value)throw ae({statusCode:404,statusMessage:"Etkinlik bulunamadı"});return ce({title:()=>t.value?.title||"Etkinlik",description:()=>(t.value?.description??"").replace(/<[^>]*>/g,"").slice(0,160)||t.value?.title||void 0}),se({ogType:"article"}),(m,o)=>{const w=Z,C=oe,p=ne,q=me,P=re,W=ie;return e(t)?(s(),n("div",ue,[a("section",xe,[e(k)?(s(),j(w,{key:0,src:e(k),alt:e(t).title,class:"absolute inset-0 h-full w-full object-cover opacity-40"},null,8,["src","alt"])):(s(),j(w,{key:1,src:"/img/hero-industrial.png",alt:"",class:"absolute inset-0 h-full w-full object-cover opacity-25"})),o[3]||(o[3]=a("div",{class:"absolute inset-0 bg-gradient-to-tr from-academia-900/90 via-academia-800/70 to-academia-600/50"},null,-1)),a("div",pe,[a("div",ye,[a("nav",ge,[i(C,{to:"/karfo-akademi",class:"hover:text-white transition"},{default:I(()=>[y(l(m.$t("nav.karfoAcademy")),1)]),_:1}),o[1]||(o[1]=a("span",null,"/",-1)),i(C,{to:"/karfo-akademi/etkinlikler",class:"hover:text-white transition"},{default:I(()=>[y(l(m.$t("academy.events.title")),1)]),_:1}),o[2]||(o[2]=a("span",null,"/",-1)),a("span",he,l(e(t).title),1)]),a("div",_e,[e(R)?(s(),n("span",fe,l(e(R)),1)):r("",!0),e(t).eventDate?(s(),n("span",ke,[i(p,{name:"lucide:calendar",class:"w-4 h-4"}),y(" "+l(("formatDate"in m?m.formatDate:e(S))(e(t).eventDate.replace(" ","T"),e(g))),1)])):r("",!0)]),a("h1",ve,l(e(t).title),1)]),e(t).eventDate&&!e(k)?(s(),n("div",we,[i(q,{date:e(t).eventDate.replace(" ","T"),size:"lg"},null,8,["date"])])):r("",!0)])]),a("section",be,[a("div",De,[a("article",Te,[e(k)?(s(),n("div",$e,[i(w,{src:e(k),alt:e(t).title,class:"w-full h-64 md:h-80 object-cover"},null,8,["src","alt"])])):r("",!0),e(t).description?(s(),n("div",{key:1,innerHTML:e(t).description,class:"prose prose-gray max-w-none prose-headings:text-gray-900 prose-p:text-gray-600 prose-a:text-academia-600 hover:prose-a:text-academia-700"},null,8,Le)):r("",!0),e(t).details?.length?(s(!0),n(K,{key:2},E(e(M),(d,$)=>(s(),n("div",{key:d.id||$,id:d.id,class:b(["scroll-mt-28",$>0||e(t).description?"mt-10 pt-8 border-t border-gray-100":"mt-6"])},[d.title?(s(),n("h2",je,l(d.title),1)):r("",!0),(d.contentType==="html"||!d.contentType)&&d.content?(s(),n("div",{key:1,innerHTML:d.content,class:"prose prose-gray max-w-none prose-headings:text-gray-900 prose-p:text-gray-600 prose-a:text-academia-600"},null,8,Ie)):d.contentType==="text"&&d.content?(s(),n("p",Ke,l(d.content),1)):r("",!0)],10,Ce))),128)):r("",!0),e(v)?r("",!0):(s(),n("div",Oe,[o[5]||(o[5]=a("h2",{class:"text-xl md:text-2xl font-bold text-gray-900 mb-4"}," Kayıt Ol ",-1)),("isRegistrationOpen"in m?m.isRegistrationOpen:e(z))(e(t))?(s(),n(K,{key:1},[e(T)?(s(),j(P,{key:1,type:"event",title:e(t).title,slug:e(t).slug,date:e(t).eventDate},null,8,["title","slug","date"])):(s(),n("button",{key:0,type:"button",class:"inline-flex items-center gap-2 rounded-xl bg-academia-600 px-4 py-3 text-sm font-medium text-white transition-colors hover:bg-academia-700",onClick:o[0]||(o[0]=d=>T.value=!0)},[i(p,{name:"lucide:user-plus",class:"w-4 h-4"}),o[4]||(o[4]=y(" Kayıt Formunu Aç ",-1))]))],64)):(s(),n("p",Re," Bu etkinlik için kayıtlar şu anda kapalı. "))]))]),a("aside",Ae,[a("div",Be,[a("div",Ee,[a("div",Ye,[e(v)&&e(t).recordingLink?(s(),n("a",{key:0,href:e(t).recordingLink,target:"_blank",rel:"noopener",class:"inline-flex items-center justify-center gap-2 rounded-xl border border-gray-300 bg-white px-4 py-3 text-sm font-medium text-gray-700 hover:bg-gray-50 transition-colors w-full"},[i(p,{name:"lucide:play-circle",class:"w-4 h-4"}),o[6]||(o[6]=y(" Kaydı İzle ",-1))],8,Se)):r("",!0),!e(v)&&e(t).meetingLink?(s(),n("a",{key:1,href:e(t).meetingLink,target:"_blank",rel:"noopener",class:"inline-flex items-center justify-center gap-2 rounded-xl bg-academia-600 px-4 py-3 text-sm font-medium text-white hover:bg-academia-700 transition-colors w-full"},[i(p,{name:"lucide:video",class:"w-4 h-4"}),o[7]||(o[7]=y(" Webinara Katıl ",-1))],8,ze)):r("",!0),!e(v)&&("isRegistrationOpen"in m?m.isRegistrationOpen:e(z))(e(t))?(s(),n("a",Fe,[i(p,{name:"lucide:user-plus",class:"w-4 h-4"}),o[8]||(o[8]=y(" Kayıt Ol ",-1))])):e(v)?r("",!0):(s(),n("span",Me,[i(p,{name:"lucide:lock",class:"w-4 h-4"}),o[9]||(o[9]=y(" Kayıtlar Kapalı ",-1))]))]),i(W,{url:e(H),title:e(V),text:e(t).description},null,8,["url","title","text"])]),a("div",Ne,[o[12]||(o[12]=a("h3",{class:"text-sm font-semibold text-gray-900 mb-4"}," Etkinlik Bilgileri ",-1)),a("dl",Ue,[e(t).eventDate?(s(),n("div",He,[a("dt",Ve,[i(p,{name:"lucide:calendar",class:"w-4 h-4"})]),a("dd",qe,l(("formatDate"in m?m.formatDate:e(S))(e(t).eventDate.replace(" ","T"),e(g))),1)])):r("",!0),e(t).location?(s(),n("div",Pe,[a("dt",We,[i(p,{name:"lucide:map-pin",class:"w-4 h-4"})]),a("dd",Ze,l(e(t).location),1)])):r("",!0),e(t).platform?(s(),n("div",Ge,[a("dt",Je,[i(p,{name:"lucide:monitor",class:"w-4 h-4"})]),a("dd",Qe,l(e(t).platform),1)])):r("",!0),e(t).duration?(s(),n("div",Xe,[a("dt",et,[i(p,{name:"lucide:clock",class:"w-4 h-4"})]),a("dd",tt,l(e(t).duration),1)])):r("",!0),e(t).capacity?(s(),n("div",at,[a("dt",st,[i(
1p,{name:"lucide:users",class:"w-4 h-4"})]),a("dd",ot,l(e(t).capacity),1)])):r("",!0)]),e(t).instructors?.length?(s(),n("div",nt,[o[10]||(o[10]=a("h4",{class:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-2"}," Eğitmenler ",-1)),a("ul",rt,[(s(!0),n(K,null,E(e(t).instructors,(d,$)=>(s(),n("li",{key:$,class:"text-sm text-gray-700"},l(d),1))),128))])])):r("",!0),i(C,{to:"/karfo-akademi/etkinlikler",class:"mt-6 block text-center text-sm font-medium text-academia-600 hover:text-academia-700"},{default:I(()=>[...o[11]||(o[11]=[y(" ← Tüm etkinliklere dön ",-1)])]),_:1})])])])])])])):(s(),n("div",it,[...o[13]||(o[13]=[a("p",{class:"text-gray-500"},"Etkinlik bulunamadı.",-1)])]))}}});export{_t 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.