PageSourceSearch

https://www.socolar.com/_nuxt/chunks/Search.17895311289702.js

js socolar.com collected 2026-09-24 19:36:29 UTC 3,404 bytes, 1 lines download raw bytes

1var V=(y,c,n)=>new Promise((o,l)=>{var u=s=>{try{r(n.next(s))}catch(i){l(i)}},h=s=>{try{r(n.throw(s))}catch(i){l(i)}},r=s=>s.done?o(s.value):Promise.resolve(s.value).then(u,h);r((n=n.apply(y,c)).next())});import{E,a as D}from"./el-select.1789531128970.js";import{h as q,a0 as T,p as z,G as p,ae as U,aj as j,r as F,o as d,g as S,y as m,A as _,J as v,F as I,q as A,t as g,ak as L,x as M,K as G,E as J,ah as O,a8 as R,al as H,_ as P}from"../entry.1789531128970.js";import{_ as Q}from"./index.178953112897013.js";import"./el-scrollbar.1789531128970.js";import"./el-popper.1789531128970.js";import W from"./SelectIcon.1789531128970.js";import X from"./SearchIcon.1789531128970.js";import"./debounce.1789531128970.js";import"./validator.1789531128970.js";import"./searchHistory.1789531128970.js";import"./platform.1789531128970.js";import"./home-select-icon.1789531128970.js";import"./home-search-icon.1789531128970.js";const Y={class:"components-search-box"},Z={class:"search-filter"},$={class:"search p-search-lenovo-fixed"},ee={class:"select-box"},ae={class:"button-box"},te=q({__name:"Search",setup(y){const c=T(),n=z(),o=p(void 0),l=p("theme"),u=()=>{if(!o.value)return J.error("请输入搜索内容"),!1;let a={eventType:"webClick",eventName:"放大镜按钮点击",paramName1:"分类词",paramKey1:"dictKey",paramValue1:l.value,paramName2:"输入词",paramKey2:"value",paramValue2:o.value};c.setStatData(a);let e={};e.rangeTypes="book",l.value&&o.value&&(e.korder=l.value,e.kw=o.value),setTimeout(()=>{const f=n.resolve({path:"/booksSearch",query:e});window.open(f.href)},0)},h=a=>{let e={eventType:"webClick",eventName:"分类词按钮点击",paramName1:"分类词",paramKey1:"dictKey",paramValue1:a};c.setStatData(e)},r=p(!1),s=()=>{r.value=!0;let a={eventType:"webClick",eventName:"检索框点击"};c.setStatData(a)},i=()=>{let a={};const e=n.resolve({path:"/advancedSearch",query:a});window.open(e.href)},k=p([]),w=()=>V(this,null,function*(){const{socolar_quickly_search_configuration:a}=yield O("socolar_quickly_search_configuration");k.value=a.filter(e=>e.remark.includes("current")||e.remark.includes("book"))}),x=a=>{a.keyCode===13&&u()};return U(()=>{w()}),j(()=>{}),(a,e)=>{const f=E,C=D,b=R,K=H,N=Q,B=F("statClick");return d(),S("div",Y,[m("div",Z,[m("div",$,[_(K,{modelValue:o.value,"onUpdate:modelValue":e[1]||(e[1]=t=>o.value=t),placeholder:"输入电子书名或关键词/Search publicatio…",class:"search-input",size:"large",onFocus:s,onKeydown:L(x,["enter"]),clearable:""},{prepend:v(()=>[m("div",ee,[_(C,{modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=t=>l.value=t),placeholder:"",style:{width:"130rem"},size:"large","suffix-icon":W,onChange:h},{default:v(()=>[(d(!0),S(I,null,A(k.value,t=>(d(),g(f,{key:t.dictKey,label:t.dictValue,value:t.dictKey},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),append:v(()=>[m("div",ae,[_(b,{icon:X,size:"large",onClick:u})])]),_:1},8,["modelValue","onKeydown"]),_(N,{lenovoVisible:r.value,"onUpdate:lenovoVisible":e[2]||(e[2]=t=>r.value=t),searchValue:o.value,"onUpdate:searchValue":e[3]||(e[3]=t=>o.value=t),width:"calc(100% - 338rem)",top:"50",left:"130"},null,8,["lenovoVisible","searchValue"]),M((d(),g(b,{class:"height-search",size:"large",onClick:i},{default:v(()=>[G("高级检索")]),_:1})),[[B,{eventName:"高级检索点击"}]])])])])}}});const fe=P(te,[["__scopeId","data-v-7cea2852"]]);export{fe 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.