vue-spear-tip 0.6.19 → 0.6.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/.vite/manifest.json +41 -41
  2. package/dist/{Button-pCNS2zU_.cjs → Button-DL8dzhLs.cjs} +1 -1
  3. package/dist/{Button-C8TgZIb0.js → Button-mNgrIBt0.js} +1 -1
  4. package/dist/{CodeHighlight-BtIZI4bR.cjs → CodeHighlight-CWT9ljxW.cjs} +1 -1
  5. package/dist/{CodeHighlight-BRxQqnpA.js → CodeHighlight-eMrWWqjO.js} +1 -1
  6. package/dist/{DateField-DchBLOyR.cjs → DateField-276tU7dR.cjs} +1 -1
  7. package/dist/{DateField-f7KPonnO.js → DateField-DJgLEfuJ.js} +2 -2
  8. package/dist/{Draggable-t9YiMTH7.cjs → Draggable-D9K46teR.cjs} +1 -1
  9. package/dist/{Draggable-5iUEhvqP.js → Draggable-xSaOZkIc.js} +1 -1
  10. package/dist/{Droppable-ZB7XSm7P.js → Droppable-DGc3gGXX.js} +1 -1
  11. package/dist/{Droppable-Bngj5bOY.cjs → Droppable-ozHn_LH7.cjs} +1 -1
  12. package/dist/{FieldComponent.vue_vue_type_script_lang-CYT8CYt1.js → FieldComponent.vue_vue_type_script_lang-BCu4PrNU.js} +1 -1
  13. package/dist/{FieldComponent.vue_vue_type_script_lang-Bbdo4olJ.cjs → FieldComponent.vue_vue_type_script_lang-Bht3oZYb.cjs} +1 -1
  14. package/dist/{FilesArea-RivTz8Kc.js → FilesArea-C9z4gTb0.js} +2 -2
  15. package/dist/{FilesArea-D3T2h-W1.cjs → FilesArea-DZiv8wBT.cjs} +1 -1
  16. package/dist/{Scrollbar-Ocdwgu7q.js → Scrollbar-CBCuild6.js} +1 -1
  17. package/dist/{Scrollbar-CcoknXXp.cjs → Scrollbar-DpX61NhD.cjs} +1 -1
  18. package/dist/{SelectField-lNu4v9cs.js → SelectField-BN765HUF.js} +154 -148
  19. package/dist/{SelectField-CoX17KKw.cjs → SelectField-BTQ-c5YW.cjs} +3 -3
  20. package/dist/{StringField-BbygO1Co.cjs → StringField-D4k0FAo8.cjs} +1 -1
  21. package/dist/{StringField-NZ1i2QQ3.js → StringField-DXuKHlpt.js} +2 -2
  22. package/dist/{SwitchField-CtRl0F19.js → SwitchField-BdKQGeSb.js} +2 -2
  23. package/dist/{SwitchField-_G48VVZT.cjs → SwitchField-Dj2QpW85.cjs} +1 -1
  24. package/dist/{Tabs-eTgdVZbO.js → Tabs-CAbUgriG.js} +1 -1
  25. package/dist/{Tabs-HEDRRUS3.cjs → Tabs-Dm8Aj2Y8.cjs} +1 -1
  26. package/dist/{TextField-cBCKI0cn.js → TextField-BTofkhCU.js} +2 -2
  27. package/dist/{TextField-Bd-lZTSW.cjs → TextField-DJkk40xg.cjs} +1 -1
  28. package/dist/{index-DNKvxD16.js → index-Cd_DL4JD.js} +3 -3
  29. package/dist/{index-8tGGISA9.cjs → index-DZjDh7FL.cjs} +1 -1
  30. package/dist/vue-spear-tip.cjs.js +1 -1
  31. package/dist/vue-spear-tip.es.js +1 -1
  32. package/docs/index.html +1 -1
  33. package/docs/static/{Button-DefvS2tb.js → Button-8C6MeUM7.js} +1 -1
  34. package/docs/static/{CodeHighlight-BVIlCbbZ.js → CodeHighlight-DFeMy3ki.js} +1 -1
  35. package/docs/static/{DateField-DWZSZHD8.js → DateField-Cf48x5xH.js} +1 -1
  36. package/docs/static/{Draggable-Bm-4m4gO.js → Draggable-CS4w2yK4.js} +1 -1
  37. package/docs/static/{Droppable-Cnqe7Gg7.js → Droppable-wLX0xjMl.js} +1 -1
  38. package/docs/static/{FieldComponent.vue_vue_type_script_lang-wRSTrf2p.js → FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js} +1 -1
  39. package/docs/static/{FilesArea-3G-jGZpj.js → FilesArea-Cl92W6MM.js} +1 -1
  40. package/docs/static/{NoSymbolIcon-CYY6lnSa.js → NoSymbolIcon-NizHqgdb.js} +1 -1
  41. package/docs/static/{Scrollbar-DFH9Klrw.js → Scrollbar-l6hENTT0.js} +1 -1
  42. package/docs/static/{SelectField-CLO6Fxfz.js → SelectField-CC7fBKuR.js} +8 -8
  43. package/docs/static/{StringField-BuCcwPUS.js → StringField-2LaMICQ8.js} +1 -1
  44. package/docs/static/{SwitchField-CyGjl8KD.js → SwitchField-DaP3PVMB.js} +1 -1
  45. package/docs/static/{Tabs-D1sUGHr1.js → Tabs-CBsULMP9.js} +1 -1
  46. package/docs/static/{TextField-BVkaf8OT.js → TextField-DUq1jGAW.js} +1 -1
  47. package/docs/static/index-DpXxVeQv.js +2 -0
  48. package/docs/static/{main-DjEys_aT.js → main-BIpS3Kki.js} +3 -3
  49. package/package.json +1 -1
  50. package/docs/static/index-DK4vwxii.js +0 -2
@@ -1,25 +1,25 @@
1
1
  var Ct = Object.defineProperty;
2
2
  var r = (t, e) => Ct(t, "name", { value: e, configurable: !0 });
3
- import { P as J, W as Y, C as Vt, _ as Lt } from "./index-DNKvxD16.js";
4
- import { F as Pt } from "./FieldComponent.vue_vue_type_script_lang-CYT8CYt1.js";
5
- import { openBlock as Z, createElementBlock as jt, normalizeClass as Ft, createElementVNode as Rt, createBlock as at, resolveDynamicComponent as nt, withCtx as rt, createTextVNode as ot, toDisplayString as C, createCommentVNode as yt } from "vue";
3
+ import { P as J, W as Z, C as Vt, _ as Lt } from "./index-Cd_DL4JD.js";
4
+ import { F as Pt } from "./FieldComponent.vue_vue_type_script_lang-BCu4PrNU.js";
5
+ import { openBlock as X, createElementBlock as jt, normalizeClass as Ft, createElementVNode as Rt, createBlock as tt, resolveDynamicComponent as et, withCtx as it, createTextVNode as st, toDisplayString as A, createCommentVNode as lt } from "vue";
6
6
  var bt = "​";
7
- function lt(t, e) {
7
+ function dt(t, e) {
8
8
  (e == null || e > t.length) && (e = t.length);
9
9
  for (var i = 0, s = Array(e); i < e; i++) s[i] = t[i];
10
10
  return s;
11
11
  }
12
- r(lt, "e");
12
+ r(dt, "e");
13
13
  function wt(t) {
14
14
  return (function(e) {
15
- if (Array.isArray(e)) return lt(e);
15
+ if (Array.isArray(e)) return dt(e);
16
16
  })(t) || (function(e) {
17
17
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
18
18
  })(t) || (function(e, i) {
19
19
  if (e) {
20
- if (typeof e == "string") return lt(e, i);
20
+ if (typeof e == "string") return dt(e, i);
21
21
  var s = Object.prototype.toString.call(e).slice(8, -1);
22
- return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? lt(e, i) : void 0;
22
+ return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? dt(e, i) : void 0;
23
23
  }
24
24
  })(t) || (function() {
25
25
  throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -35,23 +35,23 @@ var W = { isEnabled: /* @__PURE__ */ r(function() {
35
35
  }, "log"), warn: /* @__PURE__ */ r(function() {
36
36
  for (var t, e = arguments.length, i = Array(e), s = 0; s < e; s++) i[s] = arguments[s];
37
37
  this.isEnabled() && (t = console).warn.apply(t, ["[Tagify]:"].concat(wt(i)));
38
- }, "warn") }, Q = /* @__PURE__ */ r(function(t, e, i, s) {
38
+ }, "warn") }, Y = /* @__PURE__ */ r(function(t, e, i, s) {
39
39
  return t = "" + t, e = "" + e, s && (t = t.trim(), e = e.trim()), i ? t == e : t.toLowerCase() == e.toLowerCase();
40
40
  }, "a"), Tt = /* @__PURE__ */ r(function(t, e) {
41
41
  return t && Array.isArray(t) && t.map(function(i) {
42
- return mt(i, e);
42
+ return vt(i, e);
43
43
  });
44
44
  }, "s");
45
- function mt(t, e) {
45
+ function vt(t, e) {
46
46
  var i, s = {};
47
47
  for (i in t) 0 > e.indexOf(i) && (s[i] = t[i]);
48
48
  return s;
49
49
  }
50
- r(mt, "o");
51
- function dt(t) {
50
+ r(vt, "o");
51
+ function ut(t) {
52
52
  return new DOMParser().parseFromString(t.trim(), "text/html").body.firstElementChild;
53
53
  }
54
- r(dt, "r");
54
+ r(ut, "r");
55
55
  function Ot(t, e) {
56
56
  for (e = e || "previous"; t = t[e + "Sibling"]; ) if (t.nodeType == 3) return t;
57
57
  }
@@ -83,7 +83,7 @@ function D(t, e, i) {
83
83
  return r(n, "ts"), s = t, ((a = Object) != null && typeof Symbol < "u" && a[Symbol.hasInstance] ? a[Symbol.hasInstance](s) : s instanceof a) || (t = {}), n(t, e), i && n(t, i), t;
84
84
  }
85
85
  r(D, "u");
86
- function xt() {
86
+ function St() {
87
87
  var t = [], e = {}, i = !0, s = !1, a = void 0;
88
88
  try {
89
89
  for (var n, o = arguments[Symbol.iterator](); !(i = (n = o.next()).done); i = !0) {
@@ -114,12 +114,12 @@ function xt() {
114
114
  }
115
115
  return t;
116
116
  }
117
- r(xt, "g");
118
- function tt(t) {
117
+ r(St, "g");
118
+ function at(t) {
119
119
  return String.prototype.normalize ? typeof t == "string" ? t.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : void 0 : t;
120
120
  }
121
- r(tt, "h");
122
- var St = /* @__PURE__ */ r(function() {
121
+ r(at, "h");
122
+ var xt = /* @__PURE__ */ r(function() {
123
123
  return /(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);
124
124
  }, "p");
125
125
  function Dt() {
@@ -142,11 +142,11 @@ function At(t) {
142
142
  return (t == null || (e = t.closest) === null || e === void 0 ? void 0 : e.call(t, this.settings.classNames.namespaceSelector)) === this.DOM.scope;
143
143
  }
144
144
  r(At, "b");
145
- function _t(t, e) {
145
+ function kt(t, e) {
146
146
  var i = window.getSelection();
147
147
  return e = e || i.getRangeAt(0), typeof t == "string" && (t = document.createTextNode(t)), e && (e.deleteContents(), e.insertNode(t)), t;
148
148
  }
149
- r(_t, "y");
149
+ r(kt, "y");
150
150
  function w(t, e, i) {
151
151
  return t ? (e && (t.__tagifyTagData = i ? e : D({}, t.__tagifyTagData || {}, e)), t.__tagifyTagData) : (W.warn("tag element doesn't exist", { tagElm: t, data: e }), e);
152
152
  }
@@ -158,7 +158,7 @@ function j(t) {
158
158
  }
159
159
  }
160
160
  r(j, "T");
161
- function vt(t, e) {
161
+ function yt(t, e) {
162
162
  t.forEach(function(i) {
163
163
  if (w(i.previousSibling) || !i.previousSibling) {
164
164
  var s = document.createTextNode("​");
@@ -166,8 +166,8 @@ function vt(t, e) {
166
166
  }
167
167
  });
168
168
  }
169
- r(vt, "O");
170
- var ut = { delimiters: ",", pattern: null, tagTextProp: "value", maxTags: 1 / 0, callbacks: {}, addTagOnBlur: !0, addTagOn: ["blur", "tab", "enter"], onChangeAfterBlur: !0, duplicates: !1, whitelist: [], blacklist: [], enforceWhitelist: !1, userInput: !0, focusable: !0, focusInputOnRemove: !0, keepInvalidTags: !1, createInvalidTags: !0, mixTagsAllowedAfter: /,|\.|\:|\s/, mixTagsInterpolator: ["[[", "]]"], backspace: !0, skipInvalid: !1, pasteAsTags: !0, editTags: { clicks: 2, keepInvalid: !0 }, transformTag: /* @__PURE__ */ r(function() {
169
+ r(yt, "O");
170
+ var ct = { delimiters: ",", pattern: null, tagTextProp: "value", maxTags: 1 / 0, callbacks: {}, addTagOnBlur: !0, addTagOn: ["blur", "tab", "enter"], onChangeAfterBlur: !0, duplicates: !1, whitelist: [], blacklist: [], enforceWhitelist: !1, userInput: !0, focusable: !0, focusInputOnRemove: !0, keepInvalidTags: !1, createInvalidTags: !0, mixTagsAllowedAfter: /,|\.|\:|\s/, mixTagsInterpolator: ["[[", "]]"], backspace: !0, skipInvalid: !1, pasteAsTags: !0, editTags: { clicks: 2, keepInvalid: !0 }, transformTag: /* @__PURE__ */ r(function() {
171
171
  }, "transformTag"), trim: !0, a11y: { focusableTags: !1, inputAriaLabel: "Tags input field" }, mixMode: { insertAfterTag: " " }, autoComplete: { enabled: !0, rightKey: !1, tabKey: !1 }, classNames: { namespace: "tagify", mixMode: "tagify--mix", selectMode: "tagify--select", input: "tagify__input", focus: "tagify--focus", tagNoAnimation: "tagify--noAnim", tagInvalid: "tagify--invalid", tagNotAllowed: "tagify--notAllowed", scopeLoading: "tagify--loading", hasMaxTags: "tagify--hasMaxTags", hasNoTags: "tagify--noTags", empty: "tagify--empty", inputInvalid: "tagify__input--invalid", dropdown: "tagify__dropdown", dropdownWrapper: "tagify__dropdown__wrapper", dropdownHeader: "tagify__dropdown__header", dropdownFooter: "tagify__dropdown__footer", dropdownItem: "tagify__dropdown__item", dropdownItemActive: "tagify__dropdown__item--active", dropdownItemHidden: "tagify__dropdown__item--hidden", dropdownItemSelected: "tagify__dropdown__item--selected", dropdownInital: "tagify__dropdown--initial", tag: "tagify__tag", tagText: "tagify__tag-text", tagX: "tagify__tag__removeBtn", tagLoading: "tagify__tag--loading", tagEditing: "tagify__tag--editable", tagFlash: "tagify__tag--flash", tagHide: "tagify__tag--hide" }, dropdown: { classname: "", enabled: 2, maxItems: 10, searchKeys: ["value", "searchBy"], fuzzySearch: !0, caseSensitive: !1, accentedSearch: !0, includeSelectedTags: !1, escapeHTML: !0, highlightFirst: !0, closeOnSelect: !0, clearOnSelect: !0, position: "all", appendTarget: null }, hooks: { beforeRemoveTag: /* @__PURE__ */ r(function() {
172
172
  return Promise.resolve();
173
173
  }, "beforeRemoveTag"), beforePaste: /* @__PURE__ */ r(function() {
@@ -206,26 +206,26 @@ function Bt(t, e) {
206
206
  }), t;
207
207
  }
208
208
  r(Bt, "I");
209
- function ct(t, e) {
209
+ function gt(t, e) {
210
210
  (e == null || e > t.length) && (e = t.length);
211
211
  for (var i = 0, s = Array(e); i < e; i++) s[i] = t[i];
212
212
  return s;
213
213
  }
214
- r(ct, "E");
214
+ r(gt, "E");
215
215
  function Wt(t, e, i) {
216
216
  return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
217
217
  }
218
218
  r(Wt, "M");
219
219
  function Kt(t) {
220
220
  return (function(e) {
221
- if (Array.isArray(e)) return ct(e);
221
+ if (Array.isArray(e)) return gt(e);
222
222
  })(t) || (function(e) {
223
223
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
224
224
  })(t) || (function(e, i) {
225
225
  if (e) {
226
- if (typeof e == "string") return ct(e, i);
226
+ if (typeof e == "string") return gt(e, i);
227
227
  var s = Object.prototype.toString.call(e).slice(8, -1);
228
- return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? ct(e, i) : void 0;
228
+ return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? gt(e, i) : void 0;
229
229
  }
230
230
  })(t) || (function() {
231
231
  throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -237,7 +237,7 @@ function qt() {
237
237
  this.dropdown.refs(), this.DOM.dropdown.__tagify = this;
238
238
  }
239
239
  r(qt, "A");
240
- var et, X, zt = (et = (function(t) {
240
+ var nt, G, zt = (nt = (function(t) {
241
241
  for (var e = 1; e < arguments.length; e++) {
242
242
  var i = arguments[e] != null ? arguments[e] : {}, s = Object.keys(i);
243
243
  typeof Object.getOwnPropertySymbols == "function" && (s = s.concat(Object.getOwnPropertySymbols(i).filter(function(a) {
@@ -290,8 +290,8 @@ var et, X, zt = (et = (function(t) {
290
290
  var y = !i.autoComplete.rightKey || !i.autoComplete.tabKey;
291
291
  if (!o && !l && a && y && !e.state.editing && n) {
292
292
  t.preventDefault();
293
- var x = e.dropdown.getMappedValue(n);
294
- return e.state.autoCompleteData = n, e.input.autocomplete.set.call(e, x), !1;
293
+ var S = e.dropdown.getMappedValue(n);
294
+ return e.state.autoCompleteData = n, e.input.autocomplete.set.call(e, S), !1;
295
295
  }
296
296
  return !0;
297
297
  case "Enter":
@@ -302,8 +302,8 @@ var et, X, zt = (et = (function(t) {
302
302
  var b = s ? a : e.dropdown.getNextOrPrevOption(a, !h);
303
303
  e.dropdown.selectOption(a, t, function() {
304
304
  if (b) {
305
- var S = b.getAttribute("value");
306
- b = e.dropdown.getSuggestionNodeByValue(S), e.dropdown.highlightOption(b);
305
+ var x = b.getAttribute("value");
306
+ b = e.dropdown.getSuggestionNodeByValue(x), e.dropdown.highlightOption(b);
307
307
  }
308
308
  });
309
309
  } else e.dropdown.hide(), o || e.addTags(e.state.inputText.trim(), !0);
@@ -385,23 +385,23 @@ var et, X, zt = (et = (function(t) {
385
385
  return t || (e = this.state.dropdown.suggestions), this.addTags(e, !0), this;
386
386
  }, "selectAll"), filterListItems: /* @__PURE__ */ r(function(t, e) {
387
387
  var i, s, a, n, o, l, d = /* @__PURE__ */ r(function() {
388
- var S, L, A = void 0, P = void 0;
389
- S = p[T];
390
- var O, I = Object.keys(s = ((L = Object) != null && typeof Symbol < "u" && L[Symbol.hasInstance] ? L[Symbol.hasInstance](S) : S instanceof L) ? p[T] : { value: p[T] }).some(function(N) {
391
- return x.includes(N);
392
- }) ? x : ["value"];
388
+ var x, L, k = void 0, P = void 0;
389
+ x = p[T];
390
+ var O, I = Object.keys(s = ((L = Object) != null && typeof Symbol < "u" && L[Symbol.hasInstance] ? L[Symbol.hasInstance](x) : x instanceof L) ? p[T] : { value: p[T] }).some(function(N) {
391
+ return S.includes(N);
392
+ }) ? S : ["value"];
393
393
  g.fuzzySearch && !e.exact ? (n = I.reduce(function(N, E) {
394
394
  return N + " " + (s[E] || "");
395
- }, "").toLowerCase().trim(), g.accentedSearch && (n = tt(n), l = tt(l)), A = n.indexOf(l) == 0, P = n === l, O = n, a = l.toLowerCase().split(" ").every(function(N) {
395
+ }, "").toLowerCase().trim(), g.accentedSearch && (n = at(n), l = at(l)), k = n.indexOf(l) == 0, P = n === l, O = n, a = l.toLowerCase().split(" ").every(function(N) {
396
396
  return O.includes(N.toLowerCase());
397
- })) : (A = !0, a = I.some(function(N) {
397
+ })) : (k = !0, a = I.some(function(N) {
398
398
  var E = "" + (s[N] || "");
399
- return g.accentedSearch && (E = tt(E), l = tt(l)), g.caseSensitive || (E = E.toLowerCase()), P = E === l, e.exact ? E === l : E.indexOf(l) == 0;
400
- })), o = !g.includeSelectedTags && i.isTagDuplicate(V(s) ? s.value : s), a && !o && (P && A ? f.push(s) : g.sortby == "startsWith" && A ? c.unshift(s) : c.push(s));
401
- }, "tr"), u = this, h = this.settings, g = h.dropdown, c = (e = e || {}, []), f = [], p = h.whitelist, m = g.maxItems >= 0 ? g.maxItems : 1 / 0, v = g.includeSelectedTags, y = typeof g.sortby == "function", x = g.searchKeys, T = 0;
402
- if (!(t = h.mode == "select" && this.value.length && this.value[0][h.tagTextProp] == t ? "" : t) || !x.length) {
403
- c = v ? p : p.filter(function(S) {
404
- return !u.isTagDuplicate(V(S) ? S.value : S);
399
+ return g.accentedSearch && (E = at(E), l = at(l)), g.caseSensitive || (E = E.toLowerCase()), P = E === l, e.exact ? E === l : E.indexOf(l) == 0;
400
+ })), o = !g.includeSelectedTags && i.isTagDuplicate(V(s) ? s.value : s), a && !o && (P && k ? f.push(s) : g.sortby == "startsWith" && k ? c.unshift(s) : c.push(s));
401
+ }, "tr"), u = this, h = this.settings, g = h.dropdown, c = (e = e || {}, []), f = [], p = h.whitelist, m = g.maxItems >= 0 ? g.maxItems : 1 / 0, v = g.includeSelectedTags, y = typeof g.sortby == "function", S = g.searchKeys, T = 0;
402
+ if (!(t = h.mode == "select" && this.value.length && this.value[0][h.tagTextProp] == t ? "" : t) || !S.length) {
403
+ c = v ? p : p.filter(function(x) {
404
+ return !u.isTagDuplicate(V(x) ? x.value : x);
405
405
  });
406
406
  var b = y ? g.sortby(c, l) : c.slice(0, m);
407
407
  return this.state.dropdown.suggestions = b, b;
@@ -418,7 +418,7 @@ var et, X, zt = (et = (function(t) {
418
418
  var a = e.dropdown.getMappedValue(i);
419
419
  return a = typeof a == "string" && e.settings.dropdown.escapeHTML ? H(a) : a, e.settings.templates.dropdownItem.apply(e, [Bt(Ht({}, i), { mappedValue: a }), e]);
420
420
  }).join("");
421
- }, "createListHTML") }), X = X = { refs: /* @__PURE__ */ r(function() {
421
+ }, "createListHTML") }), G = G = { refs: /* @__PURE__ */ r(function() {
422
422
  this.DOM.dropdown = this.parseTemplate("dropdown", [this.settings]), this.DOM.dropdown.content = this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']");
423
423
  }, "refs"), getHeaderRef: /* @__PURE__ */ r(function() {
424
424
  return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']");
@@ -430,7 +430,7 @@ var et, X, zt = (et = (function(t) {
430
430
  var e, i, s, a = this, n = this.settings, o = n.mode == "mix" && !n.enforceWhitelist, l = !n.whitelist || !n.whitelist.length, d = n.dropdown.position == "manual";
431
431
  if (t = t === void 0 ? this.state.inputText : t, !(l && !o && !n.templates.dropdownItemNoMatch || n.dropdown.enabled === !1 || this.state.isLoading || this.settings.readonly)) {
432
432
  if (clearTimeout(this.dropdownHide__bindEventsTimeout), this.suggestedListItems = this.dropdown.filterListItems(t), t && !this.suggestedListItems.length && (this.trigger("dropdown:noMatch", t), n.templates.dropdownItemNoMatch && (s = n.templates.dropdownItemNoMatch.call(this, { value: t }))), !s) {
433
- if (this.suggestedListItems.length) t && o && !this.state.editing.scope && !Q(this.suggestedListItems[0].value, t) && this.suggestedListItems.unshift({ value: t });
433
+ if (this.suggestedListItems.length) t && o && !this.state.editing.scope && !Y(this.suggestedListItems[0].value, t) && this.suggestedListItems.unshift({ value: t });
434
434
  else {
435
435
  if (!t || !o || this.state.editing.scope) return this.input.autocomplete.suggest.call(this), void this.dropdown.hide();
436
436
  this.suggestedListItems = [{ value: t }];
@@ -468,40 +468,40 @@ var et, X, zt = (et = (function(t) {
468
468
  }, "fillHeaderFooter"), position: /* @__PURE__ */ r(function(t) {
469
469
  var e = this.settings.dropdown, i = this.dropdown.getAppendTarget();
470
470
  if (e.position != "manual" && i) {
471
- var s, a, n, o, l, d, u, h, g, c, f = this.DOM.dropdown, p = e.RTL, m = i === document.body, v = i === this.DOM.scope, y = m ? window.pageYOffset : i.scrollTop, x = document.fullscreenElement || document.webkitFullscreenElement || document.documentElement, T = x.clientHeight, b = Math.max(x.clientWidth || 0, window.innerWidth || 0), S = b > 480 ? e.position : "all", L = this.DOM[S == "input" ? "input" : "scope"];
471
+ var s, a, n, o, l, d, u, h, g, c, f = this.DOM.dropdown, p = e.RTL, m = i === document.body, v = i === this.DOM.scope, y = m ? window.pageYOffset : i.scrollTop, S = document.fullscreenElement || document.webkitFullscreenElement || document.documentElement, T = S.clientHeight, b = Math.max(S.clientWidth || 0, window.innerWidth || 0), x = b > 480 ? e.position : "all", L = this.DOM[x == "input" ? "input" : "scope"];
472
472
  if (t = t || f.clientHeight, this.state.dropdown.visible) {
473
- if (S == "text" ? (n = (s = (function() {
473
+ if (x == "text" ? (n = (s = (function() {
474
474
  var O = document.getSelection();
475
475
  if (O.rangeCount) {
476
- var I, N, E = O.getRangeAt(0), F = E.startContainer, k = E.startOffset;
477
- if (k > 0) return (N = document.createRange()).setStart(F, k - 1), N.setEnd(F, k), { left: (I = N.getBoundingClientRect()).right, top: I.top, bottom: I.bottom };
476
+ var I, N, E = O.getRangeAt(0), F = E.startContainer, C = E.startOffset;
477
+ if (C > 0) return (N = document.createRange()).setStart(F, C - 1), N.setEnd(F, C), { left: (I = N.getBoundingClientRect()).right, top: I.top, bottom: I.bottom };
478
478
  if (F.getBoundingClientRect) return F.getBoundingClientRect();
479
479
  }
480
480
  return { left: -9999, top: -9999 };
481
481
  })()).bottom, a = s.top, o = s.left, l = "auto") : (d = (function(O) {
482
482
  var I = 0, N = 0;
483
- for (O = O.parentNode; O && O != x; ) I += O.offsetTop || 0, N += O.offsetLeft || 0, O = O.parentNode;
483
+ for (O = O.parentNode; O && O != S; ) I += O.offsetTop || 0, N += O.offsetLeft || 0, O = O.parentNode;
484
484
  return { top: I, left: N };
485
485
  })(i), s = L.getBoundingClientRect(), a = v ? -1 : s.top - d.top, n = (v ? s.height : s.bottom - d.top) - 1, o = v ? -1 : s.left - d.left, l = s.width + "px"), !m) {
486
- var A, P = (function() {
486
+ var k, P = (function() {
487
487
  for (var O = 0, I = e.appendTarget.parentNode; I; ) O += I.scrollTop || 0, I = I.parentNode;
488
488
  return O;
489
489
  })();
490
490
  a += P, n += P;
491
491
  }
492
- a = Math.floor(a), n = Math.ceil(n), h = b - o < 120, g = ((u = (A = e.placeAbove) !== null && A !== void 0 ? A : T - s.bottom < t) ? a : n) + y, c = o + (p && s.width || 0) + window.pageXOffset, c = S == "text" && h ? "right: 0;" : "left: ".concat(c, "px;"), f.style.cssText = "".concat(c, " top: ").concat(g, "px; min-width: ").concat(l, "; max-width: ").concat(l), f.setAttribute("placement", u ? "top" : "bottom"), f.setAttribute("position", S);
492
+ a = Math.floor(a), n = Math.ceil(n), h = b - o < 120, g = ((u = (k = e.placeAbove) !== null && k !== void 0 ? k : T - s.bottom < t) ? a : n) + y, c = o + (p && s.width || 0) + window.pageXOffset, c = x == "text" && h ? "right: 0;" : "left: ".concat(c, "px;"), f.style.cssText = "".concat(c, " top: ").concat(g, "px; min-width: ").concat(l, "; max-width: ").concat(l), f.setAttribute("placement", u ? "top" : "bottom"), f.setAttribute("position", x);
493
493
  }
494
494
  }
495
- }, "position") }, Object.getOwnPropertyDescriptors ? Object.defineProperties(et, Object.getOwnPropertyDescriptors(X)) : (function(t, e) {
495
+ }, "position") }, Object.getOwnPropertyDescriptors ? Object.defineProperties(nt, Object.getOwnPropertyDescriptors(G)) : (function(t, e) {
496
496
  var i = Object.keys(t);
497
497
  if (Object.getOwnPropertySymbols) {
498
498
  var s = Object.getOwnPropertySymbols(t);
499
499
  i.push.apply(i, s);
500
500
  }
501
501
  return i;
502
- })(Object(X)).forEach(function(t) {
503
- Object.defineProperty(et, t, Object.getOwnPropertyDescriptor(X, t));
504
- }), et), G = "@yaireo/tagify/", Ut = { empty: "empty", exceed: "number of tags exceeded", pattern: "pattern mismatch", duplicate: "already exists", notAllowed: "not allowed" }, Jt = { wrapper: /* @__PURE__ */ r(function(t, e) {
502
+ })(Object(G)).forEach(function(t) {
503
+ Object.defineProperty(nt, t, Object.getOwnPropertyDescriptor(G, t));
504
+ }), nt), Q = "@yaireo/tagify/", Ut = { empty: "empty", exceed: "number of tags exceeded", pattern: "pattern mismatch", duplicate: "already exists", notAllowed: "not allowed" }, Jt = { wrapper: /* @__PURE__ */ r(function(t, e) {
505
505
  return '<tags class="'.concat(e.classNames.namespace, " ").concat(e.mode ? "".concat(e.classNames[e.mode + "Mode"]) : "", " ").concat(t.className, `"
506
506
  `).concat(e.readonly ? "readonly" : "", `
507
507
  `).concat(e.disabled ? "disabled" : "", `
@@ -599,12 +599,12 @@ function Xt(t, e) {
599
599
  })();
600
600
  }
601
601
  r(Xt, "F");
602
- function gt(t, e) {
602
+ function ht(t, e) {
603
603
  (e == null || e > t.length) && (e = t.length);
604
604
  for (var i = 0, s = Array(e); i < e; i++) s[i] = t[i];
605
605
  return s;
606
606
  }
607
- r(gt, "H");
607
+ r(ht, "H");
608
608
  function K(t, e, i) {
609
609
  return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
610
610
  }
@@ -626,22 +626,22 @@ function Gt(t, e) {
626
626
  }), t;
627
627
  }
628
628
  r(Gt, "q");
629
- function ht(t) {
629
+ function pt(t) {
630
630
  return (function(e) {
631
- if (Array.isArray(e)) return gt(e);
631
+ if (Array.isArray(e)) return ht(e);
632
632
  })(t) || (function(e) {
633
633
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
634
634
  })(t) || (function(e, i) {
635
635
  if (e) {
636
- if (typeof e == "string") return gt(e, i);
636
+ if (typeof e == "string") return ht(e, i);
637
637
  var s = Object.prototype.toString.call(e).slice(8, -1);
638
- return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? gt(e, i) : void 0;
638
+ return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? ht(e, i) : void 0;
639
639
  }
640
640
  })(t) || (function() {
641
641
  throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
642
642
  })();
643
643
  }
644
- r(ht, "U");
644
+ r(pt, "U");
645
645
  var Qt = { customBinding: /* @__PURE__ */ r(function() {
646
646
  var t = this;
647
647
  this.customEventsList.forEach(function(e) {
@@ -743,15 +743,15 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
743
743
  case "Backspace":
744
744
  if (e.state.editing) return;
745
745
  var n = document.getSelection(), o = t.key == "Delete" && n.anchorOffset == (n.anchorNode.length || 0), l = n.anchorNode.previousSibling, d = n.anchorNode.nodeType == 1 || !n.anchorOffset && l && l.nodeType == 1 && n.anchorNode.previousSibling;
746
- (function(x) {
746
+ (function(S) {
747
747
  var T = document.createElement("div");
748
- x.replace(/\&#?[0-9a-z]+;/gi, function(b) {
748
+ S.replace(/\&#?[0-9a-z]+;/gi, function(b) {
749
749
  return T.innerHTML = b, T.innerText;
750
750
  });
751
751
  })(e.DOM.input.innerHTML);
752
752
  var u, h, g, c = e.getTagElms(), f = n.anchorNode.length === 1 && n.anchorNode.nodeValue == "​";
753
753
  if (i.backspace == "edit" && d) return u = n.anchorNode.nodeType == 1 ? null : n.anchorNode.previousElementSibling, setTimeout(e.editTag.bind(e), 0, u), void t.preventDefault();
754
- if (St() && Mt(d, Element)) return g = Ot(d), d.hasAttribute("readonly") || d.remove(), e.DOM.input.focus(), void setTimeout(function() {
754
+ if (xt() && Mt(d, Element)) return g = Ot(d), d.hasAttribute("readonly") || d.remove(), e.DOM.input.focus(), void setTimeout(function() {
755
755
  j(g), e.DOM.input.click();
756
756
  });
757
757
  if (n.anchorNode.nodeName == "BR") return;
@@ -808,7 +808,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
808
808
  var e, i, s, a, n, o, l, d, u = this, h = this.settings, g = this.value.length, c = this.getTagElms(), f = document.createDocumentFragment(), p = window.getSelection().getRangeAt(0), m = [].map.call(c, function(v) {
809
809
  return w(v).value;
810
810
  });
811
- if (t.inputType == "deleteContentBackward" && St() && this.events.callbacks.onKeydown.call(this, { target: t.target, key: "Backspace" }), vt(this.getTagElms()), this.value.slice().forEach(function(v) {
811
+ if (t.inputType == "deleteContentBackward" && xt() && this.events.callbacks.onKeydown.call(this, { target: t.target, key: "Backspace" }), yt(this.getTagElms()), this.value.slice().forEach(function(v) {
812
812
  v.readonly && !m.includes(v.value) && f.appendChild(u.createTagElem(v));
813
813
  }), f.childNodes.length && (p.insertNode(f), this.setRangeAtStartEnd(!1, f.lastChild)), c.length != g) return this.value = [].map.call(this.getTagElms(), function(v) {
814
814
  return w(v);
@@ -874,7 +874,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
874
874
  var h = e.getTagElms().slice(-u.length);
875
875
  h.forEach(function(g, c) {
876
876
  return w(g, u[c]);
877
- }), e.update(), vt(h);
877
+ }), e.update(), yt(h);
878
878
  } else e.injectAtCaret(o, window.getSelection().getRangeAt(0));
879
879
  e.events.callbacks.onMixTagsInput.call(e, t);
880
880
  } else e.injectAtCaret(o, window.getSelection().getRangeAt(0)), e.settings.pasteAsTags ? i = e.addTags(e.state.inputText + o, !0) : (e.state.inputText = o, e.dropdown.show(o));
@@ -890,7 +890,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
890
890
  }, "onEditTagInput"), onEditTagPaste: /* @__PURE__ */ r(function(t, e) {
891
891
  var i = (e.clipboardData || window.clipboardData).getData("Text");
892
892
  e.preventDefault();
893
- var s = _t(i);
893
+ var s = kt(i);
894
894
  this.setRangeAtStartEnd(!1, s);
895
895
  }, "onEditTagPaste"), onEditTagClick: /* @__PURE__ */ r(function(t, e) {
896
896
  this.events.callbacks.onClickScope.call(this, e);
@@ -939,7 +939,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
939
939
  else if (a.nodeType == 1 && a.querySelector(e.settings.classNames.tagSelector)) {
940
940
  var n, o, l = document.createTextNode("");
941
941
  a.childNodes[0].nodeType == 3 && a.previousSibling.nodeName != "BR" && (l = document.createTextNode(`
942
- `)), (o = a).replaceWith.apply(o, ht([l].concat(ht(ht(a.childNodes).slice(0, -1))))), j(l);
942
+ `)), (o = a).replaceWith.apply(o, pt([l].concat(pt(pt(a.childNodes).slice(0, -1))))), j(l);
943
943
  } else if (q.call(e, a))
944
944
  if (((n = a.previousSibling) === null || n === void 0 ? void 0 : n.nodeType) != 3 || a.previousSibling.textContent || a.previousSibling.remove(), a.previousSibling && a.previousSibling.nodeName == "BR") {
945
945
  a.previousSibling.replaceWith(`
@@ -952,12 +952,12 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
952
952
  });
953
953
  }), i && i.nodeValue == "" && i.remove(), i && i.nodeName == "BR" || this.DOM.input.appendChild(document.createElement("br"));
954
954
  }, "onInputDOMChange") } };
955
- function pt(t, e) {
955
+ function ft(t, e) {
956
956
  (e == null || e > t.length) && (e = t.length);
957
957
  for (var i = 0, s = Array(e); i < e; i++) s[i] = t[i];
958
958
  return s;
959
959
  }
960
- r(pt, "z");
960
+ r(ft, "z");
961
961
  function z(t, e, i) {
962
962
  return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
963
963
  }
@@ -966,7 +966,7 @@ function $(t, e) {
966
966
  return e != null && typeof Symbol < "u" && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](t) : t instanceof e;
967
967
  }
968
968
  r($, "J");
969
- function ft(t) {
969
+ function mt(t) {
970
970
  for (var e = 1; e < arguments.length; e++) {
971
971
  var i = arguments[e] != null ? arguments[e] : {}, s = Object.keys(i);
972
972
  typeof Object.getOwnPropertySymbols == "function" && (s = s.concat(Object.getOwnPropertySymbols(i).filter(function(a) {
@@ -977,7 +977,7 @@ function ft(t) {
977
977
  }
978
978
  return t;
979
979
  }
980
- r(ft, "G");
980
+ r(mt, "G");
981
981
  function Yt(t, e) {
982
982
  return e = e ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : (function(i, s) {
983
983
  var a = Object.keys(i);
@@ -991,23 +991,23 @@ function Yt(t, e) {
991
991
  }), t;
992
992
  }
993
993
  r(Yt, "$");
994
- function it(t) {
994
+ function rt(t) {
995
995
  return (function(e) {
996
- if (Array.isArray(e)) return pt(e);
996
+ if (Array.isArray(e)) return ft(e);
997
997
  })(t) || (function(e) {
998
998
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
999
999
  })(t) || (function(e, i) {
1000
1000
  if (e) {
1001
- if (typeof e == "string") return pt(e, i);
1001
+ if (typeof e == "string") return ft(e, i);
1002
1002
  var s = Object.prototype.toString.call(e).slice(8, -1);
1003
- return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? pt(e, i) : void 0;
1003
+ return s === "Object" && e.constructor && (s = e.constructor.name), s === "Map" || s === "Set" ? Array.from(s) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? ft(e, i) : void 0;
1004
1004
  }
1005
1005
  })(t) || (function() {
1006
1006
  throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1007
1007
  })();
1008
1008
  }
1009
- r(it, "Q");
1010
- function st(t, e) {
1009
+ r(rt, "Q");
1010
+ function ot(t, e) {
1011
1011
  if (!t) {
1012
1012
  W.warn("input element not found", t);
1013
1013
  var i, s, a, n, o = new Proxy(this, { get: /* @__PURE__ */ r(function() {
@@ -1061,27 +1061,27 @@ function st(t, e) {
1061
1061
  })(this)), this.isFirefox = /firefox|fxios/i.test(navigator.userAgent) && !/seamonkey/i.test(navigator.userAgent), this.isIE = window.document.documentMode, e = e || {}, this.getPersistedData = (n = e.id, function(l) {
1062
1062
  var d, u;
1063
1063
  if (n) {
1064
- if (((d = localStorage) === null || d === void 0 ? void 0 : d.getItem(G + n + "/v")) === 1) try {
1065
- u = JSON.parse(localStorage[G + n + "/" + l]);
1064
+ if (((d = localStorage) === null || d === void 0 ? void 0 : d.getItem(Q + n + "/v")) === 1) try {
1065
+ u = JSON.parse(localStorage[Q + n + "/" + l]);
1066
1066
  } catch {
1067
1067
  }
1068
1068
  return u;
1069
1069
  }
1070
- }), this.setPersistedData = (i = e.id) ? ((s = localStorage) === null || s === void 0 || s.setItem(G + i + "/v", 1), function(l, d) {
1070
+ }), this.setPersistedData = (i = e.id) ? ((s = localStorage) === null || s === void 0 || s.setItem(Q + i + "/v", 1), function(l, d) {
1071
1071
  var u, h = JSON.stringify(l);
1072
- l && d && ((u = localStorage) === null || u === void 0 || u.setItem(G + i + "/" + d, h), dispatchEvent(new Event("storage")));
1072
+ l && d && ((u = localStorage) === null || u === void 0 || u.setItem(Q + i + "/" + d, h), dispatchEvent(new Event("storage")));
1073
1073
  }) : function() {
1074
1074
  }, this.clearPersistedData = (a = e.id, function(l) {
1075
- var d = G + "/" + a + "/";
1075
+ var d = Q + "/" + a + "/";
1076
1076
  if (l) localStorage.removeItem(d + l);
1077
1077
  else for (var u in localStorage) u.includes(d) && localStorage.removeItem(u);
1078
1078
  }), this.applySettings(t, e), this.state = { inputText: "", editing: !1, composing: !1, actions: {}, mixMode: {}, dropdown: {}, flaggedTags: {} }, this.value = [], this.listeners = {}, this.DOM = {}, this.build(t), qt.call(this), this.getCSSVars(), this.loadOriginalValues(), this.events.customBinding.call(this), this.events.binding.call(this), t.autofocus && this.DOM.input.focus(), t.__tagify = this;
1079
1079
  }
1080
- r(st, "Y");
1081
- st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helpers: { sameStr: Q, removeCollectionProp: Tt, omit: mt, isObject: V, parseHTML: dt, escapeHTML: H, extend: D, concatWithoutDups: xt, getUID: Dt, isNodeTag: q }, customEventsList: ["change", "add", "remove", "invalid", "input", "paste", "click", "keydown", "focus", "blur", "edit:input", "edit:beforeUpdate", "edit:updated", "edit:start", "edit:keydown", "dropdown:show", "dropdown:hide", "dropdown:select", "dropdown:updated", "dropdown:noMatch", "dropdown:scroll"], dataProps: ["__isValid", "__removed", "__originalData", "__originalHTML", "__tagId"], trim: /* @__PURE__ */ r(function(t) {
1080
+ r(ot, "Y");
1081
+ ot.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helpers: { sameStr: Y, removeCollectionProp: Tt, omit: vt, isObject: V, parseHTML: ut, escapeHTML: H, extend: D, concatWithoutDups: St, getUID: Dt, isNodeTag: q }, customEventsList: ["change", "add", "remove", "invalid", "input", "paste", "click", "keydown", "focus", "blur", "edit:input", "edit:beforeUpdate", "edit:updated", "edit:start", "edit:keydown", "dropdown:show", "dropdown:hide", "dropdown:select", "dropdown:updated", "dropdown:noMatch", "dropdown:scroll"], dataProps: ["__isValid", "__removed", "__originalData", "__originalHTML", "__tagId"], trim: /* @__PURE__ */ r(function(t) {
1082
1082
  return this.settings.trim && t && typeof t == "string" ? t.trim() : t;
1083
- }, "trim"), parseHTML: dt, templates: Jt, parseTemplate: /* @__PURE__ */ r(function(t, e) {
1084
- return dt((t = this.settings.templates[t] || t).apply(this, e));
1083
+ }, "trim"), parseHTML: ut, templates: Jt, parseTemplate: /* @__PURE__ */ r(function(t, e) {
1084
+ return ut((t = this.settings.templates[t] || t).apply(this, e));
1085
1085
  }, "parseTemplate"), set whitelist(t) {
1086
1086
  var e = t && Array.isArray(t);
1087
1087
  this.settings.whitelist = e ? t : [], this.setPersistedData(e ? t : [], "whitelist");
@@ -1099,12 +1099,12 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1099
1099
  }, "get") });
1100
1100
  })(e);
1101
1101
  }, "generateClassSelectors"), applySettings: /* @__PURE__ */ r(function(t, e) {
1102
- ut.templates = this.templates;
1103
- var i, s, a = D({}, ut, e.mode == "mix" ? { pasteAsTags: !1, dropdown: { position: "text" } } : {}), n = this.settings = D({}, a, e);
1102
+ ct.templates = this.templates;
1103
+ var i, s, a = D({}, ct, e.mode == "mix" ? { pasteAsTags: !1, dropdown: { position: "text" } } : {}), n = this.settings = D({}, a, e);
1104
1104
  if (n.disabled = t.hasAttribute("disabled"), n.readonly = n.readonly || t.hasAttribute("readonly"), n.placeholder = H(t.getAttribute("placeholder") || n.placeholder || ""), n.required = t.hasAttribute("required"), this.generateClassSelectors(n.classNames), this.isIE && (n.autoComplete = !1), ["whitelist", "blacklist"].forEach(function(l) {
1105
1105
  var d = t.getAttribute("data-" + l);
1106
1106
  d && $(d = d.split(n.delimiters), Array) && (n[l] = d);
1107
- }), "autoComplete" in e && !V(e.autoComplete) && (n.autoComplete = ut.autoComplete, n.autoComplete.enabled = e.autoComplete), n.mode == "mix" && (n.pattern = n.pattern || /@/, n.autoComplete.rightKey = !0, n.delimiters = e.delimiters || null, n.tagTextProp && !n.dropdown.searchKeys.includes(n.tagTextProp) && n.dropdown.searchKeys.push(n.tagTextProp)), t.pattern) try {
1107
+ }), "autoComplete" in e && !V(e.autoComplete) && (n.autoComplete = ct.autoComplete, n.autoComplete.enabled = e.autoComplete), n.mode == "mix" && (n.pattern = n.pattern || /@/, n.autoComplete.rightKey = !0, n.delimiters = e.delimiters || null, n.tagTextProp && !n.dropdown.searchKeys.includes(n.tagTextProp) && n.dropdown.searchKeys.push(n.tagTextProp)), t.pattern) try {
1108
1108
  n.pattern = RegExp(t.pattern);
1109
1109
  } catch {
1110
1110
  }
@@ -1115,9 +1115,9 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1115
1115
  } catch {
1116
1116
  }
1117
1117
  }
1118
- (n.disabled || n.readonly) && (n.userInput = !1), this.TEXTS = ft({}, Ut, n.texts || {}), n.mode == "select" && (n.dropdown.includeSelectedTags = !0), (n.mode != "select" || !((i = e.dropdown) === null || i === void 0) && i.enabled) && n.userInput || (n.dropdown.enabled = 0), n.disabled && (n.dropdown.enabled = !1), n.dropdown.appendTarget = ((s = e.dropdown) === null || s === void 0 ? void 0 : s.appendTarget) || document.body, n.dropdown.includeSelectedTags === void 0 && (n.dropdown.includeSelectedTags = n.duplicates);
1118
+ (n.disabled || n.readonly) && (n.userInput = !1), this.TEXTS = mt({}, Ut, n.texts || {}), n.mode == "select" && (n.dropdown.includeSelectedTags = !0), (n.mode != "select" || !((i = e.dropdown) === null || i === void 0) && i.enabled) && n.userInput || (n.dropdown.enabled = 0), n.disabled && (n.dropdown.enabled = !1), n.dropdown.appendTarget = ((s = e.dropdown) === null || s === void 0 ? void 0 : s.appendTarget) || document.body, n.dropdown.includeSelectedTags === void 0 && (n.dropdown.includeSelectedTags = n.duplicates);
1119
1119
  var o = this.getPersistedData("whitelist");
1120
- Array.isArray(o) && (this.whitelist = Array.isArray(n.whitelist) ? xt(n.whitelist, o) : o);
1120
+ Array.isArray(o) && (this.whitelist = Array.isArray(n.whitelist) ? St(n.whitelist, o) : o);
1121
1121
  }, "applySettings"), getAttributes: /* @__PURE__ */ r(function(t) {
1122
1122
  var e, i = this.getCustomAttributes(t), s = "";
1123
1123
  for (e in i) s += " " + e + (t[e] !== void 0 ? '="'.concat(i[e], '"') : "");
@@ -1241,7 +1241,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1241
1241
  this.value.length = 0;
1242
1242
  var e = this.settings.classNames, i = [e.tagNotAllowed.split(" ")[0], e.tagHide];
1243
1243
  [].forEach.call(this.getTagElms(), function(s) {
1244
- it(s.classList).some(function(a) {
1244
+ rt(s.classList).some(function(a) {
1245
1245
  return i.includes(a);
1246
1246
  }) || t.value.push(w(s));
1247
1247
  }), this.update(), this.dropdown.refilter();
@@ -1251,7 +1251,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1251
1251
  if (!s.length) return this;
1252
1252
  if (!e) return this.appendMixTags(t), this;
1253
1253
  if (!this.DOM.scope.contains(e?.startContainer)) return this;
1254
- _t(t, e);
1254
+ kt(t, e);
1255
1255
  var a = s[s.length - 1] || t;
1256
1256
  return a?.parentNode && j(a), this.setStateSelection(), this.updateValueByDOMTags(), this.update(), this;
1257
1257
  }, "injectAtCaret"), input: { set: /* @__PURE__ */ r(function() {
@@ -1295,7 +1295,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1295
1295
  return e;
1296
1296
  }, "getNodeIndex"), getTagElms: /* @__PURE__ */ r(function() {
1297
1297
  for (var t = arguments.length, e = Array(t), i = 0; i < t; i++) e[i] = arguments[i];
1298
- var s = "." + it(this.settings.classNames.tag.split(" ")).concat(it(e)).join(".");
1298
+ var s = "." + rt(this.settings.classNames.tag.split(" ")).concat(rt(e)).join(".");
1299
1299
  return [].slice.call(this.DOM.scope.querySelectorAll(s));
1300
1300
  }, "getTagElms"), getLastTag: /* @__PURE__ */ r(function() {
1301
1301
  var t = this.settings.classNames, e = this.DOM.scope.querySelectorAll("".concat(t.tagSelector, ":not(.").concat(t.tagHide, "):not([readonly])"));
@@ -1305,7 +1305,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1305
1305
  try {
1306
1306
  for (var l, d = this.value[Symbol.iterator](); !(a = (l = d.next()).done); a = !0) {
1307
1307
  var u = l.value;
1308
- Q(this.trim("" + t), u.value, e) && i != u.__tagId && s++;
1308
+ Y(this.trim("" + t), u.value, e) && i != u.__tagId && s++;
1309
1309
  }
1310
1310
  } catch (h) {
1311
1311
  n = !0, o = h;
@@ -1320,7 +1320,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1320
1320
  }, "isTagDuplicate"), getTagIndexByValue: /* @__PURE__ */ r(function(t) {
1321
1321
  var e = this, i = [], s = this.settings.dropdown.caseSensitive;
1322
1322
  return this.getTagElms().forEach(function(a, n) {
1323
- a.__tagifyTagData && Q(e.trim(a.__tagifyTagData.value), t, s) && i.push(n);
1323
+ a.__tagifyTagData && Y(e.trim(a.__tagifyTagData.value), t, s) && i.push(n);
1324
1324
  }), i;
1325
1325
  }, "getTagIndexByValue"), getTagElmByValue: /* @__PURE__ */ r(function(t) {
1326
1326
  var e = this.getTagIndexByValue(t)[0];
@@ -1340,7 +1340,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1340
1340
  e = e || "value";
1341
1341
  var s, a = this.settings;
1342
1342
  return (i = i || a.whitelist).some(function(n) {
1343
- if (Q(typeof n == "object" ? n[e] || n.value : n, t, a.dropdown.caseSensitive, a.trim)) return s = typeof n == "object" ? n : { value: n }, !0;
1343
+ if (Y(typeof n == "object" ? n[e] || n.value : n, t, a.dropdown.caseSensitive, a.trim)) return s = typeof n == "object" ? n : { value: n }, !0;
1344
1344
  }), s || e != "value" || a.tagTextProp == "value" || (s = this.getWhitelistItem(t, a.tagTextProp, i)), s;
1345
1345
  }, "getWhitelistItem"), validateTag: /* @__PURE__ */ r(function(t) {
1346
1346
  var e = this.settings, i = "value" in t ? "value" : e.tagTextProp, s = this.trim(t[i] + "");
@@ -1372,7 +1372,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1372
1372
  if (V(f)) {
1373
1373
  var p, m = D({}, f);
1374
1374
  o in m || (o = "value"), m[o] = e.trim(m[o]), (m[o] || m[o] === 0) && c.push(m);
1375
- } else f != null && f !== "" && f !== void 0 && (p = c).push.apply(p, it(g(f)));
1375
+ } else f != null && f !== "" && f !== void 0 && (p = c).push.apply(p, rt(g(f)));
1376
1376
  return c;
1377
1377
  }, []));
1378
1378
  return d && !h && (t.forEach(function(c) {
@@ -1388,7 +1388,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1388
1388
  }, "normalizeTags"), parseMixTags: /* @__PURE__ */ r(function(t, e) {
1389
1389
  var i = this, s = this.settings, a = s.mixTagsInterpolator, n = s.duplicates, o = s.transformTag, l = s.enforceWhitelist, d = s.maxTags, u = s.tagTextProp, h = e?.skipDOM, g = h ? document.createDocumentFragment() : null, c = [];
1390
1390
  if (t = t.split(a[0]).map(function(p, m) {
1391
- var v, y, x, T = p.split(a[1]), b = T[0], S = c.length == d;
1391
+ var v, y, S, T = p.split(a[1]), b = T[0], x = c.length == d;
1392
1392
  if (h && m == 0 && p) return g.appendChild(document.createTextNode(p)), "";
1393
1393
  try {
1394
1394
  if (b == +b) throw Error;
@@ -1396,11 +1396,11 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1396
1396
  } catch {
1397
1397
  y = i.normalizeTags(b)[0] || { value: b };
1398
1398
  }
1399
- if (o.call(i, y), S || !(T.length > 1) || l && !i.isTagWhitelisted(y.value) || !n && i.isTagDuplicate(y.value)) {
1399
+ if (o.call(i, y), x || !(T.length > 1) || l && !i.isTagWhitelisted(y.value) || !n && i.isTagDuplicate(y.value)) {
1400
1400
  if (p) return h ? (g.appendChild(document.createTextNode(a[0] + p)), "") : m ? a[0] + p : p;
1401
1401
  } else {
1402
- if (y[v = y[u] ? u : "value"] = i.trim(y[v]), x = i.createTagElem(y), c.push(y), x.classList.add(i.settings.classNames.tagNoAnimation), h) return g.appendChild(x), T[1] && g.appendChild(document.createTextNode(T[1])), "";
1403
- T[0] = x.outerHTML, i.value.push(y);
1402
+ if (y[v = y[u] ? u : "value"] = i.trim(y[v]), S = i.createTagElem(y), c.push(y), S.classList.add(i.settings.classNames.tagNoAnimation), h) return g.appendChild(S), T[1] && g.appendChild(document.createTextNode(T[1])), "";
1403
+ T[0] = S.outerHTML, i.value.push(y);
1404
1404
  }
1405
1405
  return T.join("");
1406
1406
  }).join(""), h) return g.__tagifyTagsData = c, g;
@@ -1408,13 +1408,13 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1408
1408
  var f = this.getTagElms();
1409
1409
  return f.forEach(function(p, m) {
1410
1410
  return w(p, c[m]);
1411
- }), this.update({ withoutChangeEvent: !0 }), vt(f, this.state.hasFocus), t;
1411
+ }), this.update({ withoutChangeEvent: !0 }), yt(f, this.state.hasFocus), t;
1412
1412
  }, "parseMixTags"), convertPastedTextToMixTags: /* @__PURE__ */ r(function(t) {
1413
1413
  var e = this.settings, i = e.pattern, s = e.whitelist, a = e.mixTagsInterpolator, n = e.mixTagsAllowedAfter, o = e.tagTextProp;
1414
1414
  if (!i || !s?.length) return t;
1415
1415
  var l = i.source ? i.source.split("|") : [i], d = {};
1416
- l.forEach(function(k) {
1417
- d[k.replace(/\\/g, "")] = s.map(function(R) {
1416
+ l.forEach(function(C) {
1417
+ d[C.replace(/\\/g, "")] = s.map(function(R) {
1418
1418
  var B;
1419
1419
  return B = typeof R == "string" ? R : R[o] || R.value, { originalItem: R, value: B = String(B), searchValue: B.toLowerCase() };
1420
1420
  }).sort(function(R, B) {
@@ -1424,40 +1424,40 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1424
1424
  for (var u, h = RegExp(i.source, "g"), g = []; (u = h.exec(t)) !== null; ) {
1425
1425
  var c = u[0], f = u.index, p = f + c.length, m = t.slice(p), v = d[c];
1426
1426
  if (v) {
1427
- var y = null, x = 0, T = !0, b = !1, S = void 0;
1427
+ var y = null, S = 0, T = !0, b = !1, x = void 0;
1428
1428
  try {
1429
- for (var L, A = v[Symbol.iterator](); !(T = (L = A.next()).done); T = !0) {
1429
+ for (var L, k = v[Symbol.iterator](); !(T = (L = k.next()).done); T = !0) {
1430
1430
  var P = L.value, O = P.value.length;
1431
1431
  if (m.slice(0, O).toLowerCase() === P.searchValue) {
1432
1432
  var I = m[O];
1433
1433
  if (!I || n.test(I)) {
1434
- y = P, x = O;
1434
+ y = P, S = O;
1435
1435
  break;
1436
1436
  }
1437
1437
  }
1438
1438
  }
1439
- } catch (k) {
1440
- b = !0, S = k;
1439
+ } catch (C) {
1440
+ b = !0, x = C;
1441
1441
  } finally {
1442
1442
  try {
1443
- T || A.return == null || A.return();
1443
+ T || k.return == null || k.return();
1444
1444
  } finally {
1445
- if (b) throw S;
1445
+ if (b) throw x;
1446
1446
  }
1447
1447
  }
1448
1448
  if (y) {
1449
- var N = typeof y.originalItem == "string" ? { value: y.value, prefix: c } : Yt(ft({}, y.originalItem), { prefix: c });
1449
+ var N = typeof y.originalItem == "string" ? { value: y.value, prefix: c } : Yt(mt({}, y.originalItem), { prefix: c });
1450
1450
  if (this.validateTag(N) === !0) {
1451
1451
  var E = "".concat(a[0]).concat(JSON.stringify(N)).concat(a[1]);
1452
- g.push({ start: f, end: p + x, replacement: E }), h.lastIndex = p + x;
1452
+ g.push({ start: f, end: p + S, replacement: E }), h.lastIndex = p + S;
1453
1453
  }
1454
1454
  }
1455
1455
  }
1456
1456
  }
1457
1457
  var F = t;
1458
- return g.reverse().forEach(function(k) {
1459
- var R = k.start, B = k.end, kt = k.replacement;
1460
- F = F.slice(0, R) + kt + F.slice(B);
1458
+ return g.reverse().forEach(function(C) {
1459
+ var R = C.start, B = C.end, _t = C.replacement;
1460
+ F = F.slice(0, R) + _t + F.slice(B);
1461
1461
  }), F;
1462
1462
  }, "convertPastedTextToMixTags"), replaceTextWithNode: /* @__PURE__ */ r(function(t, e) {
1463
1463
  if (this.state.tag || e) {
@@ -1542,7 +1542,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1542
1542
  e.scope.insertBefore(t, i);
1543
1543
  }, "appendTag"), createTagElem: /* @__PURE__ */ r(function(t, e) {
1544
1544
  t.__tagId = Dt();
1545
- var i, s, a = D({}, t, ft((z(i = {}, this.settings.tagTextProp, H((t[this.settings.tagTextProp] || t.value) + "")), z(i, "title", H((t.title || "") + "")), z(i, "value", H(t.value + "")), i), e));
1545
+ var i, s, a = D({}, t, mt((z(i = {}, this.settings.tagTextProp, H((t[this.settings.tagTextProp] || t.value) + "")), z(i, "title", H((t.title || "") + "")), z(i, "value", H(t.value + "")), i), e));
1546
1546
  return (function(n) {
1547
1547
  for (var o, l = document.createNodeIterator(n, NodeFilter.SHOW_TEXT, null, !1); o = l.nextNode(); ) o.textContent.trim() || o.parentNode.removeChild(o);
1548
1548
  })(s = this.parseTemplate("tag", [a, this])), w(s, t), s;
@@ -1618,13 +1618,13 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1618
1618
  if (l.tagName == "BR" && (t += `\r
1619
1619
  `), d && q.call(e, l)) {
1620
1620
  if (d.__removed) return;
1621
- t += a[0] + s(mt(d, e.dataProps)) + a[1];
1621
+ t += a[0] + s(vt(d, e.dataProps)) + a[1];
1622
1622
  } else l.getAttribute("style") || ["B", "I", "U"].includes(l.tagName) ? t += l.textContent : l.tagName != "DIV" && l.tagName != "P" || (t += `\r
1623
1623
  `, n(l));
1624
1624
  } else t += l.textContent;
1625
1625
  });
1626
1626
  }, "te"))(this.DOM.input), t;
1627
- }, "getMixedTagsAsString") }, st.prototype.removeTag = st.prototype.removeTags;
1627
+ }, "getMixedTagsAsString") }, ot.prototype.removeTag = ot.prototype.removeTags;
1628
1628
  var Zt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, _ = /* @__PURE__ */ r((t, e, i, s) => {
1629
1629
  for (var a = s > 1 ? void 0 : s ? te(e, i) : e, n = t.length - 1, o; n >= 0; n--)
1630
1630
  (o = t[n]) && (a = (s ? o(e, i, a) : o(a)) || a);
@@ -1822,7 +1822,7 @@ let M = (U = class extends Pt {
1822
1822
  clicks: 1,
1823
1823
  keepInvalid: !0
1824
1824
  }), this.nextTick(() => {
1825
- this.tagify = new st(this.$el.querySelector(`#vst-s-${this.randKey}`), e), this.tagify.setDisabled(this.disabled), this.tagify.loading(this.loading), this.tagify.on("input", (i) => {
1825
+ this.tagify = new ot(this.$el.querySelector(`#vst-s-${this.randKey}`), e), this.tagify.setDisabled(this.disabled), this.tagify.loading(this.loading), this.tagify.on("input", (i) => {
1826
1826
  this.$emit("input", this.currentSearchValue = i?.detail?.value ?? "");
1827
1827
  }), this.tagify.on("blur", (i) => {
1828
1828
  this.nextTick(() => {
@@ -1863,8 +1863,8 @@ let M = (U = class extends Pt {
1863
1863
  setTags(e) {
1864
1864
  this.beforeUpdate(), this.nextTick(() => {
1865
1865
  if (this.tagify?.removeAllTags?.(), this.mode == "select") {
1866
- const i = this.itemsInner.find((s) => (s?.key === 0 ? s?.key : s?.key || s?.value) === (e ?? (this.inputValue || this.modelValue)))?.value ?? null;
1867
- (i || i === 0) && (this.isFirstValueSet = !0, this.value = i, this.tagify?.addTags(this.value ?? ""));
1866
+ const i = this.itemsInner.find((s) => (s?.key === 0 ? s?.key : s?.key || s?.value) === (e ?? (this.inputValue || this.modelValue)));
1867
+ (i?.key || i?.key === 0) && (this.isFirstValueSet = !0, this.value = i.key ?? i.value ?? null, this.tagify?.addTags?.((i.value ?? i.key ?? "").toString()));
1868
1868
  } else if (this.mode == "multi") {
1869
1869
  const i = e ?? (this.inputValue || this.modelValue);
1870
1870
  if (Array.isArray(i)) {
@@ -1876,7 +1876,7 @@ let M = (U = class extends Pt {
1876
1876
  const i = e ?? (this.inputValue || this.modelValue);
1877
1877
  Array.isArray(i) && (this.isFirstValueSet = !0, this.value = JSON.parse(JSON.stringify(this.itemsInner))?.filter(
1878
1878
  (s) => i?.some((a) => (a?.key || a?.value) == (s?.key || s?.value))
1879
- ), this.tagify?.addTags(this.value ?? ""));
1879
+ ).map((s) => ({ value: s.value })), this.nextTick(() => this.tagify?.addTags(this.value ?? [])));
1880
1880
  }
1881
1881
  });
1882
1882
  }
@@ -1921,26 +1921,26 @@ _([
1921
1921
  J(String, Object)
1922
1922
  ], M.prototype, "placeholder", 2);
1923
1923
  _([
1924
- Y("items", !0, !0)
1924
+ Z("items", !0, !0)
1925
1925
  ], M.prototype, "itemsWatch", 1);
1926
1926
  _([
1927
- Y({ deep: !0 })
1927
+ Z({ deep: !0 })
1928
1928
  ], M.prototype, "watchValue", 1);
1929
1929
  _([
1930
- Y("modelValue", !0)
1930
+ Z("modelValue", !0)
1931
1931
  ], M.prototype, "modelValueWatch", 1);
1932
1932
  _([
1933
- Y("disabled", !0, !0)
1933
+ Z("disabled", !0, !0)
1934
1934
  ], M.prototype, "disabledWatch", 1);
1935
1935
  _([
1936
- Y
1936
+ Z
1937
1937
  ], M.prototype, "watchLoading", 1);
1938
1938
  M = _([
1939
1939
  Vt
1940
1940
  ], M);
1941
1941
  const ee = ["id", "value", "autofocus"];
1942
1942
  function ie(t, e, i, s, a, n) {
1943
- return Z(), jt("div", {
1943
+ return X(), jt("div", {
1944
1944
  class: Ft(["vst-select-field d-inline-block mx2px my1px w100%", {
1945
1945
  "vst-select-multi": t.mode == "multi" || t.mode == "tags",
1946
1946
  "min-h45px": t.size == "lg",
@@ -1955,21 +1955,27 @@ function ie(t, e, i, s, a, n) {
1955
1955
  value: t.reactiveValue,
1956
1956
  autofocus: t.autofocus
1957
1957
  }, null, 8, ee),
1958
- (t.size == "md" || t.size == "sm") && t.mode == "select" ? (Z(), at(nt("style"), { key: 0 }, {
1959
- default: rt(() => [
1960
- ot(".vst-select-field.vst-select-" + C(t.randKey) + " .tagify { height: 35px !important; min-height: auto !important; padding-left: 12px !important; padding-top: 2px !important; border-color: #a8a29e99 !important; } .vst-select-field.vst-select-" + C(t.randKey) + " .tagify__tag { height: 28px !important; } .vst-select-field.vst-select-" + C(t.randKey) + " .tagify__input { height: 20px !important; padding: 0 !important; } .vst-select-field.vst-select-" + C(t.randKey) + " .tagify__tag-text { padding: 0 0 0 0 !important; } .vst-select-dropdown-" + C(t.randKey) + " .tagify__dropdown__item { height: 32px !important; line-height: 29px !important; padding: 1px 7px 3px !important; } .vst-select-field.vst-select-" + C(t.randKey) + " .tagify--select tag > div, .vst-select-field.vst-select-" + C(t.randKey) + " .tagify--select tag, .vst-select-field.vst-select-" + C(t.randKey) + " .tagify__tag, { padding: 0 !important; margin: 0 !important; height: 20px !important; }", 1)
1958
+ t.size == "md" || t.size == "sm" ? (X(), tt(et("style"), { key: 0 }, {
1959
+ default: it(() => [
1960
+ st(".vst-select-field.vst-select-" + A(t.randKey) + " .tagify { " + A(t.mode != "select" && t.value && t.value?.toString?.()?.trim?.()?.length ? "min-" : "") + "height: 35px !important; min-height: auto !important; padding-left: 12px !important; padding-top: 2px !important; border-color: #a8a29e99 !important; } .vst-select-field.vst-select-" + A(t.randKey) + " .tagify__tag { height: 28px !important; } .vst-select-field.vst-select-" + A(t.randKey) + " .tagify__input { height: 20px !important; padding: 0 !important; } .vst-select-field.vst-select-" + A(t.randKey) + " .tagify__tag-text { padding: 0 0 0 0 !important; } .vst-select-dropdown-" + A(t.randKey) + " .tagify__dropdown__item { height: 32px !important; line-height: 29px !important; padding: 1px 7px 3px !important; } .vst-select-field.vst-select-" + A(t.randKey) + " .tagify--select tag > div, .vst-select-field.vst-select-" + A(t.randKey) + " .tagify--select tag, .vst-select-field.vst-select-" + A(t.randKey) + " .tagify__tag, { padding: 0 !important; margin: 0 !important; height: 20px !important; }", 1)
1961
+ ]),
1962
+ _: 1
1963
+ })) : lt("", !0),
1964
+ t.mode == "multi" ? (X(), tt(et("style"), { key: 1 }, {
1965
+ default: it(() => [
1966
+ st(".vst-select-" + A(t.randKey) + " .tagify__tag { background: #e5e5e5; }", 1)
1961
1967
  ]),
1962
1968
  _: 1
1963
- })) : yt("", !0),
1964
- t.mode == "multi" ? (Z(), at(nt("style"), { key: 1 }, {
1965
- default: rt(() => [
1966
- ot(".vst-select-" + C(t.randKey) + " .tagify__tag { background: #e5e5e5; }", 1)
1969
+ })) : lt("", !0),
1970
+ t.mode == "select" ? (X(), tt(et("style"), { key: 2 }, {
1971
+ default: it(() => [
1972
+ st(".vst-select-" + A(t.randKey) + " .tagify__tag-text { white-space: nowrap; position: absolute; top: 5px; left: 3px; width: 75% !important; }", 1)
1967
1973
  ]),
1968
1974
  _: 1
1969
- })) : yt("", !0),
1970
- (Z(), at(nt("style"), null, {
1971
- default: rt(() => [
1972
- ot(".vst-select-field.vst-select-" + C(t.randKey) + " .tagify--empty .tagify__input:before { max-width: " + C(t.maxPlaceholderWidth ? t.maxPlaceholderWidth + "px" : "auto") + "; }", 1)
1975
+ })) : lt("", !0),
1976
+ (X(), tt(et("style"), null, {
1977
+ default: it(() => [
1978
+ st(".vst-select-field.vst-select-" + A(t.randKey) + " .tagify--empty .tagify__input:before { max-width: " + A(t.maxPlaceholderWidth ? t.maxPlaceholderWidth + "px" : "auto") + "; }", 1)
1973
1979
  ]),
1974
1980
  _: 1
1975
1981
  }))