1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8380],{4559:function(e,t,n){"use strict";n.d(t,{default:function(){return h}});var a=n(7437),s=n(2265),l=n(7830),i=n(3548),r=n(814),o=n(2489),c=n(6334),d=n(5987),u=n(8667);function m(){return(0,s.useEffect)(()=>{window.gapi&&window.gapi.ytsubscribe.go()},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.default,{src:"https://apis.google.com/js/platform.js",strategy:"lazyOnload",onLoad:()=>{window.gapi&&window.gapi.ytsubscribe.go()}}),(0,a.jsx)("div",{className:"g-ytsubscribe","data-channel":"BlackGirlsCode","data-layout":"default","data-count":"default"})]})}function h(e){var t,n;let{titleImage:u,description:h,learnMoreTitle:f,learnMoreDescription:x,latestVideoId:p,backgroundImageDesktop:v,backgroundImageMobile:g}=e,[b,j]=(0,s.useState)(!1),[w,y]=(0,s.useState)(!1),N=(null==u?void 0:null===(t=u.asset)||void 0===t?void 0:t._ref)?(0,c.uH)(u).url():null,_=h?(0,d.io)(h):"",k=x?(0,d.io)(x):"";return(0,a.jsxs)("section",{className:"relative h-[700px] flex items-center",children:[(0,a.jsx)("div",{className:"absolute inset-0 hidden md:block",style:{backgroundImage:"url(".concat(v,")"),backgroundSize:"cover",backgroundPosition:"center"}}),(0,a.jsx)("div",{className:"absolute inset-0 block md:hidden",style:{backgroundImage:"url(".concat(g,")"),backgroundSize:"cover",backgroundPosition:"center"}}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black via-black/30 to-transparent"}),(0,a.jsx)("div",{className:"container mx-auto px-4 relative",children:(0,a.jsxs)("div",{className:"max-w-2xl text-white",children:[(null==u?void 0:null===(n=u.asset)||void 0===n?void 0:n._ref)&&(0,a.jsxs)("div",{className:"mb-12 max-w-[200px]",children:[(0,a.jsx)("img",{src:N||"",alt:"Title",className:"w-full h-auto"}),!1]}),(0,a.jsx)("div",{className:"text-md font-goga mb-8 prose prose-invert max-w-lg",dangerouslySetInnerHTML:{__html:_}}),(0,a.jsxs)("div",{className:"_space-x-4 flex flex-wrap items-center gap-4",children:[(0,a.jsx)("button",{onClick:()=>{j(!0),(0,i.j)("code_along_watch",{placement:"hero"})},className:"bgc-button btn-teal font-goga",children:"Watch Latest Episode"}),(0,a.jsx)("button",{onClick:()=>y(!0),className:"bgc-button btn-white font-goga",children:"Learn More"}),(0,a.jsx)("div",{className:"_ml-8 mt-2",children:(0,a.jsx)(m,{})})]})]})}),(0,a.jsx)(l.Z,{isOpen:b,onClose:()=>j(!1),videoId:p}),(0,a.jsx)(r.fC,{open:w,onOpenChange:y,children:(0,a.jsxs)(r.h_,{children:[(0,a.jsx)(r.aV,{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-50"}),(0,a.jsxs)(r.VY,{className:"fixed left-[50%] top-[50%] w-[90vw] max-w-[800px] translate-x-[-50%] translate-y-[-50%] z-50 bg-black p-8 rounded-lg border border-white/20",children:[(0,a.jsxs)("div",{className:"text-white",children:[(0,a.jsx)("h2",{className:"text-3xl font-goga mb-4",children:f}),(0,a.jsx)("div",{className:"prose prose-invert font-goga",dangerouslySetInnerHTML:{__html:k}})]}),(0,a.jsxs)("button",{onClick:()=>
1y(!1),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[(0,a.jsx)(o.Z,{className:"h-6 w-6 text-white"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})})]})}},7155:function(e,t,n){"use strict";n.d(t,{default:function(){return h}});var a=n(7437),s=n(2265),l=n(7830),i=n(9467),r=n(2451),o=n(407);let c={align:"start",dragFree:!0,containScroll:"trimSnaps"};function d(e){let{items:t,onVideoSelect:n}=e,[l,d]=(0,i.Z)(c),[u,m]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),x=(0,s.useCallback)(()=>{d&&(m(d.canScrollPrev()),f(d.canScrollNext()))},[d]);return(0,s.useEffect)(()=>{if(d)return x(),d.on("select",x),d.on("reInit",x),()=>{d.off("select",x),d.off("reInit",x)}},[d,x]),(0,a.jsxs)("div",{className:"relative",children:[u&&(0,a.jsx)("button",{onClick:()=>null==d?void 0:d.scrollPrev(),className:"absolute left-[18px] lg:left-6 top-1/2 -translate-y-1/2 -translate-x-6 z-10 bg-white/10 hover:bg-white/20 text-white rounded-full p-2 backdrop-blur-sm transition-colors","aria-label":"Previous videos",children:(0,a.jsx)(r.Z,{className:"w-6 h-6"})}),h&&(0,a.jsx)("button",{onClick:()=>null==d?void 0:d.scrollNext(),className:"absolute right-[18px] lg:right-6 top-1/2 -translate-y-1/2 translate-x-6 z-10 bg-white/10 hover:bg-white/20 text-white rounded-full p-2 backdrop-blur-sm transition-colors","aria-label":"Next videos",children:(0,a.jsx)(o.Z,{className:"w-6 h-6"})}),(0,a.jsx)("div",{className:"overflow-hidden -mx-4 px-4",ref:l,children:(0,a.jsx)("div",{className:"flex -ml-6",children:t.map(e=>(0,a.jsx)("div",{className:"pl-6 ".concat("flex-[0_0_60%]"," ").concat("sm:flex-[0_0_45%]"," ").concat("lg:flex-[0_0_calc(20%-1rem)]"," min-w-0 group cursor-pointer"),onClick:()=>n(e.id),children:(0,a.jsxs)("div",{className:"relative aspect-video overflow-hidden rounded-lg",children:[(0,a.jsx)("img",{src:e.thumbnail,alt:e.title,className:"w-full h-full object-cover transition-transform group-hover:scale-105"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:(0,a.jsx)("button",{className:"bgc-button btn-teal font-goga",children:"Watch Now"})})]})},e.id))})})]})}function u(e){let{onVideoSelect:t,playlistIds:n,playlists:l}=e,[i,r]=(0,s.useState)([]),[c,u]=(0,s.useState)(!0),[m,h]=(0,s.useState)(null);return((0,s.useEffect)(()=>{async function e(){try{let e=await fetch("/code-along/api/playlists?ids=".concat(encodeURIComponent(n.join(","))));if(!e.ok){let t=await e.json().catch(()=>null);throw Error((null==t?void 0:t.error)||"Failed to load playlists")}let t=(await e.json()).map((e,t)=>{var n;return{...e,title:(null===(n=l[t])||void 0===n?void 0:n.title)||e.title}});r(t)}catch(e){console.error("Error loading playlists:",e),h(e instanceof Error?e.message:"Failed to load playlists")}finally{u(!1)}}n.length>0&&e()},[n,l]),c)?(0,a.jsxs)("div",{className:"py-16 text-center text-white bg-black",style:{minHeight:"420px"},children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,a.jsx)("p",{className:"mt-4 text-lg font-goga",children:"Loading playlists..."})]}):m?(0,a.jsx)("div",{className:"py-16 text-center bg-black",children:(0,a.jsx)("p",{className:"text-red-500 font-goga",children:m})}):i.length?(0,a.jsx)("section",{className:"py-16 bg-black",children:(0,a.jsx)("div",{className:"container mx-auto lg:m-t-[-140px]",style:{position:"relative",overflow:"hidden",padding:"0 6px"},children:i.map(e=>(0,a.jsxs)("div",{className:"mb-12",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-2",children:[(0,a.jsx)("h2",{className:"text-xl font-goga text-white",children:e.title}),(0,a.jsx)(o.Z,{className:"w-5 h-5 text-white/60"})]}),(0,a.jsx)(d,{items:e.items,onVideoSelect:t})]},e.id))})}):(0,a.jsx)("div",{className:"py-16 text-center bg-black",children:(0,a.jsx)("p",{className:"text-xl text-white font-goga",children:"No playlists found"})})}var m=n(3548);function h(e){let{playlists:t}
1=e,[n,i]=(0,s.useState)(null),[r,o]=(0,s.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u,{onVideoSelect:e=>{i(e),(0,m.j)("code_along_watch",{placement:"playlist",video_id:e}),o(!0)},playlistIds:t.map(e=>e.playlistId),playlists:t}),(0,a.jsx)(l.Z,{isOpen:r,onClose:()=>o(!1),videoId:n})]})}},7830:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(7437),s=n(814),l=n(2489),i=n(5107);function r(e){let{isOpen:t,onClose:n,videoId:r}=e;return r?(0,a.jsx)(s.fC,{open:t,onOpenChange:n,children:(0,a.jsxs)(s.h_,{children:[(0,a.jsx)(s.aV,{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-50"}),(0,a.jsxs)(s.VY,{className:"fixed left-[50%] top-[50%] w-[90vw] max-w-[1200px] translate-x-[-50%] translate-y-[-50%] z-50",children:[(0,a.jsx)("div",{className:"relative w-full pb-[56.25%]",children:(0,a.jsx)("div",{className:"absolute inset-0 rounded-lg overflow-hidden",children:(0,a.jsx)(i.Z,{videoId:r,opts:{width:"100%",height:"100%",playerVars:{autoplay:1,modestbranding:1,rel:0}},className:"w-full h-full",iframeClassName:"w-full h-full"})})}),(0,a.jsxs)("button",{onClick:n,className:"absolute -top-10 right-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[(0,a.jsx)(l.Z,{className:"h-6 w-6 text-white"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}):null}},4886:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var a=n(7437),s=n(6334);n(5150);var l=n(2265);function i(e){let{title:t,content:n,isOpen:s,onToggle:l,index:i}=e;return(0,a.jsxs)("div",{className:"accordion-item ".concat(s?"open":""),children:[(0,a.jsxs)("button",{className:"accordion-header",onClick:l,"aria-expanded":s,"aria-controls":"accordion-content-".concat(i),children:[(0,a.jsx)("span",{className:"accordion-title",children:t}),(0,a.jsx)("span",{className:"accordion-icon",children:s?"â":"+"})]}),(0,a.jsx)("div",{id:"accordion-content-".concat(i),className:"accordion-content",style:{maxHeight:s?"1000px":"0",opacity:s?1:0},children:(0,a.jsx)("div",{className:"accordion-content-inner",children:n})})]})}var r=n(7648);function o(e){var t;let{data:n,title:s}=e,[o,c]=(0,l.useState)(0),d=e=>{c(o===e?null:e)};return(0,a.jsx)("section",{className:"accordion-section",children:(0,a.jsxs)("div",{className:"accordion-inner",children:[(0,a.jsxs)("div",{className:"left",children:[(0,a.jsx)("h2",{children:s}),(0,a.jsx)("h3",{children:n.blockTitle}),(0,a.jsx)("p",{children:n.text}),n.cta&&n.link&&(0,a.jsx)(r.default,{className:"bgc-button bgc-button--orange",href:n.link,target:n.openInNewTab?"_blank":"_self",children:n.cta})]}),(0,a.jsx)("div",{className:"right",children:(0,a.jsx)("div",{className:"accordion-items",children:null===(t=n.accordionItems)||void 0===t?void 0:t.map((e,t)=>(0,a.jsx)(i,{index:t,title:e.title,content:e.content,isOpen:o===t,onToggle:()=>d(t)},t))})})]})})}async function c(e){let{sanityRef:t,title:n}=e,l=await (0,s.sanityFetch)({query:'*[_type == "accordionBlock" && _id == "'.concat(t,'"][0]')});return(0,a.jsx)(o,{data:l,title:n})}},4568:function(e,t,n){"use strict";n.r(t);var a=n(7437),s=n(2265);n(6050),t.default=e=>{let{position:t="top"}=e;return(0,s.useEffect)(()=>{let e=()=>{document.querySelectorAll(".brand-divider-container").forEach(e=>{e&&e.getBoundingClientRect().top<window.innerHeight&&(null==e||e.classList.add("active"))})};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsx)("div",{className:"brand-divider brand-divider--".concat(t),children:(0,a.jsx)("div",{className:"brand-divider-container",children:Array.from({length:12}).map((e,t)=>(0,a.jsx)("div",{className:"brand-divider-image",children:(0,a.jsx)("img",{src:"/brand-divider.png",alt:"Brand divider"})},t))})})}},8117:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var a=n(7437),s=n(2265);function l(e){let{cities:t}=e,[n,l]=(0,s.useState)([]);(0,s.useEffect)(()=>
1{l(t)},[t]);let i=window.innerWidth<768;return(0,a.jsxs)("div",{className:"cities",children:[(0,a.jsx)("link",{rel:"preload",href:"/location_hotspot_on.svg",as:"image"}),n.map(e=>(0,a.jsxs)("div",{className:"cityPoint-container",style:{left:"".concat(e.positionX,"%"),top:"".concat(e.positionY,"%")},children:[(0,a.jsx)("div",{className:"cityPoint ".concat(e.active?"active":""),onClick:()=>{var t;return t=e._key,void l(n.map(e=>({...e,active:e._key===t&&!e.active})))}}),!i&&(0,a.jsxs)("div",{className:"cityPoint-tooltip ".concat(e.active?"active":""," ").concat(e.positionX>50?"right":"left"),children:[(0,a.jsx)("h3",{children:e.name}),(0,a.jsx)("p",{children:e.description})]})]},e._key)),i&&n.map(e=>(0,a.jsxs)("div",{className:"cityPoint-tooltip ".concat(e.active?"active":""),children:[(0,a.jsx)("h3",{children:e.name}),(0,a.jsx)("p",{children:e.description})]},e._key))]})}},6675:function(e,t,n){"use strict";var a=n(7437);n(2265);var s=n(6480),l=n(2027);t.Z=e=>{let{id:t,title:n,venue:i,start_date:r,end_date:o,location:c,thumbnail:d,categories:u,display_price_tag:m,price:h,upcoming_events:f,display_calendar:x=!0,description:p=null,show_date:v=!0,show_date_label:g=!0}=e,b=(0,s.y2)(r),j=(0,s.Tw)(r),w=(0,s._Q)(r,o),y="Free";return(null==h?void 0:h.value)&&"0.0"!==h.value&&(y="".concat(h.value," ").concat(h.currency)),(0,a.jsx)("div",{className:"flex flex-col items-center min-h-[500px] w-auto lg:w-[340px] h-full lg:h-auto bg-white rounded-[20px] rounded-bl-none max-w-full overflow-hidden relative",children:(0,a.jsxs)("a",{href:"https://community.wearebgc.org/events/".concat(t),target:"_blank",className:"hover:no-underline",children:[(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("img",{src:d,alt:n,className:"w-full object-cover h-auto w-full"}),m&&(null==h?void 0:h.value)&&(0,a.jsx)("div",{className:"absolute top-2 left-5 bg-white text-[#333] font-bold text-xs px-2 py-1 rounded-md",children:y})]}),(0,a.jsxs)("div",{className:"bg-white w-full flex flex-col p-4 py-6",children:[(0,a.jsxs)("div",{className:"flex items-center mb-2",children:[x&&(0,a.jsxs)("div",{className:"min-w-[48px] h-[48px] flex flex-col justify-start items-start mr-4",children:[(0,a.jsx)("div",{className:"h-3 px-2 bg-[#ff4b00] w-full rounded-tl-md rounded-tr-md flex justify-center items-center",children:(0,a.jsx)("div",{className:"text-center text-white text-xs font-bold leading-3 tracking-tight",children:b})}),(0,a.jsx)("div",{className:"h-8 px-2 py-1 rounded-bl-md w-full rounded-br-md border border-[#ff4b00] flex justify-center items-center",children:(0,a.jsx)("div",{className:"text-center text-[#4d4d4d] text-xl font-bold leading-normal tracking-tight",children:j})})]}),(0,a.jsx)("h3",{className:"text-[#333] text-xl font-bold leading-6",children:n})]}),v&&(0,a.jsxs)("div",{className:"",children:[g&&(0,a.jsx)("span",{className:"font-semibold text-[#333] mr-1",children:"Date:"}),(0,a.jsxs)("span",{className:"text-[#4D4D4D] ".concat(g?"":"font-semibold my-2 block"),children:[(0,a.jsx)("span",{className:"sm:hidden",children:(0,l.a)(w,25)}),(0,a.jsx)("span",{className:"hidden sm:inline",children:w})]})]}),p&&(0,a.jsx)("div",{className:"",children:(0,a.jsx)("span",{className:"text-[#4D4D4D] ",children:(0,a.jsx)("span",{title:p.replace(/<\/?[^>]+(>|$)/g,""),children:(0,l.a)(p.replace(/<\/?[^>]+(>|$)/g,""),120)})})}),(0,a.jsx)("div",{className:"",children:"Virtual"===i?(0,a.jsxs)("div",{className:"flex font-semibold",children:[(0,a.jsx)("span",{className:"mr-1",children:"Online event:"}),(0,a.jsx)("img",{src:"/info.svg",alt:"Info Icon",width:"15"})]}):c&&c.address?(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold text-[#333] mr-1",children:"Location:"}),(0,a.jsx)("span",{children:c.address})]}):null}),(0,a.jsx)("div",{className:"mt-4",children:u&&u.length>0?(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:u.map((e,t)=>(0,a.jsx)("span",{className:"bg-white text-gray-700 px-3 py-1 rounded-md font-semibold border border-[#B3B3B3]",children:e},t))}):null})]})]})})}},6593:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var a=n(7437),s=n(3145);n(2598);var l=n(6334),i=n(5988);function r(e){let{file:t}=e,n=(0,i.hn)(t.file.asset._ref,l.vc);return(0,a.jsxs)("div",{className:"file-link",onClick:()=>{let e=document.querySelector('.file-link[key="'.concat(t._id,'"] a'));e&&e.click()},children:[(0,a.jsxs)("div",{className:"file-link__left",children:[(0,a.jsx)("div",{className:"file-link__icon",children:(0,a.jsx)(s.default,{src:"/File.svg",alt:"Document",width:20,height:20})}),(0,a.jsx)("a",{className:"file-link__title",href:n.asset.url,target:"_blank",download:!0,children:t.title})]}),(0,a.jsx)("a",{href:n.asset.url,target:"_blank",download:!0,children:(0,a.jsx)(s.default,{src:"/ArrowDownToLine.svg",alt:"Download",width:24,height:24,className:"file-link__download"})})]},t._id)}},3631:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(7437),s=n(3145);
1function l(e){let{color:t=""}=e,n="white"===t?{filter:"brightness(0) invert(1)"}:{};return(0,a.jsxs)("div",{className:"follow-us-social-icons",children:[(0,a.jsx)("a",{href:"https://www.youtube.com/user/BlackGirlsCode",target:"_blank",children:(0,a.jsx)(s.default,{src:"/icon-5.svg",alt:"YouTube",width:24,height:24,style:n})}),(0,a.jsx)("a",{href:"https://www.instagram.com/blackgirlscode/",target:"_blank",children:(0,a.jsx)(s.default,{src:"/icon.svg",alt:"Instagram",width:24,height:24,style:n})}),(0,a.jsx)("a",{href:"https://www.linkedin.com/company/black-girls-code/",target:"_blank",children:(0,a.jsx)(s.default,{src:"/icon-3.svg",alt:"LinkedIn",width:24,height:24,style:n})}),(0,a.jsx)("a",{href:"https://www.facebook.com/BlackGirlsCodeOrg/",target:"_blank",children:(0,a.jsx)(s.default,{src:"/icon-2.svg",alt:"Facebook",width:24,height:24,style:n})}),(0,a.jsx)("a",{href:"https://www.tiktok.com/@blackgirlscode",target:"_blank",children:(0,a.jsx)(s.default,{src:"/icon-4.svg",alt:"TikTok",width:24,height:24,style:n})}),(0,a.jsx)("a",{href:"https://x.com/BlackGirlsCode",target:"_blank",children:(0,a.jsx)(s.default,{src:"/icon-1.svg",alt:"X",width:24,height:24,style:n})})]})}},4968:function(e,t,n){"use strict";n.d(t,{default:function(){return A}});var a=n(7437),s=n(2265),l=n(9501);n(7386);var i=n(6334);n(5781);var r=n(7495),o=n(4508),c=n(6394);let d=(0,n(7712).j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(c.f,{ref:t,className:(0,o.cn)(d(),n),...s})});u.displayName=c.f.displayName;let m=l.RV,h=s.createContext({}),f=e=>{let{...t}=e;return(0,a.jsx)(h.Provider,{value:{name:t.name},children:(0,a.jsx)(l.Qr,{...t})})},x=()=>{let e=s.useContext(h),t=s.useContext(p),{getFieldState:n,formState:a}=(0,l.Gc)(),i=n(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:r}=t;return{id:r,name:e.name,formItemId:"".concat(r,"-form-item"),formDescriptionId:"".concat(r,"-form-item-description"),formMessageId:"".concat(r,"-form-item-message"),...i}},p=s.createContext({}),v=s.forwardRef((e,t)=>{let{className:n,...l}=e,i=s.useId();return(0,a.jsx)(p.Provider,{value:{id:i},children:(0,a.jsx)("div",{ref:t,className:(0,o.cn)("space-y-2",n),...l})})});v.displayName="FormItem";let g=s.forwardRef((e,t)=>{let{className:n,...s}=e,{error:l,formItemId:i}=x();return(0,a.jsx)(u,{ref:t,className:(0,o.cn)(l&&"text-destructive",n),htmlFor:i,...s})});g.displayName="FormLabel";let b=s.forwardRef((e,t)=>{let{...n}=e,{error:s,formItemId:l,formDescriptionId:i,formMessageId:o}=x();return(0,a.jsx)(r.g7,{ref:t,id:l,"aria-describedby":s?"".concat(i," ").concat(o):"".concat(i),"aria-invalid":!!s,...n})});b.displayName="FormControl",s.forwardRef((e,t)=>{let{className:n,...s}=e,{formDescriptionId:l}=x();return(0,a.jsx)("p",{ref:t,id:l,className:(0,o.cn)("text-sm text-muted-foreground",n),...s})}).displayName="FormDescription";let j=s.forwardRef((e,t)=>{let{className:n,children:s,...l}=e,{error:i,formMessageId:r}=x(),c=i?String(null==i?void 0:i.message):s;return c?(0,a.jsx)("p",{ref:t,id:r,className:(0,o.cn)("text-sm font-medium text-destructive",n),...l,children:c}):null});j.displayName="FormMessage";let w=s.forwardRef((e,t)=>{let{className:n,type:s,...l}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-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",n),ref:t,...l})});w.displayName="Input";let y=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm 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",n),ref:t,...s})});y.displayName="Textarea";var N=n(2325),_=n(875),k=n(2135),S=n(401);let C=N.fC;N.ZA;let B=N.B4,T=s.forwardRef((e,t)=>{let{className:n,children:s,...l}=e;return(0,a.jsxs)(N.xz,{ref:t,className:(0,o.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 data-[placeholder]:text-muted-foreground",n),...l,children:[s,(0,a.jsx)(N.JO,{asChild:!0,children:(0,a.jsx)(_.Z,{className:"h-4 w-4 opacity-50",color:"black"})})]})});T.displayName=N.xz.displayName;let E=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(N.u_,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",n),...s,children:(0,a.jsx)(k.Z,{className:"h-4 w-4"})})});E.displayName=N.u_.displayName;let F=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(N.$G,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",n),...s,children:(0,a.jsx)(_.Z,{className:"h-4 w-4"})})});F.displayName=N.$G.displayName;let I=s.forwardRef((e,t)=>{let{className:n,children:s,position:l="popper",...i}=e;return(0,a.jsx)(N.h_,{children:(0,a.jsxs)(N.VY,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:l,...i,children:[(0,a.jsx)(E,{}),(0,a.jsx)(N.l_,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(F,{})]})})});I.displayName=N.VY.displayName,s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(N.__,{ref:t,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...s})}).displayName=N.__.displayName;let L=s.forwardRef((e,t)=>{let{className:n,children:s,...l}=e;return(0,a.jsxs)(N.ck,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(N.wU,{children:(0,a.jsx)(S.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(N.eT,{children:s})]})});L.displayName=N.ck.displayName,s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(N.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",n),...s})}).displayName=N.Z0.displayName;var P=n(2869),D=n(6151),z=e=>{let{options:t,value:n,onChange:l,placeholder:i="Select...",multiple:r=!1,className:c}=e,[d,u]=s.useState(!1),m=e=>{r?n.includes(e)?l(n.filter(t=>t!==e)):l([...n,e]):(l([e]),u(!1))},h=t.filter(e=>n.includes(e.value)).map(e=>e.label);return(0,a.jsxs)(D.fC,{open:d,onOpenChange:u,children:[(0,a.jsxs)(D.xz,{className:(0,o.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input border-[1px] border-neutral-600 px-3 py-2 text-sm",c),children:[(0,a.jsx)("span",{className:(0,o.cn)("line-clamp-1",0===h.length&&"text-gray-500"),children:h.length>0?h.join(", "):i}),(0,a.jsx)(_.Z,{className:"h-4 w-4 opacity-50"})]}),(0,a.jsx)(D.VY,{align:"start",sideOffset:0,className:"z-50 max-h-60 w-full overflow-auto rounded-md border bg-popover p-1 shadow-md w-[360px]",children:t.map(e=>(0,a.jsxs)("div",{className:"flex items-center p-2 hover:bg-accent hover:text-accent-foreground cursor-pointer rounded-sm",onClick:()=>m(e.value),children:[r&&(0,a.jsx)("div",{className:"mr-2",children:n.includes(e.value)?(0,a.jsx)(S.Z,{className:"h-4 w-4"}):(0,a.jsx)("span",{className:""})}),(0,a.jsx)("span",{children:e.label})]},e.value))})]})},R=n(3631),A=(0,s.forwardRef)((e,t)=>{let{formRef:n}
1=e,[r,o]=(0,s.useState)(null),[c,d]=(0,s.useState)(!1),[u,h]=(0,s.useState)(!1),x=(0,l.cI)({defaultValues:{}}),{handleSubmit:p,control:N,reset:_,formState:k}=x;(0,s.useEffect)(()=>{(async()=>{try{let e=await (0,i.Jd)({query:"*[_id == $formRef][0]",params:{formRef:n}});if(o(e),e){let t=e.formFields.reduce((e,t)=>(e[t.name]="",e),{});_(t)}}catch(e){console.error("Failed to load form config from Sanity:",e)}})()},[n,_]),(0,s.useImperativeHandle)(t,()=>({resetSubmitted(){d(!1),r&&_(r.formFields.reduce((e,t)=>(e[t.name]="",e),{}))}}));let S=async e=>{h(!0),console.log("Form submitted with:",e),await fetch("/api/form",{method:"POST",body:JSON.stringify({formData:e,formId:n})}).then(e=>e.json()).then(e=>{console.log("Form submission successful:",e)}).catch(e=>{console.error("Form submission failed:",e)}).finally(()=>{h(!1),d(!0)})};return r?c?(0,a.jsxs)("div",{className:"form-success",children:[r.successImage&&(0,a.jsx)("img",{src:(0,i.uH)(r.successImage).url(),alt:"Success"}),(0,a.jsx)("h2",{children:r.successTitle}),(0,a.jsx)("p",{children:r.thankYouMessage}),(0,a.jsx)("h2",{children:"Follow us"}),(0,a.jsx)("div",{className:"followUs !p-0",children:(0,a.jsx)(R.Z,{})})]}):(0,a.jsx)("div",{className:"ui-form-component",children:(0,a.jsx)(m,{...x,children:(0,a.jsxs)("form",{onSubmit:p(S),className:"space-y-3",children:[r.formFields.map((e,t)=>(0,a.jsx)(f,{control:N,name:e.name,rules:e.required?{required:"".concat(e.name," is required.")}:{},render:t=>{let{field:n,fieldState:s}=t;return(0,a.jsxs)(v,{children:[(0,a.jsx)(g,{children:e.name}),(0,a.jsx)(b,{children:(()=>{let t;switch(e.type){case"message":t=(0,a.jsx)(y,{placeholder:e.placeholder,...n,className:"border-black"});break;case"select":e.options&&(t=(0,a.jsxs)(C,{value:n.value||"",onValueChange:n.onChange,children:[(0,a.jsx)(T,{className:"border-black",children:(0,a.jsx)(B,{placeholder:e.placeholder})}),(0,a.jsx)(I,{children:e.options.map(e=>(0,a.jsx)(L,{value:e,children:e},e))})]}));break;case"dropdown":e.options&&(t=(0,a.jsx)(z,{options:e.options.map(e=>({value:e,label:e})),value:n.value,multiple:!0,onChange:n.onChange,placeholder:e.placeholder}));break;case"email":t=(0,a.jsx)(w,{type:"email",placeholder:e.placeholder,...n,className:"border-black"});break;case"phone":t=(0,a.jsx)(w,{type:"tel",placeholder:e.placeholder,...n,className:"border-black"});break;default:t=(0,a.jsx)(w,{type:"text",placeholder:e.placeholder,...n,className:"border-black"})}return t})()}),s.error&&(0,a.jsx)(j,{children:s.error.message})]})}},t)),(0,a.jsxs)(P.z,{type:"submit",disabled:u||!k.isValid,className:"".concat(u||!k.isValid?"disabled":""," rounded-full block w-full space-y-5 justify-center align-center relative"),style:{marginTop:"32px"},children:[u&&(0,a.jsxs)("svg",{className:"animate-spin h-5 w-5 mr-3 absolute top-[12px] left-[15px]",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),u?"Saving...":r.submitButtonText]})]})})}):(0,a.jsx)("div",{children:"Loading..."})})},9339:function(e,t,n){"use strict";n.r(t),n.d(t,{FullscreenVideoServer:function(){return o},default:function(){return r}});var a=n(7437),s=n(2265),l=n(3145),i=n(6334);function r(e){let{videoData:t}=e,[n,r]=(0,s.useState)(!1),o=()=>{r(!0),document.documentElement.style.overflow="hidden"},c=()=>{r(!1),document.documentElement.style.overflow="auto"};return t&&t.image?(0,a.jsx)("section",{className:"fullscreen-video",children:(0,a.jsxs)("div",{className:"our-vision-video",children:[(0,a.jsx)(l.default,{src:(0,i.uH)(t.image).url(),alt:t.title||"",width:1440,height:810,onClick:t.youtube_id?o:void 0,style:{cursor:t.youtube_id?"pointer":"default"}}),t.youtube_id&&(0,a.jsx)("button",{className:"button",onClick:o,children:(0,a.jsxs)("svg",{width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"36",cy:"36",r:"36",fill:"white",fillOpacity:"0.8"}),(0,a.jsx)("path",{d:"M48 36L30 46.3923L30 25.6077L48 36Z",fill:"#FF9200"})]})}),n&&t.youtube_id&&(0,a.jsx)("div",{className:"modal",onClick:e=>{e.target===e.currentTarget&&c()},children:(0,a.jsxs)("div",{className:"modal-content",children:[(0,a.jsx)("button",{className:"close",onClick:c,children:"\xd7"}),(0,a.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat((e=>{if(!e)return"";if(!/[\/\.]/.test(e))return e;for(let t of[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/v\/|youtube\.com\/watch\?.*v=)([^&\?\/]+)/,/youtube\.com\/watch\?.*v=([^&]+)/,/youtu\.be\/([^\/\?]+)/,/youtube\.com\/embed\/([^\/\?]+)/]){let n=e.match(t);if(n&&n[1])return n[1]}return e})(t.youtube_id),"?autoplay=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})]})})]})}):null}async function o(e){let{sanityRef:t}=e,{sanityFetch:s}=await Promise.resolve().then(n.bind(n,6334)),l=await s({query:'*[_type == "fullscreenVideo" && _id == $ref][0]',params:{ref:t}});return l?(0,a.jsx)(r,{videoData:l}):null}n(3875)},3389:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var a=n(7437),s=n(2265),l=n(6334);function i(e){let{box:t}=e;return(0,a.jsxs)("div",{className:"get-involved-box",children:[(0,a.jsx)("img",{src:(0,l.uH)(t.image).width(340).height(260).url(),alt:t.title}),(0,a.jsxs)("div",{className:"get-involved-box-content",children:[(0,a.jsx)("h3",{children:t.title}),(0,a.jsx)("p",{children:t.text}),(0,a.jsx)("a",{href:t.link,className:"bgc-button",target:t.openInNewTab?"_blank":"_self",children:t.cta})]})]})}function r(e){let{boxes:t}=e;return(0,s.useEffect)(()=>{let e=()=>{document.querySelectorAll(".get-involved-box").forEach((e,t)=>{e.getBoundingClientRect().top<window.innerHeight+200&&setTimeout(()=>{e.classList.add("visible")},100*t)})};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsx)("div",{className:"get-involved-boxes",children:t.map((e,t)=>(0,a.jsx)(i,{box:e},t))})}},4433:function(e,t,n){"use strict";n.d(t,{HTMLBlockServer:function(){return i}});var a=n(7437),s=n(2265);function l(e){var t,n;let{block:l}=e,i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=i.current;if(!e||!l.htmlContent)return;let t=document.createElement("div");t.innerHTML=l.htmlContent;let n=Array.from(t.querySelectorAll("script")),a=[];
1return n.forEach(t=>{let n=document.createElement("script");Array.from(t.attributes).forEach(e=>{n.setAttribute(e.name,e.value)}),t.textContent&&(n.textContent=t.textContent),n.async=!1,e.appendChild(n),a.push(n)}),()=>{a.forEach(t=>{t.parentElement===e&&e.removeChild(t)})}},[l.htmlContent]),(0,a.jsx)("section",{id:l.anchor||void 0,className:"html-block-section ".concat(l.backgroundColor||"white"),style:{paddingTop:"".concat((null===(t=l.padding)||void 0===t?void 0:t.top)||2,"rem"),paddingBottom:"".concat((null===(n=l.padding)||void 0===n?void 0:n.bottom)||2,"rem")},children:(0,a.jsxs)("div",{className:"html-block-container ".concat(l.fullWidth?"full-width":""),children:[l.displayTitle&&(0,a.jsx)("h2",{className:"html-block-title",children:l.displayTitle}),(0,a.jsx)("div",{ref:i,className:"html-block-content",dangerouslySetInnerHTML:{__html:l.htmlContent.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")}})]})})}async function i(e){let{sanityRef:t}=e,{sanityFetch:s}=await Promise.resolve().then(n.bind(n,6334)),i=await s({query:'*[_type == "htmlBlock" && _id == $ref][0] {\n _id,\n title,\n displayTitle,\n htmlContent,\n backgroundColor,\n fullWidth,\n anchor,\n "padding": {\n "top": coalesce(padding.top, 2),\n "bottom": coalesce(padding.bottom, 2)\n }\n }',params:{ref:t}});return i?(0,a.jsx)(l,{block:i}):null}n(310)},5160:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var a=n(7437),s=n(6334),l=n(3145),i=n(2265);function r(e){let{mainPost:t,cta:n,openInNewTab:r=!1}=e,o=(0,i.useRef)(null);return(0,a.jsxs)("div",{className:"hero-main-post transition-transform ease-out hover:[transform:rotateX(var(--x-rotation))_rotateY(var(--y-rotation))_scale(".concat("1.1",")]"),onMouseLeave:()=>o.current=null,onMouseEnter:e=>{o.current=e.currentTarget.getBoundingClientRect()},onMouseMove:e=>{if(!o.current)return;let t=e.clientX-o.current.left,n=e.clientY-o.current.top,a=t/o.current.width,s=n/o.current.height;e.currentTarget.style.setProperty("--x-rotation","".concat((.5-s)*10,"deg")),e.currentTarget.style.setProperty("--y-rotation","".concat((a-.5)*10,"deg")),e.currentTarget.style.setProperty("--x","".concat(100*a,"%")),e.currentTarget.style.setProperty("--y","".concat(100*s,"%"))},children:[(0,a.jsx)("a",{href:"".concat(t.slug.current),target:r?"_blank":"_self",children:(0,a.jsx)(l.default,{src:(0,s.uH)(t.mainImage).width(1244).height(700).url(),alt:t.title,width:1244,height:700,className:"w-[622px] h-full object-cover"})}),(0,a.jsxs)("div",{className:"hero-main-post-content",children:[t.tag&&(0,a.jsx)("span",{className:"hero-post-tag",children:t.tag}),(0,a.jsx)("h2",{children:t.title}),(0,a.jsx)("p",{className:"mb-0 md:mb-4",children:t.excerpt}),(0,a.jsx)("a",{className:"bgc-button btn-teal",href:"".concat(t.slug.current),target:r?"_blank":"_self",children:n})]})]})}},3404:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var a=n(7437),s=n(2265),l=n(4968);n(7374);var i=n(6336);function r(e){let{modal:t}=e,n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=document.querySelectorAll('a[href="#'.concat(t.id,'"]')),a=e=>{e.preventDefault();let n=document.getElementById(t.id);n&&(n.showModal(),document.body.style.overflow="hidden")};e.forEach(e=>{e.addEventListener("click",a)});let s=document.getElementById(t.id),l=e=>{e.target===s&&s.close()};s.addEventListener("click",l);let i=()=>{var e;null===(e=n.current)||void 0===e||e.resetSubmitted(),document.body.style.overflow="auto"};return s.addEventListener("close",i),()=>{e.forEach(e=>{e.removeEventListener("click",a)}),s.removeEventListener("click",l),s.removeEventListener("close",i)}},[t.id]),(0,a.jsxs)("dialog",{id:t.id,children:[(0,a.jsx)("a",{className:"close-modal",onClick:e=>{var a;e.preventDefault(),document.getElementById(t.id).close(),null===(a=n.current)||void 0===a||a.resetSubmitted()},children:"Close"}),(0,a.jsxs)("div",{className:"modalContent",id:"".concat(t.id,"-content"),children:[(0,a.jsxs)("div",{className:"modalInfo",children:[(0,a.jsx)("h1",{children:t.title}),(0,a.jsx)("div",{className:"block-content-text prose",children:(0,a.jsx)(i.Z,{blocks:t.text})})]}),t.form&&(0,a.jsx)("div",{className:"modalForm",children:(0,a.jsx)(l.default,{ref:n,formRef:t.form._ref})})]})]})}},336:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var a=n(7437),s=n(2265),l=n(6334),i=n(2660),r=n(9277),o=n(6902);function c(e){let{sanityRef:t,title:n}
1=e,[l,r]=(0,s.useState)([]),[o,c]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!0),[p,v]=(0,s.useState)(!1),[g,b]=(0,s.useState)(0),[j,w]=(0,s.useState)(null),y=(0,s.useRef)(null),[N,_]=(0,s.useState)(0);(0,s.useEffect)(()=>{(async()=>{try{let e=await d(6,0);r(e);let t=await u();b(t)}catch(e){console.error("Failed to fetch posts:",e)}})()},[t]),(0,s.useEffect)(()=>{j&&j.on("select",()=>_(j.selectedScrollSnap()+1))},[j]),(0,s.useEffect)(()=>{let e=()=>v(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.useEffect)(()=>{let e=()=>{y.current&&!o&&f&&0!==g&&y.current.getBoundingClientRect().bottom-window.innerHeight<=100&&k()};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[o,f,g]);let k=async()=>{if(!o&&f){c(!0);try{let e=g-l.length,t=await d(Math.min(e,3),l.length);(0===t.length||l.length+t.length>=g)&&x(!1),r(e=>[...e,...t])}catch(e){console.error("Error loading more posts:",e)}finally{c(!1)}}};return(0,a.jsxs)("section",{ref:y,className:"overflow-x-auto w-full py-12 md:px-32 flex flex-col items-center justify-center bg-[#FFD0A3] relative",children:[(0,a.jsxs)("a",{href:"/news",className:"flex w-full items-center pb-12 ml-10 md:ml-0",children:[(0,a.jsx)(i.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"ml-1 text-base",children:"Back to News"})]}),p?(0,a.jsx)(h,{posts:l,api:j,setApi:w,current:N}):(0,a.jsx)(m,{posts:l}),o&&(0,a.jsx)("div",{className:"text-center mt-4",children:"Loading more posts..."})]})}async function d(e,t){try{return await (0,l.sanityFetch)({query:'*[_type == "post" && status == "published"] | order(publishedAt desc) [$start...$end]',params:{start:t,end:t+e}})}catch(e){return console.error("Failed to fetch posts from Sanity:",e),[]}}async function u(){try{return await (0,l.sanityFetch)({query:'count(*[_type == "post" && status == "published"])',params:{}})}catch(e){return console.error("Failed to fetch total post count:",e),0}}let m=e=>{let{posts:t}=e;return(0,a.jsx)("div",{className:"grid grid-cols-3 gap-4 mb-8",children:t.map(e=>(0,a.jsx)(r.Z,{id:e.id,title:e.title,mainImage:e.mainImage,publishedAt:e.publishedAt,slug:e.slug,height:300},e.id))})},h=e=>{let{posts:t,setApi:n,current:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.lr,{setApi:n,opts:{align:"start"},className:"max-w-[100vw] pl-5",children:[(0,a.jsx)(o.KI,{className:"carousel-content -ml-1",children:t.slice(0,4).map(e=>(0,a.jsx)(o.d$,{className:"basis-full pl-2",children:(0,a.jsx)(r.Z,{id:e.id,title:e.title,excerpt:e.excerpt,mainImage:e.mainImage,publishedAt:e.publishedAt,slug:e.slug,height:200})},e.id))}),s>1&&(0,a.jsx)(o.am,{className:"carousel-button button-left"}),s<4&&(0,a.jsx)(o.Pz,{className:"carousel-button button-right"})]}),(0,a.jsx)("div",{className:"carousel-dots !relative !bottom-0 !mt-0 w-full",children:Array.from({length:4}).map((e,t)=>(0,a.jsx)("span",{className:"dot ".concat(s===t+1?"active-orange":"")},t))}),(0,a.jsx)("div",{className:"flex flex-col px-6",children:t.slice(4).map((e,t)=>(0,a.jsx)(r.Z,{id:e.id,title:e.title,excerpt:e.excerpt,mainImage:e.mainImage,secondaryImage:e.secondaryImage,publishedAt:e.publishedAt,slug:e.slug,isLarge:!1},e.id))})]})}},9277:function(e,t,n){"use strict";var a=n(7437),s=n(2265),l=n(6480),i=n(6334),r=n(3145),o=n(2027);let c=(0,s.forwardRef)((e,t)=>{let{id:n,title:s,excerpt:c,mainImage:d,secondaryImage:u,publishedAt:m,slug:h,isLarge:f=!0,isPrimary:x=!1}=e;return f?(0,a.jsx)("div",{ref:t,className:"flex flex-col items-center max-w-full overflow-hidden relative",children:(0,a.jsxs)("a",{href:"/news/".concat(h.current),className:"hover:no-underline w-full",children:[(0,a.jsx)("div",{className:"w-full relative aspect-video",children:(0,a.jsx)(r.default,{src:(0,i.uH)(d).width(1024).height(576).url(),className:"rounded-[10px] object-cover",alt:s,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",priority:!0})}),(0,a.jsxs)("div",{className:"w-full flex flex-col p-4 py-7 text-center",children:[(0,a.jsx)("span",{className:"text-[#4D4D4D] [font-size:14px] [letter-spacing:0.02em]",children:(0,l.p6)(m)}),(0,a.jsx)("h3",{className:"text-[#333] mt-2 mb-2 [font-family:var(--font-family-title)] font-semibold leading-[1.333] ".concat(x?"text-2xl leading-8":"text-base leading-5"),children:s}),c&&(0,a.jsx)("p",{className:"text-[#4D4D4D] [font-family:var(--font-family-body)] [line-height:1.25] [letter-spacing:0.02em]",children:(0,o.a)(c,120)})]})]})}):(0,a.jsx)("div",{ref:t,className:"flex flex-col items-base lg:items-center mt-8 max-w-full overflow-hidden relative",children:(0,a.jsxs)("a",{href:"/news/".concat(h.current),className:"flex hover:no-underline",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-1/3 relative aspect-video",children:(0,a.jsx)(r.default,{src:(0,i.uH)(u||d).width(640).height(360).url(),className:"rounded-[12px] object-cover",alt:s,fill:!0,sizes:"(max-width: 768px) 33vw, 25vw"})}),(0,a.jsxs)("div",{className:"w-2/3 flex flex-col py-2 px-3 text-left",children:[(0,a.jsx)("span",{className:"text-[#4D4D4D] [font-size:14px] [letter-spacing:0.02em] mb-1",children:(0,l.p6)(m)}),(0,a.jsx)("h3",{className:"text-[#333] [font-family:var(--font-family-title)] font-semibold leading-[1.333]",children:s})]})]})})});c.displayName="NewsPost",t.Z=c},6289:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var a=n(7437),s=n(2265),l=n(6334),i=n(9277),r=n(9376);function o(e){let{sanityRef:t,title:n,featuredPostId:o}=e,d=(0,r.useRouter)(),u=(0,r.useSearchParams)(),m=null==u?void 0:u.get("page"),h=m?parseInt(m):1,[f,x]=(0,s.use
1State)([]),[p,v]=(0,s.useState)(null),[g,b]=(0,s.useState)(0),[j,w]=(0,s.useState)(0),[y,N]=(0,s.useState)(!1),[_,k]=(0,s.useState)(!1),[S,C]=(0,s.useState)(h);(0,s.useEffect)(()=>{let e=async e=>{try{let t=[];for(let n=0;n<=e-1;n++){let e=await c(8,8*n),a=o?e.filter(e=>e._id!==o):e;if(t.push(...a),a.length<8){k(!0);break}}x(t),w(t.length)}catch(e){console.error("Failed to fetch data for News Posts:",e)}};(async()=>{try{let n=await (0,l.sanityFetch)({query:'*[_type == "newsPosts" && _id == $ref][0]',params:{ref:t}});v(n),await e(h)}catch(e){console.error("Failed to fetch data for News Posts:",e)}})()},[t,o,h]);let B=async()=>{if(!y&&!_){N(!0);try{let e=S+1,t=await c(8,(e-1)*8),n=o?t.filter(e=>e._id!==o):t;if(0===n.length)k(!0);else{x(e=>[...e,...n]),C(e);let t=new URLSearchParams((null==u?void 0:u.toString())||"");t.set("page",e.toString()),d.push("?"+t.toString(),{scroll:!1}),k(n.length<8)}}catch(e){console.error("Failed to fetch more posts:",e)}finally{N(!1)}}};return(0,a.jsx)("section",{className:"overflow-x-auto overflow-y-visible w-full py-20 px-10 lg:px-32 flex flex-col items-center justify-center bg-[#FFF1E4] relative",children:(0,a.jsxs)("div",{className:"w-full max-w-[1080px]",children:[(0,a.jsx)("h2",{className:"text-center text-[#FF4B00] text-3xl md:text-5xl w-full font-semibold leading-[56px] tracking-tight mb-10",children:n}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 mb-8",children:f.map(e=>(0,a.jsx)(i.Z,{id:e.id||e._id,title:e.title,excerpt:e.excerpt,mainImage:e.mainImage,publishedAt:e.publishedAt,slug:e.slug,isPrimary:!0},e._id))})}),(0,a.jsx)("div",{className:"w-full mt-10 mb-20 text-center",children:(0,a.jsx)("button",{onClick:B,disabled:y||_,className:"text-[#FFFFFF] border border-[#FF4B00] rounded-full px-6 py-3 inline-block bg-[#FF4B00] hover:bg-[#ff6600] hover:text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:y?"Loading...":_?"No More Posts":"Load More News"})})]})})}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{let n='\n *[_type == "post" && status == "published"] | order(publishedAt desc) ['.concat(t,"...").concat(t+e,"]\n ");return await (0,l.sanityFetch)({query:n,params:{}})}catch(e){return console.error("Failed to fetch posts from Sanity:",e),[]}}},1995:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var a=n(7437),s=n(2265),l=n(6334),i=n(6675);function r(e){let{sanityRef:t,title:n}
1=e,[r,o]=(0,s.useState)([]),[c,d]=(0,s.useState)(null),[u,m]=(0,s.useState)(""),[h,f]=(0,s.useState)(""),[x,p]=(0,s.useState)(""),[v,g]=(0,s.useState)([]),[b,j]=(0,s.useState)([]),[w,y]=(0,s.useState)(!0);(0,s.useEffect)(()=>{(async()=>{try{let e=await (0,l.sanityFetch)({query:'*[_type == "ourPrograms" && _id == $ref][0]',params:{ref:t}});d(e)}catch(e){console.error("Failed to fetch settings for ourPrograms:",e)}})()},[]),(0,s.useEffect)(()=>{(async()=>{if(c)try{y(!0);let e=await S(u,h,x);y(!1),o(e),g(N(e))}catch(e){console.error("Failed to fetch events:",e)}})()},[c]);let N=e=>Array.from(new Set(e.map(e=>{var t;return null===(t=e.location)||void 0===t?void 0:t.city}).filter(e=>e))),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;y(!0),S(e,t,n).then(e=>{o(e),y(!1)})},k=e=>{let t=e.target.value;p(t),_(u,h,t)};async function S(e,t,n){try{var a;let s={limit:(null==c?void 0:null===(a=c.number_of_events)||void 0===a?void 0:a.toString())||"12",categories:"1",multiply_buffer:"3",search:e,location:t,ageGroup:n},l=await fetch("/api/hivebrite/getEvents?".concat(new URLSearchParams(s).toString()));if(!l.ok)throw Error("Failed to fetch events: ".concat(l.statusText));return await l.json()}catch(e){return[]}}return(0,a.jsx)("section",{className:"our-programs-section overflow-x-auto overflow-y-visible w-full md:pt-0 flex flex-col items-center justify-center bg-[#FF4B00] relative",children:(0,a.jsxs)("div",{className:"max-w-[1140px] lg:px-8 w-auto w-full px-4",children:[(0,a.jsx)("h2",{className:"text-center text-white text-5xl font-semibold font-['Patika'] leading-[56px] tracking-tight mb-10",children:n}),(0,a.jsx)("form",{className:"filter-form",onSubmit:e=>{e.preventDefault(),_(u,h,x)},children:(0,a.jsxs)("div",{className:"flex sm:flex-row flex-col sm:space-x-4 my-[40px] w-full sm:items-end gap-[20px] sm:gap-0",children:[(0,a.jsxs)("div",{className:"flex-grow",children:[(0,a.jsx)("label",{className:"block mb-2",children:"Search"}),(0,a.jsx)("input",{type:"text",placeholder:"Type in a keyword",className:"p-2 border border-gray-300 rounded-md w-full placeholder-[#808080] text-sm font-normal leading-tight",onChange:e=>m(e.target.value)})]}),(0,a.jsxs)("div",{className:"flex-grow",children:[(0,a.jsx)("label",{className:"block mb-2",children:"Location"}),(0,a.jsxs)("select",{className:"p-2 border border-gray-300 rounded-md w-full text-sm font-normal leading-tight ".concat(""==h?"text-[#808080]":"text-[#000]"),onChange:e=>{let t=e.target.value;f(t),_(u,t,x)},children:[(0,a.jsx)("option",{value:"",children:"Select a city"}),v.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]})]}),(0,a.jsxs)("div",{className:"flex-grow",children:[(0,a.jsx)("label",{className:"block mb-2",children:"Age Group"}),(0,a.jsxs)("select",{className:"p-2 border border-gray-300 rounded-md w-full text-sm font-normal leading-tight ".concat(""==x?"text-[#808080]":"text-[#000]"),onChange:e=>{k(e)},children:[(0,a.jsx)("option",{value:"",children:"Select an age group"}),b.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{className:"bgc-button btn-icon-only search-button w-full sm:w-auto relative ".concat(w?"disabled":""),disabled:w,children:[w&&(0,a.jsxs)("svg",{className:"animate-spin h-5 w-5 sm:h-[16px] sm:w-[16px] absolute top-[12px] sm:relative sm:top-0 sm:translate-y-0",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),!w&&(0,a.jsx)("img",{src:"/Search.svg",alt:"Search",width:16,height:16,className:"".concat(w?"opacity-0":"opacity-100"," absolute top-1/2 -translate-y-1/2 sm:relative sm:top-0 sm:translate-y-0")}),(0,a.jsx)("span",{className:"inline sm:hidden",children:"Search"})]})})]})}),(0,a.jsx)("div",{className:"grid sm:grid-cols-1 md:grid-cols-3 gap-5 ".concat(w?"opacity-50":"opacity-100"),children:r.slice(0,null==c?void 0:c.number_of_events).map(e=>(0,a.jsx)(i.Z,{id:e.id,title:e.title,start_date:e.start_date,thumbnail:e.thumbnail,dis
1play_price_tag:!1,upcoming_events:!1,display_calendar:!1,description:e.description,show_date:!0,show_date_label:!1},e.id))}),w&&0===r.length&&(0,a.jsx)("div",{className:"flex justify-center items-center h-full mt-5",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900 dark:border-white"})}),(null==c?void 0:c.cta)&&(null==c?void 0:c.link)&&(0,a.jsx)("div",{className:"flex justify-center mt-[40px]",children:(0,a.jsx)("a",{href:null==c?void 0:c.link,className:"bgc-button btn-white",target:"".concat((null==c?void 0:c.openInNewTab)?"_blank":"_self"),children:null==c?void 0:c.cta})})]})})}n(6154)},6307:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var a=n(7437),s=n(6334),l=n(2265);function i(e){let{member:t}=e,[n,i]=(0,l.useState)(!1);return(0,a.jsxs)("div",{className:"team-member",children:[(0,a.jsx)("img",{src:(0,s.uH)(t.image).width(260).url(),alt:t.name}),(0,a.jsx)("h4",{children:t.name}),(0,a.jsx)("span",{className:"position",children:t.position}),(0,a.jsxs)("div",{className:"links",children:[(0,a.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),i(!n)},children:"Read bio"}),t.link&&(0,a.jsx)("a",{href:t.link,target:"_blank",className:"linkedin"})]}),(0,a.jsxs)("div",{className:"bio ".concat(n?"show":""),children:[(0,a.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),i(!1)},className:"close"}),(0,a.jsx)("h4",{children:t.name}),(0,a.jsx)("span",{className:"position",children:t.position}),(0,a.jsx)("p",{children:t.bio})]})]})}function r(e){let{showTeamPicker:t}=e,[n,r]=(0,l.useState)([]),[o,c]=(0,l.useState)(!0),[d,u]=(0,l.useState)(null),[m,h]=(0,l.useState)([]),[f,x]=(0,l.useState)([]),p=(0,l.useRef)(null),[v,g]=l.useState(),[b,j]=l.useState(0),[w,y]=l.useState(0);async function N(){c(!0);try{let e=(await (0,s.sanityFetch)({query:'*[_type == "team" && active == true && defined(team)] {\n _id,\n active,\n order,\n team->{\n _id,\n name,\n order,\n slug\n },\n name,\n position,\n image,\n bio,\n link\n } | order(team.order asc, order asc)'})).filter(e=>e.team&&e.team._id);x(e),h(Array.from(new Map(e.filter(e=>void 0!==e.team&&void 0!==e.team._id).map(e=>[e.team._id,e.team])).values()).filter(e=>void 0!==e).sort((e,t)=>e.order-t.order))}catch(e){console.error("Error fetching team members:",e)}finally{c(!1)}}function _(e){null===e?r(f):r(f.filter(t=>{var n;return(null===(n=t.team)||void 0===n?void 0:n._id)===e._id}))}l.useEffect(()=>{v&&(y(v.scrollSnapList().length),j(v.selectedScrollSnap()+1),v.on("select",()=>{j(v.selectedScrollSnap()+1)}))},[v]),(0,l.useEffect)(()=>{(async()=>{await N()})()},[]),(0,l.useEffect)(()=>{m.length>0&&(u(m[0]),_(m[0]))},[m]);let k=function(e){if(u(e),_(e),p.current){let e=p.current.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:e-160,behavior:"smooth"})}};return(0,a.jsxs)("div",{children:[t&&(0,a.jsx)("ul",{className:"team-selector hidden lg:inline-flex",children:m.map(e=>(0,a.jsx)("li",{className:(null==d?void 0:d._id)===e._id?"active":"",children:(0,a.jsx)("button",{onClick:()=>k(e),children:e.name})},e._id))}),t&&(0,a.jsx)("div",{className:"our-team-inner-mobile",children:(0,a.jsx)("select",{className:"team-selector-select lg:hidden block",onChange:e=>{let t=m.find(t=>t._id===e.target.value);t&&k(t)},value:(null==d?void 0:d._id)||"",children:m.map(e=>(0,a.jsx)("option",{value:e._id,children:e.name},e._id))})}),(0,a.jsx)("div",{className:"team-members-container",ref:p,children:o?(0,a.jsx)("div",{children:"Loading..."}):n.map((e,t)=>(0,a.jsx)(i,{member:e},t))})]})}},3031:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(7437),s=n(2265),l=n(6334);function i(e){let{partners:t}=e,n=(0,s.useRef)(null),i=(0,s.useRef)(null),r=(0,s.useRef)({animationId:0,position:0,speed:.5,lastTimestamp:0});return(0,s.useEffect)(()=>{let e=n.current,a=i.current;if(!e||!a||0===t.length)return;let s=()=>{for(;a.firstChild;)a.removeChild(a.firstChild);for(let e=0;e<2;e++){let e=document.createElement("div");e.className="partners",t.forEach((t,n)=>{let a=document.createElement("img");if(a.src=(0,l.uH)(t.image).url(),a.alt="Partner ".concat(n+1),a.draggable=!1,t.url){let n=document.createElement("a");n.href=t.url,n.target="_blank",n.rel="noopener noreferrer",n.className="partner-item",n.appendChild(a),e.appendChild(n)}else{let t=document.createElement("div");t.className="partner-item",t.appendChild(a),e.appendChild(t)}}),a.appendChild(e)}};s();let o=()=>{let e=a.children[0].offsetWidth,t=n=>{r.current.lastTimestamp||(r.current.lastTimestamp=n);let s=n-r.current.lastTimestamp;r.current.lastTimestamp=n,r.current.position-=r.current.speed*(s/16),Math.abs(r.current.position)>=e&&(r.current.position+=e),a.style.transform="translateX(".concat(r.current.position,"px)"),r.current.animationId=requestAnimationFrame(t)};r.current.animationId=requestAnimationFrame(t)},c=()=>{r.current.animationId&&(cancelAnimationFrame(r.current.animationId),r.current.animationId=0),r.current.lastTimestamp=0,r.current.position=0;let e=window.innerWidth>768?.5:.3;r.current.speed=e*(t.length<8?.8:1),s(),o()};return c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),r.current.animationId&&cancelAnimationFrame(r.current.animationId)}},[t]),(0,a.jsx)("div",{className:"partners-container",ref:n,children:(0,a.jsx)("div",{className:"partners-track",ref:i})})}n(2234)},2150:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(7437),s=n(2265);n(8419);var l=n(6336);function i(e){let{question:t}
1=e,[n,i]=(0,s.useState)(!1),r=()=>{i(!n)};return(0,a.jsxs)("div",{className:"question ".concat(n?"open":""),onClick:r,children:[(0,a.jsxs)("h3",{children:[t.question,(0,a.jsx)("a",{className:"question-toggle",onClick:r,children:(0,a.jsx)("img",{src:"/icon-chevronDown.svg"})})]}),(0,a.jsx)("div",{className:"block-content-text answer prose",children:(0,a.jsx)(l.Z,{blocks:t.answer})})]},t._id)}},4163:function(e,t,n){"use strict";n.d(t,{SideToSideMediaBlockServer:function(){return o}});var a=n(7437),s=n(6334),l=n(3145),i=n(2265);function r(e){var t,n,r,o;let{block:c}=e,[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(null),[f,x]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{x(window.innerWidth<=480)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let p=e=>{h(e),u(!0),document.documentElement.style.overflow="hidden"},v=()=>{u(!1),document.documentElement.style.overflow="auto"},g=e=>{if(!e)return"";if(!/[\/\.]/.test(e))return e;for(let t of[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/v\/|youtube\.com\/watch\?.*v=)([^&\?\/]+)/,/youtube\.com\/watch\?.*v=([^&]+)/,/youtu\.be\/([^\/\?]+)/,/youtube\.com\/embed\/([^\/\?]+)/]){let n=e.match(t);if(n&&n[1])return n[1]}return e},b=e=>{if(!e)return null;if("youtube"===e.mediaType&&e.youtube_id){let t=g(e.youtube_id);return t?(0,a.jsxs)("div",{className:"media-block-container youtube",onClick:()=>p(e),children:[(0,a.jsx)(l.default,{src:"https://img.youtube.com/vi/".concat(t,"/").concat(f?"mqdefault":"maxresdefault",".jpg"),alt:"YouTube video thumbnail",width:1280,height:720,className:"media-thumbnail",priority:!0,sizes:"(min-width: 960px) 450px, 100vw",style:{objectFit:"cover",width:"100%",height:"100%",position:"absolute",top:0,left:0}}),(0,a.jsx)("div",{className:"play-button",children:(0,a.jsxs)("svg",{width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"36",cy:"36",r:"36",fill:"white",fillOpacity:"0.8"}),(0,a.jsx)("path",{d:"M48 36L30 46.3923L30 25.6077L48 36Z",fill:"#FF9200"})]})})]}):(console.error("No YouTube ID found:",e.youtube_id),(0,a.jsx)("div",{className:"media-block-container youtube",children:"Invalid YouTube URL"}))}return"image"===e.mediaType&&e.asset?(0,a.jsxs)("div",{className:"media-block-container image",onClick:()=>p(e),children:[(0,a.jsx)(l.default,{src:(0,s.uH)(e.asset).url(),alt:e.alt||"",width:1280,height:720,className:"media-image",priority:!0,sizes:"(min-width: 960px) 450px, 100vw",style:{objectFit:"cover",width:"100%",height:"100%",position:"absolute",top:0,left:0}}),(0,a.jsx)("div",{className:"zoom-icon",children:(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M15 15L21 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}),(0,a.jsx)("circle",{cx:"10",cy:"10",r:"8",stroke:"white",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M10 6V14M6 10H14",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]})})]}):null};return c&&((null===(t=c.leftColumn)||void 0===t?void 0:t.length)||(null===(n=c.rightColumn)||void 0===n?void 0:n.length))?(0,a.jsxs)("section",{className:"side-to-side-media-section ".concat(c.backgroundColor||"white"),style:{paddingTop:c.removeTopPadding?"0":void 0,paddingBottom:c.removeBottomPadding?"0":void 0},children:[(0,a.jsxs)("div",{className:"side-to-side-media-blocks",children:[(0,a.jsx)("div",{className:"side-to-side-media-column",children:null===(r=c.leftColumn)||void 0===r?void 0:r.map((e,t)=>(0,a.jsx)("div",{className:"side-to-side-media-block",children:b(e)},"left-".concat(t)))}),(0,a.jsx)("div",{className:"side-to-side-media-column",children:null===(o=c.rightColumn)||void 0===o?void 0:o.map((e,t)=>(0,a.jsx)("div",{className:"side-to-side-media-block",children:b(e)},"right-".concat(t)))})]}),d&&m&&(0,a.jsx)("div",{className:"media-lightbox-overlay",onClick:e=>{e.target===e.currentTarget&&v()},children:(0,a.jsxs)("div",{className:"media-lightbox-content",children:[(0,a.jsx)("button",{className:"lightbox-close-button",onClick:v,children:"\xd7"}),"youtube"===m.mediaType&&m.youtube_id?(0,a.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat(g(m.youtube_id),"?autoplay=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):"image"===m.mediaType&&m.asset?(0,a.jsx)("div",{className:"lightbox-image-container",children:(0,a.jsx)(l.default,{src:(0,s.uH)(m.asset).url(),alt:m.alt||"",fill:!0,sizes:"(min-width: 960px) 80vw, 90vw",style:{objectFit:"contain"},priority:!0})}):null]})})]}):(console.error("Invalid SideToSideMediaBlock data:",c),null)}async function o(e){let{sanityRef:t}=e,{sanityFetch:s}=await Promise.resolve().then(n.bind(n,6334)),l=await s({query:'*[_type == "sideToSideMediaBlock" && _id == $ref][0] {\n _id,\n leftColumn[] {\n mediaType,\n alt,\n asset,\n youtube_id\n },\n rightColumn[] {\n mediaType,\n alt,\n asset,\n youtube_id\n },\n backgroundColor,\n removeTopPadding,\n removeBottomPadding\n }',params:{ref:t}});return l?(0,a.jsx)(r,{block:l}):null}n(2404)},9353:function(e,t,n){"use strict";n.d(t,{SliderBlock:function(){return c}});var a=n(7437),s=n(2265),l=n(6334),i=n(6604),r=n.n(i),o=n(6902);function c(e){let{sanityRef:t}
1=e,[n,i]=(0,s.useState)(null),[c,d]=(0,s.useState)(null),[u,m]=(0,s.useState)(0);return((0,s.useEffect)(()=>{(async()=>{i(await (0,l.sanityFetch)({query:'*[_type == "sliderBlock" && _id == $ref][0] {\n title,\n subtitle,\n slides[] { image, alt, caption }\n }',params:{ref:t}}))})()},[t]),(0,s.useEffect)(()=>{if(!c)return;let e=()=>m(c.selectedScrollSnap());return c.on("select",e),e(),()=>{c.off("select",e)}},[c]),n&&n.slides&&!(n.slides.length<1))?(0,a.jsx)("section",{className:r().sliderSection,children:(0,a.jsxs)("div",{className:r().container,children:[(0,a.jsx)("h2",{className:r().title,children:n.title}),n.subtitle&&(0,a.jsx)("p",{className:r().subtitle,children:n.subtitle}),(0,a.jsx)("div",{className:r().carouselWrap,children:(0,a.jsxs)(o.lr,{setApi:d,opts:{align:"center",loop:!0},className:"mx-auto max-w-[1200px]",children:[(0,a.jsx)(o.KI,{className:"items-center",children:n.slides.map((e,t)=>{let n=e.image?(0,l.uH)(e.image).url():"",s=t===u;return(0,a.jsx)(o.d$,{className:"md:basis-1/3 basis-[85%]",children:(0,a.jsxs)("div",{className:"".concat(r().slide," ").concat(s?r().slideSelected:r().slideDimmed),children:[n&&(0,a.jsx)("img",{src:n,alt:e.alt||"",className:r().slideImg,loading:t<3?"eager":"lazy"}),e.caption&&(0,a.jsx)("p",{className:r().slideCaption,children:e.caption})]})},t)})}),(0,a.jsx)(o.am,{className:r().navPrev}),(0,a.jsx)(o.Pz,{className:r().navNext})]})})]})}):null}},1736:function(e,t,n){"use strict";n.d(t,{SubscribeBlock:function(){return h}});var a=n(7437),s=n(2265),l=n(3145),i=n(8047),r=n.n(i),o=n(2869),c=n(6334),d=n(566),u=n.n(d);function m(e){let{isOpen:t,onClose:n,embedCode:l}=e,i=(0,s.useRef)(null),r=(0,s.useRef)(null);return((0,s.useEffect)(()=>{function e(e){i.current&&!i.current.contains(e.target)&&n()}function a(e){"Escape"===e.key&&n()}async function s(){void 0!==window.jQuery||void 0!==window.$||await new Promise((e,t)=>{let n=document.createElement("script");n.src="https://code.jquery.com/jquery-3.7.1.min.js",n.async=!0,n.onload=()=>e(),n.onerror=()=>t(Error("Failed to load jQuery")),document.head.appendChild(n)})}async function o(){if(!(t&&l&&r.current))return;await s().catch(()=>{});let e=r.current;e.innerHTML=l,e.querySelectorAll("script").forEach(e=>{var t;let n=document.createElement("script");Array.from(e.attributes).forEach(e=>n.setAttribute(e.name,e.value)),e.src?n.src=e.src:n.appendChild(document.createTextNode(e.innerHTML)),null===(t=e.parentNode)||void 0===t||t.replaceChild(n,e)})}return t&&(document.documentElement.style.overflow="hidden",document.addEventListener("mousedown",e),document.addEventListener("keydown",a)),t?o():r.current&&(r.current.innerHTML=""),()=>{document.documentElement.style.overflow="",document.removeEventListener("mousedown",e),document.removeEventListener("keydown",a)}},[t,n,l]),t)?(0,a.jsx)("div",{className:u().overlay,children:(0,a.jsxs)("div",{className:u().modal,ref:i,children:[(0,a.jsx)("button",{className:u().closeButton,onClick:n,"aria-label":"Close",children:"\xd7"}),(0,a.jsx)("div",{className:u().content,children:(0,a.jsx)("div",{ref:r,className:u().formContainer})})]})}):null}function h(e){let{sanityRef:t}=e,[n,i]=(0,s.useState)(!1),[d,u]=(0,s.useState)(null),[h,f]=(0,s.useState)(!0);if((0,s.useEffect)(()=>{(async function(){if(!t){console.error("SubscribeBlock: sanityRef is missing"),f(!1);return}try{let e=await (0,c.Jd)({query:'*[_type == "subscribeBlock" && _id == $ref][0] {\n title,\n description,\n image {\n asset,\n alt\n },\n buttonText,\n mailchimpEmbed,\n backgroundColor,\n anchorId\n }',params:{ref:t}});u(e)}catch(e){console.error("Error fetching subscribe block data:",e)}finally{f(!1)}})()},[t]),(0,s.useEffect)(()=>{let e=null==d?void 0:d.anchorId;if(!e)return;let t="#".concat(e),n=()=>{window.location.hash===t&&i(!0)};n();let a=()=>{n()};return window.addEventListener("hashchange",a),()=>{window.removeEventListener("hashchange",a)}},[null==d?void 0:d.anchorId]),!d)return console.warn("SubscribeBlock: No data found for ref ".concat(t)),null;let{title:x,description:p,image:v,buttonText:g,mailchimpEmbed:b,backgroundColor:j="peach",anchorId:w}=d,y=(null==v?void 0:v.asset)?(0,c.uH)(v.asset).width(600).url():"/placeholder-mother-daughter.jpg",N=(null==v?void 0:v.alt)||"Subscribe Block Image";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("section",{id:w||void 0,className:"".concat(r().container," ").concat(r()[j]),children:(0,a.jsxs)("div",{className:r().inner,children:[(0,a.jsx)("div",{className:r().imageWrapper,children:(0,a.jsx)(l.default,{src:y,alt:N,width:400,height:300,className:r().image})}),(0,a.jsxs)("div",{className:r().contentWrapper,children:[(0,a.jsx)("h2",{className:r().title,children:x||"Don't Miss A Beat, Sign Up!"}),(0,a.jsx)("p",{className:r().description,children:p||"Get the latest updates straight to your inbox."}),(0,a.jsx)(o.z,{className:"bgc-button",onClick:function(){i(!0)},children:g||"Sign Up Now!"})]})]})}),(0,a.jsx)(m,{isOpen:n,onClose:function(){i(!1)},embedCode:b})]})}},8969:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var a=n(7437),s=n(2265),l=n(7473),i=n.n(l),r=n(6334);function o(e){var t;let{tabs:n,tabContents:l}
1=e,[r,o]=(0,s.useState)(0),c=e=>{o(e)},d=(()=>{var e,t;let n={};return(null===(e=l[r])||void 0===e?void 0:e.downloads)&&(null===(t=l[r])||void 0===t?void 0:t.downloads.length)!==0?(l[r].downloads.forEach(e=>{n[e.title]||(n[e.title]=[]),n[e.title].push(e)}),n):{}})();return l&&0!==l.length?(0,a.jsx)("div",{className:i().tabsBlockWrapper,children:(0,a.jsxs)("section",{className:i().tabsBlock,children:[(0,a.jsx)("div",{className:i().tabsNav,children:n.map((e,t)=>(0,a.jsx)("button",{className:"".concat(i().tabButton," ").concat(r===t?i().active:""),onClick:()=>c(t),children:e},t))}),(0,a.jsx)("div",{className:i().divider}),(0,a.jsxs)("div",{className:i().tabContent,children:[(0,a.jsx)("h2",{className:i().tabTitle,children:null===(t=l[r])||void 0===t?void 0:t.title}),(0,a.jsx)("div",{className:i().downloadBlocks,children:Object.entries(d).length>0?Object.entries(d).map((e,t)=>{let[n,s]=e;return(0,a.jsxs)("div",{className:i().downloadBlock,children:[(0,a.jsx)("h3",{className:i().downloadTitle,children:n}),s.map((e,t)=>(0,a.jsxs)("a",{href:e.documentUrl,className:i().downloadLink,download:!0,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("span",{className:i().documentTitle,children:e.documentTitle}),(0,a.jsxs)("svg",{className:i().downloadIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,a.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,a.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})]},t))]},t)}):(0,a.jsx)("div",{children:"No downloads available for this tab"})})]})]})}):(0,a.jsx)("div",{children:"No content available"})}async function c(e){let{sanityRef:t}=e,n=await (0,r.sanityFetch)({query:'*[_type == "tabsBlock" && _id == $ref][0] {\n tabs[] {\n tabName,\n tabTitle,\n downloads[] {\n downloadTitle,\n documentTitle,\n document {\n asset-> {\n url\n }\n }\n }\n }\n }',params:{ref:t}});if(!n||!n.tabs||0===n.tabs.length)return null;let s=n.tabs.map(e=>e.tabName),l=n.tabs.map(e=>e.downloads&&Array.isArray(e.downloads)?{title:e.tabTitle,downloads:e.downloads.map(e=>{var t,n;return{title:e.downloadTitle,documentTitle:e.documentTitle,documentUrl:(null===(n=e.document)||void 0===n?void 0:null===(t=n.asset)||void 0===t?void 0:t.url)||"#"}})}:{title:e.tabTitle,downloads:[]});return(0,a.jsx)(o,{tabs:s,tabContents:l})}},2194:function(e,t,n){"use strict";n.d(t,{TestimonialBlock:function(){return c}});var a=n(7437),s=n(2265),l=n(6334),i=n(4385),r=n.n(i),o=n(6336);function c(e){let{sanityRef:t}=e,[n,i]=(0,s.useState)(null);return((0,s.useEffect)(()=>{(async()=>{i(await (0,l.sanityFetch)({query:'*[_type == "testimonials" && _id == $ref][0] {\n sectionTitle,\n title,\n testimonials[] {\n name,\n description,\n testimonial,\n image\n },\n bottomContent\n }',params:{ref:t}}))})()},[t]),n)?(0,a.jsx)("section",{className:r().testimonialSection,children:(0,a.jsxs)("div",{className:r().container,children:[(0,a.jsx)("h3",{className:r().sectionTitle,children:n.sectionTitle}),(0,a.jsx)("h2",{className:r().title,children:n.title}),(0,a.jsx)("div",{className:r().testimonialGrid,children:n.testimonials.map((e,t)=>(0,a.jsxs)("div",{className:r().testimonialCard,children:[(0,a.jsx)("blockquote",{className:r().quote,children:e.testimonial}),(0,a.jsxs)("div",{className:r().author,children:[e.image?(0,a.jsx)("div",{className:r().imageWrapper,children:(0,a.jsx)("img",{src:(0,l.uH)(e.image).url(),alt:e.name,className:r().image})}):(0,a.jsx)("div",{className:r().imageWrapper}),(0,a.jsxs)("div",{className:r().authorInfo,children:[(0,a.jsx)("span",{className:r().authorName,children:e.name}),e.description&&(0,a.jsx)("span",{className:r().authorDescription,children:e.description})]})]})]},t))}),n.bottomContent&&n.bottomContent.length>0&&(0,a.jsx)("div",{className:r().bottomContent,children:(0,a.jsx)(o.Z,{blocks:n.bottomContent})})]})}):null}},1824:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var a=n(7437),s=n(2265),l=n(6334),i=n(6675),r=n(6902);function o(e){let{sanityRef:t,title:n}
1=e,[o,d]=(0,s.useState)([]),[u,m]=(0,s.useState)(null),[h,f]=(0,s.useState)(null),[x,p]=(0,s.useState)(0),[v,g]=(0,s.useState)(0);return((0,s.useEffect)(()=>{(async()=>{try{let e=await (0,l.sanityFetch)({query:'*[_type == "upcomingEvents" && _id == $ref][0]',params:{ref:t}});m(e);let n=await c((null==u?void 0:u.number_of_events)||6);d(n),g(n.length),p(1)}catch(e){console.error("Failed to fetch data for UpcomingEvents:",e)}})()},[t]),(0,s.useEffect)(()=>{h&&h.on("select",()=>{p(h.selectedScrollSnap()+1)})},[h]),0===o.length)?null:(0,a.jsx)("section",{className:"upcoming-events overflow-x-auto overflow-y-visible w-full lg:p-12 pt-[80px] md:pt-12 flex flex-col items-center justify-center bg-[#FF4B00] relative",children:(0,a.jsxs)("div",{className:"max-w-[1140px] lg:px-8 w-auto md:w-full",children:[(0,a.jsx)("h2",{className:"text-white text-left lg:text-center md:text-left pl-9 lg:pl-0 text-[32px] lg:text-[40px] w-full font-semibold leading-[40px] lg:leading-[48px] tracking-tight mb-10",children:n}),(0,a.jsx)("div",{className:"hidden lg:grid grid-cols-3 gap-5",children:o.slice(0,null==u?void 0:u.number_of_events).map(e=>(0,a.jsx)(i.Z,{id:e.id,title:e.title,venue:e.venue,start_date:e.start_date,end_date:e.end_date,location:e.location,thumbnail:e.thumbnail,categories:e.categories,display_price_tag:e.display_price_tag,price:e.price,upcoming_events:!0},e.id))}),(0,a.jsxs)("div",{className:"grid lg:hidden mb-10",children:[(0,a.jsxs)(r.lr,{setApi:f,opts:{align:"start"},className:"max-w-[100vw] pl-5",children:[(0,a.jsx)(r.KI,{className:"carousel-content -ml-1",children:o.slice(0,null==u?void 0:u.number_of_events).map(e=>(0,a.jsx)(r.d$,{className:"basis-full pl-4",children:(0,a.jsx)(i.Z,{id:e.id,title:e.title,venue:e.venue,start_date:e.start_date,end_date:e.end_date,location:e.location,thumbnail:e.thumbnail,categories:e.categories,display_price_tag:e.display_price_tag,price:e.price,upcoming_events:!0})},e.id))}),x>1&&(0,a.jsx)(r.am,{className:"carousel-button button-left"}),x<v&&(0,a.jsx)(r.Pz,{className:"carousel-button button-right"})]}),(0,a.jsx)("div",{className:"carousel-dots !relative !mt-0 w-full",children:Array.from({length:v}).map((e,t)=>(0,a.jsx)("span",{className:"dot ".concat(x===t+1?"active":"")},t))})]}),(0,a.jsx)("div",{className:"w-full flex justify-center",children:(0,a.jsx)("a",{href:null==u?void 0:u.link,target:(null==u?void 0:u.openInNewTab)?"_blank":"_self",className:"bgc-button btn-white w-fit flex items-center mt-12 mb-36 lg:mb-20",children:null==u?void 0:u.cta})}),(0,a.jsx)("div",{className:"square-pattern mt-20"})]})})}async function c(e){try{let t=await fetch("/api/hivebrite/getEvents?limit=".concat(e,"&categories=1&price=1"));if(!t.ok)throw Error("Failed to fetch events: ".concat(t.statusText));return await t.json()}catch(e){return[]}}},8076:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var a=n(7437),s=n(2265);function l(e){let{withImage:t,color:n,image:l,title:i,subtitle:r,text:o}=e;return(0,a.jsxs)("div",{className:"card help-card ".concat(t?"with-image":"without-image"),style:n?{backgroundColor:n}:void 0,children:[t&&l&&(0,a.jsx)("div",{className:"card-image-container",children:(0,a.jsx)("img",{src:l,alt:i,className:"card-image"})}),(0,a.jsxs)("div",{className:"card-content",children:[(0,a.jsx)("h3",{className:"card-title",children:i}),r&&(0,a.jsx)("h4",{children:r}),(0,a.jsx)("p",{className:"card-text",children:o.split("\n").map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[e,(0,a.jsx)("br",{})]},t))})]})]})}n(4129),n(7937);var i=n(6334),r=e=>{let{blocks:t}=e;return(0,s.useEffect)(()=>{let e=()=>{let e=document.querySelector(".cards-container"),t=null==e?void 0:e.getBoundingClientRect().top,n=null==e?void 0:e.querySelectorAll(".card");t&&t<window.innerHeight&&(null==n||n.forEach((e,t)=>{setTimeout(()=>{e.classList.add("visible")},100*t)}))};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsx)("div",{className:"ways-to-help-blocks cards-container",children:t.map((e,t)=>(0,a.jsx)(l,{title:e.title,text:e.text,image:e.image?(0,i.uH)(e.image).url():void 0,withImage:e.withImage,subtitle:e.subtitle,color:e.color},t))})}},5401:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var a=n(7437);n(8743);var s=n(6334),l=n(7648);function i(e){let{whatsNew:t}=e;return(0,a.jsxs)("div",{className:"whats-new__block",children:[(0,a.jsx)("div",{className:"whats-new__image-container",children:t.link&&(0,a.jsx)(l.default,{href:t.link,target:t.openInNewTab?"_blank":"_self",className:"whats-new__image-link",children:(0,a.jsx)("img",{src:(0,s.uH)(t.image).url(),srcSet:"".concat((0,s.uH)(t.image).url()," 1x, ").concat((0,s.uH)(t.image).url()," 2x"),alt:t.title,className:"whats-new__image"})})}),(0,a.jsxs)("div",{className:"whats-new__content",children:[(0,a.jsx)("h3",{className:"whats-new__block-title",children:t.title}),(0,a.jsx)("p",{className:"whats-new__description",children:t.description}),t.link&&(0,a.jsx)(l.default,{href:t.link,className:"bgc-button bgc-button--orange",target:t.openInNewTab?"_blank":"_self",children:t.cta})]})]})}var r=n(2265);function o(e){let{whatsNew:t,title:n}=e,[s,l]=r.useState(),[o,c]=r.useState(0),[d,u]=r.useState(0);return r.useEffect(()=>{s&&(u(s.scrollSnapList().length),c(s.selectedScrollSnap()+1),s.on("select",()=>{c(s.selectedScrollSnap()+1)}))},[s]),(0,a.jsxs)("section",{className:"whats-new-section",children:[(0,a.jsx)("div",{className:"square-pattern"}),(0,a.jsxs)("div",{className:"whats-new__container",children:[(0,a.jsx)("h2",{className:"whats-new__title",children:n}),(0,a.jsx)("div",{className:"whats-new__blocks",children:t.map(e=>(0,a.jsx)(i,{whatsNew:e},e._id))})]}),(0,a.jsx)("div",{className:"squiggle-pattern"})]})}},7349:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var a=n(7437),s=n(2265),l=n(6334),i=n(7648),r=n(6336);function o(e){var t;let{workshopCard:n}=e,o=(0,s.useRef)(null);return(0,a.jsxs)("div",{className:"workshops-card transition-transform ease-
1out hover:[transform:rotateX(var(--x-rotation))_rotateY(var(--y-rotation))_scale(".concat("1.1",")]"),onMouseLeave:()=>o.current=null,onMouseEnter:e=>{o.current=e.currentTarget.getBoundingClientRect()},onMouseMove:e=>{if(!o.current)return;let t=e.clientX-o.current.left,n=e.clientY-o.current.top,a=t/o.current.width,s=n/o.current.height;e.currentTarget.style.setProperty("--x-rotation","".concat((.5-s)*15,"deg")),e.currentTarget.style.setProperty("--y-rotation","".concat((a-.5)*15,"deg")),e.currentTarget.style.setProperty("--x","".concat(100*a,"%")),e.currentTarget.style.setProperty("--y","".concat(100*s,"%"))},children:[(0,a.jsx)("img",{className:"workshops-card-image",src:(0,l.uH)(n.image).url(),alt:""}),(0,a.jsxs)("div",{className:"workshops-card-info",children:[n.tag&&(0,a.jsx)("span",{className:"tag mb-2",children:n.tag}),(0,a.jsx)("h3",{children:n.title}),(0,a.jsx)("div",{className:"block-content-text prose",children:(0,a.jsx)(r.Z,{blocks:n.content})}),(0,a.jsx)(i.default,{href:null!==(t=n.buttonLink)&&void 0!==t?t:"",target:n.openInNewTab?"_blank":"_self",children:(0,a.jsx)("button",{className:"bgc-button btn-teal",children:n.buttonText})})]})]})}},7355:function(e,t,n){"use strict";n.r(t);var a=n(7437),s=n(2265);t.default=()=>((0,s.useEffect)(()=>{let e=()=>{document.querySelectorAll(".workshop-stripes-container").forEach(e=>{e&&e.getBoundingClientRect().top<window.innerHeight&&(null==e||e.classList.add("active"))})};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsx)("div",{className:"workshop-stripes",children:(0,a.jsx)("div",{className:"workshop-stripes-container",children:Array.from({length:18}).map((e,t)=>(0,a.jsx)("div",{className:"stripe"},t))})}))},2613:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var a=n(7437),s=n(3145),l=n(6334);function i(e){let{communityShowcase:t}=e;return(0,a.jsxs)("div",{className:"community-showcase-block",children:[(0,a.jsx)("div",{className:"community-showcase-image",style:{width:"400px",height:"320px"},children:(0,a.jsx)(s.default,{src:(0,l.uH)(t.image).width(400).height(320).url(),alt:t.title,width:400,height:320})}),(0,a.jsxs)("div",{className:"community-showcase-content",children:[(0,a.jsx)("h3",{children:t.title}),(0,a.jsx)("p",{children:t.text}),(0,a.jsx)("a",{href:t.link,className:"bgc-button btn-teal",target:t.openInNewTab?"_blank":"_self",children:t.cta})]})]})}var r=n(6902),o=n(2265);function c(e){let{communityShowcases:t}=e,[n,s]=o.useState(),[l,c]=o.useState(0),[d,u]=o.useState(0);return o.useEffect(()=>{n&&(u(n.scrollSnapList().length),c(n.selectedScrollSnap()+1),n.on("select",()=>{c(n.selectedScrollSnap()+1)}))},[n]),(0,a.jsxs)("div",{className:"community-showcase-blocks",children:[(0,a.jsxs)(r.lr,{setApi:s,opts:{align:"start"},className:"community-carousel",children:[(0,a.jsx)(r.KI,{className:"carousel-content -ml-0 ".concat(l===d?"lastIsActive":""),"data-current":l,"data-count":d,children:t.map((e,t)=>(0,a.jsx)(r.d$,{className:"pl-2 community-carousel-item ".concat(l===t+1?"active":""),children:(0,a.jsx)(i,{communityShowcase:e})},e._id))}),l>1&&(0,a.jsx)(r.am,{className:"carousel-button button-large button-left"}),l<d&&(0,a.jsx)(r.Pz,{className:"carousel-button button-large button-right"})]}),(0,a.jsx)("div",{className:"carousel-dots",children:Array.from({length:d}).map((e,t)=>(0,a.jsx)("span",{className:"dot ".concat(l===t+1?"active":""),onClick:()=>null==n?void 0:n.scrollTo(t)},t))})]})}},3060:function(e,t,n){"use strict";n.d(t,{default:function(){return i}});var a=n(7437);function s(e){let{stackedCard:t,index:n,onCardClick:s}=e;return(0,a.jsxs)("div",{className:"stacked-card stacked-card-".concat(n),onClick:()=>{s&&s(n)},children:[(0,a.jsx)("h3",{children:t.title}),(0,a.jsxs)("div",{className:"stacked-card-body",children:[(0,a.jsx)("h4",{children:t.body}),(0,a.jsx)("p",{children:t.footer})]})]},t._id)}var l=n(2265);function i(e){let{stackedCards:t}=e,[n,i]=(0,l.useState)(0),r=e=>{i(e)};return(0,a.jsx)("div",{className:"stacked-cards-list stacked-cards-active-card-".concat(n),children:t.map((e,t)=>(0,a.jsx)(s,{stackedCard:e,index:t,onCardClick:r},e._id))})}},6336:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(7437),s=n(2373);function l(e){let{blocks:t}=e;return(0,a.jsx)(s.YI,{value:t,components:{marks:{link:e=>{let{children:t,value:n}=e,s=(null==n?void 0:n.target)||"_self",l=null==n?void 0:n.href;return l?(0,a.jsx)("a",{href:l,target:s,rel:"_blank"===s?"noopener noreferrer":void 0,children:t}):(0,a.jsx)(a.Fragment,{children:t})}}}})}},2565:function(e,t,n){"use strict";n.d(t,{default:function(){return s}});var a=n(7437);function s(){return(0,a.jsx)("a",{className:"arrow-down",href:"",onClick:e=>{e.preventDefault(),window.scrollTo({top:window.innerHeight,behavior:"smooth"})}})}},2869:function(e,t,n){"use strict";n.d(t,{z:function(){return c}});var a=n(7437),s=n(2265),l=n(7495),i=n(7712),r=n(4508);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring 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-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>
1{let{className:n,variant:s,size:i,asChild:c=!1,...d}=e,u=c?l.g7:"button";return(0,a.jsx)(u,{className:(0,r.cn)(o({variant:s,size:i,className:n})),ref:t,...d})});c.displayName="Button"},6902:function(e,t,n){"use strict";n.d(t,{KI:function(){return h},Pz:function(){return p},am:function(){return x},d$:function(){return f},lr:function(){return m}});var a=n(7437),s=n(2265),l=n(9467),i=n(2660),r=n(6858),o=n(4508),c=n(2869);let d=s.createContext(null);function u(){let e=s.useContext(d);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=s.forwardRef((e,t)=>{let{orientation:n="horizontal",opts:i,setApi:r,plugins:c,className:u,children:m,...h}=e,[f,x]=(0,l.Z)({...i,axis:"horizontal"===n?"x":"y"},c),[p,v]=s.useState(!1),[g,b]=s.useState(!1),j=s.useCallback(e=>{e&&(v(e.canScrollPrev()),b(e.canScrollNext()))},[]),w=s.useCallback(()=>{null==x||x.scrollPrev()},[x]),y=s.useCallback(()=>{null==x||x.scrollNext()},[x]),N=s.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),y())},[w,y]);return s.useEffect(()=>{x&&r&&r(x)},[x,r]),s.useEffect(()=>{if(x)return j(x),x.on("reInit",j),x.on("select",j),()=>{null==x||x.off("select",j)}},[x,j]),(0,a.jsx)(d.Provider,{value:{carouselRef:f,api:x,opts:i,orientation:n||((null==i?void 0:i.axis)==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:y,canScrollPrev:p,canScrollNext:g},children:(0,a.jsx)("div",{ref:t,onKeyDownCapture:N,className:(0,o.cn)("relative",u),role:"region","aria-roledescription":"carousel",...h,children:m})})});m.displayName="Carousel";let h=s.forwardRef((e,t)=>{let{className:n,...s}=e,{carouselRef:l,orientation:i}=u();return(0,a.jsx)("div",{ref:l,className:"overflow-hidden",children:(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",n),...s})})});h.displayName="CarouselContent";let f=s.forwardRef((e,t)=>{let{className:n,...s}=e,{orientation:l}=u();return(0,a.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:(0,o.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===l?"pl-4":"pt-4",n),...s})});f.displayName="CarouselItem";let x=s.forwardRef((e,t)=>{let{className:n,variant:s="outline",size:l="icon",...r}=e,{orientation:d,scrollPrev:m,canScrollPrev:h}=u();return(0,a.jsxs)(c.z,{ref:t,variant:s,size:l,className:(0,o.cn)("absolute h-8 w-8 rounded-full","horizontal"===d?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!h,onClick:m,...r,children:[(0,a.jsx)(i.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});x.displayName="CarouselPrevious";let p=s.forwardRef((e,t)=>{let{className:n,variant:s="outline",size:l="icon",...i}=e,{orientation:d,scrollNext:m,canScrollNext:h}=u();return(0,a.jsxs)(c.z,{ref:t,variant:s,size:l,className:(0,o.cn)("absolute h-8 w-8 rounded-full","horizontal"===d?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!h,onClick:m,...i,children:[(0,a.jsx)(r.Z,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"sr-only",children:"Next slide"})]})});p.displayName="CarouselNext"},3548:function(e,t,n){"use strict";function a(e){var t,n;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null===(t=(n=window).gtag)||void 0===t||t.call(n,"event",e,a)}n.d(t,{j:function(){return a}})},6334:function(e,t,n){"use strict";n.d(t,{Jd:function(){return f},sanityFetch:function(){return h},uH:function(){return m},vc:function(){return o}});var a=n(4808),s=n(3740),l=n.n(s);n(4508);var i=n(5566);let r="production"===i.env.BGC_ENV?"production":"develop";console.log("Sanity dataset:",r);let o={projectId:"dbbwy5n2",dataset:r,useCdn:!0,apiVersion:"2023-08-15",token:i.env.SANITY_API_TOKEN},c=(0,a.eI)(o),d=(0,a.eI)({...o,token:void 0,useCdn:!0}),u=l()(c),m=e=>u.image(e);async function h(e){let{query:t,params:n={},revalidate:a=30,tags:s=[]}=e;return c.fetch(t,n,{next:{revalidate:!s.length&&a,tags:s}})}async function f(e){let{query:t,params:n={}}=e;return d.fetch(t,n)}},4508:function(e,t,n){"use strict";n.d(t,{cn:function(){return l}});var a=n(1994),s=n(3335);function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.m6)((0,a.W)(t))}n(5566)},6480:function(e,t,n){"use strict";function a(e){let t=new Date(e);return new Intl.DateTimeFormat("en",{month:"short"}).format(t).toUpperCase()}function s(e){return new Date(e).getDate()}function l(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"America/Los_Angeles",a=new Date(e),s=new Intl.DateTimeFormat("en-US",{timeZone:n,year:"numeric",month:"long",day:"numeric"}),l=new Intl.DateTimeFormat("en-US",{timeZone:n,hour:"numeric",minute:"numeric",hour12:!0}),i=s.format(a),r=l.format(a),o=new Intl.DateTimeFormat("en-US",{timeZone:n,timeZoneName:"short"}).format(a).split(" ").pop();if(!t)return"".concat(i," ").concat(r," ").concat(o);let c=new Date(t),d=l.format(c);return"".concat(i," ").concat(r," - ").concat(d," ").concat(o)}n.d(t,{Tw:function(){return s},_Q:function(){return i},p6:function(){return l},y2:function(){return a}})},2027:function(e,t,n){"use strict";function a(e,t){return e?e.length>t?e.slice(0,t)+"...":e:""}n.d(t,{a:function(){return a}})},9621:function(){},5150:function(){},6050:function(){},4129:function(){},2049:function(){},2324:function(){},2379:function(){},8861:function(){},2598:function(){},460:function(){},7288:function(){},5781:function(){},7386:function(){},2222:function(){},9285:function(){},3875:function(){},8684:function(){},6034:function(){},310:function(){},7937:function(){},1032:function(){},4745:function(){},3743:function(){},4963:function(){},2041:function(){},731:function(){},7374:function(){},3459:function(){},9705:function(){},7033:function(){},5242:function(){},3522:function(){},6154:function(){},6872:function(){},6346:function(){},1608:function(){},2234:function(){},3703:function(){},1074:function(){}
1,8419:function(){},8971:function(){},2404:function(){},4925:function(){},3692:function(){},607:function(){},8743:function(){},9112:function(){},2068:function(){},1323:function(e){e.exports={container:"FeaturedNewsBlock_container__CgONm",description:"FeaturedNewsBlock_description__5So46",grid:"FeaturedNewsBlock_grid__H2wpa",card:"FeaturedNewsBlock_card__l2g_L",imageWrapper:"FeaturedNewsBlock_imageWrapper__CGCcP",image:"FeaturedNewsBlock_image__DbrtW",content:"FeaturedNewsBlock_content__bDQ6u",title:"FeaturedNewsBlock_title__BFBq6",excerpt:"FeaturedNewsBlock_excerpt__5bii_",diagonalPattern:"FeaturedNewsBlock_diagonalPattern__b8thm",bottomContent:"FeaturedNewsBlock_bottomContent__3K_vH"}},6604:function(e){e.exports={sliderSection:"SliderBlock_sliderSection__hU_Ca",container:"SliderBlock_container__Mz24K",title:"SliderBlock_title__x8cKq",subtitle:"SliderBlock_subtitle__AR_gW",carouselWrap:"SliderBlock_carouselWrap__cSgIf",slide:"SliderBlock_slide__3GuZK",slideImg:"SliderBlock_slideImg__jH6wb",slideCaption:"SliderBlock_slideCaption__8R5MP",slideSelected:"SliderBlock_slideSelected__a9h9L",slideDimmed:"SliderBlock_slideDimmed__0tqZM",navPrev:"SliderBlock_navPrev__pX_yF",navNext:"SliderBlock_navNext__3NTZA",dots:"SliderBlock_dots__8x_7h"}},9633:function(e){e.exports={container:"StatBlock_container__hm2GR",noTopPadding:"StatBlock_noTopPadding__vFHHa",noBottomPadding:"StatBlock_noBottomPadding__D6FCM",content:"StatBlock_content__IwV5h",title:"StatBlock_title__o3P_1",description:"StatBlock_description__Pt4cM",stats:"StatBlock_stats__Zwpt9",statItem:"StatBlock_statItem__sTkzC",statValue:"StatBlock_statValue__Zdp3U",statDescription:"StatBlock_statDescription__RFj2a",diagonalPattern:"StatBlock_diagonalPattern__TLBAv"}},8047:function(e){e.exports={container:"SubscribeBlock_container__qv_Bg",peach:"SubscribeBlock_peach__dWQBK",white:"SubscribeBlock_white__imCXP",inner:"SubscribeBlock_inner__da2Ln",imageWrapper:"SubscribeBlock_imageWrapper__Cvrk2",image:"SubscribeBlock_image__y_lgd",contentWrapper:"SubscribeBlock_contentWrapper__lbxBP",title:"SubscribeBlock_title__NuJPm",description:"SubscribeBlock_description__HV7Nr",loading:"SubscribeBlock_loading__Ifysz"}},566:function(e){e.exports={overlay:"SubscribeModal_overlay__Xgl3Y",modal:"SubscribeModal_modal__nq0YM",closeButton:"SubscribeModal_closeButton__DQkox",content:"SubscribeModal_content__QHyZK",formContainer:"SubscribeModal_formContainer__Ltql1"}},7473:function(e){e.exports={tabsBlockWrapper:"TabsBlock_tabsBlockWrapper__c4H_S",introContainer:"TabsBlock_introContainer__aKnHn",introTitle:"TabsBlock_introTitle__7GtJk",introDescription:"TabsBlock_introDescription__oce36",tabsBlock:"TabsBlock_tabsBlock__Vde8o",tabsNav:"TabsBlock_tabsNav__hfTs_",tabButton:"TabsBlock_tabButton__x7oZe",active:"TabsBlock_active__WQPrZ",divider:"TabsBlock_divider__VcPyl",tabContent:"TabsBlock_tabContent__tfK30",tabTitle:"TabsBlock_tabTitle__SdlKr",downloadBlocks:"TabsBlock_downloadBlocks__Eiy3U",downloadBlock:"TabsBlock_downloadBlock__B87nM",downloadTitle:"TabsBlock_downloadTitle__C9tX1",downloadLink:"TabsBlock_downloadLink__El4hx",documentTitle:"TabsBlock_documentTitle__rKP4n",downloadIcon:"TabsBlock_downloadIcon__tJ27J"}},4385:function(e){e.exports={testimonialSection:"TestimonialBlock_testimonialSection__9loEV",container:"TestimonialBlock_container__u58Z2",sectionTitle:"TestimonialBlock_sectionTitle__a6shV",title:"TestimonialBlock_title__kC2PZ",testimonialGrid:"TestimonialBlock_testimonialGrid__ykrgd",testimonialCard:"TestimonialBlock_testimonialCard__ALDPu",quote:"TestimonialBlock_quote___aHc0",author:"TestimonialBlock_author__oq0TS",imageWrapper:"TestimonialBlock_imageWrapper__7SlVX",image:"TestimonialBlock_image__78iyH",authorInfo:"TestimonialBlock_authorInfo___I4pn",authorName:"TestimonialBlock_authorName__lFx4o",authorDescription:"TestimonialBlock_authorDescription__tBMRI",bottomContent:"TestimonialBlock_bottomContent__F9d6C"}}}]);
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.