import _ from"./Bw45-lTB.js";import{_ as f}from"./CglRsQQc.js";import{u as d}from"./DRQhQ4ga.js";import{H as h,b as y,s as r,e as g,r as w,I as S,f as x,h as R,i as k,w as v,j as L,l as M,p as q}from"./BCLrUOBx.js";import{u as B}from"./CCot8u0_.js";import"./Dzn_TAHJ.js";import"./CE6lP_wf.js";import"./BhmSsx3W.js";import"./DNLyc9CF.js";import"./Bxmfm8sn.js";import"./CLdHT7wQ.js";import"./D6RK4iz0.js";import"./B2sEaWda.js";import"./CqOZUTmN.js";import"./az_OgR72.js";import"./DpRwRHtQ.js";import"./C-Tw4iS-.js";import"./CE4It_C4.js";import"./Dyp1qGEf.js";import"./CTAcmMAz.js";import"./a5umXhxZ.js";import"./BnLnKt_p.js";import"./Di7fl9dA.js";import"./Ce8lFovl.js";import"./GQCWnG0A.js";const rt={__name:"search",setup(C){const s=h(),a=y(),{customScripts:D,site_setting:i}=r(a),{pageMeta:m}=B();g(m(i.value));const e=d(),{searched:n}=r(e),{emptyProducts:c}=e,o=w(null);S(n,async()=>{try{o.value.clearQuery(),await o.value.fetchingData()}catch(t){console.log(t)}});const p=x(()=>{var t;return((t=s.query)==null?void 0:t.q)||""});return R(()=>{c()}),(t,E)=>{const u=_,l=f;return L(),k(l,null,{default:v(()=>[M(u,{"result-title":q(p),ref_key:"productListElemRef",ref:o},null,8,["result-title"])]),_:1})}}};export{rt as default};
