PageSourceSearch

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

js campbellsci.com collected 2026-09-24 18:31:34 UTC 4,960 bytes, 1 lines download raw bytes

1import W from"./DQs3xni1.js";import E from"./Bu8zQJeA.js";import{U as H,T as Q,i as j,bz as F,ao as p,M as b,Q as n,Y as t,b7 as w,N as r,ap as h,h as G,O as l,a1 as c,at as Y,P as x,aI as J,b0 as K,aq as X,W as $,aB as Z,aM as ee,aW as te,a0 as oe}from"./DPjEYeee.js";import ne from"./DFL67zPt.js";import{_ as ie}from"./_cF7CpUZ.js";import re from"./DydmrGus.js";import ae from"./CN5qQByA.js";import le from"./BGKl6SyO.js";import{_ as se}from"./DpV0svzd.js";import ce from"./DUFVYz29.js";import{q as me}from"./ud4_Ojlb.js";import"./aMQlGB5R.js";import"./zX0r6Ewz.js";const ue={class:"pb-2 flex flex-col"},de={class:"hidden lg:block py-6"},Ce=H({__name:"content-page-navigation",props:{pageTitle:{},pageDescription:{},sidebarTitle:{},sidebar:{},items:{},links:{},noright:{type:Boolean},hero:{type:Boolean},image:{},vertical:{type:Boolean},heroReverse:{type:Boolean},buttonLinks:{},heroOverlay:{type:Boolean},heroAlign:{},heroTitle:{},heroUi:{}},async setup(a){let m,f;const _=Q();function v(i){return i.startsWith("https://res.cloudinary.com/campbellsci/")?_(i,{width:1920,quality:80},{provider:"cloudinary"}):_(i,{width:1920})}const e=a,U=c(()=>e.heroOverlay?e.heroAlign==="right"?"linear-gradient(to left, rgba(0,0,0,0.55), rgba(0,0,0,0.15)), ":e.heroAlign==="center"?"linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), ":"linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.2)), ":""),B=c(()=>e.vertical||e.heroAlign==="center"?"vertical":"horizontal"),T=c(()=>e.heroAlign==="right"?{root:"bg-cover bg-center",wrapper:"order-last"}:{root:"bg-cover bg-center"}),C=c(()=>({...T.value,...e.heroUi})),y=c(()=>e.buttonLinks?.map(i=>({...i,class:["min-w-0 max-w-full whitespace-normal text-center",i.class],ui:{...i.ui,label:["overflow-visible text-clip whitespace-normal text-wrap break-words",i.ui?.label]}}))),o=j("show-navigation",()=>!0),u=oe(!1),A=()=>{o.value=!o.value},z=()=>{u.value=!1},{data:P,error:ge,refresh:pe}=([m,f]=F(()=>G(()=>`layout-sidebar-${e.sidebar}`,()=>me("sidebars").where("group","=",e.sidebar).all(),"$Ifje1Q5sL2")),m=await m,f(),m);return(i,d)=>{const N=W,O=E,g=J,S=K,I=ne,L=ie,q=re,D=ae,k=le,M=ee,R=se,V=ce;return l(),p(h,null,[e.hero&&t(o)?(l(),b(N,{key:0,title:e.heroTitle||e.pageTitle,description:e.pageDescription,orientation:t(B),reverse:e.heroReverse,links:t(y),style:w(e.image?`background-image: ${t(U)}url(${v(e.image)})`:""),ui:t(C)},null,8,["title","description","orientation","reverse","links","style","ui"])):(l(),b(O,{key:1,title:e.pageTitle,description:e.pageDescription,links:t(y),ui:{root:`py-0 pt-8 ${t(o)?"pb-8 lg:pb-14":"pb-8 mb-0"} ${a.image?"bg-cover bg-center":""}`,container:`${t(o)?"mb-0 lg:mb-8":"mb-0"}`},style:w(a.image?`background-image: url(${v(e.image)});`:"")},null,8,["title","description","links","ui","style"])),n(V,null,{default:r(()=>[n(R,{ui:{center:`relative ${t(o)&&!a.noright?"lg:col-span-6":t(o)&&a.noright?"lg:col-span-8":"lg:col-span-10"}`,left:"py-0 lg:ps-0 lg:pe-0 lg:ms-0 lg:-mt-20"}},Y({default:r(()=>[t(o)&&e.items?(l(),p(h,{key:0},[n(k,{class:"mt-6 pr-12 sm:hidden",items:e.items.slice(-2)},null,8,["items"]),n(k,{class:"mt-6 hidden sm:block",items:e.items},null,8,["items"])],64)):Z("",!0),n(g,{class:"absolute top-5.5 right-0 z-20",variant:"outline",color:"neutral","aria-label":t(o)?"Expand content":"Show navigation",onClick:d[1]||(d[1]=s=>A())},{leading:r(()=>[n(M,{name:t(o)?"lucide:maximize-2":"lucide:minimize-2"},null,8,["name"])]),_:1},8,["aria-label"]),$(i.$slots,"default")]),_:2},[t(o)?{name:"left",fn:r(()=>[n(q,{ui:{root:"block lg:max-h-none"}},{default:r(()=>[n(I,{class:"flex flex-col mt-4 lg:hidden rounded-b-xl"},{content:r(()=>[n(S,{variant:"sidebar",ui:{root:"rounded-t-none shadow-none"}},{default:r(()=>[x("div",ue,[(l(!0),p(h,null,X(t(P),s=>(l(),b(g,{label:s.label,to:s.to,ui:{base:"rounded-none font-medium normal-case tracking-normal py-3 px-4 bg-transparent hover:bg-white hover:border-l-4 border-primary group"}},null,8,["label","to"]))),256))])]),_:1})]),default:r(()=>[n(g,{label:e.sidebarTitle,"trailing-icon":"i-lucide-chevron-down",block:"",ui:{base:"rounded-b-none rounded-t-xl p-4 tracking-normal normal-case text-base font-semibold"}},null,8,["label"])]),_:1}
1),x("div",de,[n(L,{title:e.sidebarTitle,sidebar:e.sidebar,ui:{body:"pb-2"}},null,8,["title","sidebar"])])]),_:1})]),key:"0"}:void 0,t(o)&&!a.noright?{name:"right",fn:r(()=>[$(i.$slots,"right",{},()=>[n(D,{open:t(u),"onUpdate:open":d[0]||(d[0]=s=>te(u)?u.value=s:null),title:"On this page",color:"neutral",highlight:"","highlight-color":"neutral",links:e.links,onMove:z,ui:{root:"lg:sticky lg:top-(--ui-header-height) lg:z-10 lg:[scrollbar-width:none] lg:[&::-webkit-scrollbar]:hidden",container:"lg:py-6 border-solid border-neutral-300",link:"underline-offset-4 hover:underline focus-visible:underline",linkText:"whitespace-normal overflow-visible text-clip break-words text-pretty"}},null,8,["open","links"])])]),key:"1"}:void 0]),1032,["ui"])]),_:3})],64)}}});export{Ce 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.