import{_ as p}from"./WebSearchField-C1dgJ8ip.mjs";import{_ as f,a7 as g,o as a,c as t,a as s,p as i,F as u,x as h,t as c,l as r,d as _,aq as k,s as S,q as v,y as C,b8 as L}from"./D-M-66OV.js";const F={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(l){this.searchPhrase=l},search(){window.location=`/search?filters={"text":"${encodeURIComponent(this.searchPhrase)}","type":{"value":[]},"websiteSchedule":{"value":["${encodeURIComponent(this.page.pageData.fullName)}"]},"page":1}`}}},w={class:"content"},x=["href"],B={key:1},V={key:2,class:"spacer"},N=["innerHTML"],P=["href"],U={key:1,class:"search"};function q(l,d,e,I,K,o){const y=p,m=L;return a(),t("div",{class:C(["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:l.$ss.primaryFontFamily})},[(a(!0),t(u,null,h(e.breadcrumb,(n,b)=>(a(),t("li",{key:n.label},[n.url?(a(),t("a",{key:0,href:n.url},c(n.label),9,x)):(a(),t("div",B,c(n.label),1)),b+1<e.breadcrumb.length?(a(),t("span",V," > ")):r("",!0)]))),128))],4)):r("",!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,N)):r("",!0)]),e.childLinks&&e.childLinks.length?(a(),t("div",{key:0,class:"child-links",style:i({fontFamily:l.$ss.primaryFontFamily,backgroundColor:e.childLinksBackgroundColor})},[s("ul",null,[(a(!0),t(u,null,h(e.childLinks,n=>(a(),t("li",{key:n.url},[s("a",{href:n.url,style:i({color:e.childLinksColor})},c(n.label),13,P)]))),128))])],4)):r("",!0),e.enableSearch?(a(),t("div",U,[_(y,{placeholder:`Search ${e.name}...`,class:"search-input",onUpdate:o.updateSearchPhrase,onKeyup:k(o.search,["enter"])},null,8,["placeholder","onUpdate","onKeyup"]),_(m,{onOnClick:o.search},{default:S(()=>d[0]||(d[0]=[v(" Search ")])),_:1},8,["onOnClick"])])):r("",!0)],2)}const A=f(F,[["render",q],["__scopeId","data-v-bc8b5ced"]]);export{A as _};