'},events:function(){var b=this;jQuery(window).on("resize",function(){b.create()})}});a.BackgroundVideo=d})(bpApp); var BannerVideo=base.Component.extend({videoSrc:"",bannerOverlay:document.getElementById("sticky-scroll-height"),render:function(){var a=this,d=this.state,b=this.bannerOverlay;return{className:"home-banner",onState:["overlayActive",function(c,e){e?b.classList.add("video-active"):b.classList.remove("video-active")}],children:[this.cache("videoBanner",{tag:"video",id:"banner-video",className:"home-video",width:"600",height:"400",loop:!0,autoplay:!0,muted:!0,source:{tag:"source",src:this.videoSrc,type:"video/mp4"}}), {className:"video-controls",children:[{tag:"button",id:"video-pause",innerHTML:'', click:function(){this.classList.toggle("paused");var c=a.videoBanner;c.paused?(c.play(),a.startTimeout()):(c.pause(),d.set("overlayActive",!1))}},{tag:"button",id:"video-mute",innerHTML:'', click:function(){this.classList.toggle("unmuted");var c=a.videoBanner;c.muted=c.muted?!1:!0}}]}]}},setupEvents:function(){var a=this,d=this.state;return[["mousemove",this.bannerOverlay,function(b){d.set("overlayActive",!1);a.timer||a.startTimeout()},!1]]},setupStates:function(){return{overlayActive:!1}},afterSetup:function(){this.startTimeout();this.videoBanner.setAttribute("playsinline","")},startTimeout:function(){var a=this;this.timer=!0;var d=this.state;window.setTimeout(function(){a.videoBanner.paused|| (d.set("overlayActive",!0),a.timer=!1)},2E3)}}); "use strict"; var ReviewModel = base.Model.extend( { defaults: { rating: 5, publish: 0, should_review: 1, send_email: 1 } }); var LeaveReviewForm = ModalFormPanel.extend( { beforeSetup: function() { this.data = new ReviewModel(); }, modalClassName: 'review-modal-updated', title: 'Leave a Review', addHiddenFields: function() { return { tag: 'input', type: 'text', name: 'URL', autocomplete: 'none', className: 'honey' }; }, addBodyContent: function() { return { tag: 'form', method: 'post', children: [ { tag: 'label', text: 'Display Name', children: this.addDataInput() }, { tag: 'label', text: 'Star Rating', children: this.addRatingContainer() }, { tag: 'label', text: 'Review', children: this.addDataReview() }, this.addHiddenFields(), { tag: 'button', className: 'main-btn transition', text: 'Submit Review', click: base.bind(this, this.accept) } ] }; }, accept: function() { this.request(); }, validate: function() { var data = this.data.get(); if (!data.url) { var review = data.review, reviewer = data.reviewer, msg = ''; if (!review) { msg += '- Please enter a review