PageSourceSearch

https://www.homespun.com/assets/2.4.1/VideoChapters.d29330c3.js

js homespun.com collected 2026-10-02 05:17:34 UTC 2,314 bytes, 1 lines download raw bytes

1import{aw as k,c as b,h as L,aC as T,v as g,S as Q,x as l,y as i,j as r,D as t,O as x,aj as N,a1 as c,a2 as n,z as j,cr as w,C as d,F as p,U as h,al as y,M as v,ah as f,a5 as m,a4 as _}from"./index.ccd35ebd.js";var B=k({name:"QToolbarTitle",props:{shrink:Boolean},setup(a,{slots:u}){const o=b(()=>"q-toolbar__title ellipsis"+(a.shrink===!0?" col-shrink":""));return()=>L("div",{class:o.value},T(u.default))}});const M={name:"VideoChapters",components:{},mixins:[],props:{videos:{default:()=>[],type:Array},loops:{default:()=>[],type:Array},currentChapter:{type:Object,default:()=>{}},currentLoop:{type:Object,default:()=>{}}},computed:{isLoopModal(){return this.loops.length>0}},data(){return{}},methods:{selectChapter(a){this.$emit("update:currentChapter",a)},selectLoop(a){this.$emit("update:loop",a)},convertTime(a){return Q.secondsToHms(a)}}},S={class:"__video-chapters"};function V(a,u,o,I,z,s){return l(),i("div",S,[r(w,{style:j({backgroundColor:a.$store.getters.brandColor}),class:"text-white"},{default:t(()=>[r(x,{flat:"",dense:"",onClick:u[0]||(u[0]=e=>a.$emit("close"))},{default:t(()=>[r(N,{name:"fa fa-chevron-left",style:{"font-size":".9rem"}})]),_:1}),r(B,null,{default:t(()=>[c(n(s.isLoopModal?a.$t("loops"):a.$t("chapters")),1)]),_:1})]),_:1},8,["style"]),s.isLoopModal?v("",!0):(l(),d(y,{key:0},{default:t(()=>[(l(!0),i(p,null,h(o.videos,e=>(l(),i(p,null,[e.type==="expandableChapterHeader"?(l(),d(f,{key:e.id,header:""},{default:t(()=>[c(n(e.displayName),1)]),_:2},1024)):(l(),d(m,{key:e.id,active:e===o.currentChapter,"active-class":"bg-grey-14 text-white",clickable:"",class:"q-ma-xs rounded-borders",onClick:C=>s.selectChapter(e)},{default:t(()=>[r(_,null,{default:t(()=>[c(n(e.displayName),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))],64))),256))]),_:1})),s.isLoopModal?(l(),d(y,{key:1},{default:t(()=>[(l(!0),i(p,null,h(o.loops,e=>(l(),d(m,{key:e.id,active:e===o.currentLoop,"active-class":"bg-grey-14 text-white",clickable:"",onClick:C=>s.selectLoop(e)},{default:t(()=>[r(_,null,{default:t(()=>[r(f,null,{default:t(()=>[c(n(e.displayName),1)]),_:2},1024),r(f,{caption:""},{default:t(()=>[c(n(s.convertTime(e.in))+" | "+n(s.convertTime(e.out)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})):v("",!0)])}var q=g(M,[["render",V]]);export{q 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.