1import{u as F,_ as Y,a as G,b as L,c as N,d as E,e as j,f as I,g as O,h as U}from"./1uTAKOxz.js";import{_ as $}from"./CbBh4sUL.js";import{_ as z}from"./sBjZkOV6.js";import{_ as W}from"./x695gxN7.js";import{u as q}from"./7wDI_HF0.js";import{u as J}from"./DbA58H3q.js";import{h as K,i as Q,j as R,c as d,f as o,F as b,b as e,a as c,w as X,k as Z,l as ee,m as oe,o as v}from"./CBVuVATE.js";import{_ as te}from"./DlAUqK2U.js";import"./C-s4FLFn.js";import"./DpgSet8m.js";import"./C13c8upd.js";const se={class:"home-page"},ne={class:"discover-section"},ae={__name:"index",async setup(ie){let n,h;const{isMobile:g}=q(),m=J(),{homeBanners:a,homeActivities:l,homeProducts:i,homeVideos:r,homeServices:_,homeProductSeries:u,fetchAllHomeData:f}=F(),w=[{id:"game",image:"/product-assets/images/series-game.png",title:"Gaming Series",subtitle:"",link:"/series/game"},{id:"thin",image:"/product-assets/images/series-thin.png",title:"Thin&Light Series",subtitle:"",link:"/series/thin"}],{data:s}=([n,h]=K(async()=>ee("homePageData",async()=>{const{getCachedData:p}=oe();return await p("cache:home:index:v2",async()=>(await f(),{banners:a.value,activities:l.value,products:i.value,videos:r.value,services:_.value,series:u.value}),3600)},{server:!0,lazy:!0})),n=await n,h(),n);s.value&&(a.value=s.value.banners||[],l.value=s.value.activities||[],i.value=s.value.products||[],r.value=s.value.videos||[],_.value=s.value.services||[],u.value=s.value.series||[]);const x=()=>{{const t=(window.scrollY||window.pageYOffset)<=0;
1m.setHeaderTransparent(t)}};return Q(()=>{g.value||(m.setHeaderTransparent(!0),window.addEventListener("scroll",x,{passive:!0}))}),R(()=>{m.setHeaderTransparent(!1),window.removeEventListener("scroll",x)}),(p,t)=>{const H=Y,S=G,y=L,P=$,M=z,k=N,B=E,C=j,T=I,A=O,D=U,V=W;return v(),d("div",se,[o(g)?(v(),d(b,{key:1},[e(k,{banners:o(a)},null,8,["banners"]),e(B,{activities:o(l)},null,8,["activities"]),e(C,{products:o(i)},null,8,["products"]),e(T,{videos:o(r)},null,8,["videos"]),e(A,{services:o(_)},null,8,["services"]),e(D,{series:o(u)},null,8,["series"]),e(V)],64)):(v(),d(b,{key:0},[e(H,{banners:o(a)},null,8,["banners"]),e(S,{products:o(i)},null,8,["products"]),e(y,{videos:o(r),style:{"padding-top":"180px"}},null,8,["videos"]),c("div",ne,[t[1]||(t[1]=c("h2",{class:"discover-title"},"Find out more",-1)),t[2]||(t[2]=c("p",{class:"discover-subtitle"},"Stay Updated",-1)),e(P,{to:"/news",class:"discover-image-wrapper"},{default:X(()=>[...t[0]||(t[0]=[c("img",{src:"https://glbfs.mechrevo.com/website/static/images/home-discover.jpg",alt:"Find out more",class:"discover-image"},null,-1)])]),_:1})]),e(M,{title:"Product Serie",subtitle:"The Chinese Brand That Wins the Heart of Young Generation",items:w,style:{padding:"120px 0 0","margin-bottom":"80px"}}),Z("",!0)],64))])}}},xe=te(ae,[["__scopeId","data-v-83799d59"]]);export{xe 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.