cleek 1.5.10 → 1.5.11

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.
package/dist/cleek.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, normalizeClass, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, normalizeStyle, withDirectives, vModelText, createVNode, withCtx, createTextVNode, Fragment, renderList, vModelRadio, toDisplayString, vModelCheckbox } from "vue";
1
+ import require$$0, { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, normalizeClass, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, normalizeStyle, withDirectives, vModelText, createVNode, withCtx, createTextVNode, Fragment, renderList, vModelRadio, toDisplayString, vModelCheckbox } from "vue";
2
2
  var validators = {
3
3
  size: (type) => {
4
4
  return ["", "xs", "s", "m", "l", "xl"].includes(type);
@@ -12351,268 +12351,264 @@ const _sfc_main$a = {
12351
12351
  var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$b], ["__scopeId", "data-v-73a891e8"]]);
12352
12352
  var vueSelect$1 = { exports: {} };
12353
12353
  (function(module, exports) {
12354
- !function(t, e) {
12355
- module.exports = e();
12356
- }(typeof self != "undefined" ? self : commonjsGlobal, function() {
12357
- return function(t) {
12358
- var e = {};
12359
- function n(o) {
12360
- if (e[o])
12361
- return e[o].exports;
12362
- var i = e[o] = { i: o, l: false, exports: {} };
12363
- return t[o].call(i.exports, i, i.exports, n), i.l = true, i.exports;
12354
+ !function(e, t) {
12355
+ module.exports = t(require$$0);
12356
+ }(typeof self != "undefined" ? self : commonjsGlobal, function(e) {
12357
+ return function(e2) {
12358
+ var t = {};
12359
+ function o(n) {
12360
+ if (t[n])
12361
+ return t[n].exports;
12362
+ var i = t[n] = { i: n, l: false, exports: {} };
12363
+ return e2[n].call(i.exports, i, i.exports, o), i.l = true, i.exports;
12364
12364
  }
12365
- return n.m = t, n.c = e, n.d = function(t2, e2, o) {
12366
- n.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: o });
12367
- }, n.r = function(t2) {
12368
- typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
12369
- }, n.t = function(t2, e2) {
12370
- if (1 & e2 && (t2 = n(t2)), 8 & e2)
12371
- return t2;
12372
- if (4 & e2 && typeof t2 == "object" && t2 && t2.__esModule)
12373
- return t2;
12374
- var o = Object.create(null);
12375
- if (n.r(o), Object.defineProperty(o, "default", { enumerable: true, value: t2 }), 2 & e2 && typeof t2 != "string")
12376
- for (var i in t2)
12377
- n.d(o, i, function(e3) {
12378
- return t2[e3];
12365
+ return o.m = e2, o.c = t, o.d = function(e3, t2, n) {
12366
+ o.o(e3, t2) || Object.defineProperty(e3, t2, { enumerable: true, get: n });
12367
+ }, o.r = function(e3) {
12368
+ typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e3, "__esModule", { value: true });
12369
+ }, o.t = function(e3, t2) {
12370
+ if (1 & t2 && (e3 = o(e3)), 8 & t2)
12371
+ return e3;
12372
+ if (4 & t2 && typeof e3 == "object" && e3 && e3.__esModule)
12373
+ return e3;
12374
+ var n = Object.create(null);
12375
+ if (o.r(n), Object.defineProperty(n, "default", { enumerable: true, value: e3 }), 2 & t2 && typeof e3 != "string")
12376
+ for (var i in e3)
12377
+ o.d(n, i, function(t3) {
12378
+ return e3[t3];
12379
12379
  }.bind(null, i));
12380
- return o;
12381
- }, n.n = function(t2) {
12382
- var e2 = t2 && t2.__esModule ? function() {
12383
- return t2.default;
12380
+ return n;
12381
+ }, o.n = function(e3) {
12382
+ var t2 = e3 && e3.__esModule ? function() {
12383
+ return e3.default;
12384
12384
  } : function() {
12385
- return t2;
12385
+ return e3;
12386
12386
  };
12387
- return n.d(e2, "a", e2), e2;
12388
- }, n.o = function(t2, e2) {
12389
- return Object.prototype.hasOwnProperty.call(t2, e2);
12390
- }, n.p = "/", n(n.s = 8);
12391
- }([function(t, e, n) {
12392
- var o = n(4), i = n(5), r = n(6);
12393
- t.exports = function(t2) {
12394
- return o(t2) || i(t2) || r();
12387
+ return o.d(t2, "a", t2), t2;
12388
+ }, o.o = function(e3, t2) {
12389
+ return Object.prototype.hasOwnProperty.call(e3, t2);
12390
+ }, o.p = "/", o(o.s = 10);
12391
+ }([function(t, o) {
12392
+ t.exports = e;
12393
+ }, function(e2, t, o) {
12394
+ Object.defineProperty(t, "__esModule", { value: true }), t.default = (e3, t2) => {
12395
+ for (const [o2, n] of t2)
12396
+ e3[o2] = n;
12397
+ return e3;
12398
+ };
12399
+ }, function(e2, t, o) {
12400
+ var n = o(6), i = o(7), r = o(8);
12401
+ e2.exports = function(e3) {
12402
+ return n(e3) || i(e3) || r();
12395
12403
  };
12396
- }, function(t, e) {
12397
- function n(e2) {
12398
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t.exports = n = function(t2) {
12399
- return typeof t2;
12400
- } : t.exports = n = function(t2) {
12401
- return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2;
12402
- }, n(e2);
12404
+ }, function(e2, t) {
12405
+ function o(t2) {
12406
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? e2.exports = o = function(e3) {
12407
+ return typeof e3;
12408
+ } : e2.exports = o = function(e3) {
12409
+ return e3 && typeof Symbol == "function" && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
12410
+ }, o(t2);
12403
12411
  }
12404
- t.exports = n;
12405
- }, function(t, e, n) {
12406
- }, function(t, e) {
12407
- t.exports = function(t2, e2, n) {
12408
- return e2 in t2 ? Object.defineProperty(t2, e2, { value: n, enumerable: true, configurable: true, writable: true }) : t2[e2] = n, t2;
12412
+ e2.exports = o;
12413
+ }, function(e2, t) {
12414
+ e2.exports = function(e3, t2, o) {
12415
+ return t2 in e3 ? Object.defineProperty(e3, t2, { value: o, enumerable: true, configurable: true, writable: true }) : e3[t2] = o, e3;
12409
12416
  };
12410
- }, function(t, e) {
12411
- t.exports = function(t2) {
12412
- if (Array.isArray(t2)) {
12413
- for (var e2 = 0, n = new Array(t2.length); e2 < t2.length; e2++)
12414
- n[e2] = t2[e2];
12415
- return n;
12417
+ }, function(e2, t, o) {
12418
+ }, function(e2, t) {
12419
+ e2.exports = function(e3) {
12420
+ if (Array.isArray(e3)) {
12421
+ for (var t2 = 0, o = new Array(e3.length); t2 < e3.length; t2++)
12422
+ o[t2] = e3[t2];
12423
+ return o;
12416
12424
  }
12417
12425
  };
12418
- }, function(t, e) {
12419
- t.exports = function(t2) {
12420
- if (Symbol.iterator in Object(t2) || Object.prototype.toString.call(t2) === "[object Arguments]")
12421
- return Array.from(t2);
12426
+ }, function(e2, t) {
12427
+ e2.exports = function(e3) {
12428
+ if (Symbol.iterator in Object(e3) || Object.prototype.toString.call(e3) === "[object Arguments]")
12429
+ return Array.from(e3);
12422
12430
  };
12423
- }, function(t, e) {
12424
- t.exports = function() {
12431
+ }, function(e2, t) {
12432
+ e2.exports = function() {
12425
12433
  throw new TypeError("Invalid attempt to spread non-iterable instance");
12426
12434
  };
12427
- }, function(t, e, n) {
12428
- var o = n(2);
12429
- n.n(o).a;
12430
- }, function(t, e, n) {
12431
- n.r(e);
12432
- var o = n(0), i = n.n(o), r = n(1), s = n.n(r), a = n(3), l = n.n(a), c = { props: { autoscroll: { type: Boolean, default: true } }, watch: { typeAheadPointer: function() {
12435
+ }, function(e2, t, o) {
12436
+ o(5);
12437
+ }, function(e2, t, o) {
12438
+ o.r(t);
12439
+ var n = o(0);
12440
+ const i = ["dir"], r = ["id", "aria-expanded", "aria-owns"], s = { ref: "selectedOptions", class: "vs__selected-options" }, l = ["disabled", "title", "aria-label", "onClick"], c = { ref: "actions", class: "vs__actions" }, a = ["disabled"], u = { class: "vs__spinner" }, p = ["id"], d2 = ["id", "aria-selected", "onMouseover", "onClick"], h2 = { key: 0, class: "vs__no-options" }, f = Object(n.createTextVNode)("Sorry, no matching options."), b = ["id"];
12441
+ var O = o(2), m = o.n(O), y = o(3), g = o.n(y), v = o(4), j = o.n(v), w2 = { props: { autoscroll: { type: Boolean, default: true } }, watch: { typeAheadPointer: function() {
12433
12442
  this.autoscroll && this.maybeAdjustScroll();
12434
- }, open: function(t2) {
12435
- var e2 = this;
12436
- this.autoscroll && t2 && this.$nextTick(function() {
12437
- return e2.maybeAdjustScroll();
12443
+ }, open: function(e3) {
12444
+ var t2 = this;
12445
+ this.autoscroll && e3 && this.$nextTick(function() {
12446
+ return t2.maybeAdjustScroll();
12438
12447
  });
12439
12448
  } }, methods: { maybeAdjustScroll: function() {
12440
- var t2, e2 = ((t2 = this.$refs.dropdownMenu) === null || t2 === void 0 ? void 0 : t2.children[this.typeAheadPointer]) || false;
12441
- if (e2) {
12442
- var n2 = this.getDropdownViewport(), o2 = e2.getBoundingClientRect(), i2 = o2.top, r2 = o2.bottom, s2 = o2.height;
12443
- if (i2 < n2.top)
12444
- return this.$refs.dropdownMenu.scrollTop = e2.offsetTop;
12445
- if (r2 > n2.bottom)
12446
- return this.$refs.dropdownMenu.scrollTop = e2.offsetTop - (n2.height - s2);
12449
+ var e3, t2 = ((e3 = this.$refs.dropdownMenu) === null || e3 === void 0 ? void 0 : e3.children[this.typeAheadPointer]) || false;
12450
+ if (t2) {
12451
+ var o2 = this.getDropdownViewport(), n2 = t2.getBoundingClientRect(), i2 = n2.top, r2 = n2.bottom, s2 = n2.height;
12452
+ if (i2 < o2.top)
12453
+ return this.$refs.dropdownMenu.scrollTop = t2.offsetTop;
12454
+ if (r2 > o2.bottom)
12455
+ return this.$refs.dropdownMenu.scrollTop = t2.offsetTop - (o2.height - s2);
12447
12456
  }
12448
12457
  }, getDropdownViewport: function() {
12449
12458
  return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : { height: 0, top: 0, bottom: 0 };
12450
- } } }, u = { data: function() {
12459
+ } } }, S = { data: function() {
12451
12460
  return { typeAheadPointer: -1 };
12452
12461
  }, watch: { filteredOptions: function() {
12453
- for (var t2 = 0; t2 < this.filteredOptions.length; t2++)
12454
- if (this.selectable(this.filteredOptions[t2])) {
12455
- this.typeAheadPointer = t2;
12462
+ for (var e3 = 0; e3 < this.filteredOptions.length; e3++)
12463
+ if (this.selectable(this.filteredOptions[e3])) {
12464
+ this.typeAheadPointer = e3;
12456
12465
  break;
12457
12466
  }
12458
12467
  } }, methods: { typeAheadUp: function() {
12459
- for (var t2 = this.typeAheadPointer - 1; t2 >= 0; t2--)
12460
- if (this.selectable(this.filteredOptions[t2])) {
12461
- this.typeAheadPointer = t2;
12468
+ for (var e3 = this.typeAheadPointer - 1; e3 >= 0; e3--)
12469
+ if (this.selectable(this.filteredOptions[e3])) {
12470
+ this.typeAheadPointer = e3;
12462
12471
  break;
12463
12472
  }
12464
12473
  }, typeAheadDown: function() {
12465
- for (var t2 = this.typeAheadPointer + 1; t2 < this.filteredOptions.length; t2++)
12466
- if (this.selectable(this.filteredOptions[t2])) {
12467
- this.typeAheadPointer = t2;
12474
+ for (var e3 = this.typeAheadPointer + 1; e3 < this.filteredOptions.length; e3++)
12475
+ if (this.selectable(this.filteredOptions[e3])) {
12476
+ this.typeAheadPointer = e3;
12468
12477
  break;
12469
12478
  }
12470
12479
  }, typeAheadSelect: function() {
12471
- var t2 = this.filteredOptions[this.typeAheadPointer];
12472
- t2 && this.select(t2);
12473
- } } }, p = { props: { loading: { type: Boolean, default: false } }, data: function() {
12480
+ var e3 = this.filteredOptions[this.typeAheadPointer];
12481
+ e3 && this.select(e3);
12482
+ } } }, _ = { props: { loading: { type: Boolean, default: false } }, data: function() {
12474
12483
  return { mutableLoading: false };
12475
12484
  }, watch: { search: function() {
12476
12485
  this.$emit("search", this.search, this.toggleLoading);
12477
- }, loading: function(t2) {
12478
- this.mutableLoading = t2;
12486
+ }, loading: function(e3) {
12487
+ this.mutableLoading = e3;
12479
12488
  } }, methods: { toggleLoading: function() {
12480
- var t2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
12481
- return this.mutableLoading = t2 == null ? !this.mutableLoading : t2;
12489
+ var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
12490
+ return this.mutableLoading = e3 == null ? !this.mutableLoading : e3;
12482
12491
  } } };
12483
- function d2(t2, e2, n2, o2, i2, r2, s2, a2) {
12484
- var l2, c2 = typeof t2 == "function" ? t2.options : t2;
12485
- if (e2 && (c2.render = e2, c2.staticRenderFns = n2, c2._compiled = true), o2 && (c2.functional = true), r2 && (c2._scopeId = "data-v-" + r2), s2 ? (l2 = function(t3) {
12486
- (t3 = t3 || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ == "undefined" || (t3 = __VUE_SSR_CONTEXT__), i2 && i2.call(this, t3), t3 && t3._registeredComponents && t3._registeredComponents.add(s2);
12487
- }, c2._ssrRegister = l2) : i2 && (l2 = a2 ? function() {
12488
- i2.call(this, this.$root.$options.shadowRoot);
12489
- } : i2), l2)
12490
- if (c2.functional) {
12491
- c2._injectStyles = l2;
12492
- var u2 = c2.render;
12493
- c2.render = function(t3, e3) {
12494
- return l2.call(e3), u2(t3, e3);
12495
- };
12496
- } else {
12497
- var p2 = c2.beforeCreate;
12498
- c2.beforeCreate = p2 ? [].concat(p2, l2) : [l2];
12499
- }
12500
- return { exports: t2, options: c2 };
12501
- }
12502
- var h2 = { Deselect: d2({}, function() {
12503
- var t2 = this.$createElement, e2 = this._self._c || t2;
12504
- return e2("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10" } }, [e2("path", { attrs: { d: "M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z" } })]);
12505
- }, [], false, null, null, null).exports, OpenIndicator: d2({}, function() {
12506
- var t2 = this.$createElement, e2 = this._self._c || t2;
12507
- return e2("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "10" } }, [e2("path", { attrs: { d: "M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" } })]);
12508
- }, [], false, null, null, null).exports }, f = { inserted: function(t2, e2, n2) {
12509
- var o2 = n2.context;
12492
+ const P = { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10" }, B = [Object(n.createElementVNode)("path", { d: "M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z" }, null, -1)];
12493
+ var V = o(1), k = o.n(V);
12494
+ const x = {};
12495
+ var C = k()(x, [["render", function(e3, t2) {
12496
+ return Object(n.openBlock)(), Object(n.createElementBlock)("svg", P, B);
12497
+ }]]);
12498
+ const $ = { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "10" }, D = [Object(n.createElementVNode)("path", { d: "M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" }, null, -1)];
12499
+ const E = {};
12500
+ var A = { Deselect: C, OpenIndicator: k()(E, [["render", function(e3, t2) {
12501
+ return Object(n.openBlock)(), Object(n.createElementBlock)("svg", $, D);
12502
+ }]]) }, L = { mounted: function(e3, t2) {
12503
+ var o2 = t2.instance;
12510
12504
  if (o2.appendToBody) {
12511
- var i2 = o2.$refs.toggle.getBoundingClientRect(), r2 = i2.height, s2 = i2.top, a2 = i2.left, l2 = i2.width, c2 = window.scrollX || window.pageXOffset, u2 = window.scrollY || window.pageYOffset;
12512
- t2.unbindPosition = o2.calculatePosition(t2, o2, { width: l2 + "px", left: c2 + a2 + "px", top: u2 + s2 + r2 + "px" }), document.body.appendChild(t2);
12505
+ var n2 = o2.$refs.toggle.getBoundingClientRect(), i2 = n2.height, r2 = n2.top, s2 = n2.left, l2 = n2.width, c2 = window.scrollX || window.pageXOffset, a2 = window.scrollY || window.pageYOffset;
12506
+ e3.unbindPosition = o2.calculatePosition(e3, o2, { width: l2 + "px", left: c2 + s2 + "px", top: a2 + r2 + i2 + "px" }), document.body.appendChild(e3);
12513
12507
  }
12514
- }, unbind: function(t2, e2, n2) {
12515
- n2.context.appendToBody && (t2.unbindPosition && typeof t2.unbindPosition == "function" && t2.unbindPosition(), t2.parentNode && t2.parentNode.removeChild(t2));
12508
+ }, unmounted: function(e3, t2) {
12509
+ t2.instance.appendToBody && (e3.unbindPosition && typeof e3.unbindPosition == "function" && e3.unbindPosition(), e3.parentNode && e3.parentNode.removeChild(e3));
12516
12510
  } };
12517
- var y = function(t2) {
12518
- var e2 = {};
12519
- return Object.keys(t2).sort().forEach(function(n2) {
12520
- e2[n2] = t2[n2];
12521
- }), JSON.stringify(e2);
12522
- }, b = 0;
12523
- var g = function() {
12524
- return ++b;
12511
+ var T = function(e3) {
12512
+ var t2 = {};
12513
+ return Object.keys(e3).sort().forEach(function(o2) {
12514
+ t2[o2] = e3[o2];
12515
+ }), JSON.stringify(t2);
12516
+ }, F = 0;
12517
+ var M = function() {
12518
+ return ++F;
12525
12519
  };
12526
- function v(t2, e2) {
12527
- var n2 = Object.keys(t2);
12520
+ function N(e3, t2) {
12521
+ var o2 = Object.keys(e3);
12528
12522
  if (Object.getOwnPropertySymbols) {
12529
- var o2 = Object.getOwnPropertySymbols(t2);
12530
- e2 && (o2 = o2.filter(function(e3) {
12531
- return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
12532
- })), n2.push.apply(n2, o2);
12523
+ var n2 = Object.getOwnPropertySymbols(e3);
12524
+ t2 && (n2 = n2.filter(function(t3) {
12525
+ return Object.getOwnPropertyDescriptor(e3, t3).enumerable;
12526
+ })), o2.push.apply(o2, n2);
12533
12527
  }
12534
- return n2;
12528
+ return o2;
12535
12529
  }
12536
- function m(t2) {
12537
- for (var e2 = 1; e2 < arguments.length; e2++) {
12538
- var n2 = arguments[e2] != null ? arguments[e2] : {};
12539
- e2 % 2 ? v(Object(n2), true).forEach(function(e3) {
12540
- l()(t2, e3, n2[e3]);
12541
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(n2)) : v(Object(n2)).forEach(function(e3) {
12542
- Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(n2, e3));
12530
+ function z(e3) {
12531
+ for (var t2 = 1; t2 < arguments.length; t2++) {
12532
+ var o2 = arguments[t2] != null ? arguments[t2] : {};
12533
+ t2 % 2 ? N(Object(o2), true).forEach(function(t3) {
12534
+ j()(e3, t3, o2[t3]);
12535
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(o2)) : N(Object(o2)).forEach(function(t3) {
12536
+ Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(o2, t3));
12543
12537
  });
12544
12538
  }
12545
- return t2;
12539
+ return e3;
12546
12540
  }
12547
- var _ = { components: m({}, h2), directives: { appendToBody: f }, mixins: [c, u, p], props: { value: {}, components: { type: Object, default: function() {
12541
+ var R = { components: z({}, A), directives: { appendToBody: L }, mixins: [w2, S, _], emits: ["open", "close", "update:modelValue", "search", "search:compositionstart", "search:compositionend", "search:keydown", "search:blur", "search:focus", "search:input", "option:created", "option:selecting", "option:selected", "option:deselecting", "option:deselected"], props: { modelValue: {}, components: { type: Object, default: function() {
12548
12542
  return {};
12549
12543
  } }, options: { type: Array, default: function() {
12550
12544
  return [];
12551
- } }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: true }, deselectFromDropdown: { type: Boolean, default: false }, searchable: { type: Boolean, default: true }, multiple: { type: Boolean, default: false }, placeholder: { type: String, default: "" }, transition: { type: String, default: "vs__fade" }, clearSearchOnSelect: { type: Boolean, default: true }, closeOnSelect: { type: Boolean, default: true }, label: { type: String, default: "label" }, autocomplete: { type: String, default: "off" }, reduce: { type: Function, default: function(t2) {
12552
- return t2;
12553
- } }, selectable: { type: Function, default: function(t2) {
12545
+ } }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: true }, deselectFromDropdown: { type: Boolean, default: false }, searchable: { type: Boolean, default: true }, multiple: { type: Boolean, default: false }, placeholder: { type: String, default: "" }, transition: { type: String, default: "vs__fade" }, clearSearchOnSelect: { type: Boolean, default: true }, closeOnSelect: { type: Boolean, default: true }, label: { type: String, default: "label" }, autocomplete: { type: String, default: "off" }, reduce: { type: Function, default: function(e3) {
12546
+ return e3;
12547
+ } }, selectable: { type: Function, default: function(e3) {
12554
12548
  return true;
12555
- } }, getOptionLabel: { type: Function, default: function(t2) {
12556
- return s()(t2) === "object" ? t2.hasOwnProperty(this.label) ? t2[this.label] : console.warn('[vue-select warn]: Label key "option.'.concat(this.label, '" does not') + " exist in options object ".concat(JSON.stringify(t2), ".\n") + "https://vue-select.org/api/props.html#getoptionlabel") : t2;
12557
- } }, getOptionKey: { type: Function, default: function(t2) {
12558
- if (s()(t2) !== "object")
12559
- return t2;
12549
+ } }, getOptionLabel: { type: Function, default: function(e3) {
12550
+ return g()(e3) === "object" ? e3.hasOwnProperty(this.label) ? e3[this.label] : console.warn('[vue-select warn]: Label key "option.'.concat(this.label, '" does not') + " exist in options object ".concat(JSON.stringify(e3), ".\n") + "https://vue-select.org/api/props.html#getoptionlabel") : e3;
12551
+ } }, getOptionKey: { type: Function, default: function(e3) {
12552
+ if (g()(e3) !== "object")
12553
+ return e3;
12560
12554
  try {
12561
- return t2.hasOwnProperty("id") ? t2.id : y(t2);
12562
- } catch (e2) {
12563
- return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey", t2, e2);
12555
+ return e3.hasOwnProperty("id") ? e3.id : T(e3);
12556
+ } catch (t2) {
12557
+ return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey", e3, t2);
12564
12558
  }
12565
12559
  } }, onTab: { type: Function, default: function() {
12566
12560
  this.selectOnTab && !this.isComposing && this.typeAheadSelect();
12567
- } }, taggable: { type: Boolean, default: false }, tabindex: { type: Number, default: null }, pushTags: { type: Boolean, default: false }, filterable: { type: Boolean, default: true }, filterBy: { type: Function, default: function(t2, e2, n2) {
12568
- return (e2 || "").toLocaleLowerCase().indexOf(n2.toLocaleLowerCase()) > -1;
12569
- } }, filter: { type: Function, default: function(t2, e2) {
12570
- var n2 = this;
12571
- return t2.filter(function(t3) {
12572
- var o2 = n2.getOptionLabel(t3);
12573
- return typeof o2 == "number" && (o2 = o2.toString()), n2.filterBy(t3, o2, e2);
12561
+ } }, taggable: { type: Boolean, default: false }, tabindex: { type: Number, default: null }, pushTags: { type: Boolean, default: false }, filterable: { type: Boolean, default: true }, filterBy: { type: Function, default: function(e3, t2, o2) {
12562
+ return (t2 || "").toLocaleLowerCase().indexOf(o2.toLocaleLowerCase()) > -1;
12563
+ } }, filter: { type: Function, default: function(e3, t2) {
12564
+ var o2 = this;
12565
+ return e3.filter(function(e4) {
12566
+ var n2 = o2.getOptionLabel(e4);
12567
+ return typeof n2 == "number" && (n2 = n2.toString()), o2.filterBy(e4, n2, t2);
12574
12568
  });
12575
- } }, createOption: { type: Function, default: function(t2) {
12576
- return s()(this.optionList[0]) === "object" ? l()({}, this.label, t2) : t2;
12577
- } }, resetOnOptionsChange: { default: false, validator: function(t2) {
12578
- return ["function", "boolean"].includes(s()(t2));
12579
- } }, clearSearchOnBlur: { type: Function, default: function(t2) {
12580
- var e2 = t2.clearSearchOnSelect, n2 = t2.multiple;
12581
- return e2 && !n2;
12569
+ } }, createOption: { type: Function, default: function(e3) {
12570
+ return g()(this.optionList[0]) === "object" ? j()({}, this.label, e3) : e3;
12571
+ } }, resetOnOptionsChange: { default: false, validator: function(e3) {
12572
+ return ["function", "boolean"].includes(g()(e3));
12573
+ } }, clearSearchOnBlur: { type: Function, default: function(e3) {
12574
+ var t2 = e3.clearSearchOnSelect, o2 = e3.multiple;
12575
+ return t2 && !o2;
12582
12576
  } }, noDrop: { type: Boolean, default: false }, inputId: { type: String }, dir: { type: String, default: "auto" }, selectOnTab: { type: Boolean, default: false }, selectOnKeyCodes: { type: Array, default: function() {
12583
12577
  return [13];
12584
- } }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(t2, e2) {
12585
- return t2;
12586
- } }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(t2, e2, n2) {
12587
- var o2 = n2.width, i2 = n2.top, r2 = n2.left;
12588
- t2.style.top = i2, t2.style.left = r2, t2.style.width = o2;
12589
- } }, dropdownShouldOpen: { type: Function, default: function(t2) {
12590
- var e2 = t2.noDrop, n2 = t2.open, o2 = t2.mutableLoading;
12591
- return !e2 && (n2 && !o2);
12578
+ } }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(e3, t2) {
12579
+ return e3;
12580
+ } }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(e3, t2, o2) {
12581
+ var n2 = o2.width, i2 = o2.top, r2 = o2.left;
12582
+ e3.style.top = i2, e3.style.left = r2, e3.style.width = n2;
12583
+ } }, dropdownShouldOpen: { type: Function, default: function(e3) {
12584
+ var t2 = e3.noDrop, o2 = e3.open, n2 = e3.mutableLoading;
12585
+ return !t2 && (o2 && !n2);
12592
12586
  } }, uid: { type: [String, Number], default: function() {
12593
- return g();
12587
+ return M();
12594
12588
  } } }, data: function() {
12595
12589
  return { search: "", open: false, isComposing: false, pushedTags: [], _value: [] };
12596
- }, computed: { isTrackingValues: function() {
12597
- return this.value === void 0 || this.$options.propsData.hasOwnProperty("reduce");
12590
+ }, computed: { isReducingValues: function() {
12591
+ return this.$props.reduce !== this.$options.props.reduce.default;
12592
+ }, isTrackingValues: function() {
12593
+ return this.modelValue === void 0 || this.isReducingValues;
12598
12594
  }, selectedValue: function() {
12599
- var t2 = this.value;
12600
- return this.isTrackingValues && (t2 = this.$data._value), t2 ? [].concat(t2) : [];
12595
+ var e3 = this.modelValue;
12596
+ return this.isTrackingValues && (e3 = this.$data._value), e3 ? [].concat(e3) : [];
12601
12597
  }, optionList: function() {
12602
12598
  return this.options.concat(this.pushTags ? this.pushedTags : []);
12603
12599
  }, searchEl: function() {
12604
- return this.$scopedSlots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
12600
+ return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
12605
12601
  }, scope: function() {
12606
- var t2 = this, e2 = { search: this.search, loading: this.loading, searching: this.searching, filteredOptions: this.filteredOptions };
12607
- return { search: { attributes: m({ disabled: this.disabled, placeholder: this.searchPlaceholder, tabindex: this.tabindex, readonly: !this.searchable, id: this.inputId, "aria-autocomplete": "list", "aria-labelledby": "vs".concat(this.uid, "__combobox"), "aria-controls": "vs".concat(this.uid, "__listbox"), ref: "search", type: "search", autocomplete: this.autocomplete, value: this.search }, this.dropdownOpen && this.filteredOptions[this.typeAheadPointer] ? { "aria-activedescendant": "vs".concat(this.uid, "__option-").concat(this.typeAheadPointer) } : {}), events: { compositionstart: function() {
12608
- return t2.isComposing = true;
12602
+ var e3 = this, t2 = { search: this.search, loading: this.loading, searching: this.searching, filteredOptions: this.filteredOptions };
12603
+ return { search: { attributes: z({ disabled: this.disabled, placeholder: this.searchPlaceholder, tabindex: this.tabindex, readonly: !this.searchable, id: this.inputId, "aria-autocomplete": "list", "aria-labelledby": "vs".concat(this.uid, "__combobox"), "aria-controls": "vs".concat(this.uid, "__listbox"), ref: "search", type: "search", autocomplete: this.autocomplete, value: this.search }, this.dropdownOpen && this.filteredOptions[this.typeAheadPointer] ? { "aria-activedescendant": "vs".concat(this.uid, "__option-").concat(this.typeAheadPointer) } : {}), events: { compositionstart: function() {
12604
+ return e3.isComposing = true;
12609
12605
  }, compositionend: function() {
12610
- return t2.isComposing = false;
12611
- }, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(e3) {
12612
- return t2.search = e3.target.value;
12613
- } } }, spinner: { loading: this.mutableLoading }, noOptions: { search: this.search, loading: this.mutableLoading, searching: this.searching }, openIndicator: { attributes: { ref: "openIndicator", role: "presentation", class: "vs__open-indicator" } }, listHeader: e2, listFooter: e2, header: m({}, e2, { deselect: this.deselect }), footer: m({}, e2, { deselect: this.deselect }) };
12606
+ return e3.isComposing = false;
12607
+ }, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(t3) {
12608
+ return e3.search = t3.target.value;
12609
+ } } }, spinner: { loading: this.mutableLoading }, noOptions: { search: this.search, loading: this.mutableLoading, searching: this.searching }, openIndicator: { attributes: { ref: "openIndicator", role: "presentation", class: "vs__open-indicator" } }, listHeader: t2, listFooter: t2, header: z({}, t2, { deselect: this.deselect }), footer: z({}, t2, { deselect: this.deselect }) };
12614
12610
  }, childComponents: function() {
12615
- return m({}, h2, {}, this.components);
12611
+ return z({}, A, {}, this.components);
12616
12612
  }, stateClasses: function() {
12617
12613
  return { "vs--open": this.dropdownOpen, "vs--single": !this.multiple, "vs--multiple": this.multiple, "vs--searching": this.searching && !this.noDrop, "vs--searchable": this.searchable && !this.noDrop, "vs--unsearchable": !this.searchable, "vs--loading": this.mutableLoading, "vs--disabled": this.disabled };
12618
12614
  }, searching: function() {
@@ -12622,96 +12618,96 @@ var vueSelect$1 = { exports: {} };
12622
12618
  }, searchPlaceholder: function() {
12623
12619
  return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
12624
12620
  }, filteredOptions: function() {
12625
- var t2 = [].concat(this.optionList);
12621
+ var e3 = [].concat(this.optionList);
12626
12622
  if (!this.filterable && !this.taggable)
12627
- return t2;
12628
- var e2 = this.search.length ? this.filter(t2, this.search, this) : t2;
12623
+ return e3;
12624
+ var t2 = this.search.length ? this.filter(e3, this.search, this) : e3;
12629
12625
  if (this.taggable && this.search.length) {
12630
- var n2 = this.createOption(this.search);
12631
- this.optionExists(n2) || e2.unshift(n2);
12626
+ var o2 = this.createOption(this.search);
12627
+ this.optionExists(o2) || t2.unshift(o2);
12632
12628
  }
12633
- return e2;
12629
+ return t2;
12634
12630
  }, isValueEmpty: function() {
12635
12631
  return this.selectedValue.length === 0;
12636
12632
  }, showClearButton: function() {
12637
12633
  return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
12638
- } }, watch: { options: function(t2, e2) {
12639
- var n2 = this;
12640
- !this.taggable && (typeof n2.resetOnOptionsChange == "function" ? n2.resetOnOptionsChange(t2, e2, n2.selectedValue) : n2.resetOnOptionsChange) && this.clearSelection(), this.value && this.isTrackingValues && this.setInternalValueFromOptions(this.value);
12641
- }, value: { immediate: true, handler: function(t2) {
12642
- this.isTrackingValues && this.setInternalValueFromOptions(t2);
12634
+ } }, watch: { options: function(e3, t2) {
12635
+ var o2 = this;
12636
+ !this.taggable && (typeof o2.resetOnOptionsChange == "function" ? o2.resetOnOptionsChange(e3, t2, o2.selectedValue) : o2.resetOnOptionsChange) && this.clearSelection(), this.modelValue && this.isTrackingValues && this.setInternalValueFromOptions(this.modelValue);
12637
+ }, modelValue: { immediate: true, handler: function(e3) {
12638
+ this.isTrackingValues && this.setInternalValueFromOptions(e3);
12643
12639
  } }, multiple: function() {
12644
12640
  this.clearSelection();
12645
- }, open: function(t2) {
12646
- this.$emit(t2 ? "open" : "close");
12641
+ }, open: function(e3) {
12642
+ this.$emit(e3 ? "open" : "close");
12647
12643
  } }, created: function() {
12648
- this.mutableLoading = this.loading, this.$on("option:created", this.pushTag);
12649
- }, methods: { setInternalValueFromOptions: function(t2) {
12650
- var e2 = this;
12651
- Array.isArray(t2) ? this.$data._value = t2.map(function(t3) {
12652
- return e2.findOptionFromReducedValue(t3);
12653
- }) : this.$data._value = this.findOptionFromReducedValue(t2);
12654
- }, select: function(t2) {
12655
- this.$emit("option:selecting", t2), this.isOptionSelected(t2) ? this.deselectFromDropdown && (this.clearable || this.multiple && this.selectedValue.length > 1) && this.deselect(t2) : (this.taggable && !this.optionExists(t2) && this.$emit("option:created", t2), this.multiple && (t2 = this.selectedValue.concat(t2)), this.updateValue(t2), this.$emit("option:selected", t2)), this.onAfterSelect(t2);
12656
- }, deselect: function(t2) {
12657
- var e2 = this;
12658
- this.$emit("option:deselecting", t2), this.updateValue(this.selectedValue.filter(function(n2) {
12659
- return !e2.optionComparator(n2, t2);
12660
- })), this.$emit("option:deselected", t2);
12644
+ this.mutableLoading = this.loading;
12645
+ }, methods: { setInternalValueFromOptions: function(e3) {
12646
+ var t2 = this;
12647
+ Array.isArray(e3) ? this.$data._value = e3.map(function(e4) {
12648
+ return t2.findOptionFromReducedValue(e4);
12649
+ }) : this.$data._value = this.findOptionFromReducedValue(e3);
12650
+ }, select: function(e3) {
12651
+ this.$emit("option:selecting", e3), this.isOptionSelected(e3) ? this.deselectFromDropdown && (this.clearable || this.multiple && this.selectedValue.length > 1) && this.deselect(e3) : (this.taggable && !this.optionExists(e3) && (this.$emit("option:created", e3), this.pushTag(e3)), this.multiple && (e3 = this.selectedValue.concat(e3)), this.updateValue(e3), this.$emit("option:selected", e3)), this.onAfterSelect(e3);
12652
+ }, deselect: function(e3) {
12653
+ var t2 = this;
12654
+ this.$emit("option:deselecting", e3), this.updateValue(this.selectedValue.filter(function(o2) {
12655
+ return !t2.optionComparator(o2, e3);
12656
+ })), this.$emit("option:deselected", e3);
12661
12657
  }, clearSelection: function() {
12662
12658
  this.updateValue(this.multiple ? [] : null);
12663
- }, onAfterSelect: function(t2) {
12659
+ }, onAfterSelect: function(e3) {
12664
12660
  this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
12665
- }, updateValue: function(t2) {
12666
- var e2 = this;
12667
- this.value === void 0 && (this.$data._value = t2), t2 !== null && (t2 = Array.isArray(t2) ? t2.map(function(t3) {
12668
- return e2.reduce(t3);
12669
- }) : this.reduce(t2)), this.$emit("input", t2);
12670
- }, toggleDropdown: function(t2) {
12671
- var e2 = t2.target !== this.searchEl;
12672
- e2 && t2.preventDefault();
12673
- var n2 = [].concat(i()(this.$refs.deselectButtons || []), i()([this.$refs.clearButton]));
12674
- this.searchEl === void 0 || n2.filter(Boolean).some(function(e3) {
12675
- return e3.contains(t2.target) || e3 === t2.target;
12676
- }) ? t2.preventDefault() : this.open && e2 ? this.searchEl.blur() : this.disabled || (this.open = true, this.searchEl.focus());
12677
- }, isOptionSelected: function(t2) {
12678
- var e2 = this;
12679
- return this.selectedValue.some(function(n2) {
12680
- return e2.optionComparator(n2, t2);
12661
+ }, updateValue: function(e3) {
12662
+ var t2 = this;
12663
+ this.modelValue === void 0 && (this.$data._value = e3), e3 !== null && (e3 = Array.isArray(e3) ? e3.map(function(e4) {
12664
+ return t2.reduce(e4);
12665
+ }) : this.reduce(e3)), this.$emit("update:modelValue", e3);
12666
+ }, toggleDropdown: function(e3) {
12667
+ var t2 = e3.target !== this.searchEl;
12668
+ t2 && e3.preventDefault();
12669
+ var o2 = [].concat(m()(this.$refs.deselectButtons || []), m()([this.$refs.clearButton]));
12670
+ this.searchEl === void 0 || o2.filter(Boolean).some(function(t3) {
12671
+ return t3.contains(e3.target) || t3 === e3.target;
12672
+ }) ? e3.preventDefault() : this.open && t2 ? this.searchEl.blur() : this.disabled || (this.open = true, this.searchEl.focus());
12673
+ }, isOptionSelected: function(e3) {
12674
+ var t2 = this;
12675
+ return this.selectedValue.some(function(o2) {
12676
+ return t2.optionComparator(o2, e3);
12681
12677
  });
12682
- }, isOptionDeselectable: function(t2) {
12683
- return this.isOptionSelected(t2) && this.deselectFromDropdown;
12684
- }, optionComparator: function(t2, e2) {
12685
- return this.getOptionKey(t2) === this.getOptionKey(e2);
12686
- }, findOptionFromReducedValue: function(t2) {
12687
- var e2 = this, n2 = [].concat(i()(this.options), i()(this.pushedTags)).filter(function(n3) {
12688
- return JSON.stringify(e2.reduce(n3)) === JSON.stringify(t2);
12678
+ }, isOptionDeselectable: function(e3) {
12679
+ return this.isOptionSelected(e3) && this.deselectFromDropdown;
12680
+ }, optionComparator: function(e3, t2) {
12681
+ return this.getOptionKey(e3) === this.getOptionKey(t2);
12682
+ }, findOptionFromReducedValue: function(e3) {
12683
+ var t2 = this, o2 = [].concat(m()(this.options), m()(this.pushedTags)).filter(function(o3) {
12684
+ return JSON.stringify(t2.reduce(o3)) === JSON.stringify(e3);
12689
12685
  });
12690
- return n2.length === 1 ? n2[0] : n2.find(function(t3) {
12691
- return e2.optionComparator(t3, e2.$data._value);
12692
- }) || t2;
12686
+ return o2.length === 1 ? o2[0] : o2.find(function(e4) {
12687
+ return t2.optionComparator(e4, t2.$data._value);
12688
+ }) || e3;
12693
12689
  }, closeSearchOptions: function() {
12694
12690
  this.open = false, this.$emit("search:blur");
12695
12691
  }, maybeDeleteValue: function() {
12696
12692
  if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
12697
- var t2 = null;
12698
- this.multiple && (t2 = i()(this.selectedValue.slice(0, this.selectedValue.length - 1))), this.updateValue(t2);
12693
+ var e3 = null;
12694
+ this.multiple && (e3 = m()(this.selectedValue.slice(0, this.selectedValue.length - 1))), this.updateValue(e3);
12699
12695
  }
12700
- }, optionExists: function(t2) {
12701
- var e2 = this;
12702
- return this.optionList.some(function(n2) {
12703
- return e2.optionComparator(n2, t2);
12696
+ }, optionExists: function(e3) {
12697
+ var t2 = this;
12698
+ return this.optionList.some(function(o2) {
12699
+ return t2.optionComparator(o2, e3);
12704
12700
  });
12705
- }, normalizeOptionForSlot: function(t2) {
12706
- return s()(t2) === "object" ? t2 : l()({}, this.label, t2);
12707
- }, pushTag: function(t2) {
12708
- this.pushedTags.push(t2);
12701
+ }, normalizeOptionForSlot: function(e3) {
12702
+ return g()(e3) === "object" ? e3 : j()({}, this.label, e3);
12703
+ }, pushTag: function(e3) {
12704
+ this.pushedTags.push(e3);
12709
12705
  }, onEscape: function() {
12710
12706
  this.search.length ? this.search = "" : this.searchEl.blur();
12711
12707
  }, onSearchBlur: function() {
12712
12708
  if (!this.mousedown || this.searching) {
12713
- var t2 = this.clearSearchOnSelect, e2 = this.multiple;
12714
- return this.clearSearchOnBlur({ clearSearchOnSelect: t2, multiple: e2 }) && (this.search = ""), void this.closeSearchOptions();
12709
+ var e3 = this.clearSearchOnSelect, t2 = this.multiple;
12710
+ return this.clearSearchOnBlur({ clearSearchOnSelect: e3, multiple: t2 }) && (this.search = ""), void this.closeSearchOptions();
12715
12711
  }
12716
12712
  this.mousedown = false, this.search.length !== 0 || this.options.length !== 0 || this.closeSearchOptions();
12717
12713
  }, onSearchFocus: function() {
@@ -12720,50 +12716,38 @@ var vueSelect$1 = { exports: {} };
12720
12716
  this.mousedown = true;
12721
12717
  }, onMouseUp: function() {
12722
12718
  this.mousedown = false;
12723
- }, onSearchKeyDown: function(t2) {
12724
- var e2 = this, n2 = function(t3) {
12725
- return t3.preventDefault(), !e2.isComposing && e2.typeAheadSelect();
12726
- }, o2 = { 8: function(t3) {
12727
- return e2.maybeDeleteValue();
12728
- }, 9: function(t3) {
12729
- return e2.onTab();
12730
- }, 27: function(t3) {
12731
- return e2.onEscape();
12732
- }, 38: function(t3) {
12733
- return t3.preventDefault(), e2.typeAheadUp();
12734
- }, 40: function(t3) {
12735
- return t3.preventDefault(), e2.typeAheadDown();
12719
+ }, onSearchKeyDown: function(e3) {
12720
+ var t2 = this, o2 = function(e4) {
12721
+ return e4.preventDefault(), !t2.isComposing && t2.typeAheadSelect();
12722
+ }, n2 = { 8: function(e4) {
12723
+ return t2.maybeDeleteValue();
12724
+ }, 9: function(e4) {
12725
+ return t2.onTab();
12726
+ }, 27: function(e4) {
12727
+ return t2.onEscape();
12728
+ }, 38: function(e4) {
12729
+ return e4.preventDefault(), t2.typeAheadUp();
12730
+ }, 40: function(e4) {
12731
+ return e4.preventDefault(), t2.typeAheadDown();
12736
12732
  } };
12737
- this.selectOnKeyCodes.forEach(function(t3) {
12738
- return o2[t3] = n2;
12733
+ this.selectOnKeyCodes.forEach(function(e4) {
12734
+ return n2[e4] = o2;
12739
12735
  });
12740
- var i2 = this.mapKeydown(o2, this);
12741
- if (typeof i2[t2.keyCode] == "function")
12742
- return i2[t2.keyCode](t2);
12743
- } } }, O = (n(7), d2(_, function() {
12744
- var t2 = this, e2 = t2.$createElement, n2 = t2._self._c || e2;
12745
- return n2("div", { staticClass: "v-select", class: t2.stateClasses, attrs: { dir: t2.dir } }, [t2._t("header", null, null, t2.scope.header), t2._v(" "), n2("div", { ref: "toggle", staticClass: "vs__dropdown-toggle", attrs: { id: "vs" + t2.uid + "__combobox", role: "combobox", "aria-expanded": t2.dropdownOpen.toString(), "aria-owns": "vs" + t2.uid + "__listbox", "aria-label": "Search for option" }, on: { mousedown: function(e3) {
12746
- return t2.toggleDropdown(e3);
12747
- } } }, [n2("div", { ref: "selectedOptions", staticClass: "vs__selected-options" }, [t2._l(t2.selectedValue, function(e3) {
12748
- return t2._t("selected-option-container", [n2("span", { key: t2.getOptionKey(e3), staticClass: "vs__selected" }, [t2._t("selected-option", [t2._v("\n " + t2._s(t2.getOptionLabel(e3)) + "\n ")], null, t2.normalizeOptionForSlot(e3)), t2._v(" "), t2.multiple ? n2("button", { ref: "deselectButtons", refInFor: true, staticClass: "vs__deselect", attrs: { disabled: t2.disabled, type: "button", title: "Deselect " + t2.getOptionLabel(e3), "aria-label": "Deselect " + t2.getOptionLabel(e3) }, on: { click: function(n3) {
12749
- return t2.deselect(e3);
12750
- } } }, [n2(t2.childComponents.Deselect, { tag: "component" })], 1) : t2._e()], 2)], { option: t2.normalizeOptionForSlot(e3), deselect: t2.deselect, multiple: t2.multiple, disabled: t2.disabled });
12751
- }), t2._v(" "), t2._t("search", [n2("input", t2._g(t2._b({ staticClass: "vs__search" }, "input", t2.scope.search.attributes, false), t2.scope.search.events))], null, t2.scope.search)], 2), t2._v(" "), n2("div", { ref: "actions", staticClass: "vs__actions" }, [n2("button", { directives: [{ name: "show", rawName: "v-show", value: t2.showClearButton, expression: "showClearButton" }], ref: "clearButton", staticClass: "vs__clear", attrs: { disabled: t2.disabled, type: "button", title: "Clear Selected", "aria-label": "Clear Selected" }, on: { click: t2.clearSelection } }, [n2(t2.childComponents.Deselect, { tag: "component" })], 1), t2._v(" "), t2._t("open-indicator", [t2.noDrop ? t2._e() : n2(t2.childComponents.OpenIndicator, t2._b({ tag: "component" }, "component", t2.scope.openIndicator.attributes, false))], null, t2.scope.openIndicator), t2._v(" "), t2._t("spinner", [n2("div", { directives: [{ name: "show", rawName: "v-show", value: t2.mutableLoading, expression: "mutableLoading" }], staticClass: "vs__spinner" }, [t2._v("Loading...")])], null, t2.scope.spinner)], 2)]), t2._v(" "), n2("transition", { attrs: { name: t2.transition } }, [t2.dropdownOpen ? n2("ul", { directives: [{ name: "append-to-body", rawName: "v-append-to-body" }], key: "vs" + t2.uid + "__listbox", ref: "dropdownMenu", staticClass: "vs__dropdown-menu", attrs: { id: "vs" + t2.uid + "__listbox", role: "listbox", tabindex: "-1" }, on: { mousedown: function(e3) {
12752
- return e3.preventDefault(), t2.onMousedown(e3);
12753
- }, mouseup: t2.onMouseUp } }, [t2._t("list-header", null, null, t2.scope.listHeader), t2._v(" "), t2._l(t2.filteredOptions, function(e3, o2) {
12754
- return n2("li", { key: t2.getOptionKey(e3), staticClass: "vs__dropdown-option", class: { "vs__dropdown-option--deselect": t2.isOptionDeselectable(e3) && o2 === t2.typeAheadPointer, "vs__dropdown-option--selected": t2.isOptionSelected(e3), "vs__dropdown-option--highlight": o2 === t2.typeAheadPointer, "vs__dropdown-option--disabled": !t2.selectable(e3) }, attrs: { id: "vs" + t2.uid + "__option-" + o2, role: "option", "aria-selected": o2 === t2.typeAheadPointer || null }, on: { mouseover: function(n3) {
12755
- t2.selectable(e3) && (t2.typeAheadPointer = o2);
12756
- }, click: function(n3) {
12757
- n3.preventDefault(), n3.stopPropagation(), t2.selectable(e3) && t2.select(e3);
12758
- } } }, [t2._t("option", [t2._v("\n " + t2._s(t2.getOptionLabel(e3)) + "\n ")], null, t2.normalizeOptionForSlot(e3))], 2);
12759
- }), t2._v(" "), t2.filteredOptions.length === 0 ? n2("li", { staticClass: "vs__no-options" }, [t2._t("no-options", [t2._v("Sorry, no matching options.")], null, t2.scope.noOptions)], 2) : t2._e(), t2._v(" "), t2._t("list-footer", null, null, t2.scope.listFooter)], 2) : n2("ul", { staticStyle: { display: "none", visibility: "hidden" }, attrs: { id: "vs" + t2.uid + "__listbox", role: "listbox" } })]), t2._v(" "), t2._t("footer", null, null, t2.scope.footer)], 2);
12760
- }, [], false, null, null, null).exports), w2 = { ajax: p, pointer: u, pointerScroll: c };
12761
- n.d(e, "VueSelect", function() {
12762
- return O;
12763
- }), n.d(e, "mixins", function() {
12764
- return w2;
12736
+ var i2 = this.mapKeydown(n2, this);
12737
+ if (typeof i2[e3.keyCode] == "function")
12738
+ return i2[e3.keyCode](e3);
12739
+ } } };
12740
+ o(9);
12741
+ var I = k()(R, [["render", function(e3, t2, o2, O2, m2, y2) {
12742
+ const g2 = Object(n.resolveDirective)("append-to-body");
12743
+ return Object(n.openBlock)(), Object(n.createElementBlock)("div", { dir: o2.dir, class: Object(n.normalizeClass)(["v-select", y2.stateClasses]) }, [Object(n.renderSlot)(e3.$slots, "header", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.header))), Object(n.createElementVNode)("div", { id: `vs${o2.uid}__combobox`, ref: "toggle", class: "vs__dropdown-toggle", role: "combobox", "aria-expanded": y2.dropdownOpen.toString(), "aria-owns": `vs${o2.uid}__listbox`, "aria-label": "Search for option", onMousedown: t2[1] || (t2[1] = (e4) => y2.toggleDropdown(e4)) }, [Object(n.createElementVNode)("div", s, [(Object(n.openBlock)(true), Object(n.createElementBlock)(n.Fragment, null, Object(n.renderList)(y2.selectedValue, (t3) => Object(n.renderSlot)(e3.$slots, "selected-option-container", { option: y2.normalizeOptionForSlot(t3), deselect: y2.deselect, multiple: o2.multiple, disabled: o2.disabled }, () => [(Object(n.openBlock)(), Object(n.createElementBlock)("span", { key: o2.getOptionKey(t3), class: "vs__selected" }, [Object(n.renderSlot)(e3.$slots, "selected-option", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.normalizeOptionForSlot(t3))), () => [Object(n.createTextVNode)(Object(n.toDisplayString)(o2.getOptionLabel(t3)), 1)]), o2.multiple ? (Object(n.openBlock)(), Object(n.createElementBlock)("button", { key: 0, ref: "deselectButtons", disabled: o2.disabled, type: "button", class: "vs__deselect", title: `Deselect ${o2.getOptionLabel(t3)}`, "aria-label": `Deselect ${o2.getOptionLabel(t3)}`, onClick: (e4) => y2.deselect(t3) }, [(Object(n.openBlock)(), Object(n.createBlock)(Object(n.resolveDynamicComponent)(y2.childComponents.Deselect)))], 8, l)) : Object(n.createCommentVNode)("", true)]))])), 256)), Object(n.renderSlot)(e3.$slots, "search", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.search)), () => [Object(n.createElementVNode)("input", Object(n.mergeProps)({ class: "vs__search" }, y2.scope.search.attributes, Object(n.toHandlers)(y2.scope.search.events)), null, 16)])], 512), Object(n.createElementVNode)("div", c, [Object(n.withDirectives)(Object(n.createElementVNode)("button", { ref: "clearButton", disabled: o2.disabled, type: "button", class: "vs__clear", title: "Clear Selected", "aria-label": "Clear Selected", onClick: t2[0] || (t2[0] = (...e4) => y2.clearSelection && y2.clearSelection(...e4)) }, [(Object(n.openBlock)(), Object(n.createBlock)(Object(n.resolveDynamicComponent)(y2.childComponents.Deselect)))], 8, a), [[n.vShow, y2.showClearButton]]), Object(n.renderSlot)(e3.$slots, "open-indicator", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.openIndicator)), () => [o2.noDrop ? Object(n.createCommentVNode)("", true) : (Object(n.openBlock)(), Object(n.createBlock)(Object(n.resolveDynamicComponent)(y2.childComponents.OpenIndicator), Object(n.normalizeProps)(Object(n.mergeProps)({ key: 0 }, y2.scope.openIndicator.attributes)), null, 16))]), Object(n.renderSlot)(e3.$slots, "spinner", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.spinner)), () => [Object(n.withDirectives)(Object(n.createElementVNode)("div", u, "Loading...", 512), [[n.vShow, e3.mutableLoading]])])], 512)], 40, r), Object(n.createVNode)(n.Transition, { name: o2.transition }, { default: Object(n.withCtx)(() => [y2.dropdownOpen ? Object(n.withDirectives)((Object(n.openBlock)(), Object(n.createElementBlock)("ul", { id: `vs${o2.uid}__listbox`, ref: "dropdownMenu", key: `vs${o2.uid}__listbox`, class: "vs__dropdown-menu", role: "listbox", tabindex: "-1", onMousedown: t2[2] || (t2[2] = Object(n.withModifiers)((...e4) => y2.onMousedown && y2.onMousedown(...e4), ["prevent"])), onMouseup: t2[3] || (t2[3] = (...e4) => y2.onMouseUp && y2.onMouseUp(...e4)) }, [Object(n.renderSlot)(e3.$slots, "list-header", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.listHeader))), (Object(n.openBlock)(true), Object(n.createElementBlock)(n.Fragment, null, Object(n.renderList)(y2.filteredOptions, (t3, i2) => (Object(n.openBlock)(), Object(n.createElementBlock)("li", { id: `vs${o2.uid}__option-${i2}`, key: o2.getOptionKey(t3), role: "option", class: Object(n.normalizeClass)(["vs__dropdown-option", { "vs__dropdown-option--deselect": y2.isOptionDeselectable(t3) && i2 === e3.typeAheadPointer, "vs__dropdown-option--selected": y2.isOptionSelected(t3), "vs__dropdown-option--highlight": i2 === e3.typeAheadPointer, "vs__dropdown-option--disabled": !o2.selectable(t3) }]), "aria-selected": i2 === e3.typeAheadPointer || null, onMouseover: (n2) => o2.selectable(t3) ? e3.typeAheadPointer = i2 : null, onClick: Object(n.withModifiers)((e4) => o2.selectable(t3) ? y2.select(t3) : null, ["prevent", "stop"]) }, [Object(n.renderSlot)(e3.$slots, "option", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.normalizeOptionForSlot(t3))), () => [Object(n.createTextVNode)(Object(n.toDisplayString)(o2.getOptionLabel(t3)), 1)])], 42, d2))), 128)), y2.filteredOptions.length === 0 ? (Object(n.openBlock)(), Object(n.createElementBlock)("li", h2, [Object(n.renderSlot)(e3.$slots, "no-options", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.noOptions)), () => [f])])) : Object(n.createCommentVNode)("", true), Object(n.renderSlot)(e3.$slots, "list-footer", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.listFooter)))], 40, p)), [[g2]]) : (Object(n.openBlock)(), Object(n.createElementBlock)("ul", { key: 1, id: `vs${o2.uid}__listbox`, role: "listbox", style: { display: "none", visibility: "hidden" } }, null, 8, b))]), _: 3 }, 8, ["name"]), Object(n.renderSlot)(e3.$slots, "footer", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.footer)))], 10, i);
12744
+ }]]), K = { ajax: _, pointer: S, pointerScroll: w2 };
12745
+ o.d(t, "VueSelect", function() {
12746
+ return I;
12747
+ }), o.d(t, "mixins", function() {
12748
+ return K;
12765
12749
  });
12766
- e.default = O;
12750
+ t.default = I;
12767
12751
  }]);
12768
12752
  });
12769
12753
  })(vueSelect$1);