@webitel/ui-sdk 3.2.29 → 3.2.30

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.
@@ -3464,6 +3464,390 @@ module.exports = function isTypedArray(value) {
3464
3464
  };
3465
3465
 
3466
3466
 
3467
+ /***/ }),
3468
+
3469
+ /***/ 296:
3470
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3471
+
3472
+ /**
3473
+ * lodash (Custom Build) <https://lodash.com/>
3474
+ * Build: `lodash modularize exports="npm" -o ./`
3475
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
3476
+ * Released under MIT license <https://lodash.com/license>
3477
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
3478
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
3479
+ */
3480
+
3481
+ /** Used as the `TypeError` message for "Functions" methods. */
3482
+ var FUNC_ERROR_TEXT = 'Expected a function';
3483
+
3484
+ /** Used as references for various `Number` constants. */
3485
+ var NAN = 0 / 0;
3486
+
3487
+ /** `Object#toString` result references. */
3488
+ var symbolTag = '[object Symbol]';
3489
+
3490
+ /** Used to match leading and trailing whitespace. */
3491
+ var reTrim = /^\s+|\s+$/g;
3492
+
3493
+ /** Used to detect bad signed hexadecimal string values. */
3494
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
3495
+
3496
+ /** Used to detect binary string values. */
3497
+ var reIsBinary = /^0b[01]+$/i;
3498
+
3499
+ /** Used to detect octal string values. */
3500
+ var reIsOctal = /^0o[0-7]+$/i;
3501
+
3502
+ /** Built-in method references without a dependency on `root`. */
3503
+ var freeParseInt = parseInt;
3504
+
3505
+ /** Detect free variable `global` from Node.js. */
3506
+ var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
3507
+
3508
+ /** Detect free variable `self`. */
3509
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
3510
+
3511
+ /** Used as a reference to the global object. */
3512
+ var root = freeGlobal || freeSelf || Function('return this')();
3513
+
3514
+ /** Used for built-in method references. */
3515
+ var objectProto = Object.prototype;
3516
+
3517
+ /**
3518
+ * Used to resolve the
3519
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
3520
+ * of values.
3521
+ */
3522
+ var objectToString = objectProto.toString;
3523
+
3524
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3525
+ var nativeMax = Math.max,
3526
+ nativeMin = Math.min;
3527
+
3528
+ /**
3529
+ * Gets the timestamp of the number of milliseconds that have elapsed since
3530
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
3531
+ *
3532
+ * @static
3533
+ * @memberOf _
3534
+ * @since 2.4.0
3535
+ * @category Date
3536
+ * @returns {number} Returns the timestamp.
3537
+ * @example
3538
+ *
3539
+ * _.defer(function(stamp) {
3540
+ * console.log(_.now() - stamp);
3541
+ * }, _.now());
3542
+ * // => Logs the number of milliseconds it took for the deferred invocation.
3543
+ */
3544
+ var now = function() {
3545
+ return root.Date.now();
3546
+ };
3547
+
3548
+ /**
3549
+ * Creates a debounced function that delays invoking `func` until after `wait`
3550
+ * milliseconds have elapsed since the last time the debounced function was
3551
+ * invoked. The debounced function comes with a `cancel` method to cancel
3552
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
3553
+ * Provide `options` to indicate whether `func` should be invoked on the
3554
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
3555
+ * with the last arguments provided to the debounced function. Subsequent
3556
+ * calls to the debounced function return the result of the last `func`
3557
+ * invocation.
3558
+ *
3559
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
3560
+ * invoked on the trailing edge of the timeout only if the debounced function
3561
+ * is invoked more than once during the `wait` timeout.
3562
+ *
3563
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
3564
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
3565
+ *
3566
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
3567
+ * for details over the differences between `_.debounce` and `_.throttle`.
3568
+ *
3569
+ * @static
3570
+ * @memberOf _
3571
+ * @since 0.1.0
3572
+ * @category Function
3573
+ * @param {Function} func The function to debounce.
3574
+ * @param {number} [wait=0] The number of milliseconds to delay.
3575
+ * @param {Object} [options={}] The options object.
3576
+ * @param {boolean} [options.leading=false]
3577
+ * Specify invoking on the leading edge of the timeout.
3578
+ * @param {number} [options.maxWait]
3579
+ * The maximum time `func` is allowed to be delayed before it's invoked.
3580
+ * @param {boolean} [options.trailing=true]
3581
+ * Specify invoking on the trailing edge of the timeout.
3582
+ * @returns {Function} Returns the new debounced function.
3583
+ * @example
3584
+ *
3585
+ * // Avoid costly calculations while the window size is in flux.
3586
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
3587
+ *
3588
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
3589
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
3590
+ * 'leading': true,
3591
+ * 'trailing': false
3592
+ * }));
3593
+ *
3594
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
3595
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
3596
+ * var source = new EventSource('/stream');
3597
+ * jQuery(source).on('message', debounced);
3598
+ *
3599
+ * // Cancel the trailing debounced invocation.
3600
+ * jQuery(window).on('popstate', debounced.cancel);
3601
+ */
3602
+ function debounce(func, wait, options) {
3603
+ var lastArgs,
3604
+ lastThis,
3605
+ maxWait,
3606
+ result,
3607
+ timerId,
3608
+ lastCallTime,
3609
+ lastInvokeTime = 0,
3610
+ leading = false,
3611
+ maxing = false,
3612
+ trailing = true;
3613
+
3614
+ if (typeof func != 'function') {
3615
+ throw new TypeError(FUNC_ERROR_TEXT);
3616
+ }
3617
+ wait = toNumber(wait) || 0;
3618
+ if (isObject(options)) {
3619
+ leading = !!options.leading;
3620
+ maxing = 'maxWait' in options;
3621
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
3622
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
3623
+ }
3624
+
3625
+ function invokeFunc(time) {
3626
+ var args = lastArgs,
3627
+ thisArg = lastThis;
3628
+
3629
+ lastArgs = lastThis = undefined;
3630
+ lastInvokeTime = time;
3631
+ result = func.apply(thisArg, args);
3632
+ return result;
3633
+ }
3634
+
3635
+ function leadingEdge(time) {
3636
+ // Reset any `maxWait` timer.
3637
+ lastInvokeTime = time;
3638
+ // Start the timer for the trailing edge.
3639
+ timerId = setTimeout(timerExpired, wait);
3640
+ // Invoke the leading edge.
3641
+ return leading ? invokeFunc(time) : result;
3642
+ }
3643
+
3644
+ function remainingWait(time) {
3645
+ var timeSinceLastCall = time - lastCallTime,
3646
+ timeSinceLastInvoke = time - lastInvokeTime,
3647
+ result = wait - timeSinceLastCall;
3648
+
3649
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
3650
+ }
3651
+
3652
+ function shouldInvoke(time) {
3653
+ var timeSinceLastCall = time - lastCallTime,
3654
+ timeSinceLastInvoke = time - lastInvokeTime;
3655
+
3656
+ // Either this is the first call, activity has stopped and we're at the
3657
+ // trailing edge, the system time has gone backwards and we're treating
3658
+ // it as the trailing edge, or we've hit the `maxWait` limit.
3659
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
3660
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
3661
+ }
3662
+
3663
+ function timerExpired() {
3664
+ var time = now();
3665
+ if (shouldInvoke(time)) {
3666
+ return trailingEdge(time);
3667
+ }
3668
+ // Restart the timer.
3669
+ timerId = setTimeout(timerExpired, remainingWait(time));
3670
+ }
3671
+
3672
+ function trailingEdge(time) {
3673
+ timerId = undefined;
3674
+
3675
+ // Only invoke if we have `lastArgs` which means `func` has been
3676
+ // debounced at least once.
3677
+ if (trailing && lastArgs) {
3678
+ return invokeFunc(time);
3679
+ }
3680
+ lastArgs = lastThis = undefined;
3681
+ return result;
3682
+ }
3683
+
3684
+ function cancel() {
3685
+ if (timerId !== undefined) {
3686
+ clearTimeout(timerId);
3687
+ }
3688
+ lastInvokeTime = 0;
3689
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
3690
+ }
3691
+
3692
+ function flush() {
3693
+ return timerId === undefined ? result : trailingEdge(now());
3694
+ }
3695
+
3696
+ function debounced() {
3697
+ var time = now(),
3698
+ isInvoking = shouldInvoke(time);
3699
+
3700
+ lastArgs = arguments;
3701
+ lastThis = this;
3702
+ lastCallTime = time;
3703
+
3704
+ if (isInvoking) {
3705
+ if (timerId === undefined) {
3706
+ return leadingEdge(lastCallTime);
3707
+ }
3708
+ if (maxing) {
3709
+ // Handle invocations in a tight loop.
3710
+ timerId = setTimeout(timerExpired, wait);
3711
+ return invokeFunc(lastCallTime);
3712
+ }
3713
+ }
3714
+ if (timerId === undefined) {
3715
+ timerId = setTimeout(timerExpired, wait);
3716
+ }
3717
+ return result;
3718
+ }
3719
+ debounced.cancel = cancel;
3720
+ debounced.flush = flush;
3721
+ return debounced;
3722
+ }
3723
+
3724
+ /**
3725
+ * Checks if `value` is the
3726
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
3727
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
3728
+ *
3729
+ * @static
3730
+ * @memberOf _
3731
+ * @since 0.1.0
3732
+ * @category Lang
3733
+ * @param {*} value The value to check.
3734
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
3735
+ * @example
3736
+ *
3737
+ * _.isObject({});
3738
+ * // => true
3739
+ *
3740
+ * _.isObject([1, 2, 3]);
3741
+ * // => true
3742
+ *
3743
+ * _.isObject(_.noop);
3744
+ * // => true
3745
+ *
3746
+ * _.isObject(null);
3747
+ * // => false
3748
+ */
3749
+ function isObject(value) {
3750
+ var type = typeof value;
3751
+ return !!value && (type == 'object' || type == 'function');
3752
+ }
3753
+
3754
+ /**
3755
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
3756
+ * and has a `typeof` result of "object".
3757
+ *
3758
+ * @static
3759
+ * @memberOf _
3760
+ * @since 4.0.0
3761
+ * @category Lang
3762
+ * @param {*} value The value to check.
3763
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
3764
+ * @example
3765
+ *
3766
+ * _.isObjectLike({});
3767
+ * // => true
3768
+ *
3769
+ * _.isObjectLike([1, 2, 3]);
3770
+ * // => true
3771
+ *
3772
+ * _.isObjectLike(_.noop);
3773
+ * // => false
3774
+ *
3775
+ * _.isObjectLike(null);
3776
+ * // => false
3777
+ */
3778
+ function isObjectLike(value) {
3779
+ return !!value && typeof value == 'object';
3780
+ }
3781
+
3782
+ /**
3783
+ * Checks if `value` is classified as a `Symbol` primitive or object.
3784
+ *
3785
+ * @static
3786
+ * @memberOf _
3787
+ * @since 4.0.0
3788
+ * @category Lang
3789
+ * @param {*} value The value to check.
3790
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
3791
+ * @example
3792
+ *
3793
+ * _.isSymbol(Symbol.iterator);
3794
+ * // => true
3795
+ *
3796
+ * _.isSymbol('abc');
3797
+ * // => false
3798
+ */
3799
+ function isSymbol(value) {
3800
+ return typeof value == 'symbol' ||
3801
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
3802
+ }
3803
+
3804
+ /**
3805
+ * Converts `value` to a number.
3806
+ *
3807
+ * @static
3808
+ * @memberOf _
3809
+ * @since 4.0.0
3810
+ * @category Lang
3811
+ * @param {*} value The value to process.
3812
+ * @returns {number} Returns the number.
3813
+ * @example
3814
+ *
3815
+ * _.toNumber(3.2);
3816
+ * // => 3.2
3817
+ *
3818
+ * _.toNumber(Number.MIN_VALUE);
3819
+ * // => 5e-324
3820
+ *
3821
+ * _.toNumber(Infinity);
3822
+ * // => Infinity
3823
+ *
3824
+ * _.toNumber('3.2');
3825
+ * // => 3.2
3826
+ */
3827
+ function toNumber(value) {
3828
+ if (typeof value == 'number') {
3829
+ return value;
3830
+ }
3831
+ if (isSymbol(value)) {
3832
+ return NAN;
3833
+ }
3834
+ if (isObject(value)) {
3835
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
3836
+ value = isObject(other) ? (other + '') : other;
3837
+ }
3838
+ if (typeof value != 'string') {
3839
+ return value === 0 ? value : +value;
3840
+ }
3841
+ value = value.replace(reTrim, '');
3842
+ var isBinary = reIsBinary.test(value);
3843
+ return (isBinary || reIsOctal.test(value))
3844
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
3845
+ : (reIsBadHex.test(value) ? NAN : +value);
3846
+ }
3847
+
3848
+ module.exports = debounce;
3849
+
3850
+
3467
3851
  /***/ }),
3468
3852
 
3469
3853
  /***/ 244:
@@ -19748,17 +20132,12 @@ function wt_search_barvue_type_template_id_5f7c84e4_scoped_true_render(_ctx, _ca
19748
20132
  }
19749
20133
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-search-bar/wt-search-bar.vue?vue&type=template&id=5f7c84e4&scoped=true
19750
20134
 
20135
+ // EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
20136
+ var lodash_debounce = __webpack_require__(296);
20137
+ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
19751
20138
  ;// CONCATENATED MODULE: ./src/scripts/debounce.js
19752
- const debounce = (method, delay = 1000) => {
19753
- let timer;
19754
- return args => {
19755
- if (timer) clearTimeout(timer);
19756
- timer = setTimeout(() => {
19757
- method(args);
19758
- }, delay);
19759
- };
19760
- };
19761
- /* harmony default export */ var scripts_debounce = (debounce);
20139
+
20140
+ /* harmony default export */ var debounce = ((lodash_debounce_default()));
19762
20141
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/molecules/wt-search-bar/wt-search-bar.vue?vue&type=script&lang=js
19763
20142
 
19764
20143
  /* harmony default export */ var wt_search_barvue_type_script_lang_js = ({
@@ -19797,7 +20176,7 @@ const debounce = (method, delay = 1000) => {
19797
20176
  },
19798
20177
  created() {
19799
20178
  if (this.debounce) {
19800
- this.search = scripts_debounce(this.search, this.debounceDelay);
20179
+ this.search = debounce(this.search, this.debounceDelay);
19801
20180
  }
19802
20181
  },
19803
20182
  computed: {
@@ -21788,7 +22167,7 @@ const isEmpty_isEmpty = value => {
21788
22167
  },
21789
22168
  created() {
21790
22169
  this.fetchOptions();
21791
- this.fetchOptions = scripts_debounce(this.fetchOptions, 500);
22170
+ this.fetchOptions = debounce(this.fetchOptions, 500);
21792
22171
  }
21793
22172
  });
21794
22173
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/molecules/wt-select/wt-select.vue?vue&type=script&lang=js
@@ -24390,7 +24769,7 @@ function wt_paginationvue_type_template_id_811b3464_scoped_true_render(_ctx, _ca
24390
24769
  defaultSize: '10'
24391
24770
  }),
24392
24771
  created() {
24393
- if (this.debounce) this.changeSize = scripts_debounce(this.changeSize, this.debounceDelay);
24772
+ if (this.debounce) this.changeSize = debounce(this.changeSize, this.debounceDelay);
24394
24773
  },
24395
24774
  methods: {
24396
24775
  inputHandler(value) {