@94ai/nf-search-form 3.2.40 → 3.2.44

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.
@@ -276,34 +276,6 @@ const TimeRange = __component__$4.exports;
276
276
  function createUniqueString(randomLength = 36) {
277
277
  return Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36);
278
278
  }
279
- function debounce(func, wait, immediate) {
280
- let timeout, args, context, timestamp, result;
281
- const later = function() {
282
- const last = +/* @__PURE__ */ new Date() - timestamp;
283
- if (last < wait && last > 0) {
284
- timeout = setTimeout(later, wait - last);
285
- } else {
286
- timeout = null;
287
- if (!immediate) {
288
- result = func.apply(context, args);
289
- if (!timeout)
290
- context = args = null;
291
- }
292
- }
293
- };
294
- return function(...args2) {
295
- context = this;
296
- timestamp = +/* @__PURE__ */ new Date();
297
- const callNow = immediate && !timeout;
298
- if (!timeout)
299
- timeout = setTimeout(later, wait);
300
- if (callNow) {
301
- result = func.apply(context, args2);
302
- context = args2 = null;
303
- }
304
- return result;
305
- };
306
- }
307
279
  function deepClone(source) {
308
280
  if (!source && typeof source !== "object") {
309
281
  throw new Error("error arguments shallowClone");
@@ -1435,7 +1407,7 @@ function lastChild(el, selector) {
1435
1407
  }
1436
1408
  return last || null;
1437
1409
  }
1438
- function index(el, selector) {
1410
+ function index$1(el, selector) {
1439
1411
  var index2 = 0;
1440
1412
  if (!el || !el.parentNode) {
1441
1413
  return -1;
@@ -1502,7 +1474,7 @@ function isRectEqual(rect1, rect2) {
1502
1474
  return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
1503
1475
  }
1504
1476
  var _throttleTimeout;
1505
- function throttle(callback, ms) {
1477
+ function throttle$1(callback, ms) {
1506
1478
  return function() {
1507
1479
  if (!_throttleTimeout) {
1508
1480
  var args = arguments, _this = this;
@@ -2052,8 +2024,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
2052
2024
  if (lastDownEl === target) {
2053
2025
  return;
2054
2026
  }
2055
- oldIndex = index(target);
2056
- oldDraggableIndex = index(target, options.draggable);
2027
+ oldIndex = index$1(target);
2028
+ oldDraggableIndex = index$1(target, options.draggable);
2057
2029
  if (typeof filter === "function") {
2058
2030
  if (filter.call(this, evt, target, this)) {
2059
2031
  _dispatchEvent({
@@ -2476,8 +2448,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
2476
2448
  return completedFired = true;
2477
2449
  }
2478
2450
  function changed() {
2479
- newIndex = index(dragEl);
2480
- newDraggableIndex = index(dragEl, options.draggable);
2451
+ newIndex = index$1(dragEl);
2452
+ newDraggableIndex = index$1(dragEl, options.draggable);
2481
2453
  _dispatchEvent({
2482
2454
  sortable: _this,
2483
2455
  name: "change",
@@ -2547,7 +2519,7 @@ Sortable.prototype = /** @lends Sortable.prototype */
2547
2519
  direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
2548
2520
  var sibling;
2549
2521
  if (direction !== 0) {
2550
- var dragIndex = index(dragEl);
2522
+ var dragIndex = index$1(dragEl);
2551
2523
  do {
2552
2524
  dragIndex -= direction;
2553
2525
  sibling = parentEl.children[dragIndex];
@@ -2609,14 +2581,14 @@ Sortable.prototype = /** @lends Sortable.prototype */
2609
2581
  },
2610
2582
  _onDrop: function _onDrop(evt) {
2611
2583
  var el = this.el, options = this.options;
2612
- newIndex = index(dragEl);
2613
- newDraggableIndex = index(dragEl, options.draggable);
2584
+ newIndex = index$1(dragEl);
2585
+ newDraggableIndex = index$1(dragEl, options.draggable);
2614
2586
  pluginEvent2("drop", this, {
2615
2587
  evt
2616
2588
  });
2617
2589
  parentEl = dragEl && dragEl.parentNode;
2618
- newIndex = index(dragEl);
2619
- newDraggableIndex = index(dragEl, options.draggable);
2590
+ newIndex = index$1(dragEl);
2591
+ newDraggableIndex = index$1(dragEl, options.draggable);
2620
2592
  if (Sortable.eventCanceled) {
2621
2593
  this._nulling();
2622
2594
  return;
@@ -2956,7 +2928,7 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
2956
2928
  return 0;
2957
2929
  }
2958
2930
  function _getInsertDirection(target) {
2959
- if (index(dragEl) < index(target)) {
2931
+ if (index$1(dragEl) < index$1(target)) {
2960
2932
  return 1;
2961
2933
  } else {
2962
2934
  return -1;
@@ -3000,11 +2972,11 @@ Sortable.utils = {
3000
2972
  return !!closest(el, selector, el, false);
3001
2973
  },
3002
2974
  extend,
3003
- throttle,
2975
+ throttle: throttle$1,
3004
2976
  closest,
3005
2977
  toggleClass,
3006
2978
  clone,
3007
- index,
2979
+ index: index$1,
3008
2980
  nextTick: _nextTick,
3009
2981
  cancelNextTick: _cancelNextTick,
3010
2982
  detectDirection: _detectDirection,
@@ -3130,7 +3102,7 @@ function clearAutoScrolls() {
3130
3102
  function clearPointerElemChangedInterval() {
3131
3103
  clearInterval(pointerElemChangedInterval);
3132
3104
  }
3133
- var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
3105
+ var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
3134
3106
  if (!options.scroll)
3135
3107
  return;
3136
3108
  var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
@@ -3321,8 +3293,8 @@ function swapNodes(n1, n2) {
3321
3293
  var p1 = n1.parentNode, p2 = n2.parentNode, i1, i2;
3322
3294
  if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1))
3323
3295
  return;
3324
- i1 = index(n1);
3325
- i2 = index(n2);
3296
+ i1 = index$1(n1);
3297
+ i2 = index$1(n2);
3326
3298
  if (p1.isEqualNode(p2) && i1 < i2) {
3327
3299
  i2++;
3328
3300
  }
@@ -3432,7 +3404,7 @@ function MultiDragPlugin() {
3432
3404
  multiDragSortable.multiDrag._deselectMultiDrag();
3433
3405
  }
3434
3406
  multiDragElements.forEach(function(multiDragElement) {
3435
- multiDragElement.sortableIndex = index(multiDragElement);
3407
+ multiDragElement.sortableIndex = index$1(multiDragElement);
3436
3408
  });
3437
3409
  multiDragElements = multiDragElements.sort(function(a, b) {
3438
3410
  return a.sortableIndex - b.sortableIndex;
@@ -3578,7 +3550,7 @@ function MultiDragPlugin() {
3578
3550
  originalEvt: evt
3579
3551
  });
3580
3552
  if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {
3581
- var lastIndex = index(lastMultiDragSelect), currentIndex = index(dragEl$1);
3553
+ var lastIndex = index$1(lastMultiDragSelect), currentIndex = index$1(dragEl$1);
3582
3554
  if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {
3583
3555
  var n, i;
3584
3556
  if (currentIndex > lastIndex) {
@@ -3620,7 +3592,7 @@ function MultiDragPlugin() {
3620
3592
  }
3621
3593
  if (dragStarted && this.isMultiDrag) {
3622
3594
  if ((parentEl2[expando].options.sort || parentEl2 !== rootEl2) && multiDragElements.length > 1) {
3623
- var dragRect = getRect(dragEl$1), multiDragIndex = index(dragEl$1, ":not(." + this.options.selectedClass + ")");
3595
+ var dragRect = getRect(dragEl$1), multiDragIndex = index$1(dragEl$1, ":not(." + this.options.selectedClass + ")");
3624
3596
  if (!initialFolding && options.animation)
3625
3597
  dragEl$1.thisAnimationDuration = null;
3626
3598
  toSortable.captureAnimationState();
@@ -3648,10 +3620,10 @@ function MultiDragPlugin() {
3648
3620
  }
3649
3621
  multiDragIndex++;
3650
3622
  });
3651
- if (oldIndex2 === index(dragEl$1)) {
3623
+ if (oldIndex2 === index$1(dragEl$1)) {
3652
3624
  var update = false;
3653
3625
  multiDragElements.forEach(function(multiDragElement) {
3654
- if (multiDragElement.sortableIndex !== index(multiDragElement)) {
3626
+ if (multiDragElement.sortableIndex !== index$1(multiDragElement)) {
3655
3627
  update = true;
3656
3628
  return;
3657
3629
  }
@@ -3762,9 +3734,9 @@ function MultiDragPlugin() {
3762
3734
  if (folding && multiDragElement !== dragEl$1) {
3763
3735
  newIndex2 = -1;
3764
3736
  } else if (folding) {
3765
- newIndex2 = index(multiDragElement, ":not(." + _this3.options.selectedClass + ")");
3737
+ newIndex2 = index$1(multiDragElement, ":not(." + _this3.options.selectedClass + ")");
3766
3738
  } else {
3767
- newIndex2 = index(multiDragElement);
3739
+ newIndex2 = index$1(multiDragElement);
3768
3740
  }
3769
3741
  newIndicies.push({
3770
3742
  multiDragElement,
@@ -6438,6 +6410,502 @@ var _sfc_render$1 = function render5() {
6438
6410
  var _sfc_staticRenderFns$1 = [];
6439
6411
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
6440
6412
  const ColumnCheckDrawer = __component__$1.exports;
6413
+ var MapShim = function() {
6414
+ if (typeof Map !== "undefined") {
6415
+ return Map;
6416
+ }
6417
+ function getIndex(arr, key) {
6418
+ var result = -1;
6419
+ arr.some(function(entry, index2) {
6420
+ if (entry[0] === key) {
6421
+ result = index2;
6422
+ return true;
6423
+ }
6424
+ return false;
6425
+ });
6426
+ return result;
6427
+ }
6428
+ return (
6429
+ /** @class */
6430
+ function() {
6431
+ function class_1() {
6432
+ this.__entries__ = [];
6433
+ }
6434
+ Object.defineProperty(class_1.prototype, "size", {
6435
+ /**
6436
+ * @returns {boolean}
6437
+ */
6438
+ get: function() {
6439
+ return this.__entries__.length;
6440
+ },
6441
+ enumerable: true,
6442
+ configurable: true
6443
+ });
6444
+ class_1.prototype.get = function(key) {
6445
+ var index2 = getIndex(this.__entries__, key);
6446
+ var entry = this.__entries__[index2];
6447
+ return entry && entry[1];
6448
+ };
6449
+ class_1.prototype.set = function(key, value) {
6450
+ var index2 = getIndex(this.__entries__, key);
6451
+ if (~index2) {
6452
+ this.__entries__[index2][1] = value;
6453
+ } else {
6454
+ this.__entries__.push([key, value]);
6455
+ }
6456
+ };
6457
+ class_1.prototype.delete = function(key) {
6458
+ var entries = this.__entries__;
6459
+ var index2 = getIndex(entries, key);
6460
+ if (~index2) {
6461
+ entries.splice(index2, 1);
6462
+ }
6463
+ };
6464
+ class_1.prototype.has = function(key) {
6465
+ return !!~getIndex(this.__entries__, key);
6466
+ };
6467
+ class_1.prototype.clear = function() {
6468
+ this.__entries__.splice(0);
6469
+ };
6470
+ class_1.prototype.forEach = function(callback, ctx) {
6471
+ if (ctx === void 0) {
6472
+ ctx = null;
6473
+ }
6474
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
6475
+ var entry = _a[_i];
6476
+ callback.call(ctx, entry[1], entry[0]);
6477
+ }
6478
+ };
6479
+ return class_1;
6480
+ }()
6481
+ );
6482
+ }();
6483
+ var isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && window.document === document;
6484
+ var global$1 = function() {
6485
+ if (typeof global !== "undefined" && global.Math === Math) {
6486
+ return global;
6487
+ }
6488
+ if (typeof self !== "undefined" && self.Math === Math) {
6489
+ return self;
6490
+ }
6491
+ if (typeof window !== "undefined" && window.Math === Math) {
6492
+ return window;
6493
+ }
6494
+ return Function("return this")();
6495
+ }();
6496
+ var requestAnimationFrame$1 = function() {
6497
+ if (typeof requestAnimationFrame === "function") {
6498
+ return requestAnimationFrame.bind(global$1);
6499
+ }
6500
+ return function(callback) {
6501
+ return setTimeout(function() {
6502
+ return callback(Date.now());
6503
+ }, 1e3 / 60);
6504
+ };
6505
+ }();
6506
+ var trailingTimeout = 2;
6507
+ function throttle(callback, delay) {
6508
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
6509
+ function resolvePending() {
6510
+ if (leadingCall) {
6511
+ leadingCall = false;
6512
+ callback();
6513
+ }
6514
+ if (trailingCall) {
6515
+ proxy();
6516
+ }
6517
+ }
6518
+ function timeoutCallback() {
6519
+ requestAnimationFrame$1(resolvePending);
6520
+ }
6521
+ function proxy() {
6522
+ var timeStamp = Date.now();
6523
+ if (leadingCall) {
6524
+ if (timeStamp - lastCallTime < trailingTimeout) {
6525
+ return;
6526
+ }
6527
+ trailingCall = true;
6528
+ } else {
6529
+ leadingCall = true;
6530
+ trailingCall = false;
6531
+ setTimeout(timeoutCallback, delay);
6532
+ }
6533
+ lastCallTime = timeStamp;
6534
+ }
6535
+ return proxy;
6536
+ }
6537
+ var REFRESH_DELAY = 20;
6538
+ var transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"];
6539
+ var mutationObserverSupported = typeof MutationObserver !== "undefined";
6540
+ var ResizeObserverController = (
6541
+ /** @class */
6542
+ function() {
6543
+ function ResizeObserverController2() {
6544
+ this.connected_ = false;
6545
+ this.mutationEventsAdded_ = false;
6546
+ this.mutationsObserver_ = null;
6547
+ this.observers_ = [];
6548
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
6549
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
6550
+ }
6551
+ ResizeObserverController2.prototype.addObserver = function(observer) {
6552
+ if (!~this.observers_.indexOf(observer)) {
6553
+ this.observers_.push(observer);
6554
+ }
6555
+ if (!this.connected_) {
6556
+ this.connect_();
6557
+ }
6558
+ };
6559
+ ResizeObserverController2.prototype.removeObserver = function(observer) {
6560
+ var observers2 = this.observers_;
6561
+ var index2 = observers2.indexOf(observer);
6562
+ if (~index2) {
6563
+ observers2.splice(index2, 1);
6564
+ }
6565
+ if (!observers2.length && this.connected_) {
6566
+ this.disconnect_();
6567
+ }
6568
+ };
6569
+ ResizeObserverController2.prototype.refresh = function() {
6570
+ var changesDetected = this.updateObservers_();
6571
+ if (changesDetected) {
6572
+ this.refresh();
6573
+ }
6574
+ };
6575
+ ResizeObserverController2.prototype.updateObservers_ = function() {
6576
+ var activeObservers = this.observers_.filter(function(observer) {
6577
+ return observer.gatherActive(), observer.hasActive();
6578
+ });
6579
+ activeObservers.forEach(function(observer) {
6580
+ return observer.broadcastActive();
6581
+ });
6582
+ return activeObservers.length > 0;
6583
+ };
6584
+ ResizeObserverController2.prototype.connect_ = function() {
6585
+ if (!isBrowser || this.connected_) {
6586
+ return;
6587
+ }
6588
+ document.addEventListener("transitionend", this.onTransitionEnd_);
6589
+ window.addEventListener("resize", this.refresh);
6590
+ if (mutationObserverSupported) {
6591
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
6592
+ this.mutationsObserver_.observe(document, {
6593
+ attributes: true,
6594
+ childList: true,
6595
+ characterData: true,
6596
+ subtree: true
6597
+ });
6598
+ } else {
6599
+ document.addEventListener("DOMSubtreeModified", this.refresh);
6600
+ this.mutationEventsAdded_ = true;
6601
+ }
6602
+ this.connected_ = true;
6603
+ };
6604
+ ResizeObserverController2.prototype.disconnect_ = function() {
6605
+ if (!isBrowser || !this.connected_) {
6606
+ return;
6607
+ }
6608
+ document.removeEventListener("transitionend", this.onTransitionEnd_);
6609
+ window.removeEventListener("resize", this.refresh);
6610
+ if (this.mutationsObserver_) {
6611
+ this.mutationsObserver_.disconnect();
6612
+ }
6613
+ if (this.mutationEventsAdded_) {
6614
+ document.removeEventListener("DOMSubtreeModified", this.refresh);
6615
+ }
6616
+ this.mutationsObserver_ = null;
6617
+ this.mutationEventsAdded_ = false;
6618
+ this.connected_ = false;
6619
+ };
6620
+ ResizeObserverController2.prototype.onTransitionEnd_ = function(_a) {
6621
+ var _b = _a.propertyName, propertyName = _b === void 0 ? "" : _b;
6622
+ var isReflowProperty = transitionKeys.some(function(key) {
6623
+ return !!~propertyName.indexOf(key);
6624
+ });
6625
+ if (isReflowProperty) {
6626
+ this.refresh();
6627
+ }
6628
+ };
6629
+ ResizeObserverController2.getInstance = function() {
6630
+ if (!this.instance_) {
6631
+ this.instance_ = new ResizeObserverController2();
6632
+ }
6633
+ return this.instance_;
6634
+ };
6635
+ ResizeObserverController2.instance_ = null;
6636
+ return ResizeObserverController2;
6637
+ }()
6638
+ );
6639
+ var defineConfigurable = function(target, props) {
6640
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
6641
+ var key = _a[_i];
6642
+ Object.defineProperty(target, key, {
6643
+ value: props[key],
6644
+ enumerable: false,
6645
+ writable: false,
6646
+ configurable: true
6647
+ });
6648
+ }
6649
+ return target;
6650
+ };
6651
+ var getWindowOf = function(target) {
6652
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
6653
+ return ownerGlobal || global$1;
6654
+ };
6655
+ var emptyRect = createRectInit(0, 0, 0, 0);
6656
+ function toFloat(value) {
6657
+ return parseFloat(value) || 0;
6658
+ }
6659
+ function getBordersSize(styles) {
6660
+ var positions = [];
6661
+ for (var _i = 1; _i < arguments.length; _i++) {
6662
+ positions[_i - 1] = arguments[_i];
6663
+ }
6664
+ return positions.reduce(function(size, position) {
6665
+ var value = styles["border-" + position + "-width"];
6666
+ return size + toFloat(value);
6667
+ }, 0);
6668
+ }
6669
+ function getPaddings(styles) {
6670
+ var positions = ["top", "right", "bottom", "left"];
6671
+ var paddings = {};
6672
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
6673
+ var position = positions_1[_i];
6674
+ var value = styles["padding-" + position];
6675
+ paddings[position] = toFloat(value);
6676
+ }
6677
+ return paddings;
6678
+ }
6679
+ function getSVGContentRect(target) {
6680
+ var bbox = target.getBBox();
6681
+ return createRectInit(0, 0, bbox.width, bbox.height);
6682
+ }
6683
+ function getHTMLElementContentRect(target) {
6684
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
6685
+ if (!clientWidth && !clientHeight) {
6686
+ return emptyRect;
6687
+ }
6688
+ var styles = getWindowOf(target).getComputedStyle(target);
6689
+ var paddings = getPaddings(styles);
6690
+ var horizPad = paddings.left + paddings.right;
6691
+ var vertPad = paddings.top + paddings.bottom;
6692
+ var width = toFloat(styles.width), height = toFloat(styles.height);
6693
+ if (styles.boxSizing === "border-box") {
6694
+ if (Math.round(width + horizPad) !== clientWidth) {
6695
+ width -= getBordersSize(styles, "left", "right") + horizPad;
6696
+ }
6697
+ if (Math.round(height + vertPad) !== clientHeight) {
6698
+ height -= getBordersSize(styles, "top", "bottom") + vertPad;
6699
+ }
6700
+ }
6701
+ if (!isDocumentElement(target)) {
6702
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
6703
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
6704
+ if (Math.abs(vertScrollbar) !== 1) {
6705
+ width -= vertScrollbar;
6706
+ }
6707
+ if (Math.abs(horizScrollbar) !== 1) {
6708
+ height -= horizScrollbar;
6709
+ }
6710
+ }
6711
+ return createRectInit(paddings.left, paddings.top, width, height);
6712
+ }
6713
+ var isSVGGraphicsElement = function() {
6714
+ if (typeof SVGGraphicsElement !== "undefined") {
6715
+ return function(target) {
6716
+ return target instanceof getWindowOf(target).SVGGraphicsElement;
6717
+ };
6718
+ }
6719
+ return function(target) {
6720
+ return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === "function";
6721
+ };
6722
+ }();
6723
+ function isDocumentElement(target) {
6724
+ return target === getWindowOf(target).document.documentElement;
6725
+ }
6726
+ function getContentRect(target) {
6727
+ if (!isBrowser) {
6728
+ return emptyRect;
6729
+ }
6730
+ if (isSVGGraphicsElement(target)) {
6731
+ return getSVGContentRect(target);
6732
+ }
6733
+ return getHTMLElementContentRect(target);
6734
+ }
6735
+ function createReadOnlyRect(_a) {
6736
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
6737
+ var Constr = typeof DOMRectReadOnly !== "undefined" ? DOMRectReadOnly : Object;
6738
+ var rect = Object.create(Constr.prototype);
6739
+ defineConfigurable(rect, {
6740
+ x,
6741
+ y,
6742
+ width,
6743
+ height,
6744
+ top: y,
6745
+ right: x + width,
6746
+ bottom: height + y,
6747
+ left: x
6748
+ });
6749
+ return rect;
6750
+ }
6751
+ function createRectInit(x, y, width, height) {
6752
+ return {
6753
+ x,
6754
+ y,
6755
+ width,
6756
+ height
6757
+ };
6758
+ }
6759
+ var ResizeObservation = (
6760
+ /** @class */
6761
+ function() {
6762
+ function ResizeObservation2(target) {
6763
+ this.broadcastWidth = 0;
6764
+ this.broadcastHeight = 0;
6765
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
6766
+ this.target = target;
6767
+ }
6768
+ ResizeObservation2.prototype.isActive = function() {
6769
+ var rect = getContentRect(this.target);
6770
+ this.contentRect_ = rect;
6771
+ return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
6772
+ };
6773
+ ResizeObservation2.prototype.broadcastRect = function() {
6774
+ var rect = this.contentRect_;
6775
+ this.broadcastWidth = rect.width;
6776
+ this.broadcastHeight = rect.height;
6777
+ return rect;
6778
+ };
6779
+ return ResizeObservation2;
6780
+ }()
6781
+ );
6782
+ var ResizeObserverEntry = (
6783
+ /** @class */
6784
+ function() {
6785
+ function ResizeObserverEntry2(target, rectInit) {
6786
+ var contentRect = createReadOnlyRect(rectInit);
6787
+ defineConfigurable(this, {
6788
+ target,
6789
+ contentRect
6790
+ });
6791
+ }
6792
+ return ResizeObserverEntry2;
6793
+ }()
6794
+ );
6795
+ var ResizeObserverSPI = (
6796
+ /** @class */
6797
+ function() {
6798
+ function ResizeObserverSPI2(callback, controller, callbackCtx) {
6799
+ this.activeObservations_ = [];
6800
+ this.observations_ = new MapShim();
6801
+ if (typeof callback !== "function") {
6802
+ throw new TypeError("The callback provided as parameter 1 is not a function.");
6803
+ }
6804
+ this.callback_ = callback;
6805
+ this.controller_ = controller;
6806
+ this.callbackCtx_ = callbackCtx;
6807
+ }
6808
+ ResizeObserverSPI2.prototype.observe = function(target) {
6809
+ if (!arguments.length) {
6810
+ throw new TypeError("1 argument required, but only 0 present.");
6811
+ }
6812
+ if (typeof Element === "undefined" || !(Element instanceof Object)) {
6813
+ return;
6814
+ }
6815
+ if (!(target instanceof getWindowOf(target).Element)) {
6816
+ throw new TypeError('parameter 1 is not of type "Element".');
6817
+ }
6818
+ var observations = this.observations_;
6819
+ if (observations.has(target)) {
6820
+ return;
6821
+ }
6822
+ observations.set(target, new ResizeObservation(target));
6823
+ this.controller_.addObserver(this);
6824
+ this.controller_.refresh();
6825
+ };
6826
+ ResizeObserverSPI2.prototype.unobserve = function(target) {
6827
+ if (!arguments.length) {
6828
+ throw new TypeError("1 argument required, but only 0 present.");
6829
+ }
6830
+ if (typeof Element === "undefined" || !(Element instanceof Object)) {
6831
+ return;
6832
+ }
6833
+ if (!(target instanceof getWindowOf(target).Element)) {
6834
+ throw new TypeError('parameter 1 is not of type "Element".');
6835
+ }
6836
+ var observations = this.observations_;
6837
+ if (!observations.has(target)) {
6838
+ return;
6839
+ }
6840
+ observations.delete(target);
6841
+ if (!observations.size) {
6842
+ this.controller_.removeObserver(this);
6843
+ }
6844
+ };
6845
+ ResizeObserverSPI2.prototype.disconnect = function() {
6846
+ this.clearActive();
6847
+ this.observations_.clear();
6848
+ this.controller_.removeObserver(this);
6849
+ };
6850
+ ResizeObserverSPI2.prototype.gatherActive = function() {
6851
+ var _this = this;
6852
+ this.clearActive();
6853
+ this.observations_.forEach(function(observation) {
6854
+ if (observation.isActive()) {
6855
+ _this.activeObservations_.push(observation);
6856
+ }
6857
+ });
6858
+ };
6859
+ ResizeObserverSPI2.prototype.broadcastActive = function() {
6860
+ if (!this.hasActive()) {
6861
+ return;
6862
+ }
6863
+ var ctx = this.callbackCtx_;
6864
+ var entries = this.activeObservations_.map(function(observation) {
6865
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
6866
+ });
6867
+ this.callback_.call(ctx, entries, ctx);
6868
+ this.clearActive();
6869
+ };
6870
+ ResizeObserverSPI2.prototype.clearActive = function() {
6871
+ this.activeObservations_.splice(0);
6872
+ };
6873
+ ResizeObserverSPI2.prototype.hasActive = function() {
6874
+ return this.activeObservations_.length > 0;
6875
+ };
6876
+ return ResizeObserverSPI2;
6877
+ }()
6878
+ );
6879
+ var observers = typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim();
6880
+ var ResizeObserver = (
6881
+ /** @class */
6882
+ function() {
6883
+ function ResizeObserver2(callback) {
6884
+ if (!(this instanceof ResizeObserver2)) {
6885
+ throw new TypeError("Cannot call a class as a function.");
6886
+ }
6887
+ if (!arguments.length) {
6888
+ throw new TypeError("1 argument required, but only 0 present.");
6889
+ }
6890
+ var controller = ResizeObserverController.getInstance();
6891
+ var observer = new ResizeObserverSPI(callback, controller, this);
6892
+ observers.set(this, observer);
6893
+ }
6894
+ return ResizeObserver2;
6895
+ }()
6896
+ );
6897
+ ["observe", "unobserve", "disconnect"].forEach(function(method) {
6898
+ ResizeObserver.prototype[method] = function() {
6899
+ var _a;
6900
+ return (_a = observers.get(this))[method].apply(_a, arguments);
6901
+ };
6902
+ });
6903
+ var index = function() {
6904
+ if (typeof global$1.ResizeObserver !== "undefined") {
6905
+ return global$1.ResizeObserver;
6906
+ }
6907
+ return ResizeObserver;
6908
+ }();
6441
6909
  const __sfc_main = vueDemi.defineComponent({
6442
6910
  name: "nf-search-form"
6443
6911
  });
@@ -7231,17 +7699,28 @@ __sfc_main.setup = (__props, __ctx) => {
7231
7699
  const isCollapseChange = async (val) => {
7232
7700
  emit("isCollapseChange", val);
7233
7701
  await vueDemi.nextTick();
7234
- onResize();
7702
+ refreshLabel();
7235
7703
  };
7236
- const onResize = () => {
7704
+ const domWidth = vueDemi.ref();
7705
+ const topDom = vueDemi.ref();
7706
+ const refreshLabel = () => {
7237
7707
  if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
7238
7708
  if (nfSearchFormRef.value.$el.getBoundingClientRect().left === defaultButtonSlot.value.$el.getBoundingClientRect().left) {
7239
7709
  showBtnBoxLabel.value = "";
7240
7710
  } else {
7241
- showBtnBoxLabel.value = "...";
7711
+ showBtnBoxLabel.value = ".";
7242
7712
  }
7243
7713
  }
7244
7714
  };
7715
+ const onResize = (params = {}) => {
7716
+ const {
7717
+ width
7718
+ } = (params == null ? void 0 : params[0].contentRect) || {};
7719
+ if (width && domWidth.value && width === domWidth.value) {
7720
+ return;
7721
+ }
7722
+ refreshLabel();
7723
+ };
7245
7724
  const calcColumns = () => {
7246
7725
  if (props.columns) {
7247
7726
  newColumns.value = props.columns;
@@ -7260,18 +7739,20 @@ __sfc_main.setup = (__props, __ctx) => {
7260
7739
  }, 0);
7261
7740
  newColumns.value = count;
7262
7741
  };
7263
- const debounceResize = debounce(onResize, 100, false);
7264
- const debounceCalcColumns = debounce(calcColumns, 100, false);
7742
+ const observer = vueDemi.ref();
7265
7743
  vueDemi.onMounted(async () => {
7266
- window.addEventListener("resize", debounceResize);
7267
- window.addEventListener("resize", debounceCalcColumns);
7268
7744
  await vueDemi.nextTick();
7269
- onResize();
7270
7745
  calcColumns();
7746
+ await vueDemi.nextTick();
7747
+ observer.value = new index(onResize);
7748
+ observer.value.observe(topDom.value, {
7749
+ box: "border-box"
7750
+ });
7751
+ domWidth.value = topDom.value.offsetWidth;
7271
7752
  });
7272
- vueDemi.onUnmounted(() => {
7273
- window.removeEventListener("resize", debounceResize);
7274
- window.removeEventListener("resize", debounceCalcColumns);
7753
+ vueDemi.onBeforeUnmount(() => {
7754
+ var _a2;
7755
+ (_a2 = observer.value) == null ? void 0 : _a2.unobserve(topDom.value);
7275
7756
  });
7276
7757
  const resetNfSearchFormModel = () => {
7277
7758
  var _a2;
@@ -7304,7 +7785,7 @@ __sfc_main.setup = (__props, __ctx) => {
7304
7785
  syncCookiesToSearchFormItemOptions();
7305
7786
  refreshNfSearchFormModel();
7306
7787
  await vueDemi.nextTick();
7307
- onResize();
7788
+ refreshLabel();
7308
7789
  }
7309
7790
  };
7310
7791
  const refreshNfSearchFormModel = async () => {
@@ -7337,7 +7818,7 @@ __sfc_main.setup = (__props, __ctx) => {
7337
7818
  syncCookiesToSearchFormItemOptions();
7338
7819
  refreshNfSearchFormModel();
7339
7820
  await vueDemi.nextTick();
7340
- onResize();
7821
+ refreshLabel();
7341
7822
  cb();
7342
7823
  } catch (e) {
7343
7824
  error();
@@ -7350,7 +7831,7 @@ __sfc_main.setup = (__props, __ctx) => {
7350
7831
  syncCookiesToSearchFormItemOptions();
7351
7832
  refreshNfSearchFormModel();
7352
7833
  await vueDemi.nextTick();
7353
- onResize();
7834
+ refreshLabel();
7354
7835
  };
7355
7836
  return Object.assign({
7356
7837
  defaultButtonSlot,
@@ -7367,6 +7848,7 @@ __sfc_main.setup = (__props, __ctx) => {
7367
7848
  itemIsShow,
7368
7849
  showBtnBoxLabel,
7369
7850
  isCollapseChange,
7851
+ topDom,
7370
7852
  resetNfSearchFormModel,
7371
7853
  onNfSearchFormSearch,
7372
7854
  onNfSearchFormExport,
@@ -7447,7 +7929,7 @@ __sfc_main.setup = (__props, __ctx) => {
7447
7929
  */
7448
7930
  syncCookiesToSearchFormItemOptions,
7449
7931
  onResize,
7450
- visibleChange: onResize
7932
+ visibleChange: refreshLabel
7451
7933
  });
7452
7934
  };
7453
7935
  __sfc_main.components = Object.assign({
@@ -7459,6 +7941,7 @@ var _sfc_render = function render6() {
7459
7941
  var _vm = this, _c = _vm._self._c;
7460
7942
  _vm._self._setupProxy;
7461
7943
  return _c("div", {
7944
+ ref: "topDom",
7462
7945
  staticClass: "nf-search-form"
7463
7946
  }, [_c("nf-form", {
7464
7947
  ref: "nfSearchFormRef",