PageSourceSearch

https://www.delganybridge.org/_next/static/chunks/834-6e80f92dcf810ee8.js

js delganybridge.org collected 2026-10-06 12:37:21 UTC 30,844 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{1963:function(e,t,r){r.d(t,{CarouselComponent:function(){return w}});var l=r(7437),n=r(2265),s=r(9467),a=r(2660),i=r(6858),o=r(3448),d=r(2381);let c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=n.forwardRef((e,t)=>{let{orientation:r="horizontal",opts:a,setApi:i,plugins:d,className:u,children:m,...f}=e,[x,h]=(0,s.Z)({...a,axis:"horizontal"===r?"x":"y"},d),[p,g]=n.useState(!1),[v,b]=n.useState(!1),j=n.useCallback(e=>{e&&(g(e.canScrollPrev()),b(e.canScrollNext()))},[]),N=n.useCallback(()=>{null==h||h.scrollPrev()},[h]),y=n.useCallback(()=>{null==h||h.scrollNext()},[h]),w=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),N()):"ArrowRight"===e.key&&(e.preventDefault(),y())},[N,y]);return n.useEffect(()=>{h&&i&&i(h)},[h,i]),n.useEffect(()=>{if(h)return j(h),h.on("reInit",j),h.on("select",j),()=>{null==h||h.off("select",j)}},[h,j]),(0,l.jsx)(c.Provider,{value:{carouselRef:x,api:h,opts:a,orientation:r||((null==a?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:y,canScrollPrev:p,canScrollNext:v},children:(0,l.jsx)("div",{ref:t,onKeyDownCapture:w,className:(0,o.cn)("relative",u),role:"region","aria-roledescription":"carousel",...f,children:m})})});m.displayName="Carousel";let f=n.forwardRef((e,t)=>{let{className:r,...n}=e,{carouselRef:s,orientation:a}=u();return(0,l.jsx)("div",{ref:s,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:t,className:(0,o.cn)("flex","horizontal"===a?"-ml-4":"-mt-4 flex-col",r),...n})})});f.displayName="CarouselContent";let x=n.forwardRef((e,t)=>{let{className:r,...n}=e,{orientation:s}=u();return(0,l.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:(0,o.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===s?"pl-4":"pt-4",r),...n})});x.displayName="CarouselItem";let h=n.forwardRef((e,t)=>{let{className:r,variant:n="outline",size:s="icon",...i}=e,{orientation:c,scrollPrev:m,canScrollPrev:f}=u();return(0,l.jsxs)(d.z,{ref:t,variant:n,size:s,className:(0,o.cn)("absolute  h-8 w-8 rounded-full","horizontal"===c?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",r),disabled:!f,onClick:m,...i,children:[(0,l.jsx)(a.Z,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});h.displayName="CarouselPrevious";let p=n.forwardRef((e,t)=>{let{className:r,variant:n="outline",size:s="icon",...a}=e,{orientation:c,scrollNext:m,canScrollNext:f}=u();return(0,l.jsxs)(d.z,{ref:t,variant:n,size:s,className:(0,o.cn)("absolute h-8 w-8 rounded-full","horizontal"===c?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",r),disabled:!f,onClick:m,...a,children:[(0,l.jsx)(i.Z,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});p.displayName="CarouselNext";var g=r(1984),v=r(2931),b=r(8975),j=r(4190),N=r(3276),y=r(9227);function w(e){var t;let{blok:r}=e,[s,a]=n.useState(),[i,o]=n.useState(0),[c,u]=n.useState(0),[w,k]=n.useState(!0),C=n.useRef((0,g.Z)({delay:4e3,stopOnInteraction:!0})),{images:z}=r;return n.useEffect(()=>{s&&(u(s.scrollSnapList().length),o(s.selectedScrollSnap()+1),s.on("autoplay:stop",()=>{k(!1)}),s.on("autoplay:play",()=>{k(!0)}),s.on("select",()=>{o(s.selectedScrollSnap()+1)}))},[s]),(0,l.jsxs)("section",{className:"container",children:[(0,l.jsx)("h1",{className:"text-4xl lg:text-6xl font-bold lg:font-extrabold py-5 md:py-10 text-red-950",children:"Site of Denver Public Arts - VIRGA"}),(0,l.jsxs)(m,{className:"",...(0,v.LF)(r),opts:{loop:!0},setApi:a,plugins:[C.current],children:[(0,l.jsx)(f,{className:"h-[40vh] lg:h-[70vh] w-full",children:z.map(e=>(0,l.jsx)(x,{className:"flex items-center h-full w-full",children:(0,l.jsx)("div",{className:"p-1 w-full h-full",children:(0,l.jsx)(b.Z,{priority:!0,image:e,className:"w-full h-full object-contain",copyright:!1})})},e.id))}),(0,l.jsxs)("div",{className:"relative",children:[(null===(t=z[i-1])||void 0===t?void 0:t.copyright)&&(0,l.jsx)("div",{className:"",children:(0,l.jsx)(j.Z,{copyright:z[i-1].copyright})}),(0,l.jsxs)("div",{className:"w-full py-2 relative",children:[(0,l.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,l.jsx)("div",{className:"flex space-x-1",children:Array.from({length:c}).map((e,t)=>(0,l.jsx)("div",{className:"".concat(t+1===i?"bg-red-900 w-6 h-3":"w-3 h-3"," border-2 border-red-950 rounded-full transition-all duration-1000")},t))})}),(0,l.jsx)("div",{className:"md:absolute right-0",children:(0,l.jsxs)("div",{className:"space-x-1",children:[(0,l.jsx)(d.z,{onClick:()=>
1{if(!s)return null;s.plugins().autoplay.play(),s.scrollNext()},variant:"outline",size:"icon",disabled:w,children:(0,l.jsx)(N.Z,{})}),(0,l.jsx)(d.z,{onClick:()=>{if(!s)return null;s.plugins().autoplay.stop()},variant:"outline",size:"icon",disabled:!w,children:(0,l.jsx)(y.Z,{})})]})})]})]}),(0,l.jsx)(h,{className:"hidden lg:flex",onClick:()=>{if(!s)return null;s.scrollPrev(),s.plugins().autoplay.stop()}}),(0,l.jsx)(p,{className:"hidden lg:flex",onClick:()=>{if(!s)return null;s.scrollNext(),s.plugins().autoplay.stop()}})]})]})}},2015:function(e,t,r){r.r(t),r.d(t,{default:function(){return N}});var l=r(7437),n=r(2265),s=r(7648),a=r(7901),i=r(9068),o=r(4168),d=r(6646);function c(e){let{link:t,links:r}=e;return(0,l.jsxs)(o.zE,{children:[(0,l.jsx)(o.Lo,{children:t.name}),(0,l.jsx)(o.CG,{className:"p-5 bg-background border",children:(0,l.jsx)("ul",{className:" whitespace-nowrap ",children:r.map(e=>{let t=e.link;return t.story?(0,l.jsx)("li",{className:"",children:(0,l.jsx)(s.default,{href:t.story.full_slug,legacyBehavior:!0,passHref:!0,children:(0,l.jsx)(o.wV,{className:(0,o.mp)(),children:e.name})})},e._uid):(console.log(e.name,"not published yet"),null)})})})]})}function u(e){let{blok:t}=e;return(0,l.jsx)(o.i9,{children:(0,l.jsxs)(o.S6,{children:[t.map(e=>e.sub_menu&&e.sub_menu.length>0?(0,l.jsx)(c,{link:e,links:e.sub_menu},e._uid):(0,l.jsx)(o.zE,{children:(0,l.jsx)(d.default,{link:e,className:(0,o.mp)()})},e._uid)),(0,l.jsx)(o.zE,{children:(0,l.jsx)(s.default,{href:"/faq",legacyBehavior:!0,passHref:!0,children:(0,l.jsx)(o.wV,{className:(0,o.mp)(),children:"FAQ"})})})]})})}var m=r(4887),f=r(4355),x=r(7165);function h(e){let{link:t,className:r,onClick:n}=e,a=t.link;return"url"===a.linktype?(0,l.jsxs)(s.default,{href:a.url,className:"".concat(r," flex items-center space-x-2"),onClick:n,target:"_blank",rel:"noopener noreferrer",children:[(0,l.jsx)("span",{children:t.name}),(0,l.jsx)("span",{children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-5",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})})]}):a.story?"About"===t.name?(0,l.jsx)("div",{className:r,children:t.name}):(0,l.jsx)(s.default,{href:a.story.full_slug,className:r,onClick:n,children:t.name}):(console.log(t.name,"not published yet"),null)}function p(e){var t,r;if("url"===e.linktype)return e.url;let l=null!==(r=null===(t=e.story)||void 0===t?void 0:t.full_slug)&&void 0!==r?r:e.cac
1hed_url;return l?"/".concat(l.replace(/^\//,"")):"#"}function g(e){var t;return(null===(t=e.name)||void 0===t?void 0:t.trim().toLowerCase())==="contact"}var v=r(2381);function b(e){let{links:t,contact:r,mobileMenuOpen:i,setMobileMenuOpen:o}=e,d=(0,n.useRef)(null),c=()=>o(!1);(0,n.useEffect)(()=>{var e;if(!i)return;let t=document.body.style.overflow;document.body.style.overflow="hidden";let r=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("keydown",r),null===(e=d.current)||void 0===e||e.focus(),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",r)}},[i,o]);let u="block py-2 font-heading text-3xl font-extrabold text-red-950 transition-colors hover:text-red-800 focus-visible:outline-none focus-visible:text-red-800";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button","aria-label":"Open menu","aria-expanded":i,onClick:()=>o(!0),className:"text-red-950",children:(0,l.jsx)(f.Z,{"aria-hidden":"true",className:"h-6 w-6"})}),i&&"undefined"!=typeof document?(0,m.createPortal)((0,l.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Site menu",className:"fixed inset-0 z-[70] flex flex-col bg-background animate-in fade-in slide-in-from-right-8 duration-300",children:[(0,l.jsxs)("div",{className:"container flex items-center justify-between py-5",children:[(0,l.jsx)(s.default,{href:"/",onClick:c,className:"font-extrabold uppercase text-red-950",children:"Delgany Bridge"}),(0,l.jsx)("button",{ref:d,type:"button","aria-label":"Close menu",onClick:c,className:"-mr-1 rounded-md p-1 text-red-950/70 transition-colors hover:text-red-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-800/30",children:(0,l.jsx)(x.Z,{"aria-hidden":"true",className:"size-7"})})]}),(0,l.jsx)("nav",{className:"container flex-1 overflow-y-auto py-6",children:(0,l.jsxs)("ul",{className:"flex flex-col gap-4",children:[t.map((e,t)=>{let r=e.sub_menu&&e.sub_menu.length>0;return(0,l.jsx)("li",{className:"animate-in fade-in slide-in-from-bottom-3 fill-mode-both duration-300",style:{animationDelay:"".concat(45*t,"ms")},children:r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"block font-heading text-3xl font-extrabold text-red-950",children:e.name}),(0,l.jsx)("ul",{className:"mt-2 flex flex-col gap-1.5 pl-0.5",children:e.sub_menu.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(h,{link:e,onClick:c,className:"block py-1 text-lg font-semibold text-red-950/70 transition-colors hover:text-red-950"})},e._uid))})]}):(0,l.jsx)(h,{link:e,onClick:c,className:u})},e._uid)}),(0,l.jsx)("li",{className:"animate-in fade-in slide-in-from-bottom-3 fill-mode-both duration-300",style:{animationDelay:"".concat(45*t.length,"ms")},children:(0,l.jsx)(s.default,{href:"/faq",onClick:c,className:u,children:"FAQ"})})]})}),(0,l.jsxs)("div",{className:"container flex flex-col gap-3 border-t border-red-950/10 py-6",children:[(0,l.jsx)(v.z,{asChild:!0,size:"xl",className:"w-full text-lg [&_svg]:size-5",children:(0,l.jsxs)(s.default,{href:"https://greenwayfoundation.networkforgood.com/projects/165231-help-reopen-the-delgany-bridge",target:"_blank",rel:"noopener noreferrer",onClick:c,children:["Donate",(0,l.jsx)(a.Z,{"aria-hidden":"true"})]})}),r?(0,l.jsx)(v.z,{asChild:!0,variant:"secondary",size:"xl",className:"w-full text-lg",children:(0,l.jsx)(s.default,{href:p(r.link),onClick:c,children:r.name})}):null]})]}),document.body):null]})}var j=r(3448);function N(e){var t,r,o;let{blok:d}
1=e,[c,m]=(0,n.useState)(!1),{isAtTop:f}=function(){let[e,t]=(0,n.useState)(!1),[r,l]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=()=>{let e=window.scrollY;t(e>50),l(e<=50)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),{isScrolled:e,isAtTop:r}}(),x=null!==(o=d.header_menu)&&void 0!==o?o:[],h=x.find(g),N=h?x.filter(e=>e!==h):x;return(0,l.jsx)("header",{className:(0,j.cn)("sticky top-0 left-0 right-0 z-50 bg-background/90 backdrop-blur-xl transition-all duration-300 drop-shadow-md",f?"h-20 py-4":"h-16 py-2"),...(0,i.LF)(d),children:(0,l.jsxs)("nav",{"aria-label":"Global",className:"container mx-auto flex h-full items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-12 text-red-950",children:[(0,l.jsxs)(s.default,{href:"/",className:"-m-1.5 p-1.5",children:[(0,l.jsx)("span",{className:"sr-only",children:"Delgany Bridge"}),(0,l.jsx)("div",{className:"font-extrabold uppercase",children:(0,l.jsx)("span",{className:"",children:"Delgany Bridge"})})]}),(0,l.jsx)("div",{className:"hidden lg:flex lg:gap-x-12",children:(0,l.jsx)(u,{blok:N})})]}),(0,l.jsxs)("div",{className:"hidden lg:flex lg:items-center lg:gap-x-4",children:[h?(0,l.jsx)(v.z,{asChild:!0,variant:"secondary",className:(0,j.cn)("text-lg transition-all",f?"h-12 px-6":"h-10 px-5"),children:(0,l.jsx)(s.default,{href:p(h.link),children:h.name})}):null,null===(t=d.cta_button)||void 0===t?void 0:t.map(e=>"url"===e.link.linktype?(0,l.jsx)(v.z,{asChild:!0,className:(0,j.cn)("text-lg transition-all [&_svg]:size-5",f?"h-12 px-6":"h-10 px-5"),children:(0,l.jsxs)(s.default,{href:e.link.url,target:"_blank",rel:"noopener noreferrer",children:[e.name,(0,l.jsx)(a.Z,{"aria-hidden":"true"})]})},e._uid):null)]}),(0,l.jsxs)("div",{className:"flex items-center gap-3 lg:hidden",children:[null===(r=d.cta_button)||void 0===r?void 0:r.map(e=>"url"===e.link.linktype?(0,l.jsx)(v.z,{asChild:!0,size:"sm",children:(0,l.jsxs)(s.default,{href:e.link.url,target:"_blank",rel:"noopener noreferrer",children:[e.name,(0,l.jsx)(a.Z,{"aria-hidden":"true"})]})},e._uid):null),(0,l.jsx)(b,{mobileMenuOpen:c,setMobileMenuOpen:m,links:N,contact:h})]})]})})}},6857:function(e,t,r){r.d(t,{default:function(){return a}});var l=r(7437),n=r(9068),s=r(8975);function a(e){let{blok:t}=e,{logos:r,headline:a}=t;return(0,l.jsx)("div",{className:"py-16",children:(0,l.jsx)("div",{className:" py-24 sm:py-20 container rounded-3xl",...(0,n.LF)(t),children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsx)("h2",{className:"text-center text-lg/8 lg:text-3xl font-semibold text-red-950",children:a}),(0,l.jsx)("div",{className:"mt-10 mx-auto md:flex justify-between space-x-8 md:space-x-10",children:r.map(e=>e.filename?(0,l.jsx)("a",{href:e.source||"#",className:"w-full  h-full",target:"_blank",children:(0,l.jsx)(s.Z,{image:e,className:"max-h-24 w-full h-full object-contain"})},e.id):null)})]})})})}},6646:function(e,t,r){r.d(t,{default:function(){return i}});var l=r(7437),n=r(7648),s=r(9376),a=r(4168);function i(e){let{link:t,className:r,onClick:i}=e,o=(0,s.usePathname)(),d=t.link;if(!d.story)return console.log(t.name,"not published yet"),null;let c=d.story.full_slug;return(0,l.jsx)(a.wV,{asChild:!0,active:c===o,children:(0,l.jsx)(n.default,{href:c,className:r,onClick:i,children:t.name})})}},8975:function(e,t,r){r.d(t,{Z:function(){return a}});var l=r(7437),n=r(3145),s=r(4190);function a(e){var t,r,a,i;let{image:o,className:d,copyright:c=!0,priority:u}=e,m={width:Number(null==o?void 0:null===(r=o.filename)||void 0===r?void 0:null===(t=r.split("/")[5])||void 0===t?void 0:t.split("x")[0]),height:Number(null==o?void 0:null===(i=o.filename)||void 0===i?void 0:null===(a=i.split("/")[5])||void 0===a?void 0:a.split("x")[1])};return o?o.filename?(0,l.jsxs)("div",{className:"relative w-full h-full",children:[(0,l.jsx)(n.default,{className:d||"",src:o.filename,alt:o.alt||"",width:m.width,height:m.height,priority:u}),o.copyright&&c&&(0,l.jsx)("div",{className:" text-black",children:(0,l.jsx)(s.Z,{copyright:o.copyright})})]}):(0,l.jsx)("div",{className:"",children:"No filename"}):(0,l.jsx)("div",{className:"",children:"No Image"})}},629:function(e,t,r){r.d(t,{default:function(){return a}});var l=r(7437),n=r(2265),s=r(3448);function a(e){let{children:t,className:r}
1=e,a=(0,n.useRef)(null),[i,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=a.current;if(!e)return;if(e.getBoundingClientRect().top<.9*window.innerHeight){o(!0);return}let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(o(!0),t.disconnect())})},{threshold:0,rootMargin:"0px 0px 5% 0px"});return t.observe(e),()=>t.disconnect()},[]),(0,l.jsx)("div",{ref:a,className:(0,s.cn)("transition-all duration-1000 ease-out","motion-reduce:!opacity-100 motion-reduce:!translate-y-0 motion-reduce:transition-none",i?"opacity-100 translate-y-0":"opacity-0 translate-y-10",r),children:t})}},7086:function(e,t,r){r.d(t,{default:function(){return D}});var l=r(7437),n=r(2265),s=r(9501),a=r(3590),i=r(1229);let o=i.z.object({name:i.z.string().min(2,{message:"Name must be at least 2 characters"}).max(32,{message:"Name must be at most 32 characters"}),email:i.z.string().email({message:"Invalid email address"}),zipCode:i.z.string().regex(/^\d{5}(-\d{4})?$/,{message:"Invalid zip code"}).optional().or(i.z.literal("")),interests:i.z.array(i.z.string()),message:i.z.string().max(1e3,{message:"Message must be at most 1000 characters"}).optional(),newsletter:i.z.boolean().default(!1)});var d=r(7495),c=r(3448),u=r(6394);let m=(0,r(535).j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(u.f,{ref:t,className:(0,c.cn)(m(),r),...n})});f.displayName=u.f.displayName;let x=s.RV,h=n.createContext({}),p=e=>{let{...t}=e;return(0,l.jsx)(h.Provider,{value:{name:t.name},children:(0,l.jsx)(s.Qr,{...t})})},g=()=>{let e=n.useContext(h),t=n.useContext(v),{getFieldState:r,formState:l}=(0,s.Gc)(),a=r(e.name,l);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...a}},v=n.createContext({}),b=n.forwardRef((e,t)=>{let{className:r,...s}=e,a=n.useId();return(0,l.jsx)(v.Provider,{value:{id:a},children:(0,l.jsx)("div",{ref:t,className:(0,c.cn)("space-y-2",r),...s})})});b.displayName="FormItem";let j=n.forwardRef((e,t)=>{let{className:r,...n}=e,{error:s,formItemId:a}=g();return(0,l.jsx)(f,{ref:t,className:(0,c.cn)(s&&"text-destructive",r),htmlFor:a,...n})});j.displayName="FormLabel";let N=n.forwardRef((e,t)=>{let{...r}=e,{error:n,formItemId:s,formDescriptionId:a,formMessageId:i}=g();return(0,l.jsx)(d.g7,{ref:t,id:s,"aria-describedby":n?"".concat(a," ").concat(i):"".concat(a),"aria-invalid":!!n,...r})});N.displayName="FormControl";let y=n.forwardRef((e,t)=>{let{className:r,...n}=e,{formDescriptionId:s}=g();return(0,l.jsx)("p",{ref:t,id:s,className:(0,c.cn)("text-sm text-muted-foreground",r),...n})});y.displayName="FormDescription";let w=n.forwardRef((e,t)=>{let{className:r,children:n,...s}=e,{error:a,formMessageId:i}=g(),o=a?String(null==a?void 0:a.message):n;return o?(0,l.jsx)("p",{ref:t,id:i,className:(0,c.cn)("text-sm font-medium text-destructive",r),...s,children:o}):null});w.displayName="FormMessage";var k=r(279),C=r(2381);let z=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("textarea",{className:(0,c.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...n})});z.displayName="Textarea";var _=r(187),S=r(401);let R=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(_.fC,{ref:t,className:(0,c.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...n,children:(0,l.jsx)(_.z$,{className:(0,c.cn)("flex items-center justify-center text-current"),children:(0,l.jsx)(S.Z,{className:"h-4 w-4"})})})});R.displayName=_.fC.displayName,r(3079);var E=(0,r(2119).$)("2a5b4cdcc0e8cb499de63713d777c45b79a3e2cc"),I=r(6337);let Z="h-11 rounded-lg border-red-950/15 bg-white shadow-sm placeholder:text-red-950/35 focus-visible:ring-2 focus-visible:ring-red-800/25 focus-visible:ring-offset-0 focus-visible:border-red-800/50";function F(e){let{isValid:t,isDirty:r,isSubmitting:n}=e;return(0,l.jsx)(C.z,{type:"submit",size:"xl",disabled:n||!t||!r,className:"w-full shadow-sm",children:n?"Submitting…":"Send message"})}function D(e){let{interests:t}=e,[r,i]=n.useState(null),[d,u]=n.useState(!1),[m,f]=n.useState(!1),h=(0,s.cI)({resolver:(0,a.F)(o),mode:"onChange",defaultValues:{name:"",email:"",zipCode:"",interests:[],message:"",newsletter:!1}}),g=async e=>{if(!d){u(!0),i(null);try{let t=await E(e);t.success?(f(!0),h.reset()):t.errors&&i(t.errors)}catch(e){console.error("Form submission error:",e),i({form:"An unexpected error occurred. Please try again."})}finally{u(!1)}}};return(0,l.jsx)("section",{className:"container py-12 lg:py-20",children:(0,l.jsxs)("div",{className:"grid items-start gap-10 lg:grid-cols-2 lg:gap-16",children:[(0,l.jsxs)("div",{className:"lg:sticky lg:top-28 lg:pt-2",children:[(0,l.jsx)("h2",{className:"font-heading text-3xl font-extrabold tracking-tight text-red-950 md:text-4xl",children:"Support Delgany Bridge"}),(0,l.jsx)("p",{className:"mt-5 max-w-md text-lg leading-relaxed text-red-950/70",children:"Join our community effort to reopen the historic Delgany Bridge and reconnect our neighborhood. Tell us a little about how you'd like to help and we'll be in touch soon."}),(0,l.jsxs)("p",{className:"mt-6 flex items-center gap-2 text-sm text-red-950/50",children:[(0,l.jsx)(I.Z,{className:"size-3.5"}),"We'll never share your information."]})]}),(0,l.jsx)(x,{...h,children:(0,l.jsxs)("form",{onSubmit:h.handleSubmit(g),noValidate:!0,className:"rounded-3xl border border-red-950/[0.07] bg-white p-6 shadow-[0_16px_50px_-20px_rgba(66,17,14,0.28)] sm:p-8",children:[(0,l.jsxs)("div",{className:"space-y-5",children:[(null==r?void 0:r.form)&&(0,l.jsx)("p",{className:"rounded-lg bg-destructive/10 px-4 py-3 text-sm text-destructive",children:r.form}),(0,l.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,l.jsx)(p,{control:h.control,name:"name",render:e=>{let{field:t}=e;return(0,l.jsxs)(b,{children:[(0,l.jsxs)(j,{className:"text-red-950 font-medium",children:["Name ",(0,l.jsx)("span",{className:"text-red-800",children:"*"})]}),(0,l.jsx)(N,{children:(0,l.jsx)(k.I,{placeholder:"Jane Doe",className:Z,...t})}),(0,l.jsx)(w,{})]})}}),(0,l.jsx)(p,{control:h.control,name:"zipCode",render:e=>{let{field:t}=e;return(0,l.jsxs)(b,{children:[(0,l.jsx)(j,{className:"text-red-950 font-medium",children:"Zip code"}),(0,l.jsx)(N,{children:(0,l.jsx)(k.I,{placeholder:"80202",className:Z,...t})}),(0,l.jsx)(w,{})]})}})]}),(0,l.jsx)(p,{control:h.control,name:"email",render:e=>{let{field:t}=e;return(0,l.jsxs)(b,{children:[(0,l.jsxs)(j,{className:"text-red-950 font-medium",children:["Email ",(0,l.jsx)("span",{className:"text-red-800",children:"*"})]}),(0,l.jsx)(N,{children:(0,l.jsx)(k.I,{placeholder:"[email protected]",className:Z,...t})}),(0,l.jsx)(w,{})]})}}),(0,l.jsx)(p,{control:h.control,name:"interests",render:e=>{let{field:r}=e;return(0,l.jsxs)(b,{children:[(0,l.jsx)(j,{className:"text-red-950 font-medium",children:"I'm interested in"}),(0,l.jsx)(y,{className:"text-red-950/55",children:"Select any that apply."}),(0,l.jsx)("div",{className:"mt-2.5 flex flex-wrap gap-2",children:t.map(e=>{var t;let n=null===(t=r.value)||void 0===t?void 0:t.includes(e.id);return(0,l.jsx)("button",{type:"button","aria-pressed":n,onClick:()=>{var t;return n?r.onChange(null===(t=r.value)||void 0===t?void 0:t.filter(t=>
1t!==e.id)):r.onChange([...r.value,e.id])},className:(0,c.cn)("rounded-full border px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-800/25",n?"border-red-900 bg-red-900 text-white":"border-red-950/15 bg-white text-red-950/70 hover:border-red-900/40 hover:text-red-950"),children:e.name},e.id)})}),(0,l.jsx)(w,{})]})}}),(0,l.jsx)(p,{control:h.control,name:"message",render:e=>{let{field:t}=e;return(0,l.jsxs)(b,{children:[(0,l.jsx)(j,{className:"text-red-950 font-medium",children:"Message"}),(0,l.jsx)(N,{children:(0,l.jsx)(z,{placeholder:"Tell us how you'd like to help…",className:(0,c.cn)("min-h-28 resize-none rounded-lg border-red-950/15 bg-white shadow-sm placeholder:text-red-950/35 focus-visible:ring-2 focus-visible:ring-red-800/25 focus-visible:ring-offset-0 focus-visible:border-red-800/50"),...t})}),(0,l.jsx)(w,{})]})}}),(0,l.jsx)(p,{control:h.control,name:"newsletter",render:e=>{let{field:t}=e;return(0,l.jsxs)(b,{className:"flex flex-row items-start gap-3 space-y-0 rounded-lg border border-red-950/10 bg-stone-50/70 p-4",children:[(0,l.jsx)(N,{children:(0,l.jsx)(R,{checked:t.value,onCheckedChange:t.onChange,className:"mt-0.5"})}),(0,l.jsxs)("div",{className:"space-y-0.5 leading-none",children:[(0,l.jsx)(j,{className:"text-red-950 font-medium",children:"Keep me updated"}),(0,l.jsx)(y,{className:"text-red-950/55",children:"Receive Delgany Bridge progress updates"})]})]})}}),m&&(0,l.jsxs)("p",{className:"flex items-center gap-2 rounded-lg border border-success/40 bg-success/15 px-4 py-3 text-sm text-red-950",children:[(0,l.jsx)(S.Z,{className:"size-4 text-success"}),"Thank you for your support! We'll be in touch soon."]})]}),(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)(F,{isValid:h.formState.isValid,isDirty:h.formState.isDirty,isSubmitting:d})})]})})]})})}},4190:function(e,t,r){r.d(t,{Z:function(){return n}});var l=r(7437);function n(e){let{copyright:t}=e;return t?(0,l.jsxs)("p",{className:"text-red-950 text-xs text-right container",children:["Credit: ",t]}):null}},3055:function(e,t,r){r.d(t,{default:function(){return i}});var l=r(7437),n=r(9068),s=r(2265),a=r(8848);function i(e){let{blok:t}=e,[r,i]=(0,s.useState)(null),{html:o}=t;return((0,s.useEffect)(()=>{o&&i(a.Z.sanitize(o));let e=document.createElement("script");return e.src="https://substack.com/embedjs/embed.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}},[o]),r)?(0,l.jsx)("div",{className:"flex justify-center w-full",children:(0,l.jsx)("div",{className:" lg:min-w-[500px] my-10",children:(0,l.jsx)("div",{...(0,n.LF)(t),className:"substack-embed",dangerouslySetInnerHTML:{__html:r}})})}):null}},2381:function(e,t,r){r.d(t,{z:function(){return d}});var l=r(7437),n=r(2265),s=r(7495),a=r(535),i=r(3448);let o=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-base font-semibold ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-800/40 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-red-900 text-white hover:bg-red-800",secondary:"border-2 border-red-900/25 bg-transparent text-red-900 hover:border-red-900 hover:bg-red-900/[0.04]",inverse:"bg-background text-red-950 shadow-md hover:bg-white",outline:"border-2 border-red-800 bg-background text-red-950 hover:bg-accent hover:text-accent-foreground",ghost:"text-red-950/70 hover:bg-red-900/[0.04] hover:text-red-950",link:"text-red-900 underline-offset-4 hover:underline",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},size:{sm:"h-9 px-4 text-sm",default:"h-10 px-5",lg:"h-11 px-8",xl:"h-12 px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:a,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,l.jsx)(u,{className:(0,i.cn)(o({variant:n,size:a,className:r})),ref:t,...c})});d.displayName="Button"},279:function(e,t,r){r.d(t,{I:function(){return a}});var l=r(7437),n=r(2265),s=r(3448);let a=n.forwardRef((e,t)=>
1{let{className:r,type:n,...a}=e;return(0,l.jsx)("input",{type:n,className:(0,s.cn)("flex h-12 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...a})});a.displayName="Input"},4168:function(e,t,r){r.d(t,{CG:function(){return x},Lo:function(){return f},S6:function(){return c},i9:function(){return d},mp:function(){return m},wV:function(){return h},zE:function(){return u}});var l=r(7437),n=r(2265),s=r(8587),a=r(535),i=r(875),o=r(3448);let d=n.forwardRef((e,t)=>{let{className:r,children:n,...a}=e;return(0,l.jsxs)(s.fC,{ref:t,className:(0,o.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",r),...a,children:[n,(0,l.jsx)(p,{})]})});d.displayName=s.fC.displayName;let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(s.aV,{ref:t,className:(0,o.cn)("group flex flex-1 list-none items-center justify-center space-x-1",r),...n})});c.displayName=s.aV.displayName;let u=s.ck,m=(0,a.j)("group inline-flex h-10 w-full items-center rounded-md px-4 py-2 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),f=n.forwardRef((e,t)=>{let{className:r,children:n,...a}=e;return(0,l.jsxs)(s.xz,{ref:t,className:(0,o.cn)(m(),"group",r),...a,children:[n," ",(0,l.jsx)(i.Z,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});f.displayName=s.xz.displayName;let x=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(s.VY,{ref:t,className:(0,o.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",r),...n})});x.displayName=s.VY.displayName;let h=s.rU,p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{className:(0,o.cn)("absolute left-0 top-full flex justify-center"),children:(0,l.jsx)(s.l_,{className:(0,o.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",r),ref:t,...n})})});p.displayName=s.l_.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(s.z$,{ref:t,className:(0,o.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",r),...n,children:(0,l.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}).displayName=s.z$.displayName},3448:function(e,t,r){r.d(t,{cn:function(){return s}});var l=r(1994),n=r(3335);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)((0,l.W)(t))}}}]);

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.