1import{H as A}from"./CouWZOub.js";import{_ as L,a as B,x as D,y as M,n as R,e as t,i as c,h as f,f as o,s as y,z,l as b,A as H,j as v,F as N,k as j,r,B as E,b as n}from"./DyKsjnBy.js";import{S as F}from"./Dkof3IgU.js";import{u as I}from"./B19iVaUt.js";import"./Dba53ezs.js";import"./BblRRkEU.js";const U={key:0},O={key:0,class:"main-content container-fluid inset-container"},Z={key:0,class:"row filter-search-box mt-3"},q={class:"col-sm-9"},G={class:"input-group"},J={class:"col-sm-3 video-categories-search"},K={class:"row mt-3"},P={__name:"[child]",async setup(Q){let d,p;const w=E(()=>{let l=[];if(!_.value){const a=Array.isArray(e.value.videos)?[...e.value.videos]:[];m.value==="alphabetical"?l=a.sort((i,s)=>i.v_title.toLowerCase().localeCompare(s.v_title.toLowerCase())):l=a.sort((i,s)=>new Date(i.v_release_date).getTime()-new Date(s.v_release_date).getTime()).reverse(),l=l.filter(i=>i.v_title.toLowerCase().includes(u.value.toLowerCase()))}return l}),g=B(),u=r(""),e=r({videos:[]}),_=r(!0),V=r(!0),C=r(!1),x=r(""),S=r(""),m=r("recent"),k=g.params.child||g.params.subcategory,h=([d,p]=D(()=>I().getAllCategorizedBySubcategory(k)),d=await d,p(),d)?.[0]?.json_agg?.[0];if(!h)throw M({statusCode:404,statusMessage:"Subcategory not found"});return e.value=h,x.value=e.value.cat_meta_title,S.value=e.value.cat_meta_description,_.value=!1,R({title:e.value.cat_meta_title,description:e.value.cat_meta_description,ogTitle:e.value.cat_meta_title,ogDescription:e.value.cat_meta_description}),(l,a)=>{const i=A;return t(_)?v("",!0):(n(),c("div",U,[f(i,{title:t(e).cat_name,excerpt:t(e).cat_description,image:t(e).cat_hero,"header-align-placement":t(e).cat_header_placement,"sub-header-align-placement":t(e).cat_sub_header_placement},null,8,["title","excerpt","image","header-align-placement","sub-header-align-placement"]),t(_)?v("",!0):(n(),c("div",O,[t(V)&&!t(C)?(n(),c("div",Z,[o("div",q,[o("div",G,[y(o("input",{type:"text",class:"form-control",placeholder:"search videos for this category...","onUpdate:modelValue":a[0]||(a[0]=s=>b(u)?u.value=s:null)},null,512),[[z,t(u)]])])]),o("div",J,[y(o("select",{class:"form-select","onUpdate:modelValue":a[1]||(a[1]=s=>b(m)?m.value=s:null)},[...a[2]||(a[2]=[o("option",{value:"recent"},"Most Recent",-1),o("option",{value:"alphabetical"},"A-Z",-1)])],512),[[H,t(m)]])])])):v("",!0),o("div",K,[(n(!0),c(N,null,j(t(w),(s,T)=>(n(),c("div",{key:T,class:"single-video col-md-2 mb-4"},[f(F,{video:s},null,8,["video"])]))),128))])]))]))}}},se=L(P,[["__scopeId","data-v-455ae632"]]);export{se 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.