'use strict';(function(a,b){var c=a(b);c.on("elementor/frontend/init",function(){var a,b=elementorModules.frontend.handlers.Base;a=b.extend({onInit:function(){b.prototype.onInit.apply(this,arguments),this.isSpaceRat()&&(this.$element.addClass("ob-spacerat"),this.runRoutine())},isSpaceRat:function(){return"yes"===this.getElementSettings("_ob_spacerat_use")},onElementChange:function(a){"_ob_spacerat_use"===a&&("yes"===this.getElementSettings("_ob_spacerat_use")?this.$element.addClass("ob-spacerat"):this.$element.removeClass("ob-spacerat"))},runRoutine:function(){if(!this.isEdit){var a={};try{a=JSON.parse(this.$element.attr("data-settings"))}catch(a){return void console.log(a)}if(void 0!==a._ob_spacerat_link){function c(a){try{const b=new URL(a,window.location.origin);return!!["http:","https:","mailto:","tel:"].includes(b.protocol)&&b.href}catch(a){return!1}}var b=a._ob_spacerat_link;if(""===b.url)return;this.$element.off("click.obSpacerat"),this.$element.on("click.obSpacerat",function(){const a=c(b.url);a&&(b.is_external?window.open(a,"_blank","noopener,noreferrer"):window.location.href=a)})}}}}),elementorFrontend.hooks.addAction("frontend/element_ready/spacer.default",function(b){elementorFrontend.elementsHandler.addHandler(a,{$element:b})})})})(jQuery,window);