import{_ as d,a7 as h,u as _,R as m,o as S,c as v,d as f,aq as g,n as y,cm as $}from"./n9X0QzKa.js";const b={class:"simple-search"},x={__name:"SiteSearchBlock",props:{data:{type:Object,required:!0,validator(e){return["name"].every(t=>t in e)}},settings:{type:Object,required:!0,validator(e){return["restrictToSection"].every(t=>t in e)}}},setup(e){var o;const t=h("page"),{$ss:i}=_(),c=e,p=`Search ${(o=c.settings)!=null&&o.restrictToSection?c.data.name:i.general.siteName}...`,n=m(null);function l(a){n.value=a}function r(){var s;const a=(s=c.settings)!=null&&s.restrictToSection?`"${encodeURIComponent(t.pageData.fullName)}"`:"";y(`/search?filters={"text":"${encodeURIComponent(n.value)}","type":{"value":[]},"websiteSchedule":{"value":[${a}]},"page":1}`)}return(a,s)=>{const u=$;return S(),v("div",b,[f(u,{placeholder:p,onUpdate:l,onKeyup:g(r,["enter"]),onSearch:r})])}}},k=d(x,[["__scopeId","data-v-c62895d0"]]);export{k as default};