vue-spear-tip 0.6.20 → 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-CAJDF40j.cjs → Button-DL8dzhLs.cjs} +1 -1
  3. package/dist/{Button-vs70k3y-.js → Button-mNgrIBt0.js} +1 -1
  4. package/dist/{CodeHighlight-C5LisCU3.cjs → CodeHighlight-CWT9ljxW.cjs} +1 -1
  5. package/dist/{CodeHighlight-C-3pwzbK.js → CodeHighlight-eMrWWqjO.js} +1 -1
  6. package/dist/{DateField-CCjHobsM.cjs → DateField-276tU7dR.cjs} +1 -1
  7. package/dist/{DateField-QZ0RVuEI.js → DateField-DJgLEfuJ.js} +2 -2
  8. package/dist/{Draggable-Beja0hFj.cjs → Draggable-D9K46teR.cjs} +1 -1
  9. package/dist/{Draggable-Drzs2CPN.js → Draggable-xSaOZkIc.js} +1 -1
  10. package/dist/{Droppable-DrURkIH4.js → Droppable-DGc3gGXX.js} +1 -1
  11. package/dist/{Droppable-mZqnMqzB.cjs → Droppable-ozHn_LH7.cjs} +1 -1
  12. package/dist/{FieldComponent.vue_vue_type_script_lang-DF1Q1YIa.js → FieldComponent.vue_vue_type_script_lang-BCu4PrNU.js} +1 -1
  13. package/dist/{FieldComponent.vue_vue_type_script_lang-B-z2yOtA.cjs → FieldComponent.vue_vue_type_script_lang-Bht3oZYb.cjs} +1 -1
  14. package/dist/{FilesArea-DCrFjTXo.js → FilesArea-C9z4gTb0.js} +2 -2
  15. package/dist/{FilesArea-ihfL0_JW.cjs → FilesArea-DZiv8wBT.cjs} +1 -1
  16. package/dist/{Scrollbar-B-5t6tsN.js → Scrollbar-CBCuild6.js} +1 -1
  17. package/dist/{Scrollbar-DKIMAMUs.cjs → Scrollbar-DpX61NhD.cjs} +1 -1
  18. package/dist/{SelectField-DWeh3qeQ.js → SelectField-BN765HUF.js} +108 -102
  19. package/dist/{SelectField-C5jCjz-H.cjs → SelectField-BTQ-c5YW.cjs} +2 -2
  20. package/dist/{StringField-xd5hAzKC.cjs → StringField-D4k0FAo8.cjs} +1 -1
  21. package/dist/{StringField-_2xWOAx7.js → StringField-DXuKHlpt.js} +2 -2
  22. package/dist/{SwitchField-Baz2nBD0.js → SwitchField-BdKQGeSb.js} +2 -2
  23. package/dist/{SwitchField-m0Hp4wHc.cjs → SwitchField-Dj2QpW85.cjs} +1 -1
  24. package/dist/{Tabs-D42K5MjE.js → Tabs-CAbUgriG.js} +1 -1
  25. package/dist/{Tabs-DUragp0z.cjs → Tabs-Dm8Aj2Y8.cjs} +1 -1
  26. package/dist/{TextField--CH2O_wo.js → TextField-BTofkhCU.js} +2 -2
  27. package/dist/{TextField-G7cNmIeJ.cjs → TextField-DJkk40xg.cjs} +1 -1
  28. package/dist/{index-CCc6hATh.js → index-Cd_DL4JD.js} +3 -3
  29. package/dist/{index-BgWRAiiR.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-D7mEEsUM.js → Button-8C6MeUM7.js} +1 -1
  34. package/docs/static/{CodeHighlight-C5z_7qJE.js → CodeHighlight-DFeMy3ki.js} +1 -1
  35. package/docs/static/{DateField-CyrKoUoT.js → DateField-Cf48x5xH.js} +1 -1
  36. package/docs/static/{Draggable-DvYh-Mq2.js → Draggable-CS4w2yK4.js} +1 -1
  37. package/docs/static/{Droppable-CjvR76y4.js → Droppable-wLX0xjMl.js} +1 -1
  38. package/docs/static/{FieldComponent.vue_vue_type_script_lang-BGU29o43.js → FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js} +1 -1
  39. package/docs/static/{FilesArea-BuyraK7u.js → FilesArea-Cl92W6MM.js} +1 -1
  40. package/docs/static/{NoSymbolIcon-BFWxS8vy.js → NoSymbolIcon-NizHqgdb.js} +1 -1
  41. package/docs/static/{Scrollbar-B1RlHJdY.js → Scrollbar-l6hENTT0.js} +1 -1
  42. package/docs/static/{SelectField-Dm5Zy3ZA.js → SelectField-CC7fBKuR.js} +8 -8
  43. package/docs/static/{StringField-CN3dgDY_.js → StringField-2LaMICQ8.js} +1 -1
  44. package/docs/static/{SwitchField-CAWor2EI.js → SwitchField-DaP3PVMB.js} +1 -1
  45. package/docs/static/{Tabs-C1V64QTo.js → Tabs-CBsULMP9.js} +1 -1
  46. package/docs/static/{TextField-Sq7oBihL.js → TextField-DUq1jGAW.js} +1 -1
  47. package/docs/static/index-DpXxVeQv.js +2 -0
  48. package/docs/static/{main-A2tcl52U.js → main-BIpS3Kki.js} +3 -3
  49. package/package.json +1 -1
  50. package/docs/static/index-DlDPp_Nm.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-CCc6hATh.js";
4
- import { F as Pt } from "./FieldComponent.vue_vue_type_script_lang-DF1Q1YIa.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 k, 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
  }
@@ -115,10 +115,10 @@ function St() {
115
115
  return t;
116
116
  }
117
117
  r(St, "g");
118
- function tt(t) {
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");
121
+ r(at, "h");
122
122
  var xt = /* @__PURE__ */ r(function() {
123
123
  return /(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);
124
124
  }, "p");
@@ -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) {
@@ -385,19 +385,19 @@ 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 x, L, A = void 0, P = void 0;
388
+ var x, L, k = void 0, P = void 0;
389
389
  x = p[T];
390
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
391
  return S.includes(N);
392
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));
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
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
402
  if (!(t = h.mode == "select" && this.value.length && this.value[0][h.tagTextProp] == t ? "" : t) || !S.length) {
403
403
  c = v ? p : p.filter(function(x) {
@@ -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 }];
@@ -483,25 +483,25 @@ var et, X, zt = (et = (function(t) {
483
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 = 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 = 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) {
@@ -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" }), 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));
@@ -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: 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(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,7 +1115,7 @@ 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
1120
  Array.isArray(o) && (this.whitelist = Array.isArray(n.whitelist) ? St(n.whitelist, o) : o);
1121
1121
  }, "applySettings"), getAttributes: /* @__PURE__ */ r(function(t) {
@@ -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();
@@ -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) {
@@ -1408,7 +1408,7 @@ 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;
@@ -1426,7 +1426,7 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1426
1426
  if (v) {
1427
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];
@@ -1440,13 +1440,13 @@ st.prototype = { _dropdown: zt, placeCaretAfterNode: j, getSetTagData: w, helper
1440
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
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
1452
  g.push({ start: f, end: p + S, replacement: E }), h.lastIndex = p + S;
@@ -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(() => {
@@ -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" ? (Z(), at(nt("style"), { key: 0 }, {
1959
- default: rt(() => [
1960
- ot(".vst-select-field.vst-select-" + k(t.randKey) + " .tagify { " + k(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-" + k(t.randKey) + " .tagify__tag { height: 28px !important; } .vst-select-field.vst-select-" + k(t.randKey) + " .tagify__input { height: 20px !important; padding: 0 !important; } .vst-select-field.vst-select-" + k(t.randKey) + " .tagify__tag-text { padding: 0 0 0 0 !important; } .vst-select-dropdown-" + k(t.randKey) + " .tagify__dropdown__item { height: 32px !important; line-height: 29px !important; padding: 1px 7px 3px !important; } .vst-select-field.vst-select-" + k(t.randKey) + " .tagify--select tag > div, .vst-select-field.vst-select-" + k(t.randKey) + " .tagify--select tag, .vst-select-field.vst-select-" + k(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-" + k(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-" + k(t.randKey) + " .tagify--empty .tagify__input:before { max-width: " + k(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
  }))