@onereach/ui-components 7.1.1-beta.3553.0 → 8.0.0

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 (169) hide show
  1. package/dist/bundled/v2/{OrList-1bb8cbb1.js → OrList-e25dc45f.js} +129 -65
  2. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
  3. package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +1 -1
  4. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
  5. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
  6. package/dist/bundled/v2/components/OrList/OrList.js +3 -2581
  7. package/dist/bundled/v2/components/OrListV3/OrList.js +1 -1
  8. package/dist/bundled/v2/components/OrListV3/OrList.vue.d.ts +30 -26
  9. package/dist/bundled/v2/components/OrListV3/index.d.ts +1 -0
  10. package/dist/bundled/v2/components/OrListV3/index.js +1 -1
  11. package/dist/bundled/v2/components/OrListV3/styles.d.ts +1 -0
  12. package/dist/bundled/v2/components/OrListV3/styles.js +2 -1
  13. package/dist/bundled/v2/components/OrListV3/types.d.ts +4 -0
  14. package/dist/bundled/v2/components/OrListV3/types.js +1 -0
  15. package/dist/bundled/v2/components/index.js +2 -2
  16. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -0
  17. package/dist/bundled/v2/index.js +3 -3
  18. package/dist/bundled/{v3/OrList.vue_vue_type_script_lang-bc49c1ff.js → v2/sortable.esm-11705107.js} +1 -1007
  19. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-79c15c42.js → OrCardCollection.vue_vue_type_script_lang-2ce06287.js} +3 -3
  20. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c1b79f15.js → OrCode.vue_vue_type_script_lang-ed0c782e.js} +2 -2
  21. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ac0e29e9.js → OrConfirm.vue_vue_type_script_lang-3717bdc9.js} +1 -1
  22. package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-9965a7ee.js → OrContextMenu.vue_vue_type_script_lang-faabc0aa.js} +1 -1
  23. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-38ecba3a.js → OrDatePicker.vue_vue_type_script_lang-3cb0cf6b.js} +4 -4
  24. package/dist/bundled/v3/{OrDateRangePicker.vue_vue_type_script_lang-6c57d848.js → OrDateRangePicker.vue_vue_type_script_lang-8fc45f7e.js} +3 -3
  25. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-0b1559d3.js → OrDateTimePicker.vue_vue_type_script_lang-8e1cb539.js} +4 -4
  26. package/dist/bundled/v3/{OrDateTimePickerMonthSelect.vue_vue_type_script_lang-0c826945.js → OrDateTimePickerMonthSelect.vue_vue_type_script_lang-944f5be2.js} +2 -2
  27. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-f08110c4.js → OrDateTimePickerPopoverHeader-adf15a04.js} +1 -1
  28. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-90648210.js → OrIconButton.vue_vue_type_script_lang-14f36240.js} +1 -1
  29. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-eafbf015.js → OrInlineInput.vue_vue_type_script_lang-a657b7b4.js} +1 -1
  30. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-6b88499a.js → OrInlineTextarea.vue_vue_type_script_lang-d0007d91.js} +1 -1
  31. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-7e02f424.js → OrInput.vue_vue_type_script_lang-bbf2d591.js} +1 -1
  32. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-6a8befb2.js +208 -0
  33. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-8df85a8d.js +1008 -0
  34. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-3d17e3d2.js → OrListOfInputs.vue_vue_type_script_lang-34a006d0.js} +1 -1
  35. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-af4f2a40.js → OrMenu.vue_vue_type_script_lang-bb8832d7.js} +1 -1
  36. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-0d3b5147.js → OrModal.vue_vue_type_script_lang-051dddcb.js} +1 -1
  37. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-dddec4de.js → OrNotification.vue_vue_type_script_lang-d95be0bc.js} +1 -1
  38. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-8eb1510b.js → OrPagination.vue_vue_type_script_lang-9cbebadb.js} +1 -1
  39. package/dist/bundled/v3/{OrResizeablePanel.vue_vue_type_script_lang-f121c786.js → OrResizeablePanel.vue_vue_type_script_lang-15321cdb.js} +1 -1
  40. package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-2d4d62a7.js → OrRichTextEditor.vue_vue_type_script_lang-d35ab507.js} +5 -5
  41. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-63479512.js → OrSearch.vue_vue_type_script_lang-d5d5ced4.js} +1 -1
  42. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-2848dfcb.js → OrSelect.vue_vue_type_script_lang-4ce1aad8.js} +4 -4
  43. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-8b27f24b.js → OrSidebar.vue_vue_type_script_lang-a2b5ddd8.js} +1 -1
  44. package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-9f514be8.js → OrSorting.vue_vue_type_script_lang-5f90a4ca.js} +1 -1
  45. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-4675145f.js → OrTabs.vue_vue_type_script_lang-27819312.js} +1 -1
  46. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-0658354d.js → OrTag.vue_vue_type_script_lang-afc42fba.js} +1 -1
  47. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-7d758cdd.js → OrTagInput.vue_vue_type_script_lang-79062a86.js} +2 -2
  48. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-2804af4c.js → OrTags.vue_vue_type_script_lang-41446a34.js} +2 -2
  49. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-2031ee3a.js → OrTimePicker.vue_vue_type_script_lang-1f50fb53.js} +2 -2
  50. package/dist/bundled/v3/{OrTimeRangePicker.vue_vue_type_script_lang-4a548281.js → OrTimeRangePicker.vue_vue_type_script_lang-864b4f86.js} +2 -2
  51. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-8af0ce75.js → OrTooltip.vue_vue_type_script_lang-46e8aa97.js} +1 -1
  52. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  53. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  54. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
  55. package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
  56. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
  57. package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
  58. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
  59. package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
  60. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
  61. package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
  62. package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +2 -2
  63. package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +1 -1
  64. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
  65. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -2
  66. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
  67. package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
  68. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
  69. package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
  70. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  71. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
  72. package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
  73. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  74. package/dist/bundled/v3/components/OrList/OrList.js +2 -2
  75. package/dist/bundled/v3/components/OrList/index.js +1 -1
  76. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
  77. package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
  78. package/dist/bundled/v3/components/OrListV3/OrList.js +19 -22
  79. package/dist/bundled/v3/components/OrListV3/OrList.vue.d.ts +25 -16
  80. package/dist/bundled/v3/components/OrListV3/index.d.ts +1 -0
  81. package/dist/bundled/v3/components/OrListV3/index.js +1 -1
  82. package/dist/bundled/v3/components/OrListV3/styles.d.ts +1 -0
  83. package/dist/bundled/v3/components/OrListV3/styles.js +2 -1
  84. package/dist/bundled/v3/components/OrListV3/types.d.ts +4 -0
  85. package/dist/bundled/v3/components/OrListV3/types.js +1 -0
  86. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
  87. package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
  88. package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
  89. package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
  90. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
  91. package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
  92. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
  93. package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
  94. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
  95. package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
  96. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
  97. package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
  98. package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.js +2 -2
  99. package/dist/bundled/v3/components/OrResizeablePanelV3/index.js +1 -1
  100. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
  101. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
  102. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
  103. package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
  104. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
  105. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  106. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
  107. package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
  108. package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
  109. package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
  110. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
  111. package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
  112. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
  113. package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
  114. package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
  115. package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
  116. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
  117. package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
  118. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
  119. package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
  120. package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +2 -2
  121. package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +1 -1
  122. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
  123. package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
  124. package/dist/bundled/v3/components/OrToastV3/OrToast.js +1 -1
  125. package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
  126. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
  127. package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
  128. package/dist/bundled/v3/components/index.js +35 -35
  129. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +2 -0
  130. package/dist/bundled/v3/index.js +36 -36
  131. package/dist/bundled/v3/sortable.esm-11705107.js +2580 -0
  132. package/dist/esm/v2/{OrList-5c383b3c.js → OrList-bf420a7c.js} +88 -62
  133. package/dist/esm/v2/{OrListItem-c6b0dd77.js → OrListItem-534e8e9d.js} +43 -4
  134. package/dist/esm/v2/components/index.js +2 -2
  135. package/dist/esm/v2/components/or-list-v3/OrList.vue.d.ts +30 -26
  136. package/dist/esm/v2/components/or-list-v3/index.d.ts +1 -0
  137. package/dist/esm/v2/components/or-list-v3/index.js +3 -2
  138. package/dist/esm/v2/components/or-list-v3/partials/index.js +1 -1
  139. package/dist/esm/v2/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +42 -2
  140. package/dist/esm/v2/components/or-list-v3/partials/or-list-item/styles.d.ts +1 -0
  141. package/dist/esm/v2/components/or-list-v3/styles.d.ts +1 -0
  142. package/dist/esm/v2/components/or-list-v3/types.d.ts +4 -0
  143. package/dist/esm/v2/index.js +2 -2
  144. package/dist/esm/v3/OrList-f846aad7.js +211 -0
  145. package/dist/esm/v3/OrListItem-2ed9a12f.js +70 -0
  146. package/dist/esm/v3/components/index.js +2 -2
  147. package/dist/esm/v3/components/or-list-v3/OrList.vue.d.ts +25 -16
  148. package/dist/esm/v3/components/or-list-v3/index.d.ts +1 -0
  149. package/dist/esm/v3/components/or-list-v3/index.js +3 -2
  150. package/dist/esm/v3/components/or-list-v3/partials/index.js +1 -1
  151. package/dist/esm/v3/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +33 -2
  152. package/dist/esm/v3/components/or-list-v3/partials/or-list-item/styles.d.ts +1 -0
  153. package/dist/esm/v3/components/or-list-v3/styles.d.ts +1 -0
  154. package/dist/esm/v3/components/or-list-v3/types.d.ts +4 -0
  155. package/dist/esm/v3/index.js +2 -2
  156. package/package.json +4 -3
  157. package/src/components/or-list-v3/OrList.vue +118 -78
  158. package/src/components/or-list-v3/index.ts +1 -0
  159. package/src/components/or-list-v3/partials/or-list-item/OrListItem.vue +32 -2
  160. package/src/components/or-list-v3/partials/or-list-item/styles.ts +27 -0
  161. package/src/components/or-list-v3/styles.ts +2 -0
  162. package/src/components/or-list-v3/types.ts +4 -0
  163. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-8f6fa1e3.js +0 -141
  164. package/dist/esm/v3/OrList-f2ad37ed.js +0 -182
  165. package/dist/esm/v3/OrListItem-d89cd659.js +0 -33
  166. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-c7959782.js → OrDateTimePickerMonthSelect-9870c649.js} +0 -0
  167. /package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-62552b5d.js → OrPopover.vue_vue_type_script_lang-f80a7a1b.js} +0 -0
  168. /package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-9f7dcc82.js → OrProgress.vue_vue_type_script_lang-aa3d9804.js} +0 -0
  169. /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-a932333f.js → OrToastContainer.vue_vue_type_script_lang-1f10ba7f.js} +0 -0
@@ -0,0 +1,1008 @@
1
+ import { defineComponent } from 'vue-demi';
2
+ import { k as keys_1, b as _isPrototype, c as _arrayLikeKeys, d as _getSymbols, e as _arrayPush, s as stubArray_1, f as _baseGetAllKeys, g as _Uint8Array, h as _getTag, j as _nodeUtilExports, l as _baseUnary, _ as _Stack, m as isBufferExports, n as _getAllKeys } from './_baseIsEqual-fe2002b6.js';
3
+ import { _ as _baseAssignValue } from './_baseAssignValue-2250dbc9.js';
4
+ import { e as eq_1 } from './eq-44ea4d70.js';
5
+ import { i as isObject_1, _ as _root, a as _Symbol, b as isObjectLike_1 } from './isObject-b7415fc1.js';
6
+ import { i as isArrayLike_1 } from './isArrayLike-e7fb5cae.js';
7
+ import { _ as _getPrototype } from './dom-cec392f3.js';
8
+ import { i as isArray_1 } from './toString-b6e4472a.js';
9
+ import { i as isEqual_1 } from './isEqual-7a8e6106.js';
10
+ import { v as v4 } from './v4-cf8987a3.js';
11
+ import { S as Sortable } from './sortable.esm-11705107.js';
12
+ import './components/OrError/OrError.js';
13
+ import './components/OrLabel/OrLabel.js';
14
+ import './components/OrButtonV2/OrButton.js';
15
+ import './components/OrIconButtonV2/OrIconButton.js';
16
+ import './components/OrIcon/OrIcon.js';
17
+ import { s as script$1 } from './OrError.vue_vue_type_script_lang-450321b8.js';
18
+ import { s as script$2 } from './OrLabel.vue_vue_type_script_lang-6243e348.js';
19
+ import { s as script$3 } from './OrButton.vue_vue_type_script_lang-0fb2b270.js';
20
+ import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-f6bf7dda.js';
21
+ import { s as script$5 } from './OrIcon.vue_vue_type_script_lang-f3cbff23.js';
22
+
23
+ /**
24
+ * A specialized version of `_.forEach` for arrays without support for
25
+ * iteratee shorthands.
26
+ *
27
+ * @private
28
+ * @param {Array} [array] The array to iterate over.
29
+ * @param {Function} iteratee The function invoked per iteration.
30
+ * @returns {Array} Returns `array`.
31
+ */
32
+ function arrayEach$1(array, iteratee) {
33
+ var index = -1,
34
+ length = array == null ? 0 : array.length;
35
+ while (++index < length) {
36
+ if (iteratee(array[index], index, array) === false) {
37
+ break;
38
+ }
39
+ }
40
+ return array;
41
+ }
42
+ var _arrayEach = arrayEach$1;
43
+
44
+ var baseAssignValue$1 = _baseAssignValue,
45
+ eq = eq_1;
46
+
47
+ /** Used for built-in method references. */
48
+ var objectProto$2 = Object.prototype;
49
+
50
+ /** Used to check objects for own properties. */
51
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
52
+
53
+ /**
54
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
55
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
56
+ * for equality comparisons.
57
+ *
58
+ * @private
59
+ * @param {Object} object The object to modify.
60
+ * @param {string} key The key of the property to assign.
61
+ * @param {*} value The value to assign.
62
+ */
63
+ function assignValue$2(object, key, value) {
64
+ var objValue = object[key];
65
+ if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {
66
+ baseAssignValue$1(object, key, value);
67
+ }
68
+ }
69
+ var _assignValue = assignValue$2;
70
+
71
+ var assignValue$1 = _assignValue,
72
+ baseAssignValue = _baseAssignValue;
73
+
74
+ /**
75
+ * Copies properties of `source` to `object`.
76
+ *
77
+ * @private
78
+ * @param {Object} source The object to copy properties from.
79
+ * @param {Array} props The property identifiers to copy.
80
+ * @param {Object} [object={}] The object to copy properties to.
81
+ * @param {Function} [customizer] The function to customize copied values.
82
+ * @returns {Object} Returns `object`.
83
+ */
84
+ function copyObject$4(source, props, object, customizer) {
85
+ var isNew = !object;
86
+ object || (object = {});
87
+ var index = -1,
88
+ length = props.length;
89
+ while (++index < length) {
90
+ var key = props[index];
91
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
92
+ if (newValue === undefined) {
93
+ newValue = source[key];
94
+ }
95
+ if (isNew) {
96
+ baseAssignValue(object, key, newValue);
97
+ } else {
98
+ assignValue$1(object, key, newValue);
99
+ }
100
+ }
101
+ return object;
102
+ }
103
+ var _copyObject = copyObject$4;
104
+
105
+ var copyObject$3 = _copyObject,
106
+ keys$1 = keys_1;
107
+
108
+ /**
109
+ * The base implementation of `_.assign` without support for multiple sources
110
+ * or `customizer` functions.
111
+ *
112
+ * @private
113
+ * @param {Object} object The destination object.
114
+ * @param {Object} source The source object.
115
+ * @returns {Object} Returns `object`.
116
+ */
117
+ function baseAssign$1(object, source) {
118
+ return object && copyObject$3(source, keys$1(source), object);
119
+ }
120
+ var _baseAssign = baseAssign$1;
121
+
122
+ /**
123
+ * This function is like
124
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
125
+ * except that it includes inherited enumerable properties.
126
+ *
127
+ * @private
128
+ * @param {Object} object The object to query.
129
+ * @returns {Array} Returns the array of property names.
130
+ */
131
+ function nativeKeysIn$1(object) {
132
+ var result = [];
133
+ if (object != null) {
134
+ for (var key in Object(object)) {
135
+ result.push(key);
136
+ }
137
+ }
138
+ return result;
139
+ }
140
+ var _nativeKeysIn = nativeKeysIn$1;
141
+
142
+ var isObject$2 = isObject_1,
143
+ isPrototype$1 = _isPrototype,
144
+ nativeKeysIn = _nativeKeysIn;
145
+
146
+ /** Used for built-in method references. */
147
+ var objectProto$1 = Object.prototype;
148
+
149
+ /** Used to check objects for own properties. */
150
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
151
+
152
+ /**
153
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
154
+ *
155
+ * @private
156
+ * @param {Object} object The object to query.
157
+ * @returns {Array} Returns the array of property names.
158
+ */
159
+ function baseKeysIn$1(object) {
160
+ if (!isObject$2(object)) {
161
+ return nativeKeysIn(object);
162
+ }
163
+ var isProto = isPrototype$1(object),
164
+ result = [];
165
+ for (var key in object) {
166
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty$1.call(object, key)))) {
167
+ result.push(key);
168
+ }
169
+ }
170
+ return result;
171
+ }
172
+ var _baseKeysIn = baseKeysIn$1;
173
+
174
+ var arrayLikeKeys = _arrayLikeKeys,
175
+ baseKeysIn = _baseKeysIn,
176
+ isArrayLike = isArrayLike_1;
177
+
178
+ /**
179
+ * Creates an array of the own and inherited enumerable property names of `object`.
180
+ *
181
+ * **Note:** Non-object values are coerced to objects.
182
+ *
183
+ * @static
184
+ * @memberOf _
185
+ * @since 3.0.0
186
+ * @category Object
187
+ * @param {Object} object The object to query.
188
+ * @returns {Array} Returns the array of property names.
189
+ * @example
190
+ *
191
+ * function Foo() {
192
+ * this.a = 1;
193
+ * this.b = 2;
194
+ * }
195
+ *
196
+ * Foo.prototype.c = 3;
197
+ *
198
+ * _.keysIn(new Foo);
199
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
200
+ */
201
+ function keysIn$3(object) {
202
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
203
+ }
204
+ var keysIn_1 = keysIn$3;
205
+
206
+ var copyObject$2 = _copyObject,
207
+ keysIn$2 = keysIn_1;
208
+
209
+ /**
210
+ * The base implementation of `_.assignIn` without support for multiple sources
211
+ * or `customizer` functions.
212
+ *
213
+ * @private
214
+ * @param {Object} object The destination object.
215
+ * @param {Object} source The source object.
216
+ * @returns {Object} Returns `object`.
217
+ */
218
+ function baseAssignIn$1(object, source) {
219
+ return object && copyObject$2(source, keysIn$2(source), object);
220
+ }
221
+ var _baseAssignIn = baseAssignIn$1;
222
+
223
+ var _cloneBufferExports = {};
224
+ var _cloneBuffer = {
225
+ get exports(){ return _cloneBufferExports; },
226
+ set exports(v){ _cloneBufferExports = v; },
227
+ };
228
+
229
+ (function (module, exports) {
230
+ var root = _root;
231
+
232
+ /** Detect free variable `exports`. */
233
+ var freeExports = exports && !exports.nodeType && exports;
234
+
235
+ /** Detect free variable `module`. */
236
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
237
+
238
+ /** Detect the popular CommonJS extension `module.exports`. */
239
+ var moduleExports = freeModule && freeModule.exports === freeExports;
240
+
241
+ /** Built-in value references. */
242
+ var Buffer = moduleExports ? root.Buffer : undefined,
243
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
244
+
245
+ /**
246
+ * Creates a clone of `buffer`.
247
+ *
248
+ * @private
249
+ * @param {Buffer} buffer The buffer to clone.
250
+ * @param {boolean} [isDeep] Specify a deep clone.
251
+ * @returns {Buffer} Returns the cloned buffer.
252
+ */
253
+ function cloneBuffer(buffer, isDeep) {
254
+ if (isDeep) {
255
+ return buffer.slice();
256
+ }
257
+ var length = buffer.length,
258
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
259
+ buffer.copy(result);
260
+ return result;
261
+ }
262
+ module.exports = cloneBuffer;
263
+ })(_cloneBuffer, _cloneBufferExports);
264
+
265
+ /**
266
+ * Copies the values of `source` to `array`.
267
+ *
268
+ * @private
269
+ * @param {Array} source The array to copy values from.
270
+ * @param {Array} [array=[]] The array to copy values to.
271
+ * @returns {Array} Returns `array`.
272
+ */
273
+ function copyArray$1(source, array) {
274
+ var index = -1,
275
+ length = source.length;
276
+ array || (array = Array(length));
277
+ while (++index < length) {
278
+ array[index] = source[index];
279
+ }
280
+ return array;
281
+ }
282
+ var _copyArray = copyArray$1;
283
+
284
+ var copyObject$1 = _copyObject,
285
+ getSymbols$1 = _getSymbols;
286
+
287
+ /**
288
+ * Copies own symbols of `source` to `object`.
289
+ *
290
+ * @private
291
+ * @param {Object} source The object to copy symbols from.
292
+ * @param {Object} [object={}] The object to copy symbols to.
293
+ * @returns {Object} Returns `object`.
294
+ */
295
+ function copySymbols$1(source, object) {
296
+ return copyObject$1(source, getSymbols$1(source), object);
297
+ }
298
+ var _copySymbols = copySymbols$1;
299
+
300
+ var arrayPush = _arrayPush,
301
+ getPrototype$1 = _getPrototype,
302
+ getSymbols = _getSymbols,
303
+ stubArray = stubArray_1;
304
+
305
+ /* Built-in method references for those with the same name as other `lodash` methods. */
306
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
307
+
308
+ /**
309
+ * Creates an array of the own and inherited enumerable symbols of `object`.
310
+ *
311
+ * @private
312
+ * @param {Object} object The object to query.
313
+ * @returns {Array} Returns the array of symbols.
314
+ */
315
+ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function (object) {
316
+ var result = [];
317
+ while (object) {
318
+ arrayPush(result, getSymbols(object));
319
+ object = getPrototype$1(object);
320
+ }
321
+ return result;
322
+ };
323
+ var _getSymbolsIn = getSymbolsIn$2;
324
+
325
+ var copyObject = _copyObject,
326
+ getSymbolsIn$1 = _getSymbolsIn;
327
+
328
+ /**
329
+ * Copies own and inherited symbols of `source` to `object`.
330
+ *
331
+ * @private
332
+ * @param {Object} source The object to copy symbols from.
333
+ * @param {Object} [object={}] The object to copy symbols to.
334
+ * @returns {Object} Returns `object`.
335
+ */
336
+ function copySymbolsIn$1(source, object) {
337
+ return copyObject(source, getSymbolsIn$1(source), object);
338
+ }
339
+ var _copySymbolsIn = copySymbolsIn$1;
340
+
341
+ var baseGetAllKeys = _baseGetAllKeys,
342
+ getSymbolsIn = _getSymbolsIn,
343
+ keysIn$1 = keysIn_1;
344
+
345
+ /**
346
+ * Creates an array of own and inherited enumerable property names and
347
+ * symbols of `object`.
348
+ *
349
+ * @private
350
+ * @param {Object} object The object to query.
351
+ * @returns {Array} Returns the array of property names and symbols.
352
+ */
353
+ function getAllKeysIn$1(object) {
354
+ return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
355
+ }
356
+ var _getAllKeysIn = getAllKeysIn$1;
357
+
358
+ /** Used for built-in method references. */
359
+ var objectProto = Object.prototype;
360
+
361
+ /** Used to check objects for own properties. */
362
+ var hasOwnProperty = objectProto.hasOwnProperty;
363
+
364
+ /**
365
+ * Initializes an array clone.
366
+ *
367
+ * @private
368
+ * @param {Array} array The array to clone.
369
+ * @returns {Array} Returns the initialized clone.
370
+ */
371
+ function initCloneArray$1(array) {
372
+ var length = array.length,
373
+ result = new array.constructor(length);
374
+
375
+ // Add properties assigned by `RegExp#exec`.
376
+ if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
377
+ result.index = array.index;
378
+ result.input = array.input;
379
+ }
380
+ return result;
381
+ }
382
+ var _initCloneArray = initCloneArray$1;
383
+
384
+ var Uint8Array = _Uint8Array;
385
+
386
+ /**
387
+ * Creates a clone of `arrayBuffer`.
388
+ *
389
+ * @private
390
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
391
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
392
+ */
393
+ function cloneArrayBuffer$3(arrayBuffer) {
394
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
395
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
396
+ return result;
397
+ }
398
+ var _cloneArrayBuffer = cloneArrayBuffer$3;
399
+
400
+ var cloneArrayBuffer$2 = _cloneArrayBuffer;
401
+
402
+ /**
403
+ * Creates a clone of `dataView`.
404
+ *
405
+ * @private
406
+ * @param {Object} dataView The data view to clone.
407
+ * @param {boolean} [isDeep] Specify a deep clone.
408
+ * @returns {Object} Returns the cloned data view.
409
+ */
410
+ function cloneDataView$1(dataView, isDeep) {
411
+ var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
412
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
413
+ }
414
+ var _cloneDataView = cloneDataView$1;
415
+
416
+ /** Used to match `RegExp` flags from their coerced string values. */
417
+ var reFlags = /\w*$/;
418
+
419
+ /**
420
+ * Creates a clone of `regexp`.
421
+ *
422
+ * @private
423
+ * @param {Object} regexp The regexp to clone.
424
+ * @returns {Object} Returns the cloned regexp.
425
+ */
426
+ function cloneRegExp$1(regexp) {
427
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
428
+ result.lastIndex = regexp.lastIndex;
429
+ return result;
430
+ }
431
+ var _cloneRegExp = cloneRegExp$1;
432
+
433
+ var Symbol = _Symbol;
434
+
435
+ /** Used to convert symbols to primitives and strings. */
436
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
437
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
438
+
439
+ /**
440
+ * Creates a clone of the `symbol` object.
441
+ *
442
+ * @private
443
+ * @param {Object} symbol The symbol object to clone.
444
+ * @returns {Object} Returns the cloned symbol object.
445
+ */
446
+ function cloneSymbol$1(symbol) {
447
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
448
+ }
449
+ var _cloneSymbol = cloneSymbol$1;
450
+
451
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
452
+
453
+ /**
454
+ * Creates a clone of `typedArray`.
455
+ *
456
+ * @private
457
+ * @param {Object} typedArray The typed array to clone.
458
+ * @param {boolean} [isDeep] Specify a deep clone.
459
+ * @returns {Object} Returns the cloned typed array.
460
+ */
461
+ function cloneTypedArray$1(typedArray, isDeep) {
462
+ var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
463
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
464
+ }
465
+ var _cloneTypedArray = cloneTypedArray$1;
466
+
467
+ var cloneArrayBuffer = _cloneArrayBuffer,
468
+ cloneDataView = _cloneDataView,
469
+ cloneRegExp = _cloneRegExp,
470
+ cloneSymbol = _cloneSymbol,
471
+ cloneTypedArray = _cloneTypedArray;
472
+
473
+ /** `Object#toString` result references. */
474
+ var boolTag$1 = '[object Boolean]',
475
+ dateTag$1 = '[object Date]',
476
+ mapTag$2 = '[object Map]',
477
+ numberTag$1 = '[object Number]',
478
+ regexpTag$1 = '[object RegExp]',
479
+ setTag$2 = '[object Set]',
480
+ stringTag$1 = '[object String]',
481
+ symbolTag$1 = '[object Symbol]';
482
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
483
+ dataViewTag$1 = '[object DataView]',
484
+ float32Tag$1 = '[object Float32Array]',
485
+ float64Tag$1 = '[object Float64Array]',
486
+ int8Tag$1 = '[object Int8Array]',
487
+ int16Tag$1 = '[object Int16Array]',
488
+ int32Tag$1 = '[object Int32Array]',
489
+ uint8Tag$1 = '[object Uint8Array]',
490
+ uint8ClampedTag$1 = '[object Uint8ClampedArray]',
491
+ uint16Tag$1 = '[object Uint16Array]',
492
+ uint32Tag$1 = '[object Uint32Array]';
493
+
494
+ /**
495
+ * Initializes an object clone based on its `toStringTag`.
496
+ *
497
+ * **Note:** This function only supports cloning values with tags of
498
+ * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
499
+ *
500
+ * @private
501
+ * @param {Object} object The object to clone.
502
+ * @param {string} tag The `toStringTag` of the object to clone.
503
+ * @param {boolean} [isDeep] Specify a deep clone.
504
+ * @returns {Object} Returns the initialized clone.
505
+ */
506
+ function initCloneByTag$1(object, tag, isDeep) {
507
+ var Ctor = object.constructor;
508
+ switch (tag) {
509
+ case arrayBufferTag$1:
510
+ return cloneArrayBuffer(object);
511
+ case boolTag$1:
512
+ case dateTag$1:
513
+ return new Ctor(+object);
514
+ case dataViewTag$1:
515
+ return cloneDataView(object, isDeep);
516
+ case float32Tag$1:
517
+ case float64Tag$1:
518
+ case int8Tag$1:
519
+ case int16Tag$1:
520
+ case int32Tag$1:
521
+ case uint8Tag$1:
522
+ case uint8ClampedTag$1:
523
+ case uint16Tag$1:
524
+ case uint32Tag$1:
525
+ return cloneTypedArray(object, isDeep);
526
+ case mapTag$2:
527
+ return new Ctor();
528
+ case numberTag$1:
529
+ case stringTag$1:
530
+ return new Ctor(object);
531
+ case regexpTag$1:
532
+ return cloneRegExp(object);
533
+ case setTag$2:
534
+ return new Ctor();
535
+ case symbolTag$1:
536
+ return cloneSymbol(object);
537
+ }
538
+ }
539
+ var _initCloneByTag = initCloneByTag$1;
540
+
541
+ var isObject$1 = isObject_1;
542
+
543
+ /** Built-in value references. */
544
+ var objectCreate = Object.create;
545
+
546
+ /**
547
+ * The base implementation of `_.create` without support for assigning
548
+ * properties to the created object.
549
+ *
550
+ * @private
551
+ * @param {Object} proto The object to inherit from.
552
+ * @returns {Object} Returns the new object.
553
+ */
554
+ var baseCreate$1 = function () {
555
+ function object() {}
556
+ return function (proto) {
557
+ if (!isObject$1(proto)) {
558
+ return {};
559
+ }
560
+ if (objectCreate) {
561
+ return objectCreate(proto);
562
+ }
563
+ object.prototype = proto;
564
+ var result = new object();
565
+ object.prototype = undefined;
566
+ return result;
567
+ };
568
+ }();
569
+ var _baseCreate = baseCreate$1;
570
+
571
+ var baseCreate = _baseCreate,
572
+ getPrototype = _getPrototype,
573
+ isPrototype = _isPrototype;
574
+
575
+ /**
576
+ * Initializes an object clone.
577
+ *
578
+ * @private
579
+ * @param {Object} object The object to clone.
580
+ * @returns {Object} Returns the initialized clone.
581
+ */
582
+ function initCloneObject$1(object) {
583
+ return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
584
+ }
585
+ var _initCloneObject = initCloneObject$1;
586
+
587
+ var getTag$2 = _getTag,
588
+ isObjectLike$1 = isObjectLike_1;
589
+
590
+ /** `Object#toString` result references. */
591
+ var mapTag$1 = '[object Map]';
592
+
593
+ /**
594
+ * The base implementation of `_.isMap` without Node.js optimizations.
595
+ *
596
+ * @private
597
+ * @param {*} value The value to check.
598
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
599
+ */
600
+ function baseIsMap$1(value) {
601
+ return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
602
+ }
603
+ var _baseIsMap = baseIsMap$1;
604
+
605
+ var baseIsMap = _baseIsMap,
606
+ baseUnary$1 = _baseUnary,
607
+ nodeUtil$1 = _nodeUtilExports;
608
+
609
+ /* Node.js helper references. */
610
+ var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
611
+
612
+ /**
613
+ * Checks if `value` is classified as a `Map` object.
614
+ *
615
+ * @static
616
+ * @memberOf _
617
+ * @since 4.3.0
618
+ * @category Lang
619
+ * @param {*} value The value to check.
620
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
621
+ * @example
622
+ *
623
+ * _.isMap(new Map);
624
+ * // => true
625
+ *
626
+ * _.isMap(new WeakMap);
627
+ * // => false
628
+ */
629
+ var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
630
+ var isMap_1 = isMap$1;
631
+
632
+ var getTag$1 = _getTag,
633
+ isObjectLike = isObjectLike_1;
634
+
635
+ /** `Object#toString` result references. */
636
+ var setTag$1 = '[object Set]';
637
+
638
+ /**
639
+ * The base implementation of `_.isSet` without Node.js optimizations.
640
+ *
641
+ * @private
642
+ * @param {*} value The value to check.
643
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
644
+ */
645
+ function baseIsSet$1(value) {
646
+ return isObjectLike(value) && getTag$1(value) == setTag$1;
647
+ }
648
+ var _baseIsSet = baseIsSet$1;
649
+
650
+ var baseIsSet = _baseIsSet,
651
+ baseUnary = _baseUnary,
652
+ nodeUtil = _nodeUtilExports;
653
+
654
+ /* Node.js helper references. */
655
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
656
+
657
+ /**
658
+ * Checks if `value` is classified as a `Set` object.
659
+ *
660
+ * @static
661
+ * @memberOf _
662
+ * @since 4.3.0
663
+ * @category Lang
664
+ * @param {*} value The value to check.
665
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
666
+ * @example
667
+ *
668
+ * _.isSet(new Set);
669
+ * // => true
670
+ *
671
+ * _.isSet(new WeakSet);
672
+ * // => false
673
+ */
674
+ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
675
+ var isSet_1 = isSet$1;
676
+
677
+ var Stack = _Stack,
678
+ arrayEach = _arrayEach,
679
+ assignValue = _assignValue,
680
+ baseAssign = _baseAssign,
681
+ baseAssignIn = _baseAssignIn,
682
+ cloneBuffer = _cloneBufferExports,
683
+ copyArray = _copyArray,
684
+ copySymbols = _copySymbols,
685
+ copySymbolsIn = _copySymbolsIn,
686
+ getAllKeys = _getAllKeys,
687
+ getAllKeysIn = _getAllKeysIn,
688
+ getTag = _getTag,
689
+ initCloneArray = _initCloneArray,
690
+ initCloneByTag = _initCloneByTag,
691
+ initCloneObject = _initCloneObject,
692
+ isArray = isArray_1,
693
+ isBuffer = isBufferExports,
694
+ isMap = isMap_1,
695
+ isObject = isObject_1,
696
+ isSet = isSet_1,
697
+ keys = keys_1,
698
+ keysIn = keysIn_1;
699
+
700
+ /** Used to compose bitmasks for cloning. */
701
+ var CLONE_DEEP_FLAG$1 = 1,
702
+ CLONE_FLAT_FLAG = 2,
703
+ CLONE_SYMBOLS_FLAG$1 = 4;
704
+
705
+ /** `Object#toString` result references. */
706
+ var argsTag = '[object Arguments]',
707
+ arrayTag = '[object Array]',
708
+ boolTag = '[object Boolean]',
709
+ dateTag = '[object Date]',
710
+ errorTag = '[object Error]',
711
+ funcTag = '[object Function]',
712
+ genTag = '[object GeneratorFunction]',
713
+ mapTag = '[object Map]',
714
+ numberTag = '[object Number]',
715
+ objectTag = '[object Object]',
716
+ regexpTag = '[object RegExp]',
717
+ setTag = '[object Set]',
718
+ stringTag = '[object String]',
719
+ symbolTag = '[object Symbol]',
720
+ weakMapTag = '[object WeakMap]';
721
+ var arrayBufferTag = '[object ArrayBuffer]',
722
+ dataViewTag = '[object DataView]',
723
+ float32Tag = '[object Float32Array]',
724
+ float64Tag = '[object Float64Array]',
725
+ int8Tag = '[object Int8Array]',
726
+ int16Tag = '[object Int16Array]',
727
+ int32Tag = '[object Int32Array]',
728
+ uint8Tag = '[object Uint8Array]',
729
+ uint8ClampedTag = '[object Uint8ClampedArray]',
730
+ uint16Tag = '[object Uint16Array]',
731
+ uint32Tag = '[object Uint32Array]';
732
+
733
+ /** Used to identify `toStringTag` values supported by `_.clone`. */
734
+ var cloneableTags = {};
735
+ cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
736
+ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
737
+
738
+ /**
739
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
740
+ * traversed objects.
741
+ *
742
+ * @private
743
+ * @param {*} value The value to clone.
744
+ * @param {boolean} bitmask The bitmask flags.
745
+ * 1 - Deep clone
746
+ * 2 - Flatten inherited properties
747
+ * 4 - Clone symbols
748
+ * @param {Function} [customizer] The function to customize cloning.
749
+ * @param {string} [key] The key of `value`.
750
+ * @param {Object} [object] The parent object of `value`.
751
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
752
+ * @returns {*} Returns the cloned value.
753
+ */
754
+ function baseClone$1(value, bitmask, customizer, key, object, stack) {
755
+ var result,
756
+ isDeep = bitmask & CLONE_DEEP_FLAG$1,
757
+ isFlat = bitmask & CLONE_FLAT_FLAG,
758
+ isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
759
+ if (customizer) {
760
+ result = object ? customizer(value, key, object, stack) : customizer(value);
761
+ }
762
+ if (result !== undefined) {
763
+ return result;
764
+ }
765
+ if (!isObject(value)) {
766
+ return value;
767
+ }
768
+ var isArr = isArray(value);
769
+ if (isArr) {
770
+ result = initCloneArray(value);
771
+ if (!isDeep) {
772
+ return copyArray(value, result);
773
+ }
774
+ } else {
775
+ var tag = getTag(value),
776
+ isFunc = tag == funcTag || tag == genTag;
777
+ if (isBuffer(value)) {
778
+ return cloneBuffer(value, isDeep);
779
+ }
780
+ if (tag == objectTag || tag == argsTag || isFunc && !object) {
781
+ result = isFlat || isFunc ? {} : initCloneObject(value);
782
+ if (!isDeep) {
783
+ return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
784
+ }
785
+ } else {
786
+ if (!cloneableTags[tag]) {
787
+ return object ? value : {};
788
+ }
789
+ result = initCloneByTag(value, tag, isDeep);
790
+ }
791
+ }
792
+ // Check for circular references and return its corresponding clone.
793
+ stack || (stack = new Stack());
794
+ var stacked = stack.get(value);
795
+ if (stacked) {
796
+ return stacked;
797
+ }
798
+ stack.set(value, result);
799
+ if (isSet(value)) {
800
+ value.forEach(function (subValue) {
801
+ result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
802
+ });
803
+ } else if (isMap(value)) {
804
+ value.forEach(function (subValue, key) {
805
+ result.set(key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
806
+ });
807
+ }
808
+ var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
809
+ var props = isArr ? undefined : keysFunc(value);
810
+ arrayEach(props || value, function (subValue, key) {
811
+ if (props) {
812
+ key = subValue;
813
+ subValue = value[key];
814
+ }
815
+ // Recursively populate clone (susceptible to call stack limits).
816
+ assignValue(result, key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
817
+ });
818
+ return result;
819
+ }
820
+ var _baseClone = baseClone$1;
821
+
822
+ var baseClone = _baseClone;
823
+
824
+ /** Used to compose bitmasks for cloning. */
825
+ var CLONE_DEEP_FLAG = 1,
826
+ CLONE_SYMBOLS_FLAG = 4;
827
+
828
+ /**
829
+ * This method is like `_.clone` except that it recursively clones `value`.
830
+ *
831
+ * @static
832
+ * @memberOf _
833
+ * @since 1.0.0
834
+ * @category Lang
835
+ * @param {*} value The value to recursively clone.
836
+ * @returns {*} Returns the deep cloned value.
837
+ * @see _.clone
838
+ * @example
839
+ *
840
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
841
+ *
842
+ * var deep = _.cloneDeep(objects);
843
+ * console.log(deep[0] === objects[0]);
844
+ * // => false
845
+ */
846
+ function cloneDeep(value) {
847
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
848
+ }
849
+ var cloneDeep_1 = cloneDeep;
850
+
851
+ function getItemWithUUID(data) {
852
+ return data.vforkey ? data : {
853
+ vforkey: v4(),
854
+ ...data
855
+ };
856
+ }
857
+ var script = defineComponent({
858
+ name: 'OrList',
859
+ components: {
860
+ OrError: script$1,
861
+ OrLabel: script$2,
862
+ OrButton: script$3,
863
+ OrIconButton: script$4,
864
+ OrIcon: script$5
865
+ },
866
+ model: {
867
+ prop: 'modelValue',
868
+ event: 'update:modelValue'
869
+ },
870
+ props: {
871
+ modelValue: {
872
+ type: Array,
873
+ required: true
874
+ },
875
+ label: {
876
+ type: String,
877
+ default: '',
878
+ required: false
879
+ },
880
+ buttonLabel: {
881
+ type: String,
882
+ default: '',
883
+ required: false
884
+ },
885
+ itemProps: {
886
+ type: Object,
887
+ default: () => ({}),
888
+ required: false
889
+ },
890
+ handle: {
891
+ type: String,
892
+ default: '',
893
+ required: false
894
+ },
895
+ isDisabled: {
896
+ type: Boolean,
897
+ default: false,
898
+ required: false
899
+ },
900
+ canAdd: {
901
+ type: Boolean,
902
+ default: true,
903
+ required: false
904
+ },
905
+ canDelete: {
906
+ type: Boolean,
907
+ default: true,
908
+ required: false
909
+ },
910
+ canDrag: {
911
+ type: Boolean,
912
+ default: true,
913
+ required: false
914
+ }
915
+ },
916
+ emits: ['update:modelValue', 'item-before-add', 'item-added', 'item-before-delete', 'item-deleted', 'item-before-move', 'item-move'],
917
+ data(props) {
918
+ return {
919
+ sortableInstance: null,
920
+ items: cloneDeep_1(props.modelValue).map(getItemWithUUID)
921
+ };
922
+ },
923
+ computed: {
924
+ hasMoreThanOneItem() {
925
+ return this.items.length > 1;
926
+ },
927
+ dragOptions() {
928
+ return {
929
+ animation: 250,
930
+ easing: 'cubic-bezier(0.12, 0.39, 0.5, 0.93)',
931
+ group: 'description',
932
+ disabled: this.isDisabled,
933
+ handle: this.handle ? `${this.handle}` : '.or-list--handle',
934
+ onUpdate: this.onUpdate
935
+ };
936
+ }
937
+ },
938
+ watch: {
939
+ modelValue(newModelValue) {
940
+ if (isEqual_1(newModelValue, this.items)) return;
941
+ this.items = cloneDeep_1(newModelValue).map(getItemWithUUID);
942
+ },
943
+ items: {
944
+ handler(newItems) {
945
+ this.$emit('update:modelValue', newItems);
946
+ },
947
+ deep: true
948
+ },
949
+ isDisabled(nv) {
950
+ var _a;
951
+ (_a = this.sortableInstance) === null || _a === void 0 ? void 0 : _a.option('disabled', nv);
952
+ },
953
+ handle(nv) {
954
+ var _a;
955
+ (_a = this.sortableInstance) === null || _a === void 0 ? void 0 : _a.option('handle', nv);
956
+ },
957
+ 'items.length': {
958
+ handler(nv) {
959
+ this.$nextTick(() => {
960
+ if (nv > 0 && !this.sortableInstance) {
961
+ this.sortableInstance = Sortable.create(this.$refs.listRef, this.dragOptions);
962
+ }
963
+ if (nv < 1 && this.sortableInstance) {
964
+ this.sortableInstance.destroy();
965
+ this.sortableInstance = null;
966
+ }
967
+ });
968
+ },
969
+ immediate: true
970
+ }
971
+ },
972
+ beforeDestroy() {
973
+ if (this.sortableInstance) {
974
+ this.sortableInstance.destroy();
975
+ this.sortableInstance = null;
976
+ }
977
+ },
978
+ methods: {
979
+ addItem() {
980
+ if (this.isDisabled) return;
981
+ this.$emit('item-before-add', this.items);
982
+ const result = [...this.items, getItemWithUUID(this.itemProps)];
983
+ this.$emit('item-added', result);
984
+ this.items = result;
985
+ },
986
+ deleteItem(index) {
987
+ if (this.isDisabled) return;
988
+ this.$emit('item-before-delete', this.items);
989
+ const result = this.items.filter((_, i) => i !== index);
990
+ this.$emit('item-deleted', result);
991
+ this.items = result;
992
+ },
993
+ onUpdate(_ref) {
994
+ let {
995
+ oldIndex,
996
+ newIndex
997
+ } = _ref;
998
+ if (this.isDisabled) return;
999
+ this.$emit('item-before-move', this.items);
1000
+ const result = cloneDeep_1(this.items);
1001
+ result.splice(newIndex, 0, result.splice(oldIndex, 1)[0]);
1002
+ this.$emit('item-move', result);
1003
+ this.items = result;
1004
+ }
1005
+ }
1006
+ });
1007
+
1008
+ export { script as s };