PageSourceSearch

https://joshbrooman.com/_nuxt/DlYitzWW.js

js joshbrooman.com collected 2026-10-08 07:23:17 UTC 4,705 bytes, 1 lines download raw bytes

1import{k as A,v as z,r as s,f as L,g as C,x as S,c as u,o as l,a as e,y as j,z as y,i as I,p as a,T as M,F as b,A as H,u as N,l as $,b as m,w as x,m as F,t as B,s as V,B as G,C as P,e as U,q,d as D}from"./BlF-E1an.js";import{_ as E}from"./DMPwxgLw.js";const W={class:"break-inside-avoid"},J=["src","alt"],K=["src","alt"],Q={key:0,class:"text-center"},R=["innerHTML"],X={key:0,class:"fixed inset-0 z-modal"},Y={class:"relative flex flex-col justify-end h-full p-2"},Z={key:0,class:"z-popover shrink-0 text-center text-white mx-auto overflow-hidden"},ee=["innerHTML"],te=A({__name:"GalleryImage",props:{src:{},alt:{},caption:{}},setup(n){let i=null;const f=z(),c=s(null),h=s(null),v=s(null),t=s(null),r=s(null),d=s(null),_=s(null),k=s(null),w=s(null),o=s(!1);L(()=>{i=C.context(()=>{},[c.value])});const O=async()=>{if(!t.value)return;const g=b.getState(t.value);o.value=!0,await H(),v.value&&t.value&&(v.value.appendChild(t.value),i.add(()=>{const p=b.from(g,{targets:t.value,duration:.6,ease:"power2.inOut",absolute:!0});k.value=C.timeline({onComplete:()=>{f.value.stop()}}).set(r.value,{autoAlpha:0}).set(_.value,{autoAlpha:0}).set(d.value,{yPercent:100}).add(p,0).to(r.value,{autoAlpha:1,duration:.6,ease:"power2.inOut"},"<").to(_.value,{autoAlpha:1,duration:.6,ease:"power2.inOut"},"<").to(d.value,{yPercent:0,duration:.6,ease:"power2.inOut"},"<+=0.2")}))},T=async()=>{if(!t.value)return;const g=b.getState(t.value);h.value&&(h.value.appendChild(t.value),i.add(()=>{const p=b.from(g,{targets:t.value,duration:.6,ease:"power2.inOut",absolute:!0,onComplete:()=>{o.value=!1}});w.value=C.timeline({onComplete:()=>{f.value.start()}}).set(r.value,{autoAlpha:1}).set(_.value,{autoAlpha:1}).add(p,0).to(d.value,{yPercent:100,duration:.6,ease:"power2.inOut"},"<").to(_.value,{autoAlpha:0,duration:.6,ease:"power2.inOut"},"<").to(r.value,{autoAlpha:0,duration:.6,ease:"power2.inOut"},"<+=0.2")}))};return S(()=>{i&&i.revert()}),(g,p)=>(l(),u("div",{ref_key:"gsapScope",ref:c},[e("figure",W,[e("div",{class:"relative",ref_key:"previewImageContainer",ref:h},[e("img",{src:n.src,alt:n.caption||n.alt,"aria-hidden":"true",class:"invisible pointer-events-none size-full object-cover"},null,8,J),e("img",{ref_key:"img",ref:t,src:n.src,alt:n.caption||n.alt,class:I(["absolute inset-0 size-full object-contain cursor-pointer transition-all",a(o)?"z-gallery-image":"hover:shadow-lg hover:brightness-95"]),onClick:p[0]||(p[0]=()=>a(o)?T():O())},null,10,K)],512),n.caption?(l(),u("figcaption",Q,[e("span",{class:"text-lg font-sans",innerHTML:n.caption},null,8,R)])):y("",!0)]),(l(),j(M,{to:"body"},[a(o)?(l(),u("div",X,[e("div",{ref_key:"lightboxBackground",ref:r,class:"absolute inset-0 size-full bg-black/80"},null,512),e("figure",Y,[e("div",{class:"fixed inset-x-3 top-3 bottom-10",ref_key:"lightboxImageContainer",ref:v},null,512),n.caption?(l(),u("figcaption",Z,[e("div",{ref_key:"lightboxCaption",ref:d,class:"bg-black/50 backdrop-blur rounded-lg p-1"},[e("span",{class:"text-lg font-sans",innerHTML:n.caption},null,8,ee)],512)])):y("",!0)]),e("div",{ref_key:"lightboxCloseButton",ref:_,class:"fixed right-3 top-0 flex w-full justify-end"},[e("button",{class:"text-4xl text-white hover:text-neutral-300 transition-all cursor-pointer",onClick:T}," × ")],512)])):y("",!0)]))],512))}}),ae=Object.assign(te,{__name:"UiGalleryImage"}),ne={class:"mb-4 md:mb-12"},oe={class:"mb-6"},se={key:0,class:"max-w-2xl mx-auto"},le={class:"md:flex md:justify-center md:items-center gap-8 max-w-4xl mx-auto"},ie={class:"md:order-2 md:shrink-0"},ce={class:"max-w-56 mx-auto mb-6 md:mb-0"},ue=["src","alt"],re={class:"md:order-1 max-w-sm mx-auto text-center"},de={class:"text-white mb-6"},pe=A({__name:"gallery",setup(n){N({title:"Gallery"});const i=$("gallery"),f=$("gallery_posts"),c=$("home");return(h,v)=>{const t=V,r=ae,d=F,_=q,k=U,w=E;return l(),u("div",null,[m(d,{first:""},{default:x(()=>[e("div",ne,[e("h1",oe,B(a(i)?.title),1),m(t,{large:"",content:a(i)?.body},null,8,["content"])]),a(f).length?(l(),u("div",se,[(l(!0),u(G,null,P(a(f),o=>(l(),u("div",{key:o.id,class:"mb-4"},[m(r,{src:o.fields.image,alt:o.fields.caption,caption:o.fields.caption,"preview-img-class-name":"rounded-lg shadow-lg mb-2"},null,8,["src","alt","caption"])]))),128))])):y("",!0)]),_:1}),m(d,null,{default:x(()=>[m(w,{class:"max-w-3xl!"},{default:x(()=>[e("div",le,[e("div",ie,[e("div",ce,[e("img",{src:a(c).cta_image,alt:a(c).cta_image_alt,class:"max-h-[50vh] sm:max-h-none mx-auto"}
1,null,8,ue)])]),e("div",re,[e("h2",de,B(a(c).cta_title),1),m(k,{to:a(c).cta_button_link},{default:x(()=>[m(_,{class:"w-full sm:w-auto mb-2 sm:mb-0"},{default:x(()=>[D(B(a(c).cta_button_text),1)]),_:1})]),_:1},8,["to"])])])]),_:1})]),_:1})])}}});export{pe 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.