1import{_ as H}from"./Dr21TKXY.js";import{_ as K}from"./CuG8iBxP.js";import{_ as L}from"./B30ei5KZ.js";import{_ as M}from"./lNGns8s7.js";import{d as U,u as V,e as $,bF as _,W as E,ax as G,c as i,a as T,q as C,ab as z,E as D,I as P,f,h as d,v as W,g as o,w as S,t as g,i as h,o as l,F as J,r as O,j as Q,_ as X}from"./HXiruTOG.js";import{u as Y}from"./BGZ_HV7G.js";import{g as Z}from"./BcFGrFW-.js";import"./Ce8P7CRZ.js";import"./CF1f4C0x.js";import"./BKi96VAQ.js";import"./COllVYc8.js";import"./BsHh1Not.js";import"./CTWpMHDt.js";import"./C9uuV5W6.js";import"./-Wd8kcOy.js";import"./DRjTjRJ3.js";import"./B7gLpWnZ.js";import"./DuSNT9Ib.js";import"./Dh0ADnsC.js";import"./CELQ85NX.js";const ee={key:0,class:"s-t-b-bg"},te={class:"container flx j-ctr"},ae={class:"flx col a-ctr txt-ctr"},se={class:"txt-xl fw-700"},oe={class:"empty-srch-txt fw-500"},re={class:"container"},ne=U({__name:"filter",setup(ie){var y;const{t:u}=V(),t=T(),v=$(),w=_(),A=E().public,B=G(),b=i(()=>v.remoteConfiguration);Y(Z(t,b.value,{title:Array.isArray(t.params.slug)?t.params.slug.join("-"):t.params.slug},v.Tucano.Api.ApiKey,A.cdnBaseUrl,(y=B.ssrContext)==null?void 0:y.event));const a=C(!1),r=C(null),k=i(()=>{const e=t.params.slug;return Array.isArray(e)?e[0]:e}),x=i(()=>z(k.value)),c=i(()=>{var e;return(((e=w.getSearchByKey(p(t.params.slug)))==null?void 0:e.results)??[]).map(s=>s.content).filter(s=>s!==void 0)});function p(e){return"search-filter-"+e}function F({route:e,startPage:s=1}){const m=_(),n=typeof e.query.filter=="string"?decodeURI(e.query.filter):null;return n?m.searchFilter({key:p(e.params.slug),filter:n,startPage:s}):null}async function I(){!r.value||a.value||(a.value=!0,await r.value.next(),a.value=!1)}return D(async()=>{var e;r.value=F({route:t,startPage:1}),a.value=!0,await((e=r.value)==null?void 0:e.next()),a.value=!1}),P(()=>{_().clearSearch(p(t.params.slug))}),(e,s)=>{const m=H,n=K,N=L,R=M;return l(),f("main",null,[d(m,null,{default:S(()=>[o("h3",null,g(h(u)("search-page.title",{total:`${c.value.length} ${x.value?x.value:""}`})),1)]),_:1}),!a.value&&c.value.length===0?(l(),f("div",ee,[o("div",te,[o("div",ae,[o("span",se,g(h(u)("search-page.no-result-title")),1),o("p",oe,g(h(u)("search-page.no-result-description")),1)])])])):W("",!0),o("div",re,[d(N,{"items-per-row":4},{default:S(()=>[(l(!0),f(J,null,O(c.value,(j,q)=>(l(),Q(n,{key:q,item:j,"is-detail-page":!1,"is-filter-page":!0,"no-extend":""},null,8,["item"]))),128))]),_:1})]),d(R,{loading:a.value,onTrigger:I},null,8,["loading"])])}}}),Fe=X(ne,[["__scopeId","data-v-399b261f"]]);export{Fe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.