@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.1 → 1.5.0-alpha.2

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 (45) hide show
  1. package/dist/{index-BFIWg9xn.mjs → index-BYGA57EJ.mjs} +2096 -340
  2. package/dist/index-BYGA57EJ.mjs.map +1 -0
  3. package/dist/{index-_9cT8fBl.mjs → index-DoND5hQh.mjs} +2 -2
  4. package/dist/{index-_9cT8fBl.mjs.map → index-DoND5hQh.mjs.map} +1 -1
  5. package/dist/openapi-k8s-toolkit.es.js +1 -1
  6. package/dist/openapi-k8s-toolkit.umd.js +2093 -337
  7. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  8. package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/DefaultValueButton.d.ts +10 -0
  9. package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/DefaultValueButton.test.d.ts +1 -0
  10. package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/index.d.ts +1 -0
  11. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/ExampleTooltipIcon.d.ts +6 -0
  12. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/ExampleTooltipIcon.test.d.ts +1 -0
  13. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/index.d.ts +1 -0
  14. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/styled.d.ts +380 -0
  15. package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/NullToggleButton.d.ts +9 -0
  16. package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/NullToggleButton.test.d.ts +1 -0
  17. package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/index.d.ts +1 -0
  18. package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +3 -0
  19. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -0
  20. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.test.d.ts +1 -0
  21. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +3 -0
  22. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +1 -0
  23. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +5 -0
  24. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +3 -0
  25. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +6 -6
  26. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +3 -0
  27. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +3 -0
  28. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/buildPlaceholder.d.ts +10 -0
  29. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/buildPlaceholder.test.d.ts +1 -0
  30. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useDefaultValueButton.d.ts +11 -0
  31. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useDefaultValueButton.test.d.ts +1 -0
  32. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useNullToggleButton.d.ts +16 -0
  33. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useNullToggleButton.test.d.ts +1 -0
  34. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +17 -4
  35. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +2 -2
  36. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts +4 -4
  37. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/extractDefaultValue.d.ts +4 -0
  38. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/extractDefaultValue.test.d.ts +1 -0
  39. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/getSortedPropertyKeys.d.ts +2 -4
  40. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +37 -29
  41. package/dist/types/localTypes/bff/form.d.ts +4 -6
  42. package/dist/types/localTypes/formSchema.d.ts +27 -0
  43. package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +2 -2
  44. package/package.json +1 -1
  45. package/dist/index-BFIWg9xn.mjs.map +0 -1
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
3
3
  import React__default, { useState, Component, useRef, useReducer, useEffect, useCallback, useMemo, createContext, useContext, useLayoutEffect, Fragment, memo, createElement, isValidElement, cloneElement, useInsertionEffect, useSyncExternalStore, forwardRef, useImperativeHandle, PureComponent, Children, lazy, Suspense } from 'react';
4
4
  import { Input, Tree, Modal, Alert, theme, Select, Tag, Flex, Typography, Result, Breadcrumb, Spin, Menu, Tooltip as Tooltip$1, Space, Button, ConfigProvider, Popover, Card as Card$2, Row, Col, Tabs, notification, Form, Switch, Segmented, Table, Progress, Statistic, message, Checkbox, List as List$1, InputNumber, Upload, Dropdown, Slider, App, DatePicker, Radio, Empty } from 'antd';
5
5
  import * as AntIcons from '@ant-design/icons';
6
- import { LoadingOutlined, ExclamationCircleFilled, CloseCircleFilled, CheckCircleFilled, PlusOutlined, ClearOutlined, MinusOutlined, CaretDownOutlined, CaretRightOutlined, InfoCircleOutlined, SearchOutlined, EyeOutlined, EyeInvisibleOutlined, CopyOutlined, InboxOutlined, DeleteOutlined, WarningOutlined, MoreOutlined, DownOutlined, QuestionCircleOutlined, CheckOutlined, CloseOutlined, BugOutlined, EllipsisOutlined, PoweroffOutlined, FullscreenExitOutlined, FullscreenOutlined, SettingOutlined, ReloadOutlined } from '@ant-design/icons';
6
+ import { LoadingOutlined, ExclamationCircleFilled, CloseCircleFilled, CheckCircleFilled, PlusOutlined, ClearOutlined, MinusOutlined, CaretDownOutlined, CaretRightOutlined, BulbOutlined, InfoCircleOutlined, SearchOutlined, EyeOutlined, EyeInvisibleOutlined, CopyOutlined, InboxOutlined, DeleteOutlined, WarningOutlined, MoreOutlined, DownOutlined, QuestionCircleOutlined, CheckOutlined, CloseOutlined, BugOutlined, EllipsisOutlined, PoweroffOutlined, FullscreenExitOutlined, FullscreenOutlined, SettingOutlined, ReloadOutlined } from '@ant-design/icons';
7
7
  import { useNavigate, useSearchParams, useLocation, Link, useParams } from 'react-router-dom';
8
8
  import { useQuery, useQueries, useQueryClient } from '@tanstack/react-query';
9
9
  import RFB from 'novnc-next';
@@ -1578,7 +1578,7 @@ const CustomTreeProvider = styled.div`
1578
1578
  justify-content: center;
1579
1579
  }
1580
1580
  `;
1581
- const Styled$K = {
1581
+ const Styled$L = {
1582
1582
  CustomTreeProvider
1583
1583
  };
1584
1584
 
@@ -1643,7 +1643,7 @@ const TreeWithSearch = ({ treeData, onSelect }) => {
1643
1643
  });
1644
1644
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1645
1645
  /* @__PURE__ */ jsxRuntimeExports.jsx(Search$1, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
1646
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$K.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1646
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$L.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1647
1647
  Tree,
1648
1648
  {
1649
1649
  treeData: loop(treeData),
@@ -1676,12 +1676,12 @@ function bind(fn, thisArg) {
1676
1676
 
1677
1677
  // utils is a library of generic helper functions non-specific to axios
1678
1678
 
1679
- const {toString: toString$2} = Object.prototype;
1679
+ const {toString: toString$4} = Object.prototype;
1680
1680
  const {getPrototypeOf: getPrototypeOf$1} = Object;
1681
1681
  const {iterator, toStringTag} = Symbol;
1682
1682
 
1683
1683
  const kindOf$1 = (cache => thing => {
1684
- const str = toString$2.call(thing);
1684
+ const str = toString$4.call(thing);
1685
1685
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
1686
1686
  })(Object.create(null));
1687
1687
 
@@ -1699,7 +1699,7 @@ const typeOfTest = type => thing => typeof thing === type;
1699
1699
  *
1700
1700
  * @returns {boolean} True if value is an Array, otherwise false
1701
1701
  */
1702
- const {isArray} = Array;
1702
+ const {isArray: isArray$4} = Array;
1703
1703
 
1704
1704
  /**
1705
1705
  * Determine if a value is undefined
@@ -1719,7 +1719,7 @@ const isUndefined = typeOfTest('undefined');
1719
1719
  */
1720
1720
  function isBuffer(val) {
1721
1721
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
1722
- && isFunction$2(val.constructor.isBuffer) && val.constructor.isBuffer(val);
1722
+ && isFunction$4(val.constructor.isBuffer) && val.constructor.isBuffer(val);
1723
1723
  }
1724
1724
 
1725
1725
  /**
@@ -1764,7 +1764,7 @@ const isString$1 = typeOfTest('string');
1764
1764
  * @param {*} val The value to test
1765
1765
  * @returns {boolean} True if value is a Function, otherwise false
1766
1766
  */
1767
- const isFunction$2 = typeOfTest('function');
1767
+ const isFunction$4 = typeOfTest('function');
1768
1768
 
1769
1769
  /**
1770
1770
  * Determine if a value is a Number
@@ -1782,7 +1782,7 @@ const isNumber$1 = typeOfTest('number');
1782
1782
  *
1783
1783
  * @returns {boolean} True if value is an Object, otherwise false
1784
1784
  */
1785
- const isObject$5 = (thing) => thing !== null && typeof thing === 'object';
1785
+ const isObject$8 = (thing) => thing !== null && typeof thing === 'object';
1786
1786
 
1787
1787
  /**
1788
1788
  * Determine if a value is a Boolean
@@ -1817,7 +1817,7 @@ const isPlainObject$6 = (val) => {
1817
1817
  */
1818
1818
  const isEmptyObject = (val) => {
1819
1819
  // Early return for non-objects or Buffers to prevent RangeError
1820
- if (!isObject$5(val) || isBuffer(val)) {
1820
+ if (!isObject$8(val) || isBuffer(val)) {
1821
1821
  return false;
1822
1822
  }
1823
1823
 
@@ -1872,7 +1872,7 @@ const isFileList = kindOfTest('FileList');
1872
1872
  *
1873
1873
  * @returns {boolean} True if value is a Stream, otherwise false
1874
1874
  */
1875
- const isStream = (val) => isObject$5(val) && isFunction$2(val.pipe);
1875
+ const isStream = (val) => isObject$8(val) && isFunction$4(val.pipe);
1876
1876
 
1877
1877
  /**
1878
1878
  * Determine if a value is a FormData
@@ -1885,10 +1885,10 @@ const isFormData = (thing) => {
1885
1885
  let kind;
1886
1886
  return thing && (
1887
1887
  (typeof FormData === 'function' && thing instanceof FormData) || (
1888
- isFunction$2(thing.append) && (
1888
+ isFunction$4(thing.append) && (
1889
1889
  (kind = kindOf$1(thing)) === 'formdata' ||
1890
1890
  // detect form-data instance
1891
- (kind === 'object' && isFunction$2(thing.toString) && thing.toString() === '[object FormData]')
1891
+ (kind === 'object' && isFunction$4(thing.toString) && thing.toString() === '[object FormData]')
1892
1892
  )
1893
1893
  )
1894
1894
  )
@@ -1945,7 +1945,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
1945
1945
  obj = [obj];
1946
1946
  }
1947
1947
 
1948
- if (isArray(obj)) {
1948
+ if (isArray$4(obj)) {
1949
1949
  // Iterate over array values
1950
1950
  for (i = 0, l = obj.length; i < l; i++) {
1951
1951
  fn.call(null, obj[i], i, obj);
@@ -2021,7 +2021,7 @@ function merge$2(/* obj1, obj2, obj3, ... */) {
2021
2021
  result[targetKey] = merge$2(result[targetKey], val);
2022
2022
  } else if (isPlainObject$6(val)) {
2023
2023
  result[targetKey] = merge$2({}, val);
2024
- } else if (isArray(val)) {
2024
+ } else if (isArray$4(val)) {
2025
2025
  result[targetKey] = val.slice();
2026
2026
  } else if (!skipUndefined || !isUndefined(val)) {
2027
2027
  result[targetKey] = val;
@@ -2046,7 +2046,7 @@ function merge$2(/* obj1, obj2, obj3, ... */) {
2046
2046
  */
2047
2047
  const extend$1 = (a, b, thisArg, {allOwnKeys}= {}) => {
2048
2048
  forEach(b, (val, key) => {
2049
- if (thisArg && isFunction$2(val)) {
2049
+ if (thisArg && isFunction$4(val)) {
2050
2050
  a[key] = bind(val, thisArg);
2051
2051
  } else {
2052
2052
  a[key] = val;
@@ -2151,7 +2151,7 @@ const endsWith = (str, searchString, position) => {
2151
2151
  */
2152
2152
  const toArray$3 = (thing) => {
2153
2153
  if (!thing) return null;
2154
- if (isArray(thing)) return thing;
2154
+ if (isArray$4(thing)) return thing;
2155
2155
  let i = thing.length;
2156
2156
  if (!isNumber$1(i)) return null;
2157
2157
  const arr = new Array(i);
@@ -2229,7 +2229,7 @@ const toCamelCase = str => {
2229
2229
  };
2230
2230
 
2231
2231
  /* Creating a function that will check if an object has a property. */
2232
- const hasOwnProperty$1 = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
2232
+ const hasOwnProperty$5 = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
2233
2233
 
2234
2234
  /**
2235
2235
  * Determine if a value is a RegExp object
@@ -2262,13 +2262,13 @@ const reduceDescriptors = (obj, reducer) => {
2262
2262
  const freezeMethods = (obj) => {
2263
2263
  reduceDescriptors(obj, (descriptor, name) => {
2264
2264
  // skip restricted props in strict mode
2265
- if (isFunction$2(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
2265
+ if (isFunction$4(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
2266
2266
  return false;
2267
2267
  }
2268
2268
 
2269
2269
  const value = obj[name];
2270
2270
 
2271
- if (!isFunction$2(value)) return;
2271
+ if (!isFunction$4(value)) return;
2272
2272
 
2273
2273
  descriptor.enumerable = false;
2274
2274
 
@@ -2294,7 +2294,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
2294
2294
  });
2295
2295
  };
2296
2296
 
2297
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
2297
+ isArray$4(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
2298
2298
 
2299
2299
  return obj;
2300
2300
  };
@@ -2315,7 +2315,7 @@ const toFiniteNumber$1 = (value, defaultValue) => {
2315
2315
  * @returns {boolean}
2316
2316
  */
2317
2317
  function isSpecCompliantForm(thing) {
2318
- return !!(thing && isFunction$2(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
2318
+ return !!(thing && isFunction$4(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
2319
2319
  }
2320
2320
 
2321
2321
  const toJSONObject = (obj) => {
@@ -2323,7 +2323,7 @@ const toJSONObject = (obj) => {
2323
2323
 
2324
2324
  const visit = (source, i) => {
2325
2325
 
2326
- if (isObject$5(source)) {
2326
+ if (isObject$8(source)) {
2327
2327
  if (stack.indexOf(source) >= 0) {
2328
2328
  return;
2329
2329
  }
@@ -2335,7 +2335,7 @@ const toJSONObject = (obj) => {
2335
2335
 
2336
2336
  if(!('toJSON' in source)) {
2337
2337
  stack[i] = source;
2338
- const target = isArray(source) ? [] : {};
2338
+ const target = isArray$4(source) ? [] : {};
2339
2339
 
2340
2340
  forEach(source, (value, key) => {
2341
2341
  const reducedValue = visit(value, i + 1);
@@ -2357,7 +2357,7 @@ const toJSONObject = (obj) => {
2357
2357
  const isAsyncFn = kindOfTest('AsyncFunction');
2358
2358
 
2359
2359
  const isThenable = (thing) =>
2360
- thing && (isObject$5(thing) || isFunction$2(thing)) && isFunction$2(thing.then) && isFunction$2(thing.catch);
2360
+ thing && (isObject$8(thing) || isFunction$4(thing)) && isFunction$4(thing.then) && isFunction$4(thing.catch);
2361
2361
 
2362
2362
  // original code
2363
2363
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
@@ -2381,7 +2381,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
2381
2381
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
2382
2382
  })(
2383
2383
  typeof setImmediate === 'function',
2384
- isFunction$2(_global.postMessage)
2384
+ isFunction$4(_global.postMessage)
2385
2385
  );
2386
2386
 
2387
2387
  const asap = typeof queueMicrotask !== 'undefined' ?
@@ -2390,11 +2390,11 @@ const asap = typeof queueMicrotask !== 'undefined' ?
2390
2390
  // *********************
2391
2391
 
2392
2392
 
2393
- const isIterable = (thing) => thing != null && isFunction$2(thing[iterator]);
2393
+ const isIterable = (thing) => thing != null && isFunction$4(thing[iterator]);
2394
2394
 
2395
2395
 
2396
2396
  const utils$1 = {
2397
- isArray,
2397
+ isArray: isArray$4,
2398
2398
  isArrayBuffer,
2399
2399
  isBuffer,
2400
2400
  isFormData,
@@ -2402,7 +2402,7 @@ const utils$1 = {
2402
2402
  isString: isString$1,
2403
2403
  isNumber: isNumber$1,
2404
2404
  isBoolean: isBoolean$1,
2405
- isObject: isObject$5,
2405
+ isObject: isObject$8,
2406
2406
  isPlainObject: isPlainObject$6,
2407
2407
  isEmptyObject,
2408
2408
  isReadableStream,
@@ -2414,7 +2414,7 @@ const utils$1 = {
2414
2414
  isFile,
2415
2415
  isBlob,
2416
2416
  isRegExp,
2417
- isFunction: isFunction$2,
2417
+ isFunction: isFunction$4,
2418
2418
  isStream,
2419
2419
  isURLSearchParams,
2420
2420
  isTypedArray: isTypedArray$1,
@@ -2433,8 +2433,8 @@ const utils$1 = {
2433
2433
  forEachEntry,
2434
2434
  matchAll,
2435
2435
  isHTMLForm,
2436
- hasOwnProperty: hasOwnProperty$1,
2437
- hasOwnProp: hasOwnProperty$1, // an alias to avoid ESLint no-prototype-builtins detection
2436
+ hasOwnProperty: hasOwnProperty$5,
2437
+ hasOwnProp: hasOwnProperty$5, // an alias to avoid ESLint no-prototype-builtins detection
2438
2438
  reduceDescriptors,
2439
2439
  freezeMethods,
2440
2440
  toObjectSet,
@@ -6787,7 +6787,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
6787
6787
 
6788
6788
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
6789
6789
 
6790
- const {isFunction: isFunction$1} = utils$1;
6790
+ const {isFunction: isFunction$3} = utils$1;
6791
6791
 
6792
6792
  const globalFetchAPI = (({Request, Response}) => ({
6793
6793
  Request, Response
@@ -6812,15 +6812,15 @@ const factory = (env) => {
6812
6812
  }, globalFetchAPI, env);
6813
6813
 
6814
6814
  const {fetch: envFetch, Request, Response} = env;
6815
- const isFetchSupported = envFetch ? isFunction$1(envFetch) : typeof fetch === 'function';
6816
- const isRequestSupported = isFunction$1(Request);
6817
- const isResponseSupported = isFunction$1(Response);
6815
+ const isFetchSupported = envFetch ? isFunction$3(envFetch) : typeof fetch === 'function';
6816
+ const isRequestSupported = isFunction$3(Request);
6817
+ const isResponseSupported = isFunction$3(Response);
6818
6818
 
6819
6819
  if (!isFetchSupported) {
6820
6820
  return false;
6821
6821
  }
6822
6822
 
6823
- const isReadableStreamSupported = isFetchSupported && isFunction$1(ReadableStream$1);
6823
+ const isReadableStreamSupported = isFetchSupported && isFunction$3(ReadableStream$1);
6824
6824
 
6825
6825
  const encodeText = isFetchSupported && (typeof TextEncoder$1 === 'function' ?
6826
6826
  ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) :
@@ -8258,14 +8258,14 @@ const ContentContainer = styled.div`
8258
8258
  display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
8259
8259
  flex-flow: ${({ $flexFlow }) => $flexFlow};
8260
8260
  `;
8261
- const Styled$J = {
8261
+ const Styled$K = {
8262
8262
  ContentContainer
8263
8263
  };
8264
8264
 
8265
8265
  const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
8266
8266
  const { token } = theme.useToken();
8267
8267
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8268
- Styled$J.ContentContainer,
8268
+ Styled$K.ContentContainer,
8269
8269
  {
8270
8270
  $flexGrow: flexGrow,
8271
8271
  $bgColor: token.colorBgContainer,
@@ -8326,13 +8326,13 @@ const UncontrolledSelect$1 = styled(Select)`
8326
8326
  padding-inline: 8px;
8327
8327
  }
8328
8328
  `;
8329
- const Styled$I = {
8329
+ const Styled$J = {
8330
8330
  UncontrolledSelect: UncontrolledSelect$1
8331
8331
  };
8332
8332
 
8333
8333
  const UncontrolledSelect = (props) => {
8334
8334
  const { isCursorPointer } = props;
8335
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$I.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
8335
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$J.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
8336
8336
  };
8337
8337
 
8338
8338
  const CustomSelect$5 = styled(Select)`
@@ -8380,13 +8380,13 @@ const CustomSelect$5 = styled(Select)`
8380
8380
  margin-block: 0 !important;
8381
8381
  }
8382
8382
  `;
8383
- const Styled$H = {
8383
+ const Styled$I = {
8384
8384
  CustomSelect: CustomSelect$5
8385
8385
  };
8386
8386
 
8387
8387
  const CustomSelect$4 = (props) => {
8388
8388
  const { paddingContainerEnd, ...rest } = props;
8389
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
8389
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$I.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
8390
8390
  };
8391
8391
 
8392
8392
  const CursorPointerTag = styled(Tag)`
@@ -8536,7 +8536,7 @@ const Abbr$2 = styled.span`
8536
8536
  height: min-content;
8537
8537
  margin-right: 4px;
8538
8538
  `;
8539
- const Styled$G = {
8539
+ const Styled$H = {
8540
8540
  Abbr: Abbr$2
8541
8541
  };
8542
8542
 
@@ -8576,7 +8576,7 @@ const ResourceLink = ({
8576
8576
  baseFactoriesMapping
8577
8577
  });
8578
8578
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { align: "center", gap: 8, children: [
8579
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$G.Abbr, { $bgColor: bgColor, children: abbr }),
8579
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.Abbr, { $bgColor: bgColor, children: abbr }),
8580
8580
  resourceLink ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8581
8581
  Typography.Link,
8582
8582
  {
@@ -9660,7 +9660,7 @@ const NoWrapContainer = styled.div`
9660
9660
  flex-wrap: nowrap !important;
9661
9661
  }
9662
9662
  `;
9663
- const Styled$F = {
9663
+ const Styled$G = {
9664
9664
  PositionRelativeContainer,
9665
9665
  FullWidthContainer,
9666
9666
  NoWrapContainer
@@ -9703,9 +9703,9 @@ const CollapsibleBreadcrumb = ({ items }) => {
9703
9703
  };
9704
9704
  return [firstItem, ellipsisItem, lastItem];
9705
9705
  };
9706
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$F.PositionRelativeContainer, { children: [
9707
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$F.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
9708
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$F.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
9706
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$G.PositionRelativeContainer, { children: [
9707
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$G.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
9708
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$G.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
9709
9709
  ] });
9710
9710
  };
9711
9711
 
@@ -9713,12 +9713,12 @@ const HeightDiv$1 = styled.div`
9713
9713
  min-height: 22px;
9714
9714
  width: 100%;
9715
9715
  `;
9716
- const Styled$E = {
9716
+ const Styled$F = {
9717
9717
  HeightDiv: HeightDiv$1
9718
9718
  };
9719
9719
 
9720
9720
  const ManageableBreadcrumbs = ({ data }) => {
9721
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
9721
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$F.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
9722
9722
  };
9723
9723
 
9724
9724
  const prepareTemplate = ({
@@ -9777,7 +9777,7 @@ const HeightDiv = styled.div`
9777
9777
  min-height: 22px;
9778
9778
  width: 100%;
9779
9779
  `;
9780
- const Styled$D = {
9780
+ const Styled$E = {
9781
9781
  HeightDiv
9782
9782
  };
9783
9783
 
@@ -9807,7 +9807,7 @@ const ManageableBreadcrumbsProvider = ({
9807
9807
  return null;
9808
9808
  }
9809
9809
  if (rawDataLoading) {
9810
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
9810
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
9811
9811
  }
9812
9812
  if (!rawData) {
9813
9813
  return null;
@@ -9823,7 +9823,7 @@ const ManageableBreadcrumbsProvider = ({
9823
9823
  fallbackIdToCompare
9824
9824
  });
9825
9825
  if (!result) {
9826
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.HeightDiv, {});
9826
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.HeightDiv, {});
9827
9827
  }
9828
9828
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result }, JSON.stringify(idToCompare));
9829
9829
  };
@@ -9851,7 +9851,7 @@ const CustomMenu = styled(Menu)`
9851
9851
  margin: 0 !important;
9852
9852
  }
9853
9853
  `;
9854
- const Styled$C = {
9854
+ const Styled$D = {
9855
9855
  CustomMenu
9856
9856
  };
9857
9857
 
@@ -9878,7 +9878,7 @@ const ManageableSidebar = ({ data, noMarginTop }) => {
9878
9878
  setSelectedKeys(data.selectedKeys);
9879
9879
  }, [data.selectedKeys]);
9880
9880
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9881
- Styled$C.CustomMenu,
9881
+ Styled$D.CustomMenu,
9882
9882
  {
9883
9883
  selectedKeys,
9884
9884
  onSelect: () => {
@@ -34452,7 +34452,7 @@ const ShortenedText = styled.div`
34452
34452
  white-space: nowrap;
34453
34453
  text-overflow: ellipsis;
34454
34454
  `;
34455
- const Styled$B = {
34455
+ const Styled$C = {
34456
34456
  ShortenedText
34457
34457
  };
34458
34458
 
@@ -34461,7 +34461,7 @@ const ShortenedTextWithTooltip = ({ text, trimLength, maxWidth = 200 }) => {
34461
34461
  const trimmedText = text.substring(0, trimLength);
34462
34462
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: text, placement: "top", children: trimmedText });
34463
34463
  }
34464
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.ShortenedText, { $maxWidth: maxWidth, children: text }) });
34464
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.ShortenedText, { $maxWidth: maxWidth, children: text }) });
34465
34465
  };
34466
34466
 
34467
34467
  const FilterDropdown = ({
@@ -34612,16 +34612,16 @@ const TooltipTag = styled(Tag)`
34612
34612
  overflow: hidden;
34613
34613
  text-overflow: ellipsis;
34614
34614
  `;
34615
- const Styled$A = {
34615
+ const Styled$B = {
34616
34616
  TableTag,
34617
34617
  TooltipTagsContainer,
34618
34618
  TooltipTag
34619
34619
  };
34620
34620
 
34621
34621
  const TrimmedTags = ({ tags, trimLength }) => {
34622
- const renderTableTags = (tags2) => tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.TableTag, { children: tag }, tag));
34622
+ const renderTableTags = (tags2) => tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.TableTag, { children: tag }, tag));
34623
34623
  const popoverTheme = { components: { Popover: { zIndexPopup: 2100 } } };
34624
- const renderTooltipTags = (tags2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.TooltipTagsContainer, { vertical: true, gap: 4, children: tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.TooltipTag, { children: tag }, tag)) });
34624
+ const renderTooltipTags = (tags2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.TooltipTagsContainer, { vertical: true, gap: 4, children: tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.TooltipTag, { children: tag }, tag)) });
34625
34625
  if (trimLength && trimLength < tags.length) {
34626
34626
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { wrap: "nowrap", gap: "4px", children: [
34627
34627
  renderTableTags(tags.slice(0, trimLength)),
@@ -34630,7 +34630,7 @@ const TrimmedTags = ({ tags, trimLength }) => {
34630
34630
  {
34631
34631
  content: renderTooltipTags(tags.slice(trimLength)),
34632
34632
  styles: { root: { maxWidth: "min(95vw, 900px)" } },
34633
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$A.TableTag, { children: [
34633
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$B.TableTag, { children: [
34634
34634
  "+",
34635
34635
  tags.length - trimLength
34636
34636
  ] }, "more")
@@ -36458,7 +36458,7 @@ function curry$2(fn) {
36458
36458
  };
36459
36459
  }
36460
36460
 
36461
- function isObject$4(value) {
36461
+ function isObject$7(value) {
36462
36462
  return {}.toString.call(value).includes('Object');
36463
36463
  }
36464
36464
 
@@ -36466,36 +36466,36 @@ function isEmpty$1(obj) {
36466
36466
  return !Object.keys(obj).length;
36467
36467
  }
36468
36468
 
36469
- function isFunction(value) {
36469
+ function isFunction$2(value) {
36470
36470
  return typeof value === 'function';
36471
36471
  }
36472
36472
 
36473
- function hasOwnProperty(object, property) {
36473
+ function hasOwnProperty$4(object, property) {
36474
36474
  return Object.prototype.hasOwnProperty.call(object, property);
36475
36475
  }
36476
36476
 
36477
36477
  function validateChanges(initial, changes) {
36478
- if (!isObject$4(changes)) errorHandler$1('changeType');
36478
+ if (!isObject$7(changes)) errorHandler$1('changeType');
36479
36479
  if (Object.keys(changes).some(function (field) {
36480
- return !hasOwnProperty(initial, field);
36480
+ return !hasOwnProperty$4(initial, field);
36481
36481
  })) errorHandler$1('changeField');
36482
36482
  return changes;
36483
36483
  }
36484
36484
 
36485
36485
  function validateSelector(selector) {
36486
- if (!isFunction(selector)) errorHandler$1('selectorType');
36486
+ if (!isFunction$2(selector)) errorHandler$1('selectorType');
36487
36487
  }
36488
36488
 
36489
36489
  function validateHandler(handler) {
36490
- if (!(isFunction(handler) || isObject$4(handler))) errorHandler$1('handlerType');
36491
- if (isObject$4(handler) && Object.values(handler).some(function (_handler) {
36492
- return !isFunction(_handler);
36490
+ if (!(isFunction$2(handler) || isObject$7(handler))) errorHandler$1('handlerType');
36491
+ if (isObject$7(handler) && Object.values(handler).some(function (_handler) {
36492
+ return !isFunction$2(_handler);
36493
36493
  })) errorHandler$1('handlersType');
36494
36494
  }
36495
36495
 
36496
36496
  function validateInitial(initial) {
36497
36497
  if (!initial) errorHandler$1('initialIsRequired');
36498
- if (!isObject$4(initial)) errorHandler$1('initialType');
36498
+ if (!isObject$7(initial)) errorHandler$1('initialType');
36499
36499
  if (isEmpty$1(initial)) errorHandler$1('initialContent');
36500
36500
  }
36501
36501
 
@@ -36550,7 +36550,7 @@ function create(initial) {
36550
36550
  }
36551
36551
 
36552
36552
  function extractChanges(state, causedChanges) {
36553
- return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;
36553
+ return isFunction$2(causedChanges) ? causedChanges(state.current) : causedChanges;
36554
36554
  }
36555
36555
 
36556
36556
  function updateState(state, changes) {
@@ -36559,7 +36559,7 @@ function updateState(state, changes) {
36559
36559
  }
36560
36560
 
36561
36561
  function didStateUpdate(state, handler, changes) {
36562
- isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {
36562
+ isFunction$2(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {
36563
36563
  var _handler$field;
36564
36564
 
36565
36565
  return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);
@@ -36595,7 +36595,7 @@ function curry$1(fn) {
36595
36595
  };
36596
36596
  }
36597
36597
 
36598
- function isObject$3(value) {
36598
+ function isObject$6(value) {
36599
36599
  return {}.toString.call(value).includes('Object');
36600
36600
  }
36601
36601
 
@@ -36607,7 +36607,7 @@ function isObject$3(value) {
36607
36607
 
36608
36608
  function validateConfig(config) {
36609
36609
  if (!config) errorHandler('configIsRequired');
36610
- if (!isObject$3(config)) errorHandler('configType');
36610
+ if (!isObject$6(config)) errorHandler('configType');
36611
36611
 
36612
36612
  if (config.urls) {
36613
36613
  informAboutDeprecation();
@@ -39085,14 +39085,14 @@ const string$1 = {
39085
39085
  }
39086
39086
  };
39087
39087
 
39088
- const nullTag = {
39088
+ const nullTag$1 = {
39089
39089
  identify: value => value == null,
39090
39090
  createNode: () => new Scalar(null),
39091
39091
  default: true,
39092
39092
  tag: 'tag:yaml.org,2002:null',
39093
39093
  test: /^(?:~|[Nn]ull|NULL)?$/,
39094
39094
  resolve: () => new Scalar(null),
39095
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
39095
+ stringify: ({ source }, ctx) => typeof source === 'string' && nullTag$1.test.test(source)
39096
39096
  ? source
39097
39097
  : ctx.options.nullStr
39098
39098
  };
@@ -39214,7 +39214,7 @@ const schema$2 = [
39214
39214
  map$2,
39215
39215
  seq,
39216
39216
  string$1,
39217
- nullTag,
39217
+ nullTag$1,
39218
39218
  boolTag,
39219
39219
  intOct$1,
39220
39220
  int$1,
@@ -39796,7 +39796,7 @@ const schema = [
39796
39796
  map$2,
39797
39797
  seq,
39798
39798
  string$1,
39799
- nullTag,
39799
+ nullTag$1,
39800
39800
  trueTag,
39801
39801
  falseTag,
39802
39802
  intBin,
@@ -39836,7 +39836,7 @@ const tagsByName = {
39836
39836
  intTime,
39837
39837
  map: map$2,
39838
39838
  merge,
39839
- null: nullTag,
39839
+ null: nullTag$1,
39840
39840
  omap,
39841
39841
  pairs,
39842
39842
  seq,
@@ -43766,7 +43766,7 @@ const BigText$1 = styled.div`
43766
43766
  font-size: 16px;
43767
43767
  line-height: 24px;
43768
43768
  `;
43769
- const Styled$z = {
43769
+ const Styled$A = {
43770
43770
  BorderRadiusContainer: BorderRadiusContainer$1,
43771
43771
  ControlsRowContainer: ControlsRowContainer$1,
43772
43772
  BigText: BigText$1
@@ -43996,7 +43996,7 @@ const YamlEditorSingleton$1 = ({
43996
43996
  };
43997
43997
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
43998
43998
  contextHolder,
43999
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
43999
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
44000
44000
  Ft$1,
44001
44001
  {
44002
44002
  defaultLanguage: "yaml",
@@ -44021,7 +44021,7 @@ const YamlEditorSingleton$1 = ({
44021
44021
  }
44022
44022
  }
44023
44023
  ) }),
44024
- !readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
44024
+ !readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
44025
44025
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, disabled: canEdit === false, children: "Submit" }),
44026
44026
  backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" }),
44027
44027
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: handleReload, children: "Reload" })
@@ -44032,7 +44032,7 @@ const YamlEditorSingleton$1 = ({
44032
44032
  open: !!error,
44033
44033
  onOk: () => setError(void 0),
44034
44034
  onCancel: () => setError(void 0),
44035
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.BigText, { children: "Error!" }) }),
44035
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.BigText, { children: "Error!" }) }),
44036
44036
  cancelButtonProps: { style: { display: "none" } },
44037
44037
  centered: true,
44038
44038
  styles: {
@@ -44193,7 +44193,7 @@ const YamlEditorSingleton = ({
44193
44193
  const VisibilityContainer$1 = styled.div`
44194
44194
  display: ${({ $hidden }) => $hidden ? "none" : "block"};
44195
44195
  `;
44196
- const Styled$y = {
44196
+ const Styled$z = {
44197
44197
  VisibilityContainer: VisibilityContainer$1
44198
44198
  };
44199
44199
 
@@ -44243,7 +44243,7 @@ const VisibilityContainer = ({
44243
44243
  return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
44244
44244
  }
44245
44245
  const shouldAutoHide = !criteria && (!valuePrepared || valuePrepared === "~undefined-value~");
44246
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$y.VisibilityContainer, { $hidden: shouldAutoHide || shouldHideByCriteria, children });
44246
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.VisibilityContainer, { $hidden: shouldAutoHide || shouldHideByCriteria, children });
44247
44247
  };
44248
44248
 
44249
44249
  const unknownToString = (value) => {
@@ -44496,7 +44496,7 @@ const Content$1 = styled.div`
44496
44496
  display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
44497
44497
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
44498
44498
  `;
44499
- const Styled$x = {
44499
+ const Styled$y = {
44500
44500
  Container: Container$3,
44501
44501
  TitleBar,
44502
44502
  Content: Content$1
@@ -44523,14 +44523,14 @@ const CustomCollapse = ({
44523
44523
  }
44524
44524
  };
44525
44525
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
44526
- Styled$x.Container,
44526
+ Styled$y.Container,
44527
44527
  {
44528
44528
  $designNewLayout: designNewLayout,
44529
44529
  $borderColor: token.colorBorder,
44530
44530
  $bgColor: token.colorBgContainer,
44531
44531
  children: [
44532
44532
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
44533
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$x.TitleBar, { onClick: () => toggleCollapse(), children: [
44533
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$y.TitleBar, { onClick: () => toggleCollapse(), children: [
44534
44534
  !designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
44535
44535
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
44536
44536
  designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
@@ -44541,12 +44541,58 @@ const CustomCollapse = ({
44541
44541
  persistedCheckbox
44542
44542
  ] })
44543
44543
  ] }),
44544
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
44544
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$y.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
44545
44545
  ]
44546
44546
  }
44547
44547
  );
44548
44548
  };
44549
44549
 
44550
+ const getStringByName = (name) => {
44551
+ if (typeof name === "string") {
44552
+ return name;
44553
+ }
44554
+ if (Array.isArray(name)) {
44555
+ const res = name.slice(-1)[0];
44556
+ return typeof res === "string" ? res : String(res);
44557
+ }
44558
+ return String(name);
44559
+ };
44560
+
44561
+ const formatDefaultValue = (defaultValue) => {
44562
+ if (Array.isArray(defaultValue)) {
44563
+ return defaultValue.join(", ");
44564
+ }
44565
+ return String(defaultValue);
44566
+ };
44567
+ const buildPlaceholder = (name, defaultValue, example) => {
44568
+ if (defaultValue !== void 0) {
44569
+ return `Default: ${formatDefaultValue(defaultValue)}`;
44570
+ }
44571
+ if (example !== void 0) {
44572
+ return `Example: ${formatDefaultValue(example)}`;
44573
+ }
44574
+ return getStringByName(name);
44575
+ };
44576
+ const getExampleTooltip = (defaultValue, example) => {
44577
+ if (example === void 0) return void 0;
44578
+ if (defaultValue === void 0) return void 0;
44579
+ return `Example: ${formatDefaultValue(example)}`;
44580
+ };
44581
+
44582
+ const DefaultValueButton = ({
44583
+ defaultValue,
44584
+ isApplied,
44585
+ onApply,
44586
+ onClear,
44587
+ disabled
44588
+ }) => {
44589
+ const formatted = formatDefaultValue(defaultValue);
44590
+ if (isApplied) {
44591
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: `Server will substitute default: ${formatted}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "link", disabled, onClick: onClear, children: "Clear" }) });
44592
+ }
44593
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: `Will set field to: ${formatted}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "link", disabled, onClick: onApply, children: "Apply default" }) });
44594
+ };
44595
+
44550
44596
  const PersistedCheckbox = ({ formName, persistedControls, type }) => {
44551
44597
  const isChecked = persistedControls.persistedKeys.some((arr) => JSON.stringify(arr) === JSON.stringify(formName));
44552
44598
  const toggleCheckbox = () => {
@@ -44575,13 +44621,13 @@ const CustomSizeTitle = styled.div`
44575
44621
  const Content = styled.div`
44576
44622
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
44577
44623
  `;
44578
- const Styled$w = {
44624
+ const Styled$x = {
44579
44625
  Content
44580
44626
  };
44581
44627
 
44582
44628
  const ArrayInsideContainer = ({ children }) => {
44583
44629
  const designNewLayout = useDesignNewLayout();
44584
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.Content, { $designNewLayout: designNewLayout, children });
44630
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.Content, { $designNewLayout: designNewLayout, children });
44585
44631
  };
44586
44632
 
44587
44633
  const includesPath = (haystack, needle) => haystack.some((h) => h.length === needle.length && h.every((seg, i) => seg === String(needle[i])));
@@ -44603,6 +44649,23 @@ const HeightContainer = styled.div`
44603
44649
  height: ${({ $height }) => $height}px;
44604
44650
  `;
44605
44651
 
44652
+ const Styled$w = {
44653
+ BulbIcon: styled(BulbOutlined)`
44654
+ margin-left: 6px;
44655
+ `
44656
+ };
44657
+
44658
+ const ExampleTooltipIcon = ({ tooltip }) => {
44659
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.BulbIcon, {}) });
44660
+ };
44661
+
44662
+ const NullToggleButton = ({ isNull, onSetNull, onClear, disabled }) => {
44663
+ if (isNull) {
44664
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: "Value will be sent as explicit null. Click to clear.", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "link", disabled, onClick: onClear, children: "Clear null" }) });
44665
+ }
44666
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: "Send this field as explicit null", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "link", disabled, onClick: onSetNull, children: "Set null" }) });
44667
+ };
44668
+
44606
44669
  const filterSelectOptions = (input, option) => (typeof option?.label === "string" ? option.label : "").toLowerCase().includes(input.toLowerCase());
44607
44670
 
44608
44671
  const truncate$1 = (text, max) => {
@@ -46112,8 +46175,8 @@ const Tolerations = ({
46112
46175
  ] });
46113
46176
  };
46114
46177
 
46115
- const isObject$2 = (x) => typeof x === "object" && x !== null;
46116
- const isPlainObject$5 = (x) => isObject$2(x) && !Array.isArray(x) && (Object.getPrototypeOf(x) === Object.prototype || Object.getPrototypeOf(x) === null);
46178
+ const isObject$5 = (x) => typeof x === "object" && x !== null;
46179
+ const isPlainObject$5 = (x) => isObject$5(x) && !Array.isArray(x) && (Object.getPrototypeOf(x) === Object.prototype || Object.getPrototypeOf(x) === null);
46117
46180
  const isString = (v) => typeof v === "string";
46118
46181
  const isStringNumberRecord = (x) => isPlainObject$5(x) && Object.values(x).every(isString);
46119
46182
  const getAnnotationsItemsInside = (value) => {
@@ -49017,7 +49080,7 @@ const symbolWye = {
49017
49080
  }
49018
49081
  };
49019
49082
 
49020
- function Symbol$1(type, size) {
49083
+ function Symbol$5(type, size) {
49021
49084
  let context = null,
49022
49085
  path = withPath(symbol);
49023
49086
 
@@ -49548,7 +49611,7 @@ function stackOffsetWiggle(series, order) {
49548
49611
  stackOffsetNone(series, order);
49549
49612
  }
49550
49613
 
49551
- var get$2 = {};
49614
+ var get$4 = {};
49552
49615
 
49553
49616
  var isUnsafeProperty = {};
49554
49617
 
@@ -49584,7 +49647,7 @@ var isDeepKey = {};
49584
49647
  exports.isDeepKey = isDeepKey;
49585
49648
  } (isDeepKey));
49586
49649
 
49587
- var toKey = {};
49650
+ var toKey$2 = {};
49588
49651
 
49589
49652
  (function (exports) {
49590
49653
 
@@ -49601,11 +49664,11 @@ var toKey = {};
49601
49664
  }
49602
49665
 
49603
49666
  exports.toKey = toKey;
49604
- } (toKey));
49667
+ } (toKey$2));
49605
49668
 
49606
49669
  var toPath = {};
49607
49670
 
49608
- var toString$1 = {};
49671
+ var toString$3 = {};
49609
49672
 
49610
49673
  (function (exports) {
49611
49674
 
@@ -49629,18 +49692,18 @@ var toString$1 = {};
49629
49692
  }
49630
49693
 
49631
49694
  exports.toString = toString;
49632
- } (toString$1));
49695
+ } (toString$3));
49633
49696
 
49634
49697
  (function (exports) {
49635
49698
 
49636
49699
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
49637
49700
 
49638
- const toString = toString$1;
49639
- const toKey$1 = toKey;
49701
+ const toString = toString$3;
49702
+ const toKey = toKey$2;
49640
49703
 
49641
49704
  function toPath(deepKey) {
49642
49705
  if (Array.isArray(deepKey)) {
49643
- return deepKey.map(toKey$1.toKey);
49706
+ return deepKey.map(toKey.toKey);
49644
49707
  }
49645
49708
  if (typeof deepKey === 'symbol') {
49646
49709
  return [deepKey];
@@ -49721,7 +49784,7 @@ var toString$1 = {};
49721
49784
 
49722
49785
  const isUnsafeProperty$1 = isUnsafeProperty;
49723
49786
  const isDeepKey$1 = isDeepKey;
49724
- const toKey$1 = toKey;
49787
+ const toKey = toKey$2;
49725
49788
  const toPath$1 = toPath;
49726
49789
 
49727
49790
  function get(object, path, defaultValue) {
@@ -49747,7 +49810,7 @@ var toString$1 = {};
49747
49810
  case 'number':
49748
49811
  case 'symbol': {
49749
49812
  if (typeof path === 'number') {
49750
- path = toKey$1.toKey(path);
49813
+ path = toKey.toKey(path);
49751
49814
  }
49752
49815
  const result = object[path];
49753
49816
  if (result === undefined) {
@@ -49797,11 +49860,11 @@ var toString$1 = {};
49797
49860
  }
49798
49861
 
49799
49862
  exports.get = get;
49800
- } (get$2));
49863
+ } (get$4));
49801
49864
 
49802
- var get = get$2.get;
49865
+ var get$2 = get$4.get;
49803
49866
 
49804
- const get$1 = /*@__PURE__*/getDefaultExportFromCjs(get);
49867
+ const get$3 = /*@__PURE__*/getDefaultExportFromCjs(get$2);
49805
49868
 
49806
49869
  var mathSign = value => {
49807
49870
  if (value === 0) {
@@ -49889,7 +49952,7 @@ function findEntryInArray(ary, specifiedKey, specifiedValue) {
49889
49952
  if (!ary || !ary.length) {
49890
49953
  return undefined;
49891
49954
  }
49892
- return ary.find(entry => entry && (typeof specifiedKey === 'function' ? specifiedKey(entry) : get$1(entry, specifiedKey)) === specifiedValue);
49955
+ return ary.find(entry => entry && (typeof specifiedKey === 'function' ? specifiedKey(entry) : get$3(entry, specifiedKey)) === specifiedValue);
49893
49956
  }
49894
49957
  /**
49895
49958
  * Checks if the value is null or undefined
@@ -50007,7 +50070,7 @@ var Symbols = _ref => {
50007
50070
  */
50008
50071
  var getPath = () => {
50009
50072
  var symbolFactory = getSymbolFactory(realType);
50010
- var symbol = Symbol$1().type(symbolFactory).size(calculateAreaSize(size, sizeType, realType));
50073
+ var symbol = Symbol$5().type(symbolFactory).size(calculateAreaSize(size, sizeType, realType));
50011
50074
  var s = symbol();
50012
50075
  if (s === null) {
50013
50076
  return undefined;
@@ -50305,7 +50368,7 @@ var isLength = {};
50305
50368
  exports.isArrayLike = isArrayLike;
50306
50369
  } (isArrayLike));
50307
50370
 
50308
- var isObjectLike$1 = {};
50371
+ var isObjectLike$3 = {};
50309
50372
 
50310
50373
  (function (exports) {
50311
50374
 
@@ -50316,14 +50379,14 @@ var isObjectLike$1 = {};
50316
50379
  }
50317
50380
 
50318
50381
  exports.isObjectLike = isObjectLike;
50319
- } (isObjectLike$1));
50382
+ } (isObjectLike$3));
50320
50383
 
50321
50384
  (function (exports) {
50322
50385
 
50323
50386
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
50324
50387
 
50325
50388
  const isArrayLike$1 = isArrayLike;
50326
- const isObjectLike = isObjectLike$1;
50389
+ const isObjectLike = isObjectLike$3;
50327
50390
 
50328
50391
  function isArrayLikeObject(value) {
50329
50392
  return isObjectLike.isObjectLike(value) && isArrayLike$1.isArrayLike(value);
@@ -50340,7 +50403,7 @@ var property = {};
50340
50403
 
50341
50404
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
50342
50405
 
50343
- const get = get$2;
50406
+ const get = get$4;
50344
50407
 
50345
50408
  function property(path) {
50346
50409
  return function (object) {
@@ -50357,7 +50420,7 @@ var isMatch = {};
50357
50420
 
50358
50421
  var isMatchWith = {};
50359
50422
 
50360
- var isObject$1 = {};
50423
+ var isObject$4 = {};
50361
50424
 
50362
50425
  (function (exports) {
50363
50426
 
@@ -50368,7 +50431,7 @@ var isObject$1 = {};
50368
50431
  }
50369
50432
 
50370
50433
  exports.isObject = isObject;
50371
- } (isObject$1));
50434
+ } (isObject$4));
50372
50435
 
50373
50436
  var isPrimitive = {};
50374
50437
 
@@ -50383,7 +50446,7 @@ var isPrimitive = {};
50383
50446
  exports.isPrimitive = isPrimitive;
50384
50447
  } (isPrimitive));
50385
50448
 
50386
- var eq = {};
50449
+ var eq$2 = {};
50387
50450
 
50388
50451
  (function (exports) {
50389
50452
 
@@ -50394,15 +50457,15 @@ var eq = {};
50394
50457
  }
50395
50458
 
50396
50459
  exports.eq = eq;
50397
- } (eq));
50460
+ } (eq$2));
50398
50461
 
50399
50462
  (function (exports) {
50400
50463
 
50401
50464
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
50402
50465
 
50403
- const isObject = isObject$1;
50466
+ const isObject = isObject$4;
50404
50467
  const isPrimitive$1 = isPrimitive;
50405
- const eq$1 = eq;
50468
+ const eq = eq$2;
50406
50469
 
50407
50470
  function isMatchWith(target, source, compare) {
50408
50471
  if (typeof compare !== 'function') {
@@ -50429,11 +50492,11 @@ var eq = {};
50429
50492
  if (sourceKeys.length > 0) {
50430
50493
  return isMatchWithInternal(target, { ...source }, compare, stack);
50431
50494
  }
50432
- return eq$1.eq(target, source);
50495
+ return eq.eq(target, source);
50433
50496
  }
50434
50497
  default: {
50435
50498
  if (!isObject.isObject(target)) {
50436
- return eq$1.eq(target, source);
50499
+ return eq.eq(target, source);
50437
50500
  }
50438
50501
  if (typeof source === 'string') {
50439
50502
  return source === '';
@@ -51028,9 +51091,9 @@ var isArguments = {};
51028
51091
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
51029
51092
 
51030
51093
  const isMatch$1 = isMatch;
51031
- const toKey$1 = toKey;
51094
+ const toKey = toKey$2;
51032
51095
  const cloneDeep$1 = cloneDeep;
51033
- const get = get$2;
51096
+ const get = get$4;
51034
51097
  const has = has$1;
51035
51098
 
51036
51099
  function matchesProperty(property, source) {
@@ -51042,7 +51105,7 @@ var isArguments = {};
51042
51105
  break;
51043
51106
  }
51044
51107
  case 'number': {
51045
- property = toKey$1.toKey(property);
51108
+ property = toKey.toKey(property);
51046
51109
  break;
51047
51110
  }
51048
51111
  }
@@ -51936,9 +51999,9 @@ var compareValues = {};
51936
51999
  exports.compareValues = compareValues;
51937
52000
  } (compareValues));
51938
52001
 
51939
- var isKey = {};
52002
+ var isKey$2 = {};
51940
52003
 
51941
- var isSymbol$1 = {};
52004
+ var isSymbol$5 = {};
51942
52005
 
51943
52006
  (function (exports) {
51944
52007
 
@@ -51949,13 +52012,13 @@ var isSymbol$1 = {};
51949
52012
  }
51950
52013
 
51951
52014
  exports.isSymbol = isSymbol;
51952
- } (isSymbol$1));
52015
+ } (isSymbol$5));
51953
52016
 
51954
52017
  (function (exports) {
51955
52018
 
51956
52019
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
51957
52020
 
51958
- const isSymbol = isSymbol$1;
52021
+ const isSymbol = isSymbol$5;
51959
52022
 
51960
52023
  const regexIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
51961
52024
  const regexIsPlainProp = /^\w*$/;
@@ -51971,14 +52034,14 @@ var isSymbol$1 = {};
51971
52034
  }
51972
52035
 
51973
52036
  exports.isKey = isKey;
51974
- } (isKey));
52037
+ } (isKey$2));
51975
52038
 
51976
52039
  (function (exports) {
51977
52040
 
51978
52041
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
51979
52042
 
51980
52043
  const compareValues$1 = compareValues;
51981
- const isKey$1 = isKey;
52044
+ const isKey = isKey$2;
51982
52045
  const toPath$1 = toPath;
51983
52046
 
51984
52047
  function orderBy(collection, criteria, orders, guard) {
@@ -52031,7 +52094,7 @@ var isSymbol$1 = {};
52031
52094
  if (Array.isArray(criterion) && criterion.length === 1) {
52032
52095
  criterion = criterion[0];
52033
52096
  }
52034
- if (criterion == null || typeof criterion === 'function' || Array.isArray(criterion) || isKey$1.isKey(criterion)) {
52097
+ if (criterion == null || typeof criterion === 'function' || Array.isArray(criterion) || isKey.isKey(criterion)) {
52035
52098
  return criterion;
52036
52099
  }
52037
52100
  return { key: criterion, path: toPath$1.toPath(criterion) };
@@ -52092,8 +52155,8 @@ var isIterateeCall = {};
52092
52155
 
52093
52156
  const isIndex$1 = isIndex;
52094
52157
  const isArrayLike$1 = isArrayLike;
52095
- const isObject = isObject$1;
52096
- const eq$1 = eq;
52158
+ const isObject = isObject$4;
52159
+ const eq = eq$2;
52097
52160
 
52098
52161
  function isIterateeCall(value, index, object) {
52099
52162
  if (!isObject.isObject(object)) {
@@ -52101,7 +52164,7 @@ var isIterateeCall = {};
52101
52164
  }
52102
52165
  if ((typeof index === 'number' && isArrayLike$1.isArrayLike(object) && isIndex$1.isIndex(index) && index < object.length) ||
52103
52166
  (typeof index === 'string' && index in object)) {
52104
- return eq$1.eq(object[index], value);
52167
+ return eq.eq(object[index], value);
52105
52168
  }
52106
52169
  return false;
52107
52170
  }
@@ -54727,7 +54790,7 @@ function getValueByDataKey(obj, dataKey, defaultValue) {
54727
54790
  return defaultValue;
54728
54791
  }
54729
54792
  if (isNumOrStr(dataKey)) {
54730
- return get$1(obj, dataKey, defaultValue);
54793
+ return get$3(obj, dataKey, defaultValue);
54731
54794
  }
54732
54795
  if (typeof dataKey === 'function') {
54733
54796
  return dataKey(obj);
@@ -57645,7 +57708,7 @@ var toNumber$1 = {};
57645
57708
 
57646
57709
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57647
57710
 
57648
- const isSymbol = isSymbol$1;
57711
+ const isSymbol = isSymbol$5;
57649
57712
 
57650
57713
  function toNumber(value) {
57651
57714
  if (isSymbol.isSymbol(value)) {
@@ -62089,7 +62152,7 @@ P.toExponential = function (dp, rm) {
62089
62152
  Ctor = x.constructor;
62090
62153
 
62091
62154
  if (dp === void 0) {
62092
- str = toString(x, true);
62155
+ str = toString$2(x, true);
62093
62156
  } else {
62094
62157
  checkInt32(dp, 0, MAX_DIGITS);
62095
62158
 
@@ -62097,7 +62160,7 @@ P.toExponential = function (dp, rm) {
62097
62160
  else checkInt32(rm, 0, 8);
62098
62161
 
62099
62162
  x = round(new Ctor(x), dp + 1, rm);
62100
- str = toString(x, true, dp + 1);
62163
+ str = toString$2(x, true, dp + 1);
62101
62164
  }
62102
62165
 
62103
62166
  return str;
@@ -62125,7 +62188,7 @@ P.toFixed = function (dp, rm) {
62125
62188
  x = this,
62126
62189
  Ctor = x.constructor;
62127
62190
 
62128
- if (dp === void 0) return toString(x);
62191
+ if (dp === void 0) return toString$2(x);
62129
62192
 
62130
62193
  checkInt32(dp, 0, MAX_DIGITS);
62131
62194
 
@@ -62133,7 +62196,7 @@ P.toFixed = function (dp, rm) {
62133
62196
  else checkInt32(rm, 0, 8);
62134
62197
 
62135
62198
  y = round(new Ctor(x), dp + getBase10Exponent(x) + 1, rm);
62136
- str = toString(y.abs(), false, dp + getBase10Exponent(y) + 1);
62199
+ str = toString$2(y.abs(), false, dp + getBase10Exponent(y) + 1);
62137
62200
 
62138
62201
  // To determine whether to add the minus sign look at the value before it was rounded,
62139
62202
  // i.e. look at `x` rather than `y`.
@@ -62272,7 +62335,7 @@ P.toPrecision = function (sd, rm) {
62272
62335
 
62273
62336
  if (sd === void 0) {
62274
62337
  e = getBase10Exponent(x);
62275
- str = toString(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
62338
+ str = toString$2(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
62276
62339
  } else {
62277
62340
  checkInt32(sd, 1, MAX_DIGITS);
62278
62341
 
@@ -62281,7 +62344,7 @@ P.toPrecision = function (sd, rm) {
62281
62344
 
62282
62345
  x = round(new Ctor(x), sd, rm);
62283
62346
  e = getBase10Exponent(x);
62284
- str = toString(x, sd <= e || e <= Ctor.toExpNeg, sd);
62347
+ str = toString$2(x, sd <= e || e <= Ctor.toExpNeg, sd);
62285
62348
  }
62286
62349
 
62287
62350
  return str;
@@ -62327,7 +62390,7 @@ P.toString = P.valueOf = P.val = P.toJSON = P[Symbol.for('nodejs.util.inspect.cu
62327
62390
  e = getBase10Exponent(x),
62328
62391
  Ctor = x.constructor;
62329
62392
 
62330
- return toString(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
62393
+ return toString$2(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
62331
62394
  };
62332
62395
 
62333
62396
 
@@ -63227,7 +63290,7 @@ function subtract(x, y) {
63227
63290
  }
63228
63291
 
63229
63292
 
63230
- function toString(x, isExp, sd) {
63293
+ function toString$2(x, isExp, sd) {
63231
63294
  var k,
63232
63295
  e = getBase10Exponent(x),
63233
63296
  str = digitsToString(x.d),
@@ -69088,7 +69151,7 @@ function findAllByType(children, type) {
69088
69151
  }
69089
69152
  toArray(children).forEach(child => {
69090
69153
  // @ts-expect-error toArray and lodash.get are not compatible. Let's get rid of the whole findAllByType function
69091
- var childType = get$1(child, 'type.displayName') || get$1(child, 'type.name');
69154
+ var childType = get$3(child, 'type.displayName') || get$3(child, 'type.name');
69092
69155
  if (childType && types.indexOf(childType) !== -1) {
69093
69156
  result.push(child);
69094
69157
  }
@@ -70103,7 +70166,7 @@ function SectorsWithAnimation(_ref6) {
70103
70166
  var curAngle = first === null || first === void 0 ? void 0 : first.startAngle;
70104
70167
  sectors === null || sectors === void 0 || sectors.forEach((entry, index) => {
70105
70168
  var prev = prevSectors && prevSectors[index];
70106
- var paddingAngle = index > 0 ? get$1(entry, 'paddingAngle', 0) : 0;
70169
+ var paddingAngle = index > 0 ? get$3(entry, 'paddingAngle', 0) : 0;
70107
70170
  if (prev) {
70108
70171
  var angle = interpolate$1(prev.endAngle - prev.startAngle, entry.endAngle - entry.startAngle, t);
70109
70172
  var latest = _objectSpread$d(_objectSpread$d({}, entry), {}, {
@@ -72880,7 +72943,7 @@ function AxisLine(axisLineProps) {
72880
72943
  });
72881
72944
  }
72882
72945
  return /*#__PURE__*/React$1.createElement("line", _extends$9({}, props, {
72883
- className: clsx('recharts-cartesian-axis-line', get$1(axisLine, 'className'))
72946
+ className: clsx('recharts-cartesian-axis-line', get$3(axisLine, 'className'))
72884
72947
  }));
72885
72948
  }
72886
72949
 
@@ -73058,7 +73121,7 @@ var Ticks = /*#__PURE__*/forwardRef((props, ref) => {
73058
73121
  className: "recharts-cartesian-axis-tick",
73059
73122
  key: "tick-".concat(entry.value, "-").concat(entry.coordinate, "-").concat(entry.tickCoord)
73060
73123
  }, tickLine && /*#__PURE__*/React$1.createElement("line", _extends$9({}, tickLineProps, lineCoord, {
73061
- className: clsx('recharts-cartesian-axis-tick-line', get$1(tickLine, 'className'))
73124
+ className: clsx('recharts-cartesian-axis-tick-line', get$3(tickLine, 'className'))
73062
73125
  })));
73063
73126
  });
73064
73127
  var tickLabels = tickLineCoords.map((_ref2, i) => {
@@ -78825,7 +78888,7 @@ const TolerationsModal = ({
78825
78888
  };
78826
78889
 
78827
78890
  const LazyEnrichedTableModal = lazy(
78828
- () => import('./index-_9cT8fBl.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
78891
+ () => import('./index-DoND5hQh.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
78829
78892
  );
78830
78893
  const renderActiveType = (activeType, extraProps) => {
78831
78894
  if (!activeType) return null;
@@ -83192,13 +83255,13 @@ const EnrichedTableProvider = ({
83192
83255
  */
83193
83256
 
83194
83257
  /** Used as the `TypeError` message for "Functions" methods. */
83195
- var FUNC_ERROR_TEXT = 'Expected a function';
83258
+ var FUNC_ERROR_TEXT$1 = 'Expected a function';
83196
83259
 
83197
83260
  /** Used as references for various `Number` constants. */
83198
83261
  var NAN = 0 / 0;
83199
83262
 
83200
83263
  /** `Object#toString` result references. */
83201
- var symbolTag = '[object Symbol]';
83264
+ var symbolTag$1 = '[object Symbol]';
83202
83265
 
83203
83266
  /** Used to match leading and trailing whitespace. */
83204
83267
  var reTrim = /^\s+|\s+$/g;
@@ -83216,23 +83279,23 @@ var reIsOctal = /^0o[0-7]+$/i;
83216
83279
  var freeParseInt = parseInt;
83217
83280
 
83218
83281
  /** Detect free variable `global` from Node.js. */
83219
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
83282
+ var freeGlobal$2 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
83220
83283
 
83221
83284
  /** Detect free variable `self`. */
83222
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
83285
+ var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
83223
83286
 
83224
83287
  /** Used as a reference to the global object. */
83225
- var root = freeGlobal || freeSelf || Function('return this')();
83288
+ var root$4 = freeGlobal$2 || freeSelf$1 || Function('return this')();
83226
83289
 
83227
83290
  /** Used for built-in method references. */
83228
- var objectProto = Object.prototype;
83291
+ var objectProto$5 = Object.prototype;
83229
83292
 
83230
83293
  /**
83231
83294
  * Used to resolve the
83232
83295
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
83233
83296
  * of values.
83234
83297
  */
83235
- var objectToString = objectProto.toString;
83298
+ var objectToString$2 = objectProto$5.toString;
83236
83299
 
83237
83300
  /* Built-in method references for those with the same name as other `lodash` methods. */
83238
83301
  var nativeMax = Math.max,
@@ -83255,7 +83318,7 @@ var nativeMax = Math.max,
83255
83318
  * // => Logs the number of milliseconds it took for the deferred invocation.
83256
83319
  */
83257
83320
  var now = function() {
83258
- return root.Date.now();
83321
+ return root$4.Date.now();
83259
83322
  };
83260
83323
 
83261
83324
  /**
@@ -83325,10 +83388,10 @@ function debounce(func, wait, options) {
83325
83388
  trailing = true;
83326
83389
 
83327
83390
  if (typeof func != 'function') {
83328
- throw new TypeError(FUNC_ERROR_TEXT);
83391
+ throw new TypeError(FUNC_ERROR_TEXT$1);
83329
83392
  }
83330
83393
  wait = toNumber(wait) || 0;
83331
- if (isObject(options)) {
83394
+ if (isObject$3(options)) {
83332
83395
  leading = !!options.leading;
83333
83396
  maxing = 'maxWait' in options;
83334
83397
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -83459,7 +83522,7 @@ function debounce(func, wait, options) {
83459
83522
  * _.isObject(null);
83460
83523
  * // => false
83461
83524
  */
83462
- function isObject(value) {
83525
+ function isObject$3(value) {
83463
83526
  var type = typeof value;
83464
83527
  return !!value && (type == 'object' || type == 'function');
83465
83528
  }
@@ -83488,7 +83551,7 @@ function isObject(value) {
83488
83551
  * _.isObjectLike(null);
83489
83552
  * // => false
83490
83553
  */
83491
- function isObjectLike(value) {
83554
+ function isObjectLike$2(value) {
83492
83555
  return !!value && typeof value == 'object';
83493
83556
  }
83494
83557
 
@@ -83509,9 +83572,9 @@ function isObjectLike(value) {
83509
83572
  * _.isSymbol('abc');
83510
83573
  * // => false
83511
83574
  */
83512
- function isSymbol(value) {
83575
+ function isSymbol$4(value) {
83513
83576
  return typeof value == 'symbol' ||
83514
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
83577
+ (isObjectLike$2(value) && objectToString$2.call(value) == symbolTag$1);
83515
83578
  }
83516
83579
 
83517
83580
  /**
@@ -83541,12 +83604,12 @@ function toNumber(value) {
83541
83604
  if (typeof value == 'number') {
83542
83605
  return value;
83543
83606
  }
83544
- if (isSymbol(value)) {
83607
+ if (isSymbol$4(value)) {
83545
83608
  return NAN;
83546
83609
  }
83547
- if (isObject(value)) {
83610
+ if (isObject$3(value)) {
83548
83611
  var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
83549
- value = isObject(other) ? (other + '') : other;
83612
+ value = isObject$3(other) ? (other + '') : other;
83550
83613
  }
83551
83614
  if (typeof value != 'string') {
83552
83615
  return value === 0 ? value : +value;
@@ -83868,17 +83931,6 @@ const YamlEditor = ({ theme: theme$1, currentValues, onChange, editorUri }) => {
83868
83931
  ) });
83869
83932
  };
83870
83933
 
83871
- const getStringByName = (name) => {
83872
- if (typeof name === "string") {
83873
- return name;
83874
- }
83875
- if (Array.isArray(name)) {
83876
- const res = name.slice(-1)[0];
83877
- return typeof res === "string" ? res : String(res);
83878
- }
83879
- return String(name);
83880
- };
83881
-
83882
83934
  const listItemBasePath = (fullFieldPath) => {
83883
83935
  for (let i = fullFieldPath.length - 1; i >= 0; i--) {
83884
83936
  if (typeof fullFieldPath[i] === "number") {
@@ -83912,14 +83964,1442 @@ const resolveFormPath = (pathInput, basePathForRelative) => {
83912
83964
  };
83913
83965
  const normalizeNameToPath = (name) => Array.isArray(name) ? name : [name];
83914
83966
 
83967
+ const useDefaultValueButton = (formFieldName, defaultValue, nullable) => {
83968
+ const form = Form.useFormInstance();
83969
+ const currentValue = Form.useWatch(formFieldName, form);
83970
+ const handleApply = useCallback(() => {
83971
+ form.setFieldValue(formFieldName, defaultValue);
83972
+ }, [defaultValue, form, formFieldName]);
83973
+ const handleClear = useCallback(() => {
83974
+ form.setFieldValue(formFieldName, void 0);
83975
+ }, [form, formFieldName]);
83976
+ return useMemo(() => {
83977
+ if (defaultValue === void 0) {
83978
+ return { visible: false };
83979
+ }
83980
+ if (nullable && currentValue === null) {
83981
+ return { visible: false };
83982
+ }
83983
+ const isEmpty = currentValue === void 0 || currentValue === null || currentValue === "" || Array.isArray(currentValue) && currentValue.length === 0;
83984
+ if (isEmpty) {
83985
+ return { visible: true, isApplied: false, handleApply, handleClear };
83986
+ }
83987
+ const isEqualToDefault = Array.isArray(defaultValue) && Array.isArray(currentValue) ? defaultValue.length === currentValue.length && defaultValue.every((v, i) => v === currentValue[i]) : currentValue === defaultValue;
83988
+ if (isEqualToDefault) {
83989
+ return { visible: true, isApplied: true, handleApply, handleClear };
83990
+ }
83991
+ return { visible: false };
83992
+ }, [nullable, currentValue, defaultValue, handleApply, handleClear]);
83993
+ };
83994
+
83995
+ /**
83996
+ * Checks if `value` is classified as an `Array` object.
83997
+ *
83998
+ * @static
83999
+ * @memberOf _
84000
+ * @since 0.1.0
84001
+ * @category Lang
84002
+ * @param {*} value The value to check.
84003
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
84004
+ * @example
84005
+ *
84006
+ * _.isArray([1, 2, 3]);
84007
+ * // => true
84008
+ *
84009
+ * _.isArray(document.body.children);
84010
+ * // => false
84011
+ *
84012
+ * _.isArray('abc');
84013
+ * // => false
84014
+ *
84015
+ * _.isArray(_.noop);
84016
+ * // => false
84017
+ */
84018
+
84019
+ var isArray$3 = Array.isArray;
84020
+
84021
+ var isArray_1 = isArray$3;
84022
+
84023
+ /** Detect free variable `global` from Node.js. */
84024
+
84025
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
84026
+
84027
+ var _freeGlobal = freeGlobal$1;
84028
+
84029
+ var freeGlobal = _freeGlobal;
84030
+
84031
+ /** Detect free variable `self`. */
84032
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
84033
+
84034
+ /** Used as a reference to the global object. */
84035
+ var root$3 = freeGlobal || freeSelf || Function('return this')();
84036
+
84037
+ var _root = root$3;
84038
+
84039
+ var root$2 = _root;
84040
+
84041
+ /** Built-in value references. */
84042
+ var Symbol$4 = root$2.Symbol;
84043
+
84044
+ var _Symbol = Symbol$4;
84045
+
84046
+ var Symbol$3 = _Symbol;
84047
+
84048
+ /** Used for built-in method references. */
84049
+ var objectProto$4 = Object.prototype;
84050
+
84051
+ /** Used to check objects for own properties. */
84052
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
84053
+
84054
+ /**
84055
+ * Used to resolve the
84056
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
84057
+ * of values.
84058
+ */
84059
+ var nativeObjectToString$1 = objectProto$4.toString;
84060
+
84061
+ /** Built-in value references. */
84062
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
84063
+
84064
+ /**
84065
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
84066
+ *
84067
+ * @private
84068
+ * @param {*} value The value to query.
84069
+ * @returns {string} Returns the raw `toStringTag`.
84070
+ */
84071
+ function getRawTag$1(value) {
84072
+ var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
84073
+ tag = value[symToStringTag$1];
84074
+
84075
+ try {
84076
+ value[symToStringTag$1] = undefined;
84077
+ var unmasked = true;
84078
+ } catch (e) {}
84079
+
84080
+ var result = nativeObjectToString$1.call(value);
84081
+ if (unmasked) {
84082
+ if (isOwn) {
84083
+ value[symToStringTag$1] = tag;
84084
+ } else {
84085
+ delete value[symToStringTag$1];
84086
+ }
84087
+ }
84088
+ return result;
84089
+ }
84090
+
84091
+ var _getRawTag = getRawTag$1;
84092
+
84093
+ /** Used for built-in method references. */
84094
+
84095
+ var objectProto$3 = Object.prototype;
84096
+
84097
+ /**
84098
+ * Used to resolve the
84099
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
84100
+ * of values.
84101
+ */
84102
+ var nativeObjectToString = objectProto$3.toString;
84103
+
84104
+ /**
84105
+ * Converts `value` to a string using `Object.prototype.toString`.
84106
+ *
84107
+ * @private
84108
+ * @param {*} value The value to convert.
84109
+ * @returns {string} Returns the converted string.
84110
+ */
84111
+ function objectToString$1(value) {
84112
+ return nativeObjectToString.call(value);
84113
+ }
84114
+
84115
+ var _objectToString = objectToString$1;
84116
+
84117
+ var Symbol$2 = _Symbol,
84118
+ getRawTag = _getRawTag,
84119
+ objectToString = _objectToString;
84120
+
84121
+ /** `Object#toString` result references. */
84122
+ var nullTag = '[object Null]',
84123
+ undefinedTag = '[object Undefined]';
84124
+
84125
+ /** Built-in value references. */
84126
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
84127
+
84128
+ /**
84129
+ * The base implementation of `getTag` without fallbacks for buggy environments.
84130
+ *
84131
+ * @private
84132
+ * @param {*} value The value to query.
84133
+ * @returns {string} Returns the `toStringTag`.
84134
+ */
84135
+ function baseGetTag$2(value) {
84136
+ if (value == null) {
84137
+ return value === undefined ? undefinedTag : nullTag;
84138
+ }
84139
+ return (symToStringTag && symToStringTag in Object(value))
84140
+ ? getRawTag(value)
84141
+ : objectToString(value);
84142
+ }
84143
+
84144
+ var _baseGetTag = baseGetTag$2;
84145
+
84146
+ /**
84147
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
84148
+ * and has a `typeof` result of "object".
84149
+ *
84150
+ * @static
84151
+ * @memberOf _
84152
+ * @since 4.0.0
84153
+ * @category Lang
84154
+ * @param {*} value The value to check.
84155
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
84156
+ * @example
84157
+ *
84158
+ * _.isObjectLike({});
84159
+ * // => true
84160
+ *
84161
+ * _.isObjectLike([1, 2, 3]);
84162
+ * // => true
84163
+ *
84164
+ * _.isObjectLike(_.noop);
84165
+ * // => false
84166
+ *
84167
+ * _.isObjectLike(null);
84168
+ * // => false
84169
+ */
84170
+
84171
+ function isObjectLike$1(value) {
84172
+ return value != null && typeof value == 'object';
84173
+ }
84174
+
84175
+ var isObjectLike_1 = isObjectLike$1;
84176
+
84177
+ var baseGetTag$1 = _baseGetTag,
84178
+ isObjectLike = isObjectLike_1;
84179
+
84180
+ /** `Object#toString` result references. */
84181
+ var symbolTag = '[object Symbol]';
84182
+
84183
+ /**
84184
+ * Checks if `value` is classified as a `Symbol` primitive or object.
84185
+ *
84186
+ * @static
84187
+ * @memberOf _
84188
+ * @since 4.0.0
84189
+ * @category Lang
84190
+ * @param {*} value The value to check.
84191
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
84192
+ * @example
84193
+ *
84194
+ * _.isSymbol(Symbol.iterator);
84195
+ * // => true
84196
+ *
84197
+ * _.isSymbol('abc');
84198
+ * // => false
84199
+ */
84200
+ function isSymbol$3(value) {
84201
+ return typeof value == 'symbol' ||
84202
+ (isObjectLike(value) && baseGetTag$1(value) == symbolTag);
84203
+ }
84204
+
84205
+ var isSymbol_1 = isSymbol$3;
84206
+
84207
+ var isArray$2 = isArray_1,
84208
+ isSymbol$2 = isSymbol_1;
84209
+
84210
+ /** Used to match property names within property paths. */
84211
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
84212
+ reIsPlainProp = /^\w*$/;
84213
+
84214
+ /**
84215
+ * Checks if `value` is a property name and not a property path.
84216
+ *
84217
+ * @private
84218
+ * @param {*} value The value to check.
84219
+ * @param {Object} [object] The object to query keys on.
84220
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
84221
+ */
84222
+ function isKey$1(value, object) {
84223
+ if (isArray$2(value)) {
84224
+ return false;
84225
+ }
84226
+ var type = typeof value;
84227
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
84228
+ value == null || isSymbol$2(value)) {
84229
+ return true;
84230
+ }
84231
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
84232
+ (object != null && value in Object(object));
84233
+ }
84234
+
84235
+ var _isKey = isKey$1;
84236
+
84237
+ /**
84238
+ * Checks if `value` is the
84239
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
84240
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
84241
+ *
84242
+ * @static
84243
+ * @memberOf _
84244
+ * @since 0.1.0
84245
+ * @category Lang
84246
+ * @param {*} value The value to check.
84247
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
84248
+ * @example
84249
+ *
84250
+ * _.isObject({});
84251
+ * // => true
84252
+ *
84253
+ * _.isObject([1, 2, 3]);
84254
+ * // => true
84255
+ *
84256
+ * _.isObject(_.noop);
84257
+ * // => true
84258
+ *
84259
+ * _.isObject(null);
84260
+ * // => false
84261
+ */
84262
+
84263
+ function isObject$2(value) {
84264
+ var type = typeof value;
84265
+ return value != null && (type == 'object' || type == 'function');
84266
+ }
84267
+
84268
+ var isObject_1 = isObject$2;
84269
+
84270
+ var baseGetTag = _baseGetTag,
84271
+ isObject$1 = isObject_1;
84272
+
84273
+ /** `Object#toString` result references. */
84274
+ var asyncTag = '[object AsyncFunction]',
84275
+ funcTag = '[object Function]',
84276
+ genTag = '[object GeneratorFunction]',
84277
+ proxyTag = '[object Proxy]';
84278
+
84279
+ /**
84280
+ * Checks if `value` is classified as a `Function` object.
84281
+ *
84282
+ * @static
84283
+ * @memberOf _
84284
+ * @since 0.1.0
84285
+ * @category Lang
84286
+ * @param {*} value The value to check.
84287
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
84288
+ * @example
84289
+ *
84290
+ * _.isFunction(_);
84291
+ * // => true
84292
+ *
84293
+ * _.isFunction(/abc/);
84294
+ * // => false
84295
+ */
84296
+ function isFunction$1(value) {
84297
+ if (!isObject$1(value)) {
84298
+ return false;
84299
+ }
84300
+ // The use of `Object#toString` avoids issues with the `typeof` operator
84301
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
84302
+ var tag = baseGetTag(value);
84303
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
84304
+ }
84305
+
84306
+ var isFunction_1 = isFunction$1;
84307
+
84308
+ var root$1 = _root;
84309
+
84310
+ /** Used to detect overreaching core-js shims. */
84311
+ var coreJsData$1 = root$1['__core-js_shared__'];
84312
+
84313
+ var _coreJsData = coreJsData$1;
84314
+
84315
+ var coreJsData = _coreJsData;
84316
+
84317
+ /** Used to detect methods masquerading as native. */
84318
+ var maskSrcKey = (function() {
84319
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
84320
+ return uid ? ('Symbol(src)_1.' + uid) : '';
84321
+ }());
84322
+
84323
+ /**
84324
+ * Checks if `func` has its source masked.
84325
+ *
84326
+ * @private
84327
+ * @param {Function} func The function to check.
84328
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
84329
+ */
84330
+ function isMasked$1(func) {
84331
+ return !!maskSrcKey && (maskSrcKey in func);
84332
+ }
84333
+
84334
+ var _isMasked = isMasked$1;
84335
+
84336
+ /** Used for built-in method references. */
84337
+
84338
+ var funcProto$1 = Function.prototype;
84339
+
84340
+ /** Used to resolve the decompiled source of functions. */
84341
+ var funcToString$1 = funcProto$1.toString;
84342
+
84343
+ /**
84344
+ * Converts `func` to its source code.
84345
+ *
84346
+ * @private
84347
+ * @param {Function} func The function to convert.
84348
+ * @returns {string} Returns the source code.
84349
+ */
84350
+ function toSource$1(func) {
84351
+ if (func != null) {
84352
+ try {
84353
+ return funcToString$1.call(func);
84354
+ } catch (e) {}
84355
+ try {
84356
+ return (func + '');
84357
+ } catch (e) {}
84358
+ }
84359
+ return '';
84360
+ }
84361
+
84362
+ var _toSource = toSource$1;
84363
+
84364
+ var isFunction = isFunction_1,
84365
+ isMasked = _isMasked,
84366
+ isObject = isObject_1,
84367
+ toSource = _toSource;
84368
+
84369
+ /**
84370
+ * Used to match `RegExp`
84371
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
84372
+ */
84373
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
84374
+
84375
+ /** Used to detect host constructors (Safari). */
84376
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
84377
+
84378
+ /** Used for built-in method references. */
84379
+ var funcProto = Function.prototype,
84380
+ objectProto$2 = Object.prototype;
84381
+
84382
+ /** Used to resolve the decompiled source of functions. */
84383
+ var funcToString = funcProto.toString;
84384
+
84385
+ /** Used to check objects for own properties. */
84386
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
84387
+
84388
+ /** Used to detect if a method is native. */
84389
+ var reIsNative = RegExp('^' +
84390
+ funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
84391
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
84392
+ );
84393
+
84394
+ /**
84395
+ * The base implementation of `_.isNative` without bad shim checks.
84396
+ *
84397
+ * @private
84398
+ * @param {*} value The value to check.
84399
+ * @returns {boolean} Returns `true` if `value` is a native function,
84400
+ * else `false`.
84401
+ */
84402
+ function baseIsNative$1(value) {
84403
+ if (!isObject(value) || isMasked(value)) {
84404
+ return false;
84405
+ }
84406
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
84407
+ return pattern.test(toSource(value));
84408
+ }
84409
+
84410
+ var _baseIsNative = baseIsNative$1;
84411
+
84412
+ /**
84413
+ * Gets the value at `key` of `object`.
84414
+ *
84415
+ * @private
84416
+ * @param {Object} [object] The object to query.
84417
+ * @param {string} key The key of the property to get.
84418
+ * @returns {*} Returns the property value.
84419
+ */
84420
+
84421
+ function getValue$2(object, key) {
84422
+ return object == null ? undefined : object[key];
84423
+ }
84424
+
84425
+ var _getValue = getValue$2;
84426
+
84427
+ var baseIsNative = _baseIsNative,
84428
+ getValue$1 = _getValue;
84429
+
84430
+ /**
84431
+ * Gets the native function at `key` of `object`.
84432
+ *
84433
+ * @private
84434
+ * @param {Object} object The object to query.
84435
+ * @param {string} key The key of the method to get.
84436
+ * @returns {*} Returns the function if it's native, else `undefined`.
84437
+ */
84438
+ function getNative$2(object, key) {
84439
+ var value = getValue$1(object, key);
84440
+ return baseIsNative(value) ? value : undefined;
84441
+ }
84442
+
84443
+ var _getNative = getNative$2;
84444
+
84445
+ var getNative$1 = _getNative;
84446
+
84447
+ /* Built-in method references that are verified to be native. */
84448
+ var nativeCreate$4 = getNative$1(Object, 'create');
84449
+
84450
+ var _nativeCreate = nativeCreate$4;
84451
+
84452
+ var nativeCreate$3 = _nativeCreate;
84453
+
84454
+ /**
84455
+ * Removes all key-value entries from the hash.
84456
+ *
84457
+ * @private
84458
+ * @name clear
84459
+ * @memberOf Hash
84460
+ */
84461
+ function hashClear$1() {
84462
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
84463
+ this.size = 0;
84464
+ }
84465
+
84466
+ var _hashClear = hashClear$1;
84467
+
84468
+ /**
84469
+ * Removes `key` and its value from the hash.
84470
+ *
84471
+ * @private
84472
+ * @name delete
84473
+ * @memberOf Hash
84474
+ * @param {Object} hash The hash to modify.
84475
+ * @param {string} key The key of the value to remove.
84476
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
84477
+ */
84478
+
84479
+ function hashDelete$1(key) {
84480
+ var result = this.has(key) && delete this.__data__[key];
84481
+ this.size -= result ? 1 : 0;
84482
+ return result;
84483
+ }
84484
+
84485
+ var _hashDelete = hashDelete$1;
84486
+
84487
+ var nativeCreate$2 = _nativeCreate;
84488
+
84489
+ /** Used to stand-in for `undefined` hash values. */
84490
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
84491
+
84492
+ /** Used for built-in method references. */
84493
+ var objectProto$1 = Object.prototype;
84494
+
84495
+ /** Used to check objects for own properties. */
84496
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
84497
+
84498
+ /**
84499
+ * Gets the hash value for `key`.
84500
+ *
84501
+ * @private
84502
+ * @name get
84503
+ * @memberOf Hash
84504
+ * @param {string} key The key of the value to get.
84505
+ * @returns {*} Returns the entry value.
84506
+ */
84507
+ function hashGet$1(key) {
84508
+ var data = this.__data__;
84509
+ if (nativeCreate$2) {
84510
+ var result = data[key];
84511
+ return result === HASH_UNDEFINED$1 ? undefined : result;
84512
+ }
84513
+ return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
84514
+ }
84515
+
84516
+ var _hashGet = hashGet$1;
84517
+
84518
+ var nativeCreate$1 = _nativeCreate;
84519
+
84520
+ /** Used for built-in method references. */
84521
+ var objectProto = Object.prototype;
84522
+
84523
+ /** Used to check objects for own properties. */
84524
+ var hasOwnProperty = objectProto.hasOwnProperty;
84525
+
84526
+ /**
84527
+ * Checks if a hash value for `key` exists.
84528
+ *
84529
+ * @private
84530
+ * @name has
84531
+ * @memberOf Hash
84532
+ * @param {string} key The key of the entry to check.
84533
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
84534
+ */
84535
+ function hashHas$1(key) {
84536
+ var data = this.__data__;
84537
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
84538
+ }
84539
+
84540
+ var _hashHas = hashHas$1;
84541
+
84542
+ var nativeCreate = _nativeCreate;
84543
+
84544
+ /** Used to stand-in for `undefined` hash values. */
84545
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
84546
+
84547
+ /**
84548
+ * Sets the hash `key` to `value`.
84549
+ *
84550
+ * @private
84551
+ * @name set
84552
+ * @memberOf Hash
84553
+ * @param {string} key The key of the value to set.
84554
+ * @param {*} value The value to set.
84555
+ * @returns {Object} Returns the hash instance.
84556
+ */
84557
+ function hashSet$1(key, value) {
84558
+ var data = this.__data__;
84559
+ this.size += this.has(key) ? 0 : 1;
84560
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
84561
+ return this;
84562
+ }
84563
+
84564
+ var _hashSet = hashSet$1;
84565
+
84566
+ var hashClear = _hashClear,
84567
+ hashDelete = _hashDelete,
84568
+ hashGet = _hashGet,
84569
+ hashHas = _hashHas,
84570
+ hashSet = _hashSet;
84571
+
84572
+ /**
84573
+ * Creates a hash object.
84574
+ *
84575
+ * @private
84576
+ * @constructor
84577
+ * @param {Array} [entries] The key-value pairs to cache.
84578
+ */
84579
+ function Hash$1(entries) {
84580
+ var index = -1,
84581
+ length = entries == null ? 0 : entries.length;
84582
+
84583
+ this.clear();
84584
+ while (++index < length) {
84585
+ var entry = entries[index];
84586
+ this.set(entry[0], entry[1]);
84587
+ }
84588
+ }
84589
+
84590
+ // Add methods to `Hash`.
84591
+ Hash$1.prototype.clear = hashClear;
84592
+ Hash$1.prototype['delete'] = hashDelete;
84593
+ Hash$1.prototype.get = hashGet;
84594
+ Hash$1.prototype.has = hashHas;
84595
+ Hash$1.prototype.set = hashSet;
84596
+
84597
+ var _Hash = Hash$1;
84598
+
84599
+ /**
84600
+ * Removes all key-value entries from the list cache.
84601
+ *
84602
+ * @private
84603
+ * @name clear
84604
+ * @memberOf ListCache
84605
+ */
84606
+
84607
+ function listCacheClear$1() {
84608
+ this.__data__ = [];
84609
+ this.size = 0;
84610
+ }
84611
+
84612
+ var _listCacheClear = listCacheClear$1;
84613
+
84614
+ /**
84615
+ * Performs a
84616
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
84617
+ * comparison between two values to determine if they are equivalent.
84618
+ *
84619
+ * @static
84620
+ * @memberOf _
84621
+ * @since 4.0.0
84622
+ * @category Lang
84623
+ * @param {*} value The value to compare.
84624
+ * @param {*} other The other value to compare.
84625
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
84626
+ * @example
84627
+ *
84628
+ * var object = { 'a': 1 };
84629
+ * var other = { 'a': 1 };
84630
+ *
84631
+ * _.eq(object, object);
84632
+ * // => true
84633
+ *
84634
+ * _.eq(object, other);
84635
+ * // => false
84636
+ *
84637
+ * _.eq('a', 'a');
84638
+ * // => true
84639
+ *
84640
+ * _.eq('a', Object('a'));
84641
+ * // => false
84642
+ *
84643
+ * _.eq(NaN, NaN);
84644
+ * // => true
84645
+ */
84646
+
84647
+ function eq$1(value, other) {
84648
+ return value === other || (value !== value && other !== other);
84649
+ }
84650
+
84651
+ var eq_1 = eq$1;
84652
+
84653
+ var eq = eq_1;
84654
+
84655
+ /**
84656
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
84657
+ *
84658
+ * @private
84659
+ * @param {Array} array The array to inspect.
84660
+ * @param {*} key The key to search for.
84661
+ * @returns {number} Returns the index of the matched value, else `-1`.
84662
+ */
84663
+ function assocIndexOf$4(array, key) {
84664
+ var length = array.length;
84665
+ while (length--) {
84666
+ if (eq(array[length][0], key)) {
84667
+ return length;
84668
+ }
84669
+ }
84670
+ return -1;
84671
+ }
84672
+
84673
+ var _assocIndexOf = assocIndexOf$4;
84674
+
84675
+ var assocIndexOf$3 = _assocIndexOf;
84676
+
84677
+ /** Used for built-in method references. */
84678
+ var arrayProto = Array.prototype;
84679
+
84680
+ /** Built-in value references. */
84681
+ var splice = arrayProto.splice;
84682
+
84683
+ /**
84684
+ * Removes `key` and its value from the list cache.
84685
+ *
84686
+ * @private
84687
+ * @name delete
84688
+ * @memberOf ListCache
84689
+ * @param {string} key The key of the value to remove.
84690
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
84691
+ */
84692
+ function listCacheDelete$1(key) {
84693
+ var data = this.__data__,
84694
+ index = assocIndexOf$3(data, key);
84695
+
84696
+ if (index < 0) {
84697
+ return false;
84698
+ }
84699
+ var lastIndex = data.length - 1;
84700
+ if (index == lastIndex) {
84701
+ data.pop();
84702
+ } else {
84703
+ splice.call(data, index, 1);
84704
+ }
84705
+ --this.size;
84706
+ return true;
84707
+ }
84708
+
84709
+ var _listCacheDelete = listCacheDelete$1;
84710
+
84711
+ var assocIndexOf$2 = _assocIndexOf;
84712
+
84713
+ /**
84714
+ * Gets the list cache value for `key`.
84715
+ *
84716
+ * @private
84717
+ * @name get
84718
+ * @memberOf ListCache
84719
+ * @param {string} key The key of the value to get.
84720
+ * @returns {*} Returns the entry value.
84721
+ */
84722
+ function listCacheGet$1(key) {
84723
+ var data = this.__data__,
84724
+ index = assocIndexOf$2(data, key);
84725
+
84726
+ return index < 0 ? undefined : data[index][1];
84727
+ }
84728
+
84729
+ var _listCacheGet = listCacheGet$1;
84730
+
84731
+ var assocIndexOf$1 = _assocIndexOf;
84732
+
84733
+ /**
84734
+ * Checks if a list cache value for `key` exists.
84735
+ *
84736
+ * @private
84737
+ * @name has
84738
+ * @memberOf ListCache
84739
+ * @param {string} key The key of the entry to check.
84740
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
84741
+ */
84742
+ function listCacheHas$1(key) {
84743
+ return assocIndexOf$1(this.__data__, key) > -1;
84744
+ }
84745
+
84746
+ var _listCacheHas = listCacheHas$1;
84747
+
84748
+ var assocIndexOf = _assocIndexOf;
84749
+
84750
+ /**
84751
+ * Sets the list cache `key` to `value`.
84752
+ *
84753
+ * @private
84754
+ * @name set
84755
+ * @memberOf ListCache
84756
+ * @param {string} key The key of the value to set.
84757
+ * @param {*} value The value to set.
84758
+ * @returns {Object} Returns the list cache instance.
84759
+ */
84760
+ function listCacheSet$1(key, value) {
84761
+ var data = this.__data__,
84762
+ index = assocIndexOf(data, key);
84763
+
84764
+ if (index < 0) {
84765
+ ++this.size;
84766
+ data.push([key, value]);
84767
+ } else {
84768
+ data[index][1] = value;
84769
+ }
84770
+ return this;
84771
+ }
84772
+
84773
+ var _listCacheSet = listCacheSet$1;
84774
+
84775
+ var listCacheClear = _listCacheClear,
84776
+ listCacheDelete = _listCacheDelete,
84777
+ listCacheGet = _listCacheGet,
84778
+ listCacheHas = _listCacheHas,
84779
+ listCacheSet = _listCacheSet;
84780
+
84781
+ /**
84782
+ * Creates an list cache object.
84783
+ *
84784
+ * @private
84785
+ * @constructor
84786
+ * @param {Array} [entries] The key-value pairs to cache.
84787
+ */
84788
+ function ListCache$1(entries) {
84789
+ var index = -1,
84790
+ length = entries == null ? 0 : entries.length;
84791
+
84792
+ this.clear();
84793
+ while (++index < length) {
84794
+ var entry = entries[index];
84795
+ this.set(entry[0], entry[1]);
84796
+ }
84797
+ }
84798
+
84799
+ // Add methods to `ListCache`.
84800
+ ListCache$1.prototype.clear = listCacheClear;
84801
+ ListCache$1.prototype['delete'] = listCacheDelete;
84802
+ ListCache$1.prototype.get = listCacheGet;
84803
+ ListCache$1.prototype.has = listCacheHas;
84804
+ ListCache$1.prototype.set = listCacheSet;
84805
+
84806
+ var _ListCache = ListCache$1;
84807
+
84808
+ var getNative = _getNative,
84809
+ root = _root;
84810
+
84811
+ /* Built-in method references that are verified to be native. */
84812
+ var Map$2 = getNative(root, 'Map');
84813
+
84814
+ var _Map = Map$2;
84815
+
84816
+ var Hash = _Hash,
84817
+ ListCache = _ListCache,
84818
+ Map$1 = _Map;
84819
+
84820
+ /**
84821
+ * Removes all key-value entries from the map.
84822
+ *
84823
+ * @private
84824
+ * @name clear
84825
+ * @memberOf MapCache
84826
+ */
84827
+ function mapCacheClear$1() {
84828
+ this.size = 0;
84829
+ this.__data__ = {
84830
+ 'hash': new Hash,
84831
+ 'map': new (Map$1 || ListCache),
84832
+ 'string': new Hash
84833
+ };
84834
+ }
84835
+
84836
+ var _mapCacheClear = mapCacheClear$1;
84837
+
84838
+ /**
84839
+ * Checks if `value` is suitable for use as unique object key.
84840
+ *
84841
+ * @private
84842
+ * @param {*} value The value to check.
84843
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
84844
+ */
84845
+
84846
+ function isKeyable$1(value) {
84847
+ var type = typeof value;
84848
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
84849
+ ? (value !== '__proto__')
84850
+ : (value === null);
84851
+ }
84852
+
84853
+ var _isKeyable = isKeyable$1;
84854
+
84855
+ var isKeyable = _isKeyable;
84856
+
84857
+ /**
84858
+ * Gets the data for `map`.
84859
+ *
84860
+ * @private
84861
+ * @param {Object} map The map to query.
84862
+ * @param {string} key The reference key.
84863
+ * @returns {*} Returns the map data.
84864
+ */
84865
+ function getMapData$4(map, key) {
84866
+ var data = map.__data__;
84867
+ return isKeyable(key)
84868
+ ? data[typeof key == 'string' ? 'string' : 'hash']
84869
+ : data.map;
84870
+ }
84871
+
84872
+ var _getMapData = getMapData$4;
84873
+
84874
+ var getMapData$3 = _getMapData;
84875
+
84876
+ /**
84877
+ * Removes `key` and its value from the map.
84878
+ *
84879
+ * @private
84880
+ * @name delete
84881
+ * @memberOf MapCache
84882
+ * @param {string} key The key of the value to remove.
84883
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
84884
+ */
84885
+ function mapCacheDelete$1(key) {
84886
+ var result = getMapData$3(this, key)['delete'](key);
84887
+ this.size -= result ? 1 : 0;
84888
+ return result;
84889
+ }
84890
+
84891
+ var _mapCacheDelete = mapCacheDelete$1;
84892
+
84893
+ var getMapData$2 = _getMapData;
84894
+
84895
+ /**
84896
+ * Gets the map value for `key`.
84897
+ *
84898
+ * @private
84899
+ * @name get
84900
+ * @memberOf MapCache
84901
+ * @param {string} key The key of the value to get.
84902
+ * @returns {*} Returns the entry value.
84903
+ */
84904
+ function mapCacheGet$1(key) {
84905
+ return getMapData$2(this, key).get(key);
84906
+ }
84907
+
84908
+ var _mapCacheGet = mapCacheGet$1;
84909
+
84910
+ var getMapData$1 = _getMapData;
84911
+
84912
+ /**
84913
+ * Checks if a map value for `key` exists.
84914
+ *
84915
+ * @private
84916
+ * @name has
84917
+ * @memberOf MapCache
84918
+ * @param {string} key The key of the entry to check.
84919
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
84920
+ */
84921
+ function mapCacheHas$1(key) {
84922
+ return getMapData$1(this, key).has(key);
84923
+ }
84924
+
84925
+ var _mapCacheHas = mapCacheHas$1;
84926
+
84927
+ var getMapData = _getMapData;
84928
+
84929
+ /**
84930
+ * Sets the map `key` to `value`.
84931
+ *
84932
+ * @private
84933
+ * @name set
84934
+ * @memberOf MapCache
84935
+ * @param {string} key The key of the value to set.
84936
+ * @param {*} value The value to set.
84937
+ * @returns {Object} Returns the map cache instance.
84938
+ */
84939
+ function mapCacheSet$1(key, value) {
84940
+ var data = getMapData(this, key),
84941
+ size = data.size;
84942
+
84943
+ data.set(key, value);
84944
+ this.size += data.size == size ? 0 : 1;
84945
+ return this;
84946
+ }
84947
+
84948
+ var _mapCacheSet = mapCacheSet$1;
84949
+
84950
+ var mapCacheClear = _mapCacheClear,
84951
+ mapCacheDelete = _mapCacheDelete,
84952
+ mapCacheGet = _mapCacheGet,
84953
+ mapCacheHas = _mapCacheHas,
84954
+ mapCacheSet = _mapCacheSet;
84955
+
84956
+ /**
84957
+ * Creates a map cache object to store key-value pairs.
84958
+ *
84959
+ * @private
84960
+ * @constructor
84961
+ * @param {Array} [entries] The key-value pairs to cache.
84962
+ */
84963
+ function MapCache$1(entries) {
84964
+ var index = -1,
84965
+ length = entries == null ? 0 : entries.length;
84966
+
84967
+ this.clear();
84968
+ while (++index < length) {
84969
+ var entry = entries[index];
84970
+ this.set(entry[0], entry[1]);
84971
+ }
84972
+ }
84973
+
84974
+ // Add methods to `MapCache`.
84975
+ MapCache$1.prototype.clear = mapCacheClear;
84976
+ MapCache$1.prototype['delete'] = mapCacheDelete;
84977
+ MapCache$1.prototype.get = mapCacheGet;
84978
+ MapCache$1.prototype.has = mapCacheHas;
84979
+ MapCache$1.prototype.set = mapCacheSet;
84980
+
84981
+ var _MapCache = MapCache$1;
84982
+
84983
+ var MapCache = _MapCache;
84984
+
84985
+ /** Error message constants. */
84986
+ var FUNC_ERROR_TEXT = 'Expected a function';
84987
+
84988
+ /**
84989
+ * Creates a function that memoizes the result of `func`. If `resolver` is
84990
+ * provided, it determines the cache key for storing the result based on the
84991
+ * arguments provided to the memoized function. By default, the first argument
84992
+ * provided to the memoized function is used as the map cache key. The `func`
84993
+ * is invoked with the `this` binding of the memoized function.
84994
+ *
84995
+ * **Note:** The cache is exposed as the `cache` property on the memoized
84996
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
84997
+ * constructor with one whose instances implement the
84998
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
84999
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
85000
+ *
85001
+ * @static
85002
+ * @memberOf _
85003
+ * @since 0.1.0
85004
+ * @category Function
85005
+ * @param {Function} func The function to have its output memoized.
85006
+ * @param {Function} [resolver] The function to resolve the cache key.
85007
+ * @returns {Function} Returns the new memoized function.
85008
+ * @example
85009
+ *
85010
+ * var object = { 'a': 1, 'b': 2 };
85011
+ * var other = { 'c': 3, 'd': 4 };
85012
+ *
85013
+ * var values = _.memoize(_.values);
85014
+ * values(object);
85015
+ * // => [1, 2]
85016
+ *
85017
+ * values(other);
85018
+ * // => [3, 4]
85019
+ *
85020
+ * object.a = 2;
85021
+ * values(object);
85022
+ * // => [1, 2]
85023
+ *
85024
+ * // Modify the result cache.
85025
+ * values.cache.set(object, ['a', 'b']);
85026
+ * values(object);
85027
+ * // => ['a', 'b']
85028
+ *
85029
+ * // Replace `_.memoize.Cache`.
85030
+ * _.memoize.Cache = WeakMap;
85031
+ */
85032
+ function memoize$1(func, resolver) {
85033
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
85034
+ throw new TypeError(FUNC_ERROR_TEXT);
85035
+ }
85036
+ var memoized = function() {
85037
+ var args = arguments,
85038
+ key = resolver ? resolver.apply(this, args) : args[0],
85039
+ cache = memoized.cache;
85040
+
85041
+ if (cache.has(key)) {
85042
+ return cache.get(key);
85043
+ }
85044
+ var result = func.apply(this, args);
85045
+ memoized.cache = cache.set(key, result) || cache;
85046
+ return result;
85047
+ };
85048
+ memoized.cache = new (memoize$1.Cache || MapCache);
85049
+ return memoized;
85050
+ }
85051
+
85052
+ // Expose `MapCache`.
85053
+ memoize$1.Cache = MapCache;
85054
+
85055
+ var memoize_1 = memoize$1;
85056
+
85057
+ var memoize = memoize_1;
85058
+
85059
+ /** Used as the maximum memoize cache size. */
85060
+ var MAX_MEMOIZE_SIZE = 500;
85061
+
85062
+ /**
85063
+ * A specialized version of `_.memoize` which clears the memoized function's
85064
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
85065
+ *
85066
+ * @private
85067
+ * @param {Function} func The function to have its output memoized.
85068
+ * @returns {Function} Returns the new memoized function.
85069
+ */
85070
+ function memoizeCapped$1(func) {
85071
+ var result = memoize(func, function(key) {
85072
+ if (cache.size === MAX_MEMOIZE_SIZE) {
85073
+ cache.clear();
85074
+ }
85075
+ return key;
85076
+ });
85077
+
85078
+ var cache = result.cache;
85079
+ return result;
85080
+ }
85081
+
85082
+ var _memoizeCapped = memoizeCapped$1;
85083
+
85084
+ var memoizeCapped = _memoizeCapped;
85085
+
85086
+ /** Used to match property names within property paths. */
85087
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
85088
+
85089
+ /** Used to match backslashes in property paths. */
85090
+ var reEscapeChar = /\\(\\)?/g;
85091
+
85092
+ /**
85093
+ * Converts `string` to a property path array.
85094
+ *
85095
+ * @private
85096
+ * @param {string} string The string to convert.
85097
+ * @returns {Array} Returns the property path array.
85098
+ */
85099
+ var stringToPath$1 = memoizeCapped(function(string) {
85100
+ var result = [];
85101
+ if (string.charCodeAt(0) === 46 /* . */) {
85102
+ result.push('');
85103
+ }
85104
+ string.replace(rePropName, function(match, number, quote, subString) {
85105
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
85106
+ });
85107
+ return result;
85108
+ });
85109
+
85110
+ var _stringToPath = stringToPath$1;
85111
+
85112
+ /**
85113
+ * A specialized version of `_.map` for arrays without support for iteratee
85114
+ * shorthands.
85115
+ *
85116
+ * @private
85117
+ * @param {Array} [array] The array to iterate over.
85118
+ * @param {Function} iteratee The function invoked per iteration.
85119
+ * @returns {Array} Returns the new mapped array.
85120
+ */
85121
+
85122
+ function arrayMap$1(array, iteratee) {
85123
+ var index = -1,
85124
+ length = array == null ? 0 : array.length,
85125
+ result = Array(length);
85126
+
85127
+ while (++index < length) {
85128
+ result[index] = iteratee(array[index], index, array);
85129
+ }
85130
+ return result;
85131
+ }
85132
+
85133
+ var _arrayMap = arrayMap$1;
85134
+
85135
+ var Symbol$1 = _Symbol,
85136
+ arrayMap = _arrayMap,
85137
+ isArray$1 = isArray_1,
85138
+ isSymbol$1 = isSymbol_1;
85139
+
85140
+ /** Used to convert symbols to primitives and strings. */
85141
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
85142
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
85143
+
85144
+ /**
85145
+ * The base implementation of `_.toString` which doesn't convert nullish
85146
+ * values to empty strings.
85147
+ *
85148
+ * @private
85149
+ * @param {*} value The value to process.
85150
+ * @returns {string} Returns the string.
85151
+ */
85152
+ function baseToString$1(value) {
85153
+ // Exit early for strings to avoid a performance hit in some environments.
85154
+ if (typeof value == 'string') {
85155
+ return value;
85156
+ }
85157
+ if (isArray$1(value)) {
85158
+ // Recursively convert values (susceptible to call stack limits).
85159
+ return arrayMap(value, baseToString$1) + '';
85160
+ }
85161
+ if (isSymbol$1(value)) {
85162
+ return symbolToString ? symbolToString.call(value) : '';
85163
+ }
85164
+ var result = (value + '');
85165
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
85166
+ }
85167
+
85168
+ var _baseToString = baseToString$1;
85169
+
85170
+ var baseToString = _baseToString;
85171
+
85172
+ /**
85173
+ * Converts `value` to a string. An empty string is returned for `null`
85174
+ * and `undefined` values. The sign of `-0` is preserved.
85175
+ *
85176
+ * @static
85177
+ * @memberOf _
85178
+ * @since 4.0.0
85179
+ * @category Lang
85180
+ * @param {*} value The value to convert.
85181
+ * @returns {string} Returns the converted string.
85182
+ * @example
85183
+ *
85184
+ * _.toString(null);
85185
+ * // => ''
85186
+ *
85187
+ * _.toString(-0);
85188
+ * // => '-0'
85189
+ *
85190
+ * _.toString([1, 2, 3]);
85191
+ * // => '1,2,3'
85192
+ */
85193
+ function toString$1(value) {
85194
+ return value == null ? '' : baseToString(value);
85195
+ }
85196
+
85197
+ var toString_1 = toString$1;
85198
+
85199
+ var isArray = isArray_1,
85200
+ isKey = _isKey,
85201
+ stringToPath = _stringToPath,
85202
+ toString = toString_1;
85203
+
85204
+ /**
85205
+ * Casts `value` to a path array if it's not one.
85206
+ *
85207
+ * @private
85208
+ * @param {*} value The value to inspect.
85209
+ * @param {Object} [object] The object to query keys on.
85210
+ * @returns {Array} Returns the cast property path array.
85211
+ */
85212
+ function castPath$1(value, object) {
85213
+ if (isArray(value)) {
85214
+ return value;
85215
+ }
85216
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
85217
+ }
85218
+
85219
+ var _castPath = castPath$1;
85220
+
85221
+ var isSymbol = isSymbol_1;
85222
+
85223
+ /**
85224
+ * Converts `value` to a string key if it's not a string or symbol.
85225
+ *
85226
+ * @private
85227
+ * @param {*} value The value to inspect.
85228
+ * @returns {string|symbol} Returns the key.
85229
+ */
85230
+ function toKey$1(value) {
85231
+ if (typeof value == 'string' || isSymbol(value)) {
85232
+ return value;
85233
+ }
85234
+ var result = (value + '');
85235
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
85236
+ }
85237
+
85238
+ var _toKey = toKey$1;
85239
+
85240
+ var castPath = _castPath,
85241
+ toKey = _toKey;
85242
+
85243
+ /**
85244
+ * The base implementation of `_.get` without support for default values.
85245
+ *
85246
+ * @private
85247
+ * @param {Object} object The object to query.
85248
+ * @param {Array|string} path The path of the property to get.
85249
+ * @returns {*} Returns the resolved value.
85250
+ */
85251
+ function baseGet$1(object, path) {
85252
+ path = castPath(path, object);
85253
+
85254
+ var index = 0,
85255
+ length = path.length;
85256
+
85257
+ while (object != null && index < length) {
85258
+ object = object[toKey(path[index++])];
85259
+ }
85260
+ return (index && index == length) ? object : undefined;
85261
+ }
85262
+
85263
+ var _baseGet = baseGet$1;
85264
+
85265
+ var baseGet = _baseGet;
85266
+
85267
+ /**
85268
+ * Gets the value at `path` of `object`. If the resolved value is
85269
+ * `undefined`, the `defaultValue` is returned in its place.
85270
+ *
85271
+ * @static
85272
+ * @memberOf _
85273
+ * @since 3.7.0
85274
+ * @category Object
85275
+ * @param {Object} object The object to query.
85276
+ * @param {Array|string} path The path of the property to get.
85277
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
85278
+ * @returns {*} Returns the resolved value.
85279
+ * @example
85280
+ *
85281
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
85282
+ *
85283
+ * _.get(object, 'a[0].b.c');
85284
+ * // => 3
85285
+ *
85286
+ * _.get(object, ['a', '0', 'b', 'c']);
85287
+ * // => 3
85288
+ *
85289
+ * _.get(object, 'a.b.c', 'default');
85290
+ * // => 'default'
85291
+ */
85292
+ function get(object, path, defaultValue) {
85293
+ var result = object == null ? undefined : baseGet(object, path);
85294
+ return result === undefined ? defaultValue : result;
85295
+ }
85296
+
85297
+ var get_1 = get;
85298
+
85299
+ const get$1 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
85300
+
83915
85301
  const prettyFieldPath = (name) => {
83916
85302
  return Array.isArray(name) ? name.map((segment) => String(segment)).join(".") : String(name);
83917
85303
  };
83918
- const getRequiredRule = (isRequired, name) => {
83919
- return {
83920
- required: isRequired,
83921
- message: `Please enter ${prettyFieldPath(name)}`
83922
- };
85304
+ const isEmptyValue = (value) => value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
85305
+ const isPresentForOneOf = (value) => {
85306
+ if (value === null) return true;
85307
+ if (value === void 0) return false;
85308
+ if (typeof value === "string") return value.length > 0;
85309
+ if (Array.isArray(value)) return value.length > 0;
85310
+ if (typeof value === "object") return Object.keys(value).length > 0;
85311
+ return true;
85312
+ };
85313
+ const formatOneOfGroup = (group) => `[${group.join(", ")}]`;
85314
+ const getOneOfRequiredGroupsMessage = (name, groups) => {
85315
+ const groupText = groups.map(formatOneOfGroup).join(", ");
85316
+ return `Please provide exactly one of the following for ${prettyFieldPath(name)}: ${groupText}`;
85317
+ };
85318
+ const getOneOfRequiredGroupsError = ({
85319
+ value,
85320
+ name,
85321
+ groups
85322
+ }) => {
85323
+ if (!isPresentForOneOf(value)) {
85324
+ return void 0;
85325
+ }
85326
+ const satisfiedGroups = groups.filter((group) => group.every((path) => isPresentForOneOf(get$1(value, path))));
85327
+ if (satisfiedGroups.length === 1) {
85328
+ return void 0;
85329
+ }
85330
+ return getOneOfRequiredGroupsMessage(name, groups);
85331
+ };
85332
+ const getCurrentOneOfRequiredGroupState = ({
85333
+ path,
85334
+ nodeOneOfRequiredGroups,
85335
+ value
85336
+ }) => {
85337
+ if (!nodeOneOfRequiredGroups || nodeOneOfRequiredGroups.length === 0) {
85338
+ return [];
85339
+ }
85340
+ const error = getOneOfRequiredGroupsError({
85341
+ value,
85342
+ name: path,
85343
+ groups: nodeOneOfRequiredGroups
85344
+ });
85345
+ return [
85346
+ {
85347
+ name: path,
85348
+ errors: error ? [error] : []
85349
+ }
85350
+ ];
85351
+ };
85352
+ const collectOneOfRequiredGroupStates = ({
85353
+ properties,
85354
+ values,
85355
+ currentPath = []
85356
+ }) => {
85357
+ return Object.entries(properties).flatMap(([key, node]) => {
85358
+ const path = [...currentPath, key];
85359
+ const value = get$1(values, path);
85360
+ const currentState = getCurrentOneOfRequiredGroupState({
85361
+ path,
85362
+ nodeOneOfRequiredGroups: node.oneOfRequiredGroups,
85363
+ value
85364
+ });
85365
+ const nestedObjectStates = node.properties && value && typeof value === "object" && !Array.isArray(value) ? collectOneOfRequiredGroupStates({
85366
+ properties: node.properties,
85367
+ values,
85368
+ currentPath: path
85369
+ }) : [];
85370
+ const nestedArrayStates = node.type === "array" && node.items && Array.isArray(value) ? value.flatMap((_, index) => [
85371
+ ...getCurrentOneOfRequiredGroupState({
85372
+ path: [...path, index],
85373
+ nodeOneOfRequiredGroups: node.items?.oneOfRequiredGroups,
85374
+ value: get$1(values, [...path, index])
85375
+ }),
85376
+ ...node.items?.properties ? collectOneOfRequiredGroupStates({
85377
+ properties: node.items.properties,
85378
+ values,
85379
+ currentPath: [...path, index]
85380
+ }) : []
85381
+ ]) : [];
85382
+ return [...currentState, ...nestedObjectStates, ...nestedArrayStates];
85383
+ });
85384
+ };
85385
+ const getRequiredRule = (isRequired, name, nullable) => {
85386
+ const message = `Please enter ${prettyFieldPath(name)}`;
85387
+ if (!isRequired) {
85388
+ return { required: false, message };
85389
+ }
85390
+ if (nullable) {
85391
+ return {
85392
+ required: true,
85393
+ message,
85394
+ validator: async (_, value) => {
85395
+ if (value === null) return;
85396
+ if (isEmptyValue(value)) {
85397
+ throw new Error(message);
85398
+ }
85399
+ }
85400
+ };
85401
+ }
85402
+ return { required: true, message };
83923
85403
  };
83924
85404
 
83925
85405
  const FormListInput = ({
@@ -83935,7 +85415,8 @@ const FormListInput = ({
83935
85415
  persistedControls,
83936
85416
  customProps,
83937
85417
  urlParams,
83938
- onRemoveByMinus
85418
+ onRemoveByMinus,
85419
+ defaultValue
83939
85420
  }) => {
83940
85421
  const designNewLayout = useDesignNewLayout();
83941
85422
  const onValuesChangeCallBack = useOnValuesChangeCallback();
@@ -83945,6 +85426,8 @@ const FormListInput = ({
83945
85426
  const form = Form.useFormInstance();
83946
85427
  const fieldValue = Form.useWatch(name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name, form);
83947
85428
  const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
85429
+ const formFieldName = arrName || fixedName;
85430
+ const defaultBtn = useDefaultValueButton(formFieldName, defaultValue);
83948
85431
  const fullFieldPath = normalizeNameToPath(fixedName);
83949
85432
  const baseForRelative = listItemBasePath(fullFieldPath);
83950
85433
  const relatedPath = customProps.relatedValuePath ? resolveFormPath(customProps.relatedValuePath, baseForRelative) : void 0;
@@ -84063,14 +85546,23 @@ const FormListInput = ({
84063
85546
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, children: [
84064
85547
  isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84065
85548
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84066
- /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "arr" })
85549
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "arr" }),
85550
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
85551
+ DefaultValueButton,
85552
+ {
85553
+ defaultValue,
85554
+ isApplied: defaultBtn.isApplied,
85555
+ onApply: defaultBtn.handleApply,
85556
+ onClear: defaultBtn.handleClear
85557
+ }
85558
+ )
84067
85559
  ] })
84068
85560
  ] }),
84069
85561
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 8, align: "center", children: [
84070
85562
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84071
85563
  ResetedFormItem$1,
84072
85564
  {
84073
- name: arrName || fixedName,
85565
+ name: formFieldName,
84074
85566
  rules: [getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name)],
84075
85567
  validateTrigger: "onBlur",
84076
85568
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
@@ -84079,7 +85571,7 @@ const FormListInput = ({
84079
85571
  Select,
84080
85572
  {
84081
85573
  mode: customProps.mode,
84082
- placeholder: "Select",
85574
+ placeholder: defaultValue !== void 0 ? `Default: ${formatDefaultValue(defaultValue)}` : "Select",
84083
85575
  options: uniqueOptions,
84084
85576
  filterOption: filterSelectOptions,
84085
85577
  disabled: isWaitingForRelatedValue,
@@ -84486,19 +85978,33 @@ const FormNamespaceInput = ({
84486
85978
  name,
84487
85979
  namespaceData,
84488
85980
  isAdditionalProperties,
84489
- removeField
85981
+ removeField,
85982
+ defaultValue
84490
85983
  }) => {
84491
85984
  const designNewLayout = useDesignNewLayout();
85985
+ const defaultBtn = useDefaultValueButton(name, defaultValue);
84492
85986
  if (!namespaceData) {
84493
85987
  return null;
84494
85988
  }
85989
+ const placeholder = defaultValue !== void 0 ? `Default: ${defaultValue}` : "Select namespace";
84495
85990
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
84496
85991
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
84497
85992
  /* @__PURE__ */ jsxRuntimeExports.jsxs(CustomSizeTitle, { $designNewLayout: designNewLayout, children: [
84498
85993
  "namespace",
84499
85994
  /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" })
84500
85995
  ] }),
84501
- /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { gap: 4, children: isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }) })
85996
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, children: [
85997
+ isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
85998
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
85999
+ DefaultValueButton,
86000
+ {
86001
+ defaultValue,
86002
+ isApplied: defaultBtn.isApplied,
86003
+ onApply: defaultBtn.handleApply,
86004
+ onClear: defaultBtn.handleClear
86005
+ }
86006
+ )
86007
+ ] })
84502
86008
  ] }),
84503
86009
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84504
86010
  ResetedFormItem$1,
@@ -84510,7 +86016,7 @@ const FormNamespaceInput = ({
84510
86016
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
84511
86017
  Select,
84512
86018
  {
84513
- placeholder: "Select namespace",
86019
+ placeholder,
84514
86020
  options: namespaceData.selectValues,
84515
86021
  filterOption: namespaceData.filterSelectOptions,
84516
86022
  allowClear: true,
@@ -84523,6 +86029,28 @@ const FormNamespaceInput = ({
84523
86029
  ] });
84524
86030
  };
84525
86031
 
86032
+ const useNullToggleButton = (formFieldName, nullable) => {
86033
+ const form = Form.useFormInstance();
86034
+ const currentValue = Form.useWatch(formFieldName, form);
86035
+ const handleSetNull = useCallback(() => {
86036
+ form.setFieldValue(formFieldName, null);
86037
+ }, [form, formFieldName]);
86038
+ const handleClear = useCallback(() => {
86039
+ form.setFieldValue(formFieldName, void 0);
86040
+ }, [form, formFieldName]);
86041
+ return useMemo(() => {
86042
+ if (!nullable) {
86043
+ return { visible: false };
86044
+ }
86045
+ return {
86046
+ visible: true,
86047
+ isNull: currentValue === null,
86048
+ handleSetNull,
86049
+ handleClear
86050
+ };
86051
+ }, [nullable, currentValue, handleSetNull, handleClear]);
86052
+ };
86053
+
84526
86054
  const FormStringInput = ({
84527
86055
  name,
84528
86056
  arrKey,
@@ -84534,13 +86062,21 @@ const FormStringInput = ({
84534
86062
  isAdditionalProperties,
84535
86063
  removeField,
84536
86064
  persistedControls,
84537
- onRemoveByMinus
86065
+ onRemoveByMinus,
86066
+ defaultValue,
86067
+ example,
86068
+ nullable
84538
86069
  }) => {
84539
86070
  const designNewLayout = useDesignNewLayout();
84540
86071
  const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
86072
+ const formFieldName = arrName || fixedName;
86073
+ const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86074
+ const nullBtn = useNullToggleButton(formFieldName, nullable);
86075
+ const exampleTooltip = getExampleTooltip(defaultValue, example);
84541
86076
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
84542
86077
  getStringByName(name),
84543
- required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" })
86078
+ required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
86079
+ exampleTooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(ExampleTooltipIcon, { tooltip: exampleTooltip })
84544
86080
  ] });
84545
86081
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
84546
86082
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
@@ -84548,17 +86084,35 @@ const FormStringInput = ({
84548
86084
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, children: [
84549
86085
  isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84550
86086
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84551
- /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "str" })
86087
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "str" }),
86088
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
86089
+ DefaultValueButton,
86090
+ {
86091
+ defaultValue,
86092
+ isApplied: defaultBtn.isApplied,
86093
+ onApply: defaultBtn.handleApply,
86094
+ onClear: defaultBtn.handleClear
86095
+ }
86096
+ ),
86097
+ nullBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(NullToggleButton, { isNull: nullBtn.isNull, onSetNull: nullBtn.handleSetNull, onClear: nullBtn.handleClear })
84552
86098
  ] })
84553
86099
  ] }),
84554
86100
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84555
86101
  ResetedFormItem$1,
84556
86102
  {
84557
- name: arrName || fixedName,
84558
- rules: [getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name)],
86103
+ name: formFieldName,
86104
+ rules: [
86105
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86106
+ ],
84559
86107
  validateTrigger: "onBlur",
84560
86108
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
84561
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { placeholder: getStringByName(name) })
86109
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86110
+ Input,
86111
+ {
86112
+ placeholder: buildPlaceholder(name, defaultValue, example),
86113
+ disabled: nullBtn.visible && nullBtn.isNull
86114
+ }
86115
+ )
84562
86116
  },
84563
86117
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
84564
86118
  )
@@ -84603,16 +86157,24 @@ const FormStringMultilineInput = ({
84603
86157
  removeField,
84604
86158
  persistedControls,
84605
86159
  onRemoveByMinus,
84606
- isBase64
86160
+ isBase64,
86161
+ defaultValue,
86162
+ example,
86163
+ nullable
84607
86164
  }) => {
84608
86165
  const designNewLayout = useDesignNewLayout();
86166
+ const placeholder = buildPlaceholder(name, defaultValue, example);
86167
+ const exampleTooltip = getExampleTooltip(defaultValue, example);
84609
86168
  const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
84610
86169
  const formFieldName = arrName || fixedName;
84611
86170
  const formValue = Form.useWatch(formFieldName);
84612
86171
  const form = Form.useFormInstance();
86172
+ const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86173
+ const nullBtn = useNullToggleButton(formFieldName, nullable);
84613
86174
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
84614
86175
  getStringByName(name),
84615
- required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" })
86176
+ required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
86177
+ exampleTooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(ExampleTooltipIcon, { tooltip: exampleTooltip })
84616
86178
  ] });
84617
86179
  const [decoded, setDecoded] = useState("");
84618
86180
  useEffect(() => {
@@ -84629,14 +86191,26 @@ const FormStringMultilineInput = ({
84629
86191
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, children: [
84630
86192
  isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84631
86193
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84632
- /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "str" })
86194
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "str" }),
86195
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
86196
+ DefaultValueButton,
86197
+ {
86198
+ defaultValue,
86199
+ isApplied: defaultBtn.isApplied,
86200
+ onApply: defaultBtn.handleApply,
86201
+ onClear: defaultBtn.handleClear
86202
+ }
86203
+ ),
86204
+ nullBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(NullToggleButton, { isNull: nullBtn.isNull, onSetNull: nullBtn.handleSetNull, onClear: nullBtn.handleClear })
84633
86205
  ] })
84634
86206
  ] }),
84635
86207
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84636
86208
  ResetedFormItem$1,
84637
86209
  {
84638
86210
  name: arrName || fixedName,
84639
- rules: [getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name)],
86211
+ rules: [
86212
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86213
+ ],
84640
86214
  validateTrigger: "onBlur",
84641
86215
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
84642
86216
  style: {
@@ -84645,9 +86219,10 @@ const FormStringMultilineInput = ({
84645
86219
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
84646
86220
  Input.TextArea,
84647
86221
  {
84648
- placeholder: getStringByName(name),
86222
+ placeholder,
84649
86223
  rows: 4,
84650
- autoSize: { minRows: 2, maxRows: 10 }
86224
+ autoSize: { minRows: 2, maxRows: 10 },
86225
+ disabled: nullBtn.visible && nullBtn.isNull
84651
86226
  }
84652
86227
  )
84653
86228
  },
@@ -84656,7 +86231,7 @@ const FormStringMultilineInput = ({
84656
86231
  isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.MarginBottom, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
84657
86232
  Input.TextArea,
84658
86233
  {
84659
- placeholder: getStringByName(name),
86234
+ placeholder,
84660
86235
  value: decoded,
84661
86236
  onChange: (e) => {
84662
86237
  try {
@@ -84693,9 +86268,12 @@ const FormBooleanInput = ({
84693
86268
  makeValueUndefined,
84694
86269
  isAdditionalProperties,
84695
86270
  removeField,
84696
- onRemoveByMinus
86271
+ onRemoveByMinus,
86272
+ defaultValue
84697
86273
  }) => {
84698
86274
  const designNewLayout = useDesignNewLayout();
86275
+ const formFieldName = arrName || name;
86276
+ const defaultBtn = useDefaultValueButton(formFieldName, defaultValue);
84699
86277
  const title = /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: getStringByName(name) });
84700
86278
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
84701
86279
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
@@ -84709,12 +86287,21 @@ const FormBooleanInput = ({
84709
86287
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84710
86288
  ResetedFormItem$1,
84711
86289
  {
84712
- name: arrName || name,
86290
+ name: formFieldName,
84713
86291
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, { size: "small" })
84714
86292
  },
84715
86293
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
84716
86294
  ),
84717
- /* @__PURE__ */ jsxRuntimeExports.jsx(
86295
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
86296
+ DefaultValueButton,
86297
+ {
86298
+ defaultValue,
86299
+ isApplied: defaultBtn.isApplied,
86300
+ onApply: defaultBtn.handleApply,
86301
+ onClear: defaultBtn.handleClear
86302
+ }
86303
+ ),
86304
+ !defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
84718
86305
  Styled$j.CrossContainer,
84719
86306
  {
84720
86307
  onClick: () => {
@@ -84741,13 +86328,21 @@ const FormEnumStringInput = ({
84741
86328
  removeField,
84742
86329
  options,
84743
86330
  persistedControls,
84744
- onRemoveByMinus
86331
+ onRemoveByMinus,
86332
+ defaultValue,
86333
+ example,
86334
+ nullable
84745
86335
  }) => {
84746
86336
  const designNewLayout = useDesignNewLayout();
84747
86337
  const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
86338
+ const formFieldName = arrName || fixedName;
86339
+ const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86340
+ const nullBtn = useNullToggleButton(formFieldName, nullable);
86341
+ const exampleTooltip = getExampleTooltip(defaultValue, example);
84748
86342
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
84749
86343
  getStringByName(name),
84750
- required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" })
86344
+ required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
86345
+ exampleTooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(ExampleTooltipIcon, { tooltip: exampleTooltip })
84751
86346
  ] });
84752
86347
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
84753
86348
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
@@ -84755,17 +86350,36 @@ const FormEnumStringInput = ({
84755
86350
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, children: [
84756
86351
  isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84757
86352
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84758
- /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "str" })
86353
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "str" }),
86354
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
86355
+ DefaultValueButton,
86356
+ {
86357
+ defaultValue,
86358
+ isApplied: defaultBtn.isApplied,
86359
+ onApply: defaultBtn.handleApply,
86360
+ onClear: defaultBtn.handleClear
86361
+ }
86362
+ ),
86363
+ nullBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(NullToggleButton, { isNull: nullBtn.isNull, onSetNull: nullBtn.handleSetNull, onClear: nullBtn.handleClear })
84759
86364
  ] })
84760
86365
  ] }),
84761
86366
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84762
86367
  ResetedFormItem$1,
84763
86368
  {
84764
- name: arrName || fixedName,
84765
- rules: [getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name)],
86369
+ name: formFieldName,
86370
+ rules: [
86371
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86372
+ ],
84766
86373
  validateTrigger: "onBlur",
84767
86374
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
84768
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: options.map((el) => ({ value: el, label: el })), placeholder: getStringByName(name) })
86375
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86376
+ Select,
86377
+ {
86378
+ options: options.map((el) => ({ value: el, label: el })),
86379
+ placeholder: buildPlaceholder(name, defaultValue, example),
86380
+ disabled: nullBtn.visible && nullBtn.isNull
86381
+ }
86382
+ )
84769
86383
  },
84770
86384
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
84771
86385
  )
@@ -84784,12 +86398,20 @@ const FormNumberInput = ({
84784
86398
  isAdditionalProperties,
84785
86399
  removeField,
84786
86400
  persistedControls,
84787
- onRemoveByMinus
86401
+ onRemoveByMinus,
86402
+ defaultValue,
86403
+ example,
86404
+ nullable
84788
86405
  }) => {
84789
86406
  const designNewLayout = useDesignNewLayout();
86407
+ const formFieldName = arrName || name;
86408
+ const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86409
+ const nullBtn = useNullToggleButton(formFieldName, nullable);
86410
+ const exampleTooltip = getExampleTooltip(defaultValue, example);
84790
86411
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
84791
86412
  getStringByName(name),
84792
- required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" })
86413
+ required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
86414
+ exampleTooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(ExampleTooltipIcon, { tooltip: exampleTooltip })
84793
86415
  ] });
84794
86416
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
84795
86417
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
@@ -84797,17 +86419,36 @@ const FormNumberInput = ({
84797
86419
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, children: [
84798
86420
  isAdditionalProperties && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => removeField({ path: name }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84799
86421
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }),
84800
- /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "number" })
86422
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "number" }),
86423
+ defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
86424
+ DefaultValueButton,
86425
+ {
86426
+ defaultValue,
86427
+ isApplied: defaultBtn.isApplied,
86428
+ onApply: defaultBtn.handleApply,
86429
+ onClear: defaultBtn.handleClear
86430
+ }
86431
+ ),
86432
+ nullBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(NullToggleButton, { isNull: nullBtn.isNull, onSetNull: nullBtn.handleSetNull, onClear: nullBtn.handleClear })
84801
86433
  ] })
84802
86434
  ] }),
84803
86435
  /* @__PURE__ */ jsxRuntimeExports.jsx(
84804
86436
  ResetedFormItem$1,
84805
86437
  {
84806
- name: arrName || name,
84807
- rules: [getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name)],
86438
+ name: formFieldName,
86439
+ rules: [
86440
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86441
+ ],
84808
86442
  validateTrigger: "onBlur",
84809
86443
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
84810
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(InputNumber, { placeholder: getStringByName(name), step: isNumber ? 0.1 : 1 })
86444
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86445
+ InputNumber,
86446
+ {
86447
+ placeholder: buildPlaceholder(name, defaultValue, example),
86448
+ step: isNumber ? 0.1 : 1,
86449
+ disabled: nullBtn.visible && nullBtn.isNull
86450
+ }
86451
+ )
84811
86452
  },
84812
86453
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
84813
86454
  )
@@ -84826,6 +86467,8 @@ const FormObjectFromSwagger = ({
84826
86467
  persistedControls,
84827
86468
  collapseTitle,
84828
86469
  collapseFormName,
86470
+ oneOfRequiredGroups,
86471
+ validationErrors,
84829
86472
  data,
84830
86473
  inputProps,
84831
86474
  onRemoveByMinus
@@ -84896,6 +86539,7 @@ const FormObjectFromSwagger = ({
84896
86539
  persistedCheckbox: inputProps ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "obj" }),
84897
86540
  children: [
84898
86541
  data,
86542
+ oneOfRequiredGroups && oneOfRequiredGroups.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Form.ErrorList, { errors: validationErrors }) : null,
84899
86543
  inputProps && /* @__PURE__ */ jsxRuntimeExports.jsx(
84900
86544
  Input,
84901
86545
  {
@@ -85141,6 +86785,122 @@ const getSortedPropertyKeys = ({
85141
86785
  });
85142
86786
  };
85143
86787
 
86788
+ const pathKey$1 = (p) => JSON.stringify(p);
86789
+ const pruneAdditionalForValues = (props, values, blockedPathsRef) => {
86790
+ const next = _$1.cloneDeep(props) || {};
86791
+ const walk = (schemaNode, valueNode, path = []) => {
86792
+ if (!schemaNode) return;
86793
+ if (schemaNode.type === "object") {
86794
+ const vo = valueNode && typeof valueNode === "object" && !Array.isArray(valueNode) ? valueNode : {};
86795
+ if (schemaNode.properties) {
86796
+ Object.keys(schemaNode.properties).forEach((k) => {
86797
+ const child = schemaNode.properties[k];
86798
+ const currentPath = pathKey$1([...path, k]);
86799
+ if (child?.isAdditionalProperties && (!(k in vo) || blockedPathsRef.current.has(currentPath))) {
86800
+ delete schemaNode.properties[k];
86801
+ return;
86802
+ }
86803
+ walk(child, vo?.[k], [...path, k]);
86804
+ });
86805
+ }
86806
+ }
86807
+ if (schemaNode.type === "array" && schemaNode.items && Array.isArray(valueNode)) {
86808
+ valueNode.forEach((item, idx) => {
86809
+ if (schemaNode.properties?.[idx]) {
86810
+ walk(schemaNode.items, item, [...path, idx]);
86811
+ }
86812
+ });
86813
+ }
86814
+ };
86815
+ Object.keys(next || {}).forEach((top) => {
86816
+ walk(next[top], values?.[top], [top]);
86817
+ });
86818
+ return next;
86819
+ };
86820
+ const materializeAdditionalFromValues = (props, values, blockedPathsRef) => {
86821
+ const next = _$1.cloneDeep(props) || {};
86822
+ const toExpand = [];
86823
+ const toPersist = [];
86824
+ const makeChildFromAP = (ap) => {
86825
+ const t = ap?.type ?? "object";
86826
+ const child = { type: t };
86827
+ if (ap?.properties) child.properties = _$1.cloneDeep(ap.properties);
86828
+ if (ap?.items) child.items = _$1.cloneDeep(ap.items);
86829
+ if (ap?.required)
86830
+ child.required = _$1.cloneDeep(ap.required);
86831
+ child.isAdditionalProperties = true;
86832
+ return child;
86833
+ };
86834
+ const walk = (schemaNode, valueNode, path) => {
86835
+ if (!schemaNode) return;
86836
+ if (schemaNode.type === "object") {
86837
+ const ap = schemaNode.additionalProperties;
86838
+ if (ap && valueNode && typeof valueNode === "object" && !Array.isArray(valueNode)) {
86839
+ const vo = valueNode;
86840
+ schemaNode.properties = schemaNode.properties || {};
86841
+ toExpand.push([...path]);
86842
+ Object.keys(vo).forEach((k) => {
86843
+ const current = pathKey$1([...path, k]);
86844
+ if (blockedPathsRef.current.has(current)) return;
86845
+ if (!schemaNode.properties[k]) {
86846
+ schemaNode.properties[k] = makeChildFromAP(ap);
86847
+ } else if (schemaNode.properties[k].isAdditionalProperties && ap?.properties) {
86848
+ schemaNode.properties[k].properties ??= _$1.cloneDeep(ap.properties);
86849
+ }
86850
+ toExpand.push([...path, k]);
86851
+ const v = vo[k];
86852
+ if (v && typeof v === "object" && !Array.isArray(v) && Object.keys(v).length === 0) {
86853
+ toPersist.push([...path, k]);
86854
+ } else if (v === "" || v === 0 || Array.isArray(v) && v.length === 0) {
86855
+ toPersist.push([...path, k]);
86856
+ }
86857
+ });
86858
+ }
86859
+ if (schemaNode.properties && valueNode && typeof valueNode === "object" && !Array.isArray(valueNode)) {
86860
+ const vo = valueNode;
86861
+ Object.keys(schemaNode.properties).forEach((k) => {
86862
+ walk(schemaNode.properties[k], vo?.[k], [...path, k]);
86863
+ });
86864
+ }
86865
+ }
86866
+ if (schemaNode.type === "array" && schemaNode.items) {
86867
+ const arr = Array.isArray(valueNode) ? valueNode : [];
86868
+ if (arr.length) toExpand.push([...path]);
86869
+ arr.forEach((itemVal, idx) => {
86870
+ if (schemaNode.properties) {
86871
+ schemaNode.properties[idx] = schemaNode.properties[idx] || {
86872
+ properties: {}
86873
+ };
86874
+ }
86875
+ walk(schemaNode.items, itemVal, [...path, idx]);
86876
+ });
86877
+ }
86878
+ };
86879
+ Object.keys(next || {}).forEach((top) => {
86880
+ walk(next[top], values?.[top], [top]);
86881
+ });
86882
+ return { props: next, toExpand, toPersist };
86883
+ };
86884
+
86885
+ const extractStringDefault = (value) => {
86886
+ return typeof value === "string" ? value : void 0;
86887
+ };
86888
+ const extractNumberDefault = (value) => {
86889
+ return typeof value === "number" ? value : void 0;
86890
+ };
86891
+ const extractBooleanDefault = (value) => {
86892
+ return typeof value === "boolean" ? value : void 0;
86893
+ };
86894
+ const extractListInputDefault = (value) => {
86895
+ if (typeof value === "string") {
86896
+ return value;
86897
+ }
86898
+ if (Array.isArray(value) && value.every((item) => typeof item === "string")) {
86899
+ return value;
86900
+ }
86901
+ return void 0;
86902
+ };
86903
+
85144
86904
  const Container$1 = styled.div`
85145
86905
  display: grid;
85146
86906
  grid-template-columns: repeat(2, 1fr);
@@ -85190,7 +86950,10 @@ const getStringFormItemFromSwagger = ({
85190
86950
  isAdditionalProperties,
85191
86951
  removeField,
85192
86952
  persistedControls,
85193
- onRemoveByMinus
86953
+ onRemoveByMinus,
86954
+ defaultValue,
86955
+ example,
86956
+ nullable
85194
86957
  }) => {
85195
86958
  if (Array.isArray(name) && name.length === 2 && name[0] === "metadata" && name[1] === "namespace" && namespaceData) {
85196
86959
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -85217,7 +86980,10 @@ const getStringFormItemFromSwagger = ({
85217
86980
  isAdditionalProperties,
85218
86981
  removeField,
85219
86982
  persistedControls,
85220
- onRemoveByMinus
86983
+ onRemoveByMinus,
86984
+ defaultValue,
86985
+ example,
86986
+ nullable
85221
86987
  },
85222
86988
  `${arrKey}-${JSON.stringify(name)}`
85223
86989
  );
@@ -85234,7 +87000,10 @@ const getEnumStringFormItemFromSwagger = ({
85234
87000
  removeField,
85235
87001
  options,
85236
87002
  persistedControls,
85237
- onRemoveByMinus
87003
+ onRemoveByMinus,
87004
+ defaultValue,
87005
+ example,
87006
+ nullable
85238
87007
  }) => {
85239
87008
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
85240
87009
  FormEnumStringInput,
@@ -85250,7 +87019,10 @@ const getEnumStringFormItemFromSwagger = ({
85250
87019
  removeField,
85251
87020
  options,
85252
87021
  persistedControls,
85253
- onRemoveByMinus
87022
+ onRemoveByMinus,
87023
+ defaultValue,
87024
+ example,
87025
+ nullable
85254
87026
  },
85255
87027
  `${arrKey}-${JSON.stringify(name)}`
85256
87028
  );
@@ -85267,7 +87039,10 @@ const getNumberFormItemFromSwagger = ({
85267
87039
  isAdditionalProperties,
85268
87040
  removeField,
85269
87041
  persistedControls,
85270
- onRemoveByMinus
87042
+ onRemoveByMinus,
87043
+ defaultValue,
87044
+ example,
87045
+ nullable
85271
87046
  }) => {
85272
87047
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
85273
87048
  FormNumberInput,
@@ -85283,7 +87058,10 @@ const getNumberFormItemFromSwagger = ({
85283
87058
  isAdditionalProperties,
85284
87059
  removeField,
85285
87060
  persistedControls,
85286
- onRemoveByMinus
87061
+ onRemoveByMinus,
87062
+ defaultValue,
87063
+ example,
87064
+ nullable
85287
87065
  },
85288
87066
  `${arrKey}-${JSON.stringify(name)}`
85289
87067
  );
@@ -85333,7 +87111,10 @@ const getStringMultilineFormItemFromSwagger = ({
85333
87111
  removeField,
85334
87112
  persistedControls,
85335
87113
  onRemoveByMinus,
85336
- isBase64
87114
+ isBase64,
87115
+ defaultValue,
87116
+ example,
87117
+ nullable
85337
87118
  }) => {
85338
87119
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
85339
87120
  FormStringMultilineInput,
@@ -85349,7 +87130,10 @@ const getStringMultilineFormItemFromSwagger = ({
85349
87130
  removeField,
85350
87131
  persistedControls,
85351
87132
  onRemoveByMinus,
85352
- isBase64
87133
+ isBase64,
87134
+ defaultValue,
87135
+ example,
87136
+ nullable
85353
87137
  },
85354
87138
  `${arrKey}-${JSON.stringify(name)}`
85355
87139
  );
@@ -85367,7 +87151,8 @@ const getListInputFormItemFromSwagger = ({
85367
87151
  persistedControls,
85368
87152
  customProps,
85369
87153
  urlParams,
85370
- onRemoveByMinus
87154
+ onRemoveByMinus,
87155
+ defaultValue
85371
87156
  }) => {
85372
87157
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
85373
87158
  FormListInput,
@@ -85384,7 +87169,8 @@ const getListInputFormItemFromSwagger = ({
85384
87169
  persistedControls,
85385
87170
  customProps,
85386
87171
  urlParams,
85387
- onRemoveByMinus
87172
+ onRemoveByMinus,
87173
+ defaultValue
85388
87174
  },
85389
87175
  `${arrKey}-${JSON.stringify(name)}`
85390
87176
  );
@@ -85397,7 +87183,8 @@ const getBooleanFormItemFromSwagger = ({
85397
87183
  makeValueUndefined,
85398
87184
  isAdditionalProperties,
85399
87185
  removeField,
85400
- onRemoveByMinus
87186
+ onRemoveByMinus,
87187
+ defaultValue
85401
87188
  }) => {
85402
87189
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
85403
87190
  FormBooleanInput,
@@ -85409,7 +87196,8 @@ const getBooleanFormItemFromSwagger = ({
85409
87196
  makeValueUndefined,
85410
87197
  isAdditionalProperties,
85411
87198
  removeField,
85412
- onRemoveByMinus
87199
+ onRemoveByMinus,
87200
+ defaultValue
85413
87201
  },
85414
87202
  `${arrKey}-${JSON.stringify(name)}`
85415
87203
  );
@@ -85431,6 +87219,7 @@ const getArrayFormItemFromSwagger = ({
85431
87219
  isEdit,
85432
87220
  expandedControls,
85433
87221
  persistedControls,
87222
+ objectValidationErrors,
85434
87223
  sortPaths,
85435
87224
  urlParams,
85436
87225
  onRemoveByMinus
@@ -85465,9 +87254,10 @@ const getArrayFormItemFromSwagger = ({
85465
87254
  ] : void 0,
85466
87255
  children: (fields, { add, remove }, { errors }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
85467
87256
  fields.map((field) => {
85468
- const fieldType = schema.items?.type;
85469
- const description2 = schema.items?.description;
85470
- const entry = schema.items;
87257
+ const itemSchema = schema.items;
87258
+ const fieldType = itemSchema?.type;
87259
+ const description2 = itemSchema?.description;
87260
+ const entry = itemSchema;
85471
87261
  const additionalProperties = schema.properties;
85472
87262
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(ArrayInsideContainer, { children: [
85473
87263
  fieldType !== "object" && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -85564,6 +87354,7 @@ const getArrayFormItemFromSwagger = ({
85564
87354
  fieldType === "object" && entry?.properties && getObjectFormItemFromSwagger({
85565
87355
  // merging properties near items by this
85566
87356
  properties: deepMerge(entry.properties, additionalProperties?.[field.key]?.properties || {}),
87357
+ oneOfRequiredGroups: entry.oneOfRequiredGroups,
85567
87358
  name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
85568
87359
  arrKey: field.key,
85569
87360
  arrName: [field.name],
@@ -85579,6 +87370,7 @@ const getArrayFormItemFromSwagger = ({
85579
87370
  isEdit,
85580
87371
  expandedControls,
85581
87372
  persistedControls,
87373
+ objectValidationErrors,
85582
87374
  sortPaths,
85583
87375
  urlParams,
85584
87376
  onRemoveByMinus: () => remove(field.name)
@@ -85624,6 +87416,7 @@ const getObjectFormItemsDraft = ({
85624
87416
  isEdit,
85625
87417
  expandedControls,
85626
87418
  persistedControls,
87419
+ objectValidationErrors,
85627
87420
  sortPaths,
85628
87421
  urlParams
85629
87422
  }) => {
@@ -85667,7 +87460,10 @@ const getObjectFormItemsDraft = ({
85667
87460
  isAdditionalProperties: properties[el].isAdditionalProperties,
85668
87461
  removeField,
85669
87462
  persistedControls,
85670
- options: properties[el].enum || []
87463
+ options: properties[el].enum || [],
87464
+ defaultValue: extractStringDefault(properties[el].default),
87465
+ example: extractStringDefault(properties[el].example),
87466
+ nullable: properties[el].nullable
85671
87467
  });
85672
87468
  }
85673
87469
  if (properties[el].type === "string" && !properties[el].enum || Object.keys(properties[el]).includes("x-kubernetes-int-or-string")) {
@@ -85683,7 +87479,10 @@ const getObjectFormItemsDraft = ({
85683
87479
  namespaceData,
85684
87480
  isAdditionalProperties: properties[el].isAdditionalProperties,
85685
87481
  removeField,
85686
- persistedControls
87482
+ persistedControls,
87483
+ defaultValue: extractStringDefault(properties[el].default),
87484
+ example: extractStringDefault(properties[el].example),
87485
+ nullable: properties[el].nullable
85687
87486
  });
85688
87487
  }
85689
87488
  if (properties[el].type === "number" || properties[el].type === "integer") {
@@ -85699,7 +87498,10 @@ const getObjectFormItemsDraft = ({
85699
87498
  description: properties[el].description,
85700
87499
  isAdditionalProperties: properties[el].isAdditionalProperties,
85701
87500
  removeField,
85702
- persistedControls
87501
+ persistedControls,
87502
+ defaultValue: extractNumberDefault(properties[el].default),
87503
+ example: extractNumberDefault(properties[el].example),
87504
+ nullable: properties[el].nullable
85703
87505
  });
85704
87506
  }
85705
87507
  if (properties[el].type === "rangeInputCpu" || properties[el].type === "rangeInputMemory") {
@@ -85731,7 +87533,8 @@ const getObjectFormItemsDraft = ({
85731
87533
  customProps: properties[el].customProps,
85732
87534
  removeField,
85733
87535
  persistedControls,
85734
- urlParams
87536
+ urlParams,
87537
+ defaultValue: extractListInputDefault(properties[el].default)
85735
87538
  });
85736
87539
  }
85737
87540
  if (properties[el].type === "multilineString" || properties[el].type === "multilineStringBase64") {
@@ -85747,7 +87550,10 @@ const getObjectFormItemsDraft = ({
85747
87550
  isAdditionalProperties: properties[el].isAdditionalProperties,
85748
87551
  removeField,
85749
87552
  persistedControls,
85750
- isBase64: properties[el].type === "multilineStringBase64"
87553
+ isBase64: properties[el].type === "multilineStringBase64",
87554
+ defaultValue: extractStringDefault(properties[el].default),
87555
+ example: extractStringDefault(properties[el].example),
87556
+ nullable: properties[el].nullable
85751
87557
  });
85752
87558
  }
85753
87559
  if (properties[el].type === "boolean") {
@@ -85758,7 +87564,8 @@ const getObjectFormItemsDraft = ({
85758
87564
  description: properties[el].description,
85759
87565
  makeValueUndefined,
85760
87566
  isAdditionalProperties: properties[el].isAdditionalProperties,
85761
- removeField
87567
+ removeField,
87568
+ defaultValue: extractBooleanDefault(properties[el].default)
85762
87569
  });
85763
87570
  }
85764
87571
  if (properties[el].type === "array") {
@@ -85802,6 +87609,7 @@ const getObjectFormItemsDraft = ({
85802
87609
  isEdit,
85803
87610
  expandedControls,
85804
87611
  persistedControls,
87612
+ objectValidationErrors,
85805
87613
  sortPaths,
85806
87614
  urlParams
85807
87615
  }) : void 0;
@@ -85829,6 +87637,7 @@ const getObjectFormItemsDraft = ({
85829
87637
  if (properties[el].type === "object" && properties[el].properties) {
85830
87638
  return getObjectFormItemFromSwagger({
85831
87639
  properties: properties[el].properties,
87640
+ oneOfRequiredGroups: properties[el].oneOfRequiredGroups,
85832
87641
  name: Array.isArray(name) ? [...name, String(el)] : [name, String(el)],
85833
87642
  arrKey,
85834
87643
  arrName: Array.isArray(arrName) ? [...arrName, String(el)] : void 0,
@@ -85846,6 +87655,7 @@ const getObjectFormItemsDraft = ({
85846
87655
  isEdit,
85847
87656
  expandedControls,
85848
87657
  persistedControls,
87658
+ objectValidationErrors,
85849
87659
  sortPaths,
85850
87660
  urlParams
85851
87661
  });
@@ -85855,6 +87665,8 @@ const getObjectFormItemsDraft = ({
85855
87665
  };
85856
87666
  const getObjectFormItemFromSwagger = ({
85857
87667
  properties,
87668
+ oneOfRequiredGroups,
87669
+ objectValidationErrors,
85858
87670
  name,
85859
87671
  arrKey,
85860
87672
  arrName,
@@ -85893,6 +87705,7 @@ const getObjectFormItemFromSwagger = ({
85893
87705
  isEdit,
85894
87706
  expandedControls,
85895
87707
  persistedControls,
87708
+ objectValidationErrors,
85896
87709
  sortPaths,
85897
87710
  urlParams
85898
87711
  });
@@ -85903,6 +87716,8 @@ const getObjectFormItemFromSwagger = ({
85903
87716
  persistName,
85904
87717
  selfRequired,
85905
87718
  description,
87719
+ oneOfRequiredGroups,
87720
+ validationErrors: objectValidationErrors?.[pathKey$1(Array.isArray(name) ? name : [name])],
85906
87721
  isAdditionalProperties,
85907
87722
  removeField,
85908
87723
  expandedControls,
@@ -85916,103 +87731,6 @@ const getObjectFormItemFromSwagger = ({
85916
87731
  );
85917
87732
  };
85918
87733
 
85919
- const pathKey$1 = (p) => JSON.stringify(p);
85920
- const pruneAdditionalForValues = (props, values, blockedPathsRef) => {
85921
- const next = _$1.cloneDeep(props) || {};
85922
- const walk = (schemaNode, valueNode, path = []) => {
85923
- if (!schemaNode) return;
85924
- if (schemaNode.type === "object") {
85925
- const vo = valueNode && typeof valueNode === "object" && !Array.isArray(valueNode) ? valueNode : {};
85926
- if (schemaNode.properties) {
85927
- Object.keys(schemaNode.properties).forEach((k) => {
85928
- const child = schemaNode.properties[k];
85929
- const currentPath = pathKey$1([...path, k]);
85930
- if (child?.isAdditionalProperties && (!(k in vo) || blockedPathsRef.current.has(currentPath))) {
85931
- delete schemaNode.properties[k];
85932
- return;
85933
- }
85934
- walk(child, vo?.[k], [...path, k]);
85935
- });
85936
- }
85937
- }
85938
- if (schemaNode.type === "array" && schemaNode.items && Array.isArray(valueNode)) {
85939
- valueNode.forEach((item, idx) => {
85940
- if (schemaNode.properties?.[idx]) {
85941
- walk(schemaNode.items, item, [...path, idx]);
85942
- }
85943
- });
85944
- }
85945
- };
85946
- Object.keys(next || {}).forEach((top) => {
85947
- walk(next[top], values?.[top], [top]);
85948
- });
85949
- return next;
85950
- };
85951
- const materializeAdditionalFromValues = (props, values, blockedPathsRef) => {
85952
- const next = _$1.cloneDeep(props) || {};
85953
- const toExpand = [];
85954
- const toPersist = [];
85955
- const makeChildFromAP = (ap) => {
85956
- const t = ap?.type ?? "object";
85957
- const child = { type: t };
85958
- if (ap?.properties) child.properties = _$1.cloneDeep(ap.properties);
85959
- if (ap?.items) child.items = _$1.cloneDeep(ap.items);
85960
- if (ap?.required)
85961
- child.required = _$1.cloneDeep(ap.required);
85962
- child.isAdditionalProperties = true;
85963
- return child;
85964
- };
85965
- const walk = (schemaNode, valueNode, path) => {
85966
- if (!schemaNode) return;
85967
- if (schemaNode.type === "object") {
85968
- const ap = schemaNode.additionalProperties;
85969
- if (ap && valueNode && typeof valueNode === "object" && !Array.isArray(valueNode)) {
85970
- const vo = valueNode;
85971
- schemaNode.properties = schemaNode.properties || {};
85972
- toExpand.push([...path]);
85973
- Object.keys(vo).forEach((k) => {
85974
- const current = pathKey$1([...path, k]);
85975
- if (blockedPathsRef.current.has(current)) return;
85976
- if (!schemaNode.properties[k]) {
85977
- schemaNode.properties[k] = makeChildFromAP(ap);
85978
- } else if (schemaNode.properties[k].isAdditionalProperties && ap?.properties) {
85979
- schemaNode.properties[k].properties ??= _$1.cloneDeep(ap.properties);
85980
- }
85981
- toExpand.push([...path, k]);
85982
- const v = vo[k];
85983
- if (v && typeof v === "object" && !Array.isArray(v) && Object.keys(v).length === 0) {
85984
- toPersist.push([...path, k]);
85985
- } else if (v === "" || v === 0 || Array.isArray(v) && v.length === 0) {
85986
- toPersist.push([...path, k]);
85987
- }
85988
- });
85989
- }
85990
- if (schemaNode.properties && valueNode && typeof valueNode === "object" && !Array.isArray(valueNode)) {
85991
- const vo = valueNode;
85992
- Object.keys(schemaNode.properties).forEach((k) => {
85993
- walk(schemaNode.properties[k], vo?.[k], [...path, k]);
85994
- });
85995
- }
85996
- }
85997
- if (schemaNode.type === "array" && schemaNode.items) {
85998
- const arr = Array.isArray(valueNode) ? valueNode : [];
85999
- if (arr.length) toExpand.push([...path]);
86000
- arr.forEach((itemVal, idx) => {
86001
- if (schemaNode.properties) {
86002
- schemaNode.properties[idx] = schemaNode.properties[idx] || {
86003
- properties: {}
86004
- };
86005
- }
86006
- walk(schemaNode.items, itemVal, [...path, idx]);
86007
- });
86008
- }
86009
- };
86010
- Object.keys(next || {}).forEach((top) => {
86011
- walk(next[top], values?.[top], [top]);
86012
- });
86013
- return { props: next, toExpand, toPersist };
86014
- };
86015
-
86016
87734
  const DEBUG_PREFILLS = false;
86017
87735
  const dbg = (...args) => {
86018
87736
  };
@@ -86245,6 +87963,7 @@ const BlackholeForm = ({
86245
87963
  const [properties, setProperties] = useState(staticProperties);
86246
87964
  const [yamlValues, setYamlValues] = useState();
86247
87965
  const debouncedSetYamlValues = useDebounceCallback(setYamlValues, 500);
87966
+ const [oneOfValidationErrors, setOneOfValidationErrors] = useState({});
86248
87967
  const [isLoading, setIsLoading] = useState(false);
86249
87968
  const [error, setError] = useState();
86250
87969
  const [isDebugModalOpen, setIsDebugModalOpen] = useState(false);
@@ -86312,6 +88031,20 @@ const BlackholeForm = ({
86312
88031
  refetchInterval: false,
86313
88032
  enabler: isCreate !== true
86314
88033
  });
88034
+ const computeOneOfValidationStates = useCallback(
88035
+ (values) => {
88036
+ return collectOneOfRequiredGroupStates({
88037
+ properties,
88038
+ values
88039
+ });
88040
+ },
88041
+ [properties]
88042
+ );
88043
+ const applyOneOfValidationErrors = useCallback((states) => {
88044
+ setOneOfValidationErrors(
88045
+ Object.fromEntries(states.map(({ name, errors }) => [pathKey$1(Array.isArray(name) ? name : [name]), errors]))
88046
+ );
88047
+ }, []);
86315
88048
  const onSubmit = () => {
86316
88049
  if (overflowRef.current) {
86317
88050
  const { scrollHeight, clientHeight } = overflowRef.current;
@@ -86321,12 +88054,29 @@ const BlackholeForm = ({
86321
88054
  });
86322
88055
  }
86323
88056
  form.validateFields().then(() => {
88057
+ const valuesRaw = form.getFieldsValue();
88058
+ const values = scrubLiteralWildcardKeys(valuesRaw);
88059
+ const oneOfStates = computeOneOfValidationStates(values);
88060
+ applyOneOfValidationErrors(oneOfStates);
88061
+ const oneOfErrors = oneOfStates.filter((state) => state.errors.length > 0);
88062
+ if (oneOfErrors.length > 0) {
88063
+ const keys = handleValidationError({
88064
+ error: {
88065
+ errorFields: oneOfErrors.map(({ name: name2, errors }) => ({
88066
+ name: name2,
88067
+ errors,
88068
+ warnings: []
88069
+ }))
88070
+ },
88071
+ expandedKeys
88072
+ });
88073
+ setExpandedKeys([...keys]);
88074
+ return;
88075
+ }
86324
88076
  setIsLoading(true);
86325
88077
  setError(void 0);
86326
88078
  const name = form.getFieldValue(["metadata", "name"]);
86327
88079
  const namespace = form.getFieldValue(["metadata", "namespace"]);
86328
- const valuesRaw = form.getFieldsValue();
86329
- const values = scrubLiteralWildcardKeys(valuesRaw);
86330
88080
  const payload = {
86331
88081
  values,
86332
88082
  persistedKeys,
@@ -86345,6 +88095,7 @@ const BlackholeForm = ({
86345
88095
  message: `${kind} "${resName}" created successfully`,
86346
88096
  placement: "bottomRight"
86347
88097
  });
88098
+ setIsLoading(false);
86348
88099
  if (resolvedBacklink) {
86349
88100
  navigate(resolvedBacklink);
86350
88101
  }
@@ -86364,6 +88115,7 @@ const BlackholeForm = ({
86364
88115
  message: `${kind} "${resName}" updated successfully`,
86365
88116
  placement: "bottomRight"
86366
88117
  });
88118
+ setIsLoading(false);
86367
88119
  if (resolvedBacklink) {
86368
88120
  navigate(resolvedBacklink);
86369
88121
  }
@@ -86568,6 +88320,7 @@ const BlackholeForm = ({
86568
88320
  (values, changedValues) => {
86569
88321
  const vRaw = values ?? form.getFieldsValue(true);
86570
88322
  const v = scrubLiteralWildcardKeys(vRaw);
88323
+ applyOneOfValidationErrors(computeOneOfValidationStates(v));
86571
88324
  const hiddenResolved = expandWildcardTemplates(
86572
88325
  hiddenWildcardTemplates,
86573
88326
  v,
@@ -86713,6 +88466,8 @@ const BlackholeForm = ({
86713
88466
  properties,
86714
88467
  persistedKeys,
86715
88468
  debouncedPostValuesToYaml,
88469
+ computeOneOfValidationStates,
88470
+ applyOneOfValidationErrors,
86716
88471
  applyPrefillForNewArrayItem,
86717
88472
  applyPersistedForNewArrayItem,
86718
88473
  hiddenWildcardTemplates,
@@ -87008,6 +88763,7 @@ const BlackholeForm = ({
87008
88763
  isEdit: !isCreate,
87009
88764
  expandedControls: { onExpandOpen, onExpandClose, expandedKeys },
87010
88765
  persistedControls: { onPersistMark, onPersistUnmark, persistedKeys },
88766
+ objectValidationErrors: oneOfValidationErrors,
87011
88767
  sortPaths,
87012
88768
  urlParams
87013
88769
  }) }) }) }) }),
@@ -91887,4 +93643,4 @@ const usePluginManifest = ({
91887
93643
  };
91888
93644
 
91889
93645
  export { useCrdResourceSingle as $, getBuiltinResources as A, getBuiltinResourceSingle as B, getCrdResources as C, DeleteIcon as D, EnrichedTableProvider as E, getCrdResourceSingle as F, getApiResourceTypes as G, getApiResourceTypesByApiGroup as H, getBuiltinResourceTypes as I, getCrdData as J, getDirectUnknownResource as K, checkPermission as L, getSwagger as M, filterIfApiInstanceNamespaceScoped as N, filterIfBuiltInInstanceNamespaceScoped as O, PerRequestError as P, checkIfApiInstanceNamespaceScoped as Q, ReadOnlyModal as R, checkIfBuiltInInstanceNamespaceScoped as S, getKinds as T, useClusterList as U, useApiResources as V, useApiResourceSingle as W, useBuiltinResources as X, useBuiltinResourceSingle as Y, useCrdResources as Z, _$1 as _, useTheme as a, DynamicRenderer as a$, useApisResourceTypes as a0, useApiResourceTypesByGroup as a1, useBuiltinResourceTypes as a2, useCrdData as a3, useListWatch as a4, useInfiniteSentinel as a5, useK8sVerbs as a6, useManyK8sSmartResource as a7, useSmartResourceParams as a8, useResourceScope as a9, ResourceLink as aA, ErrorBoundary as aB, ErrorBoundaryWithDataReset as aC, ManageableBreadcrumbsProvider as aD, prepareDataForManageableBreadcrumbs as aE, ManageableBreadcrumbs as aF, ManageableSidebarProvider as aG, prepareDataForManageableSidebar as aH, ManageableSidebar as aI, EnrichedTable as aJ, ClusterListTable as aK, getEnrichedColumns as aL, getEnrichedColumnsWithControls as aM, YamlEditorSingleton$1 as aN, BlackholeFormProvider as aO, BlackholeForm as aP, getObjectFormItemsDraft as aQ, MarketPlace as aR, MarketplaceCard as aS, ProjectInfoCard as aT, PodTerminal as aU, NodeTerminal as aV, PodLogs as aW, PodLogsMonaco as aX, VMVNC as aY, Search as aZ, Events as a_, useKinds as aa, useKindsRaw as ab, usePluginManifest as ac, Spacer$1 as ad, TreeWithSearch as ae, ConfirmModal as af, UpIcon as ag, DownIcon as ah, BackToDefaultIcon as ai, SuccessIcon as aj, feedbackIcons as ak, PlusIcon as al, MinusIcon as am, LockedIcon as an, UnlockedIcon as ao, PauseCircleIcon as ap, ResumeCircleIcon as aq, LookingGlassIcon as ar, EarthIcon as as, ContentCard$1 as at, FlexGrow as au, UncontrolledSelect as av, CustomSelect$4 as aw, CursorPointerTag as ax, CursorPointerTagMinContent as ay, CursorDefaultDiv as az, usePartsOfUrl as b, DynamicComponents as b0, DynamicRendererWithProviders as b1, prepareTemplate as b2, isFlatObject as b3, filterSelectOptions as b4, getStringByName as b5, floorToDecimal as b6, parseQuotaValue as b7, parseQuotaValueCpu as b8, parseQuotaValueMemoryAndStorage as b9, convertStorage as bA, parseValueWithUnit as bB, convertCores as bC, formatCoresAuto as bD, toCores as bE, convertCompute as bF, parseCoresWithUnit as bG, formatDateAuto as bH, isValidRFC3339 as bI, normalizeValuesForQuotasToNumber as ba, getAllPathsFromObj as bb, getPrefixSubarrays as bc, groupsToTreeData as bd, getBuiltinTreeData as be, getGroupsByCategory as bf, createContextFactory as bg, prepareUrlsToFetchForDynamicRenderer as bh, deepMerge as bi, getSortedKinds as bj, getSortedKindsAll as bk, hslFromString as bl, getUppercase as bm, kindByGvr as bn, pluralByKind as bo, namespacedByGvr as bp, getLinkToBuiltinForm as bq, getLinkToApiForm as br, isMultilineString as bs, isMultilineFromYaml as bt, includesArray as bu, getResourceLink as bv, getNamespaceLink as bw, convertBytes as bx, formatBytesAuto as by, toBytes as bz, useAutoPerRequestError as c, usePermissions as d, useDirectUnknownResource as e, useK8sSmartResource as f, jsxRuntimeExports as g, EditIcon as h, PaddingContainer as i, jp as j, getLinkToForm as k, DeleteModal as l, mergePerRequestErrors as m, DeleteModalMany as n, getClusterList as o, parseAll as p, createNewEntry as q, updateEntry as r, serializeLabelsWithNoEncoding$1 as s, deleteEntry as t, useMultiQuery as u, patchEntryWithReplaceOp as v, patchEntryWithMergePatch as w, patchEntryWithDeleteOp as x, getApiResources as y, getApiResourceSingle as z };
91890
- //# sourceMappingURL=index-BFIWg9xn.mjs.map
93646
+ //# sourceMappingURL=index-BYGA57EJ.mjs.map