function resizeMarginAndPaddingForElemJS(n){function ht(){var n=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(n)?"Windows Phone":/android/i.test(n)?"Android":/iPad|iPhone|iPod/.test(n)&&!window.MSStream?"iOS":"unknown"}var u,f,i,r,a="desktop",t=function(t,i){i!=undefined&&n.setAttribute(t,i);var r=n.getAttribute(t);return r?r:undefined},v=function(n,i,r){var u=t(i);return u==undefined?r:u},p=function(t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(n.className)},k=window,rt=document,d=rt.documentElement,g=rt.getElementsByTagName("body")[0],w=k.innerWidth||d.clientWidth||g.clientWidth,ct=k.innerHeight||d.clientHeight||g.clientHeight,ut=ht(),tt,it,b,e,l,nt,ot,st,o,s,h,c;if((ut=="Android"||ut=="iOS")&&(w=window.screen.availWidth||k.innerWidth||d.clientWidth||g.clientWidth,ct=window.screen.availHeight||k.innerHeight||d.clientHeight||g.clientHeight),w<768?(a="mobile",u=t("margin-mobile-top"),f=t("margin-mobile-bottom"),i=t("margin-mobile-left"),r=t("margin-mobile-right")):w>=768&&w<1024?(a="tablet-portrait",u=t("margin-tablet-portrait-top"),f=t("margin-tablet-portrait-bottom"),i=t("margin-tablet-portrait-left"),r=t("margin-tablet-portrait-right")):w>=1024&&w<1200?(a="tablet-landscape",u=t("margin-tablet-top"),f=t("margin-tablet-bottom"),i=t("margin-tablet-left"),r=t("margin-tablet-right")):(a="desktop",u=t("margin-desktop-top"),f=t("margin-desktop-bottom-bottom"),i=t("margin-desktop-left"),r=t("margin-desktop-right")),tt=!1,it=!1,u==undefined&&(u=v(n,"margin-desktop-top","0"),u!=undefined&&parseInt(u)<0&&(u="0",f="0",tt=!0)),u!=undefined&&n.style.setProperty("margin-top",u+"px","important"),f!=undefined||tt||(f=v(n,"margin-desktop-bottom","0"),f!=undefined&&parseInt(f)<0&&(u="0",f="0")),f!=undefined&&n.style.setProperty("margin-bottom",f+"px","important"),i==undefined&&(b=v(n,"margin-desktop-left",""),b!=""&&(e=n.offsetLeft+n.offsetWidth+parseInt(b),e=e1200||e?t("margin-desktop-left"):0,i!=undefined&&parseInt(i)<0&&(i="0",r="0",it=!0))),i!=undefined&&n.style.setProperty("margin-left",i+"px","important"),r!=undefined||it||(b=v(n,"margin-desktop-right",""),b!=""&&(e=n.offsetLeft+n.offsetWidth+parseInt(b),e=e1200||e?t("margin-desktop-right"):0,r!=undefined&&parseInt(r)<0&&(i="0",r="0"))),r!=undefined&&n.style.setProperty("margin-right",r+"px","important"),!p("appdrag-button"))if((i!=undefined&&i!="0"||r!=undefined&&r!="0")&&/col-sm/.test(t("class"))){var ft=t("class").match(/col-md-(\d+)/),et=t("class").match(/col-smp-(\d+)/),y="";a=="desktop"&&(ft?y=ft[0].replace("col-md-",""):(l=t("class").match(/col-sm-(\d+)/),y=l?l[0].replace("col-sm-",""):12));a=="tablet-landscape"&&(l=t("class").match(/col-sm-(\d+)/),y=l?l[0].replace("col-sm-",""):12);a=="tablet-portrait"&&(et?y=et[0].replace("col-smp-",""):(l=t("class").match(/col-sm-(\d+)/),y=l?l[0].replace("col-sm-",""):12));a=="mobile"&&(nt=t("class").match(/col-xs-(\d+)/),y=nt&&nt!=undefined?nt[0].replace("col-xs-",""):12);ot=i*1+r*1;st=parseFloat(y)/12*100;n.style.width="calc("+st+"% - "+ot+"px)"}else n.style.width="";window.innerWidth<767?(o=t("padding-mobile-top"),s=t("padding-mobile-bottom"),h=t("padding-mobile-left"),c=t("padding-mobile-right")):window.innerWidth>=767&&window.innerWidth<1024?(o=t("padding-tablet-portrait-top"),s=t("padding-tablet-portrait-bottom"),h=t("padding-tablet-portrait-left"),c=t("padding-tablet-portrait-right")):window.innerWidth>=1024&&window.innerWidth<=1200&&(o=t("padding-tablet-top"),s=t("padding-tablet-bottom"),h=t("padding-tablet-left"),c=t("padding-tablet-right"));o==undefined&&(o=v(n,"padding-desktop-top",""),o==""&&(o=parseFloat(n.style.paddingTop),t("padding-desktop-top",o)));o!=undefined&&n.style.setProperty("padding-top",o+"px","important");s==undefined&&(s=v(n,"padding-desktop-bottom",""),s==""&&(s=parseFloat(n.style.paddingBottom),t("padding-desktop-bottom",s)));s!=undefined&&n.style.setProperty("padding-bottom",s+"px","important");h==undefined&&(h=v(n,"padding-desktop-left",""),h==""&&(h=parseFloat(n.style.paddingLeft),t("padding-desktop-left",h)));h!=undefined&&n.style.setProperty("padding-left",h+"px","important");c==undefined&&(c=v(n,"padding-desktop-right",""),c==""&&(c=parseFloat(n.style.paddingRight),t("padding-desktop-right",c)));c!=undefined&&n.style.setProperty("padding-right",c+"px","important");(p("appdrag-button-primary")||p("appdrag-button-secondary"))&&!p("custom-padding")&&(n.style.paddingRight="",n.style.paddingLeft="",n.style.paddingBottom="",n.style.paddingTop="",n.style.padding="");(p("appdrag-sidebar-left")||p("appdrag-sidebar-right"))&&typeof handleFixedSidebars!="undefined"&&handleFixedSidebars()}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance");}function _iterableToArray(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n)){for(var t=0,i=new Array(n.length);t1024&&t[0].className.indexOf("appallin-universal-transparent-header")==-1&&t[0].className.indexOf("appallin-universal-smooth-header")==-1?t[0].offsetHeight+"px":"0px":"0px",n=document.getElementsByClassName("appallin-universal-transparent-header"),!n.length)return;n=n[0];n.className=n.className.replace(/\bappallin-universal-smooth-header\b/,"");n.className=n.className.replace(/\bappallin-universal-transparent-header\b/,"appallin-universal-transparent-header-d");i=window.getComputedStyle(n,null).getPropertyValue("background-color");function r(){document.documentElement.scrollTop||document.body.scrollTop?n.style.setProperty("background-color",i,"important"):n.style.setProperty("background-color","transparent","important")}r();setTimeout(function(){n.className=n.className+" appallin-universal-smooth-header"},20);window.onscroll=r}}function AppDrag(){ /*! iScroll v5.2.0-snapshot ~ (c) 2008-2017 Matteo Spinelli ~ http://cubiq.org/license */ !function(n,t,i){function u(i,u){for(var f in this.wrapper="string"==typeof i?t.querySelector(i):i,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={disablePointer:!r.hasPointer,disableTouch:r.hasPointer||!r.hasTouch,disableMouse:r.hasPointer||r.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:void 0===n.onmousedown},u)this.options[f]=u[f];this.translateZ=this.options.HWCompositing&&r.hasPerspective?" translateZ(0)":"";this.options.useTransition=r.hasTransition&&this.options.useTransition;this.options.useTransform=r.hasTransform&&this.options.useTransform;this.options.eventPassthrough=!0===this.options.eventPassthrough?"vertical":this.options.eventPassthrough;this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault;this.options.scrollY="vertical"!=this.options.eventPassthrough&&this.options.scrollY;this.options.scrollX="horizontal"!=this.options.eventPassthrough&&this.options.scrollX;this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough;this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold;this.options.bounceEasing="string"==typeof this.options.bounceEasing?r.ease[this.options.bounceEasing]||r.ease.circular:this.options.bounceEasing;this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling;!0===this.options.tap&&(this.options.tap="tap");this.options.useTransition||this.options.useTransform||/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative");this.x=0;this.y=0;this.directionX=0;this.directionY=0;this._events={};this._init();this.refresh();this.scrollTo(this.options.startX,this.options.startY);this.enable()}var f=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){n.setTimeout(t,1e3/60)},r=function(){function u(n){return!1!==e&&(""===e?n:e+n.charAt(0).toUpperCase()+n.substr(1))}var r={},f=t.createElement("div").style,e=function(){for(var t=["t","webkitT","MozT","msT","OT"],n=0,i=t.length;n0&&(o=f?f/2.5*(s/8):0,h=(c=i.abs(n)+o)/s),{destination:i.round(o),duration:h}},o=u("transform"),r.extend(r,{hasTransform:!1!==o,hasPerspective:u("perspective")in f,hasTouch:"ontouchstart"in n,hasPointer:!(!n.PointerEvent&&!n.MSPointerEvent),hasTransition:u("transition")in f}),r.isBadAndroid=function(){var i=n.navigator.appVersion,t;return/Android/.test(i)&&!/Chrome\/\d/.test(i)?(t=i.match(/Safari\/(\d+.\d)/),!(t&&"object"==typeof t&&t.length>=2)||parseFloat(t[1])<535.19):!1}(),r.extend(r.style={},{transform:o,transitionTimingFunction:u("transitionTimingFunction"),transitionDuration:u("transitionDuration"),transitionDelay:u("transitionDelay"),transformOrigin:u("transformOrigin"),touchAction:u("touchAction")}),r.hasClass=function(n,t){return new RegExp("(^|\\s)"+t+"(\\s|$)").test(n.className)},r.addClass=function(n,t){if(!r.hasClass(n,t)){var i=n.className.split(" ");i.push(t);n.className=i.join(" ")}},r.removeClass=function(n,t){if(r.hasClass(n,t)){var i=new RegExp("(^|\\s)"+t+"(\\s|$)","g");n.className=n.className.replace(i," ")}},r.offset=function(n){for(var t=-n.offsetLeft,i=-n.offsetTop;n=n.offsetParent;)t-=n.offsetLeft,i-=n.offsetTop;return{left:t,top:i}},r.preventDefaultException=function(n,t){for(var i in t)if(t[i].test(n[i]))return!0;return!1},r.extend(r.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),r.extend(r.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(n){return n*(2-n)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(n){return i.sqrt(1- --n*n)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(n){return(n-=1)*n*(5*n+4)+1}},bounce:{style:"",fn:function(n){return(n/=1)<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}},elastic:{style:"",fn:function(n){return 0===n?0:1==n?1:.4*i.pow(2,-10*n)*i.sin((n-.055)*2*i.PI/.22)+1}}}),r.tap=function(n,i){var r=t.createEvent("Event");r.initEvent(i,!0,!0);r.pageX=n.pageX;r.pageY=n.pageY;n.target.dispatchEvent(r)},r.click=function(i){var r,u=i.target;/(SELECT|INPUT|TEXTAREA)/i.test(u.tagName)||((r=t.createEvent(n.MouseEvent?"MouseEvents":"Event")).initEvent("click",!0,!0),r.view=i.view||n,r.detail=1,r.screenX=u.screenX||0,r.screenY=u.screenY||0,r.clientX=u.clientX||0,r.clientY=u.clientY||0,r.ctrlKey=!!i.ctrlKey,r.altKey=!!i.altKey,r.shiftKey=!!i.shiftKey,r.metaKey=!!i.metaKey,r.button=0,r.relatedTarget=null,r._constructed=!0,u.dispatchEvent(r))},r.getTouchAction=function(n,t){var i="none";return"vertical"===n?i="pan-y":"horizontal"===n&&(i="pan-x"),t&&"none"!=i&&(i+=" pinch-zoom"),i},r.getRect=function(n){if(n instanceof SVGElement){var t=n.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}return{top:n.offsetTop,left:n.offsetLeft,width:n.offsetWidth,height:n.offsetHeight}},r}();u.prototype={version:"5.2.0-snapshot",_init:function(){this._initEvents()},destroy:function(){this._initEvents(!0);clearTimeout(this.resizeTimeout);this.resizeTimeout=null;this._execEvent("destroy")},_transitionEnd:function(n){n.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(n){if((1==r.eventType[n.type]||0===(n.which?n.button:n.button<2?0:4==n.button?1:2))&&this.enabled&&(!this.initiated||r.eventType[n.type]===this.initiated)){!this.options.preventDefault||r.isBadAndroid||r.preventDefaultException(n.target,this.options.preventDefaultException)||n.preventDefault();var t,u=n.touches?n.touches[0]:n;this.initiated=r.eventType[n.type];this.moved=!1;this.distX=0;this.distY=0;this.directionX=0;this.directionY=0;this.directionLocked=0;this.startTime=r.getTime();this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,t=this.getComputedPosition(),this._translate(i.round(t.x),i.round(t.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd"));this.startX=this.x;this.startY=this.y;this.absStartX=this.x;this.absStartY=this.y;this.pointX=u.pageX;this.pointY=u.pageY;this._execEvent("beforeScrollStart")}},_move:function(n){if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&n.preventDefault();var f,e,o,s,h=n.touches?n.touches[0]:n,t=h.pageX-this.pointX,u=h.pageY-this.pointY,c=r.getTime();if(this.pointX=h.pageX,this.pointY=h.pageY,this.distX+=t,this.distY+=u,o=i.abs(this.distX),s=i.abs(this.distY),!(c-this.endTime>300&&o<10&&s<10)){if(this.directionLocked||this.options.freeScroll||(this.directionLocked=o>s+this.options.directionLockThreshold?"h":s>=o+this.options.directionLockThreshold?"v":"n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)n.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);u=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)n.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);t=0}t=this.hasHorizontalScroll?t:0;u=this.hasVerticalScroll?u:0;f=this.x+t;e=this.y+u;(f>0||f0?0:this.maxScrollX);(e>0||e0?0:this.maxScrollY);this.directionX=t>0?-1:t<0?1:0;this.directionY=u>0?-1:u<0?1:0;this.moved||this._execEvent("scrollStart");this.moved=!0;this._translate(f,e);c-this.startTime>300&&(this.startTime=c,this.startX=this.x,this.startY=this.y)}}},_end:function(n){if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&!r.preventDefaultException(n.target,this.options.preventDefaultException)&&n.preventDefault();n.changedTouches&&n.changedTouches[0];var e,o,f=r.getTime()-this.startTime,t=i.round(this.x),u=i.round(this.y),c=i.abs(t-this.startX),l=i.abs(u-this.startY),s=0,h="";if(this.isInTransition=0,this.initiated=0,this.endTime=r.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(t,u),!this.moved)return this.options.tap&&r.tap(n,this.options.tap),this.options.click&&r.click(n),void this._execEvent("scrollCancel");if(this._events.flick&&f<200&&c<100&&l<100)this._execEvent("flick");else{if(this.options.momentum&&f<300&&(e=this.hasHorizontalScroll?r.momentum(this.x,this.startX,f,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:t,duration:0},o=this.hasVerticalScroll?r.momentum(this.y,this.startY,f,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:u,duration:0},t=e.destination,u=o.destination,s=i.max(e.duration,o.duration),this.isInTransition=1),t!=this.x||u!=this.y)return(t>0||t0||u0?t=0:this.x0?i=0:this.y-1&&this._events[n].splice(i,1)}},_execEvent:function(n){if(this._events[n]){var t=0,i=this._events[n].length;if(i)for(;t0;var f=this.options.useTransition&&u.style;!i||f?(f&&(this._transitionTimingFunction(u.style),this._transitionTime(i)),this._translate(n,t)):this._animate(n,t,i,u.fn)},scrollToElement:function(n,t,u,f,e){var o,s,h;(n=n.nodeType?n:this.scroller.querySelector(n))&&(o=r.offset(n),o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,s=r.getRect(n),h=r.getRect(this.wrapper),!0===u&&(u=i.round(s.width/2-h.width/2)),!0===f&&(f=i.round(s.height/2-h.height/2)),o.left-=u||0,o.top-=f||0,o.left=o.left>0?0:o.left0?0:o.top=c)return e.isAnimating=!1,e._translate(n,t),void(e.resetPosition(e.options.bounceTime)||e._execEvent("scrollEnd"));a=u(v=(v-h)/i);y=(n-o)*a+o;p=(t-s)*a+s;e._translate(y,p);e.isAnimating&&f(l)}()},handleEvent:function(n){switch(n.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(n);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(n);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(n);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(n);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(n);break;case"keydown":this._key(n);break;case"click":this.enabled&&!n._constructed&&(n.preventDefault(),n.stopPropagation())}}};u.utils=r;"undefined"!=typeof module&&module.exports?module.exports=u:"function"==typeof define&&define.amd?define(function(){return u}):n.IScroll=u}(window,document,Math); /*! * jquery-drawer v3.2.2 * Flexible drawer menu using jQuery, iScroll and CSS. * http://git.blivesta.com/drawer * License : MIT * Author : blivesta (http://blivesta.com/) */ !function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var i=void 0!==document.ontouchstart,t={init:function(i){return i=n.extend({iscroll:{mouseWheel:!0,preventDefault:!1},showOverlay:!0},i),t.settings={state:!1,events:{opened:"drawer.opened",closed:"drawer.closed"},dropdownEvents:{opened:"shown.bs.dropdown",closed:"hidden.bs.dropdown"}},t.settings.class=n.extend({nav:"drawer-nav",toggle:"drawer-toggle",overlay:"drawer-overlay",open:"drawer-open",close:"drawer-close",dropdown:"drawer-dropdown"},i.class),this.each(function(){var r=this,u=n(this);u.data("drawer")||(i=n.extend({},i),u.data("drawer",{options:i}),t.refresh.call(r),i.showOverlay&&t.addOverlay.call(r),n("."+t.settings.class.toggle).on("click.drawer",function(){return t.toggle.call(r),r.iScroll.refresh()}),n(window).on("resize.drawer",function(){return t.close.call(r),r.iScroll.refresh()}),n("."+t.settings.class.dropdown).on(t.settings.dropdownEvents.opened+" "+t.settings.dropdownEvents.closed,function(){return r.iScroll.refresh()}))})},refresh:function(){this.iScroll=new IScroll("."+t.settings.class.nav,n(this).data("drawer").options.iscroll)},addOverlay:function(){var i=n(this),r=n("
").addClass(t.settings.class.overlay+" "+t.settings.class.toggle);return i.append(r)},toggle:function(){var n=this;return t.settings.state?t.close.call(n):t.open.call(n)},open:function(){var r=n(this);return i&&r.on("touchmove.drawer",function(n){n.preventDefault()}),r.removeClass(t.settings.class.close).addClass(t.settings.class.open).drawerCallback(function(){t.settings.state=!0;r.trigger(t.settings.events.opened)})},close:function(){var r=n(this);return i&&r.off("touchmove.drawer"),r.removeClass(t.settings.class.open).addClass(t.settings.class.close).drawerCallback(function(){t.settings.state=!1;r.trigger(t.settings.events.closed)})},destroy:function(){return this.each(function(){var i=this,r=n(this);n("."+t.settings.class.toggle).off("click.drawer");n(window).off("resize.drawer");n("."+t.settings.class.dropdown).off(t.settings.dropdownEvents.opened+" "+t.settings.dropdownEvents.closed);i.iScroll.destroy();r.removeData("drawer").find("."+t.settings.class.overlay).remove()})}};n.fn.drawerCallback=function(t){var i="transitionend webkitTransitionEnd";return this.each(function(){var r=n(this);r.on(i,function(){return r.off(i),t.call(this)})})};n.fn.drawer=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void n.error("Method "+i+" does not exist on jQuery.drawer"):t.init.apply(this,arguments)}}); /*! * Masonry PACKAGED v4.2.1 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */ !function(n,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("jquery")):n.jQueryBridget=t(n,n.jQuery)}(window,function(n,t){"use strict";function i(i,u,o){function s(n,t,r){var u,e="$()."+i+'("'+t+'")';return n.each(function(n,s){var h=o.data(s,i),c,l;if(!h)return void f(i+" not initialized. Cannot call methods, i.e. "+e);if(c=h[t],!c||"_"==t.charAt(0))return void f(e+" is not a valid method");l=c.apply(h,r);u=void 0===u?l:u}),void 0!==u?u:n}function h(n,t){n.each(function(n,r){var f=o.data(r,i);f?(f.option(t),f._init()):(f=new u(r,t),o.data(r,i,f))})}o=o||t||n.jQuery;o&&(u.prototype.option||(u.prototype.option=function(n){o.isPlainObject(n)&&(this.options=o.extend(!0,this.options,n))}),o.fn[i]=function(n){if("string"==typeof n){var t=e.call(arguments,1);return s(this,n,t)}return h(this,n),this},r(o))}function r(n){!n||n&&n.bridget||(n.bridget=i)}var e=Array.prototype.slice,u=n.console,f="undefined"==typeof u?function(){}:function(n){u.error(n)};return r(t||n.jQuery),i}),function(n,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():n.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return-1==r.indexOf(t)&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),-1!=r&&i.splice(r,1),this},n.emitEvent=function(n,t){var i=this._events&&this._events[n],u,f,r,e;if(i&&i.length){for(i=i.slice(0),t=t||[],u=this._onceEvents&&this._onceEvents[n],f=0;fn;n++)r=t[n],i[r]=0;return i}function i(n){var t=getComputedStyle(n);return t||c("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function h(){var t,f,o;e||(e=!0,t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box",f=document.body||document.documentElement,f.appendChild(t),o=i(t),r.isBoxSizeOuter=u=200==n(o.width),f.removeChild(t))}function r(r){var o,e,a,c,l;if(h(),"string"==typeof r&&(r=document.querySelector(r)),r&&"object"==typeof r&&r.nodeType){if(o=i(r),"none"==o.display)return s();for(e={},e.width=r.offsetWidth,e.height=r.offsetHeight,a=e.isBorderBox="border-box"==o.boxSizing,c=0;f>c;c++){var v=t[c],nt=o[v],y=parseFloat(nt);e[v]=isNaN(y)?0:y}var p=e.paddingLeft+e.paddingRight,w=e.paddingTop+e.paddingBottom,tt=e.marginLeft+e.marginRight,it=e.marginTop+e.marginBottom,b=e.borderLeftWidth+e.borderRightWidth,k=e.borderTopWidth+e.borderBottomWidth,d=a&&u,g=n(o.width);return g!==!1&&(e.width=g+(d?0:p+b)),l=n(o.height),l!==!1&&(e.height=l+(d?0:w+k)),e.innerWidth=e.width-(p+b),e.innerHeight=e.height-(w+k),e.outerWidth=e.width+tt,e.outerHeight=e.height+it,e}}var u,c="undefined"==typeof console?o:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],f=t.length,e=!1;return r}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():n.matchesSelector=t()}(window,function(){"use strict";var n=function(){var t=window.Element.prototype,i,n,u,r;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(i=["webkit","moz","ms","o"],n=0;ne?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},i.getContainerWidth=function(){var i=this._getOption("fitWidth"),r=i?this.element.parentNode:this.element,n=t(r);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(n){n.getSize();var u=n.size.outerWidth%this.columnWidth,f=u&&1>u?"round":"ceil",i=Math[f](n.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var e=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",t=this[e](i,n),o={x:this.columnWidth*t.col,y:t.y},s=t.y+n.size.outerHeight,h=i+t.col,r=t.col;h>r;r++)this.colYs[r]=s;return o},i._getTopColPosition=function(n){var t=this._getTopColGroup(n),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},i._getTopColGroup=function(n){if(2>n)return this.colYs;for(var i=[],r=this.cols+1-n,t=0;r>t;t++)i[t]=this._getColGroupY(t,n);return i},i._getColGroupY=function(n,t){if(2>t)return this.colYs[n];var i=this.colYs.slice(n,n+t);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(n,t){var i=this.horizontalColIndex%this.cols,u=n>1&&i+n>this.cols,r;return i=u?0:i,r=t.size.outerWidth&&t.size.outerHeight,this.horizontalColIndex=r?i+n:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,n)}},i._manageStamp=function(n){var e=t(n),r=this._getElementOffset(n),h=this._getOption("originLeft"),o=h?r.left:r.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i;f=Math.max(0,f);i=Math.floor(s/this.columnWidth);i-=s%this.columnWidth?0:1;i=Math.min(this.cols-1,i);for(var c=this._getOption("originTop"),l=(c?r.top:r.bottom)+e.outerHeight,u=f;i>=u;u++)this.colYs[u]=Math.max(l,this.colYs[u])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this._getOption("fitWidth")&&(n.width=this._getContainerFitWidth()),n},i._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!=this.containerWidth},r}); /*! * imagesLoaded PACKAGED v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(n,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():n.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return r.indexOf(t)==-1&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),r!=-1&&i.splice(r,1),this},n.emitEvent=function(n,t){var i=this._events&&this._events[n],u,f,r,e;if(i&&i.length){for(i=i.slice(0),t=t||[],u=this._onceEvents&&this._onceEvents[n],f=0;ft[u]){if(f.hasClass("sticky-activated"))return;if(i[u]=f.parent(),r[u]=f.index(),f.css("display")=="none"||f.closest(".appallin-universal-section").css("display")=="none")return;n[u]=f.clone();i[u].insertAt(r[u],n[u]);e=$('
<\/div><\/div>');f.closest(".container").hasClass("container-fullwidth")&&e.find(".container").addClass("container-fullwidth");e.find(".container").append(f);$(".section-container").append(e);c=getStyleRuleValue("background-color",".appdrag-palette-background-color-"+getAttrWithDefaultValue(f,"sticky-background",""));c!=null?e.css("background-color",c):e.css("background-color",getAttrWithDefaultValue(f,"sticky-background",""));f.addClass("sticky-activated")}else f.hasClass("sticky-activated")&&(e=f.closest(".appallin-universal-section"),i[u].insertAt(r[u],f),n[u].remove(),e.remove()),f.removeClass("sticky-activated")});handleFixedSidebars()}if(!isInIframe()){var f=$(".sticky-row"),i={},r={},n={},t={};$.each(f,function(n){t[n]=$(this).offset().top});u();document.onscroll=debounce(u,12);$(".section-container").scroll(debounce(u,12))}}function initSoundManagers(){function t(){var u,i=[],f,n,t,r;if(i.on={},f={stopOtherSounds:!0,excludeClass:"sm2-exclude"},soundManager.setup({html5PollingInterval:50,flashVersion:9}),n=document.getElementsByClassName(".sm2-bar-ui"),n&&n.length)for(t=0,r=n.length;t0&&resourcesLoader.loadResources("select2","//"+cdnPath+"/resources/assets/select2/select2.min.css?v=1","//"+cdnPath+"/resources/assets/select2/select2.min.js",function(){$.each(n,function(){var n=$(this);enableSelect2forElem(n)})},typeof $("body").select2!="undefined")}function handleFixedSidebars(){if(typeof jQuery!="undefined"){var t=$(".appdrag-sidebar-left, .appdrag-sidebar-right"),n=$(".section-container"),r=$(".appallin-universal-fixed-header"),i=0;if(r.length&&(i=r.outerHeight()),n.css("top",i+"px"),t.css("top",i+"px"),!t.length||window.innerWidth<992){n.css("left","");n.css("right","");n.css("padding-left","");n.css("padding-right","");n.removeClass("has-sidebar");t.css("width","");return}n.addClass("has-sidebar");$(".appallin-universal-section-sticky").css("width","auto");t.hasClass("appdrag-sidebar-left")?(t.css("width",getAttrWithDefaultValue(t,"fixed-width","300")+"px"),n.css("left","0px"),n.css("padding-left",getAttrWithDefaultValue(t,"fixed-width","300")+"px"),n.css("right","0px"),n.css("padding-right","0px"),$(".appallin-universal-section-sticky").css("left",getAttrWithDefaultValue(t,"fixed-width","300")+"px"),$(".appallin-universal-section-sticky").css("right","0px")):(t.css("width",getAttrWithDefaultValue(t,"fixed-width","300")+"px"),n.css("right","0px"),n.css("padding-left","0px"),n.css("padding-right",getAttrWithDefaultValue(t,"fixed-width","300")+"px"),n.css("left","0px"),$(".appallin-universal-section-sticky").css("right",getAttrWithDefaultValue(t,"fixed-width","300")+"px"),$(".appallin-universal-section-sticky").css("left","0px"))}}function getStyleRuleValue(n,t,i){var u,o,s,f,h,i,r,c,e;try{for(u=typeof i!="undefined"?[i]:document.styleSheets,o=!1,r=0;r')}}function cloudbackendTriggerClicked(n){function t(n,t,i){var r=$('
<\/div>'),u,f;i==undefined&&(i="");getAttrWithDefaultValue(n,"field-error-validation","")!=""&&(i="");t!=""&&(u=$('<\/span>'),u.text(t),r.append(u));i!=""&&(f=$('<\/span>'),f.text(i.charAt(0).toUpperCase()+i.slice(1)),r.append(f));n.append(r);n.removeClass("cb-trigger-validation-success-field");n.addClass("cb-trigger-validation-error-field")}function ot(n){function s(n){return n=n.replace(/(^\s*)|(\s*$)/gi,""),n=n.replace(/[ ]{2,}/gi," "),n=n.replace(/\n /,"\n"),n.split(" ").length}function f(n){try{return parseInt(n)}catch(i){}return 0}function h(r){var y,p,w;if(r==undefined)return!1;var o=getAttrWithDefaultValue(n,"field-validation",""),v=getAttrWithDefaultValue(n,"regex-validation",""),e=f(getAttrWithDefaultValue(n,"min-length","0")),l=f(getAttrWithDefaultValue(n,"max-length","-1")),a=f(getAttrWithDefaultValue(n,"min-words","0")),h=f(getAttrWithDefaultValue(n,"min-digits","0")),c=f(getAttrWithDefaultValue(n,"min-special-characters","0")),b=getAttrWithDefaultValue(n,"related-field",""),u="";if(!n.hasClass("required")&&r.length<=0)return!0;if(o!="")if(o=="email"){if(y=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,!y.test(String(r).toLowerCase()))return u=getFrontStr("invalid-email-address"),t(n,i,u),!1}else if(o=="url"){if(p=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(r),!p)return u=getFrontStr("invalid-url"),t(n,i,u),!1}else if(o=="phone"&&(w=/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/im.test(r),!w))return u=getFrontStr("invalid-phone-number"),t(n,i,u),!1;return(n.hasClass("required")&&e<=0&&(e=1),e>0&&r.length"+(e-1)+")",t(n,i,u),!1):l>0&&r.length>l?(u=getFrontStr("too-long")+"(<"+(l+1)+")",t(n,i,u),!1):s(r)1?"words-are-required":"word-is-required"),t(n,i,u),!1):h>0&&r.replace(/[^0-9]/g,"").length1?"digits-are-required":"digit-is-required"),t(n,i,u),!1):c>0&&r.match(/[@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/g).length1?"special-chars-are-required":"special-char-is-required"),t(n,i,u),!1):v!=""&&r.match(v)==null?(t(n,i,u),!1):!0}function c(){var s=n.find("input"),r=f(getAttrWithDefaultValue(n,"min-length","0"));r<1&&n.hasClass("required")&&(r=1);var o=f(getAttrWithDefaultValue(n,"max-length","-1")),e=0,u="";return($.each(s,function(){$(this).prop("checked")&&(e++,u!=""&&(u+=","),u+=$(this).val())}),r>0&&e1?getFrontStr("checkboxes"):getFrontStr("checkbox")),t(n,i,ruleError),null):o>0&&e>o?(ruleError=getFrontStr("you-must-not-check-more-than")+" "+r+" "+(r>1?getFrontStr("checkboxes"):getFrontStr("checkbox")),t(n,i,ruleError),null):u}var u=getAttrWithDefaultValue(n,"type","text"),i=getAttrWithDefaultValue(n,"field-error-validation",""),o,r,e;return(i==""&&(i=getFrontStr("please-fill-all-mandatory-fields")),n.addClass("cb-trigger-validation-success-field"),u=="text"||u=="textarea"||u=="password"||u=="date")?(o=n.find("input, textarea"),r=o.val(),!h(r))?null:r:u=="number"?(r=n.find("input").val(),n.hasClass("required")&&r=="")?(t(n,i),null):r:u=="select"?(r=n.find("select").val(),r==null&&(r=""),n.hasClass("required")&&r=="")?(t(n,i),null):(getAttrWithDefaultValue(n,"save-type","string")=="array"&&(r=JSON.stringify(r)),r):u=="radio"?(r=n.find("input:checked").val(),r==undefined&&(r=""),n.hasClass("required")&&n.find("input:checked").length==0)?(t(n,i),null):r:u=="checkbox"?c():u=="file"?(e=n.find("input")[0].files[0],n.hasClass("required")&&e==undefined)?(ruleError=getFrontStr("field-is-empty"),t(n,i),null):e==undefined?"":e:null}function st(n,i){var r=getAttrWithDefaultValue(n,"related-field","");return r==""?!0:(r=$(".appdrag-field[field-name='"+r+"']"),r.length==0)?!0:r.find("input,textarea").val()!=i?(t(n,getAttrWithDefaultValue(n,"field-error-validation","")),!1):!0}function o(t){var o={command:"CBTriggerConversion",appID:getAttrWithDefaultValue($("body"),"appid",""),url:encodeURIComponent(window.location.href),json:JSON.stringify(i)},f,e;if(et=="1"&&$.ajax({type:"POST",contentType:"application/x-www-form-urlencoded;charset=utf-8",url:"https://api.appdrag.com/CloudBackend.aspx",data:o,async:!0,crossDomain:!0}).done(function(){}),$.each(u.params,function(n,t){if(t.type=="field"){var i=$(".appdrag-field[field-name='"+t.field+"']");getAttrWithDefaultValue(i,"empty-after","1")=="1"&&(i.find("input, select, textarea").val(""),i.find("select.select2").change())}}),$(".cb-trigger-validation-success-field").removeClass("cb-trigger-validation-success-field"),$(".cb-trgger-pre-msg").remove(),r.html(y),f=n,n.hasClass("appdrag-button")&&(f=n.closest(".appdrag-button-container")),it=="1"&&(e=$('
<\/div>'),e.text(rt),f.append(e)),ut=="1")try{typeof t=="object"&&(t=JSON.stringify(t));eval('var postCBJSTrigger = function () { var response = unescape("'+escape(t)+'");'+decodeComponent(ft)+" \n}; postCBJSTrigger(); ")}catch(s){console.log(s)}}var a=getAttrWithDefaultValue(n,"cb-trigger-function",""),v,u,i,f,r,y,p,s,h,c,e,l;if(a!=""){v=getAttrWithDefaultValue(n,"cb-trigger-params","[]");u=this;this.params=[];try{this.params=JSON.parse(decodeComponent(v))}catch(w){}var b=getAttrWithDefaultValue(n,"cb-trigger-fn-type","POST"),k=getAttrWithDefaultValue(n,"cb-trigger-pre-spinner-on",""),d=getAttrWithDefaultValue(n,"cb-trigger-pre-msg-on",""),g=getAttrWithDefaultValue(n,"cb-trigger-pre-msg",""),nt=getAttrWithDefaultValue(n,"cb-trigger-pre-cc-on",""),tt=getAttrWithDefaultValue(n,"cb-trigger-pre-cc",""),it=getAttrWithDefaultValue(n,"cb-trigger-post-msg-on",""),rt=getAttrWithDefaultValue(n,"cb-trigger-post-msg",""),ut=getAttrWithDefaultValue(n,"cb-trigger-post-cc-on",""),ft=getAttrWithDefaultValue(n,"cb-trigger-post-cc",""),et=getAttrWithDefaultValue(n,"cb-trigger-post-conversion","");if(i={},$(".cb-trigger-validation-error").remove(),$(".cb-trigger-validation-error-field").removeClass("cb-trigger-validation-error-field"),$(".cb-trigger-validation-success-field").removeClass("cb-trigger-validation-success-field"),f=!1,$.each(u.params,function(n,t){if(t.type=="field"&&t.field!=null){var u=$(".appdrag-field[field-name='"+t.field+"']"),r=ot(u,t);if(r==null){f=!0;return}if(!st(u,r)){f=!0;return}i[t.parameter]=r}else if(t.type=="formula")i[t.parameter]=eval(t.formula);else if(t.type=="value")i[t.parameter]=t.value;else return}),!f){if(r=n,n.hasClass("appdrag-button-container")&&(r=n.find(".appdrag-button")),y=r.html(),nt=="1")try{if(p=eval("function preCBJSTrigger() { "+decodeComponent(tt)+"\n }; preCBJSTrigger();"),p===!1)return}catch(w){console.log(w)}k=="1"&&r.html('<\/i>');d=="1"&&(s=$('<\/span>'),s.text(g),r.append(s));$(".cb-trigger-post-msg").remove();h="//"+location.host+"/api"+a;c=new Date;u.dataParams=i;b=="POST"?(l=new FormData,$.each(i,function(n,t){l.append(n,t)}),$.ajax({type:"POST",url:h,data:l,async:!0,crossDomain:!0,processData:!1,contentType:!1}).done(function(n){e=new Date;var t=e-c;t<350?setTimeout(function(){o(n)},350-t):o(n)})):$.ajax({type:"GET",contentType:"application/x-www-form-urlencoded;charset=utf-8",url:h,data:i,async:!0,success:function(n){e=new Date;var t=e-c;t<350?setTimeout(function(){o(n)},350-t):o(n)}})}}}function getStartingPathFromLocation(n,t){if(n==undefined&&(n=window.location.href),t!=undefined&&t!=""&&t!="javascript:void(0)"&&(t.indexOf("http")==0||t.indexOf("//")==0||t.indexOf("../")==0))return"";if(n.indexOf("/blog/")!=-1||n.indexOf("/shop/")!=-1||n.indexOf("/checkout/")!=-1||n.indexOf("/blog-preview/")!=-1||n.indexOf("/shop-preview/")!=-1)return n.indexOf("/preview/")!=-1&&t!=undefined&&t.indexOf("uploads/")!=-1?"../../":"../";if(n.indexOf("/categories/")!=-1){n=n.substring(n.indexOf("/categories")+12).split("?")[0];for(var i="../";n.indexOf("/")!=-1;)n=n.substring(n.indexOf("/")+1),n!=""&&(i+="../");return i}return n.indexOf("/preview/")!=-1&&t!=undefined&&t.indexOf("uploads/")!=-1?"../":""}function handleLinks(){function n(n){var t='