import{_ as w}from"./D778TWcu.js";import{d as b,o as c,c as u,a as p,v as y,V as k,X as x,e as v,w as S,a5 as B,f as m,ay as T,p as V,N as ,ドルb as f,$ as N,U as D,aV as E,a0 as I}from"./bdrFovXZ.js";import{u as L}from"./Cq0hbELG.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{};a.sentry_release={id:"dcd43fef1e4af7f7614a43abf36301348c5fce67"}}catch{}})();try{(function(){var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="4c5fa2a8-2021-4d41-99e1-fc0b35efa7dc",a._sentryDebugIdIdentifier="sentry-dbid-4c5fa2a8-2021-4d41-99e1-fc0b35efa7dc")})()}catch{}const C={class:"space-y-4"},M={class:"text-sm"},U={class:"flex flex-col items-start gap-4 md:flex-row md:flex-wrap"},H=b({__name:"PopularSearchLinks",props:{links:{}},setup(a){const n=L();return(s,l)=>{const d=T;return c(),u("div",C,[p("span",M,y(s.$t("mainNavigation.search.popularSearches")),1),p("div",U,[(c(!0),u(k,null,x(s.links,e=>{var t,o;return c(),v(d,{key:e._uid,to:((t=e.link)==null?void 0:t.href)||((o=e.link)==null?void 0:o.cached_url),class:"cursor-default rounded-full border border-border px-4 py-1.5 text-sm no-underline transition-colors hover:bg-bt-blue-ui hover:text-white",external:"",onClick:l[0]||(l[0]=r=>m(n).isDesktopSearchOpen=!1)},{default:S(()=>[B(y(e.title),1)]),_:2},1032,["to"])}),128))])])}}}),R={class:"w-full space-y-10 md:space-y-6"},F=b({__name:"SearchContainer",props:{item:{}},setup(a){const n=a,s=V(""),{isMobile:l}=$();async function d(){var o,r,i;const e=(r=(o=n.item)==null?void 0:o.link)==null?void 0:r.href,t=(i=s.value)==null?void 0:i.trim();!e||!t||await E({path:e,query:{search:t}},{external:!0})}return(e,t)=>{var h,_;const o=w,r=I,i=H;return c(),u("div",R,[p("form",{class:"flex flex-col items-stretch gap-x-4 gap-y-4 md:flex-row",role:"search",onSubmit:D(d,["prevent"])},[f(o,{modelValue:m(s),"onUpdate:modelValue":t[0]||(t[0]=g=>N(s)?s.value=g:null),class:"w-full",path:"search",name:"search","input-key":"form",placeholder:(h=e.item)==null?void 0:h.placeholder,"aria-label":(_=e.item)==null?void 0:_.placeholder,icon:m(l)?"common/search":null,autofocus:""},null,8,["modelValue","placeholder","aria-label","icon"]),f(r,{class:"h-auto px-6 py-3",title:e.$t("forms.search"),type:"submit",variant:"outlineSecondary"},null,8,["title"])],32),f(i,{links:e.item.popularSearchLinks??[]},null,8,["links"])])}}});export{F as _}; //# sourceMappingURL=y-mnP9AC.js.map