cleek 1.5.3 → 1.5.4

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,411 +1,4 @@
1
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
- var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3
- function getDefaultExportFromCjs(x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
- }
6
- var vueSelect$1 = { exports: {} };
7
- (function(module, exports) {
8
- !function(e, t) {
9
- module.exports = t(require$$0);
10
- }(typeof self != "undefined" ? self : commonjsGlobal$1, function(e) {
11
- return function(e2) {
12
- var t = {};
13
- function o(n) {
14
- if (t[n])
15
- return t[n].exports;
16
- var i = t[n] = { i: n, l: false, exports: {} };
17
- return e2[n].call(i.exports, i, i.exports, o), i.l = true, i.exports;
18
- }
19
- return o.m = e2, o.c = t, o.d = function(e3, t2, n) {
20
- o.o(e3, t2) || Object.defineProperty(e3, t2, { enumerable: true, get: n });
21
- }, o.r = function(e3) {
22
- typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e3, "__esModule", { value: true });
23
- }, o.t = function(e3, t2) {
24
- if (1 & t2 && (e3 = o(e3)), 8 & t2)
25
- return e3;
26
- if (4 & t2 && typeof e3 == "object" && e3 && e3.__esModule)
27
- return e3;
28
- var n = Object.create(null);
29
- if (o.r(n), Object.defineProperty(n, "default", { enumerable: true, value: e3 }), 2 & t2 && typeof e3 != "string")
30
- for (var i in e3)
31
- o.d(n, i, function(t3) {
32
- return e3[t3];
33
- }.bind(null, i));
34
- return n;
35
- }, o.n = function(e3) {
36
- var t2 = e3 && e3.__esModule ? function() {
37
- return e3.default;
38
- } : function() {
39
- return e3;
40
- };
41
- return o.d(t2, "a", t2), t2;
42
- }, o.o = function(e3, t2) {
43
- return Object.prototype.hasOwnProperty.call(e3, t2);
44
- }, o.p = "/", o(o.s = 10);
45
- }([function(t, o) {
46
- t.exports = e;
47
- }, function(e2, t, o) {
48
- Object.defineProperty(t, "__esModule", { value: true }), t.default = (e3, t2) => {
49
- for (const [o2, n] of t2)
50
- e3[o2] = n;
51
- return e3;
52
- };
53
- }, function(e2, t, o) {
54
- var n = o(6), i = o(7), r = o(8);
55
- e2.exports = function(e3) {
56
- return n(e3) || i(e3) || r();
57
- };
58
- }, function(e2, t) {
59
- function o(t2) {
60
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? e2.exports = o = function(e3) {
61
- return typeof e3;
62
- } : e2.exports = o = function(e3) {
63
- return e3 && typeof Symbol == "function" && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
64
- }, o(t2);
65
- }
66
- e2.exports = o;
67
- }, function(e2, t) {
68
- e2.exports = function(e3, t2, o) {
69
- return t2 in e3 ? Object.defineProperty(e3, t2, { value: o, enumerable: true, configurable: true, writable: true }) : e3[t2] = o, e3;
70
- };
71
- }, function(e2, t, o) {
72
- }, function(e2, t) {
73
- e2.exports = function(e3) {
74
- if (Array.isArray(e3)) {
75
- for (var t2 = 0, o = new Array(e3.length); t2 < e3.length; t2++)
76
- o[t2] = e3[t2];
77
- return o;
78
- }
79
- };
80
- }, function(e2, t) {
81
- e2.exports = function(e3) {
82
- if (Symbol.iterator in Object(e3) || Object.prototype.toString.call(e3) === "[object Arguments]")
83
- return Array.from(e3);
84
- };
85
- }, function(e2, t) {
86
- e2.exports = function() {
87
- throw new TypeError("Invalid attempt to spread non-iterable instance");
88
- };
89
- }, function(e2, t, o) {
90
- o(5);
91
- }, function(e2, t, o) {
92
- o.r(t);
93
- var n = o(0);
94
- 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"];
95
- 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() {
96
- this.autoscroll && this.maybeAdjustScroll();
97
- }, open: function(e3) {
98
- var t2 = this;
99
- this.autoscroll && e3 && this.$nextTick(function() {
100
- return t2.maybeAdjustScroll();
101
- });
102
- } }, methods: { maybeAdjustScroll: function() {
103
- var e3, t2 = ((e3 = this.$refs.dropdownMenu) === null || e3 === void 0 ? void 0 : e3.children[this.typeAheadPointer]) || false;
104
- if (t2) {
105
- var o2 = this.getDropdownViewport(), n2 = t2.getBoundingClientRect(), i2 = n2.top, r2 = n2.bottom, s2 = n2.height;
106
- if (i2 < o2.top)
107
- return this.$refs.dropdownMenu.scrollTop = t2.offsetTop;
108
- if (r2 > o2.bottom)
109
- return this.$refs.dropdownMenu.scrollTop = t2.offsetTop - (o2.height - s2);
110
- }
111
- }, getDropdownViewport: function() {
112
- return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : { height: 0, top: 0, bottom: 0 };
113
- } } }, S = { data: function() {
114
- return { typeAheadPointer: -1 };
115
- }, watch: { filteredOptions: function() {
116
- for (var e3 = 0; e3 < this.filteredOptions.length; e3++)
117
- if (this.selectable(this.filteredOptions[e3])) {
118
- this.typeAheadPointer = e3;
119
- break;
120
- }
121
- } }, methods: { typeAheadUp: function() {
122
- for (var e3 = this.typeAheadPointer - 1; e3 >= 0; e3--)
123
- if (this.selectable(this.filteredOptions[e3])) {
124
- this.typeAheadPointer = e3;
125
- break;
126
- }
127
- }, typeAheadDown: function() {
128
- for (var e3 = this.typeAheadPointer + 1; e3 < this.filteredOptions.length; e3++)
129
- if (this.selectable(this.filteredOptions[e3])) {
130
- this.typeAheadPointer = e3;
131
- break;
132
- }
133
- }, typeAheadSelect: function() {
134
- var e3 = this.filteredOptions[this.typeAheadPointer];
135
- e3 && this.select(e3);
136
- } } }, _ = { props: { loading: { type: Boolean, default: false } }, data: function() {
137
- return { mutableLoading: false };
138
- }, watch: { search: function() {
139
- this.$emit("search", this.search, this.toggleLoading);
140
- }, loading: function(e3) {
141
- this.mutableLoading = e3;
142
- } }, methods: { toggleLoading: function() {
143
- var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
144
- return this.mutableLoading = e3 == null ? !this.mutableLoading : e3;
145
- } } };
146
- const B = { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10" }, P = [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)];
147
- var V = o(1), k = o.n(V);
148
- const x = {};
149
- var C = k()(x, [["render", function(e3, t2) {
150
- return Object(n.openBlock)(), Object(n.createElementBlock)("svg", B, P);
151
- }]]);
152
- 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)];
153
- const E = {};
154
- var A = { Deselect: C, OpenIndicator: k()(E, [["render", function(e3, t2) {
155
- return Object(n.openBlock)(), Object(n.createElementBlock)("svg", $, D);
156
- }]]) }, L = { mounted: function(e3, t2) {
157
- var o2 = t2.instance;
158
- if (o2.appendToBody) {
159
- 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;
160
- e3.unbindPosition = o2.calculatePosition(e3, o2, { width: l2 + "px", left: c2 + s2 + "px", top: a2 + r2 + i2 + "px" }), document.body.appendChild(e3);
161
- }
162
- }, unmounted: function(e3, t2) {
163
- t2.instance.appendToBody && (e3.unbindPosition && typeof e3.unbindPosition == "function" && e3.unbindPosition(), e3.parentNode && e3.parentNode.removeChild(e3));
164
- } };
165
- var T = function(e3) {
166
- var t2 = {};
167
- return Object.keys(e3).sort().forEach(function(o2) {
168
- t2[o2] = e3[o2];
169
- }), JSON.stringify(t2);
170
- }, F = 0;
171
- var M = function() {
172
- return ++F;
173
- };
174
- function N(e3, t2) {
175
- var o2 = Object.keys(e3);
176
- if (Object.getOwnPropertySymbols) {
177
- var n2 = Object.getOwnPropertySymbols(e3);
178
- t2 && (n2 = n2.filter(function(t3) {
179
- return Object.getOwnPropertyDescriptor(e3, t3).enumerable;
180
- })), o2.push.apply(o2, n2);
181
- }
182
- return o2;
183
- }
184
- function z(e3) {
185
- for (var t2 = 1; t2 < arguments.length; t2++) {
186
- var o2 = arguments[t2] != null ? arguments[t2] : {};
187
- t2 % 2 ? N(Object(o2), true).forEach(function(t3) {
188
- j()(e3, t3, o2[t3]);
189
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(o2)) : N(Object(o2)).forEach(function(t3) {
190
- Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(o2, t3));
191
- });
192
- }
193
- return e3;
194
- }
195
- 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() {
196
- return {};
197
- } }, options: { type: Array, default: function() {
198
- return [];
199
- } }, 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) {
200
- return e3;
201
- } }, selectable: { type: Function, default: function(e3) {
202
- return true;
203
- } }, getOptionLabel: { type: Function, default: function(e3) {
204
- 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;
205
- } }, getOptionKey: { type: Function, default: function(e3) {
206
- if (g()(e3) !== "object")
207
- return e3;
208
- try {
209
- return e3.hasOwnProperty("id") ? e3.id : T(e3);
210
- } catch (t2) {
211
- 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);
212
- }
213
- } }, onTab: { type: Function, default: function() {
214
- this.selectOnTab && !this.isComposing && this.typeAheadSelect();
215
- } }, 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) {
216
- return (t2 || "").toLocaleLowerCase().indexOf(o2.toLocaleLowerCase()) > -1;
217
- } }, filter: { type: Function, default: function(e3, t2) {
218
- var o2 = this;
219
- return e3.filter(function(e4) {
220
- var n2 = o2.getOptionLabel(e4);
221
- return typeof n2 == "number" && (n2 = n2.toString()), o2.filterBy(e4, n2, t2);
222
- });
223
- } }, createOption: { type: Function, default: function(e3) {
224
- return g()(this.optionList[0]) === "object" ? j()({}, this.label, e3) : e3;
225
- } }, resetOnOptionsChange: { default: false, validator: function(e3) {
226
- return ["function", "boolean"].includes(g()(e3));
227
- } }, clearSearchOnBlur: { type: Function, default: function(e3) {
228
- var t2 = e3.clearSearchOnSelect, o2 = e3.multiple;
229
- return t2 && !o2;
230
- } }, noDrop: { type: Boolean, default: false }, inputId: { type: String }, dir: { type: String, default: "auto" }, selectOnTab: { type: Boolean, default: false }, selectOnKeyCodes: { type: Array, default: function() {
231
- return [13];
232
- } }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(e3, t2) {
233
- return e3;
234
- } }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(e3, t2, o2) {
235
- var n2 = o2.width, i2 = o2.top, r2 = o2.left;
236
- e3.style.top = i2, e3.style.left = r2, e3.style.width = n2;
237
- } }, dropdownShouldOpen: { type: Function, default: function(e3) {
238
- var t2 = e3.noDrop, o2 = e3.open, n2 = e3.mutableLoading;
239
- return !t2 && (o2 && !n2);
240
- } }, uid: { type: [String, Number], default: function() {
241
- return M();
242
- } } }, data: function() {
243
- return { search: "", open: false, isComposing: false, pushedTags: [], _value: [], deselectButtons: [] };
244
- }, computed: { isReducingValues: function() {
245
- return this.$props.reduce !== this.$options.props.reduce.default;
246
- }, isTrackingValues: function() {
247
- return this.modelValue === void 0 || this.isReducingValues;
248
- }, selectedValue: function() {
249
- var e3 = this.modelValue;
250
- return this.isTrackingValues && (e3 = this.$data._value), e3 ? [].concat(e3) : [];
251
- }, optionList: function() {
252
- return this.options.concat(this.pushTags ? this.pushedTags : []);
253
- }, searchEl: function() {
254
- return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
255
- }, scope: function() {
256
- var e3 = this, t2 = { search: this.search, loading: this.loading, searching: this.searching, filteredOptions: this.filteredOptions };
257
- 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() {
258
- return e3.isComposing = true;
259
- }, compositionend: function() {
260
- return e3.isComposing = false;
261
- }, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(t3) {
262
- return e3.search = t3.target.value;
263
- } } }, 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 }) };
264
- }, childComponents: function() {
265
- return z({}, A, {}, this.components);
266
- }, stateClasses: function() {
267
- 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 };
268
- }, searching: function() {
269
- return !!this.search;
270
- }, dropdownOpen: function() {
271
- return this.dropdownShouldOpen(this);
272
- }, searchPlaceholder: function() {
273
- return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
274
- }, filteredOptions: function() {
275
- var e3 = [].concat(this.optionList);
276
- if (!this.filterable && !this.taggable)
277
- return e3;
278
- var t2 = this.search.length ? this.filter(e3, this.search, this) : e3;
279
- if (this.taggable && this.search.length) {
280
- var o2 = this.createOption(this.search);
281
- this.optionExists(o2) || t2.unshift(o2);
282
- }
283
- return t2;
284
- }, isValueEmpty: function() {
285
- return this.selectedValue.length === 0;
286
- }, showClearButton: function() {
287
- return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
288
- } }, watch: { options: function(e3, t2) {
289
- var o2 = this;
290
- !this.taggable && (typeof o2.resetOnOptionsChange == "function" ? o2.resetOnOptionsChange(e3, t2, o2.selectedValue) : o2.resetOnOptionsChange) && this.clearSelection(), this.modelValue && this.isTrackingValues && this.setInternalValueFromOptions(this.modelValue);
291
- }, modelValue: { immediate: true, handler: function(e3) {
292
- this.isTrackingValues && this.setInternalValueFromOptions(e3);
293
- } }, multiple: function() {
294
- this.clearSelection();
295
- }, open: function(e3) {
296
- this.$emit(e3 ? "open" : "close");
297
- } }, created: function() {
298
- this.mutableLoading = this.loading;
299
- }, methods: { setInternalValueFromOptions: function(e3) {
300
- var t2 = this;
301
- Array.isArray(e3) ? this.$data._value = e3.map(function(e4) {
302
- return t2.findOptionFromReducedValue(e4);
303
- }) : this.$data._value = this.findOptionFromReducedValue(e3);
304
- }, select: function(e3) {
305
- 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);
306
- }, deselect: function(e3) {
307
- var t2 = this;
308
- this.$emit("option:deselecting", e3), this.updateValue(this.selectedValue.filter(function(o2) {
309
- return !t2.optionComparator(o2, e3);
310
- })), this.$emit("option:deselected", e3);
311
- }, clearSelection: function() {
312
- this.updateValue(this.multiple ? [] : null);
313
- }, onAfterSelect: function(e3) {
314
- this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
315
- }, updateValue: function(e3) {
316
- var t2 = this;
317
- this.modelValue === void 0 && (this.$data._value = e3), e3 !== null && (e3 = Array.isArray(e3) ? e3.map(function(e4) {
318
- return t2.reduce(e4);
319
- }) : this.reduce(e3)), this.$emit("update:modelValue", e3);
320
- }, toggleDropdown: function(e3) {
321
- var t2 = e3.target !== this.searchEl;
322
- t2 && e3.preventDefault();
323
- var o2 = [].concat(m()(this.deselectButtons || []), m()([this.$refs.clearButton]));
324
- this.searchEl === void 0 || o2.filter(Boolean).some(function(t3) {
325
- return t3.contains(e3.target) || t3 === e3.target;
326
- }) ? e3.preventDefault() : this.open && t2 ? this.searchEl.blur() : this.disabled || (this.open = true, this.searchEl.focus());
327
- }, isOptionSelected: function(e3) {
328
- var t2 = this;
329
- return this.selectedValue.some(function(o2) {
330
- return t2.optionComparator(o2, e3);
331
- });
332
- }, isOptionDeselectable: function(e3) {
333
- return this.isOptionSelected(e3) && this.deselectFromDropdown;
334
- }, optionComparator: function(e3, t2) {
335
- return this.getOptionKey(e3) === this.getOptionKey(t2);
336
- }, findOptionFromReducedValue: function(e3) {
337
- var t2 = this, o2 = [].concat(m()(this.options), m()(this.pushedTags)).filter(function(o3) {
338
- return JSON.stringify(t2.reduce(o3)) === JSON.stringify(e3);
339
- });
340
- return o2.length === 1 ? o2[0] : o2.find(function(e4) {
341
- return t2.optionComparator(e4, t2.$data._value);
342
- }) || e3;
343
- }, closeSearchOptions: function() {
344
- this.open = false, this.$emit("search:blur");
345
- }, maybeDeleteValue: function() {
346
- if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
347
- var e3 = null;
348
- this.multiple && (e3 = m()(this.selectedValue.slice(0, this.selectedValue.length - 1))), this.updateValue(e3);
349
- }
350
- }, optionExists: function(e3) {
351
- var t2 = this;
352
- return this.optionList.some(function(o2) {
353
- return t2.optionComparator(o2, e3);
354
- });
355
- }, normalizeOptionForSlot: function(e3) {
356
- return g()(e3) === "object" ? e3 : j()({}, this.label, e3);
357
- }, pushTag: function(e3) {
358
- this.pushedTags.push(e3);
359
- }, onEscape: function() {
360
- this.search.length ? this.search = "" : this.searchEl.blur();
361
- }, onSearchBlur: function() {
362
- if (!this.mousedown || this.searching) {
363
- var e3 = this.clearSearchOnSelect, t2 = this.multiple;
364
- return this.clearSearchOnBlur({ clearSearchOnSelect: e3, multiple: t2 }) && (this.search = ""), void this.closeSearchOptions();
365
- }
366
- this.mousedown = false, this.search.length !== 0 || this.options.length !== 0 || this.closeSearchOptions();
367
- }, onSearchFocus: function() {
368
- this.open = true, this.$emit("search:focus");
369
- }, onMousedown: function() {
370
- this.mousedown = true;
371
- }, onMouseUp: function() {
372
- this.mousedown = false;
373
- }, onSearchKeyDown: function(e3) {
374
- var t2 = this, o2 = function(e4) {
375
- return e4.preventDefault(), !t2.isComposing && t2.typeAheadSelect();
376
- }, n2 = { 8: function(e4) {
377
- return t2.maybeDeleteValue();
378
- }, 9: function(e4) {
379
- return t2.onTab();
380
- }, 27: function(e4) {
381
- return t2.onEscape();
382
- }, 38: function(e4) {
383
- return e4.preventDefault(), t2.typeAheadUp();
384
- }, 40: function(e4) {
385
- return e4.preventDefault(), t2.typeAheadDown();
386
- } };
387
- this.selectOnKeyCodes.forEach(function(e4) {
388
- return n2[e4] = o2;
389
- });
390
- var i2 = this.mapKeydown(n2, this);
391
- if (typeof i2[e3.keyCode] == "function")
392
- return i2[e3.keyCode](e3);
393
- } } };
394
- o(9);
395
- var I = k()(R, [["render", function(e3, t2, o2, O2, m2, y2) {
396
- const g2 = Object(n.resolveDirective)("append-to-body");
397
- 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, i2) => 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);
398
- }]]), K = { ajax: _, pointer: S, pointerScroll: w2 };
399
- o.d(t, "VueSelect", function() {
400
- return I;
401
- }), o.d(t, "mixins", function() {
402
- return K;
403
- });
404
- t.default = I;
405
- }]);
406
- });
407
- })(vueSelect$1);
408
- var vSelect = /* @__PURE__ */ getDefaultExportFromCjs(vueSelect$1.exports);
409
2
  var validators = {
410
3
  size: (type) => {
411
4
  return ["", "xs", "s", "m", "l", "xl"].includes(type);
@@ -11155,7 +10748,7 @@ var _iconsCache = {
11155
10748
  faYoutubeSquare,
11156
10749
  faZhihu
11157
10750
  };
11158
- var commonjsGlobal = typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
10751
+ var commonjsGlobal$1 = typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11159
10752
  function createCommonjsModule(fn2, module) {
11160
10753
  return module = { exports: {} }, fn2(module, module.exports), module.exports;
11161
10754
  }
@@ -11258,7 +10851,7 @@ var humps = createCommonjsModule(function(module) {
11258
10851
  } else {
11259
10852
  global2.humps = humps2;
11260
10853
  }
11261
- })(commonjsGlobal);
10854
+ })(commonjsGlobal$1);
11262
10855
  });
11263
10856
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
11264
10857
  return typeof obj;
@@ -11967,6 +11560,10 @@ const _sfc_main$c = {
11967
11560
  }
11968
11561
  };
11969
11562
  var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", render$d], ["__scopeId", "data-v-753ae406"]]);
11563
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11564
+ function getDefaultExportFromCjs(x) {
11565
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11566
+ }
11970
11567
  var dist = function(t) {
11971
11568
  function e(i) {
11972
11569
  if (r[i])
@@ -12742,16 +12339,419 @@ const _sfc_main$a = {
12742
12339
  "aria-disabled": this.disabled,
12743
12340
  tabindex: this.disabled ? void 0 : "0"
12744
12341
  };
12745
- }
12746
- },
12747
- methods: {
12748
- handleChange(value) {
12749
- this.value = value;
12750
- this.$emit("change", value);
12751
- }
12752
- }
12753
- };
12754
- var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$b], ["__scopeId", "data-v-73a891e8"]]);
12342
+ }
12343
+ },
12344
+ methods: {
12345
+ handleChange(value) {
12346
+ this.value = value;
12347
+ this.$emit("change", value);
12348
+ }
12349
+ }
12350
+ };
12351
+ var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$b], ["__scopeId", "data-v-73a891e8"]]);
12352
+ var vueSelect$1 = { exports: {} };
12353
+ (function(module, 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
+ }
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
+ }.bind(null, i));
12380
+ return n;
12381
+ }, o.n = function(e3) {
12382
+ var t2 = e3 && e3.__esModule ? function() {
12383
+ return e3.default;
12384
+ } : function() {
12385
+ return e3;
12386
+ };
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();
12403
+ };
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);
12411
+ }
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;
12416
+ };
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;
12424
+ }
12425
+ };
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);
12430
+ };
12431
+ }, function(e2, t) {
12432
+ e2.exports = function() {
12433
+ throw new TypeError("Invalid attempt to spread non-iterable instance");
12434
+ };
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() {
12442
+ this.autoscroll && this.maybeAdjustScroll();
12443
+ }, open: function(e3) {
12444
+ var t2 = this;
12445
+ this.autoscroll && e3 && this.$nextTick(function() {
12446
+ return t2.maybeAdjustScroll();
12447
+ });
12448
+ } }, methods: { maybeAdjustScroll: function() {
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);
12456
+ }
12457
+ }, getDropdownViewport: function() {
12458
+ return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : { height: 0, top: 0, bottom: 0 };
12459
+ } } }, S = { data: function() {
12460
+ return { typeAheadPointer: -1 };
12461
+ }, watch: { filteredOptions: function() {
12462
+ for (var e3 = 0; e3 < this.filteredOptions.length; e3++)
12463
+ if (this.selectable(this.filteredOptions[e3])) {
12464
+ this.typeAheadPointer = e3;
12465
+ break;
12466
+ }
12467
+ } }, methods: { typeAheadUp: function() {
12468
+ for (var e3 = this.typeAheadPointer - 1; e3 >= 0; e3--)
12469
+ if (this.selectable(this.filteredOptions[e3])) {
12470
+ this.typeAheadPointer = e3;
12471
+ break;
12472
+ }
12473
+ }, typeAheadDown: function() {
12474
+ for (var e3 = this.typeAheadPointer + 1; e3 < this.filteredOptions.length; e3++)
12475
+ if (this.selectable(this.filteredOptions[e3])) {
12476
+ this.typeAheadPointer = e3;
12477
+ break;
12478
+ }
12479
+ }, typeAheadSelect: function() {
12480
+ var e3 = this.filteredOptions[this.typeAheadPointer];
12481
+ e3 && this.select(e3);
12482
+ } } }, _ = { props: { loading: { type: Boolean, default: false } }, data: function() {
12483
+ return { mutableLoading: false };
12484
+ }, watch: { search: function() {
12485
+ this.$emit("search", this.search, this.toggleLoading);
12486
+ }, loading: function(e3) {
12487
+ this.mutableLoading = e3;
12488
+ } }, methods: { toggleLoading: function() {
12489
+ var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
12490
+ return this.mutableLoading = e3 == null ? !this.mutableLoading : e3;
12491
+ } } };
12492
+ const B = { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10" }, P = [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", B, P);
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;
12504
+ if (o2.appendToBody) {
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);
12507
+ }
12508
+ }, unmounted: function(e3, t2) {
12509
+ t2.instance.appendToBody && (e3.unbindPosition && typeof e3.unbindPosition == "function" && e3.unbindPosition(), e3.parentNode && e3.parentNode.removeChild(e3));
12510
+ } };
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;
12519
+ };
12520
+ function N(e3, t2) {
12521
+ var o2 = Object.keys(e3);
12522
+ if (Object.getOwnPropertySymbols) {
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);
12527
+ }
12528
+ return o2;
12529
+ }
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));
12537
+ });
12538
+ }
12539
+ return e3;
12540
+ }
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() {
12542
+ return {};
12543
+ } }, options: { type: Array, default: function() {
12544
+ return [];
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) {
12548
+ return true;
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;
12554
+ try {
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);
12558
+ }
12559
+ } }, onTab: { type: Function, default: function() {
12560
+ this.selectOnTab && !this.isComposing && this.typeAheadSelect();
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);
12568
+ });
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;
12576
+ } }, noDrop: { type: Boolean, default: false }, inputId: { type: String }, dir: { type: String, default: "auto" }, selectOnTab: { type: Boolean, default: false }, selectOnKeyCodes: { type: Array, default: function() {
12577
+ return [13];
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);
12586
+ } }, uid: { type: [String, Number], default: function() {
12587
+ return M();
12588
+ } } }, data: function() {
12589
+ return { search: "", open: false, isComposing: false, pushedTags: [], _value: [], deselectButtons: [] };
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;
12594
+ }, selectedValue: function() {
12595
+ var e3 = this.modelValue;
12596
+ return this.isTrackingValues && (e3 = this.$data._value), e3 ? [].concat(e3) : [];
12597
+ }, optionList: function() {
12598
+ return this.options.concat(this.pushTags ? this.pushedTags : []);
12599
+ }, searchEl: function() {
12600
+ return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
12601
+ }, scope: function() {
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;
12605
+ }, compositionend: function() {
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 }) };
12610
+ }, childComponents: function() {
12611
+ return z({}, A, {}, this.components);
12612
+ }, stateClasses: function() {
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 };
12614
+ }, searching: function() {
12615
+ return !!this.search;
12616
+ }, dropdownOpen: function() {
12617
+ return this.dropdownShouldOpen(this);
12618
+ }, searchPlaceholder: function() {
12619
+ return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
12620
+ }, filteredOptions: function() {
12621
+ var e3 = [].concat(this.optionList);
12622
+ if (!this.filterable && !this.taggable)
12623
+ return e3;
12624
+ var t2 = this.search.length ? this.filter(e3, this.search, this) : e3;
12625
+ if (this.taggable && this.search.length) {
12626
+ var o2 = this.createOption(this.search);
12627
+ this.optionExists(o2) || t2.unshift(o2);
12628
+ }
12629
+ return t2;
12630
+ }, isValueEmpty: function() {
12631
+ return this.selectedValue.length === 0;
12632
+ }, showClearButton: function() {
12633
+ return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
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);
12639
+ } }, multiple: function() {
12640
+ this.clearSelection();
12641
+ }, open: function(e3) {
12642
+ this.$emit(e3 ? "open" : "close");
12643
+ } }, created: function() {
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);
12657
+ }, clearSelection: function() {
12658
+ this.updateValue(this.multiple ? [] : null);
12659
+ }, onAfterSelect: function(e3) {
12660
+ this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
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.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);
12677
+ });
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);
12685
+ });
12686
+ return o2.length === 1 ? o2[0] : o2.find(function(e4) {
12687
+ return t2.optionComparator(e4, t2.$data._value);
12688
+ }) || e3;
12689
+ }, closeSearchOptions: function() {
12690
+ this.open = false, this.$emit("search:blur");
12691
+ }, maybeDeleteValue: function() {
12692
+ if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
12693
+ var e3 = null;
12694
+ this.multiple && (e3 = m()(this.selectedValue.slice(0, this.selectedValue.length - 1))), this.updateValue(e3);
12695
+ }
12696
+ }, optionExists: function(e3) {
12697
+ var t2 = this;
12698
+ return this.optionList.some(function(o2) {
12699
+ return t2.optionComparator(o2, e3);
12700
+ });
12701
+ }, normalizeOptionForSlot: function(e3) {
12702
+ return g()(e3) === "object" ? e3 : j()({}, this.label, e3);
12703
+ }, pushTag: function(e3) {
12704
+ this.pushedTags.push(e3);
12705
+ }, onEscape: function() {
12706
+ this.search.length ? this.search = "" : this.searchEl.blur();
12707
+ }, onSearchBlur: function() {
12708
+ if (!this.mousedown || this.searching) {
12709
+ var e3 = this.clearSearchOnSelect, t2 = this.multiple;
12710
+ return this.clearSearchOnBlur({ clearSearchOnSelect: e3, multiple: t2 }) && (this.search = ""), void this.closeSearchOptions();
12711
+ }
12712
+ this.mousedown = false, this.search.length !== 0 || this.options.length !== 0 || this.closeSearchOptions();
12713
+ }, onSearchFocus: function() {
12714
+ this.open = true, this.$emit("search:focus");
12715
+ }, onMousedown: function() {
12716
+ this.mousedown = true;
12717
+ }, onMouseUp: function() {
12718
+ this.mousedown = false;
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();
12732
+ } };
12733
+ this.selectOnKeyCodes.forEach(function(e4) {
12734
+ return n2[e4] = o2;
12735
+ });
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, i2) => 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;
12749
+ });
12750
+ t.default = I;
12751
+ }]);
12752
+ });
12753
+ })(vueSelect$1);
12754
+ var vSelect = /* @__PURE__ */ getDefaultExportFromCjs(vueSelect$1.exports);
12755
12755
  var vueSelect = "";
12756
12756
  const _hoisted_1$7 = { slot: "no-options" };
12757
12757
  function render$a(_ctx, _cache, $props, $setup, $data, $options) {
@@ -15863,9 +15863,7 @@ var components = /* @__PURE__ */ Object.freeze({
15863
15863
  unlockScroll
15864
15864
  });
15865
15865
  const install = function installCleek(app, options) {
15866
- console.log("arranco paquete");
15867
- console.log("options", options);
15868
- app.use(vSelect);
15866
+ console.log("arranco paquete", options);
15869
15867
  Object.entries(components).forEach(([componentName, component]) => {
15870
15868
  app.component(componentName, component);
15871
15869
  });