').appendTo("body");var e=20=== d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery); (function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]= d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); (function ($) { "use strict"; var F = $.fancybox, format = function( url, rez, params ) { params = params || ''; if ( $.type( params ) === "object" ) { params = $.param(params, true); } $.each(rez, function(key, value) { url = url.replace( '$' + key, value || '' ); }); if (params.length) { url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params; } return url; }; F.helpers.media = { defaults : { youtube : { matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i, params : { autoplay : 1, autohide : 1, fs : 1, rel : 0, hd : 1, wmode : 'opaque', enablejsapi : 1 }, type : 'iframe', url : '//www.youtube.com/embed/$3' }, vimeo : { matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/, params : { autoplay : 1, hd : 1, show_title : 1, show_byline : 1, show_portrait : 0, fullscreen : 1 }, type : 'iframe', url : '//player.vimeo.com/video/$1' }, metacafe : { matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/, params : { autoPlay : 'yes' }, type : 'swf', url : function( rez, params, obj ) { obj.swf.flashVars = 'playerVars=' + $.param( params, true ); return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf'; } }, dailymotion : { matcher : /dailymotion.com\/video\/(.*)\/?(.*)/, params : { additionalInfos : 0, autoStart : 1 }, type : 'swf', url : '//www.dailymotion.com/swf/video/$1' }, twitvid : { matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i, params : { autoplay : 0 }, type : 'iframe', url : '//www.twitvid.com/embed.php?guid=$1' }, twitpic : { matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i, type : 'image', url : '//twitpic.com/show/full/$1/' }, instagram : { matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i, type : 'image', url : '//$1/p/$2/media/?size=l' }, google_maps : { matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i, type : 'iframe', url : function( rez ) { return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed'); } } }, beforeLoad : function(opts, obj) { var url = obj.href || '', type = false, what, item, rez, params; for (what in opts) { if (opts.hasOwnProperty(what)) { item = opts[ what ]; rez = url.match( item.matcher ); if (rez) { type = item.type; params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null)); url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params ); break; } } } if (type) { obj.href = url; obj.type = type; obj.autoHeight = false; } } }; }(jQuery)); var bpApp={}; (function(e){var g=base.Class,h=g.extend({constructor:function(){this.modules=[]},add:function(a){if("function"===typeof a){var b=new a;this.modules.push(b)}return b},mark:function(a){window.performance&&window.performance.mark(a)},setup:function(){this.mark("module-setup");for(var a,b=this.modules,c=0,d=b.length;c<= b.length?b:!1},stopPreviousAnimations:function(a){this.remove(a,1)},reset:function(){this.objects=[]}},setupSelectingObject:function(a){return"string"===typeof a?jQuery("#"+a)[0]:a},hide:function(a,b,c){a=this.setupSelectingObject(a);jQuery(a).addClass(b);var d=base.createCallBack(null,m,[a,b]);c=window.setTimeout(d,c);this.animating.add(a,b,c)},show:function(a,b,c){a=this.setupSelectingObject(a);jQuery(a).addClass(b);a.style.display="block";var d=base.createCallBack(null,k,[a,b]);c=window.setTimeout(d, c);this.animating.add(a,b,c)},set:function(a,b,c){a=this.setupSelectingObject(a);jQuery(a).addClass(b);var d=base.createCallBack(null,k,[a,b]);c=window.setTimeout(d,c);this.animating.add(a,b,c)}};e.elementInViewport=function(a,b){var c=window.innerHeight,d=a.getBoundingClientRect().top,e=a.getBoundingClientRect().bottom,f=getComputedStyle(a).display;c=d<=c&&0<=e&&"none"!==f;return!b&&c?!0:c?(b(),!0):!1}})(bpApp); (function(k){function n(a){if(a.matches){if(!l)return!1;var b=l.offsetHeight;t.style.setProperty("--mobile-nav-height",b+"px");var c=window.pageYOffset;window.onscroll=function(){var d=window.pageYOffset;b ul > li");this.setupGroup(a);return{button:this.cache("backEle",Button({className:"bttn back",text:"Back"})),children:this.groups}},setupGroup:function(a,b,c){b=b||0;var d=!1;c=this.addGroup(b,c);if(a)for(var f=0,p=a.length;f a")}, getChildOptions:function(a){return jQuery(a).find(" > .sub-menu > li")},afterSetup:function(){this.selectPrimaryGroup();this.layoutGroups=null},selectGroup:function(a){if(!a||"object"!==typeof a||!0===a.selected)return!1;a.selected=!0;this.selectGroupPanel(a);this.updateBackButton(a);this.lastSelectedGroup=a},selectPrimaryGroup:function(){var a=this.groups;if(1>a.length)return!1;this.selectGroup(a[0])},getAnimationClass:function(a,b){var c={selecting:"pull-right-in-transparent",removing:"pull-left-transparent"}; null===a?(c.removing="no-change",c.selecting="no-change"):b>a?(c.removing="pull-left-transparent",c.selecting="pull-right-in-transparent"):b img");(c=base.data(d,"src"))&&window.setTimeout(function(){c+="."+b;base.attr(d,"src",c)},10)}},isSelected:function(){return!0===this.state.get("selected")},select:function(){this.state.set({selected:!0,isSetup:!0});var a=this.panel,b=this.animationIn;void 0===b&&(b="fadeIn");e.animate.show(a,b,1E3);this.crumb.select()},unselect:function(a){this.state.set("selected", !1);a=this.panel;var b=this.animationOut;void 0===b&&(b="fadeOut");e.animate.hide(a,b,1E3);this.crumb.unselect()},lower:function(){this.state.set("selected",-1)}}),h=g.extend({beforeSetup:function(){this.panel=this.element},afterSetup:function(){base.builder.onState(this.panel,this.setOnState(),this)},render:function(){this.container.appendChild(this.panel)},buildLayout:function(){this.render();base.DataTracker.add(this.panel,"components",{component:this});this.rendered=!0}}),k=f.extend({render:function(){return{className:"slide-tab"}}, getPosition:function(a){var b={x:0,y:0};if(a&&"object"===typeof a)for(var c=2;0<=a?a:this.options.length-1]},selectPreviousOption:function(){var a=this.getPreviousOption();a&&this.selectOption(a)},unselectOption:function(a){for(var b=this.options,c=0,d=b.length;c=this.size.width},update:function(){this.getElements();this.resize();this.checkScroll();return this},updatePosition:function(a){var b=a.element;a.position=base.position(b,0);a.size=base.getSize(b)},updateOptionPositions:function(){for(var a=this.options,b=a.length,c=0;c=c?this.animate(e,l):g>=c&&g<=d&&this.animate(e,l)}}return this},phoneSize:600,animate:function(a,b){var c=a.element,d=a.animation;window.setTimeout(function(){base.addClass(c, d).addClass(c,"animated")},b||0);this.removeOption(a);return this},ticking:!1,scroll:function(a){if(!this.ticking){var b=this;n(function(){b.checkScroll(a);b.ticking=!1});this.ticking=!0}},setupEvents:function(){this.callBack=base.bind(this,this.checkScroll);var a=base.bind(this,this.scroll),b=base.bind(this,this.resize),c=window;this.addEvents=function(){base.on("scroll",c,a,!1);base.on("resize",c,b)};this.removeEvents=function(){base.off("scroll",c,a,!1);base.off("resize",c,b)};this.addEvents(); return this}});m.lazyAnimator=p})(bpApp); (function(d){var e=base.Class.extend({constructor:function(a,b,c){this.header="string"===typeof a?document.getElementById(a):a;this.$header=jQuery(this.header);this.miniClassName=b;this.headerMinified=!1;this.distance="undefined"!==typeof c?c:300;this.$document=jQuery(document);this.$window=jQuery(window);this.setup()},setup:function(){if(!this.header)return!1;this.checkScroll();this.addScroll()},addScroll:function(){var a=this,b=function(){a.checkScroll()},c=this.$window;c.on("scroll",b);c.on("resize", b)},checkScroll:function(){var a=this.$window,b=a.scrollTop();this.$document.height();a.height();b>=this.distance?!1===this.headerMinified&&(this.$header.addClass(this.miniClassName),this.headerMinified=!0):!0===this.headerMinified&&(this.headerMinified=!1,this.$header.removeClass(this.miniClassName))},scrollToTop:function(){window.scrollTo(window.scrollX,0)}});d.scrollHeader=e})(bpApp); "use strict"; var Modal = base.Component.extend( { render: function() { return { className: 'modal ' + this.modalClassName, onState: [ 'displayed', { 'modal-visible': true } ], header: this.addHeader(), body: this.addBody() }; }, setupStates: function() { var self = this; return { displayed: { state: false, callBack: function(value) { if (value === true) { document.body.classList.add('modal-open'); self.createShadow(); } else { document.body.classList.remove('modal-open'); self.backdrop.destroy(); self.destroy(); } } } }; }, modalClassName: '', title: '', addHeader: function() { return ModalHeader({ title: this.title || null, callBack: base.bind(this, this.display) }); }, addBody: function() { return { className: 'body-container', children: this.addBodyContent() }; }, addBodyContent: function() { return []; }, addFooter: function() { var id = this.id; return { tag: 'footer', id: id + '_button_container', className: 'button-container', buttons: this.addFooterButtons() }; }, addFooterButton: function(id, className, label, callBack) { return { tag: 'button', className: 'bttn ' + className, textContent: label, onclick: callBack, id: (id) ? this.id + id : null }; }, addFooterButtons: function() { return [ this.addFooterButton('_button_1', 'bttn-red', 'Cancel', base.bind(this, this.decline)), this.addFooterButton('_button_2', 'bttn-green', 'Save', base.bind(this, this.accept)) ]; }, getTitle: function() { return 'Edit Panel'; }, setupHeaderOptions: function() { }, checkToClose: function() { this.decline(); }, createShadow: function() { this.backdrop = new Shadow({ callBack: base.bind(this, this.display) }); this.backdrop.setup(this.container); }, returnCallBack: function(data) { var callBack = this.callbackFunction; if(typeof callBack === 'function') { callBack(data); } }, removeAndCallBack: function(data) { this.returnCallBack(data); window.setTimeout(base.bind(this, this.display), 200); }, accept: function() { this.removeAndCallBack(); }, decline: function() { this.display(); }, display: function() { var state = this.state; state.set('displayed', !state.get('displayed')); } }); if(navigator.userAgent.indexOf('MSIE')!==-1 || navigator.appVersion.indexOf('Trident/') > -1) { var ModalIE = Modal.extend( { modalClassName: 'ie-error', addBodyContent: function() { return { innerHTML: 'This browser is not supported due to security vulnerabilities. Please use a secure browser such as Chrome, Edge, or Firefox.' }; } }); var ieError = new ModalIE(); ieError.setup(document.body); ieError.display(); } "use strict"; var ModalFormPanel = Modal.extend( { afterSetup: function() { BpFormValidator.monitor(jQuery(this.form.panel)); }, addBody: function() { return { className: 'body-container', children: [this.cache('form', this.addBodyContent())] }; }, decline: function() { var form = this.form; if(form) { form.reset(); var $form = jQuery(form); $form.removeClass('form_failure'); $form.find('input, select, textarea').each(function() { var $element = jQuery(this); $element.removeClass('success_val'); $element.removeClass('error_val'); }); } this.display(); } }); "use strict"; var AppointmentFormv2 = Form.extend( { className: 'form-appointment-modal', formTitle: 'Appointment Request', addFormBody: function() { var id = this.getId('optional-message'); return [ Row({ children: [ Column({ columns: '6', children: FloatingInput({ name: 'First Name', label: 'First Name', placeholder: 'Jaime', required: true }) }), Column({ columns: '6', children: FloatingInput({ name: 'Last Name', label: 'Last Name', placeholder: 'Doe', required: true }) }) ] }), new PreferredContact, Row({ children: [ Column({ columns: '6', children: FloatingInput({ name: 'Date', label: 'Date', type: 'date', placeholder: 'mm/dd/yyyy', value: weekAway }) }), Column({ columns: '6', children: FloatingInput({ name: 'Time', label: 'Time', type: 'time', placeholder: '09:00 AM', value: '09:00' }) }) ] }), this.addLocations(), OptionalMessage({ id: id }), this.addSubmit() ]; }, addSubmit: function() {	return { className: 'bp-submit-wrap', children: Button({ type: 'submit', className: 'send_button main-btn transition', text: this.submit }) }; }, getFormData: function(form) { var data = { action: 'form_submittion', data: form.serialize() }; return data; } }); "use strict"; var ModalAppointmentRequest = ModalFormPanel.extend( { modalClassName: 'appointment-request', title: 'Request an Appointment', addBodyContent: function() { return new AppointmentFormv2({ formType: 'Modal' }); }, afterSetup: function() { if (waypoint_appcode === '' || !waypoint_appt) { BpFormValidator.monitor(jQuery(this.form.panel)); } }, }); (function(a){var d=base.Class.extend({constructor:function(b,c){this.created=!1;if(this.ele=document.getElementById(b))this.src=c,this.setup()},setup:function(){this.events();this.create()},create:function(){var b=this.isMobile();!1===this.created&&!1===b?(this.ele.innerHTML=this.createVideoString(),this.created=!0):!0===b&&!0===this.created&&(this.ele.innerHTML="",this.created=!1)},isMobile:function(){return 768>=window.innerWidth},createVideoString:function(){return'