(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2355],{90980:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/programs/find",function(){return t(88919)}])},90447:function(e,n,t){"use strict";t.d(n,{Kk:function(){return g},T1:function(){return l},Xc:function(){return d},_z:function(){return a},kZ:function(){return s},kq:function(){return u},oE:function(){return c}});var r=t(1289),i=t(86423),o=t(60796);let a=r.styled.div.withConfig({componentId:"sc-5508d2ba-0"})(["position:relative;"]),s=r.styled.div.withConfig({componentId:"sc-5508d2ba-1"})(["position:sticky;top:0;z-index:",";background-color:",";margin:-"," -"," 0 -",";padding:"," "," "," ",";box-shadow:",";@media only screen and (min-width:","){box-shadow:none;}"],o.T.z.low+2,o.T.colors.neutral.white,o.T.spacing[10],o.T.spacing[6],o.T.spacing[6],o.T.spacing[10],o.T.spacing[6],o.T.spacing[3],o.T.spacing[6],o.T.boxShadow.light,o.T.breakpoints.lg),d=r.styled.div.withConfig({componentId:"sc-5508d2ba-2"})(["padding-top:",";"],o.T.spacing[10]),l=r.styled.div.withConfig({componentId:"sc-5508d2ba-3"})(["width:100%;",";gap:",";display:grid;grid-template-columns:repeat(1,1fr);@media only screen and (min-width:","){grid-template-columns:repeat(2,1fr);}@media only screen and (min-width:","){grid-template-columns:repeat(3,1fr);}@media only screen and (min-width:","){gap:",";}"],i.t.layout.column,o.T.spacing[4],o.T.breakpoints.md,o.T.breakpoints.lg,o.T.breakpoints.xl,o.T.spacing[8]),c=r.styled.div.withConfig({componentId:"sc-5508d2ba-4"})(["padding:",";background-color:",";",";gap:",";text-align:center;@media only screen and (min-width:","){padding-bottom:",";gap:",";}"],o.T.spacing[6],o.T.colors.neutral.gray[2],i.t.layout.column,o.T.spacing[6],o.T.breakpoints.lg,o.T.spacing[10],o.T.spacing[10]),g=r.styled.div.withConfig({componentId:"sc-5508d2ba-5"})(["width:100%;padding:"," 0;",";gap:",";border:1px solid ",";border-left:none;border-right:none;p > a{font-family:",";font-size:inherit;}@media only screen and (min-width:","){width:784px;}"],o.T.spacing[5],i.t.layout.column,o.T.spacing[6],o.T.colors.neutral.gray[4],o.T.font.family.objectSansBold,o.T.breakpoints.lg),u=r.styled.div.withConfig({componentId:"sc-5508d2ba-6"})(["width:100%;",";gap:",";h2{text-align:center;}button.inline-text{border:none;padding:0;background-color:transparent;color:",";}a.referral-link{color:",";font-family:",";}p{text-align:center;}@media only screen and (min-width:","){h2{width:784px;}}"],i.t.layout.column,o.T.spacing[8],o.T.colors.brand.primary,o.T.colors.brand.primary,o.T.font.family.objectSansBold,o.T.breakpoints.lg)},38408:function(e,n,t){"use strict";t.d(n,{t:function(){return T}});var r=t(85893),i=t(59417),o=t(2822),a=t(1289),s=t(60796);let d=a.styled.div.withConfig({componentId:"sc-8395b1c1-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:row;gap:",";"],s.T.spacing["3.5"]),l=a.styled.button.withConfig({componentId:"sc-8395b1c1-1"})(["padding:",";background:none;border:none;cursor:pointer;"],s.T.spacing["1.5"]),c=a.styled.button.withConfig({componentId:"sc-8395b1c1-2"})(["border:none;border-bottom:2px solid;border-bottom-color:",";padding:",";background:transparent;color:",";font-size:",";"],e=>e.underline?"".concat(s.T.colors.text.primary):"".concat(s.T.colors.neutral.transparent),s.T.spacing[2],s.T.colors.text.primary,s.T.font.size.md),g=a.styled.div.withConfig({componentId:"sc-8395b1c1-3"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;gap:",";"],s.T.spacing[1]);var u=t(19496);let{floor:p,min:m,max:h}=Math,f=(e,n)=>Array.from({length:n-e},(n,t)=>t+e),x=e=>(n,t)=>{let r=h(1,m(n-p((e-3)/2),t-e+2)),i=m(t,h(n+p((e-2)/2),e-1));return[...r>2?[1,"..."]:r>1?[1]:[],...f(r,i+1),...i<t-1?["...",t]:i<t?[t]:[]]},T=e=>{let{pagesQuantity:n,currentPageNumber:t,onPageChange:a}=e,{isMobile:p}=(0,u.d)(),m=1===t,h=t===n,f=x(p?3:6)(t,n).map((e,n)=>"..."===e?(0,r.jsx)(c,{disabled:!0,children:e},"page-index-".concat(n)):(0,r.jsx)(c,{onClick:()=>a(e),underline:e===t,children:e},"page-index-".concat(n)));return(0,r.jsxs)(d,{children:[(0,r.jsx)(l,{onClick:()=>a(t-1),disabled:m,children:(0,r.jsx)(o.J,{icon:i.A35,width:18,color:m?s.T.colors.text.disabled:s.T.colors.text.primary})}),(0,r.jsx)(g,{children:f}),(0,r.jsx)(l,{onClick:()=>a(t+1),disabled:h,children:(0,r.jsx)(o.J,{icon:i._tD,width:18,color:h?s.T.colors.text.disabled:s.T.colors.text.primary})})]})}},88919:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var r=t(85893),i=t(9008),o=t.n(i),a=t(46502),s=t(71641),d=t(59417),l=t(67814),c=t(11163),g=t(67294),u=t(26270),p=t(66707),m=t(91284),h=t(90294),f=t(70355),x=t(90447),T=t(38408),y=t(36057),b=t(19496),v=t(45189),j=t(82729),w=t(31230),k=t(63371);function P(){let e=(0,j._)(["\n  ","\n\n  query FilterPrograms($page: Int!, $searchTerm: String, $filters: FiltersInput, $perPage: Int!) {\n    filterPrograms(page: $page, searchTerm: $searchTerm, filters: $filters, perPage: $perPage) {\n      results {\n        ...ProgramCard\n      }\n      alternativeResults {\n        ...ProgramCard\n      }\n      resultsPaginationInfo {\n        perPage\n        currentPage\n        totalPages\n        totalResults\n      }\n    }\n  }\n"]);return P=function(){return e},e}let C=(0,w.Ps)(P(),k.d);var I=t(47480),_=t(31453),S=t(60796),E=t(90791),z=t(14051),$=t(1455),N=t(93855),R=t(67468),A=t(95006),F=t(64882);let L=()=>{let e=(0,v.M)(),n=(0,f.r)(),t=(0,c.useRouter)(),{action:i,role:o}=t.query,{isDesktop:a}=(0,b.d)(),j=(0,g.useMemo)(()=>Object.values(z.Ir).flatMap(e=>e.zipcodes).some(e=>{var t;return null===(t=n.zipcodes)||void 0===t?void 0:t.includes(e)}),[n.zipcodes]),w=(0,s.a)(C,{variables:{searchTerm:n.term,page:n.page||1,perPage:$.RE,filters:{targetMetros:n.target?[(0,z.g)(n.target)]:void 0,zipcodes:n.zipcodes,ageFrom:n.age.from,ageTo:n.age.to,dateFrom:n.date.from?F.NI(n.date.from):void 0,dateTo:n.date.to?F.NI(n.date.to):void 0,categories:n.categories}},fetchPolicy:"no-cache"});return(0,g.useEffect)(()=>{var t;if(n.target){e.data||e.set(n.target);return}(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.id)&&n.set({target:e.data.id},"pushIn")},[e,n]),(0,r.jsxs)(x._z,{children:[(0,r.jsx)(x.kZ,{children:(0,r.jsx)(h.r,{})}),w.loading||8===w.networkStatus||e.isLoading?(0,r.jsx)(y.Z,{fullScreen:!0}):(0,r.jsx)(x.Xc,{children:j||n.target?(0,r.jsx)("div",{children:w.data.filterPrograms.results.length>0?(0,r.jsxs)("div",{children:[(0,r.jsx)(x.T1,{children:w.data.filterPrograms.results.map(e=>(0,r.jsx)(p.B,{itemData:e,marketplace:!0,analytics:{referrerTitle:I.mx.SEARCH_RESULTS}},e.id))}),(0,r.jsx)(A.LZ,{size:"3x"}),(0,r.jsx)(T.t,{pagesQuantity:w.data.filterPrograms.resultsPaginationInfo.totalPages,currentPageNumber:w.data.filterPrograms.resultsPaginationInfo.currentPage,onPageChange:e=>n.set({page:e},"pushIn")})]}):(0,r.jsxs)(x.kq,{children:[(0,r.jsxs)("h2",{children:["Sorry, there are no activities that match your filters. Try searching another keyword,"," ",(0,r.jsx)("button",{className:"inline-text",onClick:()=>{n.set({target:void 0,zipcodes:void 0,term:void 0,ageFrom:void 0,ageTo:void 0,dateFrom:void 0,dateTo:void 0,categories:void 0,page:void 0},"pushIn")},children:"clear all filters"})," ","or take a look at these activities you might like!"]}),(0,r.jsx)(x.T1,{children:w.data.filterPrograms.alternativeResults.slice(0,3).map(e=>(0,r.jsx)(p.B,{itemData:e,marketplace:!0,analytics:{referrerTitle:I.mx.SEARCH_ALTERNATIVE_RESULTS}},e.id))}),(0,r.jsxs)(_.kC,{$flexDirection:a?"row":"column",$justifyContent:"center",$alignItems:"center",$gap:S.T.spacing[2],children:[(0,r.jsx)(l.G,{icon:d.tMT}),(0,r.jsx)("p",{children:"Know someone who provides the activity you are looking for in your area?"}),(0,r.jsx)("a",{className:"referral-link",href:E.Z,rel:"noopener noreferrer",children:"Tell them about us"})]})]})}):(0,r.jsx)(m.l,{children:(0,r.jsxs)(x.oE,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(l.G,{icon:d.Yif})," ---------- ",(0,r.jsx)(l.G,{icon:d.m6i})]}),(0,r.jsx)("h2",{children:"Village Coming to Your Area Soon!"}),(0,r.jsxs)(x.Kk,{children:[(0,r.jsxs)("h3",{children:["Village is heading your way, and we",N.Q.apos,"re thrilled. Imagine quality extracurriculars that ignite passions and hone vital skills for your kids. Join the movement!"]}),(0,r.jsxs)("p",{children:["We need your help."," ",(0,r.jsx)("a",{href:E.Z,rel:"noopener noreferrer",children:"Connect us with donors and providers"})," ","who want to make a difference. Spread the Word, Spark the Change. Transform your Community. Learn more and get involved."," "]})]}),(0,r.jsx)(u.z,{onClick:()=>t.push(R._.comingSoon.index({action:i,role:o})),$intent:"secondary",children:"Learn more"})]})})})]})};var Z=t(90106),M=t(4202);let V=()=>((0,Z.Px)("Program Find Page View"),(0,r.jsxs)(M.vZ,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:"Village | Find Activities"}),(0,r.jsx)("meta",{name:"description",content:"View all Activity and Provider information in your preferred language"})]}),(0,r.jsx)(L,{})]}));V.getLayout=function(e){return(0,r.jsx)(a.Z,{children:e})};var q=V},1455:function(e,n,t){"use strict";t.d(n,{RE:function(){return i},UP:function(){return o},gK:function(){return r}});let r=25,i=24,o=10}},function(e){e.O(0,[472,5721,8482,6502,2853,2888,9774,179],function(){return e(e.s=90980)}),_N_E=e.O()}]);