@jobber/components 6.11.0 → 6.11.1

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.
Files changed (55) hide show
  1. package/dist/Autocomplete/index.cjs +2 -11
  2. package/dist/Autocomplete/index.mjs +2 -11
  3. package/dist/Autocomplete-cjs.js +2 -2
  4. package/dist/Autocomplete-es.js +1 -1
  5. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
  6. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
  7. package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
  8. package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
  9. package/dist/Chips/index.cjs +2 -2
  10. package/dist/Chips/index.mjs +2 -2
  11. package/dist/DataList/components/DataListSearch/index.cjs +1 -10
  12. package/dist/DataList/components/DataListSearch/index.mjs +1 -10
  13. package/dist/DataList/index.cjs +1 -8
  14. package/dist/DataList/index.mjs +1 -8
  15. package/dist/DataListSearch-cjs.js +2 -2
  16. package/dist/DataListSearch-es.js +1 -1
  17. package/dist/DatePicker/index.cjs +2 -3
  18. package/dist/DatePicker/index.mjs +2 -3
  19. package/dist/DatePicker-cjs.js +781 -2
  20. package/dist/DatePicker-es.js +781 -3
  21. package/dist/FormField/FormFieldTypes.d.ts +3 -3
  22. package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +3 -3
  23. package/dist/FormField-cjs.js +2 -5
  24. package/dist/FormField-es.js +3 -3
  25. package/dist/InputDate/index.cjs +15 -16
  26. package/dist/InputDate/index.mjs +15 -16
  27. package/dist/InputDate-cjs.js +2 -3
  28. package/dist/InputDate-es.js +1 -2
  29. package/dist/InputText/InputText.d.ts +20 -10
  30. package/dist/InputText/index.cjs +8 -263
  31. package/dist/InputText/index.d.ts +1 -5
  32. package/dist/InputText/index.mjs +7 -266
  33. package/dist/InputText-cjs.js +129 -0
  34. package/dist/InputText-es.js +127 -0
  35. package/dist/List/index.cjs +2 -2
  36. package/dist/List/index.mjs +2 -2
  37. package/dist/_baseEach-cjs.js +12 -12
  38. package/dist/_baseEach-es.js +2 -2
  39. package/dist/_baseFlatten-cjs.js +2 -2
  40. package/dist/_baseFlatten-es.js +1 -1
  41. package/dist/{_baseGet-cjs.js → _getAllKeys-cjs.js} +181 -181
  42. package/dist/{_baseGet-es.js → _getAllKeys-es.js} +183 -183
  43. package/dist/index.cjs +3 -4
  44. package/dist/index.mjs +2 -3
  45. package/dist/isTypedArray-es.js +1 -1
  46. package/dist/useScrollToActive-cjs.js +3 -3
  47. package/dist/useScrollToActive-es.js +1 -1
  48. package/package.json +2 -2
  49. package/dist/InputText/InputText.rebuilt.d.ts +0 -3
  50. package/dist/InputText/InputText.types.d.ts +0 -71
  51. package/dist/InputText/useInputTextActions.d.ts +0 -16
  52. package/dist/InputText/useInputTextFormField.d.ts +0 -347
  53. package/dist/InputText/useTextAreaResize.d.ts +0 -14
  54. package/dist/omit-cjs.js +0 -783
  55. package/dist/omit-es.js +0 -781
package/dist/omit-cjs.js DELETED
@@ -1,783 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('./_commonjsHelpers-cjs.js');
4
- var _baseGet = require('./_baseGet-cjs.js');
5
- var identity = require('./identity-cjs.js');
6
- var keysIn$3 = require('./keysIn-cjs.js');
7
- var _getTag = require('./_getTag-cjs.js');
8
- var isObjectLike$2 = require('./isObjectLike-cjs.js');
9
- var isTypedArray = require('./isTypedArray-cjs.js');
10
- var _baseFlatten = require('./_baseFlatten-cjs.js');
11
- var _setToString = require('./_setToString-cjs.js');
12
-
13
- /**
14
- * A specialized version of `_.forEach` for arrays without support for
15
- * iteratee shorthands.
16
- *
17
- * @private
18
- * @param {Array} [array] The array to iterate over.
19
- * @param {Function} iteratee The function invoked per iteration.
20
- * @returns {Array} Returns `array`.
21
- */
22
-
23
- function arrayEach$1(array, iteratee) {
24
- var index = -1,
25
- length = array == null ? 0 : array.length;
26
-
27
- while (++index < length) {
28
- if (iteratee(array[index], index, array) === false) {
29
- break;
30
- }
31
- }
32
- return array;
33
- }
34
-
35
- var _arrayEach = arrayEach$1;
36
-
37
- var copyObject$4 = keysIn$3._copyObject,
38
- keys$1 = _baseGet.keys_1;
39
-
40
- /**
41
- * The base implementation of `_.assign` without support for multiple sources
42
- * or `customizer` functions.
43
- *
44
- * @private
45
- * @param {Object} object The destination object.
46
- * @param {Object} source The source object.
47
- * @returns {Object} Returns `object`.
48
- */
49
- function baseAssign$1(object, source) {
50
- return object && copyObject$4(source, keys$1(source), object);
51
- }
52
-
53
- var _baseAssign = baseAssign$1;
54
-
55
- var copyObject$3 = keysIn$3._copyObject,
56
- keysIn$2 = keysIn$3.keysIn_1;
57
-
58
- /**
59
- * The base implementation of `_.assignIn` without support for multiple sources
60
- * or `customizer` functions.
61
- *
62
- * @private
63
- * @param {Object} object The destination object.
64
- * @param {Object} source The source object.
65
- * @returns {Object} Returns `object`.
66
- */
67
- function baseAssignIn$1(object, source) {
68
- return object && copyObject$3(source, keysIn$2(source), object);
69
- }
70
-
71
- var _baseAssignIn = baseAssignIn$1;
72
-
73
- var copyObject$2 = keysIn$3._copyObject,
74
- getSymbols$1 = _baseGet._getSymbols;
75
-
76
- /**
77
- * Copies own symbols of `source` to `object`.
78
- *
79
- * @private
80
- * @param {Object} source The object to copy symbols from.
81
- * @param {Object} [object={}] The object to copy symbols to.
82
- * @returns {Object} Returns `object`.
83
- */
84
- function copySymbols$1(source, object) {
85
- return copyObject$2(source, getSymbols$1(source), object);
86
- }
87
-
88
- var _copySymbols = copySymbols$1;
89
-
90
- var arrayPush = _baseGet._arrayPush,
91
- getPrototype = keysIn$3._getPrototype,
92
- getSymbols = _baseGet._getSymbols,
93
- stubArray = _baseGet.stubArray_1;
94
-
95
- /* Built-in method references for those with the same name as other `lodash` methods. */
96
- var nativeGetSymbols = Object.getOwnPropertySymbols;
97
-
98
- /**
99
- * Creates an array of the own and inherited enumerable symbols of `object`.
100
- *
101
- * @private
102
- * @param {Object} object The object to query.
103
- * @returns {Array} Returns the array of symbols.
104
- */
105
- var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
106
- var result = [];
107
- while (object) {
108
- arrayPush(result, getSymbols(object));
109
- object = getPrototype(object);
110
- }
111
- return result;
112
- };
113
-
114
- var _getSymbolsIn = getSymbolsIn$2;
115
-
116
- var copyObject$1 = keysIn$3._copyObject,
117
- getSymbolsIn$1 = _getSymbolsIn;
118
-
119
- /**
120
- * Copies own and inherited symbols of `source` to `object`.
121
- *
122
- * @private
123
- * @param {Object} source The object to copy symbols from.
124
- * @param {Object} [object={}] The object to copy symbols to.
125
- * @returns {Object} Returns `object`.
126
- */
127
- function copySymbolsIn$1(source, object) {
128
- return copyObject$1(source, getSymbolsIn$1(source), object);
129
- }
130
-
131
- var _copySymbolsIn = copySymbolsIn$1;
132
-
133
- var baseGetAllKeys = _baseGet._baseGetAllKeys,
134
- getSymbolsIn = _getSymbolsIn,
135
- keysIn$1 = keysIn$3.keysIn_1;
136
-
137
- /**
138
- * Creates an array of own and inherited enumerable property names and
139
- * symbols of `object`.
140
- *
141
- * @private
142
- * @param {Object} object The object to query.
143
- * @returns {Array} Returns the array of property names and symbols.
144
- */
145
- function getAllKeysIn$2(object) {
146
- return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
147
- }
148
-
149
- var _getAllKeysIn = getAllKeysIn$2;
150
-
151
- /** Used for built-in method references. */
152
-
153
- var objectProto = Object.prototype;
154
-
155
- /** Used to check objects for own properties. */
156
- var hasOwnProperty = objectProto.hasOwnProperty;
157
-
158
- /**
159
- * Initializes an array clone.
160
- *
161
- * @private
162
- * @param {Array} array The array to clone.
163
- * @returns {Array} Returns the initialized clone.
164
- */
165
- function initCloneArray$1(array) {
166
- var length = array.length,
167
- result = new array.constructor(length);
168
-
169
- // Add properties assigned by `RegExp#exec`.
170
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
171
- result.index = array.index;
172
- result.input = array.input;
173
- }
174
- return result;
175
- }
176
-
177
- var _initCloneArray = initCloneArray$1;
178
-
179
- var cloneArrayBuffer$1 = keysIn$3._cloneArrayBuffer;
180
-
181
- /**
182
- * Creates a clone of `dataView`.
183
- *
184
- * @private
185
- * @param {Object} dataView The data view to clone.
186
- * @param {boolean} [isDeep] Specify a deep clone.
187
- * @returns {Object} Returns the cloned data view.
188
- */
189
- function cloneDataView$1(dataView, isDeep) {
190
- var buffer = isDeep ? cloneArrayBuffer$1(dataView.buffer) : dataView.buffer;
191
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
192
- }
193
-
194
- var _cloneDataView = cloneDataView$1;
195
-
196
- /** Used to match `RegExp` flags from their coerced string values. */
197
-
198
- var reFlags = /\w*$/;
199
-
200
- /**
201
- * Creates a clone of `regexp`.
202
- *
203
- * @private
204
- * @param {Object} regexp The regexp to clone.
205
- * @returns {Object} Returns the cloned regexp.
206
- */
207
- function cloneRegExp$1(regexp) {
208
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
209
- result.lastIndex = regexp.lastIndex;
210
- return result;
211
- }
212
-
213
- var _cloneRegExp = cloneRegExp$1;
214
-
215
- var Symbol = isObjectLike$2._Symbol;
216
-
217
- /** Used to convert symbols to primitives and strings. */
218
- var symbolProto = Symbol ? Symbol.prototype : undefined,
219
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
220
-
221
- /**
222
- * Creates a clone of the `symbol` object.
223
- *
224
- * @private
225
- * @param {Object} symbol The symbol object to clone.
226
- * @returns {Object} Returns the cloned symbol object.
227
- */
228
- function cloneSymbol$1(symbol) {
229
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
230
- }
231
-
232
- var _cloneSymbol = cloneSymbol$1;
233
-
234
- var cloneArrayBuffer = keysIn$3._cloneArrayBuffer,
235
- cloneDataView = _cloneDataView,
236
- cloneRegExp = _cloneRegExp,
237
- cloneSymbol = _cloneSymbol,
238
- cloneTypedArray = keysIn$3._cloneTypedArray;
239
-
240
- /** `Object#toString` result references. */
241
- var boolTag$1 = '[object Boolean]',
242
- dateTag$1 = '[object Date]',
243
- mapTag$2 = '[object Map]',
244
- numberTag$1 = '[object Number]',
245
- regexpTag$1 = '[object RegExp]',
246
- setTag$2 = '[object Set]',
247
- stringTag$1 = '[object String]',
248
- symbolTag$1 = '[object Symbol]';
249
-
250
- var arrayBufferTag$1 = '[object ArrayBuffer]',
251
- dataViewTag$1 = '[object DataView]',
252
- float32Tag$1 = '[object Float32Array]',
253
- float64Tag$1 = '[object Float64Array]',
254
- int8Tag$1 = '[object Int8Array]',
255
- int16Tag$1 = '[object Int16Array]',
256
- int32Tag$1 = '[object Int32Array]',
257
- uint8Tag$1 = '[object Uint8Array]',
258
- uint8ClampedTag$1 = '[object Uint8ClampedArray]',
259
- uint16Tag$1 = '[object Uint16Array]',
260
- uint32Tag$1 = '[object Uint32Array]';
261
-
262
- /**
263
- * Initializes an object clone based on its `toStringTag`.
264
- *
265
- * **Note:** This function only supports cloning values with tags of
266
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
267
- *
268
- * @private
269
- * @param {Object} object The object to clone.
270
- * @param {string} tag The `toStringTag` of the object to clone.
271
- * @param {boolean} [isDeep] Specify a deep clone.
272
- * @returns {Object} Returns the initialized clone.
273
- */
274
- function initCloneByTag$1(object, tag, isDeep) {
275
- var Ctor = object.constructor;
276
- switch (tag) {
277
- case arrayBufferTag$1:
278
- return cloneArrayBuffer(object);
279
-
280
- case boolTag$1:
281
- case dateTag$1:
282
- return new Ctor(+object);
283
-
284
- case dataViewTag$1:
285
- return cloneDataView(object, isDeep);
286
-
287
- case float32Tag$1: case float64Tag$1:
288
- case int8Tag$1: case int16Tag$1: case int32Tag$1:
289
- case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
290
- return cloneTypedArray(object, isDeep);
291
-
292
- case mapTag$2:
293
- return new Ctor;
294
-
295
- case numberTag$1:
296
- case stringTag$1:
297
- return new Ctor(object);
298
-
299
- case regexpTag$1:
300
- return cloneRegExp(object);
301
-
302
- case setTag$2:
303
- return new Ctor;
304
-
305
- case symbolTag$1:
306
- return cloneSymbol(object);
307
- }
308
- }
309
-
310
- var _initCloneByTag = initCloneByTag$1;
311
-
312
- var getTag$2 = _getTag._getTag,
313
- isObjectLike$1 = isObjectLike$2.isObjectLike_1;
314
-
315
- /** `Object#toString` result references. */
316
- var mapTag$1 = '[object Map]';
317
-
318
- /**
319
- * The base implementation of `_.isMap` without Node.js optimizations.
320
- *
321
- * @private
322
- * @param {*} value The value to check.
323
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
324
- */
325
- function baseIsMap$1(value) {
326
- return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
327
- }
328
-
329
- var _baseIsMap = baseIsMap$1;
330
-
331
- var baseIsMap = _baseIsMap,
332
- baseUnary$1 = isTypedArray._baseUnary,
333
- nodeUtil$1 = isTypedArray._nodeUtilExports;
334
-
335
- /* Node.js helper references. */
336
- var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
337
-
338
- /**
339
- * Checks if `value` is classified as a `Map` object.
340
- *
341
- * @static
342
- * @memberOf _
343
- * @since 4.3.0
344
- * @category Lang
345
- * @param {*} value The value to check.
346
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
347
- * @example
348
- *
349
- * _.isMap(new Map);
350
- * // => true
351
- *
352
- * _.isMap(new WeakMap);
353
- * // => false
354
- */
355
- var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
356
-
357
- var isMap_1 = isMap$1;
358
-
359
- var getTag$1 = _getTag._getTag,
360
- isObjectLike = isObjectLike$2.isObjectLike_1;
361
-
362
- /** `Object#toString` result references. */
363
- var setTag$1 = '[object Set]';
364
-
365
- /**
366
- * The base implementation of `_.isSet` without Node.js optimizations.
367
- *
368
- * @private
369
- * @param {*} value The value to check.
370
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
371
- */
372
- function baseIsSet$1(value) {
373
- return isObjectLike(value) && getTag$1(value) == setTag$1;
374
- }
375
-
376
- var _baseIsSet = baseIsSet$1;
377
-
378
- var baseIsSet = _baseIsSet,
379
- baseUnary = isTypedArray._baseUnary,
380
- nodeUtil = isTypedArray._nodeUtilExports;
381
-
382
- /* Node.js helper references. */
383
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
384
-
385
- /**
386
- * Checks if `value` is classified as a `Set` object.
387
- *
388
- * @static
389
- * @memberOf _
390
- * @since 4.3.0
391
- * @category Lang
392
- * @param {*} value The value to check.
393
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
394
- * @example
395
- *
396
- * _.isSet(new Set);
397
- * // => true
398
- *
399
- * _.isSet(new WeakSet);
400
- * // => false
401
- */
402
- var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
403
-
404
- var isSet_1 = isSet$1;
405
-
406
- var Stack = identity._Stack,
407
- arrayEach = _arrayEach,
408
- assignValue = keysIn$3._assignValue,
409
- baseAssign = _baseAssign,
410
- baseAssignIn = _baseAssignIn,
411
- cloneBuffer = keysIn$3._cloneBufferExports,
412
- copyArray = keysIn$3._copyArray,
413
- copySymbols = _copySymbols,
414
- copySymbolsIn = _copySymbolsIn,
415
- getAllKeys = _baseGet._getAllKeys,
416
- getAllKeysIn$1 = _getAllKeysIn,
417
- getTag = _getTag._getTag,
418
- initCloneArray = _initCloneArray,
419
- initCloneByTag = _initCloneByTag,
420
- initCloneObject = keysIn$3._initCloneObject,
421
- isArray = isTypedArray.isArray_1,
422
- isBuffer = isTypedArray.isBufferExports,
423
- isMap = isMap_1,
424
- isObject = isObjectLike$2.isObject_1,
425
- isSet = isSet_1,
426
- keys = _baseGet.keys_1,
427
- keysIn = keysIn$3.keysIn_1;
428
-
429
- /** Used to compose bitmasks for cloning. */
430
- var CLONE_DEEP_FLAG$1 = 1,
431
- CLONE_FLAT_FLAG$1 = 2,
432
- CLONE_SYMBOLS_FLAG$1 = 4;
433
-
434
- /** `Object#toString` result references. */
435
- var argsTag = '[object Arguments]',
436
- arrayTag = '[object Array]',
437
- boolTag = '[object Boolean]',
438
- dateTag = '[object Date]',
439
- errorTag = '[object Error]',
440
- funcTag = '[object Function]',
441
- genTag = '[object GeneratorFunction]',
442
- mapTag = '[object Map]',
443
- numberTag = '[object Number]',
444
- objectTag = '[object Object]',
445
- regexpTag = '[object RegExp]',
446
- setTag = '[object Set]',
447
- stringTag = '[object String]',
448
- symbolTag = '[object Symbol]',
449
- weakMapTag = '[object WeakMap]';
450
-
451
- var arrayBufferTag = '[object ArrayBuffer]',
452
- dataViewTag = '[object DataView]',
453
- float32Tag = '[object Float32Array]',
454
- float64Tag = '[object Float64Array]',
455
- int8Tag = '[object Int8Array]',
456
- int16Tag = '[object Int16Array]',
457
- int32Tag = '[object Int32Array]',
458
- uint8Tag = '[object Uint8Array]',
459
- uint8ClampedTag = '[object Uint8ClampedArray]',
460
- uint16Tag = '[object Uint16Array]',
461
- uint32Tag = '[object Uint32Array]';
462
-
463
- /** Used to identify `toStringTag` values supported by `_.clone`. */
464
- var cloneableTags = {};
465
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
466
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
467
- cloneableTags[boolTag] = cloneableTags[dateTag] =
468
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
469
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
470
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
471
- cloneableTags[numberTag] = cloneableTags[objectTag] =
472
- cloneableTags[regexpTag] = cloneableTags[setTag] =
473
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
474
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
475
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
476
- cloneableTags[errorTag] = cloneableTags[funcTag] =
477
- cloneableTags[weakMapTag] = false;
478
-
479
- /**
480
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
481
- * traversed objects.
482
- *
483
- * @private
484
- * @param {*} value The value to clone.
485
- * @param {boolean} bitmask The bitmask flags.
486
- * 1 - Deep clone
487
- * 2 - Flatten inherited properties
488
- * 4 - Clone symbols
489
- * @param {Function} [customizer] The function to customize cloning.
490
- * @param {string} [key] The key of `value`.
491
- * @param {Object} [object] The parent object of `value`.
492
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
493
- * @returns {*} Returns the cloned value.
494
- */
495
- function baseClone$1(value, bitmask, customizer, key, object, stack) {
496
- var result,
497
- isDeep = bitmask & CLONE_DEEP_FLAG$1,
498
- isFlat = bitmask & CLONE_FLAT_FLAG$1,
499
- isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
500
-
501
- if (customizer) {
502
- result = object ? customizer(value, key, object, stack) : customizer(value);
503
- }
504
- if (result !== undefined) {
505
- return result;
506
- }
507
- if (!isObject(value)) {
508
- return value;
509
- }
510
- var isArr = isArray(value);
511
- if (isArr) {
512
- result = initCloneArray(value);
513
- if (!isDeep) {
514
- return copyArray(value, result);
515
- }
516
- } else {
517
- var tag = getTag(value),
518
- isFunc = tag == funcTag || tag == genTag;
519
-
520
- if (isBuffer(value)) {
521
- return cloneBuffer(value, isDeep);
522
- }
523
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
524
- result = (isFlat || isFunc) ? {} : initCloneObject(value);
525
- if (!isDeep) {
526
- return isFlat
527
- ? copySymbolsIn(value, baseAssignIn(result, value))
528
- : copySymbols(value, baseAssign(result, value));
529
- }
530
- } else {
531
- if (!cloneableTags[tag]) {
532
- return object ? value : {};
533
- }
534
- result = initCloneByTag(value, tag, isDeep);
535
- }
536
- }
537
- // Check for circular references and return its corresponding clone.
538
- stack || (stack = new Stack);
539
- var stacked = stack.get(value);
540
- if (stacked) {
541
- return stacked;
542
- }
543
- stack.set(value, result);
544
-
545
- if (isSet(value)) {
546
- value.forEach(function(subValue) {
547
- result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
548
- });
549
- } else if (isMap(value)) {
550
- value.forEach(function(subValue, key) {
551
- result.set(key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
552
- });
553
- }
554
-
555
- var keysFunc = isFull
556
- ? (isFlat ? getAllKeysIn$1 : getAllKeys)
557
- : (isFlat ? keysIn : keys);
558
-
559
- var props = isArr ? undefined : keysFunc(value);
560
- arrayEach(props || value, function(subValue, key) {
561
- if (props) {
562
- key = subValue;
563
- subValue = value[key];
564
- }
565
- // Recursively populate clone (susceptible to call stack limits).
566
- assignValue(result, key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
567
- });
568
- return result;
569
- }
570
-
571
- var _baseClone = baseClone$1;
572
-
573
- /**
574
- * Gets the last element of `array`.
575
- *
576
- * @static
577
- * @memberOf _
578
- * @since 0.1.0
579
- * @category Array
580
- * @param {Array} array The array to query.
581
- * @returns {*} Returns the last element of `array`.
582
- * @example
583
- *
584
- * _.last([1, 2, 3]);
585
- * // => 3
586
- */
587
-
588
- function last$1(array) {
589
- var length = array == null ? 0 : array.length;
590
- return length ? array[length - 1] : undefined;
591
- }
592
-
593
- var last_1 = last$1;
594
-
595
- /**
596
- * The base implementation of `_.slice` without an iteratee call guard.
597
- *
598
- * @private
599
- * @param {Array} array The array to slice.
600
- * @param {number} [start=0] The start position.
601
- * @param {number} [end=array.length] The end position.
602
- * @returns {Array} Returns the slice of `array`.
603
- */
604
-
605
- function baseSlice$1(array, start, end) {
606
- var index = -1,
607
- length = array.length;
608
-
609
- if (start < 0) {
610
- start = -start > length ? 0 : (length + start);
611
- }
612
- end = end > length ? length : end;
613
- if (end < 0) {
614
- end += length;
615
- }
616
- length = start > end ? 0 : ((end - start) >>> 0);
617
- start >>>= 0;
618
-
619
- var result = Array(length);
620
- while (++index < length) {
621
- result[index] = array[index + start];
622
- }
623
- return result;
624
- }
625
-
626
- var _baseSlice = baseSlice$1;
627
-
628
- var baseGet = _baseGet._baseGet,
629
- baseSlice = _baseSlice;
630
-
631
- /**
632
- * Gets the parent value at `path` of `object`.
633
- *
634
- * @private
635
- * @param {Object} object The object to query.
636
- * @param {Array} path The path to get the parent value of.
637
- * @returns {*} Returns the parent value.
638
- */
639
- function parent$1(object, path) {
640
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
641
- }
642
-
643
- var _parent = parent$1;
644
-
645
- var castPath$1 = _baseGet._castPath,
646
- last = last_1,
647
- parent = _parent,
648
- toKey = _baseGet._toKey;
649
-
650
- /**
651
- * The base implementation of `_.unset`.
652
- *
653
- * @private
654
- * @param {Object} object The object to modify.
655
- * @param {Array|string} path The property path to unset.
656
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
657
- */
658
- function baseUnset$1(object, path) {
659
- path = castPath$1(path, object);
660
- object = parent(object, path);
661
- return object == null || delete object[toKey(last(path))];
662
- }
663
-
664
- var _baseUnset = baseUnset$1;
665
-
666
- var isPlainObject = keysIn$3.isPlainObject_1;
667
-
668
- /**
669
- * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
670
- * objects.
671
- *
672
- * @private
673
- * @param {*} value The value to inspect.
674
- * @param {string} key The key of the property to inspect.
675
- * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
676
- */
677
- function customOmitClone$1(value) {
678
- return isPlainObject(value) ? undefined : value;
679
- }
680
-
681
- var _customOmitClone = customOmitClone$1;
682
-
683
- var baseFlatten = _baseFlatten._baseFlatten;
684
-
685
- /**
686
- * Flattens `array` a single level deep.
687
- *
688
- * @static
689
- * @memberOf _
690
- * @since 0.1.0
691
- * @category Array
692
- * @param {Array} array The array to flatten.
693
- * @returns {Array} Returns the new flattened array.
694
- * @example
695
- *
696
- * _.flatten([1, [2, [3, [4]], 5]]);
697
- * // => [1, 2, [3, [4]], 5]
698
- */
699
- function flatten$1(array) {
700
- var length = array == null ? 0 : array.length;
701
- return length ? baseFlatten(array, 1) : [];
702
- }
703
-
704
- var flatten_1 = flatten$1;
705
-
706
- var flatten = flatten_1,
707
- overRest = _setToString._overRest,
708
- setToString = _setToString._setToString;
709
-
710
- /**
711
- * A specialized version of `baseRest` which flattens the rest array.
712
- *
713
- * @private
714
- * @param {Function} func The function to apply a rest parameter to.
715
- * @returns {Function} Returns the new function.
716
- */
717
- function flatRest$1(func) {
718
- return setToString(overRest(func, undefined, flatten), func + '');
719
- }
720
-
721
- var _flatRest = flatRest$1;
722
-
723
- var arrayMap = _baseGet._arrayMap,
724
- baseClone = _baseClone,
725
- baseUnset = _baseUnset,
726
- castPath = _baseGet._castPath,
727
- copyObject = keysIn$3._copyObject,
728
- customOmitClone = _customOmitClone,
729
- flatRest = _flatRest,
730
- getAllKeysIn = _getAllKeysIn;
731
-
732
- /** Used to compose bitmasks for cloning. */
733
- var CLONE_DEEP_FLAG = 1,
734
- CLONE_FLAT_FLAG = 2,
735
- CLONE_SYMBOLS_FLAG = 4;
736
-
737
- /**
738
- * The opposite of `_.pick`; this method creates an object composed of the
739
- * own and inherited enumerable property paths of `object` that are not omitted.
740
- *
741
- * **Note:** This method is considerably slower than `_.pick`.
742
- *
743
- * @static
744
- * @since 0.1.0
745
- * @memberOf _
746
- * @category Object
747
- * @param {Object} object The source object.
748
- * @param {...(string|string[])} [paths] The property paths to omit.
749
- * @returns {Object} Returns the new object.
750
- * @example
751
- *
752
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
753
- *
754
- * _.omit(object, ['a', 'c']);
755
- * // => { 'b': '2' }
756
- */
757
- var omit = flatRest(function(object, paths) {
758
- var result = {};
759
- if (object == null) {
760
- return result;
761
- }
762
- var isDeep = false;
763
- paths = arrayMap(paths, function(path) {
764
- path = castPath(path, object);
765
- isDeep || (isDeep = path.length > 1);
766
- return path;
767
- });
768
- copyObject(object, getAllKeysIn(object), result);
769
- if (isDeep) {
770
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
771
- }
772
- var length = paths.length;
773
- while (length--) {
774
- baseUnset(result, paths[length]);
775
- }
776
- return result;
777
- });
778
-
779
- var omit_1 = omit;
780
-
781
- var omit$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(omit_1);
782
-
783
- exports.omit = omit$1;