import{d as h,o as t,b as s,a as r,t as i,q as v,n as $,F as d,e as y,f as N,m as g,u as f,r as G,c as p,s as K,k as ot,W as O,G as z}from"./3LwgCWkS.js";import{n as q,b as Q,s as X,p as it,t as ct,q as w,o as ut,r as dt,i as gt}from"./CJ3Pvzvs.js";const _t={class:"font-semibold me-2"},yt=h({__name:"InlineTitleWithText",props:{title:String,content:String,widgetClass:String},setup(e){return(c,a)=>(t(),s("p",{class:$(["mb-3",e.widgetClass])},[r("span",_t,i(e.title)+":",1),v(" "+i(e.content),1)],2))}}),ht={class:"grid grid-cols-4 items-center gap-6"},pt={class:"border border-gray-200 rounded-md p-4 flex items-center"},mt=["href","target"],ft=h({__name:"FlexImageList",props:{imageHeightClass:{type:String,default:"h-8"},items:Array},setup(e){return(c,a)=>{const l=q;return t(),s("div",ht,[(t(!0),s(d,null,y(e.items,u=>(t(),s("div",pt,[r("a",{href:u.url,target:u.target,class:"mx-auto"},[N(l,{src:u.src,alt:u.alt,class:$(e.imageHeightClass)},null,8,["src","alt","class"])],8,mt)]))),256))])}}}),xt={class:"border rounded-lg p-4 mb-7"},$t={class:"mb-3"},kt={key:0,class:"font-semibold text-gray-500"},bt={key:1,class:"text-lg font-semibold text-sky-800"},vt={class:"md:flex md:flex-nowrap justify-between items-end md:gap-4"},wt={key:0,class:"w-full md:w-3/5 mb-4 md:mb-0"},St={key:1,class:"w-full md:w-1/5 mb-4 md:mb-0"},Tt={key:2,class:"w-full md:w-1/5 mb-4 md:mb-0"},Lt=["href"],Ct=h({__name:"InPageContactItem",props:{title:String,name:String,address:String,phone:String,email:String},setup(e){return(c,a)=>(t(),s("div",xt,[r("div",$t,[e.title?(t(),s("span",kt,i(e.title)+":",1)):g("",!0),e.name?(t(),s("p",bt,i(e.name),1)):g("",!0)]),r("div",vt,[e.address?(t(),s("div",wt,[a[0]||(a[0]=r("span",{class:"font-bold text-sm text-gray-500 block"},"Address:",-1)),v(" "+i(e.address),1)])):g("",!0),e.phone?(t(),s("div",St,[a[1]||(a[1]=r("span",{class:"font-bold text-sm text-gray-500 block"},"Phone:",-1)),v(" "+i(e.phone),1)])):g("",!0),e.email?(t(),s("div",Tt,[a[2]||(a[2]=r("span",{class:"font-bold text-sm text-gray-500 block"},"E-mail:",-1)),r("a",{href:`mailto:${e.email}`},i(e.email),9,Lt)])):g("",!0)])]))}}),Ht={class:"border-b mb-7 px-4"},Mt={class:"mb-3"},It={class:"font-semibold text-lg text-sky-800 mb-1"},Nt={key:0,class:"mb-1"},qt={key:1},Ut=["href"],At={key:2},Bt={key:3},jt=["href"],Et=h({__name:"BoardMemberItem",props:{name:String,institution:String,email:String,phone:String,orcid:String},setup(e){return(c,a)=>(t(),s("div",Ht,[r("div",Mt,[r("p",It,i(e.name),1),e.institution?(t(),s("p",Nt,i(e.institution),1)):g("",!0),e.email?(t(),s("p",qt,[a[0]||(a[0]=r("span",{class:"font-bold text-sm text-gray-500 me-3"},"E-mail:",-1)),r("a",{href:`mailto:${e.email}`},i(e.email),9,Ut)])):g("",!0),e.phone?(t(),s("p",At,[a[1]||(a[1]=r("span",{class:"font-bold text-sm text-gray-500 me-3"},"Phone:",-1)),v(" "+i(e.email),1)])):g("",!0),e.orcid?(t(),s("p",Bt,[a[2]||(a[2]=r("span",{class:"font-bold text-sm text-gray-500 me-3"},"Orcid:",-1)),r("a",{href:`https://orcid.org/${e.orcid}`},i(e.orcid),9,jt)])):g("",!0)])]))}}),Dt=["innerHTML"],Jt=["innerHTML"],Pt=["innerHTML"],Wt=h({__name:"List",props:{data:{type:Object,required:!0}},setup(e){return(c,a)=>(t(),s("ul",{class:$(["mb-5",e.data.ulClass])},[(t(!0),s(d,null,y(e.data.items,l=>(t(),s("li",{class:$(e.data.liClass)},[typeof l=="string"?(t(),s("span",{key:0,innerHTML:l},null,8,Dt)):(t(),s(d,{key:1},[r("span",{innerHTML:l.text},null,8,Jt),l!=null&&l.subItems&&(l==null?void 0:l.subItems.length)>0?(t(!0),s(d,{key:0},y(l==null?void 0:l.subItems,u=>(t(),s("span",{class:"block ms-4 mt-1",innerHTML:u},null,8,Pt))),256)):g("",!0)],64))],2))),256))],2))}}),Ft={class:"text-gray-700 font-semibold mb-2"},Rt={class:"mb-3"},Vt={class:"text-sky-700"},Ot=["innerHTML"],zt=h({__name:"BlockBgItem",props:{colorClass:{type:String,default:"bg-gray-100"},title:{type:String,required:!0},contents:{type:Array,required:!0}},setup(e){return(c,a)=>(t(),s("div",{class:$(["mt-5 p-6",e.colorClass])},[r("p",Ft,i(e.title),1),(t(!0),s(d,null,y(e.contents,l=>(t(),s("div",Rt,[r("p",Vt,i(l.title),1),r("p",{innerHTML:l.content},null,8,Ot)]))),256))],2))}}),Gt={class:"mb-10"},Kt={class:"mb-2 font-bold"},Qt=["innerHTML"],Xt=h({__name:"SubSectionItem",props:{title:{type:String,required:!0},contents:{type:Array,required:!0}},setup(e){return(c,a)=>(t(),s("div",Gt,[r("p",Kt,i(e.title),1),(t(!0),s(d,null,y(e.contents,l=>(t(),s("p",{class:"mb-3",innerHTML:l},null,8,Qt))),256))]))}}),Yt={class:"group relative"},Zt={key:0,class:"absolute top-0 left-0 bg-black w-full flex flex-col justify-center items-center opacity-0 h-full group-hover:opacity-100 group-hover:bg-opacity-20 duration-500"},te=["href","target"],ee=h({__name:"ImageWithHover",props:{src:{type:String,required:!0},alt:{type:String,required:!0},url:String,target:String,hoverText:String,widthClass:String,imageClass:{type:String,default:""}},setup(e){return(c,a)=>{const l=q;return t(),s("div",{class:$(e.widthClass)},[r("div",Yt,[N(l,{src:e.src,alt:e.alt,class:$([e.imageClass,"object-cover w-full"])},null,8,["src","alt","class"]),e.hoverText?(t(),s("div",Zt,[r("a",{class:"hoverbutton",href:e.url,target:e.target},i(e.hoverText),9,te)])):g("",!0)])],2)}}}),se={class:"font-semibold text-gray-800"},ne=["href","target"],le=h({__name:"LinkList",props:{data:Array},setup(e){return(c,a)=>(t(!0),s(d,null,y(e.data,(l,u)=>(t(),s("div",{key:u,class:"mb-6"},[r("p",se,i(l.text),1),r("a",{href:l.url,target:l.target,class:"text-primary hover:underline"},i(l.subtext||l.url),9,ne)]))),128))}}),re={class:"table-auto text-sm items-center"},ae={class:"border-b border-slate-300 py-2"},oe={class:"even:bg-gray-50 hover:bg-gray-100"},ie=["innerHTML"],ce=h({__name:"Table",props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0}},setup(e){return(c,a)=>(t(),s("table",re,[r("thead",null,[r("tr",null,[(t(!0),s(d,null,y(e.columns,l=>(t(),s("th",ae,i(l),1))),256))])]),r("tbody",null,[(t(!0),s(d,null,y(e.rows,l=>(t(),s("tr",oe,[(t(!0),s(d,null,y(e.columns,(u,S)=>(t(),s("td",{class:"border-b border-slate-300 py-2 px-3",innerHTML:l[S]},null,8,ie))),256))]))),256))])]))}}),ue=["innerHTML"],de=h({__name:"InlineText",props:{title:String,content:String,widgetClasss:String},setup(e){return(c,a)=>(t(),s("p",{class:$(["mb-3",e.widgetClasss]),innerHTML:e.content},null,10,ue))}}),ge={key:0},_e={key:1},ye=h({__name:"JournalInfo",setup(e){const{title:c,abbreviation:a,issn:l,eIssn:u}=Q();return(S,x)=>(t(),s(d,null,[r("p",null,[x[0]||(x[0]=r("span",{class:"font-semibold me-2"},"Title:",-1)),v(" "+i(f(c)),1)]),r("p",null,[x[1]||(x[1]=r("span",{class:"font-semibold me-2"},"Journal abbreviation:",-1)),v(" "+i(f(a)),1)]),f(l)?(t(),s("p",ge,[x[2]||(x[2]=r("span",{class:"font-semibold me-2"},"ISSN:",-1)),v(" "+i(f(l)),1)])):g("",!0),f(u)?(t(),s("p",_e,[x[3]||(x[3]=r("span",{class:"font-semibold me-2"},"E-ISSN:",-1)),v(" "+i(f(u)),1)])):g("",!0)],64))}}),he=["href"],pe={key:1,class:"h-8 max-h-8 text-xs text-gray-500 font-medium flex items-center"},me=h({__name:"JournalIndexItem",props:{url:String,name:String,id:String},setup(e){const c=G(!1);return(a,l)=>{const u=q;return t(),s("a",{href:e.url,class:"mx-auto",target:"_blank"},[f(c)?(t(),s("div",pe,i(e.name),1)):(t(),p(u,{key:0,src:`images/index-logos/${e.id}.png`,alt:e.name,class:"h-8",onError:l[0]||(l[0]=S=>c.value=!0)},null,8,["src","alt"]))],8,he)}}}),fe={key:0,class:"grid grid-cols-4 items-center gap-6"},xe={class:"border border-gray-200 rounded-md p-4 flex items-center"},$e=h({__name:"JournalIndexes",async setup(e){let c,a;const l=Q(),{indexes:u}=X(l);return u.value.length===0&&([c,a]=K(()=>l.fetchIndexes()),await c,a()),(S,x)=>{const M=me;return f(u).length>0?(t(),s("div",fe,[(t(!0),s(d,null,y(f(u),T=>(t(),s("div",xe,[N(M,{url:T.url,name:T.name,id:T.id,key:"index.id"},null,8,["url","name","id"])]))),256))])):g("",!0)}}}),ke={class:"flex-1 page-content static w-full"},be=["innerHTML"],ve=["id"],we={key:0,class:"font-semibold text-gray-700 mb-3 mt-10"},Le=h({__name:"[...slug]",async setup(e){var A,B,j,E,D,J,P;let c,a;const{title:l,journalId:u,keywords:S,description:x}=X(it()),M=ct(),T=G([]),Y=C=>{const H=document.createElement("div");H.innerHTML=C;const b=[];H.childNodes.forEach(L=>{if(L.nodeType===1){const m=L;m.tagName.toLowerCase()==="journal-indexes"?b.push({type:"component",component:O($e)}):m.tagName.toLowerCase()==="journal-info"?b.push({type:"component",component:O(ye)}):m.tagName==="IMG"?b.push({type:"html",tagName:m.tagName,src:m.getAttribute("src")||""}):b.push({type:"html",tagName:m.tagName,id:m.id,content:m.innerHTML})}else if(L.nodeType===3){const m=L;b.push({type:"content",content:m.textContent||""})}}),H.innerHTML="",T.value=b},U=M.params.slug.join("_"),{data:k}=([c,a]=K(()=>gt(U,()=>$fetch(`/api/${u.value}/${U}`),"$aROEKgqrzL")),c=await c,a(),c);return w().set({title:((A=k.value)==null?void 0:A.title)??((j=(B=k.value)==null?void 0:B.page)==null?void 0:j.title)??"",description:(E=k.value)==null?void 0:E.description,keywords:((D=k.value)==null?void 0:D.keywords)??[]}),ot(()=>{var C;Y(((C=k.value)==null?void 0:C.content)??"")}),ut({title:`${w().title} - ${l.value}`,meta:[{name:"description",content:w().description},{name:"keywords",content:`${S.value}, ${(P=(J=k.value)==null?void 0:J.keywords)==null?void 0:P.join(", ")}`}]}),dt({title:`${w().title} - ${l.value}`,ogTitle:`${w().title} - ${l.value}`,description:w().description??x.value,keywords:`${w().keywords}`}),(C,H)=>{var W,F;const b=yt,L=ft,m=Ct,Z=Et,tt=Wt,et=zt,st=Xt,nt=ee,lt=le,rt=ce,at=de;return t(),s("div",ke,[(t(!0),s(d,null,y(f(T),(_,I)=>(t(),s(d,{key:I},[_.type=="html"?(t(),p(z(_.tagName),{key:0,innerHTML:_.content,id:_.id,src:_.src,class:"break-words"},null,8,["innerHTML","id","src"])):_.type=="content"?(t(),s("div",{key:1,innerHTML:_.content},null,8,be)):g("",!0),_.type=="component"?(t(),p(z(_.component),{key:2})):g("",!0)],64))),128)),(W=f(k))!=null&&W.sections?(t(!0),s(d,{key:0},y((F=f(k))==null?void 0:F.sections.filter(_=>_.contents&&_.contents.length>0),(_,I)=>(t(),s("section",null,[_.title?(t(),s("h2",{key:0,class:$({"mt-16":I>0}),id:_.id},i(_.title),11,ve)):g("",!0),(t(!0),s(d,null,y(_.contents,n=>{var R,V;return t(),s(d,null,[n.type=="subtitle"?(t(),s("h3",we,i(n.content),1)):n.type=="inlinetitletext"?(t(),p(b,{key:1,title:n==null?void 0:n.title,content:n.content,"widget-class":n==null?void 0:n.class},null,8,["title","content","widget-class"])):n.type=="imagelist"?(t(),p(L,{key:2,items:n.imageList,"widget-class":n.class},null,8,["items","widget-class"])):n.type=="contactitem"?(t(!0),s(d,{key:3},y(n.contactItems,o=>(t(),p(m,{title:o==null?void 0:o.title,name:o==null?void 0:o.name,address:o==null?void 0:o.address,phone:o==null?void 0:o.phone,email:o==null?void 0:o.email},null,8,["title","name","address","phone","email"]))),256)):n.type=="boardmembers"?(t(!0),s(d,{key:4},y(n.boardMembers,o=>(t(),p(Z,{name:o==null?void 0:o.name,institution:o==null?void 0:o.institution,email:o==null?void 0:o.email,orcid:o==null?void 0:o.orcid},null,8,["name","institution","email","orcid"]))),256)):n.type=="list"&&n.list?(t(),p(tt,{key:5,data:n.list},null,8,["data"])):n.type=="blockItem"?(t(),p(et,{key:6,title:(n==null?void 0:n.title)??"",contents:(n==null?void 0:n.blockItemContents)??[]},null,8,["title","contents"])):n.type=="subsection"?(t(),p(st,{key:7,title:(n==null?void 0:n.title)??"",contents:(n==null?void 0:n.subSectionContents)??[]},null,8,["title","contents"])):n.type=="image"?(t(),s(d,{key:8},[n.image?(t(),p(nt,{key:0,src:n.image.src,alt:n.image.alt,url:n.image.url,target:(R=n.image)==null?void 0:R.target,"hover-text":(V=n.image)==null?void 0:V.hoverText,"image-class":n.class,"width-class":n.image.widthClass},null,8,["src","alt","url","target","hover-text","image-class","width-class"])):g("",!0)],64)):n.type=="linkList"?(t(),p(lt,{key:9,data:n.linkList},null,8,["data"])):n.type=="table"&&n.table?(t(),p(rt,{key:10,columns:n.table.headers,rows:n.table.rows},null,8,["columns","rows"])):(t(),p(at,{key:11,title:n.title,content:n.content,"widget-classs":n.class},null,8,["title","content","widget-classs"]))],64)}),256))]))),256)):g("",!0)])}}});export{Le as default};