1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f2e84f41ed6c0beba456d92f07f35b71be0836fd"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6fb61c42-4d88-4456-a5be-78c3d5a7ca79",e._sentryDebugIdIdentifier="sentry-dbid-6fb61c42-4d88-4456-a5be-78c3d5a7ca79")}catch(s){}}();import{V as e,v as t,r as s,b as i,S as o,a as r,n as a}from"./client-ANZ33kkl.js";import{C as n}from"./CategoryPageContent-C29RiApc.js";import"./ShelvesContainer-CLKEyg_s.js";import"./ShelfRow-D_dtzJOe.js";import"./Spinner-Ce5drrJq.js";import"./MoviePoster-ByXOBmKH.js";import"./MoviePosterOptionsMenu-CIgp0xEa.js";import"./OptionsMenu-DlZAgo4G.js";import"./VideoGridWithSpinner-Dd12cZtP.js";import"./VideoGrid-DW5MBuzB.js";import"./WatchNowStickingView-DpkhO-a0.js";const d=a(e.extend({name:"CategoryTermId",layout:"default",middleware(e){new o(r).guard(e)},head(){return{title:`${this.category_name} | Kanopy`}},validate(e){const t=i.parse(e.params.termid);return isNaN(t)?Promise.resolve(!1):e.$kuistore.dispatch("shelves/fetch_term_info",t).then(t=>(e.$kuistore.dispatch("shelves/update_current_term",t),e.$kuistore.dispatch("shelves/update_parent_term",void 0),Promise.resolve(!0))).catch(()=>Promise.resolve(!1))},data:()=>({is_loading:!1}),async created(){try{this.is_loading=!0,await this.$kuistore.dispatch("shelves/fetch_category_shelves"),0!==this.$kuistore.state.shelves.shelves?.length&&null!=this.$kuistore.state.shelves.shelves?.find(e=>e.count>=7)||await this.$kuistore.dispatch("shelves/fetch_category_grid")}catch(e){this.$nuxt.$emit(s.LiveRegionUpdate,{text:"Something went wrong. Videos failed to load.".localized()})}finally{this.is_loading=!1}},mounted(){this.$kuistore.commit("site/set_skip_links",[{focus_id:t.Footer,text:"Skip to footer".localized()}])},beforeDestroy(){this.$kuistore.commit("site/clear_skip_links")},computed:{category_name(){return this.$kuistore.state.shelves.current_term?.name??""}},components:{CategoryPageContent:n}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("category-page-content",{attrs:{is_loading:e.is_loading}})},[],!1,null,"bad7c763").exports;export{d as default}; 2//# sourceMappingURL=index-pEZYf39b.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.