PageSourceSearch

https://www.campbellsci.com/_nuxt/CZGa9h4y.js

js campbellsci.com collected 2026-09-24 18:32:39 UTC 3,936 bytes, 1 lines download raw bytes

1import M from"./B_JxN8_J.js";import{_ as $}from"./CTSRLF2_.js";import{U,w as V,k as T,bz as D,ad as A,G as q,M as E,at as z,N as h,Y as t,v as I,O as a,Q as n,aI as F,ao as o,ap as _,aB as d,P as i,S as c,aE as l,a1 as m}from"./DPjEYeee.js";import{_ as G}from"./BFBVm_tN.js";import{s as O,b as Q}from"./DfbgfAzy.js";import{f as B}from"./DpVNyPO3.js";import{u as W}from"./u6oxT1ww.js";import{u as Y}from"./BQE8c3rS.js";import{u as j}from"./C09lJO9y.js";import"./C-imVok5.js";import"./DQs3xni1.js";import"./DUFVYz29.js";import"./DkVf4-47.js";import"./BIbgPxdT.js";const J={class:"space-y-2 mt-2"},K=["innerHTML"],X={key:1,class:"text-neutral-700 text-pretty my-3 leading-8 tracking-tight whitespace-pre-line"},Z={key:0},ee={class:"capitalize"},te={key:1},se={key:2},ae={key:3},oe={key:4},ne={key:5},xe=U({__name:"[slug]",async setup(re){let u,p;const N=V(),{sectionPath:P,backToSection:C}=W("/resources/events"),y=N.params.slug,k=(Array.isArray(y)?y[0]:y)||"";if(!k)throw T({statusCode:404,statusMessage:"Event not found"});const{data:e,pending:v}=([u,p]=D(()=>Y("events",k)),u=await u,p(),u);e.value&&k.toLowerCase()!==e.value.slug&&([u,p]=D(()=>I(`/resources/events/${e.value.slug}`,{})),await u,p()),A(()=>{if(!v.value&&(!e.value||e.value.section!=="events"))throw T({statusCode:404,statusMessage:"Event not found"})});const f=m(()=>B(e.value?.startDate)),g=m(()=>B(e.value?.endDate)),x=m(()=>f.value?!g.value||g.value===f.value?f.value:`${f.value} - ${g.value}`:"");q({title:m(()=>`${Q(e.value?.name||"")||"Event"} | Events | Resources | Campbell Scientific`),description:m(()=>(e.value?.summary||"").slice(0,280))});const{bodyText:w,hasHtml:H}=j(m(()=>e.value?.description||e.value?.summary),"No additional details are available for this event yet.");return(b,s)=>{const r=M,R=$,S=F,L=G;return a(),E(L,{title:t(e)?.name||"Event",description:"Webinars, trade shows, training courses, and conferences","section-name":"Events","section-path":t(P),"back-to":t(C),"back-label":"Back To Events","sidebar-label":"Event Details"},z({main:h(()=>[t(v)?(a(),o(_,{key:0},[n(r,{class:"h-8 w-3/4 rounded-lg"}),i("div",J,[n(r,{class:"h-4 rounded w-full"}),n(r,{class:"h-4 rounded w-full"}),n(r,{class:"h-4 rounded w-5/6"}),n(r,{class:"h-4 rounded w-full"}),n(r,{class:"h-4 rounded w-4/5"})])],64)):(a(),o(_,{key:1},[i("h1",{class:"text-2xl font-semibold text-highlighted leading-snug",innerHTML:("safeHtml"in b?b.safeHtml:t(O))(t(e)?.name||"Event")},null,8,K),t(H)?(a(),E(R,{key:0,html:t(w)},null,8,["html"])):(a(),o("p",X,l(t(w)),1))],64))]),sidebar:h(()=>[t(v)?(a(),o(_,{key:0},[n(r,{class:"h-4 rounded w-2/3"}),n(r,{class:"h-4 rounded w-1/2"}),n(r,{class:"h-4 rounded w-3/4"})],64)):(a(),o(_,{key:1},[t(e)?.eventTypeName?(a(),o("p",Z,[s[0]||(s[0]=i("strong",{class:"text-neutral-800"},"Type:",-1)),s[1]||(s[1]=c()),i("span",ee,l(t(e).eventTypeName),1)])):d("",!0),t(x)?(a(),o("p",te,[s[2]||(s[2]=i("strong",{class:"text-neutral-800"},"Date:",-1)),c(" "+l(t(x)),1)])):d("",!0),t(e)?.startDisplayTime?(a(),o("p",se,[s[3]||(s[3]=i("strong",{class:"text-neutral-800"},"Time:",-1)),c(" "+l(t(e).startDisplayTime),1)])):d("",!0),t(e)?.locationName?(a(),o("p",ae,[s[4]||(s[4]=i("strong",{class:"text-neutral-800"},"Location:",-1)),c(" "+l(t(e).locationName),1)])):d("",!0),t(e)?.isPaymentRequired&&t(e)?.ticketDisplayPrice?(a(),o("p",oe,[s[5]||(s[5]=i("strong",{class:"text-neutral-800"},"Price:",-1)),c(" "+l(t(e).ticketDisplayPrice),1)])):t(e)?.isPaymentRequired&&t(e)?.ticketPrice?(a(),o("p",ne,[s[6]||(s[6]=i("strong",{class:"text-neutral-800"},"Price:",-1)),c(" "+l(t(e).ticketPrice),1)])):d("",!0)],64))]),_:2},[!t(v)&&t(e)?.eventUrl?{name:"sidebar-extra",fn:h(()=>[n(S,{label:"Register / Learn More",icon:"i-lucide-external-link",color:"primary",variant:"soft",to:t(e).eventUrl,target:"_blank",rel:"noopener noreferrer",external:"",block:""},null,8,["to"])]),key:"0"}:void 0]),1032,["title","section-path","back-to"])}}});export{xe 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.