PageSourceSearch

https://srisathyasaiglobalcouncil.org/_next/static/chunks/pages/post/[post]-b130087758998bf3.js

js srisathyasaiglobalcouncil.org collected 2026-10-03 00:24:58 UTC 7,746 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{9260:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/[post]",function(){return s(6662)}])},3073:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var a=s(5893),i=s(1664),l=s.n(i);function n(){return(0,a.jsx)("section",{className:"page_404",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col-sm-12",children:(0,a.jsxs)("div",{className:"col-sm-10 col-sm-offset-1 text-center",children:[(0,a.jsx)("div",{className:"four_zero_four_bg"}),(0,a.jsxs)("div",{className:"contant_box_404",children:[(0,a.jsx)("h3",{className:"h2",children:"Looks like you're lost."}),(0,a.jsx)("p",{children:"The Page you are looking for is not Available!"}),(0,a.jsx)(l(),{href:"/",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"link_404",children:"Go to Home"})})]})]})})})})})}},6662:function(e,t,s){"use strict";s.r(t);var a=s(5893),i=s(3073),l=s(1829),n=s(2518),r=s(1664),o=s.n(r),c=s(1163),d=s(7294),h=s(615);s(8449);var g=s(2879);s(2809);var m=s(4851);class u extends d.Component{async componentDidMount(){setTimeout(async()=>{let{post:e}=this.props.router.query;await this.getData(e),await this.handleLink()},500)}render(){var e,t,s,r;let{data:c,relatedPosts:d,lightboxOpen:u,photoIndex:x}=this.state,p=c&&(null==c?void 0:c.gallery)?null==c?void 0:null===(t=c.gallery)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.map(e=>e.attributes.url):[];return(0,a.jsx)(l.Z,{state:{...this.props.state,...this.props.router.state},children:null===c?(0,a.jsx)(m.Z,{}):(0,a.jsx)(a.Fragment,{children:Object.keys(c).length>0?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"banner calendar h-100 d-flex justify-content-center align-items-center",children:(0,a.jsx)("h1",{className:"text-white text-center bannerText",children:c.categories.data[0].attributes.name})}),(0,a.jsx)("div",{className:"backgroundWhite",children:(0,a.jsx)("div",{className:"container py-3",children:(0,a.jsxs)("div",{className:"row g-5",children:[(0,a.jsxs)("div",{className:"col-md-8",children:[(null==c?void 0:c.gallery)&&(null==c?void 0:null===(r=c.gallery)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:s.length)>1?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.lr,{showThumbs:!1,dynamicHeight:!0,infiniteLoop:!1,children:c.gallery.data.map((e,t)=>(0,a.jsx)("div",{onClick:()=>this.openLightbox(t),children:(0,a.jsx)("img",{src:e.attributes.url,alt:"Gallery image ".concat(t+1)})},e.id))}),(0,a.jsx)("hr",{})]}):c.cover_image&&c.cover_image.data&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:c.cover_image.data.attributes.url,className:"img-fluid",alt:c.title}),(0,a.jsx)("hr",{})]}),(0,a.jsxs)("article",{className:"blog-post py-2",children:[(0,a.jsx)("h2",{className:"display-5 link-body-emphasis mb-1",children:c.title}),(0,a.jsxs)("p",{className:"blog-post-meta",children:[(0,a.jsxs)("small",{className:"text-secondary",children:[(0,a.jsx)("i",{className:"fa-regular fa-calendar"})," ",n.Z.formatDate(c.publishedAt)]}),"\xa0",(0,a.jsx)("big",{children:"\xb7"}),"\xa0",c.countries&&c.countries.data.length>0?c.countries.data.map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"badge badge-pill badge-info",children:e.attributes.Name},t),"\xa0"]})):(0,a.jsx)("span",{className:"badge badge-pill badge-info",children:"Global"})]}),(0,a.jsx)("div",{className:"ck-content",dangerouslySetInnerHTML:{__html:n.Z.decodeHTML(c.editor).replaceAll("​","")}})]}),u&&(0,a.jsx)(g.Z,{mainSrc:p[x],nextSrc:p[(x+1)%p.length],prevSrc:p[(x+p.length-1)%p.length],onCloseRequest:this.closeLightbox,onMovePrevRequest:this.movePrev,onMoveNextRequest:this.moveNext}),(0,a.jsx)("hr",{}),(0,a.jsx)("nav",{className:"blog-pagination mb-5","aria-label":"Pagination",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Categories: "}),c.categories&&c.categories.data.map((e,t)=>(0,a.jsx)(o(),{legacyBehavior:!0,href:"/category/".concat(e.attributes.slug),passHref:!0,children:(0,a.jsx)("a",{className:"btn btn-outline-primary btn-sm mr-2",children:e.attributes.name})},t))]}),(0,a.jsx)("div",{children:c.tags&&c.tags.data.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Tags: "}),c.tags.data.map((e,t)=>(0,a.jsx)("a",{className:"badge badge-secondary mr-2",style:{color:"#FFF"},children:e.attributes.name},t))]})})]})})]}),(0,a.jsx)("div",{className:"col-md-4",children:(0,a.jsx)("div",{className:"position-sticky",style:{to
1p:"7rem"},children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"fst-italic",children:"Related posts"}),(0,a.jsx)("ul",{className:"list-unstyled",children:d.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(o(),{legacyBehavior:!0,href:"/post/".concat(e.attributes.slug),passHref:!0,children:(0,a.jsxs)("a",{className:"d-flex flex-column flex-lg-row gap-3 align-items-start align-items-lg-center py-3 link-body-emphasis text-decoration-none border-top",children:[e.attributes.cover_image&&e.attributes.cover_image.data?(0,a.jsx)("img",{src:e.attributes.cover_image.data.attributes.url,width:"100",height:"96",className:"bd-placeholder-img mb-4 mb-lg-0",alt:e.attributes.title,style:{objectFit:"cover"}}):(0,a.jsx)("svg",{className:"bd-placeholder-img mb-4 mb-lg-0",width:"100",height:"96",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",preserveAspectRatio:"xMidYMid slice",focusable:"false",children:(0,a.jsx)("rect",{width:"100%",height:"100%",fill:"#ddd"})}),(0,a.jsxs)("div",{className:"col-lg-8",children:[(0,a.jsx)("h6",{className:"mb-0 BlogLink",children:e.attributes.title}),(0,a.jsx)("small",{className:"text-body-secondary BlogLink",children:n.Z.formatDate(e.attributes.publishedAt)})]})]})})},t))})]})})})]})})})]}):(0,a.jsx)(i.Z,{})})})}constructor(e){var t;super(e),t=this,this.getData=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=await n.Z.getentry("blog-posts",e);s[0]?t.setState({data:s[0].attributes},async()=>{await t.getRelatedPosts()}):t.setState({data:{}})},this.getRelatedPosts=async()=>{var e,t,s,a;let{data:i}=this.state;if(!i)return;let l=i.slug,r=(null===(t=i.tags)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.map(e=>e.attributes.slug))||[],o=(null===(a=i.categories)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.map(e=>e.attributes.slug))||[],c="?&populate=*&sort[1]=publishedAt:desc&pagination[limit]=".concat(5);if(r.length>0){let e=r.map((e,t)=>"filters[$or][0][tags][slug][$in][".concat(t,"]=").concat(e)).join("&");c+="&".concat(e)}else if(o.length>0){let e=o.map((e,t)=>"filters[$or][1][categories][slug][$in][".concat(t,"]=").concat(e)).join("&");c+="&".concat(e)}c+="&filters[slug][$ne]=".concat(l);let d=await n.Z.getentries("blog-posts",c);Array.isArray(d)&&d.length>0?this.setState({relatedPosts:d}):this.setState({relatedPosts:[]})},this.handleLink=async()=>{let e=async(e,t)=>{let{shallow:s}=t,{post:a}=this.props.router.state.query;await this.getData(a)};this.props.router.events.on("routeChangeStart",(e,t)=>{let{shallow:s}=t}),this.props.router.events.on("routeChangeComplete",e)},this.openLightbox=e=>{this.setState({lightboxOpen:!0,photoIndex:e})},this.closeLightbox=()=>{this.setState({lightboxOpen:!1})},this.moveNext=()=>{this.setState(e=>({photoIndex:(e.photoIndex+1)%e.data.gallery.data.length}))},this.movePrev=()=>{this.setState(e=>({photoIndex:(e.photoIndex+e.data.gallery.data.length-1)%e.data.gallery.data.length}))},this.state={data:null,relatedPosts:[],lightboxOpen:!1,photoIndex:0}}}t.default=(0,c.withRouter)(u)}},function(e){e.O(0,[192,489,829,888,774,179],function(){return e(e.s=9260)}),_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.