PageSourceSearch

https://skytechgaming.com/_nuxt/CrV-wBjF2.js

js skytechgaming.com collected 2026-09-25 18:19:36 UTC 51,065 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DPdoaTac2.js","./Gh7gd8gz.js","./D4iNppRB.js","./rcTglCJe.js","./C6soFQFd.js","./jouS0Q8B.js","./Da3AdDL-.js","./CEyLSJb5.js","./NJ1uXzTP.js","./CXHxssQy.js","./DWVhVzpR.js","./DVsfmBcZ.js","./CwDQECmo.js","./DWCdiKJM.js","./vkc6xPmw.js","./Dsf-kZXf.js","./Ct5DT4Us.js","./BUDLPX_m.js","./B-nR8AQQ.js","./CuSubdop.js","./DoLq-6aO.js","./q_CXofJD.js","./Dr0zOY8Y.js","./C-2o71f7.js","./CIyQ3a4C.js","./CcOgEIN0.js","./DoOAC5Mf.js","./DFXliopK.js","./entry.C0RN49vn.css","./B5fAIHaJ2.js","./FlashSaleBanner.C_OrjK5i.css"])))=>i.map(i=>d[i]);
2import{a as He}from"./Gh7gd8gz.js";import{A as s,C as _,Ct as ue,It as t,J as he,Ot as $,S as T,V as Be,Z as a,_t as me,an as M,b as X,cn as n,ct as _e,et as z,g as ce,gt as y,ht as ve,j as Ue,k as R,p as g,pt as ee,sn as de,tt as De,w as o,x as e,z as xe}from"./D4iNppRB.js";import{C as J,N as Ve,P as ie,d as Ie,f as We,j as ye}from"./jouS0Q8B.js";import{f as we,u as ke}from"./DVsfmBcZ.js";import{t as Ke}from"./BUDLPX_m.js";import{t as te}from"./q_CXofJD.js";import{t as Qe}from"./Dr0zOY8Y.js";import{t as ae}from"./rcTglCJe.js";import{y as Ye}from"./CEyLSJb5.js";import{E as Ce,F as pe,f as Ze,h as Je,i as fe,k as Xe,w as et}from"#entry";import{t as tt}from"./D0cpg3-V.js";import{t as $e}from"./B7yXvd0B.js";import{t as Ne}from"./DMVtF8oE.js";import{t as Ae}from"./CY5gFqcf.js";import{n as Pe,r as at,t as Se}from"./UxZfQB0l2.js";import{t as H}from"./DTSTXpRn2.js";import{t as je}from"./UiA3TTdR.js";import{t as B}from"./CN2h80lf.js";import{n as rt}from"./Ct-rOgAa.js";import{t as Ee}from"./BRX9sQe1.js";import{t as ot}from"./D6lltKHS2.js";import{t as lt}from"./CdaiAp8i2.js";import{t as st}from"./DPiF7Yso2.js";import{t as nt}from"./DvfhE_wo2.js";import{t as it}from"./Co4XqzFQ2.js";import{t as dt}from"./BYUCEOm92.js";var ut={key:0,class:"search-panel fixed top-25 left-4 right-4 max-h-120 bg-[#1a1a1a] border border-white/10 rounded-xl shadow-[0_12px_40px_rgba(0,0,0,0.6)] z-3000 overflow-hidden flex flex-col lg:left-auto lg:right-20 lg:w-125 lg:max-h-[70vh] max-lg:left-0 max-lg:right-0 max-lg:top-(--total-header-height,100px) max-lg:rounded-none max-lg:border-t max-lg:border-x-0 max-lg:max-h-[calc(100vh-var(--total-header-height,100px))]"},ct={class:"search-panel__input-wrap flex items-center gap-2.5 p-3.5 px-4 border-b border-white/10 sticky top-0 bg-[#1a1a1a] z-10"},pt={class:"overflow-y-auto flex-1"},ft={key:0,class:"search-panel__popular p-4"},mt={class:"flex flex-wrap gap-2"},yt={key:1,class:"search-panel__results"},ht={key:0,class:"flex justify-center py-8"},vt={key:1,class:"search-panel__no-results py-8 px-4 text-center"},bt={class:"font-secondary text-sm text-white m-0 mb-1.5"},gt={class:"font-bold"},_t={class:"font-primary font-bold text-xs text-gray-300 uppercase tracking-[0.01em] py-3 px-4 m-0"},xt={class:"w-20 h-20 shrink-0 rounded-lg overflow-hidden bg-white/5 flex items-center justify-center"},wt=["src","alt"],kt={class:"flex flex-col min-w-0 flex-1"},Ct=["innerHTML"],$t={key:0,class:"font-secondary text-xs text-gray-300 mb-1"},Nt={key:1,class:"text-[11px] text-gray-300 m-0 mb-1 leading-snug"},At={key:0},Pt={class:"m-0"},St={key:1},jt={class:"m-0"},Et={key:2},Lt={class:"m-0"},Mt={class:"flex flex-wrap items-center gap-2"},Rt={key:0,class:"font-secondary text-xs text-gray-300 line-through"},Gt={class:"search-panel__result-price font-primary text-xs font-bold text-white tracking-[0.01em]"},Tt={class:"p-4"},qt={__name:"NwcSearchPanel",props:{open:{type:Boolean,default:!1}},emits:["close"],setup(G,{emit:N}){const L=G,q=N,{getProductUrl:A}=je(),{getSearchProductsApi:c}=Ae(),b=$(""),h=$([]),p=$(null),d=$(!1),C=[{label:"Prebuilt Gaming PCs",href:"/prebuilt-gaming-pc"},{label:"Custom PC Builder",href:"/custom-pc-builder"},{label:"Ship Ready Deals",href:"/ship-ready-deals"}];async function O(){const w=b.value.trim();if(!(w.length<2)){d.value=!0;try{const l=(await c(w))?.data??[],i=w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),P=new RegExp(`(${i})`,"gi");h.value=l.map(S=>({url:A(S),name:S.name??"",nameHighlight:(S.name??"").replace(P,'<mark class="bg-transparent text-primary font-bold">$1</mark>'),sku:S.sku??"",image:S.image?.imgurl??"",specs:S.specs??null,price:H(S.price),wasPrice:S.was_price?H(S.was_price):""}))}catch(l){console.error("Get search product failed.",l),h.value=[]}finally{d.value=!1}}}const F=at(O,1e3);ee(b,w=>{if(w.trim().length<2){h.value=[],d.value=!1,F.cancel();return}d.value=!0,F()});function u(){F.cancel(),b.value="",h.value=[],d.value=!1,q("close")}function j(){const w=b.value.trim();w&&(u(),ke(`/prebuilt-gaming-pc?keyword=${encodeURIComponent(w)}`))}return ee(()=>L.open,w=>{w?Be(()=>{p.value?.focus()}):(b.value="",h.value=[],d.value=!1,F.cancel())}),(w,l)=>{const i=te,P=pe,S=$e,U=ae;return a(),T(U,null,{default:y(()=>[(a(),T(ce,{to:"body"},[s(J,{name:"modal-overlay"},{default:y(()=>[G.open?(a(),o("div",{key:0,class:"search-panel-overlay fixed inset-0 z-999 bg-black/50 transition-[background] duration-300","aria-hidden":"true",onClick:u})):_("",!0)]),_:1}),s(J,{name:"modal-panel-dropdown"},{default:y(()=>[G.open?(a(),o("div",ut,[e("div",ct,[s(i,{name:"mdi:magnify",class:"search-panel__icon w-5 h-5 shrink-0 text-gray-300","aria-hidden":"true"}),me(e("input",{ref_key:"searchInputRef",ref:p,"onUpdate:modelValue":l[0]||(l[0]=k=>ue(b)?b.value=k:null),type:"text",class:"search-panel__input flex-1 min-w-0 bg-transparent border-none outline-hidden font-secondary text-sm text-white placeholder:text-gray-300 tracking-normal w-full focus:ring-0",placeholder:"Search gaming PCs, laptops, accessories...",autocomplete:"off",onKeyup:Ve(j,["enter"])},null,544),[[ye,t(b)]]),e("button",{type:"button",class:"search-panel__close flex items-center justify-center w-7 h-7 rounded-md bg-white/8 text-gray-300 hover:bg-white/15 hover:text-white transition-[background,color] duration-150 shrink-0","aria-label":"Close search",onClick:u},[s(i,{name:"mdi:close",class:"w-4.5 h-4.5","aria-hidden":"true"})])]),e("div",pt,[t(b).trim()?(a(),o("div",yt,[t(d)?(a(),o("div",ht,[s(i,{name:"svg-spinners:bars-scale",class:"text-primary text-3xl","aria-hidden":"true"})])):t(h).length===0?(a(),o("div",vt,[e("p",bt,[l[2]||(l[2]=R(' No results for "',-1)),e("strong",gt,n(t(b)),1),l[3]||(l[3]=R('" ',-1))]),l[4]||(l[4]=e("span",{class:"font-secondary text-xs text-gray-300"},"Try searching for gaming PCs, laptops, or accessories",-1))])):(a(),o(g,{key:2},[e("p",_t,n(t(h).length)+" Results ",1),(a(!0),o(g,null,z(t(h),k=>(a(),T(P,{key:k.url,to:k.url,class:"search-panel__result group flex gap-3 py-3 px-4 no-underline text-white hover:bg-white/6 transition-colors duration-150 border-b border-white/8 last:border-b-0",onClick:u},{default:y(()=>[e("div",xt,[k.image?(a(),o("img",{key:0,src:k.image,alt:k.name,width:"80",height:"80",class:"w-full h-full object-cover"},null,8,wt)):(a(),T(S,{key:1}))]),e("div",kt,[e("span",{class:"search-panel__result-name font-secondary text-sm text-white",innerHTML:k.nameHighlight},null,8,Ct),k.sku?(a(),o("span",$t,n(k.sku),1)):_("",!0),k.specs?(a(),o("dl",Nt,[k.specs["CPU (Model)"]?(a(),o("div",At,[l[5]||
2(l[5]=e("dt",{class:"sr-only"},"Processor",-1)),e("dd",Pt,"PROCESSOR: "+n(k.specs["CPU (Model)"]),1)])):_("",!0),k.specs["Graphics (Model)"]?(a(),o("div",St,[l[6]||(l[6]=e("dt",{class:"sr-only"},"Graphics",-1)),e("dd",jt,"GRAPHICS: "+n(k.specs["Graphics (Model)"]),1)])):_("",!0),k.specs["Operating System"]?(a(),o("div",Et,[l[7]||(l[7]=e("dt",{class:"sr-only"},"Operating System",-1)),e("dd",Lt,"OPERATING SYSTEM: "+n(k.specs["Operating System"]),1)])):_("",!0)])):_("",!0),e("div",Mt,[k.wasPrice?(a(),o("span",Rt,n(k.wasPrice),1)):_("",!0),e("span",Gt,n(k.price),1)])])]),_:2},1032,["to"]))),128)),e("div",Tt,[s(P,{to:"/prebuilt-gaming-pc",class:"text-primary font-semibold text-sm",onClick:u},{default:y(()=>[...l[8]||(l[8]=[R(" SEE ALL RESULTS ",-1)])]),_:1})])],64))])):(a(),o("div",ft,[l[1]||(l[1]=e("p",{class:"search-panel__label font-primary font-bold text-xs text-gray-300 uppercase tracking-[0.01em] m-0 mb-3"}," Popular Searches ",-1)),e("div",mt,[(a(),o(g,null,z(C,k=>s(P,{key:k.label,to:k.href,class:"search-panel__tag font-secondary text-[13px] text-white bg-white/8 px-3.5 py-2 rounded-button no-underline hover:bg-primary hover:text-white transition-[background,color] duration-150 whitespace-nowrap",onClick:u},{default:y(()=>[R(n(k.label),1)]),_:2},1032,["to"])),64))])]))])])):_("",!0)]),_:1})]))]),_:1})}}},zt=fe(qt,[["__scopeId","data-v-738a7848"]]),Ot=["aria-hidden"],Ft={class:"p-5"},Ht={key:0,class:"flex flex-col"},Bt={key:0,class:"border-b border-[#333]"},Ut=["onClick"],Dt={key:0,class:"grid grid-cols-3 gap-3 py-3 items-center justify-items-center"},Vt={key:1,class:"grid grid-cols-3 gap-3 py-3"},It={class:"w-full aspect-square bg-white/5 rounded-md flex items-center justify-center"},Wt=["src"],Kt={class:"font-primary font-bold text-[11px] uppercase text-center"},Qt={key:1,class:"border-b border-[#333]"},Yt=["onClick"],Zt={class:"flex gap-2.5 flex-wrap pt-5 mt-5 border-t border-[#333]"},Jt=["href","aria-label"],Xt={__name:"NwcMobileMenu",props:xe({headerResult:{type:Array,default:()=>[]},prebuiltCards:{type:Array,default:()=>[]},prebuiltCardsLoading:{type:Boolean,default:!1},loadPrebuiltIfNeeded:{type:Function,default:null},socialIconsName:{type:Array,default:()=>[]}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(G){const N=_e(G,"open"),L=$(!1),q=X(()=>L.value&&N.value);he(()=>{L.value=!0});const A=$(null),c=G,b=p=>{const d=A.value!==p;A.value=A.value===p?null:p,d&&p==="PREBUILT GAMING PCS"&&c.loadPrebuiltIfNeeded&&c.loadPrebuiltIfNeeded()},h=p=>Array.isArray(p?.data)&&p.data.length>0;return(p,d)=>{const C=te,O=pe,F=ae;return a(),T(F,null,{default:y(()=>[(a(),T(ce,{to:"body"},[t(q)?(a(),o("div",{key:0,class:"mobile-menu-overlay fixed inset-0 z-1999 lg:hidden","aria-hidden":"true",onClick:d[0]||(d[0]=u=>N.value=!1)})):_("",!0),e("div",{class:M(["mobile-menu-panel fixed top-0 left-0 w-87.5 max-w-[85vw] h-full bg-[#1a1a1a] transition-[left] duration-300 ease-out z-2000 overflow-y-auto lg:-left-full!",t(q)?"left-0":"-left-full"]),style:de(t(q)?void 0:{left:"-100%"}),"aria-hidden":!t(q)}
2,[e("div",Ft,[d[9]||(d[9]=e("div",{class:"bg-primary -mx-5 -mt-5 mb-5 py-4 px-5 text-center"},[e("p",{class:"font-primary font-black text-xs text-white uppercase m-0"},"Need Help? (888) 370-8882")],-1)),s(O,{to:"/my-account",class:"flex items-center gap-2.5 py-4 font-primary font-bold text-base text-white uppercase no-underline border-b border-[#333] mb-2.5",onClick:d[1]||(d[1]=u=>N.value=!1)},{default:y(()=>[s(C,{name:"mdi:account-circle",class:"w-6 h-6"}),d[6]||(d[6]=R(" My Account ",-1))]),_:1}),("isNonEmptyArray"in p?p.isNonEmptyArray:t(B))(G.headerResult)?(a(),o("nav",Ht,[(a(!0),o(g,null,z(G.headerResult,u=>(a(),o(g,{key:u.label},[u.label==="PREBUILT GAMING PCS"?(a(),o("div",Bt,[e("button",{type:"button",class:"w-full flex items-center justify-between font-primary font-bold text-base text-white uppercase bg-transparent border-none py-4 cursor-pointer text-left",onClick:j=>b(u.label)},[e("span",null,n(u.label),1),s(C,{name:"mdi:chevron-down",class:M(["w-5 h-5 transition-transform duration-300",{"rotate-180":t(A)===u.label}])},null,8,["class"])],8,Ut),e("div",{class:M(["overflow-hidden transition-all duration-300",t(A)===u.label?"max-h-200":"max-h-0"])},[G.prebuiltCardsLoading?(a(),o("div",Dt,[...d[7]||(d[7]=[e("span",{class:"col-span-3 text-white/60 text-sm"},"Loading...",-1)])])):("isNonEmptyArray"in p?p.isNonEmptyArray:t(B))(G.prebuiltCards)?(a(),o("div",Vt,[(a(!0),o(g,null,z(G.prebuiltCards,(j,w)=>(a(),T(O,{key:j.url||w,to:j.url||"#",class:"flex flex-col items-center gap-2 p-3.5 rounded-lg bg-white/5 border border-white/10 no-underline text-white hover:border-primary hover:bg-primary/10 transition-colors",onClick:d[2]||(d[2]=l=>N.value=!1)},{default:y(()=>[e("div",It,[j.image?(a(),o("img",{key:0,src:j.image,alt:"Prebuilt Gaming PC",class:"w-full h-full object-cover"},null,8,Wt)):_("",!0),s(C,{name:"mdi:monitor",class:"w-7 h-7 text-white opacity-25"})]),e("span",Kt,n(j.name),1)]),_:2},1032,["to"]))),128))])):_("",!0),s(O,{to:u.url||"/prebuilt-gaming-pcs",class:"block text-center py-3 font-primary font-bold text-xs uppercase text-primary no-underline",onClick:d[3]||(d[3]=j=>N.value=!1)},{default:y(()=>[...d[8]||(d[8]=[R(" View All Prebuilts ",-1)])]),_:1},8,["to"])],2)])):h(u)?(a(),o("div",Qt,[e("button",{type:"button",class:"w-full flex items-center justify-between font-primary font-bold text-base text-white uppercase bg-transparent border-none py-4 cursor-pointer text-left",onClick:j=>b(u.label)},[e("span",null,n(u.label),1),s(C,{name:"mdi:chevron-down",class:M(["w-5 h-5 transition-transform duration-300",{"rotate-180":t(A)===u.label}])},null,8,["class"])],8,Yt),("isNonEmptyArray"in p?p.isNonEmptyArray:t(B))(u.data)?(a(),o("div",{key:0,class:M(["overflow-hidden transition-all duration-300",t(A)===u.label?"max-h-125":"max-h-0"])},[(a(!0),o(g,null,z(u.data,j=>(a(),T(O,{key:j.url,to:j.url,class:"block py-3 pl-5 text-sm text-gray-300 no-underline hover:text-white transition-colors",onClick:d[4]||(d[4]=w=>N.value=!1)},{default:y(()=>[R(n(j.label),1)]),_:2},1032,["to"]))),128))],2)):_("",!0)])):(a(),T(O,{key:2,to:u.url,class:"font-primary font-bold text-base text-white uppercase no-underline py-4 border-b border-[#333] block hover:text-primary transition-colors",onClick:d[5]||(d[5]=j=>N.value=!1)},{default:y(()=>[R(n(u.label),1)]),_:2},1032,["to"]))],64))),128))])):_("",!0),e("div",Zt,[(a(!0),o(g,null,z(G.socialIconsName,u=>(a(),o("a",{key:u.iconName,href:u.url,target:"_blank",rel:"noopener",class:"flex items-center justify-center w-8 h-8 text-primary hover:text-white transition-colors","aria-label":u.socialName},[s(C,{name:u.iconName,class:"w-5 h-5"},null,8,["name"])],8,Jt))),128))])])],14,Ot)]))]),_:1})}}},ea=fe(Xt,[["__scopeId","data-v-23177dd1"]]),ta={class:"flex flex-col min-h-full"},aa={class:"flex items-center justify-between py-5 px-5 border-b border-white/10 sticky top-0 bg-[#1a1a1a] z-10"},ra={class:"font-primary font-black text-lg text-white uppercase m-0 leading-none"},oa={class:"font-normal text-sm text-gray-400 normal-case"},la={class:"flex-1 overflow-y-auto"},sa={key:0,class:"py-8 px-5"},na={class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},ia={class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5"},da=["src","alt"],ua=["src","alt"],ca={key:2,class:"w-full h-full flex items-center justify-center"},pa={class:"flex-1 min-w-0 flex flex-col gap-1"},fa={class:"font-secondary text-xs text-gray-400 m-0 flex items-center gap-1.5 flex-wrap"},ma={key:0},ya={key:1},ha={class:"inline-flex items-center border border-white/15 rounded-md overflow-hidden shrink-0"},va=["disabled","onClick"],ba=["onUpdate:modelValue","disabled"],ga=["disabled","onClick"],_a={key:0},xa={key:1},wa=["onClick"],ka={class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5"},Ca=["src","alt"],$a=["src","alt"],Na={key:2,class:"w-full h-full flex items-center justify-center"},Aa={class:"flex-1 min-w-0 flex flex-col gap-1"},Pa={class:"font-primary font-bold text-sm text-white m-0"},Sa={class:"font-secondary text-xs text-gray-400 m-0"},ja={class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},Ea={class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5 flex items-center justify-center"},La=["src","alt"],Ma=["src","alt"],Ra={class:"flex-1 min-w-0 flex flex-col gap-1"},Ga={class:"font-primary font-bold text-sm text-white m-0"},Ta={class:"uppercase"},qa={class:"font-secondary text-xs text-gray-400 m-0"},za=["onClick"],Oa={class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},Fa={class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5 flex items-center justify-center"},Ha=["src","alt"],Ba={class:"flex-1 min-w-0 flex flex-col gap-1"},Ua={class:"font-primary font-bold text-sm text-white m-0"},Da={key:2,class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},Va={class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5"},Ia=["src","alt"],Wa=["src","alt"],Ka={key:2,class:"w-full h-full flex items-center justify-center"},Qa={class:"flex-1 min-w-0 flex flex-col gap-1"},Ya={class:"font-primary font-bold text-sm text-white m-0"},Za={key:0,class:"font-secondary text-xs text-gray-400 m-0"},Ja={class:"bg-white/20 px-1 rounded-sm text-xs uppercase"},Xa={class:"font-secondary text-xs text-gray-400 m-0 flex items-center gap-1.5 flex-wrap"},er={key:0},tr={key:1},ar={class:"inline-flex items-center border border-white/15 rounded-md overflow-hidden shrink-0"},rr=["disabled","onClick"],or=["onUpdate:modelValue","disabled"],lr=["disabled","onClick"],sr={key:0},nr={key:1},ir=["onClick"],dr={class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},ur={class:"flex-1 min-w-0 flex flex-col gap-1"},cr={class:"font-secondary text-xs text-gray-400 m-0"},pr={class:"font-secondary text-xs text-gray-400 m-0"},fr={class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5"},mr=["src","alt"],yr={key:1,class:"w-full h-full flex items-center justify-center text-white/50"},hr={key:2,class:"w-full h-full flex items-center justify-center"},vr={class:"flex-1 min-w-0 flex flex-col gap-1"},br={class:"font-secondary font-bold text-sm m-0"},gr={class:"font-primary font-bold text-sm text-white m-0"},_r={class:"font-secondary text-xs text-gray-400 m-0"},xr={class:"py-4 px-5 border-b border-white/10"},wr={class:"flex justify-between items-center py-1.5 text-[13px] text-gray-400"},kr={class:"flex justify-between items-center pt-3 mt-2 border-t border-white/10 font-primary font-black text-lg text-white"},Cr={class:"p-5 flex flex-col gap-2.5 mt-auto pb-16"},$r={key:0,role:"dialog","aria-modal":"true","aria-labelledby":"product-popup-name",class:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-95 max-w-[calc(100vw-40px)] max-h-[calc(100vh-80px)] bg-[#1a1a1a] border border-white/10 rounded-2xl z-10001 flex flex-col overflow-hidden shadow-2xl"},Nr={class:"flex items-center justify-between py-4 px-5 border-b border-white/10"},Ar={id:"product-popup-name",class:"font-primary font-black text-lg text-white uppercase m-0"},Pr={class:"w-full h-45 bg-white/5 flex items-center justify-center"},Sr={class:"p-5 overflow-y-auto flex-1"},jr={class:"font-primary font-black text-2xl text-primary m-0 mb
2-3"},Er={class:"font-secondary text-sm text-gray-400 leading-relaxed m-0 mb-3"},Lr={key:0},Mr={class:"list-none m-0 p-0 flex flex-col gap-2"},Rr="a8e99741-e9ba-4b97-b0a0-507ff41c7942",Gr={__name:"NwcCartDrawer",props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:xe(["cart-count"],["update:open"]),setup(G,{emit:N}){const L=_e(G,"open"),{getProductUrl:q}=je(),A=Ce(),c=Ne(),{pushBeginCheckoutEvent:b}=st(),h=X(()=>!c.localGenerallyCart.length&&!c.localCustomCart.length),p=X(()=>c.cartPopupCount);function d(l){return!!(l.custom_glass_etching_mark||l.product_type==="glass_etching"||l.discount_active)}const C=Ye((l,i,P,S)=>{c.deleteCartItem(l,i,P,S)},1e3);function O(){b(),L.value=!1,ke("/checkout")}const F=$(!1),u=$(null);function j(){F.value=!1,u.value=null}const w=N;return ee(L,l=>{l&&w("cart-count",p.value)}),(l,i)=>{const P=te,S=$e,U=pe,k=ae;return a(),T(k,null,{default:y(()=>[(a(),T(ce,{to:"body"},[s(J,{name:"modal-overlay"},{default:y(()=>[L.value?(a(),o("div",{key:0,class:"fixed inset-0 z-1999",style:{"background-color":"rgba(0, 0, 0, 0.6)"},"aria-hidden":"true",onClick:i[0]||(i[0]=r=>L.value=!1)})):_("",!0)]),_:1}),e("div",{class:M(["modal-panel-drawer fixed top-0 w-full md:max-w-120 h-full bg-[#1a1a1a] z-2000 overflow-y-auto overflow-x-hidden flex flex-col",L.value?"right-0":"-right-full"])},[e("div",ta,[e("div",aa,[e("h5",ra,[i[4]||(i[4]=R(" Your Cart ",-1)),e("span",oa,"("+n(t(p))+" items)",1)]),e("button",{type:"button",class:"flex items-center justify-center w-8 h-8 bg-white/10 rounded-lg text-gray-400 hover:bg-white/15 hover:text-white transition-colors border-none cursor-pointer","aria-label":"Close cart",onClick:i[1]||(i[1]=r=>L.value=!1)},[s(P,{name:"mdi:close",class:"w-5 h-5"})])]),e("div",la,[t(h)?(a(),o("div",sa,[...i[5]||(i[5]=[e("p",{class:"font-secondary text-sm text-gray-400 m-0"},"No products in the cart.",-1)])])):(a(),o(g,{key:1},[(a(!0),o(g,null,z(t(c).localGenerallyCart,(r,v)=>(a(),o(g,{key:`generally-${v}`},[r.product_option||r.product_option_mark?(a(),o(g,{key:0},[e("div",na,[e("div",ia,[s(U,{to:t(q)(r),class:"block w-full h-full"},{default:y(()=>[("isNonEmptyArray"in l?l.isNonEmptyArray:t(B))(r.image)?(a(),o("img",{key:0,class:"w-full h-full object-cover",src:r.image[0]?.imgurl,alt:r.product_name??r.composite_name??"Product"},null,8,da)):r.image?(a(),o("img",{key:1,class:"w-full h-full object-cover",src:r.image,alt:r.product_name??r.composite_name??"Product"},null,8,ua)):(a(),o("div",ca,[s(S)]))]),_:2},1032,["to"])]),e("div",pa,[s(U,{to:t(q)(r),class:"font-primary font-bold text-sm text-white no-underline hover:text-primary leading-tight"},{default:y(()=>[R(n(r.product_name??r.composite_name),1)]),_:2},1032,["to"]),e("div",fa,[d(r)?(a(),o(g,{key:0},[t(A).isLogin?(a(),o("span",ma,n(r.quantity)+" × "+n(("toCurrency"in l?l.toCurrency:t(H))(Number(r.sale_price))),1)):(a(),o("span",ya,n(r.quantity)+" × "+n(("toCurrency"in l?l.toCurrency:t(H))(r.price)),1))],64)):(a(),o(g,{key:1},[e("div",ha,[e("button",{type:"button",class:"w-7 h-7 flex items-center justify-center bg-transparent border-0 text-white text-base cursor-pointer hover:bg-white/10 transition-colors disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-0",disabled:t(c).isLoading||r.quantity<=1,"aria-label":"Decrease quantity",onClick:f=>{r.quantity=Math.max(1,r.quantity-1),t(c).patchCart(r,v,r.id)}},[s(P,{name:"mdi:minus",class:"w-4 h-4"})],8,va),me(e("input",{"onUpdate:modelValue":f=>r.quantity=f,type:"number",step:"1",min:"1",max:"99",readonly:"",disabled:t(c).isLoading,class:"cart-drawer-qty-input w-8 h-7 min-w-9 text-center text-[13px] font-bold text-white bg-transparent border-0 border-x border-white/15 outline-hidden appearance-none [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:opacity-50 cursor-default","aria-label":"Quantity"},null,8,ba),[[ye,r.quantity,void 0,{number:!0}]]),e("button",{type:"button",class:"w-7 h-7 flex items-center justify-center bg-transparent border-0 text-white text-base cursor-pointer hover:bg-white/10 transition-colors disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focu
2s-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-0",disabled:t(c).isLoading||r.quantity>=99,"aria-label":"Increase quantity",onClick:f=>{r.quantity=Math.min(99,r.quantity+1),t(c).patchCart(r,v,r.id)}},[s(P,{name:"mdi:plus",class:"w-4 h-4"})],8,ga)]),i[6]||(i[6]=e("span",null,"×",-1)),t(A).isLogin?(a(),o("span",_a,n(("toCurrency"in l?l.toCurrency:t(H))(Number(r.sale_price))),1)):(a(),o("span",xa,n(("toCurrency"in l?l.toCurrency:t(H))(r.price)),1))],64))])]),e("button",{type:"button",class:"shrink-0 flex items-center justify-center w-8 h-8 text-gray-400 hover:text-primary hover:bg-white/10 rounded-lg border border-white/15 cursor-pointer","aria-label":"Remove",onClick:ie(f=>t(C)(r.source,v,r.id,r),["prevent"])},[s(P,{name:"mdi:delete-outline",class:"w-4 h-4"})],8,wa)]),(a(!0),o(g,null,z(Object.entries(r.products||r.product_options),(f,K)=>(a(),o("div",{key:`generally-sub-${v}-${K}`,class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},[e("div",ka,[s(U,{to:t(q)(f[1]),class:"block w-full h-full"},{default:y(()=>[("isNonEmptyArray"in l?l.isNonEmptyArray:t(B))(f[1].image)?(a(),o("img",{key:0,class:"w-full h-full object-cover",src:f[1].image[0],alt:f[1].name??f[1].product_name??"Product"},null,8,Ca)):f[1].image?(a(),o("img",{key:1,class:"w-full h-full object-cover",src:f[1].image,alt:f[1].name??f[1].product_name??"Product"},null,8,$a)):(a(),o("div",Na,[s(S)]))]),_:2},1032,["to"])]),e("div",Aa,[e("p",Pa,n(f[1].name??f[1].product_name),1),e("p",Sa,[t(A).isLogin?(a(),o(g,{key:1},[R(n(f[1].quantity)+" × "+n(("toCurrency"in l?l.toCurrency:t(H))(f[1].was_price)),1)],64)):(a(),o(g,{key:0},[R(n(f[1].quantity)+" × "+n(("toCurrency"in l?l.toCurrency:t(H))(f[1].price)),1)],64))])])]))),128))],64)):!r.product_option&&!r.product_option_mark&&r.product_type==="warranty"?(a(),o(g,{key:1},[e("div",ja,[e("div",Ea,[("isNonEmptyArray"in l?l.isNonEmptyArray:t(B))(r.image)?(a(),o("img",{key:0,class:"w-full h-full object-cover",src:r.image[0]?.imgurl,alt:r.composite_name??r.product_name??"Product"},null,8,La)):r.image?(a(),o("img",{key:1,class:"w-full h-full object-cover",src:r.image,alt:r.composite_name??r.product_name??"Product"},null,8,Ma)):(a(),T(S,{key:2}))]),e("div",Ra,[e("p",Ga,[i[7]||(i[7]=R(" Refundable Protection Program ",-1)),e("span",Ta,"("+n(r.warranty_status)+")",1)]),e("p",qa,n(r.quantity)+" × "+n(("toCurrency"in l?l.toCurrency:t(H))(r.unit_price)),1)]),e("button",{type:"button",class:"shrink-0 flex items-center justify-center w-8 h-8 text-gray-400 hover:text-primary hover:bg-white/10 rounded-lg border border-white/15 cursor-pointer","aria-label":"Remove",onClick:ie(f=>t(C)(r.source,v,r.id,r),["prevent"])},[s(P,{name:"mdi:delete-outline",class:"w-4 h-4"})],8,za)]),e("div",Oa,[e("div",Fa,[r.warranty_products?.image?(a(),o("img",{key:0,class:"w-full h-full object-cover",src:r.warranty_products.image,alt:r.composite_name??"Product"},null,8,Ha)):(a(),T(S,{key:1}))]),e("div",Ba,[e("p",Ua,n(r.composite_name),1)])])],64)):(a(),o("div",Da,[e("div",Va,[s(U,{to:t(q)(r),class:"block w-full h-full"},{default:y(()=>[("isNonEmptyArray"in l?l.isNonEmptyArray:t(B))(r.image)?(a(),o("img",{key:0,class:"w-full h-full object-cover",src:r.image[0]?.imgurl,alt:r.product_name??r.composite_name??"Product"},null,8,Ia)):r.image?(a(),o("img",{key:1,class:"w-full h-full object-cover",src:r.image,alt:r.product_name??r.composite_name??"Product"},null,8,Wa)):(a(),o("div",Ka,[s(S)]))]),_:2},1032,["to"])]),e("div",Qa,[e("p",Ya,n(r.product_name??r.composite_name),1),r.discount_active&&r.discount_type_name?(a(),o("p",Za,[e("span",Ja,n(r.discount_type_name),1)])):_("",!0),e("div",Xa,[d(r)?(a(),o(g,{key:0},[R(n(r.quantity)+" × ",1),r.discount_type?(a(),o("span",er,n(("toCurrency"in l?l.toCurrency:t(H))(r.unit_price)),1)):(a(),o("span",tr,n(("toCurrency"in l?l.toCurrency:t(H))(r.price??r.sale_price)),1))],64)):(a(),o(g,{key:1},[e("div",ar,[e("button",{type:"button",class:"w-7 h-7 flex items-center justify-center bg-transparent border-0 text-white text-base cursor-pointer hover:bg-white/10 transition-colors disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focu
2s-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-0",disabled:t(c).isLoading||r.quantity<=1,"aria-label":"Decrease quantity",onClick:f=>{r.quantity=Math.max(1,r.quantity-1),t(c).patchCart(r,v,r.id)}},[s(P,{name:"mdi:minus",class:"w-4 h-4"})],8,rr),me(e("input",{"onUpdate:modelValue":f=>r.quantity=f,type:"number",step:"1",min:"1",max:"99",readonly:"",disabled:t(c).isLoading,class:"cart-drawer-qty-input w-8 h-7 min-w-9 text-center text-[13px] font-bold text-white bg-transparent border-0 border-x border-white/15 outline-hidden appearance-none [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:opacity-50 cursor-default","aria-label":"Quantity"},null,8,or),[[ye,r.quantity,void 0,{number:!0}]]),e("button",{type:"button",class:"w-7 h-7 flex items-center justify-center bg-transparent border-0 text-white text-base cursor-pointer hover:bg-white/10 transition-colors disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-0",disabled:t(c).isLoading||r.quantity>=99,"aria-label":"Increase quantity",onClick:f=>{r.quantity=Math.min(99,r.quantity+1),t(c).patchCart(r,v,r.id)}},[s(P,{name:"mdi:plus",class:"w-4 h-4"})],8,lr)]),i[8]||(i[8]=e("span",null,"×",-1)),r.discount_type?(a(),o("span",sr,n(("toCurrency"in l?l.toCurrency:t(H))(r.unit_price)),1)):(a(),o("span",nr,n(("toCurrency"in l?l.toCurrency:t(H))(r.price??r.sale_price)),1))],64))])]),e("button",{type:"button",class:"shrink-0 flex items-center justify-center w-8 h-8 text-gray-400 hover:text-primary hover:bg-white/10 rounded-lg border border-white/15 cursor-pointer","aria-label":"Remove",onClick:ie(f=>t(C)(r.source,v,r.id,r),["prevent"])},[s(P,{name:"mdi:delete-outline",class:"w-4 h-4"})],8,ir)]))],64))),128)),t(c).localCustomCart.length?(a(),o(g,{key:0},[e("div",dr,[i[12]||(i[12]=e("div",{class:"shrink-0 w-20 h-20 rounded-lg overflow-hidden bg-white/5 flex items-center justify-center"},[e("img",{class:"w-full h-full object-cover",src:"https://skytechai.s3.us-west-002.backblazeb2.com/qmef9r7v2jiibd43lu7dfmvf52l8_custompcilluatration-100x100pngpng.png",alt:"Custom PC"})],-1)),e("div",ur,[s(U,{to:`/stg-custom-builder/${Rr}`,class:"font-primary font-bold text-sm text-white no-underline hover:text-primary leading-tight"},{default:y(()=>[...i[9]||(i[9]=[R(" Custom Build ",-1)])]),_:1},8,["to"]),e("p",cr,[i[11]||(i[11]=R(" Edit: ",-1)),s(U,{to:t(c).localCustomCart[0].purchase_url||"#",class:"text-primary"},{default:y(()=>[...i[10]||(i[10]=[R(" Click Here ",-1)])]),_:1},8,["to"])]),e("p",pr," 1 × "+n(("toCurrency"in l?l.toCurrency:t(H))(t(c).localCustomTotalPrice)),1)]),e("button",{type:"button",class:"shrink-0 flex items-center justify-center w-8 h-8 text-gray-400 hover:text-primary hover:bg-white/10 rounded-lg border border-white/15 cursor-pointer","aria-label":"Remove",onClick:i[2]||(i[2]=ie(r=>t(C)(t(c).localCustomCart[0].source,0,t(c).localCustomCart[0].id,t(c).localCustomCart[0]),["prevent"]))},[s(P,{name:"mdi:delete-outline",class:"w-4 h-4"})])]),(a(!0),o(g,null,z(Object.entries(t(c).localCustomCart[0].products[0]||{}),(r,v)=>(a(),o("div",{key:`custom-sub-${v}`,class:"cart-drawer-item flex gap-3.5 py-4 px-5 border-b border-white/10"},[e("div",fr,[s(U,{to:t(q)(r[1]),class:"block w-full h-full"},{default:y(()=>[("isNonEmptyArray"in l?l.isNonEmptyArray:t(B))(r[1].image)?(a(),o("img",{key:0,class:"w-full h-full object-cover",src:r[1].image[0].imgurl,alt:r[1].name??r[1].product_name??"Product"},null,8,mr)):r[1].image==="default none"?(a(),o("div",yr,[s(P,{name:"carbon:error",class:"w-8 h-8"})])):(a(),o("div",hr,[s(S)]))]),_:2},1032,["to"])]),e("div",vr,[e("p",br,n(("renameCategoryName"in l?l.renameCategoryName:t(nt))(r[0]))+":",1),e("p",gr,n(r[1].name??r[1].product_name),1),e("p",_r," 1 × "+n(("toCurrency"in l?l.toCurrency:t(H))(r[1].price)),1)])]))),128))],64)):_("",!0)],64))]),e("div",xr,[e("div",wr,[i[13]||(i[13]=e("span",null,"Subtotal",-1)),e("span",null,n(("toCurrency"in l?l.toCurrency:t(H))(t(c).originSubTotal)),1)]),i[15]||(i[15]=e("div",{class:"flex justify-between items-center py-1.5 text-[13px] text-gray-400"},[e("span",null,"Shipping"),e("span",{class:"font-bold"}," Shipping will be calculated at checkout ")],-1)),e("div",kr,[i[14]||(i[14]=e("span",null,"Total",-1)),e("span",null,n(("toCurrency"in l?l.toCurrency:t(H))(t(c).cartTotalCost)),1)])]),e("div",Cr,[e("button",{type:"button",class:"btn btn-primary w-full uppercase",onClick:O}," Checkout "),s(U,{to:"/cart",class:"btn btn-outline w-full uppercase",onClick:i[3]||(i[3]=r=>L.value=!1)},{default:y(()=>[...i[16]||(i[16]=[R(" View Full Cart ",-1)])]),_:1})])])],2),(a(),T(ce,{to:"body"},[s(J,{name:"modal-overlay-fast"},{default:y(()=>[t(F)?(a(),o("div",{key:0,class:"fixed inset-0 bg-black/70 z-10000","aria-hidden":"true",onClick:j})):_("",!0)]),_:1}),s(J,{name:"modal-panel-popup"},{default:y(()=>[t(F)?(a(),o("div",$r,[e("div",Nr,[e("h4",Ar,n(t(u)?.name),1),e("button",{type:"button",class:"bg-transparent border-none text-gray-400 cursor-pointer p-1 rounded-md hover:text-white hover:bg-white/10 transition-colors","aria-label":"Close product details",onClick:j},[s(P,{name:"mdi:close",class:"w-5 h-5"})])]),e("div",Pr,[s(P,{name:"mdi:image-outline",class:"w-12 h-12 text-white/30"})]),e("div",Sr,[e("p",jr,n(t(u)?.price),1),e("p",Er,n(t(u)?.description),1),t(u)?.specs?.length?(a(),o("div",Lr,[i[17]||(i[17]=e("p",{class:"font-primary font-bold text-xs text-gray-400 uppercase m-0 mb-2"},"Key Features",-1)),e("ul",Mr,[(a(!0),o(g,null,z(t(u).specs,(r,v)=>(a(),o("li",{key:v,class:"font-secondary text-[13px] text-white pl-4 relative before:absolute before:left-0 before:top-1.75 before:w-1.5 before:h-1.5 before:bg-primary before:rounded-full"},n(r),1))),128))])])):_("",!0)]),e("div",{class:"py-4 px-5 border-t border-white/10"},[e("button",{type:"button",class:"btn btn-primary w-full",onClick:j}," Add to Cart ")])])):_("",!0)]),_:1})]))]))]),_:1})}}}
2,Tr=fe(Gr,[["__scopeId","data-v-f934f5ab"]]),qr=Ue(()=>Ke(()=>import("./DPdoaTac2.js").then(G=>G.default||G),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),zr={class:"bg-primary h-7.5 flex items-center justify-between px-5 md:px-10 lg:px-20 overflow-hidden"},Or={key:0,class:"hidden lg:flex items-center gap-4 h-6.5"},Fr=["href","aria-label"],Hr={class:"flex items-start justify-between py-5 px-5 md:px-10 relative z-2 max-lg:justify-end max-lg:relative"},Br={key:0,class:"flex-1 hidden lg:flex justify-center px-1 flex-wrap","aria-label":"Main Navigation"},Ur={class:"flex items-center flex-wrap gap-x-5 gap-y-2 lg:gap-x-6 list-none m-0 p-0 justify-center"},Dr=["onMouseenter"],Vr={key:0,class:"nav-dropdown__gallery grid grid-cols-4 gap-4 py-8 justify-items-center"},Ir={key:1,class:"nav-dropdown__gallery grid grid-cols-4 gap-4"},Wr={class:"w-full aspect-square bg-white/5 rounded-lg flex items-center justify-center"},Kr=["src"],Qr={class:"font-primary font-bold text-xs uppercase text-white text-center tracking-[0.01em] leading-none"},Yr={class:"nav-dropdown__footer mt-4 text-center opacity-0 -translate-y-1.5 group-hover/item:opacity-100 group-hover/item:translate-y-0 transition-[opacity,translate] duration-200 ease-out delay-280"},Zr={key:0,class:"nav-dropdown nav-dropdown--links absolute top-[calc(100%+12px)] left-0 min-w-55 w-auto bg-[#1a1a1a] border border-white/8 rounded-xl py-3 opacity-0 invisible pointer-events-none group-hover/item:opacity-100 group-hover/item:visible group-hover/item:pointer-events-auto group-hover/item:translate-y-0 -translate-y-2 transition-[opacity,translate,visibility] duration-250 ease-out z-3000 shadow-xl"},Jr={class:"list-none m-0 p-0"},Xr={class:"flex items-center gap-4 lg:gap-5 shrink-0"},eo={key:0,class:"absolute -top-1.5 -right-2 bg-primary text-white font-primary font-bold text-[10px] leading-none min-w-4 h-4 px-1 rounded-full flex items-center justify-center pointer-events-none"},to=["aria-expanded"],ao={key:0,class:"fixed inset-0 z-998 lg:pointer-events-none","aria-hidden":"true"},ro={__name:"NwcLayoutSkytechHeader",async setup(G){let N,L;const q=we(),A=X(()=>{const x=q.name??"";return x==="categoryGroup-categoryName-productSlug"||x==="product-productId"}),c=$(!1),b=$(!1),h=$(!1),p=$(!1),d=$(!1),C=$([]),O=$(!1),F=$("0px");async function u(){if(!(C.value.length>0||O.value)){O.value=!0;try{const x=(await U.$apiFetch("/products/generally_all_models",{method:"GET",useFetch:!1}))?.data??[];C.value=x.map(m=>({name:m.name??"",image:m.image?.imgurl??"",url:m.name?`/prebuilt-gaming-pc/${m.name}`:"#"}))}catch(x){console.error("Get dropdown prebuilt products failed.",x)}finally{O.value=!1}}}function j(x){u();const m=x.currentTarget.getBoundingClientRect(),D=m.left+m.width/2,I=410,W=10;let Z=0;const le=D-I,se=D+I;le<W?Z=W-le:se>window.innerWidth-W&&(Z=window.innerWidth-W-se),F.value=`${Z}px`}function w(){h.value=!h.value,h.value&&(p.value=!1)}function l(){p.value=!p.value,p.value&&(h.value=!1)}const i=et(document.body);function P(){b.value=!b.value}function S(){c.value=window.pageYOffset>50}Je(window,"scroll",S,{passive:!0}),he(()=>{b.value=!1}),ee([h,p,b],()=>{{const x=h.value||p.value||b.value;document.body.classList.toggle("search-open",x),i.value=x}}),Ze("Escape",()=>{h.value&&(h.value=!1),p.value&&(p.value=!1),b.value&&(b.value=!1)});const U=He(),{getMenusCategoryHandler:k}=Ee(),{getProductsApi:r}=Ae(),v=Pe(),f=Ne(),K=Se();function Le(x){return K.isActive(x.label)?!0:B(x.data)?x.data.some(m=>K.isActive(m.label)):!1}const re=$([]),Me=$([{socialName:"facebook",iconName:"ic:baseline-facebook"},{socialName:"instagram",iconName:"mdi:instagram"},{socialName:"x",iconName:"fa6-brands:x-twitter"},{socialName:"youtube",iconName:"mdi:youtube"},{socialName:"discord",iconName:"mdi:discord"},{socialName:"twitch",iconName:"bi:twitch"},{socialName:"tiktok",iconName:"simple-icons:tiktok"}]),oe=$([]),Y=$({}),Q=$(""),be=$(!1);ee(()=>[be.value,Q.value],async x=>{const[m,D]=x;if(m&&Y.value[D]===null&&D!=="All Families")try{const I=await r(`page_name=header-pre-built-pcs&source=3&category_name=${Q.value}`,!1);Y.value[Q.value]=I.products}catch{console.error("Get dropdown products failed.")}else if(D==="All Families"&&Y.value["All Families"].length===0&&be.value)try{const I=await U.$apiFetch("/products/generally_all_models",{method:"GET",useFetch:!1});Y.value["All Families"]=I?.data??[]}catch{console.error("Get dropdown all models failed.")}});const[Re,Ge]=([N,L]=ve(()=>Promise.all([k("Header"),U.$apiFetch("/categories?category_type=prebuilt_gaming_pcs&param1=header",{method:"GET",useFetch:!0})])),N=await N,L(),N),{data:ge,error:Te}=Re,{data:qe,error:ze}=Ge;return Te.value||B(ge.value?.data)&&(re.value=ge.value.data.filter(x=>x.gaming_menu_footer?.menu_footer?.menu_open_mark==="true")),ze.value||(qe.value=[],Q.value="All Families",Q.value===void 0&&(Q.value="All Families"),Y.value["All Families"]=[]),v.iconNameAndUrl.forEach(x=>{const{socialName:m,url:D}=x;Me.value.forEach(I=>{I.socialName===m&&oe.value.push({...I,url:D})})}),(x,m)=>{const D=te,I=lt,W=pe,Z=zt,le=ae,se=qr,Oe=ea,Fe=Tr;return a(),o("div",{class:M({"mb-56.5":!t(A)})},[e("header",{class:M(["left-0 right-0 w-full z-1000 font-primary",[t(A)?"relative":"fixed top-0",{"shadow-[0_4px_20px_rgba(0,0,0,0.5)]":t(c)}]])},[e("div",zr,[m[5]||(m[5]=e("p",{class:"font-primary font-black text-xs uppercase text-white leading-none tracking-[0.01em] m-0"}," Need Help? (888) 370-8882 ",-1)),("isNonEmptyArray"in x?x.isNonEmptyArray:t(B))(t(oe))?(a(),o("div",Or,[(a(!0),o(g,null,z(t(oe),E=>(a(),o("a",{key:E.iconName,href:E.url,target:"_blank",rel:"noopener",class:"flex items-center justify-center w-6.75 h-6.75 text-white hover:opacity-70 transition-opacity duration-150","aria-label":E.socialName},[s(D,{name:E.iconName,class:"w-4 h-4"},null,8,["name"])],8,Fr))),128))])):_("",!0)]),e("div",{class:"main-header relative z-2 bg-[#090909] backdrop-blur-[2px] h-auto flex flex-col transition-all duration-300",onMouseenter:m[1]||(m[1]=E=>d.value=!0),onMouseleave:m[2]||(m[2]=E=>d.value=!1)},[e("div",Hr,[s(W,{to:"/",class:"header-logo flex items-center h-auto w-auto overflow-hidden no-underline hover:opacity-80 transition-opacity duration-150 shrink-0 max-lg:absolute max-lg:left-0 max-lg:right-0 max-lg:w-11.25 max-lg:mx-auto","aria-label":"Skytech Gaming Home"},{default:y(()=>[m[6]||(m[6]=e("img",{src:"https://skytechai.s3.us-west-002.backblazeb2.com/8wmbyegt2dtwszblav91ouzgo0ov_logo-skytech-FULLCOLOR-lightwebpwebp.webp",alt:"Skytech Gaming",class:"hidden lg:block w-30 h-auto",width:"120",height:"40"},null,-1)),s(I,{title:"Skytech Gaming",alt:"Skytech Gaming Mobile Logo",class:"lg:hidden w-11.25 h-11.25",height:"45",loading:"eager",fetchpriority:"high"})]),_:1}),("isNonEmptyArray"in x?x.isNonEmptyArray:t(B))(t(re))?(a(),o("nav",Br,[e("ul",Ur,[(a(!0),o(g,null,z(t(re),E=>(a(),o("li",{key:E.label,class:M(["nav-dropdown-item relative group/item after:absolute after:-bottom-3 after:-left-5 after:-right-5 after:h-3 after:bg-transparent",{active:Le(E)}]),onMouseenter:V=>E.label==="PREBUILT GAMING PCS"&&j(V)},[s(W,{to:E.url,class:M(["font-primary font-bold text-sm uppercase text-white no-underline tracking-[0.01em] whitespace-nowrap py-2.5 block hover:opacity-70 group-hover/item:text-primary group-hover/item:opacity-100 transition-all duration-150",{active:t(K).isActive(E.label)}])},{default:y(()=>[R(n(E.label),1)]),_:2},1032,["to","class"]),E.label==="PREBUILT GAMING PCS"?(a(),o("div",{key:0,class:"nav-dropdown absolute top-[calc(100%+12px)] left-1/2 w-205 max-w-[calc(100vw-2.5rem)] bg-[#1a1a1a] border border-white/8 rounded-xl p-6 opacity-0 invisible pointer-events-none group-hover/item:opacity-100 group-hover/item:visible group-hover/item:pointer-events-auto group-hover/item:translate-y-0 -translate-y-2 transition-[opacity,translate,visibility] duration-250 ease-out shadow-[0_16px_48px_rgba(0,0,0,0.5)] z-3000 box-border",style:de({"--tw-translate-x":`calc(-50% + ${t(F)})`})},[t(O)?(a(),o("div",Vr,[...m[7]||(m[7]=[e("span",{class:"text-white/60 text-sm"},"Loading...",-1)])])):("isNonEmptyArray"in x?x.isNonEmptyArray:t(B))(t(C))?(a(),o("div",Ir,[(a(!0),o(g,null,z(t(C),(V,ne)=>(a(),T(W,{key:V.url||ne,to:V.url||"#",class:"nav-dropdown__card flex flex-col items-center gap-2.5 p-4 rounded-[10px] bg-white/4 border border-white/6 no-underline hover:border-primary hover:bg-[rgba(243,16,32,0.06)] opacity-0 -translate-y-2.5 group-hover/item:opacity-100 group-hover/item:translate-y-0 transition-[opacity,translate,border-color,background] duration-200 ease-out",style:de({transitionDelay:`${(ne+1)*.04}s`})},{default:y(()=>[e("div",Wr,[V.image?(a(),o("img",{key:0,src:V.image,alt:"Prebuilt Gaming PC",class:"w-full h-full object-cover"},null,8,Kr)):(a(),T(D,{key:1,name:"mdi:monitor",class:"w-10 h-10 text-white opacity-25"}))]),e("span",Qr,n(V.name),1)]),_:2},1032,["to","style"]))),128))])):_("",!0),e("div",Yr,[s(W,{to:"/prebuilt-gaming-pc",class:"btn btn-outline text-xs uppercase"},{default:y(()=>[...m[8]||(m[8]=[R(" View All Prebuilts ",-1)])]),_:1})])],4)):_("",!0),E.label!=="PREBUILT GAMING PCS"&&("isNonEmptyArray"in x?x.isNonEmptyArray:t(B))(E.data)?(a(),o(g,{key:1},[("isNonEmptyArray"in x?x.isNonEmptyArray:t(B))(E.data)?(a(),o("div",Zr,[e("ul",Jr,[(a(!0),o(g,null,z(E.data,(V,ne)=>(a(),o("li",{key:V.url,class:"nav-dropdown__list-li m-0 opacity-0 -translate-y-2.5 group-hover/item:opacity-100 group-hover/item:translate-y-0 transition-[opacity,translate] duration-200 ease-out",style:de({transitionDelay:`${(ne+1)*.04}s`})},[s(W,{to:V.url,class:M(["block py-2.5 px-6 text-sm font-secondary font-normal text-[#9a9a9a] no-underline hover:text-white hover:bg-white/6 transition-colors duration-150 whitespace-nowrap",{active:t(K).isActive(V.label)}])},{default:y(()=>[R(n(V.label),1)]),_:2},1032,["to","class"])],4))),128))])])):_("",!0)],64)):_("",!0)],42,Dr))),128))])])):_("",!0),e("div",Xr,[s(W,{to:"/my-account",class:"hidden sm:flex items-center justify-center w-6 h-6 text-white hover:opacity-70 no-underline","aria-label":"My Account"},{default:y(()=>[s(D,{name:"mdi:account-circle",class:"w-6 h-6"})]),_:1}),e("button",{type:"button",class:M(["relative flex items-center justify-center w-6 h-6 text-white hover:opacity-70 bg-transparent border-none cursor-pointer p-0 transition-colors duration-200",{"text-primary":t(p)}]),"aria-label":"Shopping Cart",onClick:l},[s(D,{name:"meteor-icons:cart-shopping",class:"w-5 h-5"}),t(f).cartPopupCount>0?(a(),o("span",eo,n(t(f).cartPopupCount),1)):_("",!0)],2),e("div",{class:M(["relative",{active:t(h)}])},[e("button",{type:"button",class:M(["search-toggle flex items-center justify-center w-6 h-6 text-white hover:opacity-70 bg-transparent border-none cursor-pointer p-0 transition-colors duration-200",{active:t(h),"text-primary":t(h)}]),"aria-label":"Search",onClick:w},[s(D,{name:"mdi:magnify",class:M(["w-6 h-6",{"text-primary":t(h)}])},null,8,["class"])],2),s(le,null,{default:y(()=>[s(Z,{open:t(h),onClose:m[0]||(m[0]=E=>h.value=!1)},null,8,["open"])]),_:1})],2)])]),e("div",{class:M(["rainbow-bar absolute -bottom-2.5 left-0 right-0 h-2.5 transition-opacity duration-300 z-1 pointer-events-none",t(d)?"opacity-100":"opacity-0"]),"aria-hidden":"true"},null,2)],32),m[9]||(m[9]=e("div",{class:"bg-gray-900 border-t border-gray-800 min-h-8.75 flex items-center justify-center sm:justify-end py-2 px-5 lg:px-8 xl:px-10 2xl:px-20 overflow-hidden relative z-0"},[e("p",{class:"font-secondary font-normal text-sm leading-none text-white tracking-normal m-0 text-center flex gap-2.5"}
2,[e("a",{href:"https://www.microsoft.com/en-us/windows/",target:"_blank",rel:"noopener",class:"inline-flex shrink-0"},[e("img",{src:"https://skytechai.s3.us-west-002.backblazeb2.com/nsftbxgwefy5ywkb9b7rsqefek63_WIN26-Gettoknow-Windows11-Button1pngpng.png",alt:"Get to know Windows 11 devices",class:"inline-block align-middle border-0 min-h-8 h-8",height:"32"})])])],-1)),s(se)],2),e("button",{type:"button",class:M(["lg:hidden left-5 z-1100 flex flex-col justify-between w-7.5 h-6 bg-transparent border-none cursor-pointer p-0",t(A)?"absolute top-13.75":"fixed top-13.75",{active:t(b)}]),"aria-label":"Toggle Mobile Menu","aria-expanded":t(b),onClick:P},[...m[10]||(m[10]=[e("span",{class:"block w-full h-0.5 bg-white rounded-xs transition-all duration-150"},null,-1),e("span",{class:"block w-full h-0.5 bg-white rounded-xs transition-all duration-150"},null,-1),e("span",{class:"block w-full h-0.5 bg-white rounded-xs transition-all duration-150"},null,-1)])],10,to),s(Oe,{open:t(b),"onUpdate:open":m[3]||(m[3]=E=>ue(b)?b.value=E:null),"header-result":t(re),"prebuilt-cards":t(C),"prebuilt-cards-loading":t(O),"load-prebuilt-if-needed":u,"social-icons-name":t(oe)},null,8,["open","header-result","prebuilt-cards","prebuilt-cards-loading","social-icons-name"]),s(Fe,{open:t(p),"onUpdate:open":m[4]||(m[4]=E=>ue(p)?p.value=E:null)},null,8,["open"]),t(h)||t(p)||t(b)?(a(),o("div",ao)):_("",!0)],2)}}},oo=fe(ro,[["__scopeId","data-v-cf87d0d2"]]),lo={key:0,class:"relative bg-[url(https://skytechai.s3.us-west-002.backblazeb2.com/eqon2vk0whga5j8w8xz2gwoltp17_footerbgjpgjpg.jpg)] bg-fixed lg:bg-local bg-cover bg-center font-secondary"},so={class:"max-w-417.5 px-2.5 mx-auto py-20"},no={class:"hidden lg:flex"},io={class:"w-[80%] flex"},uo={class:"font-secondary font-bold mb-5.75 leading-none text-[28px]"},co={class:"flex flex-col gap-y-6"},po=["href"],fo={class:"w-[20%] p-2.5"},mo={class:"lg:hidden"},yo={class:"footer-collapse"},ho={class:"flex items-center"},vo={class:"flex items-center justify-center h-10 w-10"},bo={class:"pl-1 text-xl font-bold"},go={class:"mt-0 lg:mt-6"},_o={class:"pl-3 lg:pl-0"},xo=["href"],wo={class:"rounded-[23px] py-5.75 px-2"},ko={class:"lg:hidden"},Co={key:0,class:"mt-16 border-t border-gray-400 pt-8 pb-10 flex justify-between lg:items-start flex-col lg:flex-row"},$o={class:"flex lg:items-center flex-row mb-8 lg:mb-0"},No={href:"/",class:"flex mr-5 mt-3 mb-2 lg:mb-0"},Ao=["src"],Po={class:"flex flex-col text-sm"},So=["innerHTML"],jo={key:0,class:"flex"},Eo=["href"],Lo={class:"sr-only"},Mo={class:"flex flex-col lg:items-end"},Ro=["innerHTML"],Go={__name:"NwcLayoutSkytechFooter",async setup(G){let N,L;const{getMenusCategoryHandler:q}=Ee(),A=Se(),c=$([]),b={twitch:"bi:twitch",discord:"mdi:discord",twitter:"fa6-brands:x-twitter",youtube:"mdi:youtube",instagram:"mdi:instagram",facebook:"ic:baseline-facebook",tiktok:"simple-icons:tiktok",reddit:"ic:baseline-reddit"},h=$([]),p=$(""),d=$([]),C=$(null),[{data:O,error:F},{data:u,error:j}]=([N,L]=ve(()=>Promise.all([q("Homepage Footer"),q("Bottom Navigation")])),N=await N,L(),N);return F.value||(d.value=O.value.data),j.value||(C.value=u.value.data,C.value?.forEach(w=>{w.label.toLowerCase()==="icons"&&(h.value=w.data),w.label.toLowerCase()==="credit-cards"&&(p.value=w.imgs[0].imgurl)})),(w,l)=>{const i=rt,P=te,S=We,U=Ie,k=ae,r=tt;return a(),o("div",null,[l[3]||(l[3]=e("div",{class:"h-107.5 bg-rainbow-gradient relative"},[e("div",{class:"absolute bg-rainbow-gradient-blur h-10 w-full -top-4 z-10"})],-1)),("isNonEmptyArray"in w?w.isNonEmptyArray:t(B))(t(d))?(a(),o("div",lo,[e("footer",so,[e("div",no,[e("div",io,[(a(!0),o(g,null,z(t(d),v=>(a(),o("div",{key:v.order,class:"flex-1 p-2.5"},[e("h3",uo,n(v.label),1),e("ul",co,[(a(!0),o(g,null,z(v.data,f=>(a(),o("li",{key:f.order},[e("a",{href:f.url,class:M(["text-white hover:text-primary font-secondary",{"text-primary":t(A).isActive(f.label)}])},n(f.label),11,po)]))),128))])]))),128))]),e("div",fo,[l[1]||(l[1]=e("h3",{class:"font-secondary font-bold mb-5.75 leading-none text-[28px] uppercase"}," Trusted Reviews ",-1)),s(i,{class:"-ml-6"})])]),e("div",mo,[e("div",yo,[s(k,null,{default:y(()=>[s(U,{modelValue:t(c),"onUpdate:modelValue":l[0]||(l[0]=v=>ue(c)?c.value=v:null)},{default:y(()=>[(a(!0),o(g,null,z(t(d),v=>(a(),T(S,{key:v.order,title:v.label,name:v.order},{title:y(()=>[e("div",ho,[e("div",vo,[s(P,{class:M(t(c).includes(v.order)?"text-3xl":"text-2xl"),name:t(c).includes(v.order)?"uil:arrow-down":"ic:outline-add"},null,8,["class","name"])]),e("span",bo,n(v.label),1)])]),default:y(()=>[e("div",go,[e("ul",_o,[(a(!0),o(g,null,z(v.data,f=>(a(),o("li",{key:f.order},[e("a",{href:f.url,class:M(["text-white inline-block py-2 hover:text-primary text-[16px]",{"text-primary":t(A).isActive(f.label)}])},n(f.label),11,xo)]))),128))])])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])]),_:1}
2)]),e("div",wo,[e("div",ko,[l[2]||(l[2]=e("h3",{class:"text-xl font-bold mb-5.75 leading-none uppercase"},"Trusted Reviews",-1)),s(i,{class:"-ml-6"})])])]),("isNonEmptyArray"in w?w.isNonEmptyArray:t(B))(t(C))?(a(),o("div",Co,[e("div",$o,[e("a",No,[e("img",{src:t(C)[0].img,class:"object-contain",title:"Skytech Gaming",alt:"Skytech Gaming Logo",width:"125",height:"41"},null,8,Ao)]),e("div",Po,[e("div",{class:"mb-2.5",innerHTML:("getBreakWord"in w?w.getBreakWord:t(it))(t(C)[0].gaming_menu_footer.menu_footer.desc)},null,8,So),t(h).length?(a(),o("ul",jo,[(a(!0),o(g,null,z(t(h),v=>(a(),o("li",{key:v},[e("a",{target:"_blank",rel:"noopener noreferrer",href:v.url||"#",class:"px-2 text-lg hover:text-primary"},[s(P,{name:b[v.label]},null,8,["name"]),e("span",Lo,n(v.label),1)],8,Eo)]))),128))])):_("",!0)])]),e("div",Mo,[e("div",null,[t(p)?(a(),T(r,{key:0,width:"305",height:"39",format:"webp",src:t(p),alt:"Credit Card Image",loading:"lazy",class:"mb-2.5",placeholder:""},null,8,["src"])):_("",!0)]),e("div",{class:"text- text-white self-start md:self-end",innerHTML:t(C)[2].description},null,8,Ro)])])):_("",!0)])])):_("",!0)])}}},To={class:"v2-default-layout"},dl={__name:"v2-default",async setup(G){let N,L;const q=we(),A=X(()=>q.meta.noChrome!==!0),c=Pe(),b=Ce(),{hydrateCartSession:h}=ot(),{data:p,error:d}=([N,L]=ve(()=>Qe("/api/social-icons",{key:"social-icons"},"$ZnF3ihN7kD")),N=await N,L(),N);return d.value?Xe.error("Get social link error."):c.icons=p.value?.data??[],he(async()=>{A.value&&(dt(".v2-default-layout","var(--body-bg)"),await b.getUserData(),await h())}),(C,O)=>{const F=oo,u=Go;return a(),o("div",To,[t(A)?(a(),T(F,{key:0})):_("",!0),e("main",{class:M(t(A)?"min-h-[80vh] z-0 pb-18":"")},[De(C.$slots,"default")],2),t(A)?(a(),T(u,{key:1})):_("",!0)])}}};export{dl 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.