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