PageSourceSearch

https://s.dvdfab.cn/dist/202603/_nuxt3/XEv8sbtR.js

js dvdfab.cn collected 2026-10-01 11:44:32 UTC 3,397 bytes, 1 lines download raw bytes

1import{_ as N}from"./BwiXLyyd.js";import{d as V,q as j,f as E,h as O,V as F,b as Y,K as G,j as J,P as K,_ as Q}from"./BJcqSMT3.js";import{_ as U}from"./YE3RRX1U.js";import{_ as W}from"./CTqRORW6.js";import{_ as X}from"./CPNxt0cf.js";import{l as Z,r,aD as ee,m as u,L as p,s as o,J as w,o as n,F as S,O as L,u as t,I as T,G as te,as as se}from"./CAlMLsb9.js";import"./sYKhRYzv.js";import"./DrKiPQJy.js";const ae={class:"theme-common"},oe={class:"title3"},ne={key:0,class:"pt-4a search-result"},le={class:"question"},ce={class:"flex"},re={key:0,class:"flex-1 search-content"},ue=["innerHTML"],ie=["innerHTML"],m=10,_e=Z({__name:"search",async setup(pe){var C,R;let d,P;const $=V.common().locale,a=j().query.q,q=E().value,A=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),I=new RegExp(A(a||""),"gi"),g=e=>e?a?e.replace(I,s=>`<span class="query-text">${s}</span>`):e:"";r(1);const l=r(0),f=r([]),b=r([]),[i,y]=([d,P]=ee(()=>Promise.all([J({"populate[seo][populate]":"*","[filters][slug][$eq]":"resource-search-result","populate[locales][populate]":"*",locale:$}),K().apiArticle.searchResourceArticle({locale:$,keyword:a,len:50})])),d=await d,P(),d);f.value=(((R=(C=y==null?void 0:y.data)==null?void 0:C.value)==null?void 0:R.data)||[]).map(e=>{var s;return{...e,title:g(e.title),summary:g(e.summary),description:g(e.description),img:e.cover_img||e.cover_image||"",authorLink:`/author/${(s=e.author)==null?void 0:s.toLowerCase()}.htm`,imgAlt:e.subtype||e.title}}),b.value=f.value.slice(0,m),l.value=f.value.length,O({title:i.metaTitle,...i.seo||{}});const c=F((i==null?void 0:i.locales)||[]),x=r(null),B=e=>{var _,h;b.value=f.value.slice((e-1)*m,e*m);const s=window.scrollY||window.pageYOffset,k=((_=x.value)==null?void 0:_.getBoundingClientRect().top)+s;s>k&&((h=x.value)==null||h.scrollIntoView({behavior:"smooth",block:"start"}))},z=r([{label:q.article.home,link:"/",active:!1},{label:q.common.resources,link:"/resource",active:!1},{label:c.bread_nav_search,link:"",active:!0}]);return(e,s)=>{const k=N,_=Y,h=G,D=U,H=W,M=X;return n(),u("div",ae,[p(h,{size:"small",class:"min-h-248 flex items-center search-top-banner"},{default:w(()=>[p(_,{class:"w-full flex items-center justify-between top-banner"},{default:w(()=>[o("div",null,[o("h1",oe,L(t(c).bread_nav_search),1),t(a)&&t(l)?(n(),u("div",ne,[o("span",null,L(`${t(l)} ${t(c).result_for} "`),1),o("span",le,L(t(a)),1),s[1]||(s[1]=o("span",null,'"',-1))])):S("",!0)]),p(k,{placeholder:t(c).search_placeholder,"default-value":t(a)?decodeURIComponent(t(a)):"",type:"resource",class:"max-w-520"},null,8,["placeholder","default-value"])]),_:1})]),_:1}),o("section",{ref_key:"contentRef",ref:x,class:"pb-30a scroll-mt-72"},[p(_,null,{default:w(()=>[p(D,{class:"pt-40 pb-44 article-breadcrumb",list:t(z)},null,8,["list"]),o("div",ce,[t(l)?(n(),u("div",re,[o("ul",null,[(n(!0),u(te,null,se(t(b),v=>(n(),T(H,{key:v.id,"has-author-link":!1,"card-data":v,type:"resource"},null,8,["card-data"]))),128))]),t(l)>m?(n(),T(M,{key:0,class:"mt-20a",total:t(l),type:"event","page-size":m,onChangePage:s[0]||(s[0]=v=>B(v))},null,8,["total"])):S("",!0)])):t(a)?(n(),u("div",{key:1,class:"flex-1 search-content search-content-empty",innerHTML:t(c).search_empty},null,8,ue)):(n(),u("div",{key:2,class:"flex-1 search-content search-content-empty",innerHTML:t(c).search_tips},null,8,ie))])]),_:1})],512)])}}}),ke=Q(_e,[["__scopeId","data-v-064d690f"]]);export{ke 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.