1"use strict";(self.webpackChunkbrailsford=self.webpackChunkbrailsford||[]).push([[377],{8377:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var n=r(7294),a=r(5697),i=r.n(a),o=r(2004),l=r(1107);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=function(e){var t,r,a=e.videoURL,i=(0,l.w_)(),c=(t=(0,n.useState)(!0),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],h=c[1],f=Homeflow.get("homepage_video_placeholder_image"),d=(0,n.useRef)(null);(0,n.useEffect)((function(){return function(){d.current&&clearTimeout(d.current)}}),[]);var m=function(){if(!i.width||!i.height)return{height:0,width:0};var e=16/9,t=i.height,r=i.width;return r<t*e?{height:t*e/16*9,width:t*e}:{height:r/16*9,width:r}};return n.createElement("div",{className:"player-wrapper"},s&&f&&n.createElement("div",{className:"placeholder-image"},n.createElement("img",{src:f,alt:"home placeholder"})),n.createElement(o.Z,{url:a,className:"react-player",config:{youtube:{playerVars:{disablekb:1,modestbranding:1}}},muted:!0,playsinline:!0,playing:!0,loop:!0,width:m().width,height:m().height,controls:!1,onReady:function(){d.current=setTimeout((function(){return h(!1)}),1200)}}))};c.propTypes={videoURL:i().string.isRequired};const s=c}}]);
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.