1import{A as c,C,It as n,J as b,Z as p,_t as x,et as B,gt as f,p as T,pt as k,w as m,x as d}from"./D4iNppRB.js";import{M as F}from"./jouS0Q8B.js";import{f as M,u as O}from"./DVsfmBcZ.js";import{n as R}from"./DWCdiKJM.js";import{t as N}from"./q_CXofJD.js";import{k as I}from"#entry";import{t as K}from"./CC88x6Rt2.js";import{t as E}from"./C07YLgh12.js";import{t as G}from"./4tYtMS3X2.js";import{a as U,i as D,n as H,o as V,t as W}from"./D-Coii3B.js";import{t as Z}from"./CFK-trvD.js";import{t as $}from"./CyGVG0rU.js";var Q={class:"relative"},j={class:"grid grid-cols-1 md:grid-cols-2 2xl:grid-cols-4 gap-2"},q={key:0,class:"flex items-center justify-center p-8 w-full"},J={class:"flex flex-col items-center gap-2"},Y={class:"text-center font-medium duration-300"},pe={__name:"index",setup(z){const g=M(),e=U(),h=V();["/prebuilt-gaming-pc","/product-category/refurbished"].every(r=>r!==g.path)&&O("/prebuilt-gaming-pc"),R({title:"Prebuilt Gaming PCs",meta:[{name:"description",content:"Shop prebuilt gaming PCs from Skytech Gaming. From entry-level to high-end rigs, find the perfect setup for your gameplay."}]});const{keyword:S,performance:s}=g.query,{loading:y,displayList:P,hasProducts:v,setOriginList:A,loadPage:L}=W();return b(async()=>{let r=await e.getProducts(g.path,S,!1);typeof s=="string"&&(s.toLowerCase()==="good"||s.toLowerCase()==="best"||s.toLowerCase()==="ultra")&&(r=r.filter(o=>o.product_var.product_specs_performance.toLowerCase()===s.toLowerCase())),e.getProductsOK=!0,I.log("productsResult",r),e.products=$(r,["ST-O11V-2556-B-AL","ST-AQUA-2109-BL-AM","ST-CRYSTAL-2740-B-CO","ST-AZURE3-2226-W-AM","ST-KING95-1837-B-AM","ST-AZURE3-2804-W-AL","ST-RAMPAGE2-1847-B-AM","ST-AQUA-2130-BL-AM","ST-KING95-2796-B-AL","ST-ARCH4-1892-W-AL","ST-CHRONOSMINI2-2092-B-CO","ST-AZURE3-1758-W-AM"]),e.filterPriceSlider[1]=e.highestPrice,k([()=>e.filterCheckBoxComputed,()=>e.filterPriceSlider,()=>e.productsSortValue,()=>e.getProductsOK],async([o,a,l])=>{const _=E(e.products),u=e.applyFilters(_,{filterCheckBoxComputed:o,filterPriceSlider:a,productsSortValue:l});h.sidebar=K(h.originSidebar,u),e.productsFiltered=u;let i;o.length===0&&a[0]===0&&a[1]===e.highestPrice&&l===""?i=e.products:i=e.productsFiltered,A(i),L(1)},{immediate:!0})}),(r,o)=>{const a=Z,l=D,_=G,u=N,i=H;return p(),m("section",null,[c(i,null,{topBanner:f(()=>[c(a)]),productsFilter:f(()=>[c(l)]),productsCard:f(()=>[d("div",Q,[d("ul",j,[(p(!0),m(T,null,B(n(P),(t,w)=>(p(),m("li",{key:`list-${t.slug}-${w}`,class:"min-h-125 relative rounded-xl overflow-hidden"},[c(_,{sku:t.sku,label:t.product_var?.product_label,"img-url":t.image.imgurl,"img-alt":t.name,slug:t.slug,title:t.name,"icon-url":t.icon?.imgurl,specs:t.specs,performance:t.product_var?.product_specs_performance,price:t.price,"was-price":t.was_price,"ship-date":t?.product_var?.product_shipping_status,"category-group-name":t.category_group_name,"category-slug":t.category_slug},null,8,["sku","label","img-url","img-alt","slug","title","icon-url","specs","performance","price","was-price","ship-date","category-group-name","category-slug"])]))),128))]),n(y)||!n(e).getProductsOK?(p(),m("div",q,[d("div",J,[c(u,{name:"svg-spinners:90-ring-with-bg",class:"text-primary text-2xl"})])])):C("",!0),x(d("div",Y," No products found ",512),[[F,n(e).getProductsOK&&!n(v)]])])]),_:1})])}}};export{pe 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.