1import{s as I,c as M,m as G,p as Q,k as U,g as b,e as W,f as K}from"./DiJQiUTD.js";import{u as X}from"./DrFWrHcU.js";import{d as h,c as s,o as e,f as o,j as d,l as _,t as i,u as f,F as v,k as P,v as z,q as N,n as V,a as Y,b as Z,L as k,i as O,M as q,O as tt}from"./BC1fSk-i.js";import"./WFAqPvgT.js";const et={key:0},st={key:1},nt=h({__name:"JournalInfo",setup(t){const{journalTitle:c,abbreviation:a,issn:l,eIssn:p}=I(M());return(C,u)=>(e(),s(v,null,[o("p",null,[u[0]||(u[0]=o("span",{class:"font-semibold me-2"},"Title:",-1)),_(" "+i(f(c)),1)]),o("p",null,[u[1]||(u[1]=o("span",{class:"font-semibold me-2"},"Journal abbreviation:",-1)),_(" "+i(f(a)),1)]),f(l)?(e(),s("p",et,[u[2]||(u[2]=o("span",{class:"font-semibold me-2"},"ISSN:",-1)),_(" "+i(f(l)),1)])):d("",!0),f(p)?(e(),s("p",st,[u[3]||(u[3]=o("span",{class:"font-semibold me-2"},"E-ISSN:",-1)),_(" "+i(f(p)),1)])):d("",!0)],64))}}),at=["href"],ot=h({__name:"JournalIndexItem",props:{url:String,name:String,id:String},setup(t){return(c,a)=>{const l=G;return e(),s("a",{href:t.url,class:"mx-auto",target:"_blank"},[P(l,{type:"base",path:`index-logos/${t.id}.png`,alt:t.name,"fallback-text":t.name,"cache-buster":Date.now(),"image-class":"h-8","fallback-class":"h-8 max-h-8 text-xs text-gray-500 font-medium flex items-center"},null,8,["path","alt","fallback-text","cache-buster"])],8,at)}}}),rt={key:0,class:"grid grid-cols-4 items-center gap-6"},lt={class:"border border-gray-200 rounded-md p-4 flex items-center"},it=h({__name:"JournalIndexes",async setup(t){let c,a;const l=M(),{journalIndexes:p}=I(l);return p.value.length===0&&([c,a]=z(()=>l.fetchIndexes()),await c,a()),(C,u)=>{const S=ot;return f(p).length>0?(e(),s("div",rt,[(e(!0),s(v,null,N(f(p),w=>(e(),s("div",lt,[P(S,{url:w.url,name:w.name,id:w.id,key:"index.id"},null,8,["url","name","id"])]))),256))])):d("",!0)}}}),ct={class:"border rounded-lg p-4 mb-7"},dt={class:"mb-3"},mt={key:0,class:"font-semibold text-gray-500"},ut={key:1,class:"text-lg font-semibold text-sky-800"},pt={class:"md:flex md:flex-nowrap justify-between items-end md:gap-4"},gt={key:0,class:"w-full md:w-3/5 mb-4 md:mb-0"},ft={key:1,class:"w-full md:w-1/5 mb-4 md:mb-0"},ht={key:2,class:"w-full md:w-1/5 mb-4 md:mb-0"},yt=["href"],bt=h({__name:"InPageContactItem",props:{title:String,name:String,address:String,phone:String,email:String},setup(t){return(c,a)=>(e(),s("div",ct,[o("div",dt,[t.title?(e(),s("span",mt,i(t.title)+":",1)):d("",!0),t.name?(e(),s("p",ut,i(t.name),1)):d("",!0)]),o("div",pt,[t.address?(e(),s("div",gt,[a[0]||(a[0]=o("span",{class:"font-bold text-sm text-gray-500 block"},"Address:",-1)),_(" "+i(t.address),1)])):d("",!0),t.phone?(e(),s("div",ft,[a[1]||(a[1]=o("span",{class:"font-bold text-sm text-gray-500 block"},"Phone:",-1)),_(" "+i(t.phone),1)])):d("",!0),t.email?(e(),s("div",ht,[a[2]||(a[2]=o("span",{class:"font-bold text-sm text-gray-500 block"},"E-mail:",-1)),o("a",{href:`mailto:${t.email}`},i(t.email),9,yt)])):d("",!0)])]))}}),_t={class:"border-b mb-7 px-4"},$t={class:"mb-3"}
1,xt={class:"font-semibold text-lg text-sky-800 mb-1"},kt={key:0,class:"mb-1"},vt={key:1},St=["href"],wt={key:2},Nt={key:3},Ct=["href"],Lt=h({__name:"BoardMemberItem",props:{name:String,institution:String,email:String,phone:String,orcid:String},setup(t){return(c,a)=>(e(),s("div",_t,[o("div",$t,[o("p",xt,i(t.name),1),t.institution?(e(),s("p",kt,i(t.institution),1)):d("",!0),t.email?(e(),s("p",vt,[a[0]||(a[0]=o("span",{class:"font-bold text-sm text-gray-500 me-3"},"E-mail:",-1)),o("a",{href:`mailto:${t.email}`},i(t.email),9,St)])):d("",!0),t.phone?(e(),s("p",wt,[a[1]||(a[1]=o("span",{class:"font-bold text-sm text-gray-500 me-3"},"Phone:",-1)),_(" "+i(t.phone),1)])):d("",!0),t.orcid?(e(),s("p",Nt,[a[2]||(a[2]=o("span",{class:"font-bold text-sm text-gray-500 me-3"},"Orcid:",-1)),o("a",{href:`https://orcid.org/${t.orcid}`},i(t.orcid),9,Ct)])):d("",!0)])]))}}),It={class:"font-semibold text-gray-800"},Mt=["href","target"],Tt=h({__name:"LinkList",props:{data:Array},setup(t){return(c,a)=>(e(!0),s(v,null,N(t.data,(l,p)=>(e(),s("div",{key:p,class:"mb-6"},[o("p",It,i(l.text),1),o("a",{href:l.url,target:l.target,class:"text-primary hover:underline"},i(l.subtext||l.url),9,Mt)]))),128))}}),At={class:"text-gray-700 font-semibold mb-2"},Ht={class:"mb-3"},Et={class:"text-sky-700"},jt=["innerHTML"],Jt=h({__name:"BlockBgItem",props:{colorClass:{type:String,default:"bg-gray-100"},title:{type:String,required:!0},contents:{type:Array,required:!0}},setup(t){return(c,a)=>(e(),s("div",{class:V(["mt-5 p-6",t.colorClass])},[o("p",At,i(t.title),1),(e(!0),s(v,null,N(t.contents,l=>
1(e(),s("div",Ht,[o("p",Et,i(l.title),1),o("p",{innerHTML:l.content},null,8,jt)]))),256))],2))}}),Bt={class:"flex-1 page-content static w-full"},Dt=["innerHTML"],Vt=h({__name:"[...slug]",async setup(t){var A,H,E,j,J,B,D;let c,a;const{title:l,journalId:p,keywords:C,description:u,domain:S}=I(M()),w=Q(),T=Y([]),R=m=>{const g=document.createElement("div");g.innerHTML=m;const n=[];g.childNodes.forEach(x=>{if(x.nodeType===1){const r=x;if(r.tagName.toLowerCase()==="journal-indexes")n.push({type:"component",component:k(it)});else if(r.tagName.toLowerCase()==="journal-info")n.push({type:"component",component:k(nt)});else if(r.tagName.toLowerCase()==="contact-item")try{n.push({type:"component",props:{...JSON.parse(r.getAttribute("contact")||"{}")},component:k(bt)})}catch(y){console.error("Error parsing contact-item data:",y)}else if(r.tagName.toLowerCase()==="board-member")try{n.push({type:"component",props:{...JSON.parse(r.getAttribute("data")||"{}")},component:k(Lt)})}catch(y){console.error("Error parsing board-member data:",y)}else if(r.tagName.toLowerCase()==="link-list")try{n.push({type:"component",props:{data:JSON.parse(r.getAttribute("data")||"")},component:k(Tt)})}catch(y){console.error("Error parsing link-list data:",y)}else if(r.tagName.toLowerCase()==="block-item")try{n.push({type:"component",props:{...JSON.parse(r.getAttribute("data")||"")},component:k(Jt)})}catch(y){console.error("Error parsing block-item data:",y)}else r.tagName==="IMG"?n.push({type:"html",tagName:r.tagName,src:r.getAttribute("src")||""}):r.tagName==="A"?n.push(F(r)):n.push({type:"html",tagName:r.tagName,id:r.id,content:r.innerHTML,class:r.getAttribute("class")||""})}else if(x.nodeType===3){const r=x;n.push({type:"content",content:r.textContent||""})}}),g.innerHTML="",T.value=n},L=w.params.slug.join("_");if(/(\.env|\.git|\.DS_Store|package-lock\.json|yarn\.lock|\.php$|\.html$|\.tar\.gz$|\.zip$|\.rar$|\.sql$|\.bak$|\.backup$)/i.test(L))throw U({statusCode:404,statusMessage:"Sayfa bulunamadı"});const{data:$}=([c,a]=z(()=>X(L,()=>$fetch(`/api/journal-content/${p.value}/${L}`),"$yCqnlWmzBQ")),c=await c,a(),c);b().set({title:((A=$.value)==null?void 0:A.title)??((E=(H=$.value)==null?void 0:H.page)==null?void 0:E.title)??"",description:(j=$.value)==null?void 0:j.description,keywords:((J=$.value)==null?void 0:J.keywords)??[]}),Z(()=>{var m;R(((m=$.value)==null?void 0:m.content)??"")}),W({title:`${b().title} - ${l.value}`,meta:[{name:"description",content:b().description},{name:"keywords",content:`${C.value}, ${(D=(B=$.value)==null?void 0:B.keywords)==null?void 0:D.join(", ")}`}]}),K({title:`${b().title} - ${l.value}`,ogTitle:`${b().title} - ${l.value}`,description:b().description??u.value,keywords:`${b().keywords}`});const F=m=>{let g=m.getAttribute("href")||"";g.includes(S.value??"")&&(g=g.replace(`http://${S.value??""}`,"").replace(`https://${S.value??""}`,""));const n=m.getAttribute("target")||g.includes("http")?"_blank":"";return{type:"html",tagName:m.tagName,id:m.id,content:m.innerHTML,href:g,target:n,class:m.getAttribute("class")||""}};return(m,g)=>(e(),s("div",Bt,[(e(!0),s(v,null,N(f(T),(n,x)=>(e(),s(v,{key:x},[n.type=="html"?(e(),O(q(n.tagName),{key:0,innerHTML:n.content,id:n.id,src:n.src,href:n.href,class:V(`break-words ${n.class}`)},null,8,["innerHTML","id","src","href","class"])):n.type=="content"?(e(),s("div",{key:1,innerHTML:n.content},null,8,Dt)):d("",!0),n.type=="component"?(e(),O(q(n.component),tt({key:2,ref_for:!0},n.props),null,16)):d("",!0)],64))),128))]))}});export{Vt 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.