System.register([],(function(t){"use strict";return{execute:function(){t("R",void 0);var a;(function(t){t["Article"]="Article";t["Blog"]="Blog";t["Book"]="Book";t["CaseStudy"]="Case Study";t["CustomerInterview"]="Customer Interview";t["Course"]="Course";t["Learning"]="Learning";t["Doc"]="Doc";t["Guide"]="Guide";t["Podcast"]="Podcast";t["Tutorial"]="Tutorial";t["Video"]="Video";t["Whitepaper"]="Whitepaper";t["Webinar"]="Webinar"})(a||(a=t("R",{})));var e;(function(t){t["Prismic"]="prismic"})(e||(e={}));var r=t("a",(function(t){var a,e,r;var i=[];(r=(e=(a=t.doc)===null||a===void 0?void 0:a.data)===null||e===void 0?void 0:e.body)===null||r===void 0?void 0:r.forEach((function(t){var a,e;(e=(a=t.primary)===null||a===void 0?void 0:a.content)===null||e===void 0?void 0:e.forEach((function(t){var a;if((a=t.type)===null||a===void 0?void 0:a.includes("heading"))i.push(t.text)}))}));return i}));var i=t("p",(function(t){return{id:t.uid,title:t.data.title||null,description:t.data.tagline||null,tags:t.tags||[],publishDate:t.first_publication_date||null,updatedDate:t.last_publication_date||null,type:u(t.type),authors:n(t),metaImage:o(t.data.meta_image),heroImage:o(t.data.hero_image||t.data.cover_image),source:e.Prismic,doc:t}}));var o=function(t){return t&&t.url?t.url:""};var n=t("g",(function(t){var a;if((!t.data.hosts||!t.data.hosts.length)&&(!t.data.author||!t.data.author.length)){return[]}if(t.type==="webinar"){return t.data.hosts.map((function(t){var a;return{name:t.name||"",title:t.title||"",link:((a=t.profile_link)===null||a===void 0?void 0:a.url)||"",avatar:t.photo||""}}))}else if(t.data.author&&t.data.author.length){return t.data.author.map((function(t){var a;return{name:t.name||"",title:t.title||"",link:((a=t.author_url)===null||a===void 0?void 0:a.url)||"",avatar:t.photo||""}}))}else if(t.data.author){return[{name:t.data.author.name||"",title:t.data.author.title||"",link:((a=t.data.author.author_url)===null||a===void 0?void 0:a.url)||"",avatar:t.data.author.photo||""}]}return[]}));var u=function(t){return{article:a.Article,blog:a.Blog,book:a.Book,case_study:a.CaseStudy,course:a.Course,customer_story:a.CustomerInterview,doc:a.Doc,guide:a.Guide,learning:a.Learning,podcast:a.Podcast,tutorial:a.Tutorial,video:a.Video,webinar:a.Webinar,whitepaper:a.Whitepaper}[t]}}}}));