"use strict";jQuery(window).on("elementor/frontend/init",(function(){var e,n,t,o,r,i=elementorModules.frontend.handlers.Base;e=i.extend({onInit:function(){i.prototype.onInit.apply(this,arguments),this.isSearchCop()&&this.runSearchCop()},isSearchCop:function(){return"yes"===this.getElementSettings("_ob_searchcop_use_it")},onElementChange:(n=function(e){"_ob_searchcop_srch_options"===e&&this.runSearchCop()},t=900,function(){var e=this,i=arguments,s=function(){r=null,o||n.apply(e,i)},a=o&&!r;clearTimeout(r),r=setTimeout(s,t),a&&n.apply(e,i)}),runSearchCop:function(){var e=this.getElementSettings("_ob_searchcop_srch_options");if("post"===e||"page"===e||"product"===e){var n=this.$element.find(".elementor-search-form__container");if(!n.length)return;var t='<input type="hidden" name="post_type" value="'+e+'" />';n.prepend(t)}}}),elementorFrontend.hooks.addAction("frontend/element_ready/search-form.default",(function(n){elementorFrontend.elementsHandler.addHandler(e,{$element:n})}))}));