1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[110],{9656:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/zone/[slug]",function(){return s(5946)}])},1642:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var a=s(5893);function i(){return(0,a.jsxs)("section",{className:"bg-gray-100",children:[(0,a.jsx)("div",{className:"page-title",children:(0,a.jsx)("h1",{children:"No Posts Found"})}),(0,a.jsx)("div",{className:"container mx-auto py-8",children:(0,a.jsx)("div",{className:"page-content",children:"The content you are looking for is not available."})})]})}},3045:function(e,t,s){"use strict";var a=s(5893);s(7294);var i=s(1664),l=s.n(i);t.Z=e=>{let{allzones:t,zoneSlug:s,zone:i}=e;return(0,a.jsxs)("div",{className:"row backgroundGrey",style:{margin:"0px",paddingBottom:"0px"},children:[(0,a.jsx)("div",{className:"nav-scroller h-100 col-md-12 d-flex justify-content-center align-items-center",children:(0,a.jsx)("div",{className:"d-flex justify-content-center w-100",children:(0,a.jsxs)("nav",{className:"nav","aria-label":"Secondary navigation",children:[(0,a.jsx)(l(),{href:"/zone/all",passHref:!0,legacyBehavior:!0,children:(0,a.jsx)("a",{className:"list-group-item list-group-item-action zone-card mb-2 ".concat("all"===s?" zone-active noHover":""),children:(0,a.jsxs)("div",{className:"h-100 d-flex flex-column gap-4",children:[(0,a.jsx)("div",{className:"sphere m-3 shine ".concat("all"===s?"sphere-active":""),children:(0,a.jsx)("img",{className:"rounded-circle sphere-img",src:"../../assets/images/Assets-GC-Website/Zone/allzones.png",alt:"All Zones of Global Council",width:"100"})}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:"All".replace(/-/g,"<br />")}})]})})},"all"),t&&Array.isArray(t)&&t.length>0?t.map(e=>{var t,i,r,n,o,c,d,u;return(0,a.jsx)(l(),{href:"/zone/".concat(null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.slug),passHref:!0,legacyBehavior:!0,children:(0,a.jsx)("a",{className:"list-group-item list-group-item-action zone-card mb-2 ".concat((null==e?void 0:null===(i=e.attributes)||void 0===i?void 0:i.slug)===s?" zone-active noHover":""),children:(0,a.jsxs)("div",{className:"h-100 d-flex flex-column gap-4",children:[(0,a.jsx)("div",{className:"sphere m-3 shine ".concat((null==e?void 0:null===(r=e.attributes)||void 0===r?void 0:r.slug)===s?"sphere-active":""),children:(0,a.jsx)("img",{className:"rounded-circle sphere-img",src:(null===(u=e.attributes.ZoneIcon)||void 0===u?void 0:null===(d=u.data)||void 0===d?void 0:null===(c=d.attributes)||void 0===c?void 0:null===(o=c.formats)||void 0===o?void 0:null===(n=o.thumbnail)||void 0===n?void 0:n.url)||"https://sssgc-production.s3.ap-south-1.amazonaws.com/399_3995632_offering_my_most_humble_and_reverential_salutations_sathya_e6db64fcec.png",alt:e.attributes.name,width:"100"})}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.attributes.name.replace(/-/g,"<br />")}})]})})},e.id)}):(0,a.jsx)("h4",{children:"..."})||"Loading.."]})})}),(0,a.jsx)("div",{className:"col-md-2"})]})}},2551:function(e,t,s){"use strict";var a=s(5893);s(7294);var i=s(1664),l=s.n(i),r=s(5697),n=s.n(r);s(2518);let o=e=>{var t,s,i,r,n,o,c,d,u,h,v;let{post:m,__:p,type:g}=e,b=null===(s=m.attributes)||void 0===s?void 0:null===(t=s.cover_image)||void 0===t?void 0:t.data,y="https://sssgc-production.s3.ap-south-1.amazonaws.com/399_3995632_offering_my_most_humble_and_reverential_salutations_sathya_e6db64fcec.png";b&&(y=(null===(h=b.attributes)||void 0===h?void 0:null===(u=h.formats)||void 0===u?void 0:null===(d=u.small)||void 0===d?void 0:d.url)||(null===(v=b.attributes)||void 0===v?void 0:v.url));let x=(null===(c=m.attributes)||void 0===c?void 0:null===(o=c.countries)||void 0===o?void 0:null===(n=o.data)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:null===(i=r.attributes)||void 0===i?void 0:i.Name)||"Global",f=p.stripHtmlTags(m.attributes.description);f||(f=p.stripHtmlTags(m.attributes.editor));let j="/post";return"page"===g&&(j=""),(0,a.jsx)("div",{className:"col-md-4 col-sm-12 pb-1 mb-md-5 mb-2 pb-md-0 aos-animate","data-aos":"fade-up","data-aos-duration":"1200",children:(0,a.jsxs)("div",{className:"card card-material h-100",children:[(0,a.jsx)("div",{className:"img-container",children:(0,a.jsx)("img",{className:"card-img-top",src:y,alt:"Card image cap"})}),(0,a.jsxs)("div",{className:"card-body text-left",children:[(0,a.jsx)("div",{className:"card-categories mb-0",children:p.categoryTemplate(m.attributes.categories)}),(0,a.jsx)("h3",{className:"card-title mb-0",children:(0,a.jsx)(l(),{href:"".concat(j,"/").concat(m.attributes.slug),children:m.attributes.title})}),(0,a.jsxs)("small",{className:"text-secondary",children:[p.formatDate(m.attributes.publishedAt),(0,a.jsx)("strong",{children:(0,a.jsx)("big",{children:"\xa0\xb7\xa0"})})," ",(0,a.jsx)("span",{className:"badge badge-pill badge-info font-point9em",children:x})]}),(0,a.jsx)("p",{className:"card-text mt-1",children:f}),(0,a.jsx)(l(),{href:"".concat(j,"/").concat(m.attributes.slug),className:"readmore",children:"Read More"})]})]})},m.id)};o.propTypes={post:n().object.isRequired,__:n().object.isRequired,type:n().object},t.Z=o},5946:function(e,t,s){"use strict";s.r(t);var a=s(5893),i=s(1642),l=s(1829),r=s(2518),n=s(1664),o=s.n(n),c=s(1163),d=s(7294),u=s(2551),h=s(4851),v=s(3045);class m extends d.Component{async componentDidMount(){setTimeout(async()=>{let e=this.props.router.state.query.slug;await this.getAllZones(e),await this.getAllCategories(),await this.handleLink()},500)}render(){var e,t,s,n,c,d,m,p,g,b,y,x,f,j,N,_,A,C,z,w,T,Z,S,k,q,E;let{categories:H,data:O,allzones:P,zone:R,selectedCountry:F,selectedCategory:D,selectedCategoryName:I}=this.state,{slug:L}=(null===(s=this.props)||void 0===s?void 0:null===(t=s.router)||void 0===t?void 0:null===(e=t.state)||void 0===e?void 0:e.query)?null===(d=this.props)||void 0===d?void 0:null===(c=d.router)||void 0===c?void 0:null===(n=c.state)||void 0===n?void 0:n.query:{},B=(null===(b=this.props)||void 0===b?void 0:null===(g=b.router)||void 0===g?void 0:null===(p=g.state)||void 0===p?void 0:null===(m=p.query)||void 0===m?void 0:m.slug)?null===(j=this.props)||void 0===j?void 0:null===(f=j.router)||void 0===f?void 0:null===(x=f.state)||void 0===x?void 0:null===(y=x.query)||void 0===y?void 0:y.slug:{},G=(null===(C=this.props)||void 0===C?void 0:null===(A=C.router)||void 0===A?void 0:null===(_=A.state)||void 0===_?void 0:null===(N=_.query)||void 0===N?void 0:N.countrySlug)?null===(Z=this.props)||void 0===Z?void 0:null===(T=Z.router)||void 0===T?void 0:null===(w=T.state)||void 0===w?void 0:null===(z=w.query)||void 0===z?void 0:z.countrySlug:{};return H&&H[0]&&(r.Z.empty(H[0].attributes.plural)?H[0].attributes.name:H[0].attributes.plural),(0,a.jsx)(l.Z,{state:{...this.props.state,...this.props.router.state},children:null===O?(0,a.jsx)(h.Z,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"banner events h-100 d-flex justify-content-center align-items-center",children:(0,a.jsx)("h1",{className:"text-white text-center bannerText",children:(null===(k=this.state.zone)||void 0===k?void 0:null===(S=k.attributes)||void 0===S?void 0:S.name)||"All Zones"})}),(0,a.jsx)(v.Z,{allzones:P,zoneSlug:B,zone:R}),(0,a.jsxs)("div",{className:"backgroundGrey",children:[(0,a.jsx)("h5",{children:(null==R?void 0:null===(q=R.attributes)||void 0===q?void 0:q.name)?null==R?void 0:null===(E=R.attributes)||void 0===E?void 0:E.name:"All Zones"}),(0,a.jsxs)("h2",{children:[I||"Community Engagement"," acrosss the Globe"]}),(0,a.jsxs)("div",{className:"row",children:["all"!==B&&(0,a.jsxs)("div",{className:"col-md-12 mb-3",children:[(0,a.jsx)("span",{children:"Filter by Country: \xa0"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(o(),{href:"/zone/".concat(B),passHref:!0,legacyBehavior:!0,scroll:!1,children:(0,a.jsx)("a",{className:"btn btn-primary m-2 btn-sm ".concat(G?"":"active"),children:"All"})}),R&&R.attributes&&R.attributes.countries&&Array.isArray(R.attributes.countries.data)&&R.attributes.countries.data.slice().sort((e,t)=>
1e.attributes.Name.localeCompare(t.attributes.Name)).map(e=>(0,a.jsx)(o(),{href:"/zone/".concat(B,"/country/").concat(e.attributes.slug),passHref:!0,legacyBehavior:!0,scroll:!1,children:(0,a.jsx)("a",{className:"btn btn-primary m-2 btn-sm ".concat(G===e.attributes.slug?"active":""),children:e.attributes.Name})},e.id))]})]}),(0,a.jsxs)("div",{className:"col-md-12 ml-auto",children:[(0,a.jsx)("span",{children:"Filter by Category: "}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{className:"btn btn-outline-secondary btn-sm m-2 ".concat(D?"":"active"),onClick:()=>this.handleCategoryFilter(null),children:"All"}),H&&Array.isArray(H)&&H.map(e=>(0,a.jsx)("button",{className:"btn btn-outline-secondary m-2 btn-sm ".concat(D===e.attributes.slug?"active":""),onClick:()=>this.handleCategoryFilter(e.attributes.slug,e.attributes.name),children:e.attributes.name},e.id))]})]})]})]}),(0,a.jsx)("div",{className:"backgroundWhite",children:(0,a.jsx)("div",{className:"container",children:O&&Array.isArray(O)&&O.length>0?(0,a.jsx)("div",{className:"row text-center aos-init",children:O.map(e=>(0,a.jsx)(u.Z,{post:e,__:r.Z},e.id))}):(0,a.jsx)(i.Z,{})})})]})})}constructor(e){super(e),this.getAllCategories=async()=>{let e=await r.Z.getentries("categories","?sort[0]=name:asc&populate=*");Array.isArray(e)?this.setState({categories:e},()=>{}):this.setState({categories:[]})},this.getAllZones=async e=>{let t=await r.Z.getentries("zones","?sort[0]=name:asc&populate=*");Array.isArray(t)?this.setState({allzones:t},()=>{let t=this.state.allzones.find(t=>t.attributes.slug===e);this.setState({zone:t},async()=>{await this.getData()})}):this.setState({allzones:[]})},this.getData=async()=>{var e;if((null===(e=this.state.zone)||void 0===e?void 0:e.length)===0)return;let{selectedCountry:t,selectedCategory:s}=this.state,a="?filters&populate=*&sort[0]=publishedAt:desc";if(t)a="?filters[countries][slug][$eq]=".concat(t,"&populate=*&sort[0]=publishedAt:desc");else if(this.state.zone&&this.state.zone.attributes&&this.state.zone.attributes.countries&&Array.isArray(this.state.zone.attributes.countries.data)){let e=this.state.zone.attributes.countries.data.map(e=>e.attributes.slug);if(e.length>0){let t=e.map((e,t)=>"filters[countries][slug][$in][".concat(t,"]=").concat(e)).join("&");a="?&".concat(t,"&populate=*&sort[0]=publishedAt:desc")}}s&&("all"!=this.props.router.state.query.slug?a+="&filters[categories][slug][$eq]=".concat(s):a="?&filters[categories][slug][$eq]=".concat(s,"&populate=*&sort[0]=publishedAt:desc"));let i=await r.Z.getentries("blog-posts",a);Array.isArray(i)&&i.length>0?this.setState({data:i},()=>{}):this.setState({data:[]})},this.handleCategoryFilter=(e,t)=>{this.setState(s=>({selectedCategory:s.selectedCategory===e?null:e,selectedCategoryName:t}),()=>{this.getData()})},this.handleLink=async()=>{let e=async(e,t)=>{let{shallow:s}=t,{slug:a}=this.props.router.state.query;await this.getAllZones(a),this.setState({selectedCountry:null,selectedCategory:null},()=>{})};this.props.router.events.on("routeChangeStart",(e,t)=>{let{shallow:s}=t}),this.props.router.events.on("routeChangeComplete",e)},this.state={data:null,categories:null,country:null,allzones:[],zone:[],selectedCountry:null,selectedCategory:null,selectedCategoryName:null}}}t.default=(0,c.withRouter)(m)},2703:function(e,t,s){"use strict";var a=s(414);function i(){}function l(){}l.resetWarningCache=i,e.exports=function(){function e(e,t,s,i,l,r){if(r!==a){var n=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:i}
1;return s.PropTypes=s,s}},5697:function(e,t,s){e.exports=s(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){e.O(0,[192,829,888,774,179],function(){return e(e.s=9656)}),_N_E=e.O()}]);
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.