@appbaseio/reactivesearch-vue 1.35.1 → 1.35.3

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.
@@ -9287,304 +9287,304 @@
9287
9287
 
9288
9288
  function _regeneratorRuntime() {
9289
9289
  _regeneratorRuntime = function () {
9290
- return exports;
9290
+ return e;
9291
9291
  };
9292
- var exports = {},
9293
- Op = Object.prototype,
9294
- hasOwn = Op.hasOwnProperty,
9295
- defineProperty = Object.defineProperty || function (obj, key, desc) {
9296
- obj[key] = desc.value;
9297
- },
9298
- $Symbol = "function" == typeof Symbol ? Symbol : {},
9299
- iteratorSymbol = $Symbol.iterator || "@@iterator",
9300
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
9301
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
9302
- function define(obj, key, value) {
9303
- return Object.defineProperty(obj, key, {
9304
- value: value,
9292
+ var t,
9293
+ e = {},
9294
+ r = Object.prototype,
9295
+ n = r.hasOwnProperty,
9296
+ o = Object.defineProperty || function (t, e, r) {
9297
+ t[e] = r.value;
9298
+ },
9299
+ i = "function" == typeof Symbol ? Symbol : {},
9300
+ a = i.iterator || "@@iterator",
9301
+ c = i.asyncIterator || "@@asyncIterator",
9302
+ u = i.toStringTag || "@@toStringTag";
9303
+ function define(t, e, r) {
9304
+ return Object.defineProperty(t, e, {
9305
+ value: r,
9305
9306
  enumerable: !0,
9306
9307
  configurable: !0,
9307
9308
  writable: !0
9308
- }), obj[key];
9309
+ }), t[e];
9309
9310
  }
9310
9311
  try {
9311
9312
  define({}, "");
9312
- } catch (err) {
9313
- define = function (obj, key, value) {
9314
- return obj[key] = value;
9313
+ } catch (t) {
9314
+ define = function (t, e, r) {
9315
+ return t[e] = r;
9315
9316
  };
9316
9317
  }
9317
- function wrap(innerFn, outerFn, self, tryLocsList) {
9318
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
9319
- generator = Object.create(protoGenerator.prototype),
9320
- context = new Context(tryLocsList || []);
9321
- return defineProperty(generator, "_invoke", {
9322
- value: makeInvokeMethod(innerFn, self, context)
9323
- }), generator;
9318
+ function wrap(t, e, r, n) {
9319
+ var i = e && e.prototype instanceof Generator ? e : Generator,
9320
+ a = Object.create(i.prototype),
9321
+ c = new Context(n || []);
9322
+ return o(a, "_invoke", {
9323
+ value: makeInvokeMethod(t, r, c)
9324
+ }), a;
9324
9325
  }
9325
- function tryCatch(fn, obj, arg) {
9326
+ function tryCatch(t, e, r) {
9326
9327
  try {
9327
9328
  return {
9328
9329
  type: "normal",
9329
- arg: fn.call(obj, arg)
9330
+ arg: t.call(e, r)
9330
9331
  };
9331
- } catch (err) {
9332
+ } catch (t) {
9332
9333
  return {
9333
9334
  type: "throw",
9334
- arg: err
9335
+ arg: t
9335
9336
  };
9336
9337
  }
9337
9338
  }
9338
- exports.wrap = wrap;
9339
- var ContinueSentinel = {};
9339
+ e.wrap = wrap;
9340
+ var h = "suspendedStart",
9341
+ l = "suspendedYield",
9342
+ f = "executing",
9343
+ s = "completed",
9344
+ y = {};
9340
9345
  function Generator() {}
9341
9346
  function GeneratorFunction() {}
9342
9347
  function GeneratorFunctionPrototype() {}
9343
- var IteratorPrototype = {};
9344
- define(IteratorPrototype, iteratorSymbol, function () {
9348
+ var p = {};
9349
+ define(p, a, function () {
9345
9350
  return this;
9346
9351
  });
9347
- var getProto = Object.getPrototypeOf,
9348
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
9349
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
9350
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
9351
- function defineIteratorMethods(prototype) {
9352
- ["next", "throw", "return"].forEach(function (method) {
9353
- define(prototype, method, function (arg) {
9354
- return this._invoke(method, arg);
9352
+ var d = Object.getPrototypeOf,
9353
+ v = d && d(d(values([])));
9354
+ v && v !== r && n.call(v, a) && (p = v);
9355
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
9356
+ function defineIteratorMethods(t) {
9357
+ ["next", "throw", "return"].forEach(function (e) {
9358
+ define(t, e, function (t) {
9359
+ return this._invoke(e, t);
9355
9360
  });
9356
9361
  });
9357
9362
  }
9358
- function AsyncIterator(generator, PromiseImpl) {
9359
- function invoke(method, arg, resolve, reject) {
9360
- var record = tryCatch(generator[method], generator, arg);
9361
- if ("throw" !== record.type) {
9362
- var result = record.arg,
9363
- value = result.value;
9364
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
9365
- invoke("next", value, resolve, reject);
9366
- }, function (err) {
9367
- invoke("throw", err, resolve, reject);
9368
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
9369
- result.value = unwrapped, resolve(result);
9370
- }, function (error) {
9371
- return invoke("throw", error, resolve, reject);
9363
+ function AsyncIterator(t, e) {
9364
+ function invoke(r, o, i, a) {
9365
+ var c = tryCatch(t[r], t, o);
9366
+ if ("throw" !== c.type) {
9367
+ var u = c.arg,
9368
+ h = u.value;
9369
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
9370
+ invoke("next", t, i, a);
9371
+ }, function (t) {
9372
+ invoke("throw", t, i, a);
9373
+ }) : e.resolve(h).then(function (t) {
9374
+ u.value = t, i(u);
9375
+ }, function (t) {
9376
+ return invoke("throw", t, i, a);
9372
9377
  });
9373
9378
  }
9374
- reject(record.arg);
9379
+ a(c.arg);
9375
9380
  }
9376
- var previousPromise;
9377
- defineProperty(this, "_invoke", {
9378
- value: function (method, arg) {
9381
+ var r;
9382
+ o(this, "_invoke", {
9383
+ value: function (t, n) {
9379
9384
  function callInvokeWithMethodAndArg() {
9380
- return new PromiseImpl(function (resolve, reject) {
9381
- invoke(method, arg, resolve, reject);
9385
+ return new e(function (e, r) {
9386
+ invoke(t, n, e, r);
9382
9387
  });
9383
9388
  }
9384
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
9389
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
9385
9390
  }
9386
9391
  });
9387
9392
  }
9388
- function makeInvokeMethod(innerFn, self, context) {
9389
- var state = "suspendedStart";
9390
- return function (method, arg) {
9391
- if ("executing" === state) throw new Error("Generator is already running");
9392
- if ("completed" === state) {
9393
- if ("throw" === method) throw arg;
9394
- return doneResult();
9395
- }
9396
- for (context.method = method, context.arg = arg;;) {
9397
- var delegate = context.delegate;
9398
- if (delegate) {
9399
- var delegateResult = maybeInvokeDelegate(delegate, context);
9400
- if (delegateResult) {
9401
- if (delegateResult === ContinueSentinel) continue;
9402
- return delegateResult;
9393
+ function makeInvokeMethod(e, r, n) {
9394
+ var o = h;
9395
+ return function (i, a) {
9396
+ if (o === f) throw new Error("Generator is already running");
9397
+ if (o === s) {
9398
+ if ("throw" === i) throw a;
9399
+ return {
9400
+ value: t,
9401
+ done: !0
9402
+ };
9403
+ }
9404
+ for (n.method = i, n.arg = a;;) {
9405
+ var c = n.delegate;
9406
+ if (c) {
9407
+ var u = maybeInvokeDelegate(c, n);
9408
+ if (u) {
9409
+ if (u === y) continue;
9410
+ return u;
9403
9411
  }
9404
9412
  }
9405
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
9406
- if ("suspendedStart" === state) throw state = "completed", context.arg;
9407
- context.dispatchException(context.arg);
9408
- } else "return" === context.method && context.abrupt("return", context.arg);
9409
- state = "executing";
9410
- var record = tryCatch(innerFn, self, context);
9411
- if ("normal" === record.type) {
9412
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
9413
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
9414
+ if (o === h) throw o = s, n.arg;
9415
+ n.dispatchException(n.arg);
9416
+ } else "return" === n.method && n.abrupt("return", n.arg);
9417
+ o = f;
9418
+ var p = tryCatch(e, r, n);
9419
+ if ("normal" === p.type) {
9420
+ if (o = n.done ? s : l, p.arg === y) continue;
9413
9421
  return {
9414
- value: record.arg,
9415
- done: context.done
9422
+ value: p.arg,
9423
+ done: n.done
9416
9424
  };
9417
9425
  }
9418
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
9426
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
9419
9427
  }
9420
9428
  };
9421
9429
  }
9422
- function maybeInvokeDelegate(delegate, context) {
9423
- var methodName = context.method,
9424
- method = delegate.iterator[methodName];
9425
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
9426
- var record = tryCatch(method, delegate.iterator, context.arg);
9427
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
9428
- var info = record.arg;
9429
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
9430
- }
9431
- function pushTryEntry(locs) {
9432
- var entry = {
9433
- tryLoc: locs[0]
9430
+ function maybeInvokeDelegate(e, r) {
9431
+ var n = r.method,
9432
+ o = e.iterator[n];
9433
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
9434
+ var i = tryCatch(o, e.iterator, r.arg);
9435
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
9436
+ var a = i.arg;
9437
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
9438
+ }
9439
+ function pushTryEntry(t) {
9440
+ var e = {
9441
+ tryLoc: t[0]
9434
9442
  };
9435
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
9443
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
9436
9444
  }
9437
- function resetTryEntry(entry) {
9438
- var record = entry.completion || {};
9439
- record.type = "normal", delete record.arg, entry.completion = record;
9445
+ function resetTryEntry(t) {
9446
+ var e = t.completion || {};
9447
+ e.type = "normal", delete e.arg, t.completion = e;
9440
9448
  }
9441
- function Context(tryLocsList) {
9449
+ function Context(t) {
9442
9450
  this.tryEntries = [{
9443
9451
  tryLoc: "root"
9444
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
9445
- }
9446
- function values(iterable) {
9447
- if (iterable) {
9448
- var iteratorMethod = iterable[iteratorSymbol];
9449
- if (iteratorMethod) return iteratorMethod.call(iterable);
9450
- if ("function" == typeof iterable.next) return iterable;
9451
- if (!isNaN(iterable.length)) {
9452
- var i = -1,
9453
- next = function next() {
9454
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
9455
- return next.value = undefined, next.done = !0, next;
9452
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
9453
+ }
9454
+ function values(e) {
9455
+ if (e || "" === e) {
9456
+ var r = e[a];
9457
+ if (r) return r.call(e);
9458
+ if ("function" == typeof e.next) return e;
9459
+ if (!isNaN(e.length)) {
9460
+ var o = -1,
9461
+ i = function next() {
9462
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
9463
+ return next.value = t, next.done = !0, next;
9456
9464
  };
9457
- return next.next = next;
9465
+ return i.next = i;
9458
9466
  }
9459
9467
  }
9460
- return {
9461
- next: doneResult
9462
- };
9463
- }
9464
- function doneResult() {
9465
- return {
9466
- value: undefined,
9467
- done: !0
9468
- };
9468
+ throw new TypeError(typeof e + " is not iterable");
9469
9469
  }
9470
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
9470
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
9471
9471
  value: GeneratorFunctionPrototype,
9472
9472
  configurable: !0
9473
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
9473
+ }), o(GeneratorFunctionPrototype, "constructor", {
9474
9474
  value: GeneratorFunction,
9475
9475
  configurable: !0
9476
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
9477
- var ctor = "function" == typeof genFun && genFun.constructor;
9478
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
9479
- }, exports.mark = function (genFun) {
9480
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
9481
- }, exports.awrap = function (arg) {
9476
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
9477
+ var e = "function" == typeof t && t.constructor;
9478
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
9479
+ }, e.mark = function (t) {
9480
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
9481
+ }, e.awrap = function (t) {
9482
9482
  return {
9483
- __await: arg
9483
+ __await: t
9484
9484
  };
9485
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
9485
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
9486
9486
  return this;
9487
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
9488
- void 0 === PromiseImpl && (PromiseImpl = Promise);
9489
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
9490
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
9491
- return result.done ? result.value : iter.next();
9487
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
9488
+ void 0 === i && (i = Promise);
9489
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
9490
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
9491
+ return t.done ? t.value : a.next();
9492
9492
  });
9493
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
9493
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
9494
9494
  return this;
9495
- }), define(Gp, "toString", function () {
9495
+ }), define(g, "toString", function () {
9496
9496
  return "[object Generator]";
9497
- }), exports.keys = function (val) {
9498
- var object = Object(val),
9499
- keys = [];
9500
- for (var key in object) keys.push(key);
9501
- return keys.reverse(), function next() {
9502
- for (; keys.length;) {
9503
- var key = keys.pop();
9504
- if (key in object) return next.value = key, next.done = !1, next;
9497
+ }), e.keys = function (t) {
9498
+ var e = Object(t),
9499
+ r = [];
9500
+ for (var n in e) r.push(n);
9501
+ return r.reverse(), function next() {
9502
+ for (; r.length;) {
9503
+ var t = r.pop();
9504
+ if (t in e) return next.value = t, next.done = !1, next;
9505
9505
  }
9506
9506
  return next.done = !0, next;
9507
9507
  };
9508
- }, exports.values = values, Context.prototype = {
9508
+ }, e.values = values, Context.prototype = {
9509
9509
  constructor: Context,
9510
- reset: function (skipTempReset) {
9511
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
9510
+ reset: function (e) {
9511
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
9512
9512
  },
9513
9513
  stop: function () {
9514
9514
  this.done = !0;
9515
- var rootRecord = this.tryEntries[0].completion;
9516
- if ("throw" === rootRecord.type) throw rootRecord.arg;
9515
+ var t = this.tryEntries[0].completion;
9516
+ if ("throw" === t.type) throw t.arg;
9517
9517
  return this.rval;
9518
9518
  },
9519
- dispatchException: function (exception) {
9520
- if (this.done) throw exception;
9521
- var context = this;
9522
- function handle(loc, caught) {
9523
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
9524
- }
9525
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9526
- var entry = this.tryEntries[i],
9527
- record = entry.completion;
9528
- if ("root" === entry.tryLoc) return handle("end");
9529
- if (entry.tryLoc <= this.prev) {
9530
- var hasCatch = hasOwn.call(entry, "catchLoc"),
9531
- hasFinally = hasOwn.call(entry, "finallyLoc");
9532
- if (hasCatch && hasFinally) {
9533
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
9534
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
9535
- } else if (hasCatch) {
9536
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
9519
+ dispatchException: function (e) {
9520
+ if (this.done) throw e;
9521
+ var r = this;
9522
+ function handle(n, o) {
9523
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
9524
+ }
9525
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
9526
+ var i = this.tryEntries[o],
9527
+ a = i.completion;
9528
+ if ("root" === i.tryLoc) return handle("end");
9529
+ if (i.tryLoc <= this.prev) {
9530
+ var c = n.call(i, "catchLoc"),
9531
+ u = n.call(i, "finallyLoc");
9532
+ if (c && u) {
9533
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
9534
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
9535
+ } else if (c) {
9536
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
9537
9537
  } else {
9538
- if (!hasFinally) throw new Error("try statement without catch or finally");
9539
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
9538
+ if (!u) throw new Error("try statement without catch or finally");
9539
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
9540
9540
  }
9541
9541
  }
9542
9542
  }
9543
9543
  },
9544
- abrupt: function (type, arg) {
9545
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9546
- var entry = this.tryEntries[i];
9547
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
9548
- var finallyEntry = entry;
9544
+ abrupt: function (t, e) {
9545
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
9546
+ var o = this.tryEntries[r];
9547
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
9548
+ var i = o;
9549
9549
  break;
9550
9550
  }
9551
9551
  }
9552
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
9553
- var record = finallyEntry ? finallyEntry.completion : {};
9554
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
9552
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
9553
+ var a = i ? i.completion : {};
9554
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
9555
9555
  },
9556
- complete: function (record, afterLoc) {
9557
- if ("throw" === record.type) throw record.arg;
9558
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
9556
+ complete: function (t, e) {
9557
+ if ("throw" === t.type) throw t.arg;
9558
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
9559
9559
  },
9560
- finish: function (finallyLoc) {
9561
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9562
- var entry = this.tryEntries[i];
9563
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
9560
+ finish: function (t) {
9561
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
9562
+ var r = this.tryEntries[e];
9563
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
9564
9564
  }
9565
9565
  },
9566
- catch: function (tryLoc) {
9567
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9568
- var entry = this.tryEntries[i];
9569
- if (entry.tryLoc === tryLoc) {
9570
- var record = entry.completion;
9571
- if ("throw" === record.type) {
9572
- var thrown = record.arg;
9573
- resetTryEntry(entry);
9566
+ catch: function (t) {
9567
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
9568
+ var r = this.tryEntries[e];
9569
+ if (r.tryLoc === t) {
9570
+ var n = r.completion;
9571
+ if ("throw" === n.type) {
9572
+ var o = n.arg;
9573
+ resetTryEntry(r);
9574
9574
  }
9575
- return thrown;
9575
+ return o;
9576
9576
  }
9577
9577
  }
9578
9578
  throw new Error("illegal catch attempt");
9579
9579
  },
9580
- delegateYield: function (iterable, resultName, nextLoc) {
9580
+ delegateYield: function (e, r, n) {
9581
9581
  return this.delegate = {
9582
- iterator: values(iterable),
9583
- resultName: resultName,
9584
- nextLoc: nextLoc
9585
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
9582
+ iterator: values(e),
9583
+ resultName: r,
9584
+ nextLoc: n
9585
+ }, "next" === this.method && (this.arg = t), y;
9586
9586
  }
9587
- }, exports;
9587
+ }, e;
9588
9588
  }
9589
9589
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
9590
9590
  try {
@@ -13809,6 +13809,11 @@
13809
13809
  if (this.currentPageState !== newVal && oldVal !== newVal) {
13810
13810
  this.setPage(newVal >= 0 ? newVal : 0);
13811
13811
  }
13812
+ },
13813
+ isLoading: function isLoading(newVal, oldVal) {
13814
+ if (newVal !== oldVal) {
13815
+ this.$emit('loading', newVal);
13816
+ }
13812
13817
  }
13813
13818
  },
13814
13819
  mounted: function mounted() {
@@ -18715,7 +18720,8 @@
18715
18720
  selectedTags: [],
18716
18721
  isOpen: false,
18717
18722
  normalizedSuggestions: [],
18718
- isPending: false
18723
+ isPending: false,
18724
+ isSuggestionSelected: false
18719
18725
  };
18720
18726
  this.internalComponent = props.componentId + "__internal";
18721
18727
  return this.__state;
@@ -19100,6 +19106,7 @@
19100
19106
  _this.getRecentSearches();
19101
19107
  }
19102
19108
  if (isTagsMode) {
19109
+ var isTagAdded = false;
19103
19110
  if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
19104
19111
  // check if value already present in selectedTags
19105
19112
  if (typeof value === 'string' && _this.selectedTags.includes(value)) {
@@ -19108,14 +19115,36 @@
19108
19115
  }
19109
19116
  _this.selectedTags = [].concat(_this.selectedTags);
19110
19117
  if (typeof value === 'string' && !!value) {
19111
- _this.selectedTags.push(value);
19118
+ if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
19119
+ _this.selectedTags.push(value);
19120
+ isTagAdded = true;
19121
+ } else if (!props.strictSelection) {
19122
+ _this.selectedTags.push(value);
19123
+ isTagAdded = true;
19124
+ }
19112
19125
  } else if (Array.isArray(value) && !isEqual$4(_this.selectedTags, value)) {
19113
- _this.selectedTags = value;
19126
+ if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
19127
+ _this.selectedTags = value;
19128
+ isTagAdded = true;
19129
+ } else if (!props.strictSelection) {
19130
+ _this.selectedTags.push(value);
19131
+ isTagAdded = true;
19132
+ }
19114
19133
  }
19115
19134
  } else if (value) {
19116
- _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
19135
+ if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
19136
+ _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
19137
+ isTagAdded = true;
19138
+ } else if (!props.strictSelection) {
19139
+ _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
19140
+ isTagAdded = true;
19141
+ }
19142
+ }
19143
+ if (props.strictSelection && !isTagAdded) {
19144
+ _this.currentValue = value;
19145
+ } else {
19146
+ _this.currentValue = '';
19117
19147
  }
19118
- _this.currentValue = '';
19119
19148
  } else {
19120
19149
  _this.currentValue = value;
19121
19150
  }
@@ -19135,7 +19164,7 @@
19135
19164
  if (props.strictSelection && props.autosuggest) {
19136
19165
  if (cause === lib_7.SUGGESTION_SELECT || props.value !== undefined) {
19137
19166
  _this.updateQueryHandler(props.componentId, queryHandlerValue, props);
19138
- } else if (_this.currentValue !== '') {
19167
+ } else if (_this.currentValue !== '' && !props.strictSelection) {
19139
19168
  _this.setValue('', true);
19140
19169
  }
19141
19170
  } else {
@@ -19264,17 +19293,17 @@
19264
19293
  var targetValue = event.target.value;
19265
19294
  var _this$$props2 = this.$props,
19266
19295
  value = _this$$props2.value,
19267
- strictSelection = _this$$props2.strictSelection,
19268
- size = _this$$props2.size,
19269
- autosuggest = _this$$props2.autosuggest;
19296
+ size = _this$$props2.size;
19270
19297
  if (value !== undefined) {
19271
19298
  this.isPending = true;
19272
19299
  }
19273
19300
  // if a suggestion was selected, delegate the handling to suggestion handler
19274
19301
  if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
19275
19302
  this.isPending = false;
19276
- this.setValue(this.$options.isTagsMode && autosuggest && strictSelection ? '' : targetValue, true, this.$props, undefined, false);
19277
- this.onValueSelectedHandler(targetValue, lib_7.ENTER_PRESS);
19303
+ if (!this.isSuggestionSelected) {
19304
+ this.setValue(targetValue, true, this.$props, undefined, false);
19305
+ this.onValueSelectedHandler(targetValue, lib_7.ENTER_PRESS);
19306
+ }
19278
19307
  }
19279
19308
  // Need to review
19280
19309
  this.$emit('keyDown', event, this.triggerQuery);
@@ -19310,11 +19339,16 @@
19310
19339
  }
19311
19340
  },
19312
19341
  onSuggestionSelected: function onSuggestionSelected(suggestion) {
19342
+ var _this3 = this;
19313
19343
  var value = this.$props.value;
19314
19344
  // Record analytics for selected suggestions
19315
19345
  this.triggerClickAnalytics(suggestion._click_id);
19316
19346
  if (value === undefined) {
19317
19347
  this.setValue(suggestion.value, true, this.$props, lib_7.SUGGESTION_SELECT);
19348
+ this.isSuggestionSelected = true;
19349
+ setTimeout(function () {
19350
+ _this3.isSuggestionSelected = false;
19351
+ }, 50);
19318
19352
  } else if (this.$options.isTagsMode) {
19319
19353
  var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
19320
19354
  if (this.selectedTags.includes(suggestion.value)) {
@@ -19420,7 +19454,7 @@
19420
19454
  return null;
19421
19455
  },
19422
19456
  renderTag: function renderTag(item) {
19423
- var _this3 = this;
19457
+ var _this4 = this;
19424
19458
  var h = this.$createElement;
19425
19459
  var innerClass = this.$props.innerClass;
19426
19460
  return h(TagItem, {
@@ -19433,7 +19467,7 @@
19433
19467
  "class": "close-icon",
19434
19468
  "on": {
19435
19469
  "click": function click() {
19436
- return _this3.clearTag(item);
19470
+ return _this4.clearTag(item);
19437
19471
  }
19438
19472
  }
19439
19473
  }, [h(CancelSvg)])]);
@@ -19455,7 +19489,7 @@
19455
19489
  }
19456
19490
  },
19457
19491
  renderTags: function renderTags() {
19458
- var _this4 = this;
19492
+ var _this5 = this;
19459
19493
  var h = this.$createElement;
19460
19494
  if (!Array.isArray(this.selectedTags)) {
19461
19495
  return null;
@@ -19468,7 +19502,7 @@
19468
19502
  handleClear: this.clearTag,
19469
19503
  handleClearAll: this.clearAllTags
19470
19504
  }) : h(TagsContainer, [tagsList.map(function (item) {
19471
- return _this4.renderTag(item);
19505
+ return _this5.renderTag(item);
19472
19506
  }), shouldRenderClearAllTag && h(TagItem, {
19473
19507
  "class": getClassName$3(this.$props.innerClass, 'selected-tag') || ''
19474
19508
  }, [h("span", ["Clear All"]), h("span", {
@@ -19547,7 +19581,7 @@
19547
19581
  (_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
19548
19582
  },
19549
19583
  listenForFocusShortcuts: function listenForFocusShortcuts() {
19550
- var _this5 = this;
19584
+ var _this6 = this;
19551
19585
  var _this$$props$focusSho = this.$props.focusShortcuts,
19552
19586
  focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
19553
19587
  if (isEmpty(focusShortcuts)) {
@@ -19562,7 +19596,7 @@
19562
19596
  function (event, handler) {
19563
19597
  // Prevent the default refresh event under WINDOWS system
19564
19598
  event.preventDefault();
19565
- _this5.focusSearchBox(event);
19599
+ _this6.focusSearchBox(event);
19566
19600
  });
19567
19601
 
19568
19602
  // if one of modifier keys are used, they are handled below
@@ -19572,7 +19606,7 @@
19572
19606
  for (var index = 0; index < modifierKeys.length; index += 1) {
19573
19607
  var element = modifierKeys[index];
19574
19608
  if (hotkeys[element]) {
19575
- _this5.focusSearchBox(event);
19609
+ _this6.focusSearchBox(event);
19576
19610
  break;
19577
19611
  }
19578
19612
  }
@@ -19580,7 +19614,7 @@
19580
19614
  }
19581
19615
  },
19582
19616
  render: function render() {
19583
- var _this6 = this;
19617
+ var _this7 = this;
19584
19618
  var h = arguments[0];
19585
19619
  var _this$$props6 = this.$props,
19586
19620
  theme = _this$$props6.theme,
@@ -19615,14 +19649,14 @@
19615
19649
  highlightedIndex = _ref4.highlightedIndex,
19616
19650
  setHighlightedIndex = _ref4.setHighlightedIndex;
19617
19651
  var renderSuggestionsContainer = function renderSuggestionsContainer() {
19618
- return h("div", [_this6.hasCustomRenderer && _this6.getComponent({
19652
+ return h("div", [_this7.hasCustomRenderer && _this7.getComponent({
19619
19653
  isOpen: isOpen,
19620
19654
  getItemProps: getItemProps,
19621
19655
  getItemEvents: getItemEvents,
19622
19656
  highlightedIndex: highlightedIndex
19623
- }), _this6.renderErrorComponent(), !_this6.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
19624
- "class": suggestions$1(_this6.themePreset, theme) + " " + getClassName$3(_this6.$props.innerClass, 'list')
19625
- }, [_this6.suggestionsList.slice(0, size || 10).map(function (item, index) {
19657
+ }), _this7.renderErrorComponent(), !_this7.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
19658
+ "class": suggestions$1(_this7.themePreset, theme) + " " + getClassName$3(_this7.$props.innerClass, 'list')
19659
+ }, [_this7.suggestionsList.slice(0, size || 10).map(function (item, index) {
19626
19660
  return h("li", {
19627
19661
  "domProps": _extends({}, getItemProps({
19628
19662
  item: item
@@ -19632,15 +19666,15 @@
19632
19666
  })),
19633
19667
  "key": index + 1 + "-" + item.value,
19634
19668
  "style": {
19635
- backgroundColor: _this6.getBackgroundColor(highlightedIndex, index)
19669
+ backgroundColor: _this7.getBackgroundColor(highlightedIndex, index)
19636
19670
  }
19637
19671
  }, [h(SuggestionItem, {
19638
19672
  "attrs": {
19639
- "currentValue": _this6.currentValue,
19673
+ "currentValue": _this7.currentValue,
19640
19674
  "suggestion": item
19641
19675
  }
19642
19676
  })]);
19643
- }), _this6.defaultSearchSuggestions.map(function (sugg, index) {
19677
+ }), _this7.defaultSearchSuggestions.map(function (sugg, index) {
19644
19678
  return h("li", {
19645
19679
  "domProps": _extends({}, getItemProps({
19646
19680
  item: sugg
@@ -19648,9 +19682,9 @@
19648
19682
  "on": _extends({}, getItemEvents({
19649
19683
  item: sugg
19650
19684
  })),
19651
- "key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
19685
+ "key": _this7.suggestionsList.length + index + 1 + "-" + sugg.value,
19652
19686
  "style": {
19653
- backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
19687
+ backgroundColor: _this7.getBackgroundColor(highlightedIndex, _this7.suggestionsList.length + index),
19654
19688
  justifyContent: 'flex-start'
19655
19689
  }
19656
19690
  }, [h("div", {
@@ -19659,28 +19693,28 @@
19659
19693
  }
19660
19694
  }, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
19661
19695
  "attrs": {
19662
- "className": getClassName$3(_this6.$props.innerClass, 'recent-search-icon') || null,
19696
+ "className": getClassName$3(_this7.$props.innerClass, 'recent-search-icon') || null,
19663
19697
  "icon": recentSearchesIcon,
19664
19698
  "type": "recent-search-icon"
19665
19699
  }
19666
19700
  }), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
19667
19701
  "attrs": {
19668
- "className": getClassName$3(_this6.$props.innerClass, 'popular-search-icon') || null,
19702
+ "className": getClassName$3(_this7.$props.innerClass, 'popular-search-icon') || null,
19669
19703
  "icon": popularSearchesIcon,
19670
19704
  "type": "popular-search-icon"
19671
19705
  }
19672
19706
  })]), h(SuggestionItem, {
19673
19707
  "attrs": {
19674
- "currentValue": _this6.currentValue,
19708
+ "currentValue": _this7.currentValue,
19675
19709
  "suggestion": sugg
19676
19710
  }
19677
19711
  })]);
19678
- }), hasQuerySuggestionsRenderer(_this6) ? _this6.getComponent({
19712
+ }), hasQuerySuggestionsRenderer(_this7) ? _this7.getComponent({
19679
19713
  isOpen: isOpen,
19680
19714
  getItemProps: getItemProps,
19681
19715
  getItemEvents: getItemEvents,
19682
19716
  highlightedIndex: highlightedIndex
19683
- }, true) : _this6.topSuggestions.map(function (sugg, index) {
19717
+ }, true) : _this7.topSuggestions.map(function (sugg, index) {
19684
19718
  return h("li", {
19685
19719
  "domProps": _extends({}, getItemProps({
19686
19720
  item: sugg
@@ -19688,9 +19722,9 @@
19688
19722
  "on": _extends({}, getItemEvents({
19689
19723
  item: sugg
19690
19724
  })),
19691
- "key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
19725
+ "key": _this7.suggestionsList.length + index + 1 + "-" + sugg.value,
19692
19726
  "style": {
19693
- backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
19727
+ backgroundColor: _this7.getBackgroundColor(highlightedIndex, _this7.suggestionsList.length + index),
19694
19728
  justifyContent: 'flex-start'
19695
19729
  }
19696
19730
  }, [h("div", {
@@ -19699,58 +19733,58 @@
19699
19733
  }
19700
19734
  }, [h(CustomSvg, {
19701
19735
  "attrs": {
19702
- "className": getClassName$3(_this6.$props.innerClass, 'popular-search-icon') || null,
19736
+ "className": getClassName$3(_this7.$props.innerClass, 'popular-search-icon') || null,
19703
19737
  "icon": popularSearchesIcon,
19704
19738
  "type": "popular-search-icon"
19705
19739
  }
19706
19740
  })]), h(SuggestionItem, {
19707
19741
  "attrs": {
19708
- "currentValue": _this6.currentValue,
19742
+ "currentValue": _this7.currentValue,
19709
19743
  "suggestion": sugg
19710
19744
  }
19711
19745
  })]);
19712
- })]) : _this6.renderNoSuggestions(_this6.suggestionsList)]);
19746
+ })]) : _this7.renderNoSuggestions(_this7.suggestionsList)]);
19713
19747
  };
19714
19748
  return h("div", {
19715
19749
  "class": suggestionsContainer
19716
- }, [h(InputGroup, [_this6.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
19750
+ }, [h(InputGroup, [_this7.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
19717
19751
  "attrs": {
19718
- "id": _this6.$props.componentId + "-input",
19719
- "showIcon": _this6.$props.showIcon,
19720
- "showClear": _this6.$props.showClear,
19721
- "iconPosition": _this6.$props.iconPosition,
19722
- "placeholder": _this6.$props.placeholder,
19723
- "autoFocus": _this6.$props.autoFocus,
19724
- "themePreset": _this6.themePreset,
19752
+ "id": _this7.$props.componentId + "-input",
19753
+ "showIcon": _this7.$props.showIcon,
19754
+ "showClear": _this7.$props.showClear,
19755
+ "iconPosition": _this7.$props.iconPosition,
19756
+ "placeholder": _this7.$props.placeholder,
19757
+ "autoFocus": _this7.$props.autoFocus,
19758
+ "themePreset": _this7.themePreset,
19725
19759
  "autocomplete": "off"
19726
19760
  },
19727
- "ref": _this6.$props.innerRef,
19728
- "class": getClassName$3(_this6.$props.innerClass, 'input'),
19761
+ "ref": _this7.$props.innerRef,
19762
+ "class": getClassName$3(_this7.$props.innerClass, 'input'),
19729
19763
  "on": _extends({}, getInputEvents({
19730
- onInput: _this6.onInputChange,
19764
+ onInput: _this7.onInputChange,
19731
19765
  onBlur: function onBlur(e) {
19732
- _this6.$emit('blur', e, _this6.triggerQuery);
19766
+ _this7.$emit('blur', e, _this7.triggerQuery);
19733
19767
  },
19734
- onFocus: _this6.handleFocus,
19768
+ onFocus: _this7.handleFocus,
19735
19769
  onKeyPress: function onKeyPress(e) {
19736
- _this6.$emit('keyPress', e, _this6.triggerQuery);
19737
- _this6.$emit('key-press', e, _this6.triggerQuery);
19770
+ _this7.$emit('keyPress', e, _this7.triggerQuery);
19771
+ _this7.$emit('key-press', e, _this7.triggerQuery);
19738
19772
  },
19739
19773
  onKeyDown: function onKeyDown(e) {
19740
- return _this6.handleKeyDown(e, highlightedIndex);
19774
+ return _this7.handleKeyDown(e, highlightedIndex);
19741
19775
  },
19742
19776
  onKeyUp: function onKeyUp(e) {
19743
- _this6.$emit('keyUp', e, _this6.triggerQuery);
19744
- _this6.$emit('key-up', e, _this6.triggerQuery);
19777
+ _this7.$emit('keyUp', e, _this7.triggerQuery);
19778
+ _this7.$emit('key-up', e, _this7.triggerQuery);
19745
19779
  },
19746
19780
  onClick: function onClick() {
19747
19781
  setHighlightedIndex(null);
19748
19782
  }
19749
19783
  })),
19750
19784
  "domProps": _extends({}, getInputProps({
19751
- value: _this6.$data.currentValue === null || typeof _this6.$data.currentValue !== 'string' ? '' : _this6.$data.currentValue
19785
+ value: _this7.$data.currentValue === null || typeof _this7.$data.currentValue !== 'string' ? '' : _this7.$data.currentValue
19752
19786
  }))
19753
- }), _this6.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this6.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this6.renderTags()]);
19787
+ }), _this7.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this7.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this7.renderTags()]);
19754
19788
  }
19755
19789
  }
19756
19790
  }) : h("div", {
@@ -19766,22 +19800,22 @@
19766
19800
  },
19767
19801
  "on": _extends({}, {
19768
19802
  blur: function blur(e) {
19769
- _this6.$emit('blur', e, _this6.triggerQuery);
19803
+ _this7.$emit('blur', e, _this7.triggerQuery);
19770
19804
  },
19771
19805
  keypress: function keypress(e) {
19772
- _this6.$emit('keyPress', e, _this6.triggerQuery);
19773
- _this6.$emit('key-press', e, _this6.triggerQuery);
19806
+ _this7.$emit('keyPress', e, _this7.triggerQuery);
19807
+ _this7.$emit('key-press', e, _this7.triggerQuery);
19774
19808
  },
19775
19809
  input: this.onInputChange,
19776
19810
  focus: function focus(e) {
19777
- _this6.$emit('focus', e, _this6.triggerQuery);
19811
+ _this7.$emit('focus', e, _this7.triggerQuery);
19778
19812
  },
19779
19813
  keydown: function keydown(e) {
19780
- _this6.handleKeyDown(e, null);
19814
+ _this7.handleKeyDown(e, null);
19781
19815
  },
19782
19816
  keyup: function keyup(e) {
19783
- _this6.$emit('keyUp', e, _this6.triggerQuery);
19784
- _this6.$emit('key-up', e, _this6.triggerQuery);
19817
+ _this7.$emit('keyUp', e, _this7.triggerQuery);
19818
+ _this7.$emit('key-up', e, _this7.triggerQuery);
19785
19819
  }
19786
19820
  }),
19787
19821
  "domProps": _extends({}, {
@@ -20026,7 +20060,8 @@
20026
20060
  currentValue: '',
20027
20061
  selectedTags: [],
20028
20062
  isOpen: false,
20029
- normalizedSuggestions: []
20063
+ normalizedSuggestions: [],
20064
+ isSuggestionSelected: false
20030
20065
  };
20031
20066
  this.internalComponent = props.componentId + "__internal";
20032
20067
  return this.__state;
@@ -20226,7 +20261,9 @@
20226
20261
  if (this.$options.isTagsMode) {
20227
20262
  cause = lib_7.SUGGESTION_SELECT;
20228
20263
  }
20229
- this.setValue(newVal || '', true, this.$props, cause);
20264
+ if (!this.isSuggestionSelected) {
20265
+ this.setValue(newVal || '', true, this.$props, cause);
20266
+ }
20230
20267
  }
20231
20268
  },
20232
20269
  focusShortcuts: function focusShortcuts() {
@@ -20355,10 +20392,11 @@
20355
20392
  categoryValue = undefined;
20356
20393
  }
20357
20394
  var performUpdate = function performUpdate() {
20395
+ var isTagAdded = false;
20358
20396
  if (_this.$options.isTagsMode && isEqual$5(value, _this.selectedTags)) {
20359
20397
  return;
20360
20398
  }
20361
- if (_this.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
20399
+ if (_this.$options.isTagsMode) {
20362
20400
  if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
20363
20401
  // check if value already present in selectedTags
20364
20402
  if (typeof value === 'string' && _this.selectedTags.includes(value)) {
@@ -20367,14 +20405,36 @@
20367
20405
  }
20368
20406
  _this.selectedTags = [].concat(_this.selectedTags);
20369
20407
  if (typeof value === 'string' && !!value) {
20370
- _this.selectedTags.push(value);
20408
+ if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
20409
+ _this.selectedTags.push(value);
20410
+ isTagAdded = true;
20411
+ } else if (!props.strictSelection) {
20412
+ _this.selectedTags.push(value);
20413
+ isTagAdded = true;
20414
+ }
20371
20415
  } else if (Array.isArray(value) && !isEqual$5(_this.selectedTags, value)) {
20372
- _this.selectedTags = value;
20416
+ if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
20417
+ _this.selectedTags = value;
20418
+ isTagAdded = true;
20419
+ } else if (!props.strictSelection) {
20420
+ _this.selectedTags.push(value);
20421
+ isTagAdded = true;
20422
+ }
20373
20423
  }
20374
20424
  } else if (value) {
20375
- _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
20425
+ if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
20426
+ _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
20427
+ isTagAdded = true;
20428
+ } else if (!props.strictSelection) {
20429
+ _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
20430
+ isTagAdded = true;
20431
+ }
20432
+ }
20433
+ if (props.strictSelection && !isTagAdded) {
20434
+ _this.currentValue = value;
20435
+ } else {
20436
+ _this.currentValue = '';
20376
20437
  }
20377
- _this.currentValue = '';
20378
20438
  } else {
20379
20439
  _this.currentValue = decodeHtml(value);
20380
20440
  }
@@ -20387,16 +20447,22 @@
20387
20447
  if (toggleIsOpen) {
20388
20448
  _this.isOpen = false;
20389
20449
  }
20390
- if (typeof _this.currentValue === 'string') _this.triggerDefaultQuery(_this.currentValue);
20450
+ if (typeof _this.currentValue === 'string') {
20451
+ if (_this.$options.isTagsMode && props.strictSelection && isTagAdded) {
20452
+ _this.triggerDefaultQuery(_this.currentValue);
20453
+ } else if (!_this.$options.isTagsMode) {
20454
+ _this.triggerDefaultQuery(_this.currentValue);
20455
+ }
20456
+ }
20391
20457
  } // in case of strict selection only SUGGESTION_SELECT should be able
20392
20458
  // to set the query otherwise the value should reset
20393
- if (props.strictSelection) {
20459
+ if (_this.$options.isTagsMode && props.strictSelection && isTagAdded) {
20394
20460
  if (cause === lib_7.SUGGESTION_SELECT || (_this.$options.isTagsMode ? _this.selectedTags.length === 0 : value === '')) {
20395
20461
  _this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
20396
- } else {
20462
+ } else if (!props.strictSelection) {
20397
20463
  _this.setValue('', true);
20398
20464
  }
20399
- } else if (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE) {
20465
+ } else if (!_this.$options.isTagsMode && (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE)) {
20400
20466
  _this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
20401
20467
  }
20402
20468
  } else {
@@ -20515,6 +20581,7 @@
20515
20581
  this.onValueSelectedHandler('', lib_7.CLEAR_VALUE);
20516
20582
  },
20517
20583
  handleKeyDown: function handleKeyDown(event, highlightedIndex) {
20584
+ var _this2 = this;
20518
20585
  if (highlightedIndex === void 0) {
20519
20586
  highlightedIndex = null;
20520
20587
  }
@@ -20523,7 +20590,11 @@
20523
20590
  if (this.$props.autosuggest === false) {
20524
20591
  this.enterButtonOnClick();
20525
20592
  } else if (highlightedIndex === null) {
20526
- this.setValue(event.target.value, true, this.$props, this.$options.isTagsMode ? lib_7.SUGGESTION_SELECT : undefined // to handle tags
20593
+ this.isSuggestionSelected = true;
20594
+ setTimeout(function () {
20595
+ _this2.isSuggestionSelected = false;
20596
+ }, 50);
20597
+ this.setValue(event.target.value, true, this.$props, undefined // to handle tags
20527
20598
  );
20528
20599
 
20529
20600
  this.onValueSelectedHandler(event.target.value, lib_7.ENTER_PRESS);
@@ -20535,7 +20606,7 @@
20535
20606
  this.$emit('key-down', event, this.triggerQuery);
20536
20607
  },
20537
20608
  onInputChange: function onInputChange(e) {
20538
- var _this2 = this;
20609
+ var _this3 = this;
20539
20610
  var inputValue = e.target.value;
20540
20611
  if (!this.$data.isOpen && this.$props.autosuggest) {
20541
20612
  this.isOpen = true;
@@ -20546,7 +20617,7 @@
20546
20617
  } else {
20547
20618
  this.$emit('change', inputValue, function (_ref3) {
20548
20619
  var isOpen = _ref3.isOpen;
20549
- return _this2.triggerQuery({
20620
+ return _this3.triggerQuery({
20550
20621
  defaultQuery: true,
20551
20622
  customQuery: true,
20552
20623
  value: inputValue,
@@ -20556,7 +20627,7 @@
20556
20627
  }
20557
20628
  },
20558
20629
  onSuggestionSelected: function onSuggestionSelected(suggestion) {
20559
- var _this3 = this;
20630
+ var _this4 = this;
20560
20631
  this.isOpen = false;
20561
20632
  var value = this.$props.value;
20562
20633
  // Record analytics for selected suggestions
@@ -20577,10 +20648,10 @@
20577
20648
  this.setValue(emitValue, true, this.$props, lib_7.SUGGESTION_SELECT, false, suggestion._category);
20578
20649
  this.$emit('change', emitValue, function (_ref4) {
20579
20650
  var isOpen = _ref4.isOpen;
20580
- return _this3.triggerQuery(_extends({
20651
+ return _this4.triggerQuery(_extends({
20581
20652
  isOpen: isOpen,
20582
20653
  value: emitValue
20583
- }, !_this3.$options.isTagsMode && {
20654
+ }, !_this4.$options.isTagsMode && {
20584
20655
  categoryValue: suggestion._category
20585
20656
  }));
20586
20657
  });
@@ -20695,7 +20766,7 @@
20695
20766
  });
20696
20767
  },
20697
20768
  renderEnterButtonElement: function renderEnterButtonElement() {
20698
- var _this4 = this;
20769
+ var _this5 = this;
20699
20770
  var h = this.$createElement;
20700
20771
  var _this$$props4 = this.$props,
20701
20772
  enterButton = _this$$props4.enterButton,
@@ -20704,7 +20775,7 @@
20704
20775
  if (enterButton) {
20705
20776
  var getEnterButtonMarkup = function getEnterButtonMarkup() {
20706
20777
  if (renderEnterButton) {
20707
- return renderEnterButton(_this4.enterButtonOnClick);
20778
+ return renderEnterButton(_this5.enterButtonOnClick);
20708
20779
  }
20709
20780
  return h(Button, {
20710
20781
  "class": "enter-btn " + getClassName$4(innerClass, 'enter-button'),
@@ -20712,7 +20783,7 @@
20712
20783
  "primary": true
20713
20784
  },
20714
20785
  "on": {
20715
- "click": _this4.enterButtonOnClick
20786
+ "click": _this5.enterButtonOnClick
20716
20787
  }
20717
20788
  }, ["Search"]);
20718
20789
  };
@@ -20779,7 +20850,7 @@
20779
20850
  (_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
20780
20851
  },
20781
20852
  listenForFocusShortcuts: function listenForFocusShortcuts() {
20782
- var _this5 = this;
20853
+ var _this6 = this;
20783
20854
  var _this$$props$focusSho = this.$props.focusShortcuts,
20784
20855
  focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
20785
20856
  if (isEmpty(focusShortcuts)) {
@@ -20794,7 +20865,7 @@
20794
20865
  function (event, handler) {
20795
20866
  // Prevent the default refresh event under WINDOWS system
20796
20867
  event.preventDefault();
20797
- _this5.focusSearchBox(event);
20868
+ _this6.focusSearchBox(event);
20798
20869
  });
20799
20870
 
20800
20871
  // if one of modifier keys are used, they are handled below
@@ -20804,7 +20875,7 @@
20804
20875
  for (var index = 0; index < modifierKeys.length; index += 1) {
20805
20876
  var element = modifierKeys[index];
20806
20877
  if (hotkeys[element]) {
20807
- _this5.focusSearchBox(event);
20878
+ _this6.focusSearchBox(event);
20808
20879
  break;
20809
20880
  }
20810
20881
  }
@@ -20817,11 +20888,11 @@
20817
20888
  this.triggerDefaultQuery(value);
20818
20889
  },
20819
20890
  renderAutoFill: function renderAutoFill(suggestion) {
20820
- var _this6 = this;
20891
+ var _this7 = this;
20821
20892
  var h = this.$createElement;
20822
20893
  var handleAutoFillClick = function handleAutoFillClick(e) {
20823
20894
  e.stopPropagation();
20824
- _this6.onAutofillClick(suggestion);
20895
+ _this7.onAutofillClick(suggestion);
20825
20896
  };
20826
20897
  /* 👇 avoid showing autofill for category suggestions👇 */
20827
20898
  return suggestion._category ? null : h(AutoFillSvg, {
@@ -20831,7 +20902,7 @@
20831
20902
  });
20832
20903
  },
20833
20904
  renderTag: function renderTag(item) {
20834
- var _this7 = this;
20905
+ var _this8 = this;
20835
20906
  var h = this.$createElement;
20836
20907
  var innerClass = this.$props.innerClass;
20837
20908
  return h(TagItem, {
@@ -20844,7 +20915,7 @@
20844
20915
  "class": "close-icon",
20845
20916
  "on": {
20846
20917
  "click": function click() {
20847
- return _this7.clearTag(item);
20918
+ return _this8.clearTag(item);
20848
20919
  }
20849
20920
  }
20850
20921
  }, [h(CancelSvg)])]);
@@ -20866,7 +20937,7 @@
20866
20937
  }
20867
20938
  },
20868
20939
  renderTags: function renderTags() {
20869
- var _this8 = this;
20940
+ var _this9 = this;
20870
20941
  var h = this.$createElement;
20871
20942
  if (!Array.isArray(this.selectedTags)) {
20872
20943
  return null;
@@ -20879,7 +20950,7 @@
20879
20950
  handleClear: this.clearTag,
20880
20951
  handleClearAll: this.clearAllTags
20881
20952
  }) : h(TagsContainer, [tagsList.map(function (item) {
20882
- return _this8.renderTag(item);
20953
+ return _this9.renderTag(item);
20883
20954
  }), shouldRenderClearAllTag && h(TagItem, {
20884
20955
  "class": getClassName$4(this.$props.innerClass, 'selected-tag') || ''
20885
20956
  }, [h("span", ["Clear All"]), h("span", {
@@ -20895,7 +20966,7 @@
20895
20966
  }
20896
20967
  },
20897
20968
  render: function render() {
20898
- var _this9 = this;
20969
+ var _this10 = this;
20899
20970
  var h = arguments[0];
20900
20971
  var _this$$props6 = this.$props,
20901
20972
  theme = _this$$props6.theme,
@@ -20936,14 +21007,14 @@
20936
21007
  return null;
20937
21008
  }
20938
21009
  };
20939
- return h("div", [_this9.hasCustomRenderer && _this9.getComponent({
21010
+ return h("div", [_this10.hasCustomRenderer && _this10.getComponent({
20940
21011
  isOpen: isOpen,
20941
21012
  getItemProps: getItemProps,
20942
21013
  getItemEvents: getItemEvents,
20943
21014
  highlightedIndex: highlightedIndex
20944
- }), _this9.renderErrorComponent(), !_this9.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
20945
- "class": suggestions$1(_this9.themePreset, theme) + " " + getClassName$4(_this9.$props.innerClass, 'list')
20946
- }, [_this9.normalizedSuggestions.map(function (item, index) {
21015
+ }), _this10.renderErrorComponent(), !_this10.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
21016
+ "class": suggestions$1(_this10.themePreset, theme) + " " + getClassName$4(_this10.$props.innerClass, 'list')
21017
+ }, [_this10.normalizedSuggestions.map(function (item, index) {
20947
21018
  return renderItem ? h("li", {
20948
21019
  "domProps": _extends({}, getItemProps({
20949
21020
  item: item
@@ -20953,7 +21024,7 @@
20953
21024
  })),
20954
21025
  "key": index + 1 + "-" + item.value,
20955
21026
  "style": {
20956
- backgroundColor: _this9.getBackgroundColor(highlightedIndex, index),
21027
+ backgroundColor: _this10.getBackgroundColor(highlightedIndex, index),
20957
21028
  justifyContent: 'flex-start',
20958
21029
  alignItems: 'center'
20959
21030
  }
@@ -20966,7 +21037,7 @@
20966
21037
  })),
20967
21038
  "key": index + 1 + "-" + item.value,
20968
21039
  "style": {
20969
- backgroundColor: _this9.getBackgroundColor(highlightedIndex, index),
21040
+ backgroundColor: _this10.getBackgroundColor(highlightedIndex, index),
20970
21041
  justifyContent: 'flex-start',
20971
21042
  alignItems: 'center'
20972
21043
  }
@@ -20977,58 +21048,58 @@
20977
21048
  }
20978
21049
  }, [h(CustomSvg, {
20979
21050
  "attrs": {
20980
- "className": getClassName$4(_this9.$props.innerClass, item._suggestion_type + "-search-icon") || null,
21051
+ "className": getClassName$4(_this10.$props.innerClass, item._suggestion_type + "-search-icon") || null,
20981
21052
  "icon": getIcon(item._suggestion_type),
20982
21053
  "type": item._suggestion_type + "-search-icon"
20983
21054
  }
20984
21055
  })]), h(SuggestionItem, {
20985
21056
  "attrs": {
20986
- "currentValue": _this9.currentValue,
21057
+ "currentValue": _this10.currentValue,
20987
21058
  "suggestion": item
20988
21059
  }
20989
- }), _this9.renderAutoFill(item)]);
20990
- })]) : _this9.renderNoSuggestions(_this9.normalizedSuggestions)]);
21060
+ }), _this10.renderAutoFill(item)]);
21061
+ })]) : _this10.renderNoSuggestions(_this10.normalizedSuggestions)]);
20991
21062
  };
20992
21063
  return h("div", {
20993
21064
  "class": suggestionsContainer
20994
- }, [h(InputGroup, [_this9.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
21065
+ }, [h(InputGroup, [_this10.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
20995
21066
  "attrs": {
20996
- "id": _this9.$props.componentId + "-input",
20997
- "showIcon": _this9.$props.showIcon,
20998
- "showClear": _this9.$props.showClear,
20999
- "iconPosition": _this9.$props.iconPosition,
21000
- "placeholder": _this9.$props.placeholder,
21001
- "autoFocus": _this9.$props.autoFocus,
21002
- "themePreset": _this9.themePreset,
21067
+ "id": _this10.$props.componentId + "-input",
21068
+ "showIcon": _this10.$props.showIcon,
21069
+ "showClear": _this10.$props.showClear,
21070
+ "iconPosition": _this10.$props.iconPosition,
21071
+ "placeholder": _this10.$props.placeholder,
21072
+ "autoFocus": _this10.$props.autoFocus,
21073
+ "themePreset": _this10.themePreset,
21003
21074
  "autocomplete": "off"
21004
21075
  },
21005
- "ref": _this9.$props.innerRef,
21006
- "class": getClassName$4(_this9.$props.innerClass, 'input'),
21076
+ "ref": _this10.$props.innerRef,
21077
+ "class": getClassName$4(_this10.$props.innerClass, 'input'),
21007
21078
  "on": _extends({}, getInputEvents({
21008
- onInput: _this9.onInputChange,
21079
+ onInput: _this10.onInputChange,
21009
21080
  onBlur: function onBlur(e) {
21010
- _this9.$emit('blur', e, _this9.triggerQuery);
21081
+ _this10.$emit('blur', e, _this10.triggerQuery);
21011
21082
  },
21012
- onFocus: _this9.handleFocus,
21083
+ onFocus: _this10.handleFocus,
21013
21084
  onKeyPress: function onKeyPress(e) {
21014
- _this9.$emit('keyPress', e, _this9.triggerQuery);
21015
- _this9.$emit('key-press', e, _this9.triggerQuery);
21085
+ _this10.$emit('keyPress', e, _this10.triggerQuery);
21086
+ _this10.$emit('key-press', e, _this10.triggerQuery);
21016
21087
  },
21017
21088
  onKeyDown: function onKeyDown(e) {
21018
- return _this9.handleKeyDown(e, highlightedIndex);
21089
+ return _this10.handleKeyDown(e, highlightedIndex);
21019
21090
  },
21020
21091
  onKeyUp: function onKeyUp(e) {
21021
- _this9.$emit('keyUp', e, _this9.triggerQuery);
21022
- _this9.$emit('key-up', e, _this9.triggerQuery);
21092
+ _this10.$emit('keyUp', e, _this10.triggerQuery);
21093
+ _this10.$emit('key-up', e, _this10.triggerQuery);
21023
21094
  },
21024
21095
  onClick: function onClick() {
21025
21096
  setHighlightedIndex(null);
21026
21097
  }
21027
21098
  })),
21028
21099
  "domProps": _extends({}, getInputProps({
21029
- value: _this9.$data.currentValue === null ? '' : _this9.$data.currentValue
21100
+ value: _this10.$data.currentValue === null ? '' : _this10.$data.currentValue
21030
21101
  }))
21031
- }), _this9.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this9.renderInputAddonAfter(), _this9.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown(), _this9.renderTags()]);
21102
+ }), _this10.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this10.renderInputAddonAfter(), _this10.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown(), _this10.renderTags()]);
21032
21103
  }
21033
21104
  }
21034
21105
  }) : h("div", {
@@ -21044,20 +21115,20 @@
21044
21115
  },
21045
21116
  "on": _extends({}, {
21046
21117
  blur: function blur(e) {
21047
- _this9.$emit('blur', e, _this9.triggerQuery);
21118
+ _this10.$emit('blur', e, _this10.triggerQuery);
21048
21119
  },
21049
21120
  keypress: function keypress(e) {
21050
- _this9.$emit('keyPress', e, _this9.triggerQuery);
21051
- _this9.$emit('key-press', e, _this9.triggerQuery);
21121
+ _this10.$emit('keyPress', e, _this10.triggerQuery);
21122
+ _this10.$emit('key-press', e, _this10.triggerQuery);
21052
21123
  },
21053
21124
  input: this.onInputChange,
21054
21125
  focus: function focus(e) {
21055
- _this9.$emit('focus', e, _this9.triggerQuery);
21126
+ _this10.$emit('focus', e, _this10.triggerQuery);
21056
21127
  },
21057
21128
  keydown: this.handleKeyDown,
21058
21129
  keyup: function keyup(e) {
21059
- _this9.$emit('keyUp', e, _this9.triggerQuery);
21060
- _this9.$emit('key-up', e, _this9.triggerQuery);
21130
+ _this10.$emit('keyUp', e, _this10.triggerQuery);
21131
+ _this10.$emit('key-up', e, _this10.triggerQuery);
21061
21132
  }
21062
21133
  }),
21063
21134
  "domProps": _extends({}, {
@@ -34918,7 +34989,7 @@
34918
34989
  });
34919
34990
  }
34920
34991
 
34921
- var version = "1.35.1";
34992
+ var version = "1.35.3";
34922
34993
 
34923
34994
  var components$1 = [RLConnected, ResultCard, ResultList, ReactiveBase, DSConnected, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
34924
34995
  function install (Vue) {