1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"f2e84f41ed6c0beba456d92f07f35b71be0836fd"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dd57ebda-0c31-4452-9b8e-07bd18fb7a5e",t._sentryDebugIdIdentifier="sentry-dbid-dd57ebda-0c31-4452-9b8e-07bd18fb7a5e")}catch(i){}}();import{b5 as t,N as e,aW as i,af as s,aX as o,aY as a,aZ as r,r as n,b$ as d,c0 as c,n as u,V as l,G as p,b as _,S as h,b9 as f}from"./client-ANZ33kkl.js";import{W as m}from"./WatchVideoBase-BzP1vhbk.js";import{M as y}from"./MobileBlocker-BjTLuamh.js";const $=u(m.extend({name:"WatchVideoPageContent",watch:{is_initializing_continue_watching(){!this.is_initializing_continue_watching&&this.is_episodic_collection&&d(this.$kuistore,this.$nuxt.context,!0)?.finally(()=>this.update_video_player())}},created(){this.is_direct_page_access=this.$nuxt.context?.route?.fullPath.includes(this.$nuxt.context?.from?.fullPath);let t=Promise.resolve();this.is_episodic_collection?t=d(this.$kuistore,this.$nuxt.context,!0):this.product?.type!==i.Video&&(t=c(this.$kuistore,this.$nuxt.context));let e=Promise.resolve();null==this.$kuistore.state.mylists.continuewatching_items&&(e=this.$kuistore.dispatch("mylists/fetch_continue_watching")),Promise.all([t,e]).finally(()=>this.update_video_player()),this.$nuxt.$on(n.GlobalPlayerPlayNext,this.on_play_next_requested),this.$nuxt.$on(n.GlobalPlayerNavVideoPage,this.back_to_video_page)},beforeDestroy(){this.set_continue_watching(),this.$nuxt.$off(n.GlobalPlayerPlayNext),this.$nuxt.$off(n.GlobalPlayerNavVideoPage)},computed:{product_instance(){return this.$kuistore.getters["product/product_instance"]},season(){return this.$kuistore.getters["product/selected_season"]},episode_to_play(){if(this.episode_selected)return this.episode_selected;const t=this.$kuistore.state.product.product_items;if(null==t||0===t.length)return;const e=this.$kuistore.state.mylists.continuewatching_items??[];return r(t,e)??t[0]},is_episodic_collection(){return this.product?.type===i.Collection&&this.product.collection?.collectionType===a.Episodic},is_initializing_continue_watching(){return this.$kuistore.state.mylists.fetching_continue_watching&&null==this.$kuistore.state.mylists.continuewatching_items},can_autoplay_next(){return this.product?.type===i.Playlist&&this.product.playlist?.playlistType2!==o.SingleTitlePlaylist||this.is_episodic_collection}},methods:{back_to_video_page(){const t=`/video/${(()=>this.product?.type===i.Video?this.get_ids_for_path():this.get_ids_for_path(this.episode_to_play))()}`;s.path_without_vp_subpath(this.$nuxt.context.from)!==t?e.navigate(this.$router,t,!0,!0):this.$router.back()},on_play_next_requested(){const t=`/watch/video/${this.get_ids_for_path(this.next_episode_to_play)}`;e.navigate(this.$router,t,!0,!0)},get_ids_for_path(e){let i=`${this.product_instance?.videoId}`;return null!=this.season&&(i=i.concat(`/${t(this.season)?.videoId}`)),null!=e&&(i=i.concat(`/${t(e)?.videoId}`)),i},set_continue_watching(){this.$kuistore.dispatch("mylists/mark_continue_watching_as_outdated"),this.$kuistore.dispatch("mylists/fetch_continue_watching")}}}),function(){var t=this._self._c;return this._self._setupProxy,t("div")},[],!1,null,"c0f706a8").exports;const b=u(l.extend({name:"WatchVideoIdPage",key:t=>t.params.id,layout:"default",async middleware(t){await new h(f).guard(t)},head(){return{title:`${this.product_title} | Kanopy`}},validate(t){if(null!=t.params.episodeid&&isNaN(_.parse(t.params.episodeid)))return e.redirect(t,`/watch/video/${t.params.id}`),!1;if(null!=t.params.seasonepisodeid&&isNaN(_.parse(t.params.seasonepisodeid)))return e.redirect(t,`/watch/video/${t.params.id}/${t.params.episodeid}`),!1;if(null!=t.params.seasonepisodeid)t.$kuistore.dispatch("product/select_product_season_id",Number(t.params.episodeid)),t.$kuistore.dispatch("product/select_product_item_id",Number(t.params.seasonepisodeid));else if(null!=t.params.episodeid){const e=t.$kuistore.state.product.product_infos;e?.type===i.Collection&&e.collection?.collectionType===a.Episodic?t.$kuistore.dispatch("product/select_product_season_id",Number(t.params.episodeid)):t.$kuistore.dispatch("product/select_product_item_id",Number(t.params.episodeid))}else t.$kuistore.dispatch("product/select_product_season_id",void 0),t.$kuistore.dispatch("product/select_product_item_id",void 0);return!0},beforeDestroy(){let t=_.parse(this.$route.params.id);this.$kuistore.state.product.product_infos?.type===i.Collection&&(t=this.$kuistore.getters["product/selected_season_id"]??this.$kuistore.getters["product/selected_item_id"]??t),setTimeout(()=>this.$kuistore.dispatch("product/fetch_product_access_expiration",{product_id:t,skip_cache:!0}),500)},computed:{product_title(){return this.$kuistore.getters["product/product_title"]},is_mobile:()=>p.isMobileOrTabletDevice()},components:{MobileBlocker:y,WatchVideoPageContent:$}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,t.is_mobile?e("mobile-blocker"):e("watch-video-page-content")},[],!1,null,"c9a8ff30").exports;export{b as default}; 2//# sourceMappingURL=index-BQRhmIwi.js.map
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.