PageSourceSearch

https://www.kanopy.com/kui-assets/mywatchlist-BokSdXx5.js

js kanopy.com collected 2026-10-01 08:44:58 UTC 4,000 bytes, 2 lines download raw bytes

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:"d550ef807d0377358caaeb96b27eda673de86179"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ba8da739-ed9e-4e05-89cf-73ca12fb63ff",t._sentryDebugIdIdentifier="sentry-dbid-ba8da739-ed9e-4e05-89cf-73ca12fb63ff")}catch(s){}}();import{V as t,F as e,x as s,r as i,d as a,H as o,S as n,bJ as r,n as l}from"./client-B_OO2n2q.js";import{S as c}from"./Spinner-tQpZnze5.js";import{M as d,a as _,b as h}from"./MyListsHeader-QbrmfLWA.js";import{V as m}from"./VideoListContent-BiET9_ZF.js";import{L as f}from"./Playlist-Vof1znsu.js";import{F as u}from"./FetchUtils-DcGe2NQx.js";import"./TabBar-UXSoIKx2.js";import"./VideoGrid-D25E6zQv.js";import"./MoviePoster-DCRdMRQz.js";import"./MoviePosterOptionsMenu-v8kB3AgV.js";import"./OptionsMenu-C_qY9VlS.js";const p=l(t.extend({name:"MyWatchlist",layout:"default",middleware(t){new n(r).guard(t)},head:{title:"Watchlist | Kanopy"},data(){return{fetch_more_failed:!1,component_id:o.instance.getId(this.$options.name),tabpanel_id:_[h.Watchlist].tabpanel_id}},mounted(){e.instance.addBlockingFocus(this.component_id,s.Footer,this.fetch_more_results),null==this.$kuistore.state.mylists.watchlist_items?this.$kuistore.dispatch("mylists/fetch_watchlist_items",!1).then(()=>{this.$nuxt.$emit(i.LiveRegionUpdate,{text:"Displaying {number} videos.".localized({number:this.watchlist_nb_items},this.watchlist_nb_items)})}).catch(t=>{this.fetch_more_failed=!0,a.notify(t,"Something went wrong. Videos failed to load.".localized()).asFailure().push()}):u.hasSpaceToFetchMore(this.$refs["mywatchlist-container"])&&(this.fetch_more_failed=!1,this.fetch_more_results()),this.$kuistore.commit("site/set_skip_links",[{focus_id:s.Footer,text:"Skip to footer".localized()}])},beforeDestroy(){e.instance.removeAllBlockingFocuses(this.component_id)},updated(){this.is_loading||null==this.$kuistore.state.mylists.watchlist_items||this.fetch_more_failed||u.hasSpaceToFetchMore(this.$refs["mywatchlist-container"])&&this.fetch_more_results()},computed:{watchlist_items(){return this.$kuistore.state.mylists.watchlist_items??[]},watchlist_nb_items(){return this.$kuistore.getters["mylists/watchlist_nb_items"]??0},is_loading(){return this.$kuistore.state.mylists.fetching_watchlist_items},is_loading_more(){return this.$kuistore.state.mylists.fetching_more_watchlist_items},can_fetch_more_results(){return this.$kuistore.getters["mylists/can_fetch_more_watchlist_items"]},list_name:()=>f.Watchlist},methods:{on_load_more_trigger(){u.hasSpaceToFetchMore(this.$refs["mywatchlist-container"])&&this.fetch_more_results()},fetch_more_results(){!this.can_fetch_more_results||this.fetch_more_failed||e.instance.hasBlockingFocus(this.component_id,s.Footer)||this.$kuistore.dispatch("mylists/fetch_watchlist_items",!0).then(()=>{this.$nuxt.$emit(i.LiveRegionUpdate,{text:"Displaying additional videos.".localized()})}).catch(t=>{this.fetch_more_failed=!0,a.notify(t,"Something went wrong. Additional videos failed to load.".localized()).asFailure().push()})}},components:{Spinner:c,MyListsHeader:d,VideoListContent:m}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"watchlist-container"},[e("my-lists-header"),t.is_loading?e("spinner",{staticClass:"load-spinner"}):e("div",{directives:[{name:"windowscroll",rawName:"v-windowscroll",value:t.on_load_more_trigger,expression:"on_load_more_trigger"}],ref:"mywatchlist-container",staticClass:"mywatchlist-container"},[e("video-list-content",{ref:"video-list-content",attrs:{id:t.tabpanel_id,role:"tabpanel","aria-label":t.list_name,items:t.watchlist_items,total_item_nb:t.watchlist_nb_items,is_loading_more:t.is_loading_more,list_name:t.list_name,list_name_headings:t.list_name}})],1)],1)},[],!1,null,"6617d13c").exports;export{p as default};
2//# sourceMappingURL=mywatchlist-BokSdXx5.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.