1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[339],{8338:function(e,t,n){n.d(t,{Z:function(){return b}});var a=n(7294),s=n(3996),i=n(6641),r=n(1161),l=n(3938),o=n(4328),c=n(5893),d=function(e){var t,n,a,d=e.title,u=e.item,h=e.context;return(0,c.jsx)(s.lu,{id:u.id,title:d,href:"/episode/[...slug]",as:"/episode/".concat(u.canonicalSlug),audioPlayButton:u.audio&&null!==(t=u.audio[0])&&void 0!==t&&null!==(n=t.encodings)&&void 0!==n&&n.length?(0,c.jsx)(l.Z,{audioSource:(0,o.R)(u.audio[0].encodings),audioTitle:u.title,audioSubtitle:(0,r.Z)(new Date(u.publishDate),"MMMM d, yyyy")}):null,headingLevel:2,elementClass:"teaser-episode",image:null!==(a=u.primaryVisuals)&&void 0!==a&&a.thumbnail?(0,c.jsx)(i.Image,{image:u.primaryVisuals.thumbnail,aspectRatio:u.primaryVisuals.preferredAspectRatio,sizes:"300px",alt:u.primaryVisuals.thumbnail.shortCaption}):(0,c.jsx)(i.Image,{fallbackSrc:h.fallbackImg,alt:""})},u.id)},u=n(1842),h=n(626),p=function(e){var t,n,a=e.imageAspectRatio,d=e.title,p=e.item,m=e.context;return(0,c.jsx)(s.lu,{id:p.id,title:d,href:(0,u.ZZ)(p),as:(0,u.ge)(p),audioPlayButton:p.audio&&null!==(t=p.audio[0])&&void 0!==t&&t.encodings.length?(0,c.jsx)(l.Z,{audioSource:(0,o.R)(p.audio[0].encodings),audioTitle:p.title,audioSubtitle:(0,r.Z)(new Date(p.publishDate),"MMMM d, yyyy")}):null,headingLevel:3,description:p.description&&p.embeddedAssetJson&&(0,c.jsx)(h.uT,{nodeData:JSON.parse(p.description),embedded:JSON.parse(p.embeddedAssetJson)}),elementClass:"teaser-default",image:null!==(n=p.primaryVisuals)&&void 0!==n&&n.thumbnail?(0,c.jsx)(i.Image,{image:p.primaryVisuals.thumbnail,aspectRatio:a,sizes:"300px",alt:p.primaryVisuals.thumbnail.shortCaption}):(0,c.jsx)(i.Image,{fallbackSrc:m.fallbackImg,alt:""})},p.id)},m=n(9291),x=n(5668),v=n(6259),g=n(9748),f=function(e){var t,n,s,i=(0,a.useContext)(g.Z),r=e.results,l=e.title,o=e.slug,h=e.buttonAs,f=e.buttonHref,b=e.buttonText,j=e.imageAspectRatio,y=e.hideButton,S=e.teaserType,N=e.includeSearch,k=(0,a.useState)(null==r?void 0:r.items)[0];return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:"container container-wide",children:(0,c.jsxs)("div",{className:"container_wrapper container_wrapper-wide container_wrapper-content",children:[(0,c.jsx)(x.Z,{title:l,includeSearch:N,handleSearch:function(e){return k(null==e?void 0:e.items)}}),(0,c.jsxs)("div",{className:"text"===S?"text-list":"grid",children:["episode"===S&&(null==r?void 0:null===(t=r.items)||void 0===t?void 0:t.map(function(e){var t=(0,u.QT)(e,i);return(0,c.jsx)(d,{title:t,context:i,item:e,imageAspectRatio:j},e.id)})),"text"===S&&(null==r?void 0:null===(n=r.items)||void 0===n?void 0:n.map(function(e){var t=(0,u.QT)(e,i);return(0,c.jsx)(m.Z,{title:t,context:i,item:e},e.id)})),"episode"!==S&&"text"!==S&&(null==r?void 0:null===(s=r.items)||void 0===s?void 0:s.map(function(e){var t=(0,u.QT)(e,i);return(0,c.jsx)(p,{title:t,context:i,item:e,imageAspectRatio:j},e.id)}))]}),(0,c.jsx)(v.Z,{buttonHref:f||"/".concat(o),buttonAs:h||(f?null:"/".concat(o)),buttonText:b||"View All",headingClass:"hdg hdg-2 hdg-themeLight",hideButton:y})]})})})};f.defaultProps={includeSearch:!1};var b=f},6259:function(e,t,n){var a=n(9499);n(7294);var s=n(4184),i=n.n(s),r=n(3996),l=n(5893),o=function(e){var t=i()((0,a.Z)({sectionHeader:!0},e.elementClass,e.elementClass));return(0,l.jsx)(l.Fragment,{children:!e.hideButton&&(0,l.jsx)(l.Fragment,{children:e.buttonHref&&e.buttonText&&(0,l.jsx)("div",{className:t,children:(0,l.jsx)("div",{className:"row row-sectionHeader",children:(0,l.jsx)(r.zx,{type:"primary",href:e.buttonHref,as:e.buttonAs,children:e.buttonText})})})})})};o.defaultProps={headingLevel:2},t.Z=o},5668:function(e,t,n){n.d(t,{Z:function(){return j}});var a=n(9499),s=n(7294),i=n(4184),r=n.n(i),l=n(3996),o=n(29),c=n(7757),d=n.n(c),u=n(259),h=n(4768),p=n(2662),m=n(6871);function x(){return(x=(0,o.Z)(d().mark(function e(t){var n,a,s,i,r,l,o,c,u,h;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.contentAreaSlug,a=t.keyword,i=void 0===(s=t.pageSize)?24:s,l=void 0===(r=t.page)?1:r,c=void 0===(o=t.resourceTypes)?null:o,u=(0,m.Z)(n,a,i,l,c),e.next=4,(0,p.Z)(u);case 4:return h=e.sent,e.abrupt("return",null==h?void 0:h.contentList);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}var v=n(9748),g=n(5893),f=function(e){var t,n=e.searchCallback,a=(0,s.use
1State)(""),i=a[0],r=a[1],l=(0,s.useState)(!1),c=l[0],p=l[1],m=(0,s.useContext)(v.Z),f=(0,u.xX)().executeRecaptcha,b=(t=(0,o.Z)(d().mark(function e(t){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,e.next=4,function(e){return x.apply(this,arguments)}({contentAreaSlug:m.slug,keyword:i,resourceTypes:["EPISODES"],pageSize:10});case 4:n(e.sent),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return t.apply(this,arguments)}),j=(0,s.useCallback)((0,o.Z)(d().mark(function e(){var t,n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,f("EpisodeSearchBox");case 4:return t=e.sent,e.next=7,fetch("/api/validate-recaptcha",{method:"POST",headers:{"Content-Type":"application/json","Cache-Control":"must-revalidate,no-cache,no-store"},body:JSON.stringify({token:t})});case 7:return n=e.sent,e.next=10,n.json();case 10:p(e.sent.success);case 12:case"end":return e.stop()}},e)})),[f]);return(0,s.useEffect)(function(){j()},[j]),(0,g.jsxs)("form",{className:"search",role:"search",onSubmit:b,children:[(0,g.jsx)("span",{className:"search_hidden",children:"Search for episodes"}),(0,g.jsxs)("label",{className:"search_hidden",htmlFor:"search-episode",children:[" ","Search Website"]}),(0,g.jsx)("input",{name:"q",type:"text",id:"search-episode",placeholder:"Search for episodes",value:i,onChange:function(e){return r(e.target.value)}}),(0,g.jsxs)("button",{type:"submit",name:"button",className:"search_btn",disabled:!c,children:[" ",(0,g.jsx)("span",{className:"search_hidden",children:"Perform Search"}),(0,g.jsx)(h.Z,{name:"search"})]})]})},b=function(e){var t=r()((0,a.Z)({sectionHeader:!0},e.elementClass,e.elementClass)),n=r()((0,a.Z)({hdg:!e.headingClass,"hdg-2":!e.headingClass},e.headingClass,e.headingClass));return(0,g.jsxs)("div",{className:t,children:[(0,g.jsx)("div",{className:"sectionHeader_heading",children:(0,g.jsx)(l.X6,{level:e.headingLevel,className:n,children:e.title})}),e.includeSearch&&e.handleSearch&&(0,g.jsx)("div",{className:"sectionHeader_search",children:(0,g.jsx)(f,{searchCallback:e.handleSearch})}),!e.hideButton&&e.buttonHref&&e.buttonText&&(0,g.jsx)("div",{className:"sectionHeader_button",children:(0,g.jsx)(l.zx,{type:"primary",href:e.buttonHref,as:e.buttonAs,children:e.buttonText})})]})};b.defaultProps={headingLevel:2,includeSearch:!1};var j=b},9291:function(e,t,n){n(7294);var a=n(3996),s=n(1161),i=n(3938),r=n(4328),l=n(5893);t.Z=function(e){var t,n,o=e.title,c=e.item;return(0,l.jsx)(a.lu,{id:c.id,title:o,href:"/episode/[...slug]",as:"/episode/".concat(c.canonicalSlug),audioPlayButton:c.audio&&null!==(t=c.audio[0])&&void 0!==t&&null!==(n=t.encodings)&&void 0!==n&&n.length?(0,l.jsx)(i.Z,{audioSource:(0,r.R)(c.audio[0].encodings),audioTitle:c.title,audioSubtitle:(0,s.Z)(new Date(c.publishDate),"MMMM d, yyyy")}):null,headingLevel:3,elementClass:"teaser-text",image:c.publishDate&&(0,l.jsx)("div",{className:"teaser-date",children:(0,s.Z)(new Date(c.publishDate),"eeee, MMMM d, yyyy")})},c.id)}},6871:function(e,t,n){n.d(t,{Z:function(){return r}});var a,s=n(1383),i=n(8687);function r(e,t,n,r){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return(0,i.gql)(a||(a=(0,s.Z)(['\n {\n contentList(\n contentAreaSlug: "','" \n keyword: "','"\n pageSize: ',"\n page: ","\n ","\n includeDoNotCrawl: false\n )\n {\n totalItems\n pageSize\n currentPage\n nextPage\n previousPage\n totalPages\n items {\n id\n title\n descriptionText\n canonicalSlug\n resourceType\n publishDate\n audio {\n title\n durationHms\n encodings {\n httpFilePath\n playFilePath\n filename\n mediaType\n locations {\n location\n path\n }\n }\n }\n primaryVisuals {\n thumbnail {\n fallback\n preferredAspectRatio {\n instances {\n width\n height\n url\n }\n }\n }\n }\n }\n }\n }"])),e,t,n,r,l?"contentTypes: [".concat(l,"]"):"")}},2339:function(e,t,n){n.d(t,{d:function(){return p}});var a=n(7294),s=n(8338),i=n(6641),r=n(3996),l=n(5893),o=function(e){var t=e.podcastLinks;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"hero_podcastLinks",children:null==t?void 0:t.map(function(e){var t=e.name.toLowerCase();return(0,l.jsx)(r.rU,{href:e.href,children:(0,l.jsx)(i.Image,{elementClass:"hero_podcastLink",fallbackSrc:"/assets/".concat(t,"_podcasts.svg"),alt:"Listen via ".concat(e.name," Podcasts")})},t)})}),(0,l.jsx)("div",{className:"hero_subscribeLink",children:(0,l.jsx)(r.rU,{href:"/about#subscribe",children:"more ways to subscribe"})})]})},c=n(498),d=n(9748),u=function(){var e=(0,a.useContext)(d.Z);return(0,l.jsxs)("div",{className:"hero",children:[(0,l.jsx)("div",{className:"hero_image hero_image-em hero_image-homepage",children:(0,l.jsx)(i.Image,{fallbackSrc:e.heroImg,alt:e.name})}),(0,l.jsxs)("div",{className:"hero_content hero_content-homepage",children:[(0,l.jsx)("h1",{className:"hdg hdg-1",children:e.aboutHeading}),(0,l.jsx)("p",{children:e.heroText}),(0,l.jsx)("div",{className:"hero_section",children:(0,l.jsx)(o,{podcastLinks:e.podcastLinks})}),(0,l.jsxs)("div",{className:"hero_socialIcons",children:[(0,l.jsx)("span",{className:"text text-bold",children:"Follow Us"}),(0,l.jsx)(c.Z,{googleClassIcon:!1,links:e.heroSocialLinks})]})]})]})},h=function(e){return(0,l.jsx)("div",{className:"banner banner-em",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsxs)("div",{className:"promo",children:[(0,l.jsx)("div",{className:"promo_title",children:(0,l.jsx)(r.X6,{level:e.headingLevel,elementClass:"hdg hdg-promo",children:e.title})}),e.buttonText&&e.href&&(0,l.jsx)("div",{className:"promo_button",children:(0,l.jsx)(r.zx,{href:e.href,type:"primary",size:"large",children:e.buttonText})})]})})})},p=function(e,t,n){var a,i,r,o;switch(e.type){case"collection":return(0,l.jsx)("section",{className:"section",children:(0,l.jsx)(s.Z,{queryName:e.key,results:null===(a=t[e.key])||void 0===a?void 0:a.results,title:e.titleOverride?e.titleOverride:null===(i=t[e.key])||void 0===i?void 0:i.title,slug:e.slug,buttonHref:e.buttonHref,buttonAs:e.buttonAs,buttonText:e.buttonText,layout:e.layout,showPublishDate:e.showPublishDate,pageSize:e.pageSize,imageAspectRatio:e.imageAspectRatio?e.imageAspectRatio:"widescreen",teaserType:e.teaserType,includeSearch:e.includeSearch})},e.key);case"hero":return(0,l.jsx)("div",{className:"container container-wide container-heroReverse",children:(0,l.jsx)("section",{className:"banner banner-heroReverse",children:(0,l.jsx)("div",{className:"container_wrapper container_wrapper-wide",children:(0,l.jsx)(u,{latestEpisode:null===(r=t[e.key])||void 0===r?void 0:null===(o=r.results)||void 0===o?void 0:o.items[0],context:n})})},e.key)},e.key);case"promo":return(0,l.jsx)("section",{className:"section",children:(0,l.jsx)(h,{title:n.promo.title,buttonText:n.promo.buttonText,headingLevel:2,href:n.promo.href})},e.key);default:return null}}}}]);
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.