// source --> https://millenflorist.com/wp-content/plugins/salient-core/js/third-party/jquery.easing.js?ver=1.1 
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright Â© 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});
// source --> https://millenflorist.com/wp-content/plugins/salient-core/js/third-party/imagesLoaded.min.js?ver=1.1 
/*!
 * imagesLoaded PACKAGED v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */

!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
// source --> https://millenflorist.com/wp-content/plugins/salient-core/js/init.js?ver=1.1 
/**
 * Simplified JS for basic element functionality.
 *
 * @package Salient WPBakery Addons
 * @author ThemeNectar
 */
 
 /* global jQuery */
 /* global Waypoint */
 /* global imagesLoaded */

jQuery(document).ready(function($){
  
  "use strict";
  
  var $body = $('body'),
  $window   = $(window);
  
  /**
  * Tabbed Section.
  *
  * @since 1.0
  */
  $('body').on('click','.tabbed > ul li:not(.cta-button) a',function(e){
    
    e.preventDefault();
    
    var $id = $(this).parents('li').index()+1;
    
    var $frontEndEditorTabDiv =  ($('body.vc_editor').length > 0) ? '> .wpb_tab ': '';
    
    if(!$(this).hasClass('active-tab') && !$(this).hasClass('loading')){
      $(this).parents('ul').find('a').removeClass('active-tab');
      $(this).addClass('active-tab');
      
      $(this).parents('.tabbed').find('> div:not(.clear)' + $frontEndEditorTabDiv).css({'visibility':'hidden','position':'absolute','opacity':'0','left':'-9999px', 'display': 'none'}).removeClass('visible-tab');
      
      if($('body.vc_editor').length > 0) {
        //front end editor locate tab by modal id
        var $data_m_id = ($(this).parent().is('[data-m-id]')) ? $(this).parent().attr('data-m-id') : '';
        $(this).parents('.tabbed').find('> div[data-model-id="'+$data_m_id+'"]' + $frontEndEditorTabDiv).css({'visibility':'visible', 'position' : 'relative','left':'0','display':'block'}).stop().animate({'opacity':1},400).addClass('visible-tab');
        //update padding
        
      } else {
        $(this).parents('.tabbed').find('> div:nth-of-type('+$id+')' + $frontEndEditorTabDiv).css({'visibility':'visible', 'position' : 'relative','left':'0','display':'block'}).stop().animate({'opacity':1},400).addClass('visible-tab');
      }
      
      if($(this).parents('.tabbed').find('> div:nth-of-type('+$id+') .iframe-embed').length > 0 || $(this).parents('.tabbed').find('> div:nth-of-type('+$id+') .portfolio-items').length > 0) setTimeout(function(){ $(window).resize(); },10); 
    }
    

    return false;
    
  });
  
  
  
  function tabbedInit(){ 
    
    $('.tabbed').each(function(){

      //make sure the tabs don't have a nectar slider - we'll init this after the sliders load in that case
      if($(this).find('.swiper-container').length === 0 && $(this).find('.testimonial_slider').length === 0 && $(this).find('.portfolio-items:not(".carousel")').length === 0 && $(this).find('.wpb_gallery .portfolio-items').length == 0 && $(this).find('iframe').length == 0){
        $(this).find('> ul li:first-child a').trigger('click');
      }	
      if($(this).find('.testimonial_slider').length > 0 || $(this).find('.portfolio-items:not(".carousel")').length > 0 || $(this).find('.wpb_gallery .portfolio-items').length > 0 || $(this).find('iframe').length > 0 ){
        var $that = $(this);
        
        $(this).find('.wpb_tab').show().css({'opacity':0,'height':'1px'});
        $(this).find('> ul li a').addClass('loading');
        
        setTimeout(function(){ 
          $that.find('.wpb_tab').hide().css({'opacity':1,'height':'auto'}); 
          $that.find('> ul li a').removeClass('loading');
          $that.find('> ul li:first-child a').trigger('click'); 
        },900);
      }
      
    });
  }
  setTimeout(tabbedInit,60);
  
  
  
  /**
  * Toggles.
  *
  * @since 1.0
  */
  $('body').on('click','.toggle h3 a', function(){
    
    if(!$(this).parents('.toggles').hasClass('accordion')) { 
      $(this).parents('.toggle').find('> div').slideToggle(300);
      $(this).parents('.toggle').toggleClass('open');
      
      //switch icon
      if( $(this).parents('.toggle').hasClass('open') ){
        $(this).find('i').attr('class','icon-minus-sign');
      } else {
        $(this).find('i').attr('class','icon-plus-sign');
      }
      
      return false;
    }
  });
  
  // Accordion.
  $('body').on('click','.accordion .toggle h3 a', function(){
    
    if($(this).parents('.toggle').hasClass('open')) return false;
    
    $(this).parents('.toggles').find('.toggle > div').slideUp(300);
    $(this).parents('.toggles').find('.toggle h3 a i').attr('class','icon-plus-sign');
    $(this).parents('.toggles').find('.toggle').removeClass('open');
    
    $(this).parents('.toggle').find('> div').slideDown(300);
    $(this).parents('.toggle').addClass('open');
    
    //switch icon
    if( $(this).parents('.toggle').hasClass('open') ){
      $(this).find('i').attr('class','icon-minus-sign');
    } else {
      $(this).find('i').attr('class','icon-plus-sign');
    }
    
    if($('#nectar_fullscreen_rows').length > 0) {
      clearTimeout($t);
      var $t = setTimeout(function(){ $(window).trigger('smartresize'); },400);
    }
    
    return false;
  });
  
  // accordion start open
  function accordionInit(){ 
    $('.accordion').each(function(){
      $(this).find('> .toggle').first().addClass('open').find('> div').show();
      $(this).find('> .toggle').first().find('a i').attr('class','icon-minus-sign');
    });
    
    
    $('.toggles').each(function() {
      
      var $isAccordion = ($(this).hasClass('accordion')) ? true : false;
      
      $(this).find('.toggle').each(function(){
        if($(this).find('> div .testimonial_slider').length > 0 || $(this).find('> div iframe').length > 0) {
          var $that = $(this);
          $(this).find('> div').show().css({'opacity':0,'height':'1px', 'padding':'0'});
          
          setTimeout(function(){
            $that.find('> div').hide().css({'opacity':1,'height':'auto', 'padding':'10px 14px'}); 
            if($isAccordion === true && $that.index() === 0) $that.find('> div').slideDown(300);
          },900);
        } 
      });
    });
  }
  accordionInit();
  
  
  
  /**
  * Testimonial Slider.
  *
  * @since 1.0
  */
  function nectarTestimonialSliders() {
    
    var $testimonialSliders = [];
    
    if( typeof NectarTestimonialSlider == 'undefined' ) { 
      return; 
    }
    
    $('.testimonial_slider').each(function(i){
      
      var $that_el = $(this);
      var $type = ( $(this).is('[data-style]') ) ? $(this).attr('data-style') : 'none';
      
      $testimonialSliders[i] = new NectarTestimonialSlider($that_el, $type);
      
      
      if( $(this).is('.disable-height-animation:not([data-style*="multiple_visible"])') ) {
        $testimonialSliders[i].testimonialSliderHeight(); 
        setTimeout($testimonialSliders[i].testimonialSliderHeight.bind($testimonialSliders[i]),500);
      }
      
      if( $(this).is('.testimonial_slider[data-style="multiple_visible_minimal"]') ) {
        $testimonialSliders[i].testimonialSliderHeightMinimalMult();
        setTimeout($testimonialSliders[i].testimonialSliderHeightMinimalMult.bind($testimonialSliders[i]),500);
      }
      
    });
  }
  nectarTestimonialSliders();
  
  
  /**
  * Progress Bars
  *
  * @since 1.0
  */
  function progressBars() {
    
    $('.nectar-progress-bar').parent().each(function () {
      
      var $that = $(this);
      

        $that.find('.nectar-progress-bar .bar-wrap').css('opacity', '1');
      
        $that.find('.nectar-progress-bar').each(function (i) {
          
          var percent = $(this).find('span').attr('data-width'),
          $endNum 		= parseInt($(this).find('span strong i').text()),
          $that 			= $(this);
          
          $that.find('span').css({
            'width': percent + '%'
          });
          
          setTimeout(function () {
            
            $that.find('span strong').css({
              'opacity': 1
            });
            
          }, (i * 90));
          
          ////100% progress bar 
          if (percent === '100') {
            $that.find('span strong').addClass('full');
          }
        });
        
        $that.addClass('completed');
        
      
    });
  }
  progressBars();
  
  
  /**
  * Image Comparison.
  *
  * @since 1.0
  */
  function twentytwentyInit() {
    $('.twentytwenty-container').each(function () {
      var $that = $(this);
      
      if ($that.find('.twentytwenty-handle').length === 0) {
        $(this).imagesLoaded(function () {
          $that.twentytwenty();
        });
      }
      
    });
  }
  twentytwentyInit();
  
  
  
  // Team Member Fullscreen.
  function teamMemberFullscreen() {
    
    if ( $('.team-member').length === 0 ) {
      return;
    }
    
    // Open click event
    $body.on('click', '.team-member[data-style="bio_fullscreen"]', function () {
      
      if ($('.nectar_team_member_overlay').length > 0) {
        return;
      }
      
      var $usingBoxedClass  = ($('body > #boxed').length > 0) ? 'in-boxed' : null,
      $teamMemberMeta       = $(this).find('.nectar_team_bio').html(),
      $teamMemberImg        = ($(this).find('.nectar_team_bio_img[data-img-src]').length > 0) ? $(this).find('.nectar_team_bio_img').attr('data-img-src') : '';
      
      $body.append('<div class="nectar_team_member_overlay ' + $usingBoxedClass + '"><div class="inner-wrap"><div class="team_member_details"><div class="bio-inner"><span class="mobile-close"></span><h2>' + $(this).find('.team-meta h3').html() + '</h2><div class="title">' + $(this).find('.team-meta p').html() + '</div><div class="team-desc">' + $teamMemberMeta + '</div></div></div><div class="team_member_picture"><div class="team_member_image_bg_cover"></div><div class="team_member_picture_wrap"><div class="team_member_image"></div></div></div></div></div><div class="nectar_team_member_close ' + $usingBoxedClass + '"><div class="inner"></div></div>');
      
      if ($teamMemberImg.length > 0) {
        
        // Fade in img on load
        var teamTmpImg = new Image();
        teamTmpImg.src = $teamMemberImg;
        teamTmpImg.onload = function () {
          $('.nectar_team_member_overlay .team_member_image').css('opacity', '1');
        };
        $('.nectar_team_member_overlay .team_member_image').css({
          'background-image': 'url("' + $teamMemberImg + '")'
        });
      }
      
      var $headerNavSpace = 0;
      $('.nectar_team_member_overlay .inner-wrap').css({
        'padding-top': $headerNavSpace
      });
      
      // No-scroll class - ios ready
      if ($('.using-mobile-browser').length > 0) {
        $('body,html').addClass('nectar-no-scrolling');
      }
      
      teamFullscreenResize();
      
      // Transition in
      $('.nectar_team_member_overlay')
        .addClass('open')
        .addClass('animating');
      
      setTimeout(function () {
        $('.nectar_team_member_close').addClass('visible');
        $('.nectar_team_member_overlay').removeClass('animating');
      }, 500);
      
      // Bind close mousemove
      $(document).on('mousemove', teamMousemoveOn);
      
      
      if ($('.team-member[data-style="bio_fullscreen"]').length > 0 && navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/) ) {
        $('.nectar_team_member_overlay').addClass('on-mobile');
      }
      
    });
    
    // Close click event
    $body.on('click', '.nectar_team_member_overlay', function () {
      
      if (!$(this).hasClass('animating')) {
        
        $('.nectar_team_member_overlay').removeClass('open');
        $('.nectar_team_member_close').removeClass('visible');
        
        if ($('.using-mobile-browser').length > 0) {
          $('body,html').removeClass('nectar-no-scrolling');
        }
        
        setTimeout(function () {
          
          // Unbind close mousemove
          $(document).off('mousemove', teamMousemoveOn);
          
          $('.nectar_team_member_overlay, .nectar_team_member_close').remove();
          
        }, 820);
      }
    });
    
    if ($('.team-member[data-style="bio_fullscreen"]').length > 0) {
      $window.on('resize', teamFullscreenResize);
    }

  }
  
  
  /**
  * Team member element fullscreen resize event.
  *
  * @since 1.0
  */
  function teamFullscreenResize() {
    var $leftHeaderSize = ($('body[data-header-format="left-header"]').length > 0 && $window.width() > 1000) ? 275 : 0;
    $('.nectar_team_member_overlay').css({
      'width': $window.width() - $leftHeaderSize,
      'left': $leftHeaderSize
    });
  }
  
  
  /**
  * Team member element fullscreen close button follow on mousemove.
  *
  * @since 1.0
  */
  function teamMousemoveOn(e) {
    
    if ($('a:hover').length > 0) {
      $('.nectar_team_member_close .inner').removeClass('visible');
    } else {
      $('.nectar_team_member_close .inner').addClass('visible');
    }
    $('.nectar_team_member_close').css({
      left: e.pageX - 26,
      top: e.pageY - $window.scrollTop() - 29
    });
  }
  
  teamMemberFullscreen();
  
  
  /**
  * Page builder full height row option.
  *
  * @since 8.0
  */
  
  function vcFullHeightRow() {
    
    var $element = $(".vc_row-o-full-height:first");
    if ($element.length) {
      
      var windowHeight, offsetTop, fullHeight;
      windowHeight = $window.height();
      
      $(".vc_row-o-full-height").each(function () {
        
        offsetTop = $(this).offset().top;
        
        if (offsetTop < windowHeight && 
          $(this).hasClass('top-level')) {
            
          fullHeight = 100 - offsetTop / (windowHeight / 100);
          $(this).css("min-height", fullHeight + "vh");
          $(this).find('> .col.span_12').css("min-height", fullHeight + "vh");
          
        } else {
          
          $(this).css("min-height", windowHeight);
          $(this).find('> .col.span_12').css("min-height", windowHeight);
          
        }
        
      });
      
    }
    
  }
  
  
  /**
  * Page builder full height row init.
  *
  * @since 10.1
  */
  
  function vcFullHeightRowInit() {
    
    if( $('.vc_row-o-full-height').length > 0 ) {
      vcFullHeightRow();
      $window.on('smartresize', vcFullHeightRow);
    }
    
  }
  
  vcFullHeightRowInit();
  
  
  
});
// source --> https://millenflorist.com/wp-content/plugins/shopengine/assets/js/shopengine-modal.js?ver=4.9.7 
jQuery((function(o){"use strict";var e=o(".se-modal-wrapper");e.on(o.modal.OPEN,(function(o,e){if(!0!==e.options.ifIframe)return;let t=e.$elm.find("iframe");t.on("load",(function(){t.contents().find("head").append('<base target="_parent" />'),e.$elm.addClass("se-loaded iframeLoaded")}))})),e.on(o.modal.AFTER_CLOSE,(function(o,e){e.$elm.removeClass("se-loaded iframeLoaded ajaxLoaded")}))})),function(o){"object"==typeof module&&"object"==typeof module.exports?o(require("jquery"),window,document):o(jQuery,window,document)}((function(o,e,t,i){var s=[],l=function(){return s.length?s[s.length-1]:null},n=function(){var o,e=!1;for(o=s.length-1;o>=0;o--)s[o].$blocker&&(s[o].$blocker.toggleClass("current",!e).toggleClass("behind",e),e=!0)};o.modal=function(e,t){var i,n;if(this.$body=o("body"),this.options=o.extend({},o.modal.defaults,t),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;o.modal.isActive();)o.modal.close();if(s.push(this),e.is("a"))if(n=e.attr("href"),this.anchor=e,/^#/.test(n)){if(this.$elm=o(n),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=o("<div>"),this.$body.append(this.$elm),i=function(o,e){e.elm.remove()},this.showSpinner(),e.trigger(o.modal.AJAX_SEND),o.get(n).done((function(t){if(o.modal.isActive()){e.trigger(o.modal.AJAX_SUCCESS);var s=l();s.$elm.empty().append(t).on(o.modal.CLOSE,i),s.hideSpinner(),s.open(),e.trigger(o.modal.AJAX_COMPLETE)}})).fail((function(){e.trigger(o.modal.AJAX_FAIL),l().hideSpinner(),s.pop(),e.trigger(o.modal.AJAX_COMPLETE)}));else this.$elm=e,this.anchor=e,this.$body.append(this.$elm),this.open()},o.modal.prototype={constructor:o.modal,open:function(){var e=this;this.block(),this.anchor.blur(),this.options.doFade?setTimeout((function(){e.show()}),this.options.fadeDuration*this.options.fadeDelay):this.show(),o(t).off("keydown.modal").on("keydown.modal",(function(o){var e=l();27===o.which&&e.options.escapeClose&&e.close()})),this.options.clickClose&&this.$blocker.click((function(e){e.target===this&&o.modal.close()}))},close:function(){s.pop(),this.unblock(),this.hide(),o.modal.isActive()||o(t).off("keydown.modal")},block:function(){this.$elm.trigger(o.modal.BEFORE_BLOCK,[this._ctx()]),this.$doc=o(t),this.$prevWidth=this.$doc.width(),this.$body.css("overflow","hidden").css("padding-right",this.$doc.width()-this.$prevWidth),this.$blocker=o('<div class="'+this.options.blockerClass+' se-blocker current"></div>').appendTo(this.$body),n(),this.options.doFade&&this.$blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger(o.modal.BLOCK,[this._ctx()])},unblock:function(e){!e&&this.options.doFade?this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,!0)):(this.$blocker.children().appendTo(this.$body),this.$blocker.remove(),this.$blocker=null,n(),o.modal.isActive()||this.$body.css({overflow:"","padding-right":""}))},show:function(){this.$elm.trigger(o.modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=o('<a title="Close Modal" href="#close-modal" rel="modal:close" class="se-close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker),this.options.doFade?this.$elm.css({opacity:0,display:"inline-block"}).animate({opacity:1},this.options.fadeDuration):this.$elm.css("display","inline-block"),this.$elm.trigger(o.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(o.modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove();var e=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,(function(){e.$elm.trigger(o.modal.AFTER_CLOSE,[e._ctx()])})):this.$elm.hide(0,(function(){e.$elm.trigger(o.modal.AFTER_CLOSE,[e._ctx()])})),this.$elm.trigger(o.modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||o('<div class="se-'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$elm:this.$elm,$blocker:this.$blocker,options:this.options,$anchor:this.anchor}}},o.modal.close=function(e){if(o.modal.isActive()){e&&e.preventDefault();var t=l();return t.close(),t.$elm}},o.modal.isActive=function(){return s.length>0},o.modal.getCurrent=l,o.modal.defaults={closeExisting:!0,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"se-modal",blockerClass:"jquery-modal",spinnerHtml:'<div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div>',showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},o.modal.BEFORE_BLOCK="modal:before-block",o.modal.BLOCK="modal:block",o.modal.BEFORE_OPEN="modal:before-open",o.modal.OPEN="modal:open",o.modal.BEFORE_CLOSE="modal:before-close",o.modal.CLOSE="modal:close",o.modal.AFTER_CLOSE="modal:after-close",o.modal.AJAX_SEND="modal:ajax:send",o.modal.AJAX_SUCCESS="modal:ajax:success",o.modal.AJAX_FAIL="modal:ajax:fail",o.modal.AJAX_COMPLETE="modal:ajax:complete",o.fn.seModal=function(e){return 1===this.length&&new o.modal(this,e),this},o.fn.modal&&o.fn.modal.Constructor||(o.fn.modal=o.fn.seModal),o(t).on("click.semodal",'a[rel~="modal:close"]',o.modal.close),o(t).on("click.semodal",'a[rel~="modal:open"]',(function(e){e.preventDefault(),o(this).seModal()}))}));