import{_ as e}from"./vendor-DKh56KT7.js";import{c as t,e as s}from"./vendor-BJZ6tUoe.js";import{u as a}from"./vendor-Kn94P4Uf.js";import{R as o,a as l}from"./souav-BTAG2baT.js";import{_ as i}from"./vendor-DJUGQ7Dr.js";import{_ as r}from"./vendor-C9gRq-hs.js";import{ag as n,c,q as d,x as p,a4 as m,a5 as v,K as f,b1 as u,v as x,a2 as b,a3 as h,bH as g,ad as j,aL as k,ac as y,bf as _,aW as w}from"./vendor-BXdGExd0.js";import"./vendor-BCo6x5W8.js";import"./vendor-Dm4oB1Pn.js";import"./vendor-DN37M9Hi.js";import"./vendor-DBhUxCDU.js";import"./vendor-CB_mu4eO.js";import"./vendor-BAqn-6d_.js";import"./vendor-CDxkAdJH.js";import"./vendor-Cv8m7sE6.js";import"./vendor-bo_0oRCG.js";import"./vendor-Dos3PyFQ.js";import"./vendor-Dwl46Tfs.js";import"./vendor-BHR_E30J.js";import"./vendor-DzK633Zd.js";import"./vendor-CfyHAoLP.js";const C={class:"min-h-dvh bg-[#0E0F12] flex flex-col"},T={class:"sticky top-0 z-50 flex items-center justify-center h-12 border-b border-[#1D1E22]"},L={class:"flex justify-center my-[15px]"},R={class:"flex gap-10"},E=["onClick"],S={key:0,class:"absolute -bottom-1 left-1/2 -translate-x-1/2 w-[20px] h-[2px] bg-[#F2C94C] rounded-[2px]"},V={class:"flex-1 overflow-hidden relative flex items-center justify-center"},D={class:"absolute inset-0 overflow-y-auto"},F={class:"grid grid-cols-2 gap-[15px]"},I=["onClick"],M={class:"absolute bottom-0 left-0 w-full p-[8px]"},N={class:"flex items-center mb-[6px]"},U={class:"ml-[5px] text-[11px] text-white"},q={class:"text-[12px] text-white line-clamp-2 leading-tight"},z={key:1,class:"h-[60vh] flex flex-col items-center justify-center text-gray-500"},H=n({__name:"index",emits:["ppw-close"],setup(n){const H=a(),K=c(()=>H.dataTabList[H.activeTab]),W=c(()=>H.hasMoreList[H.activeTab]),$=c(()=>H.refreshStatusList[H.activeTab]);return d(()=>{H.initData()}),p(()=>{H.reset()}),(a,n)=>{const c=s,d=t,p=e;return w(),m("div",C,[v("header",T,[v("button",{onClick:n[0]||(n[0]=e=>a.$emit("ppw-close")),class:"absolute left-4 p-2 -ml-2"},[...n[4]||(n[4]=[v("i",{class:"icon-sprite icon-back"},null,-1)])]),n[5]||(n[5]=v("h1",{class:"text-lg font-medium text-white font-sans"},"我的短视频",-1))]),v("div",L,[v("div",R,[(w(!0),m(f,null,u(x(H).tabs,(e,t)=>(w(),m("div",{key:t,onClick:e=>x(H).onTabChange(t),class:k(["relative cursor-pointer text-[15px] font-semibold transition-colors leading-none pb-1",x(H).activeTab===t?"text-white":"text-[#676574]"])},[y(_(e)+" ",1),x(H).activeTab===t?(w(),m("div",S)):h("",!0)],10,E))),128))])]),v("main",V,[v("div",D,[K.value.length>0?(w(),b(d,{key:0,modelValue:x(H).refreshing,"onUpdate:modelValue":n[2]||(n[2]=e=>x(H).refreshing=e),onRefresh:x(H).onRefresh},{default:g(()=>[j(c,{loading:x(H).loading,"onUpdate:loading":n[1]||(n[1]=e=>x(H).loading=e),finished:!W.value,onLoad:x(H).onLoadMore,class:"px-[15px] pb-[15px]"},{default:g(()=>[v("div",F,[(w(!0),m(f,null,u(K.value,(e,t)=>(w(),m("div",{key:e.contentId||t,onClick:t=>x(H).onClickItem(e),class:"relative aspect-[324/432] rounded-[10px] overflow-hidden"},[j(l,{src:e.img,class:"w-full h-full object-cover"},null,8,["src"]),n[6]||(n[6]=v("div",{class:"absolute bottom-0 w-full h-1/2 bg-gradient-to-b from-transparent to-black/60 pointer-events-none"},null,-1)),v("div",M,[v("div",N,[0===x(H).activeTab?(w(),m(f,{key:0},[v("i",{class:k(["icon-sprite",1===e.likeState?"icon-drama_like_2":"icon-drama_like_1"])},null,2),v("span",U,_(e.likeNum??0),1)],64)):(w(),m("i",{key:1,class:k(["icon-sprite",1===e.collectState?"icon-drama_collect_2":"icon-drama_collect_1"])},null,2))]),v("p",q,_(e.title),1)])],8,I))),128))])]),_:1},8,["loading","finished","onLoad"])]),_:1},8,["modelValue","onRefresh"])):h("",!0)]),$.value==x(o).loading?(w(),b(p,{key:0})):0==K.value.length?(w(),m("div",z,[j(i)])):$.value===x(o).NetError?(w(),m("div",{key:2,class:"h-[60vh] flex flex-col items-center justify-center",onClick:n[3]||(n[3]=(...e)=>x(H).onRefresh&&x(H).onRefresh(...e))},[j(r)])):h("",!0)])])}}});export{H as default};
