1 line
54 KiB
JavaScript
1 line
54 KiB
JavaScript
!function(){"use strict";function t(n){var r="stratum-instagram";$(document).ready(function(){var t=n.find(".".concat(r)),e=t.find(".".concat(r,"__wrapper"));e.hasClass("animate_on_scroll")&&t.imagesLoaded().progress(function(){new AnimOnScroll(e.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2})})})}function e(h){var v="stratum-counter";$(document).ready(function(){function t(){return{startVal:r,decimalPlaces:o,duration:i,useEasing:s,useGrouping:c,separator:l,decimal:u,easingFn:function(t,e){if(!t)return null;switch(e){case"outExpo":return function(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e};case"outQuintic":return function(t,e,n,r){var a=(t/=r)*t,o=a*t;return e+n*(o*a+-5*a*a+10*o+-10*a+5*t)};case"outCubic":return function(t,e,n,r){var a=(t/=r)*t;return e+n*(a*t+-3*a+3*t)}}}(s,d),numerals:function(t){switch(t){case"eastern_arabic":return["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"];case"farsi":return["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"];default:return null}}(f)}}var e=h.find(".".concat(v)),n=e.find(".".concat(v,"__wrapper")).data("options"),r=n.start,a=n.end,o=n.decimalPlaces,i=n.duration,s=n.useEasing,c=n.useGrouping,l=n.separator,u=n.decimal,d=n.easingFn,f=n.numerals,p=e.find(".".concat(v,"__number")),m=new Waypoint({element:p.get(0),handler:function(){new CountUp(p[0],a,t()).start(),m.destroy()},offset:"100%"})})}function n(v){var g="stratum-countdown";$(document).ready(function(){var t=v.find(".".concat(g)),e=t.find(".".concat(g,"__content")),n=e.data("datetime"),r=e.data("years"),a=e.data("months"),o=e.data("weeks"),i=e.data("days"),s=e.data("hours"),c=e.data("minutes"),l=e.data("seconds"),u=e.data("labels"),d=e.data("expire-actions"),f=e.data("expire-url"),p=e.data("expire-text"),m="";r&&(m+="Y"),a&&(m+="O"),o&&(m+="W"),i&&(m+="D"),s&&(m+="H"),c&&(m+="M"),l&&(m+="S");var h={until:"negative"==n?"":n,format:m};d&&(h.alwaysExpire=!0,d.includes("redirect")&&""!=f&&(h.expiryUrl=f),d.includes("message")&&""!=p&&(h.expiryText=p),d.includes("hide")&&(h.onExpiry=function(){t.hide()})),u&&(h.labels=u),e.countdown("destroy"),e.countdown(h)})}function r(g){var y="stratum-circle-progress-bar";$(document).ready(function(){var t=g.find(".".concat(y)),e=t.find(".".concat(y,"__wrapper")),n=e.data("options"),r=n.min,a=n.max,o=n.value,i=n.round,s=n.circle,c=n.padding,l=n.radius,u=n.thickness,d=n.bg,f=n.color,p=n.text,m={min:r,max:a,value:o,round:i,circle:s,padding:c,radius:l,thickness:u,bg:d,color:f};if(!s)var h=setInterval(function(){var t=g.find(".donut");t.length&&(t.css({transform:"rotate(315deg)",transformOrigin:"center"}),clearInterval(h))},1);p&&(m.text=function(t){return Math.floor(t.value/(t.max-t.min)*100)+"%"});var v=new Waypoint({element:t.get(0),handler:function(){e.donutty(m),v.destroy()},offset:"100%"})})}function o(l){var u="stratum-masonry-gallery";$(document).ready(function(){var t=l.find(".".concat(u)),e=t.data("options"),n=e.columns,r=e.gutter,a=void 0===r?0:r,o=e.animate,i=l.closest(".elementor-widget-".concat(u)).data("id");$(".".concat(u,"__item"),t).css("width","calc(100% / ".concat(n,")")),$(".".concat(u,"__item"),t).find(".stratum-masonry-gallery__image, .stratum-masonry-gallery__overlay").css({margin:a});var s={itemSelector:".elementor-element-".concat(i," .").concat(u,"__item"),horizontalOrder:!0,layoutMode:"masonry"};if(t[0])if(o)new AnimOnScroll(t.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2},s);else{var c=t.masonry(s);imagesLoaded(c).on("progress",function(){c.masonry("layout")})}})}function f(t){return(f="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)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(a){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach(function(t){var e,n,r;e=a,r=o[n=t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(o,t))})}return a}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function m(t,e,n){return(m=u()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var a=new(Function.bind.apply(t,r));return n&&l(a,n.prototype),a}).apply(null,arguments)}function h(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t,e,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function d(t,e){return _(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(t,e)||w(t,e)||O()}function g(t){return _(t)||b(t)||w(t)||O()}function y(t){return function(t){if(Array.isArray(t))return k(t)}(t)||b(t)||w(t)||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.")}()}function _(t){if(Array.isArray(t))return t}function b(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function w(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.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)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t){if(t.length){var e=function(e,n){e.on("init",function(){e.$el.find(".swiper-slide.swiper-slide-active").addClass("stratum-slide-active")}),e.init(),e.on("slideChange",function(){var t=e.$el.find(".swiper-slide");t.removeClass("stratum-slide-active"),setTimeout(function(){$(t[e.activeIndex]).addClass("stratum-slide-active")},n.textAnimationDelay)}),n.autoplay&&n.autoplayPause&&t.hover(function(){return e.autoplay.stop()},function(){return e.autoplay.start()})};t.on("mousedown",function(t){return t.stopPropagation()});var n=t.data("slider-options"),r=t.find(".swiper");if(n.navigation&&(n.navigation={nextEl:t.find(".stratum-swiper-button-next")[0],prevEl:t.find(".stratum-swiper-button-prev")[0]}),"fade"==n.effect&&(n.fadeEffect={crossFade:!0}),n.coverflow_visible&&t.closest(".elementor-section.elementor-section-stretched").length&&t.closest(".elementor-section.elementor-section-stretched").addClass("stratum-coverflow-full-width"),"vertical"==n.direction){var a=t.find(".swiper-slide"),o=0;a.each(function(t,e){o=$(e).innerHeight()>o?$(e).innerHeight():o}),r.css({"max-height":o+"px"}),n.height=o}if(n.breakpoints={360:{slidesPerView:n.responsive.slidesPerView_mobile,slidesPerColumn:n.responsive.slidesPerColumn_mobile,slidesPerGroup:n.responsive.slidesPerGroup_mobile,spaceBetween:n.responsive.spaceBetween_mobile},768:{slidesPerView:n.responsive.slidesPerView_tablet,slidesPerColumn:n.responsive.slidesPerColumn_tablet,slidesPerGroup:n.responsive.slidesPerGroup_tablet,spaceBetween:n.responsive.spaceBetween_tablet},1024:{slidesPerView:n.slidesPerView,slidesPerColumn:n.slidesPerColumn,slidesPerGroup:n.slidesPerGroup,spaceBetween:n.spaceBetween}},n.init=!1,elementorFrontend.utils.swiper)new elementorFrontend.utils.swiper(r,n).then(function(t){e(t,n)});else if("undefined"!=typeof Swiper){var i=new Swiper(r,n);e(i,n)}}}function j(){function a(t){return"string"==typeof t}return new Proxy({},{get:function(t,r){return function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)&&(e=t,t={}),a(t)&&(e=[t],t={}),Array.isArray(e)||(e=[e]);var n=function(t,e){for(var n=0,r=Object.entries(e);n<r.length;n++){var a=d(r[n],2),o=a[0],i=a[1];if("class"===o){var s,c=Array.isArray(i)?i:[i];(s=t.classList).add.apply(s,y(c))}else t.setAttribute(o,i)}return t}(document.createElement(r),t);return e.forEach(function(t){a(t)?n.textContent=t:n.appendChild(t)}),n}}})}function x(t){return new Proxy(t,{get:function(t,e){return e in t?t[e]:t[Array.from(e).reduce(function(t,e){return t+(e==e.toUpperCase()?"_".concat(e.toLowerCase()):e)})]}})}function P(t){var e=t.find(".".concat("stratum-advanced-slider"));S(e)}function M(t){var i=t.find(".".concat("stratum-advanced-accordion"));i.on("mousedown",function(t){return t.stopPropagation()});var e=i.data("accordion-options"),s=e.accordion_type,c=e.accordion_collapsible,n=e.accordion_interactivity,r=e.equal_height,a=$(i).find(".stratum-advanced-accordion__item-header");if(r){var o=0;$(i).find(".stratum-advanced-accordion__item-wrapper").each(function(){$(this).height()>o&&(o=$(this).height())}),$(i).find(".stratum-advanced-accordion__item-wrapper").height(o)}$(a).on(n,function(t){var e=$(this);if(!e.hasClass("animate-accordion")){e.addClass("animate-accordion");var n=e.parent(".stratum-advanced-accordion__item"),r=n.find(".stratum-advanced-accordion__item-content"),a=n.find(".stratum-advanced-accordion__item-wrapper").outerHeight(!0),o=$(i).find(".stratum-advanced-accordion__item-content").not(r);"accordion"==s&&($(i).find(".stratum-advanced-accordion__item-header").not(e).addClass("animate-accordion"),$(o).animate({opacity:0,height:"0px"},{duration:300,specialEasing:{opacity:"linear",height:"linear"},complete:function(){$(i).find(".stratum-advanced-accordion__item").not(n).removeClass("active-accordion"),$(i).find(".stratum-advanced-accordion__item-header").not(e).removeClass("animate-accordion")}})),n.hasClass("active-accordion")?"accordion"==s&&c||"toggle"==s?$(r).animate({opacity:0,height:"0px"},{duration:300,specialEasing:{opacity:"linear",height:"linear"},complete:function(){n.removeClass("active-accordion"),e.removeClass("animate-accordion")}}):"accordion"!=s||c||e.removeClass("animate-accordion"):$(r).animate({opacity:1,height:a},{duration:300,specialEasing:{opacity:"linear",height:"linear"},complete:function(){n.addClass("active-accordion"),e.removeClass("animate-accordion")}})}})}var T=function(t){var e=f(t);return null!=t&&("object"==e||"function"==e)},A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function z(t,e){return t(e={exports:{}},e.exports),e.exports}var I="object"==f(A)&&A&&A.Object===Object&&A,E="object"==("undefined"==typeof self?"undefined":f(self))&&self&&self.Object===Object&&self,L=I||E||Function("return this")(),D=function(){return L.Date.now()},H=L.Symbol,F=Object.prototype,R=F.hasOwnProperty,W=F.toString,B=H?H.toStringTag:void 0;var V=function(t){var e=R.call(t,B),n=t[B];try{var r=!(t[B]=void 0)}catch(t){}var a=W.call(t);return r&&(e?t[B]=n:delete t[B]),a},q=Object.prototype.toString;var G=function(t){return q.call(t)},N=H?H.toStringTag:void 0;var U=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(N&&N in Object(t)?V:G)(t)};var Q=function(t){return null!=t&&"object"==f(t)};var Y=function(t){return"symbol"==f(t)||Q(t)&&"[object Symbol]"==U(t)},Z=/^\s+|\s+$/g,J=/^[-+]0x[0-9a-f]+$/i,K=/^0b[01]+$/i,X=/^0o[0-7]+$/i,tt=parseInt;var et=function(t){if("number"==typeof t)return t;if(Y(t))return NaN;if(T(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=T(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Z,"");var n=K.test(t);return n||X.test(t)?tt(t.slice(2),n?2:8):J.test(t)?NaN:+t},nt=Math.max,rt=Math.min;function at(f){$(document).ready(function(){var t=f.find(".".concat("stratum-content-switcher")),e=t.hasClass("is-multiple"),n=t.hasClass("is-toggle");if(e){var r=function(a,o){var t="click"===a?o.outerWidth():i.outerWidth(),e="click"===a?o.outerHeight():i.outerHeight(),n="click"===a?o.position().left:i.position().left,r="click"===a?o.position().top:i.position().top;s.css({width:t,height:e,left:n,top:r}),$(window).on("resize orientationchange",ct(function(){var t="click"===a?o.outerWidth():i.outerWidth(),e="click"===a?o.outerHeight():i.outerHeight(),n="click"===a?o.position().left:i.position().left,r="click"===a?o.position().top:i.position().top;s.css({width:t,height:e,left:n,top:r})},100))},a=$(t).find(".stratum-content-switcher__nav-item > .stratum-content-switcher__nav-button"),i=$(t).find(".stratum-content-switcher__nav-item.is-active"),s=$(t).find(".stratum-content-switcher__nav-pill"),o=$(t).find(".stratum-content-switcher__content");r(),$(a).on("click",function(t){t.preventDefault(),t.stopPropagation(),r(t.type,$(this));var e=$(this).data("content"),n=$(o).find("#".concat(e));$(this).parents("li").addClass("is-active").siblings().removeClass("is-active"),n.addClass("is-active").siblings().removeClass("is-active")})}if(n){var c=function(t,e,n){if("click"===t){var r=e.data("content"),a=$(d).find("#".concat(r));l.prop("checked",n),e.addClass("is-active").siblings().removeClass("is-active"),a.addClass("is-active").siblings().removeClass("is-active")}if("change"===t)if(n){var o=e.parent().find(".stratum-content-switcher__nav-button:eq(0)").data("content"),i=$(d).find("#".concat(o));u.eq(0).addClass("is-active").siblings().removeClass("is-active"),i.addClass("is-active").siblings().removeClass("is-active")}else{var s=e.parent().find(".stratum-content-switcher__nav-button:eq(1)").data("content"),c=$(d).find("#".concat(s));u.eq(1).addClass("is-active").siblings().removeClass("is-active"),c.addClass("is-active").siblings().removeClass("is-active")}},l=$(t).find('input[type="checkbox"]'),u=$(t).find(".stratum-content-switcher__label > .stratum-content-switcher__nav-button"),d=$(t).find(".stratum-content-switcher__content");$(u).eq(1).is(".is-active")&&$(l).prop("checked","checked"),$(u).eq(0).on("click",function(t){t.preventDefault(),t.stopPropagation(),c(t.type,$(this),!1)}),$(u).eq(1).on("click",function(t){t.preventDefault(),t.stopPropagation(),c(t.type,$(this),!0)}),$(l).on("change",function(t){c(t.type,$(this),!this.checked)})}})}function ot(t){var e=t.find(".".concat("stratum-advanced-tabs"));e.on("mousedown",function(t){return t.stopPropagation()});var n=e.data("tabs-options"),r=n.tabs_interactivity,a=n.equal_height,i=$(e).find(".stratum-advanced-tabs__navigation-item"),s=$(e).find(".stratum-advanced-tabs__content");if(a){var o=0;$(e).find(".stratum-advanced-tabs__text").each(function(){$(this).height()>o&&(o=$(this).height())}),$(e).find(".stratum-advanced-tabs__text").height(o)}$(i).on(r,function(t){var e=$(this);i.removeClass("active-nav"),e.addClass("active-nav");var n=e.data("tab-id"),r=s.find(".stratum-advanced-tabs__content-item"),a=s.find('.stratum-advanced-tabs__content-item[data-tab-id="'+n+'"]'),o=a.find(".stratum-advanced-tabs__text").outerHeight(!0);r.removeClass("active-content"),r.css("height","0px"),a.addClass("active-content"),$(a).css("height",o)})}function it(_){var b="stratum-advanced-posts";$(document).ready(function(){$(".".concat(b));var f=_.find(".".concat(b)),p=f.find(".".concat(b,"__wrapper"));if(f.hasClass("layout-carousel"))S(f);else{var m,n,a,r=function(t,e){if("click"==t.type&&t.preventDefault(),!h&&!i){"scroll"==t.type&&$(window).off("scroll",e);var o=f.find(".stratum-advanced-posts__ajax-load-more-btn"),n=o.data("current-page"),r=n<o.data("max-page")&&n+1;0!=r&&(o.data("next-page",r),a.page=r,i=!0,$.post({url:stratum.ajax_url,data:{action:"stratum_ajax_get_articles",settings:a,nonce:stratum.nonces.get_articles},success:function(t){o.data("current-page",o.data("next-page"));var e=o.data("current-page");if(e<o.data("max-page")){var n=e+1;o.data("next-page",n)}else h=!0,y("disable"),o.parent(".ajax_load_more_pagination").remove();var r=document.createElement("div");r.innerHTML=t;var a=jQuery(".".concat(b,"__post"),r);v||a.addClass("ajax_article"),p.append(a),imagesLoaded(p).on("always",function(){setTimeout(function(){i=!1},500),s?c("reload",a):g&&(h||y("reload")),v?new AnimOnScroll(p.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2,animateVisible:!0}):a.each(function(t,e){setTimeout(function(){$(e).animate({opacity:1},500,function(){})},100+400*t)})})}}))}},h=!1,i=!1,v=p.hasClass("animate_on_scroll"),s=f.hasClass("masonry-enable"),t=f.find(".ajax_load_more_pagination").length,g=f.find(".ajax_load_more_pagination").hasClass("load_more_scroll");t&&(a=f.data("query-options"),f.on("click",".stratum-advanced-posts__ajax-load-more-btn",r));var e=function t(e){window.outerHeight<n.top?window.outerHeight+window.pageYOffset-200>n.top&&r(e,t):n.top-200<window.pageYOffset&&r(e,t)},y=function(t){n=$(".ajax_load_more_pagination").offset(),"init"==t?$(window).on("scroll",e):"reload"==t?($(window).off("scroll",e),$(window).on("scroll",e)):"disable"==t&&$(window).off("scroll",e)},c=function(t,e){var n=p.data("masonry-options"),r=n.columns,a=n.column_gap,o=void 0===a?0:a,i=n.row_gap,s=void 0===i?0:i,c=_.closest(".elementor-widget-".concat(b)).data("id"),l=o/parseInt(r)*(parseInt(r)-1),u=parseFloat(window.getComputedStyle(f.find(".grid-sizer").get(0)).width)-l;$(".".concat(b,"__post"),f).width(u).css({width:u,"margin-bottom":s});var d={itemSelector:".elementor-element-".concat(c," .").concat(b,"__post"),horizontalOrder:!0,columnWidth:u,transitionDuration:0,gutter:o};v?new AnimOnScroll(p.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2,animateVisible:!0},d):("init"==t?m=p.masonry(d):"reload"==t&&p.masonry("appended",e).masonry(),imagesLoaded(m).on("progress",function(){m.masonry("layout")}),g&&imagesLoaded(m).on("always",function(){h||y(t)}))};s?c("init"):(v&&new AnimOnScroll(p.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2,animateVisible:!1}),g&&(h||y("init")))}})}function st(t){var e=t.find(".".concat("stratum-testimonial-carousel"));S(e)}var ct=function(r,a,t){var o,i,s,c,l,u,d=0,f=!1,p=!1,e=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function m(t){var e=o,n=i;return o=i=void 0,d=t,c=r.apply(n,e)}function h(t){var e=t-u;return void 0===u||a<=e||e<0||p&&s<=t-d}function v(){var t,e,n=D();if(h(n))return g(n);l=setTimeout(v,(e=a-((t=n)-u),p?rt(e,s-(t-d)):e))}function g(t){return l=void 0,e&&o?m(t):(o=i=void 0,c)}function n(){var t,e=D(),n=h(e);if(o=arguments,i=this,u=e,n){if(void 0===l)return d=t=u,l=setTimeout(v,a),f?m(t):c;if(p)return clearTimeout(l),l=setTimeout(v,a),m(u)}return void 0===l&&(l=setTimeout(v,a)),c}return a=et(a)||0,T(t)&&(f=!!t.leading,s=(p="maxWait"in t)?nt(et(t.maxWait)||0,a):s,e="trailing"in t?!!t.trailing:e),n.cancel=function(){void 0!==l&&clearTimeout(l),o=u=i=l=void(d=0)},n.flush=function(){return void 0===l?c:g(D())},n},lt=Object.prototype.hasOwnProperty;function ut(t,e){return null!=t&<.call(t,e)}var dt=Array.isArray,ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pt=/^\w*$/;var mt=function(t,e){if(dt(t))return!1;var n=f(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Y(t))||(pt.test(t)||!ft.test(t)||null!=e&&t in Object(e))};var ht,vt=function(t){if(!T(t))return!1;var e=U(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},gt=L["__core-js_shared__"],yt=(ht=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||""))?"Symbol(src)_1."+ht:"";var _t=function(t){return!!yt&&yt in t},bt=Function.prototype.toString;var wt=function(t){if(null!=t){try{return bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},kt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,Ot=Object.prototype,St=Ct.toString,jt=Ot.hasOwnProperty,$t=RegExp("^"+St.call(jt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var xt=function(t){return!(!T(t)||_t(t))&&(vt(t)?$t:kt).test(wt(t))};var Pt=function(t,e){return null==t?void 0:t[e]};var Mt=function(t,e){var n=Pt(t,e);return xt(n)?n:void 0},Tt=Mt(Object,"create");function At(){this.__data__=Tt?Tt(null):{},this.size=0}function zt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var It=Object.prototype.hasOwnProperty;function Et(t){var e=this.__data__;if(Tt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return It.call(e,t)?e[t]:void 0}var Lt=Object.prototype.hasOwnProperty;function Dt(t){var e=this.__data__;return Tt?void 0!==e[t]:Lt.call(e,t)}function Ht(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Tt&&void 0===e?"__lodash_hash_undefined__":e,this}function Ft(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ft.prototype.clear=At,Ft.prototype.delete=zt,Ft.prototype.get=Et,Ft.prototype.has=Dt,Ft.prototype.set=Ht;var Rt=Ft;function Wt(){this.__data__=[],this.size=0}var Bt=function(t,e){return t===e||t!=t&&e!=e};var Vt=function(t,e){for(var n=t.length;n--;)if(Bt(t[n][0],e))return n;return-1},qt=Array.prototype.splice;function Gt(t){var e=this.__data__,n=Vt(e,t);return!(n<0)&&(n==e.length-1?e.pop():qt.call(e,n,1),--this.size,!0)}function Nt(t){var e=this.__data__,n=Vt(e,t);return n<0?void 0:e[n][1]}function Ut(t){return-1<Vt(this.__data__,t)}function Qt(t,e){var n=this.__data__,r=Vt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Yt.prototype.clear=Wt,Yt.prototype.delete=Gt,Yt.prototype.get=Nt,Yt.prototype.has=Ut,Yt.prototype.set=Qt;var Zt=Yt,Jt=Mt(L,"Map");var Kt=function(t){var e=f(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Xt=function(t,e){var n=t.__data__;return Kt(e)?n["string"==typeof e?"string":"hash"]:n.map};function te(t){var e=Xt(this,t).delete(t);return this.size-=e?1:0,e}function ee(t){return Xt(this,t).get(t)}function ne(t){return Xt(this,t).has(t)}function re(t,e){var n=Xt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function ae(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Rt,map:new(Jt||Zt),string:new Rt}},ae.prototype.delete=te,ae.prototype.get=ee,ae.prototype.has=ne,ae.prototype.set=re;var oe=ae,ie="Expected a function";function se(a,o){if("function"!=typeof a||null!=o&&"function"!=typeof o)throw new TypeError(ie);function i(){var t=arguments,e=o?o.apply(this,t):t[0],n=i.cache;if(n.has(e))return n.get(e);var r=a.apply(this,t);return i.cache=n.set(e,r)||n,r}return i.cache=new(se.Cache||oe),i}se.Cache=oe;var ce=se;var le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/\\(\\)?/g,de=function(t){var e=ce(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var a=[];return 46===t.charCodeAt(0)&&a.push(""),t.replace(le,function(t,e,n,r){a.push(n?r.replace(ue,"$1"):e||t)}),a});var fe=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a},pe=1/0,me=H?H.prototype:void 0,he=me?me.toString:void 0;var ve=function t(e){if("string"==typeof e)return e;if(dt(e))return fe(e,t)+"";if(Y(e))return he?he.call(e):"";var n=e+"";return"0"==n&&1/e==-pe?"-0":n};var ge=function(t){return null==t?"":ve(t)};var ye=function(t,e){return dt(t)?t:mt(t,e)?[t]:de(ge(t))};var _e=function(t){return Q(t)&&"[object Arguments]"==U(t)},be=Object.prototype,we=be.hasOwnProperty,ke=be.propertyIsEnumerable,Ce=_e(function(){return arguments}())?_e:function(t){return Q(t)&&we.call(t,"callee")&&!ke.call(t,"callee")},Oe=/^(?:0|[1-9]\d*)$/;var Se=function(t,e){var n=f(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Oe.test(t))&&-1<t&&t%1==0&&t<e};var je=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991};var $e=function(t){if("string"==typeof t||Y(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};var xe=function(t,e,n){for(var r=-1,a=(e=ye(e,t)).length,o=!1;++r<a;){var i=$e(e[r]);if(!(o=null!=t&&n(t,i)))break;t=t[i]}return o||++r!=a?o:!!(a=null==t?0:t.length)&&je(a)&&Se(i,a)&&(dt(t)||Ce(t))};var Pe=function(t,e){return null!=t&&xe(t,e,ut)};var Me=function(t){return t?(t=et(t))!==1/0&&t!==-1/0?t==t?t:0:17976931348623157e292*(t<0?-1:1):0===t?t:0};var Te=function(t){var e=Me(t),n=e%1;return e==e?n?e-n:e:0};var Ae=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=Te(t),function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var ze=function(t){return Ae(2,t)};var Ie=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ee=/&(?:amp|lt|gt|quot|#39);/g,Le=RegExp(Ee.source);var De=function(t){return(t=ge(t))&&Le.test(t)?t.replace(Ee,Ie):t};function He(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Fe(t){return this.__data__.get(t)}function Re(t){return this.__data__.has(t)}function We(t,e){var n=this.__data__;if(n instanceof Zt){var r=n.__data__;if(!Jt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new oe(r)}return n.set(t,e),this.size=n.size,this}function Be(t){var e=this.__data__=new Zt(t);this.size=e.size}Be.prototype.clear=function(){this.__data__=new Zt,this.size=0},Be.prototype.delete=He,Be.prototype.get=Fe,Be.prototype.has=Re,Be.prototype.set=We;var Ve=Be;function qe(t){return this.__data__.has(t)}function Ge(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new oe;++e<n;)this.add(t[e])}Ge.prototype.add=Ge.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ge.prototype.has=qe;var Ne=Ge;var Ue=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};var Qe=function(t,e){return t.has(e)};var Ye=function(t,e,n,r,a,o){var i=1&n,s=t.length,c=e.length;if(s!=c&&!(i&&s<c))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var u=-1,d=!0,f=2&n?new Ne:void 0;for(o.set(t,e),o.set(e,t);++u<s;){var p=t[u],m=e[u];if(r)var h=i?r(m,p,u,e,t,o):r(p,m,u,t,e,o);if(void 0!==h){if(h)continue;d=!1;break}if(f){if(!Ue(e,function(t,e){if(!Qe(f,e)&&(p===t||a(p,t,n,r,o)))return f.push(e)})){d=!1;break}}else if(p!==m&&!a(p,m,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d},Ze=L.Uint8Array;function Je(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function Ke(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var Xe=H?H.prototype:void 0,tn=Xe?Xe.valueOf:void 0;var en=function(t,e,n,r,a,o,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return t.byteLength==e.byteLength&&o(new Ze(t),new Ze(e))?!0:!1;case"[object Boolean]":case"[object Date]":case"[object Number]":return Bt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Je;case"[object Set]":var c=1&r;if(s=s||Ke,t.size!=e.size&&!c)return!1;var l=i.get(t);if(l)return l==e;r|=2,i.set(t,e);var u=Ye(s(t),s(e),r,a,o,i);return i.delete(t),u;case"[object Symbol]":if(tn)return tn.call(t)==tn.call(e)}return!1};var nn=function(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t};var rn=function(t,e,n){var r=e(t);return dt(t)?r:nn(r,n(t))};var an=function(t,e){for(var n=-1,r=null==t?0:t.length,a=0,o=[];++n<r;){var i=t[n];e(i,n,t)&&(o[a++]=i)}return o};function on(){return[]}var sn=Object.prototype.propertyIsEnumerable,cn=Object.getOwnPropertySymbols,ln=cn?function(e){return null==e?[]:(e=Object(e),an(cn(e),function(t){return sn.call(e,t)}))}:on;var un=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};function dn(){return!1}var fn=z(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,a=r&&r.exports===n?L.Buffer:void 0,o=(a?a.isBuffer:void 0)||dn;t.exports=o}),pn={};pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Arguments]"]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object Boolean]"]=pn["[object DataView]"]=pn["[object Date]"]=pn["[object Error]"]=pn["[object Function]"]=pn["[object Map]"]=pn["[object Number]"]=pn["[object Object]"]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object WeakMap]"]=!1;function mn(t){return Q(t)&&je(t.length)&&!!pn[U(t)]}var hn=function(e){return function(t){return e(t)}},vn=z(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,a=r&&r.exports===n&&I.process,o=function(){try{var t=r&&r.require&&r.require("util").types;return t?t:a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=o}),gn=vn&&vn.isTypedArray,yn=gn?hn(gn):mn,_n=Object.prototype.hasOwnProperty;var bn=function(t,e){var n=dt(t),r=!n&&Ce(t),a=!n&&!r&&fn(t),o=!n&&!r&&!a&&yn(t),i=n||r||a||o,s=i?un(t.length,String):[],c=s.length;for(var l in t)!e&&!_n.call(t,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Se(l,c))||s.push(l);return s},wn=Object.prototype;var kn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wn)};var Cn=function(e,n){return function(t){return e(n(t))}}(Object.keys,Object),On=Object.prototype.hasOwnProperty;var Sn=function(t){if(!kn(t))return Cn(t);var e=[];for(var n in Object(t))On.call(t,n)&&"constructor"!=n&&e.push(n);return e};var jn=function(t){return null!=t&&je(t.length)&&!vt(t)};function $n(t){return(jn(t)?bn:Sn)(t)}var xn=function(t){return rn(t,$n,ln)},Pn=Object.prototype.hasOwnProperty;var Mn=function(t,e,n,r,a,o){var i=1&n,s=xn(t),c=s.length;if(c!=xn(e).length&&!i)return!1;for(var l=c;l--;){var u=s[l];if(!(i?u in e:Pn.call(e,u)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var f=!0;o.set(t,e),o.set(e,t);for(var p=i;++l<c;){var m=t[u=s[l]],h=e[u];if(r)var v=i?r(h,m,u,e,t,o):r(m,h,u,t,e,o);if(!(void 0===v?m===h||a(m,h,n,r,o):v)){f=!1;break}p=p||"constructor"==u}if(f&&!p){var g=t.constructor,y=e.constructor;g!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y)&&(f=!1)}return o.delete(t),o.delete(e),f},Tn=Mt(L,"DataView"),An=Mt(L,"Promise"),zn=Mt(L,"Set"),In=Mt(L,"WeakMap"),En="[object Map]",Ln="[object Promise]",Dn="[object Set]",Hn="[object WeakMap]",Fn="[object DataView]",Rn=wt(Tn),Wn=wt(Jt),Bn=wt(An),Vn=wt(zn),qn=wt(In),Gn=U;(Tn&&Gn(new Tn(new ArrayBuffer(1)))!=Fn||Jt&&Gn(new Jt)!=En||An&&Gn(An.resolve())!=Ln||zn&&Gn(new zn)!=Dn||In&&Gn(new In)!=Hn)&&(Gn=function(t){var e=U(t),n="[object Object]"==e?t.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case Rn:return Fn;case Wn:return En;case Bn:return Ln;case Vn:return Dn;case qn:return Hn}return e});var Nn=Gn,Un="[object Arguments]",Qn="[object Array]",Yn="[object Object]",Zn=Object.prototype.hasOwnProperty;var Jn=function(t,e,n,r,a,o){var i=dt(t),s=dt(e),c=i?Qn:Nn(t),l=s?Qn:Nn(e),u=(c=c==Un?Yn:c)==Yn,d=(l=l==Un?Yn:l)==Yn,f=c==l;if(f&&fn(t)){if(!fn(e))return!1;u=!(i=!0)}if(f&&!u)return o=o||new Ve,i||yn(t)?Ye(t,e,n,r,a,o):en(t,e,c,n,r,a,o);if(!(1&n)){var p=u&&Zn.call(t,"__wrapped__"),m=d&&Zn.call(e,"__wrapped__");if(p||m)return a(p?t.value():t,m?e.value():e,n,r,o=o||new Ve)}return f&&(o=o||new Ve,Mn(t,e,n,r,a,o))};var Kn=function t(e,n,r,a,o){return e===n||(null==e||null==n||!Q(e)&&!Q(n)?e!=e&&n!=n:Jn(e,n,r,a,t,o))};function Xn(t){elementorFrontend.elementsHandler.addHandler(ur,{$element:t})}function tr(){if(Pe(pr.prototype,"panel")){var r=function(t){var e=pr.prototype.view,n=t.target,r=fr(n).closest(".elementor-repeater-row-controls"),a=i.index(r),o=e.$el.find(".".concat(dr,"__dot")).get(a);o.style.length&&(n.onmousemove=function(t){var e=t.target;o.removeAttribute("style"),e.onmousemove=null}),n.onmouseup=function(t){var e=t.target;e.onmousemove&&(e.onmousemove=null),e.onmouseup=null}},i=pr.prototype.panel.$el.find(".elementor-repeater-row-controls");fr.each(i,function(t,e){var n=fr(e).find('.elementor-slider [role="slider"]');fr.each(n,function(t,e){e.onmousedown=r})})}}function er(t){function e(){return a.removeClass("default-active")}var n="stratum-image-accordion",r=t.find(".".concat(n)),a=r.find(".default-active"),o=r.hasClass("activate-on-click");if(a.length&&!o?r.mouseover(e):r.click(e),o){var i=r.find(".".concat(n,"__item"));i.click(function(t){var e=vr(t.currentTarget);e.hasClass("active")||(i.removeClass("active"),setTimeout(function(){return e.addClass("active")},100),r.hasClass("image-accordion-horizontal")?(i.css({flexGrow:1}),e.css({flexGrow:3})):(i.css({height:200}),e.css({height:400})))})}}function nr(t){var n=t.find(".".concat(gr,"-item__point")),r=0;yr.each(n,function(t,e){n[t+1]&&(r+=n[t+1].getBoundingClientRect().top-e.getBoundingClientRect().top)});var e=t.find("div[class$=__line]"),a=g(n.get()),o=a[0],i=(a.slice(1),yr(o).position().top+yr(o).height()/2);e.css({height:r,top:i})}function rr(t){var e=t.find(".".concat(gr,"-item__point")),n=g(e.get());n[0],n.slice(1).length&&yr.each(e,function(t,e){var n=e.getBoundingClientRect().top,r=yr(e).parents(".".concat(gr,"-item"))[0];n<=_r?yr(r).hasClass("is-active")||yr(r).addClass("is-active"):yr(r).hasClass("is-active")&&yr(r).removeClass("is-active")})}function ar(t){var e=t.find(".".concat(gr,"-item__point")),n=t.find("div[class*=__line-progress]")[0],r=n.getBoundingClientRect().top,a=g(e.toArray()),o=a[0],i=a.slice(1),s=_r-o.getBoundingClientRect().top;if(i.length){var c=i.slice(-1).pop().getBoundingClientRect().top;r<=_r&&_r<=c&&yr(n).css({height:s}),_r<=r&&yr(n).css({height:0}),c<=_r&&yr(n).css({height:"100%"})}}function or(t){var e=t.find(".".concat(gr)),r=e.find(".".concat(gr,"-item")),n="none"!=e.data("animation")?e.data("animation"):null,a=!1;function o(n){yr.each(r,function(t,e){yr(e).hasClass("is-hidden")&&e.getBoundingClientRect().top<=.8*window.innerHeight&&(yr(e).removeClass("is-hidden"),yr(e).addClass(n))}),a=!1}yr.each(r,function(t,e){n&&(e.getBoundingClientRect().top>.8*window.innerHeight?yr(e).addClass("is-hidden"):yr(e).addClass(n))}),n&&yr(document).scroll(function(){a||(a=!0,window.requestAnimationFrame?window.requestAnimationFrame(function(){return o(n)}):setTimeout(function(){return o(n)},250))}),nr(e);var i=setInterval(function(){"complete"==document.readyState&&(nr(e),rr(e),ar(e),yr(document).scroll(function(){rr(e),ar(e)}),clearInterval(i))},1);yr(window).resize(function(){nr(e),rr(e),ar(e)})}function ir(t){var n=t.find(".".concat(br,"-item__point-content")),r=0;wr.each(n,function(t,e){n[t+1]&&(r+=n[t+1].getBoundingClientRect().left-e.getBoundingClientRect().left)});var e=t.find("div[class$=__line]"),a=g(n.get()),o=a[0],i=(a.slice(1),wr(o).position().left+wr(o).width()/2);e.css({width:r,left:i})}function sr(t){var e=t.find(".".concat(br));e.find(".".concat(br,"-item")),ir(e);var n=setInterval(function(){"complete"==document.readyState&&(ir(e),clearInterval(n))},1);wr(window).resize(function(){return ir(e)})}function cr(t){var a=t.find(".".concat(kr)).find(".".concat(kr,"__wrapper")),e=a.data("lottie-url"),n=a.data("lottie-render"),r=a.data("lottie-loop"),o=a.data("lottie-reverse"),i=a.data("lottie-speed"),s=a.data("lottie-scroll"),c=a.data("lottie-hover"),l=lottie.loadAnimation({container:a[0],renderer:n||"svg",loop:!!r,path:e,autoplay:!0});o&&l.setDirection(-1),i&&1!==i&&l.setSpeed(i),l.addEventListener("DOMLoaded",function(){if(s){var t=a.data("scroll-speed"),e=a.data("scroll-start"),n=a.data("scroll-end");l.pause();var r={elementType:"SECTION",animate:{speed:t,range:{start:e,end:n}},effects:["animate"]};new Or(a[0],r,l).init()}c&&(l.pause(),a.hover(function(){l.play()},function(){l.pause()}))})}var lr=function(t,e){return Kn(t,e)},ur=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&&l(t,e)}(d,elementorModules.frontend.handlers.Base);var r,a,t=(r=d,a=u(),function(){var t,e=p(r);if(a){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function d(){return i(this,d),t.apply(this,arguments)}return s(d,[{key:"getDefaultSettings",value:function(){return{selectors:{mainClass:"stratum-advanced-google-map",modeClass:"elementor-element-edit-mode",saveButtonClass:"elementor-button-success",editableClass:"elementor-element-editable",disabledClass:"elementor-disabled"}}}},{key:"getDefaultElements",value:function(){var t=this.getSettings("selectors"),e=t.mainClass,n=t.saveButtonClass;return this.initEditor=ze(this.initEditor),this.isEditor=this.$element.hasClass(t.modeClass),C({$map:this.$element.find(".".concat(e)),$container:this.$element.find(".".concat(e,"__container"))},this.isEditor?{$saveButton:elementor.getPanelView().$el.find(".".concat(n))}:{})}},{key:"onInit",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=v(p(d.prototype),"onInit",this)).call.apply(t,[this].concat(n));var a=this.elements.$map.data("map-options"),o=a.center,i=a.zoomLevel,s=a.controls,c=a.mapTheme,l=a.interaction,u=this.getCoordinates(o);this.map=new google.maps.Map(this.elements.$container[0],C({center:u,zoom:parseInt(i.size),styles:"object"!=f(c)?googleMapStyles[c]:c,zoomControlOptions:{position:google.maps.ControlPosition.TOP_LEFT},gestureHandling:l,draggable:!0},s)),this.isEditor&&(this.attributes=x(elementorFrontendConfig.elements.data[this.getModelCID()].attributes)),this.initMarkers(this.chnageTypeSetup(a))}},{key:"initMarkers",value:function(t){this.markers=[],this.geocoder=new google.maps.Geocoder;var o=t.markerTypeSetup,e=t.markers,i=this;$.each(e,function(t,e){var n=e.markerLat,r=e.markerLng;if(delete e.markerLat,delete e.markerLng,lr(o,"address"))i.geocode(e);else{var a=new google.maps.LatLng(parseFloat(n),parseFloat(r));i.createMarker(a,e)}}),this.isEditor&&this.initEditor(t)}},{key:"geocode",value:function(r){var t=r.mapGeoAddress,a=this;this.geocoder.geocode({address:t},function(t,e){if(lr(e,"OK")){var n=t[0].geometry.location;a.markers.length?(a.map.setZoom(12),a.map.panTo(n),a.markers[0].setPosition(n),a.currentPageModel.setSetting("marker_lat",n.lat()),a.currentPageModel.setSetting("marker_lng",n.lng())):(a.createMarker(n,r),a.focusOnMarker(a.markers[0]),a.initMarkersHandler(),a.setMarkerDragEnable(!1))}})}},{key:"createMarker",value:function(t,e){var n=Pe(e,"customIcon")?e.customIcon.markerIcon.url:"";this.attachMessage(new google.maps.Marker(C(C(C({map:this.map,position:t},this.isEditor?{draggable:!0}:{}),e.markerTitle?{title:e.markerTitle}:{}),Pe(e,"customIcon")&&n?{icon:this.setMarkerIcon(e.customIcon)}:{})),e)}},{key:"attachMessage",value:function(t,e){var n=e.markerContent,r=e.popupMaxWidth,a=e.isOpenPopup;if(this.markers.push(t),n){var o=j().div,i=this.getSettings("selectors");t.info=new google.maps.InfoWindow({content:o({class:".".concat(i.mainClass,"__marker-popup")},De(n)).outerHTML,maxWidth:r})}var s=this;a&&Pe(t,"info")&&setTimeout(function(){return t.info.open(s.map,t)},1e3),Pe(t,"info")&&t.addListener("click",function(){return t.info.open(s.map,t)})}},{key:"setMarkerIcon",value:function(t){var e=t.markerIcon,n=t.markerIconWidth,r=t.markerIconHeight;return{url:e.url,scaledSize:new google.maps.Size(n.size,r.size)}}},{key:"getCoordinates",value:function(e){return m(google.maps.LatLng,y(Object.keys(e).map(function(t){return parseFloat(e[t])})))}},{key:"initEditor",value:function(t){var e=this;this.$element.css({opacity:1}),["dragstart","mousemove"].forEach(function(t){return e.$element.on(t,function(t){return t.stopPropagation()})}),lr(elementor.getPanelView().currentPageName,"editor")?this.currentPageModel=elementor.getPanelView().currentPageView.model:(this.setMapAvailability(!1),this.setMarkerDragEnable(!1));var c=this;this.mutationObserver=new MutationObserver(function(t){$.each(t,function(t,e){if(lr(e.attributeName,"class")){var n=c.getSettings("selectors"),r=!!Array.from(e.target.classList).includes(n.editableClass);if(c.setMapAvailability(r),r){var a=c.attributes.mapTypeSetup,o=lr(a,"multiple")?"coordinates":c.attributes.markerTypeSetup,i=!lr(o,"address"),s=elementor.getCurrentElement();s&&(s.render=function(){}),c.currentPageModel=elementor.getPanelView().currentPageView.model,c.setMarkerDragEnable(i)}}})}),this.mutationObserver.observe(this.$element[0],{attributes:!0}),this.initMapHandlers(),lr(t.markerTypeSetup,"address")||this.initMarkersHandler();var n=this.attributes.markers;n.on("add",function(t,e){var n=t.collection.indexOf(t);e.models[n].on("change",function(t){return c.updateMarkersOptions(t)});var r=x(t.attributes),a=r.markerLat,o=r.markerLng,i=c.getMarkersOptions().markers.pop();delete i.markerLat,delete i.markerLng,c.createMarker(c.getCoordinates({lat:a,lng:o}),i),c.initDragHandler(c.markers[n]),c.focusOnMarker(c.markers[n])}),n.on("remove",function(t,e,n){c.markers[n.index].setMap(null),c.markers=c.markers.filter(function(t,e){return e!=n.index})}),n.models.forEach(function(t){return t.on("change",function(t){return c.updateMarkersOptions(t)})})}},{key:"updateMarkersOptions",value:function(t){var e=x(t.attributes),n=e.markerTitle,r=e.markerLat,a=e.markerLng,o=e.useCustomIcon,i=e.markerIcon,s=e.markerIconWidth,c=e.markerIconHeight,l=t.collection.indexOf(t),u=i.url;this.markers[l].setOptions(C(C(C({},n?{title:n}:{}),{icon:this.setMarkerIcon(C(C(C({},u&&o?{markerIcon:i}:{markerIcon:{url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png"}}),u&&o?{markerIconWidth:s}:{markerIconWidth:{size:27}}),u&&o?{markerIconHeight:c}:{markerIconHeight:{size:43}}))}),{},{position:this.getCoordinates({markerLat:r,markerLng:a})}));var d=e.markerContent,f=e.popupMaxWidth;Pe(this.markers[l],"info")&&this.markers[l].info.setContent(d),Pe(this.markers[l],"info")&&this.markers[l].info.setOptions({maxWidth:f})}},{key:"getMarkersOptions",value:function(){function e(t){var e=t.markerTitle,n=t.markerContent,r=t.popupMaxWidth,a=t.isOpenPopup,o=t.markerLat,i=t.markerLng,s=t.useCustomIcon,c=null;return s&&(c={markerIcon:t.markerIcon,markerIconWidth:t.markerIconWidth,markerIconHeight:t.markerIconHeight}),C(C({markerTitle:e,markerContent:n,popupMaxWidth:r,isOpenPopup:a,markerLat:o,markerLng:i},s?{customIcon:c}:{}),lr(l,"address")?{mapGeoAddress:u}:{})}var t=this.attributes,n=t.mapTypeSetup,l=t.markerTypeSetup,u=t.mapGeoAddress,r=t.markers;return C({mapTypeSetup:n,markerTypeSetup:l},lr(n,"single")?{markers:[e(this.attributes)]}:{markers:r.models.map(function(t){return e(x(t.attributes))})})}},{key:"getMapOptions",value:function(){var t=this.attributes,e=t.mapLat,n=t.mapLng,r=t.zoomLevel,a=t.interaction,o=this.attributes,i=o.streetViewControl,s=o.mapTypeControl,c=o.zoomControl;return{zoomLevel:r,interaction:a,center:{mapLat:e,mapLng:n},controls:{streetViewControl:i,fullscreenControl:o.fullscreenControl,mapTypeControl:s,zoomControl:c}}}},{key:"setMapAvailability",value:function(t){this.map.setOptions({draggable:t,disableDoubleClickZoom:t})}},{key:"setMarkerDragEnable",value:function(n){$.each(this.markers,function(t,e){return e.setDraggable(n)})}},{key:"focusOnMarker",value:function(t){var e=t.position;this.map.setCenter(new google.maps.LatLng(e.lat(),e.lng()))}},{key:"initMapHandlers",value:function(){var n=this,r=this.getSettings("selectors");this.map.addListener("dragend",function(){if(n.currentPageModel){var t=n.map.getCenter().lat().toString(),e=n.map.getCenter().lng().toString();n.currentPageModel.setSetting("map_lat",t),n.currentPageModel.setSetting("map_lng",e),n.elements.$saveButton.removeClass(r.disabledClass)}}),this.map.addListener("click",function(){$.each(n.markers,function(t,e){Pe(e,"info")&&e.info.close()})}),this.map.addListener("zoom_changed",function(){if(n.currentPageModel){var t=n.map.getZoom(),e=n.map.getCenter();n.currentPageModel.setSetting("map_lat",e.lat()),n.currentPageModel.setSetting("map_lng",e.lng()),n.currentPageModel.setSetting("zoom_level",{size:t,sizes:[],unit:"px"}),n.elements.$saveButton.removeClass(r.disabledClass)}})}},{key:"initMarkersHandler",value:function(){var n=this;$.each(this.markers,function(t,e){n.initDragHandler(e)})}},{key:"initDragHandler",value:function(o){var i=this;o.addListener("dragend",function(t){if(i.currentPageModel){var e=i.markers.indexOf(o),n=t.latLng.lat().toString(),r=t.latLng.lng().toString();lr(i.attributes.mapTypeSetup,"single")?(i.currentPageModel.setSetting("marker_lat",n),i.currentPageModel.setSetting("marker_lng",r),i.setAddressAfterDrag({lat:t.latLng.lat(),lng:t.latLng.lng()})):(i.currentPageModel.setSetting("markers.".concat(e,".marker_lat"),n),i.currentPageModel.setSetting("markers.".concat(e,".marker_lng"),r));var a=i.getSettings("selectors");i.elements.$saveButton.removeClass(a.disabledClass)}})}},{key:"setAddressAfterDrag",value:function(t){var r=this;this.geocoder.geocode({location:t},function(t,e){if(lr(e,"OK")){var n=t[0];n&&r.currentPageModel.setSetting("map_geo_address",n.formatted_address)}})}},{key:"chnageTypeSetup",value:function(t){var e=t.mapTypeSetup,n=t.markerTypeSetup;return C(C({},t),lr(e,"multiple")?{markerTypeSetup:"coordinates"}:{markerTypeSetup:n})}},{key:"onElementChange",value:function(t){var e=this.getElementSettings(t),n=this.getMarkersOptions();switch(t){case"map_type_setup":$.each(this.markers,function(t,e){return e.setMap(null)}),n=this.chnageTypeSetup(n),this.initMarkers(n),lr(n.markerTypeSetup,"address")||this.focusOnMarker(this.markers[0]),this.initMarkersHandler();break;case"marker_type_setup":var r=!lr(e,"address");this.setMarkerDragEnable(r);break;case"map_geo_address":this.geocode({mapGeoAddress:e});break;case"marker_content":Pe(this.markers[0],"info")&&this.markers[0].info.setContent(e);break;case"popup_max_width":Pe(this.markers[0],"info")&&this.markers[0].info.setOptions({maxWidth:e});break;case"marker_icon":if(e.url){var a=this.attributes,o=a.markerIconWidth,i=a.markerIconHeight;this.markers[0].setIcon({url:e.url,scaledSize:new google.maps.Size(o.size,i.size)})}else this.markers[0].setIcon({url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png",scaledSize:new google.maps.Size(27,43)});break;case"use_custom_icon":if(e){var s=this.attributes,c=s.markerIcon,l=s.markerIconWidth,u=s.markerIconHeight;c.url&&this.markers[0].setIcon({url:c.url,scaledSize:new google.maps.Size(l.size,u.size)})}else this.markers[0].setIcon({url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png",scaledSize:new google.maps.Size(27,43)});break;case"map_theme_source":switch(e){case"standard":this.map.setOptions({styles:googleMapStyles[this.attributes.mapStandardsStyles]});break;case"snazzymaps":this.map.setOptions({styles:googleMapStyles[this.attributes.mapSnazzyStyles]});break;case"custom":var d=this.attributes.mapCustomStyle;try{d&&this.map.setOptions({styles:JSON.parse(d)})}catch(t){console.error(t.toString())}break;default:return}break;case"map_standards_styles":case"map_snazzy_styles":this.map.setOptions({styles:googleMapStyles[e]});break;case"map_custom_style":try{e&&this.map.setOptions({styles:JSON.parse(e)})}catch(t){console.error(t.toString())}break;default:var f=this.getMapOptions(),p=f.interaction,m=f.zoomLevel,h=f.center,v=f.controls,g=n.markers[0],y=g.markerTitle,_=g.markerLat,b=g.markerLng,w=g.customIcon,k=(w||{markerIcon:{url:""}}).markerIcon.url;return this.map.setOptions(C({center:this.getCoordinates(h),gestureHandling:p,zoom:m.size},v)),void this.markers[0].setOptions(C({title:y,position:this.getCoordinates({markerLat:_,markerLng:b})},w&&k?{icon:this.setMarkerIcon(w)}:{}))}}},{key:"onDestroy",value:function(){}}]),d}(),dr="stratum-image-hotspot",fr=window.jQuery,pr=function(t){var r=t.find(".".concat(dr));r.on("mousedown",function(t){return t.stopPropagation()});var e=r.find(".".concat(dr,"__dot")),n=r.find(".".concat(dr,"__wrapper"));tr(),n.imagesLoaded().done(function(){fr.each(e,function(t,e){var n=fr(e).find(".".concat(dr,"__dot-wrapper")).data("options");n&&hr(n,e),window.elementor&&mr(r,n,e)})})},mr=function(s,t,e){var n=s.find(".".concat(dr,"__wrapper")),r=new Draggabilly(e,{containment:n});t&&r.on("dragStart",function(){fr(".tippy-box").parent().remove()}),r.on("dragEnd",function(t){var e=s.find(".".concat(dr,"__dot")),n=fr(t.target).closest(".".concat(dr,"__dot")),r=parseFloat(n[0].offsetLeft/n[0].parentNode.offsetWidth*100),a=parseFloat(n[0].offsetTop/n[0].parentNode.offsetHeight*100);r=r<0?0:100<r?100:r,a=a<0?0:100<a?100:a,n.css({left:r+"%",top:a+"%"});var o=pr.prototype.view,i=e.index(n);o.model.setSetting("hot_spots.".concat(i,".left_position"),{unit:"px",size:r,sizes:[]}),o.model.setSetting("hot_spots.".concat(i,".top_position"),{unit:"px",size:a,sizes:[]}),elementor.getPanelView().$el.find(".elementor-button-success").removeClass("elementor-disabled")})},hr=function(t,e){var n=t.open,r=t.placement,a=t.tooltipArrow,o=t.tooltipTheme,i=t.tooltipAnimation,s=t.tooltipTrigger,c=t.tooltipTitle,l=t.tooltipContent,u=j().div,d={class:"".concat(dr,"__tooltip-title")},f={class:"".concat(dr,"__tooltip-content")},p=u({class:"".concat(dr,"__tooltip-wrapper")},[u(d,c),u(f,l)]),m={placement:r,arrow:a,hideOnClick:!0,theme:o,animation:i,animateFill:!1,trigger:"hover"==s?"mouseenter":"click",interactive:!0,allowHTML:!0,content:De(p.outerHTML)};window.elementor&&(m.interactive=!1);var h=tippy(e,m);n&&setTimeout(function(){h.show()},1e3)},vr=window.jQuery,gr="stratum-vertical-timeline",yr=window.jQuery,_r=yr(window).height()/2,br="stratum-horizontal-timeline",wr=window.jQuery,kr="stratum-lottie-animations",Cr=window.jQuery,Or=function(){function r(t,e,n){i(this,r),this.$element=Cr(t),this.elementSettings=e,this.elementType=e.elementType,this.scrolls=this.$element.data("scrolls"),this.lottieInstance=n,this.elementRules={},this.initScroll=this.initScroll.bind(this)}return s(r,[{key:"init",value:function(){this.scrolls||"SECTION"===this.elementType?this.elementSettings.effects.length&&(this.setDefaults(),elementorFrontend.elements.$window.on("scroll load",this.initScroll)):elementorFrontend.elements.$window.off("scroll load",this.initScroll)}},{key:"setDefaults",value:function(){this.elementSettings.defaults={},this.elementSettings.defaults.axis="y"}},{key:"getPercents",value:function(){var t=this.getDimensions(),e=t.elementTop-pageYOffset-innerHeight;return 100/t.range*(-1*e)}},{key:"initScroll",value:function(){this.initScrollEffects()}},{key:"initScrollEffects",value:function(){var t=this.getPercents();this.elementSettings.effects.includes("animate")&&this.animate(t,this.elementSettings.animate),this.elementSettings.effects.includes("translateY")&&this.transform("translateY",t,this.elementSettings.vscroll)}},{key:"getDimensions",value:function(){var t=this.$element.offset(),e={elementHeight:this.$element.outerHeight(),elementWidth:this.$element.outerWidth(),elementTop:t.top,elementLeft:t.left};return e.range=e.elementHeight+innerHeight,e}},{key:"getStep",value:function(t,e){return-(t-50)*e.speed}},{key:"animate",value:function(t,e){var n=this.lottieInstance.totalFrames;e.range&&(e.range.start>t&&(t=e.range.start),e.range.end<t&&(t=e.range.end));var r=t/100*n;this.lottieInstance.goToAndStop(r,!0)}},{key:"transform",value:function(t,e,n){"down"===n.direction&&(e=100-e),n.range&&(n.range.start>e&&(e=n.range.start),n.range.end<e&&(e=n.range.end)),this.elementSettings.defaults.unit="px",this.updateElement("transform",t,this.getStep(e,n)+this.elementSettings.defaults.unit)}},{key:"updateElement",value:function(t,e,n){this.elementRules[t]||(this.elementRules[t]={}),this.elementRules[t][e]||(this.elementRules[t][e]=!0,this.updateElementRule(t));var r="--"+e;this.$element[0].style.setProperty(r,n)}},{key:"updateElementRule",value:function(t){var e="";Cr.each(this.elementRules[t],function(t){return e+=(function(t){throw new Error('"'+t+'" is read-only')}("cssValue"),t+"(var(--"+t+"))")}),this.$element.css(t,e)}}]),r}();$=jQuery,$(window).on("elementor/frontend/init",function(){window.elementor&&(elementor.hooks.addAction("panel/open_editor/widget",function(t,e,n){var r="stratum-image-hotspot";if(n.$el.hasClass("elementor-widget-".concat(r)))var a=setInterval(function(){$(".".concat(r)).length&&(pr.prototype.panel=t,pr.prototype.view=n,tr(),clearInterval(a))},1)}),elementor.channels.editor.on("section:activated",function(t,e){var n=e.getOption("editedElementView"),r="stratum-flip-box",a=n.model.get("widgetType");if(lr(a,r)){var o=n.$el.find(".".concat(r,"__back")),i=-1!==["section_back_content","section_syle_back"].indexOf(t);n.$el.toggleClass("".concat(r,"--flipped"),i),i&&o.css("transition","none"),i||setTimeout(function(){o.css("transition","")},10)}})),elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){}),elementorFrontend.hooks.addAction("frontend/element_ready/section",function(t){}),elementorFrontend.hooks.addAction("frontend/element_ready/column",function(t){});var a={instagram:t,counter:e,countdown:n,"circle-progress-bar":r,"masonry-gallery":o,"image-hotspot":pr,"advanced-slider":P,"advanced-accordion":M,"advanced-tabs":ot,"content-switcher":at,"testimonial-carousel":st,"advanced-posts":it,"advanced-google-map":Xn,"image-accordion":er,"vertical-timeline":or,"horizontal-timeline":sr,"lottie-animations":cr};elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(t){var e=t.data("widget_type"),n=e.substr(e.indexOf(".")),r=e.substr(e.indexOf("-")+1).split(".")[0];t.is(".elementor-widget-stratum-".concat(r))&&elementorFrontend.hooks.addAction("frontend/element_ready/stratum-"+r+n,a[r])})})}(); |