b0y-101 Mini Shell


Current Path : E:/www/plan/components/com_sppagebuilder/assets/js/
File Upload :
Current File : E:/www/plan/components/com_sppagebuilder/assets/js/sppagebuilder.js

+function(t){"use strict";var e='[data-dismiss="sppb-alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.2.0",i.prototype.close=function(e){function i(){s.detach().trigger("closed.sppb.alert").remove()}var n=t(this),o=n.attr("data-target");o||(o=(o=n.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);e&&e.preventDefault(),s.length||(s=n.hasClass("sppb-alert")?n:n.parent()),s.trigger(e=t.Event("close.sppb.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("sppb-fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var n=t.fn.spbalert;t.fn.spbalert=function(e){return this.each(function(){var n=t(this),o=n.data("sppb.alert");o||n.data("sppb.alert",o=new i(this)),"string"==typeof e&&o[e].call(n)})},t.fn.spbalert.Constructor=i,t.fn.spbalert.noConflict=function(){return t.fn.spbalert=n,this},t(document).on("click.sppb.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("sppb.carousel"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:s.slide;o||n.data("sppb.carousel",o=new i(this,s)),"number"==typeof e?o.to(e):r?o[r]():s.interval&&o.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.sppb.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".sppb-carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.sppb.carousel",t.proxy(this.pause,this)).on("mouseleave.sppb.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".sppb-item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,n=this.getItemIndex(this.$active=this.$element.find(".sppb-item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.sppb.carousel",function(){i.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,i){var n=this.$element.find(".sppb-item.active"),o=i||n[e](),s=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",p=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".sppb-item")[a]()}if(o.hasClass("active"))return this.sliding=!1;var l=o[0],h=t.Event("slide.sppb.carousel",{relatedTarget:l,direction:r});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(o)]);c&&c.addClass("active")}var d=t.Event("slid.sppb.carousel",{relatedTarget:l,direction:r});return t.support.transition&&this.$element.hasClass("sppb-slide")?(o.addClass(e),o[0].offsetWidth,n.addClass(r),o.addClass(r),n.one("bsTransitionEnd",function(){o.removeClass([e,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),p.sliding=!1,setTimeout(function(){p.$element.trigger(d)},0)}).emulateTransitionEnd(1e3*n.css("transition-duration").slice(0,-1))):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),s&&this.cycle(),this}};var n=t.fn.sppbcarousel;t.fn.sppbcarousel=e,t.fn.sppbcarousel.Constructor=i,t.fn.sppbcarousel.noConflict=function(){return t.fn.sppbcarousel=n,this},t(document).ready(function(){t(".sppb-carousel").each(function(e){var i=t(this).find(".sppb-item"),n="sppb-carousel"+(e+1),o="";t(this).attr("id",n);for(var s=0;s<i.length;s++)o+=0==s?'<li data-sppb-target="#'+n+'" class="active" data-sppb-slide-to="0"></li>':'\n<li data-sppb-target="#'+n+'" data-sppb-slide-to="'+s+'"></li>';t(this).find(">.sppb-carousel-indicators").html(o),t(this).find(".sppb-carousel-control").attr("href","#"+n),t(this).find(".sppb-item").first().addClass("active")})}),t(document).on("click.sppb.carousel.data-api","[data-slide], [data-sppb-slide-to]",function(i){var n,o=t(this),s=t(o.attr("data-sppb-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("sppb-carousel")){var r=t.extend({},s.data(),o.data()),a=o.attr("data-sppb-slide-to");a&&(r.interval=!1),e.call(s,r),a&&s.data("sppb.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-sppb-ride="sppb-carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";t(document).on("click",".sppb-panel-heading",function(e){e.preventDefault();var i=t(this).closest(".sppb-panel-group").find(">div"),n=i.find(".sppb-panel-heading"),o=i.find(".sppb-panel-collapse");t(this).hasClass("active")?(t(this).removeClass("active"),o.slideUp()):(n.removeClass("active"),o.slideUp(),t(this).addClass("active").next().slideDown())})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("sppb.tab");o||n.data("sppb.tab",o=new i(this)),"string"==typeof e&&o[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=i.find(".active:last a")[0],s=t.Event("show.sppb.tab",{relatedTarget:o});if(e.trigger(s),!s.isDefaultPrevented()){var r=t(n);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.sppb.tab",relatedTarget:o})})}}},i.prototype.activate=function(e,i,n){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("sppb-fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var s=i.find("> .active"),r=n&&t.support.transition&&s.hasClass("sppb-fade");r?s.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),s.removeClass("in")};var n=t.fn.sppbtab;t.fn.sppbtab=e,t.fn.sppbtab.Constructor=i,t.fn.sppbtab.noConflict=function(){return t.fn.sppbtab=n,this},t(document).ready(function(){t(".sppb-tab").each(function(e){var i="sppb-tab"+(e+1);t(this).find(">.sppb-nav").children().each(function(e){t(this).find(">a").attr("href","#"+i+"-"+(e+1))}),t(this).find(">.sppb-tab-content").children().each(function(e){t(this).attr("id",i+"-"+(e+1))})})}),t(document).on("click.sppb.tab.data-api",'[data-toggle="sppb-tab"], [data-toggle="sppb-pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("sppbtooltip",t,e)};e.VERSION="3.2.0",e.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}},e.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var o=this.options.trigger.split(" "),s=o.length;s--;){var r=o[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",p="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(p+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("sppb."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("sppb."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("sppb."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("sppb."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)},e.prototype.show=function(){var e=t.Event("show.sppb."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("sppb-fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,p=a.test(r);p&&(r=r.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("sppb."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var l=this.getPosition(),h=o[0].offsetWidth,c=o[0].offsetHeight;if(p){var d=r,u=this.$element.parent(),f=this.getPosition(u);r="bottom"==r&&l.top+l.height+c-f.scroll>f.height?"top":"top"==r&&l.top-f.scroll-c<0?"bottom":"right"==r&&l.right+h>f.width?"left":"left"==r&&l.left-h<f.left?"right":r,o.removeClass(d).addClass(r)}var v=this.getCalculatedOffset(r,l,h,c);this.applyPlacement(v,r);var b=function(){n.$element.trigger("shown.sppb."+n.type),n.hoverState=null};t.support.transition&&this.$tip.hasClass("sppb-")?o.one("bsTransitionEnd",b).emulateTransitionEnd(150):b()}},e.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,s=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var p=n[0].offsetWidth,l=n[0].offsetHeight;"top"==i&&l!=s&&(e.top=e.top+s-l);var h=this.getViewportAdjustedDelta(i,e,p,l);h.left?e.left+=h.left:e.top+=h.top;var c=h.left?2*h.left-o+p:2*h.top-s+l,d=h.left?"left":"top",u=h.left?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(c,n[0][u],d)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},e.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")},e.prototype.hide=function(){function e(){"in"!=i.hoverState&&n.detach(),i.$element.trigger("hidden.sppb."+i.type)}var i=this,n=this.tip(),o=t.Event("hide.sppb."+this.type);if(this.$element.removeAttr("aria-describedby"),this.$element.trigger(o),!o.isDefaultPrevented())return n.removeClass("in"),t.support.transition&&this.$tip.hasClass("sppb-fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this},e.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","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:n?t(window).width():e.outerWidth(),height:n?t(window).height():e.outerHeight()},n?{top:0,left:0}:e.offset())},e.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}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){var o={top:0,left:0};if(!this.$viewport)return o;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-r.scroll,p=e.top+s-r.scroll+n;a<r.top?o.top=r.top-a:p>r.top+r.height&&(o.top=r.top+r.height-p)}else{var l=e.left-s,h=e.left+s+i;l<r.left?o.left=r.left-l:h>r.width&&(o.left=r.left+r.width-h)}return o},e.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)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".sppb-tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("sppb."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("sppb."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("sppb."+this.type)};var i=t.fn.sppbtooltip;t.fn.sppbtooltip=function(i){return this.each(function(){var n=t(this),o=n.data("sppb.tooltip"),s="object"==typeof i&&i;(o||"destroy"!=i)&&(o||n.data("sppb.tooltip",o=new e(this,s)),"string"==typeof i&&o[i]())})},t.fn.sppbtooltip.Constructor=e,t.fn.sppbtooltip.noConflict=function(){return t.fn.sppbtooltip=i,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("sppbpopover",t,e)};if(!t.fn.sppbtooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.2.0",e.DEFAULTS=t.extend({},t.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>'}),e.prototype=t.extend({},t.fn.sppbtooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.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()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.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)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.sppbpopover;t.fn.sppbpopover=function(i){return this.each(function(){var n=t(this),o=n.data("sppb.popover"),s="object"==typeof i&&i;(o||"destroy"!=i)&&(o||n.data("sppb.popover",o=new e(this,s)),"string"==typeof i&&o[i]())})},t.fn.sppbpopover.Constructor=e,t.fn.sppbpopover.noConflict=function(){return t.fn.sppbpopover=i,this}}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||t(n).trigger(t.support.transition.end)},e),this},t(function(){t.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}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),"undefined"!=typeof jQuery&&"undefined"!=typeof MooTools&&function(t){t(document).ready(function(){t(".sppb-carousel").each(function(e,i){t(this)[e].slide=null})})}(jQuery),function(t,e,i,n){"use strict";function o(e,i,n){this.element=t(e),this._defaults=r,this._name=s,i=i.replace(/\.\w*$/,""),this.settings=t.extend({},r,n),this.path=i,this.init()}var s="vide",r={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%"},a=/iPad|iPhone|iPod/i.test(n.userAgent),p=/Android/i.test(n.userAgent);t[s]={lookup:[]};o.prototype.init=function(){var e=this;this.wrapper=t("<div>");var i=function(t){for(var e,i=(t=""+t).split(/\s+/),n="50%",o="50%",s=0,r=i.length;s<r;s++)"left"===(e=i[s])?n="0%":"right"===e?n="100%":"top"===e?o="0%":"bottom"===e?o="100%":"center"===e?0===s?n="50%":o="50%":0===s?n=e:o=e;return{x:n,y:o}}(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":i.x+" "+i.y}),t(this.element).data("vide-image")&&this.wrapper.css("background-image","url("+t(this.element).data("vide-image")+")"),"static"===this.element.css("position")&&this.element.css("position","relative"),this.element.prepend(this.wrapper),!a&&!p){var n="";t(this.element).data("vide-mp4")&&(n+="<source src='"+t(this.element).data("vide-mp4")+"' type='video/mp4'>"),t(this.element).data("vide-ogv")&&(n+="<source src='"+t(this.element).data("vide-ogv")+"' type='video/ogg'>"),this.video=t("<video>"+n+"</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:i.y,left:i.x,"-webkit-transform":"translate(-"+i.x+", -"+i.y+")","-ms-transform":"translate(-"+i.x+", -"+i.y+")",transform:"translate(-"+i.x+", -"+i.y+")"}),this.video.bind("loadedmetadata."+s,function(){e.video.css("visibility","visible"),e.resize()}),t(this.element).bind("resize."+s,function(){e.resize()})}},o.prototype.getVideoObject=function(){return this.video?this.video[0]:null},o.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();n/e>i/t?this.video.css({width:n+2,height:"auto"}):this.video.css({width:"auto",height:i+2})}},o.prototype.destroy=function(){this.element.unbind(s),this.video&&this.video.unbind(s),delete t[s].lookup[this.index],this.element.removeData(s),this.wrapper.remove()},t.fn[s]=function(e,i){var n;return this.each(function(){(n=t.data(this,s))&&n.destroy(),(n=new o(this,e,i)).index=t[s].lookup.push(n)-1,t.data(this,s,n)}),this},t(i).ready(function(){t(e).bind("resize."+s,function(){for(var e,i=t[s].lookup.length,n=0;n<i;n++)(e=t[s].lookup[n])&&e.resize()}),t(i).find("[data-"+s+"-bg]").each(function(e,i){var n=t(i),o=n.data(s+"-options");o=o?function(t){var e,i,n,o,s={};for(i=0,n=(e=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(",")).length;i<n;i++)e[i]=e[i].split(":"),(o=e[i][1])||(o=void 0),("string"==typeof o||o instanceof String)&&(o="true"===o||"false"!==o&&o),("string"==typeof o||o instanceof String)&&(o=isNaN(o)?o:+o),s[e[i][0]]=o;return s}(o):{},n[s]("",o)})})}(window.jQuery,window,document,navigator),function(){var t,e,i,n=function(t,e){return function(){return t.apply(e,arguments)}},o=[].indexOf||function(t){for(var e=0,i=this.length;i>e;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,o;for(e=i=0,n=(o=this.keys).length;n>i;e=++i)if(o[e]===t)return this.values[e]},t.prototype.set=function(t,e){var i,n,o,s;for(i=n=0,o=(s=this.keys).length;o>n;i=++n)if(s[i]===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=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 s(t){null==t&&(t={}),this.scrollCallback=n(this.scrollCallback,this),this.scrollHandler=n(this.scrollHandler,this),this.start=n(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),this.animationNameCache=new i}return s.prototype.defaults={boxClass:"sppb-wow",animateClass:"sppb-animated",offset:0,mobile:!0,live:!0},s.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=[]},s.prototype.start=function(){var e,i,n,o;if(this.stopped=!1,this.boxes=function(){var t,i,n,o;for(o=[],t=0,i=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;i>t;t++)e=n[t],o.push(e);return o}.call(this),this.all=function(){var t,i,n,o;for(o=[],t=0,i=(n=this.boxes).length;i>t;t++)e=n[t],o.push(e);return o}.call(this),this.boxes.length,this.disabled())this.resetStyle();else{for(i=0,n=(o=this.boxes).length;n>i;i++)e=o[i],this.applyStyle(e,!0);window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new t(function(t){return function(e){var i,n,o,s,r;for(r=[],o=0,s=e.length;s>o;o++)n=e[o],r.push(function(){var t,e,o,s;for(s=[],t=0,e=(o=n.addedNodes||[]).length;e>t;t++)i=o[t],s.push(this.doSync(i));return s}.call(t));return r}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},s.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},s.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},s.prototype.doSync=function(t){var e,i,n,s,r;if(!this.stopped){if(null==t&&(t=this.element),1!==t.nodeType)return;for(r=[],i=0,n=(s=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;n>i;i++)e=s[i],o.call(this.all,e)<0?(this.applyStyle(e,!0),this.boxes.push(e),this.all.push(e),r.push(this.scrolled=!0)):r.push(void 0);return r}},s.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass},s.prototype.applyStyle=function(t,e){var i,n,o;return n=t.getAttribute("data-sppb-wow-duration"),i=t.getAttribute("data-sppb-wow-delay"),o=t.getAttribute("data-sppb-wow-iteration"),this.animate(function(s){return function(){return s.customStyle(t,e,n,i,o)}}(this))},s.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},s.prototype.resetStyle=function(){var t,e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;i>e;e++)t=n[e],o.push(t.setAttribute("style","visibility: visible;"));return o},s.prototype.customStyle=function(t,e,i,n,o){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}),o&&this.vendorSet(t.style,{animationIterationCount:o}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},s.prototype.vendors=["moz","webkit"],s.prototype.vendorSet=function(t,e){var i,n,o,s;s=[];for(i in e)n=e[i],t[""+i]=n,s.push(function(){var e,s,r,a;for(a=[],e=0,s=(r=this.vendors).length;s>e;e++)o=r[e],a.push(t[""+o+i.charAt(0).toUpperCase()+i.substr(1)]=n);return a}.call(this));return s},s.prototype.vendorCSS=function(t,e){var i,n,o,s,r,a;for(i=(n=window.getComputedStyle(t)).getPropertyCSSValue(e),s=0,r=(a=this.vendors).length;r>s;s++)o=a[s],i=i||n.getPropertyCSSValue("-"+o+"-"+e);return i},s.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(i){e=window.getComputedStyle(t).getPropertyValue("animation-name")}return"none"===e?"":e},s.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},s.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},s.prototype.scrollHandler=function(){return this.scrolled=!0},s.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;i>e;e++)(t=n[e])&&(this.isVisible(t)?this.show(t):o.push(t));return o}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},s.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},s.prototype.isVisible=function(t){var e,i,n,o,s;return i=t.getAttribute("data-sppb-wow-offset")||this.config.offset,s=window.pageYOffset,o=s+Math.min(this.element.clientHeight,innerHeight)-i,n=this.offsetTop(t),e=n+t.clientHeight,o>=n&&e>=s},s.prototype.util=function(){return null!=this._util?this._util:this._util=new e},s.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},s}()}.call(this),jQuery(function(t){(new SPPBWOW).init()}),function(t){function e(){var e,o=t(),l=0;if(t.each(s,function(t,e){var i=e.data.selector,n=e.$element;o=o.add(i?n.find(i):n)}),e=o.length)for(i=i||function(){var e,i,n={height:a.innerHeight,width:a.innerWidth};return n.height||!(e=r.compatMode)&&t.support.boxModel||(n={height:(i="CSS1Compat"===e?p:r.body).clientHeight,width:i.clientWidth}),n}(),n=n||{top:a.pageYOffset||p.scrollTop||r.body.scrollTop,left:a.pageXOffset||p.scrollLeft||r.body.scrollLeft};l<e;l++)if(t.contains(p,o[l])){var h,c,d,u=t(o[l]),f={height:u.height(),width:u.width()},v=u.offset(),b=u.data("inview");if(!n||!i)return;v.top+f.height>n.top&&v.top<n.top+i.height&&v.left+f.width>n.left&&v.left<n.left+i.width?(d=(h=n.left>v.left?"right":n.left+i.width<v.left+f.width?"left":"both")+"-"+(c=n.top>v.top?"bottom":n.top+i.height<v.top+f.height?"top":"both"),b&&b===d||u.data("inview",d).trigger("inview",[!0,h,c])):b&&u.data("inview",!1).trigger("inview",[!1])}}var i,n,o,s={},r=document,a=window,p=r.documentElement,l=t.expando;t.event.special.inview={add:function(i){s[i.guid+"-"+this[l]]={data:i,$element:t(this)},o||t.isEmptyObject(s)||(o=setInterval(e,250))},remove:function(e){try{delete s[e.guid+"-"+this[l]]}catch(t){}t.isEmptyObject(s)&&(clearInterval(o),o=null)}},t(a).bind("scroll resize scrollstop",function(){i=n=null}),!p.addEventListener&&p.attachEvent&&p.attachEvent("onfocusin",function(){n=null}),t(document).on("inview",".sppb-progress",function(e,i,n,o){var s=t(this).find(".sppb-progress-bar");i&&(s.css("width",s.data("width")),t(this).unbind("inview"))}),t.fn.sppbanimateNumbers=function(e,i,n,o){return this.each(function(){var s=t(this),r=parseInt(s.text().replace(/,/g,""));i=void 0===i||i,t({value:r}).animate({value:e},{duration:void 0==n?1e3:n,easing:void 0==o?"swing":o,step:function(){s.text(Math.floor(this.value)),i&&s.text(s.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"))},complete:function(){parseInt(s.text())!==e&&(s.text(e),i&&s.text(s.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")))}})})},t(document).on("inview",".sppb-animated-number",function(e,i,n,o){var s=t(this);i&&(s.sppbanimateNumbers(s.data("digit"),!1,s.data("duration")),s.unbind("inview"))}),t(document).on("inview",".sppb-pie-chart",function(e,i,n,o){var s=t(this);i&&(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(t){t(document).on("submit",".sppb-ajaxt-contact-form",function(e){e.preventDefault();var i=t(this),n=t(this).serializeArray(),o={option:"com_sppagebuilder",task:"ajax",addon:"ajax_contact","g-recaptcha-response":i.find("#g-recaptcha-response").val(),data:n};return t.ajax({type:"POST",data:o,beforeSend:function(){i.find(".fa").addClass("fa-spinner fa-spin")},success:function(e){var n=t.parseJSON(e);try{var o=t.parseJSON(n.data),s=o.content,r="json"}catch(t){var s=n.data,r="strings"}"json"==r?o.status&&i.trigger("reset"):i.trigger("reset"),i.find(".fa-spin").removeClass("fa-spinner fa-spin"),i.next(".sppb-ajax-contact-status").html(s).fadeIn().delay(4e3).fadeOut(500)}}),!1})}),jQuery(function(t){t(document).on("submit",".sppb-optin-form",function(e){e.preventDefault();var i=t(this),n={option:"com_sppagebuilder",task:"ajax",addon:"optin_form",data:t(this).serializeArray()};return t.ajax({type:"POST",data:n,beforeSend:function(){i.find(".fa").addClass("fa-spinner fa-spin")},success:function(e){var n=t.parseJSON(e),o=t.parseJSON(n.data),s="sppb-alert sppb-alert-warning";if(o.status){s="sppb-alert sppb-alert-success";i.trigger("reset")}i.find(".fa-spin").removeClass("fa-spinner fa-spin"),i.next(".sppb-optin-form-status").html('<p class="'+s+'">'+o.content+"</p>").fadeIn().delay(4e3).fadeOut(1e3)}}),!1})}),jQuery(function(t){t(document).on("click",".sppb-magnific-popup",function(e){e.preventDefault();var i=t(this);i.magnificPopup({type:i.data("popup_type"),mainClass:i.data("mainclass")}).magnificPopup("open")})}),jQuery(function(t){t(document).on("click",".sppb-addon-sppb-flibox.flipon-click .sppb-flipbox-panel, .threeD-flipbox.flipon-click .threeD-content-wrap",function(e){t(this).toggleClass("flip")}),t(document).on("mouseenter",".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap",function(){t(this).addClass("flip")}),t(document).on("mouseleave",".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap",function(){t(this).removeClass("flip")})}),jQuery(function(t){new MutationObserver(function(e){e.forEach(function(e){var i=e.addedNodes;if(null!==i){t(i).each(function(){t(this).find(".sppb-addon-countdown .sppb-countdown-timer").each(function(){var e=t(this),i=e.data("date")+" "+e.data("time");e.countdown(i,function(i){t(this).html(i.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(){t(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(t){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})},t(window).on("load resize",function(){t(".sppb-row-have-ext-bg").each(function(){sppbVideoBackgroundResize(t(this))})})}(jQuery);

Copyright © 2019 by b0y-101