1import{n as r,e as o}from"./main-72a01a0e.js";import{O as n}from"./OfflineWrapper-fe0f21ae.js";const d={components:{OfflineWrapper:n},metaInfo(){return{title:this.generateMetaInfos(this.episode,this.$store.getters.getSettings.podcastPageTitle,"podcast"),meta:[{name:"description",content:this.generateMetaInfos(this.episode,this.$store.getters.getSettings.podcastPageDescription,"podcast")}]}},data(){return{episode:null,errorStatus:null}},created(){axios.get("/api/episodes/"+this.$route.params.id).then(e=>{var t=e.data;axios.get("/api/podcasts/"+t.podcast.id).then(s=>{t.podcast.episodes=s.data.episodes}).finally(()=>{this.episode=t})}).catch(e=>this.errorStatus=e.response.status)},methods:{shareEpisode(e){const t=this.$store.getters.getSettings.appUrl;this.$store.commit("shareItem",{cover:this.episode.podcast.cover,url:t+(t.substring(t.length-1)==="/"?"episode/":"/episode/")+e.id,title:e.title,type:"episode",artist:this.getMainArtist(this.episode.podcast)})},formatEpisodeDate(e){return o(e).fromNow().match(/year/)?o(e).format("MMM YYYY"):o(e).format("DD MMM")},formatEpisodeDuration(e){var t=Math.floor(e/60);return e=e%60,t+" min "+e+" secs"}}};var c=function(){var t=this,s=t._self._c;return s("OfflineWrapper",[t.episode?s("div",{staticClass:"podcast-container elevate-page"},[s("div",{staticClass:"podcast__header"},[s("div",{staticClass:"podcast__info"},[s("div",{staticClass:"podcast__cover"},[s("v-img",{staticClass:"podcast__cover__img",attrs:{src:t.episode.podcast.cover,"aspect-ratio":"1"},scopedSlots:t._u([{key:"placeholder",fn:function(){return[s("div",{staticClass:"fixed-area__image-skeleton"},[s("content-placeholders",{attrs:{rounded:!0}},[s("content-placeholders-img")],1)],1)]},proxy:!0}],null,!1,4032264742)})],1),s("div",{staticClass:"podcast__text"},[s("div",{staticClass:"info-badge"},[t._v(t._s(t.$t("Podcast Episode")))]),s("div",{staticClass:"podcast__text__title"},[t._v(t._s(t.episode.title))]),t.episode.podcast?s("div",{},[s("router-link",{staticClass:"router-link d-flex pt-2 pb-5 mb-3 align-center",attrs:{to:{name:"podcast",params:{id:t.episode.podcast.id}}}},[s("div",{staticClass:"avatar mr-2"},[s("v-avatar",{attrs:{size:"35"}},[s("v-img",{attrs:{src:t.episode.podcast.cover}})],1)],1),s("div",{staticClass:"artist-name"},[t._v(" "+t._s(t.episode.podcast.title)+" ")])])],1):t._e(),s("div",{staticClass:"podcast__description-lg",domProps:{innerHTML:t._s(t.episode.description||t.podcast.description)}})])]),s("div",{staticClass:"podcast__description-sm",domProps:{innerHTML:t._s(t.episode.description||t.podcast.description)}}),s("div",{staticClass:"podcast__actions"},[s("div",{staticClass:"play-button"},[t.isCurrentlyPlaying(t.episode)?s("v-btn",{attrs:{color:"primary",rounded:""},on:{click:t.pause}},[s("v-icon",{attrs:{left:""}},[t._v("$vuetify.icons.pause")]),t._v(" "+t._s(t.$t("Pause"))+" ")],1):s("v-btn",{attrs:{color:"primary",rounded:"",disabled:t.loading},on:{click:function(i){return t.play(t.episode,!0)}}},[s("v-icon",{attrs:{left:""}},[t._v("$vuetify.icons.play")]),t._v(" "+t._s(t.$t("Play"))+" ")],1)],1),s("v-btn",{attrs:{color:"secondary",rounded:""},on:{click:function(i){return i.stopPropagation(),t.shareEpisode(t.episode)}}},[s("v-icon",{attrs:{left:""}},[t._v("$vuetify.icons.share-variant")]),t._v(" "+t._s(t.$t("Share"))+" ")],1)],1)]),s("div",{staticClass:"podcast__body"},[t.episode.podcast.episodes&&t.episode.podcast.episodes.length?s("div",{staticClass:"podcast__episodes"},[s("div",{staticClass:"podcast__title py-4"},[t._v(" "+t._s(t.$t("Other Episodes"))+" ")]),s("div",{staticClass:"episodes"},t._l(t.episode.podcast.episodes,function(i){return s("v-card",{key:i.id,staticClass:"episode",on:{click:function(a){return t.play(i,!0)}}},[s("div",{staticClass:"justify-between"},[s("div",{staticClass:"episode__cover"},[s("v-img",{staticClass:"episode__cover__img",attrs:{src:i.cover,width:"100px","aspect-ratio":"1"},scopedSlots:t._u([{key:"placeholder",fn:function(){return[s("div",{staticClass:"fixed-area__image-skeleton"},[s("content-placeholders",{attrs:{rounded:!0}},[s("content-placeholders-img")],1)],1)]},proxy:!0}],null,!0)},[t.$store.getters.getCurrentAudio&&t.$store.getters.getCurrentAudio.id===i.id&&t.$store.getters.getCurrentAudio.podcast?s("div",{staticClass:"dark-layer hide-above-699"},[s("div",{staticClass:"icon icon-inside-cover absolute fill"},[s("div",{staticClass:"epico_music-is-playing-container"},[s("span"),s("span"),s("span")])])]):t._e()])],1),s("div",{staticClass:"share-button hide-above-699"},[s("v-btn",{attrs:{color:"primary",rounded:"",small:""},on:{click:function(a){return a.stopPropagation(),t.shareEpisode(i)}}},[s("v-icon",{attrs:{left:""}},[t._v("$vuetify.icons.share-variant")]),t._v(" "+t._s(t.$t("Share"))+" ")],1)],1)]),s("div",{staticClass:"episode__body"},[s("div",{staticClass:"episode-header"},[s("div",{staticClass:"infos"},[s("div",{staticClass:"title"},[s("div",{staticClass:"icon hide-under-700"},[t.$store.getters.getCurrentAudio&&t.$store.getters.getCurrentAudio.id===i.id&&t.$store.getters.getCurrentAudio.podcast?[s("div",{staticClass:"epico_music-is-playing-container"},[s("span"),s("span"),s("span")])]:[s("v-icon",{staticClass:"icon__access-point",attrs:{large:""}},[t._v("$vuetify.icons.access-point")]),s("v-icon",{staticClass:"icon__play",attrs:{large:""}},[t._v("$vuetify.icons.play")])]],2),s("div",{staticClass:"title__title"},[t._v(" "+t._s(i.title)+" ")])]),s("div",{staticClass:"times"},[s("div",{staticClass:"created_at"},[t._v(" "+t._s(t.formatEpisodeDate(i.created_at))+" ")]),s("div",{staticClass:"duration"},[t._v(" "+t._s(t.formatEpisodeDuration(i.duration))+" ")])])]),s("div",{staticClass:"share-button hide-under-700"},[s("v-btn",{attrs:{color:"primary",rounded:"",small:""},on:{click:function(a){return a.stopPropagation(),t.shareEpisode(i)}}},[s("v-icon",{attrs:{left:""}},[t._v("$vuetify.icons.share-variant")]),t._v(" "+t._s(t.$t("Share"))+" ")],1)],1)]),s("div",{staticClass:"description",domProps:{innerHTML:t._s(i.description)}})])])}),1)]):s("empty-page",{attrs:{headline:t.$t("No other Episodes!"),sub:t.$t("Looks like this podcast has no episodes yet."),img:"peep-34.png"}})],1)]):!t.episode&&t.errorStatus==404?s("empty-page",{attrs:{headline:t.$t("Not Available!"),sub:t.$t("Podcast")+""+t.$t("does no exist."),img:"peep-68.png"},scopedSlots:t._u([{key:"button",fn:function(){return[s("v-btn",{staticClass:"primary",attrs:{rounded:"",small:""},on:{click:function(i){return t.$router.go(-1)}}},[t._v(t._s(t.$t("Go Back")))])]},proxy:!0}])}):!t.episode&&t.errorStatus?s("empty-page",{attrs:{headline:t.$t("Something wrong happened!"),sub:t.$t("Some server error has occurred. Try again later."),img:"peep-68.png"},scopedSlots:t._u([{key:"button",fn:function(){return[s("v-btn",{staticClass:"primary",attrs:{rounded:"",small:""},on:{click:function(i){return t.$router.go(-1)}}},[t._v(t._s(t.$t("Go Back")))])]},proxy:!0}])}):s("page-loading")],1)},p=[],l=r(d,c,p,!1,null,"a7ca565e",null,null);
1const u=l.exports;export{u as default};
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.