(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8b7151ca"],{"1d3f":function(e,t,c){e.exports=c.p+"img/welfare_bg.fcba194e.png"},"3e78":function(e,t,c){"use strict";c("b50f")},"5d6d":function(e,t,c){"use strict";c("d1a5")},8784:function(e,t,c){"use strict";c("e44c")},acb6:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAbBJREFUWEftmL1NBDEQhd8kkEIJ0IKdUAKHCDhCSiCgFgJKIAQhIY4SLrFbgBIghWSQpV0JWfZ67PHBIm7DlWfm2zc/tpcw84dmzoctoDZDf1NBa+2KmY+I6MI5t9KqMGVvrV0w8y0RrZ1zi3htUkFjzBuAPQAfAM6990+bgDTGnAC4A7AL4N17vy8CHL7qfjDcCOQAF2LsBCGIaJnKVrYGNwkZKZeFC2pONknsqEe6Y+VKPotdHDn8BLBsrckWX0XAIHOL47jYW32IALWQrXDFGuyhggauGrBWSS1cE6AUsgdcM2AJshecCjAHOdTtuEOoxpIaMAMZXoftSw3XBTABGV51gfsfgImGmE+KU906myaZGiW/PmYkAJI1klO6+LAwOqsJXLM2B1sF2BKwxeY7rBhQE0hjKwLUBGgpjSoFe8BpICWXpm4bf+kUlGqULGBP5Qon88l7dxLQWnvMzA/jpbp0NZTMsxIkEZ05557jdTnAF2Y++MlfH0T06pw7FAEaY66J6BTAZeqrWhTL2YRsAbhh5kfv/ZUIsCeA1pdoDmqDaOy3gBr1uh35tRBT9l+VEFk4dJ+VdQAAAABJRU5ErkJggg=="},b50f:function(e,t,c){},d1a5:function(e,t,c){},e44c:function(e,t,c){},efe3:function(e,t,c){"use strict";c.r(t);var a=c("fa47"),l=c("23f9"),o=c("7a23"),n=c("1fba"),s=c("fa7c"),r=c("e5f6"),i=c("8db7"),d=c("80ac"),b=c("05df"),j=c("efd9"),O=c("f23a");const[u,p,m]=Object(n["a"])("search"),k=Object(s["a"])({},d["b"],{label:String,shape:Object(r["e"])("square"),leftIcon:Object(r["e"])("search"),clearable:r["g"],actionText:String,background:String,showAction:Boolean});var v=Object(o["defineComponent"])({name:u,props:k,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:c,attrs:a}){const l=Object(b["a"])(),n=Object(o["ref"])(),r=()=>{c.action||(t("update:modelValue",""),t("cancel"))},u=c=>{const a=13;c.keyCode===a&&(Object(i["e"])(c),t("search",e.modelValue))},k=()=>e.id||l+"-input",v=()=>{if(c.label||e.label)return Object(o["createVNode"])("label",{class:p("label"),for:k()},[c.label?c.label():e.label])},f=()=>{if(e.showAction){const t=e.actionText||m("cancel");return Object(o["createVNode"])("div",{class:p("action"),role:"button",tabindex:0,onClick:r},[c.action?c.action():t])}},g=()=>{var e;return null==(e=n.value)?void 0:e.blur()},E=()=>{var e;return null==(e=n.value)?void 0:e.focus()},h=e=>t("blur",e),B=e=>t("focus",e),V=e=>t("clear",e),A=e=>t("clickInput",e),y=e=>t("clickLeftIcon",e),N=e=>t("clickRightIcon",e),I=Object.keys(d["b"]),w=()=>{const l=Object(s["a"])({},a,Object(s["k"])(e,I),{id:k()}),r=e=>t("update:modelValue",e);return Object(o["createVNode"])(O["a"],Object(o["mergeProps"])({ref:n,type:"search",class:p("field",{"with-message":l.errorMessage}),border:!1,onBlur:h,onFocus:B,onClear:V,onKeypress:u,onClickInput:A,onClickLeftIcon:y,onClickRightIcon:N,"onUpdate:modelValue":r},l),Object(s["k"])(c,["left-icon","right-icon"]))};return Object(j["a"])({focus:E,blur:g}),()=>{var t;return Object(o["createVNode"])("div",{class:p({"show-action":e.showAction}),style:{background:e.background}},[null==(t=c.left)?void 0:t.call(c),Object(o["createVNode"])("div",{class:p("content",e.shape)},[v(),w()]),f()])}}});const f=Object(l["a"])(v);c("68ef"),c("cb51"),c("3743"),c("1a04"),c("1146"),c("f032b");var g=c("6605"),E=c("5913"),h=(c("d510"),c("fc91")),B=c("1d3f"),V=c.n(B),A=c("0530");const y=e=>(Object(o["pushScopeId"])("data-v-2dd7c4c4"),e=e(),Object(o["popScopeId"])(),e),N={class:"hot-list-wrap"},I=y(()=>Object(o["createElementVNode"])("div",{class:"hot-title"},null,-1)),w={class:"list"},C={key:0,class:"loading-wrap"},S={key:1},x=["onClick"],D={class:"left-part flex-ac"},L={class:"pic-wrap"},_=["src"],F={class:"status"},J={class:"info-card"},M={class:"name"},U={class:"label"},G={class:"status"};var K={__name:"hotList",setup(e){const t=Object(o["ref"])([]),c=Object(o["ref"])(!0),a=e=>{e.target.src=V.a},l=async e=>{await A["a"].playVideoById({drama_id:e.spid+"",platform:e.platform})};return Object(o["onMounted"])(async()=>{const{data:e}=await Object(h["g"])({page:1,sort:"search_hot",size:10});c.value=!1,t.value=e.list}),(e,n)=>{const s=E["a"];return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",N,[I,Object(o["createElementVNode"])("div",w,[c.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",C,[Object(o["createVNode"])(s,{color:"linear-gradient( 138deg, #50E4E8 0%, #0ED674 100%)"})])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",S,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(t.value,(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"card-item flex-ac-jb",onClick:t=>l(e),key:t},[Object(o["createElementVNode"])("div",D,[Object(o["createElementVNode"])("div",L,[Object(o["createElementVNode"])("img",{class:"img",src:e.cover,onError:n[0]||(n[0]=e=>a(e)),alt:""},null,40,_),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["rank","level"+(t+1)])},Object(o["toDisplayString"])(t+1),3),Object(o["createElementVNode"])("div",F,Object(o["toDisplayString"])(e.sp_status?"未完结":"已完结"),1)]),Object(o["createElementVNode"])("div",J,[Object(o["createElementVNode"])("div",M,Object(o["toDisplayString"])(e.title),1),Object(o["createElementVNode"])("div",U,Object(o["toDisplayString"])(e.cname),1),Object(o["createElementVNode"])("div",G,Object(o["toDisplayString"])(e.sp_status?"未完结":"已完结"),1)])]),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["right-part","level"+(t+1)])},Object(o["toDisplayString"])((e.collect_num/1e4).toFixed(1))+"万人在追 ",3)],8,x))),128))]))])])}}},T=(c("8784"),c("6b0d")),W=c.n(T);const z=W()(K,[["__scopeId","data-v-2dd7c4c4"]]);var Q=z,R=c("acb6"),Y=c.n(R),Z=c("2849");const q=e=>(Object(o["pushScopeId"])("data-v-71d5a384"),e=e(),Object(o["popScopeId"])(),e),X={class:"search-page"},H={class:"search-header flex-ac"},P={class:"content"},$=q(()=>Object(o["createElementVNode"])("div",{class:"search-icon"},[Object(o["createElementVNode"])("i",{class:"icon"})],-1)),ee={class:"search-content"},te={key:0,class:"init-status"},ce={key:0,class:"history-wrap"},ae=q(()=>Object(o["createElementVNode"])("div",{class:"title"},null,-1)),le={class:"history-list"},oe=["onClick"],ne={key:1,class:"search-status"},se={key:0},re=["onClick"],ie={class:"left-part"},de=["src"],be={class:"right-part"},je={class:"title"},Oe={class:"text"},ue={class:"desc"};var pe={__name:"index",setup(e){const t=Object(o["ref"])(null),c=Object(o["ref"])(""),l=Object(o["ref"])([]),n=Object(o["ref"])([]),s=Object(o["ref"])(!1),r=Object(g["d"])(),i=()=>{r.back()},d=async e=>{await A["a"].playVideoById({drama_id:e.spid+"",platform:e.platform})},b=async()=>{await Object(Z["a"])({message:"清除后此前搜索记录都会消失哦~",title:"确认清除搜索记录吗？",cancelButtonText:"再想想",className:"delhistory-confirm"}),await Object(h["b"])(),l.value=[]},j=()=>{s.value=!1,n.value=[],c.value=""},O=e=>{c.value=e,u()},u=async e=>{const{data:t}=await Object(h["g"])({page:1,size:10,keyword:c.value});s.value=!0,n.value=t.list.map(e=>({...e,titleArr:e.title.split("")}))},p=e=>{e.target.src=V.a};return Object(o["onMounted"])(async()=>{Object(o["nextTick"])(()=>{t.value.$el.querySelector("input").focus()});const{data:e}=await Object(h["h"])();l.value=e.history}),(e,r)=>{const m=f,k=a["a"];return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",X,[Object(o["createElementVNode"])("div",H,[Object(o["createElementVNode"])("i",{class:"left-icon",onClick:i}),Object(o["createElementVNode"])("div",P,[$,Object(o["createVNode"])(m,{ref_key:"searchRef",ref:t,modelValue:c.value,"onUpdate:modelValue":r[0]||(r[0]=e=>c.value=e),autocomplete:"off",placeholder:"搜索剧名/主角名",clearable:"",onSearch:u,"clear-icon":Object(o["unref"])(Y.a),onClear:j},null,8,["modelValue","clear-icon"])]),Object(o["createElementVNode"])("div",{class:"right-btn",onClick:u},"搜索")]),Object(o["createElementVNode"])("div",ee,[s.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ne,[n.value.length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",se,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(n.value,(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"search-item",onClick:t=>d(e),key:t},[Object(o["createElementVNode"])("div",ie,[Object(o["createElementVNode"])("img",{class:"cover",src:e.cover,alt:"",onError:r[1]||(r[1]=e=>p(e))},null,40,de)]),Object(o["createElementVNode"])("div",be,[Object(o["createElementVNode"])("div",je,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e.titleArr,(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:t,class:Object(o["normalizeClass"])([e===c.value?"bold":""])},Object(o["toDisplayString"])(e),3))),128))]),Object(o["createElementVNode"])("div",Oe,Object(o["toDisplayString"])(e.cname),1),Object(o["createElementVNode"])("div",ue,Object(o["toDisplayString"])(e.desc),1)])],8,re))),128))])):(Object(o["openBlock"])(),Object(o["createBlock"])(k,{key:1,text:"暂无搜索内容"}))])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",te,[l.value.length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ce,[Object(o["createElementVNode"])("div",{class:"history-header flex-ac-jb"},[ae,Object(o["createElementVNode"])("div",{class:"del",onClick:b})]),Object(o["createElementVNode"])("div",le,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(l.value,(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"history-item",key:t,onClick:t=>O(e)},Object(o["toDisplayString"])(e),9,oe))),128))])])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(Q)]))])])}}};c("5d6d");const me=W()(pe,[["__scopeId","data-v-71d5a384"]]);t["default"]=me},f032:function(e,t,c){e.exports=c.p+"img/empty.c9c42a18.png"},f032b:function(e,t,c){},fa47:function(e,t,c){"use strict";var a=c("7a23"),l=c("f032"),o=c.n(l),n=c("26a1");const s={class:"empty-container"},r={class:"text"};var i={__name:"index",props:["text","width"],setup(e){return(t,c)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",s,[Object(a["createElementVNode"])("img",{class:"img",style:Object(a["normalizeStyle"])({width:Object(a["unref"])(n["a"])(e.width||340)+"px"}),src:o.a,alt:""},null,4),Object(a["createElementVNode"])("div",r,Object(a["toDisplayString"])(e.text||"暂无在追的剧，去看剧吧"),1)]))}},d=(c("3e78"),c("6b0d")),b=c.n(d);const j=b()(i,[["__scopeId","data-v-76d8a133"]]);t["a"]=j}}]);