| Current Path : /home/balossw/www/site2/components/com_sppagebuilder/assets/js/ |
| Current File : /home/balossw/www/site2/components/com_sppagebuilder/assets/js/sppagebuilder.js |
!function(o){"use strict";var e='[data-dismiss="sppb-alert"]',n=function(t){o(t).on("click",e,this.close)};n.VERSION="3.2.0",n.prototype.close=function(t){var e=o(this),i=e.attr("data-target");i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var n=o(i);function s(){n.detach().trigger("closed.sppb.alert").remove()}t&&t.preventDefault(),n.length||(n=e.hasClass("sppb-alert")?e:e.parent()),n.trigger(t=o.Event("close.sppb.alert")),t.isDefaultPrevented()||(n.removeClass("in"),o.support.transition&&n.hasClass("sppb-fade")?n.one("bsTransitionEnd",s).emulateTransitionEnd(150):s())};var t=o.fn.spbalert;o.fn.spbalert=function(i){return this.each(function(){var t=o(this),e=t.data("sppb.alert");e||t.data("sppb.alert",e=new n(this)),"string"==typeof i&&e[i].call(t)})},o.fn.spbalert.Constructor=n,o.fn.spbalert.noConflict=function(){return o.fn.spbalert=t,this},o(document).on("click.sppb.alert.data-api",e,n.prototype.close)}(jQuery),function(d){"use strict";var o=function(t,e){this.$element=d(t).on("keydown.sppb.carousel",d.proxy(this.keydown,this)),this.$indicators=this.$element.find(".sppb-carousel-indicators"),this.options=e,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.sppb.carousel",d.proxy(this.pause,this)).on("mouseleave.sppb.carousel",d.proxy(this.cycle,this))};function a(s){return this.each(function(){var t=d(this),e=t.data("sppb.carousel"),i=d.extend({},o.DEFAULTS,t.data(),"object"==typeof s&&s),n="string"==typeof s?s:i.slide;e||t.data("sppb.carousel",e=new o(this,i)),"number"==typeof s?e.to(s):n?e[n]():i.interval&&e.pause().cycle()})}o.VERSION="3.2.0",o.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},o.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},o.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},o.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".sppb-item"),this.$items.index(t||this.$active)},o.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".sppb-item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.sppb.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",d(this.$items[t]))},o.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},o.prototype.next=function(){if(!this.sliding)return this.slide("next")},o.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},o.prototype.slide=function(t,e){var i=this.$element.find(".sppb-item.active"),n=e||i[t](),s=this.interval,o="next"==t?"left":"right",a="next"==t?"first":"last",r=this;if(!n.length){if(!this.options.wrap)return;n=this.$element.find(".sppb-item")[a]()}if(n.hasClass("active"))return this.sliding=!1;var p=n[0],l=d.Event("slide.sppb.carousel",{relatedTarget:p,direction:o});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=d(this.$indicators.children()[this.getItemIndex(n)]);c&&c.addClass("active")}var h=d.Event("slid.sppb.carousel",{relatedTarget:p,direction:o});return d.support.transition&&this.$element.hasClass("sppb-slide")?(n.addClass(t),n[0].offsetWidth,i.addClass(o),n.addClass(o),i.one("bsTransitionEnd",function(){n.removeClass([t,o].join(" ")).addClass("active"),i.removeClass(["active",o].join(" ")),r.sliding=!1,setTimeout(function(){r.$element.trigger(h)},0)}).emulateTransitionEnd(1e3*i.css("transition-duration").slice(0,-1))):(i.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var t=d.fn.sppbcarousel;d.fn.sppbcarousel=a,d.fn.sppbcarousel.Constructor=o,d.fn.sppbcarousel.noConflict=function(){return d.fn.sppbcarousel=t,this},d(document).ready(function(){d(".sppb-carousel").each(function(t){var e=d(this).find(".sppb-item"),i="sppb-carousel"+(t+1),n="";d(this).attr("id",i);for(var s=0;s<e.length;s++)n+=0==s?'<li data-sppb-target="#'+i+'" class="active" data-sppb-slide-to="0"></li>':'\n<li data-sppb-target="#'+i+'" data-sppb-slide-to="'+s+'"></li>';d(this).find(">.sppb-carousel-indicators").html(n),d(this).find(".sppb-carousel-control").attr("href","#"+i),d(this).find(".sppb-item").first().addClass("active")})}),d(document).on("click.sppb.carousel.data-api","[data-slide], [data-sppb-slide-to]",function(t){var e,i=d(this),n=d(i.attr("data-sppb-target")||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("sppb-carousel")){var s=d.extend({},n.data(),i.data()),o=i.attr("data-sppb-slide-to");o&&(s.interval=!1),a.call(n,s),o&&n.data("sppb.carousel").to(o),t.preventDefault()}}),d(window).on("load",function(){d('[data-sppb-ride="sppb-carousel"]').each(function(){var t=d(this);a.call(t,t.data())})})}(jQuery),function(s){"use strict";s(document).on("click",".sppb-panel-heading",function(t){t.preventDefault();var e=s(this).closest(".sppb-panel-group").find(">div"),i=e.find(".sppb-panel-heading"),n=e.find(".sppb-panel-collapse");s(this).hasClass("active")?(s(this).removeClass("active"),n.slideUp()):(i.removeClass("active"),n.slideUp(),s(this).addClass("active").next().slideDown())})}(jQuery),function(a){"use strict";var n=function(t){this.element=a(t)};function e(i){return this.each(function(){var t=a(this),e=t.data("sppb.tab");e||t.data("sppb.tab",e=new n(this)),"string"==typeof i&&e[i]()})}n.VERSION="3.2.0",n.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var n=e.find(".active:last a")[0],s=a.Event("show.sppb.tab",{relatedTarget:n});if(t.trigger(s),!s.isDefaultPrevented()){var o=a(i);this.activate(t.closest("li"),e),this.activate(o,o.parent(),function(){t.trigger({type:"shown.sppb.tab",relatedTarget:n})})}}},n.prototype.activate=function(t,e,i){var n=e.find("> .active"),s=i&&a.support.transition&&n.hasClass("sppb-fade");function o(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("sppb-fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),i&&i()}s?n.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),n.removeClass("in")};var t=a.fn.sppbtab;a.fn.sppbtab=e,a.fn.sppbtab.Constructor=n,a.fn.sppbtab.noConflict=function(){return a.fn.sppbtab=t,this},a(document).ready(function(){a(".sppb-tab").each(function(t){var e="sppb-tab"+(t+1);a(this).find(">.sppb-nav").children().each(function(t){a(this).find(">a").attr("href","#"+e+"-"+(t+1))}),a(this).find(">.sppb-tab-content").children().each(function(t){a(this).attr("id",e+"-"+(t+1))})})}),a(document).on("click.sppb.tab.data-api",'[data-toggle="sppb-tab"], [data-toggle="sppb-pill"]',function(t){t.preventDefault(),e.call(a(this),"show")})}(jQuery),function(b){"use strict";var s=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("sppbtooltip",t,e)};s.VERSION="3.2.0",s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="sppb-tooltip" role="tooltip"><div class="sppb-tooltip-arrow"></div><div class="sppb-tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},s.prototype.init=function(t,e,i){this.enabled=!0,this.type=t,this.$element=b(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&b(this.options.viewport.selector||this.options.viewport);for(var n=this.options.trigger.split(" "),s=n.length;s--;){var o=n[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,b.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",r="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,b.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,b.proxy(this.leave,this))}}this.options.selector?this._options=b.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(t){return(t=b.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},s.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&b.each(this._options,function(t,e){n[t]!=e&&(i[t]=e)}),i},s.prototype.enter=function(t){var e=t instanceof this.constructor?t:b(t.currentTarget).data("sppb."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),b(t.currentTarget).data("sppb."+this.type,e)),clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},s.prototype.leave=function(t){var e=t instanceof this.constructor?t:b(t.currentTarget).data("sppb."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),b(t.currentTarget).data("sppb."+this.type,e)),clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},s.prototype.show=function(){var t=b.Event("show.sppb."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=b.contains(document.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("sppb-fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(o);r&&(o=o.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(o).data("sppb."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var p=this.getPosition(),l=n[0].offsetWidth,c=n[0].offsetHeight;if(r){var h=o,d=this.$element.parent(),u=this.getPosition(d);o="bottom"==o&&p.top+p.height+c-u.scroll>u.height?"top":"top"==o&&p.top-u.scroll-c<0?"bottom":"right"==o&&p.right+l>u.width?"left":"left"==o&&p.left-l<u.left?"right":o,n.removeClass(h).addClass(o)}var f=this.getCalculatedOffset(o,p,l,c);this.applyPlacement(f,o);var v=function(){i.$element.trigger("shown.sppb."+i.type),i.hoverState=null};b.support.transition&&this.$tip.hasClass("sppb-")?n.one("bsTransitionEnd",v).emulateTransitionEnd(150):v()}},s.prototype.applyPlacement=function(t,e){var i=this.tip(),n=i[0].offsetWidth,s=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),t.top=t.top+o,t.left=t.left+a,b.offset.setOffset(i[0],b.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in");var r=i[0].offsetWidth,p=i[0].offsetHeight;"top"==e&&p!=s&&(t.top=t.top+s-p);var l=this.getViewportAdjustedDelta(e,t,r,p);l.left?t.left+=l.left:t.top+=l.top;var c=l.left?2*l.left-n+r:2*l.top-s+p,h=l.left?"left":"top",d=l.left?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(c,i[0][d],h)},s.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".sppb-tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("sppb-fade in top bottom left right")},s.prototype.hide=function(){var t=this,e=this.tip(),i=b.Event("hide.sppb."+this.type);function n(){"in"!=t.hoverState&&e.detach(),t.$element.trigger("hidden.sppb."+t.type)}if(this.$element.removeAttr("aria-describedby"),this.$element.trigger(i),!i.isDefaultPrevented())return e.removeClass("in"),b.support.transition&&this.$tip.hasClass("sppb-fade")?e.one("bsTransitionEnd",n).emulateTransitionEnd(150):n(),this.hoverState=null,this},s.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName;return b.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():null,{scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop(),width:i?b(window).width():t.outerWidth(),height:i?b(window).height():t.outerHeight()},i?{top:0,left:0}:t.offset())},s.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},s.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-o-a.scroll,p=e.top+o-a.scroll+n;r<a.top?s.top=a.top-r:p>a.top+a.height&&(s.top=a.top+a.height-p)}else{var l=e.left-o,c=e.left+o+i;l<a.left?s.left=a.left-l:c>a.width&&(s.left=a.left+a.width-c)}return s},s.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},s.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},s.prototype.tip=function(){return this.$tip=this.$tip||b(this.options.template)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".sppb-tooltip-arrow")},s.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(t){var e=this;t&&((e=b(t.currentTarget).data("sppb."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),b(t.currentTarget).data("sppb."+this.type,e))),e.tip().hasClass("in")?e.leave(e):e.enter(e)},s.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("sppb."+this.type)};var t=b.fn.sppbtooltip;b.fn.sppbtooltip=function(n){return this.each(function(){var t=b(this),e=t.data("sppb.tooltip"),i="object"==typeof n&&n;(e||"destroy"!=n)&&(e||t.data("sppb.tooltip",e=new s(this,i)),"string"==typeof n&&e[n]())})},b.fn.sppbtooltip.Constructor=s,b.fn.sppbtooltip.noConflict=function(){return b.fn.sppbtooltip=t,this}}(jQuery),function(s){"use strict";var o=function(t,e){this.init("sppbpopover",t,e)};if(!s.fn.sppbtooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.2.0",o.DEFAULTS=s.extend({},s.fn.sppbtooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="sppb-popover" role="tooltip"><div class="arrow"></div><h3 class="sppb-popover-title"></h3><div class="sppb-popover-content"></div></div>'}),((o.prototype=s.extend({},s.fn.sppbtooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".sppb-popover-title")[this.options.html?"html":"text"](e),t.find(".sppb-popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("sppb-fade top bottom left right in"),t.find(".sppb-popover-title").html()||t.find(".sppb-popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},o.prototype.tip=function(){return this.$tip||(this.$tip=s(this.options.template)),this.$tip};var t=s.fn.sppbpopover;s.fn.sppbpopover=function(n){return this.each(function(){var t=s(this),e=t.data("sppb.popover"),i="object"==typeof n&&n;(e||"destroy"!=n)&&(e||t.data("sppb.popover",e=new o(this,i)),"string"==typeof n&&e[n]())})},s.fn.sppbpopover.Constructor=o,s.fn.sppbpopover.noConflict=function(){return s.fn.sppbpopover=t,this}}(jQuery),function(n){"use strict";n.fn.emulateTransitionEnd=function(t){var e=!1,i=this;n(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||n(i).trigger(n.support.transition.end)},t),this},n(function(){n.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),"undefined"!=typeof jQuery&&"undefined"!=typeof MooTools&&function(i){i(document).ready(function(){i(".sppb-carousel").each(function(t,e){i(this)[t].slide=null})})}(jQuery),function(s,t,e,i){"use strict";var o="vide",n={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%"},a=/iPad|iPhone|iPod/i.test(i.userAgent),r=/Android/i.test(i.userAgent);s[o]={lookup:[]};function p(t,e,i){this.element=s(t),this._defaults=n,this._name=o,e=e.replace(/\.\w*$/,""),this.settings=s.extend({},n,i),this.path=e,this.init()}p.prototype.init=function(){var t=this;this.wrapper=s("<div>");var e=function(t){for(var e,i=(t=""+t).split(/\s+/),n="50%",s="50%",o=0,a=i.length;o<a;o++)"left"===(e=i[o])?n="0%":"right"===e?n="100%":"top"===e?s="0%":"bottom"===e?s="100%":"center"===e?0===o?n="50%":s="50%":0===o?n=e:s=e;return{x:n,y:s}}(this.settings.position);if(this.wrapper.css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-repeat":"no-repeat","background-position":e.x+" "+e.y}),s(this.element).data("vide-image")&&this.wrapper.css("background-image","url("+s(this.element).data("vide-image")+")"),"static"===this.element.css("position")&&this.element.css("position","relative"),this.element.prepend(this.wrapper),!a&&!r){var i="";s(this.element).data("vide-mp4")&&(i+="<source src='"+s(this.element).data("vide-mp4")+"' type='video/mp4'>"),s(this.element).data("vide-ogv")&&(i+="<source src='"+s(this.element).data("vide-ogv")+"' type='video/ogg'>"),this.video=s("<video>"+i+"</video>"),this.video.css("visibility","hidden"),this.video.prop({autoplay:this.settings.autoplay,loop:this.settings.loop,volume:this.settings.volume,muted:this.settings.muted,playbackRate:this.settings.playbackRate}),this.wrapper.append(this.video),this.video.css({margin:"auto",position:"absolute","z-index":-1,top:e.y,left:e.x,"-webkit-transform":"translate(-"+e.x+", -"+e.y+")","-ms-transform":"translate(-"+e.x+", -"+e.y+")",transform:"translate(-"+e.x+", -"+e.y+")"}),this.video.bind("loadedmetadata."+o,function(){t.video.css("visibility","visible"),t.resize()}),s(this.element).bind("resize."+o,function(){t.resize()})}},p.prototype.getVideoObject=function(){return this.video?this.video[0]:null},p.prototype.resize=function(){if(this.video){var t=this.video[0].videoHeight,e=this.video[0].videoWidth,i=this.wrapper.height(),n=this.wrapper.width();i/t<n/e?this.video.css({width:n+2,height:"auto"}):this.video.css({width:"auto",height:i+2})}},p.prototype.destroy=function(){this.element.unbind(o),this.video&&this.video.unbind(o),delete s[o].lookup[this.index],this.element.removeData(o),this.wrapper.remove()},s.fn[o]=function(t,e){var i;return this.each(function(){(i=s.data(this,o))&&i.destroy(),(i=new p(this,t,e)).index=s[o].lookup.push(i)-1,s.data(this,o,i)}),this},s(e).ready(function(){s(t).bind("resize."+o,function(){for(var t,e=s[o].lookup.length,i=0;i<e;i++)(t=s[o].lookup[i])&&t.resize()}),s(e).find("[data-vide-bg]").each(function(t,e){var i=s(e),n=i.data(o+"-options");n=n?function(t){var e,i,n,s,o={};for(i=0,n=(e=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(",")).length;i<n;i++)e[i]=e[i].split(":"),(s=e[i][1])||(s=void 0),("string"==typeof s||s instanceof String)&&(s="true"===s||"false"!==s&&s),("string"==typeof s||s instanceof String)&&(s=isNaN(s)?s:+s),o[e[i][0]]=s;return o}(n):{},i[o]("",n)})})}(window.jQuery,window,document,navigator),function(){var n,e,i,s=function(t,e){return function(){return t.apply(e,arguments)}},a=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var i,n;for(i in e)n=e[i],null==t[i]&&(t[i]=n);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t}(),i=this.WeakMap||this.MozWeakMap||(i=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,i,n,s;for(e=i=0,n=(s=this.keys).length;i<n;e=++i)if(s[e]===t)return this.values[e]},t.prototype.set=function(t,e){var i,n,s,o;for(i=n=0,s=(o=this.keys).length;n<s;i=++n)if(o[i]===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),n=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(n=function(){function t(){console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),this.SPPBWOW=function(){function t(t){null==t&&(t={}),this.scrollCallback=s(this.scrollCallback,this),this.scrollHandler=s(this.scrollHandler,this),this.start=s(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),this.animationNameCache=new i}return t.prototype.defaults={boxClass:"sppb-wow",animateClass:"sppb-animated",offset:0,mobile:!0,live:!0},t.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():document.addEventListener("DOMContentLoaded",this.start),this.finished=[]},t.prototype.start=function(){var s,t,e,i,a;if(this.stopped=!1,this.boxes=function(){var t,e,i,n;for(n=[],t=0,e=(i=this.element.querySelectorAll("."+this.config.boxClass)).length;t<e;t++)s=i[t],n.push(s);return n}.call(this),this.all=function(){var t,e,i,n;for(n=[],t=0,e=(i=this.boxes).length;t<e;t++)s=i[t],n.push(s);return n}.call(this),this.boxes.length,this.disabled())this.resetStyle();else{for(t=0,e=(i=this.boxes).length;t<e;t++)s=i[t],this.applyStyle(s,!0);window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new n((a=this,function(t){var s,o,e,i,n;for(n=[],e=0,i=t.length;e<i;e++)o=t[e],n.push(function(){var t,e,i,n;for(n=[],t=0,e=(i=o.addedNodes||[]).length;t<e;t++)s=i[t],n.push(this.doSync(s));return n}.call(a));return n})).observe(document.body,{childList:!0,subtree:!0}):void 0},t.prototype.stop=function(){return this.stopped=!0,window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},t.prototype.sync=function(){return n.notSupported?this.doSync(this.element):void 0},t.prototype.doSync=function(t){var e,i,n,s,o;if(!this.stopped){if(null==t&&(t=this.element),1!==t.nodeType)return;for(o=[],i=0,n=(s=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;i<n;i++)e=s[i],a.call(this.all,e)<0?(this.applyStyle(e,!0),this.boxes.push(e),this.all.push(e),o.push(this.scrolled=!0)):o.push(void 0);return o}},t.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass},t.prototype.applyStyle=function(t,e){var i,n,s,o;return n=t.getAttribute("data-sppb-wow-duration"),i=t.getAttribute("data-sppb-wow-delay"),s=t.getAttribute("data-sppb-wow-iteration"),this.animate((o=this,function(){return o.customStyle(t,e,n,i,s)}))},t.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},t.prototype.resetStyle=function(){var t,e,i,n,s;for(s=[],e=0,i=(n=this.boxes).length;e<i;e++)t=n[e],s.push(t.setAttribute("style","visibility: visible;"));return s},t.prototype.customStyle=function(t,e,i,n,s){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),n&&this.vendorSet(t.style,{animationDelay:n}),s&&this.vendorSet(t.style,{animationIterationCount:s}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},t.prototype.vendors=["moz","webkit"],t.prototype.vendorSet=function(s,t){var o,a,r,e;for(o in e=[],t)a=t[o],s[""+o]=a,e.push(function(){var t,e,i,n;for(n=[],t=0,e=(i=this.vendors).length;t<e;t++)r=i[t],n.push(s[""+r+o.charAt(0).toUpperCase()+o.substr(1)]=a);return n}.call(this));return e},t.prototype.vendorCSS=function(t,e){var i,n,s,o,a,r;for(i=(n=window.getComputedStyle(t)).getPropertyCSSValue(e),o=0,a=(r=this.vendors).length;o<a;o++)s=r[o],i=i||n.getPropertyCSSValue("-"+s+"-"+e);return i},t.prototype.animationName=function(e){var i;try{i=this.vendorCSS(e,"animation-name").cssText}catch(t){i=window.getComputedStyle(e).getPropertyValue("animation-name")}return"none"===i?"":i},t.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},t.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},t.prototype.scrollHandler=function(){return this.scrolled=!0},t.prototype.scrollCallback=function(){var s;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var t,e,i,n;for(n=[],t=0,e=(i=this.boxes).length;t<e;t++)(s=i[t])&&(this.isVisible(s)?this.show(s):n.push(s));return n}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},t.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},t.prototype.isVisible=function(t){var e,i,n,s,o;return i=t.getAttribute("data-sppb-wow-offset")||this.config.offset,s=(o=window.pageYOffset)+Math.min(this.element.clientHeight,innerHeight)-i,e=(n=this.offsetTop(t))+t.clientHeight,n<=s&&o<=e},t.prototype.util=function(){return null!=this._util?this._util:this._util=new e},t.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},t}()}.call(this),jQuery(function(t){(new SPPBWOW).init()}),function(f){var v,b,e,m={},g=document,y=window,w=g.documentElement,i=f.expando;function n(){var t,e,i,n,s=f(),o=0;if(f.each(m,function(t,e){var i=e.data.selector,n=e.$element;s=s.add(i?n.find(i):n)}),t=s.length)for(v=v||((n={height:y.innerHeight,width:y.innerWidth}).height||!(e=g.compatMode)&&f.support.boxModel||(n={height:(i="CSS1Compat"===e?w:g.body).clientHeight,width:i.clientWidth}),n),b=b||{top:y.pageYOffset||w.scrollTop||g.body.scrollTop,left:y.pageXOffset||w.scrollLeft||g.body.scrollLeft};o<t;o++)if(f.contains(w,s[o])){var a,r,p,l=f(s[o]),c=l.height(),h=l.width(),d=l.offset(),u=l.data("inview");if(!b||!v)return;d.top+c>b.top&&d.top<b.top+v.height&&d.left+h>b.left&&d.left<b.left+v.width?(p=(a=b.left>d.left?"right":b.left+v.width<d.left+h?"left":"both")+"-"+(r=b.top>d.top?"bottom":b.top+v.height<d.top+c?"top":"both"),u&&u===p||l.data("inview",p).trigger("inview",[!0,a,r])):u&&l.data("inview",!1).trigger("inview",[!1])}}f.event.special.inview={add:function(t){m[t.guid+"-"+this[i]]={data:t,$element:f(this)},e||f.isEmptyObject(m)||(e=setInterval(n,250))},remove:function(t){try{delete m[t.guid+"-"+this[i]]}catch(t){}f.isEmptyObject(m)&&(clearInterval(e),e=null)}},f(y).bind("scroll resize scrollstop",function(){v=b=null}),!w.addEventListener&&w.attachEvent&&w.attachEvent("onfocusin",function(){b=null}),f(document).on("inview",".sppb-progress",function(t,e,i,n){var s=f(this).find(".sppb-progress-bar");e&&(s.css("width",s.data("width")),f(this).unbind("inview"))}),f.fn.sppbanimateNumbers=function(i,n,s,o){return this.each(function(){var t=f(this),e=parseInt(t.text().replace(/,/g,""));n=void 0===n||n,f({value:e}).animate({value:i},{duration:null==s?1e3:s,easing:null==o?"swing":o,step:function(){t.text(Math.floor(this.value)),n&&t.text(t.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"))},complete:function(){parseInt(t.text())!==i&&(t.text(i),n&&t.text(t.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")))}})})},f(document).on("inview",".sppb-animated-number",function(t,e,i,n){var s=f(this);e&&(s.sppbanimateNumbers(s.data("digit"),!1,s.data("duration")),s.unbind("inview"))}),f(document).on("inview",".sppb-pie-chart",function(t,e,i,n){var s=f(this);e&&(s.easyPieChart({barColor:s.data("barcolor"),trackColor:s.data("trackcolor"),scaleColor:!1,lineWidth:s.data("width"),size:s.data("size"),onStep:function(t,e,i){s.find(".sppb-chart-percent > span").text(Math.round(i)+"%")}}),s.unbind("inview"))})}(jQuery),jQuery(function(a){a(document).on("submit",".sppb-ajaxt-contact-form",function(t){t.preventDefault();var o=a(this),e=a(this).serializeArray(),i={option:"com_sppagebuilder",task:"ajax",addon:"ajax_contact","g-recaptcha-response":o.find("#g-recaptcha-response").val(),data:e};return a.ajax({type:"POST",data:i,beforeSend:function(){o.find(".fa").addClass("fa-spinner fa-spin")},success:function(t){var e=a.parseJSON(t);try{var i=a.parseJSON(e.data),n=i.content,s="json"}catch(t){n=e.data,s="strings"}"json"==s?i.status&&o.trigger("reset"):o.trigger("reset"),o.find(".fa-spin").removeClass("fa-spinner fa-spin"),o.next(".sppb-ajax-contact-status").html(n).fadeIn().delay(4e3).fadeOut(500)}}),!1})}),jQuery(function(o){o(document).on("submit",".sppb-optin-form",function(t){t.preventDefault();var s=o(this),e={option:"com_sppagebuilder",task:"ajax",addon:"optin_form",data:o(this).serializeArray()};return o.ajax({type:"POST",data:e,beforeSend:function(){s.find(".fa").addClass("fa-spinner fa-spin")},success:function(t){var e=o.parseJSON(t),i=o.parseJSON(e.data),n="sppb-alert sppb-alert-warning";if(i.status){n="sppb-alert sppb-alert-success";s.trigger("reset")}s.find(".fa-spin").removeClass("fa-spinner fa-spin"),s.next(".sppb-optin-form-status").html('<p class="'+n+'">'+i.content+"</p>").fadeIn().delay(4e3).fadeOut(1e3)}}),!1})}),jQuery(function(i){i(document).on("click",".sppb-magnific-popup",function(t){t.preventDefault();var e=i(this);e.magnificPopup({type:e.data("popup_type"),mainClass:e.data("mainclass")}).magnificPopup("open")})}),jQuery(function(e){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e(document).on("click touchend mouseenter mouseleave",".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap",function(t){e(this).toggleClass("flip")}),e(document).on("mouseenter",".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap",function(t){e(this).addClass("flip")}),e(document).on("mouseleave",".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap",function(t){e(this).removeClass("flip")})):(e(document).on("click",".sppb-addon-sppb-flibox.flipon-click .sppb-flipbox-panel, .threeD-flipbox.flipon-click .threeD-content-wrap",function(t){e(this).toggleClass("flip")}),e(document).on("mouseenter",".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap",function(){e(this).addClass("flip")}),e(document).on("mouseleave",".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap",function(){e(this).removeClass("flip")}))}),jQuery(function(i){new MutationObserver(function(t){t.forEach(function(t){var e=t.addedNodes;null!==e&&i(e).each(function(){i(this).find(".sppb-addon-countdown .sppb-countdown-timer").each(function(){var e=i(this),t=e.data("date")+" "+e.data("time");e.countdown(t,function(t){i(this).html(t.strftime('<div class="sppb-countdown-days sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%-D</span><span class="sppb-countdown-text">%!D: '+Joomla.JText._("COM_SPPAGEBUILDER_DAY")+","+Joomla.JText._("COM_SPPAGEBUILDER_DAYS")+';</span></div><div class="sppb-countdown-hours sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%H</span><span class="sppb-countdown-text">%!H: '+Joomla.JText._("COM_SPPAGEBUILDER_HOUR")+","+Joomla.JText._("COM_SPPAGEBUILDER_HOURS")+';</span></div><div class="sppb-countdown-minutes sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%M</span><span class="sppb-countdown-text">%!M:'+Joomla.JText._("COM_SPPAGEBUILDER_MINUTE")+","+Joomla.JText._("COM_SPPAGEBUILDER_MINUTES")+';</span></div><div class="sppb-countdown-seconds sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%S</span><span class="sppb-countdown-text">%!S:'+Joomla.JText._("COM_SPPAGEBUILDER_SECOND")+","+Joomla.JText._("COM_SPPAGEBUILDER_SECONDS")+";</span></div>")).on("finish.countdown",function(){i(this).html('<div class="sppb-countdown-finishedtext-wrap sppb-col-xs-12 sppb-col-sm-12 sppb-text-center"><h3 class="sppb-countdown-finishedtext">'+e.data("finish-text")+"</h3></div>")})})})})})}).observe(document.body,{childList:!0,subtree:!0})}),function(i){function t(){if("undefined"==typeof stickyParent&&(stickyParent=i('[data-sticky-it="true"]').parents(".sppb-section ")),!("undefined"==typeof stickyParent||0==stickyParent.length||i(window).width()<=767)){var t=stickyParent.offset();stickyParentWrap=stickyParent.parents(".sppb-sticky-wrap"),stickyParentWrap.hasClass("sppb-sticky-wrap")&&(t=stickyParentWrap.offset()),window.scrollY>=t.top&&!stickyParent.hasClass("sppb-sticky-it")?(stickyParent.wrap('<div class="sppb-sticky-wrap" style="height:'+stickyParent.outerHeight()+'px;"></div>'),stickyParent.addClass("sppb-sticky-it")):window.scrollY<t.top&&stickyParent.hasClass("sppb-sticky-it")&&(stickyParent.removeClass("sppb-sticky-it"),stickyParent.unwrap())}}window.sppbVideoBackgroundResize=function(t){t.find(".sppb-youtube-video-bg").removeClass("hidden");var e=t.innerWidth(),i=t.innerHeight();iframeW=e,iframeH=e*(9/16),marginTop=-Math.round((iframeH-i)/2),marginLeft=-Math.round((iframeW-e)/2),e/i<16/9&&(iframeW=i*(16/9),iframeH=i,marginLeft=-Math.round((iframeW-e)/2),marginTop=-Math.round((iframeH-i)/2)),t.find(".sppb-youtube-video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})},i(window).on("load resize",function(){i(".sppb-row-have-ext-bg").each(function(){sppbVideoBackgroundResize(i(this))})}),i(document).ready(function(){void 0!==jQuery.fn.parallax&&i('[data-sppb-parallax="on"]').parallax()}),i(document).on("click",'[data-scroll-to="true"]',function(t){t.preventDefault();var e=i(this).attr("href");i(this).parents(".sppb-link-list-wrap").find(".sppb-active").removeClass("sppb-active"),i(this).parent().addClass("sppb-active"),i("html, body").animate({scrollTop:i(e).offset().top},600)}),i(document).on("load",t),i(window).on("scroll resize",t),i(document).on("click",".sppb-responsive-bars",function(){i(this).toggleClass("open"),i(this).next().toggleClass("open")})}(jQuery);