/home/silvwabw/www/wp-content/plugins/gutenverse-form/lib/framework/assets/js/frontend/slideshow.js
(()=>{var t={36(t,e,n){var r=n(613),o=n(335),i=n(82),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},65(t,e,n){var r=n(36),o=n(330),i=n(750),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},72(t,e,n){var r=n(370)(n(273),"DataView");t.exports=r},82(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},89(t){t.exports=function(t){return function(e){return t(e)}}},164(t,e,n){t=n.nmd(t);var r=n(273),o=n(691),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?r.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;t.exports=s},185(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},272(t,e,n){var r=n(370)(n(273),"Promise");t.exports=r},273(t,e,n){var r=n(716),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},302(t,e,n){var r=n(36),o=n(185);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},330(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},335(t,e,n){var r=n(613),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},370(t,e,n){var r=n(991),o=n(404);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},397(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},404(t){t.exports=function(t,e){return null==t?void 0:t[e]}},413(t,e,n){t=n.nmd(t);var r=n(716),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},443(t,e,n){var r=n(370)(n(273),"Map");t.exports=r},474(t,e,n){var r=n(302),o=n(330);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},477(t,e,n){var r=n(273)["__core-js_shared__"];t.exports=r},516(t,e,n){var r,o=n(477),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},571(t,e,n){var r=n(65),o=n(89),i=n(413),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},577(t,e,n){var r=n(72),o=n(443),i=n(272),a=n(885),c=n(675),s=n(36),u=n(397),l="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",y=u(r),b=u(o),v=u(i),g=u(a),m=u(c),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=p||a&&w(new a)!=f||c&&w(new c)!=d)&&(w=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case y:return h;case b:return l;case v:return p;case g:return f;case m:return d}return e}),t.exports=w},584(t,e,n){var r=n(714),o=n(750),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},613(t,e,n){var r=n(273).Symbol;t.exports=r},659(t){t.exports=function(t,e){return function(n){return t(e(n))}}},675(t,e,n){var r=n(370)(n(273),"WeakMap");t.exports=r},691(t){t.exports=function(){return!1}},699(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},714(t,e,n){var r=n(36),o=n(750);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},716(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},750(t){t.exports=function(t){return null!=t&&"object"==typeof t}},757(t,e,n){var r=n(804),o=n(577),i=n(584),a=n(957),c=n(474),s=n(164),u=n(699),l=n(571),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(u(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},768(t){var e=function(t,n){return this instanceof e?t instanceof e?t:((t="string"==typeof t?this.select(t,n):t)&&t.nodeName&&(t=[t]),void(this.nodes=this.slice(t))):new e(t,n)};e.prototype={get length(){return this.nodes.length}},e.prototype.nodes=[],e.prototype.addClass=function(){return this.eacharg(arguments,function(t,e){t.classList.add(e)})},e.prototype.adjacent=function(t,n,r){return"number"==typeof n&&(n=0===n?[]:new Array(n).join().split(",").map(Number.call,Number)),this.each(function(o,i){var a=document.createDocumentFragment();e(n||{}).map(function(n,r){return"string"==typeof(r="function"==typeof t?t.call(this,n,r,o,i):t)?this.generate(r):e(r)}).each(function(t){this.isInPage(t)?a.appendChild(e(t).clone().first()):a.appendChild(t)}),r.call(this,o,a)})},e.prototype.after=function(t,e){return this.adjacent(t,e,function(t,e){t.parentNode.insertBefore(e,t.nextSibling)})},e.prototype.append=function(t,e){return this.adjacent(t,e,function(t,e){t.appendChild(e)})},e.prototype.args=function(t,e,n){return(t="string"!=typeof(t="function"==typeof t?t(e,n):t)?this.slice(t).map(this.str(e,n)):t).toString().split(/[\s,]+/).filter(function(t){return t.length})},e.prototype.array=function(t){var n=this;return this.nodes.reduce(function(r,o,i){var a;return t?(a="string"==typeof(a=(a=t.call(n,o,i))||!1)?e(a):a)instanceof e&&(a=a.nodes):a=o.innerHTML,r.concat(!1!==a?a:[])},[])},e.prototype.attr=function(t,e,n){return n=n?"data-":"",this.pairs(t,e,function(t,e){return t.getAttribute(n+e)},function(t,e,r){r?t.setAttribute(n+e,r):t.removeAttribute(n+e)})},e.prototype.before=function(t,e){return this.adjacent(t,e,function(t,e){t.parentNode.insertBefore(e,t)})},e.prototype.children=function(t){return this.map(function(t){return this.slice(t.children)}).filter(t)},e.prototype.clone=function(){return this.map(function(t,e){var n=t.cloneNode(!0),r=this.getAll(n);return this.getAll(t).each(function(t,e){for(var n in this.mirror)this.mirror[n]&&this.mirror[n](t,r.nodes[e])}),n})},e.prototype.getAll=function(t){return e([t].concat(e("*",t).nodes))},e.prototype.mirror={},e.prototype.mirror.events=function(t,n){if(t._e)for(var r in t._e)t._e[r].forEach(function(t){e(n).on(r,t.callback)})},e.prototype.mirror.select=function(t,n){e(t).is("select")&&(n.value=t.value)},e.prototype.mirror.textarea=function(t,n){e(t).is("textarea")&&(n.value=t.value)},e.prototype.closest=function(t){return this.map(function(n){do{if(e(n).is(t))return n}while((n=n.parentNode)&&n!==document)})},e.prototype.data=function(t,e){return this.attr(t,e,!0)},e.prototype.each=function(t){return this.nodes.forEach(t.bind(this)),this},e.prototype.eacharg=function(t,e){return this.each(function(n,r){this.args(t,n,r).forEach(function(t){e.call(this,n,t)},this)})},e.prototype.empty=function(){return this.each(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})},e.prototype.filter=function(t){var n=t instanceof e?function(e){return-1!==t.nodes.indexOf(e)}:"function"==typeof t?t:function(e){return e.matches=e.matches||e.msMatchesSelector||e.webkitMatchesSelector,e.matches(t||"*")};return e(this.nodes.filter(n))},e.prototype.find=function(t){return this.map(function(n){return e(t||"*",n)})},e.prototype.first=function(){return this.nodes[0]||!1},e.prototype.generate=function(t){return/^\s*<tr[> ]/.test(t)?e(document.createElement("table")).html(t).children().children().nodes:/^\s*<t(h|d)[> ]/.test(t)?e(document.createElement("table")).html(t).children().children().children().nodes:/^\s*</.test(t)?e(document.createElement("div")).html(t).children().nodes:document.createTextNode(t)},e.prototype.handle=function(){var t=this.slice(arguments).map(function(t){return"function"==typeof t?function(e){e.preventDefault(),t.apply(this,arguments)}:t},this);return this.on.apply(this,t)},e.prototype.hasClass=function(){return this.is("."+this.args(arguments).join("."))},e.prototype.html=function(t){return void 0===t?this.first().innerHTML||"":this.each(function(e){e.innerHTML=t})},e.prototype.is=function(t){return 0<this.filter(t).length},e.prototype.isInPage=function(t){return t!==document.body&&document.body.contains(t)},e.prototype.last=function(){return this.nodes[this.length-1]||!1},e.prototype.map=function(t){return t?e(this.array(t)).unique():this},e.prototype.not=function(t){return this.filter(function(n){return!e(n).is(t||!0)})},e.prototype.off=function(t,n,r){var o=null==n&&null==r,i=null,a=n;return"string"==typeof n&&(i=n,a=r),this.eacharg(t,function(t,n){e(t._e?t._e[n]:[]).each(function(e){(o||e.orig_callback===a&&e.selector===i)&&t.removeEventListener(n,e.callback)})})},e.prototype.on=function(t,n,r){function o(t,e){try{Object.defineProperty(t,"currentTarget",{value:e,configurable:!0})}catch(t){}}var i=null,a=n;function c(t){return n.apply(this,[t].concat(t.detail||[]))}return"string"==typeof n&&(i=n,a=r,n=function(t){var n=arguments;e(t.currentTarget).find(i).each(function(e){var i;e.contains(t.target)&&(i=t.currentTarget,o(t,e),r.apply(e,n),o(t,i))})}),this.eacharg(t,function(t,e){t.addEventListener(e,c),t._e=t._e||{},t._e[e]=t._e[e]||[],t._e[e].push({callback:c,orig_callback:a,selector:i})})},e.prototype.pairs=function(t,e,n,r){var o;return void 0!==e&&(o=t,(t={})[o]=e),"object"==typeof t?this.each(function(e,n){for(var o in t)"function"==typeof t[o]?r(e,o,t[o](e,n)):r(e,o,t[o])}):this.length?n(this.first(),t):""},e.prototype.param=function(t){return Object.keys(t).map(function(e){return this.uri(e)+"="+this.uri(t[e])}.bind(this)).join("&")},e.prototype.parent=function(t){return this.map(function(t){return t.parentNode}).filter(t)},e.prototype.prepend=function(t,e){return this.adjacent(t,e,function(t,e){t.insertBefore(e,t.firstChild)})},e.prototype.remove=function(){return this.each(function(t){t.parentNode&&t.parentNode.removeChild(t)})},e.prototype.removeClass=function(){return this.eacharg(arguments,function(t,e){t.classList.remove(e)})},e.prototype.replace=function(t,n){var r=[];return this.adjacent(t,n,function(t,e){r=r.concat(this.slice(e.children)),t.parentNode.replaceChild(e,t)}),e(r)},e.prototype.scroll=function(){var t=this.first();return t&&t.scrollIntoView({behavior:"smooth"}),this},e.prototype.select=function(t,n){return t=t.replace(/^\s*/,"").replace(/\s*$/,""),/^</.test(t)?e().generate(t):(n||document).querySelectorAll(t)},e.prototype.serialize=function(){var t=this;return this.slice(this.first().elements).reduce(function(n,r){return!r.name||r.disabled||"file"===r.type||/(checkbox|radio)/.test(r.type)&&!r.checked?n:"select-multiple"===r.type?(e(r.options).each(function(e){e.selected&&(n+="&"+t.uri(r.name)+"="+t.uri(e.value))}),n):n+"&"+t.uri(r.name)+"="+t.uri(r.value)},"").slice(1)},e.prototype.siblings=function(t){return this.parent().children(t).not(this)},e.prototype.size=function(){var t=this.first();return t?t.getBoundingClientRect():null},e.prototype.slice=function(t){return t&&0!==t.length&&"string"!=typeof t&&"[object Function]"!==t.toString()?t.length?[].slice.call(t.nodes||t):[t]:[]},e.prototype.str=function(t,e){return function(n){return"function"==typeof n?n.call(this,t,e):n.toString()}},e.prototype.text=function(t){return void 0===t?this.first().textContent||"":this.each(function(e){e.textContent=t})},e.prototype.toggleClass=function(t,e){return!!e===e?this[e?"addClass":"removeClass"](t):this.eacharg(t,function(t,e){t.classList.toggle(e)})},e.prototype.trigger=function(t){var e=this.slice(arguments).slice(1);return this.eacharg(t,function(t,n){var r,o={bubbles:!0,cancelable:!0,detail:e};try{r=new window.CustomEvent(n,o)}catch(t){(r=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,e)}t.dispatchEvent(r)})},e.prototype.unique=function(){return e(this.nodes.reduce(function(t,e){return null!=e&&!1!==e&&-1===t.indexOf(e)?t.concat(e):t},[]))},e.prototype.uri=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},e.prototype.wrap=function(t){return this.map(function(n){return e(t).each(function(t){(function(t){for(;t.firstElementChild;)t=t.firstElementChild;return e(t)})(t).append(n.cloneNode(!0)),n.parentNode.replaceChild(t,n)})})},t.exports&&(t.exports=e,t.exports.u=e)},804(t,e,n){var r=n(699),o=n(958),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},885(t,e,n){var r=n(370)(n(273),"Set");t.exports=r},957(t){var e=Array.isArray;t.exports=e},958(t,e,n){var r=n(659)(Object.keys,Object);t.exports=r},991(t,e,n){var r=n(302),o=n(516),i=n(185),a=n(397),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?f:c).test(a(t))}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var l=["fadeIn","fadeInLeft","fadeInDown","fadeInRight","fadeInUp","slideInLeft","slideInDown","slideInRight","slideInUp","zoomIn","zoomInLeft","zoomInDown","zoomInRight","zoomInUp","bounceIn","bounceInLeft","bounceInDown","bounceInRight","bounceInUp","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","bounce","flash","pulse","rubberBand","shake","headShake","swing","tada","wobble","jello","lightSpeedIn","rollIn"],p=["desktop","tablet","mobile"],f=n(757),d=n.n(f),h=function(){var t=((window.GutenverseConfig||window.GutenverseData||{}).settingsData||{}).editor_settings||{},e=t.tablet_breakpoint,n=void 0===e?1024:e,r=t.mobile_breakpoint;return{tabletBreakpoint:n,mobileBreakpoint:void 0===r?767:r}};function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var v=function(){return i(function e(n){t(this,e),n&&(this._elements=n,this.init())},[{key:"getAnimationClass",value:function(t){var e=null,n=[],r=[],o=h(),i=o.tabletBreakpoint,a=o.mobileBreakpoint;if(p.map(function(t){var e,r=l.map(function(e){return"".concat(t,"-").concat(e)});n.push.apply(n,function(t){if(Array.isArray(t))return u(t)}(e=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}),t.hasClass("animated")){n.map(function(e){t.hasClass(e)&&r.push(e)});var c=function(t){return r.filter(function(e){return e.includes(t)})},s=[];window.innerWidth<=a?s.push("mobile","tablet","desktop"):window.innerWidth>a&&window.innerWidth<=i?s.push("tablet","desktop"):window.innerWidth>a&&s.push("desktop");for(var f=0;f<s.length;f++){var y=c(s[f]);if(!d()(y)){e=y[0];break}}t.hasClass("guten-element-hide")&&d()(e)&&t.removeClass("guten-element-hide")}return{animationClass:e,animationClasses:r}}},{key:"playAnimation",value:function(t){var e=this.getAnimationClass(t),n=e.animationClass,r=e.animationClasses;n&&(r.map(function(e){return t.removeClass(e)}),t.addClass("__".concat(n)),t.removeClass("guten-element-hide"))}},{key:"playOnScreen",value:function(t,e){new IntersectionObserver(function(t){!0===t[0].isIntersecting&&e.map(function(t){return t.play()})},{threshold:[.5]}).observe(t)}},{key:"swiperBreakpoint",value:function(t){var e=h(),n=e.tabletBreakpoint,r=e.mobileBreakpoint,o=b({},t[768]),i=b({},t[1024]);return delete t[768],delete t[1024],t[parseInt(r)+1]=o,t[parseInt(n)+1]=i,t}}])}(),g=n(768),m=n.n(g);function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(w=function(){return!!t})()}var j=function(n){function r(){return t(this,r),n=this,i=arguments,o=a(o=r),function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(n,w()?Reflect.construct(o,i||[],a(n).constructor):o.apply(n,i));var n,o,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(r,n),i(r,[{key:"init",value:function(){var t=this;this._elements.map(function(e){t.startSlideshow(e)})}},{key:"startSlideshow",value:function(t){var e;e=m()(t).hasClass("guten-wrap-helper")?m()(t).find(".guten-inner-wrap").data("id"):m()(t).hasClass("guten-column")?m()(t).find(".guten-column-wrapper").data("id"):m()(t).parent().data("id");var n=m()(t).find(".guten-data").find('[data-var="backgroundSlideshow'.concat(e,'"]')).data("value")?JSON.parse(m()(t).find(".guten-data").find('[data-var="backgroundSlideshow'.concat(e,'"]')).data("value")):{},r=n.slideImage,o=void 0===r?{}:r,i=n.infiniteLoop;if(!((null==o?void 0:o.length)<1||void 0===(null==o?void 0:o.length))){var a=n.displayDuration<.1||void 0===n.displayDuration?1e3:1e3*n.displayDuration,c=n.duration<.1||void 0===n.duration?1e3:1e3*n.duration,s=c<a?c:a-100,u=o.map(function(t){var e;return null==t||null===(e=t.image)||void 0===e?void 0:e.image}),l="guten-".concat(e),p=document.querySelectorAll(".guten-".concat(e,"-slideshow-image")),f=document.querySelectorAll(".guten-".concat(e,"-child-slideshow"));p.length>0&&this.toggleClassWithDuration(p,f,a,i,u,s),this.generateStyle(n,l)}}},{key:"toggleClassWithDuration",value:function(t,e,n,r,o,i){var a,c,s,u,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"previous",p=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"current",f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"hasToggledClass",d=1,h=0;e.forEach(function(t){null==t||t.classList.remove(l),null==t||t.classList.remove(p),null==t||t.classList.remove(f)}),null===(a=e[d])||void 0===a||a.classList.add(p),null===(c=e[h])||void 0===c||c.classList.add(l),null===(s=e[d])||void 0===s||s.classList.add(f),null===(u=e[h])||void 0===u||u.classList.add(f);var y=setInterval(function(){var n,a,c,s,u,b,v;e.length<=2?setTimeout(function(){var t;null===(t=e[h])||void 0===t||t.classList.remove(f)},i):null===(n=e[h])||void 0===n||n.classList.remove(f),null===(a=e[h])||void 0===a||a.classList.remove(l),h=(h+1)%t.length,null===(c=e[h])||void 0===c||c.classList.add(l),null===(s=e[h])||void 0===s||s.classList.add(f),null===(u=e[d])||void 0===u||u.classList.remove(p),d=(d+1)%t.length,null===(b=e[d])||void 0===b||b.classList.add(p),null===(v=e[d])||void 0===v||v.classList.add(f),1===d&&e.length<=2&&setTimeout(function(){var t;null===(t=e[0])||void 0===t||t.classList.remove(f)},i),r||d!==o.length-1||clearInterval(y)},n)}},{key:"generateStyle",value:function(t,e){var n=t.duration,r=t.backgroundPosition,o=t.transition,i=t.backgroundSize,a=t.backgroundRepeat,c=t.kenBurns,s=t.direction,u=t.displayDuration,l=void 0===u?1:u,p=r&&"default"!==r?r.replace(/-/g," "):"center",f="directionOut"===s?"ken-burns-toggle-out":"ken-burns-toggle-in",d=n<.1||void 0===n?1:parseFloat(n),h=parseFloat(d)<parseFloat(l)?parseFloat(d):l-.1,y="";switch(y+="\n        .bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow .").concat(e,"-slideshow-image {\n            background-size: ").concat(i,";\n            background-position: ").concat(p,";\n            background-repeat: ").concat(a,";\n        }\n            \n        ").concat(c?".bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow.hasToggledClass .").concat(e,"-slideshow-image {\n            animation: ").concat(f," 20s linear forwards;\n        }"):"","\n    "),o){case"slideRight":y+="\n            .bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow.previous {\n                z-index: 1;\n                ","animation: previous-slideRight ".concat(h,"s ease-in-out forwards;"),"\n            }\n            \n            .bg-slideshow-container .bg-slideshow-item .").concat(e,"-child-slideshow.current {\n                z-index: 2;\n                ","animation: current-slideRight ".concat(h,"s ease-in-out forwards;"),"\n            }");break;case"slideLeft":y+="\n            .bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow.previous {\n                z-index: 1;\n                left: unset;\n                ","animation: previous-slideLeft ".concat(h,"s ease-in-out forwards;"),"\n            }\n            \n            .bg-slideshow-container .bg-slideshow-item .").concat(e,"-child-slideshow.current {\n                z-index: 2;\n                left: unset;\n                ","animation: current-slideLeft ".concat(h,"s ease-in-out forwards;"),"\n            }");break;case"slideTop":y+="\n            .bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow.previous {\n                z-index: 1;\n                top: unset;\n                ","animation: previous-slideTop ".concat(h,"s ease-in-out forwards;"),"\n            }\n            \n            .bg-slideshow-container .bg-slideshow-item .").concat(e,"-child-slideshow.current {\n                z-index: 2;\n                top: unset;\n                ","animation: current-slideTop ".concat(h,"s ease-in-out forwards;"),"\n            }");break;case"slideDown":y+="\n            .bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow.previous {\n                z-index: 1;\n                ","animation: previous-slideBottom ".concat(h,"s ease-in-out forwards;"),"\n            }\n            \n            .bg-slideshow-container .bg-slideshow-item .").concat(e,"-child-slideshow.current {\n                z-index: 2;\n                ","animation: current-slideBottom ".concat(h,"s ease-in-out forwards;"),"\n            }");break;default:y+="\n            .bg-slideshow-container .bg-slideshow-item .".concat(e,"-child-slideshow.previous {\n                ","animation: fade ".concat(h,"s ease-in-out forwards;"),"\n            }")}this.addAnimation(y)}},{key:"addAnimation",value:function(t){var e=document.createElement("style");e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),document.head.appendChild(e)}}])}(v),x=m()(".guten-background-slideshow");x&&new j(x)})()})();