1import{_ as j}from"./item.vue.c87806aa.js";import{d as A,a as D,b as E,r as f,u as F,N as H,c as L,w as C,s as z,o as G,f as u,g as l,h as y,i as n,p as s,j as $,Q as M,q as b,k as w,E as g,F as Q,D as J,K as I,t as O}from"./entry.c7f7844b.js";import{u as T}from"./composables.bdf1547a.js";import"./nuxt-link.399fefb0.js";const W={class:"search-page"},ae=A({__name:"index",async setup(X){let t,c;const R=D(),{find:m}=E(),a=f([]),d=F(),U=H(),k=T(),{locale:o}=L(),e=f("");d.query.search&&(e.value=d.query.search);const V={locale:o.value=="en"?o.value:"vi-VN",filters:{$or:[{title:{$contains:encodeURIComponent(e.value)}},{sub_title:{$contains:encodeURIComponent(e.value)}},{top_content:{$contains:encodeURIComponent(e.value)}},{content:{$contains:encodeURIComponent(e.value)}}]},populate:{categories:{fields:["title","slug"]},feature_image:{fields:["name","formats","url"]}},pagination:{start:0,limit:100}},N=([t,c]=C(()=>m("case-studies",V)),t=await t,c(),t);a.value=a.value.concat(N.data);const x=f({locale:o.value=="en"?o.value:"vi-VN",filters:{$or:[{title:{$contains:encodeURIComponent(e.value)}},{excerpt:{$contains:encodeURIComponent(e.value)}},{content:{$contains:encodeURIComponent(e.value)}}]},populate:{categories:{fields:["title","slug"]},feature_image:{fields:["name","formats","url"]}},pagination:{start:0,limit:100}}),P=([t,c]=C(()=>m("articles",x.value)),t=await t,c(),t);a.value=a.value.concat(P.data),z({title:"Search | Phibious",description:"Search | Phibious",image:"~/assets/img/home-bg-2.jpg",keyword:""},"https://phibious.com"+d.href),G(()=>{R.setHeader(!1)});async function B(){U.push({path:k("/search"),query:{search:e.value}});const i={locale:o.value=="en"?o.value:"vi-VN",filters:{$or:[{title:{$contains:encodeURIComponent(e.value)}},{sub_title:{$contains:encodeURIComponent(e.value)}},{top_content:{$contains:encodeURIComponent(e.value)}},{content:{$contains:encodeURIComponent(e.value)}}]},populate:{categories:{fields:["title","slug"]},feature_image:{fields:["name","formats","url"]}},pagination:{start:0,limit:100}},r=await m("case-studies",i);a.value=r.data}return(i,r)=>{const K=u("v-text-field"),p=u("v-col"),v=u("v-row"),h=u("v-container"),S=j;return l(),y("div",W,[n(h,null,{default:s(()=>[n(v,{class:"blog"},{default:s(()=>[n(p,{cols:"12",class:"keywords"},{default:s(()=>[$("div",null,[n(K,{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=_=>e.value=_),variant:"underlined",label:i.$t("Keywords"),onKeyup:M(B,["enter"]),class:b(w(o)=="vi"?"roboto":"")},null,8,["modelValue","label","onKeyup","class"])])]),_:1})]),_:1})]),_:1}),n(h,{class:"blog pa-3"},{default:s(()=>[a.value.length>0?(l(),g(v,{key:0,justify:"start",align:"start",class:"pb-10"},{default:s(()=>[(l(!0),y(Q,null,J(a.value,(_,q)=>(l(),g(p,{cols:"12",md:"6",class:"mt-5",key:"article-"+q},{default:s(()=>[n(S,{article:_.attributes},null,8,["article"])]),_:2},1024))),128))]),_:1})):I("",!0),a.value.length==0?(l(),g(v,{key:1,class:"pb-10"},{default:s(()=>[n(p,{cols:"12"},{default:s(()=>[$("h2",{class:b(["text-center",w(o)=="vi"?"roboto":""])},O(i.$t("No result with this searching")),3)]),_:1})]),_:1})):I("",!0)]),_:1})])}}});export{ae 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.