PageSourceSearch

https://www.campbellsci.com/_nuxt/Cx-Vq8Ex.js

js campbellsci.com collected 2026-09-24 18:33:21 UTC 5,599 bytes, 1 lines download raw bytes

1import{_ as Z}from"./C-imVok5.js";import{_ as K}from"./Bfm-pKpA.js";import{n as X,U as ee,w as te,x as oe,a0 as re,aJ as C,G as ae,ao as a,Q as s,Y as o,aW as q,N as g,ap as u,O as r,P as m,aB as c,M as B,b4 as se,S as i,aC as ne,a1 as w,aE as y,aq as D,b0 as le}from"./DPjEYeee.js";import{_ as ie}from"./_8VcWmA4.js";import ue from"./B_JxN8_J.js";import de from"./BA6eUCMs.js";import me from"./DLoriMgU.js";import pe from"./DUFVYz29.js";import{_ as ce}from"./DkVf4-47.js";import{t as fe}from"./DpVNyPO3.js";import{u as ge}from"./CnwQQIRv.js";import{u as ye}from"./CAgokMAX.js";import"./DQs3xni1.js";import"./UCPWY6Xk.js";import"./DfbgfAzy.js";import"./CKBM4nVv.js";const _e=()=>X("/api/software-downloads",{key:"software-downloads-active",default:()=>[]},"$_fJG3YZzs0"),we={"aria-label":"Breadcrumb",class:"flex flex-wrap items-center gap-1.5 text-sm text-neutral-500"},ve={key:0,class:"text-sm text-neutral-500"},xe={key:1,class:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3"},Se={class:"text-neutral-600"},be={class:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3"},Ce={key:0,class:"mt-10 flex justify-center"},Le=ee({__name:"index",setup(ke){const _=te(),N=oe(),{data:P,pending:k,error:h}=_e(),d=re((Array.isArray(_.query.type)?_.query.type[0]:_.query.type)||null),{searchInput:n,currentPage:$,buildRouteQuery:V,applySearch:A,clearSearch:T}=ge({extraParams:()=>({type:d.value||void 0})});function O(t){return t.updateNoticeDate||t.updatedAt}function v(t){return fe(O(t))}const x=w(()=>[...P.value??[]].sort((t,e)=>v(e)-v(t)||t.name.localeCompare(e.name,void 0,{sensitivity:"base"}))),p=w(()=>{let t=x.value;const e=n.value.trim().toLowerCase();return e&&(t=t.filter(f=>f.name.toLowerCase().includes(e))),d.value&&(t=t.filter(f=>f.downloadType===d.value)),t}),R=w(()=>({software:x.value.filter(t=>t.downloadType==="software").length,os:x.value.filter(t=>t.downloadType==="os").length})),F=w(()=>[{id:"software",label:"Software Applications",icon:"i-lucide-monitor",count:R.value.software,badgeColor:"primary"},{id:"os",label:"OS and Firmware",icon:"i-lucide-cpu",count:R.value.os,badgeColor:"secondary"}]),{page:S,totalPages:z,paginated:I,resetPage:L}=ye(p,20);C(p,()=>L()),C(d,()=>{$.value=1,N.push({query:V()})}),C(()=>_.query.type,t=>{const e=(Array.isArray(t)?t[0]:t)||null;e!==d.value&&(d.value=e)});function M(t){const e=v(t);return{id:String(t.id),title:t.name,summary:t.description??"",path:`/resources/software/${t.slug}`,section:"software",highlight:"",updatedAtTimestamp:e?Math.floor(e/1e3):null,version:t.version,downloadType:t.downloadType,isBeta:t.isBeta,isRegistrationRequired:t.isRegistrationRequired}}return ae({title:"Software and OS Downloads | Resources | Campbell Scientific",description:"Browse software applications, data logger operating systems, and firmware for Campbell Scientific products"}),(t,e)=>{const f=Z,H=K,E=se,b=ne,G=ie,J=ue,U=le,Q=de,Y=me,j=pe,W=ce;return r(),a(u,null,[s(f,{headline:"Resource Center",title:"Software and OS Downloads",description:"Software applications, data logger operating systems, firmware, and drivers for Campbell Scientific products"}),s(H,{modelValue:o(n),"onUpdate:modelValue":e[0]||(e[0]=l=>q(n)?n.value=l:null),placeholder:"Search Software and OS...",onSubmit:o(A),onClear:o(T)},null,8,["modelValue","onSubmit","onClear"]),s(W,null,{default:g(()=>[s(j,{class:"py-8 md:py-12 space-y-6"},{default:g(()=>[m("nav",we,[s(E,{to:"/resources",class:"hover:text-primary-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 rounded-sm"},{default:g(()=>[...e[3]||(e[3]=[i("Resources",-1)])]),_:1}),s(b,{name:"i-lucide-chevron-right",class:"size-3.5"}),e[4]||(e[4]=m("span",{class:"text-highlighted font-medium"},"Software and OS",-1))]),s(G,{sections:o(F),"model-value":o(d),"onUpdate:modelValue":e[1]||(e[1]=l=>d.value=l)},null,8,["sections","model-value"]),o(k)?c("",!0):(r(),a("p",ve,[o(p).length>0?(r(),a(u,{key:0},[i(y(o(p).length)+" "+y(o(p).length===1?"result":"results")+" ",1),o(n).trim()?(r(),a(u,{key:0},[e[5]||(e[5]=i(' for "',-1)),m("strong",null,y(o(n).trim()),1),e[6]||(e[6]=i('"',-1))],64)):c("",!0)],64)):o(h)?c("",!0):(r(),a(u,{key:1},[e[9]||(e[9]=i(" No results found",-1)),o(n).trim()?(r(),a(u,{key:0},[e[7]||(e[7]=i(' for "',-1)),m("strong",null,y(o(n).trim()),1),e[8]||(e[8]=i('"',-1))],64)):c("",!0)],64))])),o(k)?(r(),a("div",xe,[(r(),a(u,null,D(6,l=>s(J,{key:l,class:"h-24 rounded-2xl"})),64))])):o(h)?(r(),B(U,{key:2,ui:{body:"py-12 text-center"}},{default:g(()=>[s(b,{name:"i-lucide-alert-circle",class:"size-12 text-error-500 mx-auto mb-3"}),e[10]||(e[10]=m("p",{class:"text-neutral-600"},"Unable to load downloads. Please try again.",-1))]),_:1})):o(p).length===0?(r(),B(U,{key:3,ui:{body:"py-12 text-center"}},{default:g(()=>[s(b,{name:"i-lucide-search-x",class:"size-12 text-neutral-400 mx-auto mb-3"}),m("p",Se,[e[13]||(e[13]=i(" No downloads found",-1)),o(n).trim()?(r(),a(u,{key:0},[e[11]||(e[11]=i(' for "',-1)),m("strong",null,y(o(n).trim()),1),e[12]||(e[12]=i('"',-1))],64)):c("",!0)])]),_:1})):(r(),a(u,{key:4},[m("ul",be,[(r(!0),a(u,null,D(o(I),l=>(r(),a("li",{key:l.id},[s(Q,{hit:M(l)},null,8,["hit"])]))),128))]),o(z)>1?(r(),a("div",Ce,[s(Y,{page:o(S),"onUpdate:page":e[2]||(e[2]=l=>q(S)?S.value=l:null),total:o(p).length,"items-per-page":20,"sibling-count":1,class:"border border-neutral-200 px-6 py-2 rounded-full",ui:{first:"rounded-full hover:bg-primary-400",prev:"rounded-full hover:bg-primary-400",next:"rounded-full hover:bg-primary-400",last:"rounded-full hover:bg-primary-400"}},null,8,["page","total"])])):c("",!0)],64))]),_:1})]),_:1})],64)}}});
1export{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.