!function(t){"use strict";var e=function(t,e){var a=this;if(!t.length||t.length<3)return e();wp.ajax.send(a.ajax,{data:{query:t,nonce:a.nonce,ajax_param:a.ajax_param}}).done((function(t){e(t)}))};t(".vc-select-wrapper").each((function(){var a,n,i=t(this).data("ajax"),r=t(this).data("multiple"),o=t(this).data("nonce"),s=t(this).data("ajax-param");if(r>1){var d=t(this).find(".data-option").text(),p=JSON.parse(d);a=t(this).find("input"),n={plugins:["drag_drop","remove_button"],multiple:r,hideSelected:!0,persist:!0,options:p,render:{option:function(t){return"<div><span>"+t.text+"</span></div>"}}}}else a=t(this).find("select"),n={allowEmptyOption:!0};""!==i&&(n.load=e.bind({ajax:i,nonce:o,ajax_param:s}),n.create=!0,n.onItemAdd=function(){if("jeg_find_review"===i){var t=this.items;if(t.length>1)for(var e=0;e<t.length;e++)this.removeItem(t[e]),this.refreshOptions()}}),t(a).selectize(n)}))}(window.jQuery);