PageSourceSearch

https://www.purple.is/assets/2.4.1/VideoPlayerControls.e3ce9d09.js

js purple.is collected 2026-10-09 17:49:13 UTC 3,475 bytes, 1 lines download raw bytes

1import{v,x as r,y as h,j as l,D as s,O as n,aj as d,z as C,I as f,a2 as y,C as o,M as u,de as c}from"./index.ccd35ebd.js";const b={name:"VideoPlayerControls",props:{disableNextPrevOnMainVideo:{type:Boolean,required:!1},leftMenuLabel:{type:String,required:!1},videos:{type:Array,required:!0},loops:{type:Array,required:!0},currentChapter:{type:Object,required:!0},isPlaying:{type:Boolean,required:!0},showAdvanced:{type:Boolean,default:!1},hideTimeChangers:{type:Boolean,default:!1},chapterToggleIcon:{type:String},hideChaptersToggle:{type:Boolean},loadingChapter:Boolean},methods:{prevNextChapter(a){let t=null;return this.videos.forEach((e,g)=>{e.id==this.currentChapter.id&&(t=g)}),this.videos[t+a]||null}},mounted(){document.getElementById("video-player-controls").addEventListener("click",function(a){document.activeElement.toString()=="[object HTMLSpanElement]"&&document.activeElement.blur()})}},k={id:"video-player-controls",class:"video-player-controls"},p={class:"gt-sm q-ml-sm"},w={class:"gt-sm q-ml-sm"},B={class:"gt-sm q-ml-sm"};function P(a,t,e,g,N,m){return r(),h("section",k,[l(c,{flat:"",spread:"",class:"bg-grey-4 q-py-xs",style:{"border-radius":"0px"}},{default:s(()=>[l(n,{title:"Advanced",onClick:t[0]||(t[0]=i=>a.$emit("update:showAdvanced",!e.showAdvanced))},{default:s(()=>[l(d,{style:C({color:e.showAdvanced?a.$store.getters.brandColor:"",fontSize:".9rem"}),name:"fa fa-cogs"},null,8,["style"]),f("span",p,y(a.$t("advanced")),1)]),_:1}),e.loops.length>0?(r(),o(n,{key:0,title:"Loops",onClick:t[1]||(t[1]=i=>a.$emit("toggleLoops"))},{default:s(()=>[l(d,{name:"fas fa-bars",style:{"font-size":".9rem"}}),f("span",w,y(a.$t("loops")),1)]),_:1})):u("",!0),e.disableNextPrevOnMainVideo&&e.currentChapter==e.videos[0]?u("",!0):(r(),o(n,{key:1,disable:e.currentChapter==e.videos[0]||!m.prevNextChapter(-1)||e.loadingChapter,title:"Previous",onClick:t[2]||(t[2]=i=>a.$emit("update:currentChapter",m.prevNextChapter(-1)))},{default:s(()=>[l(d,{name:"fas fa-step-backward",style:{"font-size":".9rem"}})]),_:1},8,["disable"])),e.hideTimeChangers?u("",!0):(r(),o(n,{key:2,icon:"fas fa-fast-backward",label:"5",style:{"min-width":"75px"},title:"Rewind",size:"sm",onClick:t[3]||(t[3]=i=>a._emit("changeTime",-5))})),l(n,{title:e.isPlaying?"Pause":"Play",disable:e.loadingChapter,loading:e.loadingChapter,onClick:t[4]||(t[4]=i=>a.$emit("update:isPlaying",!e.isPlaying))},{default:s(()=>[l(d,{name:e.isPlaying?"fas fa-pause":"fas fa-play",style:{"font-size":".9rem"}},null,8,["name"])]),_:1},8,["title","disable","loading"]),e.hideTimeChangers?u("",!0):(r(),o(n,{key:3,icon:"fas fa-fast-forward",label:"5",style:{"min-width":"75px"},title:"Skip Forward",size:"sm",onClick:t[5]||(t[5]=i=>a._emit("changeTime",5))})),e.disableNextPrevOnMainVideo&&e.currentChapter==e.videos[0]?u("",!0):(r(),o(n,{key:4,disable:e.currentChapter==e.videos[e.videos.length-1]||!m.prevNextChapter(1)||e.loadingChapter,title:"Next",onClick:t[6]||(t[6]=i=>a.$emit("update:currentChapter",m.prevNextChapter(1)))},{default:s(()=>[l(d,{name:"fas fa-step-forward",style:{"font-size":".9rem"}})]),_:1},8,["disable"])),e.hideChaptersToggle?u("",!0):(r(),o(n,{key:5,title:"Chapters",disable:e.videos.length==1,onClick:t[7]||(t[7]=i=>a.$emit("toggleChapters"))},{default:s(()=>[l(d,{name:e.chapterToggleIcon||"fas fa-bars",style:{"font-size":".9rem"}},null,8,["name"]),f("span",B,y(e.leftMenuLabel||a.$t("chapters")),1)]),_:1},8,["disable"]))]),_:1})])}var z=v(b,[["render",P]]);export{z 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.