(()=>{$(".tom-select").each(function(){let t=Function('"use strict";return ('+$(this).data("config")+")")(),e={plugins:{dropdown_input:{}},...t};$(this)[0].hasAttribute("multiple")&&(e={...e,plugins:{...e.plugins,remove_button:{title:"Remove this item"}},persist:!1,create:!0,onDelete:function(n){return confirm(n.length>1?"Are you sure you want to remove these "+n.length+" items?":'Are you sure you want to remove "'+n[0]+'"?')}}),t.header&&(e={...e,plugins:{...e.plugins,dropdown_header:{title:t.header}}}),new TomSelect($(this)[0],e)});})();
