1import{_ as q}from"./bottom-savings-close-9ac1804e.js";import{d as B,y as O,r as a,u as T,w as X,x as Y,aX as $,e as I,an as j,C as D,o as i,c as u,f as s,a as o,F as K,h as M,g as m,i as N,b3 as R,E as U,_ as Z}from"./index-ba296cc4.js";import{t as ee}from"./index-5b43e561.js";import{c as ae}from"./index-702a707d.js";import{u as le}from"./useHomeList-ad7e1929.js";/* empty css *//* empty css *//* empty css */import"./effect-coverflow-4ed993c7.js";import{s as se}from"./index-32557bb8.js";import{F as te}from"./index-fb75546c.js";import"./link1-98217d88.js";const oe={class:"pcBrowse_browseWrap","element-loading-background":"rgba(0, 0, 0, 0.8)","element-loading-svg-view-box":"-10, -10, 50, 50","element-loading-text":""},ie={class:"bg"},ne={class:"top_hidden"},ue={key:0,class:"summaryE"},re={class:"top"},de={class:"top-item"},ce={class:"top-item"},ve={class:"bottom"},me={key:0,class:"bottom-flash-sale","aria-label":"Flash sale: up to 90% off","data-node-id":"159545:27624"},pe=B({__name:"index",setup(he){const F=O(),p=a(!0),P=a(!0),Q=a(0),h=a(!0),r=a(!1),_=a(),g=a(),f=a(),b=a();a(-1);const y=a(0),w=a(!1),t=a(),k=a(),d=a(),C=a(),x=a(""),z=T();X(()=>z.siteInfo.site_id,l=>{l&&(()=>{const e=z.siteInfo||{};document.title=e.site_name,C.value=e.font_size,d.value=e.font,x.value=e.template_id||""})()},{deep:!0,immediate:!0});const A=()=>{r.value=!1},L=()=>{y.value=window.pageYOffset||document.documentElement.scrollTop,y.value>80?w.value=!0:w.value=!1},W=a([]),E=async()=>{const{all:l,homeLists:e}=await le();k.value=e,W.value=l};Y(async()=>{(async()=>{try{let e=await R({});e.data.code==0?(t.value=e.data.data.list||[],Q.value=t.value[0]):U({message:e.data.msg,type:"error"})}catch{}finally{p.value=!1}})(),E();const l=document.querySelector(".el-carousel");l&&l.setAttribute("autoplay","true"),window.addEventListener("scroll",L)});const c=l=>{F.push({path:`/videos/${l}`})},G=()=>{E()},J=l=>{r.value=!0,_.value=l.title,g.value=l.cover,f.value=l.desc,b.value=l.video_id};return $(()=>{window.removeEventListener("scroll",L)}),(l,e)=>{const v=I("image-component"),H=I("el-backtop"),S=j("loading");return D((i(),u("div",oe,[s("div",ie,[s("div",ne,[t.value&&t.value.length?(i(),u("div",ue,[s("div",re,[s("div",de,[o(v,{class:"hzhb",imageJPGW:"1200",imageQ:"60",imageW:"1000",lazy:!1,src:t.value&&t.value[0].banner_url_1,style:{height:"408px"},onClick:e[0]||(e[0]=n=>c(t.value[0].video_id))},null,8,["src"])]),s("div",ce,[o(v,{class:"hzhb",imageJPGW:"1200",imageQ:"60",imageW:"1000",lazy:!1,src:t.value&&t.value[1].banner_url_1,style:{height:"408px"},onClick:e[1]||(e[1]=n=>c(t.value[1].video_id))},null,8,["src"])])]),s("div",ve,[(i(!0),u(K,null,M(t.value.slice(2,6),(n,V)=>(i(),u("div",{key:V,class:"bottom-item"},[o(v,{class:"hzhb",imageJPGW:"1200",imageQ:"60",imageW:"1000",lazy:!1,src:n.banner_url_1,style:{height:"200px"},onClick:_e=>c(n.video_id)},null,8,["src","onClick"])]))),128))])])):m("",!0)]),o(ae,{homeListAll:W.value,templateId:x.value},null,8,["homeListAll","templateId"]),o(ee,{bgstyle:"0",font:d.value,font_size:C.value,homeList:k.value,onHandeleChildEvent:G,onHandeleIconClick:J},null,8,["font","font_size","homeList"]),h.value?(i(),u("aside",me,[e[4]||(e[4]=s("p",{class:"bottom-flash-sale__text","data-node-id":"159545:27628"},[s("span",null," Flash sale: up to "),s("strong",null,"90%"),s("span",null," off â grab your random deal now")],-1)),s("button",{"aria-label":"Close flash sale banner",class:"bottom-flash-sale__close",title:"Close",type:"button",onClick:e[2]||(e[2]=n=>h.value=!1)},e[3]||(e[3]=[s("img",{alt:"","aria-hidden":"true",src:q},null,-1)]))])):m("",!0),P.value?(i(),N(te,{key:1})):m("",!0),o(H,{bottom:30,right:10}),o(se,{cover_share:g.value,desc_share:f.value,dialogVisible:r.value,font:d.value,title_share:_.value,videoid_share:b.value,onCloseSign:A},null,8,["cover_share","desc_share","dialogVisible","font","title_share","videoid_share"])])])),[[S,p.value]])}}}),Ie=Z(pe,[["__scopeId","data-v-ccd22a35"]]);export{Ie 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.