1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[126],{4085:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rss/[slug]",function(){return e(2759)}])},2759:function(n,t,e){"use strict";e.r(t);var l=e(7340),a=e(7294),i=e(7439),u=e(7283);function o(){let n=(0,l._)(['\n query {\n entries(section: "news", relatedToCategories: {slug: "','"}) {\n title\n url\n postDate\n author {\n ... on User {\n fullName\n email\n }\n }\n ... on news_default_Entry {\n newsMainImage {\n url\n }\n newsExcerpt\n }\n }\n }\n ']);return o=function(){return n},n}let r=async n=>{var t,e,l,a;let r=(0,u.Ps)(o(),n),s=(0,i.in)(),c=await s.query({query:r}),d=[];if((null==c?void 0:c.data)&&(null==c?void 0:null===(t=c.data)||void 0===t?void 0:t.entries))for(let n of null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.entries)d.push("<item>\n <title>".concat(n.title,"</title>\n <link>").concat(n.url,"</link>\n <img>").concat(null==n?void 0:null===(a=n.newsMainImage)||void 0===a?void 0:null===(l=a[0])||void 0===l?void 0:l.url,"</img>\n <pubDate>").concat(new Date(n.postDate),"</pubDate>\n <author>").concat(n.author.fullName?n.author.fullName+" - "+n.author.email:n.author.email,"</author>\n <guid>").concat(n.url,"</guid>\n <description>\n ").concat(n.newsExcerpt,"\n </description>\n </item>"));let w=d.join("");return'<?xml version="1.0" encoding="utf-8"?>\n <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">\n <channel>\n <title>Carey Website</title>\n <link>https://www.carey.com.au/</link>\n <language>en</language>\n <pubDate>'.concat(new Date,"</pubDate>\n <lastBuildDate>").concat(new Date,"</lastBuildDate>\n ").concat(w,"\n </channel>\n </rss>")};class s extends a.Component{static async getInitialProps(n){var t;let e=await r(null==n?void 0:null===(t=n.query)||void 0===t?void 0:t.slug);null==n||n.res.setHeader("Content-Type","text/xml"),null==n||n.res.write(e),null==n||n.res.end()}}t.default=s}},function(n){n.O(0,[747,888,774,179],function(){return n(n.s=4085)}),_N_E=n.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.