PageSourceSearch

https://www.volunteerministers.org/libs/vue-compiled/src/videos.min.js

js volunteerministers.org collected 2026-10-03 21:38:06 UTC 15,810 bytes, 2 lines download raw bytes

1System.register(["./Loader-chunk.min.js"],function(Pt,Lt){"use strict";var B,q,T,u,v,i,L,N,S,P,M,F,J,H,W,z,Q,X,D,j,Z,K,E,Y,ee,te,ie,ne,oe;return{setters:[n=>{B=n.g,q=n.p,T=n._,u=n.o,v=n.c,i=n.a,L=n.F,N=n.r,S=n.n,P=n.b,M=n.d,F=n.w,J=n.T,H=n.e,W=n.f,z=n.L,Q=n.h,X=n.i,D=n.s,j=n.t,Z=n.j,K=n.k,E=n.l,Y=n.m,ee=n.q,te=n.u,ie=n.v,ne=n.x,oe=n.y}],execute:function(){var n=(e=>(e.VideosRoute="videos",e.CategoryRoute="category",e.PlayerRoute="player",e.VideoRoute="video",e))(n||{}),pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={exports:{}};(function(e,t){(function(a,f){e.exports=f()})(pe,function(){var a=function(){},f={},r={},s={};function h(o,d){o=o.push?o:[o];var p=[],l=o.length,g=l,m,w,x,b;for(m=function(C,V){V.length&&p.push(C),g--,g||d(p)};l--;){if(w=o[l],x=r[w],x){m(w,x);continue}b=s[w]=s[w]||[],b.push(m)}}function _(o,d){if(o){var p=s[o];if(r[o]=d,!!p)for(;p.length;)p[0](o,d),p.splice(0,1)}}function y(o,d){o.call&&(o={success:o}),d.length?(o.error||a)(d):(o.success||a)(o)}function k(o,d,p,l){var g=document,m=p.async,w=(p.numRetries||0)+1,x=p.before||a,b=o.replace(/[\?|#].*$/,""),C=o.replace(/^(css|img)!/,""),V,c;l=l||0,/(^css!|\.css$)/.test(b)?(c=g.createElement("link"),c.rel="stylesheet",c.href=C,V="hideFocus"in c,V&&c.relList&&(V=0,c.rel="preload",c.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(b)?(c=g.createElement("img"),c.src=C):(c=g.createElement("script"),c.src=o,c.async=m===void 0?!0:m),c.onload=c.onerror=c.onbeforeload=function(ue){var O=ue.type[0];if(V)try{c.sheet.cssText.length||(O="e")}catch(St){St.code!=18&&(O="e")}if(O=="e"){if(l+=1,l<w)return k(o,d,p,l)}else if(c.rel=="preload"&&c.as=="style")return c.rel="stylesheet";d(o,O,ue.defaultPrevented)},x(o,c)!==!1&&g.head.appendChild(c)}function ce(o,d,p){o=o.push?o:[o];var l=o.length,g=l,m=[],w,x;for(w=function(b,C,V){if(C=="e"&&m.push(b),C=="b")if(V)m.push(b);else return;l--,l||d(m)},x=0;x<g;x++)k(o[x],w,p)}function R(o,d,p){var l,g;if(d&&d.trim&&(l=d),g=(l?p:d)||{},l){if(l in f)throw"LoadJS";f[l]=!0}function m(w,x){ce(o,function(b){y(g,b),w&&y({success:w,error:x},b),_(l,b)},g)}if(g.returnPromise)return new Promise(m);m()}return R.ready=function(d,p){return h(d,function(l){y(p,l)}),R},R.done=function(d){_(d,[])},R.reset=function(){f={},r={},s={}},R.isDefined=function(d){return d in f},R})})(se);var he=se.exports;const A=ve(he);var G=navigator.userAgent.toLowerCase(),U=/^((?!chrome|android).)*safari/i.test(G),I={nativeControlsForTouch:!1,controls:!0,inactivityTimeout:5e3,html5:{nativeAudioTracks:U,nativeVideoTracks:U,hls:{withCredentials:!1,overrideNative:!U}},plugins:{}},fe=G.indexOf("msie ")>-1||!!navigator.userAgent.match(/Trident/g)||!!navigator.userAgent.match(/MSIE/g);fe&&(I.flash={swf:"/plugins/videojs/video-js.swf"},I.techOrder=["flash","html5"],$("body").addClass("ie-browser"),JavascriptHandler.Path=="/tv/"&&($(".global-video-player-wrapper").html('<div class="container"> <div class="medium-insert-embed"> <div class="video"> <iframe width="1280" height="720" src="https://www.youtube.com/embed/df-97lhZBi0?autoplay=1&amp;rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> </div> </div></div>').removeClass("global-videoplayer"),$(".live-show").remove()));var _e=G.indexOf("android")>-1;_e&&(I={nativeControlsForTouch:!1,controls:!0,inactivityTimeout:5e3,plugins:{}},$("body").addClass("device-android"));var re=I;const ye={components:{},data(){var e=null;return this.data.Videos.length==1&&(e=this.data.Videos[0]),{poster:"",video:e,player:null}},props:{data:{type:Object,required:!0}},methods:{loadSwiper(){var e=this;e.$refs.swiper&&new Swiper(e.$refs.swiper,{slidesPerView:1,spaceBetween:18,slidesPerGroup:1,watchSlidesProgress:!0,breakpoints:{480:{grid:{rows:2,fill:"row"},slidesPerView:2,slidesPerGroup:2},768:{grid:{rows:2,fill:"row"},slidesPerView:3,slidesPerGroup:3,spaceBetween:18}},pagination:{el:e.$refs.pagination,dynamicBullets:!0,dynamicMainBullets:4,clickable:!0}})},openVideo(e){this.$router.push({name:n.VideoRoute,params:{seoname:e.SeoName,categoryid:this.data.Id}})},initVideo(){if(this.data.Videos.length==1){A.isDefined("videojs")||A([B()],"videojs");var e=this;A.ready("videojs",function(){var t=JSON.parse(JSON.stringify(re));t.controls=!1,t.muted=!0,t.loop=!0,e.player=videojs(e.$refs.video,t).ready(function(){this.muted(!0),this.src(q(e.data.Videos[0].Src))})})}},unescape(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}},mounted(){this.loadSwiper(),this.initVideo()}
1,unmounted(){this.player&&this.player.dispose()}},ge={key:0},me={class:"video-channel-video-slide-poster"},we={class:"video-channel-playback-inner"},xe=["poster"],be={class:"video-channel-video-slide-button video-channel-video-slide-button__larger"},ke=["src"],Ve={key:1},Ce={ref:"swiper",class:"swiper"},Te={class:"swiper-wrapper"},$e=["onClick"],je={class:"video-channel-video-slide-poster"},Re={class:"video-channel-video-slide-button"},Se=["src"],Pe=["srcset"],Le=["innerHTML"],Ne={ref:"pagination",class:"swiper-pagination swiper-pagination--video-channel"};function Me(e,t,a,f,r,s){return u(),v("div",{class:S(["video-channel-category video-channel-animatable",{"video-channel-category__carousel":a.data.Videos.length>1}])},[r.video?(u(),v("div",ge,[i("div",{class:"video-channel-video-slide",onClick:t[0]||(t[0]=h=>s.openVideo(r.video))},[i("div",me,[i("div",we,[i("video",{ref:"video",class:"video-js vjs-sublime-skin vjs-big-play-centered",preload:"none",poster:r.video.Poster1x},null,8,xe)]),i("div",be,[i("img",{src:"/images/video-play-button.svg"},null,8,ke)])])])])):(u(),v("div",Ve,[i("div",Ce,[i("div",Te,[(u(!0),v(L,null,N(a.data.Videos,(h,_)=>(u(),v("div",{key:_,class:"swiper-slide video-channel-video-slide",onClick:y=>s.openVideo(h)},[i("div",je,[i("div",Re,[i("img",{src:"/images/video-play-button.svg"},null,8,Se)]),i("img",{srcset:h.Poster1x+" 1x, "+h.Poster2x+" 2x",alt:""},null,8,Pe)]),i("h3",{class:"video-channel-video-slide-title",innerHTML:s.unescape(h.Title)},null,8,Le)],8,$e))),128))])],512),i("div",Ne,null,512)]))],2)}const ae=T(ye,[["render",Me]]),He={props:{pagetitle:{type:String,required:!0}},components:{category:ae},data(){return{prevRoute:"",nextRoute:"",routename:"",isVideoRoute:this.$route.name==n.VideoRoute}},methods:{animationname(){return this.prevRoute==n.VideoRoute&&this.nextRoute==n.CategoryRoute?"scalereversed":this.prevRoute==n.VideoRoute&&this.nextRoute==n.VideoRoute?"slide":"scale"}},watch:{$route:function(e,t){if(this.prevRoute=t.name,this.nextRoute=e.name,this.routename=this.$route.name,this.nextRoute==n.VideoRoute)this.isVideoRoute=!0;else{var a=this;setTimeout(function(){a.isVideoRoute=!1},500)}}}};function Ee(e,t,a,f,r,s){const h=P("router-view");return u(),v("div",{class:S(["video-channel-app",{"video-channel-app__playback":r.isVideoRoute}])},[M(h,null,{default:F(({Component:_,route:y})=>[M(J,{name:s.animationname(),mode:"out-in"},{default:F(()=>[(u(),H(W(_),{pagetitle:a.pagetitle,key:e.$route.fullPath},null,8,["pagetitle"]))]),_:2},1032,["name"])]),_:1})],2)}const Ae=T(He,[["render",Ee]]),Ie={components:{loader:z,category:ae},props:{categoryid:{type:String},pagetitle:{type:String}},data(){return{category:[],swiper:null,activeIndex:0}},methods:{async loadVideos(){this.category=await Q(),this.loadSwiper()},loadSwiper(){var e=this;X("Swiper",function(){var t=0;if(e.categoryid)for(var a=0;a<e.category.length;a++)e.category[a].Id==e.categoryid&&(t=a);e.swiper=new Swiper(e.$refs.swiper,{loop:!0,slidesPerView:1,spaceBetween:30,slideActiveClass:"swiper-slide-active--main",initialSlide:t,history:{enabled:!0,key:"",root:"/videos/"},on:{init:function(){e.playActiveVideo(this)},slideChange:function(){e.playActiveVideo(this),e.activeIndex=this.realIndex}}})})},selectSlide(e){this.swiper.slideToLoop(e)},playActiveVideo(e){A.ready("videojs",function(){for(var t in videojs.players)if(Object.hasOwnProperty.call(videojs.players,t))try{videojs.players[t].pause()}catch(r){console.error(r)}var a=e.slides[e.activeIndex],f=$(a).find("video");f.length>0&&(f[0].currentTime<22&&(f[0].currentTime=22),f[0].play())})},prev(){var e=$(".swiper-slide-active--main .swiper");if(e.length>0){var t=e[0].swiper;t.slidePrev()||this.swiper.slidePrev()}else this.swiper.slidePrev()},next(){var e=$(".swiper-slide-active--main .swiper");if(e.length>0){var t=e[0].swiper;t.slideNext()||this.swiper.slideNext()}else this.swiper.slideNext()},unescape(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}},created(){this.loadVideos()},mounted(){document.title=D(this.pagetitle)}},Oe={class:"video-channel-container"},Be=["innerHTML"],qe={key:1},Fe={ref:"swiper",class:"swiper swiper-videos-main"},De={class:"swiper-wrapper"},Ge=["data-history"],Ue={class:"container"},Je={class:"video-channel-menu"}
1,We=["onClick"],ze=["innerHTML"],Qe=i("div",{class:"video-channel-menu--item-arrow"},null,-1);function Xe(e,t,a,f,r,s){const h=P("loader"),_=P("category");return u(),v("div",Oe,[i("h1",{class:"video-channel-title",innerHTML:a.pagetitle},null,8,Be),r.category.length==0?(u(),H(h,{key:0})):(u(),v("div",qe,[i("div",Fe,[i("div",De,[(u(!0),v(L,null,N(r.category,(y,k)=>(u(),v("div",{key:k,class:"swiper-slide","data-history":y.Id+"/"},[M(_,{data:y},null,8,["data"])],8,Ge))),128))]),i("div",{onClick:t[0]||(t[0]=(...y)=>s.prev&&s.prev(...y)),class:"swiper-button-prev swiper-button-prev--videos swiper-button__reveresed"}),i("div",{onClick:t[1]||(t[1]=(...y)=>s.next&&s.next(...y)),class:"swiper-button-next swiper-button-next--videos swiper-button__reveresed"})],512),i("div",Ue,[i("div",Je,[(u(!0),v(L,null,N(r.category,(y,k)=>(u(),v("div",{key:k,class:S(["video-channel-menu--item",{"video-channel-menu--item__active":k==r.activeIndex}]),onClick:ce=>s.selectSlide(k)},[i("span",{class:"button-text",innerHTML:s.unescape(y.Title)},null,8,ze),Qe],10,We))),128))])])]))])}const de=T(Ie,[["render",Xe]]),Ze={props:{video:{type:Object,required:!0},categoryid:{type:String,required:!0}},methods:{openVideo(){this.$router.push({name:n.VideoRoute,params:{seoname:this.video.SeoName,categoryid:this.video.Category}})}}},Ke={class:"video-channel-container"},Ye={class:"video-channel-upnext-row"},et=["srcset"],tt={class:"video-channel-upnext-label"},it=["innerHTML"];function nt(e,t,a,f,r,s){return u(),v("div",Ke,[i("div",Ye,[i("div",{class:"video-channel-upnext-thumb",onClick:t[0]||(t[0]=(...h)=>s.openVideo&&s.openVideo(...h))},[i("img",{srcset:a.video.Poster1x+" 1x, "+a.video.Poster2x+" 2x",alt:""},null,8,et)]),i("div",{class:"video-channel-upnext-title",onClick:t[1]||(t[1]=(...h)=>s.openVideo&&s.openVideo(...h))},[i("span",tt,j(e.$t("gcui_dfw_video.video-channel-35d0a307-up-next")),1),i("span",{class:"video-channel-upnext-name",innerHTML:a.video.Title},null,8,it)])])])}const ot={components:{upnext:T(Ze,[["render",nt]])},props:{seoname:{type:String,required:!0},categoryid:{type:String,required:!0}},data(){return{poster:"",video:null,upnext:null,player:null,videoEnded:!1,countdown:""}},methods:{async initVideo(){loadjs.isDefined("videojs")||loadjs([B()],"videojs");var e=await Z(this.seoname),t=this;this.video=e,document.title=D(e.Title),window.devicePixelRatio>1?this.poster=e.PosterVideo2x:this.poster=e.PosterVideo1x,this.upnext=await K(e.Id),loadjs.ready("videojs",function(){setupVideoTracking(),t.player=videojs(t.$refs.video,re).ready(function(){this.src(q(e.Src)),this.play(),t.player=this,this.on("ended",function(){t.player.poster(""),t.videoEnded=!0,t.setUpNext()})}),Sharer.init()})},backToCategory(){this.$router.replace({name:n.CategoryRoute,params:{categoryid:this.categoryid}})},cancelAutoplay(){this.videoEnded=!1,this.player.poster(this.poster)},playNext(){this.$router.push({name:n.VideoRoute,params:{seoname:this.upnext.SeoName,categoryid:this.categoryid}})},setUpNext(){var e=this;e.upNextInterval&&clearInterval(e.upNextInterval);var t=8;e.countdown=this.$t("gcui_dfw_video.video-channel-35d0a307-up-next-in").replace("<time></time>",t),e.upNextInterval=setInterval(function(){if(t--,e.countdown=e.$t("gcui_dfw_video.video-channel-35d0a307-up-next-in").replace("<time></time>",t),t==0){clearInterval(e.upNextInterval),e.upNextInterval=null,e.playNext();return}},1e3)},unescape(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}},computed:{href(){return window.location.href}},mounted(){this.initVideo()},beforeUnmount(){this.player&&this.player.dispose()}},st={class:"video-channel-playback-wrapper"},rt={class:"video-channel-container"},at={class:"video-channel-playback-inner video-channel-animatable"},dt={class:"video-wrapper-up-next"},lt={class:"video-wrapper-up-next--label"},ct={class:"video-wrapper-up-next--inner"},ut=["src"],pt=["innerHTML"],vt={class:"video-wrapper-up-next--buttons"},ht=["poster"],ft={class:"video-channel-container"},_t={key:0,class:"video-channel-playback-title-row"},yt=["innerHTML"],gt={class:"video-channel-playback-share"},mt=["src","data-url","data-title"],wt=["src","data-url","data-title"];function xt(e,t,a,f,r,s){const h=P("upnext");return u(),v("div",st,[i("div",rt,[i("div",{onClick:t[0]||(t[0]=(..._)=>s.backToCategory&&s.backToCategory(..._)),class:"video-channel-playback-back-button"},j(e.$t("gcui_dfw_video.video-channel-35d0a307-back")),1)]),i("div",at,[r.upnext?(u(),v("div",{key:0,class:S(["video-wrapper-up-next-wrapper",{"video-wrapper-up-next-wrapper__visible":r.videoEnded}])},[i("div",dt,[i("div",lt,j(r.countdown),1),i("div",ct,[i("img",{class:"video-wrapper-up-next--poster",src:r.upnext.Poster1x+" 1x, "+r.upnext.Poster2x+" 2x"},null,8,ut),i("div",{class:"video-wrapper-up-next--title",innerHTML:r.upnext.Title},null,8,pt)]),i("div",vt,[i("div",{class:"video-wrapper-up-next--button video-wrapper-up-next--button__cancel",onClick:t[1]||(t[1]=(..._)=>s.cancelAutoplay&&s.cancelAutoplay(..._))},j(e.$t("gcui_dfw_video.video-channel-35d0a307-cancel")),1),i("div",{class:"video-wrapper-up-next--button video-wrapper-up-next--button__play",onClick:t[2]||(t[2]=(..._)=>s.playNext&&s.playNext(..._))},j(e.$t("gcui_dfw_video.video-channel-35d0a307-playnow")),1)])])],2)):E("",!0),i("video",{ref:"video",class:"video-js vjs-sublime-skin vjs-big-play-centered",preload:"none",poster:r.poster},null,8,ht)]),i("div",ft,[r.video?(u(),v("div",_t,[i("h1",{class:"video-channel-playback-title",innerHTML:s.unescape(r.video.Title)},null,8,yt),i("div",gt,[i("img",{class:"twitter-logo_svg video-channel-playback-share-logo",src:"/images/twitter_logo.svg",alt:"Twitter","data-sharer":"twitter","data-url":s.href,"data-title":r.video.Title},null,8,mt),i("img",{class:"facebook-logo_svg video-channel-playback-share-logo",src:"/images/facebook-round.svg",alt:"Facebook","data-sharer":"facebook","data-url":s.href,"data-title":r.video.Title},null,8,wt)])])):E("",!0)]),r.upnext?(u(),H(h,{key:0,video:r.upnext,categoryid:a.categoryid},null,8,["video","categoryid"])):E("",!0)])}const bt=T(ot,[["render",xt]]),kt={path:"/videos/",name:n.VideosRoute,component:de,props:!0},Vt={path:"/videos/:categoryid/:seoname",name:n.VideoRoute,component:bt,props:!0},Ct={path:"/videos/:categoryid/",name:n.CategoryRoute,component:de,props:!0},Tt=[kt,Vt,Ct],$t=Y(oe),jt=ee({history:te(),routes:Tt,scrollBehavior:()=>({top:0})});var le={};(function(){var e=new XMLHttpRequest;e.open("GET","/api/i18n?group=gcui_dfw_video",!0),e.responseType="json",e.onload=function(){le=e.response,Rt()},e.send()})();function Rt(){const e=document.documentElement.lang,t=ie({locale:e,messages:{[e]:{gcui_dfw_video:le}}});var a=ne({extends:Ae},document.querySelector("#videos").dataset).use(t).use($t).use(jt);a.mount("#videos")}}}});
2//# sourceMappingURL=videos.min.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.