@dovetail-v2/refine 0.0.42 → 0.0.43

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 (202) hide show
  1. package/dist/{MonacoYamlDiffEditor-b007e47c.js → MonacoYamlDiffEditor-b2da37e8.js} +1 -1
  2. package/dist/{index-3ef1da30.js → index-64df5871.js} +577 -440
  3. package/dist/refine.js +1 -1
  4. package/dist/refine.umd.cjs +566 -429
  5. package/dist/style.css +1 -1
  6. package/lib/src/components/Form/useReactHookForm.d.ts +29 -0
  7. package/lib/src/components/Form/useRefineForm.d.ts +1 -1
  8. package/lib/src/components/ModalContextProvider/index.d.ts +12 -0
  9. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
  10. package/lib/src/components/Table/index.d.ts +1 -1
  11. package/lib/src/components/YamlForm/index.d.ts +4 -0
  12. package/lib/src/hooks/useEagleForm.d.ts +2 -1
  13. package/lib/src/hooks/useModal.d.ts +0 -0
  14. package/lib/src/model/cronjob-model.d.ts +9 -0
  15. package/lib/src/model/index.d.ts +6 -0
  16. package/lib/src/model/job-model.d.ts +10 -0
  17. package/lib/src/model/pod-metrics-model.d.ts +7 -0
  18. package/lib/src/model/pod-model.d.ts +15 -0
  19. package/lib/src/model/resource-model.d.ts +17 -0
  20. package/lib/src/model/workload-model.d.ts +17 -0
  21. package/lib/src/types/metric.d.ts +25 -0
  22. package/package.json +1 -1
  23. package/lib/src/App.js +0 -91
  24. package/lib/src/Dovetail.js +0 -45
  25. package/lib/src/components/Breadcrumb/index.js +0 -20
  26. package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
  27. package/lib/src/components/ConditionsTable/index.js +0 -1
  28. package/lib/src/components/CreateButton/index.js +0 -10
  29. package/lib/src/components/CronJobDropdown/index.js +0 -26
  30. package/lib/src/components/CronjobJobsTable/index.js +0 -49
  31. package/lib/src/components/DeleteButton/index.js +0 -13
  32. package/lib/src/components/DeleteManyButton/index.js +0 -16
  33. package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
  34. package/lib/src/components/DrawerShow/index.js +0 -1
  35. package/lib/src/components/EditButton/index.js +0 -13
  36. package/lib/src/components/EditField/index.js +0 -47
  37. package/lib/src/components/ErrorContent/index.js +0 -36
  38. package/lib/src/components/EventsTable/EventsTable.js +0 -59
  39. package/lib/src/components/EventsTable/index.js +0 -1
  40. package/lib/src/components/Form/KeyValueListWidget.js +0 -56
  41. package/lib/src/components/Form/MetadataForm.js +0 -9
  42. package/lib/src/components/Form/NameInputWidget.js +0 -50
  43. package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
  44. package/lib/src/components/Form/index.js +0 -4
  45. package/lib/src/components/Form/widget.js +0 -1
  46. package/lib/src/components/FormErrorAlert/index.js +0 -8
  47. package/lib/src/components/FormLayout/index.js +0 -21
  48. package/lib/src/components/FormModal/index.js +0 -51
  49. package/lib/src/components/ImageNames/index.js +0 -14
  50. package/lib/src/components/IngressRulesComponent/index.js +0 -11
  51. package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
  52. package/lib/src/components/IngressRulesTable/index.js +0 -1
  53. package/lib/src/components/K8sDropdown/index.js +0 -31
  54. package/lib/src/components/KeyValue/KeyValue.js +0 -27
  55. package/lib/src/components/KeyValue/index.js +0 -1
  56. package/lib/src/components/KeyValueData/index.js +0 -50
  57. package/lib/src/components/Layout/index.js +0 -39
  58. package/lib/src/components/ListPage/index.js +0 -25
  59. package/lib/src/components/Menu/index.js +0 -36
  60. package/lib/src/components/NamespacesFilter/index.js +0 -34
  61. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
  62. package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
  63. package/lib/src/components/PageShow/PageShow.js +0 -11
  64. package/lib/src/components/PageShow/index.js +0 -1
  65. package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
  66. package/lib/src/components/PodContainersTable/index.js +0 -1
  67. package/lib/src/components/PodLog/index.js +0 -136
  68. package/lib/src/components/ReferenceLink/index.js +0 -17
  69. package/lib/src/components/RefineForm/RefineFormContent.d.ts +0 -10
  70. package/lib/src/components/RefineForm/RefineFormModal.d.ts +0 -8
  71. package/lib/src/components/RefineForm/RefineFormPage.d.ts +0 -7
  72. package/lib/src/components/RefineForm/index.d.ts +0 -3
  73. package/lib/src/components/RefineForm/type.d.ts +0 -20
  74. package/lib/src/components/RefineForm/useRefineForm.d.ts +0 -10
  75. package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
  76. package/lib/src/components/ResourceCRUD/create/index.js +0 -13
  77. package/lib/src/components/ResourceCRUD/index.js +0 -4
  78. package/lib/src/components/ResourceCRUD/list/index.js +0 -19
  79. package/lib/src/components/ResourceCRUD/show/index.js +0 -6
  80. package/lib/src/components/ResourceLink/index.js +0 -21
  81. package/lib/src/components/ResourceUsageBar/index.js +0 -81
  82. package/lib/src/components/Separator/index.js +0 -11
  83. package/lib/src/components/ShowContent/ShowContent.js +0 -157
  84. package/lib/src/components/ShowContent/fields.js +0 -157
  85. package/lib/src/components/ShowContent/index.js +0 -2
  86. package/lib/src/components/StateTag/StateTag.js +0 -22
  87. package/lib/src/components/StateTag/index.js +0 -1
  88. package/lib/src/components/Table/ErrorContent.js +0 -36
  89. package/lib/src/components/Table/TableToolBar.js +0 -14
  90. package/lib/src/components/Table/TableWidgets.js +0 -28
  91. package/lib/src/components/Table/index.js +0 -69
  92. package/lib/src/components/Tags/index.js +0 -22
  93. package/lib/src/components/Time/index.js +0 -14
  94. package/lib/src/components/WorkloadDropdown/index.js +0 -24
  95. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
  96. package/lib/src/components/WorkloadPodsTable/index.js +0 -1
  97. package/lib/src/components/WorkloadReplicas/index.js +0 -50
  98. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
  99. package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
  100. package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
  101. package/lib/src/components/YamlEditor/index.js +0 -1
  102. package/lib/src/components/YamlEditor/style.js +0 -102
  103. package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
  104. package/lib/src/components/YamlForm/index.js +0 -61
  105. package/lib/src/components/index.js +0 -38
  106. package/lib/src/constants/index.js +0 -2
  107. package/lib/src/constants/k8s.js +0 -203
  108. package/lib/src/constants/state.js +0 -15
  109. package/lib/src/contexts/component.js +0 -3
  110. package/lib/src/contexts/configs.js +0 -3
  111. package/lib/src/contexts/global-store.js +0 -3
  112. package/lib/src/contexts/index.js +0 -3
  113. package/lib/src/hooks/index.js +0 -7
  114. package/lib/src/hooks/useDeleteModal/index.js +0 -1
  115. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
  116. package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
  117. package/lib/src/hooks/useDownloadYAML.js +0 -10
  118. package/lib/src/hooks/useEagleForm.js +0 -177
  119. package/lib/src/hooks/useEagleTable/columns.js +0 -246
  120. package/lib/src/hooks/useEagleTable/index.js +0 -2
  121. package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
  122. package/lib/src/hooks/useEdit.js +0 -19
  123. package/lib/src/hooks/useGlobalStore.js +0 -5
  124. package/lib/src/hooks/useK8sYamlEditor.js +0 -37
  125. package/lib/src/hooks/useOpenForm.js +0 -43
  126. package/lib/src/hooks/useSchema.js +0 -37
  127. package/lib/src/hooks/useSubmitForm.js +0 -42
  128. package/lib/src/i18n.js +0 -19
  129. package/lib/src/index.js +0 -13
  130. package/lib/src/locales/en-US/dovetail.json +0 -18
  131. package/lib/src/locales/en-US/index.js +0 -4
  132. package/lib/src/locales/index.js +0 -6
  133. package/lib/src/locales/zh-CN/dovetail.json +0 -91
  134. package/lib/src/locales/zh-CN/index.js +0 -4
  135. package/lib/src/main.js +0 -12
  136. package/lib/src/models/cronjob-model.js +0 -32
  137. package/lib/src/models/daemonset-model.js +0 -17
  138. package/lib/src/models/deployment-model.js +0 -17
  139. package/lib/src/models/event-model.js +0 -11
  140. package/lib/src/models/index.js +0 -14
  141. package/lib/src/models/ingress-model.js +0 -24
  142. package/lib/src/models/job-model.js +0 -56
  143. package/lib/src/models/network-policy-model.js +0 -10
  144. package/lib/src/models/pod-metrics-model.js +0 -34
  145. package/lib/src/models/pod-model.js +0 -78
  146. package/lib/src/models/resource-model.js +0 -34
  147. package/lib/src/models/server-instance-model.d.ts +0 -10
  148. package/lib/src/models/service-model.js +0 -17
  149. package/lib/src/models/statefulset-model.js +0 -17
  150. package/lib/src/models/types/index.js +0 -1
  151. package/lib/src/models/types/metric.js +0 -1
  152. package/lib/src/models/workload-base-model.js +0 -22
  153. package/lib/src/models/workload-model.js +0 -51
  154. package/lib/src/pages/configmaps/index.js +0 -15
  155. package/lib/src/pages/cronjobs/create/index.js +0 -6
  156. package/lib/src/pages/cronjobs/index.js +0 -3
  157. package/lib/src/pages/cronjobs/list/index.js +0 -42
  158. package/lib/src/pages/cronjobs/show/index.js +0 -16
  159. package/lib/src/pages/daemonsets/create/index.js +0 -6
  160. package/lib/src/pages/daemonsets/index.js +0 -3
  161. package/lib/src/pages/daemonsets/list/index.js +0 -32
  162. package/lib/src/pages/daemonsets/show/index.js +0 -16
  163. package/lib/src/pages/deployments/create/index.js +0 -7
  164. package/lib/src/pages/deployments/index.js +0 -3
  165. package/lib/src/pages/deployments/list/index.js +0 -26
  166. package/lib/src/pages/deployments/show/index.js +0 -16
  167. package/lib/src/pages/ingresses/index.js +0 -26
  168. package/lib/src/pages/jobs/index.js +0 -34
  169. package/lib/src/pages/networkPolicies/index.js +0 -67
  170. package/lib/src/pages/pods/create/index.js +0 -6
  171. package/lib/src/pages/pods/index.js +0 -3
  172. package/lib/src/pages/pods/list/index.js +0 -81
  173. package/lib/src/pages/pods/show/index.js +0 -54
  174. package/lib/src/pages/secrets/index.js +0 -15
  175. package/lib/src/pages/services/index.js +0 -26
  176. package/lib/src/pages/statefulsets/create/index.js +0 -6
  177. package/lib/src/pages/statefulsets/index.js +0 -3
  178. package/lib/src/pages/statefulsets/list/index.js +0 -26
  179. package/lib/src/pages/statefulsets/show/index.js +0 -16
  180. package/lib/src/plugins/index.js +0 -3
  181. package/lib/src/plugins/model-plugin.js +0 -46
  182. package/lib/src/plugins/relation-plugin.js +0 -81
  183. package/lib/src/plugins/type.js +0 -1
  184. package/lib/src/providers/index.js +0 -1
  185. package/lib/src/providers/router-provider/index.js +0 -100
  186. package/lib/src/types/index.js +0 -1
  187. package/lib/src/types/resource.js +0 -12
  188. package/lib/src/utils/addId.js +0 -8
  189. package/lib/src/utils/download.js +0 -9
  190. package/lib/src/utils/error.js +0 -53
  191. package/lib/src/utils/form.js +0 -9
  192. package/lib/src/utils/k8s.js +0 -6
  193. package/lib/src/utils/labels.js +0 -15
  194. package/lib/src/utils/match-selector.js +0 -12
  195. package/lib/src/utils/openapi.js +0 -33
  196. package/lib/src/utils/schema.js +0 -117
  197. package/lib/src/utils/selector.js +0 -12
  198. package/lib/src/utils/string.js +0 -6
  199. package/lib/src/utils/time.js +0 -46
  200. package/lib/src/utils/unit.js +0 -69
  201. package/lib/src/utils/yaml.js +0 -44
  202. package/lib/vite.config.js +0 -60
@@ -7,17 +7,17 @@ var __publicField = (obj, key2, value2) => {
7
7
  import i18n from "i18next";
8
8
  import * as React from "react";
9
9
  import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useCallback, useMemo, useImperativeHandle, memo, PureComponent, useLayoutEffect, forwardRef, Suspense } from "react";
10
- import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useDeleteMany, CanAccess, useCan, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$1, flattenObjectKeys, useInvalidate, useUserFriendlyName, useModal, pickNotDeprecated, useMenu, useTable, Refine } from "@refinedev/core";
10
+ import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useDeleteMany, CanAccess, useCan, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, useTable, Refine } from "@refinedev/core";
11
11
  import { parse, stringify } from "qs";
12
12
  import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
13
13
  import { Typo, Tag, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Button, Icon as Icon$1, popModal, Loading, Divider, Fields, Form, Space, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
14
14
  import { PlusAddCreateNew16BoldOntintIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
15
- import { get as get$2, first, debounce, last, isObject as isObject$2, merge, keyBy } from "lodash-es";
15
+ import { get as get$3, first, debounce, last, isObject as isObject$4, merge, keyBy } from "lodash-es";
16
16
  import yaml from "js-yaml";
17
17
  import * as monaco from "monaco-editor";
18
18
  import { setDiagnosticsOptions } from "monaco-yaml";
19
19
  import ReactDOM from "react-dom";
20
- import { useForm as useForm$2 } from "sunflower-antd";
20
+ import { useForm as useForm$3 } from "sunflower-antd";
21
21
  import { Drawer } from "antd";
22
22
  import { dataProvider, liveProvider } from "k8s-api-provider";
23
23
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -37,12 +37,12 @@ function requireDayjs_min() {
37
37
  var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
38
38
  var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
39
39
  return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
40
- } }, m2 = function(t3, e3, n3) {
40
+ } }, m = function(t3, e3, n3) {
41
41
  var r3 = String(t3);
42
42
  return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
43
- }, v = { s: m2, z: function(t3) {
43
+ }, v = { s: m, z: function(t3) {
44
44
  var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
45
- return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
45
+ return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
46
46
  }, m: function t3(e3, n3) {
47
47
  if (e3.date() < n3.date())
48
48
  return -t3(n3, e3);
@@ -86,8 +86,8 @@ function requireDayjs_min() {
86
86
  function M2(t3) {
87
87
  this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
88
88
  }
89
- var m3 = M2.prototype;
90
- return m3.parse = function(t3) {
89
+ var m2 = M2.prototype;
90
+ return m2.parse = function(t3) {
91
91
  this.$d = function(t4) {
92
92
  var e3 = t4.date, n3 = t4.utc;
93
93
  if (null === e3)
@@ -105,33 +105,33 @@ function requireDayjs_min() {
105
105
  }
106
106
  return new Date(e3);
107
107
  }(t3), this.init();
108
- }, m3.init = function() {
108
+ }, m2.init = function() {
109
109
  var t3 = this.$d;
110
110
  this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
111
- }, m3.$utils = function() {
111
+ }, m2.$utils = function() {
112
112
  return b;
113
- }, m3.isValid = function() {
113
+ }, m2.isValid = function() {
114
114
  return !(this.$d.toString() === l);
115
- }, m3.isSame = function(t3, e3) {
115
+ }, m2.isSame = function(t3, e3) {
116
116
  var n3 = O(t3);
117
117
  return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
118
- }, m3.isAfter = function(t3, e3) {
118
+ }, m2.isAfter = function(t3, e3) {
119
119
  return O(t3) < this.startOf(e3);
120
- }, m3.isBefore = function(t3, e3) {
120
+ }, m2.isBefore = function(t3, e3) {
121
121
  return this.endOf(e3) < O(t3);
122
- }, m3.$g = function(t3, e3, n3) {
122
+ }, m2.$g = function(t3, e3, n3) {
123
123
  return b.u(t3) ? this[e3] : this.set(n3, t3);
124
- }, m3.unix = function() {
124
+ }, m2.unix = function() {
125
125
  return Math.floor(this.valueOf() / 1e3);
126
- }, m3.valueOf = function() {
126
+ }, m2.valueOf = function() {
127
127
  return this.$d.getTime();
128
- }, m3.startOf = function(t3, e3) {
128
+ }, m2.startOf = function(t3, e3) {
129
129
  var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
130
130
  var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
131
131
  return r3 ? i3 : i3.endOf(a2);
132
132
  }, $2 = function(t4, e4) {
133
133
  return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
134
- }, y2 = this.$W, M3 = this.$M, m4 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
134
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
135
135
  switch (f2) {
136
136
  case h:
137
137
  return r3 ? l2(1, 0) : l2(31, 11);
@@ -139,7 +139,7 @@ function requireDayjs_min() {
139
139
  return r3 ? l2(1, M3) : l2(0, M3 + 1);
140
140
  case o:
141
141
  var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
142
- return l2(r3 ? m4 - D2 : m4 + (6 - D2), M3);
142
+ return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
143
143
  case a2:
144
144
  case d:
145
145
  return $2(v2 + "Hours", 0);
@@ -152,9 +152,9 @@ function requireDayjs_min() {
152
152
  default:
153
153
  return this.clone();
154
154
  }
155
- }, m3.endOf = function(t3) {
155
+ }, m2.endOf = function(t3) {
156
156
  return this.startOf(t3, false);
157
- }, m3.$set = function(t3, e3) {
157
+ }, m2.$set = function(t3, e3) {
158
158
  var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
159
159
  if (o2 === c2 || o2 === h) {
160
160
  var y2 = this.clone().set(d, 1);
@@ -162,11 +162,11 @@ function requireDayjs_min() {
162
162
  } else
163
163
  l2 && this.$d[l2]($2);
164
164
  return this.init(), this;
165
- }, m3.set = function(t3, e3) {
165
+ }, m2.set = function(t3, e3) {
166
166
  return this.clone().$set(t3, e3);
167
- }, m3.get = function(t3) {
167
+ }, m2.get = function(t3) {
168
168
  return this[b.p(t3)]();
169
- }, m3.add = function(r3, f2) {
169
+ }, m2.add = function(r3, f2) {
170
170
  var d2, l2 = this;
171
171
  r3 = Number(r3);
172
172
  var $2 = b.p(f2), y2 = function(t3) {
@@ -181,11 +181,11 @@ function requireDayjs_min() {
181
181
  return y2(1);
182
182
  if ($2 === o)
183
183
  return y2(7);
184
- var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
185
- return b.w(m4, this);
186
- }, m3.subtract = function(t3, e3) {
184
+ var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
185
+ return b.w(m3, this);
186
+ }, m2.subtract = function(t3, e3) {
187
187
  return this.add(-1 * t3, e3);
188
- }, m3.format = function(t3) {
188
+ }, m2.format = function(t3) {
189
189
  var e3 = this, n3 = this.$locale();
190
190
  if (!this.isValid())
191
191
  return n3.invalidDate || l;
@@ -252,11 +252,11 @@ function requireDayjs_min() {
252
252
  return null;
253
253
  }(t4) || i3.replace(":", "");
254
254
  });
255
- }, m3.utcOffset = function() {
255
+ }, m2.utcOffset = function() {
256
256
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
257
- }, m3.diff = function(r3, d2, l2) {
258
- var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
259
- return b.m(y2, m4);
257
+ }, m2.diff = function(r3, d2, l2) {
258
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
259
+ return b.m(y2, m3);
260
260
  };
261
261
  switch (M3) {
262
262
  case h:
@@ -287,24 +287,24 @@ function requireDayjs_min() {
287
287
  $2 = g2;
288
288
  }
289
289
  return l2 ? $2 : b.a($2);
290
- }, m3.daysInMonth = function() {
290
+ }, m2.daysInMonth = function() {
291
291
  return this.endOf(c2).$D;
292
- }, m3.$locale = function() {
292
+ }, m2.$locale = function() {
293
293
  return D[this.$L];
294
- }, m3.locale = function(t3, e3) {
294
+ }, m2.locale = function(t3, e3) {
295
295
  if (!t3)
296
296
  return this.$L;
297
297
  var n3 = this.clone(), r3 = w(t3, e3, true);
298
298
  return r3 && (n3.$L = r3), n3;
299
- }, m3.clone = function() {
299
+ }, m2.clone = function() {
300
300
  return b.w(this.$d, this);
301
- }, m3.toDate = function() {
301
+ }, m2.toDate = function() {
302
302
  return new Date(this.valueOf());
303
- }, m3.toJSON = function() {
303
+ }, m2.toJSON = function() {
304
304
  return this.isValid() ? this.toISOString() : null;
305
- }, m3.toISOString = function() {
305
+ }, m2.toISOString = function() {
306
306
  return this.$d.toISOString();
307
- }, m3.toString = function() {
307
+ }, m2.toString = function() {
308
308
  return this.$d.toUTCString();
309
309
  }, M2;
310
310
  }(), k = _.prototype;
@@ -405,23 +405,23 @@ function a(e2, t2) {
405
405
  }
406
406
  var c = { parse: function(e2, t2) {
407
407
  t2 || (t2 = {}), t2.components || (t2.components = s);
408
- var a2, c2 = [], o = [], l = -1, m2 = false;
408
+ var a2, c2 = [], o = [], l = -1, m = false;
409
409
  if (0 !== e2.indexOf("<")) {
410
410
  var u = e2.indexOf("<");
411
411
  c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
412
412
  }
413
413
  return e2.replace(r, function(r2, s2) {
414
- if (m2) {
414
+ if (m) {
415
415
  if (r2 !== "</" + a2.name + ">")
416
416
  return;
417
- m2 = false;
417
+ m = false;
418
418
  }
419
419
  var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
420
420
  if (h) {
421
421
  var v = n(r2);
422
422
  return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
423
423
  }
424
- if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m2 = true), a2.voidElement || m2 || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m2 && "<" !== d && d)) {
424
+ if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
425
425
  u2 = -1 === l ? c2 : o[l].children;
426
426
  var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
427
427
  i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
@@ -540,7 +540,7 @@ const htmlEntities = {
540
540
  "&#x2F;": "/",
541
541
  "&#47;": "/"
542
542
  };
543
- const unescapeHtmlEntity = (m2) => htmlEntities[m2];
543
+ const unescapeHtmlEntity = (m) => htmlEntities[m];
544
544
  const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
545
545
  let defaultOptions$1 = {
546
546
  bindI18n: "languageChanged",
@@ -1593,7 +1593,7 @@ function requireReactJsxRuntime_production_min() {
1593
1593
  g = h("react.element");
1594
1594
  reactJsxRuntime_production_min.Fragment = h("react.fragment");
1595
1595
  }
1596
- var m2 = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
1596
+ var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
1597
1597
  function q(c2, a2, k) {
1598
1598
  var b, d = {}, e2 = null, l = null;
1599
1599
  void 0 !== k && (e2 = "" + k);
@@ -1604,7 +1604,7 @@ function requireReactJsxRuntime_production_min() {
1604
1604
  if (c2 && c2.defaultProps)
1605
1605
  for (b in a2 = c2.defaultProps, a2)
1606
1606
  void 0 === d[b] && (d[b] = a2[b]);
1607
- return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m2.current };
1607
+ return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m.current };
1608
1608
  }
1609
1609
  reactJsxRuntime_production_min.jsx = q;
1610
1610
  reactJsxRuntime_production_min.jsxs = q;
@@ -8409,7 +8409,7 @@ function MetadataForm() {
8409
8409
  /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8410
8410
  ] });
8411
8411
  }
8412
- function memoize$1(fn) {
8412
+ function memoize$2(fn) {
8413
8413
  var cache = /* @__PURE__ */ Object.create(null);
8414
8414
  return function(arg) {
8415
8415
  if (cache[arg] === void 0)
@@ -8418,7 +8418,7 @@ function memoize$1(fn) {
8418
8418
  };
8419
8419
  }
8420
8420
  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
8421
- var isPropValid = /* @__PURE__ */ memoize$1(
8421
+ var isPropValid = /* @__PURE__ */ memoize$2(
8422
8422
  function(prop) {
8423
8423
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
8424
8424
  }
@@ -8608,7 +8608,8 @@ function Table(props) {
8608
8608
  columns,
8609
8609
  scroll,
8610
8610
  currentPage,
8611
- currentSize,
8611
+ defaultSize,
8612
+ total,
8612
8613
  RowMenu,
8613
8614
  refetch,
8614
8615
  onPageChange,
@@ -8619,9 +8620,9 @@ function Table(props) {
8619
8620
  const wrapperRef = useRef(null);
8620
8621
  const pagination = useMemo(() => ({
8621
8622
  current: currentPage,
8622
- pageSize: currentSize,
8623
+ pageSize: defaultSize,
8623
8624
  onChange: onPageChange
8624
- }), [currentPage, currentSize, onPageChange]);
8625
+ }), [currentPage, defaultSize, onPageChange]);
8625
8626
  const finalColumns = useMemo(() => {
8626
8627
  if (RowMenu) {
8627
8628
  const actionColumn = {
@@ -8674,8 +8675,8 @@ function Table(props) {
8674
8675
  ref: auxiliaryLineRef
8675
8676
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
8676
8677
  current: currentPage,
8677
- size: currentSize,
8678
- count: dataSource.length,
8678
+ size: defaultSize,
8679
+ count: total,
8679
8680
  onChange: onPageChange,
8680
8681
  onSizeChange
8681
8682
  })]
@@ -8699,14 +8700,16 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8699
8700
  display: true,
8700
8701
  dataIndex: "key",
8701
8702
  title: t2("dovetail.key"),
8702
- sortable: true
8703
+ sortable: true,
8704
+ width: "50%"
8703
8705
  },
8704
8706
  {
8705
8707
  key: "value",
8706
8708
  display: true,
8707
8709
  dataIndex: "value",
8708
8710
  title: t2("dovetail.value"),
8709
- sortable: true
8711
+ sortable: true,
8712
+ width: "50%"
8710
8713
  }
8711
8714
  ];
8712
8715
  if (datas.length === 0) {
@@ -8729,7 +8732,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8729
8732
  columns: addDefaultRenderToColumns(columns),
8730
8733
  rowKey: "key",
8731
8734
  empty: t2("dovetail.empty"),
8732
- currentSize,
8735
+ defaultSize: currentSize,
8733
8736
  currentPage,
8734
8737
  onPageChange: setCurrentPage,
8735
8738
  showMenuColumn: false
@@ -8748,35 +8751,40 @@ const PortsTable = ({ service }) => {
8748
8751
  display: true,
8749
8752
  dataIndex: "name",
8750
8753
  title: t2("dovetail.name"),
8751
- sortable: true
8754
+ sortable: true,
8755
+ width: 267
8752
8756
  },
8753
8757
  {
8754
8758
  key: "servicePort",
8755
8759
  display: true,
8756
8760
  dataIndex: "port",
8757
8761
  title: t2("dovetail.service_port"),
8758
- sortable: true
8762
+ sortable: true,
8763
+ width: 199
8759
8764
  },
8760
8765
  {
8761
8766
  key: "protocol",
8762
8767
  display: true,
8763
8768
  dataIndex: "protocol",
8764
8769
  title: t2("dovetail.protocol"),
8765
- sortable: true
8770
+ sortable: true,
8771
+ width: 199
8766
8772
  },
8767
8773
  {
8768
8774
  key: "podPort",
8769
8775
  display: true,
8770
8776
  dataIndex: "targetPort",
8771
8777
  title: t2("dovetail.pod_port"),
8772
- sortable: true
8778
+ sortable: true,
8779
+ width: 199
8773
8780
  },
8774
8781
  {
8775
8782
  key: "nodePort",
8776
8783
  display: true,
8777
8784
  dataIndex: "nodePort",
8778
8785
  title: t2("dovetail.node_port"),
8779
- sortable: true
8786
+ sortable: true,
8787
+ width: 199
8780
8788
  }
8781
8789
  ];
8782
8790
  const ports = (service._rawYaml.spec.ports || []).map((port2) => ({
@@ -8803,7 +8811,7 @@ const PortsTable = ({ service }) => {
8803
8811
  columns: addDefaultRenderToColumns(columns),
8804
8812
  rowKey: "name",
8805
8813
  empty: t2("dovetail.empty"),
8806
- currentSize,
8814
+ defaultSize: currentSize,
8807
8815
  currentPage,
8808
8816
  onPageChange: setCurrentPage,
8809
8817
  showMenuColumn: false
@@ -10024,7 +10032,7 @@ var relativeTime$1 = { exports: {} };
10024
10032
  return n2.fromToBase(r3, e3, t3, o2);
10025
10033
  }
10026
10034
  t2.en.relativeTime = o, n2.fromToBase = function(e3, n3, i3, d2, u) {
10027
- for (var f, a2, s2, l = i3.$locale().relativeTime || o, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m2 = h.length, c2 = 0; c2 < m2; c2 += 1) {
10035
+ for (var f, a2, s2, l = i3.$locale().relativeTime || o, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c2 = 0; c2 < m; c2 += 1) {
10028
10036
  var y = h[c2];
10029
10037
  y.d && (f = d2 ? t2(e3).diff(i3, y.d, true) : i3.diff(e3, y.d, true));
10030
10038
  var p = (r2.rounding || Math.round)(Math.abs(f));
@@ -10130,6 +10138,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10130
10138
  display: true,
10131
10139
  dataIndex: "type",
10132
10140
  title: t2("dovetail.type"),
10141
+ width: 120,
10133
10142
  sortable: true
10134
10143
  },
10135
10144
  {
@@ -10145,6 +10154,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10145
10154
  };
10146
10155
  return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
10147
10156
  },
10157
+ width: 120,
10148
10158
  sortable: true
10149
10159
  },
10150
10160
  {
@@ -10153,6 +10163,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10153
10163
  dataIndex: "lastUpdateTime",
10154
10164
  title: t2("dovetail.updated_time"),
10155
10165
  sortable: true,
10166
+ width: 120,
10156
10167
  render: (value2, record) => {
10157
10168
  const time = value2 || record.lastTransitionTime;
10158
10169
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
@@ -10163,14 +10174,16 @@ const ConditionsTable = ({ conditions = [] }) => {
10163
10174
  display: true,
10164
10175
  dataIndex: "reason",
10165
10176
  title: t2("dovetail.reason"),
10166
- sortable: true
10177
+ sortable: true,
10178
+ width: 300
10167
10179
  },
10168
10180
  {
10169
10181
  key: "message",
10170
10182
  display: true,
10171
10183
  dataIndex: "message",
10172
10184
  title: t2("dovetail.message"),
10173
- sortable: true
10185
+ sortable: true,
10186
+ width: 403
10174
10187
  }
10175
10188
  ];
10176
10189
  if (conditionsWithId.length === 0) {
@@ -10193,7 +10206,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10193
10206
  columns: addDefaultRenderToColumns(columns),
10194
10207
  rowKey: "type",
10195
10208
  empty: t2("dovetail.empty"),
10196
- currentSize,
10209
+ defaultSize: currentSize,
10197
10210
  currentPage,
10198
10211
  onPageChange: setCurrentPage,
10199
10212
  showMenuColumn: false
@@ -10418,7 +10431,10 @@ const CronjobJobsTable = ({
10418
10431
  return owner ? matchOwner(p, owner) : true;
10419
10432
  });
10420
10433
  }, [data2 == null ? void 0 : data2.data, owner]);
10421
- const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
10434
+ const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
10435
+ ...WorkloadImageColumnRenderer(i18n2),
10436
+ width: 238
10437
+ }, CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
10422
10438
  if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
10423
10439
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
10424
10440
  errorText: i18n2.t("dovetail.no_resource", {
@@ -10443,7 +10459,7 @@ const CronjobJobsTable = ({
10443
10459
  error: false,
10444
10460
  currentPage,
10445
10461
  onPageChange: (p) => setCurrentPage(p),
10446
- currentSize,
10462
+ defaultSize: currentSize,
10447
10463
  refetch: () => null,
10448
10464
  showMenuColumn: false
10449
10465
  })]
@@ -10469,6 +10485,7 @@ const EventsTable = ({}) => {
10469
10485
  dataIndex: ["type"],
10470
10486
  title: i18n2.t("dovetail.type"),
10471
10487
  sortable: true,
10488
+ width: 120,
10472
10489
  render(value2) {
10473
10490
  const colorMap = {
10474
10491
  "Warning": "red",
@@ -10484,6 +10501,7 @@ const EventsTable = ({}) => {
10484
10501
  dataIndex: ["reason"],
10485
10502
  title: i18n2.t("dovetail.reason"),
10486
10503
  sortable: true,
10504
+ width: 120,
10487
10505
  sorter: CommonSorter(["reason"])
10488
10506
  },
10489
10507
  {
@@ -10492,6 +10510,7 @@ const EventsTable = ({}) => {
10492
10510
  dataIndex: ["note"],
10493
10511
  title: i18n2.t("dovetail.note"),
10494
10512
  sortable: true,
10513
+ width: 723,
10495
10514
  sorter: CommonSorter(["note"])
10496
10515
  },
10497
10516
  AgeColumnRenderer(i18n2, { title: i18n2.t("dovetail.last_seen"), width: 160 }, { isRelativeTime: false })
@@ -10526,7 +10545,7 @@ const EventsTable = ({}) => {
10526
10545
  error: false,
10527
10546
  currentPage,
10528
10547
  onPageChange: (p) => setCurrentPage(p),
10529
- currentSize,
10548
+ defaultSize: currentSize,
10530
10549
  refetch: () => null,
10531
10550
  showMenuColumn: false
10532
10551
  }
@@ -10579,6 +10598,7 @@ const IngressRulesTable = ({ ingress }) => {
10579
10598
  display: true,
10580
10599
  dataIndex: "pathType",
10581
10600
  title: t2("dovetail.path_type"),
10601
+ width: 160,
10582
10602
  sortable: true
10583
10603
  },
10584
10604
  {
@@ -10586,6 +10606,7 @@ const IngressRulesTable = ({ ingress }) => {
10586
10606
  display: true,
10587
10607
  dataIndex: "fullPath",
10588
10608
  title: t2("dovetail.path"),
10609
+ width: 478,
10589
10610
  sortable: true
10590
10611
  },
10591
10612
  {
@@ -10594,6 +10615,7 @@ const IngressRulesTable = ({ ingress }) => {
10594
10615
  dataIndex: "serviceName",
10595
10616
  title: t2("dovetail.backend"),
10596
10617
  sortable: true,
10618
+ width: 160,
10597
10619
  render: (serviceName, record) => {
10598
10620
  return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10599
10621
  ResourceLink,
@@ -10610,6 +10632,7 @@ const IngressRulesTable = ({ ingress }) => {
10610
10632
  display: true,
10611
10633
  dataIndex: "servicePort",
10612
10634
  title: t2("dovetail.port"),
10635
+ width: 120,
10613
10636
  sortable: true
10614
10637
  },
10615
10638
  {
@@ -10617,6 +10640,7 @@ const IngressRulesTable = ({ ingress }) => {
10617
10640
  display: true,
10618
10641
  dataIndex: "host",
10619
10642
  title: "Secret",
10643
+ width: 160,
10620
10644
  render(host2) {
10621
10645
  var _a, _b;
10622
10646
  const secretName = (_b = (_a = ingress._rawYaml.spec.tls) == null ? void 0 : _a.find(({ hosts }) => hosts == null ? void 0 : hosts.includes(host2))) == null ? void 0 : _b.secretName;
@@ -10652,7 +10676,7 @@ const IngressRulesTable = ({ ingress }) => {
10652
10676
  columns: addDefaultRenderToColumns(columns),
10653
10677
  rowKey: "pathType",
10654
10678
  empty: t2("dovetail.empty"),
10655
- currentSize,
10679
+ defaultSize: currentSize,
10656
10680
  currentPage,
10657
10681
  onPageChange: setCurrentPage,
10658
10682
  showMenuColumn: false
@@ -10915,11 +10939,11 @@ const ShowContent = (props) => {
10915
10939
  return null;
10916
10940
  return fields.map((field) => {
10917
10941
  let content;
10918
- const value2 = get$2(record, field.path);
10942
+ const value2 = get$3(record, field.path);
10919
10943
  if (field.renderContent) {
10920
10944
  content = field.renderContent(value2, record, field);
10921
10945
  } else {
10922
- content = get$2(record, field.path);
10946
+ content = get$3(record, field.path);
10923
10947
  }
10924
10948
  return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.col, {
10925
10949
  flex: areaType === AreaType.Inline ? "none" : "",
@@ -10955,7 +10979,7 @@ const ShowContent = (props) => {
10955
10979
  });
10956
10980
  });
10957
10981
  }
10958
- const stateDisplay = get$2(record, "stateDisplay");
10982
+ const stateDisplay = get$3(record, "stateDisplay");
10959
10983
  const topBar = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10960
10984
  className: ToolBarWrapper,
10961
10985
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
@@ -11114,7 +11138,8 @@ const WorkloadPodsTable = ({
11114
11138
  display: true,
11115
11139
  dataIndex: ["status", "podIP"],
11116
11140
  title: i18n2.t("dovetail.ip_address"),
11117
- sortable: true
11141
+ sortable: true,
11142
+ width: 160
11118
11143
  }, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
11119
11144
  if ((dataSource == null ? void 0 : dataSource.length) === 0) {
11120
11145
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
@@ -11144,7 +11169,7 @@ const WorkloadPodsTable = ({
11144
11169
  error: false,
11145
11170
  currentPage,
11146
11171
  onPageChange: (p) => setCurrentPage(p),
11147
- currentSize,
11172
+ defaultSize: currentSize,
11148
11173
  refetch: () => null,
11149
11174
  showMenuColumn: false
11150
11175
  })]
@@ -11885,7 +11910,7 @@ function requireReactDomServer_browser_production_min() {
11885
11910
  });
11886
11911
  }
11887
11912
  }
11888
- function C2(a2) {
11913
+ function C(a2) {
11889
11914
  if (null == a2)
11890
11915
  return null;
11891
11916
  if ("function" === typeof a2)
@@ -11917,12 +11942,12 @@ function requireReactDomServer_browser_production_min() {
11917
11942
  b = b.displayName || b.name || "";
11918
11943
  return a2.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef");
11919
11944
  case ia:
11920
- return C2(a2.type);
11945
+ return C(a2.type);
11921
11946
  case ka:
11922
- return C2(a2.render);
11947
+ return C(a2.render);
11923
11948
  case ja:
11924
11949
  if (a2 = 1 === a2._status ? a2._result : null)
11925
- return C2(a2);
11950
+ return C(a2);
11926
11951
  }
11927
11952
  return null;
11928
11953
  }
@@ -12034,23 +12059,23 @@ function requireReactDomServer_browser_production_min() {
12034
12059
  ["rowSpan", "start"].forEach(function(a2) {
12035
12060
  K[a2] = new J(a2, 5, false, a2.toLowerCase(), null, false);
12036
12061
  });
12037
- var L2 = /[\-:]([a-z])/g;
12062
+ var L = /[\-:]([a-z])/g;
12038
12063
  function M(a2) {
12039
12064
  return a2[1].toUpperCase();
12040
12065
  }
12041
12066
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) {
12042
12067
  var b = a2.replace(
12043
- L2,
12068
+ L,
12044
12069
  M
12045
12070
  );
12046
12071
  K[b] = new J(b, 1, false, a2, null, false);
12047
12072
  });
12048
12073
  "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) {
12049
- var b = a2.replace(L2, M);
12074
+ var b = a2.replace(L, M);
12050
12075
  K[b] = new J(b, 1, false, a2, "http://www.w3.org/1999/xlink", false);
12051
12076
  });
12052
12077
  ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) {
12053
- var b = a2.replace(L2, M);
12078
+ var b = a2.replace(L, M);
12054
12079
  K[b] = new J(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false);
12055
12080
  });
12056
12081
  ["tabIndex", "crossOrigin"].forEach(function(a2) {
@@ -12309,11 +12334,11 @@ function requireReactDomServer_browser_production_min() {
12309
12334
  var Wa = Object.prototype.hasOwnProperty, Xa = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null };
12310
12335
  function Ya(a2, b) {
12311
12336
  if (void 0 === a2)
12312
- throw Error(q(152, C2(b) || "Component"));
12337
+ throw Error(q(152, C(b) || "Component"));
12313
12338
  }
12314
12339
  function Za(a2, b, c2) {
12315
12340
  function d(d2, g2) {
12316
- var e2 = g2.prototype && g2.prototype.isReactComponent, f2 = pa(g2, b, c2, e2), x = [], h = false, m2 = { isMounted: function() {
12341
+ var e2 = g2.prototype && g2.prototype.isReactComponent, f2 = pa(g2, b, c2, e2), x = [], h = false, m = { isMounted: function() {
12317
12342
  return false;
12318
12343
  }, enqueueForceUpdate: function() {
12319
12344
  if (null === x)
@@ -12327,14 +12352,14 @@ function requireReactDomServer_browser_production_min() {
12327
12352
  x.push(c3);
12328
12353
  } };
12329
12354
  if (e2) {
12330
- if (e2 = new g2(d2.props, f2, m2), "function" === typeof g2.getDerivedStateFromProps) {
12355
+ if (e2 = new g2(d2.props, f2, m), "function" === typeof g2.getDerivedStateFromProps) {
12331
12356
  var w = g2.getDerivedStateFromProps.call(null, d2.props, e2.state);
12332
12357
  null != w && (e2.state = k({}, e2.state, w));
12333
12358
  }
12334
12359
  } else if (O = {}, e2 = g2(
12335
12360
  d2.props,
12336
12361
  f2,
12337
- m2
12362
+ m
12338
12363
  ), e2 = Da(g2, d2.props, e2, f2), null == e2 || null == e2.render) {
12339
12364
  a2 = e2;
12340
12365
  Ya(a2, g2);
@@ -12342,22 +12367,22 @@ function requireReactDomServer_browser_production_min() {
12342
12367
  }
12343
12368
  e2.props = d2.props;
12344
12369
  e2.context = f2;
12345
- e2.updater = m2;
12346
- m2 = e2.state;
12347
- void 0 === m2 && (e2.state = m2 = null);
12370
+ e2.updater = m;
12371
+ m = e2.state;
12372
+ void 0 === m && (e2.state = m = null);
12348
12373
  if ("function" === typeof e2.UNSAFE_componentWillMount || "function" === typeof e2.componentWillMount)
12349
12374
  if ("function" === typeof e2.componentWillMount && "function" !== typeof g2.getDerivedStateFromProps && e2.componentWillMount(), "function" === typeof e2.UNSAFE_componentWillMount && "function" !== typeof g2.getDerivedStateFromProps && e2.UNSAFE_componentWillMount(), x.length) {
12350
- m2 = x;
12375
+ m = x;
12351
12376
  var r2 = h;
12352
12377
  x = null;
12353
12378
  h = false;
12354
- if (r2 && 1 === m2.length)
12355
- e2.state = m2[0];
12379
+ if (r2 && 1 === m.length)
12380
+ e2.state = m[0];
12356
12381
  else {
12357
- w = r2 ? m2[0] : e2.state;
12382
+ w = r2 ? m[0] : e2.state;
12358
12383
  var y = true;
12359
- for (r2 = r2 ? 1 : 0; r2 < m2.length; r2++) {
12360
- var p = m2[r2];
12384
+ for (r2 = r2 ? 1 : 0; r2 < m.length; r2++) {
12385
+ var p = m[r2];
12361
12386
  p = "function" === typeof p ? p.call(e2, w, d2.props, f2) : p;
12362
12387
  null != p && (y ? (y = false, w = k({}, w, p)) : k(w, p));
12363
12388
  }
@@ -12371,7 +12396,7 @@ function requireReactDomServer_browser_production_min() {
12371
12396
  var A = e2.getChildContext();
12372
12397
  for (var T in A)
12373
12398
  if (!(T in d2))
12374
- throw Error(q(108, C2(g2) || "Unknown", T));
12399
+ throw Error(q(108, C(g2) || "Unknown", T));
12375
12400
  }
12376
12401
  A && (b = k({}, b, A));
12377
12402
  }
@@ -12484,9 +12509,9 @@ function requireReactDomServer_browser_production_min() {
12484
12509
  }
12485
12510
  g[this.suspenseDepth] += I;
12486
12511
  } else {
12487
- var m2 = e2.children[e2.childIndex++], w = "";
12512
+ var m = e2.children[e2.childIndex++], w = "";
12488
12513
  try {
12489
- w += this.render(m2, e2.context, e2.domNamespace);
12514
+ w += this.render(m, e2.context, e2.domNamespace);
12490
12515
  } catch (r2) {
12491
12516
  if (null != r2 && "function" === typeof r2.then)
12492
12517
  throw Error(q(294));
@@ -12657,14 +12682,14 @@ function requireReactDomServer_browser_production_min() {
12657
12682
  G = "<" + a3.type;
12658
12683
  for (z in h)
12659
12684
  if (Wa.call(h, z)) {
12660
- var m2 = h[z];
12661
- if (null != m2) {
12685
+ var m = h[z];
12686
+ if (null != m) {
12662
12687
  if ("style" === z) {
12663
12688
  n2 = void 0;
12664
12689
  var w = "", r2 = "";
12665
- for (n2 in m2)
12666
- if (m2.hasOwnProperty(n2)) {
12667
- var y = 0 === n2.indexOf("--"), p = m2[n2];
12690
+ for (n2 in m)
12691
+ if (m.hasOwnProperty(n2)) {
12692
+ var y = 0 === n2.indexOf("--"), p = m[n2];
12668
12693
  if (null != p) {
12669
12694
  if (y)
12670
12695
  var A = n2;
@@ -12681,7 +12706,7 @@ function requireReactDomServer_browser_production_min() {
12681
12706
  r2 = ";";
12682
12707
  }
12683
12708
  }
12684
- m2 = w || null;
12709
+ m = w || null;
12685
12710
  }
12686
12711
  n2 = null;
12687
12712
  b:
@@ -12702,7 +12727,7 @@ function requireReactDomServer_browser_production_min() {
12702
12727
  default:
12703
12728
  y = true;
12704
12729
  }
12705
- y ? Xa.hasOwnProperty(z) || (n2 = z, n2 = ua(n2) && null != m2 ? n2 + '="' + (N(m2) + '"') : "") : n2 = ya(z, m2);
12730
+ y ? Xa.hasOwnProperty(z) || (n2 = z, n2 = ua(n2) && null != m ? n2 + '="' + (N(m) + '"') : "") : n2 = ya(z, m);
12706
12731
  n2 && (G += " " + n2);
12707
12732
  }
12708
12733
  }
@@ -12764,14 +12789,14 @@ function requireReactPropTypesSecret() {
12764
12789
  ReactPropTypesSecret_1 = ReactPropTypesSecret;
12765
12790
  return ReactPropTypesSecret_1;
12766
12791
  }
12767
- var has$1;
12792
+ var has$2;
12768
12793
  var hasRequiredHas;
12769
12794
  function requireHas() {
12770
12795
  if (hasRequiredHas)
12771
- return has$1;
12796
+ return has$2;
12772
12797
  hasRequiredHas = 1;
12773
- has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
12774
- return has$1;
12798
+ has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
12799
+ return has$2;
12775
12800
  }
12776
12801
  var checkPropTypes_1;
12777
12802
  var hasRequiredCheckPropTypes;
@@ -17646,8 +17671,8 @@ const MonacoYamlEditor$1 = (props) => {
17646
17671
  const currentEditorUri = model == null ? void 0 : model.uri;
17647
17672
  if (model && uri2.toString() === (currentEditorUri == null ? void 0 : currentEditorUri.toString())) {
17648
17673
  const marks = monaco.editor.getModelMarkers({ owner: "yaml", resource: currentEditorUri });
17649
- const yamlMarks = marks.filter((m2) => m2.source === "YAML");
17650
- const schemaMarks = marks.filter((m2) => m2.source !== "YAML");
17674
+ const yamlMarks = marks.filter((m) => m.source === "YAML");
17675
+ const schemaMarks = marks.filter((m) => m.source !== "YAML");
17651
17676
  const yamlValid = yamlMarks.length === 0;
17652
17677
  const schemaValid = schemaMarks.length === 0;
17653
17678
  onValidate == null ? void 0 : onValidate(yamlValid, schemaValid);
@@ -17761,7 +17786,8 @@ const PodContainersTable = ({
17761
17786
  dataIndex: ["name"],
17762
17787
  title: i18n2.t("dovetail.name"),
17763
17788
  sortable: true,
17764
- sorter: CommonSorter(["name"])
17789
+ sorter: CommonSorter(["name"]),
17790
+ width: 200
17765
17791
  },
17766
17792
  {
17767
17793
  key: "state",
@@ -17769,6 +17795,7 @@ const PodContainersTable = ({
17769
17795
  title: i18n2.t("dovetail.state"),
17770
17796
  sortable: true,
17771
17797
  sorter: CommonSorter(["state"]),
17798
+ width: 120,
17772
17799
  render: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, { state: Object.keys(v)[0], hideBackground: true })
17773
17800
  },
17774
17801
  {
@@ -17776,12 +17803,14 @@ const PodContainersTable = ({
17776
17803
  dataIndex: ["image"],
17777
17804
  title: i18n2.t("dovetail.image"),
17778
17805
  sortable: true,
17806
+ width: 383,
17779
17807
  sorter: CommonSorter(["image"])
17780
17808
  },
17781
17809
  {
17782
17810
  key: "init",
17783
17811
  dataIndex: [],
17784
17812
  title: i18n2.t("dovetail.type"),
17813
+ width: 120,
17785
17814
  render: (_, record) => {
17786
17815
  const isInit = initContainerStatuses.some(
17787
17816
  (c2) => c2.containerID === record.containerID
@@ -17794,6 +17823,8 @@ const PodContainersTable = ({
17794
17823
  dataIndex: ["restartCount"],
17795
17824
  title: i18n2.t("dovetail.restarts"),
17796
17825
  sortable: true,
17826
+ align: "right",
17827
+ width: 120,
17797
17828
  sorter: CommonSorter(["restartCount"])
17798
17829
  },
17799
17830
  {
@@ -17802,6 +17833,7 @@ const PodContainersTable = ({
17802
17833
  title: i18n2.t("dovetail.created_time"),
17803
17834
  sortable: true,
17804
17835
  sorter: CommonSorter(["state", "running", "startedAt"]),
17836
+ width: 120,
17805
17837
  render: (value2) => {
17806
17838
  if (value2)
17807
17839
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(value2) });
@@ -17835,7 +17867,7 @@ const PodContainersTable = ({
17835
17867
  columns: addDefaultRenderToColumns(columns),
17836
17868
  rowKey: "containerID",
17837
17869
  error: false,
17838
- currentSize,
17870
+ defaultSize: currentSize,
17839
17871
  currentPage,
17840
17872
  onPageChange: setCurrentPage,
17841
17873
  showMenuColumn: false
@@ -18487,7 +18519,7 @@ function ResourceList(props) {
18487
18519
  useTableParams: {},
18488
18520
  columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
18489
18521
  tableProps: {
18490
- currentSize: 50
18522
+ defaultSize: 50
18491
18523
  },
18492
18524
  formatter,
18493
18525
  Dropdown
@@ -19719,7 +19751,7 @@ function getSaturation(hsv, i2, light) {
19719
19751
  }
19720
19752
  return saturation;
19721
19753
  }
19722
- function getValue$1(hsv, i2, light) {
19754
+ function getValue$2(hsv, i2, light) {
19723
19755
  if (light) {
19724
19756
  return Math.round(hsv.v * 100) + brightnessStep1 * i2;
19725
19757
  }
@@ -19733,7 +19765,7 @@ function generate$2(color) {
19733
19765
  var colorString = tinycolor2_1.default({
19734
19766
  h: getHue(hsv, i2, true),
19735
19767
  s: getSaturation(hsv, i2, true),
19736
- v: getValue$1(hsv, i2, true)
19768
+ v: getValue$2(hsv, i2, true)
19737
19769
  }).toHexString();
19738
19770
  patterns.push(colorString);
19739
19771
  }
@@ -19743,7 +19775,7 @@ function generate$2(color) {
19743
19775
  var colorString = tinycolor2_1.default({
19744
19776
  h: getHue(hsv, i2),
19745
19777
  s: getSaturation(hsv, i2),
19746
- v: getValue$1(hsv, i2)
19778
+ v: getValue$2(hsv, i2)
19747
19779
  }).toHexString();
19748
19780
  patterns.push(colorString);
19749
19781
  }
@@ -20119,13 +20151,13 @@ var isCheckBoxInput = (element) => element.type === "checkbox";
20119
20151
  var isDateObject = (value2) => value2 instanceof Date;
20120
20152
  var isNullOrUndefined = (value2) => value2 == null;
20121
20153
  const isObjectType = (value2) => typeof value2 === "object";
20122
- var isObject$1 = (value2) => !isNullOrUndefined(value2) && !Array.isArray(value2) && isObjectType(value2) && !isDateObject(value2);
20123
- var getEventValue = (event2) => isObject$1(event2) && event2.target ? isCheckBoxInput(event2.target) ? event2.target.checked : event2.target.value : event2;
20154
+ var isObject$3 = (value2) => !isNullOrUndefined(value2) && !Array.isArray(value2) && isObjectType(value2) && !isDateObject(value2);
20155
+ var getEventValue = (event2) => isObject$3(event2) && event2.target ? isCheckBoxInput(event2.target) ? event2.target.checked : event2.target.value : event2;
20124
20156
  var getNodeParentName = (name2) => name2.substring(0, name2.search(/\.\d+(\.|$)/)) || name2;
20125
20157
  var isNameInFieldArray = (names, name2) => names.has(getNodeParentName(name2));
20126
20158
  var isPlainObject = (tempObject) => {
20127
20159
  const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
20128
- return isObject$1(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
20160
+ return isObject$3(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
20129
20161
  };
20130
20162
  var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
20131
20163
  function cloneObject(data2) {
@@ -20135,7 +20167,7 @@ function cloneObject(data2) {
20135
20167
  copy2 = new Date(data2);
20136
20168
  } else if (data2 instanceof Set) {
20137
20169
  copy2 = new Set(data2);
20138
- } else if (!(isWeb && (data2 instanceof Blob || data2 instanceof FileList)) && (isArray2 || isObject$1(data2))) {
20170
+ } else if (!(isWeb && (data2 instanceof Blob || data2 instanceof FileList)) && (isArray2 || isObject$3(data2))) {
20139
20171
  copy2 = isArray2 ? [] : {};
20140
20172
  if (!isArray2 && !isPlainObject(data2)) {
20141
20173
  copy2 = data2;
@@ -20153,8 +20185,8 @@ function cloneObject(data2) {
20153
20185
  }
20154
20186
  var compact = (value2) => Array.isArray(value2) ? value2.filter(Boolean) : [];
20155
20187
  var isUndefined = (val) => val === void 0;
20156
- var get$1 = (object2, path2, defaultValue) => {
20157
- if (!path2 || !isObject$1(object2)) {
20188
+ var get$2 = (object2, path2, defaultValue) => {
20189
+ if (!path2 || !isObject$3(object2)) {
20158
20190
  return defaultValue;
20159
20191
  }
20160
20192
  const result = compact(path2.split(/[,[\].]+?/)).reduce((result2, key2) => isNullOrUndefined(result2) ? result2 : result2[key2], object2);
@@ -20202,7 +20234,7 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
20202
20234
  }
20203
20235
  return result;
20204
20236
  };
20205
- var isEmptyObject = (value2) => isObject$1(value2) && !Object.keys(value2).length;
20237
+ var isEmptyObject = (value2) => isObject$3(value2) && !Object.keys(value2).length;
20206
20238
  var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {
20207
20239
  updateFormState(formStateData);
20208
20240
  const { name: name2, ...formState } = formStateData;
@@ -20259,10 +20291,10 @@ var isString = (value2) => typeof value2 === "string";
20259
20291
  var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
20260
20292
  if (isString(names)) {
20261
20293
  isGlobal && _names.watch.add(names);
20262
- return get$1(formValues, names, defaultValue);
20294
+ return get$2(formValues, names, defaultValue);
20263
20295
  }
20264
20296
  if (Array.isArray(names)) {
20265
- return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$1(formValues, fieldName)));
20297
+ return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$2(formValues, fieldName)));
20266
20298
  }
20267
20299
  isGlobal && (_names.watchAll = true);
20268
20300
  return formValues;
@@ -20285,11 +20317,11 @@ function useWatch(props) {
20285
20317
  React__default.useEffect(() => control._removeUnmounted());
20286
20318
  return value2;
20287
20319
  }
20288
- var isKey$1 = (value2) => /^\w*$/.test(value2);
20320
+ var isKey$2 = (value2) => /^\w*$/.test(value2);
20289
20321
  var stringToPath$2 = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
20290
20322
  var set = (object2, path2, value2) => {
20291
20323
  let index = -1;
20292
- const tempPath = isKey$1(path2) ? [path2] : stringToPath$2(path2);
20324
+ const tempPath = isKey$2(path2) ? [path2] : stringToPath$2(path2);
20293
20325
  const length = tempPath.length;
20294
20326
  const lastIndex = length - 1;
20295
20327
  while (++index < length) {
@@ -20297,7 +20329,7 @@ var set = (object2, path2, value2) => {
20297
20329
  let newValue = value2;
20298
20330
  if (index !== lastIndex) {
20299
20331
  const objValue = object2[key2];
20300
- newValue = isObject$1(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
20332
+ newValue = isObject$3(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
20301
20333
  }
20302
20334
  object2[key2] = newValue;
20303
20335
  object2 = object2[key2];
@@ -20311,7 +20343,7 @@ function useController(props) {
20311
20343
  const value2 = useWatch({
20312
20344
  control,
20313
20345
  name: name2,
20314
- defaultValue: get$1(control._formValues, name2, get$1(control._defaultValues, name2, props.defaultValue)),
20346
+ defaultValue: get$2(control._formValues, name2, get$2(control._defaultValues, name2, props.defaultValue)),
20315
20347
  exact: true
20316
20348
  });
20317
20349
  const formState = useFormState({
@@ -20326,16 +20358,16 @@ function useController(props) {
20326
20358
  React__default.useEffect(() => {
20327
20359
  const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
20328
20360
  const updateMounted = (name3, value3) => {
20329
- const field = get$1(control._fields, name3);
20361
+ const field = get$2(control._fields, name3);
20330
20362
  if (field) {
20331
20363
  field._f.mount = value3;
20332
20364
  }
20333
20365
  };
20334
20366
  updateMounted(name2, true);
20335
20367
  if (_shouldUnregisterField) {
20336
- const value3 = cloneObject(get$1(control._options.defaultValues, name2));
20368
+ const value3 = cloneObject(get$2(control._options.defaultValues, name2));
20337
20369
  set(control._defaultValues, name2, value3);
20338
- if (isUndefined(get$1(control._formValues, name2))) {
20370
+ if (isUndefined(get$2(control._formValues, name2))) {
20339
20371
  set(control._formValues, name2, value3);
20340
20372
  }
20341
20373
  }
@@ -20344,12 +20376,12 @@ function useController(props) {
20344
20376
  };
20345
20377
  }, [name2, control, isArrayField, shouldUnregister]);
20346
20378
  React__default.useEffect(() => {
20347
- if (get$1(control._fields, name2)) {
20379
+ if (get$2(control._fields, name2)) {
20348
20380
  control._updateDisabledField({
20349
20381
  disabled,
20350
20382
  fields: control._fields,
20351
20383
  name: name2,
20352
- value: get$1(control._fields, name2)._f.value
20384
+ value: get$2(control._fields, name2)._f.value
20353
20385
  });
20354
20386
  }
20355
20387
  }, [disabled, name2, control]);
@@ -20367,13 +20399,13 @@ function useController(props) {
20367
20399
  }), [name2]),
20368
20400
  onBlur: React__default.useCallback(() => _registerProps.current.onBlur({
20369
20401
  target: {
20370
- value: get$1(control._formValues, name2),
20402
+ value: get$2(control._formValues, name2),
20371
20403
  name: name2
20372
20404
  },
20373
20405
  type: EVENTS.BLUR
20374
20406
  }), [name2, control]),
20375
20407
  ref: (elm) => {
20376
- const field = get$1(control._fields, name2);
20408
+ const field = get$2(control._fields, name2);
20377
20409
  if (field && elm) {
20378
20410
  field._f.ref = {
20379
20411
  focus: () => elm.focus(),
@@ -20388,19 +20420,19 @@ function useController(props) {
20388
20420
  fieldState: Object.defineProperties({}, {
20389
20421
  invalid: {
20390
20422
  enumerable: true,
20391
- get: () => !!get$1(formState.errors, name2)
20423
+ get: () => !!get$2(formState.errors, name2)
20392
20424
  },
20393
20425
  isDirty: {
20394
20426
  enumerable: true,
20395
- get: () => !!get$1(formState.dirtyFields, name2)
20427
+ get: () => !!get$2(formState.dirtyFields, name2)
20396
20428
  },
20397
20429
  isTouched: {
20398
20430
  enumerable: true,
20399
- get: () => !!get$1(formState.touchedFields, name2)
20431
+ get: () => !!get$2(formState.touchedFields, name2)
20400
20432
  },
20401
20433
  error: {
20402
20434
  enumerable: true,
20403
- get: () => get$1(formState.errors, name2)
20435
+ get: () => get$2(formState.errors, name2)
20404
20436
  }
20405
20437
  })
20406
20438
  };
@@ -20423,7 +20455,7 @@ var getValidationModes = (mode) => ({
20423
20455
  var isWatched = (name2, _names, isBlurEvent) => !isBlurEvent && (_names.watchAll || _names.watch.has(name2) || [..._names.watch].some((watchName) => name2.startsWith(watchName) && /^\.\w+/.test(name2.slice(watchName.length))));
20424
20456
  const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
20425
20457
  for (const key2 of fieldsNames || Object.keys(fields)) {
20426
- const field = get$1(fields, key2);
20458
+ const field = get$2(fields, key2);
20427
20459
  if (field) {
20428
20460
  const { _f, ...currentField } = field;
20429
20461
  if (_f) {
@@ -20434,20 +20466,20 @@ const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
20434
20466
  } else {
20435
20467
  iterateFieldsByAction(currentField, action);
20436
20468
  }
20437
- } else if (isObject$1(currentField)) {
20469
+ } else if (isObject$3(currentField)) {
20438
20470
  iterateFieldsByAction(currentField, action);
20439
20471
  }
20440
20472
  }
20441
20473
  }
20442
20474
  };
20443
20475
  var updateFieldArrayRootError = (errors, error, name2) => {
20444
- const fieldArrayErrors = compact(get$1(errors, name2));
20476
+ const fieldArrayErrors = compact(get$2(errors, name2));
20445
20477
  set(fieldArrayErrors, "root", error[name2]);
20446
20478
  set(errors, name2, fieldArrayErrors);
20447
20479
  return errors;
20448
20480
  };
20449
20481
  var isFileInput = (element) => element.type === "file";
20450
- var isFunction$1 = (value2) => typeof value2 === "function";
20482
+ var isFunction$2 = (value2) => typeof value2 === "function";
20451
20483
  var isHTMLElement = (value2) => {
20452
20484
  if (!isWeb) {
20453
20485
  return false;
@@ -20493,13 +20525,13 @@ function getValidateError(result, ref, type2 = "validate") {
20493
20525
  };
20494
20526
  }
20495
20527
  }
20496
- var getValueAndMessage = (validationData) => isObject$1(validationData) && !isRegex(validationData) ? validationData : {
20528
+ var getValueAndMessage = (validationData) => isObject$3(validationData) && !isRegex(validationData) ? validationData : {
20497
20529
  value: validationData,
20498
20530
  message: ""
20499
20531
  };
20500
20532
  var validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {
20501
20533
  const { ref, refs, required, maxLength, minLength, min: min2, max, pattern, validate, name: name2, valueAsNumber, mount, disabled } = field._f;
20502
- const inputValue = get$1(formValues, name2);
20534
+ const inputValue = get$2(formValues, name2);
20503
20535
  if (!mount || disabled) {
20504
20536
  return {};
20505
20537
  }
@@ -20602,7 +20634,7 @@ var validateField = async (field, formValues, validateAllFieldCriteria, shouldUs
20602
20634
  }
20603
20635
  }
20604
20636
  if (validate) {
20605
- if (isFunction$1(validate)) {
20637
+ if (isFunction$2(validate)) {
20606
20638
  const result = await validate(inputValue, formValues);
20607
20639
  const validateError = getValidateError(result, inputRef);
20608
20640
  if (validateError) {
@@ -20615,7 +20647,7 @@ var validateField = async (field, formValues, validateAllFieldCriteria, shouldUs
20615
20647
  return error;
20616
20648
  }
20617
20649
  }
20618
- } else if (isObject$1(validate)) {
20650
+ } else if (isObject$3(validate)) {
20619
20651
  let validationResult = {};
20620
20652
  for (const key2 in validate) {
20621
20653
  if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {
@@ -20647,7 +20679,7 @@ var validateField = async (field, formValues, validateAllFieldCriteria, shouldUs
20647
20679
  setCustomValidity(true);
20648
20680
  return error;
20649
20681
  };
20650
- function baseGet$1(object2, updatePath) {
20682
+ function baseGet$2(object2, updatePath) {
20651
20683
  const length = updatePath.slice(0, -1).length;
20652
20684
  let index = 0;
20653
20685
  while (index < length) {
@@ -20664,14 +20696,14 @@ function isEmptyArray(obj) {
20664
20696
  return true;
20665
20697
  }
20666
20698
  function unset(object2, path2) {
20667
- const paths = Array.isArray(path2) ? path2 : isKey$1(path2) ? [path2] : stringToPath$2(path2);
20668
- const childObject = paths.length === 1 ? object2 : baseGet$1(object2, paths);
20699
+ const paths = Array.isArray(path2) ? path2 : isKey$2(path2) ? [path2] : stringToPath$2(path2);
20700
+ const childObject = paths.length === 1 ? object2 : baseGet$2(object2, paths);
20669
20701
  const index = paths.length - 1;
20670
20702
  const key2 = paths[index];
20671
20703
  if (childObject) {
20672
20704
  delete childObject[key2];
20673
20705
  }
20674
- if (index !== 0 && (isObject$1(childObject) && isEmptyObject(childObject) || Array.isArray(childObject) && isEmptyArray(childObject))) {
20706
+ if (index !== 0 && (isObject$3(childObject) && isEmptyObject(childObject) || Array.isArray(childObject) && isEmptyArray(childObject))) {
20675
20707
  unset(object2, paths.slice(0, -1));
20676
20708
  }
20677
20709
  return object2;
@@ -20723,7 +20755,7 @@ function deepEqual(object1, object2) {
20723
20755
  }
20724
20756
  if (key2 !== "ref") {
20725
20757
  const val2 = object2[key2];
20726
- if (isDateObject(val1) && isDateObject(val2) || isObject$1(val1) && isObject$1(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2) : val1 !== val2) {
20758
+ if (isDateObject(val1) && isDateObject(val2) || isObject$3(val1) && isObject$3(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2) : val1 !== val2) {
20727
20759
  return false;
20728
20760
  }
20729
20761
  }
@@ -20735,7 +20767,7 @@ var isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);
20735
20767
  var live = (ref) => isHTMLElement(ref) && ref.isConnected;
20736
20768
  var objectHasFunction = (data2) => {
20737
20769
  for (const key2 in data2) {
20738
- if (isFunction$1(data2[key2])) {
20770
+ if (isFunction$2(data2[key2])) {
20739
20771
  return true;
20740
20772
  }
20741
20773
  }
@@ -20743,9 +20775,9 @@ var objectHasFunction = (data2) => {
20743
20775
  };
20744
20776
  function markFieldsDirty(data2, fields = {}) {
20745
20777
  const isParentNodeArray = Array.isArray(data2);
20746
- if (isObject$1(data2) || isParentNodeArray) {
20778
+ if (isObject$3(data2) || isParentNodeArray) {
20747
20779
  for (const key2 in data2) {
20748
- if (Array.isArray(data2[key2]) || isObject$1(data2[key2]) && !objectHasFunction(data2[key2])) {
20780
+ if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
20749
20781
  fields[key2] = Array.isArray(data2[key2]) ? [] : {};
20750
20782
  markFieldsDirty(data2[key2], fields[key2]);
20751
20783
  } else if (!isNullOrUndefined(data2[key2])) {
@@ -20757,9 +20789,9 @@ function markFieldsDirty(data2, fields = {}) {
20757
20789
  }
20758
20790
  function getDirtyFieldsFromDefaultValues(data2, formValues, dirtyFieldsFromValues) {
20759
20791
  const isParentNodeArray = Array.isArray(data2);
20760
- if (isObject$1(data2) || isParentNodeArray) {
20792
+ if (isObject$3(data2) || isParentNodeArray) {
20761
20793
  for (const key2 in data2) {
20762
- if (Array.isArray(data2[key2]) || isObject$1(data2[key2]) && !objectHasFunction(data2[key2])) {
20794
+ if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
20763
20795
  if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key2])) {
20764
20796
  dirtyFieldsFromValues[key2] = Array.isArray(data2[key2]) ? markFieldsDirty(data2[key2], []) : { ...markFieldsDirty(data2[key2]) };
20765
20797
  } else {
@@ -20796,7 +20828,7 @@ function getFieldValue(_f) {
20796
20828
  var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {
20797
20829
  const fields = {};
20798
20830
  for (const name2 of fieldsNames) {
20799
- const field = get$1(_fields, name2);
20831
+ const field = get$2(_fields, name2);
20800
20832
  field && set(fields, name2, field._f);
20801
20833
  }
20802
20834
  return {
@@ -20806,11 +20838,11 @@ var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeVal
20806
20838
  shouldUseNativeValidation
20807
20839
  };
20808
20840
  };
20809
- var getRuleValue = (rule2) => isUndefined(rule2) ? rule2 : isRegex(rule2) ? rule2.source : isObject$1(rule2) ? isRegex(rule2.value) ? rule2.value.source : rule2.value : rule2;
20841
+ var getRuleValue = (rule2) => isUndefined(rule2) ? rule2 : isRegex(rule2) ? rule2.source : isObject$3(rule2) ? isRegex(rule2.value) ? rule2.value.source : rule2.value : rule2;
20810
20842
  var hasValidation = (options) => options.mount && (options.required || options.min || options.max || options.maxLength || options.minLength || options.pattern || options.validate);
20811
20843
  function schemaErrorLookup(errors, _fields, name2) {
20812
- const error = get$1(errors, name2);
20813
- if (error || isKey$1(name2)) {
20844
+ const error = get$2(errors, name2);
20845
+ if (error || isKey$2(name2)) {
20814
20846
  return {
20815
20847
  error,
20816
20848
  name: name2
@@ -20819,8 +20851,8 @@ function schemaErrorLookup(errors, _fields, name2) {
20819
20851
  const names = name2.split(".");
20820
20852
  while (names.length) {
20821
20853
  const fieldName = names.join(".");
20822
- const field = get$1(_fields, fieldName);
20823
- const foundError = get$1(errors, fieldName);
20854
+ const field = get$2(_fields, fieldName);
20855
+ const foundError = get$2(errors, fieldName);
20824
20856
  if (field && !Array.isArray(field) && name2 !== fieldName) {
20825
20857
  return { name: name2 };
20826
20858
  }
@@ -20848,7 +20880,7 @@ var skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode)
20848
20880
  }
20849
20881
  return true;
20850
20882
  };
20851
- var unsetEmptyArray = (ref, name2) => !compact(get$1(ref, name2)).length && unset(ref, name2);
20883
+ var unsetEmptyArray = (ref, name2) => !compact(get$2(ref, name2)).length && unset(ref, name2);
20852
20884
  const defaultOptions = {
20853
20885
  mode: VALIDATION_MODE.onSubmit,
20854
20886
  reValidateMode: VALIDATION_MODE.onChange,
@@ -20862,7 +20894,7 @@ function createFormControl(props = {}, flushRootRender) {
20862
20894
  let _formState = {
20863
20895
  submitCount: 0,
20864
20896
  isDirty: false,
20865
- isLoading: isFunction$1(_options.defaultValues),
20897
+ isLoading: isFunction$2(_options.defaultValues),
20866
20898
  isValidating: false,
20867
20899
  isSubmitted: false,
20868
20900
  isSubmitting: false,
@@ -20874,7 +20906,7 @@ function createFormControl(props = {}, flushRootRender) {
20874
20906
  disabled: _options.disabled || false
20875
20907
  };
20876
20908
  let _fields = {};
20877
- let _defaultValues = isObject$1(_options.values) || isObject$1(_options.defaultValues) ? cloneObject(_options.values || _options.defaultValues) || {} : {};
20909
+ let _defaultValues = isObject$3(_options.values) || isObject$3(_options.defaultValues) ? cloneObject(_options.values || _options.defaultValues) || {} : {};
20878
20910
  let _formValues = _options.shouldUnregister ? {} : cloneObject(_defaultValues);
20879
20911
  let _state = {
20880
20912
  action: false,
@@ -20925,17 +20957,17 @@ function createFormControl(props = {}, flushRootRender) {
20925
20957
  const _updateFieldArray = (name2, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
20926
20958
  if (args && method) {
20927
20959
  _state.action = true;
20928
- if (shouldUpdateFieldsAndState && Array.isArray(get$1(_fields, name2))) {
20929
- const fieldValues = method(get$1(_fields, name2), args.argA, args.argB);
20960
+ if (shouldUpdateFieldsAndState && Array.isArray(get$2(_fields, name2))) {
20961
+ const fieldValues = method(get$2(_fields, name2), args.argA, args.argB);
20930
20962
  shouldSetValues && set(_fields, name2, fieldValues);
20931
20963
  }
20932
- if (shouldUpdateFieldsAndState && Array.isArray(get$1(_formState.errors, name2))) {
20933
- const errors = method(get$1(_formState.errors, name2), args.argA, args.argB);
20964
+ if (shouldUpdateFieldsAndState && Array.isArray(get$2(_formState.errors, name2))) {
20965
+ const errors = method(get$2(_formState.errors, name2), args.argA, args.argB);
20934
20966
  shouldSetValues && set(_formState.errors, name2, errors);
20935
20967
  unsetEmptyArray(_formState.errors, name2);
20936
20968
  }
20937
- if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$1(_formState.touchedFields, name2))) {
20938
- const touchedFields = method(get$1(_formState.touchedFields, name2), args.argA, args.argB);
20969
+ if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$2(_formState.touchedFields, name2))) {
20970
+ const touchedFields = method(get$2(_formState.touchedFields, name2), args.argA, args.argB);
20939
20971
  shouldSetValues && set(_formState.touchedFields, name2, touchedFields);
20940
20972
  }
20941
20973
  if (_proxyFormState.dirtyFields) {
@@ -20966,9 +20998,9 @@ function createFormControl(props = {}, flushRootRender) {
20966
20998
  });
20967
20999
  };
20968
21000
  const updateValidAndValue = (name2, shouldSkipSetValueAs, value2, ref) => {
20969
- const field = get$1(_fields, name2);
21001
+ const field = get$2(_fields, name2);
20970
21002
  if (field) {
20971
- const defaultValue = get$1(_formValues, name2, isUndefined(value2) ? get$1(_defaultValues, name2) : value2);
21003
+ const defaultValue = get$2(_formValues, name2, isUndefined(value2) ? get$2(_defaultValues, name2) : value2);
20972
21004
  isUndefined(defaultValue) || ref && ref.defaultChecked || shouldSkipSetValueAs ? set(_formValues, name2, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) : setFieldValue(name2, defaultValue);
20973
21005
  _state.mount && _updateValid();
20974
21006
  }
@@ -20979,21 +21011,21 @@ function createFormControl(props = {}, flushRootRender) {
20979
21011
  const output = {
20980
21012
  name: name2
20981
21013
  };
20982
- const disabledField = !!(get$1(_fields, name2) && get$1(_fields, name2)._f.disabled);
21014
+ const disabledField = !!(get$2(_fields, name2) && get$2(_fields, name2)._f.disabled);
20983
21015
  if (!isBlurEvent || shouldDirty) {
20984
21016
  if (_proxyFormState.isDirty) {
20985
21017
  isPreviousDirty = _formState.isDirty;
20986
21018
  _formState.isDirty = output.isDirty = _getDirty();
20987
21019
  shouldUpdateField = isPreviousDirty !== output.isDirty;
20988
21020
  }
20989
- const isCurrentFieldPristine = disabledField || deepEqual(get$1(_defaultValues, name2), fieldValue);
20990
- isPreviousDirty = !!(!disabledField && get$1(_formState.dirtyFields, name2));
21021
+ const isCurrentFieldPristine = disabledField || deepEqual(get$2(_defaultValues, name2), fieldValue);
21022
+ isPreviousDirty = !!(!disabledField && get$2(_formState.dirtyFields, name2));
20991
21023
  isCurrentFieldPristine || disabledField ? unset(_formState.dirtyFields, name2) : set(_formState.dirtyFields, name2, true);
20992
21024
  output.dirtyFields = _formState.dirtyFields;
20993
21025
  shouldUpdateField = shouldUpdateField || _proxyFormState.dirtyFields && isPreviousDirty !== !isCurrentFieldPristine;
20994
21026
  }
20995
21027
  if (isBlurEvent) {
20996
- const isPreviousFieldTouched = get$1(_formState.touchedFields, name2);
21028
+ const isPreviousFieldTouched = get$2(_formState.touchedFields, name2);
20997
21029
  if (!isPreviousFieldTouched) {
20998
21030
  set(_formState.touchedFields, name2, isBlurEvent);
20999
21031
  output.touchedFields = _formState.touchedFields;
@@ -21004,7 +21036,7 @@ function createFormControl(props = {}, flushRootRender) {
21004
21036
  return shouldUpdateField ? output : {};
21005
21037
  };
21006
21038
  const shouldRenderByError = (name2, isValid, error, fieldState) => {
21007
- const previousFieldError = get$1(_formState.errors, name2);
21039
+ const previousFieldError = get$2(_formState.errors, name2);
21008
21040
  const shouldUpdateValid = _proxyFormState.isValid && isBoolean(isValid) && _formState.isValid !== isValid;
21009
21041
  if (props.delayError && error) {
21010
21042
  delayErrorCallback = debounce2(() => updateErrors(name2, error));
@@ -21034,7 +21066,7 @@ function createFormControl(props = {}, flushRootRender) {
21034
21066
  const { errors } = await _executeSchema(names);
21035
21067
  if (names) {
21036
21068
  for (const name2 of names) {
21037
- const error = get$1(errors, name2);
21069
+ const error = get$2(errors, name2);
21038
21070
  error ? set(_formState.errors, name2, error) : unset(_formState.errors, name2);
21039
21071
  }
21040
21072
  } else {
@@ -21058,7 +21090,7 @@ function createFormControl(props = {}, flushRootRender) {
21058
21090
  break;
21059
21091
  }
21060
21092
  }
21061
- !shouldOnlyCheckValid && (get$1(fieldError, _f.name) ? isFieldArrayRoot ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) : set(_formState.errors, _f.name, fieldError[_f.name]) : unset(_formState.errors, _f.name));
21093
+ !shouldOnlyCheckValid && (get$2(fieldError, _f.name) ? isFieldArrayRoot ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) : set(_formState.errors, _f.name, fieldError[_f.name]) : unset(_formState.errors, _f.name));
21062
21094
  }
21063
21095
  fieldValue && await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context);
21064
21096
  }
@@ -21067,7 +21099,7 @@ function createFormControl(props = {}, flushRootRender) {
21067
21099
  };
21068
21100
  const _removeUnmounted = () => {
21069
21101
  for (const name2 of _names.unMount) {
21070
- const field = get$1(_fields, name2);
21102
+ const field = get$2(_fields, name2);
21071
21103
  field && (field._f.refs ? field._f.refs.every((ref) => !live(ref)) : !live(field._f.ref)) && unregister(name2);
21072
21104
  }
21073
21105
  _names.unMount = /* @__PURE__ */ new Set();
@@ -21076,9 +21108,9 @@ function createFormControl(props = {}, flushRootRender) {
21076
21108
  const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
21077
21109
  ..._state.mount ? _formValues : isUndefined(defaultValue) ? _defaultValues : isString(names) ? { [names]: defaultValue } : defaultValue
21078
21110
  }, isGlobal, defaultValue);
21079
- const _getFieldArray = (name2) => compact(get$1(_state.mount ? _formValues : _defaultValues, name2, props.shouldUnregister ? get$1(_defaultValues, name2, []) : []));
21111
+ const _getFieldArray = (name2) => compact(get$2(_state.mount ? _formValues : _defaultValues, name2, props.shouldUnregister ? get$2(_defaultValues, name2, []) : []));
21080
21112
  const setFieldValue = (name2, value2, options = {}) => {
21081
- const field = get$1(_fields, name2);
21113
+ const field = get$2(_fields, name2);
21082
21114
  let fieldValue = value2;
21083
21115
  if (field) {
21084
21116
  const fieldReference = field._f;
@@ -21113,12 +21145,12 @@ function createFormControl(props = {}, flushRootRender) {
21113
21145
  for (const fieldKey in value2) {
21114
21146
  const fieldValue = value2[fieldKey];
21115
21147
  const fieldName = `${name2}.${fieldKey}`;
21116
- const field = get$1(_fields, fieldName);
21148
+ const field = get$2(_fields, fieldName);
21117
21149
  (_names.array.has(name2) || !isPrimitive(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);
21118
21150
  }
21119
21151
  };
21120
21152
  const setValue = (name2, value2, options = {}) => {
21121
- const field = get$1(_fields, name2);
21153
+ const field = get$2(_fields, name2);
21122
21154
  const isFieldArray = _names.array.has(name2);
21123
21155
  const cloneValue = cloneObject(value2);
21124
21156
  set(_formValues, name2, cloneValue);
@@ -21148,17 +21180,17 @@ function createFormControl(props = {}, flushRootRender) {
21148
21180
  const target = event2.target;
21149
21181
  let name2 = target.name;
21150
21182
  let isFieldValueUpdated = true;
21151
- const field = get$1(_fields, name2);
21183
+ const field = get$2(_fields, name2);
21152
21184
  const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event2);
21153
21185
  const _updateIsFieldValueUpdated = (fieldValue) => {
21154
- isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$1(_formValues, name2, fieldValue);
21186
+ isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$2(_formValues, name2, fieldValue);
21155
21187
  };
21156
21188
  if (field) {
21157
21189
  let error;
21158
21190
  let isValid;
21159
21191
  const fieldValue = getCurrentFieldValue();
21160
21192
  const isBlurEvent = event2.type === EVENTS.BLUR || event2.type === EVENTS.FOCUS_OUT;
21161
- const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get$1(_formState.errors, name2) && !field._f.deps || skipValidation(isBlurEvent, get$1(_formState.touchedFields, name2), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);
21193
+ const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get$2(_formState.errors, name2) && !field._f.deps || skipValidation(isBlurEvent, get$2(_formState.touchedFields, name2), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);
21162
21194
  const watched = isWatched(name2, _names, isBlurEvent);
21163
21195
  set(_formValues, name2, fieldValue);
21164
21196
  if (isBlurEvent) {
@@ -21208,7 +21240,7 @@ function createFormControl(props = {}, flushRootRender) {
21208
21240
  }
21209
21241
  };
21210
21242
  const _focusInput = (ref, key2) => {
21211
- if (get$1(_formState.errors, key2) && ref.focus) {
21243
+ if (get$2(_formState.errors, key2) && ref.focus) {
21212
21244
  ref.focus();
21213
21245
  return 1;
21214
21246
  }
@@ -21222,10 +21254,10 @@ function createFormControl(props = {}, flushRootRender) {
21222
21254
  if (_options.resolver) {
21223
21255
  const errors = await executeSchemaAndUpdateState(isUndefined(name2) ? name2 : fieldNames);
21224
21256
  isValid = isEmptyObject(errors);
21225
- validationResult = name2 ? !fieldNames.some((name3) => get$1(errors, name3)) : isValid;
21257
+ validationResult = name2 ? !fieldNames.some((name3) => get$2(errors, name3)) : isValid;
21226
21258
  } else if (name2) {
21227
21259
  validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {
21228
- const field = get$1(_fields, fieldName);
21260
+ const field = get$2(_fields, fieldName);
21229
21261
  return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);
21230
21262
  }))).every(Boolean);
21231
21263
  !(!validationResult && !_formState.isValid) && _updateValid();
@@ -21246,13 +21278,13 @@ function createFormControl(props = {}, flushRootRender) {
21246
21278
  ..._defaultValues,
21247
21279
  ..._state.mount ? _formValues : {}
21248
21280
  };
21249
- return isUndefined(fieldNames) ? values : isString(fieldNames) ? get$1(values, fieldNames) : fieldNames.map((name2) => get$1(values, name2));
21281
+ return isUndefined(fieldNames) ? values : isString(fieldNames) ? get$2(values, fieldNames) : fieldNames.map((name2) => get$2(values, name2));
21250
21282
  };
21251
21283
  const getFieldState = (name2, formState) => ({
21252
- invalid: !!get$1((formState || _formState).errors, name2),
21253
- isDirty: !!get$1((formState || _formState).dirtyFields, name2),
21254
- isTouched: !!get$1((formState || _formState).touchedFields, name2),
21255
- error: get$1((formState || _formState).errors, name2)
21284
+ invalid: !!get$2((formState || _formState).errors, name2),
21285
+ isDirty: !!get$2((formState || _formState).dirtyFields, name2),
21286
+ isTouched: !!get$2((formState || _formState).touchedFields, name2),
21287
+ error: get$2((formState || _formState).errors, name2)
21256
21288
  });
21257
21289
  const clearErrors = (name2) => {
21258
21290
  name2 && convertToArrayPayload(name2).forEach((inputName) => unset(_formState.errors, inputName));
@@ -21261,7 +21293,7 @@ function createFormControl(props = {}, flushRootRender) {
21261
21293
  });
21262
21294
  };
21263
21295
  const setError = (name2, error, options) => {
21264
- const ref = (get$1(_fields, name2, { _f: {} })._f || {}).ref;
21296
+ const ref = (get$2(_fields, name2, { _f: {} })._f || {}).ref;
21265
21297
  set(_formState.errors, name2, {
21266
21298
  ...error,
21267
21299
  ref
@@ -21273,7 +21305,7 @@ function createFormControl(props = {}, flushRootRender) {
21273
21305
  });
21274
21306
  options && options.shouldFocus && ref && ref.focus && ref.focus();
21275
21307
  };
21276
- const watch = (name2, defaultValue) => isFunction$1(name2) ? _subjects.values.subscribe({
21308
+ const watch = (name2, defaultValue) => isFunction$2(name2) ? _subjects.values.subscribe({
21277
21309
  next: (payload) => name2(_getWatch(void 0, defaultValue), payload)
21278
21310
  }) : _getWatch(name2, defaultValue, true);
21279
21311
  const unregister = (name2, options = {}) => {
@@ -21300,13 +21332,13 @@ function createFormControl(props = {}, flushRootRender) {
21300
21332
  };
21301
21333
  const _updateDisabledField = ({ disabled, name: name2, field, fields, value: value2 }) => {
21302
21334
  if (isBoolean(disabled)) {
21303
- const inputValue = disabled ? void 0 : isUndefined(value2) ? getFieldValue(field ? field._f : get$1(fields, name2)._f) : value2;
21335
+ const inputValue = disabled ? void 0 : isUndefined(value2) ? getFieldValue(field ? field._f : get$2(fields, name2)._f) : value2;
21304
21336
  set(_formValues, name2, inputValue);
21305
21337
  updateTouchAndDirty(name2, inputValue, false, false, true);
21306
21338
  }
21307
21339
  };
21308
21340
  const register = (name2, options = {}) => {
21309
- let field = get$1(_fields, name2);
21341
+ let field = get$2(_fields, name2);
21310
21342
  const disabledIsDefined = isBoolean(options.disabled);
21311
21343
  set(_fields, name2, {
21312
21344
  ...field || {},
@@ -21344,7 +21376,7 @@ function createFormControl(props = {}, flushRootRender) {
21344
21376
  ref: (ref) => {
21345
21377
  if (ref) {
21346
21378
  register(name2, options);
21347
- field = get$1(_fields, name2);
21379
+ field = get$2(_fields, name2);
21348
21380
  const fieldRef = isUndefined(ref.value) ? ref.querySelectorAll ? ref.querySelectorAll("input,select,textarea")[0] || ref : ref : ref;
21349
21381
  const radioOrCheckbox = isRadioOrCheckbox(fieldRef);
21350
21382
  const refs = field._f.refs || [];
@@ -21358,7 +21390,7 @@ function createFormControl(props = {}, flushRootRender) {
21358
21390
  refs: [
21359
21391
  ...refs.filter(live),
21360
21392
  fieldRef,
21361
- ...Array.isArray(get$1(_defaultValues, name2)) ? [{}] : []
21393
+ ...Array.isArray(get$2(_defaultValues, name2)) ? [{}] : []
21362
21394
  ],
21363
21395
  ref: { type: fieldRef.type, name: name2 }
21364
21396
  } : { ref: fieldRef }
@@ -21366,7 +21398,7 @@ function createFormControl(props = {}, flushRootRender) {
21366
21398
  });
21367
21399
  updateValidAndValue(name2, false, void 0, fieldRef);
21368
21400
  } else {
21369
- field = get$1(_fields, name2, {});
21401
+ field = get$2(_fields, name2, {});
21370
21402
  if (field._f) {
21371
21403
  field._f.mount = false;
21372
21404
  }
@@ -21381,7 +21413,7 @@ function createFormControl(props = {}, flushRootRender) {
21381
21413
  _subjects.state.next({ disabled });
21382
21414
  iterateFieldsByAction(_fields, (ref, name2) => {
21383
21415
  let requiredDisabledState = disabled;
21384
- const currentField = get$1(_fields, name2);
21416
+ const currentField = get$2(_fields, name2);
21385
21417
  if (currentField && isBoolean(currentField._f.disabled)) {
21386
21418
  requiredDisabledState || (requiredDisabledState = currentField._f.disabled);
21387
21419
  }
@@ -21435,9 +21467,9 @@ function createFormControl(props = {}, flushRootRender) {
21435
21467
  }
21436
21468
  };
21437
21469
  const resetField = (name2, options = {}) => {
21438
- if (get$1(_fields, name2)) {
21470
+ if (get$2(_fields, name2)) {
21439
21471
  if (isUndefined(options.defaultValue)) {
21440
- setValue(name2, cloneObject(get$1(_defaultValues, name2)));
21472
+ setValue(name2, cloneObject(get$2(_defaultValues, name2)));
21441
21473
  } else {
21442
21474
  setValue(name2, options.defaultValue);
21443
21475
  set(_defaultValues, name2, cloneObject(options.defaultValue));
@@ -21447,7 +21479,7 @@ function createFormControl(props = {}, flushRootRender) {
21447
21479
  }
21448
21480
  if (!options.keepDirty) {
21449
21481
  unset(_formState.dirtyFields, name2);
21450
- _formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$1(_defaultValues, name2))) : _getDirty();
21482
+ _formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$2(_defaultValues, name2))) : _getDirty();
21451
21483
  }
21452
21484
  if (!options.keepError) {
21453
21485
  unset(_formState.errors, name2);
@@ -21466,12 +21498,12 @@ function createFormControl(props = {}, flushRootRender) {
21466
21498
  if (!keepStateOptions.keepValues) {
21467
21499
  if (keepStateOptions.keepDirtyValues) {
21468
21500
  for (const fieldName of _names.mount) {
21469
- get$1(_formState.dirtyFields, fieldName) ? set(values, fieldName, get$1(_formValues, fieldName)) : setValue(fieldName, get$1(values, fieldName));
21501
+ get$2(_formState.dirtyFields, fieldName) ? set(values, fieldName, get$2(_formValues, fieldName)) : setValue(fieldName, get$2(values, fieldName));
21470
21502
  }
21471
21503
  } else {
21472
21504
  if (isWeb && isUndefined(formValues)) {
21473
21505
  for (const name2 of _names.mount) {
21474
- const field = get$1(_fields, name2);
21506
+ const field = get$2(_fields, name2);
21475
21507
  if (field && field._f) {
21476
21508
  const fieldReference = Array.isArray(field._f.refs) ? field._f.refs[0] : field._f.ref;
21477
21509
  if (isHTMLElement(fieldReference)) {
@@ -21516,9 +21548,9 @@ function createFormControl(props = {}, flushRootRender) {
21516
21548
  isSubmitting: false
21517
21549
  });
21518
21550
  };
21519
- const reset = (formValues, keepStateOptions) => _reset(isFunction$1(formValues) ? formValues(_formValues) : formValues, keepStateOptions);
21551
+ const reset = (formValues, keepStateOptions) => _reset(isFunction$2(formValues) ? formValues(_formValues) : formValues, keepStateOptions);
21520
21552
  const setFocus = (name2, options = {}) => {
21521
- const field = get$1(_fields, name2);
21553
+ const field = get$2(_fields, name2);
21522
21554
  const fieldReference = field && field._f;
21523
21555
  if (fieldReference) {
21524
21556
  const fieldRef = fieldReference.refs ? fieldReference.refs[0] : fieldReference.ref;
@@ -21534,7 +21566,7 @@ function createFormControl(props = {}, flushRootRender) {
21534
21566
  ...updatedFormState
21535
21567
  };
21536
21568
  };
21537
- const _resetDefaultValues = () => isFunction$1(_options.defaultValues) && _options.defaultValues().then((values) => {
21569
+ const _resetDefaultValues = () => isFunction$2(_options.defaultValues) && _options.defaultValues().then((values) => {
21538
21570
  reset(values, _options.resetOptions);
21539
21571
  _subjects.state.next({
21540
21572
  isLoading: false
@@ -21614,13 +21646,13 @@ function createFormControl(props = {}, flushRootRender) {
21614
21646
  getFieldState
21615
21647
  };
21616
21648
  }
21617
- function useForm(props = {}) {
21649
+ function useForm$1(props = {}) {
21618
21650
  const _formControl = React__default.useRef();
21619
21651
  const _values = React__default.useRef();
21620
21652
  const [formState, updateFormState] = React__default.useState({
21621
21653
  isDirty: false,
21622
21654
  isValidating: false,
21623
- isLoading: isFunction$1(props.defaultValues),
21655
+ isLoading: isFunction$2(props.defaultValues),
21624
21656
  isSubmitted: false,
21625
21657
  isSubmitting: false,
21626
21658
  isSubmitSuccessful: false,
@@ -21630,7 +21662,7 @@ function useForm(props = {}) {
21630
21662
  touchedFields: {},
21631
21663
  errors: props.errors || {},
21632
21664
  disabled: props.disabled || false,
21633
- defaultValues: isFunction$1(props.defaultValues) ? void 0 : props.defaultValues
21665
+ defaultValues: isFunction$2(props.defaultValues) ? void 0 : props.defaultValues
21634
21666
  });
21635
21667
  if (!_formControl.current) {
21636
21668
  _formControl.current = {
@@ -21703,10 +21735,8 @@ const RefineFormContent = (props) => {
21703
21735
  } = props;
21704
21736
  const {
21705
21737
  control,
21706
- watch,
21707
21738
  getValues
21708
21739
  } = formResult;
21709
- watch();
21710
21740
  const fields = (_b = (_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.fields) == null ? void 0 : _b.map((c2) => {
21711
21741
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Controller, {
21712
21742
  control,
@@ -21793,20 +21823,23 @@ const RefineFormContent = (props) => {
21793
21823
  })]
21794
21824
  });
21795
21825
  };
21796
- var isArray = Array.isArray;
21797
- const isArray$1 = isArray;
21798
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
21799
- const freeGlobal$1 = freeGlobal;
21826
+ var isArray$4 = Array.isArray;
21827
+ var isArray_1 = isArray$4;
21828
+ var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
21829
+ var _freeGlobal = freeGlobal$1;
21830
+ var freeGlobal = _freeGlobal;
21800
21831
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
21801
- var root = freeGlobal$1 || freeSelf || Function("return this")();
21802
- const root$1 = root;
21803
- var Symbol$1 = root$1.Symbol;
21804
- const Symbol$2 = Symbol$1;
21832
+ var root$3 = freeGlobal || freeSelf || Function("return this")();
21833
+ var _root = root$3;
21834
+ var root$2 = _root;
21835
+ var Symbol$4 = root$2.Symbol;
21836
+ var _Symbol = Symbol$4;
21837
+ var Symbol$3 = _Symbol;
21805
21838
  var objectProto$6 = Object.prototype;
21806
21839
  var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
21807
21840
  var nativeObjectToString$1 = objectProto$6.toString;
21808
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
21809
- function getRawTag(value2) {
21841
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
21842
+ function getRawTag$1(value2) {
21810
21843
  var isOwn = hasOwnProperty$5.call(value2, symToStringTag$1), tag = value2[symToStringTag$1];
21811
21844
  try {
21812
21845
  value2[symToStringTag$1] = void 0;
@@ -21823,61 +21856,76 @@ function getRawTag(value2) {
21823
21856
  }
21824
21857
  return result;
21825
21858
  }
21859
+ var _getRawTag = getRawTag$1;
21826
21860
  var objectProto$5 = Object.prototype;
21827
21861
  var nativeObjectToString = objectProto$5.toString;
21828
- function objectToString(value2) {
21862
+ function objectToString$1(value2) {
21829
21863
  return nativeObjectToString.call(value2);
21830
21864
  }
21865
+ var _objectToString = objectToString$1;
21866
+ var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
21831
21867
  var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
21832
21868
  var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
21833
- function baseGetTag(value2) {
21869
+ function baseGetTag$3(value2) {
21834
21870
  if (value2 == null) {
21835
21871
  return value2 === void 0 ? undefinedTag : nullTag;
21836
21872
  }
21837
21873
  return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
21838
21874
  }
21839
- function isObjectLike(value2) {
21875
+ var _baseGetTag = baseGetTag$3;
21876
+ function isObjectLike$3(value2) {
21840
21877
  return value2 != null && typeof value2 == "object";
21841
21878
  }
21879
+ var isObjectLike_1 = isObjectLike$3;
21880
+ var baseGetTag$2 = _baseGetTag, isObjectLike$2 = isObjectLike_1;
21842
21881
  var symbolTag = "[object Symbol]";
21843
- function isSymbol(value2) {
21844
- return typeof value2 == "symbol" || isObjectLike(value2) && baseGetTag(value2) == symbolTag;
21882
+ function isSymbol$3(value2) {
21883
+ return typeof value2 == "symbol" || isObjectLike$2(value2) && baseGetTag$2(value2) == symbolTag;
21845
21884
  }
21885
+ var isSymbol_1 = isSymbol$3;
21886
+ var isArray$3 = isArray_1, isSymbol$2 = isSymbol_1;
21846
21887
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
21847
- function isKey(value2, object2) {
21848
- if (isArray$1(value2)) {
21888
+ function isKey$1(value2, object2) {
21889
+ if (isArray$3(value2)) {
21849
21890
  return false;
21850
21891
  }
21851
21892
  var type2 = typeof value2;
21852
- if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol(value2)) {
21893
+ if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol$2(value2)) {
21853
21894
  return true;
21854
21895
  }
21855
21896
  return reIsPlainProp.test(value2) || !reIsDeepProp.test(value2) || object2 != null && value2 in Object(object2);
21856
21897
  }
21857
- function isObject(value2) {
21898
+ var _isKey = isKey$1;
21899
+ function isObject$2(value2) {
21858
21900
  var type2 = typeof value2;
21859
21901
  return value2 != null && (type2 == "object" || type2 == "function");
21860
21902
  }
21903
+ var isObject_1 = isObject$2;
21904
+ var baseGetTag$1 = _baseGetTag, isObject$1 = isObject_1;
21861
21905
  var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
21862
- function isFunction(value2) {
21863
- if (!isObject(value2)) {
21906
+ function isFunction$1(value2) {
21907
+ if (!isObject$1(value2)) {
21864
21908
  return false;
21865
21909
  }
21866
- var tag = baseGetTag(value2);
21910
+ var tag = baseGetTag$1(value2);
21867
21911
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
21868
21912
  }
21869
- var coreJsData = root$1["__core-js_shared__"];
21870
- const coreJsData$1 = coreJsData;
21913
+ var isFunction_1 = isFunction$1;
21914
+ var root$1 = _root;
21915
+ var coreJsData$1 = root$1["__core-js_shared__"];
21916
+ var _coreJsData = coreJsData$1;
21917
+ var coreJsData = _coreJsData;
21871
21918
  var maskSrcKey = function() {
21872
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
21919
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
21873
21920
  return uid ? "Symbol(src)_1." + uid : "";
21874
21921
  }();
21875
- function isMasked(func) {
21922
+ function isMasked$1(func) {
21876
21923
  return !!maskSrcKey && maskSrcKey in func;
21877
21924
  }
21925
+ var _isMasked = isMasked$1;
21878
21926
  var funcProto$1 = Function.prototype;
21879
21927
  var funcToString$1 = funcProto$1.toString;
21880
- function toSource(func) {
21928
+ function toSource$1(func) {
21881
21929
  if (func != null) {
21882
21930
  try {
21883
21931
  return funcToString$1.call(func);
@@ -21890,6 +21938,8 @@ function toSource(func) {
21890
21938
  }
21891
21939
  return "";
21892
21940
  }
21941
+ var _toSource = toSource$1;
21942
+ var isFunction = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource = _toSource;
21893
21943
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
21894
21944
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
21895
21945
  var funcProto = Function.prototype, objectProto$4 = Object.prototype;
@@ -21898,56 +21948,71 @@ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
21898
21948
  var reIsNative = RegExp(
21899
21949
  "^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
21900
21950
  );
21901
- function baseIsNative(value2) {
21951
+ function baseIsNative$1(value2) {
21902
21952
  if (!isObject(value2) || isMasked(value2)) {
21903
21953
  return false;
21904
21954
  }
21905
21955
  var pattern = isFunction(value2) ? reIsNative : reIsHostCtor;
21906
21956
  return pattern.test(toSource(value2));
21907
21957
  }
21908
- function getValue(object2, key2) {
21958
+ var _baseIsNative = baseIsNative$1;
21959
+ function getValue$1(object2, key2) {
21909
21960
  return object2 == null ? void 0 : object2[key2];
21910
21961
  }
21911
- function getNative(object2, key2) {
21962
+ var _getValue = getValue$1;
21963
+ var baseIsNative = _baseIsNative, getValue = _getValue;
21964
+ function getNative$2(object2, key2) {
21912
21965
  var value2 = getValue(object2, key2);
21913
21966
  return baseIsNative(value2) ? value2 : void 0;
21914
21967
  }
21915
- var nativeCreate = getNative(Object, "create");
21916
- const nativeCreate$1 = nativeCreate;
21917
- function hashClear() {
21918
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
21968
+ var _getNative = getNative$2;
21969
+ var getNative$1 = _getNative;
21970
+ var nativeCreate$4 = getNative$1(Object, "create");
21971
+ var _nativeCreate = nativeCreate$4;
21972
+ var nativeCreate$3 = _nativeCreate;
21973
+ function hashClear$1() {
21974
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
21919
21975
  this.size = 0;
21920
21976
  }
21921
- function hashDelete(key2) {
21977
+ var _hashClear = hashClear$1;
21978
+ function hashDelete$1(key2) {
21922
21979
  var result = this.has(key2) && delete this.__data__[key2];
21923
21980
  this.size -= result ? 1 : 0;
21924
21981
  return result;
21925
21982
  }
21983
+ var _hashDelete = hashDelete$1;
21984
+ var nativeCreate$2 = _nativeCreate;
21926
21985
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
21927
21986
  var objectProto$3 = Object.prototype;
21928
21987
  var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
21929
- function hashGet(key2) {
21988
+ function hashGet$1(key2) {
21930
21989
  var data2 = this.__data__;
21931
- if (nativeCreate$1) {
21990
+ if (nativeCreate$2) {
21932
21991
  var result = data2[key2];
21933
21992
  return result === HASH_UNDEFINED$1 ? void 0 : result;
21934
21993
  }
21935
21994
  return hasOwnProperty$3.call(data2, key2) ? data2[key2] : void 0;
21936
21995
  }
21996
+ var _hashGet = hashGet$1;
21997
+ var nativeCreate$1 = _nativeCreate;
21937
21998
  var objectProto$2 = Object.prototype;
21938
21999
  var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
21939
- function hashHas(key2) {
22000
+ function hashHas$1(key2) {
21940
22001
  var data2 = this.__data__;
21941
22002
  return nativeCreate$1 ? data2[key2] !== void 0 : hasOwnProperty$2.call(data2, key2);
21942
22003
  }
22004
+ var _hashHas = hashHas$1;
22005
+ var nativeCreate = _nativeCreate;
21943
22006
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
21944
- function hashSet(key2, value2) {
22007
+ function hashSet$1(key2, value2) {
21945
22008
  var data2 = this.__data__;
21946
22009
  this.size += this.has(key2) ? 0 : 1;
21947
- data2[key2] = nativeCreate$1 && value2 === void 0 ? HASH_UNDEFINED : value2;
22010
+ data2[key2] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
21948
22011
  return this;
21949
22012
  }
21950
- function Hash(entries) {
22013
+ var _hashSet = hashSet$1;
22014
+ var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
22015
+ function Hash$1(entries) {
21951
22016
  var index = -1, length = entries == null ? 0 : entries.length;
21952
22017
  this.clear();
21953
22018
  while (++index < length) {
@@ -21955,19 +22020,23 @@ function Hash(entries) {
21955
22020
  this.set(entry[0], entry[1]);
21956
22021
  }
21957
22022
  }
21958
- Hash.prototype.clear = hashClear;
21959
- Hash.prototype["delete"] = hashDelete;
21960
- Hash.prototype.get = hashGet;
21961
- Hash.prototype.has = hashHas;
21962
- Hash.prototype.set = hashSet;
21963
- function listCacheClear() {
22023
+ Hash$1.prototype.clear = hashClear;
22024
+ Hash$1.prototype["delete"] = hashDelete;
22025
+ Hash$1.prototype.get = hashGet;
22026
+ Hash$1.prototype.has = hashHas;
22027
+ Hash$1.prototype.set = hashSet;
22028
+ var _Hash = Hash$1;
22029
+ function listCacheClear$1() {
21964
22030
  this.__data__ = [];
21965
22031
  this.size = 0;
21966
22032
  }
21967
- function eq(value2, other) {
22033
+ var _listCacheClear = listCacheClear$1;
22034
+ function eq$1(value2, other) {
21968
22035
  return value2 === other || value2 !== value2 && other !== other;
21969
22036
  }
21970
- function assocIndexOf(array, key2) {
22037
+ var eq_1 = eq$1;
22038
+ var eq = eq_1;
22039
+ function assocIndexOf$4(array, key2) {
21971
22040
  var length = array.length;
21972
22041
  while (length--) {
21973
22042
  if (eq(array[length][0], key2)) {
@@ -21976,10 +22045,12 @@ function assocIndexOf(array, key2) {
21976
22045
  }
21977
22046
  return -1;
21978
22047
  }
22048
+ var _assocIndexOf = assocIndexOf$4;
22049
+ var assocIndexOf$3 = _assocIndexOf;
21979
22050
  var arrayProto = Array.prototype;
21980
22051
  var splice = arrayProto.splice;
21981
- function listCacheDelete(key2) {
21982
- var data2 = this.__data__, index = assocIndexOf(data2, key2);
22052
+ function listCacheDelete$1(key2) {
22053
+ var data2 = this.__data__, index = assocIndexOf$3(data2, key2);
21983
22054
  if (index < 0) {
21984
22055
  return false;
21985
22056
  }
@@ -21992,14 +22063,20 @@ function listCacheDelete(key2) {
21992
22063
  --this.size;
21993
22064
  return true;
21994
22065
  }
21995
- function listCacheGet(key2) {
21996
- var data2 = this.__data__, index = assocIndexOf(data2, key2);
22066
+ var _listCacheDelete = listCacheDelete$1;
22067
+ var assocIndexOf$2 = _assocIndexOf;
22068
+ function listCacheGet$1(key2) {
22069
+ var data2 = this.__data__, index = assocIndexOf$2(data2, key2);
21997
22070
  return index < 0 ? void 0 : data2[index][1];
21998
22071
  }
21999
- function listCacheHas(key2) {
22000
- return assocIndexOf(this.__data__, key2) > -1;
22072
+ var _listCacheGet = listCacheGet$1;
22073
+ var assocIndexOf$1 = _assocIndexOf;
22074
+ function listCacheHas$1(key2) {
22075
+ return assocIndexOf$1(this.__data__, key2) > -1;
22001
22076
  }
22002
- function listCacheSet(key2, value2) {
22077
+ var _listCacheHas = listCacheHas$1;
22078
+ var assocIndexOf = _assocIndexOf;
22079
+ function listCacheSet$1(key2, value2) {
22003
22080
  var data2 = this.__data__, index = assocIndexOf(data2, key2);
22004
22081
  if (index < 0) {
22005
22082
  ++this.size;
@@ -22009,7 +22086,9 @@ function listCacheSet(key2, value2) {
22009
22086
  }
22010
22087
  return this;
22011
22088
  }
22012
- function ListCache(entries) {
22089
+ var _listCacheSet = listCacheSet$1;
22090
+ var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
22091
+ function ListCache$1(entries) {
22013
22092
  var index = -1, length = entries == null ? 0 : entries.length;
22014
22093
  this.clear();
22015
22094
  while (++index < length) {
@@ -22017,47 +22096,63 @@ function ListCache(entries) {
22017
22096
  this.set(entry[0], entry[1]);
22018
22097
  }
22019
22098
  }
22020
- ListCache.prototype.clear = listCacheClear;
22021
- ListCache.prototype["delete"] = listCacheDelete;
22022
- ListCache.prototype.get = listCacheGet;
22023
- ListCache.prototype.has = listCacheHas;
22024
- ListCache.prototype.set = listCacheSet;
22025
- var Map$1 = getNative(root$1, "Map");
22026
- const Map$2 = Map$1;
22027
- function mapCacheClear() {
22099
+ ListCache$1.prototype.clear = listCacheClear;
22100
+ ListCache$1.prototype["delete"] = listCacheDelete;
22101
+ ListCache$1.prototype.get = listCacheGet;
22102
+ ListCache$1.prototype.has = listCacheHas;
22103
+ ListCache$1.prototype.set = listCacheSet;
22104
+ var _ListCache = ListCache$1;
22105
+ var getNative = _getNative, root = _root;
22106
+ var Map$2 = getNative(root, "Map");
22107
+ var _Map = Map$2;
22108
+ var Hash = _Hash, ListCache = _ListCache, Map$1 = _Map;
22109
+ function mapCacheClear$1() {
22028
22110
  this.size = 0;
22029
22111
  this.__data__ = {
22030
22112
  "hash": new Hash(),
22031
- "map": new (Map$2 || ListCache)(),
22113
+ "map": new (Map$1 || ListCache)(),
22032
22114
  "string": new Hash()
22033
22115
  };
22034
22116
  }
22035
- function isKeyable(value2) {
22117
+ var _mapCacheClear = mapCacheClear$1;
22118
+ function isKeyable$1(value2) {
22036
22119
  var type2 = typeof value2;
22037
22120
  return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value2 !== "__proto__" : value2 === null;
22038
22121
  }
22039
- function getMapData(map, key2) {
22122
+ var _isKeyable = isKeyable$1;
22123
+ var isKeyable = _isKeyable;
22124
+ function getMapData$4(map, key2) {
22040
22125
  var data2 = map.__data__;
22041
22126
  return isKeyable(key2) ? data2[typeof key2 == "string" ? "string" : "hash"] : data2.map;
22042
22127
  }
22043
- function mapCacheDelete(key2) {
22044
- var result = getMapData(this, key2)["delete"](key2);
22128
+ var _getMapData = getMapData$4;
22129
+ var getMapData$3 = _getMapData;
22130
+ function mapCacheDelete$1(key2) {
22131
+ var result = getMapData$3(this, key2)["delete"](key2);
22045
22132
  this.size -= result ? 1 : 0;
22046
22133
  return result;
22047
22134
  }
22048
- function mapCacheGet(key2) {
22049
- return getMapData(this, key2).get(key2);
22135
+ var _mapCacheDelete = mapCacheDelete$1;
22136
+ var getMapData$2 = _getMapData;
22137
+ function mapCacheGet$1(key2) {
22138
+ return getMapData$2(this, key2).get(key2);
22050
22139
  }
22051
- function mapCacheHas(key2) {
22052
- return getMapData(this, key2).has(key2);
22140
+ var _mapCacheGet = mapCacheGet$1;
22141
+ var getMapData$1 = _getMapData;
22142
+ function mapCacheHas$1(key2) {
22143
+ return getMapData$1(this, key2).has(key2);
22053
22144
  }
22054
- function mapCacheSet(key2, value2) {
22145
+ var _mapCacheHas = mapCacheHas$1;
22146
+ var getMapData = _getMapData;
22147
+ function mapCacheSet$1(key2, value2) {
22055
22148
  var data2 = getMapData(this, key2), size = data2.size;
22056
22149
  data2.set(key2, value2);
22057
22150
  this.size += data2.size == size ? 0 : 1;
22058
22151
  return this;
22059
22152
  }
22060
- function MapCache(entries) {
22153
+ var _mapCacheSet = mapCacheSet$1;
22154
+ var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
22155
+ function MapCache$1(entries) {
22061
22156
  var index = -1, length = entries == null ? 0 : entries.length;
22062
22157
  this.clear();
22063
22158
  while (++index < length) {
@@ -22065,13 +22160,15 @@ function MapCache(entries) {
22065
22160
  this.set(entry[0], entry[1]);
22066
22161
  }
22067
22162
  }
22068
- MapCache.prototype.clear = mapCacheClear;
22069
- MapCache.prototype["delete"] = mapCacheDelete;
22070
- MapCache.prototype.get = mapCacheGet;
22071
- MapCache.prototype.has = mapCacheHas;
22072
- MapCache.prototype.set = mapCacheSet;
22163
+ MapCache$1.prototype.clear = mapCacheClear;
22164
+ MapCache$1.prototype["delete"] = mapCacheDelete;
22165
+ MapCache$1.prototype.get = mapCacheGet;
22166
+ MapCache$1.prototype.has = mapCacheHas;
22167
+ MapCache$1.prototype.set = mapCacheSet;
22168
+ var _MapCache = MapCache$1;
22169
+ var MapCache = _MapCache;
22073
22170
  var FUNC_ERROR_TEXT = "Expected a function";
22074
- function memoize(func, resolver) {
22171
+ function memoize$1(func, resolver) {
22075
22172
  if (typeof func != "function" || resolver != null && typeof resolver != "function") {
22076
22173
  throw new TypeError(FUNC_ERROR_TEXT);
22077
22174
  }
@@ -22084,12 +22181,14 @@ function memoize(func, resolver) {
22084
22181
  memoized.cache = cache.set(key2, result) || cache;
22085
22182
  return result;
22086
22183
  };
22087
- memoized.cache = new (memoize.Cache || MapCache)();
22184
+ memoized.cache = new (memoize$1.Cache || MapCache)();
22088
22185
  return memoized;
22089
22186
  }
22090
- memoize.Cache = MapCache;
22187
+ memoize$1.Cache = MapCache;
22188
+ var memoize_1 = memoize$1;
22189
+ var memoize = memoize_1;
22091
22190
  var MAX_MEMOIZE_SIZE = 500;
22092
- function memoizeCapped(func) {
22191
+ function memoizeCapped$1(func) {
22093
22192
  var result = memoize(func, function(key2) {
22094
22193
  if (cache.size === MAX_MEMOIZE_SIZE) {
22095
22194
  cache.clear();
@@ -22099,9 +22198,11 @@ function memoizeCapped(func) {
22099
22198
  var cache = result.cache;
22100
22199
  return result;
22101
22200
  }
22201
+ var _memoizeCapped = memoizeCapped$1;
22202
+ var memoizeCapped = _memoizeCapped;
22102
22203
  var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
22103
22204
  var reEscapeChar = /\\(\\)?/g;
22104
- var stringToPath = memoizeCapped(function(string) {
22205
+ var stringToPath$1 = memoizeCapped(function(string) {
22105
22206
  var result = [];
22106
22207
  if (string.charCodeAt(0) === 46) {
22107
22208
  result.push("");
@@ -22111,88 +22212,109 @@ var stringToPath = memoizeCapped(function(string) {
22111
22212
  });
22112
22213
  return result;
22113
22214
  });
22114
- const stringToPath$1 = stringToPath;
22115
- function arrayMap(array, iteratee) {
22215
+ var _stringToPath = stringToPath$1;
22216
+ function arrayMap$1(array, iteratee) {
22116
22217
  var index = -1, length = array == null ? 0 : array.length, result = Array(length);
22117
22218
  while (++index < length) {
22118
22219
  result[index] = iteratee(array[index], index, array);
22119
22220
  }
22120
22221
  return result;
22121
22222
  }
22223
+ var _arrayMap = arrayMap$1;
22224
+ var Symbol$1 = _Symbol, arrayMap = _arrayMap, isArray$2 = isArray_1, isSymbol$1 = isSymbol_1;
22122
22225
  var INFINITY$1 = 1 / 0;
22123
- var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
22124
- function baseToString(value2) {
22226
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
22227
+ function baseToString$1(value2) {
22125
22228
  if (typeof value2 == "string") {
22126
22229
  return value2;
22127
22230
  }
22128
- if (isArray$1(value2)) {
22129
- return arrayMap(value2, baseToString) + "";
22231
+ if (isArray$2(value2)) {
22232
+ return arrayMap(value2, baseToString$1) + "";
22130
22233
  }
22131
- if (isSymbol(value2)) {
22234
+ if (isSymbol$1(value2)) {
22132
22235
  return symbolToString ? symbolToString.call(value2) : "";
22133
22236
  }
22134
22237
  var result = value2 + "";
22135
22238
  return result == "0" && 1 / value2 == -INFINITY$1 ? "-0" : result;
22136
22239
  }
22137
- function toString(value2) {
22240
+ var _baseToString = baseToString$1;
22241
+ var baseToString = _baseToString;
22242
+ function toString$1(value2) {
22138
22243
  return value2 == null ? "" : baseToString(value2);
22139
22244
  }
22140
- function castPath(value2, object2) {
22245
+ var toString_1 = toString$1;
22246
+ var isArray$1 = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
22247
+ function castPath$2(value2, object2) {
22141
22248
  if (isArray$1(value2)) {
22142
22249
  return value2;
22143
22250
  }
22144
- return isKey(value2, object2) ? [value2] : stringToPath$1(toString(value2));
22251
+ return isKey(value2, object2) ? [value2] : stringToPath(toString(value2));
22145
22252
  }
22253
+ var _castPath = castPath$2;
22254
+ var isSymbol = isSymbol_1;
22146
22255
  var INFINITY = 1 / 0;
22147
- function toKey(value2) {
22256
+ function toKey$2(value2) {
22148
22257
  if (typeof value2 == "string" || isSymbol(value2)) {
22149
22258
  return value2;
22150
22259
  }
22151
22260
  var result = value2 + "";
22152
22261
  return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
22153
22262
  }
22154
- function baseGet(object2, path2) {
22155
- path2 = castPath(path2, object2);
22263
+ var _toKey = toKey$2;
22264
+ var castPath$1 = _castPath, toKey$1 = _toKey;
22265
+ function baseGet$1(object2, path2) {
22266
+ path2 = castPath$1(path2, object2);
22156
22267
  var index = 0, length = path2.length;
22157
22268
  while (object2 != null && index < length) {
22158
- object2 = object2[toKey(path2[index++])];
22269
+ object2 = object2[toKey$1(path2[index++])];
22159
22270
  }
22160
22271
  return index && index == length ? object2 : void 0;
22161
22272
  }
22273
+ var _baseGet = baseGet$1;
22274
+ var baseGet = _baseGet;
22162
22275
  function get(object2, path2, defaultValue) {
22163
22276
  var result = object2 == null ? void 0 : baseGet(object2, path2);
22164
22277
  return result === void 0 ? defaultValue : result;
22165
22278
  }
22279
+ var get_1 = get;
22280
+ const get$1 = /* @__PURE__ */ getDefaultExportFromCjs(get_1);
22166
22281
  var objectProto$1 = Object.prototype;
22167
22282
  var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
22168
- function baseHas(object2, key2) {
22283
+ function baseHas$1(object2, key2) {
22169
22284
  return object2 != null && hasOwnProperty$1.call(object2, key2);
22170
22285
  }
22286
+ var _baseHas = baseHas$1;
22287
+ var baseGetTag = _baseGetTag, isObjectLike$1 = isObjectLike_1;
22171
22288
  var argsTag = "[object Arguments]";
22172
- function baseIsArguments(value2) {
22173
- return isObjectLike(value2) && baseGetTag(value2) == argsTag;
22289
+ function baseIsArguments$1(value2) {
22290
+ return isObjectLike$1(value2) && baseGetTag(value2) == argsTag;
22174
22291
  }
22292
+ var _baseIsArguments = baseIsArguments$1;
22293
+ var baseIsArguments = _baseIsArguments, isObjectLike = isObjectLike_1;
22175
22294
  var objectProto = Object.prototype;
22176
22295
  var hasOwnProperty = objectProto.hasOwnProperty;
22177
22296
  var propertyIsEnumerable = objectProto.propertyIsEnumerable;
22178
- var isArguments = baseIsArguments(function() {
22297
+ var isArguments$1 = baseIsArguments(function() {
22179
22298
  return arguments;
22180
22299
  }()) ? baseIsArguments : function(value2) {
22181
22300
  return isObjectLike(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
22182
22301
  };
22183
- const isArguments$1 = isArguments;
22302
+ var isArguments_1 = isArguments$1;
22184
22303
  var MAX_SAFE_INTEGER$1 = 9007199254740991;
22185
22304
  var reIsUint = /^(?:0|[1-9]\d*)$/;
22186
- function isIndex(value2, length) {
22305
+ function isIndex$1(value2, length) {
22187
22306
  var type2 = typeof value2;
22188
22307
  length = length == null ? MAX_SAFE_INTEGER$1 : length;
22189
22308
  return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length);
22190
22309
  }
22310
+ var _isIndex = isIndex$1;
22191
22311
  var MAX_SAFE_INTEGER = 9007199254740991;
22192
- function isLength(value2) {
22312
+ function isLength$1(value2) {
22193
22313
  return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
22194
22314
  }
22195
- function hasPath(object2, path2, hasFunc) {
22315
+ var isLength_1 = isLength$1;
22316
+ var castPath = _castPath, isArguments = isArguments_1, isArray = isArray_1, isIndex = _isIndex, isLength = isLength_1, toKey = _toKey;
22317
+ function hasPath$1(object2, path2, hasFunc) {
22196
22318
  path2 = castPath(path2, object2);
22197
22319
  var index = -1, length = path2.length, result = false;
22198
22320
  while (++index < length) {
@@ -22206,123 +22328,138 @@ function hasPath(object2, path2, hasFunc) {
22206
22328
  return result;
22207
22329
  }
22208
22330
  length = object2 == null ? 0 : object2.length;
22209
- return !!length && isLength(length) && isIndex(key2, length) && (isArray$1(object2) || isArguments$1(object2));
22331
+ return !!length && isLength(length) && isIndex(key2, length) && (isArray(object2) || isArguments(object2));
22210
22332
  }
22333
+ var _hasPath = hasPath$1;
22334
+ var baseHas = _baseHas, hasPath = _hasPath;
22211
22335
  function has(object2, path2) {
22212
22336
  return object2 != null && hasPath(object2, path2, baseHas);
22213
22337
  }
22214
- var L = Object.defineProperty;
22215
- var m = (t2, a2) => L(t2, "name", { value: a2, configurable: true });
22216
- var C = m(({ refineCoreProps: t2, warnWhenUnsavedChanges: a2, disableServerSideValidation: p = false, ...Q } = {}) => {
22217
- let { options: F } = useRefineContext(), S = (F == null ? void 0 : F.disableServerSideValidation) || p, U = useTranslate(), { warnWhenUnsavedChanges: h, setWarnWhen: b } = useWarnAboutChange(), f = a2 ?? h, d = useForm({ ...Q }), { watch: c2, setValue: R, getValues: i2, handleSubmit: T, setError: x } = d, E = useForm$1({ ...t2, onMutationError: (r2, s2, e2) => {
22218
- var v, H;
22219
- if (S) {
22220
- (v = t2 == null ? void 0 : t2.onMutationError) == null || v.call(t2, r2, s2, e2);
22221
- return;
22222
- }
22223
- let y = r2 == null ? void 0 : r2.errors;
22224
- for (let V in y) {
22225
- if (!Object.keys(flattenObjectKeys(s2)).includes(V))
22226
- continue;
22227
- let u = y[V], D = "";
22228
- Array.isArray(u) && (D = u.join(" ")), typeof u == "string" && (D = u), typeof u == "boolean" && u && (D = "Field is not valid."), typeof u == "object" && "key" in u && (D = U(u.key, u.message)), x(V, { message: D });
22338
+ var has_1 = has;
22339
+ const has$1 = /* @__PURE__ */ getDefaultExportFromCjs(has_1);
22340
+ const useForm = ({
22341
+ refineCoreProps,
22342
+ warnWhenUnsavedChanges: warnWhenUnsavedChangesProp,
22343
+ disableServerSideValidation: disableServerSideValidationProp = false,
22344
+ ...rest
22345
+ } = {}) => {
22346
+ const { options } = useRefineContext();
22347
+ const disableServerSideValidation = (options == null ? void 0 : options.disableServerSideValidation) || disableServerSideValidationProp;
22348
+ const translate = useTranslate();
22349
+ const { warnWhenUnsavedChanges: warnWhenUnsavedChangesRefine, setWarnWhen } = useWarnAboutChange();
22350
+ const warnWhenUnsavedChanges = warnWhenUnsavedChangesProp ?? warnWhenUnsavedChangesRefine;
22351
+ const useHookFormResult = useForm$1({
22352
+ ...rest
22353
+ });
22354
+ const {
22355
+ watch,
22356
+ setValue,
22357
+ getValues,
22358
+ handleSubmit: handleSubmitReactHookForm,
22359
+ setError,
22360
+ formState
22361
+ } = useHookFormResult;
22362
+ const useFormCoreResult = useForm$2({
22363
+ ...refineCoreProps,
22364
+ onMutationError: (error, _variables, _context) => {
22365
+ var _a, _b;
22366
+ if (disableServerSideValidation) {
22367
+ (_a = refineCoreProps == null ? void 0 : refineCoreProps.onMutationError) == null ? void 0 : _a.call(refineCoreProps, error, _variables, _context);
22368
+ return;
22369
+ }
22370
+ const errors = error == null ? void 0 : error.errors;
22371
+ for (const key2 in errors) {
22372
+ const isKeyInVariables = Object.keys(flattenObjectKeys(_variables)).includes(key2);
22373
+ if (!isKeyInVariables) {
22374
+ continue;
22375
+ }
22376
+ const fieldError = errors[key2];
22377
+ let newError = "";
22378
+ if (Array.isArray(fieldError)) {
22379
+ newError = fieldError.join(" ");
22380
+ }
22381
+ if (typeof fieldError === "string") {
22382
+ newError = fieldError;
22383
+ }
22384
+ if (typeof fieldError === "boolean" && fieldError) {
22385
+ newError = "Field is not valid.";
22386
+ }
22387
+ if (typeof fieldError === "object" && "key" in fieldError) {
22388
+ const translatedMessage = translate(fieldError.key, fieldError.message);
22389
+ newError = translatedMessage;
22390
+ }
22391
+ setError(key2, {
22392
+ message: newError
22393
+ });
22394
+ }
22395
+ (_b = refineCoreProps == null ? void 0 : refineCoreProps.onMutationError) == null ? void 0 : _b.call(refineCoreProps, error, _variables, _context);
22229
22396
  }
22230
- (H = t2 == null ? void 0 : t2.onMutationError) == null || H.call(t2, r2, s2, e2);
22231
- } }), { queryResult: l, onFinish: o, formLoading: B, onFinishAutoSave: j } = E;
22397
+ });
22398
+ const { queryResult, onFinish, formLoading, onFinishAutoSave } = useFormCoreResult;
22232
22399
  useEffect(() => {
22233
- var e2;
22234
- let r2 = (e2 = l == null ? void 0 : l.data) == null ? void 0 : e2.data;
22235
- if (!r2)
22400
+ var _a;
22401
+ if (formState.isDirty)
22236
22402
  return;
22237
- Object.keys(flattenObjectKeys(i2())).forEach((y) => {
22238
- let v = has(r2, y), H = get(r2, y);
22239
- v && R(y, H);
22240
- });
22241
- }, [l == null ? void 0 : l.data, R, i2]), useEffect(() => {
22242
- let r2 = c2((s2, { type: e2 }) => {
22243
- e2 === "change" && W(s2);
22403
+ const data2 = (_a = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a.data;
22404
+ if (!data2)
22405
+ return;
22406
+ const registeredFields = Object.keys(flattenObjectKeys(getValues()));
22407
+ registeredFields.forEach((path2) => {
22408
+ const hasValue = has$1(data2, path2);
22409
+ const dataValue = get$1(data2, path2);
22410
+ if (hasValue) {
22411
+ setValue(path2, dataValue);
22412
+ }
22244
22413
  });
22245
- return () => r2.unsubscribe();
22246
- }, [c2]);
22247
- let W = m((r2) => {
22248
- var s2;
22249
- if (f && b(true), t2 != null && t2.autoSave) {
22250
- b(false);
22251
- let e2 = (s2 = t2.autoSave) == null ? void 0 : s2.onFinish;
22252
- return j(e2 ? e2(r2) : r2);
22253
- }
22254
- return r2;
22255
- }, "onValuesChange"), g = m((r2, s2) => async (e2) => (b(false), T(r2, s2)(e2)), "handleSubmit");
22256
- return { ...d, handleSubmit: g, refineCore: E, saveButtonProps: { disabled: B, onClick: (r2) => {
22257
- g(o, () => false)(r2);
22258
- } } };
22259
- }, "useForm");
22260
- m(({ stepsProps: t2, ...a2 } = {}) => {
22261
- let { defaultStep: p = 0, isBackValidate: Q = false } = t2 ?? {}, [F, S] = useState(p), U = C({ ...a2 }), { trigger: h, getValues: b, setValue: f, formState: { dirtyFields: d }, refineCore: { queryResult: c2 } } = U;
22414
+ }, [queryResult == null ? void 0 : queryResult.data, setValue, getValues, formState.isDirty]);
22262
22415
  useEffect(() => {
22263
- var E;
22264
- let T = (E = c2 == null ? void 0 : c2.data) == null ? void 0 : E.data;
22265
- if (!T)
22266
- return;
22267
- let x = Object.keys(b());
22268
- Object.entries(T).forEach(([l, o]) => {
22269
- let B = l;
22270
- x.includes(B) && (d[B] || f(B, o));
22416
+ const subscription = watch((values, { type: type2 }) => {
22417
+ if (type2 === "change") {
22418
+ onValuesChange(values);
22419
+ }
22271
22420
  });
22272
- }, [c2 == null ? void 0 : c2.data, F, f, b]);
22273
- let R = m((T) => {
22274
- let x = T;
22275
- T < 0 && (x = 0), S(x);
22276
- }, "go");
22277
- return { ...U, steps: { currentStep: F, gotoStep: m(async (T) => {
22278
- if (T === F)
22279
- return;
22280
- if (T < F && !Q) {
22281
- R(T);
22282
- return;
22421
+ return () => subscription.unsubscribe();
22422
+ }, [watch]);
22423
+ const onValuesChange = (changeValues) => {
22424
+ var _a;
22425
+ if (warnWhenUnsavedChanges) {
22426
+ setWarnWhen(true);
22283
22427
  }
22284
- await h() && R(T);
22285
- }, "gotoStep") } };
22286
- }, "useStepsForm");
22287
- m(({ modalProps: t2, refineCoreProps: a2, syncWithLocation: p, ...Q } = {}) => {
22288
- var A, N;
22289
- let F = useInvalidate(), [S, U] = React__default.useState(false), h = useTranslate(), { resource: b, action: f } = a2 ?? {}, { resource: d, action: c2, identifier: R } = useResource(b), i2 = useParsed(), T = useGo(), x = useUserFriendlyName(), E = f ?? c2 ?? "", l = !(typeof p == "object" && (p == null ? void 0 : p.syncId) === false), o = typeof p == "object" && "key" in p ? p.key : d && E && p ? `modal-${R}-${E}` : void 0, { defaultVisible: B = false, autoSubmitClose: j = true, autoResetForm: W = true } = t2 ?? {}, g = C({ refineCoreProps: { ...a2, meta: { ...o ? { [o]: void 0 } : {}, ...a2 == null ? void 0 : a2.meta } }, ...Q }), { reset: $, refineCore: { onFinish: r2, id: s2, setId: e2, autoSaveProps: y }, saveButtonProps: v, handleSubmit: H } = g, { visible: V, show: k, close: u } = useModal({ defaultVisible: B });
22290
- React__default.useEffect(() => {
22291
- var n2, w, K, I;
22292
- if (S === false && o) {
22293
- let M = (w = (n2 = i2 == null ? void 0 : i2.params) == null ? void 0 : n2[o]) == null ? void 0 : w.open;
22294
- if (typeof M == "boolean" ? M && k() : typeof M == "string" && M === "true" && k(), l) {
22295
- let G = (I = (K = i2 == null ? void 0 : i2.params) == null ? void 0 : K[o]) == null ? void 0 : I.id;
22296
- G && (e2 == null || e2(G));
22297
- }
22298
- U(true);
22299
- }
22300
- }, [o, i2, l, e2]), React__default.useEffect(() => {
22301
- var n2;
22302
- S === true && (V && o ? T({ query: { [o]: { ...(n2 = i2 == null ? void 0 : i2.params) == null ? void 0 : n2[o], open: true, ...l && s2 && { id: s2 } } }, options: { keepQuery: true }, type: "replace" }) : o && !V && T({ query: { [o]: void 0 }, options: { keepQuery: true }, type: "replace" }));
22303
- }, [s2, V, k, o, l]);
22304
- let D = m(async (n2) => {
22305
- await r2(n2), j && u(), W && $();
22306
- }, "submit"), { warnWhen: O, setWarnWhen: X } = useWarnAboutChange(), Z = useCallback(() => {
22307
- var n2;
22308
- if (y.status === "success" && ((n2 = a2 == null ? void 0 : a2.autoSave) != null && n2.invalidateOnClose) && F({ id: s2, invalidates: a2.invalidates || ["list", "many", "detail"], dataProviderName: a2.dataProviderName, resource: R }), O)
22309
- if (window.confirm(h("warnWhenUnsavedChanges", "Are you sure you want to leave? You have unsaved changes.")))
22310
- X(false);
22311
- else
22312
- return;
22313
- e2 == null || e2(void 0), u();
22314
- }, [O, y.status]), _ = useCallback((n2) => {
22315
- typeof n2 < "u" && (e2 == null || e2(n2)), (!(E === "edit" || E === "clone") || (typeof n2 < "u" || typeof s2 < "u")) && k();
22316
- }, [s2]), q = h(`${R}.titles.${f}`, void 0, `${x(`${f} ${((A = d == null ? void 0 : d.meta) == null ? void 0 : A.label) ?? ((N = d == null ? void 0 : d.options) == null ? void 0 : N.label) ?? (d == null ? void 0 : d.label) ?? R}`, "singular")}`);
22317
- return { modal: { submit: D, close: Z, show: _, visible: V, title: q }, ...g, saveButtonProps: { ...v, onClick: (n2) => H(D)(n2) } };
22318
- }, "useModalForm");
22428
+ if (refineCoreProps == null ? void 0 : refineCoreProps.autoSave) {
22429
+ setWarnWhen(false);
22430
+ const onFinishProps = (_a = refineCoreProps.autoSave) == null ? void 0 : _a.onFinish;
22431
+ if (onFinishProps) {
22432
+ return onFinishAutoSave(onFinishProps(changeValues));
22433
+ }
22434
+ return onFinishAutoSave(changeValues);
22435
+ }
22436
+ return changeValues;
22437
+ };
22438
+ const handleSubmit = (onValid, onInvalid) => async (e2) => {
22439
+ setWarnWhen(false);
22440
+ return handleSubmitReactHookForm(onValid, onInvalid)(e2);
22441
+ };
22442
+ const saveButtonProps = {
22443
+ disabled: formLoading,
22444
+ onClick: (e2) => {
22445
+ handleSubmit(onFinish, () => false)(e2);
22446
+ }
22447
+ };
22448
+ return {
22449
+ ...useHookFormResult,
22450
+ handleSubmit,
22451
+ refineCore: useFormCoreResult,
22452
+ saveButtonProps
22453
+ };
22454
+ };
22319
22455
  const useRefineForm = (props) => {
22320
22456
  var _a;
22321
22457
  const { config, id, refineProps } = props;
22322
22458
  const [responseErrorMsg, setResponseErrorMsg] = useState("");
22323
22459
  const i18n2 = useTranslation();
22324
- const result = C({
22325
- mode: "onChange",
22460
+ const result = useForm({
22461
+ mode: "onSubmit",
22462
+ reValidateMode: "onChange",
22326
22463
  refineCoreProps: {
22327
22464
  errorNotification: false,
22328
22465
  successNotification: () => {
@@ -22367,7 +22504,7 @@ const Separator = () => {
22367
22504
  });
22368
22505
  };
22369
22506
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
22370
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-b007e47c.js"));
22507
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-b2da37e8.js"));
22371
22508
  const YamlEditorComponent = forwardRef(
22372
22509
  function YamlEditorComponent2(props, ref) {
22373
22510
  const {
@@ -22665,7 +22802,7 @@ function generateYamlBySchema(defaultValue, schema) {
22665
22802
  const typeObject = generateSchemaTypeValue(schema);
22666
22803
  function makeAnnotations(obj, key2) {
22667
22804
  const result = {};
22668
- if (isObject$2(obj[key2])) {
22805
+ if (isObject$4(obj[key2])) {
22669
22806
  result[`#${key2}`] = {};
22670
22807
  Object.keys(obj[key2]).forEach((prop) => {
22671
22808
  result[`#${key2}`] = {
@@ -22684,7 +22821,7 @@ function generateYamlBySchema(defaultValue, schema) {
22684
22821
  }
22685
22822
  for (const key2 in obj2) {
22686
22823
  if (key2 in obj1) {
22687
- if (isObject$2(obj2[key2]) && isObject$2(obj1[key2])) {
22824
+ if (isObject$4(obj2[key2]) && isObject$4(obj1[key2])) {
22688
22825
  merged2[key2] = merge2(
22689
22826
  obj1[key2],
22690
22827
  obj2[key2]
@@ -22757,12 +22894,12 @@ const useYamlForm = ({
22757
22894
  skip: editorOptions == null ? void 0 : editorOptions.isSkipSchema
22758
22895
  });
22759
22896
  const [formAnt] = kit.form.useForm();
22760
- const formSF = useForm$2({
22897
+ const formSF = useForm$3({
22761
22898
  form: formAnt
22762
22899
  });
22763
22900
  const { form } = formSF;
22764
22901
  const { fold: fold2 } = useK8sYamlEditor();
22765
- const useFormCoreResult = useForm$1({
22902
+ const useFormCoreResult = useForm$2({
22766
22903
  onMutationSuccess: onMutationSuccessProp ? onMutationSuccessProp : void 0,
22767
22904
  onMutationError,
22768
22905
  redirect,
@@ -23511,7 +23648,7 @@ const IngressRulesComponent = ({ ingress }) => {
23511
23648
  });
23512
23649
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
23513
23650
  };
23514
- const columns_44785k = "";
23651
+ const columns_qgyagz = "";
23515
23652
  const DashedTitleStyle = "dh5j833";
23516
23653
  const ServiceClusterTooltipStyle = "s1fcgan";
23517
23654
  const NameLink = (props) => {
@@ -24091,7 +24228,7 @@ const useEagleTable = (params) => {
24091
24228
  },
24092
24229
  [setCurrentPage]
24093
24230
  );
24094
- const currentSize = (tableProps == null ? void 0 : tableProps.currentSize) || 5;
24231
+ const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
24095
24232
  const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice((currentPage - 1) * currentSize, currentPage * currentSize);
24096
24233
  const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
24097
24234
  const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
@@ -24104,7 +24241,7 @@ const useEagleTable = (params) => {
24104
24241
  error: false,
24105
24242
  rowKey: "id",
24106
24243
  currentPage,
24107
- currentSize,
24244
+ defaultSize: currentSize,
24108
24245
  onPageChange,
24109
24246
  onSelect: (keys) => {
24110
24247
  setSelectedKeys(keys);