vue-spear-tip 0.6.21 → 0.6.23

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 (51) hide show
  1. package/dist/.vite/manifest.json +41 -41
  2. package/dist/{Button-mNgrIBt0.js → Button-DH4FX8T4.js} +1 -1
  3. package/dist/{Button-DL8dzhLs.cjs → Button-DRVkV1Dt.cjs} +1 -1
  4. package/dist/{CodeHighlight-CWT9ljxW.cjs → CodeHighlight-C9gHFIH1.cjs} +1 -1
  5. package/dist/{CodeHighlight-eMrWWqjO.js → CodeHighlight-CoMN_X6g.js} +1 -1
  6. package/dist/{DateField-DJgLEfuJ.js → DateField-An7uuC9m.js} +2 -2
  7. package/dist/{DateField-276tU7dR.cjs → DateField-ORIhSQgv.cjs} +1 -1
  8. package/dist/{Draggable-xSaOZkIc.js → Draggable-HAqtW6In.js} +1 -1
  9. package/dist/{Draggable-D9K46teR.cjs → Draggable-_AfhNGyC.cjs} +1 -1
  10. package/dist/{Droppable-DGc3gGXX.js → Droppable-CGVSIVv9.js} +1 -1
  11. package/dist/{Droppable-ozHn_LH7.cjs → Droppable-DQBMDG8q.cjs} +1 -1
  12. package/dist/{FieldComponent.vue_vue_type_script_lang-Bht3oZYb.cjs → FieldComponent.vue_vue_type_script_lang-7K79qiOE.cjs} +1 -1
  13. package/dist/{FieldComponent.vue_vue_type_script_lang-BCu4PrNU.js → FieldComponent.vue_vue_type_script_lang-CvIndz58.js} +1 -1
  14. package/dist/{FilesArea-DZiv8wBT.cjs → FilesArea-BkIS2B_z.cjs} +1 -1
  15. package/dist/{FilesArea-C9z4gTb0.js → FilesArea-C6qxxQ4b.js} +2 -2
  16. package/dist/{Scrollbar-CBCuild6.js → Scrollbar-Co2kBEuR.js} +1 -1
  17. package/dist/{Scrollbar-DpX61NhD.cjs → Scrollbar-eFDcY0PU.cjs} +1 -1
  18. package/dist/{SelectField-BN765HUF.js → SelectField-B3aT_gUC.js} +138 -132
  19. package/dist/{SelectField-BTQ-c5YW.cjs → SelectField-BeJiyeJh.cjs} +6 -6
  20. package/dist/{StringField-D4k0FAo8.cjs → StringField-B7QK0WIP.cjs} +1 -1
  21. package/dist/{StringField-DXuKHlpt.js → StringField-Bvw0Jwzk.js} +2 -2
  22. package/dist/{SwitchField-Dj2QpW85.cjs → SwitchField-BPWW0hSE.cjs} +1 -1
  23. package/dist/{SwitchField-BdKQGeSb.js → SwitchField-C7fd7Ifv.js} +2 -2
  24. package/dist/{Tabs-Dm8Aj2Y8.cjs → Tabs-BCR_AgRy.cjs} +1 -1
  25. package/dist/{Tabs-CAbUgriG.js → Tabs-DFF7Wx4b.js} +1 -1
  26. package/dist/{TextField-BTofkhCU.js → TextField-C31yAHWi.js} +2 -2
  27. package/dist/{TextField-DJkk40xg.cjs → TextField-Dw5sopni.cjs} +1 -1
  28. package/dist/{index-DZjDh7FL.cjs → index-DqJyjsnu.cjs} +1 -1
  29. package/dist/{index-Cd_DL4JD.js → index-eB9aVRVz.js} +3 -3
  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-8C6MeUM7.js → Button-C54eJCPY.js} +1 -1
  34. package/docs/static/{CodeHighlight-DFeMy3ki.js → CodeHighlight-JHestikj.js} +1 -1
  35. package/docs/static/{DateField-Cf48x5xH.js → DateField-Dl9m5Foh.js} +1 -1
  36. package/docs/static/{Draggable-CS4w2yK4.js → Draggable-DagK0YeN.js} +1 -1
  37. package/docs/static/{Droppable-wLX0xjMl.js → Droppable-Drzq614c.js} +1 -1
  38. package/docs/static/{FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js → FieldComponent.vue_vue_type_script_lang-DxdSyAFQ.js} +1 -1
  39. package/docs/static/{FilesArea-Cl92W6MM.js → FilesArea-Bq8CEzEr.js} +1 -1
  40. package/docs/static/{NoSymbolIcon-NizHqgdb.js → NoSymbolIcon-D_f8erdG.js} +1 -1
  41. package/docs/static/{Scrollbar-l6hENTT0.js → Scrollbar-Ok5qOU8x.js} +1 -1
  42. package/docs/static/SelectField-DMQsnSZx.js +99 -0
  43. package/docs/static/{StringField-2LaMICQ8.js → StringField-DZShWpBl.js} +1 -1
  44. package/docs/static/{SwitchField-DaP3PVMB.js → SwitchField-By-bRnQs.js} +1 -1
  45. package/docs/static/{Tabs-CBsULMP9.js → Tabs-9YzaY7yu.js} +1 -1
  46. package/docs/static/{TextField-DUq1jGAW.js → TextField-MVno71bK.js} +1 -1
  47. package/docs/static/index-KpH4C779.js +2 -0
  48. package/docs/static/{main-BIpS3Kki.js → main-tTd6Si7U.js} +3 -3
  49. package/package.json +1 -1
  50. package/docs/static/SelectField-CC7fBKuR.js +0 -99
  51. package/docs/static/index-DpXxVeQv.js +0 -2
@@ -1,8 +1,8 @@
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 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";
3
+ import { P as X, W as st, C as Vt, _ as Lt } from "./index-eB9aVRVz.js";
4
+ import { F as Pt } from "./FieldComponent.vue_vue_type_script_lang-CvIndz58.js";
5
+ import { openBlock as q, createElementBlock as jt, normalizeClass as Ft, createElementVNode as Rt, createBlock as G, resolveDynamicComponent as Q, withCtx as Y, createTextVNode as Z, toDisplayString as E, createCommentVNode as at } from "vue";
6
6
  var bt = "​";
7
7
  function dt(t, e) {
8
8
  (e == null || e > t.length) && (e = t.length);
@@ -35,7 +35,7 @@ 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") }, Y = /* @__PURE__ */ r(function(t, e, i, s) {
38
+ }, "warn") }, it = /* @__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) {
@@ -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 St() {
86
+ function xt() {
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 St() {
114
114
  }
115
115
  return t;
116
116
  }
117
- r(St, "g");
118
- function at(t) {
117
+ r(xt, "g");
118
+ function nt(t) {
119
119
  return String.prototype.normalize ? typeof t == "string" ? t.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : void 0 : t;
120
120
  }
121
- r(at, "h");
122
- var xt = /* @__PURE__ */ r(function() {
121
+ r(nt, "h");
122
+ var St = /* @__PURE__ */ r(function() {
123
123
  return /(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);
124
124
  }, "p");
125
125
  function Dt() {
@@ -128,11 +128,11 @@ function Dt() {
128
128
  });
129
129
  }
130
130
  r(Dt, "f");
131
- function q(t) {
131
+ function z(t) {
132
132
  var e, i = At.call(this, t), s = t == null || (e = t.classList) === null || e === void 0 ? void 0 : e.contains(this.settings.classNames.tag);
133
133
  return i && s;
134
134
  }
135
- r(q, "v");
135
+ r(z, "v");
136
136
  function It(t) {
137
137
  return At.call(this, t) && t?.closest(this.settings.classNames.tagSelector);
138
138
  }
@@ -232,12 +232,12 @@ function Kt(t) {
232
232
  })();
233
233
  }
234
234
  r(Kt, "N");
235
- function qt() {
235
+ function zt() {
236
236
  for (var t in this.dropdown = {}, this._dropdown) this.dropdown[t] = typeof this._dropdown[t] == "function" ? this._dropdown[t].bind(this) : this._dropdown[t];
237
237
  this.dropdown.refs(), this.DOM.dropdown.__tagify = this;
238
238
  }
239
- r(qt, "A");
240
- var nt, G, zt = (nt = (function(t) {
239
+ r(zt, "A");
240
+ var rt, tt, qt = (rt = (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 nt, G, zt = (nt = (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 S = e.dropdown.getMappedValue(n);
294
- return e.state.autoCompleteData = n, e.input.autocomplete.set.call(e, S), !1;
293
+ var x = e.dropdown.getMappedValue(n);
294
+ return e.state.autoCompleteData = n, e.input.autocomplete.set.call(e, x), !1;
295
295
  }
296
296
  return !0;
297
297
  case "Enter":
@@ -302,8 +302,8 @@ var nt, G, zt = (nt = (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 x = b.getAttribute("value");
306
- b = e.dropdown.getSuggestionNodeByValue(x), e.dropdown.highlightOption(b);
305
+ var S = b.getAttribute("value");
306
+ b = e.dropdown.getSuggestionNodeByValue(S), 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 nt, G, zt = (nt = (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 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
- g.fuzzySearch && !e.exact ? (n = I.reduce(function(N, E) {
394
- return N + " " + (s[E] || "");
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) {
388
+ var S, L, k = 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"];
393
+ g.fuzzySearch && !e.exact ? (n = I.reduce(function(N, M) {
394
+ return N + " " + (s[M] || "");
395
+ }, "").toLowerCase().trim(), g.accentedSearch && (n = nt(n), l = nt(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
397
  })) : (k = !0, a = I.some(function(N) {
398
- var E = "" + (s[N] || "");
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;
398
+ var M = "" + (s[N] || "");
399
+ return g.accentedSearch && (M = nt(M), l = nt(l)), g.caseSensitive || (M = M.toLowerCase()), P = M === l, e.exact ? M === l : M.indexOf(l) == 0;
400
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);
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);
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 nt, G, zt = (nt = (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") }), G = G = { refs: /* @__PURE__ */ r(function() {
421
+ }, "createListHTML") }), tt = tt = { 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 nt, G, zt = (nt = (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 && !Y(this.suggestedListItems[0].value, t) && this.suggestedListItems.unshift({ value: t });
433
+ if (this.suggestedListItems.length) t && o && !this.state.editing.scope && !it(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,19 +468,19 @@ var nt, G, zt = (nt = (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, 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"];
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"];
472
472
  if (t = t || f.clientHeight, this.state.dropdown.visible) {
473
- if (x == "text" ? (n = (s = (function() {
473
+ if (S == "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, C = E.startOffset;
476
+ var I, N, M = O.getRangeAt(0), F = M.startContainer, C = M.startOffset;
477
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 != S; ) I += O.offsetTop || 0, N += O.offsetLeft || 0, O = O.parentNode;
483
+ for (O = O.parentNode; O && O != x; ) 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
486
  var k, P = (function() {
@@ -489,19 +489,19 @@ var nt, G, zt = (nt = (function(t) {
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 = (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);
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 = 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);
493
493
  }
494
494
  }
495
- }, "position") }, Object.getOwnPropertyDescriptors ? Object.defineProperties(nt, Object.getOwnPropertyDescriptors(G)) : (function(t, e) {
495
+ }, "position") }, Object.getOwnPropertyDescriptors ? Object.defineProperties(rt, Object.getOwnPropertyDescriptors(tt)) : (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(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) {
502
+ })(Object(tt)).forEach(function(t) {
503
+ Object.defineProperty(rt, t, Object.getOwnPropertyDescriptor(tt, t));
504
+ }), rt), et = "@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" : "", `
@@ -677,7 +677,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
677
677
  }, "bindGlobal"), unbindGlobal: /* @__PURE__ */ r(function() {
678
678
  this.events.bindGlobal.call(this, !0);
679
679
  }, "unbindGlobal"), callbacks: { onFocusBlur: /* @__PURE__ */ r(function(t) {
680
- var e, i, s = this.settings, a = It.call(this, t.relatedTarget), n = q.call(this, t.target), o = t.target.classList.contains(s.classNames.tagX), l = t.type == "focusin", d = t.type == "focusout";
680
+ var e, i, s = this.settings, a = It.call(this, t.relatedTarget), n = z.call(this, t.target), o = t.target.classList.contains(s.classNames.tagX), l = t.type == "focusin", d = t.type == "focusout";
681
681
  o && s.mode != "mix" && s.focusInputOnRemove && this.DOM.input.focus(), a && l && !n && !o && this.toggleFocusClass(this.state.hasFocus = +/* @__PURE__ */ new Date());
682
682
  var u = t.target ? this.trim(this.DOM.input.textContent) : "", h = (i = this.value) === null || i === void 0 || (e = i[0]) === null || e === void 0 ? void 0 : e[s.tagTextProp], g = s.dropdown.enabled >= 0, c = { relatedTarget: t.relatedTarget }, f = this.state.actions.selectOption && (g || !s.dropdown.closeOnSelect), p = this.state.actions.addNew && g;
683
683
  if (d) {
@@ -718,7 +718,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
718
718
  break;
719
719
  case "Enter":
720
720
  if (u) return void this.removeTags(t.target.parentNode);
721
- i.a11y.focusableTags && q.call(this, s) && setTimeout(this.editTag.bind(this), 0, s);
721
+ i.a11y.focusableTags && z.call(this, s) && setTimeout(this.editTag.bind(this), 0, s);
722
722
  break;
723
723
  case "ArrowDown":
724
724
  this.state.dropdown.visible || i.mode == "mix" || this.dropdown.show();
@@ -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(S) {
746
+ (function(x) {
747
747
  var T = document.createElement("div");
748
- S.replace(/\&#?[0-9a-z]+;/gi, function(b) {
748
+ x.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 (xt() && Mt(d, Element)) return g = Ot(d), d.hasAttribute("readonly") || d.remove(), e.DOM.input.focus(), void setTimeout(function() {
754
+ if (St() && 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" && xt() && this.events.callbacks.onKeydown.call(this, { target: t.target, key: "Backspace" }), yt(this.getTagElms()), this.value.slice().forEach(function(v) {
811
+ if (t.inputType == "deleteContentBackward" && St() && 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);
@@ -897,7 +897,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
897
897
  }, "onEditTagClick"), onEditTagFocus: /* @__PURE__ */ r(function(t) {
898
898
  this.state.editing = { scope: t, input: t.querySelector("[contenteditable]") };
899
899
  }, "onEditTagFocus"), onEditTagBlur: /* @__PURE__ */ r(function(t, e) {
900
- var i = q.call(this, e.relatedTarget);
900
+ var i = z.call(this, e.relatedTarget);
901
901
  if (this.settings.mode == "select" && i && e.relatedTarget.contains(e.target)) this.dropdown.hide();
902
902
  else if (this.state.editing && (this.state.hasFocus || this.toggleFocusClass(), this.DOM.scope.contains(document.activeElement) || this.trigger("blur", {}), this.DOM.scope.contains(t))) {
903
903
  var s, a, n, o, l = this.settings, d = t.closest("." + l.classNames.tag), u = w(d), h = this.input.normalize.call(this, t), g = (K(a = {}, l.tagTextProp, h), K(a, "__tagId", u.__tagId), a), c = u.__originalData, f = this.editTagChangeDetected(D(u, g)), p = this.validateTag(g);
@@ -940,7 +940,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
940
940
  var n, o, l = document.createTextNode("");
941
941
  a.childNodes[0].nodeType == 3 && a.previousSibling.nodeName != "BR" && (l = document.createTextNode(`
942
942
  `)), (o = a).replaceWith.apply(o, pt([l].concat(pt(pt(a.childNodes).slice(0, -1))))), j(l);
943
- } else if (q.call(e, a))
943
+ } else if (z.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(`
946
946
  ​`);
@@ -948,7 +948,7 @@ var Qt = { customBinding: /* @__PURE__ */ r(function() {
948
948
  u.trim() && j(a.previousSibling);
949
949
  } else a.previousSibling && !w(a.previousSibling) || a.before("​");
950
950
  }), s.removedNodes.forEach(function(a) {
951
- a && a.nodeName == "BR" && q.call(e, i) && (e.removeTags(i), e.fixFirefoxLastTagNoCaret());
951
+ a && a.nodeName == "BR" && z.call(e, i) && (e.removeTags(i), e.fixFirefoxLastTagNoCaret());
952
952
  });
953
953
  }), i && i.nodeValue == "" && i.remove(), i && i.nodeName == "BR" || this.DOM.input.appendChild(document.createElement("br"));
954
954
  }, "onInputDOMChange") } };
@@ -958,10 +958,10 @@ function ft(t, e) {
958
958
  return s;
959
959
  }
960
960
  r(ft, "z");
961
- function z(t, e, i) {
961
+ function U(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
  }
964
- r(z, "X");
964
+ r(U, "X");
965
965
  function $(t, e) {
966
966
  return e != null && typeof Symbol < "u" && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](t) : t instanceof e;
967
967
  }
@@ -972,7 +972,7 @@ function mt(t) {
972
972
  typeof Object.getOwnPropertySymbols == "function" && (s = s.concat(Object.getOwnPropertySymbols(i).filter(function(a) {
973
973
  return Object.getOwnPropertyDescriptor(i, a).enumerable;
974
974
  }))), s.forEach(function(a) {
975
- z(t, a, i[a]);
975
+ U(t, a, i[a]);
976
976
  });
977
977
  }
978
978
  return t;
@@ -991,7 +991,7 @@ function Yt(t, e) {
991
991
  }), t;
992
992
  }
993
993
  r(Yt, "$");
994
- function rt(t) {
994
+ function ot(t) {
995
995
  return (function(e) {
996
996
  if (Array.isArray(e)) return ft(e);
997
997
  })(t) || (function(e) {
@@ -1006,8 +1006,8 @@ function rt(t) {
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(rt, "Q");
1010
- function ot(t, e) {
1009
+ r(ot, "Q");
1010
+ function lt(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,24 +1061,24 @@ function ot(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(Q + n + "/v")) === 1) try {
1065
- u = JSON.parse(localStorage[Q + n + "/" + l]);
1064
+ if (((d = localStorage) === null || d === void 0 ? void 0 : d.getItem(et + n + "/v")) === 1) try {
1065
+ u = JSON.parse(localStorage[et + 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(Q + i + "/v", 1), function(l, d) {
1070
+ }), this.setPersistedData = (i = e.id) ? ((s = localStorage) === null || s === void 0 || s.setItem(et + 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(Q + i + "/" + d, h), dispatchEvent(new Event("storage")));
1072
+ l && d && ((u = localStorage) === null || u === void 0 || u.setItem(et + i + "/" + d, h), dispatchEvent(new Event("storage")));
1073
1073
  }) : function() {
1074
1074
  }, this.clearPersistedData = (a = e.id, function(l) {
1075
- var d = Q + "/" + a + "/";
1075
+ var d = et + "/" + a + "/";
1076
1076
  if (l) localStorage.removeItem(d + l);
1077
1077
  else for (var u in localStorage) u.includes(d) && localStorage.removeItem(u);
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;
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), zt.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(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) {
1080
+ r(lt, "Y");
1081
+ lt.prototype = { _dropdown: qt, placeCaretAfterNode: j, getSetTagData: w, helpers: { sameStr: it, removeCollectionProp: Tt, omit: vt, isObject: V, parseHTML: ut, escapeHTML: H, extend: D, concatWithoutDups: xt, getUID: Dt, isNodeTag: z }, 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
1083
  }, "trim"), parseHTML: ut, templates: Jt, parseTemplate: /* @__PURE__ */ r(function(t, e) {
1084
1084
  return ut((t = this.settings.templates[t] || t).apply(this, e));
@@ -1117,7 +1117,7 @@ ot.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1117
1117
  }
1118
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) ? St(n.whitelist, o) : o);
1120
+ Array.isArray(o) && (this.whitelist = Array.isArray(n.whitelist) ? xt(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 @@ ot.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
- rt(s.classList).some(function(a) {
1244
+ ot(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();
@@ -1295,7 +1295,7 @@ ot.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 = "." + rt(this.settings.classNames.tag.split(" ")).concat(rt(e)).join(".");
1298
+ var s = "." + ot(this.settings.classNames.tag.split(" ")).concat(ot(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 @@ ot.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
- Y(this.trim("" + t), u.value, e) && i != u.__tagId && s++;
1308
+ it(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 @@ ot.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 && Y(e.trim(a.__tagifyTagData.value), t, s) && i.push(n);
1323
+ a.__tagifyTagData && it(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 @@ ot.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 (Y(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 (it(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] + "");
@@ -1362,7 +1362,7 @@ ot.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1362
1362
  var e = this, i = this.settings, s = i.whitelist, a = i.delimiters, n = i.mode, o = i.tagTextProp, l = [], d = !!s && $(s[0], Object), u = Array.isArray(t), h = u && t[0].value, g = /* @__PURE__ */ r(function(c) {
1363
1363
  return (c + "").split(a).reduce(function(f, p) {
1364
1364
  var m, v = e.trim(p);
1365
- return v && f.push((z(m = {}, o, v), z(m, "value", v), m)), f;
1365
+ return v && f.push((U(m = {}, o, v), U(m, "value", v), m)), f;
1366
1366
  }, []);
1367
1367
  }, "tc");
1368
1368
  if (typeof t == "number" && (t = t.toString()), typeof t == "string") {
@@ -1372,7 +1372,7 @@ ot.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, rt(g(f)));
1375
+ } else f != null && f !== "" && f !== void 0 && (p = c).push.apply(p, ot(g(f)));
1376
1376
  return c;
1377
1377
  }, []));
1378
1378
  return d && !h && (t.forEach(function(c) {
@@ -1388,7 +1388,7 @@ ot.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, S, T = p.split(a[1]), b = T[0], x = c.length == d;
1391
+ var v, y, x, T = p.split(a[1]), b = T[0], S = 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 @@ ot.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), x || !(T.length > 1) || l && !i.isTagWhitelisted(y.value) || !n && i.isTagDuplicate(y.value)) {
1399
+ if (o.call(i, y), S || !(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]), 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);
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);
1404
1404
  }
1405
1405
  return T.join("");
1406
1406
  }).join(""), h) return g.__tagifyTagsData = c, g;
@@ -1424,32 +1424,32 @@ ot.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, S = 0, T = !0, b = !1, x = void 0;
1427
+ var y = null, x = 0, T = !0, b = !1, S = void 0;
1428
1428
  try {
1429
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, S = O;
1434
+ y = P, x = O;
1435
1435
  break;
1436
1436
  }
1437
1437
  }
1438
1438
  }
1439
1439
  } catch (C) {
1440
- b = !0, x = C;
1440
+ b = !0, S = C;
1441
1441
  } finally {
1442
1442
  try {
1443
1443
  T || k.return == null || k.return();
1444
1444
  } finally {
1445
- if (b) throw x;
1445
+ if (b) throw S;
1446
1446
  }
1447
1447
  }
1448
1448
  if (y) {
1449
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
- var E = "".concat(a[0]).concat(JSON.stringify(N)).concat(a[1]);
1452
- g.push({ start: f, end: p + S, replacement: E }), h.lastIndex = p + S;
1451
+ var M = "".concat(a[0]).concat(JSON.stringify(N)).concat(a[1]);
1452
+ g.push({ start: f, end: p + x, replacement: M }), h.lastIndex = p + x;
1453
1453
  }
1454
1454
  }
1455
1455
  }
@@ -1542,7 +1542,7 @@ ot.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, 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));
1545
+ var i, s, a = D({}, t, mt((U(i = {}, this.settings.tagTextProp, H((t[this.settings.tagTextProp] || t.value) + "")), U(i, "title", H((t.title || "") + "")), U(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;
@@ -1616,7 +1616,7 @@ ot.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1616
1616
  if (l.nodeType == 1) {
1617
1617
  var d = w(l);
1618
1618
  if (l.tagName == "BR" && (t += `\r
1619
- `), d && q.call(e, l)) {
1619
+ `), d && z.call(e, l)) {
1620
1620
  if (d.__removed) return;
1621
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
@@ -1624,13 +1624,13 @@ ot.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1624
1624
  } else t += l.textContent;
1625
1625
  });
1626
1626
  }, "te"))(this.DOM.input), t;
1627
- }, "getMixedTagsAsString") }, ot.prototype.removeTag = ot.prototype.removeTags;
1627
+ }, "getMixedTagsAsString") }, lt.prototype.removeTag = lt.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);
1631
1631
  return s && a && Zt(e, i, a), a;
1632
- }, "__decorateClass"), U;
1633
- let M = (U = class extends Pt {
1632
+ }, "__decorateClass"), J;
1633
+ let A = (J = class extends Pt {
1634
1634
  emits = [
1635
1635
  "input",
1636
1636
  "change",
@@ -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 ot(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 lt(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(() => {
@@ -1901,46 +1901,46 @@ let M = (U = class extends Pt {
1901
1901
  watchLoading(e) {
1902
1902
  this.tagify?.loading?.(e), !e && this.items?.length && this.nextTick(() => this.tagify?.dropdown.show(this.currentSearchValue));
1903
1903
  }
1904
- }, r(U, "SelectField"), U);
1904
+ }, r(J, "SelectField"), J);
1905
1905
  _([
1906
- J(Boolean)
1907
- ], M.prototype, "loading", 2);
1906
+ X(Boolean)
1907
+ ], A.prototype, "loading", 2);
1908
1908
  _([
1909
- J(Boolean)
1910
- ], M.prototype, "autofocus", 2);
1909
+ X(Boolean)
1910
+ ], A.prototype, "autofocus", 2);
1911
1911
  _([
1912
- J(String)
1913
- ], M.prototype, "inputValidatePattern", 2);
1912
+ X(String)
1913
+ ], A.prototype, "inputValidatePattern", 2);
1914
1914
  _([
1915
- J(String)
1916
- ], M.prototype, "mode", 2);
1915
+ X(String)
1916
+ ], A.prototype, "mode", 2);
1917
1917
  _([
1918
- J(Array)
1919
- ], M.prototype, "items", 2);
1918
+ X(Array)
1919
+ ], A.prototype, "items", 2);
1920
1920
  _([
1921
- J(String, Object)
1922
- ], M.prototype, "placeholder", 2);
1921
+ X(String, Object)
1922
+ ], A.prototype, "placeholder", 2);
1923
1923
  _([
1924
- Z("items", !0, !0)
1925
- ], M.prototype, "itemsWatch", 1);
1924
+ st("items", !0, !0)
1925
+ ], A.prototype, "itemsWatch", 1);
1926
1926
  _([
1927
- Z({ deep: !0 })
1928
- ], M.prototype, "watchValue", 1);
1927
+ st({ deep: !0 })
1928
+ ], A.prototype, "watchValue", 1);
1929
1929
  _([
1930
- Z("modelValue", !0)
1931
- ], M.prototype, "modelValueWatch", 1);
1930
+ st("modelValue", !0)
1931
+ ], A.prototype, "modelValueWatch", 1);
1932
1932
  _([
1933
- Z("disabled", !0, !0)
1934
- ], M.prototype, "disabledWatch", 1);
1933
+ st("disabled", !0, !0)
1934
+ ], A.prototype, "disabledWatch", 1);
1935
1935
  _([
1936
- Z
1937
- ], M.prototype, "watchLoading", 1);
1938
- M = _([
1936
+ st
1937
+ ], A.prototype, "watchLoading", 1);
1938
+ A = _([
1939
1939
  Vt
1940
- ], M);
1940
+ ], A);
1941
1941
  const ee = ["id", "value", "autofocus"];
1942
1942
  function ie(t, e, i, s, a, n) {
1943
- return X(), jt("div", {
1943
+ return q(), 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,34 +1955,40 @@ 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" ? (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)
1958
+ t.size == "md" || t.size == "sm" ? (q(), G(Q("style"), { key: 0 }, {
1959
+ default: Y(() => [
1960
+ Z(".vst-select-field.vst-select-" + E(t.randKey) + " .tagify { " + E(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-" + E(t.randKey) + " .tagify__tag { height: 28px !important; } .vst-select-field.vst-select-" + E(t.randKey) + " .tagify__input { height: 20px !important; padding: 0 !important; } .vst-select-field.vst-select-" + E(t.randKey) + " .tagify__tag-text { padding: 0 0 0 0 !important; } .vst-select-dropdown-" + E(t.randKey) + " .tagify__dropdown__item { height: 32px !important; line-height: 29px !important; padding: 1px 7px 3px !important; } .vst-select-field.vst-select-" + E(t.randKey) + " .tagify--select tag > div, .vst-select-field.vst-select-" + E(t.randKey) + " .tagify--select tag, .vst-select-field.vst-select-" + E(t.randKey) + " .tagify__tag, { padding: 0 !important; margin: 0 !important; height: 20px !important; }", 1)
1961
1961
  ]),
1962
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)
1963
+ })) : at("", !0),
1964
+ t.size == "lg" && t.mode == "select" ? (q(), G(Q("style"), { key: 1 }, {
1965
+ default: Y(() => [
1966
+ Z(".vst-select-" + E(t.randKey) + " .tagify tag { height: 37px !important; margin-top: 6px; margin-left: 10px; } .vst-select-" + E(t.randKey) + " .tagify tag x { height: 35px !important; margin-top: 4px; margin-left: 10px; }", 1)
1967
1967
  ]),
1968
1968
  _: 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)
1969
+ })) : at("", !0),
1970
+ t.mode == "multi" ? (q(), G(Q("style"), { key: 2 }, {
1971
+ default: Y(() => [
1972
+ Z(".vst-select-" + E(t.randKey) + " .tagify__tag { background: #e5e5e5; }", 1)
1973
1973
  ]),
1974
1974
  _: 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)
1975
+ })) : at("", !0),
1976
+ t.mode == "select" ? (q(), G(Q("style"), { key: 3 }, {
1977
+ default: Y(() => [
1978
+ Z(".vst-select-" + E(t.randKey) + " .tagify__tag-text { white-space: nowrap; position: absolute; top: 5px; left: 3px; width: 75% !important; }", 1)
1979
+ ]),
1980
+ _: 1
1981
+ })) : at("", !0),
1982
+ (q(), G(Q("style"), null, {
1983
+ default: Y(() => [
1984
+ Z(".vst-select-field.vst-select-" + E(t.randKey) + " .tagify--empty .tagify__input:before { max-width: " + E(t.maxPlaceholderWidth ? t.maxPlaceholderWidth + "px" : "auto") + "; }", 1)
1979
1985
  ]),
1980
1986
  _: 1
1981
1987
  }))
1982
1988
  ], 2);
1983
1989
  }
1984
1990
  r(ie, "render");
1985
- const oe = /* @__PURE__ */ Lt(M, [["render", ie]]);
1991
+ const oe = /* @__PURE__ */ Lt(A, [["render", ie]]);
1986
1992
  export {
1987
1993
  oe as default
1988
1994
  };