import{C as e,r as s,c as t,P as a,S as l,u as o,F as r,a0 as n,J as c,H as u,U as p,R as i,X as m,N as f,M as d,Q as x,B as k}from"./chunk-BRI0aX6c.js";import{T as g}from"./chunk-CbUGsQB2.js";import{k as h,S as y,d as v,b as j,a as w}from"./souav-I_ihqEhP.js";import{u as P}from"./chunk-DwkOxDMO.js";import{P as _}from"./chunk-ByvUfVss.js";import{_ as b}from"./chunk-qE2C5OKe.js";import{_ as N}from"./chunk-M9zU1roC.js";import{_ as S}from"./chunk-C-I2o6tN.js";import{_ as q}from"./chunk-CKqiihmt.js";import{_ as z}from"./chunk-BZODPI8y.js";import"./chunk-D1JGNTfG.js";import"./chunk-9PZSJnHb.js";import"./chunk-Bf-nSo-6.js";import"./chunk-CMQyd8eO.js";import"./chunk-a7obrEbD.js";import"./chunk-DQhVL27x.js";import"./chunk-cn7T4ICr.js";import"./chunk-Bh3yC0yB.js";import"./chunk-DjdYu-xF.js";import"./chunk-BHPWSuhB.js";/* empty css              */import"./chunk-Cc8vDyyC.js";const V={class:"relative flex w-full items-center justify-center"},C=["src"],T={class:"flex h-full w-full flex-col"},U={class:"w-full flex flex-row items-center h-[50px] bg-[#252525]"},I={class:"flex flex-wrap w-full px-3 pt-5 gap-1"},K=["onClick"],L={class:"flex pl-3 pt-3 text-start text-[13px]"},A={class:"text-orange-500"},E=j(e({__name:"SearchTitleView",setup(e){const d=h(),x=P(),k=s("");function j(){y.isEmpty(k.value)||v(x.path,{key:k.value,pageNo:1})}return t(()=>{var e;(null==(e=x.query)?void 0:e.key)&&(k.value=x.query.key)}),(e,s)=>(f(),a("div",V,[l("img",{src:o(g),alt:"",class:"absolute aspect-[1280/315] w-full"},null,8,C),l("div",T,[l("div",U,[s[1]||(s[1]=l("button",{class:"px-3 text-orange-500 text-[14px] h-full bg-transparent"},"视频",-1)),r(l("input",{type:"search",placeholder:"请输入文字","onUpdate:modelValue":s[0]||(s[0]=e=>k.value=e),onKeyup:c(j,["enter"]),class:"bg-transparent grow pl-3 py-3 text-orange-500 placeholder-gray-400 focus:outline-none text-[15px]"},null,544),[[n,k.value]]),l("i",{class:"ml-1 iconfont icon-search text-orange-500 px-3 h-full flex items-center justify-center",style:{"font-size":"20px"},onClick:j})]),l("div",I,[(f(!0),a(u,null,p(o(d).recommendWordKeys,(e,s)=>(f(),a("div",{class:"relative px-2 py-1 bg-[#252525] rounded-[3px] text-[12px]",onClick:s=>{return t=e,void v(x.path,{key:t,pageNo:1});var t}},i(e),9,K))),256))]),l("div",L,[s[2]||(s[2]=m(' 与" ',-1)),l("p",A,i(o(d).keywords),1),m(' "相关的共'+i(o(d).totalRecord)+"个搜索结果 ",1)])])]))}}),[["__scopeId","data-v-c110ab73"]]),R={class:"flex w-full flex-col px-2"},W={class:"flex w-full flex-col space-y-2"},X=e({__name:"SearchVideoView",setup(e){const s=h();return(e,t)=>(f(),a("div",R,[t[0]||(t[0]=l("div",{class:"flex w-full flex-row items-center py-3"},[l("i",{class:"iconfont icon-hot-for-ux-fill text-orange-500",style:{"font-size":"20px"}}),l("p",{class:"ml-2 text-[18px] font-bold text-white/80"},"搜索结果")],-1)),l("div",W,[(f(!0),a(u,null,p(o(s).vodList,(e,s)=>(f(),d(N,{model:e,key:s},null,8,["model"]))),128))])]))}}),B={class:"w-full"},F=e({__name:"index",setup(e){const s=h(),l=w(),r=P();function n(e){v(r.path,{pageNo:e,key:s.keywords})}return t(()=>{var e,t;if(null==(e=r.query)?void 0:e.key){const e=r.query.key;s.setKeywords(e)}if(null==(t=r.query)?void 0:t.pageNo){const e=Number(r.query.pageNo);s.setPage(e)}else s.setPage(1);y.isEmpty(s.keywords)||(s.resetTotalPage(),s.requestSearch())}),(e,t)=>(f(),a("div",B,[o(l).topImgAd.length>0?(f(),d(z,{key:0,model:o(l).getTopImgAd},null,8,["model"])):x("",!0),k(q),k(E),o(s).isLoading?(f(),d(S,{key:1})):x("",!0),o(s).isLoading?x("",!0):(f(),d(X,{key:2})),o(s).totalPage>1?(f(),d(_,{key:3,"onUpdate:currentPage":[n,t[0]||(t[0]=e=>o(s).pageNo=e)],totalPage:o(s).totalPage,pageSize:o(s).pageSize,currentPage:o(s).pageNo,class:"mt-5"},null,8,["totalPage","pageSize","currentPage"])):x("",!0),k(b,{class:"mt-5"})]))}});export{F as default};
