@dovetail-v2/refine 0.2.4-alpha.0 → 0.2.5

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 (260) hide show
  1. package/dist/{MonacoYamlDiffEditor-7de94ad2.js → MonacoYamlDiffEditor-e0b05820.js} +24 -1
  2. package/dist/{MonacoYamlEditor-bc70e03e.js → MonacoYamlEditor-96d9a48c.js} +9 -2
  3. package/dist/{index-44cc930a.js → index-d8439125.js} +1919 -273
  4. package/dist/refine.js +257 -247
  5. package/dist/refine.umd.cjs +20793 -0
  6. package/dist/style.css +838 -883
  7. package/{dist → lib}/components/PodShellModal/PodShell.d.ts +5 -3
  8. package/lib/components/PodShellModal/index.d.ts +10 -0
  9. package/{dist → lib}/components/Shell/index.d.ts +5 -1
  10. package/{dist → lib}/components/TableToolbar/index.d.ts +1 -1
  11. package/{dist → lib}/components/index.d.ts +1 -0
  12. package/{dist → lib}/types/resource.d.ts +1 -1
  13. package/{dist → lib}/utils/index.d.ts +1 -0
  14. package/package.json +4 -4
  15. package/dist/MonacoYamlDiffEditor-7a07db88.cjs +0 -59
  16. package/dist/MonacoYamlEditor-bc33cd45.cjs +0 -206
  17. package/dist/PodShell-43c7028e.cjs +0 -216
  18. package/dist/PodShell-ba204cde.js +0 -216
  19. package/dist/common-1eb43414.cjs +0 -982
  20. package/dist/common-feae5742.js +0 -983
  21. package/dist/components/PodShellModal/index.d.ts +0 -10
  22. package/dist/components/Shell/Connecting.d.ts +0 -2
  23. package/dist/components/Shell/common.d.ts +0 -5
  24. package/dist/index-31874f77.cjs +0 -496
  25. package/dist/index-40deb620.js +0 -497
  26. package/dist/index-ee8ac828.cjs +0 -18959
  27. package/dist/refine.cjs +0 -279
  28. package/dist/shell.cjs +0 -17
  29. package/dist/shell.d.ts +0 -2
  30. package/dist/shell.js +0 -17
  31. /package/{dist → lib}/App.d.ts +0 -0
  32. /package/{dist → lib}/Dovetail.d.ts +0 -0
  33. /package/{dist → lib}/components/Breadcrumb/index.d.ts +0 -0
  34. /package/{dist → lib}/components/ConditionsTable/ConditionsTable.d.ts +0 -0
  35. /package/{dist → lib}/components/ConditionsTable/index.d.ts +0 -0
  36. /package/{dist → lib}/components/CreateButton/index.d.ts +0 -0
  37. /package/{dist → lib}/components/CronjobJobsTable/index.d.ts +0 -0
  38. /package/{dist → lib}/components/DeleteButton/index.d.ts +0 -0
  39. /package/{dist → lib}/components/DeleteManyButton/index.d.ts +0 -0
  40. /package/{dist → lib}/components/DrawerShow/DrawerShow.d.ts +0 -0
  41. /package/{dist → lib}/components/DrawerShow/index.d.ts +0 -0
  42. /package/{dist → lib}/components/DropdownMenuItems/EditAnnotationDropdownMenuItem.d.ts +0 -0
  43. /package/{dist → lib}/components/DropdownMenuItems/EditLabelDropdownMenuItem.d.ts +0 -0
  44. /package/{dist → lib}/components/DropdownMenuItems/EditNodeTaintDropdownMenuItem.d.ts +0 -0
  45. /package/{dist → lib}/components/DropdownMenuItems/index.d.ts +0 -0
  46. /package/{dist → lib}/components/Dropdowns/CronJobDropdown/index.d.ts +0 -0
  47. /package/{dist → lib}/components/Dropdowns/K8sDropdown/index.d.ts +0 -0
  48. /package/{dist → lib}/components/Dropdowns/PodDropdown/index.d.ts +0 -0
  49. /package/{dist → lib}/components/Dropdowns/ReplicasDropdown/index.d.ts +0 -0
  50. /package/{dist → lib}/components/Dropdowns/WorkloadDropdown/index.d.ts +0 -0
  51. /package/{dist → lib}/components/DurationTime/index.d.ts +0 -0
  52. /package/{dist → lib}/components/EditButton/index.d.ts +0 -0
  53. /package/{dist → lib}/components/EditField/index.d.ts +0 -0
  54. /package/{dist → lib}/components/EditMetadataForm/EditAnnotationForm.d.ts +0 -0
  55. /package/{dist → lib}/components/EditMetadataForm/EditLabelForm.d.ts +0 -0
  56. /package/{dist → lib}/components/EditMetadataForm/EditNodeTaintForm.d.ts +0 -0
  57. /package/{dist → lib}/components/EditMetadataForm/KeyValueTableForm.d.ts +0 -0
  58. /package/{dist → lib}/components/EditMetadataForm/LabelFormatPopover.d.ts +0 -0
  59. /package/{dist → lib}/components/EditMetadataForm/index.d.ts +0 -0
  60. /package/{dist → lib}/components/ErrorContent/index.d.ts +0 -0
  61. /package/{dist → lib}/components/EventsTable/EventsTable.d.ts +0 -0
  62. /package/{dist → lib}/components/EventsTable/index.d.ts +0 -0
  63. /package/{dist → lib}/components/Form/FormModal.d.ts +0 -0
  64. /package/{dist → lib}/components/Form/FormModeSegmentControl.d.ts +0 -0
  65. /package/{dist → lib}/components/Form/RefineFormContainer.d.ts +0 -0
  66. /package/{dist → lib}/components/Form/RefineFormContent.d.ts +0 -0
  67. /package/{dist → lib}/components/Form/RefineFormPage.d.ts +0 -0
  68. /package/{dist → lib}/components/Form/YamlForm.d.ts +0 -0
  69. /package/{dist → lib}/components/Form/YamlFormContainer.d.ts +0 -0
  70. /package/{dist → lib}/components/Form/index.d.ts +0 -0
  71. /package/{dist → lib}/components/Form/type.d.ts +0 -0
  72. /package/{dist → lib}/components/Form/useFieldsConfig.d.ts +0 -0
  73. /package/{dist → lib}/components/Form/useReactHookForm.d.ts +0 -0
  74. /package/{dist → lib}/components/Form/useRefineForm.d.ts +0 -0
  75. /package/{dist → lib}/components/Form/useYamlForm.d.ts +0 -0
  76. /package/{dist → lib}/components/FormErrorAlert/index.d.ts +0 -0
  77. /package/{dist → lib}/components/FormLayout/index.d.ts +0 -0
  78. /package/{dist → lib}/components/FormWidgets/KeyValueListWidget.d.ts +0 -0
  79. /package/{dist → lib}/components/FormWidgets/MetadataForm.d.ts +0 -0
  80. /package/{dist → lib}/components/FormWidgets/NameInputWidget.d.ts +0 -0
  81. /package/{dist → lib}/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -0
  82. /package/{dist → lib}/components/FormWidgets/index.d.ts +0 -0
  83. /package/{dist → lib}/components/FormWidgets/widget.d.ts +0 -0
  84. /package/{dist → lib}/components/ImageNames/index.d.ts +0 -0
  85. /package/{dist → lib}/components/IngressRulesComponent/index.d.ts +0 -0
  86. /package/{dist → lib}/components/IngressRulesTable/IngressRulesTable.d.ts +0 -0
  87. /package/{dist → lib}/components/IngressRulesTable/index.d.ts +0 -0
  88. /package/{dist → lib}/components/InternalBaseTable/TableWidgets.d.ts +0 -0
  89. /package/{dist → lib}/components/InternalBaseTable/index.d.ts +0 -0
  90. /package/{dist → lib}/components/KeyValue/KeyValue.d.ts +0 -0
  91. /package/{dist → lib}/components/KeyValue/KeyValueAnnotation.d.ts +0 -0
  92. /package/{dist → lib}/components/KeyValue/KeyValueSecret.d.ts +0 -0
  93. /package/{dist → lib}/components/KeyValue/index.d.ts +0 -0
  94. /package/{dist → lib}/components/Layout/index.d.ts +0 -0
  95. /package/{dist → lib}/components/LinkFallback/index.d.ts +0 -0
  96. /package/{dist → lib}/components/ListPage/index.d.ts +0 -0
  97. /package/{dist → lib}/components/Menu/index.d.ts +0 -0
  98. /package/{dist → lib}/components/NamespacesFilter/index.d.ts +0 -0
  99. /package/{dist → lib}/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -0
  100. /package/{dist → lib}/components/NetworkPolicyRulesViewer/index.d.ts +0 -0
  101. /package/{dist → lib}/components/NodeTaintsTable/NodeTaintsTable.d.ts +0 -0
  102. /package/{dist → lib}/components/NodeTaintsTable/index.d.ts +0 -0
  103. /package/{dist → lib}/components/PVCDistributeStorage/index.d.ts +0 -0
  104. /package/{dist → lib}/components/PageShow/PageShow.d.ts +0 -0
  105. /package/{dist → lib}/components/PageShow/index.d.ts +0 -0
  106. /package/{dist → lib}/components/PodContainersTable/PodContainersTable.d.ts +0 -0
  107. /package/{dist → lib}/components/PodContainersTable/index.d.ts +0 -0
  108. /package/{dist → lib}/components/PodLog/index.d.ts +0 -0
  109. /package/{dist → lib}/components/PodSelectorTable/index.d.ts +0 -0
  110. /package/{dist → lib}/components/PortsTable/index.d.ts +0 -0
  111. /package/{dist → lib}/components/ReferenceLink/index.d.ts +0 -0
  112. /package/{dist → lib}/components/ResourceCRUD/ResourceCRUD.d.ts +0 -0
  113. /package/{dist → lib}/components/ResourceCRUD/create/index.d.ts +0 -0
  114. /package/{dist → lib}/components/ResourceCRUD/index.d.ts +0 -0
  115. /package/{dist → lib}/components/ResourceCRUD/list/index.d.ts +0 -0
  116. /package/{dist → lib}/components/ResourceCRUD/show/index.d.ts +0 -0
  117. /package/{dist → lib}/components/ResourceFiledDisplays.d.ts +0 -0
  118. /package/{dist → lib}/components/ResourceLink/index.d.ts +0 -0
  119. /package/{dist → lib}/components/ResourceSelect/index.d.ts +0 -0
  120. /package/{dist → lib}/components/ResourceTable/index.d.ts +0 -0
  121. /package/{dist → lib}/components/ResourceUsageBar/index.d.ts +0 -0
  122. /package/{dist → lib}/components/Separator/index.d.ts +0 -0
  123. /package/{dist → lib}/components/ServiceComponents/index.d.ts +0 -0
  124. /package/{dist → lib}/components/Shell/ShellToolbar.d.ts +0 -0
  125. /package/{dist → lib}/components/ShowContent/ShowContent.d.ts +0 -0
  126. /package/{dist → lib}/components/ShowContent/fields.d.ts +0 -0
  127. /package/{dist → lib}/components/ShowContent/groups.d.ts +0 -0
  128. /package/{dist → lib}/components/ShowContent/index.d.ts +0 -0
  129. /package/{dist → lib}/components/ShowContent/tabs.d.ts +0 -0
  130. /package/{dist → lib}/components/StateTag/StateTag.d.ts +0 -0
  131. /package/{dist → lib}/components/StateTag/index.d.ts +0 -0
  132. /package/{dist → lib}/components/Table/index.d.ts +0 -0
  133. /package/{dist → lib}/components/Tabs/index.d.ts +0 -0
  134. /package/{dist → lib}/components/Tags/index.d.ts +0 -0
  135. /package/{dist → lib}/components/TextTags/index.d.ts +0 -0
  136. /package/{dist → lib}/components/Time/index.d.ts +0 -0
  137. /package/{dist → lib}/components/ValueDisplay/index.d.ts +0 -0
  138. /package/{dist → lib}/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -0
  139. /package/{dist → lib}/components/WorkloadPodsTable/index.d.ts +0 -0
  140. /package/{dist → lib}/components/WorkloadReplicas/index.d.ts +0 -0
  141. /package/{dist → lib}/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -0
  142. /package/{dist → lib}/components/YamlEditor/MonacoYamlEditor.d.ts +0 -0
  143. /package/{dist → lib}/components/YamlEditor/YamlEditorComponent.d.ts +0 -0
  144. /package/{dist → lib}/components/YamlEditor/index.d.ts +0 -0
  145. /package/{dist → lib}/components/YamlEditor/style.d.ts +0 -0
  146. /package/{dist → lib}/components/YamlEditor/yaml.worker.d.ts +0 -0
  147. /package/{dist → lib}/constants/auth.d.ts +0 -0
  148. /package/{dist → lib}/constants/index.d.ts +0 -0
  149. /package/{dist → lib}/constants/k8s.d.ts +0 -0
  150. /package/{dist → lib}/constants/state.d.ts +0 -0
  151. /package/{dist → lib}/contexts/component.d.ts +0 -0
  152. /package/{dist → lib}/contexts/configs.d.ts +0 -0
  153. /package/{dist → lib}/contexts/constants.d.ts +0 -0
  154. /package/{dist → lib}/contexts/global-store.d.ts +0 -0
  155. /package/{dist → lib}/contexts/index.d.ts +0 -0
  156. /package/{dist → lib}/hooks/index.d.ts +0 -0
  157. /package/{dist → lib}/hooks/useDeleteModal/index.d.ts +0 -0
  158. /package/{dist → lib}/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -0
  159. /package/{dist → lib}/hooks/useDeleteModal/useDeleteModal.d.ts +0 -0
  160. /package/{dist → lib}/hooks/useDeleteModal/useDeleteModalOnly.d.ts +0 -0
  161. /package/{dist → lib}/hooks/useDeleteModal/useFailedModal.d.ts +0 -0
  162. /package/{dist → lib}/hooks/useDownloadYAML.d.ts +0 -0
  163. /package/{dist → lib}/hooks/useEagleTable/columns.d.ts +0 -0
  164. /package/{dist → lib}/hooks/useEagleTable/index.d.ts +0 -0
  165. /package/{dist → lib}/hooks/useEagleTable/useEagleTable.d.ts +0 -0
  166. /package/{dist → lib}/hooks/useEdit.d.ts +0 -0
  167. /package/{dist → lib}/hooks/useGlobalStore.d.ts +0 -0
  168. /package/{dist → lib}/hooks/useK8sYamlEditor.d.ts +0 -0
  169. /package/{dist → lib}/hooks/useNamespaceRefineFilter.d.ts +0 -0
  170. /package/{dist → lib}/hooks/useOpenForm.d.ts +0 -0
  171. /package/{dist → lib}/hooks/usePathMap.d.ts +0 -0
  172. /package/{dist → lib}/hooks/useSchema.d.ts +0 -0
  173. /package/{dist → lib}/hooks/useSubmitForm.d.ts +0 -0
  174. /package/{dist → lib}/hooks/useTableData.d.ts +0 -0
  175. /package/{dist → lib}/i18n.d.ts +0 -0
  176. /package/{dist → lib}/index.d.ts +0 -0
  177. /package/{dist → lib}/locales/en-US/index.d.ts +0 -0
  178. /package/{dist → lib}/locales/index.d.ts +0 -0
  179. /package/{dist → lib}/locales/zh-CN/index.d.ts +0 -0
  180. /package/{dist → lib}/main.d.ts +0 -0
  181. /package/{dist → lib}/models/cronjob-model.d.ts +0 -0
  182. /package/{dist → lib}/models/daemonset-model.d.ts +0 -0
  183. /package/{dist → lib}/models/deployment-model.d.ts +0 -0
  184. /package/{dist → lib}/models/event-model.d.ts +0 -0
  185. /package/{dist → lib}/models/index.d.ts +0 -0
  186. /package/{dist → lib}/models/ingress-model.d.ts +0 -0
  187. /package/{dist → lib}/models/job-model.d.ts +0 -0
  188. /package/{dist → lib}/models/network-policy-model.d.ts +0 -0
  189. /package/{dist → lib}/models/node-model.d.ts +0 -0
  190. /package/{dist → lib}/models/persistent-volume-claim.d.ts +0 -0
  191. /package/{dist → lib}/models/persistent-volume.d.ts +0 -0
  192. /package/{dist → lib}/models/pod-metrics-model.d.ts +0 -0
  193. /package/{dist → lib}/models/pod-model.d.ts +0 -0
  194. /package/{dist → lib}/models/resource-model.d.ts +0 -0
  195. /package/{dist → lib}/models/service-model.d.ts +0 -0
  196. /package/{dist → lib}/models/statefulset-model.d.ts +0 -0
  197. /package/{dist → lib}/models/storage-class.d.ts +0 -0
  198. /package/{dist → lib}/models/types/index.d.ts +0 -0
  199. /package/{dist → lib}/models/types/metric.d.ts +0 -0
  200. /package/{dist → lib}/models/workload-base-model.d.ts +0 -0
  201. /package/{dist → lib}/models/workload-model.d.ts +0 -0
  202. /package/{dist → lib}/pages/configmaps/index.d.ts +0 -0
  203. /package/{dist → lib}/pages/cronjobs/create/index.d.ts +0 -0
  204. /package/{dist → lib}/pages/cronjobs/index.d.ts +0 -0
  205. /package/{dist → lib}/pages/cronjobs/list/index.d.ts +0 -0
  206. /package/{dist → lib}/pages/cronjobs/show/index.d.ts +0 -0
  207. /package/{dist → lib}/pages/daemonsets/create/index.d.ts +0 -0
  208. /package/{dist → lib}/pages/daemonsets/index.d.ts +0 -0
  209. /package/{dist → lib}/pages/daemonsets/list/index.d.ts +0 -0
  210. /package/{dist → lib}/pages/daemonsets/show/index.d.ts +0 -0
  211. /package/{dist → lib}/pages/deployments/index.d.ts +0 -0
  212. /package/{dist → lib}/pages/deployments/list/index.d.ts +0 -0
  213. /package/{dist → lib}/pages/deployments/show/index.d.ts +0 -0
  214. /package/{dist → lib}/pages/ingresses/index.d.ts +0 -0
  215. /package/{dist → lib}/pages/jobs/index.d.ts +0 -0
  216. /package/{dist → lib}/pages/networkPolicies/index.d.ts +0 -0
  217. /package/{dist → lib}/pages/nodes/index.d.ts +0 -0
  218. /package/{dist → lib}/pages/nodes/list/index.d.ts +0 -0
  219. /package/{dist → lib}/pages/nodes/show/index.d.ts +0 -0
  220. /package/{dist → lib}/pages/persistentvolumeclaims/index.d.ts +0 -0
  221. /package/{dist → lib}/pages/persistentvolumes/index.d.ts +0 -0
  222. /package/{dist → lib}/pages/pods/create/index.d.ts +0 -0
  223. /package/{dist → lib}/pages/pods/index.d.ts +0 -0
  224. /package/{dist → lib}/pages/pods/list/index.d.ts +0 -0
  225. /package/{dist → lib}/pages/pods/show/index.d.ts +0 -0
  226. /package/{dist → lib}/pages/secrets/index.d.ts +0 -0
  227. /package/{dist → lib}/pages/services/index.d.ts +0 -0
  228. /package/{dist → lib}/pages/statefulsets/index.d.ts +0 -0
  229. /package/{dist → lib}/pages/storageclasses/form/index.d.ts +0 -0
  230. /package/{dist → lib}/pages/storageclasses/index.d.ts +0 -0
  231. /package/{dist → lib}/plugins/index.d.ts +0 -0
  232. /package/{dist → lib}/plugins/model-plugin.d.ts +0 -0
  233. /package/{dist → lib}/plugins/relation-plugin.d.ts +0 -0
  234. /package/{dist → lib}/plugins/type.d.ts +0 -0
  235. /package/{dist → lib}/providers/index.d.ts +0 -0
  236. /package/{dist → lib}/providers/router-provider/index.d.ts +0 -0
  237. /package/{dist → lib}/styles/button.d.ts +0 -0
  238. /package/{dist → lib}/styles/modal.d.ts +0 -0
  239. /package/{dist → lib}/styles/tag.d.ts +0 -0
  240. /package/{dist → lib}/types/globalStore.d.ts +0 -0
  241. /package/{dist → lib}/types/index.d.ts +0 -0
  242. /package/{dist → lib}/utils/addId.d.ts +0 -0
  243. /package/{dist → lib}/utils/download.d.ts +0 -0
  244. /package/{dist → lib}/utils/error.d.ts +0 -0
  245. /package/{dist → lib}/utils/form.d.ts +0 -0
  246. /package/{dist → lib}/utils/k8s.d.ts +0 -0
  247. /package/{dist → lib}/utils/labels.d.ts +0 -0
  248. /package/{dist → lib}/utils/match-selector.d.ts +0 -0
  249. /package/{dist → lib}/utils/object.d.ts +0 -0
  250. /package/{dist → lib}/utils/openapi.d.ts +0 -0
  251. /package/{dist → lib}/utils/schema-store.d.ts +0 -0
  252. /package/{dist → lib}/utils/schema.d.ts +0 -0
  253. /package/{dist → lib}/utils/selector.d.ts +0 -0
  254. /package/{dist → lib}/utils/shell.d.ts +0 -0
  255. /package/{dist → lib}/utils/storage.d.ts +0 -0
  256. /package/{dist → lib}/utils/string.d.ts +0 -0
  257. /package/{dist → lib}/utils/time.d.ts +0 -0
  258. /package/{dist → lib}/utils/unit.d.ts +0 -0
  259. /package/{dist → lib}/utils/validation.d.ts +0 -0
  260. /package/{dist → lib}/utils/yaml.d.ts +0 -0
@@ -6,19 +6,26 @@ var __publicField = (obj, key2, value2) => {
6
6
  };
7
7
  import dayjs from "dayjs";
8
8
  import i18n from "i18next";
9
- import { w as warnOnce, g as getDefaults, a as warn, b as getI18n, s as setDefaults, d as setI18n, I as I18nContext, j as jsxRuntimeExports, u as useTranslation, c as cx_default, S as SocketStatus } from "./common-feae5742.js";
9
+ import * as React from "react";
10
+ import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useCallback, useMemo, useImperativeHandle, lazy, Suspense, forwardRef } from "react";
10
11
  import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
11
12
  import { parse, stringify } from "qs";
12
- import * as React from "react";
13
- import React__default, { createElement, isValidElement, cloneElement, Children, useContext, useCallback, createContext, useState, useEffect, useMemo, useRef, useImperativeHandle, lazy, Suspense, forwardRef } from "react";
14
13
  import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
15
- import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Typo, Loading, Table as Table$2, Pagination, Alert, Modal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, useMessage, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
16
- import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
14
+ import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Typo, Loading, Table as Table$2, Pagination, Alert, Modal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, useMessage, DropdownMenu, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
15
+ import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, FontSize16GrayIcon, FontSize16BlueIcon, LogCollection16GrayIcon, LogCollection16GradientBlueIcon, TrashBinDeletePermanently16GrayIcon, TrashBinDeletePermanently16BlueIcon, Loading24GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
17
16
  import { first, get as get$2, cloneDeep, set, omit as omit$1, merge, debounce, last, setWith, clone, isObject as isObject$3, uniq, keyBy } from "lodash-es";
18
17
  import yaml$2 from "js-yaml";
19
18
  import { useLocalStorage } from "usehooks-ts";
20
19
  import { paginateData, sortData, dataProvider, liveProvider } from "k8s-api-provider";
21
20
  import { LogViewer } from "@patternfly/react-log-viewer";
21
+ import { CanvasAddon } from "@xterm/addon-canvas";
22
+ import { FitAddon } from "@xterm/addon-fit";
23
+ import { SearchAddon } from "@xterm/addon-search";
24
+ import { WebLinksAddon } from "@xterm/addon-web-links";
25
+ import { WebglAddon } from "@xterm/addon-webgl";
26
+ import { Terminal } from "@xterm/xterm";
27
+ import copyToClipboard$1 from "copy-to-clipboard";
28
+ import { Buffer as Buffer2 } from "buffer";
22
29
  import { Controller, useForm as useForm$1 } from "react-hook-form";
23
30
  import { useForm as useForm$3 } from "sunflower-antd";
24
31
  import { Drawer } from "antd";
@@ -135,6 +142,143 @@ var c = { parse: function(e2, t2) {
135
142
  return e3 + a("", t2);
136
143
  }, "");
137
144
  } };
145
+ function warn() {
146
+ if (console && console.warn) {
147
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
148
+ args[_key] = arguments[_key];
149
+ }
150
+ if (typeof args[0] === "string")
151
+ args[0] = `react-i18next:: ${args[0]}`;
152
+ console.warn(...args);
153
+ }
154
+ }
155
+ const alreadyWarned = {};
156
+ function warnOnce() {
157
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
158
+ args[_key2] = arguments[_key2];
159
+ }
160
+ if (typeof args[0] === "string" && alreadyWarned[args[0]])
161
+ return;
162
+ if (typeof args[0] === "string")
163
+ alreadyWarned[args[0]] = /* @__PURE__ */ new Date();
164
+ warn(...args);
165
+ }
166
+ const loadedClb = (i18n2, cb) => () => {
167
+ if (i18n2.isInitialized) {
168
+ cb();
169
+ } else {
170
+ const initialized = () => {
171
+ setTimeout(() => {
172
+ i18n2.off("initialized", initialized);
173
+ }, 0);
174
+ cb();
175
+ };
176
+ i18n2.on("initialized", initialized);
177
+ }
178
+ };
179
+ function loadNamespaces(i18n2, ns, cb) {
180
+ i18n2.loadNamespaces(ns, loadedClb(i18n2, cb));
181
+ }
182
+ function loadLanguages(i18n2, lng, ns, cb) {
183
+ if (typeof ns === "string")
184
+ ns = [ns];
185
+ ns.forEach((n2) => {
186
+ if (i18n2.options.ns.indexOf(n2) < 0)
187
+ i18n2.options.ns.push(n2);
188
+ });
189
+ i18n2.loadLanguages(lng, loadedClb(i18n2, cb));
190
+ }
191
+ function oldI18nextHasLoadedNamespace(ns, i18n2) {
192
+ let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
193
+ const lng = i18n2.languages[0];
194
+ const fallbackLng = i18n2.options ? i18n2.options.fallbackLng : false;
195
+ const lastLng = i18n2.languages[i18n2.languages.length - 1];
196
+ if (lng.toLowerCase() === "cimode")
197
+ return true;
198
+ const loadNotPending = (l, n2) => {
199
+ const loadState = i18n2.services.backendConnector.state[`${l}|${n2}`];
200
+ return loadState === -1 || loadState === 2;
201
+ };
202
+ if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18n2.services.backendConnector.backend && i18n2.isLanguageChangingTo && !loadNotPending(i18n2.isLanguageChangingTo, ns))
203
+ return false;
204
+ if (i18n2.hasResourceBundle(lng, ns))
205
+ return true;
206
+ if (!i18n2.services.backendConnector.backend || i18n2.options.resources && !i18n2.options.partialBundledLanguages)
207
+ return true;
208
+ if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns)))
209
+ return true;
210
+ return false;
211
+ }
212
+ function hasLoadedNamespace(ns, i18n2) {
213
+ let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
214
+ if (!i18n2.languages || !i18n2.languages.length) {
215
+ warnOnce("i18n.languages were undefined or empty", i18n2.languages);
216
+ return true;
217
+ }
218
+ const isNewerI18next = i18n2.options.ignoreJSONStructure !== void 0;
219
+ if (!isNewerI18next) {
220
+ return oldI18nextHasLoadedNamespace(ns, i18n2, options);
221
+ }
222
+ return i18n2.hasLoadedNamespace(ns, {
223
+ lng: options.lng,
224
+ precheck: (i18nInstance2, loadNotPending) => {
225
+ if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns))
226
+ return false;
227
+ }
228
+ });
229
+ }
230
+ const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
231
+ const htmlEntities = {
232
+ "&amp;": "&",
233
+ "&#38;": "&",
234
+ "&lt;": "<",
235
+ "&#60;": "<",
236
+ "&gt;": ">",
237
+ "&#62;": ">",
238
+ "&apos;": "'",
239
+ "&#39;": "'",
240
+ "&quot;": '"',
241
+ "&#34;": '"',
242
+ "&nbsp;": " ",
243
+ "&#160;": " ",
244
+ "&copy;": "©",
245
+ "&#169;": "©",
246
+ "&reg;": "®",
247
+ "&#174;": "®",
248
+ "&hellip;": "…",
249
+ "&#8230;": "…",
250
+ "&#x2F;": "/",
251
+ "&#47;": "/"
252
+ };
253
+ const unescapeHtmlEntity = (m) => htmlEntities[m];
254
+ const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
255
+ let defaultOptions = {
256
+ bindI18n: "languageChanged",
257
+ bindI18nStore: "",
258
+ transEmptyNodeValue: "",
259
+ transSupportBasicHtmlNodes: true,
260
+ transWrapTextNodes: "",
261
+ transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
262
+ useSuspense: true,
263
+ unescape
264
+ };
265
+ function setDefaults() {
266
+ let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
267
+ defaultOptions = {
268
+ ...defaultOptions,
269
+ ...options
270
+ };
271
+ }
272
+ function getDefaults() {
273
+ return defaultOptions;
274
+ }
275
+ let i18nInstance;
276
+ function setI18n(instance) {
277
+ i18nInstance = instance;
278
+ }
279
+ function getI18n() {
280
+ return i18nInstance;
281
+ }
138
282
  function hasChildren(node, checkLength) {
139
283
  if (!node)
140
284
  return false;
@@ -399,6 +543,21 @@ const initReactI18next = {
399
543
  setI18n(instance);
400
544
  }
401
545
  };
546
+ const I18nContext = createContext();
547
+ class ReportNamespaces {
548
+ constructor() {
549
+ this.usedNamespaces = {};
550
+ }
551
+ addUsedNamespaces(namespaces) {
552
+ namespaces.forEach((ns) => {
553
+ if (!this.usedNamespaces[ns])
554
+ this.usedNamespaces[ns] = true;
555
+ });
556
+ }
557
+ getUsedNamespaces() {
558
+ return Object.keys(this.usedNamespaces);
559
+ }
560
+ }
402
561
  function Trans(_ref) {
403
562
  let {
404
563
  children,
@@ -439,6 +598,126 @@ function Trans(_ref) {
439
598
  ...additionalProps
440
599
  });
441
600
  }
601
+ const usePrevious = (value2, ignore) => {
602
+ const ref = useRef();
603
+ useEffect(() => {
604
+ ref.current = ignore ? ref.current : value2;
605
+ }, [value2, ignore]);
606
+ return ref.current;
607
+ };
608
+ function useTranslation(ns) {
609
+ let props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
610
+ const {
611
+ i18n: i18nFromProps
612
+ } = props;
613
+ const {
614
+ i18n: i18nFromContext,
615
+ defaultNS: defaultNSFromContext
616
+ } = useContext(I18nContext) || {};
617
+ const i18n2 = i18nFromProps || i18nFromContext || getI18n();
618
+ if (i18n2 && !i18n2.reportNamespaces)
619
+ i18n2.reportNamespaces = new ReportNamespaces();
620
+ if (!i18n2) {
621
+ warnOnce("You will need to pass in an i18next instance by using initReactI18next");
622
+ const notReadyT = (k, optsOrDefaultValue) => {
623
+ if (typeof optsOrDefaultValue === "string")
624
+ return optsOrDefaultValue;
625
+ if (optsOrDefaultValue && typeof optsOrDefaultValue === "object" && typeof optsOrDefaultValue.defaultValue === "string")
626
+ return optsOrDefaultValue.defaultValue;
627
+ return Array.isArray(k) ? k[k.length - 1] : k;
628
+ };
629
+ const retNotReady = [notReadyT, {}, false];
630
+ retNotReady.t = notReadyT;
631
+ retNotReady.i18n = {};
632
+ retNotReady.ready = false;
633
+ return retNotReady;
634
+ }
635
+ if (i18n2.options.react && i18n2.options.react.wait !== void 0)
636
+ warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
637
+ const i18nOptions = {
638
+ ...getDefaults(),
639
+ ...i18n2.options.react,
640
+ ...props
641
+ };
642
+ const {
643
+ useSuspense,
644
+ keyPrefix
645
+ } = i18nOptions;
646
+ let namespaces = ns || defaultNSFromContext || i18n2.options && i18n2.options.defaultNS;
647
+ namespaces = typeof namespaces === "string" ? [namespaces] : namespaces || ["translation"];
648
+ if (i18n2.reportNamespaces.addUsedNamespaces)
649
+ i18n2.reportNamespaces.addUsedNamespaces(namespaces);
650
+ const ready = (i18n2.isInitialized || i18n2.initializedStoreOnce) && namespaces.every((n2) => hasLoadedNamespace(n2, i18n2, i18nOptions));
651
+ function getT() {
652
+ return i18n2.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
653
+ }
654
+ const [t2, setT] = useState(getT);
655
+ let joinedNS = namespaces.join();
656
+ if (props.lng)
657
+ joinedNS = `${props.lng}${joinedNS}`;
658
+ const previousJoinedNS = usePrevious(joinedNS);
659
+ const isMounted = useRef(true);
660
+ useEffect(() => {
661
+ const {
662
+ bindI18n,
663
+ bindI18nStore
664
+ } = i18nOptions;
665
+ isMounted.current = true;
666
+ if (!ready && !useSuspense) {
667
+ if (props.lng) {
668
+ loadLanguages(i18n2, props.lng, namespaces, () => {
669
+ if (isMounted.current)
670
+ setT(getT);
671
+ });
672
+ } else {
673
+ loadNamespaces(i18n2, namespaces, () => {
674
+ if (isMounted.current)
675
+ setT(getT);
676
+ });
677
+ }
678
+ }
679
+ if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
680
+ setT(getT);
681
+ }
682
+ function boundReset() {
683
+ if (isMounted.current)
684
+ setT(getT);
685
+ }
686
+ if (bindI18n && i18n2)
687
+ i18n2.on(bindI18n, boundReset);
688
+ if (bindI18nStore && i18n2)
689
+ i18n2.store.on(bindI18nStore, boundReset);
690
+ return () => {
691
+ isMounted.current = false;
692
+ if (bindI18n && i18n2)
693
+ bindI18n.split(" ").forEach((e2) => i18n2.off(e2, boundReset));
694
+ if (bindI18nStore && i18n2)
695
+ bindI18nStore.split(" ").forEach((e2) => i18n2.store.off(e2, boundReset));
696
+ };
697
+ }, [i18n2, joinedNS]);
698
+ const isInitial = useRef(true);
699
+ useEffect(() => {
700
+ if (isMounted.current && !isInitial.current) {
701
+ setT(getT);
702
+ }
703
+ isInitial.current = false;
704
+ }, [i18n2, keyPrefix]);
705
+ const ret = [t2, i18n2, ready];
706
+ ret.t = t2;
707
+ ret.i18n = i18n2;
708
+ ret.ready = ready;
709
+ if (ready)
710
+ return ret;
711
+ if (!ready && !useSuspense)
712
+ return ret;
713
+ throw new Promise((resolve) => {
714
+ if (props.lng) {
715
+ loadLanguages(i18n2, props.lng, namespaces, () => resolve());
716
+ } else {
717
+ loadNamespaces(i18n2, namespaces, () => resolve());
718
+ }
719
+ });
720
+ }
442
721
  const copy$1 = "Copy";
443
722
  const reset_arguments$1 = "Reset";
444
723
  const view_changes$1 = "Show diff";
@@ -1418,6 +1697,672 @@ dayjs.locale("zh");
1418
1697
  i18n.on("languageChanged", (lng) => {
1419
1698
  dayjs.locale(lng);
1420
1699
  });
1700
+ var jsxRuntime = { exports: {} };
1701
+ var reactJsxRuntime_production_min = {};
1702
+ /** @license React v16.14.0
1703
+ * react-jsx-runtime.production.min.js
1704
+ *
1705
+ * Copyright (c) Facebook, Inc. and its affiliates.
1706
+ *
1707
+ * This source code is licensed under the MIT license found in the
1708
+ * LICENSE file in the root directory of this source tree.
1709
+ */
1710
+ var hasRequiredReactJsxRuntime_production_min;
1711
+ function requireReactJsxRuntime_production_min() {
1712
+ if (hasRequiredReactJsxRuntime_production_min)
1713
+ return reactJsxRuntime_production_min;
1714
+ hasRequiredReactJsxRuntime_production_min = 1;
1715
+ var f = React__default, g = 60103;
1716
+ reactJsxRuntime_production_min.Fragment = 60107;
1717
+ if ("function" === typeof Symbol && Symbol.for) {
1718
+ var h = Symbol.for;
1719
+ g = h("react.element");
1720
+ reactJsxRuntime_production_min.Fragment = h("react.fragment");
1721
+ }
1722
+ 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 };
1723
+ function q(c2, a2, k) {
1724
+ var b, d = {}, e2 = null, l = null;
1725
+ void 0 !== k && (e2 = "" + k);
1726
+ void 0 !== a2.key && (e2 = "" + a2.key);
1727
+ void 0 !== a2.ref && (l = a2.ref);
1728
+ for (b in a2)
1729
+ n2.call(a2, b) && !p.hasOwnProperty(b) && (d[b] = a2[b]);
1730
+ if (c2 && c2.defaultProps)
1731
+ for (b in a2 = c2.defaultProps, a2)
1732
+ void 0 === d[b] && (d[b] = a2[b]);
1733
+ return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m.current };
1734
+ }
1735
+ reactJsxRuntime_production_min.jsx = q;
1736
+ reactJsxRuntime_production_min.jsxs = q;
1737
+ return reactJsxRuntime_production_min;
1738
+ }
1739
+ var reactJsxRuntime_development = {};
1740
+ /** @license React v16.14.0
1741
+ * react-jsx-runtime.development.js
1742
+ *
1743
+ * Copyright (c) Facebook, Inc. and its affiliates.
1744
+ *
1745
+ * This source code is licensed under the MIT license found in the
1746
+ * LICENSE file in the root directory of this source tree.
1747
+ */
1748
+ var hasRequiredReactJsxRuntime_development;
1749
+ function requireReactJsxRuntime_development() {
1750
+ if (hasRequiredReactJsxRuntime_development)
1751
+ return reactJsxRuntime_development;
1752
+ hasRequiredReactJsxRuntime_development = 1;
1753
+ (function(exports) {
1754
+ if (process.env.NODE_ENV !== "production") {
1755
+ (function() {
1756
+ var React2 = React__default;
1757
+ var REACT_ELEMENT_TYPE = 60103;
1758
+ var REACT_PORTAL_TYPE = 60106;
1759
+ exports.Fragment = 60107;
1760
+ var REACT_STRICT_MODE_TYPE = 60108;
1761
+ var REACT_PROFILER_TYPE = 60114;
1762
+ var REACT_PROVIDER_TYPE = 60109;
1763
+ var REACT_CONTEXT_TYPE = 60110;
1764
+ var REACT_FORWARD_REF_TYPE = 60112;
1765
+ var REACT_SUSPENSE_TYPE = 60113;
1766
+ var REACT_SUSPENSE_LIST_TYPE = 60120;
1767
+ var REACT_MEMO_TYPE = 60115;
1768
+ var REACT_LAZY_TYPE = 60116;
1769
+ var REACT_BLOCK_TYPE = 60121;
1770
+ var REACT_SERVER_BLOCK_TYPE = 60122;
1771
+ var REACT_FUNDAMENTAL_TYPE = 60117;
1772
+ var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
1773
+ var REACT_LEGACY_HIDDEN_TYPE = 60131;
1774
+ if (typeof Symbol === "function" && Symbol.for) {
1775
+ var symbolFor = Symbol.for;
1776
+ REACT_ELEMENT_TYPE = symbolFor("react.element");
1777
+ REACT_PORTAL_TYPE = symbolFor("react.portal");
1778
+ exports.Fragment = symbolFor("react.fragment");
1779
+ REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
1780
+ REACT_PROFILER_TYPE = symbolFor("react.profiler");
1781
+ REACT_PROVIDER_TYPE = symbolFor("react.provider");
1782
+ REACT_CONTEXT_TYPE = symbolFor("react.context");
1783
+ REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
1784
+ REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
1785
+ REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
1786
+ REACT_MEMO_TYPE = symbolFor("react.memo");
1787
+ REACT_LAZY_TYPE = symbolFor("react.lazy");
1788
+ REACT_BLOCK_TYPE = symbolFor("react.block");
1789
+ REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
1790
+ REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
1791
+ symbolFor("react.scope");
1792
+ symbolFor("react.opaque.id");
1793
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
1794
+ symbolFor("react.offscreen");
1795
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
1796
+ }
1797
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
1798
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
1799
+ function getIteratorFn(maybeIterable) {
1800
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
1801
+ return null;
1802
+ }
1803
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1804
+ if (typeof maybeIterator === "function") {
1805
+ return maybeIterator;
1806
+ }
1807
+ return null;
1808
+ }
1809
+ var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1810
+ function error(format) {
1811
+ {
1812
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1813
+ args[_key2 - 1] = arguments[_key2];
1814
+ }
1815
+ printWarning("error", format, args);
1816
+ }
1817
+ }
1818
+ function printWarning(level, format, args) {
1819
+ {
1820
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1821
+ var stack = "";
1822
+ if (currentlyValidatingElement) {
1823
+ var name2 = getComponentName(currentlyValidatingElement.type);
1824
+ var owner = currentlyValidatingElement._owner;
1825
+ stack += describeComponentFrame(name2, currentlyValidatingElement._source, owner && getComponentName(owner.type));
1826
+ }
1827
+ stack += ReactDebugCurrentFrame.getStackAddendum();
1828
+ if (stack !== "") {
1829
+ format += "%s";
1830
+ args = args.concat([stack]);
1831
+ }
1832
+ var argsWithFormat = args.map(function(item) {
1833
+ return "" + item;
1834
+ });
1835
+ argsWithFormat.unshift("Warning: " + format);
1836
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
1837
+ }
1838
+ }
1839
+ var enableScopeAPI = false;
1840
+ function isValidElementType(type2) {
1841
+ if (typeof type2 === "string" || typeof type2 === "function") {
1842
+ return true;
1843
+ }
1844
+ if (type2 === exports.Fragment || type2 === REACT_PROFILER_TYPE || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
1845
+ return true;
1846
+ }
1847
+ if (typeof type2 === "object" && type2 !== null) {
1848
+ if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) {
1849
+ return true;
1850
+ }
1851
+ }
1852
+ return false;
1853
+ }
1854
+ var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
1855
+ function describeComponentFrame(name2, source, ownerName) {
1856
+ var sourceInfo = "";
1857
+ if (source) {
1858
+ var path2 = source.fileName;
1859
+ var fileName = path2.replace(BEFORE_SLASH_RE, "");
1860
+ {
1861
+ if (/^index\./.test(fileName)) {
1862
+ var match = path2.match(BEFORE_SLASH_RE);
1863
+ if (match) {
1864
+ var pathBeforeSlash = match[1];
1865
+ if (pathBeforeSlash) {
1866
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, "");
1867
+ fileName = folderName + "/" + fileName;
1868
+ }
1869
+ }
1870
+ }
1871
+ }
1872
+ sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
1873
+ } else if (ownerName) {
1874
+ sourceInfo = " (created by " + ownerName + ")";
1875
+ }
1876
+ return "\n in " + (name2 || "Unknown") + sourceInfo;
1877
+ }
1878
+ var Resolved = 1;
1879
+ function refineResolvedLazyComponent(lazyComponent) {
1880
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
1881
+ }
1882
+ function getWrappedName(outerType, innerType, wrapperName) {
1883
+ var functionName = innerType.displayName || innerType.name || "";
1884
+ return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
1885
+ }
1886
+ function getComponentName(type2) {
1887
+ if (type2 == null) {
1888
+ return null;
1889
+ }
1890
+ {
1891
+ if (typeof type2.tag === "number") {
1892
+ error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
1893
+ }
1894
+ }
1895
+ if (typeof type2 === "function") {
1896
+ return type2.displayName || type2.name || null;
1897
+ }
1898
+ if (typeof type2 === "string") {
1899
+ return type2;
1900
+ }
1901
+ switch (type2) {
1902
+ case exports.Fragment:
1903
+ return "Fragment";
1904
+ case REACT_PORTAL_TYPE:
1905
+ return "Portal";
1906
+ case REACT_PROFILER_TYPE:
1907
+ return "Profiler";
1908
+ case REACT_STRICT_MODE_TYPE:
1909
+ return "StrictMode";
1910
+ case REACT_SUSPENSE_TYPE:
1911
+ return "Suspense";
1912
+ case REACT_SUSPENSE_LIST_TYPE:
1913
+ return "SuspenseList";
1914
+ }
1915
+ if (typeof type2 === "object") {
1916
+ switch (type2.$$typeof) {
1917
+ case REACT_CONTEXT_TYPE:
1918
+ return "Context.Consumer";
1919
+ case REACT_PROVIDER_TYPE:
1920
+ return "Context.Provider";
1921
+ case REACT_FORWARD_REF_TYPE:
1922
+ return getWrappedName(type2, type2.render, "ForwardRef");
1923
+ case REACT_MEMO_TYPE:
1924
+ return getComponentName(type2.type);
1925
+ case REACT_BLOCK_TYPE:
1926
+ return getComponentName(type2.render);
1927
+ case REACT_LAZY_TYPE: {
1928
+ var thenable = type2;
1929
+ var resolvedThenable = refineResolvedLazyComponent(thenable);
1930
+ if (resolvedThenable) {
1931
+ return getComponentName(resolvedThenable);
1932
+ }
1933
+ break;
1934
+ }
1935
+ }
1936
+ }
1937
+ return null;
1938
+ }
1939
+ var loggedTypeFailures = {};
1940
+ ReactSharedInternals.ReactDebugCurrentFrame;
1941
+ var currentlyValidatingElement = null;
1942
+ function setCurrentlyValidatingElement(element) {
1943
+ {
1944
+ currentlyValidatingElement = element;
1945
+ }
1946
+ }
1947
+ function checkPropTypes(typeSpecs, values, location2, componentName, element) {
1948
+ {
1949
+ var has2 = Function.call.bind(Object.prototype.hasOwnProperty);
1950
+ for (var typeSpecName in typeSpecs) {
1951
+ if (has2(typeSpecs, typeSpecName)) {
1952
+ var error$1 = void 0;
1953
+ try {
1954
+ if (typeof typeSpecs[typeSpecName] !== "function") {
1955
+ var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1956
+ err.name = "Invariant Violation";
1957
+ throw err;
1958
+ }
1959
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1960
+ } catch (ex) {
1961
+ error$1 = ex;
1962
+ }
1963
+ if (error$1 && !(error$1 instanceof Error)) {
1964
+ setCurrentlyValidatingElement(element);
1965
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
1966
+ setCurrentlyValidatingElement(null);
1967
+ }
1968
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1969
+ loggedTypeFailures[error$1.message] = true;
1970
+ setCurrentlyValidatingElement(element);
1971
+ error("Failed %s type: %s", location2, error$1.message);
1972
+ setCurrentlyValidatingElement(null);
1973
+ }
1974
+ }
1975
+ }
1976
+ }
1977
+ }
1978
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
1979
+ var hasOwnProperty2 = Object.prototype.hasOwnProperty;
1980
+ var RESERVED_PROPS = {
1981
+ key: true,
1982
+ ref: true,
1983
+ __self: true,
1984
+ __source: true
1985
+ };
1986
+ var specialPropKeyWarningShown;
1987
+ var specialPropRefWarningShown;
1988
+ var didWarnAboutStringRefs;
1989
+ {
1990
+ didWarnAboutStringRefs = {};
1991
+ }
1992
+ function hasValidRef(config) {
1993
+ {
1994
+ if (hasOwnProperty2.call(config, "ref")) {
1995
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
1996
+ if (getter && getter.isReactWarning) {
1997
+ return false;
1998
+ }
1999
+ }
2000
+ }
2001
+ return config.ref !== void 0;
2002
+ }
2003
+ function hasValidKey(config) {
2004
+ {
2005
+ if (hasOwnProperty2.call(config, "key")) {
2006
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2007
+ if (getter && getter.isReactWarning) {
2008
+ return false;
2009
+ }
2010
+ }
2011
+ }
2012
+ return config.key !== void 0;
2013
+ }
2014
+ function warnIfStringRefCannotBeAutoConverted(config, self2) {
2015
+ {
2016
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
2017
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
2018
+ if (!didWarnAboutStringRefs[componentName]) {
2019
+ error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
2020
+ didWarnAboutStringRefs[componentName] = true;
2021
+ }
2022
+ }
2023
+ }
2024
+ }
2025
+ function defineKeyPropWarningGetter(props, displayName) {
2026
+ {
2027
+ var warnAboutAccessingKey = function() {
2028
+ if (!specialPropKeyWarningShown) {
2029
+ specialPropKeyWarningShown = true;
2030
+ error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2031
+ }
2032
+ };
2033
+ warnAboutAccessingKey.isReactWarning = true;
2034
+ Object.defineProperty(props, "key", {
2035
+ get: warnAboutAccessingKey,
2036
+ configurable: true
2037
+ });
2038
+ }
2039
+ }
2040
+ function defineRefPropWarningGetter(props, displayName) {
2041
+ {
2042
+ var warnAboutAccessingRef = function() {
2043
+ if (!specialPropRefWarningShown) {
2044
+ specialPropRefWarningShown = true;
2045
+ error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2046
+ }
2047
+ };
2048
+ warnAboutAccessingRef.isReactWarning = true;
2049
+ Object.defineProperty(props, "ref", {
2050
+ get: warnAboutAccessingRef,
2051
+ configurable: true
2052
+ });
2053
+ }
2054
+ }
2055
+ var ReactElement = function(type2, key2, ref, self2, source, owner, props) {
2056
+ var element = {
2057
+ // This tag allows us to uniquely identify this as a React Element
2058
+ $$typeof: REACT_ELEMENT_TYPE,
2059
+ // Built-in properties that belong on the element
2060
+ type: type2,
2061
+ key: key2,
2062
+ ref,
2063
+ props,
2064
+ // Record the component responsible for creating this element.
2065
+ _owner: owner
2066
+ };
2067
+ {
2068
+ element._store = {};
2069
+ Object.defineProperty(element._store, "validated", {
2070
+ configurable: false,
2071
+ enumerable: false,
2072
+ writable: true,
2073
+ value: false
2074
+ });
2075
+ Object.defineProperty(element, "_self", {
2076
+ configurable: false,
2077
+ enumerable: false,
2078
+ writable: false,
2079
+ value: self2
2080
+ });
2081
+ Object.defineProperty(element, "_source", {
2082
+ configurable: false,
2083
+ enumerable: false,
2084
+ writable: false,
2085
+ value: source
2086
+ });
2087
+ if (Object.freeze) {
2088
+ Object.freeze(element.props);
2089
+ Object.freeze(element);
2090
+ }
2091
+ }
2092
+ return element;
2093
+ };
2094
+ function jsxDEV(type2, config, maybeKey, source, self2) {
2095
+ {
2096
+ var propName;
2097
+ var props = {};
2098
+ var key2 = null;
2099
+ var ref = null;
2100
+ if (maybeKey !== void 0) {
2101
+ key2 = "" + maybeKey;
2102
+ }
2103
+ if (hasValidKey(config)) {
2104
+ key2 = "" + config.key;
2105
+ }
2106
+ if (hasValidRef(config)) {
2107
+ ref = config.ref;
2108
+ warnIfStringRefCannotBeAutoConverted(config, self2);
2109
+ }
2110
+ for (propName in config) {
2111
+ if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2112
+ props[propName] = config[propName];
2113
+ }
2114
+ }
2115
+ if (type2 && type2.defaultProps) {
2116
+ var defaultProps = type2.defaultProps;
2117
+ for (propName in defaultProps) {
2118
+ if (props[propName] === void 0) {
2119
+ props[propName] = defaultProps[propName];
2120
+ }
2121
+ }
2122
+ }
2123
+ if (key2 || ref) {
2124
+ var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2;
2125
+ if (key2) {
2126
+ defineKeyPropWarningGetter(props, displayName);
2127
+ }
2128
+ if (ref) {
2129
+ defineRefPropWarningGetter(props, displayName);
2130
+ }
2131
+ }
2132
+ return ReactElement(type2, key2, ref, self2, source, ReactCurrentOwner.current, props);
2133
+ }
2134
+ }
2135
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2136
+ ReactSharedInternals.ReactDebugCurrentFrame;
2137
+ function setCurrentlyValidatingElement$1(element) {
2138
+ currentlyValidatingElement = element;
2139
+ }
2140
+ var propTypesMisspellWarningShown;
2141
+ {
2142
+ propTypesMisspellWarningShown = false;
2143
+ }
2144
+ function isValidElement2(object2) {
2145
+ {
2146
+ return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
2147
+ }
2148
+ }
2149
+ function getDeclarationErrorAddendum() {
2150
+ {
2151
+ if (ReactCurrentOwner$1.current) {
2152
+ var name2 = getComponentName(ReactCurrentOwner$1.current.type);
2153
+ if (name2) {
2154
+ return "\n\nCheck the render method of `" + name2 + "`.";
2155
+ }
2156
+ }
2157
+ return "";
2158
+ }
2159
+ }
2160
+ function getSourceInfoErrorAddendum(source) {
2161
+ {
2162
+ if (source !== void 0) {
2163
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2164
+ var lineNumber = source.lineNumber;
2165
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2166
+ }
2167
+ return "";
2168
+ }
2169
+ }
2170
+ var ownerHasKeyUseWarning = {};
2171
+ function getCurrentComponentErrorInfo(parentType) {
2172
+ {
2173
+ var info = getDeclarationErrorAddendum();
2174
+ if (!info) {
2175
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2176
+ if (parentName) {
2177
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2178
+ }
2179
+ }
2180
+ return info;
2181
+ }
2182
+ }
2183
+ function validateExplicitKey(element, parentType) {
2184
+ {
2185
+ if (!element._store || element._store.validated || element.key != null) {
2186
+ return;
2187
+ }
2188
+ element._store.validated = true;
2189
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2190
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2191
+ return;
2192
+ }
2193
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2194
+ var childOwner = "";
2195
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2196
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
2197
+ }
2198
+ setCurrentlyValidatingElement$1(element);
2199
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2200
+ setCurrentlyValidatingElement$1(null);
2201
+ }
2202
+ }
2203
+ function validateChildKeys(node, parentType) {
2204
+ {
2205
+ if (typeof node !== "object") {
2206
+ return;
2207
+ }
2208
+ if (Array.isArray(node)) {
2209
+ for (var i2 = 0; i2 < node.length; i2++) {
2210
+ var child = node[i2];
2211
+ if (isValidElement2(child)) {
2212
+ validateExplicitKey(child, parentType);
2213
+ }
2214
+ }
2215
+ } else if (isValidElement2(node)) {
2216
+ if (node._store) {
2217
+ node._store.validated = true;
2218
+ }
2219
+ } else if (node) {
2220
+ var iteratorFn = getIteratorFn(node);
2221
+ if (typeof iteratorFn === "function") {
2222
+ if (iteratorFn !== node.entries) {
2223
+ var iterator = iteratorFn.call(node);
2224
+ var step;
2225
+ while (!(step = iterator.next()).done) {
2226
+ if (isValidElement2(step.value)) {
2227
+ validateExplicitKey(step.value, parentType);
2228
+ }
2229
+ }
2230
+ }
2231
+ }
2232
+ }
2233
+ }
2234
+ }
2235
+ function validatePropTypes(element) {
2236
+ {
2237
+ var type2 = element.type;
2238
+ if (type2 === null || type2 === void 0 || typeof type2 === "string") {
2239
+ return;
2240
+ }
2241
+ var propTypes;
2242
+ if (typeof type2 === "function") {
2243
+ propTypes = type2.propTypes;
2244
+ } else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2245
+ // Inner props are checked in the reconciler.
2246
+ type2.$$typeof === REACT_MEMO_TYPE)) {
2247
+ propTypes = type2.propTypes;
2248
+ } else {
2249
+ return;
2250
+ }
2251
+ if (propTypes) {
2252
+ var name2 = getComponentName(type2);
2253
+ checkPropTypes(propTypes, element.props, "prop", name2, element);
2254
+ } else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
2255
+ propTypesMisspellWarningShown = true;
2256
+ var _name = getComponentName(type2);
2257
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
2258
+ }
2259
+ if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) {
2260
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2261
+ }
2262
+ }
2263
+ }
2264
+ function validateFragmentProps(fragment) {
2265
+ {
2266
+ var keys = Object.keys(fragment.props);
2267
+ for (var i2 = 0; i2 < keys.length; i2++) {
2268
+ var key2 = keys[i2];
2269
+ if (key2 !== "children" && key2 !== "key") {
2270
+ setCurrentlyValidatingElement$1(fragment);
2271
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key2);
2272
+ setCurrentlyValidatingElement$1(null);
2273
+ break;
2274
+ }
2275
+ }
2276
+ if (fragment.ref !== null) {
2277
+ setCurrentlyValidatingElement$1(fragment);
2278
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
2279
+ setCurrentlyValidatingElement$1(null);
2280
+ }
2281
+ }
2282
+ }
2283
+ function jsxWithValidation(type2, props, key2, isStaticChildren, source, self2) {
2284
+ {
2285
+ var validType = isValidElementType(type2);
2286
+ if (!validType) {
2287
+ var info = "";
2288
+ if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) {
2289
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
2290
+ }
2291
+ var sourceInfo = getSourceInfoErrorAddendum(source);
2292
+ if (sourceInfo) {
2293
+ info += sourceInfo;
2294
+ } else {
2295
+ info += getDeclarationErrorAddendum();
2296
+ }
2297
+ var typeString;
2298
+ if (type2 === null) {
2299
+ typeString = "null";
2300
+ } else if (Array.isArray(type2)) {
2301
+ typeString = "array";
2302
+ } else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) {
2303
+ typeString = "<" + (getComponentName(type2.type) || "Unknown") + " />";
2304
+ info = " Did you accidentally export a JSX literal instead of a component?";
2305
+ } else {
2306
+ typeString = typeof type2;
2307
+ }
2308
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
2309
+ }
2310
+ var element = jsxDEV(type2, props, key2, source, self2);
2311
+ if (element == null) {
2312
+ return element;
2313
+ }
2314
+ if (validType) {
2315
+ var children = props.children;
2316
+ if (children !== void 0) {
2317
+ if (isStaticChildren) {
2318
+ if (Array.isArray(children)) {
2319
+ for (var i2 = 0; i2 < children.length; i2++) {
2320
+ validateChildKeys(children[i2], type2);
2321
+ }
2322
+ if (Object.freeze) {
2323
+ Object.freeze(children);
2324
+ }
2325
+ } else {
2326
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2327
+ }
2328
+ } else {
2329
+ validateChildKeys(children, type2);
2330
+ }
2331
+ }
2332
+ }
2333
+ if (type2 === exports.Fragment) {
2334
+ validateFragmentProps(element);
2335
+ } else {
2336
+ validatePropTypes(element);
2337
+ }
2338
+ return element;
2339
+ }
2340
+ }
2341
+ function jsxWithValidationStatic(type2, props, key2) {
2342
+ {
2343
+ return jsxWithValidation(type2, props, key2, true);
2344
+ }
2345
+ }
2346
+ function jsxWithValidationDynamic(type2, props, key2) {
2347
+ {
2348
+ return jsxWithValidation(type2, props, key2, false);
2349
+ }
2350
+ }
2351
+ var jsx = jsxWithValidationDynamic;
2352
+ var jsxs = jsxWithValidationStatic;
2353
+ exports.jsx = jsx;
2354
+ exports.jsxs = jsxs;
2355
+ })();
2356
+ }
2357
+ })(reactJsxRuntime_development);
2358
+ return reactJsxRuntime_development;
2359
+ }
2360
+ if (process.env.NODE_ENV === "production") {
2361
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
2362
+ } else {
2363
+ jsxRuntime.exports = requireReactJsxRuntime_development();
2364
+ }
2365
+ var jsxRuntimeExports = jsxRuntime.exports;
1421
2366
  const stringifyConfig = {
1422
2367
  addQueryPrefix: true,
1423
2368
  skipNulls: true,
@@ -2231,7 +3176,7 @@ lodash.exports;
2231
3176
  var reIsNative2 = RegExp2(
2232
3177
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2233
3178
  );
2234
- var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable2 = objectProto2.propertyIsEnumerable, splice2 = arrayProto2.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$1;
3179
+ var Buffer3 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer3 ? Buffer3.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable2 = objectProto2.propertyIsEnumerable, splice2 = arrayProto2.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$1;
2235
3180
  var defineProperty = function() {
2236
3181
  try {
2237
3182
  var func = getNative2(Object2, "defineProperty");
@@ -2241,7 +3186,7 @@ lodash.exports;
2241
3186
  }
2242
3187
  }();
2243
3188
  var ctxClearTimeout = context.clearTimeout !== root2.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root2.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root2.setTimeout && context.setTimeout;
2244
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
3189
+ var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer3 ? Buffer3.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
2245
3190
  var DataView = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"), Promise2 = getNative2(context, "Promise"), Set = getNative2(context, "Set"), WeakMap = getNative2(context, "WeakMap"), nativeCreate2 = getNative2(Object2, "create");
2246
3191
  var metaMap = WeakMap && new WeakMap();
2247
3192
  var realNames = {};
@@ -3520,7 +4465,7 @@ lodash.exports;
3520
4465
  end = end === undefined$1 ? length : end;
3521
4466
  return !start && end >= length ? array : baseSlice(array, start, end);
3522
4467
  }
3523
- var clearTimeout = ctxClearTimeout || function(id) {
4468
+ var clearTimeout2 = ctxClearTimeout || function(id) {
3524
4469
  return root2.clearTimeout(id);
3525
4470
  };
3526
4471
  function cloneBuffer(buffer, isDeep) {
@@ -5391,7 +6336,7 @@ lodash.exports;
5391
6336
  }
5392
6337
  function cancel2() {
5393
6338
  if (timerId !== undefined$1) {
5394
- clearTimeout(timerId);
6339
+ clearTimeout2(timerId);
5395
6340
  }
5396
6341
  lastInvokeTime = 0;
5397
6342
  lastArgs = lastCallTime = lastThis = timerId = undefined$1;
@@ -5409,7 +6354,7 @@ lodash.exports;
5409
6354
  return leadingEdge(lastCallTime);
5410
6355
  }
5411
6356
  if (maxing) {
5412
- clearTimeout(timerId);
6357
+ clearTimeout2(timerId);
5413
6358
  timerId = setTimeout2(timerExpired, wait);
5414
6359
  return invokeFunc(lastCallTime);
5415
6360
  }
@@ -6298,7 +7243,7 @@ lodash.exports;
6298
7243
  }
6299
7244
  return result2 + omission;
6300
7245
  }
6301
- function unescape(string) {
7246
+ function unescape2(string) {
6302
7247
  string = toString2(string);
6303
7248
  return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
6304
7249
  }
@@ -6812,7 +7757,7 @@ lodash.exports;
6812
7757
  lodash2.trimEnd = trimEnd;
6813
7758
  lodash2.trimStart = trimStart;
6814
7759
  lodash2.truncate = truncate;
6815
- lodash2.unescape = unescape;
7760
+ lodash2.unescape = unescape2;
6816
7761
  lodash2.uniqueId = uniqueId;
6817
7762
  lodash2.upperCase = upperCase;
6818
7763
  lodash2.upperFirst = upperFirst;
@@ -7448,6 +8393,31 @@ const useDeleteModal = ({
7448
8393
  });
7449
8394
  return { openDeleteConfirmModal, closeDeleteConfirmModal };
7450
8395
  };
8396
+ var cx = function cx2() {
8397
+ const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
8398
+ const atomicClasses = {};
8399
+ const nonAtomicClasses = [];
8400
+ presentClassNames.forEach((arg) => {
8401
+ const individualClassNames = arg ? arg.split(" ") : [];
8402
+ individualClassNames.forEach((className) => {
8403
+ if (className.startsWith("atm_")) {
8404
+ const [, keyHash] = className.split("_");
8405
+ atomicClasses[keyHash] = className;
8406
+ } else {
8407
+ nonAtomicClasses.push(className);
8408
+ }
8409
+ });
8410
+ });
8411
+ const result = [];
8412
+ for (const keyHash in atomicClasses) {
8413
+ if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
8414
+ result.push(atomicClasses[keyHash]);
8415
+ }
8416
+ }
8417
+ result.push(...nonAtomicClasses);
8418
+ return result.join(" ");
8419
+ };
8420
+ var cx_default = cx;
7451
8421
  const index_18b69qa = "";
7452
8422
  const EMPTY_VALUES = [void 0, null, "", "-"];
7453
8423
  const EmptyStyle = "e5223w8";
@@ -10431,7 +11401,7 @@ const DeleteManyButton = (props) => {
10431
11401
  };
10432
11402
  const index_1iwpuwe = "";
10433
11403
  const ToolbarWrapperStyle = "t1908hhn";
10434
- const ToolbarStyle$1 = "t1ym1gqo";
11404
+ const ToolbarStyle$3 = "t1ym1gqo";
10435
11405
  const TitleStyle$2 = "t38ugwl";
10436
11406
  const DescriptionStyle = "d13nfex0";
10437
11407
  const TableToolBar = ({
@@ -10447,7 +11417,7 @@ const TableToolBar = ({
10447
11417
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10448
11418
  className: cx_default(ToolbarWrapperStyle, "table-toolbar"),
10449
11419
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
10450
- className: ToolbarStyle$1,
11420
+ className: ToolbarStyle$3,
10451
11421
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
10452
11422
  className: cx_default(Typo.Display.d2_regular_title, TitleStyle$2),
10453
11423
  children: title || ((_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind)
@@ -11033,7 +12003,7 @@ const ShowContent = (props) => {
11033
12003
  })
11034
12004
  })]
11035
12005
  })
11036
- }, field.path.join()) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
12006
+ }, field.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
11037
12007
  style: {
11038
12008
  height: "100%"
11039
12009
  },
@@ -12413,8 +13383,8 @@ const ResourceTableField = (resource, useTableParams) => {
12413
13383
  const baseNoReset = "";
12414
13384
  const index_v855ki = "";
12415
13385
  const WrapperStyle$3 = "wve7dfm";
12416
- const ToolbarStyle = "t9oeh3c";
12417
- const ToolbarAreaStyle = "t1u2zqn6";
13386
+ const ToolbarStyle$2 = "t9oeh3c";
13387
+ const ToolbarAreaStyle$1 = "t1u2zqn6";
12418
13388
  const ContentStyle$1 = "c8wrcus";
12419
13389
  const PodLog = ({
12420
13390
  pod: pod2
@@ -12534,9 +13504,9 @@ const PodLog = ({
12534
13504
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
12535
13505
  className: WrapperStyle$3,
12536
13506
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
12537
- className: ToolbarStyle,
13507
+ className: ToolbarStyle$2,
12538
13508
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
12539
- className: ToolbarAreaStyle,
13509
+ className: ToolbarAreaStyle$1,
12540
13510
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SegmentControl, {
12541
13511
  options: [{
12542
13512
  label: t2("dovetail.realtime_log"),
@@ -12573,7 +13543,7 @@ const PodLog = ({
12573
13543
  }, container2.name))]
12574
13544
  })]
12575
13545
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
12576
- className: ToolbarAreaStyle,
13546
+ className: ToolbarAreaStyle$1,
12577
13547
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, {
12578
13548
  checked: wrap,
12579
13549
  onChange: (e2) => setWrap(e2.target.checked),
@@ -12641,7 +13611,7 @@ const PodLogTab = (i18n2) => ({
12641
13611
  ]
12642
13612
  });
12643
13613
  const NetworkPolicyRulesViewer_r6jity = "";
12644
- const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-bc70e03e.js"));
13614
+ const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-96d9a48c.js"));
12645
13615
  const EditorStyle$1 = "e1cjl2b8";
12646
13616
  const NetworkPolicyRulesViewer = ({
12647
13617
  ingressOrEgress,
@@ -14764,9 +15734,680 @@ var CloseCircleFilled = function CloseCircleFilled2(props, ref) {
14764
15734
  };
14765
15735
  CloseCircleFilled.displayName = "CloseCircleFilled";
14766
15736
  const CloseCircleFilled$1 = React.forwardRef(CloseCircleFilled);
14767
- const PodShell = lazy(
14768
- () => import("./PodShell-ba204cde.js").then((module) => ({ default: module.PodShell }))
14769
- );
15737
+ const ShellToolbar_ihg418 = "";
15738
+ const ToolbarStyle$1 = "tzxa6d";
15739
+ const ToolbarAreaStyle = "t1sxu3rr";
15740
+ const IconWrapperStyle = "ix8ych8";
15741
+ const IconStyle$1 = "i58m6oo";
15742
+ const DividerStyle = "d1t2oa87";
15743
+ const TooltipStyle = "tuo8xdg";
15744
+ function ShellToolbar(props) {
15745
+ const {
15746
+ className,
15747
+ leftSlot,
15748
+ operations = ["fontSize", "downloadLog", "clear"],
15749
+ searchMatchedTotal,
15750
+ onSetFontSize,
15751
+ onSearchNext,
15752
+ onSearchPre,
15753
+ onDownloadLog,
15754
+ onClear
15755
+ } = props;
15756
+ const {
15757
+ t: t2
15758
+ } = useTranslation();
15759
+ const fontSizeOptions = [12, 13, 14, 16, 20];
15760
+ const operationMap = {
15761
+ fontSize: /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenu, {
15762
+ trigger: ["click"],
15763
+ items: fontSizeOptions.map((size) => ({
15764
+ key: `${size}`,
15765
+ title: `${size}px`,
15766
+ text: `${size}px`,
15767
+ onClick: () => {
15768
+ onSetFontSize == null ? void 0 : onSetFontSize(size);
15769
+ }
15770
+ })),
15771
+ slotsElements: {
15772
+ trigger: () => /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
15773
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
15774
+ className: TooltipStyle,
15775
+ children: t2("dovetail.font_size")
15776
+ }),
15777
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
15778
+ style: {
15779
+ display: "flex",
15780
+ alignItems: "center"
15781
+ },
15782
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
15783
+ className: IconStyle$1,
15784
+ src: FontSize16GrayIcon,
15785
+ hoverSrc: FontSize16BlueIcon
15786
+ })
15787
+ })
15788
+ })
15789
+ }
15790
+ }),
15791
+ downloadLog: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
15792
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
15793
+ className: TooltipStyle,
15794
+ children: t2("dovetail.download_shell_content")
15795
+ }),
15796
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
15797
+ className: IconStyle$1,
15798
+ src: LogCollection16GrayIcon,
15799
+ hoverSrc: LogCollection16GradientBlueIcon,
15800
+ onClick: onDownloadLog
15801
+ })
15802
+ }),
15803
+ clear: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
15804
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
15805
+ className: TooltipStyle,
15806
+ children: t2("dovetail.clear_shell")
15807
+ }),
15808
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
15809
+ className: IconStyle$1,
15810
+ src: TrashBinDeletePermanently16GrayIcon,
15811
+ hoverSrc: TrashBinDeletePermanently16BlueIcon,
15812
+ onClick: onClear
15813
+ })
15814
+ })
15815
+ };
15816
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
15817
+ className: cx_default(ToolbarStyle$1, className),
15818
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
15819
+ className: ToolbarAreaStyle,
15820
+ children: leftSlot
15821
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
15822
+ className: ToolbarAreaStyle,
15823
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, {
15824
+ placeholder: t2("dovetail.search"),
15825
+ size: "small",
15826
+ total: searchMatchedTotal,
15827
+ onChange: (str) => {
15828
+ onSearchNext(str);
15829
+ },
15830
+ onSearchNext: (str) => {
15831
+ onSearchNext(str);
15832
+ },
15833
+ onSearchPrev: (str) => {
15834
+ onSearchPre(str);
15835
+ }
15836
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
15837
+ className: DividerStyle
15838
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
15839
+ className: IconWrapperStyle,
15840
+ children: operations.map((operation) => typeof operation === "string" ? operationMap[operation] || null : operation)
15841
+ })]
15842
+ })]
15843
+ });
15844
+ }
15845
+ const xterm = "";
15846
+ const index_1bj2t02 = "";
15847
+ const ContainerStyle = "c1q5a2qi";
15848
+ const ShellStyle = "sdz5fm1";
15849
+ const LoadingStyle = "lbp0h2e";
15850
+ const ErrorAlertStyle = "eioilqy";
15851
+ const ToolbarStyle = "trlau0c";
15852
+ var SocketStatus = /* @__PURE__ */ ((SocketStatus2) => {
15853
+ SocketStatus2["Opening"] = "Opening";
15854
+ SocketStatus2["Open"] = "Open";
15855
+ SocketStatus2["Disconnected"] = "Disconnected";
15856
+ return SocketStatus2;
15857
+ })(SocketStatus || {});
15858
+ const Shell = React__default.forwardRef(function Shell2(props, ref) {
15859
+ const {
15860
+ className,
15861
+ url,
15862
+ protocols,
15863
+ timeout = 1e4,
15864
+ logFileName,
15865
+ operations,
15866
+ isHideToolbar,
15867
+ toolbarLeftSlot,
15868
+ shellOptions,
15869
+ loadingElement,
15870
+ encode,
15871
+ decode,
15872
+ onSocketStatusChange,
15873
+ onTermInit,
15874
+ onSocketInit,
15875
+ children
15876
+ } = props;
15877
+ const terminalRef = useRef(null);
15878
+ const termInstanceRef = useRef(null);
15879
+ const fitAddonRef = useRef(null);
15880
+ const searchAddonRef = useRef(null);
15881
+ const socketRef = useRef(null);
15882
+ const backlogRef = useRef([]);
15883
+ const containerRef = useRef(null);
15884
+ const [socketStatus, setSocketStatus] = useState(
15885
+ "Opening"
15886
+ /* Opening */
15887
+ );
15888
+ const [loading, setLoading] = useState(false);
15889
+ const [error, setError] = useState(null);
15890
+ const [searchMatchedTotal, setSearchMatchedTotal] = useState(0);
15891
+ const {
15892
+ t: t2
15893
+ } = useTranslation();
15894
+ const searchOptions = useMemo(() => ({
15895
+ decorations: {
15896
+ activeMatchColorOverviewRuler: "#FEA008",
15897
+ matchOverviewRuler: "#E07F00",
15898
+ activeMatchBackground: "#FEA008",
15899
+ matchBackground: "#E07F00"
15900
+ }
15901
+ }), []);
15902
+ const reset = useCallback(() => {
15903
+ var _a, _b;
15904
+ (_a = termInstanceRef.current) == null ? void 0 : _a.clear();
15905
+ (_b = termInstanceRef.current) == null ? void 0 : _b.reset();
15906
+ }, []);
15907
+ const send = useCallback((message2, callback) => {
15908
+ if (socketRef.current && socketRef.current.readyState === socketRef.current.OPEN) {
15909
+ socketRef.current.send(message2);
15910
+ callback == null ? void 0 : callback();
15911
+ } else {
15912
+ backlogRef.current.push({
15913
+ message: message2,
15914
+ callback
15915
+ });
15916
+ }
15917
+ }, []);
15918
+ const fit = useCallback(() => {
15919
+ var _a;
15920
+ if (!fitAddonRef.current)
15921
+ return;
15922
+ fitAddonRef.current.fit();
15923
+ const {
15924
+ rows,
15925
+ cols
15926
+ } = fitAddonRef.current.proposeDimensions() || {};
15927
+ if (rows && cols) {
15928
+ (_a = props.fit) == null ? void 0 : _a.call(props, {
15929
+ rows,
15930
+ cols
15931
+ });
15932
+ }
15933
+ }, [encode, send, props.fit]);
15934
+ const debouncedFit = useMemo(() => debounce(fit, 200), [fit]);
15935
+ const flush = useCallback(() => {
15936
+ const backlog = backlogRef.current.slice();
15937
+ backlogRef.current = [];
15938
+ for (const data2 of backlog) {
15939
+ send(data2.message, data2.callback);
15940
+ }
15941
+ }, [send]);
15942
+ const connect = useCallback(() => {
15943
+ if (socketRef.current) {
15944
+ socketRef.current.close();
15945
+ socketRef.current = null;
15946
+ }
15947
+ if (url) {
15948
+ let onSocketError = function() {
15949
+ setLoading(false);
15950
+ setError(true);
15951
+ }, onSocketOpen = function() {
15952
+ var _a;
15953
+ (_a = props.onSocketOpen) == null ? void 0 : _a.call(props, socket);
15954
+ clearTimeout(timer);
15955
+ setSocketStatus(
15956
+ "Open"
15957
+ /* Open */
15958
+ );
15959
+ fit();
15960
+ flush();
15961
+ setError(false);
15962
+ setLoading(false);
15963
+ }, onSocketClose = function() {
15964
+ setLoading(false);
15965
+ setError(true);
15966
+ if (props.onSocketClose) {
15967
+ props.onSocketClose(socket, termInstanceRef.current);
15968
+ } else {
15969
+ setSocketStatus(
15970
+ "Disconnected"
15971
+ /* Disconnected */
15972
+ );
15973
+ }
15974
+ }, onSocketMessage = function(e2) {
15975
+ var _a;
15976
+ if (props.onSocketMessage) {
15977
+ props.onSocketMessage(e2, socket, termInstanceRef.current);
15978
+ } else {
15979
+ const msg = (decode == null ? void 0 : decode(e2.data)) || e2.data;
15980
+ (_a = termInstanceRef.current) == null ? void 0 : _a.write(msg);
15981
+ }
15982
+ };
15983
+ setLoading(true);
15984
+ setError(false);
15985
+ const socket = new WebSocket(url, protocols);
15986
+ const timer = setTimeout(() => {
15987
+ setLoading(false);
15988
+ socket.close();
15989
+ }, timeout);
15990
+ setSocketStatus(
15991
+ "Opening"
15992
+ /* Opening */
15993
+ );
15994
+ onSocketInit == null ? void 0 : onSocketInit(socket);
15995
+ socket.addEventListener("open", onSocketOpen);
15996
+ socket.addEventListener("message", onSocketMessage);
15997
+ socket.addEventListener("close", onSocketClose);
15998
+ socket.addEventListener("error", onSocketError);
15999
+ socketRef.current = socket;
16000
+ return function disconnect() {
16001
+ if (socket) {
16002
+ socket.close();
16003
+ socket.removeEventListener("open", onSocketOpen);
16004
+ socket.removeEventListener("message", onSocketMessage);
16005
+ socket.removeEventListener("close", onSocketClose);
16006
+ socket.removeEventListener("error", onSocketError);
16007
+ socketRef.current = null;
16008
+ }
16009
+ };
16010
+ }
16011
+ }, [url, protocols, decode, props.onSocketClose, props.onSocketMessage, props.onSocketOpen, reset, flush, fit, onSocketInit, timeout]);
16012
+ const setupTerminal = useCallback(() => {
16013
+ if (terminalRef.current) {
16014
+ let onKeyDown = function(event2) {
16015
+ if (event2.ctrlKey && event2.shiftKey && event2.key === "C") {
16016
+ event2.preventDefault();
16017
+ copyToClipboard$1(term.getSelection());
16018
+ }
16019
+ }, onResize = function() {
16020
+ fit();
16021
+ };
16022
+ if (termInstanceRef.current) {
16023
+ termInstanceRef.current.reset();
16024
+ termInstanceRef.current.dispose();
16025
+ }
16026
+ const term = new Terminal({
16027
+ cursorBlink: true,
16028
+ cols: 150,
16029
+ allowProposedApi: true,
16030
+ fontSize: 12,
16031
+ theme: {
16032
+ background: "#00122E"
16033
+ },
16034
+ ...shellOptions
16035
+ });
16036
+ let renderAddon = null;
16037
+ try {
16038
+ renderAddon = new WebglAddon();
16039
+ } catch {
16040
+ renderAddon = new CanvasAddon();
16041
+ }
16042
+ onTermInit == null ? void 0 : onTermInit(term);
16043
+ term.loadAddon(fitAddonRef.current = new FitAddon());
16044
+ term.loadAddon(searchAddonRef.current = new SearchAddon());
16045
+ term.loadAddon(new WebLinksAddon());
16046
+ term.loadAddon(renderAddon);
16047
+ term.open(terminalRef.current);
16048
+ fit();
16049
+ flush();
16050
+ document.addEventListener("keydown", onKeyDown);
16051
+ window.addEventListener("resize", onResize);
16052
+ searchAddonRef.current.onDidChangeResults(({
16053
+ resultCount
16054
+ }) => {
16055
+ setSearchMatchedTotal(resultCount);
16056
+ });
16057
+ term.onData((input) => {
16058
+ send(encode(input));
16059
+ });
16060
+ termInstanceRef.current = term;
16061
+ return function destroy() {
16062
+ document.removeEventListener("keydown", onKeyDown);
16063
+ window.removeEventListener("resize", onResize);
16064
+ termInstanceRef.current = null;
16065
+ fitAddonRef.current = null;
16066
+ searchAddonRef.current = null;
16067
+ term.clear();
16068
+ term.dispose();
16069
+ };
16070
+ }
16071
+ }, [send, encode, onTermInit, fit, flush, shellOptions]);
16072
+ const searchNext = useCallback((search2) => {
16073
+ var _a;
16074
+ (_a = searchAddonRef.current) == null ? void 0 : _a.findNext(search2 || "", searchOptions);
16075
+ }, [searchOptions]);
16076
+ const searchPrevious = useCallback((search2) => {
16077
+ var _a;
16078
+ (_a = searchAddonRef.current) == null ? void 0 : _a.findPrevious(search2 || "", searchOptions);
16079
+ }, [searchOptions]);
16080
+ const getAllTerminalContents = useCallback(() => {
16081
+ if (!termInstanceRef.current)
16082
+ return [];
16083
+ const buffer = termInstanceRef.current.buffer.active;
16084
+ const lines = [];
16085
+ for (let i2 = 0; i2 < buffer.length; i2++) {
16086
+ const line = buffer.getLine(i2);
16087
+ if (line) {
16088
+ lines.push(line.translateToString(true));
16089
+ }
16090
+ }
16091
+ return lines;
16092
+ }, []);
16093
+ const clear = useCallback(() => {
16094
+ var _a;
16095
+ (_a = termInstanceRef.current) == null ? void 0 : _a.clear();
16096
+ }, []);
16097
+ const downloadContent = useCallback(() => {
16098
+ const content = (getAllTerminalContents() || []).join("\n");
16099
+ const blob = new Blob([content], {
16100
+ type: "text/plain"
16101
+ });
16102
+ const url2 = window.URL.createObjectURL(blob);
16103
+ const a2 = document.createElement("a");
16104
+ a2.href = url2;
16105
+ a2.download = `${logFileName || "term"}.log`;
16106
+ document.body.appendChild(a2);
16107
+ a2.click();
16108
+ setTimeout(() => {
16109
+ document.body.removeChild(a2);
16110
+ window.URL.revokeObjectURL(url2);
16111
+ }, 0);
16112
+ }, [getAllTerminalContents, logFileName]);
16113
+ const setOptions = useCallback((options) => {
16114
+ Object.entries(options).forEach(([key2, value2]) => {
16115
+ if (termInstanceRef.current) {
16116
+ termInstanceRef.current.options[key2] = value2;
16117
+ }
16118
+ });
16119
+ fit();
16120
+ }, [fit]);
16121
+ const writeln = useCallback((data2) => {
16122
+ var _a;
16123
+ (_a = termInstanceRef.current) == null ? void 0 : _a.writeln(data2);
16124
+ }, []);
16125
+ const onClear = useCallback(() => {
16126
+ var _a;
16127
+ clear();
16128
+ (_a = props.onClear) == null ? void 0 : _a.call(props);
16129
+ }, [clear, props.onClear]);
16130
+ useEffect(() => {
16131
+ const destroy = setupTerminal();
16132
+ return () => {
16133
+ destroy == null ? void 0 : destroy();
16134
+ };
16135
+ }, []);
16136
+ useEffect(() => {
16137
+ const disconnect = connect();
16138
+ return () => {
16139
+ disconnect == null ? void 0 : disconnect();
16140
+ };
16141
+ }, [url, protocols]);
16142
+ useEffect(() => {
16143
+ onSocketStatusChange == null ? void 0 : onSocketStatusChange(socketStatus);
16144
+ }, [socketStatus]);
16145
+ useEffect(() => {
16146
+ if (!containerRef.current)
16147
+ return;
16148
+ const resizeObserver = new ResizeObserver(() => {
16149
+ debouncedFit();
16150
+ });
16151
+ resizeObserver.observe(containerRef.current);
16152
+ return () => resizeObserver.disconnect();
16153
+ }, [debouncedFit]);
16154
+ useImperativeHandle(ref, () => ({
16155
+ clear,
16156
+ setSocketStatus,
16157
+ fit,
16158
+ send,
16159
+ connect,
16160
+ searchNext,
16161
+ searchPrevious,
16162
+ getAllTerminalContents,
16163
+ setOptions,
16164
+ setLoading,
16165
+ setError,
16166
+ writeln
16167
+ }), [send, searchNext, searchPrevious, getAllTerminalContents, fit, clear, connect, setOptions, writeln]);
16168
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
16169
+ ref: containerRef,
16170
+ className: ContainerStyle,
16171
+ children: [!!error ? /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
16172
+ style: {
16173
+ margin: 8,
16174
+ marginBottom: 4
16175
+ },
16176
+ message: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
16177
+ className: ErrorAlertStyle,
16178
+ children: [t2("dovetail.disconnected"), /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
16179
+ onClick: () => {
16180
+ if (props.onReconnect) {
16181
+ props.onReconnect();
16182
+ } else {
16183
+ connect();
16184
+ }
16185
+ },
16186
+ children: t2("dovetail.reconnect")
16187
+ })]
16188
+ }),
16189
+ type: "error"
16190
+ }) : null, isHideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(ShellToolbar, {
16191
+ className: ToolbarStyle,
16192
+ leftSlot: toolbarLeftSlot,
16193
+ searchMatchedTotal,
16194
+ operations,
16195
+ onSearchNext: searchNext,
16196
+ onSearchPre: searchPrevious,
16197
+ onClear,
16198
+ onDownloadLog: downloadContent,
16199
+ onSetFontSize: (fontSize) => {
16200
+ setOptions({
16201
+ fontSize
16202
+ });
16203
+ }
16204
+ }), loading ? loadingElement || /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
16205
+ className: LoadingStyle,
16206
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
16207
+ src: Loading24GradientBlueIcon,
16208
+ iconWidth: 24,
16209
+ iconHeight: 24,
16210
+ isRotate: true
16211
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
16212
+ className: Typo.Display.d2_bold_title,
16213
+ children: t2("dovetail.connecting")
16214
+ })]
16215
+ }) : null, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
16216
+ className: cx_default(ShellStyle, className),
16217
+ style: {
16218
+ display: loading ? "none" : "block"
16219
+ },
16220
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
16221
+ ref: terminalRef,
16222
+ style: {
16223
+ height: "100%"
16224
+ },
16225
+ children
16226
+ })
16227
+ })]
16228
+ });
16229
+ });
16230
+ function addParam(url, key2, val) {
16231
+ let out = url + (url.includes("?") ? "&" : "?");
16232
+ if (!Array.isArray(val)) {
16233
+ val = [val];
16234
+ }
16235
+ out += val.map((v) => {
16236
+ if (v === null) {
16237
+ return `${encodeURIComponent(key2)}`;
16238
+ } else {
16239
+ return `${encodeURIComponent(key2)}=${encodeURIComponent(v)}`;
16240
+ }
16241
+ }).join("&");
16242
+ return out;
16243
+ }
16244
+ function addParams(url, params) {
16245
+ if (params && typeof params === "object") {
16246
+ Object.keys(params).forEach((key2) => {
16247
+ url = addParam(url, key2, params[key2]);
16248
+ });
16249
+ }
16250
+ return url;
16251
+ }
16252
+ function base64Encode(str, alphabet = "normal") {
16253
+ let buf;
16254
+ if (str === null || typeof str === "undefined") {
16255
+ return str;
16256
+ }
16257
+ if (typeof Buffer2.from === "function" && Buffer2.from !== Uint8Array.from) {
16258
+ buf = Buffer2.from(str);
16259
+ } else {
16260
+ buf = new Buffer2(str);
16261
+ }
16262
+ if (alphabet === "url") {
16263
+ const m = {
16264
+ "+": "-",
16265
+ "/": "_"
16266
+ };
16267
+ return buf.toString("base64").replace(/[+/]|=+$/g, (char) => m[char] || "");
16268
+ }
16269
+ return buf.toString("base64");
16270
+ }
16271
+ function base64DecodeToBuffer(str) {
16272
+ if (str === null || typeof str === "undefined") {
16273
+ return str;
16274
+ }
16275
+ if (typeof Buffer2.from === "function" && Buffer2.from !== Uint8Array.from) {
16276
+ return Buffer2.from(str, "base64");
16277
+ } else {
16278
+ return new Buffer2(str, "base64");
16279
+ }
16280
+ }
16281
+ function base64Decode(str) {
16282
+ return !str ? str : base64DecodeToBuffer(str.replace(/[-_]/g, (char) => char === "-" ? "+" : "/")).toString();
16283
+ }
16284
+ const BACKUP_SHELLS = [
16285
+ "windows",
16286
+ "linux"
16287
+ /* Linux */
16288
+ ];
16289
+ const COMMANDS = {
16290
+ [
16291
+ "linux"
16292
+ /* Linux */
16293
+ ]: [
16294
+ "/bin/sh",
16295
+ "-c",
16296
+ 'TERM=xterm-256color; export TERM; [ -x /bin/bash ] && ([ -x /usr/bin/script ] && /usr/bin/script -q -c "/bin/bash" /dev/null || exec /bin/bash) || exec /bin/sh'
16297
+ ],
16298
+ [
16299
+ "windows"
16300
+ /* Windows */
16301
+ ]: ["cmd"]
16302
+ };
16303
+ const PodShell = React__default.forwardRef(function PodShell2(props, ref) {
16304
+ const { pod: pod2, basePath, onSocketStatusChange } = props;
16305
+ const id = pod2.id;
16306
+ const [namespace2, name2] = useMemo(() => id.split("/"), [id]);
16307
+ const shellRef = useRef(null);
16308
+ const errorMsgRef = useRef("");
16309
+ const [osIndex, setOsIndex] = useState(0);
16310
+ const [container2, setContainer] = useState("");
16311
+ const containers2 = useMemo(() => {
16312
+ var _a, _b;
16313
+ return (((_a = pod2 == null ? void 0 : pod2._rawYaml.status) == null ? void 0 : _a.containerStatuses) || []).concat(((_b = pod2 == null ? void 0 : pod2._rawYaml.status) == null ? void 0 : _b.initContainerStatuses) || []).map((containerStatus) => containerStatus.name);
16314
+ }, [pod2]);
16315
+ const url = useMemo(() => {
16316
+ const os = BACKUP_SHELLS[osIndex];
16317
+ const protocol2 = location.protocol.includes("https") ? "wss" : "ws";
16318
+ const url2 = container2 && os ? addParams(
16319
+ `${protocol2}://${location.host}${basePath}/api/v1/namespaces/${namespace2}/pods/${name2}/exec`,
16320
+ {
16321
+ container: container2,
16322
+ stdout: "true",
16323
+ stdin: "true",
16324
+ stderr: "true",
16325
+ tty: "true",
16326
+ command: COMMANDS[
16327
+ os || "linux"
16328
+ /* Linux */
16329
+ ]
16330
+ }
16331
+ ) : "";
16332
+ return url2;
16333
+ }, [container2, name2, namespace2, osIndex, basePath]);
16334
+ const onSocketClose = useCallback((socket, term) => {
16335
+ var _a, _b;
16336
+ if (errorMsgRef.current) {
16337
+ if (osIndex + 1 < BACKUP_SHELLS.length) {
16338
+ setOsIndex(osIndex + 1);
16339
+ } else {
16340
+ term == null ? void 0 : term.writeln(`\x1B[38;2;255;82;82m${errorMsgRef.current}`);
16341
+ (_a = shellRef.current) == null ? void 0 : _a.setSocketStatus(SocketStatus.Disconnected);
16342
+ errorMsgRef.current = "";
16343
+ }
16344
+ } else {
16345
+ (_b = shellRef.current) == null ? void 0 : _b.setSocketStatus(SocketStatus.Disconnected);
16346
+ }
16347
+ }, [osIndex]);
16348
+ const onSocketMessage = useCallback((e2, socket, term) => {
16349
+ const type2 = e2.data.substr(0, 1);
16350
+ const msg = base64Decode(e2.data.substr(1));
16351
+ if (`${type2}` === "1") {
16352
+ term == null ? void 0 : term.write(msg);
16353
+ } else {
16354
+ if (`${type2}` === "3") {
16355
+ errorMsgRef.current = msg;
16356
+ }
16357
+ }
16358
+ }, []);
16359
+ const fit = useCallback(({ rows, cols }) => {
16360
+ var _a;
16361
+ const message2 = `${"4"}${base64Encode(
16362
+ JSON.stringify({
16363
+ Width: Math.floor(cols),
16364
+ Height: Math.floor(rows)
16365
+ })
16366
+ )}`;
16367
+ (_a = shellRef.current) == null ? void 0 : _a.send(message2);
16368
+ }, []);
16369
+ const encode = useCallback((input) => `${"0"}${base64Encode(input)}`, []);
16370
+ useEffect(() => {
16371
+ if (!container2 && containers2.length) {
16372
+ setContainer(containers2[0]);
16373
+ }
16374
+ }, [containers2, container2]);
16375
+ useImperativeHandle(ref, () => ({
16376
+ getAllTerminalContents: () => {
16377
+ var _a;
16378
+ return ((_a = shellRef.current) == null ? void 0 : _a.getAllTerminalContents()) || [];
16379
+ }
16380
+ }), []);
16381
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
16382
+ Shell,
16383
+ {
16384
+ ref: shellRef,
16385
+ url,
16386
+ protocols: "base64.channel.k8s.io",
16387
+ encode,
16388
+ fit,
16389
+ toolbarLeftSlot: /* @__PURE__ */ jsxRuntimeExports.jsx(
16390
+ Select,
16391
+ {
16392
+ input: {
16393
+ value: container2,
16394
+ onChange(value2) {
16395
+ setContainer(value2);
16396
+ }
16397
+ },
16398
+ style: {
16399
+ width: "256px"
16400
+ },
16401
+ size: "small",
16402
+ children: containers2.map((containerName) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, { value: containerName, label: containerName, children: containerName }, containerName))
16403
+ }
16404
+ ),
16405
+ onSocketMessage,
16406
+ onSocketClose,
16407
+ onSocketStatusChange
16408
+ }
16409
+ );
16410
+ });
14770
16411
  function PodShellModal(props) {
14771
16412
  const { pod: pod2 } = props;
14772
16413
  const { t: t2 } = useTranslation();
@@ -14788,14 +16429,14 @@ function PodShellModal(props) {
14788
16429
  destroyOnClose: true,
14789
16430
  fullscreen: true,
14790
16431
  visible: true,
14791
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16432
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
14792
16433
  PodShell,
14793
16434
  {
14794
16435
  pod: pod2,
14795
16436
  onSocketStatusChange: setSocketStatus,
14796
16437
  basePath: (globalStore == null ? void 0 : globalStore.apiUrl) || ""
14797
16438
  }
14798
- ) })
16439
+ )
14799
16440
  }
14800
16441
  );
14801
16442
  }
@@ -16055,8 +17696,8 @@ const PlainCodeStyle = "pqch97v";
16055
17696
  const ErrorMsgStyle = "eh2qjnl";
16056
17697
  const ErrorWrapperStyle = "e19q2bnp";
16057
17698
  const YamlEditorStyle = "y16u5v3w";
16058
- const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-bc70e03e.js"));
16059
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-7de94ad2.js"));
17699
+ const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-96d9a48c.js"));
17700
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-e0b05820.js"));
16060
17701
  const YamlEditorComponent = forwardRef(
16061
17702
  function YamlEditorComponent2(props, ref) {
16062
17703
  const {
@@ -18681,264 +20322,269 @@ const relationPlugin = new RelationPlugin();
18681
20322
  const ProviderPlugins = [relationPlugin, modelPlugin];
18682
20323
  const dovetailRefineI18n = i18n;
18683
20324
  export {
18684
- useGlobalStore as $,
20325
+ useDownloadYAML as $,
18685
20326
  AgeColumnRenderer as A,
18686
- PVCapacityColumnRenderer as B,
20327
+ PortMappingColumnRenderer as B,
18687
20328
  CommonSorter as C,
18688
20329
  DurationColumnRenderer as D,
18689
- PVCStorageColumnRenderer as E,
18690
- PVRefColumnRenderer as F,
18691
- PVStorageClassColumnRenderer as G,
18692
- PVPhaseColumnRenderer as H,
20330
+ ProvisionerColumnRenderer as E,
20331
+ PVCapacityColumnRenderer as F,
20332
+ PVCStorageColumnRenderer as G,
20333
+ PVRefColumnRenderer as H,
18693
20334
  IngressRulesColumnRenderer as I,
18694
- PVCRefColumnRenderer as J,
18695
- PVCSIRefColumnRenderer as K,
18696
- PVVolumeModeColumnRenderer as L,
18697
- PVAccessModeColumnRenderer as M,
20335
+ PVStorageClassColumnRenderer as J,
20336
+ PVPhaseColumnRenderer as K,
20337
+ PVCRefColumnRenderer as L,
20338
+ PVCSIRefColumnRenderer as M,
18698
20339
  NameColumnRenderer as N,
18699
- IsDefaultSCColumnRenderer as O,
20340
+ PVVolumeModeColumnRenderer as O,
18700
20341
  PlainTextNameColumnRenderer as P,
18701
- SCReclaimPolicyColumnRenderer as Q,
20342
+ PVAccessModeColumnRenderer as Q,
18702
20343
  ReplicasColumnRenderer as R,
18703
20344
  StateDisplayColumnRenderer as S,
18704
- SCAllowExpandColumnRenderer as T,
18705
- ColumnKeys as U,
18706
- addDefaultRenderToColumns as V,
20345
+ IsDefaultSCColumnRenderer as T,
20346
+ SCReclaimPolicyColumnRenderer as U,
20347
+ SCAllowExpandColumnRenderer as V,
18707
20348
  WorkloadImageColumnRenderer as W,
18708
- useEagleTable as X,
20349
+ ColumnKeys as X,
18709
20350
  YamlEditorStyle as Y,
18710
- useDownloadYAML as Z,
18711
- useEdit as _,
20351
+ addDefaultRenderToColumns as Z,
20352
+ useEagleTable as _,
18712
20353
  useApiGroupSchema as a,
18713
- ServiceInnerClusterAccessField as a$,
18714
- useOpenForm as a0,
18715
- index as a1,
18716
- WidgetErrorContent as a2,
18717
- Breadcrumb as a3,
18718
- NameInputWidget as a4,
18719
- dnsSubDomainRules as a5,
18720
- rfc1123LabelRules as a6,
18721
- rfc1035LabelRules as a7,
18722
- NamespaceSelectWidget as a8,
18723
- namespaceRules as a9,
18724
- KeyValue as aA,
18725
- KeyValueAnnotation as aB,
18726
- KeyValueSecret as aC,
18727
- Separator as aD,
18728
- YamlEditorComponent as aE,
18729
- DeleteButton as aF,
18730
- Layout as aG,
18731
- AreaType as aH,
18732
- ImageField as aI,
18733
- ReplicaField as aJ,
18734
- ConditionsField as aK,
18735
- NodeTaintsField as aL,
18736
- PodsField as aM,
18737
- JobsField as aN,
18738
- DataField as aO,
18739
- SecretDataField as aP,
18740
- StartTimeField as aQ,
18741
- ServiceTypeField as aR,
18742
- ClusterIpField as aS,
18743
- SessionAffinityField as aT,
18744
- ServicePodsField as aU,
18745
- IngressRulesTableTabField as aV,
18746
- EventsTableTabField as aW,
18747
- NamespaceField as aX,
18748
- AgeField as aY,
18749
- LabelsField as aZ,
18750
- AnnotationsField as a_,
18751
- KeyValueListWidget as aa,
18752
- MetadataForm as ab,
18753
- PageShow as ac,
18754
- Time as ad,
18755
- ConditionsTable as ae,
18756
- FormErrorAlert as af,
18757
- PodContainersTable as ag,
18758
- WorkloadDropdown as ah,
18759
- ReplicasDropdown as ai,
18760
- PodDropdown as aj,
18761
- CreateButton as ak,
18762
- ImageNames as al,
18763
- ResourceList as am,
18764
- ResourceShow as an,
18765
- ResourceForm as ao,
18766
- ResourceCRUD as ap,
18767
- WorkloadPodsTable as aq,
18768
- CronJobDropdown as ar,
18769
- K8sDropdown as as,
18770
- EditLabelDropdownMenuItem as at,
18771
- EditAnnotationDropdownMenuItem as au,
18772
- EditNodeTaintDropdownMenuItem as av,
18773
- ResourceUsageBar as aw,
18774
- WorkloadReplicasForm as ax,
18775
- WorkloadReplicas as ay,
18776
- CronjobJobsTable as az,
20354
+ LabelsField as a$,
20355
+ useEdit as a0,
20356
+ useGlobalStore as a1,
20357
+ useOpenForm as a2,
20358
+ index as a3,
20359
+ WidgetErrorContent as a4,
20360
+ Breadcrumb as a5,
20361
+ NameInputWidget as a6,
20362
+ dnsSubDomainRules as a7,
20363
+ rfc1123LabelRules as a8,
20364
+ rfc1035LabelRules as a9,
20365
+ WorkloadReplicas as aA,
20366
+ CronjobJobsTable as aB,
20367
+ KeyValue as aC,
20368
+ KeyValueAnnotation as aD,
20369
+ KeyValueSecret as aE,
20370
+ Separator as aF,
20371
+ YamlEditorComponent as aG,
20372
+ DeleteButton as aH,
20373
+ Layout as aI,
20374
+ AreaType as aJ,
20375
+ ImageField as aK,
20376
+ ReplicaField as aL,
20377
+ ConditionsField as aM,
20378
+ NodeTaintsField as aN,
20379
+ PodsField as aO,
20380
+ JobsField as aP,
20381
+ DataField as aQ,
20382
+ SecretDataField as aR,
20383
+ StartTimeField as aS,
20384
+ ServiceTypeField as aT,
20385
+ ClusterIpField as aU,
20386
+ SessionAffinityField as aV,
20387
+ ServicePodsField as aW,
20388
+ IngressRulesTableTabField as aX,
20389
+ EventsTableTabField as aY,
20390
+ NamespaceField as aZ,
20391
+ AgeField as a_,
20392
+ NamespaceSelectWidget as aa,
20393
+ namespaceRules as ab,
20394
+ KeyValueListWidget as ac,
20395
+ MetadataForm as ad,
20396
+ PageShow as ae,
20397
+ Time as af,
20398
+ ConditionsTable as ag,
20399
+ FormErrorAlert as ah,
20400
+ PodContainersTable as ai,
20401
+ WorkloadDropdown as aj,
20402
+ ReplicasDropdown as ak,
20403
+ PodDropdown as al,
20404
+ CreateButton as am,
20405
+ ImageNames as an,
20406
+ ResourceList as ao,
20407
+ ResourceShow as ap,
20408
+ ResourceForm as aq,
20409
+ ResourceCRUD as ar,
20410
+ WorkloadPodsTable as as,
20411
+ CronJobDropdown as at,
20412
+ K8sDropdown as au,
20413
+ EditLabelDropdownMenuItem as av,
20414
+ EditAnnotationDropdownMenuItem as aw,
20415
+ EditNodeTaintDropdownMenuItem as ax,
20416
+ ResourceUsageBar as ay,
20417
+ WorkloadReplicasForm as az,
18777
20418
  useSchema as b,
18778
- Tags as b$,
18779
- ServiceOutClusterAccessField as b0,
18780
- PodSelectorField as b1,
18781
- PortsTableField as b2,
18782
- DurationField as b3,
18783
- StorageClassProvisionerField as b4,
18784
- StorageClassPvField as b5,
18785
- PVCapacityField as b6,
18786
- PVCStorageField as b7,
18787
- PVRefField as b8,
18788
- PVStorageClassField as b9,
18789
- NetworkPolicyEgressRulesGroup as bA,
18790
- StorageClassPvGroup as bB,
18791
- ResourceTableGroup as bC,
18792
- ShowGroupComponent as bD,
18793
- ShowContent as bE,
18794
- DeleteManyButton as bF,
18795
- ListPage as bG,
18796
- StateTag as bH,
18797
- DrawerShow as bI,
18798
- Menu as bJ,
18799
- Table as bK,
18800
- EditButton as bL,
18801
- ReferenceLink as bM,
18802
- ResourceLink as bN,
18803
- NS_STORE_KEY as bO,
18804
- ALL_NS as bP,
18805
- useNamespacesFilter as bQ,
18806
- NamespacesFilter as bR,
18807
- FormModal as bS,
18808
- renderCommonFormFiled as bT,
18809
- RefineFormContent as bU,
18810
- RefineFormPage as bV,
18811
- SchemaStrategy as bW,
18812
- YamlForm as bX,
18813
- useRefineForm as bY,
18814
- ServiceInClusterAccessComponent as bZ,
18815
- ServiceOutClusterAccessComponent as b_,
18816
- PVPhaseField as ba,
18817
- PVVolumeModeField as bb,
18818
- PVAccessModeField as bc,
18819
- PVCPodsField as bd,
18820
- PVCRefField as be,
18821
- PVCSIRefField as bf,
18822
- IsDefaultSCField as bg,
18823
- SCReclaimPolicyField as bh,
18824
- IsSCAllowVolumeExpansionField as bi,
18825
- ResourceTableField as bj,
18826
- EventsTab as bk,
18827
- PodLogTab as bl,
18828
- BasicGroup as bm,
18829
- PodsGroup as bn,
18830
- PodContainersGroup as bo,
18831
- ServicePodsGroup as bp,
18832
- PVCPodsGroup as bq,
18833
- ConditionsGroup as br,
18834
- NodeTaintsGroup as bs,
18835
- SecretDataGroup as bt,
18836
- JobsGroup as bu,
18837
- IngressRulesGroup as bv,
18838
- PodSelectorGroup as bw,
18839
- PortsGroup as bx,
18840
- DataGroup as by,
18841
- NetworkPolicyIngressRulesGroup as bz,
18842
- useDeleteModal as c,
18843
- NodeRole as c$,
18844
- TextTags as c0,
18845
- PodLog as c1,
18846
- NetworkPolicyRulesViewer as c2,
18847
- PVVolumeModeDisplay as c3,
18848
- Tabs as c4,
18849
- ResourceSelect as c5,
18850
- PodShellModal as c6,
18851
- PodShell as c7,
18852
- ResourceTable as c8,
18853
- ErrorWrapper as c9,
18854
- PV_INIT_VALUE as cA,
18855
- PVC_INIT_VALUE as cB,
18856
- ResourceState as cC,
18857
- AccessControlAuth as cD,
18858
- Dovetail as cE,
18859
- RESOURCE_GROUP as cF,
18860
- FormContainerType as cG,
18861
- FormType as cH,
18862
- FormMode as cI,
18863
- ComponentContext as cJ,
18864
- GlobalStoreContext as cK,
18865
- ConfigsContext as cL,
18866
- IngressModel as cM,
18867
- NetworkPolicyModel as cN,
18868
- JobModel as cO,
18869
- WorkloadModel as cP,
18870
- WorkloadBaseModel as cQ,
18871
- PodModel as cR,
18872
- PodMetricsModel as cS,
18873
- ResourceModel as cT,
18874
- CronJobModel as cU,
18875
- EventModel as cV,
18876
- DeploymentModel as cW,
18877
- DaemonSetModel as cX,
18878
- StatefulSetModel as cY,
18879
- ServiceTypeEnum as cZ,
18880
- ServiceModel as c_,
18881
- ErrorContentType as ca,
18882
- BASE_INIT_VALUE as cb,
18883
- DEPLOYMENT_INIT_VALUE as cc,
18884
- CRONJOB_INIT_VALUE as cd,
18885
- DAEMONSET_INIT_VALUE as ce,
18886
- JOB_INIT_VALUE as cf,
18887
- STATEFULSET_INIT_VALUE as cg,
18888
- POD_INIT_VALUE as ch,
18889
- SERVICE_CLUSTER_IP_INIT_VALUE as ci,
18890
- SERVICE_NODE_PORT_INIT_VALUE as cj,
18891
- SERVICE_LOAD_BALANCER_INIT_VALUE as ck,
18892
- SERVICE_EXTERNAL_NAME_INIT_VALUE as cl,
18893
- SERVICE_HEADLESS_INIT_VALUE as cm,
18894
- INGRESS_INIT_VALUE as cn,
18895
- NETWORK_POLICY_INIT_VALUE as co,
18896
- CONFIG_MAP_INIT_VALUE as cp,
18897
- SERVER_INSTANCE_INIT_VALUE as cq,
18898
- REDEPLOY_TIMESTAMP_KEY as cr,
18899
- SECRET_OPAQUE_INIT_VALUE as cs,
18900
- SECRET_IMAGE_REPO_INIT_VALUE as ct,
18901
- SECRET_BASIC_AUTH_INIT_VALUE as cu,
18902
- SECRET_SSH_AUTH_INIT_VALUE as cv,
18903
- SECRET_TLS_INIT_VALUE as cw,
18904
- SECRET_CUSTOM_INIT_VALUE as cx,
18905
- NODE_INIT_VALUE as cy,
18906
- STORAGE_CLASS_INIT_VALUE as cz,
20419
+ ServiceInClusterAccessComponent as b$,
20420
+ AnnotationsField as b0,
20421
+ ServiceInnerClusterAccessField as b1,
20422
+ ServiceOutClusterAccessField as b2,
20423
+ PodSelectorField as b3,
20424
+ PortsTableField as b4,
20425
+ DurationField as b5,
20426
+ StorageClassProvisionerField as b6,
20427
+ StorageClassPvField as b7,
20428
+ PVCapacityField as b8,
20429
+ PVCStorageField as b9,
20430
+ DataGroup as bA,
20431
+ NetworkPolicyIngressRulesGroup as bB,
20432
+ NetworkPolicyEgressRulesGroup as bC,
20433
+ StorageClassPvGroup as bD,
20434
+ ResourceTableGroup as bE,
20435
+ ShowGroupComponent as bF,
20436
+ ShowContent as bG,
20437
+ DeleteManyButton as bH,
20438
+ ListPage as bI,
20439
+ StateTag as bJ,
20440
+ DrawerShow as bK,
20441
+ Menu as bL,
20442
+ Table as bM,
20443
+ EditButton as bN,
20444
+ ReferenceLink as bO,
20445
+ ResourceLink as bP,
20446
+ NS_STORE_KEY as bQ,
20447
+ ALL_NS as bR,
20448
+ useNamespacesFilter as bS,
20449
+ NamespacesFilter as bT,
20450
+ FormModal as bU,
20451
+ renderCommonFormFiled as bV,
20452
+ RefineFormContent as bW,
20453
+ RefineFormPage as bX,
20454
+ SchemaStrategy as bY,
20455
+ YamlForm as bZ,
20456
+ useRefineForm as b_,
20457
+ PVRefField as ba,
20458
+ PVStorageClassField as bb,
20459
+ PVPhaseField as bc,
20460
+ PVVolumeModeField as bd,
20461
+ PVAccessModeField as be,
20462
+ PVCPodsField as bf,
20463
+ PVCRefField as bg,
20464
+ PVCSIRefField as bh,
20465
+ IsDefaultSCField as bi,
20466
+ SCReclaimPolicyField as bj,
20467
+ IsSCAllowVolumeExpansionField as bk,
20468
+ ResourceTableField as bl,
20469
+ EventsTab as bm,
20470
+ PodLogTab as bn,
20471
+ BasicGroup as bo,
20472
+ PodsGroup as bp,
20473
+ PodContainersGroup as bq,
20474
+ ServicePodsGroup as br,
20475
+ PVCPodsGroup as bs,
20476
+ ConditionsGroup as bt,
20477
+ NodeTaintsGroup as bu,
20478
+ SecretDataGroup as bv,
20479
+ JobsGroup as bw,
20480
+ IngressRulesGroup as bx,
20481
+ PodSelectorGroup as by,
20482
+ PortsGroup as bz,
20483
+ cx_default as c,
20484
+ DaemonSetModel as c$,
20485
+ ServiceOutClusterAccessComponent as c0,
20486
+ Tags as c1,
20487
+ TextTags as c2,
20488
+ PodLog as c3,
20489
+ NetworkPolicyRulesViewer as c4,
20490
+ PVVolumeModeDisplay as c5,
20491
+ Tabs as c6,
20492
+ ResourceSelect as c7,
20493
+ SocketStatus as c8,
20494
+ Shell as c9,
20495
+ SECRET_TLS_INIT_VALUE as cA,
20496
+ SECRET_CUSTOM_INIT_VALUE as cB,
20497
+ NODE_INIT_VALUE as cC,
20498
+ STORAGE_CLASS_INIT_VALUE as cD,
20499
+ PV_INIT_VALUE as cE,
20500
+ PVC_INIT_VALUE as cF,
20501
+ ResourceState as cG,
20502
+ AccessControlAuth as cH,
20503
+ Dovetail as cI,
20504
+ RESOURCE_GROUP as cJ,
20505
+ FormContainerType as cK,
20506
+ FormType as cL,
20507
+ FormMode as cM,
20508
+ ComponentContext as cN,
20509
+ GlobalStoreContext as cO,
20510
+ ConfigsContext as cP,
20511
+ IngressModel as cQ,
20512
+ NetworkPolicyModel as cR,
20513
+ JobModel as cS,
20514
+ WorkloadModel as cT,
20515
+ WorkloadBaseModel as cU,
20516
+ PodModel as cV,
20517
+ PodMetricsModel as cW,
20518
+ ResourceModel as cX,
20519
+ CronJobModel as cY,
20520
+ EventModel as cZ,
20521
+ DeploymentModel as c_,
20522
+ PodShellModal as ca,
20523
+ PodShell as cb,
20524
+ ResourceTable as cc,
20525
+ ErrorWrapper as cd,
20526
+ ErrorContentType as ce,
20527
+ BASE_INIT_VALUE as cf,
20528
+ DEPLOYMENT_INIT_VALUE as cg,
20529
+ CRONJOB_INIT_VALUE as ch,
20530
+ DAEMONSET_INIT_VALUE as ci,
20531
+ JOB_INIT_VALUE as cj,
20532
+ STATEFULSET_INIT_VALUE as ck,
20533
+ POD_INIT_VALUE as cl,
20534
+ SERVICE_CLUSTER_IP_INIT_VALUE as cm,
20535
+ SERVICE_NODE_PORT_INIT_VALUE as cn,
20536
+ SERVICE_LOAD_BALANCER_INIT_VALUE as co,
20537
+ SERVICE_EXTERNAL_NAME_INIT_VALUE as cp,
20538
+ SERVICE_HEADLESS_INIT_VALUE as cq,
20539
+ INGRESS_INIT_VALUE as cr,
20540
+ NETWORK_POLICY_INIT_VALUE as cs,
20541
+ CONFIG_MAP_INIT_VALUE as ct,
20542
+ SERVER_INSTANCE_INIT_VALUE as cu,
20543
+ REDEPLOY_TIMESTAMP_KEY as cv,
20544
+ SECRET_OPAQUE_INIT_VALUE as cw,
20545
+ SECRET_IMAGE_REPO_INIT_VALUE as cx,
20546
+ SECRET_BASIC_AUTH_INIT_VALUE as cy,
20547
+ SECRET_SSH_AUTH_INIT_VALUE as cz,
18907
20548
  dovetailRefineI18n as d,
18908
- NodeModel as d0,
18909
- StorageClassModel as d1,
18910
- PersistentVolumeModel as d2,
18911
- PersistentVolumeClaimModel as d3,
18912
- ProviderPlugins as d4,
18913
- ModelPlugin as d5,
18914
- modelPlugin as d6,
18915
- RelationPlugin as d7,
18916
- relationPlugin as d8,
18917
- generateValueFromSchema as d9,
18918
- generateSchemaTypeValue as da,
18919
- resolveRef as db,
18920
- getApiVersion as dc,
18921
- pruneBeforeEdit as dd,
18922
- useDeleteModalOnly as e,
18923
- useFailedModal as f,
18924
- NameSpaceColumnRenderer as g,
18925
- WorkloadRestartsColumnRenderer as h,
18926
- NodeNameColumnRenderer as i,
18927
- RestartCountColumnRenderer as j,
18928
- CompletionsCountColumnRenderer as k,
18929
- ServiceTypeColumnRenderer as l,
18930
- ServiceInClusterAccessTitle as m,
18931
- ServiceInClusterAccessColumnRenderer as n,
18932
- ServiceOutClusterAccessTitle as o,
18933
- ServiceOutClusterAccessColumnRenderer as p,
18934
- PodWorkloadColumnRenderer as q,
20549
+ StatefulSetModel as d0,
20550
+ ServiceTypeEnum as d1,
20551
+ ServiceModel as d2,
20552
+ NodeRole as d3,
20553
+ NodeModel as d4,
20554
+ StorageClassModel as d5,
20555
+ PersistentVolumeModel as d6,
20556
+ PersistentVolumeClaimModel as d7,
20557
+ ProviderPlugins as d8,
20558
+ ModelPlugin as d9,
20559
+ modelPlugin as da,
20560
+ RelationPlugin as db,
20561
+ relationPlugin as dc,
20562
+ generateValueFromSchema as dd,
20563
+ generateSchemaTypeValue as de,
20564
+ resolveRef as df,
20565
+ getApiVersion as dg,
20566
+ pruneBeforeEdit as dh,
20567
+ matchSelector as di,
20568
+ useDeleteModal as e,
20569
+ useDeleteModalOnly as f,
20570
+ useFailedModal as g,
20571
+ NameSpaceColumnRenderer as h,
20572
+ WorkloadRestartsColumnRenderer as i,
20573
+ jsxRuntimeExports as j,
20574
+ NodeNameColumnRenderer as k,
20575
+ RestartCountColumnRenderer as l,
20576
+ CompletionsCountColumnRenderer as m,
20577
+ ServiceTypeColumnRenderer as n,
20578
+ ServiceInClusterAccessTitle as o,
20579
+ ServiceInClusterAccessColumnRenderer as p,
20580
+ ServiceOutClusterAccessTitle as q,
18935
20581
  routerProvider as r,
18936
- IngressDefaultBackendColumnRenderer as s,
18937
- IngressClassColumnRenderer as t,
20582
+ ServiceOutClusterAccessColumnRenderer as s,
20583
+ PodWorkloadColumnRenderer as t,
18938
20584
  useNamespaceRefineFilter as u,
18939
- IngressTlsColumnRenderer as v,
18940
- PodContainersNumColumnRenderer as w,
18941
- DataKeysColumnRenderer as x,
18942
- PortMappingColumnRenderer as y,
18943
- ProvisionerColumnRenderer as z
20585
+ IngressDefaultBackendColumnRenderer as v,
20586
+ IngressClassColumnRenderer as w,
20587
+ IngressTlsColumnRenderer as x,
20588
+ PodContainersNumColumnRenderer as y,
20589
+ DataKeysColumnRenderer as z
18944
20590
  };