1import{_ as x}from"./BvWtaWD2.js";import{u as N,_ as R}from"./BO68U7-t.js";import{_ as Y}from"./DowdIBP2.js";import{_ as z}from"./BA_hDSs6.js";import{a as b}from"./DQZN56aP.js";import{d as A,k as y,z as H,B as m,c as _,b as f,g as w,h as l,w as P,$ as M,v as g,y as E,a2 as F,x as O,r as U,o as h,i as V}from"./CYMs3uwY.js";import{u as j}from"./ChMfYSUz.js";import"./CFprKcbD.js";import"./DZFYrRSL.js";import"./WTMGiHmx.js";const G={class:"article-search-container"},J={class:"recent-blog-section"},K=A({__name:"detail",setup(Q){const S=()=>{const e=M(),s=N(),n=a=>{var i;return!((i=s.categoryList)!=null&&i.length)||!a?null:s.categoryList.flatMap(c=>c.categoryList).find(c=>c.categoryId===a)||null},t=g(()=>n(e.query.cid)),o=g(()=>{var a;return e.query.keyword?`Search Results for "${e.query.keyword}"`:((a=t.value)==null?void 0:a.categoryName)||"All Articles"});return{currentCategory:t,searchTitle:o}},k=()=>{const e=M(),{currency:s}=E(),n={popularStatus:-1,categoryId:e.query.cid||"",authorId:"",keyword:e.query.keyword||"",isCarousel:"",current:1,size:20,countTotal:!0,currency:s},t=y(n),o=y([]),{data:a,status:u,refresh:i}=F.get("/blog/page",t.value);m(()=>{var r;return(r=a.value)==null?void 0:r.records},r=>{r&&(t.value.current===1?o.value=r:o.value=[...o.value,...r])},{immediate:!0});const c=g(()=>a.value?o.value.length<a.value.total:!1),T=async()=>{c.value&&(t.value.current+=1,await i())},v=()=>{t.value.current=1,o.value=[],i()};return m(()=>e.query.cid,r=>{t.value.categoryId=r||"",v()}),m(()=>e.query.keyword,r=>{t.value.keyword=r||"",v()}),O(()=>{t.value.current===1&&i()}),{blogList:o,status:u,hasMore:c,handleLoadMore:T,params:t}},{searchTitle:C}=S(),{blogList:L,status:$,hasMore:q,handleLoadMore:B}=k(),I=j(),p=y(),{lastScrollY:D}=H(I);let d=0;return m(D,(e,s)=>{if(p.value){const n=s-e;d+=n,d=Math.min(Math.max(d,-96),0),p.value.style.transform=`translateY(${d}px)`}}),(e,s)=>{const n=x,t=R,o=Y,a=z,u=U("motion");return h(),_("div",G,[f(n,{title:`${e.$t("name-club-blog")} | ${e.$t("premium-domain-insights-knowledge")}`,"meta-description":e.$t("discover-domain-tips-industry-news-and-expert-advice-with-name-club-learn-smart-strategies-and-apply-the-latest-trends-to-boost-your-domain-success")},null,8,["title","meta-description"]),w((h(),_("section",{ref_key:"categoryRef",ref:p,class:"blog-category"},[f(t)])),[[u,("animations"in e?e.animations:l(b)).fadeIn()]]),w((h(),_("section",J,[f(a,null,{default:P(()=>[f(o,{title:l(C),data:l(L),loading:l($)==="pending","has-more":l(q),onHandleLoadMore:l(B)},null,8,["title","data","loading","has-more","onHandleLoadMore"])]),_:1})])),[[u,("animations"in e?e.animations:l(b)).fadeIn(200)]])])}}}),le=V(K,[["__scopeId","data-v-423fdbba"]]);export{le 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.