1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{34553:(e,t,n)=>{"use strict";function i(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>i})},51784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>f,default:()=>v});var i=n(10940),o=n(47507),r=n(6290),s=n(13966),a=n(72923),l=n(56961),c=n(54831),d=n(75634),u=n(63616),p=n.n(u),h=n(62544),m=n(66183),f=!0;function v(e){let{allRhythmVideos:t}=e,[n,u]=(0,h.useState)(!1),[f,v]=(0,h.useState)(""),[x,w]=(0,h.useState)(""),[y,b]=(0,h.useState)("NEWEST"),[g,j]=(0,h.useState)(!1);(0,h.useEffect)(()=>{j(!0)},[]),null==t||t.sort((e,t)=>{var n,i;return({FEATURED:e.position-t.position,POPULAR:parseInt((null==(n=t.views)?void 0:n.replace(/,/g,""))||"0")-parseInt((null==(i=e.views)?void 0:i.replace(/,/g,""))||"1"),OLDEST:(0,l.aX)(t.dateUploaded)-(0,l.aX)(e.dateUploaded),NEWEST:(0,l.aX)(e.dateUploaded)-(0,l.aX)(t.dateUploaded)})[y]});let{width:N}=(0,m.A)(),[S,E]=(0,h.useState)(0),A=Math.ceil("number"==typeof(null==t?void 0:t.length)?(null==t?void 0:t.length)/6-1:1);return(0,i.jsxs)(o.A,{title:"Videos",seoTitle:"Videos",seoDescription:"Find Videos",className:"!max-w-4.5xl flex md:justify-center",showFooter:!0,noindex:!0,nofollow:!0,showImageLogo:!1,children:[n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"fixed left-1/2 top-1/2 z-30 h-64 w-3/4 max-w-screen-sm -translate-x-1/2 -translate-y-1/2 bg-white opacity-100 drop-shadow-xl sm:h-96",children:[(0,i.jsx)("button",{type:"button",onClick:()=>{u(!1)},className:"fixed -right-1 -top-10",children:(0,i.jsx)("p",{className:"text-white hover:text-red-500",children:(0,i.jsxs)("svg",{"data-icon":"youtube icon",className:"h-8 w-8",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M9.15155 7.97049L21.0996 18.9562C22.0885 19.9452 22.2623 20.9476 21.6208 21.9633C20.7922 22.7919 18.3999 21.2282 14.444 17.2723C11.2097 14.5192 8.52341 12.0734 6.38506 9.9351C3.81904 6.99487 2.93697 5.12382 3.73885 4.32194C4.21998 3.84081 5.2357 4.00118 6.786 4.80306L8.75061 7.56955L9.15155 7.97049Z",fill:"white"}),(0,i.jsx)("path",{d:"M17.852 9.39617L6.86626 21.3442C5.87727 22.3332 4.87492 22.5069 3.85921 21.8654C3.0306 21.0368 4.59426 18.6445 8.55021 14.6886C11.3033 11.4543 13.7491 8.76804 15.8874 6.62969C18.8276 4.06367 20.6987 3.1816 21.5006 3.98348C21.9817 4.46461 21.8213 5.48033 21.0194 7.03063L18.253 8.99523L17.852 9.39617Z",fill:"white"})]})})}),(0,i.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat(f?(0,l.Qh)(f):x,"?autoplay=1&enablejsapi=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})]}),(0,i.jsx)("button",{type:"button",className:"fixed left-0 top-0 z-20 h-screen w-screen cursor-default bg-black opacity-80",onClick:()=>{n&&u(!1)}})]}),(0,i.jsxs)("div",{className:"!max-w-4.5xl lg:w-4.5xl flex flex-col justify-center px-4 pt-4 lg:pt-8",children:[(0,i.jsxs)("div",{className:"flex w-full flex-row justify-between pb-4",children:[(0,i.jsx)("h1",{className:"!text-2xl font-black md:!text-lg",children:"VIDEOS"}),(0,i.jsx)("div",{className:"flex items-center space-x-1 text-sm font-bold md:hidden",children:(0,i.jsx)("div",{className:"font-primary flex",children:(0,i.jsxs)("select",{className:"!bg-transparent font-bold",onChange:e=>b(e.target.value),id:"er-rhythm-videos-sub-nav-sort-by",children:[(0,i.jsx)("option",{id:"er-rhythm-videos-sub-nav-sort-by-featured",children:"FEATURED"}),(0,i.jsx)("option",{id:"er-rhythm-videos-sub-nav-sort-by-most-popular",children:"POPULAR"}),(0,i.jsx)("option",{id:"er-rhythm-videos-sub-nav-sort-by-newest",children:"NEWEST"}),(0,i.jsx)("option",{id:"er-rhythm-videos-sub-nav-sort-by-oldest",children:"OLDEST"})]})})}),A>1&&(0,i.jsxs)("div",{className:"font-primary hidden items-center space-x-2 md:flex",children:[(0,i.jsx)("button",{type:"button",id:"er-rhythm-videos-arrow-left",className:"".concat(S<1&&"pointer-events-none opacity-30"),onClick:()=>E(S-1),children:(0,i.jsx)("div",{className:"group",children:(0,i.jsx)(a.gc,{icon:s.K5S,className:"w-6 text-black opacity-60 transition-opacity group-hover:opacity-100"})})}),(0,i.jsxs)("p",{className:"font-primary text-xs font-bold",children:[S+1,"/",A+1]}),(0,i.jsx)("button",{type:"button",id:"er-rhythm-videos-arrow-right",className:S>=A?"pointer-events-none opacity-30":"",onClick:()=>E(S+1),children:(0,i.jsx)("div",{className:"group",children:(0,i.jsx)(a.gc,{icon:s.HKD,className:"w-6 text-black opacity-60 transition-opacity group-hover:opacity-100"})})})]})]}),(0,i.jsx)("div",{className:"mb-24 flex flex-col space-y-8 md:mb-0 md:grid md:grid-cols-3 md:gap-6 md:space-y-0",children:null==t?void 0:t.filter(e=>null==e||!e.dateUploaded||(0,d.A)(new Date(null==e?void 0:e.dateUploaded))).map((e,t)=>{var n,o,s,d,h,m,f,x;return g&&N>767?t>=6*S&&t<6*S+6&&(0,i.jsx)("div",{children:(0,i.jsxs)("button",{type:"button",className:"group relative w-full ",onClick:()=>{var t,n;v(null!=(n=null==e||null==(t=e.video)?void 0:t.url)?n:""),w(null==e?void 0:e.youtubeId),u(!0)},children:[(0,i.jsx)("div",{className:"bg-black",children:(0,i.jsxs)("div",{className:"aspect-h-9 aspect-w-16 ",children:[(0,i.jsx)(p(),{loader:c.A,src:(null==(n=e.video)?void 0:n.thumbnailUrl)?"".concat(null==(o=e.video)?void 0:o.thumbnailUrl,"?v=2"):"https://i.ytimg.com/vi/".concat(null==e?void 0:e.youtubeId,"/sddefault.jpg"),alt:null!=(m=e.cmsTitle)?m:"",objectFit:"cover",objectPosition:"center",layout:"fill"}),(0,i.jsx)("div",{className:"absolute left-1/2 top-1/2 h-16 w-16 -translate-x-1/2 -translate-y-1/2 text-5xl text-red-600",children:(0,i.jsx)(a.gc,{icon:r.B4m,className:"whiteRadialGradientBG duration-300 group-hover:scale-110 "})})]})}),(0,i.jsx)("p",{className:"font-primary pt-2.5 text-sm font-bold uppercase text-left",children:e.cmsTitle}),(0,i.jsx)("p",{className:"font-primary text-sm font-medium text-slate-500 text-left",children:(0,l.HM)(e.dateUploaded)})]})},t):(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"aspect-h-9 aspect-w-16 w-full",children:(0,i.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat((null==e||null==(s=e.video)?void 0:s.url)?(0,l.Qh)(null!=(f=null==e||null==(d=e.video)?void 0:d.url)?f:""):null==e?void 0:e.youtubeId,"?enablejsapi=1"),title:null!=(x=null==(h=e.video)?void 0:h.title)?x:"",frameBorder:"0",height:"100%",width:"100%",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture ",allowFullScreen:!0})}),(0,i.jsx)("p",{className:"font-primary mt-2.5 font-bold uppercase",children:e.cmsTitle}),(0,i.jsx)("p",{className:"font-primary text-slate-500",children:(0,l.HM)(e.dateUploaded)})]},t)})})]})]})}},54831:(e,t,n)=>{"use strict";function i(e){let{src:t,width:n,quality:i}=e,o=encodeURI(t.replace("https://".concat("content.elevationchurch.org","/images"),""));if(o.startsWith("http")){let e=new URL(o);return e.searchParams.set("w",n.toString()),i&&e.searchParams.set("q",i.toString()),e.toString()}let r=[];r.push("width=".concat(n.toString()));let s=o.split("?")[1],a="auto";if(s){let e=s.split("&");if(e.length>0){let t=e.find(e=>e.startsWith("format="));if(null==t?void 0:t.includes("format=")){let e=t.split("=")[1];e&&(a=e)}}}r.push("format=".concat(a)),i&&r.push("quality=".concat(i.toString()));let l=r.join("&"),c=o.split("?")[0];return"https://".concat("content.elevationchurch.org","/images").concat(c,"?").concat(l)}n.d(t,{A:()=>i})}
1,57489:(e,t,n)=>{"use strict";n.d(t,{AU:()=>r,Bd:()=>s,lQ:()=>i,on:()=>o});var i=function(){};function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var s=!0},65421:(e,t,n)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>i})},66183:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(62544);let o=function(e){(0,i.useEffect)(e,[])},r=function(e){var t=(0,i.useRef)(e);t.current=e,o(function(){return function(){return t.current()}})},s=function(e){var t=(0,i.useRef)(0),n=(0,i.useState)(e),o=n[0],s=n[1],a=(0,i.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){s(e)})},[]);return r(function(){cancelAnimationFrame(t.current)}),[o,a]};var a=n(57489);let l=function(e){var t=void 0===e?{}:e,n=t.initialWidth,o=t.initialHeight,r=t.onChange,l=s({width:a.Bd?window.innerWidth:void 0===n?1/0:n,height:a.Bd?window.innerHeight:void 0===o?1/0:o}),c=l[0],d=l[1];return(0,i.useEffect)(function(){if(a.Bd){var e=function(){var e=window.innerWidth,t=window.innerHeight;d({width:e,height:t}),r&&r(e,t)};return(0,a.on)(window,"resize",e),function(){(0,a.AU)(window,"resize",e)}}},[]),c}},75634:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(78647),o=n(34553);function r(e){return(0,o.A)(1,arguments),(0,i.A)(e).getTime()<Date.now()}},78647:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(65421),o=n(34553);function r(e){(0,o.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},89820:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/videos",function(){return n(51784)}])}},e=>{e.O(0,[1622,9718,5221,2923,3616,7507,636,6593,8792],()=>e(e.s=89820)),_N_E=e.O()}]);
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.