import{_ as f}from"./WebSearchField-BRa-jdLh.mjs";import{_ as b,aL as g,o as a,c as t,a as s,n as i,F as d,r as u,t as c,i as l,d as h,ay as k,w as p,k as v,v as S,aZ as C}from"./entry.DPwc-EV0.js";const L={props:{name:{type:String,required:!0},description:{type:String},fontStyle:{type:String,default:"standard"},alignment:{type:String,default:"left"},breadcrumb:{type:Array,defaultValue:()=>[]},childLinks:{type:Array,defaultValue:()=>[]},childLinksBackgroundColor:{type:String},childLinksColor:{type:String},enableSearch:{type:Boolean,default:!1}},setup(){return{page:g("page")}},data(){return{searchPhrase:""}},computed:{},methods:{updateSearchPhrase(r){this.searchPhrase=r},search(){window.location=`/search?filters={"text":"${encodeURIComponent(this.searchPhrase)}","type":{"value":[]},"websiteSchedule":{"value":["${encodeURIComponent(this.page.pageData.fullName)}"]},"page":1}`}}},w={class:"content"},F=["href"],B={key:1},P={key:2,class:"spacer"},V=["innerHTML"],x=["href"],N={key:1,class:"search"};function U(r,I,e,K,O,o){const y=f,_=C;return a(),t("div",{class:S(["ebm-page-overview",e.fontStyle,e.alignment])},[s("div",w,[e.breadcrumb.length?(a(),t("div",{key:0,class:"ebm-page-overview__breadcrumb",style:i({fontFamily:r.$ss.primaryFontFamily})},[(a(!0),t(d,null,u(e.breadcrumb,(n,m)=>(a(),t("li",{key:n.label},[n.url?(a(),t("a",{key:0,href:n.url},c(n.label),9,F)):(a(),t("div",B,c(n.label),1)),m+1 ")):l("",!0)]))),128))],4)):l("",!0),s("h1",null,c(e.name),1),e.description?(a(),t("div",{key:1,class:"ebm-page-overview__description",innerHTML:e.description},null,8,V)):l("",!0)]),e.childLinks&&e.childLinks.length?(a(),t("div",{key:0,class:"child-links",style:i({fontFamily:r.$ss.primaryFontFamily,backgroundColor:e.childLinksBackgroundColor})},[s("ul",null,[(a(!0),t(d,null,u(e.childLinks,n=>(a(),t("li",{key:n.url},[s("a",{href:n.url,style:i({color:e.childLinksColor})},c(n.label),13,x)]))),128))])],4)):l("",!0),e.enableSearch?(a(),t("div",N,[h(y,{placeholder:`Search ${e.name}...`,class:"search-input",onUpdate:o.updateSearchPhrase,onKeyup:k(o.search,["enter"])},null,8,["placeholder","onUpdate","onKeyup"]),h(_,{color:r.$ss.baseStyles.primaryColor,onOnClick:o.search},{default:p(()=>[v("Search")]),_:1},8,["color","onOnClick"])])):l("",!0)],2)}const z=b(L,[["render",U],["__scopeId","data-v-fe4500f1"]]);export{z as default};