1import{a0 as S,y as C,Z as L,R as P,p as R,_ as Q,q as g,H as q}from"./index.DWaaXrQu.js";import{Q as b}from"./QPage.ZCzNSOkp.js";import{S as w}from"./StoreServiceCards.Q9PV2NvS.js";import{P as z}from"./ProductListingComp.CjF8YQql.js";import{N}from"./NavBreadCrumbs.DOFYp7LK.js";import{j as k,w as B,l as E,k as $,W as I,d as _,f,I as T,V as H,H as p,p as h,E as t,s as c,q as v,z as y,R as m,A}from"./framework.DoT0Q_H5.js";import{u as V}from"./i18n.DXs_--yQ.js";import"./state.VUvqc9ZO.js";import"./date.B-YVwB4U.js";import"./sentry.hhiu05Mh.js";import"./extraFeatures.CTeKNlr9.js";import"./PaginationBar.CGO4Ks9d.js";import"./ProductCard.Dw9eKBwO.js";import"./reviews.CSTAjI35.js";const F=k({name:"searchPage",components:{StoreServiceCards:w,ProductListingComp:z,NavBreadCrumbs:N,LoadingComp:S},props:{size:{type:String,required:!0},isLtr:{type:Boolean,required:!0}},setup(){const{t:e}=V(),a=I(),r=C(),s=_(()=>a.currentRoute.value.query.query),o=f(null),u=f(!1);L(()=>({title:e("seo.searchTitle"),meta:{description:{name:"description",content:e("seo.searchDescription")}}}));async function n(i){u.value=!0,o.value=null,o.value=await r.searchProductsPaginated(s.value,i),u.value=!1}function l(){o.value=null,r.setSearchQuery("")}B(s,()=>{r.setSearchQuery(s.value),s.value?n():l()}),E(()=>{l()}),$(()=>{s.value&&(r.setSearchQuery(s.value),n())});function d(i){n(i)}return{router:a,searchResults:o,searchQuery:s,isLoading:u,SCREEN_SIZES:R,ROUTER_PATHS:P,pageChange:d,t:e}}}),O="/assets/search.Cb4bX8ER.svg",U="/assets/no-search-results.WGk6FLcQ.svg",D={class:"full-width"},M={class:"w-600 text-h5 empty-search-title"},W={class:"w-300 empty-search-subtitle q-mt-sm"},Z={class:"w-600 text-h5 empty-search-title"},j={class:"w-300 q-mt-sm empty-search-subtitle"};function G(e,a,r,s,o,u){const n=p("LoadingComp"),l=p("NavBreadCrumbs"),d=p("ProductListingComp"),i=p("StoreServiceCards");return h(),T(b,{class:"search-container column items-center q-mt-lg"},{default:H(()=>[t(n,{isLoading:e.isLoading},null,8,["isLoading"]),c("div",D,[t(l,{isLtr:e.isLtr,location:e.searchQuery?`${e.t("searchResultsFor")} "${e.searchQuery}"`:e.t("searchLabel")},null,8,["isLtr","location"]),t(d,{productListingProps:{products:e.searchResults?.products??[],size:e.size,isLtr:e.isLtr,title:e.searchQuery?e.searchQuery:e.t("searchLabel"),pageInfo:e.searchResults?.pageInfo},isSearchPage:!!e.searchQuery,onPageChange:e.pageChange},null,8,["productListingProps","isSearchPage","onPageChange"])]),e.searchQuery?!e.searchResults?.products.length&&!e.isLoading?(h(),v("div",{key:1,class:y(`column items-center empty-search-container-${e.size} q-my-xl`)},[t(g,{src:U,alt:"no-results-image",height:"200px",width:"200px"}),c("span",Z,m(e.t("searchNoResults")),1),c("span",j,m(e.t("searchNoResultsSubtitle")),1),t(q,{class:"clear-search-btn q-mt-md q-mx-md r-12 q-py-sm font-16 w-500",flat:"","no-caps":"",label:e.t("clearSearch"),onClick:a[0]||(a[0]=X=>e.router.push(e.ROUTER_PATHS.SEARCH))},null,8,["label"])],2)):A("",!0):(h(),v("div",{key:0,class:y(`column items-center empty-search-container-${e.size} q-my-xl`)},[t(g,{src:O,alt:"search-image",height:"200px",width:"200px"}),c("span",M,m(e.t("searchOnStarlink")),1),c("span",W,m(e.t("findFavTech")),1)],2)),t(i,{size:e.size},null,8,["size"])]),_:1})}const le=Q(F,[["render",G],["__scopeId","data-v-84153606"]]);export{le 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.