!function o(i,r,c){function l(e,t){if(!r[e]){if(!i[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(s)return s(e,!0);throw(n=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",n}n=r[e]={exports:{}},i[e][0].call(n.exports,function(t){return l(i[e][1][t]||t)},n,n.exports,o,i,r,c)}return r[e].exports}for(var s="function"==typeof require&&require,t=0;t<c.length;t++)l(c[t]);return l}({1:[function(t,e,n){"use strict";function o(t){return(o="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.registerWidget=n.isElement=n.getSiblings=n.visible=n.offset=n.fadeToggle=n.fadeOut=n.fadeIn=n.slideToggle=n.slideUp=n.slideDown=void 0;function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300,n=window.getComputedStyle(t).display;"none"===n&&(n="block"),t.style.transitionProperty="height",t.style.transitionDuration="".concat(e,"ms"),t.style.opacity=0,t.style.display=n;var o=t.offsetHeight;t.style.height=0,t.style.opacity=1,t.style.overflow="hidden",setTimeout(function(){t.style.height="".concat(o,"px")},5),window.setTimeout(function(){t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),t.style.removeProperty("opacity")},e+50)}n.slideDown=i;function r(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300;t.style.boxSizing="border-box",t.style.transitionProperty="height, margin",t.style.transitionDuration="".concat(e,"ms"),t.style.height="".concat(t.offsetHeight,"px"),t.style.marginTop=0,t.style.marginBottom=0,t.style.overflow="hidden",setTimeout(function(){t.style.height=0},5),window.setTimeout(function(){t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")},e+50)}n.slideUp=r;n.slideToggle=function(t,e){("none"===window.getComputedStyle(t).display?i:r)(t,e)};function c(t){var e={duration:300,display:null,opacity:1,callback:null};Object.assign(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),t.style.opacity=0,t.style.display=e.display||"block",setTimeout(function(){t.style.transition="".concat(e.duration,"ms opacity ease"),t.style.opacity=e.opacity},5),setTimeout(function(){t.style.removeProperty("transition"),e.callback&&e.callback()},e.duration+50)}n.fadeIn=c;function l(t){var e={duration:300,display:null,opacity:0,callback:null};Object.assign(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),t.style.opacity=1,t.style.display=e.display||"block",setTimeout(function(){t.style.transition="".concat(e.duration,"ms opacity ease"),t.style.opacity=e.opacity},5),setTimeout(function(){t.style.display="none",t.style.removeProperty("transition"),e.callback&&e.callback()},e.duration+50)}n.fadeOut=l;n.fadeToggle=function(t,e){("none"===window.getComputedStyle(t).display?c:l)(t,e)};n.offset=function(t){if(!t.getClientRects().length)return{top:0,left:0};var e=t.getBoundingClientRect(),t=t.ownerDocument.defaultView;return{top:e.top+t.pageYOffset,left:e.left+t.pageXOffset}};n.visible=function(t){return!!t&&!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};n.getSiblings=function(t){var e=[];if(!t.parentNode)return e;for(var n=t.parentNode.firstChild;n;)1===n.nodeType&&n!==t&&e.push(n),n=n.nextSibling;return e};n.isElement=function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?t instanceof HTMLElement:t&&"object"===o(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};n.registerWidget=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"default";(e||t)&&jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/".concat(t,".").concat(n),function(t){elementorFrontend.elementsHandler.addHandler(e,{$element:t})})})}},{}],2:[function(t,e,n){"use strict";function i(t){return(i="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})(t)}var r=t("../lib/utils");function c(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,o.key,o)}}function l(t,e,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(n):e.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=u(n);return t=o?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this,!(t=t)||"object"!==i(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}t=function(){!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}}),e&&s(t,e)}(i,elementorModules.frontend.handlers.Base);var t,e,n,o=a(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(e=[{key:"getDefaultSettings",value:function(){return{selectors:{accordion:".oew-accordion",accordionItem:".oew-accordion-item",accordionTitle:".oew-accordion-title",accordionContent:".oew-accordion-content"},classes:{active:"oew-active"},activeItemIndex:null,multiExpand:!1}}},{key:"getDefaultElements",value:function(){var t=this.$element.get(0),e=this.getSettings("selectors");return{accordion:t.querySelector(e.accordion),accordionItems:t.querySelectorAll(e.accordionItem),accordionTitles:t.querySelectorAll(e.accordionTitle),accordionContents:t.querySelectorAll(e.accordionContent)}}},{key:"onInit",value:function(){for(var t,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=l(u(i.prototype),"onInit",this)).call.apply(t,[this].concat(n)),this.setUserSettings(),this.activateDefaultItem()}},{key:"setUserSettings",value:function(){var t=this.getSettings(),e=JSON.parse(this.elements.accordion.getAttribute("data-settings"));this.setSettings({activeItemIndex:e.active_item||t.activeItemIndex,multiExpand:e.multiple?JSON.parse(e.multiple):t.multiExpand})}},{key:"activateDefaultItem",value:function(){var t=this.getSettings(),e=t.selectors,n=t.activeItemIndex,t=t.classes.active;n&&((n=this.elements.accordion.querySelector("".concat(e.accordionItem,":nth-child(").concat(n,")"))).classList.remove(t),this.changeActiveItem(n))}},{key:"bindEvents",value:function(){var e=this;this.elements.accordionTitles.forEach(function(t){t.addEventListener("click",e.onTitleClick.bind(e))})}},{key:"onTitleClick",value:function(t){var e=this.getSettings("multiExpand"),t=t.currentTarget.parentNode;e?this.toggleMultiExpandItem(t):this.changeActiveItem(t)}},{key:"toggleMultiExpandItem",value:function(t){var e=this.getSettings("classes.active"),n=this.getAccordionContent(t);t.classList.toggle(e),(0,r.slideToggle)(n,300)}},{key:"changeActiveItem",value:function(e){var n=this;this.isActiveItem(e)?this.deactiveItem(e):(this.elements.accordionItems.forEach(function(t){t!==e&&n.deactiveItem(t)}),this.activateItem(e))}},{key:"activateItem",value:function(t){var e=this.getSettings("classes.active"),n=this.getAccordionContent(t);t.classList.add(e),(0,r.slideDown)(n,300)}},{key:"deactiveItem",value:function(t){var e=this.getSettings("classes.active"),n=this.getAccordionContent(t);t.classList.remove(e),(0,r.slideUp)(n,300)}},{key:"isActiveItem",value:function(t){return t.classList.contains(this.getSettings("classes.active"))}},{key:"getAccordionContent",value:function(t){return t.querySelector(this.getSettings("selectors.accordionContent"))}}])&&c(t.prototype,e),n&&c(t,n),i}();(0,r.registerWidget)(t,"oew-accordion")},{"../lib/utils":1}]},{},[2]);