PageSourceSearch

https://yourvoicemarkham.ca/_next/static/chunks/ProjectFinderSectionLayout2.7010cffc0b64b96a.js

js yourvoicemarkham.ca collected 2026-10-04 21:00:55 UTC 17,258 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2a459faf-94eb-44ef-9838-69436f842690",e._sentryDebugIdIdentifier="sentry-dbid-2a459faf-94eb-44ef-9838-69436f842690")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4381],{44335:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var o=r(31777),n=r(42969),i=r(14232),a=r(39822),l=r(75746),c=r(41235),s=r(61847),d=r(12480),u=r(65955),h=r(69035),p=r(43123),f=r(6709),x=r(70435),g=r(55901),j=r(28118),b=r(69364),m=r.n(b),w=r(69750),v=r.n(w),y=r(22372),C=r.n(y),k=r(10239),F=r.n(k),P=r(83923),T=r.n(P),S=r(66620),O=r.n(S),D=r(26796),B=r(32601),A=r(11802),I=r(13434),z=r(27650),N=r(75912),W=r(37876);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let _=(0,j.withTranslation)(["editor","common"])(function(e){var t=e.t,r=e.meta,o=e.theme,n=e.i18n,j=e.projects,b=e.tags,w=e.dataTestId,y=(0,i.useState)(j),k=y[0],P=y[1],S=(0,i.useState)(1),Y=S[0],_=S[1],H=(0,i.useState)({}),L=H[0],M=H[1],R=(0,i.useState)(!1),Q=R[0],U=R[1],V=function(e){if(j)return v()(e).map(function(t){j=C()(j,function(r){return F()(T()(r[t]),T()(e[t]))})}),j},X=function(e){var t=E(E({},L),e),r=V(t);P(r),U(r.length<1),M(t)},Z=function(){if(b){var e=[];return b.map(function(t){e.push(t.name)}),e}},$=function(e,t){if(e){var r=[];return e.map(function(e){e[t]&&r.push((0,D.I3)(e[t],"YYYY"))}),O()(r)}};return(0,W.jsx)(a.a,{bg:o.backgroundColor,px:[2,4,8,16],className:"project-finder","data-testid":w,children:(0,W.jsx)(a.a,{bg:o.backgroundColor,py:8,px:[4,4,0,0],children:(0,W.jsxs)(x.m,{maxW:"container.lg",mx:"auto",px:0,children:[!!r.title&&(0,W.jsx)(a.a,{as:"h2",color:o.sectionTitleColor,fontSize:"sectionTitle",fontWeight:"heading",fontFamily:"heading",mb:4,children:r.title}),(0,W.jsxs)(p.s,{align:"center",flexDirection:["column","row","row","row"],children:[!!r.showSearch&&(0,W.jsx)(a.a,{w:["100%","30%","30%","30%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsx)(l.M,{endElement:(0,W.jsx)(a.a,{color:"gray.500",display:"inline-flex",alignItems:"center",children:(0,W.jsx)(g.A,{})}),children:(0,W.jsx)(c.p,{placeholder:t("editor:editor.projectFinder.filter.searchProjects"),onChange:function(e){return X({name:e.target.value})},value:L.name,bg:"white",w:"full",h:10,ps:3,pe:10,borderWidth:1,borderColor:"border",borderRadius:"md","aria-label":t("editor:editor.projectFinder.filter.searchProjects")})})}),function(){if(!r.showTagsFilter)return!1;var e=Z(),o=(0,z.A)(e);return(0,W.jsx)(a.a,{w:["100%","20%","20%","20%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsxs)(s.MQ,{bg:"white",children:[(0,W.jsxs)(s.uT,{value:L.platformAnalyticsTagList,onChange:function(e){return X({platformAnalyticsTagList:e.target.value})},px:3,"aria-label":t("editor:editor.projectFinder.filter.allTags"),children:[(0,W.jsx)("option",{value:"",children:t("editor:editor.projectFinder.filter.allTags")}),o.map(function(e){return(0,W.jsx)("option",{value:e,children:e},"tag-".concat(e))})]}),(0,W.jsx)(s.Nv,{})]})})}(),function(){if(!r.showYearFilter)return!1;var e=$(j,"publishedAt");return(0,W.jsx)(a.a,{w:["100%","15%","15%","15%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsxs)(s.MQ,{bg:"white",children:[(0,W.jsxs)(s.uT,{value:L.publishedAt,onChange:function(e){return X({publishedAt:e.target.value})},px:3,"aria-label":t("editor:editor.projectFinder.filter.allYears"),children:[(0,W.jsx)("option",{value:"",children:t("editor:editor.projectFinder.filter.allYears")}),e.map(function(e){return(0,W.jsx)("option",{value:e,children:e},"yearFilter-".concat(e))})]}),(0,W.jsx)(s.Nv,{})]})})}(),!!r.showStateFilter&&(0,W.jsx)(a.a,{w:["100%","20%","20%","20%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsxs)(s.MQ,{bg:"white",children:[(0,W.jsxs)(s.uT,{value:L.state,onChange:function(e){return X({state:e.target.value})},px:3,"aria-label":t("editor:editor.projectFinder.filter.allStatus"),children:[(0,W.jsx)("option",{value:"",children:t("editor:editor.projectFinder.filter.allStatus")}),(0,W.jsx)("option",{value:"published",children:t("editor:editor.projectFinder.filter.published")}),(0,W.jsx)("option",{value:"archived",children:t("editor:editor.projectFinder.filter.archived")})]}),(0,W.jsx)(s.Nv,{})]})}),function(){if(!r.showResetFilterButton)return!1;var e={name:"",state:"",platformAnalyticsTagList:"",publishedAt:""};return(0,W.jsx)(d.$,{onClick:function(){return X(e)}
1,bg:o.ctaBackgroundColor||"brand",color:o.ctaTextColor||"white",_hover:{bg:o.ctaBackgroundHoverColor||o.ctaBackgroundColor||"brand",color:o.ctaTextHoverColor||o.ctaTextColor||"#fff"},fontFamily:"body",fontWeight:"body",fontSize:"14px",w:["100%","15%","15%","15%"],mb:2,children:t("editor:editor.projectFinder.filter.resetFilter")})}()]}),function(){if(Q)return(0,W.jsxs)(h.Bm,{status:"info",children:[(0,W.jsx)(h.mZ,{}),(0,W.jsx)(h.XL,{children:t("editor:editor.projectFinder.filter.noContent")})]});var e=r.projectsPerPage,l=r.projectPaginationView,c=k,s=(c=C()(c,function(e){return"published"===e.state||"archived"===e.state})).length;if(l){var d=Y*e;e<c.length&&(c=c.slice(d-e,d))}return(0,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(p.s,{flexWrap:"wrap",flexDirection:{xs:"column",md:"row"},mx:-6,children:c.map(function(e,l){var c,s,d,h,p="hubpage-project-finder-two-".concat(l),x=(0,B.ap)({key:p,meta:r,title:e.name,description:e.description,date:e.publishedAt,state:e.state,dateMode:"finder",showTitle:r.showProjectName,showDescription:r.showProjectDescription});return(0,W.jsx)(a.a,{px:6,py:6,w:["100%","50%","50%","50%"],children:(0,i.createElement)(a.a,E(E({as:"a",bg:o.cardBackgroundColor||"#ffffff",boxShadow:"site",href:"/".concat(e.permalink)},x.props),{},{key:l,pos:"relative",overflow:"hidden",rounded:"site",h:"full",display:"flex",flexDirection:"column"}),(0,W.jsx)(a.a,{backgroundColor:"brand",backgroundImage:"url(".concat((0,I.yt)(e.image||e.imageUrl||e.bannerUrl,o.imageSize||800),")"),backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",minHeight:48,w:"full",role:"img","aria-label":e.imageDescription?e.imageDescription:""}),!!e.state&&(c=t("common:common.".concat(e.state)),!!r.showProjectStatus&&(0,W.jsx)(u.Ex,{id:(0,B.O5)(p).status,fontFamily:"body",fontSize:"xs",rounded:"site",variant:"solid",fontWeight:"normal",position:"absolute",top:4,right:4,backgroundColor:"gray.700",children:c})),(0,W.jsxs)(a.a,{display:"flex",flexDirection:"column",justifyContent:"space-between",p:6,h:"full",children:[(0,W.jsx)(a.a,{children:(0,W.jsxs)(f.B,{spacing:3,children:[(0,W.jsx)(a.a,{children:(s=e.publishedAt,!!r.showProjectTimestamp&&!!s&&(0,W.jsx)(a.a,{id:(0,B.O5)(p).date,color:"gray.700",fontFamily:"body",fontSize:"body",fontWeight:"body",children:(0,D.Av)(s,n.language)}))}),(0,W.jsx)(a.a,{children:(d=e.name,!!r.showProjectName&&(0,W.jsx)(a.a,{id:(0,B.O5)(p).title,color:o.textColor,fontFamily:"heading",fontWeight:"heading",fontSize:"heading",wordBreak:"break-word",children:m()(d,{length:70})}))}),(0,W.jsx)(a.a,{children:(h=e.description,!!r.showProjectDescription&&(0,W.jsx)(a.a,{id:(0,B.O5)(p).description,color:o.textColor,fontFamily:"body",fontWeight:"body",fontSize:"body",wordBreak:"break-word",children:(0,W.jsx)(N.A,{html:h,allowTags:["br","&","p"],truncateLength:100})}))})]})}),(0,W.jsx)(a.a,{children:!!r.showViewProjectButton&&(0,W.jsx)(a.a,{alignItems:"center",bg:o.ctaBackgroundColor||"brand",boxShadow:"site",color:o.ctaTextColor||"white",_hover:{bg:o.ctaBackgroundHoverColor||o.ctaBackgroundColor||"brand",color:o.ctaTextHoverColor||o.ctaTextColor||"#fff"},d:"inline-flex",fontFamily:"body",fontSize:"body",justifyContent:"center",px:2,py:1,rounded:"site",textDecoration:"none",mt:4,width:"fit-content",className:"project-finder-button",children:(0,W.jsx)(a.a,{children:t("editor:editor.viewProject")})})})]}))},l)})}),(e&&s)>0&&l&&(0,W.jsx)(A.A,{itemsPerPage:e,totalItems:s,paginate:function(e){return _(e)},color:o.ctaTextColor,borderColor:o.ctaBackgroundColor})]})}(o.textColor,o.cardBackgroundColor)]})})})}),H=(0,o.Ng)(function(e,t){return{meta:e.hubPageRevision.revision.sections[t.sectionId].meta,theme:e.hubPageRevision.revision.sections[t.sectionId].theme,dataTestId:"participant-hubs-views-projects-finder-section-layout-two"}})(_)},57069:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var o=r(31777),n=r(42969),i=r(14232),a=r(39822),l=r(75746),c=r(41235),s=r(61847),d=r(12480),u=r(65955),h=r(69035),p=r(43123),f=r(6709),x=r(70435),g=r(55901),j=r(28118),b=r(69364),m=r.n(b),w=r(69750),v=r.n(w),y=r(22372),C=r.n(y),k=r(10239),F=r.n(k),P=r(83923),T=r.n(P),S=r(66620),O=r.n(S),D=r(26796),B=r(32601),A=r(11802),I=r(13434),z=r(27650),N=r(75912),W=r(37876);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?Y(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let _=(0,j.withTranslation)(["editor","common"])(function(e){var t=e.t,r=e.meta,o=e.theme,n=e.i18n,j=e.projects,b=e.tags,w=(0,i.useState)(j),y=w[0],k=w[1],P=(0,i.useState)(1),S=P[0],Y=P[1],_=(0,i.useState)({}),H=_[0],L=_[1],M=(0,i.useState)(!1),R=M[0],Q=M[1],U=function(e){if(j)return v()(e).map(function(t){j=C()(j,function(r){return F()(T()(r[t]),T()(e[t]))})}),j},V=function(e){var t=E(E({},H),e),r=U(t);k(r),Q(r.length<1),L(t)},X=function(){if(b){var e=[];return b.map(function(t){e.push(t.name)}),e}},Z=function(e,t){if(e){var r=[];return e.map(function(e){e[t]&&r.push((0,D.I3)(e[t],"YYYY"))}),O()(r)}};return(0,W.jsx)(a.a,{bg:o.backgroundColor,px:[2,4,8,16],className:"project-finder",children:(0,W.jsx)(a.a,{bg:o.backgroundColor,py:8,px:[4,4,0,0],children:(0,W.jsxs)(x.m,{maxW:"container.lg",mx:"auto",px:0,children:[!!r.title&&(0,W.jsx)(a.a,{as:"h2",color:o.sectionTitleColor,fontSize:"sectionTitle",fontWeight:"heading",fontFamily:"heading",mb:4,children:r.title}),(0,W.jsxs)(p.s,{align:"center",flexDirection:["column","row","row","row"],children:[!!r.showSearch&&(0,W.jsx)(a.a,{w:["100%","30%","30%","30%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsx)(l.M,{endElement:(0,W.jsx)(a.a,{color:"gray.500",display:"inline-flex",alignItems:"center",children:(0,W.jsx)(g.A,{})}),children:(0,W.jsx)(c.p,{placeholder:t("editor:editor.projectFinder.filter.searchProjects"),onChange:function(e){return V({name:e.target.value})},value:H.name,bg:"white",w:"full",h:10,ps:3,pe:10,borderWidth:1,borderColor:"border",borderRadius:"md","aria-label":t("editor:editor.projectFinder.filter.searchProjects")})})}),function(){if(!r.showTagsFilter)return!1;var e=X(),o=(0,z.A)(e);return(0,W.jsx)(a.a,{w:["100%","20%","20%","20%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsxs)(s.MQ,{bg:"white",children:[(0,W.jsxs)(s.uT,{value:H.platformAnalyticsTagList,onChange:function(e){return V({platformAnalyticsTagList:e.target.value})},px:3,"aria-label":t("editor:editor.projectFinder.filter.allTags"),children:[(0,W.jsx)("option",{value:"",children:t("editor:editor.projectFinder.filter.allTags")}),o.map(function(e){return(0,W.jsx)("option",{value:e,children:e},"tag-".concat(e))})]}),(0,W.jsx)(s.Nv,{})]})})}(),function(){if(!r.showYearFilter)return!1;var e=Z(j,"publishedAt");return(0,W.jsx)(a.a,{w:["100%","15%","15%","15%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsxs)(s.MQ,{bg:"white",children:[(0,W.jsxs)(s.uT,{value:H.publishedAt,onChange:function(e){return V({publishedAt:e.target.value})},px:3,"aria-label":t("editor:editor.projectFinder.filter.allYears"),children:[(0,W.jsx)("option",{value:"",children:t("editor:editor.projectFinder.filter.allYears")}),e.map(function(e){return(0,W.jsx)("option",{value:e,children:e},"yearFilter-".concat(e))})]}),(0,W.jsx)(s.Nv,{})]})})}(),!!r.showStateFilter&&(0,W.jsx)(a.a,{w:["100%","20%","20%","20%"],mr:["0px","10px","10px","10px"],mb:2,children:(0,W.jsxs)(s.MQ,{bg:"white",children:[(0,W.jsxs)(s.uT,{value:H.state,onChange:function(e){return V({state:e.target.value})},px:3,"aria-label":t("editor:editor.projectFinder.filter.allStatus"),children:[(0,W.jsx)("option",{value:"",children:t("editor:editor.projectFinder.filter.allStatus")}),(0,W.jsx)("option",{value:"published",children:t("editor:editor.projectFinder.filter.published")}),(0,W.jsx)("option",{value:"archived",children:t("editor:editor.projectFinder.filter.archived")})]}),(0,W.jsx)(s.Nv,{})]})}),function(){if(!r.showResetFilterButton)return!1;var e={name:"",state:"",platformAnalyticsTagList:"",publishedAt:""};return(0,W.jsx)(d.$,{onClick:function(){return V(e)},bg:o.ctaBackgroundColor||"brand",color:o.ctaTextColor||"white",_hover:{bg:o.ctaBackgroundHoverColor||o.ctaBackgroundColor||"brand",color:o.ctaTextHoverColor||o.ctaTextColor||"#fff"},fontFamily:"body",fontWeight:"body",fontSize:"14px",w:["100%","15%","15%","15%"],mb:2,children:t("editor:editor.projectFinder.filter.resetFilter")})}()]}),function(){if(R)return(0,W.jsxs)(h.Bm,{status:"info",children:[(0,W.jsx)(h.mZ,{}),(0,W.jsx)(h.XL,{children:t("editor:editor.projectFinder.filter.noContent")})]});var e=r.projectsPerPage,l=r.projectPaginationView,c=y,s=(c=C()(c,function(e){return"published"===e.state||"archived"===e.state})).length;if(l){var d=S*e;e<c.length&&(c=c.slice(d-e,d))}return(0,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(p.s,{flexWrap:"wrap",flexDirection:{xs:"column",md:"row"},mx:-6,children:c.map(function(e,l){var c,s,d,h,p="homepage-project-finder-two-".concat(l),x=(0,B.ap)({key:p,meta:r,title:e.name,description:e.description,date:e.publishedAt,state:e.state,dateMode:"finder",showTitle:r.showProjectName,showDescription:r.showProjectDescription});return(0,W.jsx)(a.a,{px:6,py:6,w:["100%","50%","50%","50%"],children:(0,i.createElement)(a.a,E(E({as:"a",bg:o.c
1ardBackgroundColor||"#ffffff",boxShadow:"site",href:"/".concat(e.permalink)},x.props),{},{key:l,pos:"relative",overflow:"hidden",rounded:"site",h:"full",display:"flex",flexDirection:"column"}),(0,W.jsx)(a.a,{backgroundColor:"brand",backgroundImage:"url(".concat((0,I.yt)(e.image||e.imageUrl||e.bannerUrl,o.imageSize||800),")"),backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",minHeight:48,w:"full",role:"img","aria-label":e.imageDescription?e.imageDescription:""}),!!e.state&&(c=t("common:common.".concat(e.state)),!!r.showProjectStatus&&(0,W.jsx)(u.Ex,{id:(0,B.O5)(p).status,fontFamily:"body",fontSize:"xs",rounded:"site",variant:"solid",fontWeight:"normal",position:"absolute",top:4,right:4,backgroundColor:"gray.700",children:c})),(0,W.jsxs)(a.a,{display:"flex",flexDirection:"column",justifyContent:"space-between",p:6,h:"full",children:[(0,W.jsx)(a.a,{children:(0,W.jsxs)(f.B,{spacing:3,children:[(0,W.jsx)(a.a,{children:(s=e.publishedAt,!!r.showProjectTimestamp&&!!s&&(0,W.jsx)(a.a,{id:(0,B.O5)(p).date,color:"gray.700",fontFamily:"body",fontSize:"body",fontWeight:"body",children:(0,D.Av)(s,n.language)}))}),(0,W.jsx)(a.a,{children:(d=e.name,!!r.showProjectName&&(0,W.jsx)(a.a,{id:(0,B.O5)(p).title,color:o.textColor,fontFamily:"heading",fontWeight:"heading",fontSize:"heading",wordBreak:"break-word",children:m()(d,{length:70})}))}),(0,W.jsx)(a.a,{children:(h=e.description,!!r.showProjectDescription&&(0,W.jsx)(a.a,{id:(0,B.O5)(p).description,color:o.textColor,fontFamily:"body",fontWeight:"body",fontSize:"body",wordBreak:"break-word",children:(0,W.jsx)(N.A,{html:h,allowTags:["br","&","p"],truncateLength:100})}))})]})}),(0,W.jsx)(a.a,{children:!!r.showViewProjectButton&&(0,W.jsx)(a.a,{alignItems:"center",bg:o.ctaBackgroundColor||"brand",boxShadow:"site",color:o.ctaTextColor||"white",_hover:{bg:o.ctaBackgroundHoverColor||o.ctaBackgroundColor||"brand",color:o.ctaTextHoverColor||o.ctaTextColor||"#fff"},d:"inline-flex",fontFamily:"body",fontSize:"body",justifyContent:"center",px:2,py:1,rounded:"site",textDecoration:"none",mt:4,width:"fit-content",className:"project-finder-button",children:(0,W.jsx)(a.a,{children:t("editor:editor.viewProject")})})})]}))},l)})}),(e&&s)>0&&l&&(0,W.jsx)(A.A,{itemsPerPage:e,totalItems:s,paginate:function(e){return Y(e)},color:o.ctaTextColor,borderColor:o.ctaBackgroundColor})]})}(o.textColor,o.cardBackgroundColor)]})})})}),H=(0,o.Ng)(function(e,t){return{meta:e.homePageRevision.revision.sections[t.sectionId].meta,theme:e.homePageRevision.revision.sections[t.sectionId].theme}})(_)}}]);
2//# sourceMappingURL=ProjectFinderSectionLayout2.7010cffc0b64b96a.js.map

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.