import{C as e,r as l,b as s,P as t,N as a,B as i,O as o,Q as n,S as c,F as u,J as p,a0 as r,H as d,U as x,u as h,X as m,R as f,M as v,W as k,T as w,V as y}from"./chunk-BRI0aX6c.js";/* empty css              */import{k as g,v as j,o as _,S as b,d as C,f as A,b as S}from"./souav-I_ihqEhP.js";import"./chunk-D1JGNTfG.js";import"./chunk-9PZSJnHb.js";import"./chunk-Bf-nSo-6.js";import"./chunk-DwkOxDMO.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";const T={key:0,class:"flex h-full w-full flex-col overflow-y-auto bg-black"},B={class:"flex h-[50px] w-full flex-row items-center"},V={class:"flex w-full flex-wrap gap-2 px-3 pt-3"},L=["onClick"],z={key:0,class:"absolute right-[-5px] top-[-5px] rounded-[2px] bg-[#fc4274] p-[2px] text-[8px] leading-none text-white"},F={class:"mt-5 w-full px-3"},I={key:0,class:"grid w-full grid-cols-2 gap-x-2"},K=S(e({__name:"SideSearchView",emits:["clickClose"],setup(e,{expose:S,emit:K}){const O=l("pointer-events-none"),R=l(!1),U=K,W=l(""),q=g(),E=()=>{R.value=!1,O.value="pointer-events-none",U("clickClose")},H=()=>{b.isEmpty(W.value)||(C("/search",{key:W.value}),E())};s(()=>{});const J=l("height: 120px");function M(){J.value="height: auto"}function N(e){A.clickAd(e)}return S({show:()=>{O.value="",W.value="",R.value=!0,q.requestRecommendSearch()},hide:E}),(e,l)=>(a(),t("div",{class:y(["fixed bottom-[56px] top-[0px] z-[11] flex h-full w-full max-w-[480px] flex-col",O.value])},[i(w,{"enter-active-class":"animate__animated animate__slideInLeft","leave-active-class":"animate__animated animate__slideOutLeft",style:{"animation-duration":"0.3s"}},{default:o(()=>[R.value?(a(),t("div",T,[c("div",B,[u(c("input",{type:"search",placeholder:"请输入文字","onUpdate:modelValue":l[0]||(l[0]=e=>W.value=e),onKeyup:p(H,["enter"]),class:"grow bg-transparent py-3 pl-3 text-[14px] text-white placeholder-gray-400 focus:outline-none"},null,544),[[r,W.value]]),c("i",{class:"iconfont icon-search ml-1 flex h-full items-center justify-center px-3 text-white",style:{"font-size":"20px"},onClick:H}),c("button",{class:"ml-3 h-full bg-transparent px-3 text-[14px] text-white",onClick:E},"取消")]),l[2]||(l[2]=c("div",{class:"h-[1px] w-full bg-white opacity-30"},null,-1)),l[3]||(l[3]=c("p",{class:"pl-3 pt-3 text-[15px] text-white"},"推荐搜索",-1)),c("div",V,[(a(!0),t(d,null,x(h(q).recommendWordKeys,(e,l)=>(a(),t("div",{class:"relative rounded-[3px] bg-[#252525] px-2 py-1 text-[14px]",onClick:l=>(C("/search",{key:e}),void E())},[m(f(e)+" ",1),0===l?(a(),t("p",z,"热")):n("",!0)],8,L))),256))]),c("div",F,[h(q).hasTitleBelowAdv?(a(),t("div",I,[(a(!0),t(d,null,x(h(q).titleBelowAdvList,(e,l)=>(a(),v(j,{onClick:l=>N(e),url:e.img,key:l,class:"w-full","img-height":100},null,8,["onClick","url"]))),128))])):n("",!0),h(q).hasVideoTopAdv?(a(),v(_,{key:1,onClick:l[1]||(l[1]=e=>N(h(q).videoTopAdv)),style:k(J.value),class:"mt-[10px] w-full",url:h(q).videoTopAdv.img,loadFinishCB:M},null,8,["style","url"])):n("",!0)])])):n("",!0)]),_:1})],2))}}),[["__scopeId","data-v-6d96254e"]]);export{K as default};
