(()=>{function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var i,n;return i=t,(n=[{key:"init",value:function(){$(document).find(".tags").each((function(e,t){var i=new Tagify(t,{keepInvalidTags:void 0===$(t).data("keep-invalid-tags")||$(t).data("keep-invalid-tags"),enforceWhitelist:void 0!==$(t).data("enforce-whitelist")&&$(t).data("enforce-whitelist"),delimiters:void 0!==$(t).data("delimiters")?$(t).data("delimiters"):",",whitelist:t.value.trim().split(/\s*,\s*/)});$(t).data("url")&&i.on("input",(function(e){i.settings.whitelist.length=0,i.loading(!0).dropdown.hide.call(i),$.ajax({type:"GET",url:$(t).data("url"),success:function(t){i.settings.whitelist=t,i.loading(!1).dropdown.show.call(i,e.detail.value)}})}))}))}}])&&e(i.prototype,n),t}();$(document).ready((function(){(new t).init()}))})();
