PageSourceSearch

https://www.kanopy.com/kui-assets/index-DEn3TxHT.js

js kanopy.com collected 2026-09-24 08:29:54 UTC 20,289 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:"f2e84f41ed6c0beba456d92f07f35b71be0836fd"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e4681f8f-711d-4942-9e88-68928bf21327",t._sentryDebugIdIdentifier="sentry-dbid-e4681f8f-711d-4942-9e88-68928bf21327")}catch(i){}}();import{V as t,n as e,J as i,p as s,a4 as n,aQ as a,aR as r,q as o,N as _,aU as l,b5 as h,v as d,bz as c,bA as m,S as u,b7 as g}from"./client-ANZ33kkl.js";import{H as f}from"./HorizontalDraggableDiv-Cs0Z102t.js";import{P as p}from"./LandingDevices-e8dS8_Sz.js";import{S as v}from"./ShelvesContainer-CLKEyg_s.js";import{s as w,a as k,b}from"./ShelfRow-D_dtzJOe.js";import{V as y}from"./VideoGridWithSpinner-Dd12cZtP.js";import{F as x}from"./FetchUtils-D0lestUm.js";import{L as $}from"./LandingLoggedOut-CMh0ER1p.js";import"./Spinner-Ce5drrJq.js";import"./MoviePoster-ByXOBmKH.js";import"./MoviePosterOptionsMenu-CIgp0xEa.js";import"./OptionsMenu-DlZAgo4G.js";import"./VideoGrid-DW5MBuzB.js";import"./ExpandCollapseButton-CbFkHP38.js";const L=e(t.extend({name:"SeeMoreArrowIconSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"}}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("svg",{attrs:{width:"20px",height:"14px",viewBox:"0 0 20 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("title",[t._v("See More Arrow")]),e("g",{attrs:{id:"Home-PL",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{id:"Home-PL-Tickets",transform:"translate(-459.000000, -284.000000)",fill:"#FFFFFF","fill-rule":"nonzero",stroke:t.color}},[e("g",{attrs:{id:"PL-Tickets-Menu",transform:"translate(0.000000, 64.000000)"}},[e("g",{attrs:{id:"Text-Blocks",transform:"translate(32.000000, 94.000000)"}},[e("g",{attrs:{id:"Text-Block",transform:"translate(356.000000, 1.000000)"}},[e("g",{attrs:{id:"Link-Block",transform:"translate(0.000000, 124.000000)"}},[e("g",{attrs:{id:"Path",transform:"translate(72.000000, 2.000000)"}},[e("path",{attrs:{d:"M0.0707716913,6.17033187 L5.82846861,11.9280288 C5.87644942,11.9760096 5.93882447,12 5.99640144,12 C6.05397841,12 6.12115154,11.9760096 6.16433427,11.9280288 C6.26029588,11.8320672 6.26029588,11.6833267 6.16433427,11.5873651 L0.819272291,6.24230308 L17.5117953,6.24230308 C17.6461415,6.24230308 17.7516993,6.1367453 17.7516993,6.00239904 C17.7516993,5.86805278 17.6461415,5.762495 17.5117953,5.762495 L0.819272291,5.762495 L6.16913235,0.412634946 C6.26509396,0.316673331 6.26509396,0.167932827 6.16913235,0.0719712115 C6.07317073,-0.0239904038 5.92443023,-0.0239904038 5.82846861,0.0719712115 L0.0707716913,5.82966813 C0.0467812875,5.85365854 0.0323870452,5.87764894 0.0179928029,5.90643743 C-0.00599760096,5.96401439 -0.00599760096,6.03118752 0.0179928029,6.08876449 C0.0275889644,6.12235106 0.0467812875,6.15113954 0.0707716913,6.17033187 Z",transform:"translate(8.875850, 6.000000) scale(-1, 1) translate(-8.875850, -6.000000) "}})])])])])])])])])},[],!1,null,"6e235efc").exports;const I=e(t.extend({name:"LandingLoggedInVpHeader",computed:{vp_name(){return this.$kuistore.getters["site/institution_name"]},vp_is_paused(){return this.$kuistore.state.site.domain?.isPaused??!1}},components:{KanopyLink:i,SeeMoreArrowIconSvg:L}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"vp-header-row"},[e("h3",{staticClass:"vp-name-title"},[t._v(t._s(t.vp_name))]),t.vp_is_paused?e("div",{staticClass:"vp-pause-msg-container"},[e("p",{staticClass:"vp-paused-msg"},[t._v(t._s("Streaming is currently limited at your library.".localized()))]),e("div",{staticClass:"see-more-link"}
1,[e("kanopy-link",{staticClass:"vp-paused-learn-more",attrs:{title:"Learn More".localized(),to:"https://help.kanopy.com/hc/en-us/articles/360041494654",in_new_tab:!0}}),e("see-more-arrow-icon-svg",{staticClass:"see-more-arrow"})],1)]):t._e()])},[],!1,null,"1193eafb").exports;const C=e(t.extend({name:"Banner",data:()=>({slide_interval:void 0,current_index:0,animation_index:1,animation:!0,dragging:!1,vw:window.innerWidth,image_ratio:6.8}),props:{items:{type:Array,required:!1,default:()=>[]},stay_on_image_duration:{type:Number,required:!1,default:5e3},transition_duration:{type:Number,required:!1,default:300},item_width_percentage:{type:Number,required:!1,default:1},item_horizontal_margin_percentage:{type:Number,required:!1,default:0},paused:{type:Boolean,required:!0}},watch:{paused(t){t?this.stop_automatic_transition():this.start_automatic_transition(!0)}},created(){this.start_automatic_transition()},beforeDestroy(){this.stop_automatic_transition()},computed:{has_multiple_items(){return this.items.length>1},image_width(){return this.vw*this.item_width_percentage},image_max_height(){return this.image_width/this.image_ratio},visible_part_of_previous_item(){return(1-this.item_width_percentage)/2-this.item_horizontal_margin_percentage},banner_images_to_show(){if(this.items.length<=1)return this.items;{const t=this.items[0];return[this.items[this.items.length-1]].concat(this.items).concat(t)}},transition_duration_css(){if(this.banner_images_to_show.length<=1)return{"--transition-duration":`${this.transition_duration}ms`,"--horizontal-scroll":this.vw*this.visible_part_of_previous_item+"px"};const t=this.vw*this.visible_part_of_previous_item,e=Math.max(0,this.vw*(1-2*this.visible_part_of_previous_item)*this.animation_index-t);return{"--transition-duration":`${this.transition_duration}ms`,"--horizontal-scroll":`-${e}px`}},banner_item_css(){return{"--horizontal-margin":100*this.item_horizontal_margin_percentage+"%"}},drag_threshold(){return.2*this.vw},is_in_kids_mode(){return this.$kuistore.state.site.is_in_kids_mode}},methods:{start_automatic_transition(t){this.paused||(this.stop_automatic_transition(),t&&this.transition_to_next_slide(!1,!1),this.slide_interval=setInterval(this.transition_to_next_slide,this.stay_on_image_duration+this.transition_duration))},stop_automatic_transition(){null!=this.slide_interval&&clearInterval(this.slide_interval)},transition_to_next_slide(t,e){const i=(this.current_index+1)%this.items.length;this.transition_to_slide(i,0,t,e)},transition_to_previous_slide(t,e){const i=this.current_index>0?this.current_index-1:this.items.length-1;this.transition_to_slide(i,1,t,e)},on_prev_clicked(){this.transition_to_previous_slide(!0),this.start_automatic_transition()},on_next_clicked(){this.transition_to_next_slide(!0),this.start_automatic_transition()},on_drag_started(){this.dragging=!0,this.stop_automatic_transition()},on_drag_release(t){Math.abs(t)>=this.drag_threshold&&(t<0?this.transition_to_next_slide():this.transition_to_previous_slide())},on_drag_ended(){this.dragging=!1,this.start_automatic_transition()},transition_to_slide(t,e,i,s=!0){t!==this.current_index&&(this.animation=!0,0===e&&0===t&&this.current_index===this.items.length-1?(this.animation_index+=1,setTimeout(()=>{this.animation=!1,this.animation_index=1},this.transition_duration)):1===e&&t===this.items.length-1&&0===this.current_index?(this.animation_index-=1,setTimeout(()=>{this.animation=!1,this.animation_index=this.banner_images_to_show.length-2},this.transition_duration)):this.animation_index=t+1,i&&setTimeout(()=>{document.getElementById("banner-item-"+(this.current_index+1))?.focus()},this.transition_duration),this.current_index=t,s&&this.start_automatic_transition())},on_resize(){this.vw=window.innerWidth},send_analytics(t){const e={banner_link:t};a.sendEvent(this.$nuxt.context,r.Banner,e)},get_tabindex(t){return 1===this.banner_images_to_show.length||this.current_index===t-1?0:-1}},components:{HorizontalDraggableDiv:f,ImageLink:n,FontAwesomeIcon:s}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:t.on_resize,expression:"on_resize"}],staticClass:"banner-container"},[e("horizontal-draggable-div",{staticClass:"banner-slider",class:{"no-animation":!t.animation},style:t.transition_duration_css,attrs:{can_cancel_drag_gesture:!1,disabled:!t.has_multiple_items},on:{drag_started:t.on_drag_started,drag_release:t.on_drag_release,drag_ended:t.on_drag_ended}},t._l(t.banner_images_to_show,function(i,s){return e("image-link",{key:s,staticClass:"banner-item",class:{kids:t.is_in_kids_mode},style:t.banner_item_css,attrs:{id:"banner-item-"+s,tabindex:t.get_tabindex(s),to:i.link,src:i.image,disabled:t.dragging,img_desc:i.alt||i.title,img_width:t.image_width,img_max_height:t.image_max_height},on:{click:function(e){return t.send_analytics(i.link)}}})}),1),t.has_multiple_items?e("button",{staticClass:"prev-icon",attrs:{"aria-label":"Previous item".localized()},on:{click:t.on_prev_clicked}},[e("font-awesome-icon",{attrs:{name:"angle-left"}})],1):t._e(),t.has_multiple_items?e("button",{staticClass:"next-icon",attrs:{"aria-label":"Next item".localized()},on:{click:t.on_next_clicked}},[e("font-awesome-icon",{attrs:{name:"angle-right"}})],1):t._e()],1)},[],!1,null,"172f5263").exports;const z=e(t.extend({name:"LandingLoggedInBanner",data:()=>({item_takes_full_width:window.innerWidth<768,paused:!1}),watch:{banners(){null==this.banners&&this.$kuistore.dispatch("banner/fetch_banners")}},created(){null==this.banners&&this.$kuistore.dispatch("banner/fetch_banners")},computed:{banners(){return this.$kuistore.getters["banner/home_banners"]},banner_images(){return this.banners?.map(t=>{let e="";return null!=t.targetLink?e=t.targetLink:null!=t.videoId?e=`/video/${t.videoId}`:null!=t.targetTermId&&(e=`/category/${t.targetTermId}`),{image:t.imageUrl,link:e,title:t.title,alt:t.alternativeText}})??[]},banner_item_width_percentage(){return this.item_takes_full_width?1:.95},banner_margins(){return this.item_takes_full_width?0:.008}},methods:{on_resize(){this.item_takes_full_width=window.innerWidth<768},on_play_pause_click(t){this.paused=t}},components:{Banner:C,PlayPauseMarqueeButton:p}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"container"},[e("banner",{directives:[{name:"windowresize",rawName:"v-windowresize",value:t.on_resize,expression:"on_resize"}],staticClass:"banner",attrs:{id:"banner",items:t.banner_images,item_width_percentage:t.banner_item_width_percentage,item_horizontal_margin_percentage:t.banner_margins,paused:t.paused}}),null!=t.banners?e("play-pause-marquee-button",{staticClass:"button",attrs:{aria_controls:"banner",play_text:"Play marquee".localized(),paused_text:"Pause marquee".localized()},on:{click:t.on_play_pause_click}}):t._e()],1)},[],!1,null,"cd8f5066").exports;const T=e(t.extend({name:"LandingLoggedInShelves",watch:{shelves(){this.fetch_home_content()}},created(){this.fetch_home_content()},computed:{shelves(){return this.$kuistore.state.home.shelves},all_videos_shelf(){const t=this.$kuistore.state.home.grid,e=this.$kuistore.state.home.grid_total_items;if(null!=t&&null!=e)return{count:e,shelfType:b.AllVideos,name:b.AllVideos.localized(),shelfId:"",list:t}},watchlist_shelf(){const t=this.$kuistore.state.mylists.watchlist_items?.map(t=>h(t.video)),e=this.$kuistore.state.mylists.watchlist?.videos.length;if(null!=t&&null!=e)return{count:e,shelfType:b.Watchlist,name:b.Watchlist.localized(),shelfId:"",list:t}},continue_watching_shelf(){const t=this.$kuistore.state.mylists.continuewatching_items?.reduce((t,e)=>{const i=e.video??e.playlist;return t.concat(null==i?[]:[i])},[]);if(null!=t)return{count:t.length,shelfType:b.ContinueWatching,name:b.ContinueWatching.localized(),shelfId:"",list:t}},shelves_to_show(){let t=null==this.shelves?[]:[...this.shelves];if(t=t.filter(t=>t.count>0),null!=this.continue_watching_shelf&&this.continue_watching_shelf.count>0){const e=1;t.splice(e,0,this.continue_watching_shelf)}if(null!=this.watchlist_shelf&&this.watchlist_shelf.count>0){const e=4;t.splice(e,0,this.watchlist_shelf)}return t},can_click_on_shelf_title(){return this.shelves_to_show.map(t=>{if(o.isEmpty(t.shelfId))switch(t.name){case this.all_videos_shelf?.name:return!1;case this.watchlist_shelf?.name:case this.continue_watching_shelf?.name:return!0}return k(t)})},progresses(){return this.shelves_to_show.map(t=>o.isEmpty(t.shelfId)&&t.name===this.continue_watching_shelf?.name?this.$kuistore.state.mylists.continuewatching_items?.map(t=>l(t,this.$kuistore.state.mylists.continuewatching_items??[]))??Array(t.list.length):Array(t.list.length))},times_left(){return this.shelves_to_show.map(t=>o.isEmpty(t.shelfId)&&t.name===this.continue_watching_shelf?.name?this.$kuistore.state.mylists.continuewatching_items?.map(t=>{const e=t.video??t.playlist;return e?.ticketTimeRemainingSeconds})??Array(t.list.length):Array(t.list.length))},is_loading_shelves(){return this.$kuistore.state.home.fetching},is_loading_more_shelves(){return this.$kuistore.state.home.fetching_more},can_fetch_more_results(){return this.$kuistore.getters["home/can_fetch_more_shelves"]},fetch_more_home_items_function(){return t=>{if(!o.isEmpty(t.shelfId))return this.$kuistore.dispatch("home/fetch_more_shelf_items",t.shelfId);switch(t.name){case this.all_videos_shelf?.name:return this.$kuistore.dispatch("home/fetch_more_home_grid");case this.watchlist_shelf?.name:return this.$kuistore.dispatch("mylists/fetch_watchlist_items",!0);case this.continue_watching_shelf?.name:return Promise.resolve(void 0);default:return Promise.reject(new Error("the shelf id is empty and the shelf name doesn't match a special shelf, this is a bug"))}}}},methods:{fetch_home_content(){null==this.shelves&&this.$kuistore.dispatch("home/fetch_home_shelves"),null!=this.$kuistore.state.mylists.continuewatching_items||this.$kuistore.state.mylists.fetching_continue_watching||this.$kuistore.dispatch("mylists/fetch_continue_watching"),null!=this.$kuistore.state.mylists.watchlist_items||this.$kuistore.state.mylists.fetching_watchlist_items||this.$kuistore.dispatch("mylists/fetch_watchlist_items",!1)},on_shelf_row_title_click(t){if(o.isEmpty(t.shelfId))switch(t.name){case this.all_videos_shelf?.name:break;
1case this.watchlist_shelf?.name:_.navigate(this.$router,"/mylists/mywatchlist");break;case this.continue_watching_shelf?.name:_.navigate(this.$router,"/mylists")}else w(t,this.$router,this.$kuistore)},fetch_more_shelves(){this.$kuistore.dispatch("home/fetch_more_home_shelves")}},components:{ShelvesContainer:v}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("shelves-container",{staticClass:"home-shelves",attrs:{shelves:t.shelves_to_show,is_loading:t.is_loading_shelves,is_loading_more_results:t.is_loading_more_shelves,can_fetch_more_results:t.can_fetch_more_results,can_click_on_title:t.can_click_on_shelf_title,fetch_more_items_function:t.fetch_more_home_items_function,progresses:t.progresses,times_left:t.times_left},on:{titleclick:t.on_shelf_row_title_click,fetch_more_shelves:t.fetch_more_shelves}})},[],!1,null,"52f42a0d").exports;const P=e(t.extend({name:"LandingLoggedInGrid",watch:{grid_items(){null==this.grid_items&&this.$kuistore.dispatch("home/fetch_home_grid")}},created(){null==this.grid_items&&this.$kuistore.dispatch("home/fetch_home_grid")},updated(){this.is_loading_grid||this.is_loading_more_grid_items||x.hasSpaceToFetchMore(this.$el)&&this.fetch_more_items()},computed:{grid_items(){return this.$kuistore.state.home.grid},is_loading_grid(){return this.$kuistore.state.home.fetching},is_loading_more_grid_items(){return this.$kuistore.state.home.fetching_more},can_fetch_more_grid_items(){return this.$kuistore.getters["home/can_fetch_more_grid_items"]}},methods:{fetch_more_items(){this.$kuistore.dispatch("home/fetch_more_home_grid")}},components:{VideoGridWithSpinner:y}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("video-grid-with-spinner",{staticClass:"home-grid-container",attrs:{items:t.grid_items,is_loading:t.is_loading_grid,is_loading_more:t.is_loading_more_grid_items,can_fetch_more_items:t.can_fetch_more_grid_items},on:{fetch_more_items:t.fetch_more_items}})},[],!1,null,"d3000c24").exports,F=t.extend({name:"InfoBanner",props:{info_banner:{type:Object,required:!0}},methods:{dismiss(){this.$kuistore.commit("site/dismiss_info_banner",this.info_banner.infoBannerId)}}});const S=e(F,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"banner"},[e("div",{staticClass:"message"},[null!=t.info_banner.title?e("div",{staticClass:"title"},[t._v(t._s(t.info_banner.title))]):t._e(),t._v(" "+t._s(t.info_banner.message)+" "),null!=t.info_banner.callToActionText?e("a",{staticClass:"cta",attrs:{href:t.info_banner.callToActionUrl,target:"_blank"}},[t._v(" "+t._s(t.info_banner.callToActionText)+" ")]):t._e()]),t.info_banner.isDismissable?e("button",{staticClass:"close",on:{click:t.dismiss}},[e("img",{staticClass:"close-icon",attrs:{src:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%209.5L9.5%202.5'%20stroke='%23F3F3F3'%20stroke-width='2.5'%20stroke-linecap='round'%20/%3e%3cpath%20d='M2.5%202.5L9.5%209.5'%20stroke='%23F3F3F3'%20stroke-width='2.5'%20stroke-linecap='round'%20/%3e%3c/svg%3e",alt:"Dismiss announcement".localized()}})]):t._e()])},[],!1,null,"de07aeaf").exports;const M=e(t.extend({name:"LandingLoggedIn",watch:{is_in_kids_mode(){window.scrollTo(0,0)}},created(){this.$kuistore.dispatch("site/get_info_banner")},mounted(){this.$kuistore.commit("site/set_skip_links",[{focus_id:d.Footer,text:"Skip to footer".localized()}]),c.instance.get(m.TicketIntroModalDismissed)&&c.instance.delete(m.TicketIntroModalDismissed)},beforeDestroy(){this.$kuistore.commit("site/clear_skip_links")},computed:{limited_content_vp_type(){return null==this.$kuistore.state.home.shelves?2:this.$kuistore.state.home.shelves.length>0?1:0},show_grid_layout(){return 0===this.limited_content_vp_type},banner(){return this.$kuistore.getters["site/info_banner"]},show_banner(){return null!=this.banner&&!this.$kuistore.state.site.info_banners.isBannerDismissed(this.banner.infoBannerId)},is_in_kids_mode(){return this.$kuistore.getters["site/is_in_kids_mode"]}},components:{LandingLoggedInVpHeader:I,LandingLoggedInBanner:z,LandingLoggedInShelves:T,LandingLoggedInGrid:P,InfoBanner:S}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"landing-logged-in-container"},[t.show_banner?e("info-banner",{attrs:{info_banner:t.banner}}):t._e(),e("landing-logged-in-vp-header"),e("landing-logged-in-banner"),t.show_grid_layout?e("landing-logged-in-grid"):e("landing-logged-in-shelves")],1)},[],!1,null,"da4ad19c").exports;const A=e(t.extend({name:"LandingVp",layout:t=>!t.$kuistore.getters["user/has_active_membership_on_current_domain"]||!t.$kuistore.getters["user/has_user_account_logged_in"]&&(t.$kuistore.state.site.domain?.isUserRequiredToPlay??1)?"landing":"default",async middleware(t){await(new u).authorizeAllUsers().authorizeActiveMemberships().authorizeIfHasNoMembership().authorizeAdultAndKidsMode().authorizeDomainsWithKidsEnabledOrDisabled().disallowDomainForceLogin().overrideGuardHandler("non_active_membership_on_domain",t=>!!t.$kuistore.getters["user/has_user_account_logged_in"]&&(_.redirect(t,`/user/${t.$kuistore.getters["user/userId"]}/identities`),!0)).overrideGuardHandler("no_membership_on_domain",t=>!!t.$kuistore.getters["user/has_user_account_logged_in"]&&(_.redirect(t,`/signup/auth/${t.$kuistore.getters["site/vp_routing_type"]}`),!0)).guard(t),null!=t.query[g]&&(t.$kuistore.commit("site/set_show_kids_guide_modal",!1),t.$kuistore.dispatch("site/switch_to_adult",!0))},watch:{show_logged_in_homepage(t,e){t!==e&&this.$nuxt.setLayout(t?"default":"landing")}},computed:{has_domain_content_access(){return this.$kuistore.getters["user/has_active_membership_on_current_domain"]},show_logged_in_homepage(){return!!this.has_domain_content_access&&(this.$kuistore.getters["user/has_user_account_logged_in"]||!(this.$kuistore.state.site.domain?.isUserRequiredToPlay??1))}},components:{LandingLoggedIn:M,LandingLoggedOut:$}}),function(){var t=this,e=t._self._c;return t._self._setupProxy,t.show_logged_in_homepage?e("landing-logged-in"):e("landing-logged-out")},[],!1,null,"fd55971d").exports;export{A as default};
2//# sourceMappingURL=index-DEn3TxHT.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.